@momo-webplatform/mobase 0.2.37 → 0.2.38
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 +10 -10
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +2 -1
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +11 -11
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ln=Object.create;var Gt=Object.defineProperty;var In=Object.getOwnPropertyDescriptor;var En=Object.getOwnPropertyNames;var _n=Object.getPrototypeOf,Hn=Object.prototype.hasOwnProperty;var Bn=(e,o)=>{for(var t in o)Gt(e,t,{get:o[t],enumerable:!0})},Xa=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of En(o))!Hn.call(e,r)&&r!==t&&Gt(e,r,{get:()=>o[r],enumerable:!(a=In(o,r))||a.enumerable});return e};var g=(e,o,t)=>(t=e!=null?Ln(_n(e)):{},Xa(o||!e||!e.__esModule?Gt(t,"default",{value:e,enumerable:!0}):t,e)),Fn=e=>Xa(Gt({},"__esModule",{value:!0}),e);var Bs={};Bn(Bs,{Accordion:()=>xt,AccordionContent:()=>Nt,AccordionItem:()=>yt,AccordionTrigger:()=>wt,ActionButton:()=>qt,AlertDialog:()=>bi,AlertDialogAction:()=>$o,AlertDialogCancel:()=>jo,AlertDialogContent:()=>zo,AlertDialogDescription:()=>Go,AlertDialogFooter:()=>Oo,AlertDialogHeader:()=>Vo,AlertDialogOverlay:()=>Jt,AlertDialogPortal:()=>Fo,AlertDialogTitle:()=>Wo,AlertDialogTrigger:()=>hi,AspectRatio:()=>it,Badge:()=>Ir,Breadcrumb:()=>Ao,BreadcrumbEllipsis:()=>Ho,BreadcrumbItem:()=>Lo,BreadcrumbLink:()=>Io,BreadcrumbList:()=>Mo,BreadcrumbPage:()=>Eo,BreadcrumbSeparator:()=>_o,Button:()=>oe,Calendar:()=>kt,Callout:()=>hr,Card:()=>Pa,CardContent:()=>ka,CardDescription:()=>Ta,CardFooter:()=>Sa,CardHeader:()=>Ca,CardTitle:()=>Ra,Checkbox:()=>Tt,ChoiceboxGroup:()=>Ba,ChoiceboxGroupItem:()=>Fa,ChoiceboxMultiItem:()=>za,Combobox:()=>ur,ComboboxContent:()=>fr,ComboboxTrigger:()=>gr,Command:()=>bo,CommandDialog:()=>dr,CommandEmpty:()=>Ma,CommandGroup:()=>La,CommandInput:()=>Da,CommandItem:()=>Ea,CommandList:()=>Aa,CommandSeparator:()=>Ia,CommandShortcut:()=>_a,DatePicker:()=>vi,Dialog:()=>Fe,DialogBody:()=>Ct,DialogClose:()=>ni,DialogContent:()=>Ae,DialogDescription:()=>Do,DialogFooter:()=>ko,DialogHeader:()=>To,DialogOverlay:()=>jt,DialogPortal:()=>Ro,DialogQr:()=>ze,DialogTitle:()=>So,DialogTrigger:()=>$t,FeatureSection:()=>en,Footer:()=>cr,HeaderNavigation:()=>wa,Heading:()=>to,HeadingGroup:()=>ao,HeadingSub:()=>oo,HeadingTagline:()=>eo,HeroSection:()=>Gr,IconButton:()=>Ie,LightBoxContent:()=>kr,LightboxGallery:()=>Sr,LightboxThumbnail:()=>Rr,NavigationMenu:()=>Mt,NavigationMenuContent:()=>Ht,NavigationMenuItem:()=>It,NavigationMenuLink:()=>gt,NavigationMenuList:()=>Lt,NavigationMenuTrigger:()=>_t,Pagination:()=>Uo,Popover:()=>mt,PopoverContent:()=>Ze,PopoverTrigger:()=>ct,Progressbar:()=>Ga,RadioGroup:()=>ha,RadioGroupItem:()=>xa,SearchBar:()=>wr,Select:()=>Wi,SelectContent:()=>pa,SelectGroup:()=>$i,SelectItem:()=>ji,SelectLabel:()=>ga,SelectScrollDownButton:()=>fo,SelectScrollUpButton:()=>go,SelectSeparator:()=>fa,SelectTrigger:()=>da,SelectValue:()=>Gi,SiteMeta:()=>Sn,Slider:()=>Ua,SocialProofSection:()=>an,Stepper:()=>Vi,Switch:()=>va,Tabs:()=>Pi,TabsContent:()=>Zo,TabsList:()=>Qo,TabsTrigger:()=>Xo,TextArea:()=>ki,TextButton:()=>et,TextInput:()=>zi,ToastAction:()=>oa,Toaster:()=>Mi,Tooltip:()=>Bi,TooltipArrow:()=>la,TooltipContent:()=>ma,TooltipProvider:()=>Hi,TooltipTrigger:()=>Fi,badgeVariants:()=>Va,buttonVariants:()=>ge,mobaseTW:()=>kn,navigationMenuTriggerStyle:()=>Et,textButtonVariants:()=>na,toast:()=>Jo,useToast:()=>co});module.exports=Fn(Bs);var ht=g(require("react"),1),se=g(require("@radix-ui/react-accordion"),1),ei=require("@heroicons/react/20/solid");var zn=g(require("react"),1),Ka=require("tailwind-merge");var Se={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",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 bt=[{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"}],Po=[{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 U={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 st=require("react"),Ya=g(require("ua-parser-js"),1);function i(...e){return(0,Ka.twMerge)(e)}var Co=()=>{if(!(typeof window>"u"))return!!navigator?.userAgent?.includes(process.env.NEXT_PUBLIC_REACT_APP_MOMO_APP_USER_AGENT||"")},Vn=()=>(0,Ya.default)().device.type==="mobile",On=typeof window<"u"?st.useLayoutEffect:st.useEffect,Ja=()=>{let[e,o]=(0,st.useState)(!1);return On(()=>{o(Vn()||Co())},[]),e};var De=require("react/jsx-runtime"),xt=ht.forwardRef(({className:e,...o},t)=>(0,De.jsx)(se.Root,{ref:t,...o}));xt.displayName="AccordionRoot";var yt=ht.forwardRef(({className:e,...o},t)=>(0,De.jsx)(se.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));yt.displayName="AccordionItem";var wt=ht.forwardRef(({className:e,children:o,...t},a)=>(0,De.jsx)(se.Header,{className:"flex",children:(0,De.jsxs)(se.Trigger,{ref:a,className:i("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),...t,children:[o,(0,De.jsx)(ei.ChevronDownIcon,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));wt.displayName=se.Trigger.displayName;var Nt=ht.forwardRef(({className:e,children:o,...t},a)=>(0,De.jsx)(se.Content,{ref:a,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...t,children:(0,De.jsx)("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));Nt.displayName=se.Content.displayName;var li=require("react");var oi=g(require("react"),1),ai=require("@radix-ui/react-slot"),ii=require("class-variance-authority");var Q=require("react/jsx-runtime"),Wn=({className:e})=>(0,Q.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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"})]}),ti=Wn;var Be=require("react/jsx-runtime"),ge=(0,ii.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"}}),oe=oi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:s=!1,...m},c)=>{let d=a?ai.Slot:"button",v=i(ge({variant:o,size:t,className:e}),{"cursor-wait":r});return(0,Be.jsx)(Be.Fragment,{children:a?(0,Be.jsx)(d,{className:v,type:"button",disabled:s,ref:c,...m,children:m.children}):(0,Be.jsxs)(d,{className:v,type:"button",disabled:s,ref:c,...m,children:[r&&(0,Be.jsx)(ti,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),m.children]})})});oe.displayName="Button";var Pt=g(require("react"),1),D=g(require("@radix-ui/react-dialog"),1);var ri=require("@heroicons/react/16/solid"),Y=require("react/jsx-runtime"),Fe=D.Root,$t=D.Trigger,Ro=D.Portal,ni=D.Close,jt=Pt.forwardRef(({className:e,...o},t)=>(0,Y.jsx)(D.Overlay,{ref:t,className:i("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),...o}));jt.displayName=D.Overlay.displayName;var Ae=Pt.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:s="auto",isFull:m=!1,children:c,...d},v)=>{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"},S={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},q={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},Z=[u.base,u[r],S[a],q[s],m&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,Y.jsxs)(Ro,{children:[(0,Y.jsx)(jt,{}),(0,Y.jsxs)(D.Content,{ref:v,className:i(...Z),...d,children:[c,!t&&(0,Y.jsxs)(D.Close,{className:i("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",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[(0,Y.jsx)(ri.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Y.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Ae.displayName=D.Content.displayName;var To=({className:e,...o})=>(0,Y.jsx)("div",{className:i("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),...o});To.displayName="DialogHeader";var Ct=({className:e,isCondensed:o=!1,...t})=>(0,Y.jsx)("div",{className:i("dialog-body p-6 flex-1 overflow-y-auto",o&&"p-5",e),...t});Ct.displayName="DialogBody";var ko=({className:e,isDivider:o=!0,...t})=>(0,Y.jsx)("div",{className:i("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",o&&"border-gray-200 border-t py-4",e),...t});ko.displayName="DialogFooter";var So=Pt.forwardRef(({className:e,...o},t)=>(0,Y.jsx)(D.Title,{ref:t,className:i("text-base font-semibold line-clamp-1 max-w-full",e),...o}));So.displayName=D.Title.displayName;var Do=Pt.forwardRef(({className:e,...o},t)=>(0,Y.jsx)(D.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));Do.displayName=D.Description.displayName;var si=require("qrcode.react"),p=require("react/jsx-runtime"),Gn=({img:e="",children:o,isQrForAll:t})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"qrcode__scan__container",children:(0,p.jsxs)("div",{className:"qrcode__scan",children:[(0,p.jsx)("div",{className:"qrcode__gradient",children:(0,p.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,p.jsx)("div",{className:"qrcode__border",children:(0,p.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,p.jsx)("div",{className:"qrcode__image p-4",children:e?(0,p.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),(0,p.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,p.jsxs)(p.Fragment,{children:[(0,p.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,p.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,p.jsxs)(p.Fragment,{children:[(0,p.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,p.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,p.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,p.jsx)("style",{children:`
|
|
1
|
+
"use strict";var In=Object.create;var Gt=Object.defineProperty;var En=Object.getOwnPropertyDescriptor;var _n=Object.getOwnPropertyNames;var Hn=Object.getPrototypeOf,Bn=Object.prototype.hasOwnProperty;var Fn=(e,o)=>{for(var t in o)Gt(e,t,{get:o[t],enumerable:!0})},Xa=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of _n(o))!Bn.call(e,r)&&r!==t&&Gt(e,r,{get:()=>o[r],enumerable:!(a=En(o,r))||a.enumerable});return e};var g=(e,o,t)=>(t=e!=null?In(Hn(e)):{},Xa(o||!e||!e.__esModule?Gt(t,"default",{value:e,enumerable:!0}):t,e)),zn=e=>Xa(Gt({},"__esModule",{value:!0}),e);var Fs={};Fn(Fs,{Accordion:()=>xt,AccordionContent:()=>Nt,AccordionItem:()=>yt,AccordionTrigger:()=>wt,ActionButton:()=>qt,AlertDialog:()=>bi,AlertDialogAction:()=>$o,AlertDialogCancel:()=>jo,AlertDialogContent:()=>zo,AlertDialogDescription:()=>Go,AlertDialogFooter:()=>Oo,AlertDialogHeader:()=>Vo,AlertDialogOverlay:()=>Jt,AlertDialogPortal:()=>Fo,AlertDialogTitle:()=>Wo,AlertDialogTrigger:()=>hi,AspectRatio:()=>it,Badge:()=>Ir,Breadcrumb:()=>Ao,BreadcrumbEllipsis:()=>Ho,BreadcrumbItem:()=>Lo,BreadcrumbLink:()=>Io,BreadcrumbList:()=>Mo,BreadcrumbPage:()=>Eo,BreadcrumbSeparator:()=>_o,Button:()=>oe,Calendar:()=>kt,Callout:()=>hr,Card:()=>Pa,CardContent:()=>ka,CardDescription:()=>Ta,CardFooter:()=>Da,CardHeader:()=>Ca,CardTitle:()=>Ra,Checkbox:()=>Tt,ChoiceboxGroup:()=>Ba,ChoiceboxGroupItem:()=>Fa,ChoiceboxMultiItem:()=>za,Combobox:()=>ur,ComboboxContent:()=>fr,ComboboxTrigger:()=>gr,Command:()=>bo,CommandDialog:()=>dr,CommandEmpty:()=>Ma,CommandGroup:()=>La,CommandInput:()=>Sa,CommandItem:()=>Ea,CommandList:()=>Aa,CommandSeparator:()=>Ia,CommandShortcut:()=>_a,DatePicker:()=>vi,Dialog:()=>Fe,DialogBody:()=>Ct,DialogClose:()=>ni,DialogContent:()=>Ae,DialogDescription:()=>So,DialogFooter:()=>ko,DialogHeader:()=>To,DialogOverlay:()=>jt,DialogPortal:()=>Ro,DialogQr:()=>ze,DialogTitle:()=>Do,DialogTrigger:()=>$t,FeatureSection:()=>tn,Footer:()=>cr,HeaderNavigation:()=>wa,Heading:()=>to,HeadingGroup:()=>ao,HeadingSub:()=>oo,HeadingTagline:()=>eo,HeroSection:()=>$r,IconButton:()=>Ie,LightBoxContent:()=>kr,LightboxGallery:()=>Dr,LightboxThumbnail:()=>Rr,NavigationMenu:()=>Mt,NavigationMenuContent:()=>Ht,NavigationMenuItem:()=>It,NavigationMenuLink:()=>gt,NavigationMenuList:()=>Lt,NavigationMenuTrigger:()=>_t,Pagination:()=>Uo,Popover:()=>mt,PopoverContent:()=>Ze,PopoverTrigger:()=>ct,Progressbar:()=>Ga,RadioGroup:()=>ha,RadioGroupItem:()=>xa,SearchBar:()=>wr,Select:()=>Wi,SelectContent:()=>pa,SelectGroup:()=>$i,SelectItem:()=>ji,SelectLabel:()=>ga,SelectScrollDownButton:()=>fo,SelectScrollUpButton:()=>go,SelectSeparator:()=>fa,SelectTrigger:()=>da,SelectValue:()=>Gi,SiteMeta:()=>Sn,Slider:()=>Ua,SocialProofSection:()=>rn,Stepper:()=>Vi,Switch:()=>va,Tabs:()=>Pi,TabsContent:()=>Zo,TabsList:()=>Qo,TabsTrigger:()=>Xo,TextArea:()=>ki,TextButton:()=>et,TextInput:()=>zi,ToastAction:()=>oa,Toaster:()=>Mi,Tooltip:()=>Bi,TooltipArrow:()=>la,TooltipContent:()=>ma,TooltipProvider:()=>Hi,TooltipTrigger:()=>Fi,badgeVariants:()=>Va,buttonVariants:()=>ge,mobaseTW:()=>Dn,navigationMenuTriggerStyle:()=>Et,textButtonVariants:()=>na,toast:()=>Jo,useToast:()=>co});module.exports=zn(Fs);var ht=g(require("react"),1),se=g(require("@radix-ui/react-accordion"),1),ei=require("@heroicons/react/20/solid");var Vn=g(require("react"),1),Ka=require("tailwind-merge");var De={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",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 bt=[{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"}],Po=[{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 U={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 st=require("react"),Ya=g(require("ua-parser-js"),1);function i(...e){return(0,Ka.twMerge)(e)}var Co=()=>{if(!(typeof window>"u"))return!!navigator?.userAgent?.includes(process.env.NEXT_PUBLIC_REACT_APP_MOMO_APP_USER_AGENT||"")},On=()=>(0,Ya.default)().device.type==="mobile",Wn=typeof window<"u"?st.useLayoutEffect:st.useEffect,Ja=()=>{let[e,o]=(0,st.useState)(!1);return Wn(()=>{o(On()||Co())},[]),e};var Se=require("react/jsx-runtime"),xt=ht.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(se.Root,{ref:t,...o}));xt.displayName="AccordionRoot";var yt=ht.forwardRef(({className:e,...o},t)=>(0,Se.jsx)(se.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));yt.displayName="AccordionItem";var wt=ht.forwardRef(({className:e,children:o,...t},a)=>(0,Se.jsx)(se.Header,{className:"flex",children:(0,Se.jsxs)(se.Trigger,{ref:a,className:i("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),...t,children:[o,(0,Se.jsx)(ei.ChevronDownIcon,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));wt.displayName=se.Trigger.displayName;var Nt=ht.forwardRef(({className:e,children:o,...t},a)=>(0,Se.jsx)(se.Content,{ref:a,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...t,children:(0,Se.jsx)("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));Nt.displayName=se.Content.displayName;var li=require("react");var oi=g(require("react"),1),ai=require("@radix-ui/react-slot"),ii=require("class-variance-authority");var Q=require("react/jsx-runtime"),Gn=({className:e})=>(0,Q.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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"})]}),ti=Gn;var Be=require("react/jsx-runtime"),ge=(0,ii.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"}}),oe=oi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:s=!1,...m},c)=>{let d=a?ai.Slot:"button",v=i(ge({variant:o,size:t,className:e}),{"cursor-wait":r});return(0,Be.jsx)(Be.Fragment,{children:a?(0,Be.jsx)(d,{className:v,type:"button",disabled:s,ref:c,...m,children:m.children}):(0,Be.jsxs)(d,{className:v,type:"button",disabled:s,ref:c,...m,children:[r&&(0,Be.jsx)(ti,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),m.children]})})});oe.displayName="Button";var Pt=g(require("react"),1),S=g(require("@radix-ui/react-dialog"),1);var ri=require("@heroicons/react/16/solid"),Y=require("react/jsx-runtime"),Fe=S.Root,$t=S.Trigger,Ro=S.Portal,ni=S.Close,jt=Pt.forwardRef(({className:e,...o},t)=>(0,Y.jsx)(S.Overlay,{ref:t,className:i("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),...o}));jt.displayName=S.Overlay.displayName;var Ae=Pt.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:s="auto",isFull:m=!1,children:c,...d},v)=>{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"},D={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},q={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},Z=[u.base,u[r],D[a],q[s],m&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,Y.jsxs)(Ro,{children:[(0,Y.jsx)(jt,{}),(0,Y.jsxs)(S.Content,{ref:v,className:i(...Z),...d,children:[c,!t&&(0,Y.jsxs)(S.Close,{className:i("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",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[(0,Y.jsx)(ri.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Y.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Ae.displayName=S.Content.displayName;var To=({className:e,...o})=>(0,Y.jsx)("div",{className:i("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),...o});To.displayName="DialogHeader";var Ct=({className:e,isCondensed:o=!1,...t})=>(0,Y.jsx)("div",{className:i("dialog-body p-6 flex-1 overflow-y-auto",o&&"p-5",e),...t});Ct.displayName="DialogBody";var ko=({className:e,isDivider:o=!0,...t})=>(0,Y.jsx)("div",{className:i("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",o&&"border-gray-200 border-t py-4",e),...t});ko.displayName="DialogFooter";var Do=Pt.forwardRef(({className:e,...o},t)=>(0,Y.jsx)(S.Title,{ref:t,className:i("text-base font-semibold line-clamp-1 max-w-full",e),...o}));Do.displayName=S.Title.displayName;var So=Pt.forwardRef(({className:e,...o},t)=>(0,Y.jsx)(S.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));So.displayName=S.Description.displayName;var si=require("qrcode.react"),p=require("react/jsx-runtime"),$n=({img:e="",children:o,isQrForAll:t})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"qrcode__scan__container",children:(0,p.jsxs)("div",{className:"qrcode__scan",children:[(0,p.jsx)("div",{className:"qrcode__gradient",children:(0,p.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,p.jsx)("div",{className:"qrcode__border",children:(0,p.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,p.jsx)("div",{className:"qrcode__image p-4",children:e?(0,p.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),(0,p.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,p.jsxs)(p.Fragment,{children:[(0,p.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,p.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,p.jsxs)(p.Fragment,{children:[(0,p.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,p.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,p.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,p.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
|
-
`})]}),ze=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:s,logoQr:m,isQrForAll:c=!1,...d})=>(0,p.jsx)(Fe,{...d,children:(0,p.jsx)(Ae,{className:i("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:(0,p.jsx)(Ct,{className:"p-0",children:(0,p.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,p.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||(0,p.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,p.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,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,p.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,p.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,p.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,p.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,p.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,p.jsxs)("div",{className:"relative",children:[c&&(0,p.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,p.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,p.jsx)(Gn,{img:r,isQrForAll:c,children:s&&(0,p.jsx)(si.QRCodeSVG,{value:s,size:215,imageSettings:{src:`${m||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});var Me=require("react/jsx-runtime"),qt=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:s,...m})=>{let[c,d]=(0,li.useState)(!1),v=Ja(),u=Co()||typeof window<"u"&&window.location.search.includes("view=app"),S=!!a?.qrLink,q=()=>{let V=S?a?.qrLink:e;return typeof V=="string"?V.trim():""},Z=()=>{let V=q();!V&&typeof e!="function"||(typeof e=="function"?e():window.open(/^http|^momo:/.test(V)?V:`${process.env.NEXT_PUBLIC_REACT_APP_BASE_PATH}${V}`,o?"_blank":"_self"))},H=(V,T=0)=>{let Qe=document.querySelector(V);if(!Qe)return;let Xe=Qe.getBoundingClientRect().top+window.scrollY-T;window.scrollTo({top:Xe,behavior:"smooth"})},R=()=>{typeof e=="string"&&e.startsWith("#")?H(e,t):Z()},K=()=>(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsx)(oe,{...m,className:r,onClick:()=>d(!0),"data-name":"button-action-with-qr",children:s}),(0,Me.jsx)(ze,{...a,open:c,onOpenChange:()=>d(!1),qrLink:a?.qrLink||""})]});return S?v||u?a?.isQrForAll?K():(0,Me.jsx)(oe,{...m,className:r,onClick:Z,"data-name":"button-action-with-qr",children:s}):K():(0,Me.jsx)(oe,{...m,onClick:R,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:s})};var lt=g(require("react"),1),Ut=require("@radix-ui/react-icons"),mi=require("@radix-ui/react-slot");var le=require("react/jsx-runtime"),Ao=lt.forwardRef(({className:e,...o},t)=>(0,le.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Ao.displayName="Breadcrumb";var Mo=lt.forwardRef(({className:e,...o},t)=>(0,le.jsx)("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Mo.displayName="BreadcrumbList";var Lo=lt.forwardRef(({className:e,...o},t)=>(0,le.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Lo.displayName="BreadcrumbItem";var Io=lt.forwardRef(({asChild:e,className:o,...t},a)=>(0,le.jsx)(e?mi.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Io.displayName="BreadcrumbLink";var Eo=lt.forwardRef(({className:e,...o},t)=>(0,le.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));Eo.displayName="BreadcrumbPage";var _o=({children:e,className:o,...t})=>(0,le.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,le.jsx)(Ut.ChevronRightIcon,{className:"w-2 h-2"})});_o.displayName="BreadcrumbSeparator";var Ho=({className:e,...o})=>(0,le.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,le.jsx)(Ut.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,le.jsx)("span",{className:"sr-only",children:"More"})]});Ho.displayName="BreadcrumbElipssis";var Xt=g(require("react"),1);var Zt=require("date-fns/locale"),pi=require("react-day-picker"),Kt=require("lucide-react"),gi=g(require("lunisolar"),1);var ci=g(require("react"),1),Rt=g(require("@radix-ui/react-checkbox"),1),di=require("@heroicons/react/16/solid");var Qt=require("react/jsx-runtime"),Tt=ci.forwardRef(({className:e,...o},t)=>(0,Qt.jsx)(Rt.Root,{ref:t,className:i("peer h-4 w-4 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",e),...o,children:(0,Qt.jsx)(Rt.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,Qt.jsx)(di.CheckIcon,{className:"h-4 w-4"})})}));Tt.displayName=Rt.Root.displayName;var O=require("react/jsx-runtime"),$n=({date:e,cusContent:o})=>{let t=null;return t=(0,gi.default)(e).lunar,(0,O.jsxs)(O.Fragment,{children:[o?o(e):e.getDate(),t&&(0,O.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:t.day})]})},jn={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let o=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][o]}};function qn({isShow:e,setIsShow:o,lang:t}){let a=Xt.useId();return(0,O.jsx)("div",{className:"w-full p-3 pt-0",children:(0,O.jsxs)("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[(0,O.jsx)(Tt,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,O.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"text-sm text-gray-900 peer-disabled:text-gray-400 leading-none peer-disabled:cursor-default cursor-pointer",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Un=e=>e.getDay()===0||e.getDay()===6;function kt({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:s,...m}){let[c,d]=Xt.useState(!0);return(0,O.jsx)(pi.DayPicker,{locale:r==="vi"?Zt.vi:Zt.enUS,showOutsideDays:t,className:i("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:i(ge({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:i("font-medium rounded-md w-11 text-xs text-gray-500 [&:nth-child(7)]:text-red-600",r==="vi"?"[&:nth-child(6)]:text-red-600":"[&:nth-child(1)]:text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative",day:i(ge({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",...o},modifiers:{weekend:Un},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,O.jsx)(Kt.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,O.jsx)(Kt.ChevronRight,{className:"h-6 w-6"}),DayContent:v=>(0,O.jsx)($n,{date:v.date,cusContent:s}),Months:({children:v})=>(0,O.jsxs)("div",{className:"w-full",children:[(0,O.jsx)("div",{className:i("flex flex-col sm:flex-row months-wrapper"),children:v}),a&&(0,O.jsx)(qn,{isShow:c,setIsShow:d,lang:r})]})},formatters:r==="vi"?jn:{},...m})}kt.displayName="Calendar";var fi=g(require("react"),1),Le=g(require("@radix-ui/react-popover"),1);var Bo=require("react/jsx-runtime"),mt=Le.Root,ct=Le.Trigger,Ze=fi.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,Bo.jsx)(Le.Portal,{children:(0,Bo.jsx)(Le.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-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})}));Ze.displayName=Le.Content.displayName;var St=require("date-fns");var ui=require("lucide-react");var Yt=require("@heroicons/react/16/solid"),L=require("react/jsx-runtime"),vi=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:s,dateFormat:m="dd/MM/yyyy",buttonProps:c,popoverProps:d,calendarProps:v})=>{let u=v?.selected||null;return(0,L.jsxs)("div",{children:[(0,L.jsxs)(mt,{...d,children:[(0,L.jsx)(ct,{asChild:!0,children:(0,L.jsxs)(oe,{variant:"secondary",className:i("w-full justify-between text-left text-sm font-normal h-11 text-gray-900 overflow-visible hover:ring-1 focus:ring-1 hover:ring-gray-400 focus:ring-gray-400 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-pink-500 [&[data-state=open]]:ring-1 relative disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none disabled:text-gray-500",t===2&&"h-12 text-base",(!u||!(u instanceof Date)&&typeof u=="object"&&(!("from"in u)||!u.from))&&"text-gray-500",r&&"border-red-500 ring-red-500 ring-1"),disabled:s,...c,children:[(0,L.jsx)("span",{className:"line-clamp-1 flex-1",children:u instanceof Date?(0,St.format)(u,m):u&&typeof u=="object"&&"from"in u&&"to"in u?(0,L.jsx)(L.Fragment,{children:u.from?u.to?(0,L.jsxs)(L.Fragment,{children:[(0,St.format)(u.from,m)," -"," ",(0,St.format)(u.to,m)]}):(0,St.format)(u.from,m):o}):o}),e&&(0,L.jsx)("span",{className:i("absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),(0,L.jsx)(ui.Calendar,{className:"ml-2 h-4 w-4 text-gray-500 flex-none"})]})}),(0,L.jsx)(Ze,{className:"w-auto !p-0 border-none",children:(0,L.jsx)(kt,{...v})})]}),a&&(0,L.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[r?(0,L.jsx)(Yt.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,L.jsx)(Yt.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,L.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var Ke=g(require("react"),1),C=g(require("@radix-ui/react-alert-dialog"),1);var me=require("react/jsx-runtime"),bi=C.Root,hi=C.Trigger,Fo=C.Portal,Jt=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsx)(C.Overlay,{className:i("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));Jt.displayName=C.Overlay.displayName;var zo=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsxs)(Fo,{children:[(0,me.jsx)(Jt,{}),(0,me.jsx)(C.Content,{ref:t,className:i("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));zo.displayName=C.Content.displayName;var Vo=({className:e,...o})=>(0,me.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Vo.displayName="AlertDialogHeader";var Oo=({className:e,...o})=>(0,me.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Oo.displayName="AlertDialogFooter";var Wo=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsx)(C.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Wo.displayName=C.Title.displayName;var Go=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsx)(C.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Go.displayName=C.Description.displayName;var $o=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsx)(C.Action,{ref:t,className:i(ge({variant:"primary"}),"",e),...o}));$o.displayName=C.Action.displayName;var jo=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsx)(C.Cancel,{ref:t,className:i(ge({variant:"secondary"}),e),...o}));jo.displayName=C.Cancel.displayName;var xi=g(require("react"),1),yi=require("@radix-ui/react-slot"),wi=require("class-variance-authority");var Ni=require("react/jsx-runtime"),Ye=(0,wi.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"}}),Ie=xi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...s},m)=>{let c=a?yi.Slot:"button",d=i(Ye({variant:o,size:t,className:e}));return(0,Ni.jsx)(c,{className:d,disabled:r,ref:m,...s,children:s.children})});Ie.displayName="IconButton";var Dt=require("react");var dt=require("react/jsx-runtime"),qo=(0,Dt.createContext)({align:"center"}),eo=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let s={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"text-sm",large:"text-lg"};return(0,dt.jsx)("div",{className:i("mb-1 font-semibold",s[e],m[o],t&&"truncate",a),children:r})},to=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:s})=>{let m=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:v}=(0,Dt.useContext)(qo);return(0,dt.jsx)(m,{className:i("font-bold max-w-4xl",v==="center"?"mx-auto":v==="right"?"ml-auto":"",c[t],d[o],a&&"truncate",r),children:s})},oo=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:s})=>{let m={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:v}=(0,Dt.useContext)(qo);return(0,dt.jsx)("div",{className:i(v==="center"?"mx-auto max-w-3xl":v==="right"?"max-w-4xl ml-auto":"max-w-4xl",m[e],c[o],d[t],a&&"truncate",r),children:s})},ao=({className:e,align:o="center",children:t})=>(0,dt.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,dt.jsx)(qo.Provider,{value:{align:o},children:t})});var io=require("lucide-react");var F=require("react/jsx-runtime");function Uo({current:e,total:o,onChange:t}){let a=r=>(0,F.jsx)("li",{children:(0,F.jsx)("button",{className:i(Ye({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,F.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,F.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,F.jsx)("li",{children:(0,F.jsx)("button",{className:i(Ye({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,F.jsx)(io.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,s)=>a(s+1)):(0,F.jsxs)(F.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,F.jsx)("li",{children:(0,F.jsx)("button",{className:i(Ye({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&(0,F.jsx)("button",{className:i(Ye({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,F.jsx)("li",{children:(0,F.jsx)("button",{className:i(Ye({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,F.jsx)(io.ChevronRight,{className:"h-4 w-4"})})})]})})}var ro=g(require("react"),1),fe=g(require("@radix-ui/react-tabs"),1);var no=require("react/jsx-runtime"),Pi=fe.Root,Qo=ro.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,no.jsx)(fe.List,{ref:r,className:i("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Qo.displayName=fe.List.displayName;var Xo=ro.forwardRef(({className:e,...o},t)=>(0,no.jsx)(fe.Trigger,{ref:t,className:i("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));Xo.displayName=fe.Trigger.displayName;var Zo=ro.forwardRef(({className:e,...o},t)=>(0,no.jsx)(fe.Content,{ref:t,className:i("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Zo.displayName=fe.Content.displayName;var Ci=require("react"),Ri=require("@heroicons/react/24/outline"),Ti=require("@heroicons/react/24/solid");var be=require("react/jsx-runtime"),ki=(0,Ci.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:s,size:m,rows:c=3,...d},v)=>(0,be.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,be.jsx)("span",{className:i("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",m===2&&" -top-2.5 text-sm"),children:a}),(0,be.jsx)("textarea",{disabled:e,ref:v,className:i("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",m===2&&"text-base",s),rows:c,...d}),t&&(0,be.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?(0,be.jsx)(Ti.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,be.jsx)(Ri.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,be.jsx)("span",{className:i("text-gray-500 ",m===2?"text-sm":"text-xs"),children:t})]}),(0,be.jsx)("style",{children:`
|
|
70
|
+
`})]}),ze=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:s,logoQr:m,isQrForAll:c=!1,...d})=>(0,p.jsx)(Fe,{...d,children:(0,p.jsx)(Ae,{className:i("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:(0,p.jsx)(Ct,{className:"p-0",children:(0,p.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,p.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||(0,p.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,p.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,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,p.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,p.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,p.jsx)("div",{className:"flex-none",children:(0,p.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,p.jsxs)("div",{className:"flex-1 pl-4",children:[(0,p.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,p.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,p.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,p.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,p.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,p.jsxs)("div",{className:"relative",children:[c&&(0,p.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,p.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,p.jsx)($n,{img:r,isQrForAll:c,children:s&&(0,p.jsx)(si.QRCodeSVG,{value:s,size:215,imageSettings:{src:`${m||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});var Me=require("react/jsx-runtime"),qt=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:s,...m})=>{let[c,d]=(0,li.useState)(!1),v=Ja(),u=Co()||typeof window<"u"&&window.location.search.includes("view=app"),D=!!a?.qrLink,q=()=>{let V=D?a?.qrLink:e;return typeof V=="string"?V.trim():""},Z=()=>{let V=q();!V&&typeof e!="function"||(typeof e=="function"?e():window.open(/^http|^momo:/.test(V)?V:`${process.env.NEXT_PUBLIC_REACT_APP_BASE_PATH}${V}`,o?"_blank":"_self"))},H=(V,T=0)=>{let Qe=document.querySelector(V);if(!Qe)return;let Xe=Qe.getBoundingClientRect().top+window.scrollY-T;window.scrollTo({top:Xe,behavior:"smooth"})},R=()=>{typeof e=="string"&&e.startsWith("#")?H(e,t):Z()},K=()=>(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsx)(oe,{...m,className:r,onClick:()=>d(!0),"data-name":"button-action-with-qr",children:s}),(0,Me.jsx)(ze,{...a,open:c,onOpenChange:()=>d(!1),qrLink:a?.qrLink||""})]});return D?v||u?a?.isQrForAll?K():(0,Me.jsx)(oe,{...m,className:r,onClick:Z,"data-name":"button-action-with-qr",children:s}):K():(0,Me.jsx)(oe,{...m,onClick:R,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:s})};var lt=g(require("react"),1),Ut=require("@radix-ui/react-icons"),mi=require("@radix-ui/react-slot");var le=require("react/jsx-runtime"),Ao=lt.forwardRef(({className:e,...o},t)=>(0,le.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Ao.displayName="Breadcrumb";var Mo=lt.forwardRef(({className:e,...o},t)=>(0,le.jsx)("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Mo.displayName="BreadcrumbList";var Lo=lt.forwardRef(({className:e,...o},t)=>(0,le.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Lo.displayName="BreadcrumbItem";var Io=lt.forwardRef(({asChild:e,className:o,...t},a)=>(0,le.jsx)(e?mi.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Io.displayName="BreadcrumbLink";var Eo=lt.forwardRef(({className:e,...o},t)=>(0,le.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));Eo.displayName="BreadcrumbPage";var _o=({children:e,className:o,...t})=>(0,le.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,le.jsx)(Ut.ChevronRightIcon,{className:"w-2 h-2"})});_o.displayName="BreadcrumbSeparator";var Ho=({className:e,...o})=>(0,le.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,le.jsx)(Ut.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,le.jsx)("span",{className:"sr-only",children:"More"})]});Ho.displayName="BreadcrumbElipssis";var Xt=g(require("react"),1);var Zt=require("date-fns/locale"),pi=require("react-day-picker"),Kt=require("lucide-react"),gi=g(require("lunisolar"),1);var ci=g(require("react"),1),Rt=g(require("@radix-ui/react-checkbox"),1),di=require("@heroicons/react/16/solid");var Qt=require("react/jsx-runtime"),Tt=ci.forwardRef(({className:e,...o},t)=>(0,Qt.jsx)(Rt.Root,{ref:t,className:i("peer h-4 w-4 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",e),...o,children:(0,Qt.jsx)(Rt.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,Qt.jsx)(di.CheckIcon,{className:"h-4 w-4"})})}));Tt.displayName=Rt.Root.displayName;var O=require("react/jsx-runtime"),jn=({date:e,cusContent:o})=>{let t=null;return t=(0,gi.default)(e).lunar,(0,O.jsxs)(O.Fragment,{children:[o?o(e):e.getDate(),t&&(0,O.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:t.day})]})},qn={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let o=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][o]}};function Un({isShow:e,setIsShow:o,lang:t}){let a=Xt.useId();return(0,O.jsx)("div",{className:"w-full p-3 pt-0",children:(0,O.jsxs)("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[(0,O.jsx)(Tt,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,O.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"text-sm text-gray-900 peer-disabled:text-gray-400 leading-none peer-disabled:cursor-default cursor-pointer",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Qn=e=>e.getDay()===0||e.getDay()===6;function kt({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:s,...m}){let[c,d]=Xt.useState(!0);return(0,O.jsx)(pi.DayPicker,{locale:r==="vi"?Zt.vi:Zt.enUS,showOutsideDays:t,className:i("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:i(ge({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:i("font-medium rounded-md w-11 text-xs text-gray-500 [&:nth-child(7)]:text-red-600",r==="vi"?"[&:nth-child(6)]:text-red-600":"[&:nth-child(1)]:text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative",day:i(ge({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",...o},modifiers:{weekend:Qn},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,O.jsx)(Kt.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,O.jsx)(Kt.ChevronRight,{className:"h-6 w-6"}),DayContent:v=>(0,O.jsx)(jn,{date:v.date,cusContent:s}),Months:({children:v})=>(0,O.jsxs)("div",{className:"w-full",children:[(0,O.jsx)("div",{className:i("flex flex-col sm:flex-row months-wrapper"),children:v}),a&&(0,O.jsx)(Un,{isShow:c,setIsShow:d,lang:r})]})},formatters:r==="vi"?qn:{},...m})}kt.displayName="Calendar";var fi=g(require("react"),1),Le=g(require("@radix-ui/react-popover"),1);var Bo=require("react/jsx-runtime"),mt=Le.Root,ct=Le.Trigger,Ze=fi.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,Bo.jsx)(Le.Portal,{children:(0,Bo.jsx)(Le.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-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})}));Ze.displayName=Le.Content.displayName;var Dt=require("date-fns");var ui=require("lucide-react");var Yt=require("@heroicons/react/16/solid"),L=require("react/jsx-runtime"),vi=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:s,dateFormat:m="dd/MM/yyyy",buttonProps:c,popoverProps:d,calendarProps:v})=>{let u=v?.selected||null;return(0,L.jsxs)("div",{children:[(0,L.jsxs)(mt,{...d,children:[(0,L.jsx)(ct,{asChild:!0,children:(0,L.jsxs)(oe,{variant:"secondary",className:i("w-full justify-between text-left text-sm font-normal h-11 text-gray-900 overflow-visible hover:ring-1 focus:ring-1 hover:ring-gray-400 focus:ring-gray-400 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-pink-500 [&[data-state=open]]:ring-1 relative disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none disabled:text-gray-500",t===2&&"h-12 text-base",(!u||!(u instanceof Date)&&typeof u=="object"&&(!("from"in u)||!u.from))&&"text-gray-500",r&&"border-red-500 ring-red-500 ring-1"),disabled:s,...c,children:[(0,L.jsx)("span",{className:"line-clamp-1 flex-1",children:u instanceof Date?(0,Dt.format)(u,m):u&&typeof u=="object"&&"from"in u&&"to"in u?(0,L.jsx)(L.Fragment,{children:u.from?u.to?(0,L.jsxs)(L.Fragment,{children:[(0,Dt.format)(u.from,m)," -"," ",(0,Dt.format)(u.to,m)]}):(0,Dt.format)(u.from,m):o}):o}),e&&(0,L.jsx)("span",{className:i("absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),(0,L.jsx)(ui.Calendar,{className:"ml-2 h-4 w-4 text-gray-500 flex-none"})]})}),(0,L.jsx)(Ze,{className:"w-auto !p-0 border-none",children:(0,L.jsx)(kt,{...v})})]}),a&&(0,L.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[r?(0,L.jsx)(Yt.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,L.jsx)(Yt.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,L.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var Ke=g(require("react"),1),C=g(require("@radix-ui/react-alert-dialog"),1);var me=require("react/jsx-runtime"),bi=C.Root,hi=C.Trigger,Fo=C.Portal,Jt=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsx)(C.Overlay,{className:i("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));Jt.displayName=C.Overlay.displayName;var zo=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsxs)(Fo,{children:[(0,me.jsx)(Jt,{}),(0,me.jsx)(C.Content,{ref:t,className:i("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));zo.displayName=C.Content.displayName;var Vo=({className:e,...o})=>(0,me.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Vo.displayName="AlertDialogHeader";var Oo=({className:e,...o})=>(0,me.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Oo.displayName="AlertDialogFooter";var Wo=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsx)(C.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Wo.displayName=C.Title.displayName;var Go=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsx)(C.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Go.displayName=C.Description.displayName;var $o=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsx)(C.Action,{ref:t,className:i(ge({variant:"primary"}),"",e),...o}));$o.displayName=C.Action.displayName;var jo=Ke.forwardRef(({className:e,...o},t)=>(0,me.jsx)(C.Cancel,{ref:t,className:i(ge({variant:"secondary"}),e),...o}));jo.displayName=C.Cancel.displayName;var xi=g(require("react"),1),yi=require("@radix-ui/react-slot"),wi=require("class-variance-authority");var Ni=require("react/jsx-runtime"),Ye=(0,wi.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"}}),Ie=xi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...s},m)=>{let c=a?yi.Slot:"button",d=i(Ye({variant:o,size:t,className:e}));return(0,Ni.jsx)(c,{className:d,disabled:r,ref:m,...s,children:s.children})});Ie.displayName="IconButton";var St=require("react");var dt=require("react/jsx-runtime"),qo=(0,St.createContext)({align:"center"}),eo=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let s={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"text-sm",large:"text-lg"};return(0,dt.jsx)("div",{className:i("mb-1 font-semibold",s[e],m[o],t&&"truncate",a),children:r})},to=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:s})=>{let m=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:v}=(0,St.useContext)(qo);return(0,dt.jsx)(m,{className:i("font-bold max-w-4xl",v==="center"?"mx-auto":v==="right"?"ml-auto":"",c[t],d[o],a&&"truncate",r),children:s})},oo=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:s})=>{let m={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:v}=(0,St.useContext)(qo);return(0,dt.jsx)("div",{className:i(v==="center"?"mx-auto max-w-3xl":v==="right"?"max-w-4xl ml-auto":"max-w-4xl",m[e],c[o],d[t],a&&"truncate",r),children:s})},ao=({className:e,align:o="center",children:t})=>(0,dt.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,dt.jsx)(qo.Provider,{value:{align:o},children:t})});var io=require("lucide-react");var F=require("react/jsx-runtime");function Uo({current:e,total:o,onChange:t}){let a=r=>(0,F.jsx)("li",{children:(0,F.jsx)("button",{className:i(Ye({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,F.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,F.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,F.jsx)("li",{children:(0,F.jsx)("button",{className:i(Ye({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,F.jsx)(io.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,s)=>a(s+1)):(0,F.jsxs)(F.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,F.jsx)("li",{children:(0,F.jsx)("button",{className:i(Ye({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&(0,F.jsx)("button",{className:i(Ye({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,F.jsx)("li",{children:(0,F.jsx)("button",{className:i(Ye({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,F.jsx)(io.ChevronRight,{className:"h-4 w-4"})})})]})})}var ro=g(require("react"),1),fe=g(require("@radix-ui/react-tabs"),1);var no=require("react/jsx-runtime"),Pi=fe.Root,Qo=ro.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,no.jsx)(fe.List,{ref:r,className:i("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Qo.displayName=fe.List.displayName;var Xo=ro.forwardRef(({className:e,...o},t)=>(0,no.jsx)(fe.Trigger,{ref:t,className:i("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));Xo.displayName=fe.Trigger.displayName;var Zo=ro.forwardRef(({className:e,...o},t)=>(0,no.jsx)(fe.Content,{ref:t,className:i("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Zo.displayName=fe.Content.displayName;var Ci=require("react"),Ri=require("@heroicons/react/24/outline"),Ti=require("@heroicons/react/24/solid");var be=require("react/jsx-runtime"),ki=(0,Ci.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:s,size:m,rows:c=3,...d},v)=>(0,be.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,be.jsx)("span",{className:i("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",m===2&&" -top-2.5 text-sm"),children:a}),(0,be.jsx)("textarea",{disabled:e,ref:v,className:i("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",m===2&&"text-base",s),rows:c,...d}),t&&(0,be.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?(0,be.jsx)(Ti.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,be.jsx)(Ri.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,be.jsx)("span",{className:i("text-gray-500 ",m===2?"text-sm":"text-xs"),children:t})]}),(0,be.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 mo=g(require("react"),1),
|
|
97
|
+
`})]}));var mo=g(require("react"),1),Xn=1,Zn=1e6;var Ko=0;function Kn(){return Ko=(Ko+1)%Number.MAX_SAFE_INTEGER,Ko.toString()}var Yo=new Map,Di=e=>{if(Yo.has(e))return;let o=setTimeout(()=>{Yo.delete(e),At({type:"REMOVE_TOAST",toastId:e})},Zn);Yo.set(e,o)},Yn=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Xn)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===o.toast.id?{...t,...o.toast}:t)};case"DISMISS_TOAST":{let{toastId:t}=o;return t?Di(t):e.toasts.forEach(a=>{Di(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===t||t===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return o.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(t=>t.id!==o.toastId)};default:return e}},so=[],lo={toasts:[]};function At(e){lo=Yn(lo,e),so.forEach(o=>{o(lo)})}function Jo({...e}){let o=Kn(),t=r=>At({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>At({type:"DISMISS_TOAST",toastId:o});return At({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function co(){let[e,o]=mo.useState(lo);return mo.useEffect(()=>(so.push(o),()=>{let t=so.indexOf(o);t>-1&&so.splice(t,1)}),[e]),{...e,toast:Jo,dismiss:t=>At({type:"DISMISS_TOAST",toastId:t})}}var Je=g(require("react"),1),I=g(require("@radix-ui/react-toast"),1),Si=require("class-variance-authority");var Ve=require("@heroicons/react/20/solid"),ae=require("react/jsx-runtime"),Ai=I.Provider,ea=Je.forwardRef(({className:e,...o},t)=>(0,ae.jsx)(I.Viewport,{ref:t,className:i("fixed bottom-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 left-0 sm:right-0 sm:left-auto sm:top-0 sm:bottom-auto sm:flex-col md:max-w-[420px]",e),...o}));ea.displayName=I.Viewport.displayName;var Jn=(0,Si.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"}}),ta=Je.forwardRef(({className:e,variant:o="sucess",children:t,...a},r)=>(0,ae.jsxs)(I.Root,{ref:r,className:i(Jn({variant:o}),e),...a,children:[(0,ae.jsxs)("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[o==="sucess"&&(0,ae.jsx)(Ve.CheckCircleIcon,{className:"w-5 h-5 text-green-500"}),o==="warning"&&(0,ae.jsx)(Ve.ExclamationTriangleIcon,{className:"w-5 h-5 text-yellow-500"}),o==="error"&&(0,ae.jsx)(Ve.InformationCircleIcon,{className:"w-5 h-5 text-red-500"})]}),t]}));ta.displayName=I.Root.displayName;var oa=Je.forwardRef(({className:e,...o},t)=>(0,ae.jsx)(I.Action,{ref:t,className:i("inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-0 focus:ring-ring focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 text-blue-600 hover:underline mt-2",e),...o}));oa.displayName=I.Action.displayName;var aa=Je.forwardRef(({className:e,...o},t)=>(0,ae.jsx)(I.Close,{ref:t,className:i("absolute right-2 top-2 rounded-md transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2 text-gray-800 w-8 h-8 flex items-center justify-center",e),"toast-close":"",...o,children:(0,ae.jsx)(Ve.XMarkIcon,{className:"h-5 w-5"})}));aa.displayName=I.Close.displayName;var ia=Je.forwardRef(({className:e,...o},t)=>(0,ae.jsx)(I.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));ia.displayName=I.Title.displayName;var ra=Je.forwardRef(({className:e,...o},t)=>(0,ae.jsx)(I.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));ra.displayName=I.Description.displayName;var Ee=require("react/jsx-runtime");function Mi(){let{toasts:e}=co();return(0,Ee.jsxs)(Ai,{children:[e.map(function({id:o,title:t,description:a,action:r,...s}){return(0,Ee.jsxs)(ta,{...s,children:[(0,Ee.jsxs)("div",{className:"grid gap-2",children:[t&&(0,Ee.jsx)(ia,{children:t}),a&&(0,Ee.jsx)(ra,{children:a})]}),r,(0,Ee.jsx)(aa,{})]},o)}),(0,Ee.jsx)(ea,{})]})}var Li=g(require("react"),1),Ii=require("@radix-ui/react-slot"),Ei=require("class-variance-authority");var _i=require("react/jsx-runtime"),na=(0,Ei.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"}}),et=Li.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...s},m)=>{let c=a?Ii.Slot:"button",d=i(na({variant:o,size:t,className:e}));return(0,_i.jsx)(c,{className:d,disabled:r,ref:m,...s,children:s.children})});et.displayName="TextButton";var sa=g(require("react"),1),ce=g(require("@radix-ui/react-tooltip"),1);var ca=require("react/jsx-runtime"),Hi=ce.Provider,Bi=ce.Root,Fi=ce.Trigger,la=sa.forwardRef((e,o)=>(0,ca.jsx)(ce.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));la.displayName=ce.Arrow.displayName;var ma=sa.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>(0,ca.jsx)(ce.Content,{ref:r,sideOffset:t,className:i("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));ma.displayName=ce.Content.displayName;var Oe=require("react"),pt=require("@heroicons/react/16/solid");var ie=require("react/jsx-runtime"),zi=(0,Oe.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:s,withClearButton:m,size:c,onChange:d,onFocus:v,onClickClear:u,value:D,defaultValue:q,type:Z="text",...H},R)=>{let[K,ee]=(0,Oe.useState)(!1),V=(0,Oe.useRef)(null),T=B=>{B&&!K&&ee(!0),!B&&K&&ee(!1)},Qe=B=>{m&&T(B.target.value),d?.(B)},nt=B=>{m&&T(B.target.value),v?.(B)},Xe=()=>{let B=V.current?.querySelector("input");B&&(u?.(B.value),B.value="",B.focus(),ee(!1))};return(0,Oe.useEffect)(()=>{T(q||D)},[D,q]),(0,ie.jsxs)("div",{className:i(r,o&&"mobase-text-input-error"),ref:V,children:[(0,ie.jsxs)("div",{className:"relative",children:[a&&(0,ie.jsx)("span",{className:i("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:a}),(0,ie.jsx)("input",{disabled:e,type:Z,ref:R,className:i("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",c===2&&"h-12 text-base",s),onChange:Qe,onFocus:nt,value:D,defaultValue:q,...H}),m&&K&&(0,ie.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:Xe,children:(0,ie.jsx)(pt.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,ie.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?(0,ie.jsx)(pt.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ie.jsx)(pt.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ie.jsx)("span",{className:i("text-gray-500 ",c===2?"text-sm":"text-xs"),children:t})]}),(0,ie.jsx)("style",{children:`
|
|
98
98
|
.mobase-text-input-box:hover {
|
|
99
99
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
100
100
|
}
|
|
@@ -117,11 +117,11 @@
|
|
|
117
117
|
color: rgb(var(--mobase-red-500) / 1);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`})]})});var po=require("@heroicons/react/24/outline");var de=require("react");var he=require("react/jsx-runtime"),Vi=(0,de.forwardRef)(({value:e=0,min:o=0,max:t=999,disabled:a=!1,disabledInput:r=!1,step:s=1,inputClassName:m="",stepperClassName:c="",className:d="",onChange:v=()=>{},onChangeInputStepper:u,onDecrement:S,onIncrement:q,...Z},H)=>{let R=(0,de.useRef)(null),[K,ee]=(0,de.useState)(!1),[V,T]=(0,de.useState)(!1),[Qe,nt]=(0,de.useState)(""),Xe=(0,de.useRef)(null),B=y=>{Number(y)>=t?ee(!0):ee(!1),Number(y)>o?T(!1):T(!0)},Dn=()=>{if(a||K)return;let y=R?.current?.querySelector("input");if(!y)return;let te=0;te=Math.min(Number(y.value)+s,t),B(te),y.value=String(te),nt(y.value||""),u?.(y.value),q?.(y.value)},An=()=>{if(a||V)return;let y=R?.current?.querySelector("input");if(!y)return;let te=0;te=Math.max(Number(y.value)-s,0),B(te),y.value=String(te),nt(y.value||""),u?.(y.value),S?.(y.value)},Mn=y=>{if(!y)return;let te=y?.target?.value;te?.match(/^[0-9]*$/)||(te=te.replace(/[^0-9]/g,"")),B(te);let Wt=parseInt(te,10);Number.isNaN(Wt)||Wt<o?y.target.value=String(o):Wt>=t?y.target.value=String(t):y.target.value=String(Wt),nt(y?.target?.value||""),u?.(y.target.value),v?.(y)};return(0,de.useEffect)(()=>{let y=R?.current?.querySelector("input");y&&B(y?.value)},[]),(0,de.useEffect)(()=>{let y=R?.current?.querySelector("input");y&&Xe?.current&&(y.style.width=`${Xe.current.offsetWidth+10}px`)},[Qe]),(0,he.jsxs)("div",{ref:R,className:"flex items-center space-x-1",children:[(0,he.jsx)(Ie,{id:"btn-minus",className:i(!V&&!a?"cursor-pointer text-pink-500":"text-gray-400 cursor-default",c),variant:"transparent",onClick:An,children:(0,he.jsx)(po.MinusCircleIcon,{className:"w-8 h-8 "})}),(0,he.jsxs)("div",{children:[(0,he.jsx)("input",{pattern:"[0-9]*",inputMode:"numeric",defaultValue:e,ref:H,min:o,max:t,onChange:y=>Mn(y),id:"numberInput",disabled:a||r,autoComplete:"off",...Z,className:i("text-gray-800 min-w-7 border-gray-300 border transition-width duration-100 focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 w-7 h-7 rounded-md text-center bg-white",m)}),(0,he.jsx)("span",{ref:Xe,style:{visibility:"hidden",position:"absolute",whiteSpace:"pre"},children:Qe||" "})]}),(0,he.jsx)(Ie,{id:"btn-plus",className:i(!K&&!a?"cursor-pointer text-pink-500":"text-gray-400 cursor-default",c),variant:"transparent",onClick:Dn,children:(0,he.jsx)(po.PlusCircleIcon,{className:"w-8 h-8 "})})]})});var xe=g(require("react"),1),_e=require("@heroicons/react/16/solid"),Oi=require("@heroicons/react/24/outline"),h=g(require("@radix-ui/react-select"),1);var w=require("react/jsx-runtime"),Wi=xe.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:s,disabled:m,...c},d)=>(0,w.jsxs)("div",{ref:d,className:i("select-mobase relative",e,m?"disabled":"",s?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&(0,w.jsx)("span",{className:i("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",s&&"text-red-500"),children:t}),(0,w.jsx)(h.Root,{disabled:m,...c,children:o}),a&&(0,w.jsxs)("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",s&&"text-red-500"),children:[s?(0,w.jsx)(_e.XCircleIcon,{width:16,height:16}):(0,w.jsx)(Oi.QuestionMarkCircleIcon,{width:16,height:16}),(0,w.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Gi=h.Value,da=xe.forwardRef(({className:e,children:o,...t},a)=>(0,w.jsxs)(h.Trigger,{ref:a,className:i("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[(0,w.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,w.jsx)(h.Icon,{asChild:!0,children:(0,w.jsx)(_e.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));da.displayName=h.Trigger.displayName;var go=xe.forwardRef(({className:e,...o},t)=>(0,w.jsx)(h.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,w.jsx)(_e.ChevronUpIcon,{className:"h-5 w-5"})}));go.displayName=h.ScrollUpButton.displayName;var fo=xe.forwardRef(({className:e,...o},t)=>(0,w.jsx)(h.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:(0,w.jsx)(_e.ChevronDownIcon,{className:"h-5 w-5"})}));fo.displayName=h.ScrollDownButton.displayName;var pa=xe.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,w.jsx)(h.Portal,{children:(0,w.jsxs)(h.Content,{ref:r,className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-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",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[(0,w.jsx)(go,{}),(0,w.jsx)(h.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,w.jsx)(fo,{})]})}));pa.displayName=h.Content.displayName;var $i=xe.forwardRef(({className:e,children:o,...t},a)=>(0,w.jsx)(h.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),ga=xe.forwardRef(({className:e,...o},t)=>(0,w.jsx)(h.Label,{ref:t,className:i("pr-2 pl-8 py-1.5 text-sm font-semibold z-[1]",e),...o}));ga.displayName=h.Label.displayName;var ji=xe.forwardRef(({className:e,children:o,...t},a)=>(0,w.jsxs)(h.Item,{ref:a,className:i("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),...t,children:[(0,w.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,w.jsx)(h.ItemIndicator,{children:(0,w.jsx)(_e.CheckIcon,{className:"h-4 w-4"})})}),(0,w.jsx)(h.ItemText,{children:o})]})),fa=xe.forwardRef(({className:e,...o},t)=>(0,w.jsx)(h.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));fa.displayName=h.Separator.displayName;var ue=g(require("react"),1),k=g(require("@radix-ui/react-navigation-menu"),1),qi=require("class-variance-authority"),Ui=require("@heroicons/react/16/solid");var re=require("react/jsx-runtime"),Qi=ue.createContext(null),Jn=({value:e,children:o})=>(0,re.jsx)(Qi.Provider,{value:e,children:o}),es=()=>{let e=ue.useContext(Qi);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Mt=ue.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>(0,re.jsx)(Jn,{value:{alignDropdown:t},children:(0,re.jsx)(k.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Mt.displayName=k.Root.displayName;var Lt=ue.forwardRef(({className:e,...o},t)=>(0,re.jsx)(k.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Lt.displayName=k.List.displayName;var It=k.Item,Et=(0,qi.cva)(ge({variant:"transparent",size:"sm"})),_t=ue.forwardRef(({className:e,children:o,...t},a)=>(0,re.jsxs)(k.Trigger,{ref:a,className:i(Et(),"group px-2",e),...t,children:[o," ",(0,re.jsx)(Ui.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));_t.displayName=k.Trigger.displayName;var Ht=ue.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=es();return(0,re.jsx)(k.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Ht.displayName=k.Content.displayName;var gt=k.Link,ts=ue.forwardRef(({className:e,...o},t)=>(0,re.jsx)("div",{className:i("absolute left-0 top-full flex justify-center"),children:(0,re.jsx)(k.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));ts.displayName=k.Viewport.displayName;var os=ue.forwardRef(({className:e,...o},t)=>(0,re.jsx)(k.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:(0,re.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));os.displayName=k.Indicator.displayName;var Xi=g(require("react"),1),Bt=g(require("@radix-ui/react-switch"),1);var ua=require("react/jsx-runtime"),va=Xi.forwardRef(({className:e,...o},t)=>(0,ua.jsx)(Bt.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:(0,ua.jsx)(Bt.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));va.displayName=Bt.Root.displayName;var ba=g(require("react"),1),We=g(require("@radix-ui/react-radio-group"),1),Zi=require("lucide-react");var Ft=require("react/jsx-runtime"),ha=ba.forwardRef(({className:e,...o},t)=>(0,Ft.jsx)(We.Root,{className:i("grid gap-2",e),...o,ref:t}));ha.displayName=We.Root.displayName;var xa=ba.forwardRef(({className:e,...o},t)=>(0,Ft.jsx)(We.Item,{ref:t,className:i("aspect-square h-4 w-4 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",e),...o,children:(0,Ft.jsx)(We.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,Ft.jsx)(Zi.Circle,{className:"h-2 w-2 fill-current text-current"})})}));xa.displayName=We.Item.displayName;var ye=require("react/jsx-runtime"),as=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:s=!1})=>{let m=s?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ye.jsx)("li",{className:"",children:(0,ye.jsx)(gt,{asChild:!0,children:(0,ye.jsxs)("a",{className:i(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:r,...m,children:[o&&(0,ye.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,ye.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,ye.jsxs)("div",{className:" ",children:[(0,ye.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,ye.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Ki=as;var ve=require("react/jsx-runtime"),is=({data:e,alignDropdown:o})=>(0,ve.jsx)(Mt,{alignDropdown:o,children:(0,ve.jsx)(Lt,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,ve.jsxs)(It,{className:"relative",children:[(0,ve.jsx)(_t,{children:t.title}),(0,ve.jsx)(Ht,{children:(0,ve.jsx)("ul",{className:i("grid w-[300px] p-2 grid-cols-1",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(r=>(0,ve.jsx)(Ki,{title:r.title,href:r.url,newTab:r.newTab,icon:t.dropDownCompact===!0?r.icon:"",children:t.dropDownCompact===!0?r.description:""},r.title))})})]},t.id):(0,ve.jsx)(It,{className:"relative",children:(0,ve.jsx)(gt,{href:t.url,className:Et(),...a,children:t.title})},t.id)})})}),Yi=is;var vo=require("react");var uo=[.24,.25,.05,1];var or=require("react-use"),ya=g(require("next/router"),1);var He=require("react/jsx-runtime"),rs=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:s=!1})=>{let m=s?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,He.jsx)("li",{className:"min-h-8",children:(0,He.jsxs)("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...m,children:[o&&(0,He.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,He.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,He.jsxs)("div",{className:" ",children:[(0,He.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,He.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ji=rs;var er=require("framer-motion"),we=require("react/jsx-runtime"),ns={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:uo}},exit:{opacity:0,transition:{duration:.05}}},ss=({data:e})=>(0,we.jsx)(xt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,we.jsx)(er.motion.div,{variants:ns,children:o.hasDropdown?(0,we.jsxs)(yt,{value:o.id,children:[(0,we.jsx)(wt,{className:"py-3",children:o.title}),(0,we.jsx)(Nt,{children:(0,we.jsx)("ul",{className:i("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>(0,we.jsx)(Ji,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,we.jsx)("a",{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:o.url,...t,children:o.title})},o.id)})}),tr=ss;var Ne=require("framer-motion");var f=require("react/jsx-runtime"),ls=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,ms=({data:e,className:o})=>{let[t,a]=(0,vo.useState)(!1);(0,or.useKey)("Escape",()=>a(!1)),(0,vo.useEffect)(()=>{if(!t)return;let m=ls();function c(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",ya.default.events.on("routeChangeComplete",c),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"}),ya.default.events.off("routeChangeComplete",c)}},[t]);let r={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},s={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:uo}},exit:{opacity:0,transition:{duration:.15}}};return(0,f.jsxs)("div",{className:i(o),children:[(0,f.jsxs)("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,f.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,f.jsx)(Ne.motion.div,{animate:t?"hidden":"visible",variants:r,children:(0,f.jsx)("svg",{className:i("block w-7 h-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,f.jsx)(Ne.motion.div,{animate:t?"visible":"hidden",variants:r,children:(0,f.jsx)("svg",{className:i("block w-7 h-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,f.jsx)(Ne.LazyMotion,{features:Ne.domAnimation,children:(0,f.jsx)(Ne.AnimatePresence,{mode:"wait",children:t&&(0,f.jsxs)(Ne.motion.nav,{variants:s,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed block w-full max-w-full z-50 px-5 bg-white left-0 right-0 bottom-0 overflow-y-auto top-[calc(var(--header-height)+1px)] pb-24 "),children:[(0,f.jsx)(tr,{data:e}),(0,f.jsxs)("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[(0,f.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,f.jsxs)("div",{className:"flex flex-nowrap",children:[(0,f.jsx)("div",{className:"flex-initial",children:(0,f.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,f.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,f.jsx)("div",{className:"ml-3 flex-initial",children:(0,f.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,f.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,f.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,f.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,f.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,f.jsx)("a",{href:`tel:${Se.Support.Hotline}`,className:"text-gray-600",children:Se.Support.Hotline_Format})]}),(0,f.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,f.jsx)("a",{href:`mailto:${Se.Support.Email}`,className:"text-gray-600",children:Se.Support.Email})]})]}),(0,f.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,f.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,f.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,f.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,f.jsxs)("g",{children:[(0,f.jsx)("title",{children:"Asset 1"}),(0,f.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 po=require("@heroicons/react/24/outline");var de=require("react");var he=require("react/jsx-runtime"),Vi=(0,de.forwardRef)(({value:e=0,min:o=0,max:t=999,disabled:a=!1,disabledInput:r=!1,step:s=1,inputClassName:m="",stepperClassName:c="",className:d="",onChange:v=()=>{},onChangeInputStepper:u,onDecrement:D,onIncrement:q,...Z},H)=>{let R=(0,de.useRef)(null),[K,ee]=(0,de.useState)(!1),[V,T]=(0,de.useState)(!1),[Qe,nt]=(0,de.useState)(""),Xe=(0,de.useRef)(null),B=y=>{Number(y)>=t?ee(!0):ee(!1),Number(y)>o?T(!1):T(!0)},An=()=>{if(a||K)return;let y=R?.current?.querySelector("input");if(!y)return;let te=0;te=Math.min(Number(y.value)+s,t),B(te),y.value=String(te),nt(y.value||""),u?.(y.value),q?.(y.value)},Mn=()=>{if(a||V)return;let y=R?.current?.querySelector("input");if(!y)return;let te=0;te=Math.max(Number(y.value)-s,0),B(te),y.value=String(te),nt(y.value||""),u?.(y.value),D?.(y.value)},Ln=y=>{if(!y)return;let te=y?.target?.value;te?.match(/^[0-9]*$/)||(te=te.replace(/[^0-9]/g,"")),B(te);let Wt=parseInt(te,10);Number.isNaN(Wt)||Wt<o?y.target.value=String(o):Wt>=t?y.target.value=String(t):y.target.value=String(Wt),nt(y?.target?.value||""),u?.(y.target.value),v?.(y)};return(0,de.useEffect)(()=>{let y=R?.current?.querySelector("input");y&&B(y?.value)},[]),(0,de.useEffect)(()=>{let y=R?.current?.querySelector("input");y&&Xe?.current&&(y.style.width=`${Xe.current.offsetWidth+10}px`)},[Qe]),(0,he.jsxs)("div",{ref:R,className:"flex items-center space-x-1",children:[(0,he.jsx)(Ie,{id:"btn-minus",className:i(!V&&!a?"cursor-pointer text-pink-500":"text-gray-400 cursor-default",c),variant:"transparent",onClick:Mn,children:(0,he.jsx)(po.MinusCircleIcon,{className:"w-8 h-8 "})}),(0,he.jsxs)("div",{children:[(0,he.jsx)("input",{pattern:"[0-9]*",inputMode:"numeric",defaultValue:e,ref:H,min:o,max:t,onChange:y=>Ln(y),id:"numberInput",disabled:a||r,autoComplete:"off",...Z,className:i("text-gray-800 min-w-7 border-gray-300 border transition-width duration-100 focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 w-7 h-7 rounded-md text-center bg-white",m)}),(0,he.jsx)("span",{ref:Xe,style:{visibility:"hidden",position:"absolute",whiteSpace:"pre"},children:Qe||" "})]}),(0,he.jsx)(Ie,{id:"btn-plus",className:i(!K&&!a?"cursor-pointer text-pink-500":"text-gray-400 cursor-default",c),variant:"transparent",onClick:An,children:(0,he.jsx)(po.PlusCircleIcon,{className:"w-8 h-8 "})})]})});var xe=g(require("react"),1),_e=require("@heroicons/react/16/solid"),Oi=require("@heroicons/react/24/outline"),h=g(require("@radix-ui/react-select"),1);var w=require("react/jsx-runtime"),Wi=xe.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:s,disabled:m,...c},d)=>(0,w.jsxs)("div",{ref:d,className:i("select-mobase relative",e,m?"disabled":"",s?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&(0,w.jsx)("span",{className:i("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",s&&"text-red-500"),children:t}),(0,w.jsx)(h.Root,{disabled:m,...c,children:o}),a&&(0,w.jsxs)("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",s&&"text-red-500"),children:[s?(0,w.jsx)(_e.XCircleIcon,{width:16,height:16}):(0,w.jsx)(Oi.QuestionMarkCircleIcon,{width:16,height:16}),(0,w.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Gi=h.Value,da=xe.forwardRef(({className:e,children:o,...t},a)=>(0,w.jsxs)(h.Trigger,{ref:a,className:i("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[(0,w.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,w.jsx)(h.Icon,{asChild:!0,children:(0,w.jsx)(_e.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));da.displayName=h.Trigger.displayName;var go=xe.forwardRef(({className:e,...o},t)=>(0,w.jsx)(h.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,w.jsx)(_e.ChevronUpIcon,{className:"h-5 w-5"})}));go.displayName=h.ScrollUpButton.displayName;var fo=xe.forwardRef(({className:e,...o},t)=>(0,w.jsx)(h.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:(0,w.jsx)(_e.ChevronDownIcon,{className:"h-5 w-5"})}));fo.displayName=h.ScrollDownButton.displayName;var pa=xe.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,w.jsx)(h.Portal,{children:(0,w.jsxs)(h.Content,{ref:r,className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-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",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[(0,w.jsx)(go,{}),(0,w.jsx)(h.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,w.jsx)(fo,{})]})}));pa.displayName=h.Content.displayName;var $i=xe.forwardRef(({className:e,children:o,...t},a)=>(0,w.jsx)(h.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),ga=xe.forwardRef(({className:e,...o},t)=>(0,w.jsx)(h.Label,{ref:t,className:i("pr-2 pl-8 py-1.5 text-sm font-semibold z-[1]",e),...o}));ga.displayName=h.Label.displayName;var ji=xe.forwardRef(({className:e,children:o,...t},a)=>(0,w.jsxs)(h.Item,{ref:a,className:i("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),...t,children:[(0,w.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,w.jsx)(h.ItemIndicator,{children:(0,w.jsx)(_e.CheckIcon,{className:"h-4 w-4"})})}),(0,w.jsx)(h.ItemText,{children:o})]})),fa=xe.forwardRef(({className:e,...o},t)=>(0,w.jsx)(h.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));fa.displayName=h.Separator.displayName;var ue=g(require("react"),1),k=g(require("@radix-ui/react-navigation-menu"),1),qi=require("class-variance-authority"),Ui=require("@heroicons/react/16/solid");var re=require("react/jsx-runtime"),Qi=ue.createContext(null),es=({value:e,children:o})=>(0,re.jsx)(Qi.Provider,{value:e,children:o}),ts=()=>{let e=ue.useContext(Qi);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Mt=ue.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>(0,re.jsx)(es,{value:{alignDropdown:t},children:(0,re.jsx)(k.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Mt.displayName=k.Root.displayName;var Lt=ue.forwardRef(({className:e,...o},t)=>(0,re.jsx)(k.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Lt.displayName=k.List.displayName;var It=k.Item,Et=(0,qi.cva)(ge({variant:"transparent",size:"sm"})),_t=ue.forwardRef(({className:e,children:o,...t},a)=>(0,re.jsxs)(k.Trigger,{ref:a,className:i(Et(),"group px-2",e),...t,children:[o," ",(0,re.jsx)(Ui.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));_t.displayName=k.Trigger.displayName;var Ht=ue.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=ts();return(0,re.jsx)(k.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Ht.displayName=k.Content.displayName;var gt=k.Link,os=ue.forwardRef(({className:e,...o},t)=>(0,re.jsx)("div",{className:i("absolute left-0 top-full flex justify-center"),children:(0,re.jsx)(k.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));os.displayName=k.Viewport.displayName;var as=ue.forwardRef(({className:e,...o},t)=>(0,re.jsx)(k.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:(0,re.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));as.displayName=k.Indicator.displayName;var Xi=g(require("react"),1),Bt=g(require("@radix-ui/react-switch"),1);var ua=require("react/jsx-runtime"),va=Xi.forwardRef(({className:e,...o},t)=>(0,ua.jsx)(Bt.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:(0,ua.jsx)(Bt.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));va.displayName=Bt.Root.displayName;var ba=g(require("react"),1),We=g(require("@radix-ui/react-radio-group"),1),Zi=require("lucide-react");var Ft=require("react/jsx-runtime"),ha=ba.forwardRef(({className:e,...o},t)=>(0,Ft.jsx)(We.Root,{className:i("grid gap-2",e),...o,ref:t}));ha.displayName=We.Root.displayName;var xa=ba.forwardRef(({className:e,...o},t)=>(0,Ft.jsx)(We.Item,{ref:t,className:i("aspect-square h-4 w-4 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",e),...o,children:(0,Ft.jsx)(We.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,Ft.jsx)(Zi.Circle,{className:"h-2 w-2 fill-current text-current"})})}));xa.displayName=We.Item.displayName;var ye=require("react/jsx-runtime"),is=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:s=!1})=>{let m=s?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,ye.jsx)("li",{className:"",children:(0,ye.jsx)(gt,{asChild:!0,children:(0,ye.jsxs)("a",{className:i(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:r,...m,children:[o&&(0,ye.jsx)("div",{className:"w-7 h-7 shrink-0 mt-1",children:(0,ye.jsx)("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),(0,ye.jsxs)("div",{className:" ",children:[(0,ye.jsx)("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&(0,ye.jsx)("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Ki=is;var ve=require("react/jsx-runtime"),rs=({data:e,alignDropdown:o})=>(0,ve.jsx)(Mt,{alignDropdown:o,children:(0,ve.jsx)(Lt,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?(0,ve.jsxs)(It,{className:"relative",children:[(0,ve.jsx)(_t,{children:t.title}),(0,ve.jsx)(Ht,{children:(0,ve.jsx)("ul",{className:i("grid w-[300px] p-2 grid-cols-1",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(r=>(0,ve.jsx)(Ki,{title:r.title,href:r.url,newTab:r.newTab,icon:t.dropDownCompact===!0?r.icon:"",children:t.dropDownCompact===!0?r.description:""},r.title))})})]},t.id):(0,ve.jsx)(It,{className:"relative",children:(0,ve.jsx)(gt,{href:t.url,className:Et(),...a,children:t.title})},t.id)})})}),Yi=rs;var vo=require("react");var uo=[.24,.25,.05,1];var or=require("react-use"),ya=g(require("next/router"),1);var He=require("react/jsx-runtime"),ns=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:s=!1})=>{let m=s?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,He.jsx)("li",{className:"min-h-8",children:(0,He.jsxs)("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...m,children:[o&&(0,He.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,He.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,He.jsxs)("div",{className:" ",children:[(0,He.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,He.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ji=ns;var er=require("framer-motion"),we=require("react/jsx-runtime"),ss={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:uo}},exit:{opacity:0,transition:{duration:.05}}},ls=({data:e})=>(0,we.jsx)(xt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,we.jsx)(er.motion.div,{variants:ss,children:o.hasDropdown?(0,we.jsxs)(yt,{value:o.id,children:[(0,we.jsx)(wt,{className:"py-3",children:o.title}),(0,we.jsx)(Nt,{children:(0,we.jsx)("ul",{className:i("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>(0,we.jsx)(Ji,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,we.jsx)("a",{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:o.url,...t,children:o.title})},o.id)})}),tr=ls;var Ne=require("framer-motion");var f=require("react/jsx-runtime"),ms=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,cs=({data:e,className:o})=>{let[t,a]=(0,vo.useState)(!1);(0,or.useKey)("Escape",()=>a(!1)),(0,vo.useEffect)(()=>{if(!t)return;let m=ms();function c(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",ya.default.events.on("routeChangeComplete",c),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"}),ya.default.events.off("routeChangeComplete",c)}},[t]);let r={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},s={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:uo}},exit:{opacity:0,transition:{duration:.15}}};return(0,f.jsxs)("div",{className:i(o),children:[(0,f.jsxs)("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,f.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,f.jsx)(Ne.motion.div,{animate:t?"hidden":"visible",variants:r,children:(0,f.jsx)("svg",{className:i("block w-7 h-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,f.jsx)(Ne.motion.div,{animate:t?"visible":"hidden",variants:r,children:(0,f.jsx)("svg",{className:i("block w-7 h-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,f.jsx)(Ne.LazyMotion,{features:Ne.domAnimation,children:(0,f.jsx)(Ne.AnimatePresence,{mode:"wait",children:t&&(0,f.jsxs)(Ne.motion.nav,{variants:s,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed block w-full max-w-full z-50 px-5 bg-white left-0 right-0 bottom-0 overflow-y-auto top-[calc(var(--header-height)+1px)] pb-24 "),children:[(0,f.jsx)(tr,{data:e}),(0,f.jsxs)("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[(0,f.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,f.jsxs)("div",{className:"flex flex-nowrap",children:[(0,f.jsx)("div",{className:"flex-initial",children:(0,f.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,f.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,f.jsx)("div",{className:"ml-3 flex-initial",children:(0,f.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,f.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,f.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,f.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,f.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,f.jsx)("a",{href:`tel:${De.Support.Hotline}`,className:"text-gray-600",children:De.Support.Hotline_Format})]}),(0,f.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,f.jsx)("a",{href:`mailto:${De.Support.Email}`,className:"text-gray-600",children:De.Support.Email})]})]}),(0,f.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,f.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,f.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,f.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,f.jsxs)("g",{children:[(0,f.jsx)("title",{children:"Asset 1"}),(0,f.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
121
121
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
122
122
|
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,f.jsx)("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
123
123
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
124
|
-
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),(0,f.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,f.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,f.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,f.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,f.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,f.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,f.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),(0,f.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),(0,f.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),(0,f.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,f.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,f.jsx)("a",{className:"text-gray-600",href:`tel:${De.Business.Phome}`,children:De.Business.Phome_Format})]}),(0,f.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,f.jsxs)("a",{href:`mailto:${De.Business.Email}`,className:"text-gray-600",children:[" ",De.Business.Email]})]})]}),(0,f.jsx)("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:(0,f.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,f.jsx)("div",{className:"absolute left-1 top-1 ",children:(0,f.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),(0,f.jsx)("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),(0,f.jsx)("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},ar=cs;var ir=g(require("html-react-parser"),1);var rr=require("@heroicons/react/16/solid"),nr=require("react");var E=require("react/jsx-runtime"),wa=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:r,isSticky:s=!0,alignDropdown:m="left"})=>{let{logo:c,name:d,url:v}=t||{},[u,D]=(0,nr.useState)(!1);return(0,E.jsxs)("div",{className:i(e,"z-40 w-full flex-none lg:z-50 ",s?"sticky top-0 ":"relative"),children:[(0,E.jsx)("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),(0,E.jsx)("nav",{className:i("wrapper grid grid-cols-1 items-center lg:border-0 [--header-height:64px] "),style:{minHeight:"var(--header-height)"},children:(0,E.jsxs)("div",{className:"relative flex items-center ",children:[(0,E.jsxs)("a",{href:"/",title:"MoMo",className:"mr-3 flex-none w-9 h-9 overflow-hidden rounded-none hover:opacity-80",children:[(0,E.jsx)("span",{className:"sr-only",children:"MoMo home page"}),(0,E.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"})]}),t&&(0,E.jsxs)("a",{href:v,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,E.jsx)("img",{src:c,className:"w-9 h-9",alt:"MoMo"}),(0,E.jsx)("div",{className:"text-sm font-semibold leading-[1.1] text-pink-500 line-clamp-2",children:d&&(0,ir.default)(d)})]}),(0,E.jsx)("div",{className:"relative lg:ml-2 xl:ml-4 hidden lg:flex items-center ",children:(0,E.jsx)(Yi,{data:o,alignDropdown:m})}),(0,E.jsxs)("div",{className:"ml-auto flex space-x-3 flex-nowrap items-center",children:[r&&r,a&&(0,E.jsxs)("div",{className:" hidden sm:flex",children:[(0,E.jsxs)(oe,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>D(!0),children:[" ",(0,E.jsx)(rr.ArrowDownTrayIcon,{className:"mr-1 w-4 h-4"})," T\u1EA3i V\xED MoMo"]}),(0,E.jsx)(ze,{open:u,onOpenChange:()=>D(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),(0,E.jsx)(ar,{data:o,className:"lg:hidden "})]})]})})]})};wa.displayName="HeaderNavigation";var lr=require("react");var l=require("react/jsx-runtime"),sr=({item:e})=>(0,l.jsx)("div",{className:"mt-3 flex w-full text-sm",children:(0,l.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,l.jsx)("span",{className:"relative flex-none h-5 w-5 md:h-6 md:w-6",children:(0,l.jsx)("img",{src:e.icon,className:"absolute inset-0"})}),(0,l.jsx)("span",{className:"block ",children:e.title})]})}),ds=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=(0,lr.useState)(null);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"footer-main order-2 py-7 text-white md:order-1 text-sm",children:(0,l.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,l.jsxs)("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[(0,l.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,s)=>(0,l.jsx)(sr,{item:r},s))]}),(0,l.jsxs)("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[(0,l.jsx)("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),(0,l.jsx)("div",{className:"flex flex-wrap",children:o?.lists?.map((r,s)=>(0,l.jsx)(sr,{item:r},s))})]}),(0,l.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,l.jsxs)("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[(0,l.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,l.jsxs)("div",{className:"mt-2 text-sm md:mt-3",children:[(0,l.jsx)("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),(0,l.jsx)("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:Za.Address})]}),(0,l.jsxs)("div",{className:"mt-1 text-sm",children:[(0,l.jsx)("span",{className:"text-white text-opacity-50",children:"Hotline : "}),(0,l.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Hotline}`,children:U.Support.Hotline_Format}),(0,l.jsxs)("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),(0,l.jsxs)("div",{className:"mt-1 text-sm",children:[(0,l.jsx)("span",{className:"text-white text-opacity-50",children:"Email : "}),(0,l.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${U.Support.Email}`,children:U.Support.Email})]}),(0,l.jsxs)("div",{className:"mt-1 text-sm",children:[(0,l.jsxs)("span",{className:"text-white text-opacity-50",children:["T\u1ED5ng \u0111\xE0i g\u1ECDi ra :"," "]}),(0,l.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Phone_Ext_1}`,children:U.Support.Phone_Ext_1_Format}),(0,l.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,l.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Phone_Ext_2}`,children:U.Support.Phone_Ext_2_Format}),(0,l.jsx)("span",{className:"text-white text-opacity-60",children:" - "}),(0,l.jsx)("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Phone_Ext_3}`,children:U.Support.Phone_Ext_3_Format}),(0,l.jsx)("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),(0,l.jsx)("div",{className:"mt-3 flex",children:(0,l.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,l.jsxs)("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[(0,l.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,l.jsx)("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,l.jsxs)("g",{children:[(0,l.jsx)("title",{children:"Asset 1"}),(0,l.jsx)("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
125
125
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
126
126
|
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),(0,l.jsx)("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
127
127
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
@@ -129,18 +129,18 @@
|
|
|
129
129
|
footer .button-download {
|
|
130
130
|
max-width: 150px;
|
|
131
131
|
}
|
|
132
|
-
`})]})},mr=
|
|
132
|
+
`})]})},mr=ds;var Na=require("react/jsx-runtime"),cr=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,Na.jsx)("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,Na.jsx)(mr,{primaryMenu:o,secondaryMenu:t})});var tt=g(require("react"),1);var ot=require("react/jsx-runtime"),Pa=tt.forwardRef(({className:e,...o},t)=>(0,ot.jsx)("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Pa.displayName="Card";var Ca=tt.forwardRef(({className:e,...o},t)=>(0,ot.jsx)("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));Ca.displayName="CardHeader";var Ra=tt.forwardRef(({className:e,...o},t)=>(0,ot.jsx)("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));Ra.displayName="CardTitle";var Ta=tt.forwardRef(({className:e,...o},t)=>(0,ot.jsx)("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ta.displayName="CardDescription";var ka=tt.forwardRef(({className:e,...o},t)=>(0,ot.jsx)("div",{ref:t,className:i("p-6 pt-0",e),...o}));ka.displayName="CardContent";var Da=tt.forwardRef(({className:e,...o},t)=>(0,ot.jsx)("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));Da.displayName="CardFooter";var pe=g(require("react"),1),X=require("cmdk");var ft=require("@heroicons/react/16/solid"),W=require("react/jsx-runtime"),bo=pe.forwardRef(({className:e,...o},t)=>(0,W.jsx)(X.Command,{ref:t,className:i("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));bo.displayName=X.Command.displayName;var dr=({children:e,...o})=>(0,W.jsx)(Fe,{...o,children:(0,W.jsx)(Ae,{className:"overflow-hidden p-0 shadow-lg",children:(0,W.jsx)(bo,{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})})}),Sa=pe.forwardRef(({className:e,onClickClear:o,...t},a)=>{let r=pe.useRef(null),[s,m]=pe.useState(""),c=()=>{!s||s?.length<=0||(m(""),o?.(s))};return(0,W.jsxs)("div",{ref:r,className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,W.jsx)(ft.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,W.jsx)(X.Command.Input,{ref:a,className:i("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),value:s,onValueChange:m,...t}),(0,W.jsx)(ft.XCircleIcon,{onClick:c,className:i("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Sa.displayName=X.Command.Input.displayName;var Aa=pe.forwardRef(({className:e,...o},t)=>(0,W.jsx)(X.Command.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Aa.displayName=X.Command.List.displayName;var Ma=pe.forwardRef((e,o)=>(0,W.jsx)(X.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Ma.displayName=X.Command.Empty.displayName;var La=pe.forwardRef(({className:e,...o},t)=>(0,W.jsx)(X.Command.Group,{ref:t,className:i("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));La.displayName=X.Command.Group.displayName;var Ia=pe.forwardRef(({className:e,...o},t)=>(0,W.jsx)(X.Command.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Ia.displayName=X.Command.Separator.displayName;var Ea=pe.forwardRef(({className:e,children:o,isActive:t,...a},r)=>(0,W.jsxs)(X.Command.Item,{ref:r,className:i("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t?"bg-gray-100":"",e),...a,children:[(0,W.jsx)(ft.CheckIcon,{className:i("h-4 w-4 mr-2",t?"opacity-100":"opacity-0")}),o]}));Ea.displayName=X.Command.Item.displayName;var _a=({className:e,...o})=>(0,W.jsx)("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});_a.displayName="CommandShortcut";var pr=require("@heroicons/react/16/solid");var Ge=require("react/jsx-runtime"),gr=({className:e,value:o,label:t,children:a,placeholder:r})=>(0,Ge.jsxs)("div",{className:"relative",children:[(0,Ge.jsxs)(ct,{className:i("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:[o||a||r,(0,Ge.jsx)(pr.ChevronDownIcon,{className:"h-4 w-4 text-gray-700 flex-none"})]}),t&&(0,Ge.jsx)("span",{className:"absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",children:t})]}),fr=({children:e,className:o})=>(0,Ge.jsx)(Ze,{className:i("!p-0 border-none",o),children:e}),ur=({open:e,onOpenChange:o,children:t})=>(0,Ge.jsx)(mt,{open:e,onOpenChange:o,children:t});var Ha=require("class-variance-authority"),vr=require("react");var br=require("@heroicons/react/24/outline");var at=require("react/jsx-runtime"),ps=(0,Ha.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"}}),gs=(0,Ha.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"}}),hr=(0,vr.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:s,actionClassName:m,...c},d)=>(0,at.jsxs)("div",{ref:d,className:i("",r,ps({typeDiv:e,disabled:s})),...c,children:[(0,at.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,at.jsx)(br.InformationCircleIcon,{className:i(gs({typeIcon:e,disabled:s})),width:20,height:20}),(0,at.jsx)("div",{children:"B\u1EA1n c\u1EA7n cho ph\xE9p website s\u1EED d\u1EE5ng th\xF4ng tin v\u1ECB tr\xED \u0111\u1EC3 s\u1EED d\u1EE5ng t\xEDnh n\u0103ng n\xE0y"})]}),t&&(0,at.jsx)(et,{variant:"primary",onClick:()=>a?.(),className:i("",m),isDisabled:s,children:t})]}));var $e=require("react"),xr=require("@heroicons/react/20/solid"),yr=require("@heroicons/react/24/outline");var Pe=require("react/jsx-runtime"),wr=(0,$e.forwardRef)(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:s,onClickClear:m,value:c,defaultValue:d,type:v="text",...u},D)=>{let[q,Z]=(0,$e.useState)(!1),H=(0,$e.useRef)(null),R=T=>{T&&!q&&Z(!0),!T&&q&&Z(!1)},K=T=>{R(T.target.value),r?.(T)},ee=T=>{R(T.target.value),s?.(T)},V=()=>{let T=H.current?.querySelector("input");T&&(m?.(T.value),T.value="",T.focus(),Z(!1))};return(0,$e.useEffect)(()=>{R(d||c)},[c,d]),(0,Pe.jsxs)("div",{className:i(o),ref:H,children:[(0,Pe.jsxs)("div",{className:"relative flex items-center",children:[(0,Pe.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,Pe.jsx)(xr.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,Pe.jsx)("input",{disabled:e,type:v,ref:D,className:i("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:K,onFocus:ee,value:c,defaultValue:d,...u}),q&&(0,Pe.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:V,children:(0,Pe.jsx)(yr.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,Pe.jsx)("style",{children:`
|
|
133
133
|
.mobase-text-input-box:hover {
|
|
134
134
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
135
135
|
}
|
|
136
136
|
.mobase-text-input-box:focus {
|
|
137
137
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
|
|
138
138
|
}
|
|
139
|
-
`})]})});var ho=require("swiper/react"),je=require("swiper"),_=g(require("@radix-ui/react-dialog"),1),ne=g(require("react"),1);var Nr=require("lucide-react"),xo=require("@heroicons/react/24/outline"),Pr=g(require("lodash"),1),x=require("react/jsx-runtime"),
|
|
139
|
+
`})]})});var ho=require("swiper/react"),je=require("swiper"),_=g(require("@radix-ui/react-dialog"),1),ne=g(require("react"),1);var Nr=require("lucide-react"),xo=require("@heroicons/react/24/outline"),Pr=g(require("lodash"),1),x=require("react/jsx-runtime"),fs=_.Root,us=_.Portal,Cr=ne.default.forwardRef(({className:e,...o},t)=>(0,x.jsx)(_.Overlay,{ref:t,className:i("fixed inset-0 bg-black/80 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o}));Cr.displayName=_.Overlay.displayName;var vs=({clearActiveIndex:e})=>(0,x.jsxs)(_.Close,{onClick:()=>e?.(),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,x.jsx)(Nr.X,{className:"h-4 w-4 mt-0.5"}),(0,x.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]}),Rr=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:s})=>{let m=()=>{s?.()};return(0,x.jsxs)(_.Trigger,{className:i("aspect-[2/3] relative overflow-hidden rounded-lg",a),onClick:m,children:[e,(0,x.jsx)("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})]})},Tr=ne.default.forwardRef(({className:e,children:o,...t},a)=>(0,x.jsxs)(us,{children:[(0,x.jsx)(Cr,{className:"bg-black"}),(0,x.jsxs)(_.Content,{ref:a,className:i("h-full min-w-full border-none rounded-none z-[999] fixed bg-black left-[50%] top-[50%] grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border 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%] ",e),...t,children:[o,(0,x.jsx)(vs,{})]})]}));Tr.displayName=_.Content.displayName;var bs=({className:e,...o})=>(0,x.jsx)("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...o});bs.displayName="DialogHeader";var hs=({className:e,...o})=>(0,x.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...o});hs.displayName="DialogFooter";var xs=ne.default.forwardRef(({className:e,...o},t)=>(0,x.jsx)(_.Title,{ref:t,className:i("text-lg font-semibold leading-none tracking-tight",e),...o}));xs.displayName=_.Title.displayName;var ys=ne.default.forwardRef(({className:e,...o},t)=>(0,x.jsx)(_.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));ys.displayName=_.Description.displayName;var kr=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r,className:s,isPagination:m=!1})=>{let[c,d]=(0,ne.useState)(o),[v,u]=(0,ne.useState)(""),D=()=>{let H=Pr.default.filter(e,(K,ee)=>ee===o),R=H.length>0?H[0]?.titleImage:"";u(R)};(0,ne.useEffect)(()=>{d(o),D()},[o]);let q={clickable:!0,renderBullet(H,R){let K=i("aspect-[1/1] min-w-[96px] mt-40 min-h-[76px] !rounded-lg overflow-hidden",R),ee=i("w-full h-full object-cover rounded-lg");return e[H]?.url?`
|
|
140
140
|
<div class="${K} ">
|
|
141
141
|
<img class="${ee} " src="${e[H]?.url}" alt="Slide ${H+1}" />
|
|
142
142
|
</div>
|
|
143
|
-
`:"<div></div>"}},Z=m?[je.Navigation,je.Lazy,je.Pagination]:[je.Navigation,je.Lazy];return(0,x.jsxs)(Tr,{className:i("flex py-0",s),children:[(0,x.jsxs)("div",{className:"lightbox flex-1 py-6",children:[(0,x.jsx)("div",{className:"flex items-center justify-end md:justify-center mt-2 w-full",children:(0,x.jsxs)("div",{children:[c?c+1:1," / ",e?.length]})}),(0,x.jsxs)(ho.Swiper,{initialSlide:o,onSlideChange:({realIndex:H})=>{d(H),
|
|
143
|
+
`:"<div></div>"}},Z=m?[je.Navigation,je.Lazy,je.Pagination]:[je.Navigation,je.Lazy];return(0,x.jsxs)(Tr,{className:i("flex py-0",s),children:[(0,x.jsxs)("div",{className:"lightbox flex-1 py-6",children:[(0,x.jsx)("div",{className:"flex items-center justify-end md:justify-center mt-2 w-full",children:(0,x.jsxs)("div",{children:[c?c+1:1," / ",e?.length]})}),(0,x.jsxs)(ho.Swiper,{initialSlide:o,onSlideChange:({realIndex:H})=>{d(H),D();let R=document.querySelector(".swiper-pagination-bullet-active");R&&R.scrollIntoView({behavior:"smooth",block:"nearest"})},onDestroy:()=>{d(o),D()},slidesPerView:"auto",className:"swiper lightboxSwiper",navigation:{nextEl:".lightbox .next-lightbox",prevEl:".lightbox .prev-lightbox"},pagination:q,modules:Z,lazy:{loadPrevNext:!0},children:[e.map((H,R)=>(0,x.jsxs)(ho.SwiperSlide,{children:[(0,x.jsx)("div",{className:"absolute top-28 bottom-28 left-0 right-0 min-h-0 sm:left-20 sm:right-20",children:(0,x.jsx)("img",{src:H.url,alt:"",className:"absolute h-full w-full object-contain",loading:"lazy"})}),(0,x.jsx)("div",{className:"swiper-lazy-preloader swiper-lazy-preloader-white"}),(0,x.jsx)("div",{className:"text-sm px-20 text-center text-white/80 absolute bottom-10 my-4 flex items-center justify-center w-full z-[999]",children:v})]},R)),(0,x.jsx)(Ie,{className:"disabled:bg-white/60 prev-lightbox button-swiper translate swiper-cate-merchant absolute inset-y-1/2 left-6 z-10 hidden h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border border-gray-300 bg-white text-white shadow-md duration-200 ease-in-out hover:bg-white/80 hover:shadow-md md:flex",children:(0,x.jsx)(xo.ChevronLeftIcon,{className:"w-7 text-slate-900"})}),(0,x.jsx)(Ie,{className:"disabled:bg-white/60 next-lightbox translate swiper-cate-merchant button-swiper absolute inset-y-1/2 right-6 z-10 hidden h-12 w-12 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full border border-gray-300 bg-white text-white shadow-md duration-300 ease-in-out hover:bg-white/80 hover:shadow-md md:flex",children:(0,x.jsx)(xo.ChevronRightIcon,{className:"w-7 text-slate-900"})})]}),(0,x.jsx)("style",{children:`
|
|
144
144
|
.lightbox {
|
|
145
145
|
--lightbox-topnav: 112px;
|
|
146
146
|
--lightbox-botnav: 80px;
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
.swiper-pagination-bullet-active{
|
|
214
214
|
border: 2px solid white;
|
|
215
215
|
}
|
|
216
|
-
`})]}),t&&(0,x.jsx)("div",{className:i("hidden md:flex overflow-y-auto bg-white text-gray-900 px-6 pb-4 pt-2 w-full max-w-sm lg:max-w-md",r),children:a})]})},Sr=({children:e,className:o,open:t,onOpenChange:a})=>(0,x.jsx)("div",{className:i("lightbox-gallery ",o),children:(0,x.jsx)(gs,{open:t,onOpenChange:a,children:ne.default.Children?.map(e,r=>{if(ne.default.isValidElement(r)){let s={},m=Object.keys(s).reduce((c,d)=>(s[d]!==void 0&&(c[d]=s[d]),c),{});return ne.default.cloneElement(r,m)}return null})})});var qe=g(require("react"),1),Ue=g(require("@radix-ui/react-radio-group"),1);var Dr=require("lucide-react"),zt=g(require("@radix-ui/react-checkbox"),1),Ar=require("@heroicons/react/16/solid"),J=require("react/jsx-runtime"),Mr=qe.createContext({hideIndicator:!1});function ys(){let e=qe.useContext(Mr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ba=qe.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,J.jsx)(Mr.Provider,{value:{hideIndicator:o},children:(0,J.jsx)(Ue.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Ba.displayName=Ue.Root.displayName;var Fa=qe.forwardRef(({className:e,children:o,...t},a)=>{let r=ys(),{hideIndicator:s}=r??{};return(0,J.jsxs)(Ue.Item,{ref:a,className:i("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[(0,J.jsx)("div",{className:"flex-1 min-w-0",children:o}),!s&&(0,J.jsx)("div",{className:i("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,J.jsx)(Ue.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,J.jsx)(Dr.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Fa.displayName=Ue.Item.displayName;var za=qe.forwardRef(({className:e,children:o,...t},a)=>(0,J.jsxs)(zt.Root,{ref:a,className:i("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[(0,J.jsx)("div",{className:"flex-1 min-w-0",children:o}),(0,J.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,J.jsx)(zt.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,J.jsx)(Ar.CheckIcon,{className:"h-4 w-4"})})})]}));za.displayName=zt.Root.displayName;var Lr=require("class-variance-authority");var Er=require("react/jsx-runtime"),Va=(0,Lr.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 Ir({className:e,variant:o,...t}){return(0,Er.jsx)("div",{className:i(Va({variant:o}),e),...t})}var _r=g(require("react"),1),Vt=g(require("@radix-ui/react-progress"),1),Wa=require("class-variance-authority");var Oa=require("react/jsx-runtime"),ws=(0,Wa.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"}}),Ns=(0,Wa.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"}}),Ga=_r.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...s},m)=>(0,Oa.jsx)(Vt.Root,{ref:m,className:i("",Ns({size:a}),e),...s,children:(0,Oa.jsx)(Vt.Indicator,{className:i("",ws({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Ga.displayName=Vt.Root.displayName;var Wr=require("react");var Br=require("@heroicons/react/24/outline");var Fr=require("class-variance-authority"),$a=g(require("html-react-parser"),1),G=require("react/jsx-runtime"),Ps=(0,Fr.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}}),Hr=({template:e,name:o,description:t,image:a,idx:r,value:s,suffix:m,unit:c})=>(0,G.jsx)(G.Fragment,{children:(()=>{switch(e){case 1:case 3:return(0,G.jsxs)("li",{className:"flex items-center space-x-4",children:[a?(0,G.jsx)("img",{src:a,alt:"",className:"shrink-0"}):(0,G.jsx)("div",{className:"bg-pink-100 p-1 rounded-full w-5 h-5 flex items-center justify-center",children:(0,G.jsx)(Br.CheckIcon,{className:"w-4 h-4 text-pink-500 "})}),o&&(0,G.jsx)("div",{className:"ml-2 leading-tight",children:(0,$a.default)(o)})]});case 2:return(0,G.jsxs)("div",{className:i("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",r>0?"md:pl-4":"md:!border-0"),children:[s&&(0,G.jsxs)("div",{className:"font-bold text-gray-900 line-clamp-2",children:[s,(m||c)&&(0,G.jsxs)("span",{children:[m," ",c]})]}),t&&(0,G.jsx)("div",{className:"text-sm mt-1 text-gray-500 leading-tight",children:(0,$a.default)(t)})]});default:return null}})()}),yo=({dataFeatures:e,template:o=1,dataStats:t})=>(0,G.jsxs)("ul",{className:i("",Ps({template:o})),children:[(o===1||o===3)&&e?.map((a,r)=>(0,G.jsx)(Hr,{name:a?.name,template:o,image:a?.image,idx:r},r)),o===2&&t?.map((a,r)=>(0,G.jsx)(Hr,{value:a?.value,suffix:a?.suffix,unit:a?.unit,template:o,description:a?.description,idx:r},r))]});var zr=g(require("@radix-ui/react-aspect-ratio"),1),it=zr.Root;var A=require("react/jsx-runtime"),Cs=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>(0,A.jsxs)(it,{className:i(""),ratio:o,children:[(0,A.jsx)("img",{src:e,className:i("w-full h-full object-cover md:block hidden",t,e?"":"bg-gray-200"),alt:""}),a&&(0,A.jsx)("div",{className:"aspect-[16/9] realtive overflow-hidden w-full md:hidden",children:(0,A.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,A.jsxs)(Fe,{children:[(0,A.jsx)($t,{onClick:r,children:(0,A.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,A.jsx)("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,A.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,A.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,A.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,A.jsx)(Ae,{hideCloseBtn:!0,className:"w-full h-full !shadow-none !bg-transparent flex items-center justify-center bg-gray-900 p-0",children:(0,A.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:""})})]})]}),Ot=({type:e=1,src:o,ratio:t,className:a,youtubeId:r,onClickFC:s=()=>{}})=>(0,A.jsx)(A.Fragment,{children:r?(0,A.jsx)(Cs,{type:e,src:o,ratio:t,youtubeId:r,onClickFC:s}):(0,A.jsx)(it,{className:i(""),ratio:t,children:(0,A.jsx)("img",{src:o,className:i("w-full h-full object-cover",a,o?"":"bg-gray-200"),alt:""})})});var wo=g(require("html-react-parser"),1);var Ce=require("react/jsx-runtime"),ut=({idSection:e,className:o,background:t,children:a})=>(0,Ce.jsx)("section",{id:e,className:i("feature-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,Ce.jsx)("div",{className:"wrapper relative",children:a})}),z=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="h2",colorScheme:s="regular",sizeHeading:m="small",className:c})=>{let d=s==="regular"?"pink":s==="pink"?"regular":"white",v=s==="pink"?"pink":s==="white"?"white":"regular",u=s==="white"?"white":"regular";return(0,Ce.jsxs)(ao,{align:e,className:c,children:[o&&(0,Ce.jsx)(eo,{color:d,children:o}),t&&(0,Ce.jsx)(to,{tagHeading:r,color:v,size:m,children:(0,wo.default)(t)}),a&&(0,Ce.jsx)(oo,{color:u,marginTop:m==="large"?"spacing2Xl":"spacingX",children:(0,wo.default)(a)})]})},vt=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,Ce.jsx)("div",{className:i("buttons-block mt-8 md:mt-10 flex gap-4 w-full",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((r,s)=>{let{btnName:m,...c}=r;return(0,Ce.jsx)(qt,{...c,className:i(o&&"w-full md:w-auto",r?.className),children:(0,wo.default)(m)},s)})});var P=require("react/jsx-runtime"),ja=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:s})=>(0,P.jsxs)("div",{className:i("grid grid-cols-1 md:grid-cols-2 md:gap-6 gap-8 items-center"),children:[(0,P.jsxs)("div",{className:"col-span-1 ",children:[(0,P.jsx)(z,{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,P.jsx)(yo,{dataFeatures:t,template:a,dataStats:r}),o&&(0,P.jsx)(vt,{align:o?.align,isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})]}),(0,P.jsx)("div",{className:"col-span-1 md:pl-10",children:(0,P.jsx)(Ot,{type:s?.type||1,src:s?.src||"",ratio:s?.ratio,youtubeId:s?.youtubeId})})]}),Vr=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:s})=>(0,P.jsxs)("div",{className:i("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[(0,P.jsx)("div",{className:"col-span-1",children:(0,P.jsx)("div",{className:"hidden md:block",children:(0,P.jsx)(Ot,{type:s?.type||1,src:s?.src||"",ratio:s?.ratio,youtubeId:s?.youtubeId})})}),(0,P.jsxs)("div",{className:"col-span-1",children:[(0,P.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:e?.align||"left",sizeHeading:e?.sizeHeading,className:e?.className}),(0,P.jsx)(yo,{dataFeatures:t,template:a,dataStats:r}),(0,P.jsx)("div",{className:"md:hidden mt-10",children:(0,P.jsx)(Ot,{type:s?.type||1,src:s?.src||"",ratio:s?.ratio,youtubeId:s?.youtubeId})}),o&&(0,P.jsx)("div",{className:"w-full flex items-center justify-center md:justify-start",children:(0,P.jsx)(vt,{align:o?.align,isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})})]})]}),Or=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:s})=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(z,{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`}),o&&(0,P.jsx)(vt,{align:o?.align,isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"w-full md:w-full inline-flex items-center justify-center text-base font-semibold text-center"}),(0,P.jsx)(yo,{dataFeatures:t,template:a,dataStats:r}),(0,P.jsx)(Ot,{type:s?.type||1,src:s?.src||"",ratio:s?.ratio,youtubeId:s?.youtubeId,className:"rounded-lg"})]});var Re=require("react/jsx-runtime"),Rs=`var(
|
|
216
|
+
`})]}),t&&(0,x.jsx)("div",{className:i("hidden md:flex overflow-y-auto bg-white text-gray-900 px-6 pb-4 pt-2 w-full max-w-sm lg:max-w-md",r),children:a})]})},Dr=({children:e,className:o,open:t,onOpenChange:a})=>(0,x.jsx)("div",{className:i("lightbox-gallery ",o),children:(0,x.jsx)(fs,{open:t,onOpenChange:a,children:ne.default.Children?.map(e,r=>{if(ne.default.isValidElement(r)){let s={},m=Object.keys(s).reduce((c,d)=>(s[d]!==void 0&&(c[d]=s[d]),c),{});return ne.default.cloneElement(r,m)}return null})})});var qe=g(require("react"),1),Ue=g(require("@radix-ui/react-radio-group"),1);var Sr=require("lucide-react"),zt=g(require("@radix-ui/react-checkbox"),1),Ar=require("@heroicons/react/16/solid"),J=require("react/jsx-runtime"),Mr=qe.createContext({hideIndicator:!1});function ws(){let e=qe.useContext(Mr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ba=qe.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,J.jsx)(Mr.Provider,{value:{hideIndicator:o},children:(0,J.jsx)(Ue.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Ba.displayName=Ue.Root.displayName;var Fa=qe.forwardRef(({className:e,children:o,...t},a)=>{let r=ws(),{hideIndicator:s}=r??{};return(0,J.jsxs)(Ue.Item,{ref:a,className:i("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[(0,J.jsx)("div",{className:"flex-1 min-w-0",children:o}),!s&&(0,J.jsx)("div",{className:i("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,J.jsx)(Ue.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,J.jsx)(Sr.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Fa.displayName=Ue.Item.displayName;var za=qe.forwardRef(({className:e,children:o,...t},a)=>(0,J.jsxs)(zt.Root,{ref:a,className:i("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[(0,J.jsx)("div",{className:"flex-1 min-w-0",children:o}),(0,J.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,J.jsx)(zt.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,J.jsx)(Ar.CheckIcon,{className:"h-4 w-4"})})})]}));za.displayName=zt.Root.displayName;var Lr=require("class-variance-authority");var Er=require("react/jsx-runtime"),Va=(0,Lr.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 Ir({className:e,variant:o,...t}){return(0,Er.jsx)("div",{className:i(Va({variant:o}),e),...t})}var _r=g(require("react"),1),Vt=g(require("@radix-ui/react-progress"),1),Wa=require("class-variance-authority");var Oa=require("react/jsx-runtime"),Ns=(0,Wa.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"}}),Ps=(0,Wa.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"}}),Ga=_r.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...s},m)=>(0,Oa.jsx)(Vt.Root,{ref:m,className:i("",Ps({size:a}),e),...s,children:(0,Oa.jsx)(Vt.Indicator,{className:i("",Ns({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Ga.displayName=Vt.Root.displayName;var Gr=require("react");var Br=require("@heroicons/react/24/outline");var Fr=require("class-variance-authority"),$a=g(require("html-react-parser"),1),G=require("react/jsx-runtime"),Cs=(0,Fr.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}}),Hr=({template:e,name:o,description:t,image:a,idx:r,value:s,suffix:m,unit:c})=>(0,G.jsx)(G.Fragment,{children:(()=>{switch(e){case 1:case 3:return(0,G.jsxs)("li",{className:"flex items-center space-x-4",children:[a?(0,G.jsx)("img",{src:a,alt:"",className:"shrink-0"}):(0,G.jsx)("div",{className:"bg-pink-100 p-1 rounded-full w-5 h-5 flex items-center justify-center",children:(0,G.jsx)(Br.CheckIcon,{className:"w-4 h-4 text-pink-500 "})}),o&&(0,G.jsx)("div",{className:"ml-2 leading-tight",children:(0,$a.default)(o)})]});case 2:return(0,G.jsxs)("div",{className:i("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",r>0?"md:pl-4":"md:!border-0"),children:[s&&(0,G.jsxs)("div",{className:"font-bold text-gray-900 line-clamp-2",children:[s,(m||c)&&(0,G.jsxs)("span",{children:[m," ",c]})]}),t&&(0,G.jsx)("div",{className:"text-sm mt-1 text-gray-500 leading-tight",children:(0,$a.default)(t)})]});default:return null}})()}),yo=({dataFeatures:e,template:o=1,dataStats:t})=>(0,G.jsxs)("ul",{className:i("",Cs({template:o})),children:[(o===1||o===3)&&e?.map((a,r)=>(0,G.jsx)(Hr,{name:a?.name,template:o,image:a?.image,idx:r},r)),o===2&&t?.map((a,r)=>(0,G.jsx)(Hr,{value:a?.value,suffix:a?.suffix,unit:a?.unit,template:o,description:a?.description,idx:r},r))]});var zr=g(require("@radix-ui/react-aspect-ratio"),1),it=zr.Root;var A=require("react/jsx-runtime"),Vr=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Rs=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>(0,A.jsxs)(it,{className:i(""),ratio:Vr(o),children:[(0,A.jsx)("img",{src:e,className:i("w-full h-full object-cover md:block hidden",t,e?"":"bg-gray-200"),alt:""}),a&&(0,A.jsx)("div",{className:"aspect-[16/9] realtive overflow-hidden w-full md:hidden",children:(0,A.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,A.jsxs)(Fe,{children:[(0,A.jsx)($t,{onClick:r,children:(0,A.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,A.jsx)("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,A.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,A.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,A.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,A.jsx)(Ae,{hideCloseBtn:!0,className:"w-full h-full !shadow-none !bg-transparent flex items-center justify-center bg-gray-900 p-0",children:(0,A.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:""})})]})]}),Ot=({type:e=1,src:o,ratio:t,className:a,youtubeId:r,onClickFC:s=()=>{}})=>(0,A.jsx)(A.Fragment,{children:r?(0,A.jsx)(Rs,{type:e,src:o,ratio:t,youtubeId:r,onClickFC:s}):(0,A.jsx)(it,{className:i(""),ratio:Vr(t),children:(0,A.jsx)("img",{src:o,className:i("w-full h-full object-cover",a,o?"":"bg-gray-200"),alt:""})})});var wo=g(require("html-react-parser"),1);var Ce=require("react/jsx-runtime"),ut=({idSection:e,className:o,background:t,children:a})=>(0,Ce.jsx)("section",{id:e,className:i("feature-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,Ce.jsx)("div",{className:"wrapper relative",children:a})}),z=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="h2",colorScheme:s="regular",sizeHeading:m="small",className:c})=>{let d=s==="regular"?"pink":s==="pink"?"regular":"white",v=s==="pink"?"pink":s==="white"?"white":"regular",u=s==="white"?"white":"regular";return(0,Ce.jsxs)(ao,{align:e,className:c,children:[o&&(0,Ce.jsx)(eo,{color:d,children:o}),t&&(0,Ce.jsx)(to,{tagHeading:r,color:v,size:m,children:(0,wo.default)(t)}),a&&(0,Ce.jsx)(oo,{color:u,marginTop:m==="large"?"spacing2Xl":"spacingX",children:(0,wo.default)(a)})]})},vt=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,Ce.jsx)("div",{className:i("buttons-block mt-8 md:mt-10 flex gap-4 w-full",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((r,s)=>{let{btnName:m,...c}=r;return(0,Ce.jsx)(qt,{...c,className:i(o&&"w-full md:w-auto",r?.className),children:(0,wo.default)(m)},s)})});var P=require("react/jsx-runtime"),ja=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:s,advancedComponent:m})=>(0,P.jsxs)("div",{className:i("grid grid-cols-1 md:grid-cols-2 md:gap-6 gap-8 items-center"),children:[(0,P.jsxs)("div",{className:"col-span-1 ",children:[(0,P.jsx)(z,{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,P.jsx)(yo,{dataFeatures:t,template:a,dataStats:r}),o&&(0,P.jsx)(vt,{align:o?.align,isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})]}),(0,P.jsx)("div",{className:"col-span-1 md:pl-10",children:m||(0,P.jsx)(Ot,{type:s?.type||1,src:s?.src||"",ratio:s?.ratio,youtubeId:s?.youtubeId})})]}),Or=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:s,advancedComponent:m})=>(0,P.jsxs)("div",{className:i("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[(0,P.jsx)("div",{className:"col-span-1",children:(0,P.jsx)("div",{className:"hidden md:block",children:m||(0,P.jsx)(Ot,{type:s?.type||1,src:s?.src||"",ratio:s?.ratio,youtubeId:s?.youtubeId})})}),(0,P.jsxs)("div",{className:"col-span-1",children:[(0,P.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:e?.align||"left",sizeHeading:e?.sizeHeading,className:e?.className}),(0,P.jsx)(yo,{dataFeatures:t,template:a,dataStats:r}),(0,P.jsx)("div",{className:"md:hidden mt-10",children:m||(0,P.jsx)(Ot,{type:s?.type||1,src:s?.src||"",ratio:s?.ratio,youtubeId:s?.youtubeId})}),o&&(0,P.jsx)("div",{className:"w-full flex items-center justify-center md:justify-start",children:(0,P.jsx)(vt,{align:o?.align,isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})})]})]}),Wr=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:s,advancedComponent:m})=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(z,{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`}),o&&(0,P.jsx)(vt,{align:o?.align,isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"w-full md:w-full inline-flex items-center justify-center text-base font-semibold text-center"}),(0,P.jsx)(yo,{dataFeatures:t,template:a,dataStats:r}),m||(0,P.jsx)(Ot,{type:s?.type||1,src:s?.src||"",ratio:s?.ratio,youtubeId:s?.youtubeId,className:"rounded-lg"})]});var Re=require("react/jsx-runtime"),Ts=`var(
|
|
217
217
|
--gradient-pink-1,
|
|
218
218
|
linear-gradient(
|
|
219
219
|
38deg,
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
rgba(255, 255, 255, 0) 80%
|
|
236
236
|
),
|
|
237
237
|
#fff
|
|
238
|
-
)`,Ts=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:s})=>{switch(e){case 1:return(0,Re.jsx)(ja,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:s});case 2:return(0,Re.jsx)(Vr,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:s});case 3:return(0,Re.jsx)(Or,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:s});default:return(0,Re.jsx)(ja,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:s})}},ks=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:s})=>(0,Re.jsx)(Re.Fragment,{children:Ts({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:s})}),Gr=(0,Wr.forwardRef)(({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:s,className:m,background:c})=>(0,Re.jsx)(ut,{className:i(m),background:c??Rs,children:(0,Re.jsx)(ks,{dataButtons:t,template:e,dataHeading:o,dataFeatures:a,dataStats:r,dataMedia:s})}));var M=g(require("html-react-parser"),1);var $r=require("@heroicons/react/16/solid");var n=require("react/jsx-runtime"),Te=({btnLink:e,btnName:o,newTab:t})=>(0,n.jsx)(et,{variant:"primary",asChild:!0,children:(0,n.jsxs)("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",(0,n.jsx)($r.ChevronRightIcon,{className:"w-4 h-4"})]})}),qa=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full text-center flex flex-col",children:[(0,n.jsx)("div",{className:"w-16 h-16 mx-auto",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-4 flex-1",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),jr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item p-5 overflow-hidden border border-gray-200 rounded-md relative w-full flex flex-col",style:{background:"linear-gradient(180deg, #FAFAFA 0%, rgba(250, 250, 250, 0) 91%);"},children:[(0,n.jsx)("div",{className:"w-16 h-16",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),qr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,n.jsx)("div",{className:"w-16 h-16",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-4 flex-1",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),Ur=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-0 lg:gap-12",children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:i("lg:col-span-4 lg:flex lg:flex-col lg:justify-center",e?.className)}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-5 lg:col-span-6",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-5 bg-white",children:[(0,n.jsx)("div",{className:"w-16 h-16",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),Qr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-5 max-w-4xl mx-auto",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-7 bg-white",children:[(0,n.jsx)("div",{className:"w-12 h-12 ",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),Xr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-7 lg:gap-y-10",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full",children:[(0,n.jsx)("div",{className:"w-12 h-12",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),Zr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-6 lg:gap-y-8",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex gap-3",children:[(0,n.jsx)("div",{className:"w-12 h-12",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,M.default)(t.description)}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),Kr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-6",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex flex-col overflow-hidden bg-gray-100 rounded-xl",children:[(0,n.jsxs)("div",{className:"w-full flex flex-1 flex-col p-5",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]}),(0,n.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})})]},a))})]}),Yr=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-10 lg:gap-14",children:[(0,n.jsx)("div",{className:"lg:col-span-6 flex items-center",children:(0,n.jsxs)("div",{className:"w-full",children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:auto-cols-auto",children:o?.map((r,s)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,n.jsx)("div",{className:"w-10 h-10",children:(0,n.jsx)("img",{src:r?.image,alt:r?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[r?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(r.name)}),r?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(r.description)})]}),r?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},s))}),t&&(0,n.jsx)(vt,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:t?.align||"left"})]})}),a&&(0,n.jsx)("div",{className:"lg:col-span-4 flex items-center",children:(0,n.jsx)(it,{ratio:a?.ratio||1,className:"w-full",children:(0,n.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})]}),Jr=({dataHeading:e,dataFeatures:o,dataBanner:t})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,n.jsx)("div",{className:i("relative flex items-center",t&&"lg:min-h-[577px]"),children:o&&(0,n.jsxs)("div",{className:i("list-features grid grid-cols-1 md:grid-cols-2 gap-8",t?"lg:gap-y-16 lg:gap-x-0 lg:flex-wrap lg:flex lg:flex-row":"max-w-4xl mx-auto"),children:[o?.map((a,r)=>(0,n.jsxs)("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[(0,n.jsx)("div",{className:"w-12 h-12",children:(0,n.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(a.name)}),a?.description&&(0,n.jsx)("div",{className:"text-gray-500 mt-2",children:(0,M.default)(a.description)})]}),a?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r)),t&&(0,n.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,n.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,n.jsx)("div",{className:"w-full h-full bg-gray-100 overflow-hidden",style:{borderRadius:"30px"},children:(0,n.jsx)("img",{src:t?.src,alt:t?.alt,className:"w-full h-full object-contain"})})]})]})})]});var $=require("react/jsx-runtime"),Ss=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return(0,$.jsx)(qa,{dataHeading:o,dataFeatures:t});case 2:return(0,$.jsx)(jr,{dataHeading:o,dataFeatures:t});case 3:return(0,$.jsx)(qr,{dataHeading:o,dataFeatures:t});case 4:return(0,$.jsx)(Ur,{dataHeading:o,dataFeatures:t});case 5:return(0,$.jsx)(Qr,{dataHeading:o,dataFeatures:t});case 6:return(0,$.jsx)(Xr,{dataHeading:o,dataFeatures:t});case 7:return(0,$.jsx)(Zr,{dataHeading:o,dataFeatures:t});case 8:return(0,$.jsx)(Kr,{dataHeading:o,dataFeatures:t});case 9:return(0,$.jsx)(Yr,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return(0,$.jsx)(Jr,{dataHeading:o,dataFeatures:t,dataBanner:r});default:return(0,$.jsx)(qa,{dataHeading:o,dataFeatures:t})}},Ds=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>(0,$.jsx)($.Fragment,{children:Ss({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),en=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:s,dataButtons:m,dataBanner:c})=>(0,$.jsx)(ut,{className:t,idSection:a,background:o,children:(0,$.jsx)(Ds,{template:e,dataHeading:r,dataFeatures:s,dataButtons:m,dataBanner:c})});var tn=g(require("react"),1),ke=g(require("@radix-ui/react-slider"),1);var rt=require("react/jsx-runtime"),Ua=tn.forwardRef(({className:e,...o},t)=>(0,rt.jsxs)(ke.Root,{ref:t,className:i("relative flex w-full touch-none select-none items-center",o?.disabled&&"opacity-40",e),...o,children:[(0,rt.jsx)(ke.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,rt.jsx)(ke.Range,{className:"absolute h-full bg-pink-500"})}),(0,rt.jsx)(ke.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,rt.jsx)(ke.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"})]}));Ua.displayName=ke.Root.displayName;var N=require("react/jsx-runtime"),on=({dataHeading:e,dataBrands:o,isScrollSnap:t})=>(0,N.jsxs)(N.Fragment,{children:[e&&(0,N.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,N.jsx)("div",{className:i("list-brands flex flex-row md:gap-x-10 gap-y-6 md:flex-wrap md:justify-center overflow-hidden overflow-x-auto py-2",t?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3":"flex-wrap justify-center"),children:o?.map((a,r)=>(0,N.jsx)("div",{className:i("flex justify-center items-center md:px-0 px-2.5 md:basis-auto",t?"snap-center shrink-0 first:pl-5 last:pr-5 basis-[28.5%]":"basis-1/2"),children:(0,N.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:a?.url?(0,N.jsx)("a",{href:a?.url,title:a?.name,target:a?.newTab?"_blank":"_self",className:"group",children:(0,N.jsx)("img",{src:a?.logo,loading:"lazy",alt:a?.name,className:"object-contain transition transform group-hover:scale-105"})}):(0,N.jsx)("img",{src:a?.logo,loading:"lazy",alt:a?.name,className:"object-contain"})})},r))})]}),As=({dataHeading:e,dataBrands:o,isScrollSnap:t})=>(0,N.jsxs)(N.Fragment,{children:[e&&(0,N.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,N.jsx)("div",{className:i("list-brands md:grid-cols-4 md:gap-y-6 md:gap-x-7",t?"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:o?.map((a,r)=>(0,N.jsx)("div",{className:i("flex justify-center items-center text-center",t?"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,N.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,N.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:(0,N.jsx)("img",{src:a?.logo,loading:"lazy",alt:a?.name,className:"object-contain"})})}):(0,N.jsx)("div",{className:"flex justify-center items-center rounded-md border border-gray-200 w-full h-full p-3",children:(0,N.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:(0,N.jsx)("img",{src:a?.logo,loading:"lazy",alt:a?.name,className:"object-contain"})})})},r))})]}),Ms=({template:e,dataHeading:o,dataBrands:t,isScrollSnap:a})=>{switch(e){case 1:return(0,N.jsx)(on,{dataHeading:o,dataBrands:t,isScrollSnap:a});case 2:return(0,N.jsx)(As,{dataHeading:o,dataBrands:t,isScrollSnap:a});default:return(0,N.jsx)(on,{dataHeading:o,dataBrands:t,isScrollSnap:a})}},Ls=({template:e,dataHeading:o,dataBrands:t,isScrollSnap:a})=>(0,N.jsx)(N.Fragment,{children:Ms({template:e,dataHeading:o,dataBrands:t,isScrollSnap:a})}),an=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:s,isScrollSnap:m})=>(0,N.jsx)(ut,{className:t,idSection:a,background:o,children:(0,N.jsx)(Ls,{template:e,dataHeading:r,dataBrands:s,isScrollSnap:m})});var Rn=g(require("color"),1),Tn=g(require("tailwindcss/plugin.js"),1);var j="250ms",rn={".transition-all":{"transition-property":"all","transition-timing-function":"ease","transition-duration":j},".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":j},".transition":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter","transition-timing-function":"ease","transition-duration":j},".transition-colors":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":j},".transition-opacity":{"transition-property":"opacity","transition-timing-function":"ease","transition-duration":j},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":j},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":j},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":j},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":j},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":j},".transition-shadow":{"transition-property":"box-shadow","transition-timing-function":"ease","transition-duration":j},".transition-transform":{"transition-property":"transform","transition-timing-function":"ease","transition-duration":j},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":j},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":j},".transition-transform-colors":{" transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":j},".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":j}};var nn={".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"},"*":{"border-color":"rgb(var(--mobase-gray-300))"}};var sn={".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 ln={...nn,...rn,...sn};var mn=require("flat");function Is(e){let o={};for(let t in e){if(t.endsWith("-DEFAULT")){o[t.replace("-DEFAULT","")]=e[t];continue}o[t]=e[t]}return o}var cn=e=>Is((0,mn.flatten)(e,{safe:!0,delimiter:"-"}));var No=16,Es=[.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,18],_s=[20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],dn=e=>{let o={xs:2,sm:3,md:4,lg:5.5,xl:9,"2xl":12,"3xl":20,"4xl":30,"5xl":56,"6xl":72,"7xl":96,"8xl":128,"9xl":160},t={0:"0px"};return Object.entries(o).forEach(([a,r])=>{t[a]=r?`${e*r/No}rem`:`${e/No}rem`}),Es.forEach(a=>{let r=`${a}`;if(r.includes(".")){let[s,m]=r.split(".");r=`${s}_${m}`}t[r]=`${e*a/No}rem`}),_s.forEach(a=>{let r=`${a}`;t[r]=`${e*a/No}rem`}),t};var pn={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var gn={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var fn={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var un={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var vn={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var bn={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var hn={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var xn={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var yn={white:"#ffffff",black:"#000000",blue:pn,green:gn,pink:fn,purple:un,red:vn,yellow:bn,gray:xn,orange:hn};var Qa={...yn};var wn={"spacing-unit":4,"disabled-opacity":.5,"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"},radius:{sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"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)"}};var Nn={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"}}}};function Pn(e){return{xxs:[`var(--${e}-font-size-xxs)`,{lineHeight:"1rem"}],xs:[`var(--${e}-font-size-xs)`,{lineHeight:"1rem"}],sm:[`var(--${e}-font-size-sm)`,{lineHeight:"1.25rem"}],base:[`var(--${e}-font-size-base)`,{lineHeight:"1.5rem"}],lg:[`var(--${e}-font-size-lg)`,{lineHeight:"1.75rem"}],xl:[`var(--${e}-font-size-xl)`,{lineHeight:"1.75rem"}],"2xl":[`var(--${e}-font-size-2xl)`,{lineHeight:"2rem"}],"3xl":[`var(--${e}-font-size-3xl)`,{lineHeight:"2.25rem"}],"4xl":[`var(--${e}-font-size-4xl)`,{lineHeight:"2.5rem"}],"5xl":[`var(--${e}-font-size-5xl)`,{lineHeight:"3.5rem",letterSpacing:"-0.075rem"}],"6xl":[`var(--${e}-font-size-6xl)`,{lineHeight:"4.5rem",letterSpacing:"-0.09375rem"}],"7xl":[`var(--${e}-font-size-7xl)`,{lineHeight:"5rem",letterSpacing:"-0.1125rem"}],"8xl":[`var(--${e}-font-size-8xl)`,{lineHeight:"6.5rem",letterSpacing:"-0.15rem"}],"9xl":[`var(--${e}-font-size-9xl)`,{lineHeight:"8rem",letterSpacing:"-0.2rem"}]}}function Cn(e){return{sm:`var(--${e}-radius-sm)`,DEFAULT:`var(--${e}-radius-base)`,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)`}}var Hs=e=>{let o={utilities:{},colors:{}},t=cn(Qa),a=wn,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([s,m])=>{if(m)try{let[c,d,v]=(0,Rn.default)(m).rgb().array(),u=`--${e}-${s}`;o.utilities[r][u]=`${c} ${d} ${v}`,o.colors[s]=`rgb(var(${u}) / <alpha-value>)`}catch(c){console.log("error",c?.message)}}),Object.entries(a).forEach(([s,m])=>{if(!m)return;let c=`--${e}-${s}`;if(typeof m=="object")Object.entries(m).forEach(([d,v])=>{let u=`${c}-${d}`;o.utilities[r][u]=v});else if(s==="spacing-unit"){o.utilities[r][c]=m;let d=dn(Number(m));Object.entries(d).forEach(([v,u])=>{let S=`${c}-${v}`;o.utilities[r][S]=u})}else{let d=c.includes("opacity")&&typeof m=="number"?m.toString().replace(/^0\./,"."):m;o.utilities[r][c]=d}}),o},kn=()=>{let e="mobase",o=Hs(e);return(0,Tn.default)(({addBase:t,addUtilities:a,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...ln})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16"},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:{...Qa,...o?.colors,border:"rgba(var(--border))"},boxShadow:{small:`var(--${e}-box-shadow-small)`,medium:`var(--${e}-box-shadow-medium)`,large:`var(--${e}-box-shadow-large)`},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)`},borderRadius:{...Cn(e)},fontSize:{...Pn(e)},...Nn}}})};var b=require("react/jsx-runtime"),Sn=(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:`{
|
|
238
|
+
)`,ks=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:s,advancedComponent:m})=>{switch(e){case 1:return(0,Re.jsx)(ja,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:s,advancedComponent:m});case 2:return(0,Re.jsx)(Or,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:s,advancedComponent:m});case 3:return(0,Re.jsx)(Wr,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:s,advancedComponent:m});default:return(0,Re.jsx)(ja,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:s,advancedComponent:m})}},Ds=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:s,advancedComponent:m})=>(0,Re.jsx)(Re.Fragment,{children:ks({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:s,advancedComponent:m})}),$r=(0,Gr.forwardRef)(({template:e=1,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:s,className:m,background:c,advancedComponent:d=null})=>(0,Re.jsx)(ut,{className:i(m),background:c??Ts,children:(0,Re.jsx)(Ds,{dataButtons:t,template:e,dataHeading:o,dataFeatures:a,dataStats:r,dataMedia:s,advancedComponent:d})}));var M=g(require("html-react-parser"),1);var jr=require("@heroicons/react/16/solid");var n=require("react/jsx-runtime"),Te=({btnLink:e,btnName:o,newTab:t})=>(0,n.jsx)(et,{variant:"primary",asChild:!0,children:(0,n.jsxs)("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",(0,n.jsx)(jr.ChevronRightIcon,{className:"w-4 h-4"})]})}),qa=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full text-center flex flex-col",children:[(0,n.jsx)("div",{className:"w-16 h-16 mx-auto",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-4 flex-1",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),qr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item p-5 overflow-hidden border border-gray-200 rounded-md relative w-full flex flex-col",style:{background:"linear-gradient(180deg, #FAFAFA 0%, rgba(250, 250, 250, 0) 91%);"},children:[(0,n.jsx)("div",{className:"w-16 h-16",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),Ur=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,n.jsx)("div",{className:"w-16 h-16",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-4 flex-1",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),Qr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-0 lg:gap-12",children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:i("lg:col-span-4 lg:flex lg:flex-col lg:justify-center",e?.className)}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-5 lg:col-span-6",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-5 bg-white",children:[(0,n.jsx)("div",{className:"w-16 h-16",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),Xr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-5 max-w-4xl mx-auto",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-7 bg-white",children:[(0,n.jsx)("div",{className:"w-12 h-12 ",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),Zr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-7 lg:gap-y-10",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full",children:[(0,n.jsx)("div",{className:"w-12 h-12",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),Kr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-6 lg:gap-y-8",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex gap-3",children:[(0,n.jsx)("div",{className:"w-12 h-12",children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-500 mt-2 text-sm",children:(0,M.default)(t.description)}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]})]},a))})]}),Yr=({dataHeading:e,dataFeatures:o})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-6",children:o?.map((t,a)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex flex-col overflow-hidden bg-gray-100 rounded-xl",children:[(0,n.jsxs)("div",{className:"w-full flex flex-1 flex-col p-5",children:[(0,n.jsxs)("div",{className:"flex-1",children:[t?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(t.name)}),t?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(t.description)})]}),t?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:t.btnLink,btnName:t?.btnName,newTab:t?.newTab})})]}),(0,n.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,n.jsx)("img",{src:t?.image,alt:t?.name,className:"w-full h-full object-contain"})})]},a))})]}),Jr=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,n.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-10 lg:gap-14",children:[(0,n.jsx)("div",{className:"lg:col-span-6 flex items-center",children:(0,n.jsxs)("div",{className:"w-full",children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align||"left",colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,n.jsx)("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:auto-cols-auto",children:o?.map((r,s)=>(0,n.jsxs)("div",{className:"feature-item relative w-full flex flex-col",children:[(0,n.jsx)("div",{className:"w-10 h-10",children:(0,n.jsx)("img",{src:r?.image,alt:r?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[r?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(r.name)}),r?.description&&(0,n.jsx)("div",{className:"text-gray-600 mt-2 text-base",children:(0,M.default)(r.description)})]}),r?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},s))}),t&&(0,n.jsx)(vt,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:t?.align||"left"})]})}),a&&(0,n.jsx)("div",{className:"lg:col-span-4 flex items-center",children:(0,n.jsx)(it,{ratio:a?.ratio||1,className:"w-full",children:(0,n.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})]}),en=({dataHeading:e,dataFeatures:o,dataBanner:t})=>(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,n.jsx)("div",{className:i("relative flex items-center",t&&"lg:min-h-[577px]"),children:o&&(0,n.jsxs)("div",{className:i("list-features grid grid-cols-1 md:grid-cols-2 gap-8",t?"lg:gap-y-16 lg:gap-x-0 lg:flex-wrap lg:flex lg:flex-row":"max-w-4xl mx-auto"),children:[o?.map((a,r)=>(0,n.jsxs)("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[(0,n.jsx)("div",{className:"w-12 h-12",children:(0,n.jsx)("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),(0,n.jsxs)("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[(0,n.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,n.jsx)("h3",{className:"text-lg font-semibold",children:(0,M.default)(a.name)}),a?.description&&(0,n.jsx)("div",{className:"text-gray-500 mt-2",children:(0,M.default)(a.description)})]}),a?.btnLink&&(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(Te,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r)),t&&(0,n.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,n.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,n.jsx)("div",{className:"w-full h-full bg-gray-100 overflow-hidden",style:{borderRadius:"30px"},children:(0,n.jsx)("img",{src:t?.src,alt:t?.alt,className:"w-full h-full object-contain"})})]})]})})]});var $=require("react/jsx-runtime"),Ss=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return(0,$.jsx)(qa,{dataHeading:o,dataFeatures:t});case 2:return(0,$.jsx)(qr,{dataHeading:o,dataFeatures:t});case 3:return(0,$.jsx)(Ur,{dataHeading:o,dataFeatures:t});case 4:return(0,$.jsx)(Qr,{dataHeading:o,dataFeatures:t});case 5:return(0,$.jsx)(Xr,{dataHeading:o,dataFeatures:t});case 6:return(0,$.jsx)(Zr,{dataHeading:o,dataFeatures:t});case 7:return(0,$.jsx)(Kr,{dataHeading:o,dataFeatures:t});case 8:return(0,$.jsx)(Yr,{dataHeading:o,dataFeatures:t});case 9:return(0,$.jsx)(Jr,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return(0,$.jsx)(en,{dataHeading:o,dataFeatures:t,dataBanner:r});default:return(0,$.jsx)(qa,{dataHeading:o,dataFeatures:t})}},As=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>(0,$.jsx)($.Fragment,{children:Ss({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),tn=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:s,dataButtons:m,dataBanner:c})=>(0,$.jsx)(ut,{className:t,idSection:a,background:o,children:(0,$.jsx)(As,{template:e,dataHeading:r,dataFeatures:s,dataButtons:m,dataBanner:c})});var on=g(require("react"),1),ke=g(require("@radix-ui/react-slider"),1);var rt=require("react/jsx-runtime"),Ua=on.forwardRef(({className:e,...o},t)=>(0,rt.jsxs)(ke.Root,{ref:t,className:i("relative flex w-full touch-none select-none items-center",o?.disabled&&"opacity-40",e),...o,children:[(0,rt.jsx)(ke.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,rt.jsx)(ke.Range,{className:"absolute h-full bg-pink-500"})}),(0,rt.jsx)(ke.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,rt.jsx)(ke.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"})]}));Ua.displayName=ke.Root.displayName;var N=require("react/jsx-runtime"),an=({dataHeading:e,dataBrands:o,isScrollSnap:t})=>(0,N.jsxs)(N.Fragment,{children:[e&&(0,N.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,N.jsx)("div",{className:i("list-brands flex flex-row md:gap-x-10 gap-y-6 md:flex-wrap md:justify-center overflow-hidden overflow-x-auto py-2",t?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3":"flex-wrap justify-center"),children:o?.map((a,r)=>(0,N.jsx)("div",{className:i("flex justify-center items-center md:px-0 px-2.5 md:basis-auto",t?"snap-center shrink-0 first:pl-5 last:pr-5 basis-[28.5%]":"basis-1/2"),children:(0,N.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:a?.url?(0,N.jsx)("a",{href:a?.url,title:a?.name,target:a?.newTab?"_blank":"_self",className:"group",children:(0,N.jsx)("img",{src:a?.logo,loading:"lazy",alt:a?.name,className:"object-contain transition transform group-hover:scale-105"})}):(0,N.jsx)("img",{src:a?.logo,loading:"lazy",alt:a?.name,className:"object-contain"})})},r))})]}),Ms=({dataHeading:e,dataBrands:o,isScrollSnap:t})=>(0,N.jsxs)(N.Fragment,{children:[e&&(0,N.jsx)(z,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:e?.align,colorScheme:"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&(0,N.jsx)("div",{className:i("list-brands md:grid-cols-4 md:gap-y-6 md:gap-x-7",t?"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:o?.map((a,r)=>(0,N.jsx)("div",{className:i("flex justify-center items-center text-center",t?"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,N.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,N.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:(0,N.jsx)("img",{src:a?.logo,loading:"lazy",alt:a?.name,className:"object-contain"})})}):(0,N.jsx)("div",{className:"flex justify-center items-center rounded-md border border-gray-200 w-full h-full p-3",children:(0,N.jsx)("div",{className:"w-auto max-w-36 flex justify-center items-center",children:(0,N.jsx)("img",{src:a?.logo,loading:"lazy",alt:a?.name,className:"object-contain"})})})},r))})]}),Ls=({template:e,dataHeading:o,dataBrands:t,isScrollSnap:a})=>{switch(e){case 1:return(0,N.jsx)(an,{dataHeading:o,dataBrands:t,isScrollSnap:a});case 2:return(0,N.jsx)(Ms,{dataHeading:o,dataBrands:t,isScrollSnap:a});default:return(0,N.jsx)(an,{dataHeading:o,dataBrands:t,isScrollSnap:a})}},Is=({template:e,dataHeading:o,dataBrands:t,isScrollSnap:a})=>(0,N.jsx)(N.Fragment,{children:Ls({template:e,dataHeading:o,dataBrands:t,isScrollSnap:a})}),rn=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:s,isScrollSnap:m})=>(0,N.jsx)(ut,{className:t,idSection:a,background:o,children:(0,N.jsx)(Is,{template:e,dataHeading:r,dataBrands:s,isScrollSnap:m})});var Tn=g(require("color"),1),kn=g(require("tailwindcss/plugin.js"),1);var j="250ms",nn={".transition-all":{"transition-property":"all","transition-timing-function":"ease","transition-duration":j},".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":j},".transition":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter","transition-timing-function":"ease","transition-duration":j},".transition-colors":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":j},".transition-opacity":{"transition-property":"opacity","transition-timing-function":"ease","transition-duration":j},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":j},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":j},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":j},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":j},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":j},".transition-shadow":{"transition-property":"box-shadow","transition-timing-function":"ease","transition-duration":j},".transition-transform":{"transition-property":"transform","transition-timing-function":"ease","transition-duration":j},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":j},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":j},".transition-transform-colors":{" transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":j},".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":j}};var sn={".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"},"*":{"border-color":"rgb(var(--mobase-gray-300))"}};var ln={".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 mn={...sn,...nn,...ln};var cn=require("flat");function Es(e){let o={};for(let t in e){if(t.endsWith("-DEFAULT")){o[t.replace("-DEFAULT","")]=e[t];continue}o[t]=e[t]}return o}var dn=e=>Es((0,cn.flatten)(e,{safe:!0,delimiter:"-"}));var No=16,_s=[.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,18],Hs=[20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],pn=e=>{let o={xs:2,sm:3,md:4,lg:5.5,xl:9,"2xl":12,"3xl":20,"4xl":30,"5xl":56,"6xl":72,"7xl":96,"8xl":128,"9xl":160},t={0:"0px"};return Object.entries(o).forEach(([a,r])=>{t[a]=r?`${e*r/No}rem`:`${e/No}rem`}),_s.forEach(a=>{let r=`${a}`;if(r.includes(".")){let[s,m]=r.split(".");r=`${s}_${m}`}t[r]=`${e*a/No}rem`}),Hs.forEach(a=>{let r=`${a}`;t[r]=`${e*a/No}rem`}),t};var gn={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var fn={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var un={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var vn={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var bn={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var hn={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var xn={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var yn={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var wn={white:"#ffffff",black:"#000000",blue:gn,green:fn,pink:un,purple:vn,red:bn,yellow:hn,gray:yn,orange:xn};var Qa={...wn};var Nn={"spacing-unit":4,"disabled-opacity":.5,"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"},radius:{sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"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)"}};var Pn={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"}}}};function Cn(e){return{xxs:[`var(--${e}-font-size-xxs)`,{lineHeight:"1rem"}],xs:[`var(--${e}-font-size-xs)`,{lineHeight:"1rem"}],sm:[`var(--${e}-font-size-sm)`,{lineHeight:"1.25rem"}],base:[`var(--${e}-font-size-base)`,{lineHeight:"1.5rem"}],lg:[`var(--${e}-font-size-lg)`,{lineHeight:"1.75rem"}],xl:[`var(--${e}-font-size-xl)`,{lineHeight:"1.75rem"}],"2xl":[`var(--${e}-font-size-2xl)`,{lineHeight:"2rem"}],"3xl":[`var(--${e}-font-size-3xl)`,{lineHeight:"2.25rem"}],"4xl":[`var(--${e}-font-size-4xl)`,{lineHeight:"2.5rem"}],"5xl":[`var(--${e}-font-size-5xl)`,{lineHeight:"3.5rem",letterSpacing:"-0.075rem"}],"6xl":[`var(--${e}-font-size-6xl)`,{lineHeight:"4.5rem",letterSpacing:"-0.09375rem"}],"7xl":[`var(--${e}-font-size-7xl)`,{lineHeight:"5rem",letterSpacing:"-0.1125rem"}],"8xl":[`var(--${e}-font-size-8xl)`,{lineHeight:"6.5rem",letterSpacing:"-0.15rem"}],"9xl":[`var(--${e}-font-size-9xl)`,{lineHeight:"8rem",letterSpacing:"-0.2rem"}]}}function Rn(e){return{sm:`var(--${e}-radius-sm)`,DEFAULT:`var(--${e}-radius-base)`,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)`}}var Bs=e=>{let o={utilities:{},colors:{}},t=dn(Qa),a=Nn,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([s,m])=>{if(m)try{let[c,d,v]=(0,Tn.default)(m).rgb().array(),u=`--${e}-${s}`;o.utilities[r][u]=`${c} ${d} ${v}`,o.colors[s]=`rgb(var(${u}) / <alpha-value>)`}catch(c){console.log("error",c?.message)}}),Object.entries(a).forEach(([s,m])=>{if(!m)return;let c=`--${e}-${s}`;if(typeof m=="object")Object.entries(m).forEach(([d,v])=>{let u=`${c}-${d}`;o.utilities[r][u]=v});else if(s==="spacing-unit"){o.utilities[r][c]=m;let d=pn(Number(m));Object.entries(d).forEach(([v,u])=>{let D=`${c}-${v}`;o.utilities[r][D]=u})}else{let d=c.includes("opacity")&&typeof m=="number"?m.toString().replace(/^0\./,"."):m;o.utilities[r][c]=d}}),o},Dn=()=>{let e="mobase",o=Bs(e);return(0,kn.default)(({addBase:t,addUtilities:a,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...mn})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16"},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:{...Qa,...o?.colors,border:"rgba(var(--border))"},boxShadow:{small:`var(--${e}-box-shadow-small)`,medium:`var(--${e}-box-shadow-medium)`,large:`var(--${e}-box-shadow-large)`},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)`},borderRadius:{...Rn(e)},fontSize:{...Cn(e)},...Pn}}})};var b=require("react/jsx-runtime"),Sn=(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:`{
|
|
239
239
|
"@context": "https://schema.org/",
|
|
240
240
|
"@type": "WebSite",
|
|
241
241
|
"@id":"https://www.momo.vn/#website",
|