@momo-webplatform/mobase 0.2.101 → 0.2.102
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 +4 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +16 -16
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Bd=Object.create;var qa=Object.defineProperty;var Od=Object.getOwnPropertyDescriptor;var Vd=Object.getOwnPropertyNames;var Wd=Object.getPrototypeOf,$d=Object.prototype.hasOwnProperty;var Gd=(e,o)=>{for(var t in o)qa(e,t,{get:o[t],enumerable:!0})},Ns=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of Vd(o))!$d.call(e,r)&&r!==t&&qa(e,r,{get:()=>o[r],enumerable:!(a=Od(o,r))||a.enumerable});return e};var v=(e,o,t)=>(t=e!=null?Bd(Wd(e)):{},Ns(o||!e||!e.__esModule?qa(t,"default",{value:e,enumerable:!0}):t,e)),jd=e=>Ns(qa({},"__esModule",{value:!0}),e);var eg={};Gd(eg,{Accordion:()=>yt,AccordionContent:()=>Pt,AccordionItem:()=>wt,AccordionTrigger:()=>Nt,ActionButton:()=>qe,AlertDialog:()=>ll,AlertDialogAction:()=>Hi,AlertDialogCancel:()=>_i,AlertDialogContent:()=>Ai,AlertDialogDescription:()=>Ei,AlertDialogFooter:()=>Fi,AlertDialogHeader:()=>Li,AlertDialogOverlay:()=>br,AlertDialogPortal:()=>Ii,AlertDialogTitle:()=>zi,AlertDialogTrigger:()=>ml,AspectRatio:()=>q,Badge:()=>fm,BlogSection:()=>qs,Breadcrumb:()=>ui,BreadcrumbEllipsis:()=>wi,BreadcrumbItem:()=>hi,BreadcrumbLink:()=>xi,BreadcrumbList:()=>vi,BreadcrumbPage:()=>bi,BreadcrumbSeparator:()=>yi,Button:()=>_e,ButtonsBlock:()=>N,CTASection:()=>_c,Calendar:()=>ba,Callout:()=>ta,Card:()=>dn,CardContent:()=>un,CardDescription:()=>gn,CardFooter:()=>vn,CardHeader:()=>pn,CardTitle:()=>fn,Carousel:()=>Ce,CarouselContent:()=>Re,CarouselDots:()=>ko,CarouselItem:()=>we,CarouselNext:()=>To,CarouselPrevious:()=>Ro,Checkbox:()=>xa,ChoiceboxGroup:()=>za,ChoiceboxGroupItem:()=>Ea,ChoiceboxMultiItem:()=>Rn,Combobox:()=>Yl,ComboboxContent:()=>Xl,ComboboxTrigger:()=>ql,Command:()=>Ar,CommandDialog:()=>Ql,CommandEmpty:()=>bn,CommandGroup:()=>yn,CommandInput:()=>hn,CommandItem:()=>Nn,CommandList:()=>xn,CommandSeparator:()=>wn,CommandShortcut:()=>Pn,Comment:()=>Tm,DatePicker:()=>tl,DateSelect:()=>sl,Dialog:()=>Ue,DialogBody:()=>st,DialogClose:()=>Xa,DialogContent:()=>Be,DialogDescription:()=>gi,DialogFooter:()=>fi,DialogHeader:()=>No,DialogOverlay:()=>Ya,DialogPortal:()=>pi,DialogQr:()=>so,DialogTitle:()=>Po,DialogTrigger:()=>Wo,Drawer:()=>ls,DrawerBody:()=>us,DrawerClose:()=>od,DrawerContent:()=>cs,DrawerDescription:()=>gs,DrawerFooter:()=>ps,DrawerHeader:()=>ds,DrawerOverlay:()=>si,DrawerPortal:()=>ms,DrawerTitle:()=>fs,DrawerTrigger:()=>td,DropdownMenu:()=>Om,DropdownMenuCheckboxItem:()=>_n,DropdownMenuContent:()=>En,DropdownMenuGroup:()=>Wm,DropdownMenuItem:()=>Hn,DropdownMenuLabel:()=>On,DropdownMenuPortal:()=>$m,DropdownMenuRadioGroup:()=>jm,DropdownMenuRadioItem:()=>Bn,DropdownMenuSeparator:()=>Vn,DropdownMenuShortcut:()=>Wn,DropdownMenuSub:()=>Gm,DropdownMenuSubContent:()=>zn,DropdownMenuSubTrigger:()=>Fn,DropdownMenuTrigger:()=>Vm,FAQSection:()=>Lc,FeatureSection:()=>Nc,Footer:()=>jl,Form:()=>Br,FormControl:()=>Va,FormDescription:()=>Wa,FormField:()=>Or,FormItem:()=>Ba,FormLabel:()=>Oa,FormLeadSupport:()=>vd,FormMessage:()=>$a,GuideSection:()=>ul,HeaderNavigation:()=>mn,Heading:()=>Ja,HeadingBlock:()=>w,HeadingGroup:()=>tr,HeadingSub:()=>er,HeadingTagline:()=>Ka,HeroSection:()=>oc,HorizontalContent:()=>Tt,HorizontalNext:()=>St,HorizontalPrevious:()=>kt,HorizontalScroll:()=>Rt,HowItWorksSection:()=>Xm,IconButton:()=>ve,InputOTP:()=>vs,InputOTPGroup:()=>hs,InputOTPSeparator:()=>bs,InputOTPSlot:()=>xs,LightBoxGalleryContent:()=>Fr,LightboxGallery:()=>Lr,LightboxThumbnail:()=>sm,MetricsSection:()=>Bc,NavigationMenu:()=>Ra,NavigationMenuContent:()=>Ma,NavigationMenuItem:()=>ka,NavigationMenuLink:()=>Jo,NavigationMenuList:()=>Ta,NavigationMenuTrigger:()=>Da,NewsSection:()=>Ec,Pagination:()=>$i,Payment:()=>ns,PaymentGuide:()=>mi,PaymentGuideDialog:()=>ci,PaymentInvoice:()=>Vc,PaymentMethods:()=>Gc,PaymentResult:()=>Kc,PaymentResultContent:()=>qc,PaymentResultFooter:()=>Qc,Popover:()=>Uo,PopoverContent:()=>So,PopoverTrigger:()=>qo,ProgressSteps:()=>Lm,ProgressStepsItem:()=>Am,ProgressStepsItemTrigger:()=>Im,Progressbar:()=>Dn,QRPayment:()=>cd,RadioGroup:()=>sn,RadioGroupItem:()=>ln,ReadMoreLite:()=>Er,SearchBar:()=>om,SectionBlock:()=>Y,Select:()=>Xo,SelectContent:()=>Mo,SelectGroup:()=>Zo,SelectItem:()=>Zt,SelectLabel:()=>Si,SelectScrollDownButton:()=>hr,SelectScrollUpButton:()=>vr,SelectSeparator:()=>Di,SelectTrigger:()=>Do,SelectValue:()=>Yo,SiteMeta:()=>Hd,Skeleton:()=>_a,Slider:()=>Mn,SocialProofSection:()=>mc,Spinner:()=>zr,Stepper:()=>an,Switch:()=>Aa,Tabs:()=>Dt,TabsContent:()=>dt,TabsList:()=>mt,TabsTrigger:()=>ct,TestimonialSection:()=>Ic,TextArea:()=>Nr,TextButton:()=>Pe,TextInput:()=>kr,ToastAction:()=>Xi,Toaster:()=>Nl,Tooltip:()=>Cl,TooltipArrow:()=>en,TooltipContent:()=>tn,TooltipProvider:()=>Pl,TooltipTrigger:()=>Rl,Topbar:()=>Jc,badgeVariants:()=>Tn,buttonVariants:()=>nt,mobaseTW:()=>Ed,navigationMenuTriggerStyle:()=>Sa,textButtonVariants:()=>Pi,toast:()=>Qi,useFormField:()=>ra,useToast:()=>Tr});module.exports=jd(eg);var fa=v(require("react"),1),ks=require("@heroicons/react/20/solid"),Qe=v(require("@radix-ui/react-accordion"),1);var Qd=v(require("react"),1),Cs=require("tailwind-merge");var Gt={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var Ps={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var pa=[{Name:"Facebook",Image:"https://homepage.momocdn.net/styles/desktop/images/social/facebook.svg",Link:"https://www.facebook.com/vimomo"},{Name:"Linkedin",Image:"https://homepage.momocdn.net/styles/desktop/images/social/linkedin.svg",Link:"https://www.linkedin.com/company/momo-mservice/"},{Name:"Youtube",Image:"https://homepage.momocdn.net/styles/desktop/images/social/youtube.svg",Link:"https://www.youtube.com/channel/UCKHHW-qL2JoZqcSNm1jPlqw"}],di=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}];var Se={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};var Rs=require("@artsy/fresnel");function i(...e){return(0,Cs.twMerge)(e)}var Ts=(0,Rs.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),ag=Ts.createMediaStyle(),{Media:bt,MediaContextProvider:Oo}=Ts;var jt=require("react/jsx-runtime"),yt=fa.forwardRef(({className:e,...o},t)=>(0,jt.jsx)(Qe.Root,{ref:t,...o}));yt.displayName="AccordionRoot";var wt=fa.forwardRef(({className:e,...o},t)=>(0,jt.jsx)(Qe.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));wt.displayName="AccordionItem";var Nt=fa.forwardRef(({className:e,children:o,...t},a)=>(0,jt.jsx)(Qe.Header,{className:"flex",children:(0,jt.jsxs)(Qe.Trigger,{ref:a,className:i("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,(0,jt.jsx)(ks.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));Nt.displayName=Qe.Trigger.displayName;var Pt=fa.forwardRef(({className:e,children:o,...t},a)=>(0,jt.jsx)(Qe.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:(0,jt.jsx)("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));Pt.displayName=Qe.Content.displayName;var Ss=v(require("react"),1),Ds=require("@radix-ui/react-slot"),Ms=require("class-variance-authority");var De=require("react/jsx-runtime"),Ud=({className:e})=>(0,De.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,De.jsx)("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),Vo=Ud;var no=require("react/jsx-runtime"),nt=(0,Ms.cva)("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),_e=Ss.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let c=a?Ds.Slot:"button",d=i(nt({variant:o,size:t,className:e}),{"cursor-wait":r});return(0,no.jsx)(no.Fragment,{children:a?(0,no.jsx)(c,{className:d,type:"button",disabled:n,ref:l,...s,children:s.children}):(0,no.jsxs)(c,{className:d,type:"button",disabled:n,ref:l,...s,children:[r&&(0,no.jsx)(Vo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});_e.displayName="Button";var As=require("qrcode.react");var ga=v(require("react"),1),Is=require("@heroicons/react/16/solid"),ce=v(require("@radix-ui/react-dialog"),1);var Ae=require("react/jsx-runtime"),Ue=ce.Root,Wo=ce.Trigger,pi=ce.Portal,Xa=ce.Close,Ya=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(ce.Overlay,{ref:t,className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));Ya.displayName=ce.Overlay.displayName;var Be=ga.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:n="auto",isFull:s=!1,children:l,...c},d)=>{let p={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},f={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},b=[p.base,p[r],f[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,Ae.jsxs)(pi,{children:[(0,Ae.jsx)(Ya,{}),(0,Ae.jsxs)(ce.Content,{ref:d,className:i(...b),...c,children:[l,!t&&(0,Ae.jsxs)(ce.Close,{className:i("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[(0,Ae.jsx)(Is.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Ae.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Be.displayName=ce.Content.displayName;var No=({className:e,...o})=>(0,Ae.jsx)("div",{className:i("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});No.displayName="DialogHeader";var st=({className:e,isCondensed:o=!1,...t})=>(0,Ae.jsx)("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});st.displayName="DialogBody";var fi=({className:e,isDivider:o=!0,...t})=>(0,Ae.jsx)("div",{className:i("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});fi.displayName="DialogFooter";var Po=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(ce.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Po.displayName=ce.Title.displayName;var gi=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(ce.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));gi.displayName=ce.Description.displayName;var y=require("react/jsx-runtime"),qd=({img:e="",children:o,isQrForAll:t})=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"qrcode__scan__container",children:(0,y.jsxs)("div",{className:"qrcode__scan",children:[(0,y.jsx)("div",{className:"qrcode__gradient",children:(0,y.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,y.jsx)("div",{className:"qrcode__border",children:(0,y.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,y.jsx)("div",{className:"p-4 qrcode__image",children:e?(0,y.jsx)("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),(0,y.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),(0,y.jsx)("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,y.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",(0,y.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,y.jsx)("style",{children:`
|
|
1
|
+
"use strict";var Bd=Object.create;var qa=Object.defineProperty;var Od=Object.getOwnPropertyDescriptor;var Vd=Object.getOwnPropertyNames;var Wd=Object.getPrototypeOf,$d=Object.prototype.hasOwnProperty;var Gd=(e,o)=>{for(var t in o)qa(e,t,{get:o[t],enumerable:!0})},Ns=(e,o,t,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of Vd(o))!$d.call(e,r)&&r!==t&&qa(e,r,{get:()=>o[r],enumerable:!(a=Od(o,r))||a.enumerable});return e};var v=(e,o,t)=>(t=e!=null?Bd(Wd(e)):{},Ns(o||!e||!e.__esModule?qa(t,"default",{value:e,enumerable:!0}):t,e)),jd=e=>Ns(qa({},"__esModule",{value:!0}),e);var tg={};Gd(tg,{Accordion:()=>yt,AccordionContent:()=>Pt,AccordionItem:()=>wt,AccordionTrigger:()=>Nt,ActionButton:()=>qe,AlertDialog:()=>ll,AlertDialogAction:()=>Hi,AlertDialogCancel:()=>_i,AlertDialogContent:()=>Ai,AlertDialogDescription:()=>Ei,AlertDialogFooter:()=>Fi,AlertDialogHeader:()=>Li,AlertDialogOverlay:()=>br,AlertDialogPortal:()=>Ii,AlertDialogTitle:()=>zi,AlertDialogTrigger:()=>ml,AspectRatio:()=>q,Badge:()=>fm,BlogSection:()=>qs,Breadcrumb:()=>ui,BreadcrumbEllipsis:()=>wi,BreadcrumbItem:()=>hi,BreadcrumbLink:()=>xi,BreadcrumbList:()=>vi,BreadcrumbPage:()=>bi,BreadcrumbSeparator:()=>yi,Button:()=>_e,ButtonsBlock:()=>N,CTASection:()=>_c,Calendar:()=>ba,Callout:()=>ta,Card:()=>dn,CardContent:()=>un,CardDescription:()=>gn,CardFooter:()=>vn,CardHeader:()=>pn,CardTitle:()=>fn,Carousel:()=>Ce,CarouselContent:()=>Re,CarouselDots:()=>ko,CarouselItem:()=>we,CarouselNext:()=>To,CarouselPrevious:()=>Ro,Checkbox:()=>xa,ChoiceboxGroup:()=>za,ChoiceboxGroupItem:()=>Ea,ChoiceboxMultiItem:()=>Rn,Combobox:()=>Yl,ComboboxContent:()=>Xl,ComboboxTrigger:()=>ql,Command:()=>Ar,CommandDialog:()=>Ql,CommandEmpty:()=>bn,CommandGroup:()=>yn,CommandInput:()=>hn,CommandItem:()=>Nn,CommandList:()=>xn,CommandSeparator:()=>wn,CommandShortcut:()=>Pn,Comment:()=>Tm,DatePicker:()=>tl,DateSelect:()=>sl,Dialog:()=>Ue,DialogBody:()=>st,DialogClose:()=>Xa,DialogContent:()=>Be,DialogDescription:()=>gi,DialogFooter:()=>fi,DialogHeader:()=>No,DialogOverlay:()=>Ya,DialogPortal:()=>pi,DialogQr:()=>so,DialogTitle:()=>Po,DialogTrigger:()=>Wo,Drawer:()=>ls,DrawerBody:()=>us,DrawerClose:()=>od,DrawerContent:()=>cs,DrawerDescription:()=>gs,DrawerFooter:()=>ps,DrawerHeader:()=>ds,DrawerOverlay:()=>si,DrawerPortal:()=>ms,DrawerTitle:()=>fs,DrawerTrigger:()=>td,DropdownMenu:()=>Om,DropdownMenuCheckboxItem:()=>_n,DropdownMenuContent:()=>En,DropdownMenuGroup:()=>Wm,DropdownMenuItem:()=>Hn,DropdownMenuLabel:()=>On,DropdownMenuPortal:()=>$m,DropdownMenuRadioGroup:()=>jm,DropdownMenuRadioItem:()=>Bn,DropdownMenuSeparator:()=>Vn,DropdownMenuShortcut:()=>Wn,DropdownMenuSub:()=>Gm,DropdownMenuSubContent:()=>zn,DropdownMenuSubTrigger:()=>Fn,DropdownMenuTrigger:()=>Vm,FAQSection:()=>Lc,FeatureSection:()=>Nc,Footer:()=>jl,Form:()=>Br,FormControl:()=>Va,FormDescription:()=>Wa,FormField:()=>Or,FormItem:()=>Ba,FormLabel:()=>Oa,FormLeadSupport:()=>vd,FormMessage:()=>$a,GuideSection:()=>ul,HeaderNavigation:()=>mn,Heading:()=>Ja,HeadingBlock:()=>w,HeadingGroup:()=>tr,HeadingSub:()=>er,HeadingTagline:()=>Ka,HeroSection:()=>oc,HorizontalContent:()=>Tt,HorizontalNext:()=>St,HorizontalPrevious:()=>kt,HorizontalScroll:()=>Rt,HowItWorksSection:()=>Xm,IconButton:()=>ve,InputOTP:()=>vs,InputOTPGroup:()=>hs,InputOTPSeparator:()=>bs,InputOTPSlot:()=>xs,LightBoxGalleryContent:()=>Fr,LightboxGallery:()=>Lr,LightboxThumbnail:()=>sm,MetricsSection:()=>Bc,NavigationMenu:()=>Ra,NavigationMenuContent:()=>Ma,NavigationMenuItem:()=>ka,NavigationMenuLink:()=>Jo,NavigationMenuList:()=>Ta,NavigationMenuTrigger:()=>Da,NewsSection:()=>Ec,Pagination:()=>$i,Payment:()=>ns,PaymentGuide:()=>mi,PaymentGuideDialog:()=>ci,PaymentInvoice:()=>Vc,PaymentMethods:()=>Gc,PaymentResult:()=>Kc,PaymentResultContent:()=>qc,PaymentResultFooter:()=>Qc,Popover:()=>Uo,PopoverContent:()=>So,PopoverTrigger:()=>qo,ProgressSteps:()=>Lm,ProgressStepsItem:()=>Am,ProgressStepsItemTrigger:()=>Im,Progressbar:()=>Dn,QRPayment:()=>cd,RadioGroup:()=>sn,RadioGroupItem:()=>ln,ReadMoreLite:()=>Er,SearchBar:()=>om,SectionBlock:()=>Y,Select:()=>Xo,SelectContent:()=>Mo,SelectGroup:()=>Zo,SelectItem:()=>Zt,SelectLabel:()=>Si,SelectScrollDownButton:()=>hr,SelectScrollUpButton:()=>vr,SelectSeparator:()=>Di,SelectTrigger:()=>Do,SelectValue:()=>Yo,SiteMeta:()=>Hd,Skeleton:()=>_a,Slider:()=>Mn,SocialProofSection:()=>mc,Spinner:()=>zr,Stepper:()=>an,Switch:()=>Aa,Tabs:()=>Dt,TabsContent:()=>dt,TabsList:()=>mt,TabsTrigger:()=>ct,TestimonialSection:()=>Ic,TextArea:()=>Nr,TextButton:()=>Pe,TextInput:()=>kr,ToastAction:()=>Xi,Toaster:()=>Nl,Tooltip:()=>Cl,TooltipArrow:()=>en,TooltipContent:()=>tn,TooltipProvider:()=>Pl,TooltipTrigger:()=>Rl,Topbar:()=>Jc,badgeVariants:()=>Tn,buttonVariants:()=>nt,mobaseTW:()=>Ed,navigationMenuTriggerStyle:()=>Sa,textButtonVariants:()=>Pi,toast:()=>Qi,useFormField:()=>ra,useToast:()=>Tr});module.exports=jd(tg);var fa=v(require("react"),1),ks=require("@heroicons/react/20/solid"),Qe=v(require("@radix-ui/react-accordion"),1);var Qd=v(require("react"),1),Cs=require("tailwind-merge");var Gt={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var Ps={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var pa=[{Name:"Facebook",Image:"https://homepage.momocdn.net/styles/desktop/images/social/facebook.svg",Link:"https://www.facebook.com/vimomo"},{Name:"Linkedin",Image:"https://homepage.momocdn.net/styles/desktop/images/social/linkedin.svg",Link:"https://www.linkedin.com/company/momo-mservice/"},{Name:"Youtube",Image:"https://homepage.momocdn.net/styles/desktop/images/social/youtube.svg",Link:"https://www.youtube.com/channel/UCKHHW-qL2JoZqcSNm1jPlqw"}],di=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}];var Se={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};var Rs=require("@artsy/fresnel");function i(...e){return(0,Cs.twMerge)(e)}var Ts=(0,Rs.createMedia)({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),rg=Ts.createMediaStyle(),{Media:bt,MediaContextProvider:Oo}=Ts;var jt=require("react/jsx-runtime"),yt=fa.forwardRef(({className:e,...o},t)=>(0,jt.jsx)(Qe.Root,{ref:t,...o}));yt.displayName="AccordionRoot";var wt=fa.forwardRef(({className:e,...o},t)=>(0,jt.jsx)(Qe.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));wt.displayName="AccordionItem";var Nt=fa.forwardRef(({className:e,children:o,...t},a)=>(0,jt.jsx)(Qe.Header,{className:"flex",children:(0,jt.jsxs)(Qe.Trigger,{ref:a,className:i("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,(0,jt.jsx)(ks.ChevronDownIcon,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));Nt.displayName=Qe.Trigger.displayName;var Pt=fa.forwardRef(({className:e,children:o,...t},a)=>(0,jt.jsx)(Qe.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:(0,jt.jsx)("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));Pt.displayName=Qe.Content.displayName;var Ss=v(require("react"),1),Ds=require("@radix-ui/react-slot"),Ms=require("class-variance-authority");var De=require("react/jsx-runtime"),Ud=({className:e})=>(0,De.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[(0,De.jsx)("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),(0,De.jsx)("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),Vo=Ud;var no=require("react/jsx-runtime"),nt=(0,Ms.cva)("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),_e=Ss.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let c=a?Ds.Slot:"button",d=i(nt({variant:o,size:t,className:e}),{"cursor-wait":r});return(0,no.jsx)(no.Fragment,{children:a?(0,no.jsx)(c,{className:d,type:"button",disabled:n,ref:l,...s,children:s.children}):(0,no.jsxs)(c,{className:d,type:"button",disabled:n,ref:l,...s,children:[r&&(0,no.jsx)(Vo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});_e.displayName="Button";var As=require("qrcode.react");var ga=v(require("react"),1),Is=require("@heroicons/react/16/solid"),ce=v(require("@radix-ui/react-dialog"),1);var Ae=require("react/jsx-runtime"),Ue=ce.Root,Wo=ce.Trigger,pi=ce.Portal,Xa=ce.Close,Ya=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(ce.Overlay,{ref:t,className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));Ya.displayName=ce.Overlay.displayName;var Be=ga.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:n="auto",isFull:s=!1,children:l,...c},d)=>{let p={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},f={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},b=[p.base,p[r],f[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return(0,Ae.jsxs)(pi,{children:[(0,Ae.jsx)(Ya,{}),(0,Ae.jsxs)(ce.Content,{ref:d,className:i(...b),...c,children:[l,!t&&(0,Ae.jsxs)(ce.Close,{className:i("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[(0,Ae.jsx)(Is.XMarkIcon,{className:"h-5 w-5 text-gray-700"}),(0,Ae.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});Be.displayName=ce.Content.displayName;var No=({className:e,...o})=>(0,Ae.jsx)("div",{className:i("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});No.displayName="DialogHeader";var st=({className:e,isCondensed:o=!1,...t})=>(0,Ae.jsx)("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});st.displayName="DialogBody";var fi=({className:e,isDivider:o=!0,...t})=>(0,Ae.jsx)("div",{className:i("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});fi.displayName="DialogFooter";var Po=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(ce.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Po.displayName=ce.Title.displayName;var gi=ga.forwardRef(({className:e,...o},t)=>(0,Ae.jsx)(ce.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));gi.displayName=ce.Description.displayName;var y=require("react/jsx-runtime"),qd=({img:e="",children:o,isQrForAll:t})=>(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"qrcode__scan__container",children:(0,y.jsxs)("div",{className:"qrcode__scan",children:[(0,y.jsx)("div",{className:"qrcode__gradient",children:(0,y.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,y.jsx)("div",{className:"qrcode__border",children:(0,y.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,y.jsx)("div",{className:"p-4 qrcode__image",children:e?(0,y.jsx)("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),(0,y.jsx)("div",{className:"mt-4 text-sm text-white",children:t?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),(0,y.jsx)("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,y.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",(0,y.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),(0,y.jsx)("style",{children:`
|
|
2
2
|
.qrcode__scan__container {
|
|
3
3
|
padding: 15px;
|
|
4
4
|
background-color: white;
|
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
.animate-caret-blink {
|
|
330
330
|
animation: caret-blink 1.25s ease-out infinite;
|
|
331
331
|
}
|
|
332
|
-
`})]})]})});xs.displayName="InputOTPSlot";var bs=Bo.forwardRef(({...e},o)=>(0,Vt.jsx)("div",{ref:o,role:"separator",...e,children:(0,Vt.jsx)(ad.Minus,{className:"text-gray-400"})}));bs.displayName="InputOTPSeparator";var wo=require("react"),md=require("html-to-image");var la=v(require("react"),1),nd=require("lucide-react"),sd=require("qrcode.react");async function rd(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let r=document.createElement("canvas");r.width=a.width,r.height=a.height;let n=r.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=r.toDataURL("image/png");o(s)},a.onerror=function(r){t(r)},a.src=e})}var id=v(require("html-react-parser"),1),H=require("react/jsx-runtime"),Of=()=>{let e=[{text:"Ng\u01B0\u1EDDi d\xF9ng l\u01B0u m\xE3 QR v\u1EC1 m\xE1y (nh\u1EA5n gi\u1EEF \u1EA3nh ho\u1EB7c ch\u1EE5p m\xE0n h\xECnh)."},{text:"M\u1EDF \u1EE9ng d\u1EE5ng Ng\xE2n h\xE0ng ho\u1EB7c V\xED \u0111i\u1EC7n t\u1EED"},{text:'Trong app, ch\u1ECDn ch\u1EE9c n\u0103ng "Qu\xE9t QR" (th\u01B0\u1EDDng l\xE0 bi\u1EC3u t\u01B0\u1EE3ng camera/scan) \u0111\u1EC3 t\u1EA3i \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'},{text:'"Ch\u1ECDn \u1EA3nh t\u1EEB th\u01B0 vi\u1EC7n" / "T\u1EA3i \u1EA3nh QR" ch\u1ECDn \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'}];return(0,H.jsx)("ul",{className:"grid grid-cols-1 gap-y-6 -ml-3 list-decimal md:hidden",children:e.map((o,t)=>(0,H.jsxs)("li",{className:"flex relative gap-4 items-center",children:[(0,H.jsx)("div",{className:"flex relative z-20 flex-shrink-0 justify-center items-center w-8 h-8 text-sm font-semibold text-gray-700 bg-gray-100 rounded-full",children:t+1}),(0,H.jsxs)("div",{className:"flex flex-1 gap-2 items-start",children:[(0,H.jsx)("p",{className:"text-sm leading-relaxed text-gray-700",children:(0,id.default)(o.text)}),t<e.length-1&&(0,H.jsx)("div",{className:"absolute left-4 top-8 w-px h-12 bg-gray-400 transform -translate-x-1/2"})]})]},t))})},Vf=({isQrForAll:e,shortTitle:o,className:t})=>(0,H.jsxs)("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[(0,H.jsxs)("div",{className:"flex flex-nowrap items-start",children:[(0,H.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,H.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,H.jsxs)("div",{className:"flex-1 pl-4",children:[(0,H.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,H.jsx)("div",{className:"mt-1 text-gray-500",children:e?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,H.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,H.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,H.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,H.jsxs)("div",{className:"flex-1 pl-4",children:[(0,H.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,H.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,H.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,H.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,H.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,H.jsxs)("div",{className:"flex-1 pl-4",children:[(0,H.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,H.jsxs)("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c ",o||"Truy c\u1EADp ngay"]})]})]})]}),Wf=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Vf,{isQrForAll:e,shortTitle:o,className:t}),(0,H.jsx)(Of,{})]}),mi=Wf;var io=require("react/jsx-runtime"),$f=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:r,onOpenChange:n})=>(0,io.jsxs)(Ue,{open:r,onOpenChange:n,children:[(0,io.jsx)(Wo,{asChild:!0,children:e}),(0,io.jsxs)(Be,{position:"bottom",children:[(0,io.jsx)(No,{children:(0,io.jsx)(Po,{children:o})}),(0,io.jsx)(st,{children:(0,io.jsx)(mi,{isQrForAll:t,shortTitle:a})})]})]}),ci=$f;var h=require("react/jsx-runtime"),Gf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"relative select-none
|
|
332
|
+
`})]})]})});xs.displayName="InputOTPSlot";var bs=Bo.forwardRef(({...e},o)=>(0,Vt.jsx)("div",{ref:o,role:"separator",...e,children:(0,Vt.jsx)(ad.Minus,{className:"text-gray-400"})}));bs.displayName="InputOTPSeparator";var wo=require("react"),md=require("html-to-image");var la=v(require("react"),1),nd=require("lucide-react"),sd=require("qrcode.react");async function rd(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let r=document.createElement("canvas");r.width=a.width,r.height=a.height;let n=r.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=r.toDataURL("image/png");o(s)},a.onerror=function(r){t(r)},a.src=e})}var id=v(require("html-react-parser"),1),H=require("react/jsx-runtime"),Of=()=>{let e=[{text:"Ng\u01B0\u1EDDi d\xF9ng l\u01B0u m\xE3 QR v\u1EC1 m\xE1y (nh\u1EA5n gi\u1EEF \u1EA3nh ho\u1EB7c ch\u1EE5p m\xE0n h\xECnh)."},{text:"M\u1EDF \u1EE9ng d\u1EE5ng Ng\xE2n h\xE0ng ho\u1EB7c V\xED \u0111i\u1EC7n t\u1EED"},{text:'Trong app, ch\u1ECDn ch\u1EE9c n\u0103ng "Qu\xE9t QR" (th\u01B0\u1EDDng l\xE0 bi\u1EC3u t\u01B0\u1EE3ng camera/scan) \u0111\u1EC3 t\u1EA3i \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'},{text:'"Ch\u1ECDn \u1EA3nh t\u1EEB th\u01B0 vi\u1EC7n" / "T\u1EA3i \u1EA3nh QR" ch\u1ECDn \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'}];return(0,H.jsx)("ul",{className:"grid grid-cols-1 gap-y-6 -ml-3 list-decimal md:hidden",children:e.map((o,t)=>(0,H.jsxs)("li",{className:"flex relative gap-4 items-center",children:[(0,H.jsx)("div",{className:"flex relative z-20 flex-shrink-0 justify-center items-center w-8 h-8 text-sm font-semibold text-gray-700 bg-gray-100 rounded-full",children:t+1}),(0,H.jsxs)("div",{className:"flex flex-1 gap-2 items-start",children:[(0,H.jsx)("p",{className:"text-sm leading-relaxed text-gray-700",children:(0,id.default)(o.text)}),t<e.length-1&&(0,H.jsx)("div",{className:"absolute left-4 top-8 w-px h-12 bg-gray-400 transform -translate-x-1/2"})]})]},t))})},Vf=({isQrForAll:e,shortTitle:o,className:t})=>(0,H.jsxs)("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[(0,H.jsxs)("div",{className:"flex flex-nowrap items-start",children:[(0,H.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,H.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,H.jsxs)("div",{className:"flex-1 pl-4",children:[(0,H.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,H.jsx)("div",{className:"mt-1 text-gray-500",children:e?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,H.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,H.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,H.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,H.jsxs)("div",{className:"flex-1 pl-4",children:[(0,H.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,H.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,H.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,H.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,H.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,H.jsxs)("div",{className:"flex-1 pl-4",children:[(0,H.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,H.jsxs)("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c ",o||"Truy c\u1EADp ngay"]})]})]})]}),Wf=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Vf,{isQrForAll:e,shortTitle:o,className:t}),(0,H.jsx)(Of,{})]}),mi=Wf;var io=require("react/jsx-runtime"),$f=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:r,onOpenChange:n})=>(0,io.jsxs)(Ue,{open:r,onOpenChange:n,children:[(0,io.jsx)(Wo,{asChild:!0,children:e}),(0,io.jsxs)(Be,{position:"bottom",children:[(0,io.jsx)(No,{children:(0,io.jsx)(Po,{children:o})}),(0,io.jsx)(st,{children:(0,io.jsx)(mi,{isQrForAll:t,shortTitle:a})})]})]}),ci=$f;var h=require("react/jsx-runtime"),Gf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,isHideGuidePayment:s})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"qrcode__scan__container relative select-none",children:[t&&(0,h.jsxs)("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[(0,h.jsx)("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"shrink-0 select-none"}),(0,h.jsx)("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"shrink-0 select-none"})]}),(0,h.jsxs)("div",{className:"qrcode__scan select-none",children:[(0,h.jsx)("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:(0,h.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,h.jsx)("div",{className:"qrcode__border invisible select-none opacity-0 md:visible md:opacity-100",children:(0,h.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,h.jsx)("div",{className:"qrcode__image select-none p-4",children:e?(0,h.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy",onLoad:a}):la.default.Children.map(o,l=>(la.default.isValidElement(l),l))})]}),n&&(0,h.jsxs)("div",{className:"text-sm text-gray-900 md:hidden",children:[(0,h.jsx)("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),(0,h.jsx)("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),r&&(0,h.jsxs)("div",{className:i("mt-3 text-sm text-gray-900 md:hidden"),children:[(0,h.jsx)("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),(0,h.jsx)("span",{className:"font-semibold",children:r})]}),(0,h.jsx)("div",{className:"mt-4 hidden text-sm font-semibold text-gray-900 md:block",children:t?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/frame-1-1-251120093929.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),(0,h.jsx)("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):!s&&(0,h.jsxs)("div",{className:"text-xs text-gray-700",children:[(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",(0,h.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),jf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,className:s="",isHideGuidePayment:l})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:i(s),children:(0,h.jsx)(Gf,{dateExpired:r,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,isHideGuidePayment:l,children:o})}),(0,h.jsx)("style",{children:`
|
|
333
333
|
.qrcode__scan__container {
|
|
334
334
|
padding: 15px;
|
|
335
335
|
background-color: white;
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
transform: translate3d(0, 30%, 0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
`})]}),Qf=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:r,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:c,dateExpired:d,priceOrder:p,titleOrder:f,isHideGuidePayment:u})=>{let[b,R]=la.default.useState(void 0);return la.default.useEffect(()=>{a?rd(a).then(R).catch(()=>R(void 0)):R(void 0)},[a]),la.default.useEffect(()=>{t&&b&&typeof s=="function"&&!o&&s()},[t,b,s,o]),(0,h.jsxs)("div",{className:"relative z-[1]",children:[(0,h.jsxs)("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:c,children:[(0,h.jsx)("img",{className:"
|
|
400
|
+
`})]}),Qf=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:r,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:c,dateExpired:d,priceOrder:p,titleOrder:f,isHideGuidePayment:u})=>{let[b,R]=la.default.useState(void 0);return la.default.useEffect(()=>{a?rd(a).then(R).catch(()=>R(void 0)):R(void 0)},[a]),la.default.useEffect(()=>{t&&b&&typeof s=="function"&&!o&&s()},[t,b,s,o]),(0,h.jsxs)("div",{className:"relative z-[1]",children:[(0,h.jsxs)("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:c,children:[(0,h.jsx)("img",{className:"pointer-events-none absolute right-6 top-14 hidden select-none md:flex",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250821154232-638913877527374430.png",alt:"pattern-qr"}),(0,h.jsx)("div",{className:i("mb-2 hidden text-base font-bold text-gray-900 md:block",l&&"opacity-0 md:opacity-100"),children:f||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),l&&(0,h.jsx)("div",{className:"visible absolute left-0 right-0 top-0 z-20 h-full w-full cursor-pointer overflow-hidden opacity-100 md:hidden md:select-none",children:(0,h.jsx)("img",{src:l,alt:"QR Code",className:"absolute left-1/2 top-1/2 max-h-full max-w-none -translate-x-1/2 -translate-y-1/2"})}),(0,h.jsxs)(jf,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:d,priceOrder:p,isHideGuidePayment:u,children:[t&&b&&!o&&(0,h.jsx)(sd.QRCodeSVG,{value:t,size:215,imageSettings:{src:`${b}`,height:40,width:40,excavate:!0},level:"H"}),r&&(0,h.jsx)("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:(0,h.jsx)("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&(0,h.jsx)("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:(0,h.jsx)(zr,{size:"lg"})})]})]}),(0,h.jsxs)("div",{className:"qrcode__guide relative z-10 select-none bg-pink-50 bg-repeat-y px-5 pb-5 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[(0,h.jsxs)("div",{className:i("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[(0,h.jsxs)("div",{className:"ripple size-5 rounded-full",children:[(0,h.jsx)("div",{className:"ripple-1"}),(0,h.jsx)("div",{className:"ripple-2"})]}),(0,h.jsx)("img",{className:"qrcode__hand relative z-10 -mt-1 size-7 select-none object-contain drop-shadow-lg",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),!u&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),(0,h.jsx)(ci,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:(0,h.jsxs)("div",{className:"flex cursor-pointer items-center justify-center space-x-1 text-center text-sm font-semibold text-pink-600",children:[(0,h.jsx)("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",(0,h.jsx)(nd.LucideMessageCircleQuestion,{className:"size-4"})," "]})})]}),(0,h.jsx)("style",{children:`
|
|
401
401
|
.ripple {
|
|
402
402
|
box-sizing: border-box;
|
|
403
403
|
position: relative;
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
transform: scale(1) translateY(0);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
`})]})]})},ld=Qf;var ma=require("react/jsx-runtime"),Uf=["qrcode__gradient","qrcode__guide","qrcode__title"],qf=e=>!Uf.some(o=>e.classList?.contains(o)),cd=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:c,isAIOQR:d=!0,isHideGuidePayment:p=!1})=>{let f=(0,wo.useRef)(null),[u,b]=(0,wo.useState)(null),[R,M]=(0,wo.useState)(!1);return(0,wo.useEffect)(()=>{if(R&&f.current){let T=setTimeout(()=>{f.current&&(0,md.toPng)(f.current,{filter:qf}).then(_=>{b(_)}).catch(_=>{console.error("Error generating QR image:",_)})},2e3);return()=>clearTimeout(T)}},[R,t]),(0,wo.useEffect)(()=>{e&&M(!1)},[e]),(0,ma.jsx)(ma.Fragment,{children:(0,ma.jsx)("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",c),children:(0,ma.jsx)(ld,{isQrForAll:d,qrImage:a,qrLink:t,logoQr:r,expired:o,loading:e,qrCodeRef:f,titleOrder:l,onQrLoaded:()=>{M(!0)},qrImageBase64:u,dateExpired:n,priceOrder:s,isHideGuidePayment:p})})})};var He=require("react/jsx-runtime"),Xf=e=>{switch(e){case"email":return{type:"email",inputMode:"email",autoComplete:"email"};case"phone":return{type:"tel",inputMode:"tel",pattern:"[0-9+\\-\\s\\(\\)]*",autoComplete:"tel"};case"number":return{type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off"};case"password":return{type:"password",autoComplete:"current-password"};case"text":default:return{type:"text",autoComplete:"off"}}},dd=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return(0,He.jsx)(Nr,{placeholder:e.placeholder,value:n||"",onChange:p=>s(p.target.value),onBlur:l,disabled:e.disabled,className:t,maxLength:e.maxLength,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"});case"boolean":let c=n!==void 0?!!n:!!e.defaultChecked;return(0,He.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,He.jsx)(Aa,{checked:c,onCheckedChange:p=>{s(p)},disabled:e.disabled,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"}),e.switchLabel&&(0,He.jsx)("span",{className:"text-sm text-gray-700",children:e.switchLabel})]});default:let d=Xf(e.type);return(0,He.jsx)(kr,{...d,placeholder:e.placeholder,value:n||"",isError:r.error,onChange:p=>{let f=p.target.value;e.type==="number"&&(f=f.replace(/[^0-9]/g,"")),e.type==="phone"&&(f=f.replace(/[^0-9+\-\s()]/g,"")),s(f)},onBlur:l,disabled:e.disabled,className:t,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false",maxLength:e.maxLength})}};return(0,He.jsx)(Or,{control:o,name:e.name,render:({field:r,fieldState:n})=>(0,He.jsxs)(Ba,{className:e.className,children:[e.label&&(0,He.jsxs)(Oa,{htmlFor:e.name,children:[e.label,e.required&&(0,He.jsx)("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),(0,He.jsx)(Va,{children:a({...r,error:n.error})}),e.description&&(0,He.jsx)(Wa,{id:`${e.name}-description`,children:e.description}),(0,He.jsx)($a,{})]})})};var ys=require("react"),fd=require("@hookform/resolvers/zod"),gd=require("react-hook-form");var ca=require("zod"),pd=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=ca.z.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=ca.z.string().regex(/^[a-zA-ZÀ-ỹ0-9\s\-_.]*$/,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t`);break;case"boolean":a=ca.z.boolean();break;case"phone":case"number":case"password":case"textarea":default:a=ca.z.string()}t.type==="boolean"?t.required&&(a=a.refine(r=>r===!0,{message:`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`})):(t.required&&(a=a.min(1,`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`)),t.minLength&&t.minLength>0&&(a=a.min(t.minLength,`${t.label||t.name} ph\u1EA3i c\xF3 \xEDt nh\u1EA5t ${t.minLength} k\xFD t\u1EF1`)),t.maxLength&&t.maxLength>0&&(a=a.max(t.maxLength,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 ${t.maxLength} k\xFD t\u1EF1`)),t.type==="phone"&&t.required&&(a=a.min(10,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`).max(15,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.pattern&&(a=a.regex(t.pattern,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.customValidation&&(a=a.refine(t.customValidation,{message:"Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7"})),t.required||(a=a.optional())),o[t.name]=a}),ca.z.object(o)};var ud=e=>{let o=(0,ys.useMemo)(()=>pd(e),[e]),t=(0,ys.useMemo)(()=>{let r={};return e.forEach(n=>{switch(n.type){case"boolean":n.value!==void 0?r[n.name]=!!n.value:r[n.name]=!!n.defaultChecked;break;default:n.value!==void 0?r[n.name]=n.value:r[n.name]=""}}),r},[e]),a=(0,gd.useForm)({resolver:(0,fd.zodResolver)(o),defaultValues:t,mode:"onSubmit"});return{form:a,formData:a.watch(),errors:a.formState.errors,isValid:a.formState.isValid,isSubmitting:a.formState.isSubmitting,reset:a.reset,setValue:a.setValue,trigger:a.trigger}};var me=require("react/jsx-runtime"),Yf=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,Zf=({dataHeading:e,dataMedia:o,captchaComponent:t,onSubmit:a,fieldsSchema:r,loading:n=!1,onFieldChange:s,onValidationError:l,dataButtons:c,classNameMedia:d,classNameFormLead:p,classNameWrapper:f,classNameCaptcha:u})=>{let{form:b,errors:R,reset:M}=ud(r),T=async K=>{try{s&&Object.entries(K).forEach(([V,rt])=>{s(V,rt)}),a&&await a(K,M)}catch(V){if(console.error("Form submission error:",V),l){let rt={};Object.entries(R).forEach(([it,Ua])=>{rt[it]={message:Ua?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(rt)}}},_=()=>{b?.handleSubmit(T)()},Z=()=>{let K=(c?.buttons||[]).map((V,rt)=>{let it=V?.variant==="primary";return rt===0||it?{...V,action:_,isLoading:n,isDisabled:n}:V});return{...c,buttons:K}},U=()=>"space-y-4",$t=()=>(0,me.jsx)(me.Fragment,{children:o&&(0,me.jsx)(q,{className:i("mb-6 shrink-0",d),ratio:Yf(o?.ratio),children:(0,me.jsx)("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})}),k=()=>(0,me.jsxs)("div",{className:i("shadow-small bg-white p-8",p),children:[e&&(0,me.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h2",align:e?.align||"center",sizeHeading:e?.sizeHeading||"small",colorScheme:e?.colorScheme||"black",className:"mb-6"}),r?.length>0&&r&&(0,me.jsx)(Br,{...b,children:(0,me.jsxs)("form",{onSubmit:b.handleSubmit(T),className:"space-y-6",children:[(0,me.jsx)("div",{className:U(),children:r?.map(K=>(0,me.jsx)(dd,{field:K,control:b.control},K.name))}),t&&(0,me.jsx)("div",{className:i("flex",u),children:t}),c&&(0,me.jsx)(N,{...Z()})]})})]});return(0,me.jsx)(me.Fragment,{children:(0,me.jsxs)("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",f),children:[o&&(0,me.jsx)("div",{className:"shrink-0",children:$t()}),(0,me.jsx)("div",{className:"relative mx-auto max-w-xl overflow-hidden rounded-lg",children:k()})]})})},vd=({idSection:e,background:o,className:t,...a})=>(0,me.jsx)(Y,{className:t,idSection:e,background:o,children:(0,me.jsx)(Zf,{...a})});var Fd=v(require("color"),1),zd=v(require("tailwindcss/plugin.js"),1);var hd={animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out","spin-loading":"spin 1s steps(12, end) infinite","fade-in":"fade-in 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}},"fade-in":{"0%":{opacity:"0"},"100%":{opacity:"1"}}}};var xd={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var bd={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var yd={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var wd={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Nd={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Pd={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Cd={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Rd={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Td={white:"#ffffff",black:"#000000",blue:xd,green:bd,pink:yd,purple:wd,red:Nd,yellow:Pd,gray:Rd,orange:Cd};var ws={...Td};var kd={"disabled-opacity":.5,"box-shadow":{small:"0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",medium:"0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",large:"0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"},radius:{none:"0px",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"font-size":{xxs:"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},"line-height":{xxs:"1rem",xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"1","6xl":"1","7xl":"1","8xl":"1","9xl":"1"}};var Wt="250ms",Sd={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Wt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Wt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Wt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Wt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Wt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-colors-opacity":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Wt}};var Dd={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"}};var Md={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}};var Id={...Dd,...Sd,...Md};var Ad=require("flat");function Kf(e){let o={};for(let t in e){if(t.endsWith("-DEFAULT")){o[t.replace("-DEFAULT","")]=e[t];continue}o[t]=e[t]}return o}var Ld=e=>Kf((0,Ad.flatten)(e,{safe:!0,delimiter:"-"}));var Jf=e=>{let o={utilities:{},colors:{}},t=Ld(ws),a=kd,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,c,d]=(0,Fd.default)(s).rgb().array(),p=`--${e}-${n}`;o.utilities[r][p]=`${l} ${c} ${d}`,o.colors[n]=`rgb(var(${p}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,d])=>{let p=`${l}-${c}`;o.utilities[r][p]=d});else{let c=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][l]=c}}),o},Ed=()=>{let e="mobase",o=Jf(e);return(0,zd.default)(({addBase:t,addUtilities:a,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Id})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},extend:{fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"],mono:["SFMono-Regular","Consolas","Liberation Mono","Menlo","monospace"]},colors:{...ws,...o?.colors,border:"rgba(var(--border))"},boxShadow:{small:`var(--${e}-box-shadow-small)`,medium:`var(--${e}-box-shadow-medium)`,large:`var(--${e}-box-shadow-large)`},borderRadius:{none:`var(--${e}-radius-none)`,sm:`var(--${e}-radius-sm)`,DEFAULT:`var(--${e}-radius-default)`,md:`var(--${e}-radius-md)`,lg:`var(--${e}-radius-lg)`,xl:`var(--${e}-radius-xl)`,"2xl":`var(--${e}-radius-2xl)`,"3xl":`var(--${e}-radius-3xl)`,full:`var(--${e}-radius-full)`},fontSize:{xxs:[`var(--${e}-font-size-xxs)`,`var(--${e}-line-height-xxs)`],xs:[`var(--${e}-font-size-xs)`,`var(--${e}-line-height-xs)`],sm:[`var(--${e}-font-size-sm)`,`var(--${e}-line-height-sm)`],base:[`var(--${e}-font-size-base)`,`var(--${e}-line-height-base)`],lg:[`var(--${e}-font-size-lg)`,`var(--${e}-line-height-lg)`],xl:[`var(--${e}-font-size-xl)`,`var(--${e}-line-height-xl)`],"2xl":[`var(--${e}-font-size-2xl)`,`var(--${e}-line-height-2xl)`],"3xl":[`var(--${e}-font-size-3xl)`,`var(--${e}-line-height-3xl)`],"4xl":[`var(--${e}-font-size-4xl)`,`var(--${e}-line-height-4xl)`],"5xl":[`var(--${e}-font-size-5xl)`,`var(--${e}-line-height-5xl)`],"6xl":[`var(--${e}-font-size-6xl)`,`var(--${e}-line-height-6xl)`],"7xl":[`var(--${e}-font-size-7xl)`,`var(--${e}-line-height-7xl)`],"8xl":[`var(--${e}-font-size-8xl)`,`var(--${e}-line-height-8xl)`],"9xl":[`var(--${e}-font-size-9xl)`,`var(--${e}-line-height-9xl)`]},zIndex:{negative:`var(--${e}-z-index-negative)`,workbench:`var(--${e}-z-index-workbench)`,default:`var(--${e}-z-index-default)`,"workbench-header":`var(--${e}-z-index-workbench-header)`,modal:`var(--${e}-z-index-modal)`,"modal-content":`var(--${e}-z-index-modal-content)`,dropdown:`var(--${e}-z-index-dropdown)`,tooltip:`var(--${e}-z-index-tooltip)`,notification:`var(--${e}-z-index-notification)`},...hd}}})};var L=require("react/jsx-runtime"),Hd=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("meta",{name:"abstract",content:"V\xED \u0111i\u1EC7n t\u1EED MoMo - Si\xEAu \u1EE9ng d\u1EE5ng thanh to\xE1n s\u1ED1 1 Vi\u1EC7t Nam"}),(0,L.jsx)("meta",{name:"distribution",content:"Global"}),(0,L.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,L.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,L.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,L.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,L.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,L.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,L.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,L.jsx)("meta",{name:"language",content:"vietnamese"}),(0,L.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,L.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,L.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,L.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,L.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
456
|
+
`})]})]})},ld=Qf;var ma=require("react/jsx-runtime"),Uf="https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",qf=["qrcode__gradient","qrcode__guide","qrcode__title"],Xf=e=>!qf.some(o=>e.classList?.contains(o)),cd=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:c,isAIOQR:d=!0,isHideGuidePayment:p=!1})=>{let f=(0,wo.useRef)(null),[u,b]=(0,wo.useState)(null),[R,M]=(0,wo.useState)(!1);return(0,wo.useEffect)(()=>{if(R&&f.current){let T=setTimeout(()=>{f.current&&(0,md.toPng)(f.current,{filter:Xf}).then(_=>{b(_)}).catch(_=>{console.error("Error generating QR image:",_)})},2e3);return()=>clearTimeout(T)}},[R,t]),(0,wo.useEffect)(()=>{e&&M(!1)},[e]),(0,ma.jsx)(ma.Fragment,{children:(0,ma.jsx)("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",c),children:(0,ma.jsx)(ld,{isQrForAll:d,qrImage:a,qrLink:t,logoQr:d?r:Uf,expired:o,loading:e,qrCodeRef:f,titleOrder:l,onQrLoaded:()=>{M(!0)},qrImageBase64:u,dateExpired:n,priceOrder:s,isHideGuidePayment:p})})})};var He=require("react/jsx-runtime"),Yf=e=>{switch(e){case"email":return{type:"email",inputMode:"email",autoComplete:"email"};case"phone":return{type:"tel",inputMode:"tel",pattern:"[0-9+\\-\\s\\(\\)]*",autoComplete:"tel"};case"number":return{type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off"};case"password":return{type:"password",autoComplete:"current-password"};case"text":default:return{type:"text",autoComplete:"off"}}},dd=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return(0,He.jsx)(Nr,{placeholder:e.placeholder,value:n||"",onChange:p=>s(p.target.value),onBlur:l,disabled:e.disabled,className:t,maxLength:e.maxLength,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"});case"boolean":let c=n!==void 0?!!n:!!e.defaultChecked;return(0,He.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,He.jsx)(Aa,{checked:c,onCheckedChange:p=>{s(p)},disabled:e.disabled,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"}),e.switchLabel&&(0,He.jsx)("span",{className:"text-sm text-gray-700",children:e.switchLabel})]});default:let d=Yf(e.type);return(0,He.jsx)(kr,{...d,placeholder:e.placeholder,value:n||"",isError:r.error,onChange:p=>{let f=p.target.value;e.type==="number"&&(f=f.replace(/[^0-9]/g,"")),e.type==="phone"&&(f=f.replace(/[^0-9+\-\s()]/g,"")),s(f)},onBlur:l,disabled:e.disabled,className:t,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false",maxLength:e.maxLength})}};return(0,He.jsx)(Or,{control:o,name:e.name,render:({field:r,fieldState:n})=>(0,He.jsxs)(Ba,{className:e.className,children:[e.label&&(0,He.jsxs)(Oa,{htmlFor:e.name,children:[e.label,e.required&&(0,He.jsx)("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),(0,He.jsx)(Va,{children:a({...r,error:n.error})}),e.description&&(0,He.jsx)(Wa,{id:`${e.name}-description`,children:e.description}),(0,He.jsx)($a,{})]})})};var ys=require("react"),fd=require("@hookform/resolvers/zod"),gd=require("react-hook-form");var ca=require("zod"),pd=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=ca.z.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=ca.z.string().regex(/^[a-zA-ZÀ-ỹ0-9\s\-_.]*$/,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t`);break;case"boolean":a=ca.z.boolean();break;case"phone":case"number":case"password":case"textarea":default:a=ca.z.string()}t.type==="boolean"?t.required&&(a=a.refine(r=>r===!0,{message:`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`})):(t.required&&(a=a.min(1,`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`)),t.minLength&&t.minLength>0&&(a=a.min(t.minLength,`${t.label||t.name} ph\u1EA3i c\xF3 \xEDt nh\u1EA5t ${t.minLength} k\xFD t\u1EF1`)),t.maxLength&&t.maxLength>0&&(a=a.max(t.maxLength,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 ${t.maxLength} k\xFD t\u1EF1`)),t.type==="phone"&&t.required&&(a=a.min(10,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`).max(15,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.pattern&&(a=a.regex(t.pattern,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.customValidation&&(a=a.refine(t.customValidation,{message:"Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7"})),t.required||(a=a.optional())),o[t.name]=a}),ca.z.object(o)};var ud=e=>{let o=(0,ys.useMemo)(()=>pd(e),[e]),t=(0,ys.useMemo)(()=>{let r={};return e.forEach(n=>{switch(n.type){case"boolean":n.value!==void 0?r[n.name]=!!n.value:r[n.name]=!!n.defaultChecked;break;default:n.value!==void 0?r[n.name]=n.value:r[n.name]=""}}),r},[e]),a=(0,gd.useForm)({resolver:(0,fd.zodResolver)(o),defaultValues:t,mode:"onSubmit"});return{form:a,formData:a.watch(),errors:a.formState.errors,isValid:a.formState.isValid,isSubmitting:a.formState.isSubmitting,reset:a.reset,setValue:a.setValue,trigger:a.trigger}};var me=require("react/jsx-runtime"),Zf=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,Kf=({dataHeading:e,dataMedia:o,captchaComponent:t,onSubmit:a,fieldsSchema:r,loading:n=!1,onFieldChange:s,onValidationError:l,dataButtons:c,classNameMedia:d,classNameFormLead:p,classNameWrapper:f,classNameCaptcha:u})=>{let{form:b,errors:R,reset:M}=ud(r),T=async K=>{try{s&&Object.entries(K).forEach(([V,rt])=>{s(V,rt)}),a&&await a(K,M)}catch(V){if(console.error("Form submission error:",V),l){let rt={};Object.entries(R).forEach(([it,Ua])=>{rt[it]={message:Ua?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(rt)}}},_=()=>{b?.handleSubmit(T)()},Z=()=>{let K=(c?.buttons||[]).map((V,rt)=>{let it=V?.variant==="primary";return rt===0||it?{...V,action:_,isLoading:n,isDisabled:n}:V});return{...c,buttons:K}},U=()=>"space-y-4",$t=()=>(0,me.jsx)(me.Fragment,{children:o&&(0,me.jsx)(q,{className:i("mb-6 shrink-0",d),ratio:Zf(o?.ratio),children:(0,me.jsx)("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})}),k=()=>(0,me.jsxs)("div",{className:i("shadow-small bg-white p-8",p),children:[e&&(0,me.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h2",align:e?.align||"center",sizeHeading:e?.sizeHeading||"small",colorScheme:e?.colorScheme||"black",className:"mb-6"}),r?.length>0&&r&&(0,me.jsx)(Br,{...b,children:(0,me.jsxs)("form",{onSubmit:b.handleSubmit(T),className:"space-y-6",children:[(0,me.jsx)("div",{className:U(),children:r?.map(K=>(0,me.jsx)(dd,{field:K,control:b.control},K.name))}),t&&(0,me.jsx)("div",{className:i("flex",u),children:t}),c&&(0,me.jsx)(N,{...Z()})]})})]});return(0,me.jsx)(me.Fragment,{children:(0,me.jsxs)("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",f),children:[o&&(0,me.jsx)("div",{className:"shrink-0",children:$t()}),(0,me.jsx)("div",{className:"relative mx-auto max-w-xl overflow-hidden rounded-lg",children:k()})]})})},vd=({idSection:e,background:o,className:t,...a})=>(0,me.jsx)(Y,{className:t,idSection:e,background:o,children:(0,me.jsx)(Kf,{...a})});var Fd=v(require("color"),1),zd=v(require("tailwindcss/plugin.js"),1);var hd={animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out","spin-loading":"spin 1s steps(12, end) infinite","fade-in":"fade-in 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}},"fade-in":{"0%":{opacity:"0"},"100%":{opacity:"1"}}}};var xd={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var bd={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var yd={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var wd={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Nd={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Pd={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Cd={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Rd={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Td={white:"#ffffff",black:"#000000",blue:xd,green:bd,pink:yd,purple:wd,red:Nd,yellow:Pd,gray:Rd,orange:Cd};var ws={...Td};var kd={"disabled-opacity":.5,"box-shadow":{small:"0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",medium:"0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",large:"0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"},radius:{none:"0px",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"font-size":{xxs:"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},"line-height":{xxs:"1rem",xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"1","6xl":"1","7xl":"1","8xl":"1","9xl":"1"}};var Wt="250ms",Sd={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Wt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Wt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Wt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Wt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Wt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Wt},".transition-transform-colors-opacity":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Wt}};var Dd={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"}};var Md={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}};var Id={...Dd,...Sd,...Md};var Ad=require("flat");function Jf(e){let o={};for(let t in e){if(t.endsWith("-DEFAULT")){o[t.replace("-DEFAULT","")]=e[t];continue}o[t]=e[t]}return o}var Ld=e=>Jf((0,Ad.flatten)(e,{safe:!0,delimiter:"-"}));var eg=e=>{let o={utilities:{},colors:{}},t=Ld(ws),a=kd,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,c,d]=(0,Fd.default)(s).rgb().array(),p=`--${e}-${n}`;o.utilities[r][p]=`${l} ${c} ${d}`,o.colors[n]=`rgb(var(${p}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,d])=>{let p=`${l}-${c}`;o.utilities[r][p]=d});else{let c=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][l]=c}}),o},Ed=()=>{let e="mobase",o=eg(e);return(0,zd.default)(({addBase:t,addUtilities:a,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Id})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},extend:{fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"],mono:["SFMono-Regular","Consolas","Liberation Mono","Menlo","monospace"]},colors:{...ws,...o?.colors,border:"rgba(var(--border))"},boxShadow:{small:`var(--${e}-box-shadow-small)`,medium:`var(--${e}-box-shadow-medium)`,large:`var(--${e}-box-shadow-large)`},borderRadius:{none:`var(--${e}-radius-none)`,sm:`var(--${e}-radius-sm)`,DEFAULT:`var(--${e}-radius-default)`,md:`var(--${e}-radius-md)`,lg:`var(--${e}-radius-lg)`,xl:`var(--${e}-radius-xl)`,"2xl":`var(--${e}-radius-2xl)`,"3xl":`var(--${e}-radius-3xl)`,full:`var(--${e}-radius-full)`},fontSize:{xxs:[`var(--${e}-font-size-xxs)`,`var(--${e}-line-height-xxs)`],xs:[`var(--${e}-font-size-xs)`,`var(--${e}-line-height-xs)`],sm:[`var(--${e}-font-size-sm)`,`var(--${e}-line-height-sm)`],base:[`var(--${e}-font-size-base)`,`var(--${e}-line-height-base)`],lg:[`var(--${e}-font-size-lg)`,`var(--${e}-line-height-lg)`],xl:[`var(--${e}-font-size-xl)`,`var(--${e}-line-height-xl)`],"2xl":[`var(--${e}-font-size-2xl)`,`var(--${e}-line-height-2xl)`],"3xl":[`var(--${e}-font-size-3xl)`,`var(--${e}-line-height-3xl)`],"4xl":[`var(--${e}-font-size-4xl)`,`var(--${e}-line-height-4xl)`],"5xl":[`var(--${e}-font-size-5xl)`,`var(--${e}-line-height-5xl)`],"6xl":[`var(--${e}-font-size-6xl)`,`var(--${e}-line-height-6xl)`],"7xl":[`var(--${e}-font-size-7xl)`,`var(--${e}-line-height-7xl)`],"8xl":[`var(--${e}-font-size-8xl)`,`var(--${e}-line-height-8xl)`],"9xl":[`var(--${e}-font-size-9xl)`,`var(--${e}-line-height-9xl)`]},zIndex:{negative:`var(--${e}-z-index-negative)`,workbench:`var(--${e}-z-index-workbench)`,default:`var(--${e}-z-index-default)`,"workbench-header":`var(--${e}-z-index-workbench-header)`,modal:`var(--${e}-z-index-modal)`,"modal-content":`var(--${e}-z-index-modal-content)`,dropdown:`var(--${e}-z-index-dropdown)`,tooltip:`var(--${e}-z-index-tooltip)`,notification:`var(--${e}-z-index-notification)`},...hd}}})};var L=require("react/jsx-runtime"),Hd=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("meta",{name:"abstract",content:"V\xED \u0111i\u1EC7n t\u1EED MoMo - Si\xEAu \u1EE9ng d\u1EE5ng thanh to\xE1n s\u1ED1 1 Vi\u1EC7t Nam"}),(0,L.jsx)("meta",{name:"distribution",content:"Global"}),(0,L.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,L.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,L.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,L.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,L.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,L.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,L.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,L.jsx)("meta",{name:"language",content:"vietnamese"}),(0,L.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,L.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,L.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,L.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,L.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,L.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,L.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
457
457
|
"@context": "https://schema.org/",
|
|
458
458
|
"@type": "WebSite",
|
|
459
459
|
"@id":"https://www.momo.vn/#website",
|