@momo-webplatform/mobase 1.0.7 → 1.0.8

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/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/solid";import*as Ae from"@radix-ui/react-accordion";import*as Nr from"react";import{createMedia as vm}from"@artsy/fresnel";import hm from"html-react-parser";import{twMerge as xm}from"tailwind-merge";var pt={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 wr={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 _o=[{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"}],ni=[{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 fe={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};function r(...e){return xm(e)}var Pr=vm({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),E0=Pr.createMediaStyle(),{Media:Xe,MediaContextProvider:fo}=Pr,u=e=>e?Nr.isValidElement(e)||typeof e=="object"&&"$typeof"in e?e:typeof e=="string"?hm(e):e:null;import{jsx as uo,jsxs as ym}from"react/jsx-runtime";var ft=Fo.forwardRef(({className:e,...o},t)=>uo(Ae.Root,{ref:t,...o}));ft.displayName="AccordionRoot";var ut=Fo.forwardRef(({className:e,...o},t)=>uo(Ae.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));ut.displayName="AccordionItem";var gt=Fo.forwardRef(({className:e,children:o,...t},a)=>uo(Ae.Header,{className:"flex",children:ym(Ae.Trigger,{ref:a,className:r("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,uo(bm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));gt.displayName=Ae.Trigger.displayName;var vt=Fo.forwardRef(({className:e,children:o,...t},a)=>uo(Ae.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:uo("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));vt.displayName=Ae.Content.displayName;import*as Cr from"react";import{Slot as Pm}from"@radix-ui/react-slot";import{cva as Cm}from"class-variance-authority";import{jsx as Le,jsxs as Nm}from"react/jsx-runtime";var wm=({className:e})=>Nm("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"})]}),go=wm;import{Fragment as Rm,jsx as si,jsxs as km}from"react/jsx-runtime";var Ye=Cm("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"}}),we=Cr.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let m=a?Pm:"button",c=r(Ye({variant:o,size:t,className:e}),{"cursor-wait":i});return si(Rm,{children:a?si(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):km(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[i&&si(go,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});we.displayName="Button";import{QRCodeSVG as Sm}from"qrcode.react";import*as Bo from"react";import{XMarkIcon as Tm}from"@heroicons/react/16/solid";import*as X from"@radix-ui/react-dialog";import{jsx as ht,jsxs as li}from"react/jsx-runtime";var Re=X.Root,Oo=X.Trigger,kr=X.Portal,mi=X.Close,ci=Bo.forwardRef(({className:e,...o},t)=>ht(X.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));ci.displayName=X.Overlay.displayName;var Ne=Bo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...m},c)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},p={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},g={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},h=[d.base,d[i],p[a],g[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 li(kr,{children:[ht(ci,{}),li(X.Content,{ref:c,className:r(...h),...m,children:[l,!t&&li(X.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[ht(Tm,{className:"h-5 w-5 text-gray-700"}),ht("span",{className:"sr-only",children:"Close"})]})]})]})});Ne.displayName=X.Content.displayName;var At=({className:e,...o})=>ht("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});At.displayName="DialogHeader";var ze=({className:e,isCondensed:o=!1,...t})=>ht("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});ze.displayName="DialogBody";var xa=({className:e,isDivider:o=!0,...t})=>ht("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});xa.displayName="DialogFooter";var Lt=Bo.forwardRef(({className:e,...o},t)=>ht(X.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Lt.displayName=X.Title.displayName;var Rr=Bo.forwardRef(({className:e,...o},t)=>ht(X.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));Rr.displayName=X.Description.displayName;import{Fragment as di,jsx as M,jsxs as ue}from"react/jsx-runtime";var Dm=({img:e="",children:o,isQrForAll:t})=>ue(di,{children:[M("div",{className:"qrcode__scan__container",children:ue("div",{className:"qrcode__scan",children:[M("div",{className:"qrcode__gradient",children:M("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),M("div",{className:"qrcode__border",children:M("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),M("div",{className:"p-4 qrcode__image",children:e?M("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),M("div",{className:"mt-4 text-sm text-white",children:t?ue(di,{children:[M("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),M("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"})]}):ue(di,{children:[M("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:M("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",M("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),M("style",{children:`
1
+ import*as Vo from"react";import{ChevronDownIcon as wm}from"@heroicons/react/20/solid";import*as Ae from"@radix-ui/react-accordion";import*as go from"react";import{createMedia as xm}from"@artsy/fresnel";import bm from"html-react-parser";import{twMerge as ym}from"tailwind-merge";var ft={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var Nr={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var Oo=[{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"}],si=[{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 fe={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};function r(...e){return ym(e)}var Pr=xm({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),_0=Pr.createMediaStyle(),{Media:Ye,MediaContextProvider:vo}=Pr,u=e=>e?go.isValidElement(e)||typeof e=="object"&&"$typeof"in e?e:typeof e=="string"?bm(e):e:null,Cr=()=>{let[e,o]=go.useState(!1);return go.useEffect(()=>(o(/MOMOAPP/i.test(navigator.userAgent)),()=>{o(!1)}),[]),e};import{jsx as ho,jsxs as Nm}from"react/jsx-runtime";var ut=Vo.forwardRef(({className:e,...o},t)=>ho(Ae.Root,{ref:t,...o}));ut.displayName="AccordionRoot";var gt=Vo.forwardRef(({className:e,...o},t)=>ho(Ae.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));gt.displayName="AccordionItem";var vt=Vo.forwardRef(({className:e,children:o,...t},a)=>ho(Ae.Header,{className:"flex",children:Nm(Ae.Trigger,{ref:a,className:r("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,ho(wm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));vt.displayName=Ae.Trigger.displayName;var ht=Vo.forwardRef(({className:e,children:o,...t},a)=>ho(Ae.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:ho("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));ht.displayName=Ae.Content.displayName;import{useState as Fm}from"react";import{Slot as Sr}from"@radix-ui/react-slot";import*as kr from"react";import{Slot as km}from"@radix-ui/react-slot";import{cva as Rm}from"class-variance-authority";import{jsx as Le,jsxs as Cm}from"react/jsx-runtime";var Pm=({className:e})=>Cm("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"})]}),xo=Pm;import{Fragment as Sm,jsx as li,jsxs as Tm}from"react/jsx-runtime";var Ze=Rm("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"}}),we=kr.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let m=a?km:"button",c=r(Ze({variant:o,size:t,className:e}),{"cursor-wait":i});return li(Sm,{children:a?li(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):Tm(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[i&&li(xo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});we.displayName="Button";import{QRCodeSVG as Mm}from"qrcode.react";import*as Go from"react";import{XMarkIcon as Dm}from"@heroicons/react/16/solid";import*as Y from"@radix-ui/react-dialog";import{jsx as xt,jsxs as mi}from"react/jsx-runtime";var Re=Y.Root,Wo=Y.Trigger,Rr=Y.Portal,ci=Y.Close,di=Go.forwardRef(({className:e,...o},t)=>xt(Y.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));di.displayName=Y.Overlay.displayName;var Ne=Go.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...m},c)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},p={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},g={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},x=[d.base,d[i],p[a],g[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 mi(Rr,{children:[xt(di,{}),mi(Y.Content,{ref:c,className:r(...x),...m,children:[l,!t&&mi(Y.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[xt(Dm,{className:"h-5 w-5 text-gray-700"}),xt("span",{className:"sr-only",children:"Close"})]})]})]})});Ne.displayName=Y.Content.displayName;var Lt=({className:e,...o})=>xt("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});Lt.displayName="DialogHeader";var ze=({className:e,isCondensed:o=!1,...t})=>xt("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});ze.displayName="DialogBody";var ya=({className:e,isDivider:o=!0,...t})=>xt("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});ya.displayName="DialogFooter";var zt=Go.forwardRef(({className:e,...o},t)=>xt(Y.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));zt.displayName=Y.Title.displayName;var Tr=Go.forwardRef(({className:e,...o},t)=>xt(Y.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));Tr.displayName=Y.Description.displayName;import{Fragment as pi,jsx as M,jsxs as ue}from"react/jsx-runtime";var Im=({img:e="",children:o,isQrForAll:t})=>ue(pi,{children:[M("div",{className:"qrcode__scan__container",children:ue("div",{className:"qrcode__scan",children:[M("div",{className:"qrcode__gradient",children:M("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),M("div",{className:"qrcode__border",children:M("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),M("div",{className:"p-4 qrcode__image",children:e?M("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),M("div",{className:"mt-4 text-sm text-white",children:t?ue(pi,{children:[M("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),M("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"})]}):ue(pi,{children:[M("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:M("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",M("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),M("style",{children:`
2
2
  .qrcode__scan__container {
3
3
  padding: 15px;
4
4
  background-color: white;
@@ -67,7 +67,7 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),Xt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>M(Re,{...m,children:M(Ne,{className:r("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:M(ze,{className:"p-0",children:ue("div",{className:"flex flex-row flex-wrap",children:[M("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||ue("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[ue("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),ue("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),M("div",{className:"mt-1 text-gray-500",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),ue("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),ue("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),M("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),ue("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),ue("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),ue("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),M("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:ue("div",{className:"px-5 py-10 text-center",children:[t&&M("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),ue("div",{className:"relative",children:[l&&M("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:M("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),M(Dm,{img:i,isQrForAll:l,children:n&&M(Sm,{value:n,size:215,imageSettings:{src:`${s||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});import{useState as Hm}from"react";import{useEffect as Mm,useLayoutEffect as Im,useState as Am}from"react";import Lm from"ua-parser-js";var zm=()=>Lm().device.type==="mobile",Em=typeof window<"u"?Im:Mm,vo=()=>{let[e,o]=Am(!1);return Em(()=>{o(zm())},[]),e};import{Fragment as _m,jsx as ba,jsxs as Fm}from"react/jsx-runtime";var Ge=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,m]=Hm(!1),c=vo(),d=!!a?.qrLink,p=()=>{let z=d?a?.qrLink:e;return typeof z=="string"?z.trim():""},g=()=>{let z=p();!z&&typeof e!="function"||(typeof e=="function"?e():window.open(z,o?"_blank":"_self"))},h=(z,W=0)=>{let _=document.querySelector(z);if(!_)return;let k=_.getBoundingClientRect().top+window.scrollY-W;window.scrollTo({top:k,behavior:"smooth"})},w=()=>{typeof e=="string"&&e.startsWith("#")?h(e,t):g()},T=()=>Fm(_m,{children:[ba(we,{...s,className:i,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),ba(Xt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?T():ba(we,{...s,className:i,onClick:g,"data-name":"button-action-with-qr",children:n}):T():ba(we,{...s,onClick:w,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as ho from"react";import{ChevronRightIcon as Bm,DotsHorizontalIcon as Om}from"@radix-ui/react-icons";import{Slot as Vm}from"@radix-ui/react-slot";import{jsx as xt,jsxs as Gm}from"react/jsx-runtime";var Tr=ho.forwardRef(({className:e,...o},t)=>xt("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Tr.displayName="Breadcrumb";var Sr=ho.forwardRef(({className:e,...o},t)=>xt("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Sr.displayName="BreadcrumbList";var Dr=ho.forwardRef(({className:e,...o},t)=>xt("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Dr.displayName="BreadcrumbItem";var Mr=ho.forwardRef(({asChild:e,className:o,...t},a)=>xt(e?Vm:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Mr.displayName="BreadcrumbLink";var Ir=ho.forwardRef(({className:e,...o},t)=>xt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Ir.displayName="BreadcrumbPage";var Ar=({children:e,className:o,...t})=>xt("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??xt(Bm,{className:"w-2 h-2"})});Ar.displayName="BreadcrumbSeparator";var Lr=({className:e,...o})=>Gm("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[xt(Om,{className:"w-4 h-4 text-gray-900"}),xt("span",{className:"sr-only",children:"More"})]});Lr.displayName="BreadcrumbElipssis";import{createContext as Wm,useContext as zr}from"react";import{jsx as Vo}from"react/jsx-runtime";var pi=Wm({align:"center"}),fi=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return Vo("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},ui=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:c}=zr(pi);return Vo(s,{className:r("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",i),children:n})},gi=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:c}=zr(pi);return Vo("div",{className:r(c==="center"?"mx-auto max-w-2xl":c==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",i),children:n})},vi=({className:e,align:o="center",children:t})=>Vo("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Vo(pi.Provider,{value:{align:o},children:t})});import{jsx as Yt,jsxs as $m}from"react/jsx-runtime";var B=({idSection:e,className:o,background:t,children:a})=>Yt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Yt("div",{className:"wrapper relative",children:a})}),x=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",c=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:$m(vi,{align:e,className:l,children:[o&&Yt(fi,{color:m,children:o}),t&&Yt(ui,{tagHeading:i,color:c,size:s,children:u(t)}),a&&Yt(gi,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:u(a)})]})},b=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Yt("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{if(!i)return null;let{btnName:s,...l}=i;return Yt(Ge,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:u(s)},n)})});import rc,{memo as nc}from"react";import{ArrowDownIcon as sc}from"@heroicons/react/20/solid";import{createContext as qm,useCallback as Xm,useContext as hi,useEffect as Ym,useRef as Zm,useState as Km}from"react";import{ChevronLeft as Jm,ChevronRight as ec}from"lucide-react";import*as Er from"react";import{Slot as jm}from"@radix-ui/react-slot";import{cva as Qm}from"class-variance-authority";import{jsx as Um}from"react/jsx-runtime";var Zt=Qm("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),se=Er.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?jm:"button",m=r(Zt({variant:o,size:t,className:e}));return Um(l,{className:m,disabled:i,ref:s,...n,children:n.children})});se.displayName="IconButton";import{Fragment as tc,jsx as zt,jsxs as Hr}from"react/jsx-runtime";var ya=qm(void 0),bt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=Zm(null),[n,s]=Km({left:!1,right:!1}),l=Xm(()=>{let c=i.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);Ym(()=>{let c=i.current;if(c)return l(),window.addEventListener("resize",l),c.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),c.removeEventListener("scroll",l)}},[l]);let m=c=>{let d=i.current;if(d){let{scrollLeft:p,clientWidth:g,scrollWidth:h}=d,w=g*.7*(c==="left"?-1:1),T=p+w;T<0?T=0:T>h-g&&(T=h-g),d.scrollTo({left:T,behavior:"smooth"})}};return zt(ya.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:m,gradientOverlayColor:o},children:Hr("div",{className:r("relative w-full",t),children:[e&&Hr(tc,{children:[n.left&&zt("div",{className:"pointer-events-none absolute left-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&zt("div",{className:"pointer-events-none absolute right-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},yt=({className:e,children:o})=>{let t=hi(ya);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return zt("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},wt=({className:e,children:o,...t})=>{let a=hi(ya);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?zt(se,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||zt(Jm,{className:"h-4 w-4"})}):null},Nt=({className:e,children:o,...t})=>{let a=hi(ya);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?zt(se,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||zt(ec,{className:"h-4 w-4"})}):null};import*as wa from"react";import*as We from"@radix-ui/react-tabs";import{jsx as xi}from"react/jsx-runtime";var Pt=We.Root,Ze=wa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>xi(We.List,{ref:i,className:r("inline-flex w-full flex-row items-center space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Ze.displayName=We.List.displayName;var Ke=wa.forwardRef(({className:e,...o},t)=>xi(We.Trigger,{ref:t,className:r("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap border-b-2 border-transparent py-3 font-semibold text-gray-900 transition-all hover:text-pink-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-pink-500 data-[state=active]:text-pink-500",e),...o}));Ke.displayName=We.Trigger.displayName;var Je=wa.forwardRef(({className:e,...o},t)=>xi(We.Content,{ref:t,className:r("ring-offset-background focus-visible:ring-ring mt-3 text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e),...o}));Je.displayName=We.Content.displayName;import*as _r from"react";import{Slot as oc}from"@radix-ui/react-slot";import{cva as ac}from"class-variance-authority";import{jsx as ic}from"react/jsx-runtime";var Fr=ac("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),ie=_r.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?oc:"button",m=r(Fr({variant:o,size:t,className:e}));return ic(l,{className:m,disabled:i,ref:s,...n,children:n.children})});ie.displayName="TextButton";import{Fragment as Br,jsx as $,jsxs as et}from"react/jsx-runtime";var lc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return et(Br,{children:[$("div",{className:"flex-none basis-1/2 pr-3 md:basis-full md:pr-0",children:$("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:et("picture",{children:[$("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),$("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})})}),et("div",{className:"basis-1/2 overflow-hidden md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&$(ie,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),$("div",{className:"line-clamp-3 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),et("div",{className:"mt-2 flex items-center md:space-x-1",children:[e?.category&&e?.categoryUrl&&et(Br,{children:[$(ie,{variant:"default",className:"shink-0 hidden justify-start whitespace-normal text-left text-xs md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&$("span",{className:"hidden flex-none leading-none md:block",children:"\xB7"})]}),e?.totalViews&&$("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Na=nc(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>et("div",{children:[$("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((g,h)=>$("div",{className:"min-w-0 basis-full px-3 md:basis-1/2 lg:basis-1/3",children:$("div",{onClick:w=>m(w,g?.id,g?.url),className:r("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:$(lc,{blog:g})},g?.id)},h))}),d?.isShowBtn&&$("div",{className:"mt-8 flex w-full items-center justify-center",children:et(Ge,{action:i?()=>i?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[u(d.btnName||"Xem th\xEAm"),d?.isLoading?$(go,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!d?.btnUrl&&$(sc,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return et(rc.Fragment,{children:[e&&$(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?et(Pt,{defaultValue:t[0]?.title,children:[et(bt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[$(yt,{className:"mb-6 text-center",children:$(Ze,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>$(Ke,{value:d.title,children:d.title},d.title+p))})}),$(wt,{}),$(Nt,{})]}),t.map((d,p)=>$(Je,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import fc,{memo as uc,useEffect as gc,useState as Gr}from"react";import{ChevronLeftIcon as vc,ChevronRightIcon as hc}from"@heroicons/react/20/solid";import*as O from"react";import{ChevronLeftIcon as mc,ChevronRightIcon as cc}from"@heroicons/react/20/solid";import dc from"embla-carousel-react";import{Fragment as pc,jsx as Ee,jsxs as Vr}from"react/jsx-runtime";var Or=O.createContext(null);function Go(){let e=O.useContext(Or);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ge=O.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[m,c]=dc({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=O.useState(!1),[g,h]=O.useState(!1),w=O.useCallback(W=>{W&&(p(W.canScrollPrev()),h(W.canScrollNext()))},[]),T=O.useCallback(()=>{c?.scrollPrev()},[c]),C=O.useCallback(()=>{c?.scrollNext()},[c]),z=O.useCallback(W=>{W.key==="ArrowLeft"?(W.preventDefault(),T()):W.key==="ArrowRight"&&(W.preventDefault(),C())},[T,C]);return O.useEffect(()=>{!c||!t||t(c)},[c,t]),O.useEffect(()=>{if(c)return w(c),c.on("reInit",w),c.on("select",w),()=>{c?.off("select",w)}},[c,w]),Ee(Or.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:T,scrollNext:C,canScrollPrev:d,canScrollNext:g},children:Ee("div",{ref:l,onKeyDownCapture:z,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});ge.displayName="Carousel";var ve=O.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=Go();return Ee("div",{ref:i,className:r("overflow-hidden",o),children:Ee("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ve.displayName="CarouselContent";var de=O.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Go();return Ee("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});de.displayName="CarouselItem";var xo=O.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Go();return Vr(se,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ee(mc,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Previous slide"})]})});xo.displayName="CarouselPrevious";var bo=O.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Go();return Vr(se,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ee(cc,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Next slide"})]})});bo.displayName="CarouselNext";var yo=O.forwardRef((e,o)=>{let{api:t}=Go(),[,a]=O.useState(!1),i=O.useCallback(()=>a(l=>!l),[]);O.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Ee("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Ee(se,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):Ee(pc,{})});yo.displayName="CarouselDots";import{Fragment as Pa,jsx as j,jsxs as $e}from"react/jsx-runtime";var xc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return $e(Pa,{children:[j("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:j("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),$e("div",{className:"mt-4 md:pr-3",children:[j("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight",children:e?.title}),e?.description&&j("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:u(e?.description??"")}),$e("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&$e(Pa,{children:[j(ie,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&j("span",{className:"flex-none leading-none text-gray-300",children:"\xB7"})]}),e?.totalViews&&j("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},bc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return gc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),$e(Pa,{children:[j(ge,{opts:{dragFree:!1},setApi:o,className:"w-full",children:j(ve,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>j(de,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:j("div",{onClick:g=>i(g,p?.id,p?.url),className:r("group cursor-pointer",d),children:j(xc,{blog:p})},p?.id)},p?.id))})}),s&&j("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10",children:$e(Ge,{action:m&&m,newTab:c,variant:"outline",children:[u(l||"Xem th\xEAm")," "]})})]})},yc=({carouselRef:e})=>$e(se,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[j(vc,{className:"h-6 w-6"}),j("span",{className:"sr-only",children:"Previous slide"})]}),wc=({carouselRef:e})=>$e(se,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[j(hc,{className:"h-6 w-6"}),j("span",{className:"sr-only",children:"Next slide"})]}),bi=uc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(c,d,p)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(p,"_blank")},[n,s]=Gr(null),[,l]=Gr(0),m=()=>n?$e("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[j(yc,{carouselRef:n}),j(wc,{carouselRef:n})]}):j(Pa,{});return $e(fc.Fragment,{children:[$e("div",{className:"flex items-center justify-between",children:[e&&j(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),j(m,{})]}),j(bc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});import{Fragment as kc,jsx as wo}from"react/jsx-runtime";var Nc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return wo(Na,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return wo(bi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return wo(Na,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Pc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>wo(kc,{children:Nc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Cc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>wo(B,{className:r("overflow-hidden",i),idSection:a,background:n,children:wo(Pc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as ka from"react";import{enUS as Dc,vi as Mc}from"date-fns/locale";import{ChevronLeft as Ic,ChevronRight as Ac}from"lucide-react";import Lc from"lunisolar";import{DayPicker as zc}from"react-day-picker";import*as Wr from"react";import*as Wo from"@radix-ui/react-checkbox";import{CheckIcon as Rc}from"@heroicons/react/16/solid";import{cva as $r}from"class-variance-authority";import{jsx as yi}from"react/jsx-runtime";var Tc=$r("peer shrink-0 rounded border-2 disabled:bg-gray-300 border-gray-300 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:bg-gray-100 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-400 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Sc=$r("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ca=Wr.forwardRef(({className:e,size:o,...t},a)=>yi(Wo.Root,{ref:a,className:r(Tc({size:o}),e),...t,children:yi(Wo.Indicator,{className:r("flex items-center justify-center text-current"),children:yi(Rc,{className:r(Sc({size:o}))})})}));Ca.displayName=Wo.Root.displayName;import{Fragment as Bc,jsx as tt,jsxs as wi}from"react/jsx-runtime";var Ec=({date:e,cusContent:o})=>{let t=null;return t=Lc(e).lunar,wi(Bc,{children:[o?o(e):e.getDate(),t&&tt("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Hc={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let o=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][o]}};function _c({isShow:e,setIsShow:o,lang:t}){let a=ka.useId();return tt("div",{className:"w-full p-3 pt-0",children:wi("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[tt(Ca,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),tt("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Fc=e=>e.getDay()===0||e.getDay()===6;function Ra({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,m]=ka.useState(!0);return tt(zc,{locale:i==="vi"?Mc:Dc,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(Ye({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(Ye({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Fc},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>tt(Ic,{className:"h-6 w-6"}),IconRight:()=>tt(Ac,{className:"h-6 w-6"}),DayContent:c=>tt(Ec,{date:c.date,cusContent:n}),Months:({children:c})=>wi("div",{className:"w-full",children:[tt("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&tt(_c,{isShow:l,setIsShow:m,lang:i})]})},formatters:i==="vi"?Hc:{},...s})}Ra.displayName="Calendar";import{QuestionMarkCircleIcon as Oc,XCircleIcon as Vc}from"@heroicons/react/16/solid";import{format as Ta}from"date-fns";import{Calendar as Gc}from"lucide-react";import*as Qr from"react";import*as Ct from"@radix-ui/react-popover";import{jsx as jr}from"react/jsx-runtime";var $o=Ct.Root,jo=Ct.Trigger,No=Qr.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>jr(Ct.Portal,{children:jr(Ct.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));No.displayName=Ct.Content.displayName;import{Fragment as Ur,jsx as Te,jsxs as Qo}from"react/jsx-runtime";var Wc=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:c,popoverContentProps:d})=>{let p=c?.selected||null;return Qo("div",{children:[Qo($o,{...m,children:[Te(jo,{asChild:!0,children:Qo(we,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!p||!(p instanceof Date)&&typeof p=="object"&&(!("from"in p)||!p.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Te("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Ta(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?Te(Ur,{children:p.from?p.to?Qo(Ur,{children:[Te("span",{className:"date-from",children:Ta(p.from,s)})," ",Te("span",{className:"date-separator",children:"-"}),Te("span",{className:"date-to",children:Ta(p.to,s)})]}):Ta(p.from,s):o}):o}),e&&Te("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),Te(Gc,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Te(No,{className:"w-auto border-none !p-0",...d,children:Te(Ra,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&Qo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?Te(Vc,{width:16,height:16,className:"text-red-500"}):Te(Oc,{width:16,height:16,className:"text-gray-500"}),Te("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as qc,useState as en}from"react";import{QuestionMarkCircleIcon as Xc,XCircleIcon as Yc}from"@heroicons/react/16/solid";import{isValid as Zc}from"date-fns";import*as ot from"react";import{CheckIcon as $c,ChevronDownIcon as qr,ChevronUpIcon as jc,XCircleIcon as Qc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Uc}from"@heroicons/react/24/outline";import*as D from"@radix-ui/react-select";import{jsx as Q,jsxs as Uo}from"react/jsx-runtime";var qo=ot.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},m)=>Uo("div",{ref:m,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-1 [&>.select-mobase-button]:ring-red-500":"",i===2?"[&>.select-mobase-button]:h-12 [&>.select-mobase-button]:text-base":""),children:[t&&Q("span",{className:r("mobase-select-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",i===2&&"-top-2.5 text-sm",n&&"text-red-500"),children:t}),Q(D.Root,{disabled:s,...l,children:o}),a&&Uo("div",{className:r("mobase-select-message mt-1 flex items-center space-x-1 text-gray-500",n&&"text-red-500"),children:[n?Q(Qc,{width:16,height:16}):Q(Uc,{width:16,height:16}),Q("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Xo=D.Value,Po=ot.forwardRef(({className:e,children:o,...t},a)=>Uo(D.Trigger,{ref:a,className:r("select-mobase-button flex h-11 w-full items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus-visible:border-pink-500 focus-visible:ring-1 focus-visible:!ring-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",e),...t,children:[Q("div",{className:"line-clamp-1 text-left",children:o}),Q(D.Icon,{asChild:!0,children:Q(qr,{className:"h-4 w-4 flex-none text-gray-500"})})]}));Po.displayName=D.Trigger.displayName;var Ni=ot.forwardRef(({className:e,...o},t)=>Q(D.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:Q(jc,{className:"h-5 w-5"})}));Ni.displayName=D.ScrollUpButton.displayName;var Pi=ot.forwardRef(({className:e,...o},t)=>Q(D.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center bg-gradient-to-t from-white to-transparent py-1",e),...o,children:Q(qr,{className:"h-5 w-5"})}));Pi.displayName=D.ScrollDownButton.displayName;var Co=ot.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>Q(D.Portal,{children:Uo(D.Content,{ref:i,className:r("shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[Q(Ni,{}),Q(D.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),Q(Pi,{})]})}));Co.displayName=D.Content.displayName;var Yo=ot.forwardRef(({className:e,children:o,...t},a)=>Q(D.Group,{ref:a,className:r("relative border-b border-gray-200 p-1 after:w-full last:border-0",e),...t,children:o})),Xr=ot.forwardRef(({className:e,...o},t)=>Q(D.Label,{ref:t,className:r("z-[1] py-1.5 pl-7 pr-2 text-sm font-semibold",e),...o}));Xr.displayName=D.Label.displayName;var Et=ot.forwardRef(({className:e,children:o,...t},a)=>Uo(D.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[Q("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:Q(D.ItemIndicator,{children:Q($c,{className:"h-4 w-4 text-pink-500"})})}),Q(D.ItemText,{children:o})]})),Yr=ot.forwardRef(({className:e,...o},t)=>Q(D.Separator,{ref:t,className:r("-mx-1 my-1 h-px",e),...o}));Yr.displayName=D.Separator.displayName;var Zr=["Th\xE1ng 01","Th\xE1ng 02","Th\xE1ng 03","Th\xE1ng 04","Th\xE1ng 05","Th\xE1ng 06","Th\xE1ng 07","Th\xE1ng 08","Th\xE1ng 09","Th\xE1ng 10","Th\xE1ng 11","Th\xE1ng 12"],Kr=["January","February","March","April","May","June","July","August","September","October","November","December"],Ci=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},Jr=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,l)=>n-l)};import{jsx as te,jsxs as at}from"react/jsx-runtime";var Kc=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:c=1900,toYear:d=new Date().getFullYear(),disableUnselect:p=!1})=>{let[g,h]=en(o??null),w=Math.min(c,d),T=Math.max(c,d),C=l==="MM/yyyy",z=(k,ne)=>{if(ne===0){h(void 0),t?.(void 0);return}let U=g?.getFullYear()||new Date().getFullYear(),ha=g?.getMonth()??0,qt=g?.getDate()??1;k==="month"&&ne!==null&&(ha=ne-1),k==="year"&&ne!==null&&(U=ne),C?qt=1:k==="day"&&ne!==null&&(qt=ne);let yr=Ci(U,ha+1).daysInMonth;qt>yr&&(qt=1);let Ho=new Date(U,ha,qt);Zc(Ho)&&(h(Ho),t?.(Ho))},[W,_]=en(!1),Ut=k=>{_(k)};return qc(()=>{h(o??null)},[o]),at("div",{className:r("relative",s&&"cursor-no-drop"),children:[at("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",W&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",g?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&te("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),at("div",{className:"flex h-full flex-row divide-x",children:[!C&&at(qo,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:k=>z("day",parseInt(k,10)),onOpenChange:Ut,className:"w-[30%]",children:[te(Po,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Xo,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),te(Co,{onCloseAutoFocus:k=>k.preventDefault(),children:at(Yo,{children:[!p&&te(Et,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Ci(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(k,ne)=>(ne+1).toString().padStart(2,"0")).map(k=>te(Et,{value:k,children:k},k))]})})]}),at(qo,{value:g?(g.getMonth()+1).toString():"",onValueChange:k=>z("month",parseInt(k,10)),onOpenChange:Ut,className:r(C?"w-1/2":"w-2/5"),children:[te(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Xo,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),te(Co,{onCloseAutoFocus:k=>k.preventDefault(),children:at(Yo,{children:[!p&&te(Et,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(k,ne)=>ne+1).map(k=>te(Et,{value:k.toString(),children:m==="vi"?Zr[k-1]:Kr[k-1]},k))]})})]}),at(qo,{value:g?g.getFullYear().toString():"",onValueChange:k=>z("year",parseInt(k,10)),onOpenChange:Ut,className:r(C?"w-1/2":"w-[30%]"),children:[te(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Xo,{placeholder:m==="vi"?"N\u0103m":"Year"})}),te(Co,{onCloseAutoFocus:k=>k.preventDefault(),children:at(Yo,{children:[!p&&te(Et,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Jr(w,T).map(k=>te(Et,{value:k.toString(),children:k},k))]})})]})]})]}),i&&at("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?te(Yc,{width:16,height:16,className:"text-red-500"}):te(Xc,{width:16,height:16,className:"text-gray-500"}),te("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};import*as Kt from"react";import*as V from"@radix-ui/react-alert-dialog";import{jsx as kt,jsxs as td}from"react/jsx-runtime";var Jc=V.Root,ed=V.Trigger,tn=V.Portal,ki=Kt.forwardRef(({className:e,...o},t)=>kt(V.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));ki.displayName=V.Overlay.displayName;var on=Kt.forwardRef(({className:e,...o},t)=>td(tn,{children:[kt(ki,{}),kt(V.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));on.displayName=V.Content.displayName;var an=({className:e,...o})=>kt("div",{className:r("flex flex-col space-y-2 text-left",e),...o});an.displayName="AlertDialogHeader";var rn=({className:e,...o})=>kt("div",{className:r("flex flex-row justify-end space-x-4",e),...o});rn.displayName="AlertDialogFooter";var nn=Kt.forwardRef(({className:e,...o},t)=>kt(V.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));nn.displayName=V.Title.displayName;var sn=Kt.forwardRef(({className:e,...o},t)=>kt(V.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));sn.displayName=V.Description.displayName;var ln=Kt.forwardRef(({className:e,...o},t)=>kt(V.Action,{ref:t,className:r(Ye({variant:"primary"}),"",e),...o}));ln.displayName=V.Action.displayName;var mn=Kt.forwardRef(({className:e,...o},t)=>kt(V.Cancel,{ref:t,className:r(Ye({variant:"secondary"}),e),...o}));mn.displayName=V.Cancel.displayName;import{memo as cd,useState as dd}from"react";import{useEffect as od,useState as dn}from"react";import{motion as ad}from"motion/react";import*as cn from"@radix-ui/react-aspect-ratio";var H=cn.Root;import{Fragment as pn,jsx as oe,jsxs as Zo}from"react/jsx-runtime";var id=({guideGroup:e,mockup:o})=>{let[t,a]=dn(),[i,n]=dn(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return od(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),oe(pn,{children:e?.stepList&&e?.stepList?.length>0&&Zo("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[oe("div",{className:"h-auto w-64 flex-none",children:Zo("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&Zo(pn,{children:[oe("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),oe("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),oe("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),oe("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),oe("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:Zo(ge,{setApi:a,children:[oe(ve,{className:"ml-0",children:e?.stepList.map((l,m)=>oe(de,{className:"pl-0",children:oe(H,{ratio:o==="small"?540/960:540/1168,children:l?.image&&oe("img",{src:l.image,className:"size-full object-contain",alt:l.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":"0","data-puck-array-field":"stepList","data-puck-array-index-nested":m?.toString()??"","data-puck-nested-field":"image"})})},m))}),oe(xo,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),oe(bo,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),oe("div",{className:"flex flex-auto pl-12 pt-4",children:oe("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>Zo("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",m+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[oe("div",{className:r("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),oe("div",{className:r("text-sm font-medium",m+1===i?"text-pink-500":"text-gray-900"),children:u(l.title)}),l.content&&oe(ad.div,{initial:"closed",animate:m+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:oe("div",{className:"mt-3 text-sm text-gray-700",children:u(l.content)})})]},m))})})]})})},Ri=id;import{useEffect as rd,useRef as nd,useState as Sa}from"react";import{ChevronRightIcon as fn}from"@heroicons/react/20/solid";import sd from"embla-carousel-autoplay";import{Fragment as Ti,jsx as N,jsxs as Pe}from"react/jsx-runtime";var ld=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=Sa(0),[s,l]=Sa();return rd(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:N(Re,{open:e,onOpenChange:o,children:Pe(Ne,{position:"bottom",height:"full",children:[N(At,{children:N(Lt,{className:"line-clamp-1",children:t?.title})}),Pe(ze,{className:"grid overflow-hidden p-0",children:[N(ge,{setApi:l,className:"grid overflow-hidden",children:N(ve,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>N(de,{className:"h-full w-full pl-0",children:Pe("div",{className:"flex h-full flex-col overflow-y-auto",children:[N("div",{className:"relative flex w-full flex-none justify-center bg-gray-100 p-5",children:N("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:Pe("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&Pe(Ti,{children:[N("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),N("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:N(H,{ratio:a==="small"?540/960:540/1168,children:m?.image&&N("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),Pe("div",{className:"p-5 pb-12",children:[N("div",{className:"font-semibold",children:u(m.title)}),m?.content&&N("div",{className:"mt-3 text-sm text-gray-800",children:u(m.content)})]})]})},c))})}),N("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((m,c)=>N("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},md=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=Sa(!1),[n,s]=Sa(null),l=nd(sd({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),i(!0)};return e?.length===0?null:Pe(Ti,{children:[e?.length>1?N("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>Pe("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5",onClick:()=>m(d),children:[N("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(c?.avatar||c?.stepList?.[0]?.image)&&N("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":d,"data-puck-nested-field":"avatar"})}),Pe("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8",d+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[Pe("div",{className:"py-2",children:[t&&N("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),N("div",{className:"font-semibold",children:u(c.title)}),c?.description&&N("div",{className:"mt-1 text-sm text-gray-500",children:u(c.description)})]}),N("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:N(fn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&Pe("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[N("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:N("div",{className:"mx-auto h-auto w-72",children:Pe("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&Pe(Ti,{children:[N("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),N("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:N(ge,{plugins:[l.current],children:N(ve,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>N(de,{className:"pl-0",onClick:()=>m(0),children:N(H,{ratio:o==="small"?540/960:540/1168,children:c?.image&&N("img",{src:c.image,className:"size-full object-contain",alt:c.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":0,"data-puck-array-field":"stepList","data-puck-array-index-nested":d?d?.toString():"","data-puck-nested-field":"image"})})},d))})})})]})})}),N("div",{className:"flex w-full flex-none justify-center",children:Pe(ie,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",N(fn,{className:"ml-1 h-5 w-5"})]})})]}),a&&N(ld,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},un=md;import{Fragment as pd,jsx as pe,jsxs as Ko}from"react/jsx-runtime";var gn=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return pe("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:pe("path",{d:t.d,fill:"currentColor"})})},Si=cd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=dd(t?.[0]?.title||"");return Ko(pd,{children:[e&&pe(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&Ko(fo,{children:[pe(Xe,{lessThan:"md",children:pe(un,{dataGuide:t,mockup:i,isStep:n})}),pe(Xe,{greaterThan:"sm",children:t?.length>1?Ko(Pt,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[Ko(bt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[pe(yt,{className:"mb-6 text-center",children:pe(Ze,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,g)=>{let h=g===t.length-1,w=c===p?.title||"";return Ko(Ke,{value:p.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",w&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&pe(gn,{direction:"left",className:r("right-full top-0",w?"text-pink-500":"text-pink-100")}),p.title,n&&!h&&pe(gn,{direction:"right",className:r("left-full top-0",w?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),pe(wt,{}),pe(Nt,{})]}),t.map((p,g)=>pe(Je,{value:p.title,children:pe(Ri,{guideGroup:p,mockup:i})},p.title+g))]}):t?.length===1&&t[0]&&pe(Ri,{guideGroup:t[0],mockup:i})})]}),a&&pe(b,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as vd,jsx as Jo}from"react/jsx-runtime";var fd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return Jo(Si,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return Jo(Si,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},ud=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>Jo(vd,{children:fd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),gd=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>Jo(B,{className:r(n),background:s,idSection:e,children:Jo(ud,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:m,isStep:c})});import{useState as vn}from"react";import{Fragment as Di,jsx as E,jsxs as Rt}from"react/jsx-runtime";var hn="text-xs font-medium md:text-sm",hd=({gift:e,onOpenModal:o,index:t})=>{let a=!!e.useModal,i=!!e.btnLink?.trim(),n=e.btnName||"Xem chi ti\u1EBFt",s=l=>{l.stopPropagation(),o(e)};return E("div",{className:"w-full px-2.5 md:w-1/2 lg:w-1/3",children:Rt("div",{className:r("relative h-full rounded-xl border border-gray-200 bg-white p-2 transition-all duration-300",e.isFeatured&&"border-pink-500",a&&"cursor-pointer ring-inset hover:border-pink-500 hover:shadow-lg hover:shadow-pink-500/20 hover:ring-1 hover:ring-pink-500"),role:a?"button":void 0,tabIndex:a?0:void 0,onClick:()=>a&&o(e),children:[e.tag&&Rt("span",{className:"absolute -top-2 right-2 z-10 inline-flex",children:[E("span",{className:"rounded-bl-md rounded-br-md bg-red-600 px-2 py-0.5 text-xs font-semibold uppercase text-white shadow-sm",children:u(e.tag)}),E("span",{"aria-hidden":!0,className:"absolute right-full top-0 h-0 w-0 border-r-8 border-t-8 border-r-red-800 border-t-transparent"})]}),Rt("div",{className:"relative z-10 flex h-full flex-row items-stretch gap-3",children:[e.thumbnail&&E("div",{className:"w-28 flex-none shrink-0 md:w-32",children:E(H,{ratio:1,className:"w-full",children:E("img",{src:e.thumbnail,alt:e.title||"Gift image",className:"h-full w-full rounded-md object-contain","data-puck-editable":"true","data-puck-component":"GiftListSection","data-puck-field":"dataGiftList","data-puck-array-index":t,"data-puck-nested-field":"thumbnail"})})}),Rt("div",{className:"flex min-w-0 flex-1 flex-col",children:[Rt("div",{className:"flex-1",children:[e.serviceName?E("span",{className:"mb-1.5 mt-1 block text-xs font-medium text-gray-700 md:mb-2",children:u(e.serviceName)}):E(Di,{}),E("h3",{className:"text-base font-semibold text-gray-900 md:text-lg",children:u(e.title)}),e.description&&E("p",{className:"line-clamp-2 text-sm text-gray-600",children:u(e.description)})]}),E("div",{className:"mt-auto flex flex-none justify-end pt-1 md:pt-2",children:n&&(i?E(ie,{variant:"primary",className:hn,asChild:!0,children:E("a",{href:e.btnLink,target:e.newTab?"_blank":"_self",rel:"noreferrer",onClick:l=>l.stopPropagation(),children:n})}):E(ie,{variant:"primary",size:"default",className:hn,type:"button",onClick:s,children:n}))})]})]})]})})},Da=({dataHeading:e,dataButtons:o,dataGiftList:t})=>{let[a,i]=vn(null),[n,s]=vn(!1),l=m=>{i(m),s(!0)};return Rt(Di,{children:[e&&E(x,{align:e.align||"center",tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),t&&t.length>0&&E("div",{className:"-mx-2.5 mt-8 flex flex-wrap justify-center gap-y-5 md:mt-10",children:t.map((m,c)=>E(hd,{gift:m,onOpenModal:l,index:c},c))}),o&&E(b,{isFullInMobile:o.isFullInMobile,buttons:o.buttons,className:o.className,align:o.align||"center"}),n&&E(Re,{open:n,onOpenChange:s,children:Rt(Ne,{size:"lg",position:"bottom",children:[E(At,{children:E(Lt,{children:"Th\xF4ng tin chi ti\u1EBFt th\u1EBB qu\xE0"})}),Rt(ze,{children:[Rt("div",{className:"text-center",children:[a?.serviceName&&E("span",{className:"mb-1 block text-xs font-medium text-gray-500",children:u(a.serviceName)}),a?.title&&E("h3",{className:"text-xl font-bold md:text-2xl",children:u(a.title)}),a?.description&&E("p",{className:"mt-1 text-sm text-gray-700",children:u(a.description||"")})]}),a?.content?E("div",{className:"prose prose-sm mt-6 max-w-none",children:u(a.content)}):E(Di,{})]}),E(xa,{children:E(we,{variant:"primary",size:"default",onClick:()=>s(!1),children:"\u0110\xF3ng"})})]})})]})};import{jsx as Mi}from"react/jsx-runtime";var xd=({template:e,dataHeading:o,dataButtons:t,dataGiftList:a})=>{switch(e){case 1:return Mi(Da,{dataHeading:o,dataButtons:t,dataGiftList:a});default:return Mi(Da,{dataHeading:o,dataButtons:t,dataGiftList:a})}},bd=({template:e=1,className:o,idSection:t,background:a,dataHeading:i,dataButtons:n,dataGiftList:s})=>Mi(B,{idSection:t,className:o,background:a,children:xd({template:e,dataHeading:i,dataButtons:n,dataGiftList:s})});import{ChevronLeft as yd,ChevronRight as wd}from"lucide-react";import{Fragment as Nd,jsx as He,jsxs as xn}from"react/jsx-runtime";function bn({current:e,total:o,onChange:t}){let a=i=>He("li",{children:He("button",{className:r(Zt({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return He("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:xn("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&He("li",{children:He("button",{className:r(Zt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:He(yd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):xn(Nd,{children:[a(1),e===1&&[a(2),a(3)],e>3&&He("li",{children:He("button",{className:r(Zt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&He("button",{className:r(Zt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&He("li",{children:He("button",{className:r(Zt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:He(wd,{className:"h-4 w-4"})})})]})})}import{forwardRef as Pd}from"react";import{QuestionMarkCircleIcon as Cd}from"@heroicons/react/24/outline";import{XCircleIcon as kd}from"@heroicons/react/24/solid";import{jsx as ko,jsxs as yn}from"react/jsx-runtime";var Rd=Pd(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...m},c)=>yn("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&ko("span",{className:r("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),ko("textarea",{disabled:e,ref:c,className:r("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...m}),t&&yn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?ko(kd,{width:16,height:16,className:"text-red-500"}):ko(Cd,{width:16,height:16,className:"text-gray-500"}),ko("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),ko("style",{children:`
70
+ `})]}),Xt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>M(Re,{...m,children:M(Ne,{className:r("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:M(ze,{className:"p-0",children:ue("div",{className:"flex flex-row flex-wrap",children:[M("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||ue("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[ue("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),ue("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),M("div",{className:"mt-1 text-gray-500",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),ue("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),ue("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),M("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),ue("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),ue("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),ue("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),M("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:ue("div",{className:"px-5 py-10 text-center",children:[t&&M("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),ue("div",{className:"relative",children:[l&&M("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:M("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),M(Im,{img:i,isQrForAll:l,children:n&&M(Mm,{value:n,size:215,imageSettings:{src:`${s||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});import{useEffect as Am,useLayoutEffect as Lm,useState as zm}from"react";import Em from"ua-parser-js";var Hm=()=>Em().device.type==="mobile",_m=typeof window<"u"?Lm:Am,bo=()=>{let[e,o]=zm(!1);return _m(()=>{o(Hm())},[]),e};import{Fragment as Bm,jsx as Yt,jsxs as Om}from"react/jsx-runtime";var Ge=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,onPushTrackingEvent:s,asChild:l,...m})=>{let[c,d]=Fm(!1),p=bo(),g=Cr(),x=!!a?.qrLink,N=a?.qrLink??"",T=(h,X=0)=>{let F=document.querySelector(h);if(!F)return;let uo=F.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:uo-X,behavior:"smooth"})},C=h=>{typeof h=="function"?h():typeof h=="string"&&h.trim()&&(h.startsWith("#")?T(h,t):window.open(h.trim(),o?"_blank":"_self"))},V=h=>{s?.(),C(h)},$=()=>{let h=()=>{s?.(),d(!0)};return Om(Bm,{children:[l?Yt(Sr,{onClick:h,children:n}):Yt(we,{...m,className:i,onClick:h,"data-name":"button-action-with-qr",children:n}),Yt(Xt,{...a,open:c,onOpenChange:()=>d(!1),qrLink:N})]})},H=h=>Yt(we,{...m,asChild:!0,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",children:Yt("a",{href:h,target:o?"_blank":"_self",rel:"noreferrer",onClick:X=>{s?.(),h.startsWith("#")&&(X.preventDefault(),T(h,t))},children:n})}),Xe=h=>l?Yt(Sr,{onClick:()=>V(h),children:n}):Yt(we,{...m,onClick:()=>V(h),className:r("cursor-pointer",i),"data-name":"button-action-without-qr",children:n});return g?Xe(e??(x?N:void 0)):x?!p||a?.isQrForAll?$():l?Xe(N):H(N):l||typeof e!="string"?Xe(e):H(e)};import*as yo from"react";import{ChevronRightIcon as Vm,DotsHorizontalIcon as Gm}from"@radix-ui/react-icons";import{Slot as Wm}from"@radix-ui/react-slot";import{jsx as bt,jsxs as $m}from"react/jsx-runtime";var Dr=yo.forwardRef(({className:e,...o},t)=>bt("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Dr.displayName="Breadcrumb";var Mr=yo.forwardRef(({className:e,...o},t)=>bt("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Mr.displayName="BreadcrumbList";var Ir=yo.forwardRef(({className:e,...o},t)=>bt("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Ir.displayName="BreadcrumbItem";var Ar=yo.forwardRef(({asChild:e,className:o,...t},a)=>bt(e?Wm:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Ar.displayName="BreadcrumbLink";var Lr=yo.forwardRef(({className:e,...o},t)=>bt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Lr.displayName="BreadcrumbPage";var zr=({children:e,className:o,...t})=>bt("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??bt(Vm,{className:"w-2 h-2"})});zr.displayName="BreadcrumbSeparator";var Er=({className:e,...o})=>$m("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[bt(Gm,{className:"w-4 h-4 text-gray-900"}),bt("span",{className:"sr-only",children:"More"})]});Er.displayName="BreadcrumbElipssis";import{createContext as jm,useContext as Hr}from"react";import{jsx as $o}from"react/jsx-runtime";var fi=jm({align:"center"}),ui=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return $o("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},gi=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:c}=Hr(fi);return $o(s,{className:r("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",i),children:n})},vi=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:c}=Hr(fi);return $o("div",{className:r(c==="center"?"mx-auto max-w-2xl":c==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",i),children:n})},hi=({className:e,align:o="center",children:t})=>$o("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:$o(fi.Provider,{value:{align:o},children:t})});import{jsx as Zt,jsxs as Qm}from"react/jsx-runtime";var B=({idSection:e,className:o,background:t,children:a})=>Zt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Zt("div",{className:"wrapper relative",children:a})}),b=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",c=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:Qm(hi,{align:e,className:l,children:[o&&Zt(ui,{color:m,children:o}),t&&Zt(gi,{tagHeading:i,color:c,size:s,children:u(t)}),a&&Zt(vi,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:u(a)})]})},y=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Zt("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{if(!i)return null;let{btnName:s,...l}=i;return Zt(Ge,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:u(s)},n)})});import sc,{memo as lc}from"react";import{ArrowDownIcon as mc}from"@heroicons/react/20/solid";import{createContext as Ym,useCallback as Zm,useContext as xi,useEffect as Km,useRef as Jm,useState as ec}from"react";import{ChevronLeft as tc,ChevronRight as oc}from"lucide-react";import*as _r from"react";import{Slot as Um}from"@radix-ui/react-slot";import{cva as qm}from"class-variance-authority";import{jsx as Xm}from"react/jsx-runtime";var Kt=qm("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),se=_r.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Um:"button",m=r(Kt({variant:o,size:t,className:e}));return Xm(l,{className:m,disabled:i,ref:s,...n,children:n.children})});se.displayName="IconButton";import{Fragment as ac,jsx as Et,jsxs as Fr}from"react/jsx-runtime";var wa=Ym(void 0),yt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=Jm(null),[n,s]=ec({left:!1,right:!1}),l=Zm(()=>{let c=i.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);Km(()=>{let c=i.current;if(c)return l(),window.addEventListener("resize",l),c.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),c.removeEventListener("scroll",l)}},[l]);let m=c=>{let d=i.current;if(d){let{scrollLeft:p,clientWidth:g,scrollWidth:x}=d,N=g*.7*(c==="left"?-1:1),T=p+N;T<0?T=0:T>x-g&&(T=x-g),d.scrollTo({left:T,behavior:"smooth"})}};return Et(wa.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:m,gradientOverlayColor:o},children:Fr("div",{className:r("relative w-full",t),children:[e&&Fr(ac,{children:[n.left&&Et("div",{className:"pointer-events-none absolute left-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&Et("div",{className:"pointer-events-none absolute right-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},wt=({className:e,children:o})=>{let t=xi(wa);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Et("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},Nt=({className:e,children:o,...t})=>{let a=xi(wa);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Et(se,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Et(tc,{className:"h-4 w-4"})}):null},Pt=({className:e,children:o,...t})=>{let a=xi(wa);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Et(se,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Et(oc,{className:"h-4 w-4"})}):null};import*as Na from"react";import*as We from"@radix-ui/react-tabs";import{jsx as bi}from"react/jsx-runtime";var Ct=We.Root,Ke=Na.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>bi(We.List,{ref:i,className:r("inline-flex w-full flex-row items-center space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Ke.displayName=We.List.displayName;var Je=Na.forwardRef(({className:e,...o},t)=>bi(We.Trigger,{ref:t,className:r("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap border-b-2 border-transparent py-3 font-semibold text-gray-900 transition-all hover:text-pink-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-pink-500 data-[state=active]:text-pink-500",e),...o}));Je.displayName=We.Trigger.displayName;var et=Na.forwardRef(({className:e,...o},t)=>bi(We.Content,{ref:t,className:r("ring-offset-background focus-visible:ring-ring mt-3 text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e),...o}));et.displayName=We.Content.displayName;import*as Br from"react";import{Slot as ic}from"@radix-ui/react-slot";import{cva as rc}from"class-variance-authority";import{jsx as nc}from"react/jsx-runtime";var Or=rc("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),re=Br.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?ic:"button",m=r(Or({variant:o,size:t,className:e}));return nc(l,{className:m,disabled:i,ref:s,...n,children:n.children})});re.displayName="TextButton";import{Fragment as Vr,jsx as j,jsxs as tt}from"react/jsx-runtime";var cc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return tt(Vr,{children:[j("div",{className:"flex-none basis-1/2 pr-3 md:basis-full md:pr-0",children:j("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:tt("picture",{children:[j("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),j("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})})}),tt("div",{className:"basis-1/2 overflow-hidden md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&j(re,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),j("div",{className:"line-clamp-3 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),tt("div",{className:"mt-2 flex items-center md:space-x-1",children:[e?.category&&e?.categoryUrl&&tt(Vr,{children:[j(re,{variant:"default",className:"shink-0 hidden justify-start whitespace-normal text-left text-xs md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&j("span",{className:"hidden flex-none leading-none md:block",children:"\xB7"})]}),e?.totalViews&&j("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Pa=lc(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>tt("div",{children:[j("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((g,x)=>j("div",{className:"min-w-0 basis-full px-3 md:basis-1/2 lg:basis-1/3",children:j("div",{onClick:N=>m(N,g?.id,g?.url),className:r("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:j(cc,{blog:g})},g?.id)},x))}),d?.isShowBtn&&j("div",{className:"mt-8 flex w-full items-center justify-center",children:tt(Ge,{action:i?()=>i?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[u(d.btnName||"Xem th\xEAm"),d?.isLoading?j(xo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!d?.btnUrl&&j(mc,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return tt(sc.Fragment,{children:[e&&j(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?tt(Ct,{defaultValue:t[0]?.title,children:[tt(yt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[j(wt,{className:"mb-6 text-center",children:j(Ke,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>j(Je,{value:d.title,children:d.title},d.title+p))})}),j(Nt,{}),j(Pt,{})]}),t.map((d,p)=>j(et,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import gc,{memo as vc,useEffect as hc,useState as $r}from"react";import{ChevronLeftIcon as xc,ChevronRightIcon as bc}from"@heroicons/react/20/solid";import*as O from"react";import{ChevronLeftIcon as dc,ChevronRightIcon as pc}from"@heroicons/react/20/solid";import fc from"embla-carousel-react";import{Fragment as uc,jsx as Ee,jsxs as Wr}from"react/jsx-runtime";var Gr=O.createContext(null);function jo(){let e=O.useContext(Gr);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ge=O.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[m,c]=fc({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=O.useState(!1),[g,x]=O.useState(!1),N=O.useCallback($=>{$&&(p($.canScrollPrev()),x($.canScrollNext()))},[]),T=O.useCallback(()=>{c?.scrollPrev()},[c]),C=O.useCallback(()=>{c?.scrollNext()},[c]),V=O.useCallback($=>{$.key==="ArrowLeft"?($.preventDefault(),T()):$.key==="ArrowRight"&&($.preventDefault(),C())},[T,C]);return O.useEffect(()=>{!c||!t||t(c)},[c,t]),O.useEffect(()=>{if(c)return N(c),c.on("reInit",N),c.on("select",N),()=>{c?.off("select",N)}},[c,N]),Ee(Gr.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:T,scrollNext:C,canScrollPrev:d,canScrollNext:g},children:Ee("div",{ref:l,onKeyDownCapture:V,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});ge.displayName="Carousel";var ve=O.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=jo();return Ee("div",{ref:i,className:r("overflow-hidden",o),children:Ee("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ve.displayName="CarouselContent";var de=O.forwardRef(({className:e,...o},t)=>{let{orientation:a}=jo();return Ee("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});de.displayName="CarouselItem";var wo=O.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=jo();return Wr(se,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ee(dc,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Previous slide"})]})});wo.displayName="CarouselPrevious";var No=O.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=jo();return Wr(se,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ee(pc,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Next slide"})]})});No.displayName="CarouselNext";var Po=O.forwardRef((e,o)=>{let{api:t}=jo(),[,a]=O.useState(!1),i=O.useCallback(()=>a(l=>!l),[]);O.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Ee("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Ee(se,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):Ee(uc,{})});Po.displayName="CarouselDots";import{Fragment as Ca,jsx as Q,jsxs as $e}from"react/jsx-runtime";var yc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return $e(Ca,{children:[Q("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Q("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),$e("div",{className:"mt-4 md:pr-3",children:[Q("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight",children:e?.title}),e?.description&&Q("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:u(e?.description??"")}),$e("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&$e(Ca,{children:[Q(re,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&Q("span",{className:"flex-none leading-none text-gray-300",children:"\xB7"})]}),e?.totalViews&&Q("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},wc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return hc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),$e(Ca,{children:[Q(ge,{opts:{dragFree:!1},setApi:o,className:"w-full",children:Q(ve,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>Q(de,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:Q("div",{onClick:g=>i(g,p?.id,p?.url),className:r("group cursor-pointer",d),children:Q(yc,{blog:p})},p?.id)},p?.id))})}),s&&Q("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10",children:$e(Ge,{action:m&&m,newTab:c,variant:"outline",children:[u(l||"Xem th\xEAm")," "]})})]})},Nc=({carouselRef:e})=>$e(se,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[Q(xc,{className:"h-6 w-6"}),Q("span",{className:"sr-only",children:"Previous slide"})]}),Pc=({carouselRef:e})=>$e(se,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[Q(bc,{className:"h-6 w-6"}),Q("span",{className:"sr-only",children:"Next slide"})]}),yi=vc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(c,d,p)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(p,"_blank")},[n,s]=$r(null),[,l]=$r(0),m=()=>n?$e("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[Q(Nc,{carouselRef:n}),Q(Pc,{carouselRef:n})]}):Q(Ca,{});return $e(gc.Fragment,{children:[$e("div",{className:"flex items-center justify-between",children:[e&&Q(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),Q(m,{})]}),Q(wc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});import{Fragment as Tc,jsx as Co}from"react/jsx-runtime";var Cc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return Co(Pa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return Co(yi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return Co(Pa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},kc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>Co(Tc,{children:Cc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Rc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>Co(B,{className:r("overflow-hidden",i),idSection:a,background:n,children:Co(kc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as Ra from"react";import{enUS as Ic,vi as Ac}from"date-fns/locale";import{ChevronLeft as Lc,ChevronRight as zc}from"lucide-react";import Ec from"lunisolar";import{DayPicker as Hc}from"react-day-picker";import*as jr from"react";import*as Qo from"@radix-ui/react-checkbox";import{CheckIcon as Sc}from"@heroicons/react/16/solid";import{cva as Qr}from"class-variance-authority";import{jsx as wi}from"react/jsx-runtime";var Dc=Qr("peer shrink-0 rounded border-2 disabled:bg-gray-300 border-gray-300 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:bg-gray-100 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-400 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Mc=Qr("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),ka=jr.forwardRef(({className:e,size:o,...t},a)=>wi(Qo.Root,{ref:a,className:r(Dc({size:o}),e),...t,children:wi(Qo.Indicator,{className:r("flex items-center justify-center text-current"),children:wi(Sc,{className:r(Mc({size:o}))})})}));ka.displayName=Qo.Root.displayName;import{Fragment as Vc,jsx as ot,jsxs as Ni}from"react/jsx-runtime";var _c=({date:e,cusContent:o})=>{let t=null;return t=Ec(e).lunar,Ni(Vc,{children:[o?o(e):e.getDate(),t&&ot("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Fc={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let o=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][o]}};function Bc({isShow:e,setIsShow:o,lang:t}){let a=Ra.useId();return ot("div",{className:"w-full p-3 pt-0",children:Ni("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[ot(ka,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),ot("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Oc=e=>e.getDay()===0||e.getDay()===6;function Ta({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,m]=Ra.useState(!0);return ot(Hc,{locale:i==="vi"?Ac:Ic,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(Ze({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(Ze({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Oc},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>ot(Lc,{className:"h-6 w-6"}),IconRight:()=>ot(zc,{className:"h-6 w-6"}),DayContent:c=>ot(_c,{date:c.date,cusContent:n}),Months:({children:c})=>Ni("div",{className:"w-full",children:[ot("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&ot(Bc,{isShow:l,setIsShow:m,lang:i})]})},formatters:i==="vi"?Fc:{},...s})}Ta.displayName="Calendar";import{QuestionMarkCircleIcon as Gc,XCircleIcon as Wc}from"@heroicons/react/16/solid";import{format as Sa}from"date-fns";import{Calendar as $c}from"lucide-react";import*as qr from"react";import*as kt from"@radix-ui/react-popover";import{jsx as Ur}from"react/jsx-runtime";var Uo=kt.Root,qo=kt.Trigger,ko=qr.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>Ur(kt.Portal,{children:Ur(kt.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));ko.displayName=kt.Content.displayName;import{Fragment as Xr,jsx as Te,jsxs as Xo}from"react/jsx-runtime";var jc=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:c,popoverContentProps:d})=>{let p=c?.selected||null;return Xo("div",{children:[Xo(Uo,{...m,children:[Te(qo,{asChild:!0,children:Xo(we,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!p||!(p instanceof Date)&&typeof p=="object"&&(!("from"in p)||!p.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Te("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Sa(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?Te(Xr,{children:p.from?p.to?Xo(Xr,{children:[Te("span",{className:"date-from",children:Sa(p.from,s)})," ",Te("span",{className:"date-separator",children:"-"}),Te("span",{className:"date-to",children:Sa(p.to,s)})]}):Sa(p.from,s):o}):o}),e&&Te("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),Te($c,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Te(ko,{className:"w-auto border-none !p-0",...d,children:Te(Ta,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&Xo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?Te(Wc,{width:16,height:16,className:"text-red-500"}):Te(Gc,{width:16,height:16,className:"text-gray-500"}),Te("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Yc,useState as on}from"react";import{QuestionMarkCircleIcon as Zc,XCircleIcon as Kc}from"@heroicons/react/16/solid";import{isValid as Jc}from"date-fns";import*as at from"react";import{CheckIcon as Qc,ChevronDownIcon as Yr,ChevronUpIcon as Uc,XCircleIcon as qc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Xc}from"@heroicons/react/24/outline";import*as D from"@radix-ui/react-select";import{jsx as U,jsxs as Yo}from"react/jsx-runtime";var Zo=at.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},m)=>Yo("div",{ref:m,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-1 [&>.select-mobase-button]:ring-red-500":"",i===2?"[&>.select-mobase-button]:h-12 [&>.select-mobase-button]:text-base":""),children:[t&&U("span",{className:r("mobase-select-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",i===2&&"-top-2.5 text-sm",n&&"text-red-500"),children:t}),U(D.Root,{disabled:s,...l,children:o}),a&&Yo("div",{className:r("mobase-select-message mt-1 flex items-center space-x-1 text-gray-500",n&&"text-red-500"),children:[n?U(qc,{width:16,height:16}):U(Xc,{width:16,height:16}),U("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Ko=D.Value,Ro=at.forwardRef(({className:e,children:o,...t},a)=>Yo(D.Trigger,{ref:a,className:r("select-mobase-button flex h-11 w-full items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus-visible:border-pink-500 focus-visible:ring-1 focus-visible:!ring-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",e),...t,children:[U("div",{className:"line-clamp-1 text-left",children:o}),U(D.Icon,{asChild:!0,children:U(Yr,{className:"h-4 w-4 flex-none text-gray-500"})})]}));Ro.displayName=D.Trigger.displayName;var Pi=at.forwardRef(({className:e,...o},t)=>U(D.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:U(Uc,{className:"h-5 w-5"})}));Pi.displayName=D.ScrollUpButton.displayName;var Ci=at.forwardRef(({className:e,...o},t)=>U(D.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center bg-gradient-to-t from-white to-transparent py-1",e),...o,children:U(Yr,{className:"h-5 w-5"})}));Ci.displayName=D.ScrollDownButton.displayName;var To=at.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>U(D.Portal,{children:Yo(D.Content,{ref:i,className:r("shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[U(Pi,{}),U(D.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),U(Ci,{})]})}));To.displayName=D.Content.displayName;var Jo=at.forwardRef(({className:e,children:o,...t},a)=>U(D.Group,{ref:a,className:r("relative border-b border-gray-200 p-1 after:w-full last:border-0",e),...t,children:o})),Zr=at.forwardRef(({className:e,...o},t)=>U(D.Label,{ref:t,className:r("z-[1] py-1.5 pl-7 pr-2 text-sm font-semibold",e),...o}));Zr.displayName=D.Label.displayName;var Ht=at.forwardRef(({className:e,children:o,...t},a)=>Yo(D.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[U("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:U(D.ItemIndicator,{children:U(Qc,{className:"h-4 w-4 text-pink-500"})})}),U(D.ItemText,{children:o})]})),Kr=at.forwardRef(({className:e,...o},t)=>U(D.Separator,{ref:t,className:r("-mx-1 my-1 h-px",e),...o}));Kr.displayName=D.Separator.displayName;var Jr=["Th\xE1ng 01","Th\xE1ng 02","Th\xE1ng 03","Th\xE1ng 04","Th\xE1ng 05","Th\xE1ng 06","Th\xE1ng 07","Th\xE1ng 08","Th\xE1ng 09","Th\xE1ng 10","Th\xE1ng 11","Th\xE1ng 12"],en=["January","February","March","April","May","June","July","August","September","October","November","December"],ki=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},tn=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,l)=>n-l)};import{jsx as oe,jsxs as it}from"react/jsx-runtime";var ed=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:c=1900,toYear:d=new Date().getFullYear(),disableUnselect:p=!1})=>{let[g,x]=on(o??null),N=Math.min(c,d),T=Math.max(c,d),C=l==="MM/yyyy",V=(h,X)=>{if(X===0){x(void 0),t?.(void 0);return}let F=g?.getFullYear()||new Date().getFullYear(),uo=g?.getMonth()??0,qt=g?.getDate()??1;h==="month"&&X!==null&&(uo=X-1),h==="year"&&X!==null&&(F=X),C?qt=1:h==="day"&&X!==null&&(qt=X);let wr=ki(F,uo+1).daysInMonth;qt>wr&&(qt=1);let Bo=new Date(F,uo,qt);Jc(Bo)&&(x(Bo),t?.(Bo))},[$,H]=on(!1),Xe=h=>{H(h)};return Yc(()=>{x(o??null)},[o]),it("div",{className:r("relative",s&&"cursor-no-drop"),children:[it("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",$&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",g?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&oe("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),it("div",{className:"flex h-full flex-row divide-x",children:[!C&&it(Zo,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:h=>V("day",parseInt(h,10)),onOpenChange:Xe,className:"w-[30%]",children:[oe(Ro,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(Ko,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),oe(To,{onCloseAutoFocus:h=>h.preventDefault(),children:it(Jo,{children:[!p&&oe(Ht,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:ki(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(h,X)=>(X+1).toString().padStart(2,"0")).map(h=>oe(Ht,{value:h,children:h},h))]})})]}),it(Zo,{value:g?(g.getMonth()+1).toString():"",onValueChange:h=>V("month",parseInt(h,10)),onOpenChange:Xe,className:r(C?"w-1/2":"w-2/5"),children:[oe(Ro,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(Ko,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),oe(To,{onCloseAutoFocus:h=>h.preventDefault(),children:it(Jo,{children:[!p&&oe(Ht,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(h,X)=>X+1).map(h=>oe(Ht,{value:h.toString(),children:m==="vi"?Jr[h-1]:en[h-1]},h))]})})]}),it(Zo,{value:g?g.getFullYear().toString():"",onValueChange:h=>V("year",parseInt(h,10)),onOpenChange:Xe,className:r(C?"w-1/2":"w-[30%]"),children:[oe(Ro,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(Ko,{placeholder:m==="vi"?"N\u0103m":"Year"})}),oe(To,{onCloseAutoFocus:h=>h.preventDefault(),children:it(Jo,{children:[!p&&oe(Ht,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),tn(N,T).map(h=>oe(Ht,{value:h.toString(),children:h},h))]})})]})]})]}),i&&it("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?oe(Kc,{width:16,height:16,className:"text-red-500"}):oe(Zc,{width:16,height:16,className:"text-gray-500"}),oe("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};import*as Jt from"react";import*as G from"@radix-ui/react-alert-dialog";import{jsx as Rt,jsxs as ad}from"react/jsx-runtime";var td=G.Root,od=G.Trigger,an=G.Portal,Ri=Jt.forwardRef(({className:e,...o},t)=>Rt(G.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));Ri.displayName=G.Overlay.displayName;var rn=Jt.forwardRef(({className:e,...o},t)=>ad(an,{children:[Rt(Ri,{}),Rt(G.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));rn.displayName=G.Content.displayName;var nn=({className:e,...o})=>Rt("div",{className:r("flex flex-col space-y-2 text-left",e),...o});nn.displayName="AlertDialogHeader";var sn=({className:e,...o})=>Rt("div",{className:r("flex flex-row justify-end space-x-4",e),...o});sn.displayName="AlertDialogFooter";var ln=Jt.forwardRef(({className:e,...o},t)=>Rt(G.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));ln.displayName=G.Title.displayName;var mn=Jt.forwardRef(({className:e,...o},t)=>Rt(G.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));mn.displayName=G.Description.displayName;var cn=Jt.forwardRef(({className:e,...o},t)=>Rt(G.Action,{ref:t,className:r(Ze({variant:"primary"}),"",e),...o}));cn.displayName=G.Action.displayName;var dn=Jt.forwardRef(({className:e,...o},t)=>Rt(G.Cancel,{ref:t,className:r(Ze({variant:"secondary"}),e),...o}));dn.displayName=G.Cancel.displayName;import{memo as pd,useState as fd}from"react";import{useEffect as id,useState as fn}from"react";import{motion as rd}from"motion/react";import*as pn from"@radix-ui/react-aspect-ratio";var E=pn.Root;import{Fragment as un,jsx as ae,jsxs as ea}from"react/jsx-runtime";var nd=({guideGroup:e,mockup:o})=>{let[t,a]=fn(),[i,n]=fn(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return id(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),ae(un,{children:e?.stepList&&e?.stepList?.length>0&&ea("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[ae("div",{className:"h-auto w-64 flex-none",children:ea("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&ea(un,{children:[ae("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),ae("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:ea(ge,{setApi:a,children:[ae(ve,{className:"ml-0",children:e?.stepList.map((l,m)=>ae(de,{className:"pl-0",children:ae(E,{ratio:o==="small"?540/960:540/1168,children:l?.image&&ae("img",{src:l.image,className:"size-full object-contain",alt:l.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":"0","data-puck-array-field":"stepList","data-puck-array-index-nested":m?.toString()??"","data-puck-nested-field":"image"})})},m))}),ae(wo,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),ae(No,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),ae("div",{className:"flex flex-auto pl-12 pt-4",children:ae("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>ea("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",m+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[ae("div",{className:r("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),ae("div",{className:r("text-sm font-medium",m+1===i?"text-pink-500":"text-gray-900"),children:u(l.title)}),l.content&&ae(rd.div,{initial:"closed",animate:m+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:ae("div",{className:"mt-3 text-sm text-gray-700",children:u(l.content)})})]},m))})})]})})},Ti=nd;import{useEffect as sd,useRef as ld,useState as Da}from"react";import{ChevronRightIcon as gn}from"@heroicons/react/20/solid";import md from"embla-carousel-autoplay";import{Fragment as Si,jsx as P,jsxs as Pe}from"react/jsx-runtime";var cd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=Da(0),[s,l]=Da();return sd(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:P(Re,{open:e,onOpenChange:o,children:Pe(Ne,{position:"bottom",height:"full",children:[P(Lt,{children:P(zt,{className:"line-clamp-1",children:t?.title})}),Pe(ze,{className:"grid overflow-hidden p-0",children:[P(ge,{setApi:l,className:"grid overflow-hidden",children:P(ve,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>P(de,{className:"h-full w-full pl-0",children:Pe("div",{className:"flex h-full flex-col overflow-y-auto",children:[P("div",{className:"relative flex w-full flex-none justify-center bg-gray-100 p-5",children:P("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:Pe("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&Pe(Si,{children:[P("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),P("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),P("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),P("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),P("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:P(E,{ratio:a==="small"?540/960:540/1168,children:m?.image&&P("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),Pe("div",{className:"p-5 pb-12",children:[P("div",{className:"font-semibold",children:u(m.title)}),m?.content&&P("div",{className:"mt-3 text-sm text-gray-800",children:u(m.content)})]})]})},c))})}),P("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((m,c)=>P("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},dd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=Da(!1),[n,s]=Da(null),l=ld(md({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),i(!0)};return e?.length===0?null:Pe(Si,{children:[e?.length>1?P("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>Pe("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5",onClick:()=>m(d),children:[P("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(c?.avatar||c?.stepList?.[0]?.image)&&P("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":d,"data-puck-nested-field":"avatar"})}),Pe("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8",d+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[Pe("div",{className:"py-2",children:[t&&P("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),P("div",{className:"font-semibold",children:u(c.title)}),c?.description&&P("div",{className:"mt-1 text-sm text-gray-500",children:u(c.description)})]}),P("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:P(gn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&Pe("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[P("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:P("div",{className:"mx-auto h-auto w-72",children:Pe("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&Pe(Si,{children:[P("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),P("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),P("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),P("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),P("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:P(ge,{plugins:[l.current],children:P(ve,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>P(de,{className:"pl-0",onClick:()=>m(0),children:P(E,{ratio:o==="small"?540/960:540/1168,children:c?.image&&P("img",{src:c.image,className:"size-full object-contain",alt:c.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":0,"data-puck-array-field":"stepList","data-puck-array-index-nested":d?d?.toString():"","data-puck-nested-field":"image"})})},d))})})})]})})}),P("div",{className:"flex w-full flex-none justify-center",children:Pe(re,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",P(gn,{className:"ml-1 h-5 w-5"})]})})]}),a&&P(cd,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},vn=dd;import{Fragment as ud,jsx as pe,jsxs as ta}from"react/jsx-runtime";var hn=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return pe("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:pe("path",{d:t.d,fill:"currentColor"})})},Di=pd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=fd(t?.[0]?.title||"");return ta(ud,{children:[e&&pe(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&ta(vo,{children:[pe(Ye,{lessThan:"md",children:pe(vn,{dataGuide:t,mockup:i,isStep:n})}),pe(Ye,{greaterThan:"sm",children:t?.length>1?ta(Ct,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[ta(yt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[pe(wt,{className:"mb-6 text-center",children:pe(Ke,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,g)=>{let x=g===t.length-1,N=c===p?.title||"";return ta(Je,{value:p.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",N&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&pe(hn,{direction:"left",className:r("right-full top-0",N?"text-pink-500":"text-pink-100")}),p.title,n&&!x&&pe(hn,{direction:"right",className:r("left-full top-0",N?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),pe(Nt,{}),pe(Pt,{})]}),t.map((p,g)=>pe(et,{value:p.title,children:pe(Ti,{guideGroup:p,mockup:i})},p.title+g))]}):t?.length===1&&t[0]&&pe(Ti,{guideGroup:t[0],mockup:i})})]}),a&&pe(y,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as xd,jsx as oa}from"react/jsx-runtime";var gd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return oa(Di,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return oa(Di,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},vd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>oa(xd,{children:gd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),hd=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>oa(B,{className:r(n),background:s,idSection:e,children:oa(vd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:m,isStep:c})});import{useState as xn}from"react";import{Fragment as Mi,jsx as z,jsxs as Tt}from"react/jsx-runtime";var bn="text-xs font-medium md:text-sm",bd=({gift:e,onOpenModal:o,index:t})=>{let a=!!e.useModal,i=!!e.btnLink?.trim(),n=e.btnName||"Xem chi ti\u1EBFt",s=l=>{l.stopPropagation(),o(e)};return z("div",{className:"w-full px-2.5 md:w-1/2 lg:w-1/3",children:Tt("div",{className:r("relative h-full rounded-xl border border-gray-200 bg-white p-2 transition-all duration-300",e.isFeatured&&"border-pink-500",a&&"cursor-pointer ring-inset hover:border-pink-500 hover:shadow-lg hover:shadow-pink-500/20 hover:ring-1 hover:ring-pink-500"),role:a?"button":void 0,tabIndex:a?0:void 0,onClick:()=>a&&o(e),children:[e.tag&&Tt("span",{className:"absolute -top-2 right-2 z-10 inline-flex",children:[z("span",{className:"rounded-bl-md rounded-br-md bg-red-600 px-2 py-0.5 text-xs font-semibold uppercase text-white shadow-sm",children:u(e.tag)}),z("span",{"aria-hidden":!0,className:"absolute right-full top-0 h-0 w-0 border-r-8 border-t-8 border-r-red-800 border-t-transparent"})]}),Tt("div",{className:"relative z-10 flex h-full flex-row items-stretch gap-3",children:[e.thumbnail&&z("div",{className:"w-28 flex-none shrink-0 md:w-32",children:z(E,{ratio:1,className:"w-full",children:z("img",{src:e.thumbnail,alt:e.title||"Gift image",className:"h-full w-full rounded-md object-contain","data-puck-editable":"true","data-puck-component":"GiftListSection","data-puck-field":"dataGiftList","data-puck-array-index":t,"data-puck-nested-field":"thumbnail"})})}),Tt("div",{className:"flex min-w-0 flex-1 flex-col",children:[Tt("div",{className:"flex-1",children:[e.serviceName?z("span",{className:"mb-1.5 mt-1 block text-xs font-medium text-gray-700 md:mb-2",children:u(e.serviceName)}):z(Mi,{}),z("h3",{className:"text-base font-semibold text-gray-900 md:text-lg",children:u(e.title)}),e.description&&z("p",{className:"line-clamp-2 text-sm text-gray-600",children:u(e.description)})]}),z("div",{className:"mt-auto flex flex-none justify-end pt-1 md:pt-2",children:n&&(i?z(re,{variant:"primary",className:bn,asChild:!0,children:z("a",{href:e.btnLink,target:e.newTab?"_blank":"_self",rel:"noreferrer",onClick:l=>l.stopPropagation(),children:n})}):z(re,{variant:"primary",size:"default",className:bn,type:"button",onClick:s,children:n}))})]})]})]})})},Ma=({dataHeading:e,dataButtons:o,dataGiftList:t})=>{let[a,i]=xn(null),[n,s]=xn(!1),l=m=>{i(m),s(!0)};return Tt(Mi,{children:[e&&z(b,{align:e.align||"center",tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),t&&t.length>0&&z("div",{className:"-mx-2.5 mt-8 flex flex-wrap justify-center gap-y-5 md:mt-10",children:t.map((m,c)=>z(bd,{gift:m,onOpenModal:l,index:c},c))}),o&&z(y,{isFullInMobile:o.isFullInMobile,buttons:o.buttons,className:o.className,align:o.align||"center"}),n&&z(Re,{open:n,onOpenChange:s,children:Tt(Ne,{size:"lg",position:"bottom",children:[z(Lt,{children:z(zt,{children:"Th\xF4ng tin chi ti\u1EBFt th\u1EBB qu\xE0"})}),Tt(ze,{children:[Tt("div",{className:"text-center",children:[a?.serviceName&&z("span",{className:"mb-1 block text-xs font-medium text-gray-500",children:u(a.serviceName)}),a?.title&&z("h3",{className:"text-xl font-bold md:text-2xl",children:u(a.title)}),a?.description&&z("p",{className:"mt-1 text-sm text-gray-700",children:u(a.description||"")})]}),a?.content?z("div",{className:"prose prose-sm mt-6 max-w-none",children:u(a.content)}):z(Mi,{})]}),z(ya,{children:z(we,{variant:"primary",size:"default",onClick:()=>s(!1),children:"\u0110\xF3ng"})})]})})]})};import{jsx as Ii}from"react/jsx-runtime";var yd=({template:e,dataHeading:o,dataButtons:t,dataGiftList:a})=>{switch(e){case 1:return Ii(Ma,{dataHeading:o,dataButtons:t,dataGiftList:a});default:return Ii(Ma,{dataHeading:o,dataButtons:t,dataGiftList:a})}},wd=({template:e=1,className:o,idSection:t,background:a,dataHeading:i,dataButtons:n,dataGiftList:s})=>Ii(B,{idSection:t,className:o,background:a,children:yd({template:e,dataHeading:i,dataButtons:n,dataGiftList:s})});import{ChevronLeft as Nd,ChevronRight as Pd}from"lucide-react";import{Fragment as Cd,jsx as He,jsxs as yn}from"react/jsx-runtime";function wn({current:e,total:o,onChange:t}){let a=i=>He("li",{children:He("button",{className:r(Kt({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return He("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:yn("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&He("li",{children:He("button",{className:r(Kt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:He(Nd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):yn(Cd,{children:[a(1),e===1&&[a(2),a(3)],e>3&&He("li",{children:He("button",{className:r(Kt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&He("button",{className:r(Kt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&He("li",{children:He("button",{className:r(Kt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:He(Pd,{className:"h-4 w-4"})})})]})})}import{forwardRef as kd}from"react";import{QuestionMarkCircleIcon as Rd}from"@heroicons/react/24/outline";import{XCircleIcon as Td}from"@heroicons/react/24/solid";import{jsx as So,jsxs as Nn}from"react/jsx-runtime";var Sd=kd(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...m},c)=>Nn("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&So("span",{className:r("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),So("textarea",{disabled:e,ref:c,className:r("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...m}),t&&Nn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?So(Td,{width:16,height:16,className:"text-red-500"}):So(Rd,{width:16,height:16,className:"text-gray-500"}),So("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),So("style",{children:`
71
71
  .mobase-text-area-box:hover {
72
72
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
73
73
  }
@@ -94,7 +94,7 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
94
94
  color: rgb(var(--mobase-red-500) / 1);
95
95
  }
96
96
  }
97
- `})]}));import*as Aa from"react";var Td=1,Sd=1e6;var Ii=0;function Dd(){return Ii=(Ii+1)%Number.MAX_SAFE_INTEGER,Ii.toString()}var Ai=new Map,wn=e=>{if(Ai.has(e))return;let o=setTimeout(()=>{Ai.delete(e),ea({type:"REMOVE_TOAST",toastId:e})},Sd);Ai.set(e,o)},Md=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Td)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===o.toast.id?{...t,...o.toast}:t)};case"DISMISS_TOAST":{let{toastId:t}=o;return t?wn(t):e.toasts.forEach(a=>{wn(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===t||t===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return o.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(t=>t.id!==o.toastId)};default:return e}},Ma=[],Ia={toasts:[]};function ea(e){Ia=Md(Ia,e),Ma.forEach(o=>{o(Ia)})}function Nn({...e}){let o=Dd(),t=i=>ea({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>ea({type:"DISMISS_TOAST",toastId:o});return ea({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function Li(){let[e,o]=Aa.useState(Ia);return Aa.useEffect(()=>(Ma.push(o),()=>{let t=Ma.indexOf(o);t>-1&&Ma.splice(t,1)}),[e]),{...e,toast:Nn,dismiss:t=>ea({type:"DISMISS_TOAST",toastId:t})}}import*as Jt from"react";import{CheckCircleIcon as Id,ExclamationTriangleIcon as Ad,InformationCircleIcon as Ld,XMarkIcon as zd}from"@heroicons/react/20/solid";import*as Z from"@radix-ui/react-toast";import{cva as Ed}from"class-variance-authority";import{jsx as Tt,jsxs as Pn}from"react/jsx-runtime";var Cn=Z.Provider,zi=Jt.forwardRef(({className:e,...o},t)=>Tt(Z.Viewport,{ref:t,className:r("fixed bottom-0 left-0 z-[300] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));zi.displayName=Z.Viewport.displayName;var Hd=Ed("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),Ei=Jt.forwardRef(({className:e,variant:o="success",children:t,...a},i)=>Pn(Z.Root,{ref:i,className:r(Hd({variant:o}),e),...a,children:[Pn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&Tt(Id,{className:"h-5 w-5 text-green-500"}),o==="warning"&&Tt(Ad,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&Tt(Ld,{className:"h-5 w-5 text-red-500"})]}),t]}));Ei.displayName=Z.Root.displayName;var kn=Jt.forwardRef(({className:e,...o},t)=>Tt(Z.Action,{ref:t,className:r("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));kn.displayName=Z.Action.displayName;var Hi=Jt.forwardRef(({className:e,...o},t)=>Tt(Z.Close,{ref:t,className:r("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:Tt(zd,{className:"h-5 w-5"})}));Hi.displayName=Z.Close.displayName;var _i=Jt.forwardRef(({className:e,...o},t)=>Tt(Z.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));_i.displayName=Z.Title.displayName;var Fi=Jt.forwardRef(({className:e,...o},t)=>Tt(Z.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));Fi.displayName=Z.Description.displayName;import{jsx as La,jsxs as Bi}from"react/jsx-runtime";function _d(){let{toasts:e}=Li();return Bi(Cn,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return Bi(Ei,{...n,children:[Bi("div",{className:"grid gap-2",children:[t&&La(_i,{children:t}),a&&La(Fi,{children:a})]}),i,La(Hi,{})]},o)}),La(zi,{})]})}import*as Oi from"react";import*as _e from"@radix-ui/react-tooltip";import{jsx as Sn}from"react/jsx-runtime";var Fd=_e.Provider,Bd=_e.Root,Od=_e.Trigger,Rn=Oi.forwardRef((e,o)=>Sn(_e.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));Rn.displayName=_e.Arrow.displayName;var Tn=Oi.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>Sn(_e.Content,{ref:i,sideOffset:t,className:r("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));Tn.displayName=_e.Content.displayName;import{forwardRef as Vd,useEffect as Gd,useRef as Wd,useState as $d}from"react";import{QuestionMarkCircleIcon as jd,XCircleIcon as Qd,XCircleIcon as Ud}from"@heroicons/react/16/solid";import{jsx as Ht,jsxs as Vi}from"react/jsx-runtime";var qd=Vd(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:c,onClickClear:d,value:p,defaultValue:g,type:h="text",...w},T)=>{let[C,z]=$d(!1),W=Wd(null),_=U=>{U&&!C&&z(!0),!U&&C&&z(!1)},Ut=U=>{s&&_(U.target.value),m?.(U)},k=U=>{s&&_(U.target.value),c?.(U)},ne=()=>{let U=W.current?.querySelector("input");U&&(d?.(U.value),U.value="",U.focus(),z(!1))};return Gd(()=>{_(g||p)},[p,g]),Vi("div",{className:r(i,o&&"mobase-text-input-error"),ref:W,children:[Vi("div",{className:"relative",children:[a&&Ht("span",{className:r("mobase-text-input-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),Ht("input",{disabled:e,type:h,ref:T,className:r("mobase-text-input-box block h-11 w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",l===2&&"h-12 text-base",n),onChange:Ut,onFocus:k,value:p,defaultValue:g,...w}),s&&C&&Ht("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 shrink-0 -translate-y-1/2 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:ne,children:Ht(Qd,{strokeWidth:2,width:20,height:20})})]}),t&&Vi("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?Ht(Ud,{width:16,height:16,className:"text-red-500"}):Ht(jd,{width:16,height:16,className:"text-gray-500"}),Ht("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),Ht("style",{children:`
97
+ `})]}));import*as La from"react";var Dd=1,Md=1e6;var Ai=0;function Id(){return Ai=(Ai+1)%Number.MAX_SAFE_INTEGER,Ai.toString()}var Li=new Map,Pn=e=>{if(Li.has(e))return;let o=setTimeout(()=>{Li.delete(e),aa({type:"REMOVE_TOAST",toastId:e})},Md);Li.set(e,o)},Ad=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Dd)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===o.toast.id?{...t,...o.toast}:t)};case"DISMISS_TOAST":{let{toastId:t}=o;return t?Pn(t):e.toasts.forEach(a=>{Pn(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===t||t===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return o.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(t=>t.id!==o.toastId)};default:return e}},Ia=[],Aa={toasts:[]};function aa(e){Aa=Ad(Aa,e),Ia.forEach(o=>{o(Aa)})}function Cn({...e}){let o=Id(),t=i=>aa({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>aa({type:"DISMISS_TOAST",toastId:o});return aa({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function zi(){let[e,o]=La.useState(Aa);return La.useEffect(()=>(Ia.push(o),()=>{let t=Ia.indexOf(o);t>-1&&Ia.splice(t,1)}),[e]),{...e,toast:Cn,dismiss:t=>aa({type:"DISMISS_TOAST",toastId:t})}}import*as eo from"react";import{CheckCircleIcon as Ld,ExclamationTriangleIcon as zd,InformationCircleIcon as Ed,XMarkIcon as Hd}from"@heroicons/react/20/solid";import*as K from"@radix-ui/react-toast";import{cva as _d}from"class-variance-authority";import{jsx as St,jsxs as kn}from"react/jsx-runtime";var Rn=K.Provider,Ei=eo.forwardRef(({className:e,...o},t)=>St(K.Viewport,{ref:t,className:r("fixed bottom-0 left-0 z-[300] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));Ei.displayName=K.Viewport.displayName;var Fd=_d("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),Hi=eo.forwardRef(({className:e,variant:o="success",children:t,...a},i)=>kn(K.Root,{ref:i,className:r(Fd({variant:o}),e),...a,children:[kn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&St(Ld,{className:"h-5 w-5 text-green-500"}),o==="warning"&&St(zd,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&St(Ed,{className:"h-5 w-5 text-red-500"})]}),t]}));Hi.displayName=K.Root.displayName;var Tn=eo.forwardRef(({className:e,...o},t)=>St(K.Action,{ref:t,className:r("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));Tn.displayName=K.Action.displayName;var _i=eo.forwardRef(({className:e,...o},t)=>St(K.Close,{ref:t,className:r("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:St(Hd,{className:"h-5 w-5"})}));_i.displayName=K.Close.displayName;var Fi=eo.forwardRef(({className:e,...o},t)=>St(K.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));Fi.displayName=K.Title.displayName;var Bi=eo.forwardRef(({className:e,...o},t)=>St(K.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));Bi.displayName=K.Description.displayName;import{jsx as za,jsxs as Oi}from"react/jsx-runtime";function Bd(){let{toasts:e}=zi();return Oi(Rn,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return Oi(Hi,{...n,children:[Oi("div",{className:"grid gap-2",children:[t&&za(Fi,{children:t}),a&&za(Bi,{children:a})]}),i,za(_i,{})]},o)}),za(Ei,{})]})}import*as Vi from"react";import*as _e from"@radix-ui/react-tooltip";import{jsx as Mn}from"react/jsx-runtime";var Od=_e.Provider,Vd=_e.Root,Gd=_e.Trigger,Sn=Vi.forwardRef((e,o)=>Mn(_e.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));Sn.displayName=_e.Arrow.displayName;var Dn=Vi.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>Mn(_e.Content,{ref:i,sideOffset:t,className:r("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));Dn.displayName=_e.Content.displayName;import{forwardRef as Wd,useEffect as $d,useRef as jd,useState as Qd}from"react";import{QuestionMarkCircleIcon as Ud,XCircleIcon as qd,XCircleIcon as Xd}from"@heroicons/react/16/solid";import{jsx as _t,jsxs as Gi}from"react/jsx-runtime";var Yd=Wd(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:c,onClickClear:d,value:p,defaultValue:g,type:x="text",...N},T)=>{let[C,V]=Qd(!1),$=jd(null),H=F=>{F&&!C&&V(!0),!F&&C&&V(!1)},Xe=F=>{s&&H(F.target.value),m?.(F)},h=F=>{s&&H(F.target.value),c?.(F)},X=()=>{let F=$.current?.querySelector("input");F&&(d?.(F.value),F.value="",F.focus(),V(!1))};return $d(()=>{H(g||p)},[p,g]),Gi("div",{className:r(i,o&&"mobase-text-input-error"),ref:$,children:[Gi("div",{className:"relative",children:[a&&_t("span",{className:r("mobase-text-input-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),_t("input",{disabled:e,type:x,ref:T,className:r("mobase-text-input-box block h-11 w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",l===2&&"h-12 text-base",n),onChange:Xe,onFocus:h,value:p,defaultValue:g,...N}),s&&C&&_t("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 shrink-0 -translate-y-1/2 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:X,children:_t(qd,{strokeWidth:2,width:20,height:20})})]}),t&&Gi("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?_t(Xd,{width:16,height:16,className:"text-red-500"}):_t(Ud,{width:16,height:16,className:"text-gray-500"}),_t("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),_t("style",{children:`
98
98
  .mobase-text-input-box:hover {
99
99
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
100
100
  }
@@ -117,30 +117,30 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});import{MinusCircleIcon as Xd,PlusCircleIcon as Yd}from"@heroicons/react/24/outline";import{forwardRef as Zd,useState as Kd}from"react";import{jsx as ta,jsxs as Gi}from"react/jsx-runtime";var Dn=Zd(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[p,g]=Kd(i),h=()=>{let C=Math.min(p+a,t);g(C),n?.(C),l?.(C)},w=()=>{let C=Math.max(p-a,o);g(C),n?.(C),s?.(C)},T=C=>{let z=parseFloat(C.target.value);if(!isNaN(z)){let W=Math.max(Math.min(z,t),o);g(W),n?.(W)}};return Gi("div",{ref:d,className:r("flex items-center ",e),children:[Gi(se,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:w,disabled:m||p<=o,children:[ta(Xd,{className:"w-7 h-7 "}),ta("span",{className:"sr-only",children:"Decrease value"})]}),ta("input",{type:"number",value:p,onChange:T,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:m,...c}),Gi(se,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:h,disabled:m||p>=t,children:[ta(Yd,{className:"w-7 h-7 "}),ta("span",{className:"sr-only",children:"Increase value"})]})]})});Dn.displayName="Stepper";import*as je from"react";import*as q from"@radix-ui/react-navigation-menu";import{cva as Jd}from"class-variance-authority";import{ChevronDownIcon as ep}from"@heroicons/react/16/solid";import{jsx as it,jsxs as rp}from"react/jsx-runtime";var Mn=je.createContext(null),tp=({value:e,children:o})=>it(Mn.Provider,{value:e,children:o}),op=()=>{let e=je.useContext(Mn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},za=je.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>it(tp,{value:{alignDropdown:t},children:it(q.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));za.displayName=q.Root.displayName;var Ea=je.forwardRef(({className:e,...o},t)=>it(q.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ea.displayName=q.List.displayName;var Ha=q.Item,_a=Jd(Ye({variant:"transparent",size:"sm"})),Fa=je.forwardRef(({className:e,children:o,...t},a)=>rp(q.Trigger,{ref:a,className:r(_a(),"group px-2",e),...t,children:[o," ",it(ep,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Fa.displayName=q.Trigger.displayName;var Ba=je.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=op();return it(q.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Ba.displayName=q.Content.displayName;var oa=q.Link,ap=je.forwardRef(({className:e,...o},t)=>it("div",{className:r("absolute left-0 top-full flex justify-center"),children:it(q.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));ap.displayName=q.Viewport.displayName;var ip=je.forwardRef(({className:e,...o},t)=>it(q.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:it("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));ip.displayName=q.Indicator.displayName;import*as An from"react";import*as aa from"@radix-ui/react-switch";import{jsx as In}from"react/jsx-runtime";var Ln=An.forwardRef(({className:e,...o},t)=>In(aa.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:In(aa.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Ln.displayName=aa.Root.displayName;import*as eo from"react";import*as _t from"@radix-ui/react-radio-group";import{Circle as np}from"lucide-react";import{cva as zn}from"class-variance-authority";import{jsx as ia}from"react/jsx-runtime";var sp=zn("aspect-square rounded-full border-2 border-gray-300 disabled:bg-gray-100 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-400 data-[state=checked]:bg-pink-500 data-[state=checked]:border-none ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default peer",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),lp=zn("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),En=eo.createContext({size:"medium"});function mp(){let e=eo.useContext(En);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Hn=eo.forwardRef(({className:e,size:o,...t},a)=>ia(En.Provider,{value:{size:o},children:ia(_t.Root,{className:r("grid gap-2",e),...t,ref:a})}));Hn.displayName=_t.Root.displayName;var _n=eo.forwardRef(({className:e,...o},t)=>{let a=mp(),{size:i}=a??{};return ia(_t.Item,{ref:t,className:r(sp({size:i}),e),...o,children:ia(_t.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:ia(np,{className:r(lp({size:i}))})})})});_n.displayName=_t.Item.displayName;import{useState as kp}from"react";import{ArrowDownTrayIcon as Rp}from"@heroicons/react/16/solid";import{useEffect as gp,useState as Vn}from"react";import{AnimatePresence as vp,domAnimation as hp,LazyMotion as xp,motion as Wi}from"motion/react";import{useKey as bp}from"react-use";var Oa=[.24,.25,.05,1];import{motion as dp}from"motion/react";import{jsx as ra,jsxs as Fn}from"react/jsx-runtime";var cp=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return ra("li",{className:"min-h-8",children:Fn("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&ra("div",{className:"w-6 h-6 shrink-0",children:ra("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),Fn("div",{className:" ",children:[ra("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&ra("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Bn=cp;import{jsx as to,jsxs as up}from"react/jsx-runtime";var pp={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Oa}},exit:{opacity:0,transition:{duration:.05}}},fp=({data:e})=>to(ft,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return to(dp.div,{variants:pp,children:o.hasDropdown?up(ut,{value:o.id,children:[to(gt,{className:"py-3",children:o.title}),to(vt,{children:to("ul",{className:r("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>to(Bn,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):to("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),On=fp;import{jsx as I,jsxs as he}from"react/jsx-runtime";var yp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,wp=({data:e,className:o})=>{let[t,a]=Vn(!1),[i,n]=Vn(!1);bp("Escape",()=>a(!1)),gp(()=>{if(!t)return;let m=yp();function c(){a(!1)}function d(){a(!1),n(!0)}function p(T){let C=T.target;((C.closest&&C.closest("a"))?.getAttribute("href")||C.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let g=()=>{c()},h=history.pushState,w=history.replaceState;return history.pushState=((...T)=>{let C=h.apply(history,T);return g(),C}),history.replaceState=((...T)=>{let C=w.apply(history,T);return g(),C}),window.addEventListener("popstate",g),window.addEventListener("hashchange",d),window.addEventListener("click",p,!0),()=>{i||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),history.pushState=h,history.replaceState=w,window.removeEventListener("popstate",g),window.removeEventListener("hashchange",d),window.removeEventListener("click",p,!0)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Oa}},exit:{opacity:0,transition:{duration:.15}}};return he("div",{className:r(o),children:[he("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[I("span",{className:"sr-only",children:"Navigation"}),I(Wi.div,{animate:t?"hidden":"visible",variants:s,children:I("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),I(Wi.div,{animate:t?"visible":"hidden",variants:s,children:I("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),I(xp,{features:hp,children:I(vp,{mode:"wait",children:t&&he(Wi.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[I(On,{data:e}),he("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),he("div",{className:"flex flex-nowrap",children:[I("div",{className:"flex-initial",children:I("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:I("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),I("div",{className:"ml-3 flex-initial",children:I("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:I("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),he("ul",{className:"mb-2 text-sm text-gray-500",children:[he("li",{className:"mb-1",children:["Hotline :\xA0",I("a",{href:`tel:${pt.Support.Hotline}`,className:"text-gray-600",children:pt.Support.Hotline_Format})]}),he("li",{className:"mb-1",children:["Email :\xA0",I("a",{href:`mailto:${pt.Support.Email}`,className:"text-gray-600",children:pt.Support.Email})]})]}),I("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:he("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[I("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:I("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:he("g",{children:[I("title",{children:"Asset 1"}),I("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
120
+ `})]})});import{MinusCircleIcon as Zd,PlusCircleIcon as Kd}from"@heroicons/react/24/outline";import{forwardRef as Jd,useState as ep}from"react";import{jsx as ia,jsxs as Wi}from"react/jsx-runtime";var In=Jd(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[p,g]=ep(i),x=()=>{let C=Math.min(p+a,t);g(C),n?.(C),l?.(C)},N=()=>{let C=Math.max(p-a,o);g(C),n?.(C),s?.(C)},T=C=>{let V=parseFloat(C.target.value);if(!isNaN(V)){let $=Math.max(Math.min(V,t),o);g($),n?.($)}};return Wi("div",{ref:d,className:r("flex items-center ",e),children:[Wi(se,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:N,disabled:m||p<=o,children:[ia(Zd,{className:"w-7 h-7 "}),ia("span",{className:"sr-only",children:"Decrease value"})]}),ia("input",{type:"number",value:p,onChange:T,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:m,...c}),Wi(se,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:x,disabled:m||p>=t,children:[ia(Kd,{className:"w-7 h-7 "}),ia("span",{className:"sr-only",children:"Increase value"})]})]})});In.displayName="Stepper";import*as je from"react";import*as q from"@radix-ui/react-navigation-menu";import{cva as tp}from"class-variance-authority";import{ChevronDownIcon as op}from"@heroicons/react/16/solid";import{jsx as rt,jsxs as sp}from"react/jsx-runtime";var An=je.createContext(null),ap=({value:e,children:o})=>rt(An.Provider,{value:e,children:o}),ip=()=>{let e=je.useContext(An);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Ea=je.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>rt(ap,{value:{alignDropdown:t},children:rt(q.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Ea.displayName=q.Root.displayName;var Ha=je.forwardRef(({className:e,...o},t)=>rt(q.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ha.displayName=q.List.displayName;var _a=q.Item,Fa=tp(Ze({variant:"transparent",size:"sm"})),Ba=je.forwardRef(({className:e,children:o,...t},a)=>sp(q.Trigger,{ref:a,className:r(Fa(),"group px-2",e),...t,children:[o," ",rt(op,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Ba.displayName=q.Trigger.displayName;var Oa=je.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=ip();return rt(q.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Oa.displayName=q.Content.displayName;var ra=q.Link,rp=je.forwardRef(({className:e,...o},t)=>rt("div",{className:r("absolute left-0 top-full flex justify-center"),children:rt(q.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));rp.displayName=q.Viewport.displayName;var np=je.forwardRef(({className:e,...o},t)=>rt(q.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:rt("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));np.displayName=q.Indicator.displayName;import*as zn from"react";import*as na from"@radix-ui/react-switch";import{jsx as Ln}from"react/jsx-runtime";var En=zn.forwardRef(({className:e,...o},t)=>Ln(na.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Ln(na.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));En.displayName=na.Root.displayName;import*as to from"react";import*as Ft from"@radix-ui/react-radio-group";import{Circle as lp}from"lucide-react";import{cva as Hn}from"class-variance-authority";import{jsx as sa}from"react/jsx-runtime";var mp=Hn("aspect-square rounded-full border-2 border-gray-300 disabled:bg-gray-100 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-400 data-[state=checked]:bg-pink-500 data-[state=checked]:border-none ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default peer",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),cp=Hn("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),_n=to.createContext({size:"medium"});function dp(){let e=to.useContext(_n);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Fn=to.forwardRef(({className:e,size:o,...t},a)=>sa(_n.Provider,{value:{size:o},children:sa(Ft.Root,{className:r("grid gap-2",e),...t,ref:a})}));Fn.displayName=Ft.Root.displayName;var Bn=to.forwardRef(({className:e,...o},t)=>{let a=dp(),{size:i}=a??{};return sa(Ft.Item,{ref:t,className:r(mp({size:i}),e),...o,children:sa(Ft.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:sa(lp,{className:r(cp({size:i}))})})})});Bn.displayName=Ft.Item.displayName;import{useState as Tp}from"react";import{ArrowDownTrayIcon as Sp}from"@heroicons/react/16/solid";import{useEffect as hp,useState as Wn}from"react";import{AnimatePresence as xp,domAnimation as bp,LazyMotion as yp,motion as $i}from"motion/react";import{useKey as wp}from"react-use";var Va=[.24,.25,.05,1];import{motion as fp}from"motion/react";import{jsx as la,jsxs as On}from"react/jsx-runtime";var pp=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return la("li",{className:"min-h-8",children:On("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&la("div",{className:"w-6 h-6 shrink-0",children:la("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),On("div",{className:" ",children:[la("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&la("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Vn=pp;import{jsx as oo,jsxs as vp}from"react/jsx-runtime";var up={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Va}},exit:{opacity:0,transition:{duration:.05}}},gp=({data:e})=>oo(ut,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return oo(fp.div,{variants:up,children:o.hasDropdown?vp(gt,{value:o.id,children:[oo(vt,{className:"py-3",children:o.title}),oo(ht,{children:oo("ul",{className:r("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>oo(Vn,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):oo("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),Gn=gp;import{jsx as I,jsxs as he}from"react/jsx-runtime";var Np=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Pp=({data:e,className:o})=>{let[t,a]=Wn(!1),[i,n]=Wn(!1);wp("Escape",()=>a(!1)),hp(()=>{if(!t)return;let m=Np();function c(){a(!1)}function d(){a(!1),n(!0)}function p(T){let C=T.target;((C.closest&&C.closest("a"))?.getAttribute("href")||C.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let g=()=>{c()},x=history.pushState,N=history.replaceState;return history.pushState=((...T)=>{let C=x.apply(history,T);return g(),C}),history.replaceState=((...T)=>{let C=N.apply(history,T);return g(),C}),window.addEventListener("popstate",g),window.addEventListener("hashchange",d),window.addEventListener("click",p,!0),()=>{i||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),history.pushState=x,history.replaceState=N,window.removeEventListener("popstate",g),window.removeEventListener("hashchange",d),window.removeEventListener("click",p,!0)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Va}},exit:{opacity:0,transition:{duration:.15}}};return he("div",{className:r(o),children:[he("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[I("span",{className:"sr-only",children:"Navigation"}),I($i.div,{animate:t?"hidden":"visible",variants:s,children:I("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),I($i.div,{animate:t?"visible":"hidden",variants:s,children:I("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),I(yp,{features:bp,children:I(xp,{mode:"wait",children:t&&he($i.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[I(Gn,{data:e}),he("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),he("div",{className:"flex flex-nowrap",children:[I("div",{className:"flex-initial",children:I("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:I("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),I("div",{className:"ml-3 flex-initial",children:I("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:I("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),he("ul",{className:"mb-2 text-sm text-gray-500",children:[he("li",{className:"mb-1",children:["Hotline :\xA0",I("a",{href:`tel:${ft.Support.Hotline}`,className:"text-gray-600",children:ft.Support.Hotline_Format})]}),he("li",{className:"mb-1",children:["Email :\xA0",I("a",{href:`mailto:${ft.Support.Email}`,className:"text-gray-600",children:ft.Support.Email})]})]}),I("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:he("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[I("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:I("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:he("g",{children:[I("title",{children:"Asset 1"}),I("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
121
121
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
122
122
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),I("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
123
123
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
124
- c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),I("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),I("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),he("ul",{className:"mb-2 text-sm text-gray-500",children:[he("li",{className:"mb-1",children:["Hotline :\xA0",I("a",{className:"text-gray-600",href:`tel:${pt.Business.Phome}`,children:pt.Business.Phome_Format})]}),he("li",{className:"mb-1",children:["Email :\xA0",he("a",{href:`mailto:${pt.Business.Email}`,className:"text-gray-600",children:[" ",pt.Business.Email]})]})]}),I("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:he("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[I("div",{className:"absolute left-1 top-1 ",children:I("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),I("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),I("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},Gn=wp;import{jsx as Ro,jsxs as Wn}from"react/jsx-runtime";var Np=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Ro("li",{className:"",children:Ro(oa,{asChild:!0,children:Wn("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&Ro("div",{className:"w-7 h-7 shrink-0 mt-1",children:Ro("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),Wn("div",{className:" ",children:[Ro("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&Ro("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},$n=Np;import{jsx as Ft,jsxs as Cp}from"react/jsx-runtime";var Pp=({data:e,alignDropdown:o})=>Ft(za,{alignDropdown:o,children:Ft(Ea,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Cp(Ha,{className:"relative",children:[Ft(Fa,{children:t.title}),Ft(Ba,{children:Ft("ul",{className:r("grid w-[300px] grid-cols-1 p-2",t.dropDownCompact===!1&&"w-[230px]",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>Ft($n,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):Ft(Ha,{className:"relative",children:Ft(oa,{href:t.url,className:_a(),...a,children:t.title})},t.id)})})}),jn=Pp;import{Fragment as Tp,jsx as Fe,jsxs as Bt}from"react/jsx-runtime";var Qn=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:m,name:c,url:d}=t||{},[p,g]=kp(!1);return Bt(Tp,{children:[Bt("div",{className:r(e,"z-40 w-full flex-none lg:z-50",n?"sticky top-0":"relative"),children:[Fe("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Fe("nav",{className:r("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0"),style:{minHeight:"var(--header-height-mobase)"},children:Bt("div",{className:"relative flex items-center",children:[l&&Bt("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[Fe("span",{className:"sr-only",children:"MoMo - \u1EE8ng d\u1EE5ng t\xE0i ch\xEDnh"}),Fe("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&Bt("a",{href:d,title:c,className:r("relative flex flex-none items-center space-x-1 rounded-none hover:opacity-80",l&&"pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-['']"),children:[Fe("img",{src:m,className:"h-9",alt:"MoMo","data-puck-editable":"true","data-puck-component":"HeaderNavigation","data-puck-field":"serviceInfo","data-puck-nested-field":"logo"}),Fe("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&u(c)})]}),Fe("div",{className:r("relative hidden items-center lg:ml-2 lg:flex xl:ml-4",!i&&!a&&"lg:ml-auto xl:ml-auto"),children:Fe(jn,{data:o,alignDropdown:s})}),Bt("div",{className:r("ml-auto flex flex-nowrap items-center space-x-3",!i&&!a&&"lg:ml-0"),children:[i&&i,a&&Bt("div",{className:"hidden sm:flex",children:[Bt(we,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",Fe(Rp,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Fe(Xt,{open:p,onOpenChange:()=>g(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Fe(Gn,{data:o,className:"lg:hidden"})]})]})})]}),Fe("style",{children:`
124
+ c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),I("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),I("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),he("ul",{className:"mb-2 text-sm text-gray-500",children:[he("li",{className:"mb-1",children:["Hotline :\xA0",I("a",{className:"text-gray-600",href:`tel:${ft.Business.Phome}`,children:ft.Business.Phome_Format})]}),he("li",{className:"mb-1",children:["Email :\xA0",he("a",{href:`mailto:${ft.Business.Email}`,className:"text-gray-600",children:[" ",ft.Business.Email]})]})]}),I("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:he("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[I("div",{className:"absolute left-1 top-1 ",children:I("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),I("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),I("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},$n=Pp;import{jsx as Do,jsxs as jn}from"react/jsx-runtime";var Cp=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Do("li",{className:"",children:Do(ra,{asChild:!0,children:jn("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&Do("div",{className:"w-7 h-7 shrink-0 mt-1",children:Do("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),jn("div",{className:" ",children:[Do("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&Do("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Qn=Cp;import{jsx as Bt,jsxs as Rp}from"react/jsx-runtime";var kp=({data:e,alignDropdown:o})=>Bt(Ea,{alignDropdown:o,children:Bt(Ha,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Rp(_a,{className:"relative",children:[Bt(Ba,{children:t.title}),Bt(Oa,{children:Bt("ul",{className:r("grid w-[300px] grid-cols-1 p-2",t.dropDownCompact===!1&&"w-[230px]",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>Bt(Qn,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):Bt(_a,{className:"relative",children:Bt(ra,{href:t.url,className:Fa(),...a,children:t.title})},t.id)})})}),Un=kp;import{Fragment as Dp,jsx as Fe,jsxs as Ot}from"react/jsx-runtime";var qn=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:m,name:c,url:d}=t||{},[p,g]=Tp(!1);return Ot(Dp,{children:[Ot("div",{className:r(e,"z-40 w-full flex-none lg:z-50",n?"sticky top-0":"relative"),children:[Fe("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Fe("nav",{className:r("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0"),style:{minHeight:"var(--header-height-mobase)"},children:Ot("div",{className:"relative flex items-center",children:[l&&Ot("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[Fe("span",{className:"sr-only",children:"MoMo - \u1EE8ng d\u1EE5ng t\xE0i ch\xEDnh"}),Fe("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&Ot("a",{href:d,title:c,className:r("relative flex flex-none items-center space-x-1 rounded-none hover:opacity-80",l&&"pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-['']"),children:[Fe("img",{src:m,className:"h-9",alt:"MoMo","data-puck-editable":"true","data-puck-component":"HeaderNavigation","data-puck-field":"serviceInfo","data-puck-nested-field":"logo"}),Fe("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&u(c)})]}),Fe("div",{className:r("relative hidden items-center lg:ml-2 lg:flex xl:ml-4",!i&&!a&&"lg:ml-auto xl:ml-auto"),children:Fe(Un,{data:o,alignDropdown:s})}),Ot("div",{className:r("ml-auto flex flex-nowrap items-center space-x-3",!i&&!a&&"lg:ml-0"),children:[i&&i,a&&Ot("div",{className:"hidden sm:flex",children:[Ot(we,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",Fe(Sp,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Fe(Xt,{open:p,onOpenChange:()=>g(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Fe($n,{data:o,className:"lg:hidden"})]})]})})]}),Fe("style",{children:`
125
125
  html {
126
126
  scroll-behavior: smooth;
127
127
  }
128
- `})]})};Qn.displayName="HeaderNavigation";import{useState as Sp}from"react";import{Fragment as Mp,jsx as v,jsxs as S}from"react/jsx-runtime";var Un=({item:e})=>v("div",{className:"mt-3 flex w-full text-sm",children:S("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&v("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:v("img",{src:e.icon,className:"absolute inset-0"})}),v("span",{className:"block ",children:e.title})]})}),Dp=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=Sp(null);return S(Mp,{children:[v("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:S("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[S("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((i,n)=>v(Un,{item:i},n))]}),S("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),v("div",{className:"flex flex-wrap",children:o?.lists?.map((i,n)=>v(Un,{item:i},n))})]}),S("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[S("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),S("div",{className:"mt-2 text-sm md:mt-3",children:[v("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),v("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:wr.Address})]}),S("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Hotline : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${fe.Support.Hotline}`,children:fe.Support.Hotline_Format}),S("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),S("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Email : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${fe.Support.Email}`,children:fe.Support.Email})]}),S("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${fe.Support.Phone_Ext_1}`,children:fe.Support.Phone_Ext_1_Format}),v("span",{className:"text-white text-opacity-60",children:" - "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${fe.Support.Phone_Ext_2}`,children:fe.Support.Phone_Ext_2_Format}),v("span",{className:"text-white text-opacity-60",children:" - "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${fe.Support.Phone_Ext_3}`,children:fe.Support.Phone_Ext_3_Format}),v("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),v("div",{className:"mt-3 flex",children:v("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:S("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[v("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:v("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:S("g",{children:[v("title",{children:"Asset 1"}),v("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
128
+ `})]})};qn.displayName="HeaderNavigation";import{useState as Mp}from"react";import{Fragment as Ap,jsx as v,jsxs as S}from"react/jsx-runtime";var Xn=({item:e})=>v("div",{className:"mt-3 flex w-full text-sm",children:S("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&v("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:v("img",{src:e.icon,className:"absolute inset-0"})}),v("span",{className:"block ",children:e.title})]})}),Ip=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=Mp(null);return S(Ap,{children:[v("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:S("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[S("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((i,n)=>v(Xn,{item:i},n))]}),S("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),v("div",{className:"flex flex-wrap",children:o?.lists?.map((i,n)=>v(Xn,{item:i},n))})]}),S("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[S("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),S("div",{className:"mt-2 text-sm md:mt-3",children:[v("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),v("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:Nr.Address})]}),S("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Hotline : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${fe.Support.Hotline}`,children:fe.Support.Hotline_Format}),S("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),S("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Email : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${fe.Support.Email}`,children:fe.Support.Email})]}),S("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${fe.Support.Phone_Ext_1}`,children:fe.Support.Phone_Ext_1_Format}),v("span",{className:"text-white text-opacity-60",children:" - "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${fe.Support.Phone_Ext_2}`,children:fe.Support.Phone_Ext_2_Format}),v("span",{className:"text-white text-opacity-60",children:" - "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${fe.Support.Phone_Ext_3}`,children:fe.Support.Phone_Ext_3_Format}),v("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),v("div",{className:"mt-3 flex",children:v("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:S("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[v("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:v("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:S("g",{children:[v("title",{children:"Asset 1"}),v("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
129
129
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
130
130
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),v("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
131
131
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
132
- c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),v("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),v("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),S("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),S("div",{className:"mt-2 text-sm md:mt-3",children:[v("span",{className:"text-white text-opacity-50",children:"Hotline : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${fe.Business.Phome}`,children:fe.Business.Phome_Format})]}),S("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Email : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${fe.Business.Email}`,children:fe.Business.Email})]}),S("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Website : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),v("div",{className:"mt-3 flex",children:v("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:S("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[v("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:S("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[v("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),v("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),v("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),v("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),v("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),v("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),v("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),v("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),v("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),v("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),v("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),S("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[S("div",{className:"h-auto",children:[v("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),v("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:v("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:_o&&_o.map((i,n)=>v("li",{className:"inline-block",children:v("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:v("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),S("div",{className:"h-auto",children:[v("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),S("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[v("div",{className:"relative hidden h-24 w-24 grow-0 overflow-hidden rounded-sm bg-white md:block lg:h-20 lg:w-20",children:v("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),v("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:ni&&ni.map((i,n)=>S("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[v(we,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),v("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),v(Xt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),v("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:v("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:_o&&_o.map((i,n)=>v("li",{children:v("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:v("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),S("div",{className:"hidden h-auto md:block",children:[v("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),S("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[S("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),v("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:v("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),v("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:S("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[S("div",{className:" relative ",children:[v("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:" absolute left-0 top-0 mt-0.5 block h-9 w-9",alt:"MoMo"}),S("div",{className:" md:pl-12",children:[v("div",{className:"mb-1 h-10 pl-12 text-sm text-white text-opacity-80 md:h-auto md:pl-0 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),v("div",{className:"text-sm text-white text-opacity-50 lg:leading-normal",children:"Tr\u1EE5 s\u1EDF ch\xEDnh: T\u1EA7ng 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 \u0111\u01B0\u1EDDng Ho\xE0ng V\u0103n Th\xE1i, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),S("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",v("strong",{children:"MoMo"})]}),S("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),S("div",{className:"text-sm text-white text-opacity-50",children:[S("div",{children:["D\u1ECBch v\u1EE5 trung gian thanh to\xE1n do Ng\xE2n h\xE0ng Nh\xE0 n\u01B0\u1EDBc c\u1EA5p ph\xE9p \u0111\u01B0\u1EE3c cung \u1EE9ng th\xF4ng qua\xA0",v("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),S("ul",{className:" mt-0.5 ",children:[v("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),v("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),v("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),S("div",{className:" flex items-center justify-between md:hidden",children:[S("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),v("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:v("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),v("style",{children:`
132
+ c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),v("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),v("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),S("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),S("div",{className:"mt-2 text-sm md:mt-3",children:[v("span",{className:"text-white text-opacity-50",children:"Hotline : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${fe.Business.Phome}`,children:fe.Business.Phome_Format})]}),S("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Email : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${fe.Business.Email}`,children:fe.Business.Email})]}),S("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Website : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),v("div",{className:"mt-3 flex",children:v("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:S("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[v("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:S("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[v("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),v("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),v("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),v("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),v("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),v("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),v("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),v("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),v("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),v("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),v("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),S("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[S("div",{className:"h-auto",children:[v("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),v("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:v("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Oo&&Oo.map((i,n)=>v("li",{className:"inline-block",children:v("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:v("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),S("div",{className:"h-auto",children:[v("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),S("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[v("div",{className:"relative hidden h-24 w-24 grow-0 overflow-hidden rounded-sm bg-white md:block lg:h-20 lg:w-20",children:v("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),v("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:si&&si.map((i,n)=>S("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[v(we,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),v("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),v(Xt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),v("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:v("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Oo&&Oo.map((i,n)=>v("li",{children:v("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:v("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),S("div",{className:"hidden h-auto md:block",children:[v("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),S("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[S("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),v("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:v("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),v("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:S("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[S("div",{className:" relative ",children:[v("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:" absolute left-0 top-0 mt-0.5 block h-9 w-9",alt:"MoMo"}),S("div",{className:" md:pl-12",children:[v("div",{className:"mb-1 h-10 pl-12 text-sm text-white text-opacity-80 md:h-auto md:pl-0 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),v("div",{className:"text-sm text-white text-opacity-50 lg:leading-normal",children:"Tr\u1EE5 s\u1EDF ch\xEDnh: T\u1EA7ng 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 \u0111\u01B0\u1EDDng Ho\xE0ng V\u0103n Th\xE1i, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),S("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",v("strong",{children:"MoMo"})]}),S("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),S("div",{className:"text-sm text-white text-opacity-50",children:[S("div",{children:["D\u1ECBch v\u1EE5 trung gian thanh to\xE1n do Ng\xE2n h\xE0ng Nh\xE0 n\u01B0\u1EDBc c\u1EA5p ph\xE9p \u0111\u01B0\u1EE3c cung \u1EE9ng th\xF4ng qua\xA0",v("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),S("ul",{className:" mt-0.5 ",children:[v("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),v("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),v("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),S("div",{className:" flex items-center justify-between md:hidden",children:[S("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),v("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:v("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),v("style",{children:`
133
133
  footer .button-download {
134
134
  max-width: 150px;
135
135
  }
136
- `})]})},qn=Dp;import{jsx as Xn}from"react/jsx-runtime";var Ip=({className:e,primaryMenu:o,secondaryMenu:t})=>Xn("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Xn(qn,{primaryMenu:o,secondaryMenu:t})});import*as oo from"react";import{jsx as To}from"react/jsx-runtime";var Yn=oo.forwardRef(({className:e,...o},t)=>To("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Yn.displayName="Card";var Zn=oo.forwardRef(({className:e,...o},t)=>To("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));Zn.displayName="CardHeader";var Kn=oo.forwardRef(({className:e,...o},t)=>To("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));Kn.displayName="CardTitle";var Jn=oo.forwardRef(({className:e,...o},t)=>To("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Jn.displayName="CardDescription";var es=oo.forwardRef(({className:e,...o},t)=>To("div",{ref:t,className:r("p-6 pt-0",e),...o}));es.displayName="CardContent";var ts=oo.forwardRef(({className:e,...o},t)=>To("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));ts.displayName="CardFooter";import*as Be from"react";import{Command as Ce}from"cmdk";import{XCircleIcon as Ap,MagnifyingGlassIcon as Lp}from"@heroicons/react/16/solid";import{jsx as Se,jsxs as Ep}from"react/jsx-runtime";var $i=Be.forwardRef(({className:e,...o},t)=>Se(Ce,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));$i.displayName=Ce.displayName;var zp=({children:e,...o})=>Se(Re,{...o,children:Se(Ne,{className:"overflow-hidden p-0 shadow-lg",children:Se($i,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),os=Be.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=Be.useRef(null),[s,l]=Be.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return Ep("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Se(Lp,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Se(Ce.Input,{ref:i,className:r("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),Se(Ap,{onClick:m,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});os.displayName=Ce.Input.displayName;var as=Be.forwardRef(({className:e,...o},t)=>Se(Ce.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));as.displayName=Ce.List.displayName;var is=Be.forwardRef((e,o)=>Se(Ce.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));is.displayName=Ce.Empty.displayName;var rs=Be.forwardRef(({className:e,...o},t)=>Se(Ce.Group,{ref:t,className:r("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));rs.displayName=Ce.Group.displayName;var ns=Be.forwardRef(({className:e,...o},t)=>Se(Ce.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));ns.displayName=Ce.Separator.displayName;var ss=Be.forwardRef(({className:e,children:o,...t},a)=>Se(Ce.Item,{ref:a,className:r("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));ss.displayName=Ce.Item.displayName;var ls=({className:e,...o})=>Se("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});ls.displayName="CommandShortcut";import{ChevronDownIcon as Hp}from"@heroicons/react/16/solid";import{jsx as Va,jsxs as ms}from"react/jsx-runtime";var _p=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>ms("div",{className:"relative",children:[ms(jo,{className:r("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||i,Va(Hp,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&Va("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Fp=({children:e,className:o,...t})=>Va(No,{className:r("border-none !p-0",o),...t,children:e}),Bp=({open:e,onOpenChange:o,children:t,...a})=>Va($o,{open:e,onOpenChange:o,...a,children:t});import{forwardRef as Op}from"react";import{InformationCircleIcon as Vp}from"@heroicons/react/24/outline";import{cva as ds}from"class-variance-authority";import{jsx as ji,jsxs as cs}from"react/jsx-runtime";var Gp=ds("flex items-center space-x-2 rounded-md border px-3 py-2 text-sm text-gray-700",{variants:{typeDiv:{neutral:"border-gray-300 bg-gray-50",error:"border-red-300 bg-red-50",success:"border-green-300 bg-green-50",warning:"border-yellow-300 bg-yellow-50",info:"border-blue-300 bg-blue-50"},disabled:{true:"pointer-events-none border-gray-300 bg-gray-50 text-gray-400 opacity-55"}},defaultVariants:{typeDiv:"neutral"}}),Wp=ds("h-5 w-5 shrink-0 border-none p-0",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),na=Op(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...m},c)=>cs("div",{ref:c,className:r("",i,Gp({typeDiv:e,disabled:n})),...m,children:[cs("div",{className:"flex items-center space-x-2",children:[l||ji(Vp,{className:r(Wp({typeIcon:e,disabled:n})),width:20,height:20}),o&&ji("div",{children:u(o)})]}),t&&ji(ie,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as $p,useEffect as jp,useRef as Qp,useState as Up}from"react";import{MagnifyingGlassIcon as qp}from"@heroicons/react/20/solid";import{XCircleIcon as Xp}from"@heroicons/react/24/outline";import{jsx as So,jsxs as ps}from"react/jsx-runtime";var Yp=$p(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:c="text",...d},p)=>{let[g,h]=Up(!1),w=Qp(null),T=_=>{_&&!g&&h(!0),!_&&g&&h(!1)},C=_=>{T(_.target.value),i?.(_)},z=_=>{T(_.target.value),n?.(_)},W=()=>{let _=w.current?.querySelector("input");_&&(s?.(_.value),_.value="",_.focus(),h(!1))};return jp(()=>{T(m||l)},[l,m]),ps("div",{className:r(o),ref:w,children:[ps("div",{className:"relative flex items-center",children:[So("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:So(qp,{className:"w-4 h-4 text-gray-500"})}),So("input",{disabled:e,type:c,ref:p,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:C,onFocus:z,value:l,defaultValue:m,...d}),g&&So("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:W,children:So(Xp,{strokeWidth:2,width:20,height:20})})]}),So("style",{children:`
136
+ `})]})},Yn=Ip;import{jsx as Zn}from"react/jsx-runtime";var Lp=({className:e,primaryMenu:o,secondaryMenu:t})=>Zn("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Zn(Yn,{primaryMenu:o,secondaryMenu:t})});import*as ao from"react";import{jsx as Mo}from"react/jsx-runtime";var Kn=ao.forwardRef(({className:e,...o},t)=>Mo("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Kn.displayName="Card";var Jn=ao.forwardRef(({className:e,...o},t)=>Mo("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));Jn.displayName="CardHeader";var es=ao.forwardRef(({className:e,...o},t)=>Mo("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));es.displayName="CardTitle";var ts=ao.forwardRef(({className:e,...o},t)=>Mo("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));ts.displayName="CardDescription";var os=ao.forwardRef(({className:e,...o},t)=>Mo("div",{ref:t,className:r("p-6 pt-0",e),...o}));os.displayName="CardContent";var as=ao.forwardRef(({className:e,...o},t)=>Mo("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));as.displayName="CardFooter";import*as Be from"react";import{Command as Ce}from"cmdk";import{XCircleIcon as zp,MagnifyingGlassIcon as Ep}from"@heroicons/react/16/solid";import{jsx as Se,jsxs as _p}from"react/jsx-runtime";var ji=Be.forwardRef(({className:e,...o},t)=>Se(Ce,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ji.displayName=Ce.displayName;var Hp=({children:e,...o})=>Se(Re,{...o,children:Se(Ne,{className:"overflow-hidden p-0 shadow-lg",children:Se(ji,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),is=Be.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=Be.useRef(null),[s,l]=Be.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return _p("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Se(Ep,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Se(Ce.Input,{ref:i,className:r("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),Se(zp,{onClick:m,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});is.displayName=Ce.Input.displayName;var rs=Be.forwardRef(({className:e,...o},t)=>Se(Ce.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));rs.displayName=Ce.List.displayName;var ns=Be.forwardRef((e,o)=>Se(Ce.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));ns.displayName=Ce.Empty.displayName;var ss=Be.forwardRef(({className:e,...o},t)=>Se(Ce.Group,{ref:t,className:r("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));ss.displayName=Ce.Group.displayName;var ls=Be.forwardRef(({className:e,...o},t)=>Se(Ce.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));ls.displayName=Ce.Separator.displayName;var ms=Be.forwardRef(({className:e,children:o,...t},a)=>Se(Ce.Item,{ref:a,className:r("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));ms.displayName=Ce.Item.displayName;var cs=({className:e,...o})=>Se("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});cs.displayName="CommandShortcut";import{ChevronDownIcon as Fp}from"@heroicons/react/16/solid";import{jsx as Ga,jsxs as ds}from"react/jsx-runtime";var Bp=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>ds("div",{className:"relative",children:[ds(qo,{className:r("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||i,Ga(Fp,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&Ga("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Op=({children:e,className:o,...t})=>Ga(ko,{className:r("border-none !p-0",o),...t,children:e}),Vp=({open:e,onOpenChange:o,children:t,...a})=>Ga(Uo,{open:e,onOpenChange:o,...a,children:t});import{forwardRef as Gp}from"react";import{InformationCircleIcon as Wp}from"@heroicons/react/24/outline";import{cva as fs}from"class-variance-authority";import{jsx as Qi,jsxs as ps}from"react/jsx-runtime";var $p=fs("flex items-center space-x-2 rounded-md border px-3 py-2 text-sm text-gray-700",{variants:{typeDiv:{neutral:"border-gray-300 bg-gray-50",error:"border-red-300 bg-red-50",success:"border-green-300 bg-green-50",warning:"border-yellow-300 bg-yellow-50",info:"border-blue-300 bg-blue-50"},disabled:{true:"pointer-events-none border-gray-300 bg-gray-50 text-gray-400 opacity-55"}},defaultVariants:{typeDiv:"neutral"}}),jp=fs("h-5 w-5 shrink-0 border-none p-0",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),ma=Gp(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...m},c)=>ps("div",{ref:c,className:r("",i,$p({typeDiv:e,disabled:n})),...m,children:[ps("div",{className:"flex items-center space-x-2",children:[l||Qi(Wp,{className:r(jp({typeIcon:e,disabled:n})),width:20,height:20}),o&&Qi("div",{children:u(o)})]}),t&&Qi(re,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as Qp,useEffect as Up,useRef as qp,useState as Xp}from"react";import{MagnifyingGlassIcon as Yp}from"@heroicons/react/20/solid";import{XCircleIcon as Zp}from"@heroicons/react/24/outline";import{jsx as Io,jsxs as us}from"react/jsx-runtime";var Kp=Qp(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:c="text",...d},p)=>{let[g,x]=Xp(!1),N=qp(null),T=H=>{H&&!g&&x(!0),!H&&g&&x(!1)},C=H=>{T(H.target.value),i?.(H)},V=H=>{T(H.target.value),n?.(H)},$=()=>{let H=N.current?.querySelector("input");H&&(s?.(H.value),H.value="",H.focus(),x(!1))};return Up(()=>{T(m||l)},[l,m]),us("div",{className:r(o),ref:N,children:[us("div",{className:"relative flex items-center",children:[Io("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:Io(Yp,{className:"w-4 h-4 text-gray-500"})}),Io("input",{disabled:e,type:c,ref:p,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:C,onFocus:V,value:l,defaultValue:m,...d}),g&&Io("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:$,children:Io(Zp,{strokeWidth:2,width:20,height:20})})]}),Io("style",{children:`
137
137
  .mobase-text-input-box:hover {
138
138
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
139
139
  }
140
140
  .mobase-text-input-box:focus {
141
141
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
142
142
  }
143
- `})]})});import*as De from"@radix-ui/react-dialog";import us,{useContext as Zp,useEffect as fs,useState as Qi}from"react";import{X as Kp}from"lucide-react";import Jp from"lodash";import{jsx as re,jsxs as St}from"react/jsx-runtime";var gs=us.createContext(void 0);function vs(){let e=Zp(gs);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Ui=({children:e,open:o,onOpenChange:t,className:a})=>re(gs.Provider,{value:{open:o,onOpenChange:t},children:re(De.Root,{open:o,onOpenChange:t,children:re("div",{className:r("lightbox-gallery",a),children:e})})}),ef=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=vs(),m=()=>{n?.(),l&&l(!0)};return St(De.Trigger,{className:r("",a),onClick:m,children:[e,re(H,{ratio:s,className:"rounded-lg cursor-pointer",children:re("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},hs=us.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=vs(),n=()=>{i&&i(!1)};return St(De.Portal,{children:[re(De.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),St(De.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,St(De.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[re(Kp,{className:"h-4 w-4 mt-0.5"}),re("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});hs.displayName=De.Content.displayName;var qi=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=Qi(""),[l,m]=Qi(),[c,d]=Qi(0);fs(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=g=>{let h=Jp.filter(e,(T,C)=>C===(g>0?g-1:g)),w=h.length>0?h[0]?.titleImage:"";s(w)};return fs(()=>{p(c)},[c]),St(hs,{className:"flex py-0",children:[St("div",{className:" flex-1 relative",children:[St("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),St(ge,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[re(ve,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,h)=>re(de,{className:"pl-6 md:pl-4",children:St("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[re("div",{className:"flex-1 relative",children:re("img",{src:g.url,alt:"",className:"absolute h-full w-full object-contain"})}),re("div",{className:"flex-0",children:re("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:re("div",{className:"line-clamp-3",children:n})})})]})},h))}),re(xo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),re(bo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&re("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as Ot from"react";import{CheckIcon as tf}from"@heroicons/react/16/solid";import*as sa from"@radix-ui/react-checkbox";import*as Vt from"@radix-ui/react-radio-group";import{Circle as of}from"lucide-react";import{jsx as rt,jsxs as ys}from"react/jsx-runtime";var xs=Ot.createContext({hideIndicator:!1});function af(){let e=Ot.useContext(xs);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ga=Ot.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>rt(xs.Provider,{value:{hideIndicator:o},children:rt(Vt.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Ga.displayName=Vt.Root.displayName;var Wa=Ot.forwardRef(({className:e,children:o,...t},a)=>{let i=af(),{hideIndicator:n}=i??{};return ys(Vt.Item,{ref:a,className:r("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[rt("div",{className:"min-w-0 flex-1",children:o}),!n&&rt("div",{className:r("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:rt(Vt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:rt(of,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Wa.displayName=Vt.Item.displayName;var bs=Ot.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>ys(sa.Root,{ref:i,className:r("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[rt("div",{className:"min-w-0 flex-1",children:o}),!t&&rt("div",{className:"ring-offset-background h-4 w-4 shrink-0 rounded border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-300 group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:rt(sa.Indicator,{className:r("flex items-center justify-center text-current"),children:rt(tf,{className:"h-4 w-4"})})})]}));bs.displayName=sa.Root.displayName;import{cva as rf}from"class-variance-authority";import{jsx as sf}from"react/jsx-runtime";var ws=rf("inline-flex items-center rounded-md border border-gray-300 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-semibold",{variants:{variant:{default:"border-transparent bg-pink-500 text-white/90 shadow hover:bg-pink-500/80",secondary:"border-transparent bg-gray-200 text-gray-900 hover:bg-gray-200/80",outline:"text-gray-900",danger:"border-transparent bg-red-500 text-white/90 shadow hover:bg-red-500/80"}},defaultVariants:{variant:"default"}});function nf({className:e,variant:o,...t}){return sf("div",{className:r(ws({variant:o}),e),...t})}import*as Ps from"react";import*as la from"@radix-ui/react-progress";import{cva as Cs}from"class-variance-authority";import{jsx as Ns}from"react/jsx-runtime";var lf=Cs("h-full w-full rounded-full flex-1 transition-all",{variants:{variant:{progress:"bg-pink-500",success:"bg-green-600",disabled:"bg-gray-400",empty:"bg-gray-200"}},defaultVariants:{variant:"progress"}}),mf=Cs("relative h-4 w-full overflow-hidden rounded-full bg-gray-200",{variants:{size:{small:"h-[6px]",medium:"h-2",large:"h-[10px]"}},defaultVariants:{size:"medium"}}),ks=Ps.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>Ns(la.Root,{ref:s,className:r("",mf({size:a}),e),...n,children:Ns(la.Indicator,{className:r("",lf({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));ks.displayName=la.Root.displayName;import{jsx as cf}from"react/jsx-runtime";function $a({className:e,...o}){return cf("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as df,jsx as ao,jsxs as Rs}from"react/jsx-runtime";function Xi({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return ao("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return Rs("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>ao("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),ao("style",{children:`
143
+ `})]})});import*as De from"@radix-ui/react-dialog";import vs,{useContext as Jp,useEffect as gs,useState as Ui}from"react";import{X as ef}from"lucide-react";import tf from"lodash";import{jsx as ne,jsxs as Dt}from"react/jsx-runtime";var hs=vs.createContext(void 0);function xs(){let e=Jp(hs);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var qi=({children:e,open:o,onOpenChange:t,className:a})=>ne(hs.Provider,{value:{open:o,onOpenChange:t},children:ne(De.Root,{open:o,onOpenChange:t,children:ne("div",{className:r("lightbox-gallery",a),children:e})})}),of=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=xs(),m=()=>{n?.(),l&&l(!0)};return Dt(De.Trigger,{className:r("",a),onClick:m,children:[e,ne(E,{ratio:s,className:"rounded-lg cursor-pointer",children:ne("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},bs=vs.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=xs(),n=()=>{i&&i(!1)};return Dt(De.Portal,{children:[ne(De.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),Dt(De.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,Dt(De.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[ne(ef,{className:"h-4 w-4 mt-0.5"}),ne("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});bs.displayName=De.Content.displayName;var Xi=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=Ui(""),[l,m]=Ui(),[c,d]=Ui(0);gs(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=g=>{let x=tf.filter(e,(T,C)=>C===(g>0?g-1:g)),N=x.length>0?x[0]?.titleImage:"";s(N)};return gs(()=>{p(c)},[c]),Dt(bs,{className:"flex py-0",children:[Dt("div",{className:" flex-1 relative",children:[Dt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),Dt(ge,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ne(ve,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,x)=>ne(de,{className:"pl-6 md:pl-4",children:Dt("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[ne("div",{className:"flex-1 relative",children:ne("img",{src:g.url,alt:"",className:"absolute h-full w-full object-contain"})}),ne("div",{className:"flex-0",children:ne("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:ne("div",{className:"line-clamp-3",children:n})})})]})},x))}),ne(wo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ne(No,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ne("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as Vt from"react";import{CheckIcon as af}from"@heroicons/react/16/solid";import*as ca from"@radix-ui/react-checkbox";import*as Gt from"@radix-ui/react-radio-group";import{Circle as rf}from"lucide-react";import{jsx as nt,jsxs as Ns}from"react/jsx-runtime";var ys=Vt.createContext({hideIndicator:!1});function nf(){let e=Vt.useContext(ys);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Wa=Vt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>nt(ys.Provider,{value:{hideIndicator:o},children:nt(Gt.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Wa.displayName=Gt.Root.displayName;var $a=Vt.forwardRef(({className:e,children:o,...t},a)=>{let i=nf(),{hideIndicator:n}=i??{};return Ns(Gt.Item,{ref:a,className:r("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[nt("div",{className:"min-w-0 flex-1",children:o}),!n&&nt("div",{className:r("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:nt(Gt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:nt(rf,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});$a.displayName=Gt.Item.displayName;var ws=Vt.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>Ns(ca.Root,{ref:i,className:r("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[nt("div",{className:"min-w-0 flex-1",children:o}),!t&&nt("div",{className:"ring-offset-background h-4 w-4 shrink-0 rounded border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-300 group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:nt(ca.Indicator,{className:r("flex items-center justify-center text-current"),children:nt(af,{className:"h-4 w-4"})})})]}));ws.displayName=ca.Root.displayName;import{cva as sf}from"class-variance-authority";import{jsx as mf}from"react/jsx-runtime";var Ps=sf("inline-flex items-center rounded-md border border-gray-300 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-semibold",{variants:{variant:{default:"border-transparent bg-pink-500 text-white/90 shadow hover:bg-pink-500/80",secondary:"border-transparent bg-gray-200 text-gray-900 hover:bg-gray-200/80",outline:"text-gray-900",danger:"border-transparent bg-red-500 text-white/90 shadow hover:bg-red-500/80"}},defaultVariants:{variant:"default"}});function lf({className:e,variant:o,...t}){return mf("div",{className:r(Ps({variant:o}),e),...t})}import*as ks from"react";import*as da from"@radix-ui/react-progress";import{cva as Rs}from"class-variance-authority";import{jsx as Cs}from"react/jsx-runtime";var cf=Rs("h-full w-full rounded-full flex-1 transition-all",{variants:{variant:{progress:"bg-pink-500",success:"bg-green-600",disabled:"bg-gray-400",empty:"bg-gray-200"}},defaultVariants:{variant:"progress"}}),df=Rs("relative h-4 w-full overflow-hidden rounded-full bg-gray-200",{variants:{size:{small:"h-[6px]",medium:"h-2",large:"h-[10px]"}},defaultVariants:{size:"medium"}}),Ts=ks.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>Cs(da.Root,{ref:s,className:r("",df({size:a}),e),...n,children:Cs(da.Indicator,{className:r("",cf({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Ts.displayName=da.Root.displayName;import{jsx as pf}from"react/jsx-runtime";function ja({className:e,...o}){return pf("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as ff,jsx as io,jsxs as Ss}from"react/jsx-runtime";function Yi({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return io("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return Ss("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>io("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),io("style",{children:`
144
144
  .spinner_dots span {
145
145
  animation-name: spinner-dots;
146
146
  animation-duration: 1.4s;
@@ -167,7 +167,7 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
167
167
  opacity: .2;
168
168
  }
169
169
  }
170
- `})]});case"default":default:return Rs(df,{children:[ao("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:ao("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e],t),children:[...Array(12)].map((l,m)=>ao("div",{className:r(`spinner_bar child-${m+1}`,o)},m))})}),ao("style",{children:`
170
+ `})]});case"default":default:return Ss(ff,{children:[io("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:io("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e],t),children:[...Array(12)].map((l,m)=>io("div",{className:r(`spinner_bar child-${m+1}`,o)},m))})}),io("style",{children:`
171
171
  .spinner_bar {
172
172
  animation: spinner_spin 1.2s linear infinite;
173
173
  border-radius: 20px;
@@ -247,7 +247,7 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
247
247
  opacity: 0.15;
248
248
  }
249
249
  }
250
- `})]})}})()})}import*as Ts from"react";import*as nt from"@radix-ui/react-slider";import{jsx as Gt,jsxs as pf}from"react/jsx-runtime";var Ss=Ts.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>pf(nt.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Gt(nt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Gt(nt.Range,{className:"absolute h-full bg-pink-500"})}),Gt(nt.Thumb,{className:"group relative",children:Gt("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&Gt("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),Gt(nt.Thumb,{className:"group relative",children:Gt("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&Gt("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));Ss.displayName=nt.Root.displayName;import{forwardRef as Tf}from"react";import{Fragment as vf,jsx as Oe,jsxs as ja}from"react/jsx-runtime";var ff=({author:e=""})=>Oe("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),uf=({author:e,avatar:o})=>Oe("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Oe("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Oe(ff,{author:e})});function gf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return Oe(vf,{children:ja("div",{className:"flex relative items-center space-x-3",children:[Oe(uf,{avatar:e,author:o}),ja("div",{className:"flex flex-col",children:[o&&Oe("div",{className:"font-semibold text-gray-900 text-sm",children:o}),ja("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Oe("div",{className:"text-gray-400",children:t}),a&&ja("div",{className:"flex items-center space-x-2",children:[Oe("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Oe("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&Oe("div",{className:"absolute right-1 top-0",children:Oe("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Ds=gf;import{useState as Ls}from"react";import{StarIcon as hf}from"@heroicons/react/20/solid";import{jsx as Ms,jsxs as Is}from"react/jsx-runtime";var xf={1:"K\xE9n ng\u01B0\u1EDDi m\xEA",2:"K\xE9n ng\u01B0\u1EDDi m\xEA",3:"Ch\u01B0a \u01B0ng l\u1EAFm",4:"Ch\u01B0a \u01B0ng l\u1EAFm",5:"T\u1EA1m \u1ED5n",6:"T\u1EA1m \u1ED5n",7:"\u0110\xE1ng xem",8:"\u0110\xE1ng xem",9:"C\u1EF1c ph\u1EA9m!",10:"C\u1EF1c ph\u1EA9m!"},bf={1:"Kh\xF4ng h\xE0i l\xF2ng",2:"Ch\u01B0a \u01B0ng l\u1EAFm",3:"T\u1EA1m \u1ED5n",4:"H\xE0i l\xF2ng",5:"R\u1EA5t h\xE0i l\xF2ng"};function yf({point:e,max:o,className:t}){let a=o>5?xf[e||10]:bf[e||5];return Is("div",{className:r("flex items-center space-x-1",t),children:[Ms(hf,{className:"w-5 h-5 text-yellow-500"}),Ms("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Is("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var As=yf;import{useState as wf}from"react";import{jsx as Nf,jsxs as Pf}from"react/jsx-runtime";var Yi=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=wf(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return Pf("div",{className:r(n),children:[s?u(c(e,o)):u(e),e.length>o&&Nf("span",{onClick:m,className:r("read-or-hide text-md w-fit cursor-pointer pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as io,jsxs as zs}from"react/jsx-runtime";function Cf({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=Ls(0),[m,c]=Ls(!1),d=p=>{c(!0),l(p)};return zs("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&io(As,{className:"mb-0.5",point:i.point,max:i.max}),e&&io(Yi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&io("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>io("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:p}))}),o?.length>0&&zs(Ui,{open:m,onOpenChange:c,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((p,g)=>io(H,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:io("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),io(qi,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Es=Cf;import{jsx as Rf}from"react/jsx-runtime";function kf({actions:e=[]}){return Rf("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Hs=kf;import{jsx as Qa,jsxs as Df}from"react/jsx-runtime";var Sf=Tf(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:p,isOutStanding:g,limitContent:h=260},w)=>Df("div",{ref:w,className:r("",c?"ml-4 py-4":"py-5"),children:[Qa(Ds,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),Qa(Es,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:h}),l&&l?.filter(Boolean)?.length>0&&Qa(Hs,{actions:l.filter(Boolean)}),d&&Qa("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:d})]}));import*as Wt from"react";import{cva as Mf}from"class-variance-authority";import{CheckIcon as If}from"@heroicons/react/16/solid";import{XIcon as Af}from"lucide-react";import{jsx as ke,jsxs as Ua}from"react/jsx-runtime";var Lf=Mf("flex items-center shrink-0 justify-center rounded-full shrink-0",{variants:{state:{active:"bg-pink-500 text-white shadow-[0_0px_0px_3px_rgb(255,255,255),0_0px_0px_4px_rgb(var(--mobase-pink-500))]",disabled:"bg-gray-400 text-gray-200",default:"text-gray-500 bg-white shadow-[inset_0px_0px_0px_1px_rgb(var(--mobase-gray-300))]",completed:"bg-pink-300 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),_s=Wt.createContext("default");function zf(){let e=Wt.useContext(_s);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Ef=Wt.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?ke(Af,{className:s}):Ua("div",{children:[e==="iconStep"&&ke("div",{className:s,children:o}),e==="numberStep"&&ke("div",{children:t}),e==="default"&&(n==="completed"?ke(If,{className:s}):ke("div",{children:t}))]})}),Hf=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Wt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return ke("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},_f=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:m,icon:c,isError:d,onValueChangeStep:p,...g})=>{let h=zf();return Ua("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[Ua("div",{className:"flex w-full items-center justify-center gap-2",children:[ke("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),ke("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Lf({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",i),...g,children:ke(Ef,{type:h,icon:c,stepNumber:e,size:t,isError:d,state:o})}),ke("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Ua("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&ke("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&ke("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Ff=({children:e,className:o,type:t="numberStep",...a})=>ke(_s.Provider,{value:t,children:ke("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as Dt from"react";import*as P from"@radix-ui/react-dropdown-menu";import{ChevronRight as Bf,Check as Of}from"lucide-react";import{jsx as xe,jsxs as ma}from"react/jsx-runtime";var Vf=P.Root,Gf=P.Trigger,Wf=P.Group,$f=P.Portal,jf=P.Sub,Qf=P.RadioGroup,Fs=Dt.forwardRef(({className:e,inset:o,children:t,...a},i)=>ma(P.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,xe(Bf,{className:"ml-auto"})]}));Fs.displayName=P.SubTrigger.displayName;var Bs=Dt.forwardRef(({className:e,...o},t)=>xe(P.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));Bs.displayName=P.SubContent.displayName;var Os=Dt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>xe(P.Portal,{children:xe(P.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));Os.displayName=P.Content.displayName;var Vs=Dt.forwardRef(({className:e,inset:o,...t},a)=>xe(P.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));Vs.displayName=P.Item.displayName;var Gs=Dt.forwardRef(({className:e,children:o,checked:t,...a},i)=>ma(P.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[ma("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&xe("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),xe(P.ItemIndicator,{children:xe("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:xe(Of,{size:16,strokeWidth:3})})})]}),o]}));Gs.displayName=P.CheckboxItem.displayName;var Ws=Dt.forwardRef(({className:e,children:o,...t},a)=>ma(P.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[ma("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[xe("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),xe(P.ItemIndicator,{children:xe("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));Ws.displayName=P.RadioItem.displayName;var $s=Dt.forwardRef(({className:e,inset:o,...t},a)=>xe(P.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));$s.displayName=P.Label.displayName;var js=Dt.forwardRef(({className:e,...o},t)=>xe(P.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));js.displayName=P.Separator.displayName;var Qs=({className:e,...o})=>xe("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});Qs.displayName="DropdownMenuShortcut";import{Slot as Uf}from"@radix-ui/react-slot";var Us=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};import{Fragment as qa,jsx as L,jsxs as st}from"react/jsx-runtime";var qs=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>st(qa,{children:[e&&L(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&L("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>L("div",{className:r("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:st("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[L("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),st("div",{className:"mt-6 w-full",children:[L("div",{className:"w-full text-xl font-semibold",children:u(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]})]})},i))}),t&&L(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),qf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>st(qa,{children:[e&&L(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&L("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>st("div",{className:r("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[st("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[L("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&L("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:L(H,{ratio:1,children:L("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover","data-puck-editable":"true","data-puck-component":"HowItWorksSection","data-puck-field":"dataHowItWorks","data-puck-array-index":i,"data-puck-nested-field":"image"})})})]}),st("div",{className:"mt-6 w-full",children:[L("div",{className:"w-full text-xl font-semibold",children:u(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]})]},i))}),t&&L(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Xf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>st(qa,{children:[e&&L(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&L("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4",children:o.map((a,i)=>st("div",{className:r("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&L("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?Us(a.image)?L("img",{src:a.image,className:"block object-cover","data-puck-editable":"true","data-puck-component":"HowItWorksSection","data-puck-field":"dataHowItWorks","data-puck-array-index":i,"data-puck-nested-field":"image"}):L(Uf,{className:"h-6 w-6 stroke-white stroke-2",children:u(a.image.replace(/\n|\r/g,""))}):a.image}),st("div",{className:"mt-4 w-full md:mt-6",children:[L("div",{className:"w-full text-xl font-semibold",children:u(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]})]},i))}),t&&L(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Yf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return L(qs,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return L(qf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return L(Xf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return L(qs,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Zf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>L(qa,{children:Yf({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Kf=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>L(B,{className:t,idSection:a,background:o,children:L(Zf,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{cva as Jf}from"class-variance-authority";import{CheckIcon as Xs}from"lucide-react";import{Fragment as Zi,jsx as be,jsxs as Ys}from"react/jsx-runtime";var eu=Jf("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3",2:"grid grid-cols-1 gap-y-3",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),tu=({template:e,name:o,image:t,isFeatures:a,idx:i})=>be(Zi,{children:(()=>{switch(e){case 1:case 2:return be(Zi,{children:Ys("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataFeatures","data-puck-nested-field":"image","data-puck-array-index":i})}):be("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:be(Xs,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"ml-2",children:u(o)})]})});case 3:return Ys("li",{className:"flex h-full space-x-4",children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full"})}):be("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:be(Xs,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"my-auto ml-2 md:my-0",children:u(o)})]});default:return null}})()}),Xa=({dataFeatures:e,template:o=1})=>be(Zi,{children:(e?.length??0)>0&&be("ul",{className:r("",eu({template:o})),children:e?.map((t,a)=>be(tu,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as ou}from"lucide-react";import{jsx as K,jsxs as ca}from"react/jsx-runtime";var Zs=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,au=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>ca(fo,{children:[K(Xe,{greaterThan:"sm",children:ca(H,{className:r(""),ratio:Zs(o),children:[K("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"}),a&&ca(Re,{children:[K(Oo,{onClick:i,children:K("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:K("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:ca("g",{fill:"none",fillRule:"evenodd",children:[K("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),K("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),K(Ne,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:ca(ze,{className:"relative bg-transparent p-4 text-center",children:[K("div",{className:"aspect-[16/9] w-full p-0",children:K("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),K(mi,{asChild:!0,children:K(se,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:K(ou,{className:"h-6 w-6"})})})]})})]})]})}),a&&K(Xe,{lessThan:"md",children:K("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:K("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),Ya=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>K("div",{className:a,children:n?K(au,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):K(H,{ratio:Zs(t),children:K("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})});import{Fragment as ru,jsx as Za,jsxs as Ki}from"react/jsx-runtime";var iu=({value:e,suffix:o,unit:t,description:a,idx:i})=>Ki("div",{className:r(""),children:[e&&Ki("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Ki("span",{children:[o," ",t]})]}),a&&Za("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:u(a)})]}),Ka=({dataStats:e})=>Za(ru,{children:(e?.length??0)>0&&Za("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>Za(iu,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Ks,jsx as J,jsxs as da}from"react/jsx-runtime";var Ji=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>da("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[da("div",{className:"col-span-1 ",children:[J(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),J(Xa,{dataFeatures:t,template:a}),o&&J(b,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),J(Ka,{dataStats:i})]}),J("div",{className:"col-span-1 md:pl-10",children:s||J(Ya,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Js=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>da("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[J("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||J(Ya,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),da("div",{className:"order-1 col-span-1 md:order-2",children:[J(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),J(Xa,{dataFeatures:t,template:a}),o&&J("div",{className:"flex w-full items-center justify-center md:justify-start",children:J(b,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),J(Ka,{dataStats:i})]})]}),el=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>da(Ks,{children:[J(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&J(b,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),J(Xa,{dataFeatures:t,template:a}),J("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:J(Ka,{dataStats:i})}),s||J(Ks,{children:n?.src&&J(Ya,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});import{Fragment as cu,jsx as ro}from"react/jsx-runtime";var nu=`var(
250
+ `})]})}})()})}import*as Ds from"react";import*as st from"@radix-ui/react-slider";import{jsx as Wt,jsxs as uf}from"react/jsx-runtime";var Ms=Ds.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>uf(st.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Wt(st.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Wt(st.Range,{className:"absolute h-full bg-pink-500"})}),Wt(st.Thumb,{className:"group relative",children:Wt("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&Wt("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),Wt(st.Thumb,{className:"group relative",children:Wt("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&Wt("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));Ms.displayName=st.Root.displayName;import{forwardRef as Df}from"react";import{Fragment as xf,jsx as Oe,jsxs as Qa}from"react/jsx-runtime";var gf=({author:e=""})=>Oe("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),vf=({author:e,avatar:o})=>Oe("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Oe("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Oe(gf,{author:e})});function hf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return Oe(xf,{children:Qa("div",{className:"flex relative items-center space-x-3",children:[Oe(vf,{avatar:e,author:o}),Qa("div",{className:"flex flex-col",children:[o&&Oe("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Qa("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Oe("div",{className:"text-gray-400",children:t}),a&&Qa("div",{className:"flex items-center space-x-2",children:[Oe("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Oe("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&Oe("div",{className:"absolute right-1 top-0",children:Oe("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Is=hf;import{useState as Es}from"react";import{StarIcon as bf}from"@heroicons/react/20/solid";import{jsx as As,jsxs as Ls}from"react/jsx-runtime";var yf={1:"K\xE9n ng\u01B0\u1EDDi m\xEA",2:"K\xE9n ng\u01B0\u1EDDi m\xEA",3:"Ch\u01B0a \u01B0ng l\u1EAFm",4:"Ch\u01B0a \u01B0ng l\u1EAFm",5:"T\u1EA1m \u1ED5n",6:"T\u1EA1m \u1ED5n",7:"\u0110\xE1ng xem",8:"\u0110\xE1ng xem",9:"C\u1EF1c ph\u1EA9m!",10:"C\u1EF1c ph\u1EA9m!"},wf={1:"Kh\xF4ng h\xE0i l\xF2ng",2:"Ch\u01B0a \u01B0ng l\u1EAFm",3:"T\u1EA1m \u1ED5n",4:"H\xE0i l\xF2ng",5:"R\u1EA5t h\xE0i l\xF2ng"};function Nf({point:e,max:o,className:t}){let a=o>5?yf[e||10]:wf[e||5];return Ls("div",{className:r("flex items-center space-x-1",t),children:[As(bf,{className:"w-5 h-5 text-yellow-500"}),As("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Ls("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var zs=Nf;import{useState as Pf}from"react";import{jsx as Cf,jsxs as kf}from"react/jsx-runtime";var Zi=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=Pf(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return kf("div",{className:r(n),children:[s?u(c(e,o)):u(e),e.length>o&&Cf("span",{onClick:m,className:r("read-or-hide text-md w-fit cursor-pointer pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as ro,jsxs as Hs}from"react/jsx-runtime";function Rf({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=Es(0),[m,c]=Es(!1),d=p=>{c(!0),l(p)};return Hs("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&ro(zs,{className:"mb-0.5",point:i.point,max:i.max}),e&&ro(Zi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&ro("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>ro("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:p}))}),o?.length>0&&Hs(qi,{open:m,onOpenChange:c,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((p,g)=>ro(E,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:ro("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),ro(Xi,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var _s=Rf;import{jsx as Sf}from"react/jsx-runtime";function Tf({actions:e=[]}){return Sf("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Fs=Tf;import{jsx as Ua,jsxs as If}from"react/jsx-runtime";var Mf=Df(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:p,isOutStanding:g,limitContent:x=260},N)=>If("div",{ref:N,className:r("",c?"ml-4 py-4":"py-5"),children:[Ua(Is,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),Ua(_s,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:x}),l&&l?.filter(Boolean)?.length>0&&Ua(Fs,{actions:l.filter(Boolean)}),d&&Ua("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:d})]}));import*as $t from"react";import{cva as Af}from"class-variance-authority";import{CheckIcon as Lf}from"@heroicons/react/16/solid";import{XIcon as zf}from"lucide-react";import{jsx as ke,jsxs as qa}from"react/jsx-runtime";var Ef=Af("flex items-center shrink-0 justify-center rounded-full shrink-0",{variants:{state:{active:"bg-pink-500 text-white shadow-[0_0px_0px_3px_rgb(255,255,255),0_0px_0px_4px_rgb(var(--mobase-pink-500))]",disabled:"bg-gray-400 text-gray-200",default:"text-gray-500 bg-white shadow-[inset_0px_0px_0px_1px_rgb(var(--mobase-gray-300))]",completed:"bg-pink-300 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),Bs=$t.createContext("default");function Hf(){let e=$t.useContext(Bs);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var _f=$t.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?ke(zf,{className:s}):qa("div",{children:[e==="iconStep"&&ke("div",{className:s,children:o}),e==="numberStep"&&ke("div",{children:t}),e==="default"&&(n==="completed"?ke(Lf,{className:s}):ke("div",{children:t}))]})}),Ff=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=$t.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return ke("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Bf=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:m,icon:c,isError:d,onValueChangeStep:p,...g})=>{let x=Hf();return qa("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[qa("div",{className:"flex w-full items-center justify-center gap-2",children:[ke("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),ke("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Ef({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",i),...g,children:ke(_f,{type:x,icon:c,stepNumber:e,size:t,isError:d,state:o})}),ke("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),qa("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&ke("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&ke("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Of=({children:e,className:o,type:t="numberStep",...a})=>ke(Bs.Provider,{value:t,children:ke("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as Mt from"react";import*as k from"@radix-ui/react-dropdown-menu";import{ChevronRight as Vf,Check as Gf}from"lucide-react";import{jsx as xe,jsxs as pa}from"react/jsx-runtime";var Wf=k.Root,$f=k.Trigger,jf=k.Group,Qf=k.Portal,Uf=k.Sub,qf=k.RadioGroup,Os=Mt.forwardRef(({className:e,inset:o,children:t,...a},i)=>pa(k.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,xe(Vf,{className:"ml-auto"})]}));Os.displayName=k.SubTrigger.displayName;var Vs=Mt.forwardRef(({className:e,...o},t)=>xe(k.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));Vs.displayName=k.SubContent.displayName;var Gs=Mt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>xe(k.Portal,{children:xe(k.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));Gs.displayName=k.Content.displayName;var Ws=Mt.forwardRef(({className:e,inset:o,...t},a)=>xe(k.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));Ws.displayName=k.Item.displayName;var $s=Mt.forwardRef(({className:e,children:o,checked:t,...a},i)=>pa(k.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[pa("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&xe("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),xe(k.ItemIndicator,{children:xe("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:xe(Gf,{size:16,strokeWidth:3})})})]}),o]}));$s.displayName=k.CheckboxItem.displayName;var js=Mt.forwardRef(({className:e,children:o,...t},a)=>pa(k.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[pa("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[xe("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),xe(k.ItemIndicator,{children:xe("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));js.displayName=k.RadioItem.displayName;var Qs=Mt.forwardRef(({className:e,inset:o,...t},a)=>xe(k.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Qs.displayName=k.Label.displayName;var Us=Mt.forwardRef(({className:e,...o},t)=>xe(k.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));Us.displayName=k.Separator.displayName;var qs=({className:e,...o})=>xe("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});qs.displayName="DropdownMenuShortcut";import{Slot as Xf}from"@radix-ui/react-slot";var Xs=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};import{Fragment as Xa,jsx as L,jsxs as lt}from"react/jsx-runtime";var Ys=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>lt(Xa,{children:[e&&L(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&L("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>L("div",{className:r("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:lt("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[L("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),lt("div",{className:"mt-6 w-full",children:[L("div",{className:"w-full text-xl font-semibold",children:u(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]})]})},i))}),t&&L(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Yf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>lt(Xa,{children:[e&&L(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&L("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>lt("div",{className:r("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[lt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[L("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&L("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:L(E,{ratio:1,children:L("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover","data-puck-editable":"true","data-puck-component":"HowItWorksSection","data-puck-field":"dataHowItWorks","data-puck-array-index":i,"data-puck-nested-field":"image"})})})]}),lt("div",{className:"mt-6 w-full",children:[L("div",{className:"w-full text-xl font-semibold",children:u(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]})]},i))}),t&&L(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>lt(Xa,{children:[e&&L(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&L("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4",children:o.map((a,i)=>lt("div",{className:r("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&L("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?Xs(a.image)?L("img",{src:a.image,className:"block object-cover","data-puck-editable":"true","data-puck-component":"HowItWorksSection","data-puck-field":"dataHowItWorks","data-puck-array-index":i,"data-puck-nested-field":"image"}):L(Xf,{className:"h-6 w-6 stroke-white stroke-2",children:u(a.image.replace(/\n|\r/g,""))}):a.image}),lt("div",{className:"mt-4 w-full md:mt-6",children:[L("div",{className:"w-full text-xl font-semibold",children:u(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]})]},i))}),t&&L(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Kf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return L(Ys,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return L(Yf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return L(Zf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return L(Ys,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Jf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>L(Xa,{children:Kf({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),eu=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>L(B,{className:t,idSection:a,background:o,children:L(Jf,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{cva as tu}from"class-variance-authority";import{CheckIcon as Zs}from"lucide-react";import{Fragment as Ki,jsx as be,jsxs as Ks}from"react/jsx-runtime";var ou=tu("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3",2:"grid grid-cols-1 gap-y-3",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),au=({template:e,name:o,image:t,isFeatures:a,idx:i})=>be(Ki,{children:(()=>{switch(e){case 1:case 2:return be(Ki,{children:Ks("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataFeatures","data-puck-nested-field":"image","data-puck-array-index":i})}):be("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:be(Zs,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"ml-2",children:u(o)})]})});case 3:return Ks("li",{className:"flex h-full space-x-4",children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full"})}):be("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:be(Zs,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"my-auto ml-2 md:my-0",children:u(o)})]});default:return null}})()}),Ya=({dataFeatures:e,template:o=1})=>be(Ki,{children:(e?.length??0)>0&&be("ul",{className:r("",ou({template:o})),children:e?.map((t,a)=>be(au,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as iu}from"lucide-react";import{jsx as J,jsxs as fa}from"react/jsx-runtime";var Js=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,ru=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>fa(vo,{children:[J(Ye,{greaterThan:"sm",children:fa(E,{className:r(""),ratio:Js(o),children:[J("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"}),a&&fa(Re,{children:[J(Wo,{onClick:i,children:J("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:J("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:fa("g",{fill:"none",fillRule:"evenodd",children:[J("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),J("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),J(Ne,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:fa(ze,{className:"relative bg-transparent p-4 text-center",children:[J("div",{className:"aspect-[16/9] w-full p-0",children:J("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),J(ci,{asChild:!0,children:J(se,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:J(iu,{className:"h-6 w-6"})})})]})})]})]})}),a&&J(Ye,{lessThan:"md",children:J("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:J("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),Za=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>J("div",{className:a,children:n?J(ru,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):J(E,{ratio:Js(t),children:J("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})});import{Fragment as su,jsx as Ka,jsxs as Ji}from"react/jsx-runtime";var nu=({value:e,suffix:o,unit:t,description:a,idx:i})=>Ji("div",{className:r(""),children:[e&&Ji("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Ji("span",{children:[o," ",t]})]}),a&&Ka("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:u(a)})]}),Ja=({dataStats:e})=>Ka(su,{children:(e?.length??0)>0&&Ka("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>Ka(nu,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as el,jsx as ee,jsxs as ua}from"react/jsx-runtime";var er=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ua("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[ua("div",{className:"col-span-1 ",children:[ee(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),ee(Ya,{dataFeatures:t,template:a}),o&&ee(y,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),ee(Ja,{dataStats:i})]}),ee("div",{className:"col-span-1 md:pl-10",children:s||ee(Za,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),tl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ua("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[ee("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||ee(Za,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),ua("div",{className:"order-1 col-span-1 md:order-2",children:[ee(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),ee(Ya,{dataFeatures:t,template:a}),o&&ee("div",{className:"flex w-full items-center justify-center md:justify-start",children:ee(y,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),ee(Ja,{dataStats:i})]})]}),ol=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ua(el,{children:[ee(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&ee(y,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),ee(Ya,{dataFeatures:t,template:a}),ee("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:ee(Ja,{dataStats:i})}),s||ee(el,{children:n?.src&&ee(Za,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});import{Fragment as pu,jsx as no}from"react/jsx-runtime";var lu=`var(
251
251
  --gradient-pink-1,
252
252
  linear-gradient(
253
253
  38deg,
@@ -269,7 +269,7 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
269
269
  rgba(255, 255, 255, 0) 80%
270
270
  ),
271
271
  #fff
272
- )`,su=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return ro(Ji,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return ro(Js,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return ro(el,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return ro(Ji,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},lu=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ro(cu,{children:su({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),mu=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>ro(B,{className:r(l),background:m??nu,idSection:o,children:ro(lu,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as du}from"react";import{Fragment as pu,jsx as Do,jsxs as fu}from"react/jsx-runtime";var Ja=du(({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9","40px":"md:gap-x-10","48px":"md:gap-x-12","56px":"md:gap-x-14","64px":"md:gap-x-16","80px":"md:gap-x-20"};return fu(pu,{children:[e&&Do(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&Do("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"mx-auto max-w-xs flex-wrap justify-center md:max-w-full"),children:o?.map((s,l)=>{let m=s?.url?"a":"div",c=s?.url?{href:s.url,title:s.name,target:s.newTab?"_blank":"_self"}:{};return Do("div",{className:r("flex max-h-28 w-auto items-center justify-center md:max-w-36 md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-3"),children:Do(m,{...c,className:"group flex h-full w-full items-center justify-center",children:Do("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:r("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105"),"data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":l,"data-puck-nested-field":"logo"})})},l)})}),t&&Do(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as uu}from"react";import{Fragment as gu,jsx as no,jsxs as vu}from"react/jsx-runtime";var er=uu(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>vu(gu,{children:[e&&no(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&no("div",{className:r("list-brands flex md:flex-wrap md:justify-center md:gap-y-6",a?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"-mx-2.5 flex-wrap gap-y-5 md:-mx-3"),children:o.map((i,n)=>{let s=i?.url?"a":"div",l=i?.url?{href:i.url,title:i.name,target:i.newTab?"_blank":"_self"}:{};return no("div",{className:r("flex items-center justify-center text-center md:basis-1/4 md:px-3",a?"shrink-0 basis-5/12 snap-center":"basis-1/2 px-2.5"),children:no(s,{...l,className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3 duration-300 hover:border-pink-500",children:no("div",{className:"flex w-full items-center justify-center",children:no("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":n,"data-puck-nested-field":"logo"})})})},n)})}),t&&no(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as hu}from"react";import{Fragment as xu,jsx as Qe,jsxs as or}from"react/jsx-runtime";var tr=(e,o,t)=>{if(!e)return Qe("div",{className:r("h-full w-full",o)});let a=e.url?"a":"div";return Qe("div",{className:r("h-full w-full",o),children:Qe(a,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e.url&&"duration-300 hover:border-pink-500"),children:Qe("div",{className:"flex h-full w-full items-center justify-center",children:Qe("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":t,"data-puck-nested-field":"logo"})})})})},ar=hu(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=vo(),i=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);i.push(...o.slice(0,s)),n.push(...o.slice(s))}return or(xu,{children:[e&&Qe(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&or(ge,{opts:{align:a?"center":"start"},className:"w-full",children:[Qe(ve,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?i.map((s,l)=>or(de,{className:"flex shrink-0 basis-5/12 flex-col items-center justify-between gap-3 pl-3 md:basis-1/4 md:gap-4 md:pl-4 lg:basis-1/6",children:[tr(s,"min-h-0 flex-1",l),n[l]?tr(n[l],"min-h-0 flex-1",l):Qe("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>Qe(de,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:tr(s,"",l)},l))}),Qe(yo,{className:"mt-5"})]}),t&&Qe(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as ku}from"react";import{useEffect as bu,useState as ir}from"react";import{animate as tl,motion as yu,useMotionValue as wu}from"motion/react";import Nu from"react-use-measure";import{jsx as Cu,jsxs as Pu}from"react/jsx-runtime";function Mo({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=ir(t),[d,{width:p,height:g}]=Nu(),h=wu(0),[w,T]=ir(!1),[C,z]=ir(0);bu(()=>{let _,k=(i==="horizontal"?p:g)+o,ne=n?-k/2:0,U=n?0:-k/2,qt=Math.abs(U-ne)/m;if(w){let Ho=Math.abs(h.get()-U)/m;_=tl(h,[h.get(),U],{ease:"linear",duration:Ho,onComplete:()=>{T(!1),z(gm=>gm+1)}})}else _=tl(h,[ne,U],{ease:"linear",duration:qt,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{h.set(ne)}});return _?.stop},[C,h,m,p,g,o,w,i,n]);let W=a?{onHoverStart:()=>{T(!0),c(a)},onHoverEnd:()=>{T(!0),c(t)},onTouchStart:()=>{T(!0),c(a)},onTouchEnd:()=>{T(!0),c(t)}}:{};return Cu("div",{className:r("overflow-hidden",s),children:Pu(yu.div,{className:r("flex w-max",l),style:{...i==="horizontal"?{x:h,paddingLeft:o}:{y:h},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:d,...W,children:[e,e]})})}import{Fragment as al,jsx as Me,jsxs as Ru}from"react/jsx-runtime";var ol=(e,o,t)=>{let a=e?.url?"a":"div";return Me("div",{className:r("h-full w-full",o),children:Me(a,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e?.url&&"duration-300 hover:border-pink-500"),children:Me("div",{className:"flex h-full w-full items-center justify-center",children:Me("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":t,"data-puck-nested-field":"logo"})})})})},rr=ku(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,i=a>6;return Ru(al,{children:[e&&Me(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),a>0&&Me(al,{children:i?Me("div",{className:"mark-horizontal-slider relative overflow-hidden",children:Me(Mo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>Me("div",{className:"w-32 md:w-40",children:ol(n,"",s)},s))})}):Me("div",{className:r("list-brands -mx-5 flex snap-x snap-mandatory flex-nowrap space-x-3 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:flex-wrap md:justify-center md:gap-y-6 md:space-x-0 md:px-0"),children:o?.map((n,s)=>Me("div",{className:"flex shrink-0 basis-5/12 snap-center items-center justify-center md:basis-1/4 md:px-3 lg:basis-1/6",children:ol(n,"",s)},s))})}),t&&Me(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),Me("style",{children:`
272
+ )`,mu=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return no(er,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return no(tl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return no(ol,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return no(er,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},cu=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>no(pu,{children:mu({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),du=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>no(B,{className:r(l),background:m??lu,idSection:o,children:no(cu,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as fu}from"react";import{Fragment as uu,jsx as Ao,jsxs as gu}from"react/jsx-runtime";var ei=fu(({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9","40px":"md:gap-x-10","48px":"md:gap-x-12","56px":"md:gap-x-14","64px":"md:gap-x-16","80px":"md:gap-x-20"};return gu(uu,{children:[e&&Ao(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&Ao("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"mx-auto max-w-xs flex-wrap justify-center md:max-w-full"),children:o?.map((s,l)=>{let m=s?.url?"a":"div",c=s?.url?{href:s.url,title:s.name,target:s.newTab?"_blank":"_self"}:{};return Ao("div",{className:r("flex max-h-28 w-auto items-center justify-center md:max-w-36 md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-3"),children:Ao(m,{...c,className:"group flex h-full w-full items-center justify-center",children:Ao("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:r("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105"),"data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":l,"data-puck-nested-field":"logo"})})},l)})}),t&&Ao(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as vu}from"react";import{Fragment as hu,jsx as so,jsxs as xu}from"react/jsx-runtime";var tr=vu(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>xu(hu,{children:[e&&so(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&so("div",{className:r("list-brands flex md:flex-wrap md:justify-center md:gap-y-6",a?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"-mx-2.5 flex-wrap gap-y-5 md:-mx-3"),children:o.map((i,n)=>{let s=i?.url?"a":"div",l=i?.url?{href:i.url,title:i.name,target:i.newTab?"_blank":"_self"}:{};return so("div",{className:r("flex items-center justify-center text-center md:basis-1/4 md:px-3",a?"shrink-0 basis-5/12 snap-center":"basis-1/2 px-2.5"),children:so(s,{...l,className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3 duration-300 hover:border-pink-500",children:so("div",{className:"flex w-full items-center justify-center",children:so("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":n,"data-puck-nested-field":"logo"})})})},n)})}),t&&so(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as bu}from"react";import{Fragment as yu,jsx as Qe,jsxs as ar}from"react/jsx-runtime";var or=(e,o,t)=>{if(!e)return Qe("div",{className:r("h-full w-full",o)});let a=e.url?"a":"div";return Qe("div",{className:r("h-full w-full",o),children:Qe(a,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e.url&&"duration-300 hover:border-pink-500"),children:Qe("div",{className:"flex h-full w-full items-center justify-center",children:Qe("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":t,"data-puck-nested-field":"logo"})})})})},ir=bu(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=bo(),i=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);i.push(...o.slice(0,s)),n.push(...o.slice(s))}return ar(yu,{children:[e&&Qe(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&ar(ge,{opts:{align:a?"center":"start"},className:"w-full",children:[Qe(ve,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?i.map((s,l)=>ar(de,{className:"flex shrink-0 basis-5/12 flex-col items-center justify-between gap-3 pl-3 md:basis-1/4 md:gap-4 md:pl-4 lg:basis-1/6",children:[or(s,"min-h-0 flex-1",l),n[l]?or(n[l],"min-h-0 flex-1",l):Qe("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>Qe(de,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:or(s,"",l)},l))}),Qe(Po,{className:"mt-5"})]}),t&&Qe(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as Tu}from"react";import{useEffect as wu,useState as rr}from"react";import{animate as al,motion as Nu,useMotionValue as Pu}from"motion/react";import Cu from"react-use-measure";import{jsx as Ru,jsxs as ku}from"react/jsx-runtime";function Lo({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=rr(t),[d,{width:p,height:g}]=Cu(),x=Pu(0),[N,T]=rr(!1),[C,V]=rr(0);wu(()=>{let H,h=(i==="horizontal"?p:g)+o,X=n?-h/2:0,F=n?0:-h/2,qt=Math.abs(F-X)/m;if(N){let Bo=Math.abs(x.get()-F)/m;H=al(x,[x.get(),F],{ease:"linear",duration:Bo,onComplete:()=>{T(!1),V(hm=>hm+1)}})}else H=al(x,[X,F],{ease:"linear",duration:qt,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{x.set(X)}});return H?.stop},[C,x,m,p,g,o,N,i,n]);let $=a?{onHoverStart:()=>{T(!0),c(a)},onHoverEnd:()=>{T(!0),c(t)},onTouchStart:()=>{T(!0),c(a)},onTouchEnd:()=>{T(!0),c(t)}}:{};return Ru("div",{className:r("overflow-hidden",s),children:ku(Nu.div,{className:r("flex w-max",l),style:{...i==="horizontal"?{x,paddingLeft:o}:{y:x},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:d,...$,children:[e,e]})})}import{Fragment as rl,jsx as Me,jsxs as Su}from"react/jsx-runtime";var il=(e,o,t)=>{let a=e?.url?"a":"div";return Me("div",{className:r("h-full w-full",o),children:Me(a,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e?.url&&"duration-300 hover:border-pink-500"),children:Me("div",{className:"flex h-full w-full items-center justify-center",children:Me("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":t,"data-puck-nested-field":"logo"})})})})},nr=Tu(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,i=a>6;return Su(rl,{children:[e&&Me(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),a>0&&Me(rl,{children:i?Me("div",{className:"mark-horizontal-slider relative overflow-hidden",children:Me(Lo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>Me("div",{className:"w-32 md:w-40",children:il(n,"",s)},s))})}):Me("div",{className:r("list-brands -mx-5 flex snap-x snap-mandatory flex-nowrap space-x-3 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:flex-wrap md:justify-center md:gap-y-6 md:space-x-0 md:px-0"),children:o?.map((n,s)=>Me("div",{className:"flex shrink-0 basis-5/12 snap-center items-center justify-center md:basis-1/4 md:px-3 lg:basis-1/6",children:il(n,"",s)},s))})}),t&&Me(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),Me("style",{children:`
273
273
  .mark-horizontal-slider {
274
274
  mask-image: linear-gradient(
275
275
  to right,
@@ -286,15 +286,15 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
286
286
  transparent 100%
287
287
  );
288
288
  }
289
- `})]})});import{Fragment as Mu,jsx as $t}from"react/jsx-runtime";var Tu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return $t(Ja,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return $t(er,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return $t(ar,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return $t(rr,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return $t(Ja,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},Su=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>$t(Mu,{children:Tu({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),Du=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>$t(B,{className:r(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:$t(Su,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as Iu}from"react";import{ChevronRightIcon as Au}from"@heroicons/react/16/solid";import{Fragment as Mt,jsx as f,jsxs as y}from"react/jsx-runtime";var lt=({btnLink:e,btnName:o,newTab:t})=>f(ie,{variant:"primary",asChild:!0,children:y("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(Au,{className:"h-4 w-4"})]})}),nr=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(Mt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>y("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&f("div",{className:"mx-auto h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),il=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(Mt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>y("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
289
+ `})]})});import{Fragment as Au,jsx as jt}from"react/jsx-runtime";var Du=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return jt(ei,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return jt(tr,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return jt(ir,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return jt(nr,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return jt(ei,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},Mu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>jt(Au,{children:Du({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),Iu=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>jt(B,{className:r(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:jt(Mu,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as Lu}from"react";import{ChevronRightIcon as zu}from"@heroicons/react/16/solid";import{Fragment as It,jsx as f,jsxs as w}from"react/jsx-runtime";var mt=({btnLink:e,btnName:o,newTab:t})=>f(re,{variant:"primary",asChild:!0,children:w("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(zu,{className:"h-4 w-4"})]})}),sr=({dataHeading:e,dataFeatures:o,dataButtons:t})=>w(It,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>w("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&f("div",{className:"mx-auto h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),w("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[w("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),nl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>w(It,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>w("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),w("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[w("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
290
290
  .list-features-2 .feature-item {
291
291
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
292
292
  }
293
- `})]}),rl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(Mt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>y("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"mt-4 w-full flex-1",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),nl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[y("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),y("div",{className:"lg:col-span-6",children:[o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>y("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),sl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(Mt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>y("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ll=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(Mt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>y("div",{className:"feature-item relative w-full",children:[a?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ml=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,m=n[a]??-1,c=(d,p)=>{let g=d?.btnLink?"a":"div",h=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return f("div",{className:r("basis-1/2 px-2 lg:px-5",l,p===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:y(g,{...h,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&f("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:f("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":p,"data-puck-nested-field":"image"})}),y("div",{className:"w-full flex-1 text-center",children:[d?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:u(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:u(d.description)})]})]})},p)};return y(Mt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,p)=>c(d,p))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},cl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(Mt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>y("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[y("div",{className:"flex w-full flex-1 flex-col p-5",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(lt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&f("div",{className:"w-full",style:{aspectRatio:"347/220"},children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),dl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>y("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[f("div",{className:"flex items-center lg:col-span-6",children:y("div",{className:"w-full",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>y("div",{className:"feature-item relative flex w-full flex-col",children:[i?.image&&f("div",{className:"h-10 w-10",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":n,"data-puck-nested-field":"image"})}),y("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:u(i.name)}),i?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(lt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&f("div",{className:"flex items-center lg:col-span-4",children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:f(H,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})})})})]}),pl=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>y(Mt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),f("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&y("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>y("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[i?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":n,"data-puck-nested-field":"image"})}),y("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:u(i.name)}),i?.description&&f("div",{className:"mt-2 text-gray-500",children:u(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(lt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&y("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[f("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),f("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:f("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})})]})]})}),a&&f(b,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),fl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=Iu(0),s=vo();return y(Mt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&y("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[f("div",{children:f("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:f(ft,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:i.toString(),children:o?.map((l,m)=>y(ut,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[f(gt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:u(l.name||"")}),y(vt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:u(l.description||"")}),l?.btnLink&&f("div",{className:"",children:f(lt,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&f("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:f(H,{ratio:1,className:"w-full",children:f("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":m,"data-puck-nested-field":"image"})})})]})]},m))})})}),f("div",{className:r(a?.src?"flex":"hidden md:flex"),children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?f(H,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})}):f("div",{className:"hidden md:flex",children:o?.[i]?.image?f(H,{ratio:1,className:"w-full",children:f("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"h-full w-full object-contain",loading:"lazy","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}):f("div",{className:"h-0 w-0"})})})})]}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as Hu,jsx as ye}from"react/jsx-runtime";var Lu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return ye(nr,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ye(il,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ye(rl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ye(nl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ye(sl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ye(ll,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ye(ml,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ye(cl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ye(dl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return ye(pl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return ye(fl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return ye(nr,{dataHeading:o,dataFeatures:t,dataButtons:a})}},zu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>ye(Hu,{children:Lu({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),Eu=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>ye(B,{className:t,idSection:a,background:o,children:ye(zu,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as _u}from"@heroicons/react/24/solid";import Fu from"lodash";var ei=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],ti=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},oi=(e,o)=>o[e%o.length];import{Fragment as gl,jsx as ee,jsxs as Io}from"react/jsx-runtime";var Bu=({avatar:e="",name:o="",index:t=0})=>{if(Fu.isEmpty(e)){let a=ti({name:o})??"",i=oi(t,ei);return ee("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return ee("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:ee("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o,"data-puck-editable":"true","data-puck-component":"TestimonialSection","data-puck-field":"dataTestimonials","data-puck-array-index":t,"data-puck-nested-field":"avatar"})})},ul=({testimonial:e,className:o,index:t})=>ee("div",{className:r("testimonial-item",o),children:Io("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[Io("div",{className:"flex flex-nowrap items-center space-x-2",children:[ee(Bu,{avatar:e.avatar,name:e.name,index:t}),Io("div",{className:"min-w-0 flex-1 pl-1",children:[ee("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&ee("div",{className:"text-xs font-normal text-pink-500",children:u(e.position)})]})]}),Io("div",{className:"mt-3",children:[e?.shortTitle&&ee("div",{className:"text-sm font-bold text-gray-700",children:u(e.shortTitle)}),e?.description&&ee("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:u(e.description)})]}),Io("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&ee("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&ee("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>ee(_u,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),sr=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return Io(gl,{children:[e&&ee(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&ee(gl,{children:i?ee("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:ee(Mo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>ee(ul,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):ee("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>ee(ul,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&ee(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as vl}from"@heroicons/react/24/solid";import{Fragment as Gu,jsx as F,jsxs as Ue}from"react/jsx-runtime";var Ou=({className:e})=>F("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:F("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),Vu=({testimonial:e,className:o})=>F("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:Ue("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&F("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:F(H,{ratio:2/3,className:"w-full",children:F("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Ue("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Ue("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Ue("div",{className:"grow",children:[e?.name&&F("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&F("div",{className:"mt-1 text-xs font-normal text-gray-500",children:u(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Ue("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&F("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&F("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>F(vl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&F("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:F(H,{ratio:2/3,className:"w-full",children:F("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Ue("div",{className:"flex flex-1 flex-col md:flex-none",children:[Ue("div",{className:"flex-1",children:[Ue("div",{className:"mb-1.5 flex flex-none space-x-3",children:[F(Ou,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&F("div",{className:"flex-none text-base font-medium md:text-lg",children:u(e.shortTitle)})]}),e?.description&&F("blockquote",{className:"relative flex-1 text-justify text-base",children:u(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Ue("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&F("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&F("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>F(vl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),hl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Ue(Gu,{children:[e&&F(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&Ue(ge,{className:"w-full",children:[F(ve,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>F(de,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:F(Vu,{testimonial:a})},i))}),(o??[]).length>1&&F(yo,{className:"mt-8"})]}),t&&F(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as Wu}from"@heroicons/react/24/solid";import $u from"lodash";import{Fragment as bl,jsx as G,jsxs as so}from"react/jsx-runtime";var ju=({avatar:e="",name:o="",index:t=0})=>{if($u.isEmpty(e)){let a=ti({name:o})??"",i=oi(t,ei);return G("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return G("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:G("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},xl=({testimonial:e,className:o,index:t})=>G("div",{className:r("testimonial-item",o),children:so("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[so("div",{className:"flex flex-nowrap items-center space-x-2",children:[G(ju,{avatar:e.avatar,name:e.name,index:t}),so("div",{className:"flex-1 pl-1",children:[G("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&G("div",{className:"text-xs font-normal text-pink-500",children:u(e.position)})]})]}),so("div",{className:"mt-3",children:[e?.shortTitle&&G("div",{className:"text-sm font-bold text-gray-700",children:u(e.shortTitle)}),e?.description&&G("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:u(e.description)})]}),so("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&G("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&G("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>G(Wu,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),yl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>G(bl,{children:l.map((m,c)=>G(Mo,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>G(xl,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return so(bl,{children:[e&&G(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&G(fo,{children:i?so("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[G(Xe,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),G(Xe,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),G(Xe,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):G("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>G(xl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&G(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),G("style",{children:`
293
+ `})]}),sl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>w(It,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>w("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),w("div",{className:"mt-4 w-full flex-1",children:[w("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ll=({dataHeading:e,dataFeatures:o,dataButtons:t})=>w("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[w("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),w("div",{className:"lg:col-span-6",children:[o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>w("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),w("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[w("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),ml=({dataHeading:e,dataFeatures:o,dataButtons:t})=>w(It,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>w("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),w("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[w("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),cl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>w(It,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>w("div",{className:"feature-item relative w-full",children:[a?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),w("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[w("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),dl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,m=n[a]??-1,c=(d,p)=>{let g=d?.btnLink?"a":"div",x=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return f("div",{className:r("basis-1/2 px-2 lg:px-5",l,p===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:w(g,{...x,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&f("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:f("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":p,"data-puck-nested-field":"image"})}),w("div",{className:"w-full flex-1 text-center",children:[d?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:u(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:u(d.description)})]})]})},p)};return w(It,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,p)=>c(d,p))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},pl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>w(It,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>w("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[w("div",{className:"flex w-full flex-1 flex-col p-5",children:[w("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&f("div",{className:"w-full",style:{aspectRatio:"347/220"},children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),fl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>w("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[f("div",{className:"flex items-center lg:col-span-6",children:w("div",{className:"w-full",children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>w("div",{className:"feature-item relative flex w-full flex-col",children:[i?.image&&f("div",{className:"h-10 w-10",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":n,"data-puck-nested-field":"image"})}),w("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[w("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:u(i.name)}),i?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&f("div",{className:"flex items-center lg:col-span-4",children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:f(E,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})})})})]}),ul=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>w(It,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),f("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&w("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>w("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[i?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":n,"data-puck-nested-field":"image"})}),w("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[w("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:u(i.name)}),i?.description&&f("div",{className:"mt-2 text-gray-500",children:u(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&w("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[f("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),f("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:f("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})})]})]})}),a&&f(y,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),gl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=Lu(0),s=bo();return w(It,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&w("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[f("div",{children:f("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:f(ut,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:i.toString(),children:o?.map((l,m)=>w(gt,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[f(vt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:u(l.name||"")}),w(ht,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:u(l.description||"")}),l?.btnLink&&f("div",{className:"",children:f(mt,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&f("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:f(E,{ratio:1,className:"w-full",children:f("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":m,"data-puck-nested-field":"image"})})})]})]},m))})})}),f("div",{className:r(a?.src?"flex":"hidden md:flex"),children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?f(E,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})}):f("div",{className:"hidden md:flex",children:o?.[i]?.image?f(E,{ratio:1,className:"w-full",children:f("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"h-full w-full object-contain",loading:"lazy","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}):f("div",{className:"h-0 w-0"})})})})]}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as Fu,jsx as ye}from"react/jsx-runtime";var Eu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return ye(sr,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ye(nl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ye(sl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ye(ll,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ye(ml,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ye(cl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ye(dl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ye(pl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ye(fl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return ye(ul,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return ye(gl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return ye(sr,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Hu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>ye(Fu,{children:Eu({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),_u=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>ye(B,{className:t,idSection:a,background:o,children:ye(Hu,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as Bu}from"@heroicons/react/24/solid";import Ou from"lodash";var ti=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],oi=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},ai=(e,o)=>o[e%o.length];import{Fragment as hl,jsx as te,jsxs as zo}from"react/jsx-runtime";var Vu=({avatar:e="",name:o="",index:t=0})=>{if(Ou.isEmpty(e)){let a=oi({name:o})??"",i=ai(t,ti);return te("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return te("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:te("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o,"data-puck-editable":"true","data-puck-component":"TestimonialSection","data-puck-field":"dataTestimonials","data-puck-array-index":t,"data-puck-nested-field":"avatar"})})},vl=({testimonial:e,className:o,index:t})=>te("div",{className:r("testimonial-item",o),children:zo("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[zo("div",{className:"flex flex-nowrap items-center space-x-2",children:[te(Vu,{avatar:e.avatar,name:e.name,index:t}),zo("div",{className:"min-w-0 flex-1 pl-1",children:[te("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&te("div",{className:"text-xs font-normal text-pink-500",children:u(e.position)})]})]}),zo("div",{className:"mt-3",children:[e?.shortTitle&&te("div",{className:"text-sm font-bold text-gray-700",children:u(e.shortTitle)}),e?.description&&te("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:u(e.description)})]}),zo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&te("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&te("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>te(Bu,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),lr=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return zo(hl,{children:[e&&te(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&te(hl,{children:i?te("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:te(Lo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>te(vl,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):te("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>te(vl,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&te(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as xl}from"@heroicons/react/24/solid";import{Fragment as $u,jsx as _,jsxs as Ue}from"react/jsx-runtime";var Gu=({className:e})=>_("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),Wu=({testimonial:e,className:o})=>_("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:Ue("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&_("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:_(E,{ratio:2/3,className:"w-full",children:_("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Ue("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Ue("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Ue("div",{className:"grow",children:[e?.name&&_("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&_("div",{className:"mt-1 text-xs font-normal text-gray-500",children:u(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Ue("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>_(xl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&_("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:_(E,{ratio:2/3,className:"w-full",children:_("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Ue("div",{className:"flex flex-1 flex-col md:flex-none",children:[Ue("div",{className:"flex-1",children:[Ue("div",{className:"mb-1.5 flex flex-none space-x-3",children:[_(Gu,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&_("div",{className:"flex-none text-base font-medium md:text-lg",children:u(e.shortTitle)})]}),e?.description&&_("blockquote",{className:"relative flex-1 text-justify text-base",children:u(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Ue("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>_(xl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),bl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Ue($u,{children:[e&&_(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&Ue(ge,{className:"w-full",children:[_(ve,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>_(de,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:_(Wu,{testimonial:a})},i))}),(o??[]).length>1&&_(Po,{className:"mt-8"})]}),t&&_(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as ju}from"@heroicons/react/24/solid";import Qu from"lodash";import{Fragment as wl,jsx as W,jsxs as lo}from"react/jsx-runtime";var Uu=({avatar:e="",name:o="",index:t=0})=>{if(Qu.isEmpty(e)){let a=oi({name:o})??"",i=ai(t,ti);return W("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return W("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:W("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},yl=({testimonial:e,className:o,index:t})=>W("div",{className:r("testimonial-item",o),children:lo("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[lo("div",{className:"flex flex-nowrap items-center space-x-2",children:[W(Uu,{avatar:e.avatar,name:e.name,index:t}),lo("div",{className:"flex-1 pl-1",children:[W("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&W("div",{className:"text-xs font-normal text-pink-500",children:u(e.position)})]})]}),lo("div",{className:"mt-3",children:[e?.shortTitle&&W("div",{className:"text-sm font-bold text-gray-700",children:u(e.shortTitle)}),e?.description&&W("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:u(e.description)})]}),lo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&W("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&W("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>W(ju,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),Nl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>W(wl,{children:l.map((m,c)=>W(Lo,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>W(yl,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return lo(wl,{children:[e&&W(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&W(vo,{children:i?lo("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[W(Ye,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),W(Ye,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),W(Ye,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):W("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>W(yl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&W(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),W("style",{children:`
294
294
  .mark-vertical-marquee {
295
295
  mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
296
296
  }
297
- `})]})};import{Fragment as Xu,jsx as lo}from"react/jsx-runtime";var Qu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return lo(sr,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return lo(yl,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return lo(hl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return lo(sr,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Uu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>lo(Xu,{children:Qu({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),qu=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>lo(B,{className:r(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:lo(Uu,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import{Fragment as Yu,jsx as ae,jsxs as mo}from"react/jsx-runtime";var lr=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>ae(ft,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>mo(ut,{value:n.title,className:"last:border-none",children:[ae(gt,{className:"md:text-lg",children:n.title}),ae(vt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:u(n.description)})]},s))});return mo("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[ae("div",{className:"relative",children:mo("div",{className:"md:sticky md:top-16",children:[o&&ae(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&ae(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&ae("div",{className:"col-span-2",children:a(e[0])}),t&&ae(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},wl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>ae(ft,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>mo(ut,{value:c.title,className:"last:border-none",children:[ae(gt,{className:"md:text-lg",children:c.title}),ae(vt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:u(c.description)})]},d))});return mo(Yu,{children:[o&&ae(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&mo(Pt,{defaultValue:e[0]?.title,children:[e?.length>=1&&mo(bt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[ae(yt,{className:"mb-3 text-center",children:ae(Ze,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>ae(Ke,{value:m.title,children:m.title},m.title+c))})}),ae(wt,{}),ae(Nt,{})]}),e.map((m,c)=>ae(Je,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&ae(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};import{Fragment as eg,jsx as Ao}from"react/jsx-runtime";var Zu=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return Ao(lr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return Ao(wl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return Ao(lr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Ku=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>Ao(eg,{children:Zu({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),Ju=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Ao(B,{className:t,idSection:i,background:a,children:Ao(Ku,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import tg,{memo as og}from"react";import{ArrowDownIcon as ag}from"@heroicons/react/20/solid";import{Fragment as Nl,jsx as Y,jsxs as mt}from"react/jsx-runtime";var ig=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return mt(Nl,{children:[Y("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:mt("picture",{children:[Y("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),Y("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),mt("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[Y("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),mt("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&mt(Nl,{children:[Y(ie,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&Y("span",{className:"flex-none leading-none",children:"\xB7"})]}),Y("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},mr=og(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>mt("div",{children:[Y("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((g,h)=>Y("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:Y("div",{onClick:w=>m(w,g?.id,g?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:Y(ig,{news:g})},g?.id)},h))}),d?.isShowBtn&&Y("div",{className:"mt-8 flex w-full items-center justify-center",children:mt(Ge,{action:d?.btnUrl||i&&(()=>i?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[u(d.btnName||"Xem th\xEAm"),d?.isLoading?Y(go,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!d?.btnUrl&&Y(ag,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return mt(tg.Fragment,{children:[e&&Y(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?mt(Pt,{defaultValue:t[0]?.title,children:[mt(bt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[Y(yt,{className:"mb-6 text-center",children:Y(Ze,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>Y(Ke,{value:d.title,children:d.title},d.title+p))})}),Y(wt,{}),Y(Nt,{})]}),t.map((d,p)=>Y(Je,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as lg,jsx as pa}from"react/jsx-runtime";var rg=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return pa(mr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return pa(mr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},ng=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>pa(lg,{children:rg({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),sg=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>pa(B,{className:r(i),background:n,idSection:e,children:pa(ng,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as fg,jsx as Ie,jsxs as cr}from"react/jsx-runtime";var Pl=({dataHeading:e,dataCTA:o,dataButtons:t})=>cr("div",{className:"relative block overflow-hidden rounded-2xl bg-pink-50 p-6 md:px-10 md:py-14 lg:overflow-visible",style:{background:o?.background},children:[e&&Ie(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&Ie(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),mg=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>cr("div",{className:"relative block grid grid-cols-1 gap-6 overflow-hidden rounded-2xl bg-pink-700 p-6 pb-0 md:grid-cols-2 md:px-10 md:pb-0 md:pt-0 lg:overflow-visible",style:o?.background?{background:o.background}:{},children:[cr("div",{className:"flex flex-col justify-center md:py-14",children:[e&&Ie(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&Ie(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Ie("div",{className:"mx-auto w-full max-w-sm self-end md:ml-auto md:mr-0 md:pt-10",children:a&&Ie(H,{ratio:4/3,children:Ie("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain","data-puck-editable":"true","data-puck-component":"CTASection","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})})]}),cg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return Ie(Pl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return Ie(mg,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return Ie(Pl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},dg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>Ie(fg,{children:cg({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),pg=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>Ie(B,{className:t,idSection:a,background:o,children:Ie(dg,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import Cl from"react";import{jsx as jt,jsxs as kl}from"react/jsx-runtime";var ug=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return kl("div",{className:"text-center",children:[jt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:u(t??"")}),jt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:u(o??"")}),a&&jt("div",{className:"mt-2 text-sm text-gray-500",children:u(a??"")})]})},ai=({dataMetrics:e,dataButtons:o,dataHeading:t})=>kl(Cl.Fragment,{children:[t&&jt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&jt("div",{className:r("grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",e?.length===2&&"md:grid-cols-4 md:[&>*:first-child]:col-start-2",e?.length===4&&"md:grid-cols-4"),children:e?.map((a,i)=>jt(Cl.Fragment,{children:jt(ug,{metric:a})},i))}),o&&jt(b,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import Rl from"react";import{jsx as Qt,jsxs as Tl}from"react/jsx-runtime";var gg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Tl("div",{className:"bg-gray-100 p-4 text-center md:p-8",children:[Qt("div",{className:"text-2xl font-bold text-gray-900 md:text-3xl",children:u(t??"")}),Qt("div",{className:"mt-2 text-sm font-semibold text-gray-500",children:u(o??"")}),a&&Qt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:u(a??"")})]})},dr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Tl(Rl.Fragment,{children:[t&&Qt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Qt("div",{className:r("grid grid-cols-2 gap-px overflow-hidden rounded-lg md:rounded-xl md:py-0 lg:grid-cols-4",e?.length===2&&"lg:grid-cols-2",e?.length===3&&"lg:grid-cols-3"),children:e?.map((a,i)=>Qt(Rl.Fragment,{children:Qt(gg,{metric:a})},i))}),o&&Qt(b,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as bg,jsx as Lo}from"react/jsx-runtime";var vg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return Lo(ai,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return Lo(dr,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return Lo(ai,{dataMetrics:o,dataButtons:a,dataHeading:e})}},hg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>Lo(bg,{children:vg({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),xg=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:i,className:n,template:s})=>Lo(B,{className:r(n),background:i,idSection:e,children:Lo(hg,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as yg}from"react";import{jsx as Sl,jsxs as Ng}from"react/jsx-runtime";var wg=yg(({className:e,title:o,children:t},a)=>Ng("div",{className:e,ref:a,children:[Sl("div",{className:"font-semibold text-gray-800",children:o}),Sl("div",{style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-241105114139-638664036992710012.png)",backgroundSize:"30%",backgroundPosition:"53% 25%"},className:"mt-4 grid grid-cols-1 gap-4 rounded-lg border bg-no-repeat p-3 text-gray-800",children:t})]}));import{useCallback as Tg}from"react";import{Fragment as Rg,jsx as co,jsxs as kg}from"react/jsx-runtime";var Pg=()=>co("div",{className:"p-3 border rounded-lg",children:kg("div",{className:"flex items-center gap-3",children:[co($a,{className:"rounded-md h-9 w-9 "}),co("div",{className:"flex-1",children:co($a,{className:"w-48 h-5 "})}),co("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Cg(){return co(Rg,{children:Array.from({length:4}).map((e,o)=>co(Pg,{},o))})}var Dl=Cg;import{Fragment as Mg,jsx as It,jsxs as pr}from"react/jsx-runtime";var Sg=({paymentMethod:e})=>It(Wa,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:pr("div",{className:"flex items-center space-x-3",children:[It("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),pr("div",{className:"grid grid-cols-1 gap-1",children:[It("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&It("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&It("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Dg=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=Tg(s=>a?.(s),[a]);return pr(Mg,{children:[e&&It("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?It(Dl,{}):It(Ga,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>It(Sg,{paymentMethod:s},s.id))})]})};import{forwardRef as Ml}from"react";import{jsx as Al}from"react/jsx-runtime";var Ig=Ml(({children:e,className:o},t)=>Al("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),Il=Ml(({children:e,className:o,...t},a)=>Al(Ig,{ref:a,className:o,...t,children:e}));Il.displayName="Payment";import{forwardRef as Ag}from"react";import{jsx as Ll,jsxs as zg}from"react/jsx-runtime";var Lg=Ag(({className:e,children:o},t)=>zg("div",{className:r("",e),ref:t,children:[Ll("hr",{className:"mb-5 h-px w-full bg-gray-500"}),Ll("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as Eg}from"react";import{jsx as _g}from"react/jsx-runtime";var Hg=Eg(({className:e,children:o},t)=>_g("div",{className:r("pb-5",e),ref:t,children:o}));import{forwardRef as Wg}from"react";import{CheckBadgeIcon as Fg,XCircleIcon as Bg}from"@heroicons/react/20/solid";import{jsx as le,jsxs as zo}from"react/jsx-runtime";var Og=({iconPaymentResult:e,message:o="",title:t=""})=>zo("div",{className:"grid grid-cols-1 gap-4",children:[zo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&le("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&le("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&le(na,{message:o,type:"success",icon:le(Fg,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Vg=({iconPaymentResult:e,message:o="",title:t=""})=>zo("div",{className:"grid grid-cols-1 gap-4",children:[zo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&le("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&le("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),le(na,{message:o,type:"error",icon:le(Bg,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Gg=({iconPaymentResult:e,message:o="",title:t=""})=>zo("div",{className:"grid grid-cols-1 gap-4",children:[zo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&le("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&le("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&le(na,{message:o,type:"neutral"})]}),zl=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return le(Og,{status:e,title:o,message:t,iconPaymentResult:a||le("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return le(Vg,{status:e,title:o,message:t,iconPaymentResult:a||le("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return le(Gg,{status:e,title:o,message:t,iconPaymentResult:a||le("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as jg,jsxs as Qg}from"react/jsx-runtime";var $g=Wg(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>Qg("div",{ref:s,className:r("rounded-lg p-4",e),children:[jg(zl,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));import{forwardRef as qg,useEffect as Xg}from"react";import{jsx as fr,jsxs as Ug}from"react/jsx-runtime";var ii=({content:e})=>Ug("picture",{children:[fr("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),fr("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),fr(Ge,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as fa,jsxs as Kg}from"react/jsx-runtime";var Yg=({template:e,content:o})=>{switch(e){case 1:return fa(ii,{content:o});default:return fa(ii,{content:o})}},Zg=qg(({template:e,content:o},t)=>(Xg(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),Kg("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[fa("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:fa("div",{className:"content",children:Yg({template:e,content:o})})}),fa("style",{children:`
297
+ `})]})};import{Fragment as Zu,jsx as mo}from"react/jsx-runtime";var qu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return mo(lr,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return mo(Nl,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return mo(bl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return mo(lr,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Xu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>mo(Zu,{children:qu({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Yu=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>mo(B,{className:r(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:mo(Xu,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import{Fragment as Ku,jsx as ie,jsxs as co}from"react/jsx-runtime";var mr=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>ie(ut,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>co(gt,{value:n.title,className:"last:border-none",children:[ie(vt,{className:"md:text-lg",children:n.title}),ie(ht,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:u(n.description)})]},s))});return co("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[ie("div",{className:"relative",children:co("div",{className:"md:sticky md:top-16",children:[o&&ie(b,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&ie(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&ie("div",{className:"col-span-2",children:a(e[0])}),t&&ie(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},Pl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>ie(ut,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>co(gt,{value:c.title,className:"last:border-none",children:[ie(vt,{className:"md:text-lg",children:c.title}),ie(ht,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:u(c.description)})]},d))});return co(Ku,{children:[o&&ie(b,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&co(Ct,{defaultValue:e[0]?.title,children:[e?.length>=1&&co(yt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[ie(wt,{className:"mb-3 text-center",children:ie(Ke,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>ie(Je,{value:m.title,children:m.title},m.title+c))})}),ie(Nt,{}),ie(Pt,{})]}),e.map((m,c)=>ie(et,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&ie(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};import{Fragment as og,jsx as Eo}from"react/jsx-runtime";var Ju=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return Eo(mr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return Eo(Pl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return Eo(mr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},eg=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>Eo(og,{children:Ju({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),tg=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Eo(B,{className:t,idSection:i,background:a,children:Eo(eg,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import ag,{memo as ig}from"react";import{ArrowDownIcon as rg}from"@heroicons/react/20/solid";import{Fragment as Cl,jsx as Z,jsxs as ct}from"react/jsx-runtime";var ng=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return ct(Cl,{children:[Z("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:ct("picture",{children:[Z("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),Z("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),ct("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[Z("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),ct("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&ct(Cl,{children:[Z(re,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&Z("span",{className:"flex-none leading-none",children:"\xB7"})]}),Z("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},cr=ig(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>ct("div",{children:[Z("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((g,x)=>Z("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:Z("div",{onClick:N=>m(N,g?.id,g?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:Z(ng,{news:g})},g?.id)},x))}),d?.isShowBtn&&Z("div",{className:"mt-8 flex w-full items-center justify-center",children:ct(Ge,{action:d?.btnUrl||i&&(()=>i?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[u(d.btnName||"Xem th\xEAm"),d?.isLoading?Z(xo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!d?.btnUrl&&Z(rg,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return ct(ag.Fragment,{children:[e&&Z(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?ct(Ct,{defaultValue:t[0]?.title,children:[ct(yt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[Z(wt,{className:"mb-6 text-center",children:Z(Ke,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>Z(Je,{value:d.title,children:d.title},d.title+p))})}),Z(Nt,{}),Z(Pt,{})]}),t.map((d,p)=>Z(et,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as cg,jsx as ga}from"react/jsx-runtime";var sg=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return ga(cr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return ga(cr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},lg=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>ga(cg,{children:sg({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),mg=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>ga(B,{className:r(i),background:n,idSection:e,children:ga(lg,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as gg,jsx as Ie,jsxs as dr}from"react/jsx-runtime";var kl=({dataHeading:e,dataCTA:o,dataButtons:t})=>dr("div",{className:"relative block overflow-hidden rounded-2xl bg-pink-50 p-6 md:px-10 md:py-14 lg:overflow-visible",style:{background:o?.background},children:[e&&Ie(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&Ie(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),dg=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>dr("div",{className:"relative block grid grid-cols-1 gap-6 overflow-hidden rounded-2xl bg-pink-700 p-6 pb-0 md:grid-cols-2 md:px-10 md:pb-0 md:pt-0 lg:overflow-visible",style:o?.background?{background:o.background}:{},children:[dr("div",{className:"flex flex-col justify-center md:py-14",children:[e&&Ie(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&Ie(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Ie("div",{className:"mx-auto w-full max-w-sm self-end md:ml-auto md:mr-0 md:pt-10",children:a&&Ie(E,{ratio:4/3,children:Ie("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain","data-puck-editable":"true","data-puck-component":"CTASection","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})})]}),pg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return Ie(kl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return Ie(dg,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return Ie(kl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},fg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>Ie(gg,{children:pg({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),ug=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>Ie(B,{className:t,idSection:a,background:o,children:Ie(fg,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import Rl from"react";import{jsx as Qt,jsxs as Tl}from"react/jsx-runtime";var vg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Tl("div",{className:"text-center",children:[Qt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:u(t??"")}),Qt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:u(o??"")}),a&&Qt("div",{className:"mt-2 text-sm text-gray-500",children:u(a??"")})]})},ii=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Tl(Rl.Fragment,{children:[t&&Qt(b,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Qt("div",{className:r("grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",e?.length===2&&"md:grid-cols-4 md:[&>*:first-child]:col-start-2",e?.length===4&&"md:grid-cols-4"),children:e?.map((a,i)=>Qt(Rl.Fragment,{children:Qt(vg,{metric:a})},i))}),o&&Qt(y,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import Sl from"react";import{jsx as Ut,jsxs as Dl}from"react/jsx-runtime";var hg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Dl("div",{className:"bg-gray-100 p-4 text-center md:p-8",children:[Ut("div",{className:"text-2xl font-bold text-gray-900 md:text-3xl",children:u(t??"")}),Ut("div",{className:"mt-2 text-sm font-semibold text-gray-500",children:u(o??"")}),a&&Ut("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:u(a??"")})]})},pr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Dl(Sl.Fragment,{children:[t&&Ut(b,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Ut("div",{className:r("grid grid-cols-2 gap-px overflow-hidden rounded-lg md:rounded-xl md:py-0 lg:grid-cols-4",e?.length===2&&"lg:grid-cols-2",e?.length===3&&"lg:grid-cols-3"),children:e?.map((a,i)=>Ut(Sl.Fragment,{children:Ut(hg,{metric:a})},i))}),o&&Ut(y,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as wg,jsx as Ho}from"react/jsx-runtime";var xg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return Ho(ii,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return Ho(pr,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return Ho(ii,{dataMetrics:o,dataButtons:a,dataHeading:e})}},bg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>Ho(wg,{children:xg({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),yg=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:i,className:n,template:s})=>Ho(B,{className:r(n),background:i,idSection:e,children:Ho(bg,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as Ng}from"react";import{jsx as Ml,jsxs as Cg}from"react/jsx-runtime";var Pg=Ng(({className:e,title:o,children:t},a)=>Cg("div",{className:e,ref:a,children:[Ml("div",{className:"font-semibold text-gray-800",children:o}),Ml("div",{style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-241105114139-638664036992710012.png)",backgroundSize:"30%",backgroundPosition:"53% 25%"},className:"mt-4 grid grid-cols-1 gap-4 rounded-lg border bg-no-repeat p-3 text-gray-800",children:t})]}));import{useCallback as Dg}from"react";import{Fragment as Sg,jsx as po,jsxs as Tg}from"react/jsx-runtime";var kg=()=>po("div",{className:"p-3 border rounded-lg",children:Tg("div",{className:"flex items-center gap-3",children:[po(ja,{className:"rounded-md h-9 w-9 "}),po("div",{className:"flex-1",children:po(ja,{className:"w-48 h-5 "})}),po("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Rg(){return po(Sg,{children:Array.from({length:4}).map((e,o)=>po(kg,{},o))})}var Il=Rg;import{Fragment as Ag,jsx as At,jsxs as fr}from"react/jsx-runtime";var Mg=({paymentMethod:e})=>At($a,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:fr("div",{className:"flex items-center space-x-3",children:[At("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),fr("div",{className:"grid grid-cols-1 gap-1",children:[At("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&At("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&At("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Ig=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=Dg(s=>a?.(s),[a]);return fr(Ag,{children:[e&&At("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?At(Il,{}):At(Wa,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>At(Mg,{paymentMethod:s},s.id))})]})};import{forwardRef as Al}from"react";import{jsx as zl}from"react/jsx-runtime";var Lg=Al(({children:e,className:o},t)=>zl("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),Ll=Al(({children:e,className:o,...t},a)=>zl(Lg,{ref:a,className:o,...t,children:e}));Ll.displayName="Payment";import{forwardRef as zg}from"react";import{jsx as El,jsxs as Hg}from"react/jsx-runtime";var Eg=zg(({className:e,children:o},t)=>Hg("div",{className:r("",e),ref:t,children:[El("hr",{className:"mb-5 h-px w-full bg-gray-500"}),El("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as _g}from"react";import{jsx as Bg}from"react/jsx-runtime";var Fg=_g(({className:e,children:o},t)=>Bg("div",{className:r("pb-5",e),ref:t,children:o}));import{forwardRef as jg}from"react";import{CheckBadgeIcon as Og,XCircleIcon as Vg}from"@heroicons/react/20/solid";import{jsx as le,jsxs as _o}from"react/jsx-runtime";var Gg=({iconPaymentResult:e,message:o="",title:t=""})=>_o("div",{className:"grid grid-cols-1 gap-4",children:[_o("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&le("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&le("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&le(ma,{message:o,type:"success",icon:le(Og,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Wg=({iconPaymentResult:e,message:o="",title:t=""})=>_o("div",{className:"grid grid-cols-1 gap-4",children:[_o("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&le("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&le("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),le(ma,{message:o,type:"error",icon:le(Vg,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),$g=({iconPaymentResult:e,message:o="",title:t=""})=>_o("div",{className:"grid grid-cols-1 gap-4",children:[_o("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&le("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&le("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&le(ma,{message:o,type:"neutral"})]}),Hl=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return le(Gg,{status:e,title:o,message:t,iconPaymentResult:a||le("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return le(Wg,{status:e,title:o,message:t,iconPaymentResult:a||le("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return le($g,{status:e,title:o,message:t,iconPaymentResult:a||le("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as Ug,jsxs as qg}from"react/jsx-runtime";var Qg=jg(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>qg("div",{ref:s,className:r("rounded-lg p-4",e),children:[Ug(Hl,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));import{forwardRef as Yg,useEffect as Zg}from"react";import{jsx as ur,jsxs as Xg}from"react/jsx-runtime";var ri=({content:e})=>Xg("picture",{children:[ur("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),ur("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),ur(Ge,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as va,jsxs as e0}from"react/jsx-runtime";var Kg=({template:e,content:o})=>{switch(e){case 1:return va(ri,{content:o});default:return va(ri,{content:o})}},Jg=Yg(({template:e,content:o},t)=>(Zg(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),e0("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[va("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:va("div",{className:"content",children:Kg({template:e,content:o})})}),va("style",{children:`
298
298
  .container-topbar .content {
299
299
  width: 100%;
300
300
  aspect-ratio: 1088/50;
@@ -312,7 +312,7 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
312
312
  aspect-ratio: 720/88;
313
313
  }
314
314
  }
315
- `})]})));import*as ua from"react";import{XIcon as Jg}from"lucide-react";import{Drawer as Ve}from"vaul";import{jsx as ct,jsxs as ur}from"react/jsx-runtime";var El=({shouldScaleBackground:e=!0,...o})=>ct(Ve.Root,{shouldScaleBackground:e,...o});El.displayName="Drawer";var e0=Ve.Trigger,Hl=Ve.Portal,t0=Ve.Close,gr=ua.forwardRef(({className:e,...o},t)=>ct(Ve.Overlay,{ref:t,className:r("fixed inset-0 z-50 bg-black/50",e),...o}));gr.displayName=Ve.Overlay.displayName;var _l=ua.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},i)=>ur(Hl,{children:[ct(gr,{}),ur(Ve.Content,{ref:i,className:r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90dvh] flex-col rounded-t-xl border bg-white",e),...a,children:[!t&&ur(Ve.Close,{className:r("data-[state=open]:outline-focus absolute right-2 top-2 select-none appearance-none rounded-full p-2 text-gray-700 outline-none hover:bg-gray-100 active:bg-gray-200 data-[state=open]:z-10 data-[state=open]:outline-2 data-[state=open]:outline-offset-2"),title:"\u0110\xF3ng",children:[ct(Jg,{className:"h-5 w-5"}),ct("span",{className:"sr-only",children:"Close"})]}),o]})]}));_l.displayName="DrawerContent";var Fl=({className:e,...o})=>ct("div",{className:r("grid gap-1.5 p-5 text-left",e),...o});Fl.displayName="DrawerHeader";var Bl=({className:e,...o})=>ct("div",{className:r("mt-auto flex flex-col gap-2 p-4",e),...o});Bl.displayName="DrawerFooter";var Ol=ua.forwardRef(({className:e,...o},t)=>ct(Ve.Title,{ref:t,className:r(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));Ol.displayName=Ve.Title.displayName;var Vl=ua.forwardRef(({className:e,...o},t)=>ct(Ve.Description,{ref:t,className:r("truncate text-sm text-gray-500",e),...o}));Vl.displayName=Ve.Description.displayName;var Gl=({children:e,className:o,...t})=>ct("div",{className:r("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});Gl.displayName="DrawerBody";import*as po from"react";import{OTPInput as o0,OTPInputContext as a0}from"input-otp";import{Minus as i0}from"lucide-react";import{jsx as Eo,jsxs as Wl}from"react/jsx-runtime";var $l=po.forwardRef(({className:e,containerClassName:o,...t},a)=>Eo(o0,{ref:a,containerClassName:r("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:r("disabled:cursor-not-allowed",e),...t}));$l.displayName="InputOTP";var jl=po.forwardRef(({className:e,...o},t)=>Eo("div",{ref:t,className:r("flex items-center",e),...o}));jl.displayName="InputOTPGroup";var Ql=po.forwardRef(({index:e,className:o,...t},a)=>{let i=po.useContext(a0),{char:n,hasFakeCaret:s,isActive:l}=i.slots[e]??{};return Wl("div",{ref:a,className:r("border-input relative flex h-9 w-9 items-center justify-center border-y border-r border-gray-400 text-sm text-gray-900 shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"ring-ring z-10 ring-1",o),...t,children:[n,s&&Wl("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[Eo("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),Eo("style",{children:`
315
+ `})]})));import*as ha from"react";import{XIcon as t0}from"lucide-react";import{Drawer as Ve}from"vaul";import{jsx as dt,jsxs as gr}from"react/jsx-runtime";var _l=({shouldScaleBackground:e=!0,...o})=>dt(Ve.Root,{shouldScaleBackground:e,...o});_l.displayName="Drawer";var o0=Ve.Trigger,Fl=Ve.Portal,a0=Ve.Close,vr=ha.forwardRef(({className:e,...o},t)=>dt(Ve.Overlay,{ref:t,className:r("fixed inset-0 z-50 bg-black/50",e),...o}));vr.displayName=Ve.Overlay.displayName;var Bl=ha.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},i)=>gr(Fl,{children:[dt(vr,{}),gr(Ve.Content,{ref:i,className:r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90dvh] flex-col rounded-t-xl border bg-white",e),...a,children:[!t&&gr(Ve.Close,{className:r("data-[state=open]:outline-focus absolute right-2 top-2 select-none appearance-none rounded-full p-2 text-gray-700 outline-none hover:bg-gray-100 active:bg-gray-200 data-[state=open]:z-10 data-[state=open]:outline-2 data-[state=open]:outline-offset-2"),title:"\u0110\xF3ng",children:[dt(t0,{className:"h-5 w-5"}),dt("span",{className:"sr-only",children:"Close"})]}),o]})]}));Bl.displayName="DrawerContent";var Ol=({className:e,...o})=>dt("div",{className:r("grid gap-1.5 p-5 text-left",e),...o});Ol.displayName="DrawerHeader";var Vl=({className:e,...o})=>dt("div",{className:r("mt-auto flex flex-col gap-2 p-4",e),...o});Vl.displayName="DrawerFooter";var Gl=ha.forwardRef(({className:e,...o},t)=>dt(Ve.Title,{ref:t,className:r(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));Gl.displayName=Ve.Title.displayName;var Wl=ha.forwardRef(({className:e,...o},t)=>dt(Ve.Description,{ref:t,className:r("truncate text-sm text-gray-500",e),...o}));Wl.displayName=Ve.Description.displayName;var $l=({children:e,className:o,...t})=>dt("div",{className:r("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});$l.displayName="DrawerBody";import*as fo from"react";import{OTPInput as i0,OTPInputContext as r0}from"input-otp";import{Minus as n0}from"lucide-react";import{jsx as Fo,jsxs as jl}from"react/jsx-runtime";var Ql=fo.forwardRef(({className:e,containerClassName:o,...t},a)=>Fo(i0,{ref:a,containerClassName:r("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:r("disabled:cursor-not-allowed",e),...t}));Ql.displayName="InputOTP";var Ul=fo.forwardRef(({className:e,...o},t)=>Fo("div",{ref:t,className:r("flex items-center",e),...o}));Ul.displayName="InputOTPGroup";var ql=fo.forwardRef(({index:e,className:o,...t},a)=>{let i=fo.useContext(r0),{char:n,hasFakeCaret:s,isActive:l}=i.slots[e]??{};return jl("div",{ref:a,className:r("border-input relative flex h-9 w-9 items-center justify-center border-y border-r border-gray-400 text-sm text-gray-900 shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"ring-ring z-10 ring-1",o),...t,children:[n,s&&jl("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[Fo("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),Fo("style",{children:`
316
316
  @keyframes caret-blink {
317
317
  0%, 70%, 100% {
318
318
  opacity: 1;
@@ -325,7 +325,7 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
325
325
  .animate-caret-blink {
326
326
  animation: caret-blink 1.25s ease-out infinite;
327
327
  }
328
- `})]})]})});Ql.displayName="InputOTPSlot";var Ul=po.forwardRef(({...e},o)=>Eo("div",{ref:o,role:"separator",...e,children:Eo(i0,{className:"text-gray-400"})}));Ul.displayName="InputOTPSeparator";import{useEffect as Zl,useRef as g0,useState as Kl}from"react";import{toPng as v0}from"html-to-image";import va from"react";import{LucideMessageCircleQuestion as c0}from"lucide-react";import{QRCodeSVG as d0}from"qrcode.react";async function ql(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let n=i.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=i.toDataURL("image/png");o(s)},a.onerror=function(i){t(i)},a.src=e})}import{Fragment as l0,jsx as me,jsxs as qe}from"react/jsx-runtime";var r0=()=>{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 me("ul",{className:"-ml-3 grid list-decimal grid-cols-1 gap-y-6 md:hidden",children:e.map((o,t)=>qe("li",{className:"relative flex items-center gap-4",children:[me("div",{className:"relative z-20 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-gray-100 text-sm font-semibold text-gray-700",children:t+1}),qe("div",{className:"flex flex-1 items-start gap-2",children:[me("p",{className:"text-sm leading-relaxed text-gray-700",children:u(o.text)}),t<e.length-1&&me("div",{className:"absolute left-4 top-8 h-12 w-px -translate-x-1/2 transform bg-gray-400"})]})]},t))})},n0=({isQrForAll:e,shortTitle:o,className:t})=>qe("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[qe("div",{className:"flex flex-nowrap items-start",children:[me("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:me("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),qe("div",{className:"flex-1 pl-4",children:[me("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 1 :"}),me("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"})]})]}),qe("div",{className:"flex flex-nowrap items-center",children:[me("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:me("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),qe("div",{className:"flex-1 pl-4",children:[me("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 2 :"}),me("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),qe("div",{className:"flex flex-nowrap items-center",children:[me("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:me("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),qe("div",{className:"flex-1 pl-4",children:[me("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 3 :"}),qe("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"]})]})]})]}),s0=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>qe(l0,{children:[me(n0,{isQrForAll:e,shortTitle:o,className:t}),me(r0,{})]}),vr=s0;import{jsx as ga,jsxs as Xl}from"react/jsx-runtime";var m0=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:i,onOpenChange:n})=>Xl(Re,{open:i,onOpenChange:n,children:[ga(Oo,{asChild:!0,children:e}),Xl(Ne,{position:"bottom",children:[ga(At,{children:ga(Lt,{children:o})}),ga(ze,{children:ga(vr,{isQrForAll:t,shortTitle:a})})]})]}),hr=m0;import{Fragment as ri,jsx as R,jsxs as ce}from"react/jsx-runtime";var p0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n,isHideGuidePayment:s})=>ce(ri,{children:[ce("div",{className:"qrcode__scan__container relative select-none",children:[t&&ce("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[R("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"shrink-0 select-none"}),R("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),R("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"})]}),ce("div",{className:"qrcode__scan select-none",children:[R("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:R("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),R("div",{className:"qrcode__border invisible select-none opacity-0 md:visible md:opacity-100",children:R("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),R("div",{className:"qrcode__image select-none p-4",children:e?R("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy",onLoad:a}):va.Children.map(o,l=>(va.isValidElement(l),l))})]}),n&&ce("div",{className:"text-sm text-gray-900 md:hidden",children:[R("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),R("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),i&&ce("div",{className:r("mt-3 text-sm text-gray-900 md:hidden"),children:[R("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),R("span",{className:"font-semibold",children:i})]}),R("div",{className:"mt-4 hidden text-sm font-semibold text-gray-900 md:block",children:t?ce(ri,{children:[R("img",{src:"https://homepage.momocdn.net/img/frame-1-1-251120093929.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),R("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&&ce("div",{className:"text-xs text-gray-700",children:[R("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:R("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",R("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),f0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n,className:s="",isHideGuidePayment:l})=>ce(ri,{children:[R("div",{className:r(s),children:R(p0,{dateExpired:i,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,isHideGuidePayment:l,children:o})}),R("style",{children:`
328
+ `})]})]})});ql.displayName="InputOTPSlot";var Xl=fo.forwardRef(({...e},o)=>Fo("div",{ref:o,role:"separator",...e,children:Fo(n0,{className:"text-gray-400"})}));Xl.displayName="InputOTPSeparator";import{useEffect as Jl,useRef as h0,useState as em}from"react";import{toPng as x0}from"html-to-image";import ba from"react";import{LucideMessageCircleQuestion as p0}from"lucide-react";import{QRCodeSVG as f0}from"qrcode.react";async function Yl(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let n=i.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=i.toDataURL("image/png");o(s)},a.onerror=function(i){t(i)},a.src=e})}import{Fragment as c0,jsx as me,jsxs as qe}from"react/jsx-runtime";var s0=()=>{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 me("ul",{className:"-ml-3 grid list-decimal grid-cols-1 gap-y-6 md:hidden",children:e.map((o,t)=>qe("li",{className:"relative flex items-center gap-4",children:[me("div",{className:"relative z-20 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-gray-100 text-sm font-semibold text-gray-700",children:t+1}),qe("div",{className:"flex flex-1 items-start gap-2",children:[me("p",{className:"text-sm leading-relaxed text-gray-700",children:u(o.text)}),t<e.length-1&&me("div",{className:"absolute left-4 top-8 h-12 w-px -translate-x-1/2 transform bg-gray-400"})]})]},t))})},l0=({isQrForAll:e,shortTitle:o,className:t})=>qe("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[qe("div",{className:"flex flex-nowrap items-start",children:[me("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:me("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),qe("div",{className:"flex-1 pl-4",children:[me("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 1 :"}),me("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"})]})]}),qe("div",{className:"flex flex-nowrap items-center",children:[me("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:me("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),qe("div",{className:"flex-1 pl-4",children:[me("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 2 :"}),me("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),qe("div",{className:"flex flex-nowrap items-center",children:[me("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:me("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),qe("div",{className:"flex-1 pl-4",children:[me("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 3 :"}),qe("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"]})]})]})]}),m0=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>qe(c0,{children:[me(l0,{isQrForAll:e,shortTitle:o,className:t}),me(s0,{})]}),hr=m0;import{jsx as xa,jsxs as Zl}from"react/jsx-runtime";var d0=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:i,onOpenChange:n})=>Zl(Re,{open:i,onOpenChange:n,children:[xa(Wo,{asChild:!0,children:e}),Zl(Ne,{position:"bottom",children:[xa(Lt,{children:xa(zt,{children:o})}),xa(ze,{children:xa(hr,{isQrForAll:t,shortTitle:a})})]})]}),xr=d0;import{Fragment as ni,jsx as R,jsxs as ce}from"react/jsx-runtime";var u0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n,isHideGuidePayment:s})=>ce(ni,{children:[ce("div",{className:"qrcode__scan__container relative select-none",children:[t&&ce("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[R("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"shrink-0 select-none"}),R("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),R("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"})]}),ce("div",{className:"qrcode__scan select-none",children:[R("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:R("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),R("div",{className:"qrcode__border invisible select-none opacity-0 md:visible md:opacity-100",children:R("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),R("div",{className:"qrcode__image select-none p-4",children:e?R("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy",onLoad:a}):ba.Children.map(o,l=>(ba.isValidElement(l),l))})]}),n&&ce("div",{className:"text-sm text-gray-900 md:hidden",children:[R("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),R("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),i&&ce("div",{className:r("mt-3 text-sm text-gray-900 md:hidden"),children:[R("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),R("span",{className:"font-semibold",children:i})]}),R("div",{className:"mt-4 hidden text-sm font-semibold text-gray-900 md:block",children:t?ce(ni,{children:[R("img",{src:"https://homepage.momocdn.net/img/frame-1-1-251120093929.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),R("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&&ce("div",{className:"text-xs text-gray-700",children:[R("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:R("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",R("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),g0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n,className:s="",isHideGuidePayment:l})=>ce(ni,{children:[R("div",{className:r(s),children:R(u0,{dateExpired:i,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,isHideGuidePayment:l,children:o})}),R("style",{children:`
329
329
  .qrcode__scan__container {
330
330
  padding: 15px;
331
331
  background-color: white;
@@ -393,7 +393,7 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
393
393
  transform: translate3d(0, 30%, 0);
394
394
  }
395
395
  }
396
- `})]}),u0=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:i,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:m,dateExpired:c,priceOrder:d,titleOrder:p,isHideGuidePayment:g})=>{let[h,w]=va.useState(void 0);return va.useEffect(()=>{a?ql(a).then(w).catch(()=>w(void 0)):w(void 0)},[a]),va.useEffect(()=>{t&&h&&typeof s=="function"&&!o&&s()},[t,h,s,o]),ce("div",{className:"relative z-[1]",children:[ce("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:m,children:[R("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"}),R("div",{className:r("mb-2 hidden text-base font-bold text-gray-900 md:block",l&&"opacity-0 md:opacity-100"),children:p||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),l&&R("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:R("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"})}),ce(f0,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,isHideGuidePayment:g,children:[t&&h&&!o&&R(d0,{value:t,size:215,imageSettings:{src:`${h}`,height:40,width:40,excavate:!0},level:"H"}),i&&R("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:R("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&R("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:R(Xi,{size:"lg"})})]})]}),ce("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:[ce("div",{className:r("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[ce("div",{className:"ripple size-5 rounded-full",children:[R("div",{className:"ripple-1"}),R("div",{className:"ripple-2"})]}),R("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"})]}),!g&&ce(ri,{children:[R("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),R(hr,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:ce("div",{className:"flex cursor-pointer items-center justify-center space-x-1 text-center text-sm font-semibold text-pink-600",children:[R("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",R(c0,{className:"size-4"})," "]})})]}),R("style",{children:`
396
+ `})]}),v0=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:i,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:m,dateExpired:c,priceOrder:d,titleOrder:p,isHideGuidePayment:g})=>{let[x,N]=ba.useState(void 0);return ba.useEffect(()=>{a?Yl(a).then(N).catch(()=>N(void 0)):N(void 0)},[a]),ba.useEffect(()=>{t&&x&&typeof s=="function"&&!o&&s()},[t,x,s,o]),ce("div",{className:"relative z-[1]",children:[ce("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:m,children:[R("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"}),R("div",{className:r("mb-2 hidden text-base font-bold text-gray-900 md:block",l&&"opacity-0 md:opacity-100"),children:p||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),l&&R("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:R("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"})}),ce(g0,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,isHideGuidePayment:g,children:[t&&x&&!o&&R(f0,{value:t,size:215,imageSettings:{src:`${x}`,height:40,width:40,excavate:!0},level:"H"}),i&&R("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:R("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&R("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:R(Yi,{size:"lg"})})]})]}),ce("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:[ce("div",{className:r("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[ce("div",{className:"ripple size-5 rounded-full",children:[R("div",{className:"ripple-1"}),R("div",{className:"ripple-2"})]}),R("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"})]}),!g&&ce(ni,{children:[R("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),R(xr,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:ce("div",{className:"flex cursor-pointer items-center justify-center space-x-1 text-center text-sm font-semibold text-pink-600",children:[R("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",R(p0,{className:"size-4"})," "]})})]}),R("style",{children:`
397
397
  .ripple {
398
398
  box-sizing: border-box;
399
399
  position: relative;
@@ -449,7 +449,7 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
449
449
  transform: scale(1) translateY(0);
450
450
  }
451
451
  }
452
- `})]})]})},Yl=u0;import{Fragment as w0,jsx as xr}from"react/jsx-runtime";var h0="https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",x0=["qrcode__gradient","qrcode__guide","qrcode__title"],b0=e=>!x0.some(o=>e.classList?.contains(o)),y0=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:i,dateExpired:n,priceOrder:s,titleOrder:l,className:m,isAIOQR:c=!0,isHideGuidePayment:d=!1})=>{let p=g0(null),[g,h]=Kl(null),[w,T]=Kl(!1);return Zl(()=>{if(w&&p.current){let C=setTimeout(()=>{p.current&&v0(p.current,{filter:b0}).then(z=>{h(z)}).catch(z=>{console.error("Error generating QR image:",z)})},2e3);return()=>clearTimeout(C)}},[w,t]),Zl(()=>{e&&T(!1)},[e]),xr(w0,{children:xr("div",{className:r("relative h-full md:col-span-7 md:rounded-lg",m),children:xr(Yl,{isQrForAll:c,qrImage:a,qrLink:t,logoQr:c?i:h0,expired:o,loading:e,qrCodeRef:p,titleOrder:l,onQrLoaded:()=>{T(!0)},qrImageBase64:g,dateExpired:n,priceOrder:s,isHideGuidePayment:d})})})};import C0 from"color";import k0 from"tailwindcss/plugin.js";var Jl={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 em={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var tm={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var om={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var am={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var im={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var rm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var nm={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var sm={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var lm={white:"#ffffff",black:"#000000",blue:em,green:tm,pink:om,purple:am,red:im,yellow:rm,gray:sm,orange:nm};var br={...lm};var mm={"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 dt="250ms",cm={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":dt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":dt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":dt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":dt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":dt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":dt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":dt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":dt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":dt},".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":dt}};var dm={".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 pm={".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 fm={...dm,...cm,...pm};import{flatten as N0}from"flat";function P0(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 um=e=>P0(N0(e,{safe:!0,delimiter:"-"}));var R0=e=>{let o={utilities:{},colors:{}},t=um(br),a=mm,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=C0(s).rgb().array(),d=`--${e}-${n}`;o.utilities[i][d]=`${l} ${m} ${c}`,o.colors[n]=`rgb(var(${d}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([m,c])=>{let d=`${l}-${m}`;o.utilities[i][d]=c});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=m}}),o},T0=()=>{let e="mobase",o=R0(e);return k0(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...fm})},{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:{...br,...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)`},...Jl}}})};import{Fragment as D0,jsx as A,jsxs as M0}from"react/jsx-runtime";var S0=M0(D0,{children:[A("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"}),A("meta",{name:"distribution",content:"Global"}),A("meta",{name:"author",content:"V\xED MoMo"}),A("meta",{property:"fb:app_id",content:"320653355376196"}),A("meta",{property:"fb:pages",content:"138010322921640"}),A("link",{rel:"shortcut icon",href:"/favicon.ico"}),A("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),A("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),A("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),A("meta",{name:"language",content:"vietnamese"}),A("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),A("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),A("meta",{name:"RATING",content:"GENERAL"}),A("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),A("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),A("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),A("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),A("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),A("link",{rel:"dns-prefetch",href:"//facebook.com"}),A("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),A("link",{rel:"dns-prefetch",href:"//www.google.com"}),A("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),A("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),A("link",{rel:"preconnect",href:"//connect.facebook.net"}),A("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),A("link",{rel:"preconnect",href:"//www.google-analytics.com"}),A("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),A("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),A("link",{rel:"preconnect",href:"//www.google.com"}),A("link",{rel:"preconnect",href:"//www.google.com.vn"}),A("link",{rel:"preconnect",href:"//www.googleadservices.com"}),A("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
452
+ `})]})]})},Kl=v0;import{Fragment as P0,jsx as br}from"react/jsx-runtime";var b0="https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",y0=["qrcode__gradient","qrcode__guide","qrcode__title"],w0=e=>!y0.some(o=>e.classList?.contains(o)),N0=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:i,dateExpired:n,priceOrder:s,titleOrder:l,className:m,isAIOQR:c=!0,isHideGuidePayment:d=!1})=>{let p=h0(null),[g,x]=em(null),[N,T]=em(!1);return Jl(()=>{if(N&&p.current){let C=setTimeout(()=>{p.current&&x0(p.current,{filter:w0}).then(V=>{x(V)}).catch(V=>{console.error("Error generating QR image:",V)})},2e3);return()=>clearTimeout(C)}},[N,t]),Jl(()=>{e&&T(!1)},[e]),br(P0,{children:br("div",{className:r("relative h-full md:col-span-7 md:rounded-lg",m),children:br(Kl,{isQrForAll:c,qrImage:a,qrLink:t,logoQr:c?i:b0,expired:o,loading:e,qrCodeRef:p,titleOrder:l,onQrLoaded:()=>{T(!0)},qrImageBase64:g,dateExpired:n,priceOrder:s,isHideGuidePayment:d})})})};import R0 from"color";import T0 from"tailwindcss/plugin.js";var tm={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 om={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var am={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var im={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var rm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var nm={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var sm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var lm={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var mm={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var cm={white:"#ffffff",black:"#000000",blue:om,green:am,pink:im,purple:rm,red:nm,yellow:sm,gray:mm,orange:lm};var yr={...cm};var dm={"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 pt="250ms",pm={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":pt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":pt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":pt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":pt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":pt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":pt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":pt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":pt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":pt},".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":pt}};var fm={".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 um={".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 gm={...fm,...pm,...um};import{flatten as C0}from"flat";function k0(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 vm=e=>k0(C0(e,{safe:!0,delimiter:"-"}));var S0=e=>{let o={utilities:{},colors:{}},t=vm(yr),a=dm,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=R0(s).rgb().array(),d=`--${e}-${n}`;o.utilities[i][d]=`${l} ${m} ${c}`,o.colors[n]=`rgb(var(${d}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([m,c])=>{let d=`${l}-${m}`;o.utilities[i][d]=c});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=m}}),o},D0=()=>{let e="mobase",o=S0(e);return T0(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...gm})},{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:{...yr,...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)`},...tm}}})};import{Fragment as I0,jsx as A,jsxs as A0}from"react/jsx-runtime";var M0=A0(I0,{children:[A("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"}),A("meta",{name:"distribution",content:"Global"}),A("meta",{name:"author",content:"V\xED MoMo"}),A("meta",{property:"fb:app_id",content:"320653355376196"}),A("meta",{property:"fb:pages",content:"138010322921640"}),A("link",{rel:"shortcut icon",href:"/favicon.ico"}),A("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),A("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),A("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),A("meta",{name:"language",content:"vietnamese"}),A("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),A("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),A("meta",{name:"RATING",content:"GENERAL"}),A("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),A("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),A("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),A("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),A("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),A("link",{rel:"dns-prefetch",href:"//facebook.com"}),A("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),A("link",{rel:"dns-prefetch",href:"//www.google.com"}),A("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),A("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),A("link",{rel:"preconnect",href:"//connect.facebook.net"}),A("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),A("link",{rel:"preconnect",href:"//www.google-analytics.com"}),A("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),A("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),A("link",{rel:"preconnect",href:"//www.google.com"}),A("link",{rel:"preconnect",href:"//www.google.com.vn"}),A("link",{rel:"preconnect",href:"//www.googleadservices.com"}),A("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
453
453
  "@context": "https://schema.org/",
454
454
  "@type": "WebSite",
455
455
  "@id":"https://www.momo.vn/#website",
@@ -494,5 +494,5 @@ import*as Fo from"react";import{ChevronDownIcon as bm}from"@heroicons/react/20/s
494
494
  "https://www.linkedin.com/company/momo-mservice/",
495
495
  "https://github.com/momo-wallet"
496
496
  ]
497
- }`}})]});export{ft as Accordion,vt as AccordionContent,ut as AccordionItem,gt as AccordionTrigger,Ge as ActionButton,Jc as AlertDialog,ln as AlertDialogAction,mn as AlertDialogCancel,on as AlertDialogContent,sn as AlertDialogDescription,rn as AlertDialogFooter,an as AlertDialogHeader,ki as AlertDialogOverlay,tn as AlertDialogPortal,nn as AlertDialogTitle,ed as AlertDialogTrigger,H as AspectRatio,nf as Badge,Cc as BlogSection,Tr as Breadcrumb,Lr as BreadcrumbEllipsis,Dr as BreadcrumbItem,Mr as BreadcrumbLink,Sr as BreadcrumbList,Ir as BreadcrumbPage,Ar as BreadcrumbSeparator,we as Button,b as ButtonsBlock,pg as CTASection,Ra as Calendar,na as Callout,Yn as Card,es as CardContent,Jn as CardDescription,ts as CardFooter,Zn as CardHeader,Kn as CardTitle,ge as Carousel,ve as CarouselContent,yo as CarouselDots,de as CarouselItem,bo as CarouselNext,xo as CarouselPrevious,Ca as Checkbox,Ga as ChoiceboxGroup,Wa as ChoiceboxGroupItem,bs as ChoiceboxMultiItem,Bp as Combobox,Fp as ComboboxContent,_p as ComboboxTrigger,$i as Command,zp as CommandDialog,is as CommandEmpty,rs as CommandGroup,os as CommandInput,ss as CommandItem,as as CommandList,ns as CommandSeparator,ls as CommandShortcut,Sf as Comment,Wc as DatePicker,Kc as DateSelect,Re as Dialog,ze as DialogBody,mi as DialogClose,Ne as DialogContent,Rr as DialogDescription,xa as DialogFooter,At as DialogHeader,ci as DialogOverlay,kr as DialogPortal,Xt as DialogQr,Lt as DialogTitle,Oo as DialogTrigger,El as Drawer,Gl as DrawerBody,t0 as DrawerClose,_l as DrawerContent,Vl as DrawerDescription,Bl as DrawerFooter,Fl as DrawerHeader,gr as DrawerOverlay,Hl as DrawerPortal,Ol as DrawerTitle,e0 as DrawerTrigger,Vf as DropdownMenu,Gs as DropdownMenuCheckboxItem,Os as DropdownMenuContent,Wf as DropdownMenuGroup,Vs as DropdownMenuItem,$s as DropdownMenuLabel,$f as DropdownMenuPortal,Qf as DropdownMenuRadioGroup,Ws as DropdownMenuRadioItem,js as DropdownMenuSeparator,Qs as DropdownMenuShortcut,jf as DropdownMenuSub,Bs as DropdownMenuSubContent,Fs as DropdownMenuSubTrigger,Gf as DropdownMenuTrigger,Ju as FAQSection,Eu as FeatureSection,Ip as Footer,bd as GiftListSection,gd as GuideSection,Qn as HeaderNavigation,ui as Heading,x as HeadingBlock,vi as HeadingGroup,gi as HeadingSub,fi as HeadingTagline,mu as HeroSection,yt as HorizontalContent,Nt as HorizontalNext,wt as HorizontalPrevious,bt as HorizontalScroll,Kf as HowItWorksSection,se as IconButton,$l as InputOTP,jl as InputOTPGroup,Ul as InputOTPSeparator,Ql as InputOTPSlot,qi as LightBoxGalleryContent,Ui as LightboxGallery,ef as LightboxThumbnail,xg as MetricsSection,za as NavigationMenu,Ba as NavigationMenuContent,Ha as NavigationMenuItem,oa as NavigationMenuLink,Ea as NavigationMenuList,Fa as NavigationMenuTrigger,sg as NewsSection,bn as Pagination,Il as Payment,vr as PaymentGuide,hr as PaymentGuideDialog,wg as PaymentInvoice,Dg as PaymentMethods,$g as PaymentResult,Hg as PaymentResultContent,Lg as PaymentResultFooter,$o as Popover,No as PopoverContent,jo as PopoverTrigger,Ff as ProgressSteps,_f as ProgressStepsItem,Hf as ProgressStepsItemTrigger,ks as Progressbar,y0 as QRPayment,Hn as RadioGroup,_n as RadioGroupItem,Yi as ReadMoreLite,Yp as SearchBar,B as SectionBlock,qo as Select,Co as SelectContent,Yo as SelectGroup,Et as SelectItem,Xr as SelectLabel,Pi as SelectScrollDownButton,Ni as SelectScrollUpButton,Yr as SelectSeparator,Po as SelectTrigger,Xo as SelectValue,S0 as SiteMeta,$a as Skeleton,Ss as Slider,Du as SocialProofSection,Xi as Spinner,Dn as Stepper,Ln as Switch,Pt as Tabs,Je as TabsContent,Ze as TabsList,Ke as TabsTrigger,qu as TestimonialSection,Rd as TextArea,ie as TextButton,qd as TextInput,kn as ToastAction,_d as Toaster,Bd as Tooltip,Rn as TooltipArrow,Tn as TooltipContent,Fd as TooltipProvider,Od as TooltipTrigger,Zg as Topbar,ws as badgeVariants,Ye as buttonVariants,T0 as mobaseTW,_a as navigationMenuTriggerStyle,Fr as textButtonVariants,Nn as toast,Li as useToast};
497
+ }`}})]});export{ut as Accordion,ht as AccordionContent,gt as AccordionItem,vt as AccordionTrigger,Ge as ActionButton,td as AlertDialog,cn as AlertDialogAction,dn as AlertDialogCancel,rn as AlertDialogContent,mn as AlertDialogDescription,sn as AlertDialogFooter,nn as AlertDialogHeader,Ri as AlertDialogOverlay,an as AlertDialogPortal,ln as AlertDialogTitle,od as AlertDialogTrigger,E as AspectRatio,lf as Badge,Rc as BlogSection,Dr as Breadcrumb,Er as BreadcrumbEllipsis,Ir as BreadcrumbItem,Ar as BreadcrumbLink,Mr as BreadcrumbList,Lr as BreadcrumbPage,zr as BreadcrumbSeparator,we as Button,y as ButtonsBlock,ug as CTASection,Ta as Calendar,ma as Callout,Kn as Card,os as CardContent,ts as CardDescription,as as CardFooter,Jn as CardHeader,es as CardTitle,ge as Carousel,ve as CarouselContent,Po as CarouselDots,de as CarouselItem,No as CarouselNext,wo as CarouselPrevious,ka as Checkbox,Wa as ChoiceboxGroup,$a as ChoiceboxGroupItem,ws as ChoiceboxMultiItem,Vp as Combobox,Op as ComboboxContent,Bp as ComboboxTrigger,ji as Command,Hp as CommandDialog,ns as CommandEmpty,ss as CommandGroup,is as CommandInput,ms as CommandItem,rs as CommandList,ls as CommandSeparator,cs as CommandShortcut,Mf as Comment,jc as DatePicker,ed as DateSelect,Re as Dialog,ze as DialogBody,ci as DialogClose,Ne as DialogContent,Tr as DialogDescription,ya as DialogFooter,Lt as DialogHeader,di as DialogOverlay,Rr as DialogPortal,Xt as DialogQr,zt as DialogTitle,Wo as DialogTrigger,_l as Drawer,$l as DrawerBody,a0 as DrawerClose,Bl as DrawerContent,Wl as DrawerDescription,Vl as DrawerFooter,Ol as DrawerHeader,vr as DrawerOverlay,Fl as DrawerPortal,Gl as DrawerTitle,o0 as DrawerTrigger,Wf as DropdownMenu,$s as DropdownMenuCheckboxItem,Gs as DropdownMenuContent,jf as DropdownMenuGroup,Ws as DropdownMenuItem,Qs as DropdownMenuLabel,Qf as DropdownMenuPortal,qf as DropdownMenuRadioGroup,js as DropdownMenuRadioItem,Us as DropdownMenuSeparator,qs as DropdownMenuShortcut,Uf as DropdownMenuSub,Vs as DropdownMenuSubContent,Os as DropdownMenuSubTrigger,$f as DropdownMenuTrigger,tg as FAQSection,_u as FeatureSection,Lp as Footer,wd as GiftListSection,hd as GuideSection,qn as HeaderNavigation,gi as Heading,b as HeadingBlock,hi as HeadingGroup,vi as HeadingSub,ui as HeadingTagline,du as HeroSection,wt as HorizontalContent,Pt as HorizontalNext,Nt as HorizontalPrevious,yt as HorizontalScroll,eu as HowItWorksSection,se as IconButton,Ql as InputOTP,Ul as InputOTPGroup,Xl as InputOTPSeparator,ql as InputOTPSlot,Xi as LightBoxGalleryContent,qi as LightboxGallery,of as LightboxThumbnail,yg as MetricsSection,Ea as NavigationMenu,Oa as NavigationMenuContent,_a as NavigationMenuItem,ra as NavigationMenuLink,Ha as NavigationMenuList,Ba as NavigationMenuTrigger,mg as NewsSection,wn as Pagination,Ll as Payment,hr as PaymentGuide,xr as PaymentGuideDialog,Pg as PaymentInvoice,Ig as PaymentMethods,Qg as PaymentResult,Fg as PaymentResultContent,Eg as PaymentResultFooter,Uo as Popover,ko as PopoverContent,qo as PopoverTrigger,Of as ProgressSteps,Bf as ProgressStepsItem,Ff as ProgressStepsItemTrigger,Ts as Progressbar,N0 as QRPayment,Fn as RadioGroup,Bn as RadioGroupItem,Zi as ReadMoreLite,Kp as SearchBar,B as SectionBlock,Zo as Select,To as SelectContent,Jo as SelectGroup,Ht as SelectItem,Zr as SelectLabel,Ci as SelectScrollDownButton,Pi as SelectScrollUpButton,Kr as SelectSeparator,Ro as SelectTrigger,Ko as SelectValue,M0 as SiteMeta,ja as Skeleton,Ms as Slider,Iu as SocialProofSection,Yi as Spinner,In as Stepper,En as Switch,Ct as Tabs,et as TabsContent,Ke as TabsList,Je as TabsTrigger,Yu as TestimonialSection,Sd as TextArea,re as TextButton,Yd as TextInput,Tn as ToastAction,Bd as Toaster,Vd as Tooltip,Sn as TooltipArrow,Dn as TooltipContent,Od as TooltipProvider,Gd as TooltipTrigger,Jg as Topbar,Ps as badgeVariants,Ze as buttonVariants,D0 as mobaseTW,Fa as navigationMenuTriggerStyle,Or as textButtonVariants,Cn as toast,zi as useToast};
498
498
  //# sourceMappingURL=index.js.map