@momo-webplatform/mobase 0.2.42 → 0.2.43
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 +40 -40
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +371 -325
- package/dist/esm/index.d.ts +371 -325
- package/dist/esm/index.js +39 -39
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ys=Object.create;var ho=Object.defineProperty;var Js=Object.getOwnPropertyDescriptor;var el=Object.getOwnPropertyNames;var tl=Object.getPrototypeOf,ol=Object.prototype.hasOwnProperty;var al=(e,t)=>{for(var o in t)ho(e,o,{get:t[o],enumerable:!0})},Hi=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of el(t))!ol.call(e,i)&&i!==o&&ho(e,i,{get:()=>t[i],enumerable:!(a=Js(t,i))||a.enumerable});return e};var f=(e,t,o)=>(o=e!=null?Ys(tl(e)):{},Hi(t||!e||!e.__esModule?ho(o,"default",{value:e,enumerable:!0}):o,e)),il=e=>Hi(ho({},"__esModule",{value:!0}),e);var hm={};al(hm,{Accordion:()=>Ye,AccordionContent:()=>tt,AccordionItem:()=>Je,AccordionTrigger:()=>et,ActionButton:()=>Mt,AlertDialog:()=>dr,AlertDialogAction:()=>Ca,AlertDialogCancel:()=>Ra,AlertDialogContent:()=>ha,AlertDialogDescription:()=>Pa,AlertDialogFooter:()=>wa,AlertDialogHeader:()=>ya,AlertDialogOverlay:()=>Io,AlertDialogPortal:()=>ba,AlertDialogTitle:()=>Na,AlertDialogTrigger:()=>pr,AspectRatio:()=>ke,Badge:()=>Sn,Breadcrumb:()=>ma,BreadcrumbEllipsis:()=>ua,BreadcrumbItem:()=>da,BreadcrumbLink:()=>pa,BreadcrumbList:()=>ca,BreadcrumbPage:()=>fa,BreadcrumbSeparator:()=>ga,Button:()=>se,Calendar:()=>Kt,Callout:()=>fn,Card:()=>ei,CardContent:()=>ii,CardDescription:()=>ai,CardFooter:()=>ri,CardHeader:()=>ti,CardTitle:()=>oi,Carousel:()=>Yt,CarouselContent:()=>Jt,CarouselItem:()=>eo,CarouselNext:()=>oo,CarouselPrevious:()=>to,Checkbox:()=>Zt,ChoiceboxGroup:()=>gi,ChoiceboxGroupItem:()=>ui,ChoiceboxMultiItem:()=>vi,Combobox:()=>cn,ComboboxContent:()=>mn,ComboboxTrigger:()=>ln,Command:()=>qo,CommandDialog:()=>nn,CommandEmpty:()=>li,CommandGroup:()=>mi,CommandInput:()=>ni,CommandItem:()=>di,CommandList:()=>si,CommandSeparator:()=>ci,CommandShortcut:()=>pi,Comment:()=>ss,DatePicker:()=>cr,Dialog:()=>at,DialogBody:()=>Xt,DialogClose:()=>Xi,DialogContent:()=>$e,DialogDescription:()=>la,DialogFooter:()=>na,DialogHeader:()=>ra,DialogOverlay:()=>wo,DialogPortal:()=>ia,DialogQr:()=>it,DialogTitle:()=>sa,DialogTrigger:()=>yo,FAQSection:()=>vs,FeatureSection:()=>qn,Footer:()=>rn,Form:()=>Cs,FormControl:()=>Li,FormDescription:()=>Ei,FormField:()=>Ts,FormItem:()=>Mi,FormLabel:()=>Ai,FormMessage:()=>Fi,HeaderNavigation:()=>Ya,Heading:()=>Ao,HeadingGroup:()=>Eo,HeadingSub:()=>Lo,HeadingTagline:()=>Mo,HeroSection:()=>zn,IconButton:()=>je,LightBoxGalleryContent:()=>Ko,LightboxGallery:()=>Zo,LightboxThumbnail:()=>Nn,NavigationMenu:()=>no,NavigationMenuContent:()=>po,NavigationMenuItem:()=>lo,NavigationMenuLink:()=>zt,NavigationMenuList:()=>so,NavigationMenuTrigger:()=>co,NewsSection:()=>hs,Pagination:()=>ka,Popover:()=>Lt,PopoverContent:()=>vt,PopoverTrigger:()=>Et,ProgressSteps:()=>gs,ProgressStepsItem:()=>fs,ProgressStepsItemTrigger:()=>ps,Progressbar:()=>yi,RadioGroup:()=>qa,RadioGroupItem:()=>Za,ReadMoreLite:()=>Jo,SearchBar:()=>vn,Select:()=>Fr,SelectContent:()=>$a,SelectGroup:()=>Hr,SelectItem:()=>zr,SelectLabel:()=>Wa,SelectScrollDownButton:()=>Qo,SelectScrollUpButton:()=>jo,SelectSeparator:()=>ja,SelectTrigger:()=>Ga,SelectValue:()=>_r,SiteMeta:()=>Xs,Slider:()=>Ci,SocialProofSection:()=>Yn,Stepper:()=>Lr,Switch:()=>Ua,Tabs:()=>_t,TabsContent:()=>yt,TabsList:()=>bt,TabsTrigger:()=>ht,TestimonialSection:()=>Ar,TextArea:()=>vr,TextButton:()=>Nt,TextInput:()=>Sr,ToastAction:()=>La,Toaster:()=>yr,Tooltip:()=>Tr,TooltipArrow:()=>Ba,TooltipContent:()=>Va,TooltipProvider:()=>Rr,TooltipTrigger:()=>kr,badgeVariants:()=>xi,buttonVariants:()=>Pe,mobaseTW:()=>Us,navigationMenuTriggerStyle:()=>mo,textButtonVariants:()=>Ha,toast:()=>Ia,useFormField:()=>Wt,useToast:()=>Oo});module.exports=il(hm);var Qt=f(require("react"),1),fe=f(require("@radix-ui/react-accordion"),1),Gi=require("@heroicons/react/20/solid");var rl=f(require("react"),1),Bi=require("tailwind-merge");var Oe={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 zi={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 jt=[{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"}],oa=[{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 ee={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 It=require("react"),Vi=f(require("ua-parser-js"),1);function r(...e){return(0,Bi.twMerge)(e)}var aa=()=>{if(!(typeof window>"u"))return!!navigator?.userAgent?.includes(process.env.NEXT_PUBLIC_REACT_APP_MOMO_APP_USER_AGENT||"")},nl=()=>(0,Vi.default)().device.type==="mobile",sl=typeof window<"u"?It.useLayoutEffect:It.useEffect,Oi=()=>{let[e,t]=(0,It.useState)(!1);return sl(()=>{t(nl()||aa())},[]),e};var Ge=require("react/jsx-runtime"),Ye=Qt.forwardRef(({className:e,...t},o)=>(0,Ge.jsx)(fe.Root,{ref:o,...t}));Ye.displayName="AccordionRoot";var Je=Qt.forwardRef(({className:e,...t},o)=>(0,Ge.jsx)(fe.Item,{ref:o,className:r("border-b border-gray-200",e),...t}));Je.displayName="AccordionItem";var et=Qt.forwardRef(({className:e,children:t,...o},a)=>(0,Ge.jsx)(fe.Header,{className:"flex",children:(0,Ge.jsxs)(fe.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,Ge.jsx)(Gi.ChevronDownIcon,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));et.displayName=fe.Trigger.displayName;var tt=Qt.forwardRef(({className:e,children:t,...o},a)=>(0,Ge.jsx)(fe.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,Ge.jsx)("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:t})}));tt.displayName=fe.Content.displayName;var Zi=require("react");var Wi=f(require("react"),1),ji=require("@radix-ui/react-slot"),Qi=require("class-variance-authority");var te=require("react/jsx-runtime"),ll=({className:e})=>(0,te.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,te.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,te.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,te.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,te.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,te.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,te.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,te.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,te.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,te.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,te.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,te.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,te.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"})]}),$i=ll;var ot=require("react/jsx-runtime"),Pe=(0,Qi.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"}}),se=Wi.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...l},c)=>{let d=a?ji.Slot:"button",p=r(Pe({variant:t,size:o,className:e}),{"cursor-wait":i});return(0,ot.jsx)(ot.Fragment,{children:a?(0,ot.jsx)(d,{className:p,type:"button",disabled:n,ref:c,...l,children:l.children}):(0,ot.jsxs)(d,{className:p,type:"button",disabled:n,ref:c,...l,children:[i&&(0,ot.jsx)($i,{className:`${o==="default"||o==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),l.children]})})});se.displayName="Button";var Ut=f(require("react"),1),E=f(require("@radix-ui/react-dialog"),1);var Ui=require("@heroicons/react/16/solid"),ae=require("react/jsx-runtime"),at=E.Root,yo=E.Trigger,ia=E.Portal,Xi=E.Close,wo=Ut.forwardRef(({className:e,...t},o)=>(0,ae.jsx)(E.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}));wo.displayName=E.Overlay.displayName;var $e=Ut.forwardRef(({className:e,positionRightCloseBtn:t,hideCloseBtn:o=!1,size:a="md",position:i="center",height:n="auto",isFull:l=!1,children:c,...d},p)=>{let u={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"},h={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},N={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},L=[u.base,u[i],h[a],N[n],l&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,ae.jsxs)(ia,{children:[(0,ae.jsx)(wo,{}),(0,ae.jsxs)(E.Content,{ref:p,className:r(...L),...d,children:[c,!o&&(0,ae.jsxs)(E.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,ae.jsx)(Ui.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,ae.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});$e.displayName=E.Content.displayName;var ra=({className:e,...t})=>(0,ae.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});ra.displayName="DialogHeader";var Xt=({className:e,isCondensed:t=!1,...o})=>(0,ae.jsx)("div",{className:r("dialog-body p-6 flex-1 overflow-y-auto",t&&"p-5",e),...o});Xt.displayName="DialogBody";var na=({className:e,isDivider:t=!0,...o})=>(0,ae.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});na.displayName="DialogFooter";var sa=Ut.forwardRef(({className:e,...t},o)=>(0,ae.jsx)(E.Title,{ref:o,className:r("text-base font-semibold line-clamp-1 max-w-full",e),...t}));sa.displayName=E.Title.displayName;var la=Ut.forwardRef(({className:e,...t},o)=>(0,ae.jsx)(E.Description,{ref:o,className:r("text-sm text-gray-700",e),...t}));la.displayName=E.Description.displayName;var qi=require("qrcode.react"),g=require("react/jsx-runtime"),ml=({img:e="",children:t,isQrForAll:o})=>(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"qrcode__scan__container",children:(0,g.jsxs)("div",{className:"qrcode__scan",children:[(0,g.jsx)("div",{className:"qrcode__gradient",children:(0,g.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,g.jsx)("div",{className:"qrcode__border",children:(0,g.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,g.jsx)("div",{className:"qrcode__image p-4",children:e?(0,g.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):t})]})}),(0,g.jsx)("div",{className:"mt-4 text-sm text-white",children:o?(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.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,g.jsxs)(g.Fragment,{children:[(0,g.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,g.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,g.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,g.jsx)("style",{children:`
|
|
1
|
+
"use strict";var el=Object.create;var yo=Object.defineProperty;var tl=Object.getOwnPropertyDescriptor;var ol=Object.getOwnPropertyNames;var il=Object.getPrototypeOf,al=Object.prototype.hasOwnProperty;var rl=(e,t)=>{for(var o in t)yo(e,o,{get:t[o],enumerable:!0})},Ha=(e,t,o,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ol(t))!al.call(e,a)&&a!==o&&yo(e,a,{get:()=>t[a],enumerable:!(i=tl(t,a))||i.enumerable});return e};var f=(e,t,o)=>(o=e!=null?el(il(e)):{},Ha(t||!e||!e.__esModule?yo(o,"default",{value:e,enumerable:!0}):o,e)),nl=e=>Ha(yo({},"__esModule",{value:!0}),e);var Cm={};rl(Cm,{Accordion:()=>Je,AccordionContent:()=>ot,AccordionItem:()=>et,AccordionTrigger:()=>tt,ActionButton:()=>At,AlertDialog:()=>dr,AlertDialogAction:()=>Ci,AlertDialogCancel:()=>Ri,AlertDialogContent:()=>hi,AlertDialogDescription:()=>Pi,AlertDialogFooter:()=>Ni,AlertDialogHeader:()=>yi,AlertDialogOverlay:()=>Io,AlertDialogPortal:()=>xi,AlertDialogTitle:()=>wi,AlertDialogTrigger:()=>pr,AspectRatio:()=>ue,Badge:()=>Cn,Breadcrumb:()=>mi,BreadcrumbEllipsis:()=>ui,BreadcrumbItem:()=>di,BreadcrumbLink:()=>pi,BreadcrumbList:()=>ci,BreadcrumbPage:()=>fi,BreadcrumbSeparator:()=>gi,Button:()=>ce,CTASection:()=>Ds,Calendar:()=>Yt,Callout:()=>mn,Card:()=>ea,CardContent:()=>aa,CardDescription:()=>ia,CardFooter:()=>ra,CardHeader:()=>ta,CardTitle:()=>oa,Carousel:()=>Jt,CarouselContent:()=>eo,CarouselItem:()=>to,CarouselNext:()=>io,CarouselPrevious:()=>oo,Checkbox:()=>Kt,ChoiceboxGroup:()=>ga,ChoiceboxGroupItem:()=>ua,ChoiceboxMultiItem:()=>va,Combobox:()=>nn,ComboboxContent:()=>rn,ComboboxTrigger:()=>an,Command:()=>Xo,CommandDialog:()=>tn,CommandEmpty:()=>la,CommandGroup:()=>ma,CommandInput:()=>na,CommandItem:()=>da,CommandList:()=>sa,CommandSeparator:()=>ca,CommandShortcut:()=>pa,Comment:()=>_n,DatePicker:()=>cr,Dialog:()=>at,DialogBody:()=>qt,DialogClose:()=>Qa,DialogContent:()=>We,DialogDescription:()=>li,DialogFooter:()=>ni,DialogHeader:()=>ri,DialogOverlay:()=>wo,DialogPortal:()=>ai,DialogQr:()=>rt,DialogTitle:()=>si,DialogTrigger:()=>No,FAQSection:()=>Cs,FeatureSection:()=>xs,Footer:()=>en,Form:()=>Xn,FormControl:()=>ka,FormDescription:()=>Sa,FormField:()=>Zn,FormItem:()=>Ra,FormLabel:()=>Ta,FormMessage:()=>Da,HeaderNavigation:()=>Yi,Heading:()=>Lo,HeadingGroup:()=>Fo,HeadingSub:()=>Eo,HeadingTagline:()=>Mo,HeroSection:()=>rs,IconButton:()=>Qe,LightBoxGalleryContent:()=>Zo,LightboxGallery:()=>qo,LightboxThumbnail:()=>xn,NavigationMenu:()=>so,NavigationMenuContent:()=>fo,NavigationMenuItem:()=>mo,NavigationMenuLink:()=>Ht,NavigationMenuList:()=>lo,NavigationMenuTrigger:()=>po,NewsSection:()=>ks,Pagination:()=>ki,Popover:()=>Mt,PopoverContent:()=>vt,PopoverTrigger:()=>Lt,ProgressSteps:()=>$n,ProgressStepsItem:()=>Gn,ProgressStepsItemTrigger:()=>On,Progressbar:()=>ya,RadioGroup:()=>qi,RadioGroupItem:()=>Zi,ReadMoreLite:()=>Ko,SearchBar:()=>pn,Select:()=>Ir,SelectContent:()=>$i,SelectGroup:()=>Lr,SelectItem:()=>Er,SelectLabel:()=>Wi,SelectScrollDownButton:()=>jo,SelectScrollUpButton:()=>Wo,SelectSeparator:()=>ji,SelectTrigger:()=>Gi,SelectValue:()=>Mr,SiteMeta:()=>Zs,Slider:()=>Na,SocialProofSection:()=>ss,Stepper:()=>Dr,Switch:()=>Ui,Tabs:()=>Ft,TabsContent:()=>yt,TabsList:()=>xt,TabsTrigger:()=>ht,TestimonialSection:()=>ws,TextArea:()=>vr,TextButton:()=>wt,TextInput:()=>Sr,ToastAction:()=>Li,Toaster:()=>yr,Tooltip:()=>Tr,TooltipArrow:()=>Bi,TooltipContent:()=>Vi,TooltipProvider:()=>Rr,TooltipTrigger:()=>kr,badgeVariants:()=>ba,buttonVariants:()=>Re,mobaseTW:()=>qs,navigationMenuTriggerStyle:()=>co,textButtonVariants:()=>Hi,toast:()=>Ai,useFormField:()=>Gt,useToast:()=>Go});module.exports=nl(Cm);var Ut=f(require("react"),1),be=f(require("@radix-ui/react-accordion"),1),Va=require("@heroicons/react/20/solid");var sl=f(require("react"),1),Ba=require("tailwind-merge");var Ge={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 za={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 Qt=[{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"}],ii=[{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 oe={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,Ba.twMerge)(e)}var $e=require("react/jsx-runtime"),Je=Ut.forwardRef(({className:e,...t},o)=>(0,$e.jsx)(be.Root,{ref:o,...t}));Je.displayName="AccordionRoot";var et=Ut.forwardRef(({className:e,...t},o)=>(0,$e.jsx)(be.Item,{ref:o,className:r("border-b border-gray-200",e),...t}));et.displayName="AccordionItem";var tt=Ut.forwardRef(({className:e,children:t,...o},i)=>(0,$e.jsx)(be.Header,{className:"flex",children:(0,$e.jsxs)(be.Trigger,{ref:i,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,$e.jsx)(Va.ChevronDownIcon,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));tt.displayName=be.Trigger.displayName;var ot=Ut.forwardRef(({className:e,children:t,...o},i)=>(0,$e.jsx)(be.Content,{ref:i,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...o,children:(0,$e.jsx)("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:t})}));ot.displayName=be.Content.displayName;var Ga=f(require("react"),1),$a=require("@radix-ui/react-slot"),Wa=require("class-variance-authority");var ie=require("react/jsx-runtime"),ll=({className:e})=>(0,ie.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,ie.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,ie.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,ie.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,ie.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,ie.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,ie.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,ie.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,ie.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,ie.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,ie.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,ie.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,ie.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"})]}),Oa=ll;var it=require("react/jsx-runtime"),Re=(0,Wa.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"}}),ce=Ga.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:i=!1,isLoading:a=!1,isDisabled:n=!1,...l},c)=>{let d=i?$a.Slot:"button",p=r(Re({variant:t,size:o,className:e}),{"cursor-wait":a});return(0,it.jsx)(it.Fragment,{children:i?(0,it.jsx)(d,{className:p,type:"button",disabled:n,ref:c,...l,children:l.children}):(0,it.jsxs)(d,{className:p,type:"button",disabled:n,ref:c,...l,children:[a&&(0,it.jsx)(Oa,{className:`${o==="default"||o==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),l.children]})})});ce.displayName="Button";var Xt=f(require("react"),1),L=f(require("@radix-ui/react-dialog"),1);var ja=require("@heroicons/react/16/solid"),re=require("react/jsx-runtime"),at=L.Root,No=L.Trigger,ai=L.Portal,Qa=L.Close,wo=Xt.forwardRef(({className:e,...t},o)=>(0,re.jsx)(L.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}));wo.displayName=L.Overlay.displayName;var We=Xt.forwardRef(({className:e,positionRightCloseBtn:t,hideCloseBtn:o=!1,size:i="md",position:a="center",height:n="auto",isFull:l=!1,children:c,...d},p)=>{let g={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"},h={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},N={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},H=[g.base,g[a],h[i],N[n],l&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,re.jsxs)(ai,{children:[(0,re.jsx)(wo,{}),(0,re.jsxs)(L.Content,{ref:p,className:r(...H),...d,children:[c,!o&&(0,re.jsxs)(L.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,re.jsx)(ja.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,re.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});We.displayName=L.Content.displayName;var ri=({className:e,...t})=>(0,re.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});ri.displayName="DialogHeader";var qt=({className:e,isCondensed:t=!1,...o})=>(0,re.jsx)("div",{className:r("dialog-body p-6 flex-1 overflow-y-auto",t&&"p-5",e),...o});qt.displayName="DialogBody";var ni=({className:e,isDivider:t=!0,...o})=>(0,re.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});ni.displayName="DialogFooter";var si=Xt.forwardRef(({className:e,...t},o)=>(0,re.jsx)(L.Title,{ref:o,className:r("text-base font-semibold line-clamp-1 max-w-full",e),...t}));si.displayName=L.Title.displayName;var li=Xt.forwardRef(({className:e,...t},o)=>(0,re.jsx)(L.Description,{ref:o,className:r("text-sm text-gray-700",e),...t}));li.displayName=L.Description.displayName;var Ua=require("qrcode.react"),u=require("react/jsx-runtime"),ml=({img:e="",children:t,isQrForAll:o})=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"qrcode__scan__container",children:(0,u.jsxs)("div",{className:"qrcode__scan",children:[(0,u.jsx)("div",{className:"qrcode__gradient",children:(0,u.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,u.jsx)("div",{className:"qrcode__border",children:(0,u.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,u.jsx)("div",{className:"qrcode__image p-4",children:e?(0,u.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):t})]})}),(0,u.jsx)("div",{className:"mt-4 text-sm text-white",children:o?(0,u.jsxs)(u.Fragment,{children:[(0,u.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,u.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,u.jsxs)(u.Fragment,{children:[(0,u.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,u.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,u.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,u.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
|
-
`})]}),it=({className:e,children:t,title:o,shortTitle:a,qrImage:i,qrLink:n,logoQr:l,isQrForAll:c=!1,...d})=>(0,g.jsx)(at,{...d,children:(0,g.jsx)($e,{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,g.jsx)(Xt,{className:"p-0",children:(0,g.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,g.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:t||(0,g.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,g.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,g.jsx)("div",{className:"flex-none",children:(0,g.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,g.jsxs)("div",{className:"flex-1 pl-4",children:[(0,g.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,g.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,g.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,g.jsx)("div",{className:"flex-none",children:(0,g.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,g.jsxs)("div",{className:"flex-1 pl-4",children:[(0,g.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,g.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,g.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,g.jsx)("div",{className:"flex-none",children:(0,g.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,g.jsxs)("div",{className:"flex-1 pl-4",children:[(0,g.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,g.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,g.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,g.jsxs)("div",{className:"px-5 py-10 text-center",children:[o&&(0,g.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:o}),(0,g.jsxs)("div",{className:"relative",children:[c&&(0,g.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,g.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,g.jsx)(ml,{img:i,isQrForAll:c,children:n&&(0,g.jsx)(qi.QRCodeSVG,{value:n,size:215,imageSettings:{src:`${l||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});var We=require("react/jsx-runtime"),Mt=({action:e,newTab:t,offset:o,dialogQrProps:a,className:i,children:n,...l})=>{let[c,d]=(0,Zi.useState)(!1),p=Oi(),u=aa()||typeof window<"u"&&window.location.search.includes("view=app"),h=!!a?.qrLink,N=()=>{let S=h?a?.qrLink:e;return typeof S=="string"?S.trim():""},L=()=>{let S=N();!S&&typeof e!="function"||(typeof e=="function"?e():window.open(S,t?"_blank":"_self"))},j=(S,M=0)=>{let ft=document.querySelector(S);if(!ft)return;let gt=ft.getBoundingClientRect().top+window.scrollY-M;window.scrollTo({top:gt,behavior:"smooth"})},Q=()=>{typeof e=="string"&&e.startsWith("#")?j(e,o):L()},q=()=>(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)(se,{...l,className:i,onClick:()=>d(!0),"data-name":"button-action-with-qr",children:n}),(0,We.jsx)(it,{...a,open:c,onOpenChange:()=>d(!1),qrLink:a?.qrLink||""})]});return h?p||u?a?.isQrForAll?q():(0,We.jsx)(se,{...l,className:i,onClick:L,"data-name":"button-action-with-qr",children:n}):q():(0,We.jsx)(se,{...l,onClick:Q,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var At=f(require("react"),1),No=require("@radix-ui/react-icons"),Ki=require("@radix-ui/react-slot");var ge=require("react/jsx-runtime"),ma=At.forwardRef(({className:e,...t},o)=>(0,ge.jsx)("nav",{ref:o,"aria-label":"breadcrumb",className:r("",e),...t}));ma.displayName="Breadcrumb";var ca=At.forwardRef(({className:e,...t},o)=>(0,ge.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}));ca.displayName="BreadcrumbList";var da=At.forwardRef(({className:e,...t},o)=>(0,ge.jsx)("li",{ref:o,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...t}));da.displayName="BreadcrumbItem";var pa=At.forwardRef(({asChild:e,className:t,...o},a)=>(0,ge.jsx)(e?Ki.Slot:"a",{ref:a,className:r("transition-colors hover:text-foreground",t),...o}));pa.displayName="BreadcrumbLink";var fa=At.forwardRef(({className:e,...t},o)=>(0,ge.jsx)("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...t}));fa.displayName="BreadcrumbPage";var ga=({children:e,className:t,...o})=>(0,ge.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",t),...o,children:e??(0,ge.jsx)(No.ChevronRightIcon,{className:"w-2 h-2"})});ga.displayName="BreadcrumbSeparator";var ua=({className:e,...t})=>(0,ge.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...t,children:[(0,ge.jsx)(No.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,ge.jsx)("span",{className:"sr-only",children:"More"})]});ua.displayName="BreadcrumbElipssis";var Co=f(require("react"),1);var Ro=require("date-fns/locale"),er=require("react-day-picker"),To=require("lucide-react"),tr=f(require("lunisolar"),1);var Yi=f(require("react"),1),qt=f(require("@radix-ui/react-checkbox"),1),Ji=require("@heroicons/react/16/solid"),va=require("class-variance-authority");var Po=require("react/jsx-runtime"),cl=(0,va.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"}}),dl=(0,va.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Zt=Yi.forwardRef(({className:e,size:t,...o},a)=>(0,Po.jsx)(qt.Root,{ref:a,className:r(cl({size:t}),e),...o,children:(0,Po.jsx)(qt.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Po.jsx)(Ji.CheckIcon,{className:r(dl({size:t}))})})}));Zt.displayName=qt.Root.displayName;var Z=require("react/jsx-runtime"),pl=({date:e,cusContent:t})=>{let o=null;return o=(0,tr.default)(e).lunar,(0,Z.jsxs)(Z.Fragment,{children:[t?t(e):e.getDate(),o&&(0,Z.jsx)("span",{className:"text-[8px] absolute top-1 right-0.5 leading-none text-gray-700 group-aria-selected:text-white group-aria-selected/mid:!text-gray-700 luna-date hidden group-[.show-luna]:block ",children:o.day})]})},fl={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 gl({isShow:e,setIsShow:t,lang:o}){let a=Co.useId();return(0,Z.jsx)("div",{className:"w-full p-3 pt-0",children:(0,Z.jsxs)("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[(0,Z.jsx)(Zt,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&t(i)}}),(0,Z.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 ul=e=>e.getDay()===0||e.getDay()===6;function Kt({className:e,classNames:t,showOutsideDays:o=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...l}){let[c,d]=Co.useState(!0);return(0,Z.jsx)(er.DayPicker,{locale:i==="vi"?Ro.vi:Ro.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(Pe({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",day:r(Pe({variant:"transparent"}),"h-11 w-11 text-center text-sm p-0 aria-selected:opacity-100 aria-selected:bg-pink-500 aria-selected: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:"!text-gray-900 !bg-pink-50 !rounded-none group/mid",day_hidden:"invisible",...t},modifiers:{weekend:ul},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,Z.jsx)(To.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,Z.jsx)(To.ChevronRight,{className:"h-6 w-6"}),DayContent:p=>(0,Z.jsx)(pl,{date:p.date,cusContent:n}),Months:({children:p})=>(0,Z.jsxs)("div",{className:"w-full",children:[(0,Z.jsx)("div",{className:r("flex flex-col sm:flex-row months-wrapper"),children:p}),a&&(0,Z.jsx)(gl,{isShow:c,setIsShow:d,lang:i})]})},formatters:i==="vi"?fl:{},...l})}Kt.displayName="Calendar";var F=f(require("react"),1),nr=f(require("embla-carousel-react"),1);var ko=require("@heroicons/react/16/solid");var or=f(require("react"),1),ar=require("@radix-ui/react-slot"),ir=require("class-variance-authority");var rr=require("react/jsx-runtime"),ut=(0,ir.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"}}),je=or.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:a=!1,isDisabled:i=!1,...n},l)=>{let c=a?ar.Slot:"button",d=r(ut({variant:t,size:o,className:e}));return(0,rr.jsx)(c,{className:d,disabled:i,ref:l,...n,children:n.children})});je.displayName="IconButton";var le=require("react/jsx-runtime"),sr=F.createContext(null);function So(){let e=F.useContext(sr);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Yt=F.forwardRef(({orientation:e="horizontal",opts:t,setApi:o,plugins:a,className:i,children:n,...l},c)=>{let[d,p]=(0,nr.default)({...t,axis:e==="horizontal"?"x":"y"},a),[u,h]=F.useState(!1),[N,L]=F.useState(!1),j=F.useCallback(S=>{S&&(h(S.canScrollPrev()),L(S.canScrollNext()))},[]),Q=F.useCallback(()=>{p?.scrollPrev()},[p]),q=F.useCallback(()=>{p?.scrollNext()},[p]),Ne=F.useCallback(S=>{S.key==="ArrowLeft"?(S.preventDefault(),Q()):S.key==="ArrowRight"&&(S.preventDefault(),q())},[Q,q]);return F.useEffect(()=>{!p||!o||o(p)},[p,o]),F.useEffect(()=>{if(p)return j(p),p.on("reInit",j),p.on("select",j),()=>{p?.off("select",j)}},[p,j]),(0,le.jsx)(sr.Provider,{value:{carouselRef:d,api:p,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:Q,scrollNext:q,canScrollPrev:u,canScrollNext:N},children:(0,le.jsx)("div",{ref:c,onKeyDownCapture:Ne,className:r("relative",i),role:"region","aria-roledescription":"carousel",...l,children:n})})});Yt.displayName="Carousel";var Jt=F.forwardRef(({className:e,...t},o)=>{let{carouselRef:a,orientation:i}=So();return(0,le.jsx)("div",{ref:a,className:"overflow-hidden",children:(0,le.jsx)("div",{ref:o,className:r("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Jt.displayName="CarouselContent";var eo=F.forwardRef(({className:e,...t},o)=>{let{orientation:a}=So();return(0,le.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})});eo.displayName="CarouselItem";var to=F.forwardRef(({className:e,variant:t="secondary",size:o="default",...a},i)=>{let{orientation:n,scrollPrev:l,canScrollPrev:c}=So();return(0,le.jsxs)(je,{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:l,...a,children:[(0,le.jsx)(ko.ChevronLeftIcon,{className:"h-6 w-6"}),(0,le.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});to.displayName="CarouselPrevious";var oo=F.forwardRef(({className:e,variant:t="secondary",size:o="default",...a},i)=>{let{orientation:n,scrollNext:l,canScrollNext:c}=So();return(0,le.jsxs)(je,{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:l,...a,children:[(0,le.jsx)(ko.ChevronRightIcon,{className:"h-6 w-6"}),(0,le.jsx)("span",{className:"sr-only",children:"Next slide"})]})});oo.displayName="CarouselNext";var lr=f(require("react"),1),Qe=f(require("@radix-ui/react-popover"),1);var xa=require("react/jsx-runtime"),Lt=Qe.Root,Et=Qe.Trigger,vt=lr.forwardRef(({className:e,align:t="center",sideOffset:o=4,...a},i)=>(0,xa.jsx)(Qe.Portal,{children:(0,xa.jsx)(Qe.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-md 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})}));vt.displayName=Qe.Content.displayName;var ao=require("date-fns");var mr=require("lucide-react");var Do=require("@heroicons/react/16/solid"),B=require("react/jsx-runtime"),cr=({label:e,placeholder:t="Select a value",size:o=1,message:a,isError:i,disabled:n,dateFormat:l="dd/MM/yyyy",buttonProps:c,popoverProps:d,calendarProps:p})=>{let u=p?.selected||null;return(0,B.jsxs)("div",{children:[(0,B.jsxs)(Lt,{...d,children:[(0,B.jsx)(Et,{asChild:!0,children:(0,B.jsxs)(se,{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",(!u||!(u instanceof Date)&&typeof u=="object"&&(!("from"in u)||!u.from))&&"text-gray-500",i&&"border-red-500 ring-red-500 ring-1"),disabled:n,...c,children:[(0,B.jsx)("span",{className:"line-clamp-1 flex-1",children:u instanceof Date?(0,ao.format)(u,l):u&&typeof u=="object"&&"from"in u&&"to"in u?(0,B.jsx)(B.Fragment,{children:u.from?u.to?(0,B.jsxs)(B.Fragment,{children:[(0,ao.format)(u.from,l)," -"," ",(0,ao.format)(u.to,l)]}):(0,ao.format)(u.from,l):t}):t}),e&&(0,B.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,B.jsx)(mr.Calendar,{className:"ml-2 h-4 w-4 text-gray-500 flex-none"})]})}),(0,B.jsx)(vt,{className:"w-auto !p-0 border-none",children:(0,B.jsx)(Kt,{...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)(Do.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,B.jsx)(Do.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,B.jsx)("span",{className:r(i?"text-red-500":"text-gray-500",o===2?"text-sm":"text-xs"),children:a})]})]})};var xt=f(require("react"),1),D=f(require("@radix-ui/react-alert-dialog"),1);var ue=require("react/jsx-runtime"),dr=D.Root,pr=D.Trigger,ba=D.Portal,Io=xt.forwardRef(({className:e,...t},o)=>(0,ue.jsx)(D.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}));Io.displayName=D.Overlay.displayName;var ha=xt.forwardRef(({className:e,...t},o)=>(0,ue.jsxs)(ba,{children:[(0,ue.jsx)(Io,{}),(0,ue.jsx)(D.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=D.Content.displayName;var ya=({className:e,...t})=>(0,ue.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...t});ya.displayName="AlertDialogHeader";var wa=({className:e,...t})=>(0,ue.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...t});wa.displayName="AlertDialogFooter";var Na=xt.forwardRef(({className:e,...t},o)=>(0,ue.jsx)(D.Title,{ref:o,className:r("text-lg text-gray-900 font-semibold",e),...t}));Na.displayName=D.Title.displayName;var Pa=xt.forwardRef(({className:e,...t},o)=>(0,ue.jsx)(D.Description,{ref:o,className:r("text-sm text-muted-foreground",e),...t}));Pa.displayName=D.Description.displayName;var Ca=xt.forwardRef(({className:e,...t},o)=>(0,ue.jsx)(D.Action,{ref:o,className:r(Pe({variant:"primary"}),"",e),...t}));Ca.displayName=D.Action.displayName;var Ra=xt.forwardRef(({className:e,...t},o)=>(0,ue.jsx)(D.Cancel,{ref:o,className:r(Pe({variant:"secondary"}),e),...t}));Ra.displayName=D.Cancel.displayName;var io=require("react");var Ft=require("react/jsx-runtime"),Ta=(0,io.createContext)({align:"center"}),Mo=({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"},l={small:"text-sm",large:"text-lg"};return(0,Ft.jsx)("div",{className:r("mb-1 font-semibold",n[e],l[t],o&&"truncate",a),children:i})},Ao=({tagHeading:e="h2",size:t="small",color:o="pink",isTruncated:a=!1,className:i,children:n})=>{let l=e,c={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},d={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:p}=(0,io.useContext)(Ta);return(0,Ft.jsx)(l,{className:r("font-bold max-w-4xl",p==="center"?"mx-auto":p==="right"?"ml-auto":"",c[o],d[t],a&&"truncate",i),children:n})},Lo=({color:e="regular",size:t="small",marginTop:o="spacingX",isTruncated:a=!1,className:i,children:n})=>{let l={regular:"text-gray-500",white:"text-white/80"},c={small:"md:text-base text-sm",large:"md:text-lg text-base"},d={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:p}=(0,io.useContext)(Ta);return(0,Ft.jsx)("div",{className:r(p==="center"?"mx-auto max-w-3xl":p==="right"?"max-w-4xl ml-auto":"max-w-4xl",l[e],c[t],d[o],a&&"truncate",i),children:n})},Eo=({className:e,align:t="center",children:o})=>(0,Ft.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[t],e),children:(0,Ft.jsx)(Ta.Provider,{value:{align:t},children:o})});var Fo=require("lucide-react");var X=require("react/jsx-runtime");function ka({current:e,total:t,onChange:o}){let a=i=>(0,X.jsx)("li",{children:(0,X.jsx)("button",{className:r(ut({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>o(i),children:i})},i);return(0,X.jsx)("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:(0,X.jsxs)("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[t>1&&(0,X.jsx)("li",{children:(0,X.jsx)("button",{className:r(ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&o(e-1),children:(0,X.jsx)(Fo.ChevronLeft,{className:"h-4 w-4"})})}),t<=6?Array(t).fill(0).map((i,n)=>a(n+1)):(0,X.jsxs)(X.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,X.jsx)("li",{children:(0,X.jsx)("button",{className:r(ut({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,X.jsx)("button",{className:r(ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>o(e+3),children:"..."}),a(t)]}),t>1&&(0,X.jsx)("li",{children:(0,X.jsx)("button",{className:r(ut({variant:"secondary",size:"sm"})),disabled:e===t,onClick:()=>e<t&&o(e+1),children:(0,X.jsx)(Fo.ChevronRight,{className:"h-4 w-4"})})})]})})}var _o=f(require("react"),1),Ce=f(require("@radix-ui/react-tabs"),1);var Ho=require("react/jsx-runtime"),_t=Ce.Root,bt=_o.forwardRef(({className:e,size:t="sm",isDivider:o=!1,...a},i)=>(0,Ho.jsx)(Ce.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}));bt.displayName=Ce.List.displayName;var ht=_o.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(Ce.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}));ht.displayName=Ce.Trigger.displayName;var yt=_o.forwardRef(({className:e,...t},o)=>(0,Ho.jsx)(Ce.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}));yt.displayName=Ce.Content.displayName;var fr=require("react"),gr=require("@heroicons/react/24/outline"),ur=require("@heroicons/react/24/solid");var De=require("react/jsx-runtime"),vr=(0,fr.forwardRef)(({disabled:e,isError:t,message:o,label:a,className:i,inputClassName:n,size:l,rows:c=3,...d},p)=>(0,De.jsxs)("div",{className:r("relative",i,t&&"mobase-text-area-error"),children:[a&&(0,De.jsx)("span",{className:r("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),(0,De.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",l===2&&"text-base",n),rows:c,...d}),o&&(0,De.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[t?(0,De.jsx)(ur.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,De.jsx)(gr.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,De.jsx)("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:o})]}),(0,De.jsx)("style",{children:`
|
|
70
|
+
`})]}),rt=({className:e,children:t,title:o,shortTitle:i,qrImage:a,qrLink:n,logoQr:l,isQrForAll:c=!1,...d})=>(0,u.jsx)(at,{...d,children:(0,u.jsx)(We,{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,u.jsx)(qt,{className:"p-0",children:(0,u.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,u.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:t||(0,u.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,u.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,u.jsx)("div",{className:"flex-none",children:(0,u.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,u.jsxs)("div",{className:"flex-1 pl-4",children:[(0,u.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,u.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,u.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,u.jsx)("div",{className:"flex-none",children:(0,u.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,u.jsxs)("div",{className:"flex-1 pl-4",children:[(0,u.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,u.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,u.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,u.jsx)("div",{className:"flex-none",children:(0,u.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,u.jsxs)("div",{className:"flex-1 pl-4",children:[(0,u.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,u.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"," ",i||"Truy c\u1EADp ngay"]})]})]})]})}),(0,u.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,u.jsxs)("div",{className:"px-5 py-10 text-center",children:[o&&(0,u.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:o}),(0,u.jsxs)("div",{className:"relative",children:[c&&(0,u.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,u.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,u.jsx)(ml,{img:a,isQrForAll:c,children:n&&(0,u.jsx)(Ua.QRCodeSVG,{value:n,size:215,imageSettings:{src:`${l||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});var Za=require("react");var Dt=require("react"),Xa=f(require("ua-parser-js"),1),cl=()=>(0,Xa.default)().device.type==="mobile",dl=typeof window<"u"?Dt.useLayoutEffect:Dt.useEffect,qa=()=>{let[e,t]=(0,Dt.useState)(!1);return dl(()=>{t(cl())},[]),e};var je=require("react/jsx-runtime"),At=({action:e,newTab:t,offset:o,dialogQrProps:i,className:a,children:n,...l})=>{let[c,d]=(0,Za.useState)(!1),p=qa(),g=!!i?.qrLink,h=()=>{let U=g?i?.qrLink:e;return typeof U=="string"?U.trim():""},N=()=>{let U=h();!U&&typeof e!="function"||(typeof e=="function"?e():window.open(U,t?"_blank":"_self"))},H=(U,X=0)=>{let I=document.querySelector(U);if(!I)return;let gt=I.getBoundingClientRect().top+window.scrollY-X;window.scrollTo({top:gt,behavior:"smooth"})},Q=()=>{typeof e=="string"&&e.startsWith("#")?H(e,o):N()},W=()=>(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(ce,{...l,className:a,onClick:()=>d(!0),"data-name":"button-action-with-qr",children:n}),(0,je.jsx)(rt,{...i,open:c,onOpenChange:()=>d(!1),qrLink:i?.qrLink||""})]});return g?p?i?.isQrForAll?W():(0,je.jsx)(ce,{...l,className:a,onClick:N,"data-name":"button-action-with-qr",children:n}):W():(0,je.jsx)(ce,{...l,onClick:Q,className:r("cursor-pointer",a),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var It=f(require("react"),1),Po=require("@radix-ui/react-icons"),Ka=require("@radix-ui/react-slot");var xe=require("react/jsx-runtime"),mi=It.forwardRef(({className:e,...t},o)=>(0,xe.jsx)("nav",{ref:o,"aria-label":"breadcrumb",className:r("",e),...t}));mi.displayName="Breadcrumb";var ci=It.forwardRef(({className:e,...t},o)=>(0,xe.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}));ci.displayName="BreadcrumbList";var di=It.forwardRef(({className:e,...t},o)=>(0,xe.jsx)("li",{ref:o,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...t}));di.displayName="BreadcrumbItem";var pi=It.forwardRef(({asChild:e,className:t,...o},i)=>(0,xe.jsx)(e?Ka.Slot:"a",{ref:i,className:r("transition-colors hover:text-foreground",t),...o}));pi.displayName="BreadcrumbLink";var fi=It.forwardRef(({className:e,...t},o)=>(0,xe.jsx)("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...t}));fi.displayName="BreadcrumbPage";var gi=({children:e,className:t,...o})=>(0,xe.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",t),...o,children:e??(0,xe.jsx)(Po.ChevronRightIcon,{className:"w-2 h-2"})});gi.displayName="BreadcrumbSeparator";var ui=({className:e,...t})=>(0,xe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...t,children:[(0,xe.jsx)(Po.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,xe.jsx)("span",{className:"sr-only",children:"More"})]});ui.displayName="BreadcrumbElipssis";var Ro=f(require("react"),1);var To=require("date-fns/locale"),er=require("react-day-picker"),ko=require("lucide-react"),tr=f(require("lunisolar"),1);var Ya=f(require("react"),1),Zt=f(require("@radix-ui/react-checkbox"),1),Ja=require("@heroicons/react/16/solid"),vi=require("class-variance-authority");var Co=require("react/jsx-runtime"),pl=(0,vi.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"}}),fl=(0,vi.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Kt=Ya.forwardRef(({className:e,size:t,...o},i)=>(0,Co.jsx)(Zt.Root,{ref:i,className:r(pl({size:t}),e),...o,children:(0,Co.jsx)(Zt.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Co.jsx)(Ja.CheckIcon,{className:r(fl({size:t}))})})}));Kt.displayName=Zt.Root.displayName;var K=require("react/jsx-runtime"),gl=({date:e,cusContent:t})=>{let o=null;return o=(0,tr.default)(e).lunar,(0,K.jsxs)(K.Fragment,{children:[t?t(e):e.getDate(),o&&(0,K.jsx)("span",{className:"text-[8px] absolute top-1 right-0.5 leading-none luna-date hidden group-[.show-luna]:block",children:o.day})]})},ul={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 vl({isShow:e,setIsShow:t,lang:o}){let i=Ro.useId();return(0,K.jsx)("div",{className:"w-full p-3 pt-0",children:(0,K.jsxs)("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[(0,K.jsx)(Kt,{checked:e,id:`check-show-luna-${i}`,onCheckedChange:a=>{typeof a=="boolean"&&t(a)}}),(0,K.jsx)("label",{htmlFor:`check-show-luna-${i}`,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 bl=e=>e.getDay()===0||e.getDay()===6;function Yt({className:e,classNames:t,showOutsideDays:o=!1,enableLunaDate:i=!1,lang:a="vi",cusContentDay:n,...l}){let[c,d]=Ro.useState(!0);return(0,K.jsx)(er.DayPicker,{locale:a==="vi"?To.vi:To.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(Re({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",a==="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(Re({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",i&&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",a==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...t},modifiers:{weekend:bl},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,K.jsx)(ko.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,K.jsx)(ko.ChevronRight,{className:"h-6 w-6"}),DayContent:p=>(0,K.jsx)(gl,{date:p.date,cusContent:n}),Months:({children:p})=>(0,K.jsxs)("div",{className:"w-full",children:[(0,K.jsx)("div",{className:r("flex flex-col sm:flex-row months-wrapper"),children:p}),i&&(0,K.jsx)(vl,{isShow:c,setIsShow:d,lang:a})]})},formatters:a==="vi"?ul:{},...l})}Yt.displayName="Calendar";var E=f(require("react"),1),nr=f(require("embla-carousel-react"),1);var So=require("@heroicons/react/16/solid");var or=f(require("react"),1),ir=require("@radix-ui/react-slot"),ar=require("class-variance-authority");var rr=require("react/jsx-runtime"),ut=(0,ar.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"}}),Qe=or.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:i=!1,isDisabled:a=!1,...n},l)=>{let c=i?ir.Slot:"button",d=r(ut({variant:t,size:o,className:e}));return(0,rr.jsx)(c,{className:d,disabled:a,ref:l,...n,children:n.children})});Qe.displayName="IconButton";var de=require("react/jsx-runtime"),sr=E.createContext(null);function Do(){let e=E.useContext(sr);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Jt=E.forwardRef(({orientation:e="horizontal",opts:t,setApi:o,plugins:i,className:a,children:n,...l},c)=>{let[d,p]=(0,nr.default)({...t,axis:e==="horizontal"?"x":"y"},i),[g,h]=E.useState(!1),[N,H]=E.useState(!1),Q=E.useCallback(X=>{X&&(h(X.canScrollPrev()),H(X.canScrollNext()))},[]),W=E.useCallback(()=>{p?.scrollPrev()},[p]),te=E.useCallback(()=>{p?.scrollNext()},[p]),U=E.useCallback(X=>{X.key==="ArrowLeft"?(X.preventDefault(),W()):X.key==="ArrowRight"&&(X.preventDefault(),te())},[W,te]);return E.useEffect(()=>{!p||!o||o(p)},[p,o]),E.useEffect(()=>{if(p)return Q(p),p.on("reInit",Q),p.on("select",Q),()=>{p?.off("select",Q)}},[p,Q]),(0,de.jsx)(sr.Provider,{value:{carouselRef:d,api:p,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:W,scrollNext:te,canScrollPrev:g,canScrollNext:N},children:(0,de.jsx)("div",{ref:c,onKeyDownCapture:U,className:r("relative",a),role:"region","aria-roledescription":"carousel",...l,children:n})})});Jt.displayName="Carousel";var eo=E.forwardRef(({className:e,...t},o)=>{let{carouselRef:i,orientation:a}=Do();return(0,de.jsx)("div",{ref:i,className:"overflow-hidden",children:(0,de.jsx)("div",{ref:o,className:r("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});eo.displayName="CarouselContent";var to=E.forwardRef(({className:e,...t},o)=>{let{orientation:i}=Do();return(0,de.jsx)("div",{ref:o,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",i==="horizontal"?"pl-4":"pt-4",e),...t})});to.displayName="CarouselItem";var oo=E.forwardRef(({className:e,variant:t="secondary",size:o="default",...i},a)=>{let{orientation:n,scrollPrev:l,canScrollPrev:c}=Do();return(0,de.jsxs)(Qe,{ref:a,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:l,...i,children:[(0,de.jsx)(So.ChevronLeftIcon,{className:"h-6 w-6"}),(0,de.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});oo.displayName="CarouselPrevious";var io=E.forwardRef(({className:e,variant:t="secondary",size:o="default",...i},a)=>{let{orientation:n,scrollNext:l,canScrollNext:c}=Do();return(0,de.jsxs)(Qe,{ref:a,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:l,...i,children:[(0,de.jsx)(So.ChevronRightIcon,{className:"h-6 w-6"}),(0,de.jsx)("span",{className:"sr-only",children:"Next slide"})]})});io.displayName="CarouselNext";var lr=f(require("react"),1),Ue=f(require("@radix-ui/react-popover"),1);var bi=require("react/jsx-runtime"),Mt=Ue.Root,Lt=Ue.Trigger,vt=lr.forwardRef(({className:e,align:t="center",sideOffset:o=4,...i},a)=>(0,bi.jsx)(Ue.Portal,{children:(0,bi.jsx)(Ue.Content,{ref:a,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-md 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),...i})}));vt.displayName=Ue.Content.displayName;var ao=require("date-fns");var mr=require("lucide-react");var Ao=require("@heroicons/react/16/solid"),z=require("react/jsx-runtime"),cr=({label:e,placeholder:t="Select a value",size:o=1,message:i,isError:a,disabled:n,dateFormat:l="dd/MM/yyyy",buttonProps:c,popoverProps:d,calendarProps:p})=>{let g=p?.selected||null;return(0,z.jsxs)("div",{children:[(0,z.jsxs)(Mt,{...d,children:[(0,z.jsx)(Lt,{asChild:!0,children:(0,z.jsxs)(ce,{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",(!g||!(g instanceof Date)&&typeof g=="object"&&(!("from"in g)||!g.from))&&"text-gray-500",a&&"border-red-500 ring-red-500 ring-1"),disabled:n,...c,children:[(0,z.jsx)("span",{className:"line-clamp-1 flex-1",children:g instanceof Date?(0,ao.format)(g,l):g&&typeof g=="object"&&"from"in g&&"to"in g?(0,z.jsx)(z.Fragment,{children:g.from?g.to?(0,z.jsxs)(z.Fragment,{children:[(0,ao.format)(g.from,l)," -"," ",(0,ao.format)(g.to,l)]}):(0,ao.format)(g.from,l):t}):t}),e&&(0,z.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",a&&"text-red-500"),children:e}),(0,z.jsx)(mr.Calendar,{className:"ml-2 h-4 w-4 text-gray-500 flex-none"})]})}),(0,z.jsx)(vt,{className:"w-auto !p-0 border-none",children:(0,z.jsx)(Yt,{...p})})]}),i&&(0,z.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[a?(0,z.jsx)(Ao.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,z.jsx)(Ao.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,z.jsx)("span",{className:r(a?"text-red-500":"text-gray-500",o===2?"text-sm":"text-xs"),children:i})]})]})};var bt=f(require("react"),1),S=f(require("@radix-ui/react-alert-dialog"),1);var he=require("react/jsx-runtime"),dr=S.Root,pr=S.Trigger,xi=S.Portal,Io=bt.forwardRef(({className:e,...t},o)=>(0,he.jsx)(S.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}));Io.displayName=S.Overlay.displayName;var hi=bt.forwardRef(({className:e,...t},o)=>(0,he.jsxs)(xi,{children:[(0,he.jsx)(Io,{}),(0,he.jsx)(S.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})]}));hi.displayName=S.Content.displayName;var yi=({className:e,...t})=>(0,he.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...t});yi.displayName="AlertDialogHeader";var Ni=({className:e,...t})=>(0,he.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...t});Ni.displayName="AlertDialogFooter";var wi=bt.forwardRef(({className:e,...t},o)=>(0,he.jsx)(S.Title,{ref:o,className:r("text-lg text-gray-900 font-semibold",e),...t}));wi.displayName=S.Title.displayName;var Pi=bt.forwardRef(({className:e,...t},o)=>(0,he.jsx)(S.Description,{ref:o,className:r("text-sm text-muted-foreground",e),...t}));Pi.displayName=S.Description.displayName;var Ci=bt.forwardRef(({className:e,...t},o)=>(0,he.jsx)(S.Action,{ref:o,className:r(Re({variant:"primary"}),"",e),...t}));Ci.displayName=S.Action.displayName;var Ri=bt.forwardRef(({className:e,...t},o)=>(0,he.jsx)(S.Cancel,{ref:o,className:r(Re({variant:"secondary"}),e),...t}));Ri.displayName=S.Cancel.displayName;var ro=require("react");var Et=require("react/jsx-runtime"),Ti=(0,ro.createContext)({align:"center"}),Mo=({color:e="pink",size:t="small",isTruncated:o=!1,className:i,children:a})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},l={small:"text-sm",large:"text-lg"};return(0,Et.jsx)("div",{className:r("mb-1 font-semibold",n[e],l[t],o&&"truncate",i),children:a})},Lo=({tagHeading:e="h2",size:t="small",color:o="pink",isTruncated:i=!1,className:a,children:n})=>{let l=e,c={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},d={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:p}=(0,ro.useContext)(Ti);return(0,Et.jsx)(l,{className:r("font-bold max-w-4xl",p==="center"?"mx-auto":p==="right"?"ml-auto":"",c[o],d[t],i&&"truncate","text-balance md:text-wrap",a),children:n})},Eo=({color:e="regular",size:t="small",marginTop:o="spacingX",isTruncated:i=!1,className:a,children:n})=>{let l={regular:"text-gray-500",white:"text-white/80"},c={small:"md:text-base text-sm",large:"md:text-lg text-base"},d={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:p}=(0,ro.useContext)(Ti);return(0,Et.jsx)("div",{className:r(p==="center"?"mx-auto max-w-2xl":p==="right"?"max-w-4xl ml-auto":"max-w-4xl",l[e],c[t],d[o],i&&"truncate",a),children:n})},Fo=({className:e,align:t="center",children:o})=>(0,Et.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[t],e),children:(0,Et.jsx)(Ti.Provider,{value:{align:t},children:o})});var _o=require("lucide-react");var Z=require("react/jsx-runtime");function ki({current:e,total:t,onChange:o}){let i=a=>(0,Z.jsx)("li",{children:(0,Z.jsx)("button",{className:r(ut({variant:e===a?"outline":"secondary",size:"sm"})),onClick:()=>o(a),children:a})},a);return(0,Z.jsx)("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:(0,Z.jsxs)("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[t>1&&(0,Z.jsx)("li",{children:(0,Z.jsx)("button",{className:r(ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&o(e-1),children:(0,Z.jsx)(_o.ChevronLeft,{className:"h-4 w-4"})})}),t<=6?Array(t).fill(0).map((a,n)=>i(n+1)):(0,Z.jsxs)(Z.Fragment,{children:[i(1),e===1&&[i(2),i(3)],e>3&&(0,Z.jsx)("li",{children:(0,Z.jsx)("button",{className:r(ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>o(e-3),children:"..."})}),e>2&&e!==1&&e!==t&&i(e-1),e>1&&e<t&&i(e),e<t-1&&e!==1&&i(e+1),e===t&&[i(t-2),i(t-1)],e<t-2&&e!==t&&(0,Z.jsx)("button",{className:r(ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>o(e+3),children:"..."}),i(t)]}),t>1&&(0,Z.jsx)("li",{children:(0,Z.jsx)("button",{className:r(ut({variant:"secondary",size:"sm"})),disabled:e===t,onClick:()=>e<t&&o(e+1),children:(0,Z.jsx)(_o.ChevronRight,{className:"h-4 w-4"})})})]})})}var Ho=f(require("react"),1),Te=f(require("@radix-ui/react-tabs"),1);var zo=require("react/jsx-runtime"),Ft=Te.Root,xt=Ho.forwardRef(({className:e,size:t="sm",isDivider:o=!1,...i},a)=>(0,zo.jsx)(Te.List,{ref:a,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),...i}));xt.displayName=Te.List.displayName;var ht=Ho.forwardRef(({className:e,...t},o)=>(0,zo.jsx)(Te.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}));ht.displayName=Te.Trigger.displayName;var yt=Ho.forwardRef(({className:e,...t},o)=>(0,zo.jsx)(Te.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}));yt.displayName=Te.Content.displayName;var fr=require("react"),gr=require("@heroicons/react/24/outline"),ur=require("@heroicons/react/24/solid");var Ae=require("react/jsx-runtime"),vr=(0,fr.forwardRef)(({disabled:e,isError:t,message:o,label:i,className:a,inputClassName:n,size:l,rows:c=3,...d},p)=>(0,Ae.jsxs)("div",{className:r("relative",a,t&&"mobase-text-area-error"),children:[i&&(0,Ae.jsx)("span",{className:r("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",l===2&&" -top-2.5 text-sm"),children:i}),(0,Ae.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",l===2&&"text-base",n),rows:c,...d}),o&&(0,Ae.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[t?(0,Ae.jsx)(ur.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Ae.jsx)(gr.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Ae.jsx)("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:o})]}),(0,Ae.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 Oo=f(require("react"),1),xl=1,hl=1e6;var Si=0;function yl(){return Si=(Si+1)%Number.MAX_SAFE_INTEGER,Si.toString()}var Di=new Map,br=e=>{if(Di.has(e))return;let t=setTimeout(()=>{Di.delete(e),no({type:"REMOVE_TOAST",toastId:e})},hl);Di.set(e,t)},Nl=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,xl)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{let{toastId:o}=t;return o?br(o):e.toasts.forEach(i=>{br(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===o||o===void 0?{...i,open:!1}:i)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};default:return e}},Bo=[],Vo={toasts:[]};function no(e){Vo=Nl(Vo,e),Bo.forEach(t=>{t(Vo)})}function Ai({...e}){let t=yl(),o=a=>no({type:"UPDATE_TOAST",toast:{...a,id:t}}),i=()=>no({type:"DISMISS_TOAST",toastId:t});return no({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||i()}}}),{id:t,dismiss:i,update:o}}function Go(){let[e,t]=Oo.useState(Vo);return Oo.useEffect(()=>(Bo.push(t),()=>{let o=Bo.indexOf(t);o>-1&&Bo.splice(o,1)}),[e]),{...e,toast:Ai,dismiss:o=>no({type:"DISMISS_TOAST",toastId:o})}}var Nt=f(require("react"),1),B=f(require("@radix-ui/react-toast"),1),xr=require("class-variance-authority");var nt=require("@heroicons/react/20/solid"),pe=require("react/jsx-runtime"),hr=B.Provider,Ii=Nt.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(B.Viewport,{ref:o,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),...t}));Ii.displayName=B.Viewport.displayName;var wl=(0,xr.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"}}),Mi=Nt.forwardRef(({className:e,variant:t="sucess",children:o,...i},a)=>(0,pe.jsxs)(B.Root,{ref:a,className:r(wl({variant:t}),e),...i,children:[(0,pe.jsxs)("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[t==="sucess"&&(0,pe.jsx)(nt.CheckCircleIcon,{className:"w-5 h-5 text-green-500"}),t==="warning"&&(0,pe.jsx)(nt.ExclamationTriangleIcon,{className:"w-5 h-5 text-yellow-500"}),t==="error"&&(0,pe.jsx)(nt.InformationCircleIcon,{className:"w-5 h-5 text-red-500"})]}),o]}));Mi.displayName=B.Root.displayName;var Li=Nt.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(B.Action,{ref:o,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),...t}));Li.displayName=B.Action.displayName;var Ei=Nt.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(B.Close,{ref:o,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":"",...t,children:(0,pe.jsx)(nt.XMarkIcon,{className:"h-5 w-5"})}));Ei.displayName=B.Close.displayName;var Fi=Nt.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(B.Title,{ref:o,className:r("text-base font-semibold leading-tight",e),...t}));Fi.displayName=B.Title.displayName;var _i=Nt.forwardRef(({className:e,...t},o)=>(0,pe.jsx)(B.Description,{ref:o,className:r("text-sm opacity-90",e),...t}));_i.displayName=B.Description.displayName;var Xe=require("react/jsx-runtime");function yr(){let{toasts:e}=Go();return(0,Xe.jsxs)(hr,{children:[e.map(function({id:t,title:o,description:i,action:a,...n}){return(0,Xe.jsxs)(Mi,{...n,children:[(0,Xe.jsxs)("div",{className:"grid gap-2",children:[o&&(0,Xe.jsx)(Fi,{children:o}),i&&(0,Xe.jsx)(_i,{children:i})]}),a,(0,Xe.jsx)(Ei,{})]},t)}),(0,Xe.jsx)(Ii,{})]})}var Nr=f(require("react"),1),wr=require("@radix-ui/react-slot"),Pr=require("class-variance-authority");var Cr=require("react/jsx-runtime"),Hi=(0,Pr.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"}}),wt=Nr.forwardRef(({className:e,variant:t="default",size:o="default",asChild:i=!1,isDisabled:a=!1,...n},l)=>{let c=i?wr.Slot:"button",d=r(Hi({variant:t,size:o,className:e}));return(0,Cr.jsx)(c,{className:d,disabled:a,ref:l,...n,children:n.children})});wt.displayName="TextButton";var zi=f(require("react"),1),ye=f(require("@radix-ui/react-tooltip"),1);var Oi=require("react/jsx-runtime"),Rr=ye.Provider,Tr=ye.Root,kr=ye.Trigger,Bi=zi.forwardRef((e,t)=>(0,Oi.jsx)(ye.Arrow,{ref:t,className:r("drop-shadow-md",e.className),...e}));Bi.displayName=ye.Arrow.displayName;var Vi=zi.forwardRef(({className:e,type:t="dark",sideOffset:o=4,...i},a)=>(0,Oi.jsx)(ye.Content,{ref:a,sideOffset:o,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",t==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...i}));Vi.displayName=ye.Content.displayName;var st=require("react"),_t=require("@heroicons/react/16/solid");var fe=require("react/jsx-runtime"),Sr=(0,st.forwardRef)(({disabled:e,isError:t,message:o,label:i,className:a,inputClassName:n,withClearButton:l,size:c,onChange:d,onFocus:p,onClickClear:g,value:h,defaultValue:N,type:H="text",...Q},W)=>{let[te,U]=(0,st.useState)(!1),X=(0,st.useRef)(null),I=q=>{q&&!te&&U(!0),!q&&te&&U(!1)},Wt=q=>{l&&I(q.target.value),d?.(q)},gt=q=>{l&&I(q.target.value),p?.(q)},jt=()=>{let q=X.current?.querySelector("input");q&&(g?.(q.value),q.value="",q.focus(),U(!1))};return(0,st.useEffect)(()=>{I(N||h)},[h,N]),(0,fe.jsxs)("div",{className:r(a,t&&"mobase-text-input-error"),ref:X,children:[(0,fe.jsxs)("div",{className:"relative",children:[i&&(0,fe.jsx)("span",{className:r("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",c===2&&" -top-2.5 text-sm"),children:i}),(0,fe.jsx)("input",{disabled:e,type:H,ref:W,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",c===2&&"h-12 text-base",n),onChange:Wt,onFocus:gt,value:h,defaultValue:N,...Q}),l&&te&&(0,fe.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:jt,children:(0,fe.jsx)(_t.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),o&&(0,fe.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[t?(0,fe.jsx)(_t.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,fe.jsx)(_t.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,fe.jsx)("span",{className:r("text-gray-500 ",c===2?"text-sm":"text-xs"),children:o})]}),(0,fe.jsx)("style",{children:`
|
|
98
98
|
.mobase-text-input-box:hover {
|
|
99
99
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
100
100
|
}
|
|
@@ -117,54 +117,26 @@
|
|
|
117
117
|
color: rgb(var(--mobase-red-500) / 1);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`})]})});var Go=f(require("html-react-parser"),1);var Ie=require("react/jsx-runtime"),xe=({idSection:e,className:t,background:o,children:a})=>(0,Ie.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",t),style:{background:o},children:(0,Ie.jsx)("div",{className:"wrapper relative",children:a})}),k=({align:e="center",tagline:t,title:o,description:a,tagHeading:i="h2",colorScheme:n="regular",sizeHeading:l="small",className:c})=>{let d=n==="regular"?"pink":n==="pink"?"regular":"white",p=n==="pink"?"pink":n==="white"?"white":"regular",u=n==="white"?"white":"regular";return(0,Ie.jsxs)(Eo,{align:e,className:c,children:[t&&(0,Ie.jsx)(Mo,{color:d,children:t}),o&&(0,Ie.jsx)(Ao,{tagHeading:i,color:p,size:l,children:(0,Go.default)(o)}),a&&(0,Ie.jsx)(Lo,{color:u,marginTop:l==="large"?"spacing2Xl":"spacingX",children:(0,Go.default)(a)})]})},_=({align:e,isFullInMobile:t=!1,buttons:o,className:a})=>o?.length===0?null:(0,Ie.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:l,...c}=i;return(0,Ie.jsx)(Mt,{...c,className:r(t&&"w-full md:w-auto",i?.className),children:(0,Go.default)(l)},n)})});var $o=f(require("html-react-parser"),1),Mr=require("@heroicons/react/24/solid");var y=require("react/jsx-runtime"),Dr=({testimonial:e,isHiddenOnMobile:t=!1,index:o=0,itemCount:a})=>(0,y.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,y.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,y.jsxs)("div",{className:"testimonial-item-width",children:[(0,y.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,y.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,y.jsx)("img",{src:e?.avatar,loading:"lazy",className:"h-full w-full object-cover",alt:e.name})}),(0,y.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,y.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,y.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,$o.default)(e.position)})]})]}),(0,y.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,y.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,$o.default)(e.shortTitle)}),e?.description&&(0,y.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,$o.default)(e.description)})]}),(0,y.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,y.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&(0,y.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>(0,y.jsx)(Mr.StarIcon,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),Ir=({dataHeading:e,dataTestimonials:t,dataButtons:o})=>(0,y.jsxs)(y.Fragment,{children:[e&&(0,y.jsx)(k,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:e.align,colorScheme:"pink",sizeHeading:e.sizeHeading,className:e.className}),(t?.length??0)>0&&(0,y.jsx)("div",{className:"testimonials scroll-hidden relative overflow-x-scroll py-2 md:overflow-hidden -my-2 -mx-5 sm:mx-0",children:(0,y.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((a,i)=>(0,y.jsx)(Dr,{testimonial:a,index:i,itemCount:t?.length||0},i)),(t?.length??0)>3&&t?.map((a,i)=>(0,y.jsx)(Dr,{testimonial:a,isHiddenOnMobile:!0},i))]})}),o&&(0,y.jsx)(_,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"center"}),(0,y.jsx)("style",{children:`
|
|
121
|
-
${(t?.length??0)>3&&`
|
|
122
|
-
@media screen and (min-width: 640px) {
|
|
123
|
-
.testimonials {
|
|
124
|
-
--items-count: ${t?.length||0};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.testimonials-slider {
|
|
128
|
-
animation: scroll-infinite linear infinite;
|
|
129
|
-
animation-duration: calc(var(--items-count) * 5s);
|
|
130
|
-
}
|
|
131
|
-
.testimonials-slider:hover {
|
|
132
|
-
animation-play-state: paused;
|
|
133
|
-
}
|
|
134
|
-
.testimonial-item-width {
|
|
135
|
-
width: ${(t?.length??0)===4?"410px":"320px"};
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
@keyframes scroll-infinite {
|
|
139
|
-
0% {
|
|
140
|
-
transform: translateX(0);
|
|
141
|
-
}
|
|
142
|
-
100% {
|
|
143
|
-
transform: translateX(calc(${(t?.length??0)===4?"-476px":"-386px"} * var(--items-count)));
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
`}
|
|
147
|
-
|
|
148
|
-
`})]}),wl=({template:e,dataHeading:t,dataTestimonials:o,dataButtons:a})=>{switch(e){case 1:return(0,y.jsx)(Ir,{dataHeading:t,dataTestimonials:o,dataButtons:a});default:return(0,y.jsx)(Ir,{dataHeading:t,dataTestimonials:o,dataButtons:a})}},Nl=({template:e,dataHeading:t,dataTestimonials:o,dataButtons:a})=>(0,y.jsx)(y.Fragment,{children:wl({template:e,dataHeading:t,dataTestimonials:o,dataButtons:a})}),Ar=({template:e=1,background:t,className:o,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:l})=>(0,y.jsx)(xe,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${o||""}`,idSection:a,background:t,children:(0,y.jsx)(Nl,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:l})});var Wo=require("@heroicons/react/24/outline");var be=require("react");var Me=require("react/jsx-runtime"),Lr=(0,be.forwardRef)(({value:e=0,min:t=0,max:o=999,disabled:a=!1,disabledInput:i=!1,step:n=1,inputClassName:l="",stepperClassName:c="",className:d="",onChange:p=()=>{},onChangeInputStepper:u,onDecrement:h,onIncrement:N,...L},j)=>{let Q=(0,be.useRef)(null),[q,Ne]=(0,be.useState)(!1),[S,M]=(0,be.useState)(!1),[ft,Dt]=(0,be.useState)(""),gt=(0,be.useRef)(null),U=w=>{Number(w)>=o?Ne(!0):Ne(!1),Number(w)>t?M(!1):M(!0)},qs=()=>{if(a||q)return;let w=Q?.current?.querySelector("input");if(!w)return;let ne=0;ne=Math.min(Number(w.value)+n,o),U(ne),w.value=String(ne),Dt(w.value||""),u?.(w.value),N?.(w.value)},Zs=()=>{if(a||S)return;let w=Q?.current?.querySelector("input");if(!w)return;let ne=0;ne=Math.max(Number(w.value)-n,0),U(ne),w.value=String(ne),Dt(w.value||""),u?.(w.value),h?.(w.value)},Ks=w=>{if(!w)return;let ne=w?.target?.value;ne?.match(/^[0-9]*$/)||(ne=ne.replace(/[^0-9]/g,"")),U(ne);let bo=parseInt(ne,10);Number.isNaN(bo)||bo<t?w.target.value=String(t):bo>=o?w.target.value=String(o):w.target.value=String(bo),Dt(w?.target?.value||""),u?.(w.target.value),p?.(w)};return(0,be.useEffect)(()=>{let w=Q?.current?.querySelector("input");w&&U(w?.value)},[]),(0,be.useEffect)(()=>{let w=Q?.current?.querySelector("input");w&>?.current&&(w.style.width=`${gt.current.offsetWidth+10}px`)},[ft]),(0,Me.jsxs)("div",{ref:Q,className:"flex items-center",children:[(0,Me.jsx)(je,{id:"btn-minus",className:r(!S&&!a?"cursor-pointer text-pink-500":"text-gray-400 cursor-default ","w-9 h-9",c),variant:"transparent",onClick:Zs,children:(0,Me.jsx)(Wo.MinusCircleIcon,{className:"w-7 h-7 "})}),(0,Me.jsxs)("div",{className:"text-center font-semibold",children:[(0,Me.jsx)("input",{pattern:"[0-9]*",inputMode:"numeric",defaultValue:e,ref:j,min:t,max:o,onChange:w=>Ks(w),id:"numberInput",disabled:a||i,autoComplete:"off",...L,className:r("text-gray-800 text-base min-w-8 w-8 h-8 transition-width duration-100 focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 rounded-md text-center bg-white",l)}),(0,Me.jsx)("span",{ref:gt,style:{visibility:"hidden",position:"absolute",whiteSpace:"pre"},children:ft||" "})]}),(0,Me.jsx)(je,{id:"btn-plus",className:r(!q&&!a?"cursor-pointer text-pink-500":"text-gray-400 cursor-default","w-9 h-9",c),variant:"transparent",onClick:qs,children:(0,Me.jsx)(Wo.PlusCircleIcon,{className:"w-7 h-7 "})})]})});var Ae=f(require("react"),1),Xe=require("@heroicons/react/16/solid"),Er=require("@heroicons/react/24/outline"),b=f(require("@radix-ui/react-select"),1);var C=require("react/jsx-runtime"),Fr=Ae.forwardRef(({className:e,children:t,label:o,message:a,size:i,isError:n,disabled:l,...c},d)=>(0,C.jsxs)("div",{ref:d,className:r("select-mobase relative",e,l?"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,C.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,C.jsx)(b.Root,{disabled:l,...c,children:t}),a&&(0,C.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,C.jsx)(Xe.XCircleIcon,{width:16,height:16}):(0,C.jsx)(Er.QuestionMarkCircleIcon,{width:16,height:16}),(0,C.jsx)("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),_r=b.Value,Ga=Ae.forwardRef(({className:e,children:t,...o},a)=>(0,C.jsxs)(b.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,C.jsx)("div",{className:"line-clamp-1 text-left",children:t}),(0,C.jsx)(b.Icon,{asChild:!0,children:(0,C.jsx)(Xe.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Ga.displayName=b.Trigger.displayName;var jo=Ae.forwardRef(({className:e,...t},o)=>(0,C.jsx)(b.ScrollUpButton,{ref:o,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:(0,C.jsx)(Xe.ChevronUpIcon,{className:"h-5 w-5"})}));jo.displayName=b.ScrollUpButton.displayName;var Qo=Ae.forwardRef(({className:e,...t},o)=>(0,C.jsx)(b.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,C.jsx)(Xe.ChevronDownIcon,{className:"h-5 w-5"})}));Qo.displayName=b.ScrollDownButton.displayName;var $a=Ae.forwardRef(({className:e,children:t,position:o="popper",...a},i)=>(0,C.jsx)(b.Portal,{children:(0,C.jsxs)(b.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-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",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,C.jsx)(jo,{}),(0,C.jsx)(b.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,C.jsx)(Qo,{})]})}));$a.displayName=b.Content.displayName;var Hr=Ae.forwardRef(({className:e,children:t,...o},a)=>(0,C.jsx)(b.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...o,children:t})),Wa=Ae.forwardRef(({className:e,...t},o)=>(0,C.jsx)(b.Label,{ref:o,className:r("pr-2 pl-8 py-1.5 text-sm font-semibold z-[1]",e),...t}));Wa.displayName=b.Label.displayName;var zr=Ae.forwardRef(({className:e,children:t,...o},a)=>(0,C.jsxs)(b.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 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,C.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,C.jsx)(b.ItemIndicator,{children:(0,C.jsx)(Xe.CheckIcon,{className:"h-4 w-4"})})}),(0,C.jsx)(b.ItemText,{children:t})]})),ja=Ae.forwardRef(({className:e,...t},o)=>(0,C.jsx)(b.Separator,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));ja.displayName=b.Separator.displayName;var Re=f(require("react"),1),A=f(require("@radix-ui/react-navigation-menu"),1),Br=require("class-variance-authority"),Vr=require("@heroicons/react/16/solid");var de=require("react/jsx-runtime"),Or=Re.createContext(null),Pl=({value:e,children:t})=>(0,de.jsx)(Or.Provider,{value:e,children:t}),Cl=()=>{let e=Re.useContext(Or);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},no=Re.forwardRef(({className:e,children:t,alignDropdown:o="left",...a},i)=>(0,de.jsx)(Pl,{value:{alignDropdown:o},children:(0,de.jsx)(A.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:t})}));no.displayName=A.Root.displayName;var so=Re.forwardRef(({className:e,...t},o)=>(0,de.jsx)(A.List,{ref:o,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...t}));so.displayName=A.List.displayName;var lo=A.Item,mo=(0,Br.cva)(Pe({variant:"transparent",size:"sm"})),co=Re.forwardRef(({className:e,children:t,...o},a)=>(0,de.jsxs)(A.Trigger,{ref:a,className:r(mo(),"group px-2",e),...o,children:[t," ",(0,de.jsx)(Vr.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));co.displayName=A.Trigger.displayName;var po=Re.forwardRef(({className:e,...t},o)=>{let{alignDropdown:a}=Cl();return(0,de.jsx)(A.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})});po.displayName=A.Content.displayName;var zt=A.Link,Rl=Re.forwardRef(({className:e,...t},o)=>(0,de.jsx)("div",{className:r("absolute left-0 top-full flex justify-center"),children:(0,de.jsx)(A.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})}));Rl.displayName=A.Viewport.displayName;var Tl=Re.forwardRef(({className:e,...t},o)=>(0,de.jsx)(A.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,de.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Tl.displayName=A.Indicator.displayName;var Gr=f(require("react"),1),fo=f(require("@radix-ui/react-switch"),1);var Qa=require("react/jsx-runtime"),Ua=Gr.forwardRef(({className:e,...t},o)=>(0,Qa.jsx)(fo.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,Qa.jsx)(fo.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")})}));Ua.displayName=fo.Root.displayName;var Pt=f(require("react"),1),st=f(require("@radix-ui/react-radio-group"),1),$r=require("lucide-react"),Xa=require("class-variance-authority");var Bt=require("react/jsx-runtime"),kl=(0,Xa.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"}}),Sl=(0,Xa.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Wr=Pt.createContext({size:"medium"});function Dl(){let e=Pt.useContext(Wr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var qa=Pt.forwardRef(({className:e,size:t,...o},a)=>(0,Bt.jsx)(Wr.Provider,{value:{size:t},children:(0,Bt.jsx)(st.Root,{className:r("grid gap-2",e),...o,ref:a})}));qa.displayName=st.Root.displayName;var Za=Pt.forwardRef(({className:e,...t},o)=>{let a=Dl(),{size:i}=a??{};return(0,Bt.jsx)(st.Item,{ref:o,className:r(kl({size:i}),e),...t,children:(0,Bt.jsx)(st.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,Bt.jsx)($r.Circle,{className:r(Sl({size:i}))})})})});Za.displayName=st.Item.displayName;var Le=require("react/jsx-runtime"),Il=({className:e="",icon:t="",title:o,children:a="",href:i="",newTab:n=!1})=>{let l=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Le.jsx)("li",{className:"",children:(0,Le.jsx)(zt,{asChild:!0,children:(0,Le.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,...l,children:[t&&(0,Le.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,Le.jsx)("img",{src:t,loading:"lazy",className:"w-7 h-7 object-cover",alt:o})}),(0,Le.jsxs)("div",{className:" ",children:[(0,Le.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:o}),a&&(0,Le.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},jr=Il;var Te=require("react/jsx-runtime"),Ml=({data:e,alignDropdown:t})=>(0,Te.jsx)(no,{alignDropdown:t,children:(0,Te.jsx)(so,{children:e.map(o=>{let a=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return o.hasDropdown?(0,Te.jsxs)(lo,{className:"relative",children:[(0,Te.jsx)(co,{children:o.title}),(0,Te.jsx)(po,{children:(0,Te.jsx)("ul",{className:r("grid w-[300px] p-2 grid-cols-1",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,Te.jsx)(jr,{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,Te.jsx)(lo,{className:"relative",children:(0,Te.jsx)(zt,{href:o.url,className:mo(),...a,children:o.title})},o.id)})})}),Qr=Ml;var Xo=require("react");var Uo=[.24,.25,.05,1];var Zr=require("react-use"),Ka=f(require("next/router"),1);var qe=require("react/jsx-runtime"),Al=({className:e="",icon:t="",title:o,children:a="",href:i="",newTab:n=!1})=>{let l=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,qe.jsx)("li",{className:"min-h-8",children:(0,qe.jsxs)("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...l,children:[t&&(0,qe.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,qe.jsx)("img",{src:t,loading:"lazy",className:"w-6 h-6 object-cover",alt:o})}),(0,qe.jsxs)("div",{className:" ",children:[(0,qe.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:o}),a&&(0,qe.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ur=Al;var Xr=require("framer-motion"),Ee=require("react/jsx-runtime"),Ll={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Uo}},exit:{opacity:0,transition:{duration:.05}}},El=({data:e})=>(0,Ee.jsx)(Ye,{type:"single",collapsible:!0,children:e.map(t=>{let o=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Ee.jsx)(Xr.motion.div,{variants:Ll,children:t.hasDropdown?(0,Ee.jsxs)(Je,{value:t.id,children:[(0,Ee.jsx)(et,{className:"py-3",children:t.title}),(0,Ee.jsx)(tt,{children:(0,Ee.jsx)("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:t.subMenu&&t.subMenu.map(a=>(0,Ee.jsx)(Ur,{title:a.title,href:a.url,newTab:a.newTab,icon:t.dropDownCompact===!0?a.icon:"",children:t.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,Ee.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)})}),qr=El;var Fe=require("framer-motion");var v=require("react/jsx-runtime"),Fl=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,_l=({data:e,className:t})=>{let[o,a]=(0,Xo.useState)(!1);(0,Zr.useKey)("Escape",()=>a(!1)),(0,Xo.useEffect)(()=>{if(!o)return;let l=Fl();function c(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Ka.default.events.on("routeChangeComplete",c),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:l||0,behavior:"instant"}),Ka.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:Uo}},exit:{opacity:0,transition:{duration:.15}}};return(0,v.jsxs)("div",{className:r(t),children:[(0,v.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,v.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,v.jsx)(Fe.motion.div,{animate:o?"hidden":"visible",variants:i,children:(0,v.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,v.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,v.jsx)(Fe.motion.div,{animate:o?"visible":"hidden",variants:i,children:(0,v.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,v.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,v.jsx)(Fe.LazyMotion,{features:Fe.domAnimation,children:(0,v.jsx)(Fe.AnimatePresence,{mode:"wait",children:o&&(0,v.jsxs)(Fe.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,v.jsx)(qr,{data:e}),(0,v.jsxs)("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[(0,v.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,v.jsxs)("div",{className:"flex flex-nowrap",children:[(0,v.jsx)("div",{className:"flex-initial",children:(0,v.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,v.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,v.jsx)("div",{className:"ml-3 flex-initial",children:(0,v.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,v.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,v.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,v.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,v.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,v.jsx)("a",{href:`tel:${Oe.Support.Hotline}`,className:"text-gray-600",children:Oe.Support.Hotline_Format})]}),(0,v.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,v.jsx)("a",{href:`mailto:${Oe.Support.Email}`,className:"text-gray-600",children:Oe.Support.Email})]})]}),(0,v.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,v.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,v.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,v.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,v.jsxs)("g",{children:[(0,v.jsx)("title",{children:"Asset 1"}),(0,v.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 $o=require("@heroicons/react/24/outline");var Ne=require("react");var Ie=require("react/jsx-runtime"),Dr=(0,Ne.forwardRef)(({value:e=0,min:t=0,max:o=999,disabled:i=!1,disabledInput:a=!1,step:n=1,inputClassName:l="",stepperClassName:c="",className:d="",onChange:p=()=>{},onChangeInputStepper:g,onDecrement:h,onIncrement:N,...H},Q)=>{let W=(0,Ne.useRef)(null),[te,U]=(0,Ne.useState)(!1),[X,I]=(0,Ne.useState)(!1),[Wt,gt]=(0,Ne.useState)(""),jt=(0,Ne.useRef)(null),q=w=>{Number(w)>=o?U(!0):U(!1),Number(w)>t?I(!1):I(!0)},Ks=()=>{if(i||te)return;let w=W?.current?.querySelector("input");if(!w)return;let me=0;me=Math.min(Number(w.value)+n,o),q(me),w.value=String(me),gt(w.value||""),g?.(w.value),N?.(w.value)},Ys=()=>{if(i||X)return;let w=W?.current?.querySelector("input");if(!w)return;let me=0;me=Math.max(Number(w.value)-n,0),q(me),w.value=String(me),gt(w.value||""),g?.(w.value),h?.(w.value)},Js=w=>{if(!w)return;let me=w?.target?.value;me?.match(/^[0-9]*$/)||(me=me.replace(/[^0-9]/g,"")),q(me);let ho=parseInt(me,10);Number.isNaN(ho)||ho<t?w.target.value=String(t):ho>=o?w.target.value=String(o):w.target.value=String(ho),gt(w?.target?.value||""),g?.(w.target.value),p?.(w)};return(0,Ne.useEffect)(()=>{let w=W?.current?.querySelector("input");w&&q(w?.value)},[]),(0,Ne.useEffect)(()=>{let w=W?.current?.querySelector("input");w&&jt?.current&&(w.style.width=`${jt.current.offsetWidth+10}px`)},[Wt]),(0,Ie.jsxs)("div",{ref:W,className:"flex items-center",children:[(0,Ie.jsx)(Qe,{id:"btn-minus",className:r(!X&&!i?"cursor-pointer text-pink-500":"text-gray-400 cursor-default ","w-9 h-9",c),variant:"transparent",onClick:Ys,children:(0,Ie.jsx)($o.MinusCircleIcon,{className:"w-7 h-7 "})}),(0,Ie.jsxs)("div",{className:"text-center font-semibold",children:[(0,Ie.jsx)("input",{pattern:"[0-9]*",inputMode:"numeric",defaultValue:e,ref:Q,min:t,max:o,onChange:w=>Js(w),id:"numberInput",disabled:i||a,autoComplete:"off",...H,className:r("text-gray-800 text-base min-w-8 w-8 h-8 transition-width duration-100 focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 rounded-md text-center bg-white",l)}),(0,Ie.jsx)("span",{ref:jt,style:{visibility:"hidden",position:"absolute",whiteSpace:"pre"},children:Wt||" "})]}),(0,Ie.jsx)(Qe,{id:"btn-plus",className:r(!te&&!i?"cursor-pointer text-pink-500":"text-gray-400 cursor-default","w-9 h-9",c),variant:"transparent",onClick:Ks,children:(0,Ie.jsx)($o.PlusCircleIcon,{className:"w-7 h-7 "})})]})});var Me=f(require("react"),1),qe=require("@heroicons/react/16/solid"),Ar=require("@heroicons/react/24/outline"),x=f(require("@radix-ui/react-select"),1);var C=require("react/jsx-runtime"),Ir=Me.forwardRef(({className:e,children:t,label:o,message:i,size:a,isError:n,disabled:l,...c},d)=>(0,C.jsxs)("div",{ref:d,className:r("select-mobase relative",e,l?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",a===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[o&&(0,C.jsx)("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",a===2&&"text-sm -top-2.5",n&&"text-red-500"),children:o}),(0,C.jsx)(x.Root,{disabled:l,...c,children:t}),i&&(0,C.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,C.jsx)(qe.XCircleIcon,{width:16,height:16}):(0,C.jsx)(Ar.QuestionMarkCircleIcon,{width:16,height:16}),(0,C.jsx)("span",{className:r(a===2?"text-sm":"text-xs"),children:i})]})]})),Mr=x.Value,Gi=Me.forwardRef(({className:e,children:t,...o},i)=>(0,C.jsxs)(x.Trigger,{ref:i,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,C.jsx)("div",{className:"line-clamp-1 text-left",children:t}),(0,C.jsx)(x.Icon,{asChild:!0,children:(0,C.jsx)(qe.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Gi.displayName=x.Trigger.displayName;var Wo=Me.forwardRef(({className:e,...t},o)=>(0,C.jsx)(x.ScrollUpButton,{ref:o,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:(0,C.jsx)(qe.ChevronUpIcon,{className:"h-5 w-5"})}));Wo.displayName=x.ScrollUpButton.displayName;var jo=Me.forwardRef(({className:e,...t},o)=>(0,C.jsx)(x.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,C.jsx)(qe.ChevronDownIcon,{className:"h-5 w-5"})}));jo.displayName=x.ScrollDownButton.displayName;var $i=Me.forwardRef(({className:e,children:t,position:o="popper",...i},a)=>(0,C.jsx)(x.Portal,{children:(0,C.jsxs)(x.Content,{ref:a,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-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",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,...i,children:[(0,C.jsx)(Wo,{}),(0,C.jsx)(x.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,C.jsx)(jo,{})]})}));$i.displayName=x.Content.displayName;var Lr=Me.forwardRef(({className:e,children:t,...o},i)=>(0,C.jsx)(x.Group,{ref:i,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...o,children:t})),Wi=Me.forwardRef(({className:e,...t},o)=>(0,C.jsx)(x.Label,{ref:o,className:r("pr-2 pl-8 py-1.5 text-sm font-semibold z-[1]",e),...t}));Wi.displayName=x.Label.displayName;var Er=Me.forwardRef(({className:e,children:t,...o},i)=>(0,C.jsxs)(x.Item,{ref:i,className:r("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 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,C.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,C.jsx)(x.ItemIndicator,{children:(0,C.jsx)(qe.CheckIcon,{className:"h-4 w-4"})})}),(0,C.jsx)(x.ItemText,{children:t})]})),ji=Me.forwardRef(({className:e,...t},o)=>(0,C.jsx)(x.Separator,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));ji.displayName=x.Separator.displayName;var ke=f(require("react"),1),M=f(require("@radix-ui/react-navigation-menu"),1),Fr=require("class-variance-authority"),_r=require("@heroicons/react/16/solid");var ge=require("react/jsx-runtime"),Hr=ke.createContext(null),Pl=({value:e,children:t})=>(0,ge.jsx)(Hr.Provider,{value:e,children:t}),Cl=()=>{let e=ke.useContext(Hr);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},so=ke.forwardRef(({className:e,children:t,alignDropdown:o="left",...i},a)=>(0,ge.jsx)(Pl,{value:{alignDropdown:o},children:(0,ge.jsx)(M.Root,{ref:a,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...i,children:t})}));so.displayName=M.Root.displayName;var lo=ke.forwardRef(({className:e,...t},o)=>(0,ge.jsx)(M.List,{ref:o,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...t}));lo.displayName=M.List.displayName;var mo=M.Item,co=(0,Fr.cva)(Re({variant:"transparent",size:"sm"})),po=ke.forwardRef(({className:e,children:t,...o},i)=>(0,ge.jsxs)(M.Trigger,{ref:i,className:r(co(),"group px-2",e),...o,children:[t," ",(0,ge.jsx)(_r.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));po.displayName=M.Trigger.displayName;var fo=ke.forwardRef(({className:e,...t},o)=>{let{alignDropdown:i}=Cl();return(0,ge.jsx)(M.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",i!=="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 ",i==="left"&&"left-0",i==="right"&&"right-0",i==="center"&&" left-1/2 -translate-x-1/2 "),...t})});fo.displayName=M.Content.displayName;var Ht=M.Link,Rl=ke.forwardRef(({className:e,...t},o)=>(0,ge.jsx)("div",{className:r("absolute left-0 top-full flex justify-center"),children:(0,ge.jsx)(M.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})}));Rl.displayName=M.Viewport.displayName;var Tl=ke.forwardRef(({className:e,...t},o)=>(0,ge.jsx)(M.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,ge.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Tl.displayName=M.Indicator.displayName;var zr=f(require("react"),1),go=f(require("@radix-ui/react-switch"),1);var Qi=require("react/jsx-runtime"),Ui=zr.forwardRef(({className:e,...t},o)=>(0,Qi.jsx)(go.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,Qi.jsx)(go.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")})}));Ui.displayName=go.Root.displayName;var Pt=f(require("react"),1),lt=f(require("@radix-ui/react-radio-group"),1),Br=require("lucide-react"),Xi=require("class-variance-authority");var zt=require("react/jsx-runtime"),kl=(0,Xi.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"}}),Sl=(0,Xi.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Vr=Pt.createContext({size:"medium"});function Dl(){let e=Pt.useContext(Vr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var qi=Pt.forwardRef(({className:e,size:t,...o},i)=>(0,zt.jsx)(Vr.Provider,{value:{size:t},children:(0,zt.jsx)(lt.Root,{className:r("grid gap-2",e),...o,ref:i})}));qi.displayName=lt.Root.displayName;var Zi=Pt.forwardRef(({className:e,...t},o)=>{let i=Dl(),{size:a}=i??{};return(0,zt.jsx)(lt.Item,{ref:o,className:r(kl({size:a}),e),...t,children:(0,zt.jsx)(lt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,zt.jsx)(Br.Circle,{className:r(Sl({size:a}))})})})});Zi.displayName=lt.Item.displayName;var Le=require("react/jsx-runtime"),Al=({className:e="",icon:t="",title:o,children:i="",href:a="",newTab:n=!1})=>{let l=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Le.jsx)("li",{className:"",children:(0,Le.jsx)(Ht,{asChild:!0,children:(0,Le.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:a,...l,children:[t&&(0,Le.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,Le.jsx)("img",{src:t,loading:"lazy",className:"w-7 h-7 object-cover",alt:o})}),(0,Le.jsxs)("div",{className:" ",children:[(0,Le.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:o}),i&&(0,Le.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:i})]})]})})})},Or=Al;var Se=require("react/jsx-runtime"),Il=({data:e,alignDropdown:t})=>(0,Se.jsx)(so,{alignDropdown:t,children:(0,Se.jsx)(lo,{children:e.map(o=>{let i=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return o.hasDropdown?(0,Se.jsxs)(mo,{className:"relative",children:[(0,Se.jsx)(po,{children:o.title}),(0,Se.jsx)(fo,{children:(0,Se.jsx)("ul",{className:r("grid w-[300px] p-2 grid-cols-1",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(a=>(0,Se.jsx)(Or,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]},o.id):(0,Se.jsx)(mo,{className:"relative",children:(0,Se.jsx)(Ht,{href:o.url,className:co(),...i,children:o.title})},o.id)})})}),Gr=Il;var Uo=require("react");var Qo=[.24,.25,.05,1];var Qr=require("react-use"),Ki=f(require("next/router"),1);var Ze=require("react/jsx-runtime"),Ml=({className:e="",icon:t="",title:o,children:i="",href:a="",newTab:n=!1})=>{let l=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Ze.jsx)("li",{className:"min-h-8",children:(0,Ze.jsxs)("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:a,...l,children:[t&&(0,Ze.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,Ze.jsx)("img",{src:t,loading:"lazy",className:"w-6 h-6 object-cover",alt:o})}),(0,Ze.jsxs)("div",{className:" ",children:[(0,Ze.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:o}),i&&(0,Ze.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:i})]})]})})},$r=Ml;var Wr=require("framer-motion"),Ee=require("react/jsx-runtime"),Ll={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Qo}},exit:{opacity:0,transition:{duration:.05}}},El=({data:e})=>(0,Ee.jsx)(Je,{type:"single",collapsible:!0,children:e.map(t=>{let o=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Ee.jsx)(Wr.motion.div,{variants:Ll,children:t.hasDropdown?(0,Ee.jsxs)(et,{value:t.id,children:[(0,Ee.jsx)(tt,{className:"py-3",children:t.title}),(0,Ee.jsx)(ot,{children:(0,Ee.jsx)("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:t.subMenu&&t.subMenu.map(i=>(0,Ee.jsx)($r,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]}):(0,Ee.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)})}),jr=El;var Fe=require("framer-motion");var v=require("react/jsx-runtime"),Fl=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,_l=({data:e,className:t})=>{let[o,i]=(0,Uo.useState)(!1);(0,Qr.useKey)("Escape",()=>i(!1)),(0,Uo.useEffect)(()=>{if(!o)return;let l=Fl();function c(){i(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Ki.default.events.on("routeChangeComplete",c),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:l||0,behavior:"instant"}),Ki.default.events.off("routeChangeComplete",c)}},[o]);let a={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:Qo}},exit:{opacity:0,transition:{duration:.15}}};return(0,v.jsxs)("div",{className:r(t),children:[(0,v.jsxs)("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>i(!o),children:[(0,v.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,v.jsx)(Fe.motion.div,{animate:o?"hidden":"visible",variants:a,children:(0,v.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,v.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,v.jsx)(Fe.motion.div,{animate:o?"visible":"hidden",variants:a,children:(0,v.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,v.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,v.jsx)(Fe.LazyMotion,{features:Fe.domAnimation,children:(0,v.jsx)(Fe.AnimatePresence,{mode:"wait",children:o&&(0,v.jsxs)(Fe.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,v.jsx)(jr,{data:e}),(0,v.jsxs)("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[(0,v.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,v.jsxs)("div",{className:"flex flex-nowrap",children:[(0,v.jsx)("div",{className:"flex-initial",children:(0,v.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,v.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,v.jsx)("div",{className:"ml-3 flex-initial",children:(0,v.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,v.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,v.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,v.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,v.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,v.jsx)("a",{href:`tel:${Ge.Support.Hotline}`,className:"text-gray-600",children:Ge.Support.Hotline_Format})]}),(0,v.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,v.jsx)("a",{href:`mailto:${Ge.Support.Email}`,className:"text-gray-600",children:Ge.Support.Email})]})]}),(0,v.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,v.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,v.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,v.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,v.jsxs)("g",{children:[(0,v.jsx)("title",{children:"Asset 1"}),(0,v.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
|
|
149
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
|
|
150
122
|
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,v.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
|
|
151
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
|
|
152
|
-
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,v.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,v.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,v.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,v.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,v.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,v.jsx)("a",{className:"text-gray-600",href:`tel:${
|
|
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,v.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,v.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,v.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,v.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,v.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,v.jsx)("a",{className:"text-gray-600",href:`tel:${Ge.Business.Phome}`,children:Ge.Business.Phome_Format})]}),(0,v.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,v.jsxs)("a",{href:`mailto:${Ge.Business.Email}`,className:"text-gray-600",children:[" ",Ge.Business.Email]})]})]}),(0,v.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,v.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,v.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,v.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,v.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,v.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},Ur=_l;var Xr=f(require("html-react-parser"),1);var qr=require("@heroicons/react/16/solid"),Zr=require("react");var V=require("react/jsx-runtime"),Yi=({className:e,dataMenu:t,serviceInfo:o,hasDownloadApp:i=!1,navigationRight:a,isSticky:n=!0,alignDropdown:l="left"})=>{let{logo:c,name:d,url:p}=o||{},[g,h]=(0,Zr.useState)(!1);return(0,V.jsxs)("div",{className:r(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[(0,V.jsx)("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,V.jsx)("nav",{className:r("wrapper grid grid-cols-1 items-center lg:border-0 [--header-height:64px] "),style:{minHeight:"var(--header-height)"},children:(0,V.jsxs)("div",{className:"relative flex items-center ",children:[(0,V.jsxs)("a",{href:"/",title:"MoMo",className:"mr-3 flex-none w-9 h-9 overflow-hidden rounded-none hover:opacity-80",children:[(0,V.jsx)("span",{className:"sr-only",children:"MoMo home page"}),(0,V.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"})]}),o&&(0,V.jsxs)("a",{href:p,title:d,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,V.jsx)("img",{src:c,className:"w-9 h-9",alt:"MoMo"}),(0,V.jsx)("div",{className:"text-sm font-semibold leading-[1.1] text-pink-500 line-clamp-2",children:d&&(0,Xr.default)(d)})]}),(0,V.jsx)("div",{className:"relative lg:ml-2 xl:ml-4 hidden lg:flex items-center ",children:(0,V.jsx)(Gr,{data:t,alignDropdown:l})}),(0,V.jsxs)("div",{className:"ml-auto flex space-x-3 flex-nowrap items-center",children:[a&&a,i&&(0,V.jsxs)("div",{className:" hidden sm:flex",children:[(0,V.jsxs)(ce,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>h(!0),children:[" ",(0,V.jsx)(qr.ArrowDownTrayIcon,{className:"mr-1 w-4 h-4"})," T\u1EA3i V\xED MoMo"]}),(0,V.jsx)(rt,{open:g,onOpenChange:()=>h(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),(0,V.jsx)(Ur,{data:t,className:"lg:hidden "})]})]})})]})};Yi.displayName="HeaderNavigation";var Yr=require("react");var m=require("react/jsx-runtime"),Kr=({item:e})=>(0,m.jsx)("div",{className:"mt-3 flex w-full text-sm",children:(0,m.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,m.jsx)("span",{className:"relative flex-none h-5 w-5 md:h-6 md:w-6",children:(0,m.jsx)("img",{src:e.icon,className:"absolute inset-0"})}),(0,m.jsx)("span",{className:"block ",children:e.title})]})}),Hl=({primaryMenu:e,secondaryMenu:t})=>{let[o,i]=(0,Yr.useState)(null);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"footer-main order-2 py-7 text-white md:order-1 text-sm",children:(0,m.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,m.jsxs)("div",{className:"block grow md:w-44 md:shrink-0 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:e?.heading}),e?.lists?.map((a,n)=>(0,m.jsx)(Kr,{item:a},n))]}),(0,m.jsxs)("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 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:t?.heading}),(0,m.jsx)("div",{className:"flex flex-wrap",children:t?.lists?.map((a,n)=>(0,m.jsx)(Kr,{item:a},n))})]}),(0,m.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,m.jsxs)("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[(0,m.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,m.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,m.jsx)("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),(0,m.jsx)("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:za.Address})]}),(0,m.jsxs)("div",{className:"mt-1 text-sm",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:${oe.Support.Hotline}`,children:oe.Support.Hotline_Format}),(0,m.jsxs)("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),(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:${oe.Support.Email}`,children:oe.Support.Email})]}),(0,m.jsxs)("div",{className:"mt-1 text-sm",children:[(0,m.jsxs)("span",{className:"text-white text-opacity-50",children:["T\u1ED5ng \u0111\xE0i g\u1ECDi ra :"," "]}),(0,m.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${oe.Support.Phone_Ext_1}`,children:oe.Support.Phone_Ext_1_Format}),(0,m.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,m.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${oe.Support.Phone_Ext_2}`,children:oe.Support.Phone_Ext_2_Format}),(0,m.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,m.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${oe.Support.Phone_Ext_3}`,children:oe.Support.Phone_Ext_3_Format}),(0,m.jsx)("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),(0,m.jsx)("div",{className:"mt-3 flex",children:(0,m.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,m.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[(0,m.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,m.jsx)("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,m.jsxs)("g",{children:[(0,m.jsx)("title",{children:"Asset 1"}),(0,m.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
|
|
153
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
|
|
154
126
|
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,m.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
|
|
155
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
|
|
156
|
-
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:${ee.Business.Phome}`,children:ee.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:${ee.Business.Email}`,children:ee.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:jt&&jt.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:oa&&oa.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)(se,{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)(it,{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:jt&&jt.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,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:${oe.Business.Phome}`,children:oe.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:${oe.Business.Email}`,children:oe.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:Qt&&Qt.map((a,n)=>(0,m.jsx)("li",{className:"inline-block",children:(0,m.jsx)("a",{href:a.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:(0,m.jsx)("img",{src:a.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:ii&&ii.map((a,n)=>(0,m.jsxs)("div",{className:"w-full md:flex md:items-center button-download",style:{background:`url(${a.Image}) center center / contain no-repeat`},children:[(0,m.jsx)(ce,{onClick:()=>i(n),className:"!bg-transparent rounded-none w-full hidden sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:a.Name}),(0,m.jsx)("a",{href:a.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),(0,m.jsx)(rt,{open:o===n,onOpenChange:()=>i(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:a.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:Qt&&Qt.map((a,n)=>(0,m.jsx)("li",{children:(0,m.jsx)("a",{href:a.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:(0,m.jsx)("img",{alt:a.Name,src:a.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:`
|
|
157
129
|
footer .button-download {
|
|
158
130
|
max-width: 150px;
|
|
159
131
|
}
|
|
160
|
-
`})]})},
|
|
132
|
+
`})]})},Jr=Hl;var Ji=require("react/jsx-runtime"),en=({className:e,primaryMenu:t,secondaryMenu:o})=>(0,Ji.jsx)("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,Ji.jsx)(Jr,{primaryMenu:t,secondaryMenu:o})});var Ct=f(require("react"),1);var Rt=require("react/jsx-runtime"),ea=Ct.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ea.displayName="Card";var ta=Ct.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:r("flex flex-col space-y-1.5 p-6",e),...t}));ta.displayName="CardHeader";var oa=Ct.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("h3",{ref:o,className:r("font-semibold leading-none tracking-tight",e),...t}));oa.displayName="CardTitle";var ia=Ct.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("p",{ref:o,className:r("text-sm text-muted-foreground",e),...t}));ia.displayName="CardDescription";var aa=Ct.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:r("p-6 pt-0",e),...t}));aa.displayName="CardContent";var ra=Ct.forwardRef(({className:e,...t},o)=>(0,Rt.jsx)("div",{ref:o,className:r("flex items-center p-6 pt-0",e),...t}));ra.displayName="CardFooter";var we=f(require("react"),1),ae=require("cmdk");var Bt=require("@heroicons/react/16/solid"),Y=require("react/jsx-runtime"),Xo=we.forwardRef(({className:e,...t},o)=>(0,Y.jsx)(ae.Command,{ref:o,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),...t}));Xo.displayName=ae.Command.displayName;var tn=({children:e,...t})=>(0,Y.jsx)(at,{...t,children:(0,Y.jsx)(We,{className:"overflow-hidden p-0 shadow-lg",children:(0,Y.jsx)(Xo,{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})})}),na=we.forwardRef(({className:e,onClickClear:t,classNameInput:o,...i},a)=>{let n=we.useRef(null),[l,c]=we.useState(""),d=()=>{!l||l?.length<=0||(c(""),t?.(l))};return(0,Y.jsxs)("div",{ref:n,className:r("flex items-center border-b px-3",e),"cmdk-input-wrapper":"",children:[(0,Y.jsx)(Bt.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,Y.jsx)(ae.Command.Input,{ref:a,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",o),value:l,onValueChange:c,...i}),(0,Y.jsx)(Bt.XCircleIcon,{onClick:d,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",l?.length>0?"opacity-100":"opacity-0")})]})});na.displayName=ae.Command.Input.displayName;var sa=we.forwardRef(({className:e,...t},o)=>(0,Y.jsx)(ae.Command.List,{ref:o,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...t}));sa.displayName=ae.Command.List.displayName;var la=we.forwardRef((e,t)=>(0,Y.jsx)(ae.Command.Empty,{ref:t,className:"py-6 text-gray-900 text-center text-sm",...e}));la.displayName=ae.Command.Empty.displayName;var ma=we.forwardRef(({className:e,...t},o)=>(0,Y.jsx)(ae.Command.Group,{ref:o,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),...t}));ma.displayName=ae.Command.Group.displayName;var ca=we.forwardRef(({className:e,...t},o)=>(0,Y.jsx)(ae.Command.Separator,{ref:o,className:r("-mx-1 text-gray-900 h-px bg-border",e),...t}));ca.displayName=ae.Command.Separator.displayName;var da=we.forwardRef(({className:e,children:t,isActive:o,...i},a)=>(0,Y.jsxs)(ae.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",o?"bg-gray-100":"",e),...i,children:[(0,Y.jsx)(Bt.CheckIcon,{className:r("h-4 w-4 mr-2",o?"opacity-100":"opacity-0")}),t]}));da.displayName=ae.Command.Item.displayName;var pa=({className:e,...t})=>(0,Y.jsx)("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...t});pa.displayName="CommandShortcut";var on=require("@heroicons/react/16/solid");var mt=require("react/jsx-runtime"),an=({className:e,value:t,label:o,children:i,placeholder:a})=>(0,mt.jsxs)("div",{className:"relative",children:[(0,mt.jsxs)(Lt,{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",e),children:[t||i||a,(0,mt.jsx)(on.ChevronDownIcon,{className:"h-4 w-4 text-gray-700 flex-none"})]}),o&&(0,mt.jsx)("span",{className:"absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",children:o})]}),rn=({children:e,className:t})=>(0,mt.jsx)(vt,{className:r("!p-0 border-none",t),children:e}),nn=({open:e,onOpenChange:t,children:o})=>(0,mt.jsx)(Mt,{open:e,onOpenChange:t,children:o});var fa=require("class-variance-authority"),sn=require("react");var ln=require("@heroicons/react/24/outline");var Tt=require("react/jsx-runtime"),zl=(0,fa.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"}}),Bl=(0,fa.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"}}),mn=(0,sn.forwardRef)(({type:e="neutral",message:t="",withAction:o=!1,onClickAction:i,className:a,disabled:n,actionClassName:l,icon:c,...d},p)=>(0,Tt.jsxs)("div",{ref:p,className:r("",a,zl({typeDiv:e,disabled:n})),...d,children:[(0,Tt.jsxs)("div",{className:"flex items-center space-x-2",children:[c||(0,Tt.jsx)(ln.InformationCircleIcon,{className:r(Bl({typeIcon:e,disabled:n})),width:20,height:20}),t&&(0,Tt.jsx)("div",{children:t})]}),o&&(0,Tt.jsx)(wt,{variant:"primary",onClick:()=>i?.(),className:r("",l),isDisabled:n,children:o})]}));var ct=require("react"),cn=require("@heroicons/react/20/solid"),dn=require("@heroicons/react/24/outline");var _e=require("react/jsx-runtime"),pn=(0,ct.forwardRef)(({disabled:e,className:t,inputClassName:o,size:i,onChange:a,onFocus:n,onClickClear:l,value:c,defaultValue:d,type:p="text",...g},h)=>{let[N,H]=(0,ct.useState)(!1),Q=(0,ct.useRef)(null),W=I=>{I&&!N&&H(!0),!I&&N&&H(!1)},te=I=>{W(I.target.value),a?.(I)},U=I=>{W(I.target.value),n?.(I)},X=()=>{let I=Q.current?.querySelector("input");I&&(l?.(I.value),I.value="",I.focus(),H(!1))};return(0,ct.useEffect)(()=>{W(d||c)},[c,d]),(0,_e.jsxs)("div",{className:r(t),ref:Q,children:[(0,_e.jsxs)("div",{className:"relative flex items-center",children:[(0,_e.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,_e.jsx)(cn.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,_e.jsx)("input",{disabled:e,type:p,ref:h,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",o),onChange:te,onFocus:U,value:c,defaultValue:d,...g}),N&&(0,_e.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:X,children:(0,_e.jsx)(dn.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,_e.jsx)("style",{children:`
|
|
161
133
|
.mobase-text-input-box:hover {
|
|
162
134
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
163
135
|
}
|
|
164
136
|
.mobase-text-input-box:focus {
|
|
165
137
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
|
|
166
138
|
}
|
|
167
|
-
`})]})});var pe=f(require("@radix-ui/react-dialog"),1),ye=f(require("react"),1);var bn=require("lucide-react"),hn=f(require("lodash"),1);var xn=f(require("@radix-ui/react-aspect-ratio"),1),ke=xn.Root;var R=require("react/jsx-runtime"),yn=ye.default.createContext(void 0);function wn(){let e=(0,ye.useContext)(yn);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Zo=({children:e,open:t,onOpenChange:o,className:a})=>(0,R.jsx)(yn.Provider,{value:{open:t,onOpenChange:o},children:(0,R.jsx)(pe.Root,{open:t,onOpenChange:o,children:(0,R.jsx)("div",{className:r("lightbox-gallery",a),children:e})})}),Nn=({children:e,src:t,alt:o,className:a,classNameImage:i,onClick:n,ratio:l=4/3})=>{let{onOpenChange:c}=wn(),d=()=>{n?.(),c&&c(!0)};return(0,R.jsxs)(pe.Trigger,{className:r("",a),onClick:d,children:[e,(0,R.jsx)(ke,{ratio:l,className:"rounded-lg cursor-pointer",children:(0,R.jsx)("img",{src:t,alt:o,className:r("w-full h-full object-cover rounded-lg",i)})})]})},Pn=ye.default.forwardRef(({className:e,children:t,...o},a)=>{let{onOpenChange:i}=wn(),n=()=>{i&&i(!1)};return(0,R.jsxs)(pe.Portal,{children:[(0,R.jsx)(pe.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,R.jsxs)(pe.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),...o,children:[t,(0,R.jsxs)(pe.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,R.jsx)(bn.X,{className:"h-4 w-4 mt-0.5"}),(0,R.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Pn.displayName=pe.Content.displayName;var Ko=({images:e,activeSlideIndex:t=0,withSideBar:o,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,l]=(0,ye.useState)(""),[c,d]=(0,ye.useState)(),[p,u]=(0,ye.useState)(0);(0,ye.useEffect)(()=>{c&&(u(c.selectedScrollSnap()+1),c.on("select",()=>{u(c.selectedScrollSnap()+1)}))},[c]);let h=N=>{let L=hn.default.filter(e,(Q,q)=>q===(N>0?N-1:N)),j=L.length>0?L[0]?.titleImage:"";l(j)};return(0,ye.useEffect)(()=>{h(p)},[p]),(0,R.jsxs)(Pn,{className:"flex py-0",children:[(0,R.jsxs)("div",{className:" flex-1 relative",children:[(0,R.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[p||1," / ",e?.length]}),(0,R.jsxs)(Yt,{opts:{startIndex:t},setApi:d,className:"w-full h-full relative",children:[(0,R.jsx)(Jt,{className:r("h-screen -ml-3 md:-ml-4",o?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((N,L)=>(0,R.jsx)(eo,{className:"pl-6 md:pl-4",children:(0,R.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,R.jsx)("div",{className:"flex-1 relative",children:(0,R.jsx)("img",{src:N.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,R.jsx)("div",{className:"flex-0",children:(0,R.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,R.jsx)("div",{className:"line-clamp-3",children:n})})})]})},L))}),(0,R.jsx)(to,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,R.jsx)(oo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),o&&(0,R.jsx)("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};var ct=f(require("react"),1),dt=f(require("@radix-ui/react-radio-group"),1);var Cn=require("lucide-react"),go=f(require("@radix-ui/react-checkbox"),1),Rn=require("@heroicons/react/16/solid"),ie=require("react/jsx-runtime"),Tn=ct.createContext({hideIndicator:!1});function Vl(){let e=ct.useContext(Tn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var gi=ct.forwardRef(({className:e,hideIndicator:t=!1,...o},a)=>(0,ie.jsx)(Tn.Provider,{value:{hideIndicator:t},children:(0,ie.jsx)(dt.Root,{className:r("grid gap-2",t&&"hide-indicator",e),...o,ref:a})}));gi.displayName=dt.Root.displayName;var ui=ct.forwardRef(({className:e,children:t,...o},a)=>{let i=Vl(),{hideIndicator:n}=i??{};return(0,ie.jsxs)(dt.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),...o,children:[(0,ie.jsx)("div",{className:"flex-1 min-w-0",children:t}),!n&&(0,ie.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,ie.jsx)(dt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,ie.jsx)(Cn.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});ui.displayName=dt.Item.displayName;var vi=ct.forwardRef(({className:e,children:t,...o},a)=>(0,ie.jsxs)(go.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),...o,children:[(0,ie.jsx)("div",{className:"flex-1 min-w-0",children:t}),(0,ie.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,ie.jsx)(go.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,ie.jsx)(Rn.CheckIcon,{className:"h-4 w-4"})})})]}));vi.displayName=go.Root.displayName;var kn=require("class-variance-authority");var Dn=require("react/jsx-runtime"),xi=(0,kn.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 Sn({className:e,variant:t,...o}){return(0,Dn.jsx)("div",{className:r(xi({variant:t}),e),...o})}var In=f(require("react"),1),uo=f(require("@radix-ui/react-progress"),1),hi=require("class-variance-authority");var bi=require("react/jsx-runtime"),Ol=(0,hi.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"}}),Gl=(0,hi.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"}}),yi=In.forwardRef(({className:e,value:t,variant:o="progress",size:a="medium",disabled:i=!1,...n},l)=>(0,bi.jsx)(uo.Root,{ref:l,className:r("",Gl({size:a}),e),...n,children:(0,bi.jsx)(uo.Indicator,{className:r("",Ol({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}})}));yi.displayName=uo.Root.displayName;var Hn=require("react");var An=require("@heroicons/react/24/outline");var Ln=require("class-variance-authority"),wi=f(require("html-react-parser"),1),Y=require("react/jsx-runtime"),$l=(0,Ln.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}}),Mn=({template:e,name:t,description:o,image:a,idx:i,value:n,suffix:l,unit:c})=>(0,Y.jsx)(Y.Fragment,{children:(()=>{switch(e){case 1:case 3:return(0,Y.jsxs)("li",{className:"flex items-center space-x-4",children:[a?(0,Y.jsx)("img",{src:a,alt:"",className:"shrink-0"}):(0,Y.jsx)("div",{className:"bg-pink-100 p-1 rounded-full w-5 h-5 flex items-center justify-center",children:(0,Y.jsx)(An.CheckIcon,{className:"w-4 h-4 text-pink-500 "})}),t&&(0,Y.jsx)("div",{className:"ml-2 leading-tight",children:(0,wi.default)(t)})]});case 2:return(0,Y.jsxs)("div",{className:r("odd:border-0 odd:pr-4 even:pl-4 even:border-l border-gray-100 md:border-l md:odd:border-l md:odd:pr-0",i>0?"md:pl-4":"md:!border-0"),children:[n&&(0,Y.jsxs)("div",{className:"font-bold text-gray-900 line-clamp-2",children:[n,(l||c)&&(0,Y.jsxs)("span",{children:[l," ",c]})]}),o&&(0,Y.jsx)("div",{className:"text-sm mt-1 text-gray-500 leading-tight",children:(0,wi.default)(o)})]});default:return null}})()}),Yo=({dataFeatures:e,template:t=1,dataStats:o})=>(0,Y.jsxs)("ul",{className:r("",$l({template:t})),children:[(t===1||t===3)&&e?.map((a,i)=>(0,Y.jsx)(Mn,{name:a?.name,template:t,image:a?.image,idx:i},i)),t===2&&o?.map((a,i)=>(0,Y.jsx)(Mn,{value:a?.value,suffix:a?.suffix,unit:a?.unit,template:t,description:a?.description,idx:i},i))]});var H=require("react/jsx-runtime"),En=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,Wl=({src:e,ratio:t,className:o,youtubeId:a,onClickFC:i=()=>{}})=>(0,H.jsxs)(ke,{className:r(""),ratio:En(t),children:[(0,H.jsx)("img",{src:e,className:r("w-full h-full object-cover md:block hidden",o,e?"":"bg-gray-200"),alt:""}),a&&(0,H.jsx)("div",{className:"aspect-[16/9] realtive overflow-hidden w-full md:hidden",children:(0,H.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,H.jsxs)(at,{children:[(0,H.jsx)(yo,{onClick:i,children:(0,H.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,H.jsx)("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,H.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,H.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,H.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,H.jsx)($e,{hideCloseBtn:!0,className:"w-full h-full !shadow-none !bg-transparent flex items-center justify-center bg-gray-900 p-0",children:(0,H.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:""})})]})]}),vo=({type:e=1,src:t,ratio:o,className:a,youtubeId:i,onClickFC:n=()=>{}})=>(0,H.jsx)(H.Fragment,{children:i?(0,H.jsx)(Wl,{type:e,src:t,ratio:o,youtubeId:i,onClickFC:n}):(0,H.jsx)(ke,{className:r(""),ratio:En(o),children:(0,H.jsx)("img",{src:t,className:r("w-full h-full object-cover",a,t?"":"bg-gray-200"),alt:""})})});var T=require("react/jsx-runtime"),Ni=({dataHeading:e,dataButtons:t,dataFeatures:o,template:a,dataStats:i,dataMedia:n,advancedComponent:l})=>(0,T.jsxs)("div",{className:r("grid grid-cols-1 md:grid-cols-2 md:gap-6 gap-8 items-center"),children:[(0,T.jsxs)("div",{className:"col-span-1 ",children:[(0,T.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:e?.align||"left",sizeHeading:e?.sizeHeading,className:`${e?.className} mb-0 md:mb-0`}),(0,T.jsx)(Yo,{dataFeatures:o,template:a,dataStats:i}),t&&(0,T.jsx)(_,{align:t?.align,isFullInMobile:t?.isFullInMobile,buttons:t?.buttons})]}),(0,T.jsx)("div",{className:"col-span-1 md:pl-10",children:l||(0,T.jsx)(vo,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Fn=({dataHeading:e,dataButtons:t,dataFeatures:o,template:a,dataStats:i,dataMedia:n,advancedComponent:l})=>(0,T.jsxs)("div",{className:r("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[(0,T.jsx)("div",{className:"col-span-1",children:(0,T.jsx)("div",{className:"hidden md:block",children:l||(0,T.jsx)(vo,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})}),(0,T.jsxs)("div",{className:"col-span-1",children:[(0,T.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:e?.align||"left",sizeHeading:e?.sizeHeading,className:e?.className}),(0,T.jsx)(Yo,{dataFeatures:o,template:a,dataStats:i}),(0,T.jsx)("div",{className:"md:hidden mt-10",children:l||(0,T.jsx)(vo,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),t&&(0,T.jsx)("div",{className:"w-full flex items-center justify-center md:justify-start",children:(0,T.jsx)(_,{align:t?.align,isFullInMobile:t?.isFullInMobile,buttons:t?.buttons})})]})]}),_n=({dataHeading:e,dataButtons:t,dataFeatures:o,template:a,dataStats:i,dataMedia:n,advancedComponent:l})=>(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:e?.align,sizeHeading:e?.sizeHeading,className:`${e?.className||""} mb-0 md:mb-0`}),t&&(0,T.jsx)(_,{align:t?.align,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,T.jsx)(Yo,{dataFeatures:o,template:a,dataStats:i}),l||(0,T.jsx)(vo,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"rounded-lg"})]});var He=require("react/jsx-runtime"),jl=`var(
|
|
139
|
+
`})]})});var ve=f(require("@radix-ui/react-dialog"),1),Pe=f(require("react"),1);var gn=require("lucide-react"),un=f(require("lodash"),1);var fn=f(require("@radix-ui/react-aspect-ratio"),1),ue=fn.Root;var R=require("react/jsx-runtime"),vn=Pe.default.createContext(void 0);function bn(){let e=(0,Pe.useContext)(vn);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var qo=({children:e,open:t,onOpenChange:o,className:i})=>(0,R.jsx)(vn.Provider,{value:{open:t,onOpenChange:o},children:(0,R.jsx)(ve.Root,{open:t,onOpenChange:o,children:(0,R.jsx)("div",{className:r("lightbox-gallery",i),children:e})})}),xn=({children:e,src:t,alt:o,className:i,classNameImage:a,onClick:n,ratio:l=4/3})=>{let{onOpenChange:c}=bn(),d=()=>{n?.(),c&&c(!0)};return(0,R.jsxs)(ve.Trigger,{className:r("",i),onClick:d,children:[e,(0,R.jsx)(ue,{ratio:l,className:"rounded-lg cursor-pointer",children:(0,R.jsx)("img",{src:t,alt:o,className:r("w-full h-full object-cover rounded-lg",a)})})]})},hn=Pe.default.forwardRef(({className:e,children:t,...o},i)=>{let{onOpenChange:a}=bn(),n=()=>{a&&a(!1)};return(0,R.jsxs)(ve.Portal,{children:[(0,R.jsx)(ve.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,R.jsxs)(ve.Content,{ref:i,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),...o,children:[t,(0,R.jsxs)(ve.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,R.jsx)(gn.X,{className:"h-4 w-4 mt-0.5"}),(0,R.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});hn.displayName=ve.Content.displayName;var Zo=({images:e,activeSlideIndex:t=0,withSideBar:o,subHtmlSideBar:i,classNameSubHtmSideBar:a})=>{let[n,l]=(0,Pe.useState)(""),[c,d]=(0,Pe.useState)(),[p,g]=(0,Pe.useState)(0);(0,Pe.useEffect)(()=>{c&&(g(c.selectedScrollSnap()+1),c.on("select",()=>{g(c.selectedScrollSnap()+1)}))},[c]);let h=N=>{let H=un.default.filter(e,(W,te)=>te===(N>0?N-1:N)),Q=H.length>0?H[0]?.titleImage:"";l(Q)};return(0,Pe.useEffect)(()=>{h(p)},[p]),(0,R.jsxs)(hn,{className:"flex py-0",children:[(0,R.jsxs)("div",{className:" flex-1 relative",children:[(0,R.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[p||1," / ",e?.length]}),(0,R.jsxs)(Jt,{opts:{startIndex:t},setApi:d,className:"w-full h-full relative",children:[(0,R.jsx)(eo,{className:r("h-screen -ml-3 md:-ml-4",o?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((N,H)=>(0,R.jsx)(to,{className:"pl-6 md:pl-4",children:(0,R.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,R.jsx)("div",{className:"flex-1 relative",children:(0,R.jsx)("img",{src:N.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,R.jsx)("div",{className:"flex-0",children:(0,R.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,R.jsx)("div",{className:"line-clamp-3",children:n})})})]})},H))}),(0,R.jsx)(oo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,R.jsx)(io,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),o&&(0,R.jsx)("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",a),children:i})]})};var dt=f(require("react"),1),pt=f(require("@radix-ui/react-radio-group"),1);var yn=require("lucide-react"),uo=f(require("@radix-ui/react-checkbox"),1),Nn=require("@heroicons/react/16/solid"),ne=require("react/jsx-runtime"),wn=dt.createContext({hideIndicator:!1});function Vl(){let e=dt.useContext(wn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var ga=dt.forwardRef(({className:e,hideIndicator:t=!1,...o},i)=>(0,ne.jsx)(wn.Provider,{value:{hideIndicator:t},children:(0,ne.jsx)(pt.Root,{className:r("grid gap-2",t&&"hide-indicator",e),...o,ref:i})}));ga.displayName=pt.Root.displayName;var ua=dt.forwardRef(({className:e,children:t,...o},i)=>{let a=Vl(),{hideIndicator:n}=a??{};return(0,ne.jsxs)(pt.Item,{ref:i,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),...o,children:[(0,ne.jsx)("div",{className:"flex-1 min-w-0",children:t}),!n&&(0,ne.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,ne.jsx)(pt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,ne.jsx)(yn.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});ua.displayName=pt.Item.displayName;var va=dt.forwardRef(({className:e,children:t,...o},i)=>(0,ne.jsxs)(uo.Root,{ref:i,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),...o,children:[(0,ne.jsx)("div",{className:"flex-1 min-w-0",children:t}),(0,ne.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,ne.jsx)(uo.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,ne.jsx)(Nn.CheckIcon,{className:"h-4 w-4"})})})]}));va.displayName=uo.Root.displayName;var Pn=require("class-variance-authority");var Rn=require("react/jsx-runtime"),ba=(0,Pn.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 Cn({className:e,variant:t,...o}){return(0,Rn.jsx)("div",{className:r(ba({variant:t}),e),...o})}var Tn=f(require("react"),1),vo=f(require("@radix-ui/react-progress"),1),ha=require("class-variance-authority");var xa=require("react/jsx-runtime"),Ol=(0,ha.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"}}),Gl=(0,ha.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"}}),ya=Tn.forwardRef(({className:e,value:t,variant:o="progress",size:i="medium",disabled:a=!1,...n},l)=>(0,xa.jsx)(vo.Root,{ref:l,className:r("",Gl({size:i}),e),...n,children:(0,xa.jsx)(vo.Indicator,{className:r("",Ol({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}})}));ya.displayName=vo.Root.displayName;var kn=f(require("react"),1),He=f(require("@radix-ui/react-slider"),1);var kt=require("react/jsx-runtime"),Na=kn.forwardRef(({className:e,...t},o)=>(0,kt.jsxs)(He.Root,{ref:o,className:r("relative flex w-full touch-none select-none items-center",t?.disabled&&"opacity-40",e),...t,children:[(0,kt.jsx)(He.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,kt.jsx)(He.Range,{className:"absolute h-full bg-pink-500"})}),(0,kt.jsx)(He.Thumb,{className:"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"}),(0,kt.jsx)(He.Thumb,{className:"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"})]}));Na.displayName=He.Root.displayName;var Fn=require("react");var O=require("react/jsx-runtime"),$l=({author:e=""})=>(0,O.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Wl=({author:e,avatar:t})=>(0,O.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,O.jsx)("img",{src:t,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,O.jsx)($l,{author:e})});function jl({avatar:e="",author:t="",time:o,statusMessage:i,isOutStanding:a}){return(0,O.jsx)(O.Fragment,{children:(0,O.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,O.jsx)(Wl,{avatar:e,author:t}),(0,O.jsxs)("div",{className:"flex flex-col",children:[t&&(0,O.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:t}),(0,O.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[o&&(0,O.jsx)("div",{className:"text-gray-400",children:o}),i&&(0,O.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,O.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,O.jsx)("div",{className:"ml-2 text-pink-500",children:i})]})]})]}),a&&(0,O.jsx)("div",{className:"absolute right-1 top-0",children:(0,O.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Sn=jl;var Pa=require("react");var Dn=require("@heroicons/react/20/solid"),Vt=require("react/jsx-runtime"),Ql={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!"},Ul={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 Xl({point:e,max:t,className:o}){let i=t>5?Ql[e||10]:Ul[e||5];return(0,Vt.jsxs)("div",{className:r("flex items-center space-x-1",o),children:[(0,Vt.jsx)(Dn.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,Vt.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${t}`}),(0,Vt.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",i]})," "]})}var An=Xl;var In=require("react"),wa=f(require("html-react-parser"),1);var Yo=require("react/jsx-runtime"),Ko=({children:e,maxChar:t=260,textMore:o="...Xem th\xEAm",textLess:i="Thu g\u1ECDn",btnClass:a="text-blue-500",className:n=""})=>{let[l,c]=(0,In.useState)(!0),d=()=>{c(!l)},p=(g,h,N=" ")=>g.length<=h?g:g.substring(0,g.lastIndexOf(N,h));return(0,Yo.jsxs)("div",{className:r(n),children:[l?(0,wa.default)(p(e,t)):(0,wa.default)(e),e.length>t&&(0,Yo.jsx)("span",{onClick:d,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",a),children:l?o:i})]})};var De=require("react/jsx-runtime");function ql({content:e,thumbnails:t=[],tags:o=[],commentSideBar:i,rating:a={point:10,max:10},limitContent:n=260}){let[l,c]=(0,Pa.useState)(0),[d,p]=(0,Pa.useState)(!1),g=h=>{p(!0),c(h)};return(0,De.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[a.point>0&&(0,De.jsx)(An,{className:"mb-0.5",point:a.point,max:a.max}),e&&(0,De.jsx)(Ko,{className:"text-sm",maxChar:n,children:e}),o?.length>0&&(0,De.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:o?.map(h=>(0,De.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:h}))}),t?.length>0&&(0,De.jsxs)(qo,{open:d,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:[t?.map((h,N)=>(0,De.jsx)(ue,{onClick:()=>g(N),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,De.jsx)("img",{src:h.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},N)),(0,De.jsx)(Zo,{activeSlideIndex:l,images:t?.map((h,N)=>({url:h.url,titleImage:h.titleImage,idx:N})),withSideBar:!!i,subHtmlSideBar:i})]})]})}var Mn=ql;var En=require("react/jsx-runtime");function Zl({actions:e=[]}){return(0,En.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Ln=Zl;var St=require("react/jsx-runtime"),_n=(0,Fn.forwardRef)(({avatar:e,author:t,time:o,ratingPoint:i,content:a,tags:n,thumbnails:l,actions:c=[],statusMessage:d,isReply:p,children:g,commentSideBar:h,isOutStanding:N,limitContent:H=260},Q)=>(0,St.jsxs)("div",{ref:Q,className:r("",p?"ml-4 py-4":"py-5"),children:[(0,St.jsx)(Sn,{avatar:e,author:t,time:o,statusMessage:d,isOutStanding:N}),(0,St.jsx)(Mn,{content:a,thumbnails:l,tags:n,rating:i,commentSideBar:h,limitContent:H}),c&&c?.filter(Boolean)?.length>0&&(0,St.jsx)(Ln,{actions:c.filter(Boolean)}),g&&(0,St.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:g})]}));var ft=f(require("react"),1),Hn=require("class-variance-authority");var zn=require("@heroicons/react/16/solid"),Bn=require("lucide-react"),G=require("react/jsx-runtime"),Kl=(0,Hn.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-500 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),Vn=ft.createContext("default");function Yl(){let e=ft.useContext(Vn);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Jl=ft.memo(({type:e,icon:t,stepNumber:o,size:i,isError:a,state:n})=>{let l=i==="small"?"w-3 h-3":"w-4 h-4";return a?(0,G.jsx)(Bn.XIcon,{className:l}):(0,G.jsxs)("div",{children:[e==="iconStep"&&(0,G.jsx)("div",{className:l,children:t}),e==="numberStep"&&(0,G.jsx)("div",{children:o}),e==="default"&&(n==="completed"?(0,G.jsx)(zn.CheckIcon,{className:l}):(0,G.jsx)("div",{children:o}))]})}),On=({step:e,currentStep:t,onValueChangeStep:o,children:i})=>{let a=ft.useCallback(()=>{e!==t&&o(e)},[e,t,o]);return(0,G.jsx)("div",{onClick:a,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:i})},Gn=({step:e,state:t="default",size:o="default",className:i,title:a,description:n,lastStep:l,fristStep:c,icon:d,isError:p,onValueChangeStep:g,...h})=>{let N=Yl();return(0,G.jsxs)("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[(0,G.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,G.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",t==="active"&&"bg-pink-300",t==="completed"&&"bg-pink-300")}),(0,G.jsx)("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Kl({state:t,size:o}),p&&"bg-red-500 text-white shadow-none",i),...h,children:(0,G.jsx)(Jl,{type:N,icon:d,stepNumber:e,size:o,isError:p,state:t})}),(0,G.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",t==="completed"&&"bg-pink-300")})]}),(0,G.jsxs)("div",{className:"text-center w-full flex flex-col items-center mt-2 px-0.5",children:[a&&(0,G.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:a}),n&&(0,G.jsx)("div",{className:"text-xs text-gray-500 ",children:n})]})]})},$n=({children:e,className:t,type:o="numberStep",...i})=>(0,G.jsx)(Vn.Provider,{value:o,children:(0,G.jsx)("div",{className:r("flex items-start justify-between w-full",t),...i,children:e})});var se=f(require("react"),1),Un=require("@radix-ui/react-slot"),Ot=require("react-hook-form");var Wn=f(require("react"),1),Ca=f(require("@radix-ui/react-label"),1),jn=require("class-variance-authority");var Qn=require("react/jsx-runtime"),em=(0,jn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Jo=Wn.forwardRef(({className:e,...t},o)=>(0,Qn.jsx)(Ca.Root,{ref:o,className:r(em(),e),...t}));Jo.displayName=Ca.Root.displayName;var Ke=require("react/jsx-runtime"),Xn=Ot.FormProvider,qn=se.createContext({}),Zn=({...e})=>(0,Ke.jsx)(qn.Provider,{value:{name:e.name},children:(0,Ke.jsx)(Ot.Controller,{...e})}),Gt=()=>{let e=se.useContext(qn),t=se.useContext(Kn),{getFieldState:o,formState:i}=(0,Ot.useFormContext)(),a=o(e.name,i);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`,...a}},Kn=se.createContext({}),Ra=se.forwardRef(({className:e,...t},o)=>{let i=se.useId();return(0,Ke.jsx)(Kn.Provider,{value:{id:i},children:(0,Ke.jsx)("div",{ref:o,className:r("space-y-2",e),...t})})});Ra.displayName="FormItem";var Ta=se.forwardRef(({className:e,...t},o)=>{let{error:i,formItemId:a}=Gt();return(0,Ke.jsx)(Jo,{ref:o,className:r(i&&"text-red-500","text-gray-700 ",e),htmlFor:a,...t})});Ta.displayName="FormLabel";var ka=se.forwardRef(({...e},t)=>{let{error:o,formItemId:i,formDescriptionId:a,formMessageId:n}=Gt();return(0,Ke.jsx)(Un.Slot,{ref:t,id:i,"aria-describedby":o?`${a} ${n}`:`${a}`,"aria-invalid":!!o,...e})});ka.displayName="FormControl";var Sa=se.forwardRef(({className:e,...t},o)=>{let{formDescriptionId:i}=Gt();return(0,Ke.jsx)("p",{ref:o,id:i,className:r("text-[0.8rem] text-gray-500",e),...t})});Sa.displayName="FormDescription";var Da=se.forwardRef(({className:e,children:t,...o},i)=>{let{error:a,formMessageId:n}=Gt(),l=a?String(a?.message):t;return l?(0,Ke.jsx)("p",{ref:i,id:n,className:r("text-xs font-medium text-red-500",e),...o,children:l}):null});Da.displayName="FormMessage";var as=require("react");var Jn=require("@heroicons/react/24/outline");var es=require("class-variance-authority"),Aa=f(require("html-react-parser"),1),J=require("react/jsx-runtime"),tm=(0,es.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}}),Yn=({template:e,name:t,description:o,image:i,idx:a,value:n,suffix:l,unit:c})=>(0,J.jsx)(J.Fragment,{children:(()=>{switch(e){case 1:case 3:return(0,J.jsxs)("li",{className:"flex items-center space-x-4",children:[i?(0,J.jsx)("img",{src:i,alt:"",className:"shrink-0"}):(0,J.jsx)("div",{className:"bg-pink-100 p-1 rounded-full w-5 h-5 flex items-center justify-center",children:(0,J.jsx)(Jn.CheckIcon,{className:"w-4 h-4 text-pink-500 "})}),t&&(0,J.jsx)("div",{className:"ml-2 leading-tight",children:(0,Aa.default)(t)})]});case 2:return(0,J.jsxs)("div",{className:r("odd:border-0 odd:pr-4 even:pl-4 even:border-l border-gray-100 md:border-l md:odd:border-l md:odd:pr-0",a>0?"md:pl-4":"md:!border-0"),children:[n&&(0,J.jsxs)("div",{className:"font-bold text-gray-900 line-clamp-2",children:[n,(l||c)&&(0,J.jsxs)("span",{children:[l," ",c]})]}),o&&(0,J.jsx)("div",{className:"text-sm mt-1 text-gray-500 leading-tight",children:(0,Aa.default)(o)})]});default:return null}})()}),ei=({dataFeatures:e,template:t=1,dataStats:o})=>(0,J.jsxs)("ul",{className:r("",tm({template:t})),children:[(t===1||t===3)&&e?.map((i,a)=>(0,J.jsx)(Yn,{name:i?.name,template:t,image:i?.image,idx:a},a)),t===2&&o?.map((i,a)=>(0,J.jsx)(Yn,{value:i?.value,suffix:i?.suffix,unit:i?.unit,template:t,description:i?.description,idx:a},a))]});var F=require("react/jsx-runtime"),ts=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((i,a)=>i/a):e,om=({src:e,ratio:t,className:o,youtubeId:i,onClickFC:a=()=>{}})=>(0,F.jsxs)(ue,{className:r(""),ratio:ts(t),children:[(0,F.jsx)("img",{src:e,className:r("w-full h-full object-cover md:block hidden",o,e?"":"bg-gray-200"),alt:""}),i&&(0,F.jsx)("div",{className:"aspect-[16/9] realtive overflow-hidden w-full md:hidden",children:(0,F.jsx)("iframe",{title:i,src:`https://www.youtube.com/embed/${i}?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"})}),i&&(0,F.jsxs)(at,{children:[(0,F.jsx)(No,{onClick:a,children:(0,F.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,F.jsx)("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,F.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,F.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,F.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,F.jsx)(We,{hideCloseBtn:!0,className:"w-full h-full !shadow-none !bg-transparent flex items-center justify-center bg-gray-900 p-0",children:(0,F.jsx)("iframe",{width:738,height:439,title:i,src:`https://www.youtube.com/embed/${i}?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:""})})]})]}),bo=({type:e=1,src:t,ratio:o,className:i,youtubeId:a,onClickFC:n=()=>{}})=>(0,F.jsx)(F.Fragment,{children:a?(0,F.jsx)(om,{type:e,src:t,ratio:o,youtubeId:a,onClickFC:n}):(0,F.jsx)(ue,{className:r(""),ratio:ts(o),children:(0,F.jsx)("img",{src:t,className:r("w-full h-full object-cover",i,t?"":"bg-gray-200"),alt:""})})});var ti=f(require("html-react-parser"),1);var ze=require("react/jsx-runtime"),le=({idSection:e,className:t,background:o,children:i})=>(0,ze.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",t),style:{background:o},children:(0,ze.jsx)("div",{className:"wrapper relative",children:i})}),T=({align:e="center",tagline:t,title:o,description:i,tagHeading:a="h2",colorScheme:n="regular",sizeHeading:l="small",className:c})=>{let d=n==="regular"?"pink":n==="pink"?"regular":"white",p=n==="pink"?"pink":n==="white"?"white":"regular",g=n==="white"?"white":"regular";return(0,ze.jsxs)(Fo,{align:e,className:c,children:[t&&(0,ze.jsx)(Mo,{color:d,children:t}),o&&(0,ze.jsx)(Lo,{tagHeading:a,color:p,size:l,children:(0,ti.default)(o)}),i&&(0,ze.jsx)(Eo,{color:g,marginTop:l==="large"?"spacing2Xl":"spacingX",children:(0,ti.default)(i)})]})},D=({align:e,isFullInMobile:t=!1,buttons:o,className:i})=>o?.length===0?null:(0,ze.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",i),children:o?.slice(0,2).map((a,n)=>{let{btnName:l,...c}=a;return(0,ze.jsx)(At,{...c,className:r(t&&"w-full md:w-auto",a?.className),children:(0,ti.default)(l)},n)})});var k=require("react/jsx-runtime"),Ia=({dataHeading:e,dataButtons:t,dataFeatures:o,template:i,dataStats:a,dataMedia:n,advancedComponent:l})=>(0,k.jsxs)("div",{className:r("grid grid-cols-1 md:grid-cols-2 md:gap-6 gap-8 items-center"),children:[(0,k.jsxs)("div",{className:"col-span-1 ",children:[(0,k.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:e?.align||"left",sizeHeading:e?.sizeHeading,className:`${e?.className} mb-0 md:mb-0`}),(0,k.jsx)(ei,{dataFeatures:o,template:i,dataStats:a}),t&&(0,k.jsx)(D,{align:t?.align,isFullInMobile:t?.isFullInMobile,buttons:t?.buttons})]}),(0,k.jsx)("div",{className:"col-span-1 md:pl-10",children:l||(0,k.jsx)(bo,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),os=({dataHeading:e,dataButtons:t,dataFeatures:o,template:i,dataStats:a,dataMedia:n,advancedComponent:l})=>(0,k.jsxs)("div",{className:r("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[(0,k.jsx)("div",{className:"col-span-1",children:(0,k.jsx)("div",{className:"hidden md:block",children:l||(0,k.jsx)(bo,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})}),(0,k.jsxs)("div",{className:"col-span-1",children:[(0,k.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:e?.align||"left",sizeHeading:e?.sizeHeading,className:e?.className}),(0,k.jsx)(ei,{dataFeatures:o,template:i,dataStats:a}),(0,k.jsx)("div",{className:"md:hidden mt-10",children:l||(0,k.jsx)(bo,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),t&&(0,k.jsx)("div",{className:"w-full flex items-center justify-center md:justify-start",children:(0,k.jsx)(D,{align:t?.align,isFullInMobile:t?.isFullInMobile,buttons:t?.buttons})})]})]}),is=({dataHeading:e,dataButtons:t,dataFeatures:o,template:i,dataStats:a,dataMedia:n,advancedComponent:l})=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:e?.align,sizeHeading:e?.sizeHeading,className:`${e?.className||""} mb-0 md:mb-0`}),t&&(0,k.jsx)(D,{align:t?.align,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,k.jsx)(ei,{dataFeatures:o,template:i,dataStats:a}),l||(0,k.jsx)(bo,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"rounded-lg"})]});var Be=require("react/jsx-runtime"),im=`var(
|
|
168
140
|
--gradient-pink-1,
|
|
169
141
|
linear-gradient(
|
|
170
142
|
38deg,
|
|
@@ -186,11 +158,39 @@
|
|
|
186
158
|
rgba(255, 255, 255, 0) 80%
|
|
187
159
|
),
|
|
188
160
|
#fff
|
|
189
|
-
)`,
|
|
161
|
+
)`,am=({template:e,dataHeading:t,dataButtons:o,dataFeatures:i,dataStats:a,dataMedia:n,advancedComponent:l})=>{switch(e){case 1:return(0,Be.jsx)(Ia,{dataHeading:t,dataButtons:o,dataFeatures:i,dataStats:a,template:e,dataMedia:n,advancedComponent:l});case 2:return(0,Be.jsx)(os,{dataHeading:t,dataButtons:o,dataFeatures:i,dataStats:a,template:e,dataMedia:n,advancedComponent:l});case 3:return(0,Be.jsx)(is,{dataHeading:t,dataButtons:o,dataFeatures:i,dataStats:a,template:e,dataMedia:n,advancedComponent:l});default:return(0,Be.jsx)(Ia,{dataHeading:t,dataButtons:o,dataFeatures:i,dataStats:a,template:e,dataMedia:n,advancedComponent:l})}},rm=({template:e,dataHeading:t,dataButtons:o,dataFeatures:i,dataStats:a,dataMedia:n,advancedComponent:l})=>(0,Be.jsx)(Be.Fragment,{children:am({template:e,dataHeading:t,dataButtons:o,dataFeatures:i,dataStats:a,dataMedia:n,advancedComponent:l})}),rs=(0,as.forwardRef)(({template:e=1,dataHeading:t,dataButtons:o,dataFeatures:i,dataStats:a,dataMedia:n,className:l,background:c,advancedComponent:d=null})=>(0,Be.jsx)(le,{className:r(l),background:c??im,children:(0,Be.jsx)(rm,{dataButtons:o,template:e,dataHeading:t,dataFeatures:i,dataStats:a,dataMedia:n,advancedComponent:d})}));var P=require("react/jsx-runtime"),ns=({dataHeading:e,dataBrands:t,dataButtons:o,spaceX:i,isScrollSnap:a})=>{let n={spacingX:"md:gap-x-5",spacingM:"md:gap-x-6",spacingL:"md:gap-x-7",spacingXl:"md:gap-x-10",spacing2Xl:"md:gap-x-12"};return(0,P.jsxs)(P.Fragment,{children:[e&&(0,P.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&t?.length>0&&(0,P.jsx)("div",{className:r("list-brands flex flex-row gap-y-6 md:flex-wrap md:justify-center overflow-hidden overflow-x-auto py-2",n[i||"spacingXl"],a?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3":"flex-wrap justify-center"),children:t?.map((l,c)=>(0,P.jsx)("div",{className:r("flex justify-center items-center md:px-0 px-2.5 md:basis-auto",a?"snap-center shrink-0 first:pl-5 last:pr-5 basis-[28.5%]":"basis-1/2"),children:(0,P.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:l?.url?(0,P.jsx)("a",{href:l?.url,title:l?.name,target:l?.newTab?"_blank":"_self",className:"group",children:(0,P.jsx)("img",{src:l?.logo,loading:"lazy",alt:l?.name,className:"object-contain transition transform group-hover:scale-105"})}):(0,P.jsx)("img",{src:l?.logo,loading:"lazy",alt:l?.name,className:"object-contain"})})},c))}),o&&(0,P.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"center"})]})},nm=({dataHeading:e,dataBrands:t,dataButtons:o,isScrollSnap:i})=>(0,P.jsxs)(P.Fragment,{children:[e&&(0,P.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&t?.length>0&&(0,P.jsx)("div",{className:r("list-brands md:grid-cols-4 md:gap-y-6 md:gap-x-7",i?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3 flex md:grid overflow-hidden overflow-x-auto md:mx-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:t?.map((a,n)=>(0,P.jsx)("div",{className:r("flex justify-center items-center text-center",i?"snap-center shrink-0 first:pl-5 last:pr-5 md:first:pl-0 md:last:pr-0 basis-5/12 px-2 md:px-0":""),children:a?.url?(0,P.jsx)("a",{href:a?.url,title:a?.name,target:a?.newTab?"_blank":"_self",className:"flex justify-center items-center rounded-md border border-gray-200 duration-300 hover:border-pink-500 w-full h-full p-3",children:(0,P.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:(0,P.jsx)("img",{src:a?.logo,loading:"lazy",alt:a?.name,className:"object-contain"})})}):(0,P.jsx)("div",{className:"flex justify-center items-center rounded-md border border-gray-200 w-full h-full p-3",children:(0,P.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:(0,P.jsx)("img",{src:a?.logo,loading:"lazy",alt:a?.name,className:"object-contain"})})})},n))}),o&&(0,P.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"center"})]}),sm=({template:e,dataHeading:t,dataBrands:o,dataButtons:i,spaceX:a,isScrollSnap:n})=>{switch(e){case 1:return(0,P.jsx)(ns,{dataHeading:t,dataBrands:o,dataButtons:i,spaceX:a,isScrollSnap:n});case 2:return(0,P.jsx)(nm,{dataHeading:t,dataBrands:o,dataButtons:i,isScrollSnap:n});default:return(0,P.jsx)(ns,{dataHeading:t,dataBrands:o,dataButtons:i,spaceX:a,isScrollSnap:n})}},lm=({template:e,dataHeading:t,dataBrands:o,dataButtons:i,spaceX:a,isScrollSnap:n})=>(0,P.jsx)(P.Fragment,{children:sm({template:e,dataHeading:t,dataBrands:o,dataButtons:i,spaceX:a,isScrollSnap:n})}),ss=({template:e=1,background:t,className:o,idSection:i,dataHeading:a,dataBrands:n,dataButtons:l,spaceX:c="spacingXl",isScrollSnap:d})=>(0,P.jsx)(le,{className:o,idSection:i,background:t,children:(0,P.jsx)(lm,{template:e,dataHeading:a,dataBrands:n,dataButtons:l,spaceX:c,isScrollSnap:d})});var _=f(require("html-react-parser"),1);var ls=require("@heroicons/react/16/solid");var s=require("react/jsx-runtime"),Ve=({btnLink:e,btnName:t,newTab:o})=>(0,s.jsx)(wt,{variant:"primary",asChild:!0,children:(0,s.jsxs)("a",{href:e,target:o?"_blank":"_self",rel:"noreferrer",children:[t||"Xem chi ti\u1EBFt",(0,s.jsx)(ls.ChevronRightIcon,{className:"w-4 h-4"})]})}),Ma=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:t?.map((i,a)=>(0,s.jsxs)("div",{className:"feature-item relative w-full text-center flex flex-col",children:[(0,s.jsx)("div",{className:"w-16 h-16 mx-auto",children:(0,s.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-4 flex-1",children:[(0,s.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,_.default)(i.name)}),i?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,_.default)(i.description)})]}),i?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(Ve,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},a))}),o&&(0,s.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]}),ms=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.jsx)("div",{className:"list-features list-features-2 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:t?.map((i,a)=>(0,s.jsxs)("div",{className:"feature-item p-5 overflow-hidden border border-gray-200 rounded-md relative w-full flex flex-col",children:[(0,s.jsx)("div",{className:"w-16 h-16",children:(0,s.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,_.default)(i.name)}),i?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,_.default)(i.description)})]}),i?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(Ve,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},a))}),o&&(0,s.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"}),(0,s.jsx)("style",{children:`
|
|
190
162
|
.list-features-2 .feature-item {
|
|
191
163
|
background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
|
|
192
164
|
}
|
|
193
|
-
`})]}),On=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:t?.map((a,i)=>(0,s.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,s.jsx)("div",{className:"w-16 h-16",children:(0,s.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-4 flex-1",children:[(0,s.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,z.default)(a.name)}),a?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,z.default)(a.description)})]}),a?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(ze,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&(0,s.jsx)(_,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]}),Gn=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-0 lg:gap-12",children:[(0,s.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,s.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:r("lg:mb-0",e?.className)}),o&&(0,s.jsx)(_,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:`hidden lg:flex ${o?.className}`,align:"left"})]}),(0,s.jsxs)("div",{className:"lg:col-span-6",children:[t&&(0,s.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-5",children:t?.map((a,i)=>(0,s.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-5 bg-white",children:[(0,s.jsx)("div",{className:"w-16 h-16",children:(0,s.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,z.default)(a.name)}),a?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,z.default)(a.description)})]}),a?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(ze,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&(0,s.jsx)(_,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:`flex lg:hidden ${o?.className}`,align:o?.align||"left"})]})]}),$n=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.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,s.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-7 bg-white",children:[(0,s.jsx)("div",{className:"w-12 h-12 ",children:(0,s.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,z.default)(a.name)}),a?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,z.default)(a.description)})]}),a?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(ze,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&(0,s.jsx)(_,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]}),Wn=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.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,s.jsxs)("div",{className:"feature-item relative w-full",children:[(0,s.jsx)("div",{className:"w-12 h-12",children:(0,s.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,z.default)(a.name)}),a?.description&&(0,s.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,z.default)(a.description)})]}),a?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(ze,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&(0,s.jsx)(_,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]}),jn=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.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,s.jsxs)("div",{className:"feature-item relative w-full flex gap-3",children:[(0,s.jsx)("div",{className:"w-12 h-12",children:(0,s.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full flex-1",children:[a?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,z.default)(a.name)}),a?.description&&(0,s.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,z.default)(a.description)}),a?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(ze,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&(0,s.jsx)(_,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]}),Qn=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-6",children:t?.map((a,i)=>(0,s.jsxs)("div",{className:"feature-item relative w-full flex flex-col overflow-hidden bg-gray-100 rounded-xl",children:[(0,s.jsxs)("div",{className:"w-full flex flex-1 flex-col p-5",children:[(0,s.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,z.default)(a.name)}),a?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,z.default)(a.description)})]}),a?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(ze,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),(0,s.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,s.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})})]},i))}),o&&(0,s.jsx)(_,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]}),Un=({dataHeading:e,dataFeatures:t,dataButtons:o,dataBanner:a})=>(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-10 lg:gap-14",children:[(0,s.jsx)("div",{className:"lg:col-span-6 flex items-center",children:(0,s.jsxs)("div",{className:"w-full",children:[e&&(0,s.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.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,s.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,s.jsx)("div",{className:"w-10 h-10",children:(0,s.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,z.default)(i.name)}),i?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,z.default)(i.description)})]}),i?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(ze,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),o&&(0,s.jsx)(_,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]})}),a&&(0,s.jsx)("div",{className:"lg:col-span-4 flex items-center",children:(0,s.jsx)("div",{className:"max-w-md mx-auto w-full",children:(0,s.jsx)(ke,{ratio:a?.ratio||1,className:"w-full",children:(0,s.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),Xn=({dataHeading:e,dataFeatures:t,dataBanner:o,dataButtons:a})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,s.jsx)("div",{className:r("relative flex items-center",o&&"lg:min-h-[590px]"),children:t&&(0,s.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,s.jsxs)("div",{className:r("feature-item relative w-full",o&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[(0,s.jsx)("div",{className:"w-12 h-12",children:(0,s.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,z.default)(i.name)}),i?.description&&(0,s.jsx)("div",{className:"text-gray-500 mt-2",children:(0,z.default)(i.description)})]}),i?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(ze,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),o&&(0,s.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,s.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,s.jsx)("div",{className:"w-full h-full bg-gray-100 overflow-hidden",style:{borderRadius:"30px"},children:(0,s.jsx)("img",{src:o?.src,alt:o?.alt,className:"w-full h-full object-contain"})})]})]})}),a&&(0,s.jsx)(_,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:a?.align||"left"})]});var J=require("react/jsx-runtime"),Xl=({template:e,dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return(0,J.jsx)(Pi,{dataHeading:t,dataFeatures:o,dataButtons:a});case 2:return(0,J.jsx)(Vn,{dataHeading:t,dataFeatures:o,dataButtons:a});case 3:return(0,J.jsx)(On,{dataHeading:t,dataFeatures:o,dataButtons:a});case 4:return(0,J.jsx)(Gn,{dataHeading:t,dataFeatures:o,dataButtons:a});case 5:return(0,J.jsx)($n,{dataHeading:t,dataFeatures:o,dataButtons:a});case 6:return(0,J.jsx)(Wn,{dataHeading:t,dataFeatures:o,dataButtons:a});case 7:return(0,J.jsx)(jn,{dataHeading:t,dataFeatures:o,dataButtons:a});case 8:return(0,J.jsx)(Qn,{dataHeading:t,dataFeatures:o,dataButtons:a});case 9:return(0,J.jsx)(Un,{dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i});case 10:return(0,J.jsx)(Xn,{dataHeading:t,dataFeatures:o,dataBanner:i,dataButtons:a});default:return(0,J.jsx)(Pi,{dataHeading:t,dataFeatures:o,dataButtons:a})}},ql=({template:e,dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i})=>(0,J.jsx)(J.Fragment,{children:Xl({template:e,dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i})}),qn=({template:e=1,background:t,className:o,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:l,dataBanner:c})=>(0,J.jsx)(xe,{className:o,idSection:a,background:t,children:(0,J.jsx)(ql,{template:e,dataHeading:i,dataFeatures:n,dataButtons:l,dataBanner:c})});var Zn=f(require("react"),1),Be=f(require("@radix-ui/react-slider"),1);var kt=require("react/jsx-runtime"),Ci=Zn.forwardRef(({className:e,...t},o)=>(0,kt.jsxs)(Be.Root,{ref:o,className:r("relative flex w-full touch-none select-none items-center",t?.disabled&&"opacity-40",e),...t,children:[(0,kt.jsx)(Be.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,kt.jsx)(Be.Range,{className:"absolute h-full bg-pink-500"})}),(0,kt.jsx)(Be.Thumb,{className:"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"}),(0,kt.jsx)(Be.Thumb,{className:"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"})]}));Ci.displayName=Be.Root.displayName;var P=require("react/jsx-runtime"),Kn=({dataHeading:e,dataBrands:t,dataButtons:o,spaceX:a,isScrollSnap:i})=>{let n={spacingX:"md:gap-x-5",spacingM:"md:gap-x-6",spacingL:"md:gap-x-7",spacingXl:"md:gap-x-10",spacing2Xl:"md:gap-x-12"};return(0,P.jsxs)(P.Fragment,{children:[e&&(0,P.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&t?.length>0&&(0,P.jsx)("div",{className:r("list-brands flex flex-row gap-y-6 md:flex-wrap md:justify-center overflow-hidden overflow-x-auto py-2",n[a||"spacingXl"],i?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3":"flex-wrap justify-center"),children:t?.map((l,c)=>(0,P.jsx)("div",{className:r("flex justify-center items-center md:px-0 px-2.5 md:basis-auto",i?"snap-center shrink-0 first:pl-5 last:pr-5 basis-[28.5%]":"basis-1/2"),children:(0,P.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:l?.url?(0,P.jsx)("a",{href:l?.url,title:l?.name,target:l?.newTab?"_blank":"_self",className:"group",children:(0,P.jsx)("img",{src:l?.logo,loading:"lazy",alt:l?.name,className:"object-contain transition transform group-hover:scale-105"})}):(0,P.jsx)("img",{src:l?.logo,loading:"lazy",alt:l?.name,className:"object-contain"})})},c))}),o&&(0,P.jsx)(_,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"center"})]})},Zl=({dataHeading:e,dataBrands:t,dataButtons:o,isScrollSnap:a})=>(0,P.jsxs)(P.Fragment,{children:[e&&(0,P.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&t?.length>0&&(0,P.jsx)("div",{className:r("list-brands md:grid-cols-4 md:gap-y-6 md:gap-x-7",a?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3 flex md:grid overflow-hidden overflow-x-auto md:mx-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:t?.map((i,n)=>(0,P.jsx)("div",{className:r("flex justify-center items-center text-center",a?"snap-center shrink-0 first:pl-5 last:pr-5 md:first:pl-0 md:last:pr-0 basis-5/12 px-2 md:px-0":""),children:i?.url?(0,P.jsx)("a",{href:i?.url,title:i?.name,target:i?.newTab?"_blank":"_self",className:"flex justify-center items-center rounded-md border border-gray-200 duration-300 hover:border-pink-500 w-full h-full p-3",children:(0,P.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:(0,P.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):(0,P.jsx)("div",{className:"flex justify-center items-center rounded-md border border-gray-200 w-full h-full p-3",children:(0,P.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:(0,P.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),o&&(0,P.jsx)(_,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"center"})]}),Kl=({template:e,dataHeading:t,dataBrands:o,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return(0,P.jsx)(Kn,{dataHeading:t,dataBrands:o,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return(0,P.jsx)(Zl,{dataHeading:t,dataBrands:o,dataButtons:a,isScrollSnap:n});default:return(0,P.jsx)(Kn,{dataHeading:t,dataBrands:o,dataButtons:a,spaceX:i,isScrollSnap:n})}},Yl=({template:e,dataHeading:t,dataBrands:o,dataButtons:a,spaceX:i,isScrollSnap:n})=>(0,P.jsx)(P.Fragment,{children:Kl({template:e,dataHeading:t,dataBrands:o,dataButtons:a,spaceX:i,isScrollSnap:n})}),Yn=({template:e=1,background:t,className:o,idSection:a,dataHeading:i,dataBrands:n,dataButtons:l,spaceX:c="spacingXl",isScrollSnap:d})=>(0,P.jsx)(xe,{className:o,idSection:a,background:t,children:(0,P.jsx)(Yl,{template:e,dataHeading:i,dataBrands:n,dataButtons:l,spaceX:c,isScrollSnap:d})});var ns=require("react");var G=require("react/jsx-runtime"),Jl=({author:e=""})=>(0,G.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),em=({author:e,avatar:t})=>(0,G.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,G.jsx)("img",{src:t,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,G.jsx)(Jl,{author:e})});function tm({avatar:e="",author:t="",time:o,statusMessage:a,isOutStanding:i}){return(0,G.jsx)(G.Fragment,{children:(0,G.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,G.jsx)(em,{avatar:e,author:t}),(0,G.jsxs)("div",{className:"flex flex-col",children:[t&&(0,G.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:t}),(0,G.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[o&&(0,G.jsx)("div",{className:"text-gray-400",children:o}),a&&(0,G.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,G.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,G.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&(0,G.jsx)("div",{className:"absolute right-1 top-0",children:(0,G.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Jn=tm;var Ti=require("react");var es=require("@heroicons/react/20/solid"),Ot=require("react/jsx-runtime"),om={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 im({point:e,max:t,className:o}){let a=t>5?om[e||10]:am[e||5];return(0,Ot.jsxs)("div",{className:r("flex items-center space-x-1",o),children:[(0,Ot.jsx)(es.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,Ot.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${t}`}),(0,Ot.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var ts=im;var os=require("react"),Ri=f(require("html-react-parser"),1);var ea=require("react/jsx-runtime"),Jo=({children:e,maxChar:t=260,textMore:o="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[l,c]=(0,os.useState)(!0),d=()=>{c(!l)},p=(u,h,N=" ")=>u.length<=h?u:u.substring(0,u.lastIndexOf(N,h));return(0,ea.jsxs)("div",{className:r(n),children:[l?(0,Ri.default)(p(e,t)):(0,Ri.default)(e),e.length>t&&(0,ea.jsx)("span",{onClick:d,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:l?o:a})]})};var Se=require("react/jsx-runtime");function rm({content:e,thumbnails:t=[],tags:o=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[l,c]=(0,Ti.useState)(0),[d,p]=(0,Ti.useState)(!1),u=h=>{p(!0),c(h)};return(0,Se.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&(0,Se.jsx)(ts,{className:"mb-0.5",point:i.point,max:i.max}),e&&(0,Se.jsx)(Jo,{className:"text-sm",maxChar:n,children:e}),o?.length>0&&(0,Se.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:o?.map(h=>(0,Se.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:h}))}),t?.length>0&&(0,Se.jsxs)(Zo,{open:d,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:[t?.map((h,N)=>(0,Se.jsx)(ke,{onClick:()=>u(N),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,Se.jsx)("img",{src:h.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},N)),(0,Se.jsx)(Ko,{activeSlideIndex:l,images:t?.map((h,N)=>({url:h.url,titleImage:h.titleImage,idx:N})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var as=rm;var rs=require("react/jsx-runtime");function nm({actions:e=[]}){return(0,rs.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var is=nm;var St=require("react/jsx-runtime"),ss=(0,ns.forwardRef)(({avatar:e,author:t,time:o,ratingPoint:a,content:i,tags:n,thumbnails:l,actions:c=[],statusMessage:d,isReply:p,children:u,commentSideBar:h,isOutStanding:N,limitContent:L=260},j)=>(0,St.jsxs)("div",{ref:j,className:r("",p?"ml-4 py-4":"py-5"),children:[(0,St.jsx)(Jn,{avatar:e,author:t,time:o,statusMessage:d,isOutStanding:N}),(0,St.jsx)(as,{content:i,thumbnails:l,tags:n,rating:a,commentSideBar:h,limitContent:L}),c&&c?.filter(Boolean)?.length>0&&(0,St.jsx)(is,{actions:c.filter(Boolean)}),u&&(0,St.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:u})]}));var pt=f(require("react"),1),ls=require("class-variance-authority");var ms=require("@heroicons/react/16/solid"),cs=require("lucide-react"),$=require("react/jsx-runtime"),sm=(0,ls.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-500 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),ds=pt.createContext("default");function lm(){let e=pt.useContext(ds);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var mm=pt.memo(({type:e,icon:t,stepNumber:o,size:a,isError:i,state:n})=>{let l=a==="small"?"w-3 h-3":"w-4 h-4";return i?(0,$.jsx)(cs.XIcon,{className:l}):(0,$.jsxs)("div",{children:[e==="iconStep"&&(0,$.jsx)("div",{className:l,children:t}),e==="numberStep"&&(0,$.jsx)("div",{children:o}),e==="default"&&(n==="completed"?(0,$.jsx)(ms.CheckIcon,{className:l}):(0,$.jsx)("div",{children:o}))]})}),ps=({step:e,currentStep:t,onValueChangeStep:o,children:a})=>{let i=pt.useCallback(()=>{e!==t&&o(e)},[e,t,o]);return(0,$.jsx)("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},fs=({step:e,state:t="default",size:o="default",className:a,title:i,description:n,lastStep:l,fristStep:c,icon:d,isError:p,onValueChangeStep:u,...h})=>{let N=lm();return(0,$.jsxs)("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[(0,$.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,$.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",t==="active"&&"bg-pink-300",t==="completed"&&"bg-pink-300")}),(0,$.jsx)("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",sm({state:t,size:o}),p&&"bg-red-500 text-white shadow-none",a),...h,children:(0,$.jsx)(mm,{type:N,icon:d,stepNumber:e,size:o,isError:p,state:t})}),(0,$.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",t==="completed"&&"bg-pink-300")})]}),(0,$.jsxs)("div",{className:"text-center w-full flex flex-col items-center mt-2 px-0.5",children:[i&&(0,$.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:i}),n&&(0,$.jsx)("div",{className:"text-xs text-gray-500 ",children:n})]})]})},gs=({children:e,className:t,type:o="numberStep",...a})=>(0,$.jsx)(ds.Provider,{value:o,children:(0,$.jsx)("div",{className:r("flex items-start justify-between w-full",t),...a,children:e})});var xo=f(require("react"),1);var ki=f(require("html-react-parser"),1),W=require("react/jsx-runtime"),Si=(0,xo.memo)(({dataFAQ:e,dataHeading:t})=>(0,W.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[t&&(0,W.jsx)(k,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading||"h2",align:"left",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,W.jsx)("div",{className:"col-span-2",children:e[0]?.contents.map((o,a)=>(0,W.jsx)(Ye,{type:"single",collapsible:!0,className:"w-full",children:(0,W.jsxs)(Je,{value:o.title,children:[(0,W.jsx)(et,{className:"font-bold",children:o.title}),(0,W.jsx)(tt,{children:(0,ki.default)(o.description)})]})},o.title+a))})]})),us=(0,xo.memo)(({dataFAQ:e,dataHeading:t})=>(0,W.jsxs)(xo.default.Fragment,{children:[t&&(0,W.jsx)(k,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&(0,W.jsxs)(_t,{defaultValue:e[0]?.title,children:[(0,W.jsx)(bt,{className:"flex items-center sm:justify-center",children:e.map((o,a)=>(0,W.jsx)(ht,{value:o.title,children:o.title},o.title+a))}),e.map((o,a)=>(0,W.jsx)(yt,{className:"max-w-3xl mx-auto",value:o.title,children:o.contents.map((i,n)=>(0,W.jsx)(Ye,{type:"single",collapsible:!0,className:"w-full",children:(0,W.jsxs)(Je,{value:i.title,children:[(0,W.jsx)(et,{className:"font-bold",children:i.title}),(0,W.jsx)(tt,{children:(0,ki.default)(i.description)})]})},i.title+n))},o.title+a))]})]}));var Ze=require("react/jsx-runtime"),cm=({template:e,dataFAQ:t,dataHeading:o})=>{switch(e){case 1:return(0,Ze.jsx)(Si,{dataFAQ:t,dataHeading:o});case 2:return(0,Ze.jsx)(us,{dataFAQ:t,dataHeading:o});default:return(0,Ze.jsx)(Si,{dataFAQ:t,dataHeading:o})}},dm=({dataHeading:e,dataFAQ:t,template:o})=>(0,Ze.jsx)(Ze.Fragment,{children:cm({dataHeading:e,dataFAQ:t,template:o})}),vs=({dataHeading:e,dataFAQ:t=[],className:o="",background:a=""})=>{let i=t&&t?.length>1?2:1;return(0,Ze.jsx)(xe,{className:r(o),background:a,children:(0,Ze.jsx)(dm,{dataHeading:e,dataFAQ:t,template:i})})};var Gt=f(require("react"),1);var I=require("react/jsx-runtime"),pm=({src:e})=>(0,I.jsx)("div",{className:"aspect-[77/37] rounded-md relative overflow-hidden hidden md:block mb-3",children:(0,I.jsx)("img",{className:"",src:e,alt:"news-image-des"})}),fm=({src:e})=>(0,I.jsx)("div",{className:"aspect-[1/1] rounded-md relative overflow-hidden md:hidden mb-3",children:(0,I.jsx)("img",{className:"",src:e,alt:"new-image"})}),xs=({news:e})=>(0,I.jsxs)("div",{className:"group",children:[(0,I.jsx)(pm,{src:e?.thumbnails?.thumbnailDesktop}),(0,I.jsx)(fm,{src:e?.thumbnails?.thumbnailMobile}),(0,I.jsx)("div",{className:"mb-3 text-gray-900 font-medium text-sm sm:text-base group-hover:text-pink-500 line-clamp-2 leading-6",children:e?.title}),(0,I.jsx)("div",{className:"text-gray-500 text-xs",children:e?.dateTime})]}),Di=(0,Gt.memo)(({dataHeading:e,dataNews:t,cols:o=3,onClickModal:a})=>{let i=(n,l)=>{a&&(n?.preventDefault(),n?.stopPropagation(),a?.(l))};return(0,I.jsxs)(Gt.default.Fragment,{children:[e&&(0,I.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&(0,I.jsx)("div",{className:`grid gap-4 sm:gap-6 grid-cols-2 sm:grid-cols-${o}`,children:t?.[0]?.contents?.map(n=>(0,I.jsx)("a",{onClick:l=>i(l,n?.id),href:n.url,target:"_blank",children:(0,I.jsx)(xs,{news:n})},n?.id))})]})}),bs=(0,Gt.memo)(({dataHeading:e,dataNews:t,cols:o=3,onClickModal:a})=>{let i=(n,l)=>{a&&(n?.preventDefault(),n?.stopPropagation(),a?.(l))};return(0,I.jsxs)(Gt.default.Fragment,{children:[e&&(0,I.jsx)(k,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&(0,I.jsxs)(_t,{defaultValue:t[0]?.title,children:[(0,I.jsx)(bt,{className:"flex items-center justify-center mb-6",children:t.map((n,l)=>(0,I.jsx)(ht,{value:n.title,children:n.title},n.title+l))}),t?.map((n,l)=>(0,I.jsx)(yt,{value:n.title,className:`grid gap-4 sm:gap-6 mt-0 grid-cols-2 sm:grid-cols-${o}`,children:n?.contents?.map(c=>(0,I.jsx)("a",{onClick:d=>i(d,c?.id),href:c.url,target:"_blank",children:(0,I.jsx)(xs,{news:c})},c?.id))},n.title+l))]})]})});var we=require("react/jsx-runtime"),gm=({template:e,dataNews:t,dataHeading:o,cols:a,onClickModal:i})=>{switch(e){case 1:return(0,we.jsx)(Di,{cols:a,dataNews:t,dataHeading:o,onClickModal:i});case 2:return(0,we.jsx)(bs,{cols:a,dataNews:t,dataHeading:o,onClickModal:i});default:return(0,we.jsx)(Di,{cols:a,dataNews:t,dataHeading:o,onClickModal:i})}},um=({dataHeading:e,dataNews:t,template:o,cols:a,onClickModal:i})=>(0,we.jsx)(we.Fragment,{children:gm({dataHeading:e,dataNews:t,template:o,cols:a,onClickModal:i})}),hs=({dataHeading:e,dataNews:t=[],className:o="",background:a="",buttonLoadMore:i,cols:n,onClickModal:l})=>{let c=t&&t?.length>1?2:1;return(0,we.jsxs)(xe,{className:r(o),background:a,children:[(0,we.jsx)(um,{dataHeading:e,dataNews:t,template:c,cols:n,onClickModal:l}),i?.isShow&&(0,we.jsx)("div",{className:"w-full flex items-center justify-center mt-8",children:(0,we.jsxs)(Mt,{action:i?.url,newTab:i?.isNewTab,variant:"outline",children:[i?.content,i?.icon]})})]})};var re=f(require("react"),1),Ps=require("@radix-ui/react-slot"),$t=require("react-hook-form");var ys=f(require("react"),1),Ii=f(require("@radix-ui/react-label"),1),ws=require("class-variance-authority");var Ns=require("react/jsx-runtime"),vm=(0,ws.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ta=ys.forwardRef(({className:e,...t},o)=>(0,Ns.jsx)(Ii.Root,{ref:o,className:r(vm(),e),...t}));ta.displayName=Ii.Root.displayName;var Ke=require("react/jsx-runtime"),Cs=$t.FormProvider,Rs=re.createContext({}),Ts=({...e})=>(0,Ke.jsx)(Rs.Provider,{value:{name:e.name},children:(0,Ke.jsx)($t.Controller,{...e})}),Wt=()=>{let e=re.useContext(Rs),t=re.useContext(ks),{getFieldState:o,formState:a}=(0,$t.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=re.createContext({}),Mi=re.forwardRef(({className:e,...t},o)=>{let a=re.useId();return(0,Ke.jsx)(ks.Provider,{value:{id:a},children:(0,Ke.jsx)("div",{ref:o,className:r("space-y-2",e),...t})})});Mi.displayName="FormItem";var Ai=re.forwardRef(({className:e,...t},o)=>{let{error:a,formItemId:i}=Wt();return(0,Ke.jsx)(ta,{ref:o,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...t})});Ai.displayName="FormLabel";var Li=re.forwardRef(({...e},t)=>{let{error:o,formItemId:a,formDescriptionId:i,formMessageId:n}=Wt();return(0,Ke.jsx)(Ps.Slot,{ref:t,id:a,"aria-describedby":o?`${i} ${n}`:`${i}`,"aria-invalid":!!o,...e})});Li.displayName="FormControl";var Ei=re.forwardRef(({className:e,...t},o)=>{let{formDescriptionId:a}=Wt();return(0,Ke.jsx)("p",{ref:o,id:a,className:r("text-[0.8rem] text-gray-500",e),...t})});Ei.displayName="FormDescription";var Fi=re.forwardRef(({className:e,children:t,...o},a)=>{let{error:i,formMessageId:n}=Wt(),l=i?String(i?.message):t;return l?(0,Ke.jsx)("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...o,children:l}):null});Fi.displayName="FormMessage";var js=f(require("color"),1),Qs=f(require("tailwindcss/plugin.js"),1);var Ve="250ms",Ss={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Ve},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Ve},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Ve},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Ve},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Ve},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Ve},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Ve},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Ve},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Ve},".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":Ve}};var Ds={".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 Is={".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 Ms={...Ds,...Ss,...Is};var As=require("flat");function xm(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 Ls=e=>xm((0,As.flatten)(e,{safe:!0,delimiter:"-"}));var Es={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Fs={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var _s={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Hs={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var zs={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Bs={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Vs={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Os={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var Gs={white:"#ffffff",black:"#000000",blue:Es,green:Fs,pink:_s,purple:Hs,red:zs,yellow:Bs,gray:Os,orange:Vs};var _i={...Gs};var $s={"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 Ws={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 bm=e=>{let t={utilities:{},colors:{}},o=Ls(_i),a=$s,i=":root";return t.utilities[i]={},Object.entries(o).forEach(([n,l])=>{if(l)try{let[c,d,p]=(0,js.default)(l).rgb().array(),u=`--${e}-${n}`;t.utilities[i][u]=`${c} ${d} ${p}`,t.colors[n]=`rgb(var(${u}) / <alpha-value>)`}catch(c){console.log("error",c?.message)}}),Object.entries(a).forEach(([n,l])=>{if(!l)return;let c=`--${e}-${n}`;if(typeof l=="object")Object.entries(l).forEach(([d,p])=>{let u=`${c}-${d}`;t.utilities[i][u]=p});else{let d=c.includes("opacity")&&typeof l=="number"?l?.toString().replace(/^0\./,"."):l;t.utilities[i][c]=d}}),t},Us=()=>{let e="mobase",t=bm(e);return(0,Qs.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({...Ms})},{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:{..._i,...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)`},...Ws}}})};var x=require("react/jsx-runtime"),Xs=(0,x.jsxs)(x.Fragment,{children:[(0,x.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,x.jsx)("meta",{name:"distribution",content:"Global"}),(0,x.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,x.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,x.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,x.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,x.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,x.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,x.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,x.jsx)("meta",{name:"language",content:"vietnamese"}),(0,x.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,x.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,x.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,x.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,x.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,x.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,x.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,x.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,x.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,x.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,x.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,x.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,x.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,x.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,x.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,x.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,x.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,x.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,x.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,x.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,x.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,x.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
165
|
+
`})]}),cs=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:t?.map((i,a)=>(0,s.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,s.jsx)("div",{className:"w-16 h-16",children:(0,s.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-4 flex-1",children:[(0,s.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,_.default)(i.name)}),i?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,_.default)(i.description)})]}),i?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(Ve,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},a))}),o&&(0,s.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]}),ds=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-0 lg:gap-12",children:[(0,s.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,s.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:r("lg:mb-0",e?.className)}),o&&(0,s.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:`hidden lg:flex ${o?.className}`,align:"left"})]}),(0,s.jsxs)("div",{className:"lg:col-span-6",children:[t&&(0,s.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-5",children:t?.map((i,a)=>(0,s.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-5 bg-white",children:[(0,s.jsx)("div",{className:"w-16 h-16",children:(0,s.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,_.default)(i.name)}),i?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,_.default)(i.description)})]}),i?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(Ve,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},a))}),o&&(0,s.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:`flex lg:hidden ${o?.className}`,align:o?.align||"left"})]})]}),ps=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-5 max-w-4xl mx-auto",children:t?.map((i,a)=>(0,s.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-7 bg-white",children:[(0,s.jsx)("div",{className:"w-12 h-12 ",children:(0,s.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,_.default)(i.name)}),i?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,_.default)(i.description)})]}),i?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(Ve,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},a))}),o&&(0,s.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]}),fs=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.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((i,a)=>(0,s.jsxs)("div",{className:"feature-item relative w-full",children:[(0,s.jsx)("div",{className:"w-12 h-12",children:(0,s.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,_.default)(i.name)}),i?.description&&(0,s.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,_.default)(i.description)})]}),i?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(Ve,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},a))}),o&&(0,s.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]}),gs=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.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((i,a)=>(0,s.jsxs)("div",{className:"feature-item relative w-full flex gap-3",children:[(0,s.jsx)("div",{className:"w-12 h-12",children:(0,s.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full flex-1",children:[i?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,_.default)(i.name)}),i?.description&&(0,s.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,_.default)(i.description)}),i?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(Ve,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},a))}),o&&(0,s.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]}),us=({dataHeading:e,dataFeatures:t,dataButtons:o})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-6",children:t?.map((i,a)=>(0,s.jsxs)("div",{className:"feature-item relative w-full flex flex-col overflow-hidden bg-gray-100 rounded-xl",children:[(0,s.jsxs)("div",{className:"w-full flex flex-1 flex-col p-5",children:[(0,s.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,_.default)(i.name)}),i?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,_.default)(i.description)})]}),i?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(Ve,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]}),(0,s.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,s.jsx)("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})})]},a))}),o&&(0,s.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]}),vs=({dataHeading:e,dataFeatures:t,dataButtons:o,dataBanner:i})=>(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-10 lg:gap-14",children:[(0,s.jsx)("div",{className:"lg:col-span-6 flex items-center",children:(0,s.jsxs)("div",{className:"w-full",children:[e&&(0,s.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&(0,s.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:auto-cols-auto",children:t?.map((a,n)=>(0,s.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,s.jsx)("div",{className:"w-10 h-10",children:(0,s.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,_.default)(a.name)}),a?.description&&(0,s.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,_.default)(a.description)})]}),a?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(Ve,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},n))}),o&&(0,s.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"left"})]})}),i&&(0,s.jsx)("div",{className:"lg:col-span-4 flex items-center",children:(0,s.jsx)("div",{className:"max-w-md mx-auto w-full",children:(0,s.jsx)(ue,{ratio:i?.ratio||1,className:"w-full",children:(0,s.jsx)("img",{src:i?.src,alt:i?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),bs=({dataHeading:e,dataFeatures:t,dataBanner:o,dataButtons:i})=>(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,s.jsx)("div",{className:r("relative flex items-center",o&&"lg:min-h-[590px]"),children:t&&(0,s.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((a,n)=>(0,s.jsxs)("div",{className:r("feature-item relative w-full",o&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[(0,s.jsx)("div",{className:"w-12 h-12",children:(0,s.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,s.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,s.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,s.jsx)("h3",{className:"text-lg font-semibold",children:(0,_.default)(a.name)}),a?.description&&(0,s.jsx)("div",{className:"text-gray-500 mt-2",children:(0,_.default)(a.description)})]}),a?.btnLink&&(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(Ve,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},n)),o&&(0,s.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,s.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,s.jsx)("div",{className:"w-full h-full bg-gray-100 overflow-hidden",style:{borderRadius:"30px"},children:(0,s.jsx)("img",{src:o?.src,alt:o?.alt,className:"w-full h-full object-contain"})})]})]})}),i&&(0,s.jsx)(D,{isFullInMobile:i?.isFullInMobile,buttons:i?.buttons,className:i?.className,align:i?.align||"left"})]});var ee=require("react/jsx-runtime"),mm=({template:e,dataHeading:t,dataFeatures:o,dataButtons:i,dataBanner:a})=>{switch(e){case 1:return(0,ee.jsx)(Ma,{dataHeading:t,dataFeatures:o,dataButtons:i});case 2:return(0,ee.jsx)(ms,{dataHeading:t,dataFeatures:o,dataButtons:i});case 3:return(0,ee.jsx)(cs,{dataHeading:t,dataFeatures:o,dataButtons:i});case 4:return(0,ee.jsx)(ds,{dataHeading:t,dataFeatures:o,dataButtons:i});case 5:return(0,ee.jsx)(ps,{dataHeading:t,dataFeatures:o,dataButtons:i});case 6:return(0,ee.jsx)(fs,{dataHeading:t,dataFeatures:o,dataButtons:i});case 7:return(0,ee.jsx)(gs,{dataHeading:t,dataFeatures:o,dataButtons:i});case 8:return(0,ee.jsx)(us,{dataHeading:t,dataFeatures:o,dataButtons:i});case 9:return(0,ee.jsx)(vs,{dataHeading:t,dataFeatures:o,dataButtons:i,dataBanner:a});case 10:return(0,ee.jsx)(bs,{dataHeading:t,dataFeatures:o,dataBanner:a,dataButtons:i});default:return(0,ee.jsx)(Ma,{dataHeading:t,dataFeatures:o,dataButtons:i})}},cm=({template:e,dataHeading:t,dataFeatures:o,dataButtons:i,dataBanner:a})=>(0,ee.jsx)(ee.Fragment,{children:mm({template:e,dataHeading:t,dataFeatures:o,dataButtons:i,dataBanner:a})}),xs=({template:e=1,background:t,className:o,idSection:i,dataHeading:a,dataFeatures:n,dataButtons:l,dataBanner:c})=>(0,ee.jsx)(le,{className:o,idSection:i,background:t,children:(0,ee.jsx)(cm,{template:e,dataHeading:a,dataFeatures:n,dataButtons:l,dataBanner:c})});var oi=f(require("html-react-parser"),1),Ns=require("@heroicons/react/24/solid");var y=require("react/jsx-runtime"),hs=({testimonial:e,isHiddenOnMobile:t=!1,index:o=0,itemCount:i})=>(0,y.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===i?"pr-5":""),children:(0,y.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,y.jsxs)("div",{className:"testimonial-item-width",children:[(0,y.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,y.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,y.jsx)("img",{src:e?.avatar,loading:"lazy",className:"h-full w-full object-cover",alt:e.name})}),(0,y.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,y.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,y.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,oi.default)(e.position)})]})]}),(0,y.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,y.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,oi.default)(e.shortTitle)}),e?.description&&(0,y.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,oi.default)(e.description)})]}),(0,y.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,y.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&(0,y.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,n)=>(0,y.jsx)(Ns.StarIcon,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),ys=({dataHeading:e,dataTestimonials:t,dataButtons:o})=>(0,y.jsxs)(y.Fragment,{children:[e&&(0,y.jsx)(T,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:e.align,colorScheme:"pink",sizeHeading:e.sizeHeading,className:e.className}),(t?.length??0)>0&&(0,y.jsx)("div",{className:"testimonials scroll-hidden relative overflow-x-scroll py-2 md:overflow-hidden -my-2 -mx-5 sm:mx-0",children:(0,y.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((i,a)=>(0,y.jsx)(hs,{testimonial:i,index:a,itemCount:t?.length||0},a)),(t?.length??0)>3&&t?.map((i,a)=>(0,y.jsx)(hs,{testimonial:i,isHiddenOnMobile:!0},a))]})}),o&&(0,y.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:o?.align||"center"}),(0,y.jsx)("style",{children:`
|
|
166
|
+
${(t?.length??0)>3&&`
|
|
167
|
+
@media screen and (min-width: 640px) {
|
|
168
|
+
.testimonials {
|
|
169
|
+
--items-count: ${t?.length||0};
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.testimonials-slider {
|
|
173
|
+
animation: scroll-infinite linear infinite;
|
|
174
|
+
animation-duration: calc(var(--items-count) * 5s);
|
|
175
|
+
}
|
|
176
|
+
.testimonials-slider:hover {
|
|
177
|
+
animation-play-state: paused;
|
|
178
|
+
}
|
|
179
|
+
.testimonial-item-width {
|
|
180
|
+
width: ${(t?.length??0)===4?"410px":"320px"};
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
@keyframes scroll-infinite {
|
|
184
|
+
0% {
|
|
185
|
+
transform: translateX(0);
|
|
186
|
+
}
|
|
187
|
+
100% {
|
|
188
|
+
transform: translateX(calc(${(t?.length??0)===4?"-476px":"-386px"} * var(--items-count)));
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`}
|
|
192
|
+
|
|
193
|
+
`})]}),dm=({template:e,dataHeading:t,dataTestimonials:o,dataButtons:i})=>{switch(e){case 1:return(0,y.jsx)(ys,{dataHeading:t,dataTestimonials:o,dataButtons:i});default:return(0,y.jsx)(ys,{dataHeading:t,dataTestimonials:o,dataButtons:i})}},pm=({template:e,dataHeading:t,dataTestimonials:o,dataButtons:i})=>(0,y.jsx)(y.Fragment,{children:dm({template:e,dataHeading:t,dataTestimonials:o,dataButtons:i})}),ws=({template:e=1,background:t,className:o,idSection:i,dataHeading:a,dataTestimonials:n,dataButtons:l})=>(0,y.jsx)(le,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${o||""}`,idSection:i,background:t,children:(0,y.jsx)(pm,{template:e,dataHeading:a,dataTestimonials:n,dataButtons:l})});var xo=f(require("react"),1);var La=f(require("html-react-parser"),1),j=require("react/jsx-runtime"),Ea=(0,xo.memo)(({dataFAQ:e,dataHeading:t})=>(0,j.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[t&&(0,j.jsx)(T,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading||"h2",align:"left",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,j.jsx)("div",{className:"col-span-2",children:e[0]?.contents.map((o,i)=>(0,j.jsx)(Je,{type:"single",collapsible:!0,className:"w-full",children:(0,j.jsxs)(et,{value:o.title,children:[(0,j.jsx)(tt,{className:"font-bold",children:o.title}),(0,j.jsx)(ot,{children:(0,La.default)(o.description)})]})},o.title+i))})]})),Ps=(0,xo.memo)(({dataFAQ:e,dataHeading:t})=>(0,j.jsxs)(xo.default.Fragment,{children:[t&&(0,j.jsx)(T,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&(0,j.jsxs)(Ft,{defaultValue:e[0]?.title,children:[(0,j.jsx)(xt,{className:"flex items-center sm:justify-center",children:e.map((o,i)=>(0,j.jsx)(ht,{value:o.title,children:o.title},o.title+i))}),e.map((o,i)=>(0,j.jsx)(yt,{className:"max-w-3xl mx-auto",value:o.title,children:o.contents.map((a,n)=>(0,j.jsx)(Je,{type:"single",collapsible:!0,className:"w-full",children:(0,j.jsxs)(et,{value:a.title,children:[(0,j.jsx)(tt,{className:"font-bold",children:a.title}),(0,j.jsx)(ot,{children:(0,La.default)(a.description)})]})},a.title+n))},o.title+i))]})]}));var Ye=require("react/jsx-runtime"),fm=({template:e,dataFAQ:t,dataHeading:o})=>{switch(e){case 1:return(0,Ye.jsx)(Ea,{dataFAQ:t,dataHeading:o});case 2:return(0,Ye.jsx)(Ps,{dataFAQ:t,dataHeading:o});default:return(0,Ye.jsx)(Ea,{dataFAQ:t,dataHeading:o})}},gm=({dataHeading:e,dataFAQ:t,template:o})=>(0,Ye.jsx)(Ye.Fragment,{children:fm({dataHeading:e,dataFAQ:t,template:o})}),Cs=({dataHeading:e,dataFAQ:t=[],className:o="",background:i=""})=>{let a=t&&t?.length>1?2:1;return(0,Ye.jsx)(le,{className:r(o),background:i,children:(0,Ye.jsx)(gm,{dataHeading:e,dataFAQ:t,template:a})})};var $t=f(require("react"),1);var A=require("react/jsx-runtime"),um=({src:e})=>(0,A.jsx)("div",{className:"aspect-[77/37] rounded-md relative overflow-hidden hidden md:block mb-3",children:(0,A.jsx)("img",{className:"",src:e,alt:"news-image-des"})}),vm=({src:e})=>(0,A.jsx)("div",{className:"aspect-[1/1] rounded-md relative overflow-hidden md:hidden mb-3",children:(0,A.jsx)("img",{className:"",src:e,alt:"new-image"})}),Rs=({news:e})=>(0,A.jsxs)("div",{className:"group",children:[(0,A.jsx)(um,{src:e?.thumbnails?.thumbnailDesktop}),(0,A.jsx)(vm,{src:e?.thumbnails?.thumbnailMobile}),(0,A.jsx)("div",{className:"mb-3 text-gray-900 font-medium text-sm sm:text-base group-hover:text-pink-500 line-clamp-2 leading-6",children:e?.title}),(0,A.jsx)("div",{className:"text-gray-500 text-xs",children:e?.dateTime})]}),Fa=(0,$t.memo)(({dataHeading:e,dataNews:t,cols:o=3,onClickModal:i})=>{let a=(n,l)=>{i&&(n?.preventDefault(),n?.stopPropagation(),i?.(l))};return(0,A.jsxs)($t.default.Fragment,{children:[e&&(0,A.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&(0,A.jsx)("div",{className:`grid gap-4 sm:gap-6 grid-cols-2 sm:grid-cols-${o}`,children:t?.[0]?.contents?.map(n=>(0,A.jsx)("a",{onClick:l=>a(l,n?.id),href:n.url,target:"_blank",children:(0,A.jsx)(Rs,{news:n})},n?.id))})]})}),Ts=(0,$t.memo)(({dataHeading:e,dataNews:t,cols:o=3,onClickModal:i})=>{let a=(n,l)=>{i&&(n?.preventDefault(),n?.stopPropagation(),i?.(l))};return(0,A.jsxs)($t.default.Fragment,{children:[e&&(0,A.jsx)(T,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&(0,A.jsxs)(Ft,{defaultValue:t[0]?.title,children:[(0,A.jsx)(xt,{className:"flex items-center justify-center mb-6",children:t.map((n,l)=>(0,A.jsx)(ht,{value:n.title,children:n.title},n.title+l))}),t?.map((n,l)=>(0,A.jsx)(yt,{value:n.title,className:`grid gap-4 sm:gap-6 mt-0 grid-cols-2 sm:grid-cols-${o}`,children:n?.contents?.map(c=>(0,A.jsx)("a",{onClick:d=>a(d,c?.id),href:c.url,target:"_blank",children:(0,A.jsx)(Rs,{news:c})},c?.id))},n.title+l))]})]})});var Ce=require("react/jsx-runtime"),bm=({template:e,dataNews:t,dataHeading:o,cols:i,onClickModal:a})=>{switch(e){case 1:return(0,Ce.jsx)(Fa,{cols:i,dataNews:t,dataHeading:o,onClickModal:a});case 2:return(0,Ce.jsx)(Ts,{cols:i,dataNews:t,dataHeading:o,onClickModal:a});default:return(0,Ce.jsx)(Fa,{cols:i,dataNews:t,dataHeading:o,onClickModal:a})}},xm=({dataHeading:e,dataNews:t,template:o,cols:i,onClickModal:a})=>(0,Ce.jsx)(Ce.Fragment,{children:bm({dataHeading:e,dataNews:t,template:o,cols:i,onClickModal:a})}),ks=({dataHeading:e,dataNews:t=[],className:o="",background:i="",buttonLoadMore:a,cols:n,onClickModal:l})=>{let c=t&&t?.length>1?2:1;return(0,Ce.jsxs)(le,{className:r(o),background:i,children:[(0,Ce.jsx)(xm,{dataHeading:e,dataNews:t,template:c,cols:n,onClickModal:l}),a?.isShow&&(0,Ce.jsx)("div",{className:"w-full flex items-center justify-center mt-8",children:(0,Ce.jsxs)(At,{action:a?.url,newTab:a?.isNewTab,variant:"outline",children:[a?.content,a?.icon]})})]})};var $=require("react/jsx-runtime"),Ss=({dataHeading:e,dataCTA:t,dataButtons:o})=>(console.log("\u{1F680} ~ dataCTA:",t),(0,$.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,$.jsx)(T,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:e.align||"center",colorScheme:e.colorScheme,sizeHeading:e.sizeHeading,className:e.className}),o&&(0,$.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-0 md:mt-0"),align:o?.align||"center"})]})),hm=({dataHeading:e,dataCTA:t,dataButtons:o,dataMedia:i})=>(console.log("\u{1F680} ~ dataMedia:",i),(0,$.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,$.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,$.jsx)(T,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:e.align||"center",colorScheme:e.colorScheme,sizeHeading:e.sizeHeading,className:e.className}),o&&(0,$.jsx)(D,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-0 md:mt-0"),align:o?.align||"center"})]}),(0,$.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:i&&(0,$.jsx)(ue,{ratio:4/3,children:(0,$.jsx)("img",{src:i.src,alt:i.alt,className:"h-full w-full rounded-md object-contain"})})})]})),ym=({template:e,dataHeading:t,dataCTA:o,dataButtons:i,dataMedia:a})=>{switch(e){case 1:return(0,$.jsx)(Ss,{dataHeading:t,dataCTA:o,dataButtons:i,dataMedia:a});case 2:return(0,$.jsx)(hm,{dataHeading:t,dataCTA:o,dataButtons:i,dataMedia:a});default:return(0,$.jsx)(Ss,{dataHeading:t,dataCTA:o,dataButtons:i,dataMedia:a})}},Nm=({template:e,dataHeading:t,dataCTA:o,dataButtons:i,dataMedia:a})=>(0,$.jsx)($.Fragment,{children:ym({template:e,dataHeading:t,dataCTA:o,dataButtons:i,dataMedia:a})}),Ds=({template:e=1,background:t,className:o,idSection:i,dataHeading:a,dataCTA:n,dataButtons:l,dataMedia:c})=>(0,$.jsx)(le,{className:o,idSection:i,background:t,children:(0,$.jsx)(Nm,{template:e,dataHeading:a,dataCTA:n,dataButtons:l,dataMedia:c})});var Us=f(require("color"),1),Xs=f(require("tailwindcss/plugin.js"),1);var Oe="250ms",As={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Oe},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Oe},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Oe},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Oe},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Oe},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Oe},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Oe},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Oe},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Oe},".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":Oe}};var Is={".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 Ms={".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 Ls={...Is,...As,...Ms};var Es=require("flat");function wm(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 Fs=e=>wm((0,Es.flatten)(e,{safe:!0,delimiter:"-"}));var _s={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Hs={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var zs={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Bs={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Vs={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Os={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Gs={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var $s={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var Ws={white:"#ffffff",black:"#000000",blue:_s,green:Hs,pink:zs,purple:Bs,red:Vs,yellow:Os,gray:$s,orange:Gs};var _a={...Ws};var js={"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 Qs={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 Pm=e=>{let t={utilities:{},colors:{}},o=Fs(_a),i=js,a=":root";return t.utilities[a]={},Object.entries(o).forEach(([n,l])=>{if(l)try{let[c,d,p]=(0,Us.default)(l).rgb().array(),g=`--${e}-${n}`;t.utilities[a][g]=`${c} ${d} ${p}`,t.colors[n]=`rgb(var(${g}) / <alpha-value>)`}catch(c){console.log("error",c?.message)}}),Object.entries(i).forEach(([n,l])=>{if(!l)return;let c=`--${e}-${n}`;if(typeof l=="object")Object.entries(l).forEach(([d,p])=>{let g=`${c}-${d}`;t.utilities[a][g]=p});else{let d=c.includes("opacity")&&typeof l=="number"?l?.toString().replace(/^0\./,"."):l;t.utilities[a][c]=d}}),t},qs=()=>{let e="mobase",t=Pm(e);return(0,Xs.default)(({addBase:o,addUtilities:i,addComponents:a})=>{a({".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}),i({...Ls})},{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:{..._a,...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)`},...Qs}}})};var b=require("react/jsx-runtime"),Zs=(0,b.jsxs)(b.Fragment,{children:[(0,b.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,b.jsx)("meta",{name:"distribution",content:"Global"}),(0,b.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,b.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,b.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,b.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,b.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,b.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,b.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,b.jsx)("meta",{name:"language",content:"vietnamese"}),(0,b.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,b.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,b.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,b.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,b.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,b.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,b.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,b.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,b.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,b.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,b.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,b.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,b.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,b.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,b.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,b.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,b.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,b.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,b.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,b.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,b.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,b.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
194
194
|
"@context": "https://schema.org/",
|
|
195
195
|
"@type": "WebSite",
|
|
196
196
|
"@id":"https://www.momo.vn/#website",
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"@type": "SearchAction",
|
|
201
201
|
"target": "https://www.momo.vn/tim-kiem?q={search_term_string}",
|
|
202
202
|
"query-input": "required name=search_term_string"
|
|
203
|
-
}}`}}),(0,
|
|
203
|
+
}}`}}),(0,b.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
204
204
|
"@context": "https://schema.org",
|
|
205
205
|
"@type": "Organization",
|
|
206
206
|
"name": "Si\xEAu \u1EE9ng d\u1EE5ng MoMo",
|
|
@@ -235,5 +235,5 @@
|
|
|
235
235
|
"https://www.linkedin.com/company/momo-mservice/",
|
|
236
236
|
"https://github.com/momo-wallet"
|
|
237
237
|
]
|
|
238
|
-
}`}})]});0&&(module.exports={Accordion,AccordionContent,AccordionItem,AccordionTrigger,ActionButton,AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogOverlay,AlertDialogPortal,AlertDialogTitle,AlertDialogTrigger,AspectRatio,Badge,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Button,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,FAQSection,FeatureSection,Footer,Form,FormControl,FormDescription,FormField,FormItem,FormLabel,FormMessage,HeaderNavigation,Heading,HeadingGroup,HeadingSub,HeadingTagline,HeroSection,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,Slider,SocialProofSection,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});
|
|
238
|
+
}`}})]});0&&(module.exports={Accordion,AccordionContent,AccordionItem,AccordionTrigger,ActionButton,AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogOverlay,AlertDialogPortal,AlertDialogTitle,AlertDialogTrigger,AspectRatio,Badge,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,FAQSection,FeatureSection,Footer,Form,FormControl,FormDescription,FormField,FormItem,FormLabel,FormMessage,HeaderNavigation,Heading,HeadingGroup,HeadingSub,HeadingTagline,HeroSection,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,Slider,SocialProofSection,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});
|
|
239
239
|
//# sourceMappingURL=index.cjs.map
|