@momo-webplatform/mobase 0.2.90 → 0.2.91

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 Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/solid";import*as De from"@radix-ui/react-accordion";import*as Qm from"react";import{twMerge as Um}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 $i={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 Bo=[{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"}],vr=[{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 de={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};import{createMedia as qm}from"@artsy/fresnel";function i(...e){return Um(e)}var Gi=qm({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),hv=Gi.createMediaStyle(),{Media:qe,MediaContextProvider:fo}=Gi;import{jsx as go,jsxs as Ym}from"react/jsx-runtime";var ft=Oo.forwardRef(({className:e,...o},t)=>go(De.Root,{ref:t,...o}));ft.displayName="AccordionRoot";var gt=Oo.forwardRef(({className:e,...o},t)=>go(De.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));gt.displayName="AccordionItem";var ut=Oo.forwardRef(({className:e,children:o,...t},a)=>go(De.Header,{className:"flex",children:Ym(De.Trigger,{ref:a,className:i("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,go(Xm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));ut.displayName=De.Trigger.displayName;var vt=Oo.forwardRef(({className:e,children:o,...t},a)=>go(De.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:go("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));vt.displayName=De.Content.displayName;import*as ji from"react";import{Slot as Jm}from"@radix-ui/react-slot";import{cva as ec}from"class-variance-authority";import{jsx as Me,jsxs as Km}from"react/jsx-runtime";var Zm=({className:e})=>Km("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"})]}),uo=Zm;import{Fragment as oc,jsx as hr,jsxs as tc}from"react/jsx-runtime";var Xe=ec("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"}}),Ie=ji.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?Jm:"button",c=i(Xe({variant:o,size:t,className:e}),{"cursor-wait":r});return hr(oc,{children:a?hr(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):tc(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[r&&hr(uo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Ie.displayName="Button";import{QRCodeSVG as rc}from"qrcode.react";import*as Vo from"react";import{XMarkIcon as ac}from"@heroicons/react/16/solid";import*as q from"@radix-ui/react-dialog";import{jsx as ht,jsxs as xr}from"react/jsx-runtime";var Be=q.Root,Wo=q.Trigger,Qi=q.Portal,br=q.Close,yr=Vo.forwardRef(({className:e,...o},t)=>ht(q.Overlay,{ref:t,className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));yr.displayName=q.Overlay.displayName;var Ae=Vo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="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"},v=[d.base,d[r],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 xr(Qi,{children:[ht(yr,{}),xr(q.Content,{ref:c,className:i(...v),...m,children:[l,!t&&xr(q.Close,{className:i("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[ht(ac,{className:"h-5 w-5 text-gray-700"}),ht("span",{className:"sr-only",children:"Close"})]})]})]})});Ae.displayName=q.Content.displayName;var vo=({className:e,...o})=>ht("div",{className:i("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});vo.displayName="DialogHeader";var Ye=({className:e,isCondensed:o=!1,...t})=>ht("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Ye.displayName="DialogBody";var Ui=({className:e,isDivider:o=!0,...t})=>ht("div",{className:i("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});Ui.displayName="DialogFooter";var ho=Vo.forwardRef(({className:e,...o},t)=>ht(q.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));ho.displayName=q.Title.displayName;var qi=Vo.forwardRef(({className:e,...o},t)=>ht(q.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));qi.displayName=q.Description.displayName;import{Fragment as wr,jsx as S,jsxs as pe}from"react/jsx-runtime";var ic=({img:e="",children:o,isQrForAll:t})=>pe(wr,{children:[S("div",{className:"qrcode__scan__container",children:pe("div",{className:"qrcode__scan",children:[S("div",{className:"qrcode__gradient",children:S("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),S("div",{className:"qrcode__border",children:S("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),S("div",{className:"p-4 qrcode__image",children:e?S("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),S("div",{className:"mt-4 text-sm text-white",children:t?pe(wr,{children:[S("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),S("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"})]}):pe(wr,{children:[S("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:S("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",S("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),S("style",{children:`
1
+ import*as Vo from"react";import{ChevronDownIcon as Ym}from"@heroicons/react/20/solid";import*as De from"@radix-ui/react-accordion";import*as Um from"react";import{twMerge as qm}from"tailwind-merge";var gt={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var $i={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"}],hr=[{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 ce={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"}};import{createMedia as Xm}from"@artsy/fresnel";function i(...e){return qm(e)}var Gi=Xm({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),hv=Gi.createMediaStyle(),{Media:Ye,MediaContextProvider:go}=Gi;import{jsx as uo,jsxs as Zm}from"react/jsx-runtime";var ut=Vo.forwardRef(({className:e,...o},t)=>uo(De.Root,{ref:t,...o}));ut.displayName="AccordionRoot";var vt=Vo.forwardRef(({className:e,...o},t)=>uo(De.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));vt.displayName="AccordionItem";var ht=Vo.forwardRef(({className:e,children:o,...t},a)=>uo(De.Header,{className:"flex",children:Zm(De.Trigger,{ref:a,className:i("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,uo(Ym,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));ht.displayName=De.Trigger.displayName;var xt=Vo.forwardRef(({className:e,children:o,...t},a)=>uo(De.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:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));xt.displayName=De.Content.displayName;import*as ji from"react";import{Slot as ec}from"@radix-ui/react-slot";import{cva as tc}from"class-variance-authority";import{jsx as Me,jsxs as Jm}from"react/jsx-runtime";var Km=({className:e})=>Jm("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("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"}),Me("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),vo=Km;import{Fragment as ac,jsx as xr,jsxs as oc}from"react/jsx-runtime";var Ze=tc("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"}}),Ie=ji.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?ec:"button",c=i(Ze({variant:o,size:t,className:e}),{"cursor-wait":r});return xr(ac,{children:a?xr(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):oc(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[r&&xr(vo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Ie.displayName="Button";import{QRCodeSVG as ic}from"qrcode.react";import*as Wo from"react";import{XMarkIcon as rc}from"@heroicons/react/16/solid";import*as X from"@radix-ui/react-dialog";import{jsx as bt,jsxs as br}from"react/jsx-runtime";var Ve=X.Root,$o=X.Trigger,Qi=X.Portal,yr=X.Close,wr=Wo.forwardRef(({className:e,...o},t)=>bt(X.Overlay,{ref:t,className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));wr.displayName=X.Overlay.displayName;var Ae=Wo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="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"},v=[d.base,d[r],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 br(Qi,{children:[bt(wr,{}),br(X.Content,{ref:c,className:i(...v),...m,children:[l,!t&&br(X.Close,{className:i("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[bt(rc,{className:"h-5 w-5 text-gray-700"}),bt("span",{className:"sr-only",children:"Close"})]})]})]})});Ae.displayName=X.Content.displayName;var ho=({className:e,...o})=>bt("div",{className:i("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});ho.displayName="DialogHeader";var Ke=({className:e,isCondensed:o=!1,...t})=>bt("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Ke.displayName="DialogBody";var Ui=({className:e,isDivider:o=!0,...t})=>bt("div",{className:i("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});Ui.displayName="DialogFooter";var xo=Wo.forwardRef(({className:e,...o},t)=>bt(X.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));xo.displayName=X.Title.displayName;var qi=Wo.forwardRef(({className:e,...o},t)=>bt(X.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));qi.displayName=X.Description.displayName;import{Fragment as Nr,jsx as S,jsxs as de}from"react/jsx-runtime";var nc=({img:e="",children:o,isQrForAll:t})=>de(Nr,{children:[S("div",{className:"qrcode__scan__container",children:de("div",{className:"qrcode__scan",children:[S("div",{className:"qrcode__gradient",children:S("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),S("div",{className:"qrcode__border",children:S("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),S("div",{className:"p-4 qrcode__image",children:e?S("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),S("div",{className:"mt-4 text-sm text-white",children:t?de(Nr,{children:[S("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),S("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"})]}):de(Nr,{children:[S("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:S("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",S("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),S("style",{children:`
2
2
  .qrcode__scan__container {
3
3
  padding: 15px;
4
4
  background-color: white;
@@ -67,7 +67,7 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),Ut=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>S(Be,{...m,children:S(Ae,{className:i("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:S(Ye,{className:"p-0",children:pe("div",{className:"flex flex-row flex-wrap",children:[S("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||pe("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[pe("div",{className:"flex flex-nowrap items-center",children:[S("div",{className:"flex-none",children:S("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),pe("div",{className:"flex-1 pl-4",children:[S("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),S("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"})]})]}),pe("div",{className:"flex flex-nowrap items-center",children:[S("div",{className:"flex-none",children:S("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),pe("div",{className:"flex-1 pl-4",children:[S("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),S("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),pe("div",{className:"flex flex-nowrap items-center",children:[S("div",{className:"flex-none",children:S("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),pe("div",{className:"flex-1 pl-4",children:[S("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),pe("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"]})]})]})]})}),S("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:pe("div",{className:"px-5 py-10 text-center",children:[t&&S("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),pe("div",{className:"relative",children:[l&&S("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:S("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),S(ic,{img:r,isQrForAll:l,children:n&&S(rc,{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 pc}from"react";import{useEffect as nc,useLayoutEffect as sc,useState as lc}from"react";import mc from"ua-parser-js";var cc=()=>mc().device.type==="mobile",dc=typeof window<"u"?sc:nc,xo=()=>{let[e,o]=lc(!1);return dc(()=>{o(cc())},[]),e};import{Fragment as fc,jsx as wa,jsxs as gc}from"react/jsx-runtime";var Oe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=pc(!1),c=xo(),d=!!a?.qrLink,p=()=>{let A=d?a?.qrLink:e;return typeof A=="string"?A.trim():""},g=()=>{let A=p();!A&&typeof e!="function"||(typeof e=="function"?e():window.open(A,o?"_blank":"_self"))},v=(A,F=0)=>{let M=document.querySelector(A);if(!M)return;let w=M.getBoundingClientRect().top+window.scrollY-F;window.scrollTo({top:w,behavior:"smooth"})},R=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):g()},k=()=>gc(fc,{children:[wa(Ie,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),wa(Ut,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?k():wa(Ie,{...s,className:r,onClick:g,"data-name":"button-action-with-qr",children:n}):k():wa(Ie,{...s,onClick:R,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as bo from"react";import{ChevronRightIcon as uc,DotsHorizontalIcon as vc}from"@radix-ui/react-icons";import{Slot as hc}from"@radix-ui/react-slot";import{jsx as xt,jsxs as xc}from"react/jsx-runtime";var Xi=bo.forwardRef(({className:e,...o},t)=>xt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Xi.displayName="Breadcrumb";var Yi=bo.forwardRef(({className:e,...o},t)=>xt("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Yi.displayName="BreadcrumbList";var Zi=bo.forwardRef(({className:e,...o},t)=>xt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Zi.displayName="BreadcrumbItem";var Ki=bo.forwardRef(({asChild:e,className:o,...t},a)=>xt(e?hc:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Ki.displayName="BreadcrumbLink";var Ji=bo.forwardRef(({className:e,...o},t)=>xt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));Ji.displayName="BreadcrumbPage";var en=({children:e,className:o,...t})=>xt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??xt(uc,{className:"w-2 h-2"})});en.displayName="BreadcrumbSeparator";var tn=({className:e,...o})=>xc("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[xt(vc,{className:"w-4 h-4 text-gray-900"}),xt("span",{className:"sr-only",children:"More"})]});tn.displayName="BreadcrumbElipssis";import kr from"html-react-parser";import{createContext as bc,useContext as on}from"react";import{jsx as $o}from"react/jsx-runtime";var Nr=bc({align:"center"}),Pr=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return $o("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Cr=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,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}=on(Nr);return $o(s,{className:i("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",r),children:n})},Rr=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,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}=on(Nr);return $o("div",{className:i(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",r),children:n})},Tr=({className:e,align:o="center",children:t})=>$o("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:$o(Nr.Provider,{value:{align:o},children:t})});import{jsx as qt,jsxs as yc}from"react/jsx-runtime";var H=({idSection:e,className:o,background:t,children:a})=>qt("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:qt("div",{className:"wrapper relative",children:a})}),h=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="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:yc(Tr,{align:e,className:l,children:[o&&qt(Pr,{color:m,children:o}),t&&qt(Cr,{tagHeading:r,color:c,size:s,children:kr(t)}),a&&qt(Rr,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:kr(a)})]})},x=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:qt("div",{className:i("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((r,n)=>{if(!r)return null;let{btnName:s,...l}=r;return qt(Oe,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:kr(s)},n)})});import Ec,{memo as zc}from"react";import{ArrowDownIcon as Hc}from"@heroicons/react/20/solid";import _c from"html-react-parser";import{createContext as Cc,useCallback as Rc,useContext as Sr,useEffect as Tc,useRef as kc,useState as Sc}from"react";import{ChevronLeft as Dc,ChevronRight as Mc}from"lucide-react";import*as an from"react";import{Slot as wc}from"@radix-ui/react-slot";import{cva as Nc}from"class-variance-authority";import{jsx as Pc}from"react/jsx-runtime";var Xt=Nc("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),ie=an.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?wc:"button",m=i(Xt({variant:o,size:t,className:e}));return Pc(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ie.displayName="IconButton";import{Fragment as Ic,jsx as At,jsxs as rn}from"react/jsx-runtime";var Na=Cc(void 0),bt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=kc(null),[n,s]=Sc({left:!1,right:!1}),l=Rc(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);Tc(()=>{let c=r.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=r.current;if(d){let{scrollLeft:p,clientWidth:g,scrollWidth:v}=d,R=g*.7*(c==="left"?-1:1),k=p+R;k<0?k=0:k>v-g&&(k=v-g),d.scrollTo({left:k,behavior:"smooth"})}};return At(Na.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:rn("div",{className:i("relative w-full",t),children:[e&&rn(Ic,{children:[n.left&&At("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&&At("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=Sr(Na);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return At("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},wt=({className:e,children:o,...t})=>{let a=Sr(Na);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?At(ie,{className:i("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||At(Dc,{className:"h-4 w-4"})}):null},Nt=({className:e,children:o,...t})=>{let a=Sr(Na);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?At(ie,{className:i("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||At(Mc,{className:"h-4 w-4"})}):null};import*as Pa from"react";import*as Ve from"@radix-ui/react-tabs";import{jsx as Dr}from"react/jsx-runtime";var Pt=Ve.Root,Ze=Pa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>Dr(Ve.List,{ref:r,className:i("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Ze.displayName=Ve.List.displayName;var Ke=Pa.forwardRef(({className:e,...o},t)=>Dr(Ve.Trigger,{ref:t,className:i("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));Ke.displayName=Ve.Trigger.displayName;var Je=Pa.forwardRef(({className:e,...o},t)=>Dr(Ve.Content,{ref:t,className:i("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Je.displayName=Ve.Content.displayName;import*as nn from"react";import{Slot as Ac}from"@radix-ui/react-slot";import{cva as Lc}from"class-variance-authority";import{jsx as Fc}from"react/jsx-runtime";var sn=Lc("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"}}),fe=nn.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Ac:"button",m=i(sn({variant:o,size:t,className:e}));return Fc(l,{className:m,disabled:r,ref:s,...n,children:n.children})});fe.displayName="TextButton";import{Fragment as ln,jsx as V,jsxs as et}from"react/jsx-runtime";var Bc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return et(ln,{children:[V("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:V("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:et("picture",{children:[V("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),V("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),et("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&V(fe,{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}),V("div",{className:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),et("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&et(ln,{children:[V(fe,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&V("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&V("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Ca=zc(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{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:[V("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((g,v)=>V("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:V("div",{onClick:R=>m(R,g?.id,g?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:V(Bc,{blog:g})},g?.id)},v))}),d?.isShowBtn&&V("div",{className:"flex items-center justify-center w-full mt-8",children:et(Oe,{action:r?()=>r?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[_c(d.btnName||"Xem th\xEAm"),d?.isLoading?V(uo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&V(Hc,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||p);return et(Ec.Fragment,{children:[e&&V(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?et(Pt,{defaultValue:t[0]?.title,children:[et(bt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[V(yt,{className:"mb-6 text-center",children:V(Ze,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,p)=>V(Ke,{value:d.title,children:d.title},d.title+p))})}),V(wt,{}),V(Nt,{})]}),t.map((d,p)=>V(Je,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import Gc,{memo as jc,useEffect as Qc,useState as dn}from"react";import{ChevronLeftIcon as Uc,ChevronRightIcon as qc}from"@heroicons/react/20/solid";import pn from"html-react-parser";import*as _ from"react";import{ChevronLeftIcon as Oc,ChevronRightIcon as Vc}from"@heroicons/react/20/solid";import Wc from"embla-carousel-react";import{Fragment as $c,jsx as Le,jsxs as cn}from"react/jsx-runtime";var mn=_.createContext(null);function Go(){let e=_.useContext(mn);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ge=_.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=Wc({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=_.useState(!1),[g,v]=_.useState(!1),R=_.useCallback(F=>{F&&(p(F.canScrollPrev()),v(F.canScrollNext()))},[]),k=_.useCallback(()=>{c?.scrollPrev()},[c]),L=_.useCallback(()=>{c?.scrollNext()},[c]),A=_.useCallback(F=>{F.key==="ArrowLeft"?(F.preventDefault(),k()):F.key==="ArrowRight"&&(F.preventDefault(),L())},[k,L]);return _.useEffect(()=>{!c||!t||t(c)},[c,t]),_.useEffect(()=>{if(c)return R(c),c.on("reInit",R),c.on("select",R),()=>{c?.off("select",R)}},[c,R]),Le(mn.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:k,scrollNext:L,canScrollPrev:d,canScrollNext:g},children:Le("div",{ref:l,onKeyDownCapture:A,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});ge.displayName="Carousel";var ue=_.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Go();return Le("div",{ref:r,className:i("overflow-hidden",o),children:Le("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ue.displayName="CarouselContent";var se=_.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Go();return Le("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});se.displayName="CarouselItem";var yo=_.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Go();return cn(ie,{ref:r,variant:o,size:t,className:i("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:[Le(Oc,{className:"h-6 w-6"}),Le("span",{className:"sr-only",children:"Previous slide"})]})});yo.displayName="CarouselPrevious";var wo=_.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Go();return cn(ie,{ref:r,variant:o,size:t,className:i("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:[Le(Vc,{className:"h-6 w-6"}),Le("span",{className:"sr-only",children:"Next slide"})]})});wo.displayName="CarouselNext";var No=_.forwardRef((e,o)=>{let{api:t}=Go(),[,a]=_.useState(!1),r=_.useCallback(()=>a(l=>!l),[]);_.useEffect(()=>{if(t)return t.on("select",r),t.on("reInit",r),()=>{t.off("select",r),t.off("reInit",r)}},[t,r]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Le("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Le(ie,{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))}):Le($c,{})});No.displayName="CarouselDots";import{Fragment as Ra,jsx as W,jsxs as We}from"react/jsx-runtime";var Xc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return We(Ra,{children:[W("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:W("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),We("div",{className:"mt-4 md:pr-3",children:[W("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&W("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:pn(e?.description??"")}),We("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&We(Ra,{children:[W(fe,{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&&W("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&W("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Yc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return Qc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),We(Ra,{children:[W(ge,{opts:{dragFree:!1},setApi:o,className:"w-full",children:W(ue,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>W(se,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:W("div",{onClick:g=>r(g,p?.id,p?.url),className:i("group cursor-pointer",d),children:W(Xc,{blog:p})},p?.id)},p?.id))})}),s&&W("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:We(Oe,{action:m&&m,newTab:c,variant:"outline",children:[pn(l||"Xem th\xEAm")," "]})})]})},Zc=({carouselRef:e})=>We(ie,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[W(Uc,{className:"h-6 w-6"}),W("span",{className:"sr-only",children:"Previous slide"})]}),Kc=({carouselRef:e})=>We(ie,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[W(qc,{className:"h-6 w-6"}),W("span",{className:"sr-only",children:"Next slide"})]}),Mr=jc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(c,d,p)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(p,"_blank")},[n,s]=dn(null),[,l]=dn(0),m=()=>n?We("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[W(Zc,{carouselRef:n}),W(Kc,{carouselRef:n})]}):W(Ra,{});return We(Gc.Fragment,{children:[We("div",{className:" flex items-center justify-between",children:[e&&W(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),W(m,{})]}),W(Yc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as od,jsx as Po}from"react/jsx-runtime";var Jc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return Po(Ca,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return Po(Mr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return Po(Ca,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},ed=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>Po(od,{children:Jc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),td=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>Po(H,{className:i("overflow-hidden",r),idSection:a,background:n,children:Po(ed,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as ka from"react";import{enUS as nd,vi as sd}from"date-fns/locale";import{ChevronLeft as ld,ChevronRight as md}from"lucide-react";import cd from"lunisolar";import{DayPicker as dd}from"react-day-picker";import*as fn from"react";import*as jo from"@radix-ui/react-checkbox";import{CheckIcon as ad}from"@heroicons/react/16/solid";import{cva as gn}from"class-variance-authority";import{jsx as Ir}from"react/jsx-runtime";var rd=gn("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"}}),id=gn("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ta=fn.forwardRef(({className:e,size:o,...t},a)=>Ir(jo.Root,{ref:a,className:i(rd({size:o}),e),...t,children:Ir(jo.Indicator,{className:i("flex items-center justify-center text-current"),children:Ir(ad,{className:i(id({size:o}))})})}));Ta.displayName=jo.Root.displayName;import{Fragment as vd,jsx as tt,jsxs as Ar}from"react/jsx-runtime";var pd=({date:e,cusContent:o})=>{let t=null;return t=cd(e).lunar,Ar(vd,{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})]})},fd={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 gd({isShow:e,setIsShow:o,lang:t}){let a=ka.useId();return tt("div",{className:"w-full p-3 pt-0",children:Ar("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[tt(Ta,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),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 ud=e=>e.getDay()===0||e.getDay()===6;function Sa({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=ka.useState(!0);return tt(dd,{locale:r==="vi"?sd:nd,showOutsideDays:t,className:i("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:i(Xe({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:i("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:i(Xe({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:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:ud},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>tt(ld,{className:"h-6 w-6"}),IconRight:()=>tt(md,{className:"h-6 w-6"}),DayContent:c=>tt(pd,{date:c.date,cusContent:n}),Months:({children:c})=>Ar("div",{className:"w-full",children:[tt("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&tt(gd,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?fd:{},...s})}Sa.displayName="Calendar";import{QuestionMarkCircleIcon as hd,XCircleIcon as xd}from"@heroicons/react/16/solid";import{format as Da}from"date-fns";import{Calendar as bd}from"lucide-react";import*as vn from"react";import*as Ct from"@radix-ui/react-popover";import{jsx as un}from"react/jsx-runtime";var Qo=Ct.Root,Uo=Ct.Trigger,Co=vn.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>un(Ct.Portal,{children:un(Ct.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-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})}));Co.displayName=Ct.Content.displayName;import{Fragment as hn,jsx as Ce,jsxs as qo}from"react/jsx-runtime";var yd=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,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(Qo,{...m,children:[Ce(Uo,{asChild:!0,children:qo(Ie,{variant:"secondary",className:i("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",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Ce("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Da(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?Ce(hn,{children:p.from?p.to?qo(hn,{children:[Ce("span",{className:"date-from",children:Da(p.from,s)})," ",Ce("span",{className:"date-separator",children:"-"}),Ce("span",{className:"date-to",children:Da(p.to,s)})]}):Da(p.from,s):o}):o}),e&&Ce("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),Ce(bd,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Ce(Co,{className:"w-auto border-none !p-0",...d,children:Ce(Sa,{...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:[r?Ce(xd,{width:16,height:16,className:"text-red-500"}):Ce(hd,{width:16,height:16,className:"text-gray-500"}),Ce("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Rd,useState as Cn}from"react";import{QuestionMarkCircleIcon as Td,XCircleIcon as kd}from"@heroicons/react/16/solid";import{isValid as Sd}from"date-fns";import*as ot from"react";import{ChevronDownIcon as xn,ChevronUpIcon as wd,CheckIcon as Nd,XCircleIcon as Pd}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Cd}from"@heroicons/react/24/outline";import*as T from"@radix-ui/react-select";import{jsx as $,jsxs as Xo}from"react/jsx-runtime";var Yo=ot.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Xo("div",{ref:m,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&$("span",{className:i("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),$(T.Root,{disabled:s,...l,children:o}),a&&Xo("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?$(Pd,{width:16,height:16}):$(Cd,{width:16,height:16}),$("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Zo=T.Value,Ro=ot.forwardRef(({className:e,children:o,...t},a)=>Xo(T.Trigger,{ref:a,className:i("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[$("div",{className:"line-clamp-1 text-left",children:o}),$(T.Icon,{asChild:!0,children:$(xn,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Ro.displayName=T.Trigger.displayName;var Lr=ot.forwardRef(({className:e,...o},t)=>$(T.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:$(wd,{className:"h-5 w-5"})}));Lr.displayName=T.ScrollUpButton.displayName;var Fr=ot.forwardRef(({className:e,...o},t)=>$(T.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:$(xn,{className:"h-5 w-5"})}));Fr.displayName=T.ScrollDownButton.displayName;var To=ot.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>$(T.Portal,{children:Xo(T.Content,{ref:r,className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[$(Lr,{}),$(T.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),$(Fr,{})]})}));To.displayName=T.Content.displayName;var Ko=ot.forwardRef(({className:e,children:o,...t},a)=>$(T.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),bn=ot.forwardRef(({className:e,...o},t)=>$(T.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));bn.displayName=T.Label.displayName;var Lt=ot.forwardRef(({className:e,children:o,...t},a)=>Xo(T.Item,{ref:a,className:i("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:[$("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:$(T.ItemIndicator,{children:$(Nd,{className:"h-4 w-4 text-pink-500"})})}),$(T.ItemText,{children:o})]})),yn=ot.forwardRef(({className:e,...o},t)=>$(T.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));yn.displayName=T.Separator.displayName;var wn=["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"],Nn=["January","February","March","April","May","June","July","August","September","October","November","December"],Er=(e,o,t,a)=>{let r=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():r;return{daysInMonth:r,startDay:n,endDay:s}},Pn=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};import{jsx as ee,jsxs as at}from"react/jsx-runtime";var Dd=({label:e,selected:o,onSelect:t,size:a=1,message:r,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,v]=Cn(o??null),R=Math.min(c,d),k=Math.max(c,d),L=l==="MM/yyyy",A=(w,re)=>{if(re===0){v(void 0),t?.(void 0);return}let G=g?.getFullYear()||new Date().getFullYear(),ya=g?.getMonth()??0,Qt=g?.getDate()??1;w==="month"&&re!==null&&(ya=re-1),w==="year"&&re!==null&&(G=re),L?Qt=1:w==="day"&&re!==null&&(Qt=re);let Wi=Er(G,ya+1).daysInMonth;Qt>Wi&&(Qt=1);let _o=new Date(G,ya,Qt);Sd(_o)&&(v(_o),t?.(_o))},[F,M]=Cn(!1),dt=w=>{M(w)};return Rd(()=>{v(o??null)},[o]),at("div",{className:i("relative",s&&"cursor-no-drop"),children:[at("div",{className:i("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",F&&"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&&ee("span",{className:i("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:[!L&&at(Yo,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:w=>A("day",parseInt(w,10)),onOpenChange:dt,className:"w-[30%]",children:[ee(Ro,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Zo,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),ee(To,{onCloseAutoFocus:w=>w.preventDefault(),children:at(Ko,{children:[!p&&ee(Lt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Er(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(w,re)=>(re+1).toString().padStart(2,"0")).map(w=>ee(Lt,{value:w,children:w},w))]})})]}),at(Yo,{value:g?(g.getMonth()+1).toString():"",onValueChange:w=>A("month",parseInt(w,10)),onOpenChange:dt,className:i(L?"w-1/2":"w-2/5"),children:[ee(Ro,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Zo,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),ee(To,{onCloseAutoFocus:w=>w.preventDefault(),children:at(Ko,{children:[!p&&ee(Lt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(w,re)=>re+1).map(w=>ee(Lt,{value:w.toString(),children:m==="vi"?wn[w-1]:Nn[w-1]},w))]})})]}),at(Yo,{value:g?g.getFullYear().toString():"",onValueChange:w=>A("year",parseInt(w,10)),onOpenChange:dt,className:i(L?"w-1/2":"w-[30%]"),children:[ee(Ro,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Zo,{placeholder:m==="vi"?"N\u0103m":"Year"})}),ee(To,{onCloseAutoFocus:w=>w.preventDefault(),children:at(Ko,{children:[!p&&ee(Lt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Pn(R,k).map(w=>ee(Lt,{value:w.toString(),children:w},w))]})})]})]})]}),r&&at("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?ee(kd,{width:16,height:16,className:"text-red-500"}):ee(Td,{width:16,height:16,className:"text-gray-500"}),ee("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as Yt from"react";import*as B from"@radix-ui/react-alert-dialog";import{jsx as Rt,jsxs as Ad}from"react/jsx-runtime";var Md=B.Root,Id=B.Trigger,Rn=B.Portal,zr=Yt.forwardRef(({className:e,...o},t)=>Rt(B.Overlay,{className:i("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));zr.displayName=B.Overlay.displayName;var Tn=Yt.forwardRef(({className:e,...o},t)=>Ad(Rn,{children:[Rt(zr,{}),Rt(B.Content,{ref:t,className:i("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));Tn.displayName=B.Content.displayName;var kn=({className:e,...o})=>Rt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});kn.displayName="AlertDialogHeader";var Sn=({className:e,...o})=>Rt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Sn.displayName="AlertDialogFooter";var Dn=Yt.forwardRef(({className:e,...o},t)=>Rt(B.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Dn.displayName=B.Title.displayName;var Mn=Yt.forwardRef(({className:e,...o},t)=>Rt(B.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Mn.displayName=B.Description.displayName;var In=Yt.forwardRef(({className:e,...o},t)=>Rt(B.Action,{ref:t,className:i(Xe({variant:"primary"}),"",e),...o}));In.displayName=B.Action.displayName;var An=Yt.forwardRef(({className:e,...o},t)=>Rt(B.Cancel,{ref:t,className:i(Xe({variant:"secondary"}),e),...o}));An.displayName=B.Cancel.displayName;import{memo as Vd,useState as Wd}from"react";import{useEffect as Ld,useState as Fn}from"react";import En from"html-react-parser";import{motion as Fd}from"motion/react";import*as Ln from"@radix-ui/react-aspect-ratio";var E=Ln.Root;import{Fragment as zn,jsx as te,jsxs as Jo}from"react/jsx-runtime";var Ed=({guideGroup:e,mockup:o})=>{let[t,a]=Fn(),[r,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 Ld(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),te(zn,{children:e?.stepList&&e?.stepList?.length>0&&Jo("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[te("div",{className:"h-auto w-64 flex-none",children:Jo("div",{className:i("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"&&Jo(zn,{children:[te("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),te("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:Jo(ge,{setApi:a,children:[te(ue,{className:"ml-0",children:e?.stepList.map((l,m)=>te(se,{className:"pl-0",children:te(E,{ratio:o==="small"?540/960:540/1168,children:l?.image&&te("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),te(yo,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),te(wo,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),te("div",{className:"flex flex-auto pl-12 pt-4",children:te("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>Jo("li",{className:i("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===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[te("div",{className:i("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===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),te("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:En(l.title)}),l.content&&te(Fd.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:te("div",{className:"mt-3 text-sm text-gray-700",children:En(l.content)})})]},m))})})]})})},Hr=Ed;import{useEffect as zd,useRef as Hd,useState as Ma}from"react";import{ChevronRightIcon as Hn}from"@heroicons/react/20/solid";import _d from"embla-carousel-autoplay";import Ia from"html-react-parser";import{Fragment as _r,jsx as y,jsxs as ye}from"react/jsx-runtime";var Bd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=Ma(0),[s,l]=Ma();return zd(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:y(Be,{open:e,onOpenChange:o,children:ye(Ae,{position:"bottom",height:"full",children:[y(vo,{children:y(ho,{className:"line-clamp-1",children:t?.title})}),ye(Ye,{className:"grid overflow-hidden p-0 ",children:[y(ge,{setApi:l,className:" grid overflow-hidden",children:y(ue,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>y(se,{className:"h-full w-full pl-0",children:ye("div",{className:"flex h-full flex-col overflow-y-auto",children:[y("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:y("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:ye("div",{className:i("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"&&ye(_r,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:y(E,{ratio:a==="small"?540/960:540/1168,children:m?.image&&y("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),ye("div",{className:"p-5 pb-12",children:[y("div",{className:"font-semibold",children:Ia(m.title)}),m?.content&&y("div",{className:"mt-3 text-sm text-gray-800",children:Ia(m.content)})]})]})},c))})}),y("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)=>y("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},Od=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=Ma(!1),[n,s]=Ma(null),l=Hd(_d({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:ye(_r,{children:[e?.length>1?y("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>ye("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[y("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)&&y("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),ye("div",{className:i("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:[ye("div",{className:"py-2",children:[t&&y("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),y("div",{className:"font-semibold",children:Ia(c.title)}),c?.description&&y("div",{className:"mt-1 text-sm text-gray-500",children:Ia(c.description)})]}),y("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:y(Hn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&ye("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[y("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:y("div",{className:"mx-auto h-auto w-72",children:ye("div",{className:i("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"&&ye(_r,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:y(ge,{plugins:[l.current],children:y(ue,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>y(se,{className:"pl-0",onClick:()=>m(0),children:y(E,{ratio:o==="small"?540/960:540/1168,children:c?.image&&y("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),y("div",{className:"flex w-full flex-none justify-center",children:ye(fe,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",y(Hn,{className:"ml-1 h-5 w-5"})]})})]}),a&&y(Bd,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},_n=Od;import{Fragment as $d,jsx as le,jsxs as ea}from"react/jsx-runtime";var Bn=({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 le("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:le("path",{d:t.d,fill:"currentColor"})})},Br=Vd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=Wd(t?.[0]?.title||"");return ea($d,{children:[e&&le(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t&&t?.length>0&&ea(fo,{children:[le(qe,{lessThan:"md",children:le(_n,{dataGuide:t,mockup:r,isStep:n})}),le(qe,{greaterThan:"sm",children:t?.length>1?ea(Pt,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[ea(bt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[le(yt,{className:"mb-6 text-center",children:le(Ze,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,g)=>{let v=g===t.length-1,R=c===p?.title||"";return ea(Ke,{value:p.title,className:i(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":"",R&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&le(Bn,{direction:"left",className:i("right-full top-0",R?"text-pink-500":"text-pink-100")}),p.title,n&&!v&&le(Bn,{direction:"right",className:i("left-full top-0",R?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),le(wt,{}),le(Nt,{})]}),t.map((p,g)=>le(Je,{value:p.title,children:le(Hr,{guideGroup:p,mockup:r})},p.title+g))]}):t?.length===1&&t[0]&&le(Hr,{guideGroup:t[0],mockup:r})})]}),a&&le(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as Ud,jsx as ta}from"react/jsx-runtime";var Gd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return ta(Br,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return ta(Br,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},jd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>ta(Ud,{children:Gd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Qd=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>ta(H,{className:i(n),background:s,idSection:e,children:ta(jd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:m,isStep:c})});import{ChevronLeft as qd,ChevronRight as Xd}from"lucide-react";import{Fragment as Yd,jsx as Fe,jsxs as On}from"react/jsx-runtime";function Vn({current:e,total:o,onChange:t}){let a=r=>Fe("li",{children:Fe("button",{className:i(Xt({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return Fe("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:On("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Fe("li",{children:Fe("button",{className:i(Xt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Fe(qd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):On(Yd,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Fe("li",{children:Fe("button",{className:i(Xt({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&&Fe("button",{className:i(Xt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Fe("li",{children:Fe("button",{className:i(Xt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Fe(Xd,{className:"h-4 w-4"})})})]})})}import{forwardRef as Zd}from"react";import{QuestionMarkCircleIcon as Kd}from"@heroicons/react/24/outline";import{XCircleIcon as Jd}from"@heroicons/react/24/solid";import{jsx as ko,jsxs as Wn}from"react/jsx-runtime";var Or=Zd(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>Wn("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&ko("span",{className:i("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:i("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&&Wn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?ko(Jd,{width:16,height:16,className:"text-red-500"}):ko(Kd,{width:16,height:16,className:"text-gray-500"}),ko("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),ko("style",{children:`
70
+ `})]}),qt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>S(Ve,{...m,children:S(Ae,{className:i("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:S(Ke,{className:"p-0",children:de("div",{className:"flex flex-row flex-wrap",children:[S("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||de("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[de("div",{className:"flex flex-nowrap items-center",children:[S("div",{className:"flex-none",children:S("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),de("div",{className:"flex-1 pl-4",children:[S("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),S("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"})]})]}),de("div",{className:"flex flex-nowrap items-center",children:[S("div",{className:"flex-none",children:S("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),de("div",{className:"flex-1 pl-4",children:[S("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),S("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),de("div",{className:"flex flex-nowrap items-center",children:[S("div",{className:"flex-none",children:S("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),de("div",{className:"flex-1 pl-4",children:[S("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),de("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"]})]})]})]})}),S("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:de("div",{className:"px-5 py-10 text-center",children:[t&&S("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),de("div",{className:"relative",children:[l&&S("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:S("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),S(nc,{img:r,isQrForAll:l,children:n&&S(ic,{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 fc}from"react";import{useEffect as sc,useLayoutEffect as lc,useState as mc}from"react";import cc from"ua-parser-js";var dc=()=>cc().device.type==="mobile",pc=typeof window<"u"?lc:sc,bo=()=>{let[e,o]=mc(!1);return pc(()=>{o(dc())},[]),e};import{Fragment as gc,jsx as Na,jsxs as uc}from"react/jsx-runtime";var We=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=fc(!1),c=bo(),d=!!a?.qrLink,p=()=>{let E=d?a?.qrLink:e;return typeof E=="string"?E.trim():""},g=()=>{let E=p();!E&&typeof e!="function"||(typeof e=="function"?e():window.open(E,o?"_blank":"_self"))},v=(E,O=0)=>{let L=document.querySelector(E);if(!L)return;let w=L.getBoundingClientRect().top+window.scrollY-O;window.scrollTo({top:w,behavior:"smooth"})},R=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):g()},k=()=>uc(gc,{children:[Na(Ie,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),Na(qt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?k():Na(Ie,{...s,className:r,onClick:g,"data-name":"button-action-with-qr",children:n}):k():Na(Ie,{...s,onClick:R,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as yo from"react";import{ChevronRightIcon as vc,DotsHorizontalIcon as hc}from"@radix-ui/react-icons";import{Slot as xc}from"@radix-ui/react-slot";import{jsx as yt,jsxs as bc}from"react/jsx-runtime";var Xi=yo.forwardRef(({className:e,...o},t)=>yt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Xi.displayName="Breadcrumb";var Yi=yo.forwardRef(({className:e,...o},t)=>yt("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Yi.displayName="BreadcrumbList";var Zi=yo.forwardRef(({className:e,...o},t)=>yt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Zi.displayName="BreadcrumbItem";var Ki=yo.forwardRef(({asChild:e,className:o,...t},a)=>yt(e?xc:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Ki.displayName="BreadcrumbLink";var Ji=yo.forwardRef(({className:e,...o},t)=>yt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));Ji.displayName="BreadcrumbPage";var en=({children:e,className:o,...t})=>yt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??yt(vc,{className:"w-2 h-2"})});en.displayName="BreadcrumbSeparator";var tn=({className:e,...o})=>bc("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[yt(hc,{className:"w-4 h-4 text-gray-900"}),yt("span",{className:"sr-only",children:"More"})]});tn.displayName="BreadcrumbElipssis";import Sr from"html-react-parser";import{createContext as yc,useContext as on}from"react";import{jsx as Go}from"react/jsx-runtime";var Pr=yc({align:"center"}),Cr=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return Go("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Rr=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,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}=on(Pr);return Go(s,{className:i("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",r),children:n})},Tr=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,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}=on(Pr);return Go("div",{className:i(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",r),children:n})},kr=({className:e,align:o="center",children:t})=>Go("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Go(Pr.Provider,{value:{align:o},children:t})});import{jsx as Xt,jsxs as wc}from"react/jsx-runtime";var _=({idSection:e,className:o,background:t,children:a})=>Xt("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Xt("div",{className:"wrapper relative",children:a})}),h=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="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:wc(kr,{align:e,className:l,children:[o&&Xt(Cr,{color:m,children:o}),t&&Xt(Rr,{tagHeading:r,color:c,size:s,children:Sr(t)}),a&&Xt(Tr,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:Sr(a)})]})},x=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Xt("div",{className:i("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((r,n)=>{if(!r)return null;let{btnName:s,...l}=r;return Xt(We,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:Sr(s)},n)})});import zc,{memo as Hc}from"react";import{ArrowDownIcon as _c}from"@heroicons/react/20/solid";import Bc from"html-react-parser";import{createContext as Rc,useCallback as Tc,useContext as Dr,useEffect as kc,useRef as Sc,useState as Dc}from"react";import{ChevronLeft as Mc,ChevronRight as Ic}from"lucide-react";import*as an from"react";import{Slot as Nc}from"@radix-ui/react-slot";import{cva as Pc}from"class-variance-authority";import{jsx as Cc}from"react/jsx-runtime";var Yt=Pc("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),ie=an.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Nc:"button",m=i(Yt({variant:o,size:t,className:e}));return Cc(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ie.displayName="IconButton";import{Fragment as Ac,jsx as Ft,jsxs as rn}from"react/jsx-runtime";var Pa=Rc(void 0),wt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=Sc(null),[n,s]=Dc({left:!1,right:!1}),l=Tc(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);kc(()=>{let c=r.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=r.current;if(d){let{scrollLeft:p,clientWidth:g,scrollWidth:v}=d,R=g*.7*(c==="left"?-1:1),k=p+R;k<0?k=0:k>v-g&&(k=v-g),d.scrollTo({left:k,behavior:"smooth"})}};return Ft(Pa.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:rn("div",{className:i("relative w-full",t),children:[e&&rn(Ac,{children:[n.left&&Ft("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&&Ft("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]})})},Nt=({className:e,children:o})=>{let t=Dr(Pa);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Ft("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},Pt=({className:e,children:o,...t})=>{let a=Dr(Pa);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Ft(ie,{className:i("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||Ft(Mc,{className:"h-4 w-4"})}):null},Ct=({className:e,children:o,...t})=>{let a=Dr(Pa);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Ft(ie,{className:i("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||Ft(Ic,{className:"h-4 w-4"})}):null};import*as Ca from"react";import*as $e from"@radix-ui/react-tabs";import{jsx as Mr}from"react/jsx-runtime";var Rt=$e.Root,Je=Ca.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>Mr($e.List,{ref:r,className:i("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Je.displayName=$e.List.displayName;var et=Ca.forwardRef(({className:e,...o},t)=>Mr($e.Trigger,{ref:t,className:i("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));et.displayName=$e.Trigger.displayName;var tt=Ca.forwardRef(({className:e,...o},t)=>Mr($e.Content,{ref:t,className:i("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));tt.displayName=$e.Content.displayName;import*as nn from"react";import{Slot as Lc}from"@radix-ui/react-slot";import{cva as Fc}from"class-variance-authority";import{jsx as Ec}from"react/jsx-runtime";var sn=Fc("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"}}),pe=nn.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Lc:"button",m=i(sn({variant:o,size:t,className:e}));return Ec(l,{className:m,disabled:r,ref:s,...n,children:n.children})});pe.displayName="TextButton";import{Fragment as ln,jsx as $,jsxs as ot}from"react/jsx-runtime";var Oc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return ot(ln,{children:[$("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:$("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:ot("picture",{children:[$("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),$("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),ot("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&$(pe,{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:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),ot("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&ot(ln,{children:[$(pe,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&$("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&$("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Ra=Hc(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{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)=>ot("div",{children:[$("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((g,v)=>$("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:$("div",{onClick:R=>m(R,g?.id,g?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:$(Oc,{blog:g})},g?.id)},v))}),d?.isShowBtn&&$("div",{className:"flex items-center justify-center w-full mt-8",children:ot(We,{action:r?()=>r?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[Bc(d.btnName||"Xem th\xEAm"),d?.isLoading?$(vo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&$(_c,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||p);return ot(zc.Fragment,{children:[e&&$(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?ot(Rt,{defaultValue:t[0]?.title,children:[ot(wt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[$(Nt,{className:"mb-6 text-center",children:$(Je,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,p)=>$(et,{value:d.title,children:d.title},d.title+p))})}),$(Pt,{}),$(Ct,{})]}),t.map((d,p)=>$(tt,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import jc,{memo as Qc,useEffect as Uc,useState as dn}from"react";import{ChevronLeftIcon as qc,ChevronRightIcon as Xc}from"@heroicons/react/20/solid";import pn from"html-react-parser";import*as B from"react";import{ChevronLeftIcon as Vc,ChevronRightIcon as Wc}from"@heroicons/react/20/solid";import $c from"embla-carousel-react";import{Fragment as Gc,jsx as Le,jsxs as cn}from"react/jsx-runtime";var mn=B.createContext(null);function jo(){let e=B.useContext(mn);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var fe=B.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=$c({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=B.useState(!1),[g,v]=B.useState(!1),R=B.useCallback(O=>{O&&(p(O.canScrollPrev()),v(O.canScrollNext()))},[]),k=B.useCallback(()=>{c?.scrollPrev()},[c]),I=B.useCallback(()=>{c?.scrollNext()},[c]),E=B.useCallback(O=>{O.key==="ArrowLeft"?(O.preventDefault(),k()):O.key==="ArrowRight"&&(O.preventDefault(),I())},[k,I]);return B.useEffect(()=>{!c||!t||t(c)},[c,t]),B.useEffect(()=>{if(c)return R(c),c.on("reInit",R),c.on("select",R),()=>{c?.off("select",R)}},[c,R]),Le(mn.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:k,scrollNext:I,canScrollPrev:d,canScrollNext:g},children:Le("div",{ref:l,onKeyDownCapture:E,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});fe.displayName="Carousel";var ge=B.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=jo();return Le("div",{ref:r,className:i("overflow-hidden",o),children:Le("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ge.displayName="CarouselContent";var se=B.forwardRef(({className:e,...o},t)=>{let{orientation:a}=jo();return Le("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});se.displayName="CarouselItem";var wo=B.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=jo();return cn(ie,{ref:r,variant:o,size:t,className:i("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:[Le(Vc,{className:"h-6 w-6"}),Le("span",{className:"sr-only",children:"Previous slide"})]})});wo.displayName="CarouselPrevious";var No=B.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=jo();return cn(ie,{ref:r,variant:o,size:t,className:i("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:[Le(Wc,{className:"h-6 w-6"}),Le("span",{className:"sr-only",children:"Next slide"})]})});No.displayName="CarouselNext";var Po=B.forwardRef((e,o)=>{let{api:t}=jo(),[,a]=B.useState(!1),r=B.useCallback(()=>a(l=>!l),[]);B.useEffect(()=>{if(t)return t.on("select",r),t.on("reInit",r),()=>{t.off("select",r),t.off("reInit",r)}},[t,r]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Le("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Le(ie,{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))}):Le(Gc,{})});Po.displayName="CarouselDots";import{Fragment as Ta,jsx as G,jsxs as Ge}from"react/jsx-runtime";var Yc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ge(Ta,{children:[G("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:G("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Ge("div",{className:"mt-4 md:pr-3",children:[G("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&G("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:pn(e?.description??"")}),Ge("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Ge(Ta,{children:[G(pe,{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&&G("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&G("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Zc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return Uc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Ge(Ta,{children:[G(fe,{opts:{dragFree:!1},setApi:o,className:"w-full",children:G(ge,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>G(se,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:G("div",{onClick:g=>r(g,p?.id,p?.url),className:i("group cursor-pointer",d),children:G(Yc,{blog:p})},p?.id)},p?.id))})}),s&&G("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Ge(We,{action:m&&m,newTab:c,variant:"outline",children:[pn(l||"Xem th\xEAm")," "]})})]})},Kc=({carouselRef:e})=>Ge(ie,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[G(qc,{className:"h-6 w-6"}),G("span",{className:"sr-only",children:"Previous slide"})]}),Jc=({carouselRef:e})=>Ge(ie,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[G(Xc,{className:"h-6 w-6"}),G("span",{className:"sr-only",children:"Next slide"})]}),Ir=Qc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(c,d,p)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(p,"_blank")},[n,s]=dn(null),[,l]=dn(0),m=()=>n?Ge("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[G(Kc,{carouselRef:n}),G(Jc,{carouselRef:n})]}):G(Ta,{});return Ge(jc.Fragment,{children:[Ge("div",{className:" flex items-center justify-between",children:[e&&G(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),G(m,{})]}),G(Zc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as ad,jsx as Co}from"react/jsx-runtime";var ed=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return Co(Ra,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return Co(Ir,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return Co(Ra,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},td=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>Co(ad,{children:ed({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),od=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>Co(_,{className:i("overflow-hidden",r),idSection:a,background:n,children:Co(td,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as Sa from"react";import{enUS as sd,vi as ld}from"date-fns/locale";import{ChevronLeft as md,ChevronRight as cd}from"lucide-react";import dd from"lunisolar";import{DayPicker as pd}from"react-day-picker";import*as fn from"react";import*as Qo from"@radix-ui/react-checkbox";import{CheckIcon as rd}from"@heroicons/react/16/solid";import{cva as gn}from"class-variance-authority";import{jsx as Ar}from"react/jsx-runtime";var id=gn("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"}}),nd=gn("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),ka=fn.forwardRef(({className:e,size:o,...t},a)=>Ar(Qo.Root,{ref:a,className:i(id({size:o}),e),...t,children:Ar(Qo.Indicator,{className:i("flex items-center justify-center text-current"),children:Ar(rd,{className:i(nd({size:o}))})})}));ka.displayName=Qo.Root.displayName;import{Fragment as hd,jsx as at,jsxs as Lr}from"react/jsx-runtime";var fd=({date:e,cusContent:o})=>{let t=null;return t=dd(e).lunar,Lr(hd,{children:[o?o(e):e.getDate(),t&&at("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},gd={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 ud({isShow:e,setIsShow:o,lang:t}){let a=Sa.useId();return at("div",{className:"w-full p-3 pt-0",children:Lr("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[at(ka,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),at("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 vd=e=>e.getDay()===0||e.getDay()===6;function Da({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=Sa.useState(!0);return at(pd,{locale:r==="vi"?ld:sd,showOutsideDays:t,className:i("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:i(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:i("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:i(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:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:vd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>at(md,{className:"h-6 w-6"}),IconRight:()=>at(cd,{className:"h-6 w-6"}),DayContent:c=>at(fd,{date:c.date,cusContent:n}),Months:({children:c})=>Lr("div",{className:"w-full",children:[at("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&at(ud,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?gd:{},...s})}Da.displayName="Calendar";import{QuestionMarkCircleIcon as xd,XCircleIcon as bd}from"@heroicons/react/16/solid";import{format as Ma}from"date-fns";import{Calendar as yd}from"lucide-react";import*as vn from"react";import*as Tt from"@radix-ui/react-popover";import{jsx as un}from"react/jsx-runtime";var Uo=Tt.Root,qo=Tt.Trigger,Ro=vn.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>un(Tt.Portal,{children:un(Tt.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-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})}));Ro.displayName=Tt.Content.displayName;import{Fragment as hn,jsx as Ce,jsxs as Xo}from"react/jsx-runtime";var wd=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,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:[Ce(qo,{asChild:!0,children:Xo(Ie,{variant:"secondary",className:i("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",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Ce("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Ma(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?Ce(hn,{children:p.from?p.to?Xo(hn,{children:[Ce("span",{className:"date-from",children:Ma(p.from,s)})," ",Ce("span",{className:"date-separator",children:"-"}),Ce("span",{className:"date-to",children:Ma(p.to,s)})]}):Ma(p.from,s):o}):o}),e&&Ce("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),Ce(yd,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Ce(Ro,{className:"w-auto border-none !p-0",...d,children:Ce(Da,{...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:[r?Ce(bd,{width:16,height:16,className:"text-red-500"}):Ce(xd,{width:16,height:16,className:"text-gray-500"}),Ce("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Td,useState as Cn}from"react";import{QuestionMarkCircleIcon as kd,XCircleIcon as Sd}from"@heroicons/react/16/solid";import{isValid as Dd}from"date-fns";import*as rt from"react";import{ChevronDownIcon as xn,ChevronUpIcon as Nd,CheckIcon as Pd,XCircleIcon as Cd}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Rd}from"@heroicons/react/24/outline";import*as T from"@radix-ui/react-select";import{jsx as j,jsxs as Yo}from"react/jsx-runtime";var Zo=rt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Yo("div",{ref:m,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&j("span",{className:i("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),j(T.Root,{disabled:s,...l,children:o}),a&&Yo("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?j(Cd,{width:16,height:16}):j(Rd,{width:16,height:16}),j("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Ko=T.Value,To=rt.forwardRef(({className:e,children:o,...t},a)=>Yo(T.Trigger,{ref:a,className:i("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[j("div",{className:"line-clamp-1 text-left",children:o}),j(T.Icon,{asChild:!0,children:j(xn,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));To.displayName=T.Trigger.displayName;var Fr=rt.forwardRef(({className:e,...o},t)=>j(T.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:j(Nd,{className:"h-5 w-5"})}));Fr.displayName=T.ScrollUpButton.displayName;var Er=rt.forwardRef(({className:e,...o},t)=>j(T.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:j(xn,{className:"h-5 w-5"})}));Er.displayName=T.ScrollDownButton.displayName;var ko=rt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>j(T.Portal,{children:Yo(T.Content,{ref:r,className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[j(Fr,{}),j(T.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),j(Er,{})]})}));ko.displayName=T.Content.displayName;var Jo=rt.forwardRef(({className:e,children:o,...t},a)=>j(T.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),bn=rt.forwardRef(({className:e,...o},t)=>j(T.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));bn.displayName=T.Label.displayName;var Et=rt.forwardRef(({className:e,children:o,...t},a)=>Yo(T.Item,{ref:a,className:i("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:[j("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:j(T.ItemIndicator,{children:j(Pd,{className:"h-4 w-4 text-pink-500"})})}),j(T.ItemText,{children:o})]})),yn=rt.forwardRef(({className:e,...o},t)=>j(T.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));yn.displayName=T.Separator.displayName;var wn=["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"],Nn=["January","February","March","April","May","June","July","August","September","October","November","December"],zr=(e,o,t,a)=>{let r=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():r;return{daysInMonth:r,startDay:n,endDay:s}},Pn=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};import{jsx as te,jsxs as it}from"react/jsx-runtime";var Md=({label:e,selected:o,onSelect:t,size:a=1,message:r,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,v]=Cn(o??null),R=Math.min(c,d),k=Math.max(c,d),I=l==="MM/yyyy",E=(w,H)=>{if(H===0){v(void 0),t?.(void 0);return}let A=g?.getFullYear()||new Date().getFullYear(),Be=g?.getMonth()??0,Oe=g?.getDate()??1;w==="month"&&H!==null&&(Be=H-1),w==="year"&&H!==null&&(A=H),I?Oe=1:w==="day"&&H!==null&&(Oe=H);let wa=zr(A,Be+1).daysInMonth;Oe>wa&&(Oe=1);let Bo=new Date(A,Be,Oe);Dd(Bo)&&(v(Bo),t?.(Bo))},[O,L]=Cn(!1),ft=w=>{L(w)};return Td(()=>{v(o??null)},[o]),it("div",{className:i("relative",s&&"cursor-no-drop"),children:[it("div",{className:i("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",O&&"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:i("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:[!I&&it(Zo,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:w=>E("day",parseInt(w,10)),onOpenChange:ft,className:"w-[30%]",children:[te(To,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Ko,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),te(ko,{onCloseAutoFocus:w=>w.preventDefault(),children:it(Jo,{children:[!p&&te(Et,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:zr(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(w,H)=>(H+1).toString().padStart(2,"0")).map(w=>te(Et,{value:w,children:w},w))]})})]}),it(Zo,{value:g?(g.getMonth()+1).toString():"",onValueChange:w=>E("month",parseInt(w,10)),onOpenChange:ft,className:i(I?"w-1/2":"w-2/5"),children:[te(To,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Ko,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),te(ko,{onCloseAutoFocus:w=>w.preventDefault(),children:it(Jo,{children:[!p&&te(Et,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(w,H)=>H+1).map(w=>te(Et,{value:w.toString(),children:m==="vi"?wn[w-1]:Nn[w-1]},w))]})})]}),it(Zo,{value:g?g.getFullYear().toString():"",onValueChange:w=>E("year",parseInt(w,10)),onOpenChange:ft,className:i(I?"w-1/2":"w-[30%]"),children:[te(To,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Ko,{placeholder:m==="vi"?"N\u0103m":"Year"})}),te(ko,{onCloseAutoFocus:w=>w.preventDefault(),children:it(Jo,{children:[!p&&te(Et,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Pn(R,k).map(w=>te(Et,{value:w.toString(),children:w},w))]})})]})]})]}),r&&it("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?te(Sd,{width:16,height:16,className:"text-red-500"}):te(kd,{width:16,height:16,className:"text-gray-500"}),te("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as Zt from"react";import*as V from"@radix-ui/react-alert-dialog";import{jsx as kt,jsxs as Ld}from"react/jsx-runtime";var Id=V.Root,Ad=V.Trigger,Rn=V.Portal,Hr=Zt.forwardRef(({className:e,...o},t)=>kt(V.Overlay,{className:i("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));Hr.displayName=V.Overlay.displayName;var Tn=Zt.forwardRef(({className:e,...o},t)=>Ld(Rn,{children:[kt(Hr,{}),kt(V.Content,{ref:t,className:i("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));Tn.displayName=V.Content.displayName;var kn=({className:e,...o})=>kt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});kn.displayName="AlertDialogHeader";var Sn=({className:e,...o})=>kt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Sn.displayName="AlertDialogFooter";var Dn=Zt.forwardRef(({className:e,...o},t)=>kt(V.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Dn.displayName=V.Title.displayName;var Mn=Zt.forwardRef(({className:e,...o},t)=>kt(V.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Mn.displayName=V.Description.displayName;var In=Zt.forwardRef(({className:e,...o},t)=>kt(V.Action,{ref:t,className:i(Ze({variant:"primary"}),"",e),...o}));In.displayName=V.Action.displayName;var An=Zt.forwardRef(({className:e,...o},t)=>kt(V.Cancel,{ref:t,className:i(Ze({variant:"secondary"}),e),...o}));An.displayName=V.Cancel.displayName;import{memo as Wd,useState as $d}from"react";import{useEffect as Fd,useState as Fn}from"react";import En from"html-react-parser";import{motion as Ed}from"motion/react";import*as Ln from"@radix-ui/react-aspect-ratio";var F=Ln.Root;import{Fragment as zn,jsx as oe,jsxs as ea}from"react/jsx-runtime";var zd=({guideGroup:e,mockup:o})=>{let[t,a]=Fn(),[r,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 Fd(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),oe(zn,{children:e?.stepList&&e?.stepList?.length>0&&ea("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[oe("div",{className:"h-auto w-64 flex-none",children:ea("div",{className:i("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(zn,{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:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:ea(fe,{setApi:a,children:[oe(ge,{className:"ml-0",children:e?.stepList.map((l,m)=>oe(se,{className:"pl-0",children:oe(F,{ratio:o==="small"?540/960:540/1168,children:l?.image&&oe("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),oe(wo,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),oe(No,{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)=>ea("li",{className:i("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===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[oe("div",{className:i("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===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),oe("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:En(l.title)}),l.content&&oe(Ed.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:oe("div",{className:"mt-3 text-sm text-gray-700",children:En(l.content)})})]},m))})})]})})},_r=zd;import{useEffect as Hd,useRef as _d,useState as Ia}from"react";import{ChevronRightIcon as Hn}from"@heroicons/react/20/solid";import Bd from"embla-carousel-autoplay";import Aa from"html-react-parser";import{Fragment as Br,jsx as y,jsxs as be}from"react/jsx-runtime";var Od=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=Ia(0),[s,l]=Ia();return Hd(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:y(Ve,{open:e,onOpenChange:o,children:be(Ae,{position:"bottom",height:"full",children:[y(ho,{children:y(xo,{className:"line-clamp-1",children:t?.title})}),be(Ke,{className:"grid overflow-hidden p-0 ",children:[y(fe,{setApi:l,className:" grid overflow-hidden",children:y(ge,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>y(se,{className:"h-full w-full pl-0",children:be("div",{className:"flex h-full flex-col overflow-y-auto",children:[y("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:y("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:be("div",{className:i("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"&&be(Br,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:y(F,{ratio:a==="small"?540/960:540/1168,children:m?.image&&y("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),be("div",{className:"p-5 pb-12",children:[y("div",{className:"font-semibold",children:Aa(m.title)}),m?.content&&y("div",{className:"mt-3 text-sm text-gray-800",children:Aa(m.content)})]})]})},c))})}),y("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)=>y("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},Vd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=Ia(!1),[n,s]=Ia(null),l=_d(Bd({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:be(Br,{children:[e?.length>1?y("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>be("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[y("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)&&y("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),be("div",{className:i("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:[be("div",{className:"py-2",children:[t&&y("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),y("div",{className:"font-semibold",children:Aa(c.title)}),c?.description&&y("div",{className:"mt-1 text-sm text-gray-500",children:Aa(c.description)})]}),y("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:y(Hn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&be("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[y("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:y("div",{className:"mx-auto h-auto w-72",children:be("div",{className:i("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"&&be(Br,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:y(fe,{plugins:[l.current],children:y(ge,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>y(se,{className:"pl-0",onClick:()=>m(0),children:y(F,{ratio:o==="small"?540/960:540/1168,children:c?.image&&y("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),y("div",{className:"flex w-full flex-none justify-center",children:be(pe,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",y(Hn,{className:"ml-1 h-5 w-5"})]})})]}),a&&y(Od,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},_n=Vd;import{Fragment as Gd,jsx as le,jsxs as ta}from"react/jsx-runtime";var Bn=({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 le("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:le("path",{d:t.d,fill:"currentColor"})})},Or=Wd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=$d(t?.[0]?.title||"");return ta(Gd,{children:[e&&le(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t&&t?.length>0&&ta(go,{children:[le(Ye,{lessThan:"md",children:le(_n,{dataGuide:t,mockup:r,isStep:n})}),le(Ye,{greaterThan:"sm",children:t?.length>1?ta(Rt,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[ta(wt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[le(Nt,{className:"mb-6 text-center",children:le(Je,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,g)=>{let v=g===t.length-1,R=c===p?.title||"";return ta(et,{value:p.title,className:i(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":"",R&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&le(Bn,{direction:"left",className:i("right-full top-0",R?"text-pink-500":"text-pink-100")}),p.title,n&&!v&&le(Bn,{direction:"right",className:i("left-full top-0",R?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),le(Pt,{}),le(Ct,{})]}),t.map((p,g)=>le(tt,{value:p.title,children:le(_r,{guideGroup:p,mockup:r})},p.title+g))]}):t?.length===1&&t[0]&&le(_r,{guideGroup:t[0],mockup:r})})]}),a&&le(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as qd,jsx as oa}from"react/jsx-runtime";var jd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return oa(Or,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return oa(Or,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Qd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>oa(qd,{children:jd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Ud=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>oa(_,{className:i(n),background:s,idSection:e,children:oa(Qd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:m,isStep:c})});import{ChevronLeft as Xd,ChevronRight as Yd}from"lucide-react";import{Fragment as Zd,jsx as Fe,jsxs as On}from"react/jsx-runtime";function Vn({current:e,total:o,onChange:t}){let a=r=>Fe("li",{children:Fe("button",{className:i(Yt({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return Fe("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:On("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Fe("li",{children:Fe("button",{className:i(Yt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Fe(Xd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):On(Zd,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Fe("li",{children:Fe("button",{className:i(Yt({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&&Fe("button",{className:i(Yt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Fe("li",{children:Fe("button",{className:i(Yt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Fe(Yd,{className:"h-4 w-4"})})})]})})}import{forwardRef as Kd}from"react";import{QuestionMarkCircleIcon as Jd}from"@heroicons/react/24/outline";import{XCircleIcon as ep}from"@heroicons/react/24/solid";import{jsx as So,jsxs as Wn}from"react/jsx-runtime";var Vr=Kd(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>Wn("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&So("span",{className:i("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:i("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&&Wn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?So(ep,{width:16,height:16,className:"text-red-500"}):So(Jd,{width:16,height:16,className:"text-gray-500"}),So("span",{className:i("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 Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
94
94
  color: rgb(var(--mobase-red-500) / 1);
95
95
  }
96
96
  }
97
- `})]}));import*as Fa from"react";var ep=1,tp=1e6;var Vr=0;function op(){return Vr=(Vr+1)%Number.MAX_SAFE_INTEGER,Vr.toString()}var Wr=new Map,$n=e=>{if(Wr.has(e))return;let o=setTimeout(()=>{Wr.delete(e),oa({type:"REMOVE_TOAST",toastId:e})},tp);Wr.set(e,o)},ap=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,ep)};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?$n(t):e.toasts.forEach(a=>{$n(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}},Aa=[],La={toasts:[]};function oa(e){La=ap(La,e),Aa.forEach(o=>{o(La)})}function Gn({...e}){let o=op(),t=r=>oa({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>oa({type:"DISMISS_TOAST",toastId:o});return oa({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function $r(){let[e,o]=Fa.useState(La);return Fa.useEffect(()=>(Aa.push(o),()=>{let t=Aa.indexOf(o);t>-1&&Aa.splice(t,1)}),[e]),{...e,toast:Gn,dismiss:t=>oa({type:"DISMISS_TOAST",toastId:t})}}import*as Zt from"react";import{CheckCircleIcon as rp,ExclamationTriangleIcon as ip,InformationCircleIcon as np,XMarkIcon as sp}from"@heroicons/react/20/solid";import*as Y from"@radix-ui/react-toast";import{cva as lp}from"class-variance-authority";import{jsx as Tt,jsxs as jn}from"react/jsx-runtime";var Qn=Y.Provider,Gr=Zt.forwardRef(({className:e,...o},t)=>Tt(Y.Viewport,{ref:t,className:i("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}));Gr.displayName=Y.Viewport.displayName;var mp=lp("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"}}),jr=Zt.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>jn(Y.Root,{ref:r,className:i(mp({variant:o}),e),...a,children:[jn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&Tt(rp,{className:"h-5 w-5 text-green-500"}),o==="warning"&&Tt(ip,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&Tt(np,{className:"h-5 w-5 text-red-500"})]}),t]}));jr.displayName=Y.Root.displayName;var Un=Zt.forwardRef(({className:e,...o},t)=>Tt(Y.Action,{ref:t,className:i("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}));Un.displayName=Y.Action.displayName;var Qr=Zt.forwardRef(({className:e,...o},t)=>Tt(Y.Close,{ref:t,className:i("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(sp,{className:"h-5 w-5"})}));Qr.displayName=Y.Close.displayName;var Ur=Zt.forwardRef(({className:e,...o},t)=>Tt(Y.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));Ur.displayName=Y.Title.displayName;var qr=Zt.forwardRef(({className:e,...o},t)=>Tt(Y.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));qr.displayName=Y.Description.displayName;import{jsx as Ea,jsxs as Xr}from"react/jsx-runtime";function cp(){let{toasts:e}=$r();return Xr(Qn,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return Xr(jr,{...n,children:[Xr("div",{className:"grid gap-2",children:[t&&Ea(Ur,{children:t}),a&&Ea(qr,{children:a})]}),r,Ea(Qr,{})]},o)}),Ea(Gr,{})]})}import*as Yr from"react";import*as Ee from"@radix-ui/react-tooltip";import{jsx as Yn}from"react/jsx-runtime";var dp=Ee.Provider,pp=Ee.Root,fp=Ee.Trigger,qn=Yr.forwardRef((e,o)=>Yn(Ee.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));qn.displayName=Ee.Arrow.displayName;var Xn=Yr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>Yn(Ee.Content,{ref:r,sideOffset:t,className:i("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));Xn.displayName=Ee.Content.displayName;import{forwardRef as gp,useEffect as up,useRef as vp,useState as hp}from"react";import{QuestionMarkCircleIcon as xp,XCircleIcon as bp,XCircleIcon as yp}from"@heroicons/react/16/solid";import{jsx as Ft,jsxs as Zr}from"react/jsx-runtime";var Kr=gp(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:c,onClickClear:d,value:p,defaultValue:g,type:v="text",...R},k)=>{let[L,A]=hp(!1),F=vp(null),M=G=>{G&&!L&&A(!0),!G&&L&&A(!1)},dt=G=>{s&&M(G.target.value),m?.(G)},w=G=>{s&&M(G.target.value),c?.(G)},re=()=>{let G=F.current?.querySelector("input");G&&(d?.(G.value),G.value="",G.focus(),A(!1))};return up(()=>{M(g||p)},[p,g]),Zr("div",{className:i(r,o&&"mobase-text-input-error"),ref:F,children:[Zr("div",{className:"relative",children:[a&&Ft("span",{className:i("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}),Ft("input",{disabled:e,type:v,ref:k,className:i("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:dt,onFocus:w,value:p,defaultValue:g,...R}),s&&L&&Ft("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:re,children:Ft(bp,{strokeWidth:2,width:20,height:20})})]}),t&&Zr("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?Ft(yp,{width:16,height:16,className:"text-red-500"}):Ft(xp,{width:16,height:16,className:"text-gray-500"}),Ft("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),Ft("style",{children:`
97
+ `})]}));import*as Ea from"react";var tp=1,op=1e6;var Wr=0;function ap(){return Wr=(Wr+1)%Number.MAX_SAFE_INTEGER,Wr.toString()}var $r=new Map,$n=e=>{if($r.has(e))return;let o=setTimeout(()=>{$r.delete(e),aa({type:"REMOVE_TOAST",toastId:e})},op);$r.set(e,o)},rp=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,tp)};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?$n(t):e.toasts.forEach(a=>{$n(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}},La=[],Fa={toasts:[]};function aa(e){Fa=rp(Fa,e),La.forEach(o=>{o(Fa)})}function Gn({...e}){let o=ap(),t=r=>aa({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>aa({type:"DISMISS_TOAST",toastId:o});return aa({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function Gr(){let[e,o]=Ea.useState(Fa);return Ea.useEffect(()=>(La.push(o),()=>{let t=La.indexOf(o);t>-1&&La.splice(t,1)}),[e]),{...e,toast:Gn,dismiss:t=>aa({type:"DISMISS_TOAST",toastId:t})}}import*as Kt from"react";import{CheckCircleIcon as ip,ExclamationTriangleIcon as np,InformationCircleIcon as sp,XMarkIcon as lp}from"@heroicons/react/20/solid";import*as Z from"@radix-ui/react-toast";import{cva as mp}from"class-variance-authority";import{jsx as St,jsxs as jn}from"react/jsx-runtime";var Qn=Z.Provider,jr=Kt.forwardRef(({className:e,...o},t)=>St(Z.Viewport,{ref:t,className:i("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}));jr.displayName=Z.Viewport.displayName;var cp=mp("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"}}),Qr=Kt.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>jn(Z.Root,{ref:r,className:i(cp({variant:o}),e),...a,children:[jn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&St(ip,{className:"h-5 w-5 text-green-500"}),o==="warning"&&St(np,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&St(sp,{className:"h-5 w-5 text-red-500"})]}),t]}));Qr.displayName=Z.Root.displayName;var Un=Kt.forwardRef(({className:e,...o},t)=>St(Z.Action,{ref:t,className:i("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}));Un.displayName=Z.Action.displayName;var Ur=Kt.forwardRef(({className:e,...o},t)=>St(Z.Close,{ref:t,className:i("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(lp,{className:"h-5 w-5"})}));Ur.displayName=Z.Close.displayName;var qr=Kt.forwardRef(({className:e,...o},t)=>St(Z.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));qr.displayName=Z.Title.displayName;var Xr=Kt.forwardRef(({className:e,...o},t)=>St(Z.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));Xr.displayName=Z.Description.displayName;import{jsx as za,jsxs as Yr}from"react/jsx-runtime";function dp(){let{toasts:e}=Gr();return Yr(Qn,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return Yr(Qr,{...n,children:[Yr("div",{className:"grid gap-2",children:[t&&za(qr,{children:t}),a&&za(Xr,{children:a})]}),r,za(Ur,{})]},o)}),za(jr,{})]})}import*as Zr from"react";import*as Ee from"@radix-ui/react-tooltip";import{jsx as Yn}from"react/jsx-runtime";var pp=Ee.Provider,fp=Ee.Root,gp=Ee.Trigger,qn=Zr.forwardRef((e,o)=>Yn(Ee.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));qn.displayName=Ee.Arrow.displayName;var Xn=Zr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>Yn(Ee.Content,{ref:r,sideOffset:t,className:i("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));Xn.displayName=Ee.Content.displayName;import{forwardRef as up,useEffect as vp,useRef as hp,useState as xp}from"react";import{QuestionMarkCircleIcon as bp,XCircleIcon as yp,XCircleIcon as wp}from"@heroicons/react/16/solid";import{jsx as zt,jsxs as Kr}from"react/jsx-runtime";var Jr=up(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:c,onClickClear:d,value:p,defaultValue:g,type:v="text",...R},k)=>{let[I,E]=xp(!1),O=hp(null),L=A=>{A&&!I&&E(!0),!A&&I&&E(!1)},ft=A=>{s&&L(A.target.value),m?.(A)},w=A=>{s&&L(A.target.value),c?.(A)},H=()=>{let A=O.current?.querySelector("input");A&&(d?.(A.value),A.value="",A.focus(),E(!1))};return vp(()=>{L(g||p)},[p,g]),Kr("div",{className:i(r,o&&"mobase-text-input-error"),ref:O,children:[Kr("div",{className:"relative",children:[a&&zt("span",{className:i("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}),zt("input",{disabled:e,type:v,ref:k,className:i("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:ft,onFocus:w,value:p,defaultValue:g,...R}),s&&I&&zt("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:H,children:zt(yp,{strokeWidth:2,width:20,height:20})})]}),t&&Kr("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?zt(wp,{width:16,height:16,className:"text-red-500"}):zt(bp,{width:16,height:16,className:"text-gray-500"}),zt("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),zt("style",{children:`
98
98
  .mobase-text-input-box:hover {
99
99
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
100
100
  }
@@ -117,26 +117,26 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});import{MinusCircleIcon as wp,PlusCircleIcon as Np}from"@heroicons/react/24/outline";import{forwardRef as Pp,useState as Cp}from"react";import{jsx as aa,jsxs as Jr}from"react/jsx-runtime";var Zn=Pp(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[p,g]=Cp(r),v=()=>{let L=Math.min(p+a,t);g(L),n?.(L),l?.(L)},R=()=>{let L=Math.max(p-a,o);g(L),n?.(L),s?.(L)},k=L=>{let A=parseFloat(L.target.value);if(!isNaN(A)){let F=Math.max(Math.min(A,t),o);g(F),n?.(F)}};return Jr("div",{ref:d,className:i("flex items-center ",e),children:[Jr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:R,disabled:m||p<=o,children:[aa(wp,{className:"w-7 h-7 "}),aa("span",{className:"sr-only",children:"Decrease value"})]}),aa("input",{type:"number",value:p,onChange:k,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}),Jr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:v,disabled:m||p>=t,children:[aa(Np,{className:"w-7 h-7 "}),aa("span",{className:"sr-only",children:"Increase value"})]})]})});Zn.displayName="Stepper";import*as $e from"react";import*as j from"@radix-ui/react-navigation-menu";import{cva as Rp}from"class-variance-authority";import{ChevronDownIcon as Tp}from"@heroicons/react/16/solid";import{jsx as rt,jsxs as Ip}from"react/jsx-runtime";var Kn=$e.createContext(null),kp=({value:e,children:o})=>rt(Kn.Provider,{value:e,children:o}),Sp=()=>{let e=$e.useContext(Kn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},za=$e.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>rt(kp,{value:{alignDropdown:t},children:rt(j.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));za.displayName=j.Root.displayName;var Ha=$e.forwardRef(({className:e,...o},t)=>rt(j.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ha.displayName=j.List.displayName;var _a=j.Item,Ba=Rp(Xe({variant:"transparent",size:"sm"})),Oa=$e.forwardRef(({className:e,children:o,...t},a)=>Ip(j.Trigger,{ref:a,className:i(Ba(),"group px-2",e),...t,children:[o," ",rt(Tp,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Oa.displayName=j.Trigger.displayName;var Va=$e.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Sp();return rt(j.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Va.displayName=j.Content.displayName;var ra=j.Link,Dp=$e.forwardRef(({className:e,...o},t)=>rt("div",{className:i("absolute left-0 top-full flex justify-center"),children:rt(j.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Dp.displayName=j.Viewport.displayName;var Mp=$e.forwardRef(({className:e,...o},t)=>rt(j.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:rt("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Mp.displayName=j.Indicator.displayName;import*as es from"react";import*as ia from"@radix-ui/react-switch";import{jsx as Jn}from"react/jsx-runtime";var Wa=es.forwardRef(({className:e,...o},t)=>Jn(ia.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Jn(ia.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Wa.displayName=ia.Root.displayName;import*as Kt from"react";import*as Et from"@radix-ui/react-radio-group";import{Circle as Ap}from"lucide-react";import{cva as ts}from"class-variance-authority";import{jsx as na}from"react/jsx-runtime";var Lp=ts("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"}}),Fp=ts("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),os=Kt.createContext({size:"medium"});function Ep(){let e=Kt.useContext(os);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var as=Kt.forwardRef(({className:e,size:o,...t},a)=>na(os.Provider,{value:{size:o},children:na(Et.Root,{className:i("grid gap-2",e),...t,ref:a})}));as.displayName=Et.Root.displayName;var rs=Kt.forwardRef(({className:e,...o},t)=>{let a=Ep(),{size:r}=a??{};return na(Et.Item,{ref:t,className:i(Lp({size:r}),e),...o,children:na(Et.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:na(Ap,{className:i(Fp({size:r}))})})})});rs.displayName=Et.Item.displayName;import{useState as Zp}from"react";import{ArrowDownTrayIcon as Kp}from"@heroicons/react/16/solid";import Jp from"html-react-parser";import{useEffect as Vp,useState as ls}from"react";import ms from"next/router";import{AnimatePresence as Wp,domAnimation as $p,LazyMotion as Gp,motion as ei}from"motion/react";import{useKey as jp}from"react-use";var $a=[.24,.25,.05,1];import{motion as Hp}from"motion/react";import{jsx as sa,jsxs as is}from"react/jsx-runtime";var zp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return sa("li",{className:"min-h-8",children:is("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&sa("div",{className:"w-6 h-6 shrink-0",children:sa("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),is("div",{className:" ",children:[sa("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&sa("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},ns=zp;import{jsx as Jt,jsxs as Op}from"react/jsx-runtime";var _p={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:$a}},exit:{opacity:0,transition:{duration:.05}}},Bp=({data:e})=>Jt(ft,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return Jt(Hp.div,{variants:_p,children:o.hasDropdown?Op(gt,{value:o.id,children:[Jt(ut,{className:"py-3",children:o.title}),Jt(vt,{children:Jt("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>Jt(ns,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):Jt("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)})}),ss=Bp;import{jsx as D,jsxs as ve}from"react/jsx-runtime";var Qp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Up=({data:e,className:o})=>{let[t,a]=ls(!1),[r,n]=ls(!1);jp("Escape",()=>a(!1)),Vp(()=>{if(!t)return;let m=Qp();function c(){a(!1)}function d(){a(!1),n(!0)}function p(g){let v=g.target;v.tagName==="A"&&v.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",ms.events.on("routeChangeComplete",c),window.addEventListener("hashchange",d),window.addEventListener("click",p),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),ms.events.off("routeChangeComplete",c),window.removeEventListener("hashchange",d),window.removeEventListener("click",p)}},[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:$a}},exit:{opacity:0,transition:{duration:.15}}};return ve("div",{className:i(o),children:[ve("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:[D("span",{className:"sr-only",children:"Navigation"}),D(ei.div,{animate:t?"hidden":"visible",variants:s,children:D("svg",{className:i("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:D("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),D(ei.div,{animate:t?"visible":"hidden",variants:s,children:D("svg",{className:i("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:D("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),D(Gp,{features:$p,children:D(Wp,{mode:"wait",children:t&&ve(ei.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:i(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:[D(ss,{data:e}),ve("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[D("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),ve("div",{className:"flex flex-nowrap",children:[D("div",{className:"flex-initial",children:D("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:D("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),D("div",{className:"ml-3 flex-initial",children:D("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:D("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),D("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),ve("ul",{className:"mb-2 text-sm text-gray-500",children:[ve("li",{className:"mb-1",children:["Hotline :\xA0",D("a",{href:`tel:${pt.Support.Hotline}`,className:"text-gray-600",children:pt.Support.Hotline_Format})]}),ve("li",{className:"mb-1",children:["Email :\xA0",D("a",{href:`mailto:${pt.Support.Email}`,className:"text-gray-600",children:pt.Support.Email})]})]}),D("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:ve("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:[D("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:D("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:ve("g",{children:[D("title",{children:"Asset 1"}),D("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 Np,PlusCircleIcon as Pp}from"@heroicons/react/24/outline";import{forwardRef as Cp,useState as Rp}from"react";import{jsx as ra,jsxs as ei}from"react/jsx-runtime";var Zn=Cp(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[p,g]=Rp(r),v=()=>{let I=Math.min(p+a,t);g(I),n?.(I),l?.(I)},R=()=>{let I=Math.max(p-a,o);g(I),n?.(I),s?.(I)},k=I=>{let E=parseFloat(I.target.value);if(!isNaN(E)){let O=Math.max(Math.min(E,t),o);g(O),n?.(O)}};return ei("div",{ref:d,className:i("flex items-center ",e),children:[ei(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:R,disabled:m||p<=o,children:[ra(Np,{className:"w-7 h-7 "}),ra("span",{className:"sr-only",children:"Decrease value"})]}),ra("input",{type:"number",value:p,onChange:k,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}),ei(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:v,disabled:m||p>=t,children:[ra(Pp,{className:"w-7 h-7 "}),ra("span",{className:"sr-only",children:"Increase value"})]})]})});Zn.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 kp}from"@heroicons/react/16/solid";import{jsx as nt,jsxs as Ap}from"react/jsx-runtime";var Kn=je.createContext(null),Sp=({value:e,children:o})=>nt(Kn.Provider,{value:e,children:o}),Dp=()=>{let e=je.useContext(Kn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Ha=je.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>nt(Sp,{value:{alignDropdown:t},children:nt(Q.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Ha.displayName=Q.Root.displayName;var _a=je.forwardRef(({className:e,...o},t)=>nt(Q.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));_a.displayName=Q.List.displayName;var Ba=Q.Item,Oa=Tp(Ze({variant:"transparent",size:"sm"})),Va=je.forwardRef(({className:e,children:o,...t},a)=>Ap(Q.Trigger,{ref:a,className:i(Oa(),"group px-2",e),...t,children:[o," ",nt(kp,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Va.displayName=Q.Trigger.displayName;var Wa=je.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Dp();return nt(Q.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Wa.displayName=Q.Content.displayName;var ia=Q.Link,Mp=je.forwardRef(({className:e,...o},t)=>nt("div",{className:i("absolute left-0 top-full flex justify-center"),children:nt(Q.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Mp.displayName=Q.Viewport.displayName;var Ip=je.forwardRef(({className:e,...o},t)=>nt(Q.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:nt("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 es from"react";import*as na from"@radix-ui/react-switch";import{jsx as Jn}from"react/jsx-runtime";var $a=es.forwardRef(({className:e,...o},t)=>Jn(na.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Jn(na.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));$a.displayName=na.Root.displayName;import*as Jt from"react";import*as Ht from"@radix-ui/react-radio-group";import{Circle as Lp}from"lucide-react";import{cva as ts}from"class-variance-authority";import{jsx as sa}from"react/jsx-runtime";var Fp=ts("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"}}),Ep=ts("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),os=Jt.createContext({size:"medium"});function zp(){let e=Jt.useContext(os);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var as=Jt.forwardRef(({className:e,size:o,...t},a)=>sa(os.Provider,{value:{size:o},children:sa(Ht.Root,{className:i("grid gap-2",e),...t,ref:a})}));as.displayName=Ht.Root.displayName;var rs=Jt.forwardRef(({className:e,...o},t)=>{let a=zp(),{size:r}=a??{};return sa(Ht.Item,{ref:t,className:i(Fp({size:r}),e),...o,children:sa(Ht.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:sa(Lp,{className:i(Ep({size:r}))})})})});rs.displayName=Ht.Item.displayName;import{useState as Kp}from"react";import{ArrowDownTrayIcon as Jp}from"@heroicons/react/16/solid";import ef from"html-react-parser";import{useEffect as Wp,useState as ls}from"react";import ms from"next/router";import{AnimatePresence as $p,domAnimation as Gp,LazyMotion as jp,motion as ti}from"motion/react";import{useKey as Qp}from"react-use";var Ga=[.24,.25,.05,1];import{motion as _p}from"motion/react";import{jsx as la,jsxs as is}from"react/jsx-runtime";var Hp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return la("li",{className:"min-h-8",children:is("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...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})}),is("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})]})]})})},ns=Hp;import{jsx as eo,jsxs as Vp}from"react/jsx-runtime";var Bp={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Ga}},exit:{opacity:0,transition:{duration:.05}}},Op=({data:e})=>eo(ut,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return eo(_p.div,{variants:Bp,children:o.hasDropdown?Vp(vt,{value:o.id,children:[eo(ht,{className:"py-3",children:o.title}),eo(xt,{children:eo("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>eo(ns,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):eo("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)})}),ss=Op;import{jsx as D,jsxs as ue}from"react/jsx-runtime";var Up=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,qp=({data:e,className:o})=>{let[t,a]=ls(!1),[r,n]=ls(!1);Qp("Escape",()=>a(!1)),Wp(()=>{if(!t)return;let m=Up();function c(){a(!1)}function d(){a(!1),n(!0)}function p(g){let v=g.target;v.tagName==="A"&&v.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",ms.events.on("routeChangeComplete",c),window.addEventListener("hashchange",d),window.addEventListener("click",p),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),ms.events.off("routeChangeComplete",c),window.removeEventListener("hashchange",d),window.removeEventListener("click",p)}},[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:Ga}},exit:{opacity:0,transition:{duration:.15}}};return ue("div",{className:i(o),children:[ue("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:[D("span",{className:"sr-only",children:"Navigation"}),D(ti.div,{animate:t?"hidden":"visible",variants:s,children:D("svg",{className:i("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:D("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),D(ti.div,{animate:t?"visible":"hidden",variants:s,children:D("svg",{className:i("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:D("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),D(jp,{features:Gp,children:D($p,{mode:"wait",children:t&&ue(ti.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:i(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:[D(ss,{data:e}),ue("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[D("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),ue("div",{className:"flex flex-nowrap",children:[D("div",{className:"flex-initial",children:D("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:D("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),D("div",{className:"ml-3 flex-initial",children:D("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:D("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),D("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),ue("ul",{className:"mb-2 text-sm text-gray-500",children:[ue("li",{className:"mb-1",children:["Hotline :\xA0",D("a",{href:`tel:${gt.Support.Hotline}`,className:"text-gray-600",children:gt.Support.Hotline_Format})]}),ue("li",{className:"mb-1",children:["Email :\xA0",D("a",{href:`mailto:${gt.Support.Email}`,className:"text-gray-600",children:gt.Support.Email})]})]}),D("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:ue("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:[D("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:D("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:ue("g",{children:[D("title",{children:"Asset 1"}),D("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`}),D("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`})]})})}),D("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),D("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),D("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),ve("ul",{className:"mb-2 text-sm text-gray-500",children:[ve("li",{className:"mb-1",children:["Hotline :\xA0",D("a",{className:"text-gray-600",href:`tel:${pt.Business.Phome}`,children:pt.Business.Phome_Format})]}),ve("li",{className:"mb-1",children:["Email :\xA0",ve("a",{href:`mailto:${pt.Business.Email}`,className:"text-gray-600",children:[" ",pt.Business.Email]})]})]}),D("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:ve("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:[D("div",{className:"absolute left-1 top-1 ",children:D("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),D("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),D("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},cs=Up;import{jsx as So,jsxs as ds}from"react/jsx-runtime";var qp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return So("li",{className:"",children:So(ra,{asChild:!0,children:ds("a",{className:i(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:r,...s,children:[o&&So("div",{className:"w-7 h-7 shrink-0 mt-1",children:So("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),ds("div",{className:" ",children:[So("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&So("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},ps=qp;import{jsx as zt,jsxs as Yp}from"react/jsx-runtime";var Xp=({data:e,alignDropdown:o})=>zt(za,{alignDropdown:o,children:zt(Ha,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Yp(_a,{className:"relative",children:[zt(Oa,{children:t.title}),zt(Va,{children:zt("ul",{className:i("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(r=>zt(ps,{title:r.title,href:r.url,newTab:r.newTab,icon:t.dropDownCompact===!0?r.icon:"",children:t.dropDownCompact===!0?r.description:""},r.title))})})]},t.id):zt(_a,{className:"relative",children:zt(ra,{href:t.url,className:Ba(),...a,children:t.title})},t.id)})})}),fs=Xp;import{jsx as Ge,jsxs as eo}from"react/jsx-runtime";var gs=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:r,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:m,name:c,url:d}=t||{},[p,g]=Zp(!1);return eo("div",{className:i(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[Ge("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Ge("nav",{className:i("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0 "),style:{minHeight:"var(--header-height-mobase)"},children:eo("div",{className:"relative flex items-center ",children:[l&&eo("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[Ge("span",{className:"sr-only",children:"MoMo home page"}),Ge("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&eo("a",{href:d,title:c,className:i("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:[Ge("img",{src:m,className:"h-9 w-9",alt:"MoMo"}),Ge("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&Jp(c)})]}),Ge("div",{className:i("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!r&&!a&&" lg:ml-auto xl:ml-auto"),children:Ge(fs,{data:o,alignDropdown:s})}),eo("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&" lg:ml-0"),children:[r&&r,a&&eo("div",{className:" hidden sm:flex",children:[eo(Ie,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",Ge(Kp,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Ge(Ut,{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"})]}),Ge(cs,{data:o,className:"lg:hidden "})]})]})})]})};gs.displayName="HeaderNavigation";import{useState as ef}from"react";import{Fragment as of,jsx as u,jsxs as P}from"react/jsx-runtime";var us=({item:e})=>u("div",{className:"mt-3 flex w-full text-sm",children:P("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&&u("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:u("img",{src:e.icon,className:"absolute inset-0"})}),u("span",{className:"block ",children:e.title})]})}),tf=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=ef(null);return P(of,{children:[u("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:P("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:[P("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>u(us,{item:r},n))]}),P("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),u("div",{className:"flex flex-wrap",children:o?.lists?.map((r,n)=>u(us,{item:r},n))})]}),P("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[P("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),P("div",{className:"mt-2 text-sm md:mt-3",children:[u("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),u("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:$i.Address})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Hotline}`,children:de.Support.Hotline_Format}),P("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${de.Support.Email}`,children:de.Support.Email})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_1}`,children:de.Support.Phone_Ext_1_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_2}`,children:de.Support.Phone_Ext_2_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_3}`,children:de.Support.Phone_Ext_3_Format}),u("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),u("div",{className:"mt-3 flex",children:u("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:P("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[u("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:u("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:P("g",{children:[u("title",{children:"Asset 1"}),u("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
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`})]})})}),D("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),D("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),D("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),ue("ul",{className:"mb-2 text-sm text-gray-500",children:[ue("li",{className:"mb-1",children:["Hotline :\xA0",D("a",{className:"text-gray-600",href:`tel:${gt.Business.Phome}`,children:gt.Business.Phome_Format})]}),ue("li",{className:"mb-1",children:["Email :\xA0",ue("a",{href:`mailto:${gt.Business.Email}`,className:"text-gray-600",children:[" ",gt.Business.Email]})]})]}),D("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:ue("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:[D("div",{className:"absolute left-1 top-1 ",children:D("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),D("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),D("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},cs=qp;import{jsx as Do,jsxs as ds}from"react/jsx-runtime";var Xp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Do("li",{className:"",children:Do(ia,{asChild:!0,children:ds("a",{className:i(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:r,...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})}),ds("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})]})]})})})},ps=Xp;import{jsx as _t,jsxs as Zp}from"react/jsx-runtime";var Yp=({data:e,alignDropdown:o})=>_t(Ha,{alignDropdown:o,children:_t(_a,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Zp(Ba,{className:"relative",children:[_t(Va,{children:t.title}),_t(Wa,{children:_t("ul",{className:i("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(r=>_t(ps,{title:r.title,href:r.url,newTab:r.newTab,icon:t.dropDownCompact===!0?r.icon:"",children:t.dropDownCompact===!0?r.description:""},r.title))})})]},t.id):_t(Ba,{className:"relative",children:_t(ia,{href:t.url,className:Oa(),...a,children:t.title})},t.id)})})}),fs=Yp;import{jsx as Qe,jsxs as to}from"react/jsx-runtime";var gs=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:r,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:m,name:c,url:d}=t||{},[p,g]=Kp(!1);return to("div",{className:i(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[Qe("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Qe("nav",{className:i("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0 "),style:{minHeight:"var(--header-height-mobase)"},children:to("div",{className:"relative flex items-center ",children:[l&&to("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[Qe("span",{className:"sr-only",children:"MoMo home page"}),Qe("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&to("a",{href:d,title:c,className:i("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:[Qe("img",{src:m,className:"h-9 w-9",alt:"MoMo"}),Qe("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&ef(c)})]}),Qe("div",{className:i("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!r&&!a&&" lg:ml-auto xl:ml-auto"),children:Qe(fs,{data:o,alignDropdown:s})}),to("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&" lg:ml-0"),children:[r&&r,a&&to("div",{className:" hidden sm:flex",children:[to(Ie,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",Qe(Jp,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Qe(qt,{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"})]}),Qe(cs,{data:o,className:"lg:hidden "})]})]})})]})};gs.displayName="HeaderNavigation";import{useState as tf}from"react";import{Fragment as af,jsx as u,jsxs as P}from"react/jsx-runtime";var us=({item:e})=>u("div",{className:"mt-3 flex w-full text-sm",children:P("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&&u("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:u("img",{src:e.icon,className:"absolute inset-0"})}),u("span",{className:"block ",children:e.title})]})}),of=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=tf(null);return P(af,{children:[u("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:P("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:[P("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>u(us,{item:r},n))]}),P("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),u("div",{className:"flex flex-wrap",children:o?.lists?.map((r,n)=>u(us,{item:r},n))})]}),P("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[P("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),P("div",{className:"mt-2 text-sm md:mt-3",children:[u("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),u("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:$i.Address})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ce.Support.Hotline}`,children:ce.Support.Hotline_Format}),P("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${ce.Support.Email}`,children:ce.Support.Email})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ce.Support.Phone_Ext_1}`,children:ce.Support.Phone_Ext_1_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ce.Support.Phone_Ext_2}`,children:ce.Support.Phone_Ext_2_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ce.Support.Phone_Ext_3}`,children:ce.Support.Phone_Ext_3_Format}),u("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),u("div",{className:"mt-3 flex",children:u("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:P("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[u("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:u("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:P("g",{children:[u("title",{children:"Asset 1"}),u("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
125
125
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
126
126
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),u("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
127
127
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
128
- c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),u("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),P("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),P("div",{className:"mt-2 text-sm md:mt-3",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Business.Phome}`,children:de.Business.Phome_Format})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${de.Business.Email}`,children:de.Business.Email})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Website : "}),u("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"})]}),u("div",{className:"mt-3 flex",children:u("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:P("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[u("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:P("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"})]})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),u("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),P("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:[P("div",{className:"h-auto",children:[u("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"}),u("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Bo&&Bo.map((r,n)=>u("li",{className:"inline-block",children:u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:u("img",{src:r.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),P("div",{className:"h-auto",children:[u("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"}),P("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[u("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:u("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),u("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:vr&&vr.map((r,n)=>P("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${r.Image}) center center / contain no-repeat`},children:[u(Ie,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:r.Name}),u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),u(Ut,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:r.Link})]},n))}),u("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Bo&&Bo.map((r,n)=>u("li",{children:u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:u("img",{alt:r.Name,src:r.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),P("div",{className:"hidden h-auto md:block",children:[u("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),P("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[P("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),u("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:P("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[P("div",{className:" relative ",children:[u("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"}),P("div",{className:" md:pl-12",children:[u("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"}),u("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"}),P("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",u("strong",{children:"MoMo"})]}),P("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),P("div",{className:"text-sm text-white text-opacity-50",children:[P("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",u("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),P("ul",{className:" mt-0.5 ",children:[u("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),u("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),u("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),P("div",{className:" flex items-center justify-between md:hidden",children:[P("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),u("style",{children:`
128
+ c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),u("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),P("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),P("div",{className:"mt-2 text-sm md:mt-3",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ce.Business.Phome}`,children:ce.Business.Phome_Format})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${ce.Business.Email}`,children:ce.Business.Email})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Website : "}),u("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"})]}),u("div",{className:"mt-3 flex",children:u("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:P("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[u("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:P("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"})]})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),u("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),P("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:[P("div",{className:"h-auto",children:[u("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"}),u("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Oo&&Oo.map((r,n)=>u("li",{className:"inline-block",children:u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:u("img",{src:r.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),P("div",{className:"h-auto",children:[u("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"}),P("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[u("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:u("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),u("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:hr&&hr.map((r,n)=>P("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${r.Image}) center center / contain no-repeat`},children:[u(Ie,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:r.Name}),u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),u(qt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:r.Link})]},n))}),u("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Oo&&Oo.map((r,n)=>u("li",{children:u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:u("img",{alt:r.Name,src:r.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),P("div",{className:"hidden h-auto md:block",children:[u("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),P("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[P("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),u("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:P("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[P("div",{className:" relative ",children:[u("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"}),P("div",{className:" md:pl-12",children:[u("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"}),u("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"}),P("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",u("strong",{children:"MoMo"})]}),P("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),P("div",{className:"text-sm text-white text-opacity-50",children:[P("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",u("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),P("ul",{className:" mt-0.5 ",children:[u("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),u("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),u("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),P("div",{className:" flex items-center justify-between md:hidden",children:[P("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),u("style",{children:`
129
129
  footer .button-download {
130
130
  max-width: 150px;
131
131
  }
132
- `})]})},vs=tf;import{jsx as hs}from"react/jsx-runtime";var af=({className:e,primaryMenu:o,secondaryMenu:t})=>hs("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:hs(vs,{primaryMenu:o,secondaryMenu:t})});import*as to from"react";import{jsx as Do}from"react/jsx-runtime";var xs=to.forwardRef(({className:e,...o},t)=>Do("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));xs.displayName="Card";var bs=to.forwardRef(({className:e,...o},t)=>Do("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));bs.displayName="CardHeader";var ys=to.forwardRef(({className:e,...o},t)=>Do("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));ys.displayName="CardTitle";var ws=to.forwardRef(({className:e,...o},t)=>Do("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));ws.displayName="CardDescription";var Ns=to.forwardRef(({className:e,...o},t)=>Do("div",{ref:t,className:i("p-6 pt-0",e),...o}));Ns.displayName="CardContent";var Ps=to.forwardRef(({className:e,...o},t)=>Do("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));Ps.displayName="CardFooter";import*as ze from"react";import{Command as we}from"cmdk";import{XCircleIcon as rf,MagnifyingGlassIcon as nf}from"@heroicons/react/16/solid";import{jsx as Re,jsxs as lf}from"react/jsx-runtime";var ti=ze.forwardRef(({className:e,...o},t)=>Re(we,{ref:t,className:i("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ti.displayName=we.displayName;var sf=({children:e,...o})=>Re(Be,{...o,children:Re(Ae,{className:"overflow-hidden p-0 shadow-lg",children:Re(ti,{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})})}),Cs=ze.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=ze.useRef(null),[s,l]=ze.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return lf("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Re(nf,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Re(we.Input,{ref:r,className:i("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),Re(rf,{onClick:m,className:i("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Cs.displayName=we.Input.displayName;var Rs=ze.forwardRef(({className:e,...o},t)=>Re(we.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Rs.displayName=we.List.displayName;var Ts=ze.forwardRef((e,o)=>Re(we.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Ts.displayName=we.Empty.displayName;var ks=ze.forwardRef(({className:e,...o},t)=>Re(we.Group,{ref:t,className:i("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));ks.displayName=we.Group.displayName;var Ss=ze.forwardRef(({className:e,...o},t)=>Re(we.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Ss.displayName=we.Separator.displayName;var Ds=ze.forwardRef(({className:e,children:o,...t},a)=>Re(we.Item,{ref:a,className:i("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));Ds.displayName=we.Item.displayName;var Ms=({className:e,...o})=>Re("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Ms.displayName="CommandShortcut";import{ChevronDownIcon as mf}from"@heroicons/react/16/solid";import{jsx as Ga,jsxs as Is}from"react/jsx-runtime";var cf=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>Is("div",{className:"relative",children:[Is(Uo,{className:i("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||r,Ga(mf,{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})]}),df=({children:e,className:o,...t})=>Ga(Co,{className:i("border-none !p-0",o),...t,children:e}),pf=({open:e,onOpenChange:o,children:t,...a})=>Ga(Qo,{open:e,onOpenChange:o,...a,children:t});import{cva as Ls}from"class-variance-authority";import{forwardRef as ff}from"react";import{InformationCircleIcon as gf}from"@heroicons/react/24/outline";import{jsx as oi,jsxs as As}from"react/jsx-runtime";var uf=Ls("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ",{variants:{typeDiv:{neutral:"bg-gray-50 border-gray-300 ",error:"bg-red-50 border-red-300",success:"bg-green-50 border-green-300",warning:"bg-yellow-50 border-yellow-300",info:"bg-blue-50 border-blue-300"},disabled:{true:"text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300"}},defaultVariants:{typeDiv:"neutral"}}),vf=Ls("w-5 h-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),la=ff(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...m},c)=>As("div",{ref:c,className:i("",r,uf({typeDiv:e,disabled:n})),...m,children:[As("div",{className:"flex items-center space-x-2",children:[l||oi(gf,{className:i(vf({typeIcon:e,disabled:n})),width:20,height:20}),o&&oi("div",{children:o})]}),t&&oi(fe,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));import{forwardRef as hf,useEffect as xf,useRef as bf,useState as yf}from"react";import{MagnifyingGlassIcon as wf}from"@heroicons/react/20/solid";import{XCircleIcon as Nf}from"@heroicons/react/24/outline";import{jsx as Mo,jsxs as Fs}from"react/jsx-runtime";var Pf=hf(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:c="text",...d},p)=>{let[g,v]=yf(!1),R=bf(null),k=M=>{M&&!g&&v(!0),!M&&g&&v(!1)},L=M=>{k(M.target.value),r?.(M)},A=M=>{k(M.target.value),n?.(M)},F=()=>{let M=R.current?.querySelector("input");M&&(s?.(M.value),M.value="",M.focus(),v(!1))};return xf(()=>{k(m||l)},[l,m]),Fs("div",{className:i(o),ref:R,children:[Fs("div",{className:"relative flex items-center",children:[Mo("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:Mo(wf,{className:"w-4 h-4 text-gray-500"})}),Mo("input",{disabled:e,type:c,ref:p,className:i("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:L,onFocus:A,value:l,defaultValue:m,...d}),g&&Mo("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:F,children:Mo(Nf,{strokeWidth:2,width:20,height:20})})]}),Mo("style",{children:`
132
+ `})]})},vs=of;import{jsx as hs}from"react/jsx-runtime";var rf=({className:e,primaryMenu:o,secondaryMenu:t})=>hs("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:hs(vs,{primaryMenu:o,secondaryMenu:t})});import*as oo from"react";import{jsx as Mo}from"react/jsx-runtime";var xs=oo.forwardRef(({className:e,...o},t)=>Mo("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));xs.displayName="Card";var bs=oo.forwardRef(({className:e,...o},t)=>Mo("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));bs.displayName="CardHeader";var ys=oo.forwardRef(({className:e,...o},t)=>Mo("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));ys.displayName="CardTitle";var ws=oo.forwardRef(({className:e,...o},t)=>Mo("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));ws.displayName="CardDescription";var Ns=oo.forwardRef(({className:e,...o},t)=>Mo("div",{ref:t,className:i("p-6 pt-0",e),...o}));Ns.displayName="CardContent";var Ps=oo.forwardRef(({className:e,...o},t)=>Mo("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));Ps.displayName="CardFooter";import*as ze from"react";import{Command as ye}from"cmdk";import{XCircleIcon as nf,MagnifyingGlassIcon as sf}from"@heroicons/react/16/solid";import{jsx as Re,jsxs as mf}from"react/jsx-runtime";var oi=ze.forwardRef(({className:e,...o},t)=>Re(ye,{ref:t,className:i("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));oi.displayName=ye.displayName;var lf=({children:e,...o})=>Re(Ve,{...o,children:Re(Ae,{className:"overflow-hidden p-0 shadow-lg",children:Re(oi,{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})})}),Cs=ze.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=ze.useRef(null),[s,l]=ze.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return mf("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Re(sf,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Re(ye.Input,{ref:r,className:i("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),Re(nf,{onClick:m,className:i("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Cs.displayName=ye.Input.displayName;var Rs=ze.forwardRef(({className:e,...o},t)=>Re(ye.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Rs.displayName=ye.List.displayName;var Ts=ze.forwardRef((e,o)=>Re(ye.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Ts.displayName=ye.Empty.displayName;var ks=ze.forwardRef(({className:e,...o},t)=>Re(ye.Group,{ref:t,className:i("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));ks.displayName=ye.Group.displayName;var Ss=ze.forwardRef(({className:e,...o},t)=>Re(ye.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Ss.displayName=ye.Separator.displayName;var Ds=ze.forwardRef(({className:e,children:o,...t},a)=>Re(ye.Item,{ref:a,className:i("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));Ds.displayName=ye.Item.displayName;var Ms=({className:e,...o})=>Re("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Ms.displayName="CommandShortcut";import{ChevronDownIcon as cf}from"@heroicons/react/16/solid";import{jsx as ja,jsxs as Is}from"react/jsx-runtime";var df=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>Is("div",{className:"relative",children:[Is(qo,{className:i("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||r,ja(cf,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&ja("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),pf=({children:e,className:o,...t})=>ja(Ro,{className:i("border-none !p-0",o),...t,children:e}),ff=({open:e,onOpenChange:o,children:t,...a})=>ja(Uo,{open:e,onOpenChange:o,...a,children:t});import{cva as Ls}from"class-variance-authority";import{forwardRef as gf}from"react";import{InformationCircleIcon as uf}from"@heroicons/react/24/outline";import{jsx as ai,jsxs as As}from"react/jsx-runtime";var vf=Ls("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ",{variants:{typeDiv:{neutral:"bg-gray-50 border-gray-300 ",error:"bg-red-50 border-red-300",success:"bg-green-50 border-green-300",warning:"bg-yellow-50 border-yellow-300",info:"bg-blue-50 border-blue-300"},disabled:{true:"text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300"}},defaultVariants:{typeDiv:"neutral"}}),hf=Ls("w-5 h-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),ma=gf(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...m},c)=>As("div",{ref:c,className:i("",r,vf({typeDiv:e,disabled:n})),...m,children:[As("div",{className:"flex items-center space-x-2",children:[l||ai(uf,{className:i(hf({typeIcon:e,disabled:n})),width:20,height:20}),o&&ai("div",{children:o})]}),t&&ai(pe,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));import{forwardRef as xf,useEffect as bf,useRef as yf,useState as wf}from"react";import{MagnifyingGlassIcon as Nf}from"@heroicons/react/20/solid";import{XCircleIcon as Pf}from"@heroicons/react/24/outline";import{jsx as Io,jsxs as Fs}from"react/jsx-runtime";var Cf=xf(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:c="text",...d},p)=>{let[g,v]=wf(!1),R=yf(null),k=L=>{L&&!g&&v(!0),!L&&g&&v(!1)},I=L=>{k(L.target.value),r?.(L)},E=L=>{k(L.target.value),n?.(L)},O=()=>{let L=R.current?.querySelector("input");L&&(s?.(L.value),L.value="",L.focus(),v(!1))};return bf(()=>{k(m||l)},[l,m]),Fs("div",{className:i(o),ref:R,children:[Fs("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(Nf,{className:"w-4 h-4 text-gray-500"})}),Io("input",{disabled:e,type:c,ref:p,className:i("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:I,onFocus:E,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:O,children:Io(Pf,{strokeWidth:2,width:20,height:20})})]}),Io("style",{children:`
133
133
  .mobase-text-input-box:hover {
134
134
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
135
135
  }
136
136
  .mobase-text-input-box:focus {
137
137
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
138
138
  }
139
- `})]})});import*as Te from"@radix-ui/react-dialog";import zs,{useContext as Cf,useEffect as Es,useState as ai}from"react";import{X as Rf}from"lucide-react";import Tf from"lodash";import{jsx as ae,jsxs as kt}from"react/jsx-runtime";var Hs=zs.createContext(void 0);function _s(){let e=Cf(Hs);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var ri=({children:e,open:o,onOpenChange:t,className:a})=>ae(Hs.Provider,{value:{open:o,onOpenChange:t},children:ae(Te.Root,{open:o,onOpenChange:t,children:ae("div",{className:i("lightbox-gallery",a),children:e})})}),kf=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=_s(),m=()=>{n?.(),l&&l(!0)};return kt(Te.Trigger,{className:i("",a),onClick:m,children:[e,ae(E,{ratio:s,className:"rounded-lg cursor-pointer",children:ae("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},Bs=zs.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=_s(),n=()=>{r&&r(!1)};return kt(Te.Portal,{children:[ae(Te.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),kt(Te.Content,{ref:a,className:i("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,kt(Te.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:[ae(Rf,{className:"h-4 w-4 mt-0.5"}),ae("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Bs.displayName=Te.Content.displayName;var ii=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=ai(""),[l,m]=ai(),[c,d]=ai(0);Es(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=g=>{let v=Tf.filter(e,(k,L)=>L===(g>0?g-1:g)),R=v.length>0?v[0]?.titleImage:"";s(R)};return Es(()=>{p(c)},[c]),kt(Bs,{className:"flex py-0",children:[kt("div",{className:" flex-1 relative",children:[kt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),kt(ge,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ae(ue,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,v)=>ae(se,{className:"pl-6 md:pl-4",children:kt("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[ae("div",{className:"flex-1 relative",children:ae("img",{src:g.url,alt:"",className:"absolute h-full w-full object-contain"})}),ae("div",{className:"flex-0",children:ae("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:ae("div",{className:"line-clamp-3",children:n})})})]})},v))}),ae(yo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ae(wo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ae("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};import*as Ht from"react";import{CheckIcon as Sf}from"@heroicons/react/16/solid";import*as ma from"@radix-ui/react-checkbox";import*as _t from"@radix-ui/react-radio-group";import{Circle as Df}from"lucide-react";import{jsx as it,jsxs as Ws}from"react/jsx-runtime";var Os=Ht.createContext({hideIndicator:!1});function Mf(){let e=Ht.useContext(Os);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var ja=Ht.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>it(Os.Provider,{value:{hideIndicator:o},children:it(_t.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));ja.displayName=_t.Root.displayName;var Qa=Ht.forwardRef(({className:e,children:o,...t},a)=>{let r=Mf(),{hideIndicator:n}=r??{};return Ws(_t.Item,{ref:a,className:i("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:[it("div",{className:"min-w-0 flex-1",children:o}),!n&&it("div",{className:i("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:it(_t.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:it(Df,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Qa.displayName=_t.Item.displayName;var Vs=Ht.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>Ws(ma.Root,{ref:r,className:i("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:[it("div",{className:"min-w-0 flex-1",children:o}),!t&&it("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:it(ma.Indicator,{className:i("flex items-center justify-center text-current"),children:it(Sf,{className:"h-4 w-4"})})})]}));Vs.displayName=ma.Root.displayName;import{cva as If}from"class-variance-authority";import{jsx as Lf}from"react/jsx-runtime";var $s=If("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 Af({className:e,variant:o,...t}){return Lf("div",{className:i($s({variant:o}),e),...t})}import*as js from"react";import*as ca from"@radix-ui/react-progress";import{cva as Qs}from"class-variance-authority";import{jsx as Gs}from"react/jsx-runtime";var Ff=Qs("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"}}),Ef=Qs("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"}}),Us=js.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>Gs(ca.Root,{ref:s,className:i("",Ef({size:a}),e),...n,children:Gs(ca.Indicator,{className:i("",Ff({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Us.displayName=ca.Root.displayName;import{jsx as zf}from"react/jsx-runtime";function Ua({className:e,...o}){return zf("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Hf,jsx as oo,jsxs as qs}from"react/jsx-runtime";function ni({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let r={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 oo("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return qs("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>oo("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),oo("style",{children:`
139
+ `})]})});import*as Te from"@radix-ui/react-dialog";import zs,{useContext as Rf,useEffect as Es,useState as ri}from"react";import{X as Tf}from"lucide-react";import kf from"lodash";import{jsx as re,jsxs as Dt}from"react/jsx-runtime";var Hs=zs.createContext(void 0);function _s(){let e=Rf(Hs);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var ii=({children:e,open:o,onOpenChange:t,className:a})=>re(Hs.Provider,{value:{open:o,onOpenChange:t},children:re(Te.Root,{open:o,onOpenChange:t,children:re("div",{className:i("lightbox-gallery",a),children:e})})}),Sf=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=_s(),m=()=>{n?.(),l&&l(!0)};return Dt(Te.Trigger,{className:i("",a),onClick:m,children:[e,re(F,{ratio:s,className:"rounded-lg cursor-pointer",children:re("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},Bs=zs.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=_s(),n=()=>{r&&r(!1)};return Dt(Te.Portal,{children:[re(Te.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),Dt(Te.Content,{ref:a,className:i("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(Te.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(Tf,{className:"h-4 w-4 mt-0.5"}),re("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Bs.displayName=Te.Content.displayName;var ni=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=ri(""),[l,m]=ri(),[c,d]=ri(0);Es(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=g=>{let v=kf.filter(e,(k,I)=>I===(g>0?g-1:g)),R=v.length>0?v[0]?.titleImage:"";s(R)};return Es(()=>{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(fe,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[re(ge,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,v)=>re(se,{className:"pl-6 md:pl-4",children:Dt("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})})})]})},v))}),re(wo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),re(No,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&re("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};import*as Bt from"react";import{CheckIcon as Df}from"@heroicons/react/16/solid";import*as ca from"@radix-ui/react-checkbox";import*as Ot from"@radix-ui/react-radio-group";import{Circle as Mf}from"lucide-react";import{jsx as st,jsxs as Ws}from"react/jsx-runtime";var Os=Bt.createContext({hideIndicator:!1});function If(){let e=Bt.useContext(Os);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Qa=Bt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>st(Os.Provider,{value:{hideIndicator:o},children:st(Ot.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Qa.displayName=Ot.Root.displayName;var Ua=Bt.forwardRef(({className:e,children:o,...t},a)=>{let r=If(),{hideIndicator:n}=r??{};return Ws(Ot.Item,{ref:a,className:i("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:[st("div",{className:"min-w-0 flex-1",children:o}),!n&&st("div",{className:i("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:st(Ot.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:st(Mf,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Ua.displayName=Ot.Item.displayName;var Vs=Bt.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>Ws(ca.Root,{ref:r,className:i("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:[st("div",{className:"min-w-0 flex-1",children:o}),!t&&st("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:st(ca.Indicator,{className:i("flex items-center justify-center text-current"),children:st(Df,{className:"h-4 w-4"})})})]}));Vs.displayName=ca.Root.displayName;import{cva as Af}from"class-variance-authority";import{jsx as Ff}from"react/jsx-runtime";var $s=Af("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 Ff("div",{className:i($s({variant:o}),e),...t})}import*as js from"react";import*as da from"@radix-ui/react-progress";import{cva as Qs}from"class-variance-authority";import{jsx as Gs}from"react/jsx-runtime";var Ef=Qs("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"}}),zf=Qs("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"}}),Us=js.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>Gs(da.Root,{ref:s,className:i("",zf({size:a}),e),...n,children:Gs(da.Indicator,{className:i("",Ef({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Us.displayName=da.Root.displayName;import{jsx as Hf}from"react/jsx-runtime";function qa({className:e,...o}){return Hf("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as _f,jsx as ao,jsxs as qs}from"react/jsx-runtime";function si({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let r={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 qs("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>ao("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),ao("style",{children:`
140
140
  .spinner_dots span {
141
141
  animation-name: spinner-dots;
142
142
  animation-duration: 1.4s;
@@ -163,7 +163,7 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
163
163
  opacity: .2;
164
164
  }
165
165
  }
166
- `})]});case"default":default:return qs(Hf,{children:[oo("div",{className:i("spinner_wrapper relative size-5 overflow-hidden",r[e],t),children:oo("div",{className:i("spinner relative left-1/2 top-1/2 size-5 ",r[e],t),children:[...Array(12)].map((l,m)=>oo("div",{className:i(`spinner_bar child-${m+1}`,o)},m))})}),oo("style",{children:`
166
+ `})]});case"default":default:return qs(_f,{children:[ao("div",{className:i("spinner_wrapper relative size-5 overflow-hidden",r[e],t),children:ao("div",{className:i("spinner relative left-1/2 top-1/2 size-5 ",r[e],t),children:[...Array(12)].map((l,m)=>ao("div",{className:i(`spinner_bar child-${m+1}`,o)},m))})}),ao("style",{children:`
167
167
  .spinner_bar {
168
168
  animation: spinner_spin 1.2s linear infinite;
169
169
  border-radius: 20px;
@@ -243,7 +243,7 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
243
243
  opacity: 0.15;
244
244
  }
245
245
  }
246
- `})]})}})()})}import*as Xs from"react";import*as nt from"@radix-ui/react-slider";import{jsx as Bt,jsxs as _f}from"react/jsx-runtime";var Ys=Xs.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>_f(nt.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Bt(nt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Bt(nt.Range,{className:"absolute h-full bg-pink-500"})}),Bt(nt.Thumb,{className:"group relative",children:Bt("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&&Bt("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})})}),Bt(nt.Thumb,{className:"group relative",children:Bt("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&&Bt("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})})})]}));Ys.displayName=nt.Root.displayName;import{forwardRef as Jf}from"react";import{Fragment as Wf,jsx as He,jsxs as qa}from"react/jsx-runtime";var Bf=({author:e=""})=>He("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Of=({author:e,avatar:o})=>He("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?He("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):He(Bf,{author:e})});function Vf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return He(Wf,{children:qa("div",{className:"flex relative items-center space-x-3",children:[He(Of,{avatar:e,author:o}),qa("div",{className:"flex flex-col",children:[o&&He("div",{className:"font-semibold text-gray-900 text-sm",children:o}),qa("div",{className:"flex items-center space-x-2 text-xs",children:[t&&He("div",{className:"text-gray-400",children:t}),a&&qa("div",{className:"flex items-center space-x-2",children:[He("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),He("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&He("div",{className:"absolute right-1 top-0",children:He("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Zs=Vf;import{useState as ol}from"react";import{StarIcon as $f}from"@heroicons/react/20/solid";import{jsx as Ks,jsxs as Js}from"react/jsx-runtime";var Gf={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!"},jf={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 Qf({point:e,max:o,className:t}){let a=o>5?Gf[e||10]:jf[e||5];return Js("div",{className:i("flex items-center space-x-1",t),children:[Ks($f,{className:"w-5 h-5 text-yellow-500"}),Ks("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Js("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var el=Qf;import{useState as Uf}from"react";import tl from"html-react-parser";import{jsx as qf,jsxs as Xf}from"react/jsx-runtime";var si=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,l]=Uf(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return Xf("div",{className:i(n),children:[s?tl(c(e,o)):tl(e),e.length>o&&qf("span",{onClick:m,className:i("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",r),children:s?t:a})]})};import{jsx as ao,jsxs as al}from"react/jsx-runtime";function Yf({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=ol(0),[m,c]=ol(!1),d=p=>{c(!0),l(p)};return al("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&ao(el,{className:"mb-0.5",point:r.point,max:r.max}),e&&ao(si,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&ao("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>ao("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&&al(ri,{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)=>ao(E,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:ao("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),ao(ii,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var rl=Yf;import{jsx as Kf}from"react/jsx-runtime";function Zf({actions:e=[]}){return Kf("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var il=Zf;import{jsx as Xa,jsxs as tg}from"react/jsx-runtime";var eg=Jf(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:p,isOutStanding:g,limitContent:v=260},R)=>tg("div",{ref:R,className:i("",c?"ml-4 py-4":"py-5"),children:[Xa(Zs,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),Xa(rl,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&Xa(il,{actions:l.filter(Boolean)}),d&&Xa("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 Ot from"react";import{cva as og}from"class-variance-authority";import{CheckIcon as ag}from"@heroicons/react/16/solid";import{XIcon as rg}from"lucide-react";import{jsx as Ne,jsxs as Ya}from"react/jsx-runtime";var ig=og("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"}}),nl=Ot.createContext("default");function ng(){let e=Ot.useContext(nl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var sg=Ot.memo(({type:e,icon:o,stepNumber:t,size:a,isError:r,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return r?Ne(rg,{className:s}):Ya("div",{children:[e==="iconStep"&&Ne("div",{className:s,children:o}),e==="numberStep"&&Ne("div",{children:t}),e==="default"&&(n==="completed"?Ne(ag,{className:s}):Ne("div",{children:t}))]})}),lg=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=Ot.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return Ne("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},mg=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:l,fristStep:m,icon:c,isError:d,onValueChangeStep:p,...g})=>{let v=ng();return Ya("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[Ya("div",{className:"flex w-full items-center justify-center gap-2",children:[Ne("div",{className:i("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")}),Ne("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",ig({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...g,children:Ne(sg,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),Ne("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Ya("div",{className:i("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&Ne("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&Ne("div",{className:"text-xs text-gray-500 ",children:s})]})]})},cg=({children:e,className:o,type:t="numberStep",...a})=>Ne(nl.Provider,{value:t,children:Ne("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as Pe from"react";import{Slot as gg}from"@radix-ui/react-slot";import{Controller as ug,FormProvider as vg,useFormContext as hg}from"react-hook-form";import*as sl from"react";import*as li from"@radix-ui/react-label";import{cva as dg}from"class-variance-authority";import{jsx as fg}from"react/jsx-runtime";var pg=dg("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Za=sl.forwardRef(({className:e,...o},t)=>fg(li.Root,{ref:t,className:i(pg(),e),...o}));Za.displayName=li.Root.displayName;import{jsx as Vt}from"react/jsx-runtime";var mi=vg,ll=Pe.createContext({}),ci=({...e})=>Vt(ll.Provider,{value:{name:e.name},children:Vt(ug,{...e})}),da=()=>{let e=Pe.useContext(ll),o=Pe.useContext(ml),{getFieldState:t,formState:a}=hg(),r=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...r}},ml=Pe.createContext({}),Ka=Pe.forwardRef(({className:e,...o},t)=>{let a=Pe.useId();return Vt(ml.Provider,{value:{id:a},children:Vt("div",{ref:t,className:i("space-y-2",e),...o})})});Ka.displayName="FormItem";var Ja=Pe.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=da();return Vt(Za,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});Ja.displayName="FormLabel";var er=Pe.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=da();return Vt(gg,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});er.displayName="FormControl";var tr=Pe.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=da();return Vt("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});tr.displayName="FormDescription";var or=Pe.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=da(),s=r?String(r?.message):o;return s?Vt("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});or.displayName="FormMessage";import*as St from"react";import*as N from"@radix-ui/react-dropdown-menu";import{ChevronRight as xg,Check as bg}from"lucide-react";import{jsx as he,jsxs as pa}from"react/jsx-runtime";var yg=N.Root,wg=N.Trigger,Ng=N.Group,Pg=N.Portal,Cg=N.Sub,Rg=N.RadioGroup,cl=St.forwardRef(({className:e,inset:o,children:t,...a},r)=>pa(N.SubTrigger,{ref:r,className:i("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,he(xg,{className:"ml-auto"})]}));cl.displayName=N.SubTrigger.displayName;var dl=St.forwardRef(({className:e,...o},t)=>he(N.SubContent,{ref:t,className:i("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}));dl.displayName=N.SubContent.displayName;var pl=St.forwardRef(({className:e,sideOffset:o=4,...t},a)=>he(N.Portal,{children:he(N.Content,{ref:a,sideOffset:o,className:i("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})}));pl.displayName=N.Content.displayName;var fl=St.forwardRef(({className:e,inset:o,...t},a)=>he(N.Item,{ref:a,className:i("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}));fl.displayName=N.Item.displayName;var gl=St.forwardRef(({className:e,children:o,checked:t,...a},r)=>pa(N.CheckboxItem,{ref:r,className:i("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&&he("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),he(N.ItemIndicator,{children:he("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:he(bg,{size:16,strokeWidth:3})})})]}),o]}));gl.displayName=N.CheckboxItem.displayName;var ul=St.forwardRef(({className:e,children:o,...t},a)=>pa(N.RadioItem,{ref:a,className:i("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:[he("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),he(N.ItemIndicator,{children:he("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));ul.displayName=N.RadioItem.displayName;var vl=St.forwardRef(({className:e,inset:o,...t},a)=>he(N.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));vl.displayName=N.Label.displayName;var hl=St.forwardRef(({className:e,...o},t)=>he(N.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));hl.displayName=N.Separator.displayName;var xl=({className:e,...o})=>he("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});xl.displayName="DropdownMenuShortcut";import ar from"html-react-parser";import{Fragment as di,jsx as Q,jsxs as ro}from"react/jsx-runtime";var bl=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>ro(di,{children:[e&&Q(h,{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&&Q("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>Q("div",{className:"basis-full px-3.5 md:basis-1/3",children:ro("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:[Q("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:r+1}),ro("div",{className:"mt-6 w-full",children:[Q("div",{className:"w-full text-xl font-semibold",children:ar(a.title)}),a?.description&&Q("div",{className:"mt-2 text-base text-gray-600",children:ar(a.description)})]})]})},r))}),t&&Q(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Tg=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>ro(di,{children:[e&&Q(h,{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&&Q("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>ro("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[ro("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[Q("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:r+1}),a?.image&&Q("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:Q(E,{ratio:1,children:Q("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),ro("div",{className:"mt-6 w-full",children:[Q("div",{className:"w-full text-xl font-semibold",children:ar(a.title)}),a?.description&&Q("div",{className:"mt-2 text-base text-gray-600",children:ar(a.description)})]})]},r))}),t&&Q(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),kg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return Q(bl,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return Q(Tg,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return Q(bl,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Sg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>Q(di,{children:kg({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Dg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>Q(H,{className:t,idSection:a,background:o,children:Q(Sg,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as Mg}from"class-variance-authority";import yl from"html-react-parser";import{CheckIcon as wl}from"lucide-react";import{Fragment as pi,jsx as xe,jsxs as Nl}from"react/jsx-runtime";var Ig=Mg("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}}),Ag=({template:e,name:o,image:t,isFeatures:a})=>xe(pi,{children:(()=>{switch(e){case 1:case 2:return xe(pi,{children:Nl("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?xe("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:xe("img",{src:t,alt:"",className:"max-w-full"})}):xe("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:xe(wl,{className:"h-4 w-4 text-pink-500"})}),o&&xe("div",{className:"ml-2 ",children:yl(o)})]})});case 3:return Nl("li",{className:"flex h-full space-x-4",children:[t?xe("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:xe("img",{src:t,alt:"",className:"max-w-full"})}):xe("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:xe(wl,{className:"h-4 w-4 text-pink-500"})}),o&&xe("div",{className:"my-auto ml-2 md:my-0",children:yl(o)})]});default:return null}})()}),rr=({dataFeatures:e,template:o=1})=>xe(pi,{children:(e?.length??0)>0&&xe("ul",{className:i("",Ig({template:o})),children:e?.map((t,a)=>xe(Ag,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as Lg}from"lucide-react";import{jsx as Z,jsxs as fa}from"react/jsx-runtime";var Pl=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Fg=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>fa(fo,{children:[Z(qe,{greaterThan:"sm",children:fa(E,{className:i(""),ratio:Pl(o),children:[Z("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&fa(Be,{children:[Z(Wo,{onClick:r,children:Z("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:Z("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:[Z("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),Z("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"})]})})})}),Z(Ae,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:fa(Ye,{className:"relative bg-transparent p-4 text-center",children:[Z("div",{className:"aspect-[16/9] w-full p-0",children:Z("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"})}),Z(br,{asChild:!0,children:Z(ie,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:Z(Lg,{className:"h-6 w-6"})})})]})})]})]})}),a&&Z(qe,{lessThan:"md",children:Z("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:Z("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"})})})]}),ir=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>Z("div",{className:a,children:n?Z(Fg,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):Z(E,{ratio:Pl(t),children:Z("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});import Eg from"html-react-parser";import{Fragment as Hg,jsx as nr,jsxs as fi}from"react/jsx-runtime";var zg=({value:e,suffix:o,unit:t,description:a,idx:r})=>fi("div",{className:i(""),children:[e&&fi("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&fi("span",{children:[o," ",t]})]}),a&&nr("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:Eg(a)})]}),sr=({dataStats:e})=>nr(Hg,{children:(e?.length??0)>0&&nr("ul",{className:i("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>nr(zg,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Cl,jsx as K,jsxs as ga}from"react/jsx-runtime";var gi=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ga("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[ga("div",{className:"col-span-1 ",children:[K(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),K(rr,{dataFeatures:t,template:a}),o&&K(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),K(sr,{dataStats:r})]}),K("div",{className:"col-span-1 md:pl-10",children:s||K(ir,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Rl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ga("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[K("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||K(ir,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),ga("div",{className:"order-1 col-span-1 md:order-2",children:[K(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),K(rr,{dataFeatures:t,template:a}),o&&K("div",{className:"flex w-full items-center justify-center md:justify-start",children:K(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),K(sr,{dataStats:r})]})]}),Tl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ga(Cl,{children:[K(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),o&&K(x,{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"}),K(rr,{dataFeatures:t,template:a}),K("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:K(sr,{dataStats:r})}),s||K(Cl,{children:n?.src&&K(ir,{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 Wg,jsx as io}from"react/jsx-runtime";var _g=`var(
246
+ `})]})}})()})}import*as Xs from"react";import*as lt from"@radix-ui/react-slider";import{jsx as Vt,jsxs as Bf}from"react/jsx-runtime";var Ys=Xs.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>Bf(lt.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Vt(lt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Vt(lt.Range,{className:"absolute h-full bg-pink-500"})}),Vt(lt.Thumb,{className:"group relative",children:Vt("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&&Vt("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})})}),Vt(lt.Thumb,{className:"group relative",children:Vt("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&&Vt("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})})})]}));Ys.displayName=lt.Root.displayName;import{forwardRef as eg}from"react";import{Fragment as $f,jsx as He,jsxs as Xa}from"react/jsx-runtime";var Of=({author:e=""})=>He("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Vf=({author:e,avatar:o})=>He("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?He("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):He(Of,{author:e})});function Wf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return He($f,{children:Xa("div",{className:"flex relative items-center space-x-3",children:[He(Vf,{avatar:e,author:o}),Xa("div",{className:"flex flex-col",children:[o&&He("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Xa("div",{className:"flex items-center space-x-2 text-xs",children:[t&&He("div",{className:"text-gray-400",children:t}),a&&Xa("div",{className:"flex items-center space-x-2",children:[He("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),He("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&He("div",{className:"absolute right-1 top-0",children:He("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Zs=Wf;import{useState as ol}from"react";import{StarIcon as Gf}from"@heroicons/react/20/solid";import{jsx as Ks,jsxs as Js}from"react/jsx-runtime";var jf={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!"},Qf={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 Uf({point:e,max:o,className:t}){let a=o>5?jf[e||10]:Qf[e||5];return Js("div",{className:i("flex items-center space-x-1",t),children:[Ks(Gf,{className:"w-5 h-5 text-yellow-500"}),Ks("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Js("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var el=Uf;import{useState as qf}from"react";import tl from"html-react-parser";import{jsx as Xf,jsxs as Yf}from"react/jsx-runtime";var li=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,l]=qf(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return Yf("div",{className:i(n),children:[s?tl(c(e,o)):tl(e),e.length>o&&Xf("span",{onClick:m,className:i("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",r),children:s?t:a})]})};import{jsx as ro,jsxs as al}from"react/jsx-runtime";function Zf({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=ol(0),[m,c]=ol(!1),d=p=>{c(!0),l(p)};return al("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&ro(el,{className:"mb-0.5",point:r.point,max:r.max}),e&&ro(li,{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&&al(ii,{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(F,{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(ni,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var rl=Zf;import{jsx as Jf}from"react/jsx-runtime";function Kf({actions:e=[]}){return Jf("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var il=Kf;import{jsx as Ya,jsxs as og}from"react/jsx-runtime";var tg=eg(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:p,isOutStanding:g,limitContent:v=260},R)=>og("div",{ref:R,className:i("",c?"ml-4 py-4":"py-5"),children:[Ya(Zs,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),Ya(rl,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&Ya(il,{actions:l.filter(Boolean)}),d&&Ya("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 ag}from"class-variance-authority";import{CheckIcon as rg}from"@heroicons/react/16/solid";import{XIcon as ig}from"lucide-react";import{jsx as we,jsxs as Za}from"react/jsx-runtime";var ng=ag("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"}}),nl=Wt.createContext("default");function sg(){let e=Wt.useContext(nl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var lg=Wt.memo(({type:e,icon:o,stepNumber:t,size:a,isError:r,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return r?we(ig,{className:s}):Za("div",{children:[e==="iconStep"&&we("div",{className:s,children:o}),e==="numberStep"&&we("div",{children:t}),e==="default"&&(n==="completed"?we(rg,{className:s}):we("div",{children:t}))]})}),mg=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=Wt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return we("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},cg=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:l,fristStep:m,icon:c,isError:d,onValueChangeStep:p,...g})=>{let v=sg();return Za("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[Za("div",{className:"flex w-full items-center justify-center gap-2",children:[we("div",{className:i("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")}),we("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",ng({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...g,children:we(lg,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),we("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Za("div",{className:i("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&we("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&we("div",{className:"text-xs text-gray-500 ",children:s})]})]})},dg=({children:e,className:o,type:t="numberStep",...a})=>we(nl.Provider,{value:t,children:we("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as Ne from"react";import{Slot as ug}from"@radix-ui/react-slot";import{Controller as vg,FormProvider as hg,useFormContext as xg}from"react-hook-form";import*as sl from"react";import*as mi from"@radix-ui/react-label";import{cva as pg}from"class-variance-authority";import{jsx as gg}from"react/jsx-runtime";var fg=pg("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ka=sl.forwardRef(({className:e,...o},t)=>gg(mi.Root,{ref:t,className:i(fg(),e),...o}));Ka.displayName=mi.Root.displayName;import{jsx as $t}from"react/jsx-runtime";var ci=hg,ll=Ne.createContext({}),di=({...e})=>$t(ll.Provider,{value:{name:e.name},children:$t(vg,{...e})}),pa=()=>{let e=Ne.useContext(ll),o=Ne.useContext(ml),{getFieldState:t,formState:a}=xg(),r=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...r}},ml=Ne.createContext({}),Ja=Ne.forwardRef(({className:e,...o},t)=>{let a=Ne.useId();return $t(ml.Provider,{value:{id:a},children:$t("div",{ref:t,className:i("space-y-2",e),...o})})});Ja.displayName="FormItem";var er=Ne.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=pa();return $t(Ka,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});er.displayName="FormLabel";var tr=Ne.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=pa();return $t(ug,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});tr.displayName="FormControl";var or=Ne.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=pa();return $t("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});or.displayName="FormDescription";var ar=Ne.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=pa(),s=r?String(r?.message):o;return s?$t("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});ar.displayName="FormMessage";import*as Mt from"react";import*as N from"@radix-ui/react-dropdown-menu";import{ChevronRight as bg,Check as yg}from"lucide-react";import{jsx as ve,jsxs as fa}from"react/jsx-runtime";var wg=N.Root,Ng=N.Trigger,Pg=N.Group,Cg=N.Portal,Rg=N.Sub,Tg=N.RadioGroup,cl=Mt.forwardRef(({className:e,inset:o,children:t,...a},r)=>fa(N.SubTrigger,{ref:r,className:i("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,ve(bg,{className:"ml-auto"})]}));cl.displayName=N.SubTrigger.displayName;var dl=Mt.forwardRef(({className:e,...o},t)=>ve(N.SubContent,{ref:t,className:i("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}));dl.displayName=N.SubContent.displayName;var pl=Mt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>ve(N.Portal,{children:ve(N.Content,{ref:a,sideOffset:o,className:i("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})}));pl.displayName=N.Content.displayName;var fl=Mt.forwardRef(({className:e,inset:o,...t},a)=>ve(N.Item,{ref:a,className:i("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}));fl.displayName=N.Item.displayName;var gl=Mt.forwardRef(({className:e,children:o,checked:t,...a},r)=>fa(N.CheckboxItem,{ref:r,className:i("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:[fa("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&ve("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),ve(N.ItemIndicator,{children:ve("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:ve(yg,{size:16,strokeWidth:3})})})]}),o]}));gl.displayName=N.CheckboxItem.displayName;var ul=Mt.forwardRef(({className:e,children:o,...t},a)=>fa(N.RadioItem,{ref:a,className:i("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:[fa("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[ve("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),ve(N.ItemIndicator,{children:ve("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));ul.displayName=N.RadioItem.displayName;var vl=Mt.forwardRef(({className:e,inset:o,...t},a)=>ve(N.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));vl.displayName=N.Label.displayName;var hl=Mt.forwardRef(({className:e,...o},t)=>ve(N.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));hl.displayName=N.Separator.displayName;var xl=({className:e,...o})=>ve("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});xl.displayName="DropdownMenuShortcut";import rr from"html-react-parser";import{Fragment as pi,jsx as U,jsxs as io}from"react/jsx-runtime";var bl=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>io(pi,{children:[e&&U(h,{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&&U("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>U("div",{className:"basis-full px-3.5 md:basis-1/3",children:io("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:[U("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:r+1}),io("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:rr(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:rr(a.description)})]})]})},r))}),t&&U(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),kg=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>io(pi,{children:[e&&U(h,{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&&U("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>io("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[io("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[U("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:r+1}),a?.image&&U("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:U(F,{ratio:1,children:U("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),io("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:rr(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:rr(a.description)})]})]},r))}),t&&U(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Sg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return U(bl,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return U(kg,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return U(bl,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Dg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>U(pi,{children:Sg({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Mg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>U(_,{className:t,idSection:a,background:o,children:U(Dg,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as Ig}from"class-variance-authority";import yl from"html-react-parser";import{CheckIcon as wl}from"lucide-react";import{Fragment as fi,jsx as he,jsxs as Nl}from"react/jsx-runtime";var Ag=Ig("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}}),Lg=({template:e,name:o,image:t,isFeatures:a})=>he(fi,{children:(()=>{switch(e){case 1:case 2:return he(fi,{children:Nl("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?he("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:he("img",{src:t,alt:"",className:"max-w-full"})}):he("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:he(wl,{className:"h-4 w-4 text-pink-500"})}),o&&he("div",{className:"ml-2 ",children:yl(o)})]})});case 3:return Nl("li",{className:"flex h-full space-x-4",children:[t?he("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:he("img",{src:t,alt:"",className:"max-w-full"})}):he("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:he(wl,{className:"h-4 w-4 text-pink-500"})}),o&&he("div",{className:"my-auto ml-2 md:my-0",children:yl(o)})]});default:return null}})()}),ir=({dataFeatures:e,template:o=1})=>he(fi,{children:(e?.length??0)>0&&he("ul",{className:i("",Ag({template:o})),children:e?.map((t,a)=>he(Lg,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as Fg}from"lucide-react";import{jsx as K,jsxs as ga}from"react/jsx-runtime";var Pl=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Eg=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>ga(go,{children:[K(Ye,{greaterThan:"sm",children:ga(F,{className:i(""),ratio:Pl(o),children:[K("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&ga(Ve,{children:[K($o,{onClick:r,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:ga("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(Ae,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:ga(Ke,{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(yr,{asChild:!0,children:K(ie,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:K(Fg,{className:"h-6 w-6"})})})]})})]})]})}),a&&K(Ye,{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"})})})]}),nr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>K("div",{className:a,children:n?K(Eg,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):K(F,{ratio:Pl(t),children:K("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});import zg from"html-react-parser";import{Fragment as _g,jsx as sr,jsxs as gi}from"react/jsx-runtime";var Hg=({value:e,suffix:o,unit:t,description:a,idx:r})=>gi("div",{className:i(""),children:[e&&gi("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&gi("span",{children:[o," ",t]})]}),a&&sr("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:zg(a)})]}),lr=({dataStats:e})=>sr(_g,{children:(e?.length??0)>0&&sr("ul",{className:i("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>sr(Hg,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Cl,jsx as J,jsxs as ua}from"react/jsx-runtime";var ui=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ua("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[ua("div",{className:"col-span-1 ",children:[J(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),J(ir,{dataFeatures:t,template:a}),o&&J(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),J(lr,{dataStats:r})]}),J("div",{className:"col-span-1 md:pl-10",children:s||J(nr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Rl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ua("div",{className:i("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(nr,{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:[J(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),J(ir,{dataFeatures:t,template:a}),o&&J("div",{className:"flex w-full items-center justify-center md:justify-start",children:J(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),J(lr,{dataStats:r})]})]}),Tl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ua(Cl,{children:[J(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),o&&J(x,{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(ir,{dataFeatures:t,template:a}),J("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:J(lr,{dataStats:r})}),s||J(Cl,{children:n?.src&&J(nr,{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 $g,jsx as no}from"react/jsx-runtime";var Bg=`var(
247
247
  --gradient-pink-1,
248
248
  linear-gradient(
249
249
  38deg,
@@ -265,7 +265,7 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
265
265
  rgba(255, 255, 255, 0) 80%
266
266
  ),
267
267
  #fff
268
- )`,Bg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return io(gi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return io(Rl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return io(Tl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return io(gi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},Og=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>io(Wg,{children:Bg({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),Vg=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>io(H,{className:i(l),background:m??_g,idSection:o,children:io(Og,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as $g}from"react";import{Fragment as Gg,jsx as Io,jsxs as jg}from"react/jsx-runtime";var lr=$g(({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:r})=>{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 jg(Gg,{children:[e&&Io(h,{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&&Io("div",{className:i("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],r?"-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 Io("div",{className:i("flex max-h-28 w-auto items-center justify-center md:max-w-36 md:basis-auto md:px-0",r?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-3"),children:Io(m,{...c,className:"group flex h-full w-full items-center justify-center",children:Io("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:i("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105")})})},l)})}),t&&Io(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as Qg}from"react";import{Fragment as Ug,jsx as no,jsxs as qg}from"react/jsx-runtime";var ui=Qg(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>qg(Ug,{children:[e&&no(h,{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:i("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((r,n)=>{let s=r?.url?"a":"div",l=r?.url?{href:r.url,title:r.name,target:r.newTab?"_blank":"_self"}:{};return no("div",{className:i("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:r?.logo,loading:"lazy",alt:r?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain"})})})},n)})}),t&&no(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as Xg}from"react";import{Fragment as Yg,jsx as je,jsxs as hi}from"react/jsx-runtime";var vi=(e,o)=>{if(!e)return je("div",{className:i("h-full w-full",o)});let t=e.url?"a":"div";return je("div",{className:i("h-full w-full",o),children:je(t,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:i("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:je("div",{className:"flex h-full w-full items-center justify-center",children:je("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},xi=Xg(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=xo(),r=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);r.push(...o.slice(0,s)),n.push(...o.slice(s))}return hi(Yg,{children:[e&&je(h,{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&&hi(ge,{opts:{align:a?"center":"start"},className:"w-full",children:[je(ue,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?r.map((s,l)=>hi(se,{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:[vi(s,"min-h-0 flex-1"),n[l]?vi(n[l],"min-h-0 flex-1"):je("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>je(se,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:vi(s)},l))}),je(No,{className:"mt-5"})]}),t&&je(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as au}from"react";import{useEffect as Zg,useState as bi}from"react";import{animate as kl,motion as Kg,useMotionValue as Jg}from"motion/react";import eu from"react-use-measure";import{jsx as ou,jsxs as tu}from"react/jsx-runtime";function Ao({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=bi(t),[d,{width:p,height:g}]=eu(),v=Jg(0),[R,k]=bi(!1),[L,A]=bi(0);Zg(()=>{let M,w=(r==="horizontal"?p:g)+o,re=n?-w/2:0,G=n?0:-w/2,Qt=Math.abs(G-re)/m;if(R){let _o=Math.abs(v.get()-G)/m;M=kl(v,[v.get(),G],{ease:"linear",duration:_o,onComplete:()=>{k(!1),A(jm=>jm+1)}})}else M=kl(v,[re,G],{ease:"linear",duration:Qt,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(re)}});return M?.stop},[L,v,m,p,g,o,R,r,n]);let F=a?{onHoverStart:()=>{k(!0),c(a)},onHoverEnd:()=>{k(!0),c(t)},onTouchStart:()=>{k(!0),c(a)},onTouchEnd:()=>{k(!0),c(t)}}:{};return ou("div",{className:i("overflow-hidden",s),children:tu(Kg.div,{className:i("flex w-max",l),style:{...r==="horizontal"?{x:v,paddingLeft:o}:{y:v},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:d,...F,children:[e,e]})})}import{Fragment as Dl,jsx as ke,jsxs as ru}from"react/jsx-runtime";var Sl=(e,o)=>{let t=e?.url?"a":"div";return ke("div",{className:i("h-full w-full",o),children:ke(t,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:i("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:ke("div",{className:"flex h-full w-full items-center justify-center",children:ke("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},yi=au(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,r=a>6;return ru(Dl,{children:[e&&ke(h,{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&&ke(Dl,{children:r?ke("div",{className:"mark-horizontal-slider relative overflow-hidden",children:ke(Ao,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>ke("div",{className:"w-32 md:w-40",children:Sl(n)},s))})}):ke("div",{className:i("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)=>ke("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:Sl(n)},s))})}),t&&ke(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),ke("style",{children:`
268
+ )`,Og=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return no(ui,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return no(Rl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return no(Tl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return no(ui,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},Vg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>no($g,{children:Og({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),Wg=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>no(_,{className:i(l),background:m??Bg,idSection:o,children:no(Vg,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as Gg}from"react";import{Fragment as jg,jsx as Ao,jsxs as Qg}from"react/jsx-runtime";var mr=Gg(({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:r})=>{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 Qg(jg,{children:[e&&Ao(h,{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:i("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],r?"-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:i("flex max-h-28 w-auto items-center justify-center md:max-w-36 md:basis-auto md:px-0",r?"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:i("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105")})})},l)})}),t&&Ao(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as Ug}from"react";import{Fragment as qg,jsx as so,jsxs as Xg}from"react/jsx-runtime";var vi=Ug(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>Xg(qg,{children:[e&&so(h,{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:i("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((r,n)=>{let s=r?.url?"a":"div",l=r?.url?{href:r.url,title:r.name,target:r.newTab?"_blank":"_self"}:{};return so("div",{className:i("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:r?.logo,loading:"lazy",alt:r?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain"})})})},n)})}),t&&so(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as Yg}from"react";import{Fragment as Zg,jsx as Ue,jsxs as xi}from"react/jsx-runtime";var hi=(e,o)=>{if(!e)return Ue("div",{className:i("h-full w-full",o)});let t=e.url?"a":"div";return Ue("div",{className:i("h-full w-full",o),children:Ue(t,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:i("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:Ue("div",{className:"flex h-full w-full items-center justify-center",children:Ue("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},bi=Yg(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=bo(),r=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);r.push(...o.slice(0,s)),n.push(...o.slice(s))}return xi(Zg,{children:[e&&Ue(h,{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&&xi(fe,{opts:{align:a?"center":"start"},className:"w-full",children:[Ue(ge,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?r.map((s,l)=>xi(se,{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:[hi(s,"min-h-0 flex-1"),n[l]?hi(n[l],"min-h-0 flex-1"):Ue("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>Ue(se,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:hi(s)},l))}),Ue(Po,{className:"mt-5"})]}),t&&Ue(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as ru}from"react";import{useEffect as Kg,useState as yi}from"react";import{animate as kl,motion as Jg,useMotionValue as eu}from"motion/react";import tu from"react-use-measure";import{jsx as au,jsxs as ou}from"react/jsx-runtime";function Lo({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=yi(t),[d,{width:p,height:g}]=tu(),v=eu(0),[R,k]=yi(!1),[I,E]=yi(0);Kg(()=>{let L,w=(r==="horizontal"?p:g)+o,H=n?-w/2:0,A=n?0:-w/2,Oe=Math.abs(A-H)/m;if(R){let Bo=Math.abs(v.get()-A)/m;L=kl(v,[v.get(),A],{ease:"linear",duration:Bo,onComplete:()=>{k(!1),E(Qm=>Qm+1)}})}else L=kl(v,[H,A],{ease:"linear",duration:Oe,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(H)}});return L?.stop},[I,v,m,p,g,o,R,r,n]);let O=a?{onHoverStart:()=>{k(!0),c(a)},onHoverEnd:()=>{k(!0),c(t)},onTouchStart:()=>{k(!0),c(a)},onTouchEnd:()=>{k(!0),c(t)}}:{};return au("div",{className:i("overflow-hidden",s),children:ou(Jg.div,{className:i("flex w-max",l),style:{...r==="horizontal"?{x:v,paddingLeft:o}:{y:v},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:d,...O,children:[e,e]})})}import{Fragment as Dl,jsx as ke,jsxs as iu}from"react/jsx-runtime";var Sl=(e,o)=>{let t=e?.url?"a":"div";return ke("div",{className:i("h-full w-full",o),children:ke(t,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:i("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:ke("div",{className:"flex h-full w-full items-center justify-center",children:ke("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},wi=ru(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,r=a>6;return iu(Dl,{children:[e&&ke(h,{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&&ke(Dl,{children:r?ke("div",{className:"mark-horizontal-slider relative overflow-hidden",children:ke(Lo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>ke("div",{className:"w-32 md:w-40",children:Sl(n)},s))})}):ke("div",{className:i("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)=>ke("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:Sl(n)},s))})}),t&&ke(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),ke("style",{children:`
269
269
  .mark-horizontal-slider {
270
270
  mask-image: linear-gradient(
271
271
  to right,
@@ -282,15 +282,15 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
282
282
  transparent 100%
283
283
  );
284
284
  }
285
- `})]})});import{Fragment as lu,jsx as Wt}from"react/jsx-runtime";var iu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return Wt(lr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return Wt(ui,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return Wt(xi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return Wt(yi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return Wt(lr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},nu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>Wt(lu,{children:iu({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),su=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>Wt(H,{className:i(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:Wt(nu,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as mu}from"react";import{ChevronRightIcon as cu}from"@heroicons/react/16/solid";import U from"html-react-parser";import{Fragment as Dt,jsx as f,jsxs as b}from"react/jsx-runtime";var st=({btnLink:e,btnName:o,newTab:t})=>f(fe,{variant:"primary",asChild:!0,children:b("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(cu,{className:"h-4 w-4"})]})}),wi=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Dt,{children:[e&&f(h,{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,r)=>b("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"})}),b("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[b("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ml=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Dt,{children:[e&&f(h,{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,r)=>b("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"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
285
+ `})]})});import{Fragment as mu,jsx as Gt}from"react/jsx-runtime";var nu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return Gt(mr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return Gt(vi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return Gt(bi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return Gt(wi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return Gt(mr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},su=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>Gt(mu,{children:nu({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),lu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>Gt(_,{className:i(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:Gt(su,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as cu}from"react";import{ChevronRightIcon as du}from"@heroicons/react/16/solid";import q from"html-react-parser";import{Fragment as It,jsx as f,jsxs as b}from"react/jsx-runtime";var mt=({btnLink:e,btnName:o,newTab:t})=>f(pe,{variant:"primary",asChild:!0,children:b("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(du,{className:"h-4 w-4"})]})}),Ni=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(It,{children:[e&&f(h,{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,r)=>b("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"})}),b("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ml=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(It,{children:[e&&f(h,{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,r)=>b("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"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
286
286
  .list-features-2 .feature-item {
287
287
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
288
288
  }
289
- `})]}),Il=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Dt,{children:[e&&f(h,{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,r)=>b("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"})}),b("div",{className:"mt-4 w-full flex-1",children:[b("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Al=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[b("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),b("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,r)=>b("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"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Ll=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Dt,{children:[e&&f(h,{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,r)=>b("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"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Fl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Dt,{children:[e&&f(h,{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,r)=>b("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"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),El=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,r={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)?r.special:r.default,m=n[a]??-1,c=(d,p)=>{let g=d?.btnLink?"a":"div",v=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return f("div",{className:i("basis-1/2 px-2 lg:px-5",l,p===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:b(g,{...v,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"})}),b("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 b(Dt,{children:[e&&f(h,{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(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},zl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Dt,{children:[e&&f(h,{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,r)=>b("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[b("div",{className:"flex w-full flex-1 flex-col p-5",children:[b("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(st,{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"})})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Hl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>b("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:b("div",{className:"w-full",children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("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((r,n)=>b("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&f("div",{className:"h-10 w-10",children:f("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:U(r.name)}),r?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&f(x,{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"})})})})]}),_l=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>b(Dt,{children:[e&&f(h,{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:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&b("div",{className:i("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((r,n)=>b("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:U(r.name)}),r?.description&&f("div",{className:"mt-2 text-gray-500",children:U(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&b("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"})})]})]})}),a&&f(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),Bl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=mu(0),s=xo();return b(Dt,{children:[e&&f(h,{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&&b("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:r.toString(),children:o?.map((l,m)=>b(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(ut,{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||"")}),b(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(st,{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"})})})]})]},m))})})}),f("div",{className:i(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"})}):f("div",{className:"hidden md:flex",children:o?.[r]?.image?f(E,{ratio:1,className:"w-full",children:f("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):f("div",{className:"h-0 w-0"})})})})]}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as gu,jsx as be}from"react/jsx-runtime";var du=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return be(wi,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return be(Ml,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return be(Il,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return be(Al,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return be(Ll,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return be(Fl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return be(El,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return be(zl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return be(Hl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return be(_l,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return be(Bl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return be(wi,{dataHeading:o,dataFeatures:t,dataButtons:a})}},pu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>be(gu,{children:du({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),fu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>be(H,{className:t,idSection:a,background:o,children:be(pu,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as uu}from"@heroicons/react/24/solid";import Ni from"html-react-parser";import vu from"lodash";var mr=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],cr=({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()||""},dr=(e,o)=>o[e%o.length];import{Fragment as Vl,jsx as J,jsxs as Lo}from"react/jsx-runtime";var hu=({avatar:e="",name:o="",index:t=0})=>{if(vu.isEmpty(e)){let a=cr({name:o})??"",r=dr(t,mr);return J("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",r),children:a})}return J("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:J("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Ol=({testimonial:e,className:o,index:t})=>J("div",{className:i("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:[J(hu,{avatar:e.avatar,name:e.name,index:t}),Lo("div",{className:"min-w-0 flex-1 pl-1",children:[J("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&J("div",{className:"text-xs font-normal text-pink-500",children:Ni(e.position)})]})]}),Lo("div",{className:"mt-3",children:[e?.shortTitle&&J("div",{className:"text-sm font-bold text-gray-700",children:Ni(e.shortTitle)}),e?.description&&J("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Ni(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&&J("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&J("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>J(uu,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Pi=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return Lo(Vl,{children:[e&&J(h,{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&&J(Vl,{children:r?J("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:J(Ao,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>J(Ol,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):J("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)=>J(Ol,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&J(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as Wl}from"@heroicons/react/24/solid";import Ci from"html-react-parser";import{Fragment as yu,jsx as z,jsxs as Qe}from"react/jsx-runtime";var xu=({className:e})=>z("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:z("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"})}),bu=({testimonial:e,className:o})=>z("div",{className:i("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:Qe("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&z("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:z(E,{ratio:2/3,className:"w-full",children:z("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Qe("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Qe("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Qe("div",{className:"grow",children:[e?.name&&z("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&z("div",{className:"mt-1 text-xs font-normal text-gray-500",children:Ci(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Qe("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&z("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&z("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>z(Wl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&z("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:z(E,{ratio:2/3,className:"w-full",children:z("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Qe("div",{className:"flex flex-1 flex-col md:flex-none",children:[Qe("div",{className:"flex-1",children:[Qe("div",{className:"mb-1.5 flex flex-none space-x-3",children:[z(xu,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&z("div",{className:"flex-none text-base font-medium md:text-lg",children:Ci(e.shortTitle)})]}),e?.description&&z("blockquote",{className:"relative flex-1 text-justify text-base",children:Ci(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Qe("div",{className:i("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&z("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&z("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>z(Wl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),$l=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Qe(yu,{children:[e&&z(h,{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&&Qe(ge,{className:"w-full",children:[z(ue,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>z(se,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:z(bu,{testimonial:a})},r))}),(o??[]).length>1&&z(No,{className:"mt-8"})]}),t&&z(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as wu}from"@heroicons/react/24/solid";import Ri from"html-react-parser";import Nu from"lodash";import{Fragment as jl,jsx as O,jsxs as so}from"react/jsx-runtime";var Pu=({avatar:e="",name:o="",index:t=0})=>{if(Nu.isEmpty(e)){let a=cr({name:o})??"",r=dr(t,mr);return O("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",r),children:a})}return O("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:O("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Gl=({testimonial:e,className:o,index:t})=>O("div",{className:i("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:[O(Pu,{avatar:e.avatar,name:e.name,index:t}),so("div",{className:"flex-1 pl-1",children:[O("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&O("div",{className:"text-xs font-normal text-pink-500",children:Ri(e.position)})]})]}),so("div",{className:"mt-3",children:[e?.shortTitle&&O("div",{className:"text-sm font-bold text-gray-700",children:Ri(e.shortTitle)}),e?.description&&O("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Ri(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&&O("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&O("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>O(wu,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Ql=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=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=>O(jl,{children:l.map((m,c)=>O(Ao,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>O(Gl,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return so(jl,{children:[e&&O(h,{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&&O(fo,{children:r?so("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[O(qe,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),O(qe,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),O(qe,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):O("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>O(Gl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&O(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),O("style",{children:`
289
+ `})]}),Il=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(It,{children:[e&&f(h,{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,r)=>b("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"})}),b("div",{className:"mt-4 w-full flex-1",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Al=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[b("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),b("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,r)=>b("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"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Ll=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(It,{children:[e&&f(h,{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,r)=>b("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"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Fl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(It,{children:[e&&f(h,{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,r)=>b("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"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),El=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,r={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)?r.special:r.default,m=n[a]??-1,c=(d,p)=>{let g=d?.btnLink?"a":"div",v=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return f("div",{className:i("basis-1/2 px-2 lg:px-5",l,p===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:b(g,{...v,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"})}),b("div",{className:"w-full flex-1 text-center",children:[d?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:q(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:q(d.description)})]})]})},p)};return b(It,{children:[e&&f(h,{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(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},zl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(It,{children:[e&&f(h,{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,r)=>b("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[b("div",{className:"flex w-full flex-1 flex-col p-5",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(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"})})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Hl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>b("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:b("div",{className:"w-full",children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("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((r,n)=>b("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&f("div",{className:"h-10 w-10",children:f("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:q(r.name)}),r?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&f(x,{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(F,{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"})})})})]}),_l=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>b(It,{children:[e&&f(h,{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:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&b("div",{className:i("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((r,n)=>b("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:q(r.name)}),r?.description&&f("div",{className:"mt-2 text-gray-500",children:q(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(mt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&b("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"})})]})]})}),a&&f(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),Bl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=cu(0),s=bo();return b(It,{children:[e&&f(h,{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&&b("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:r.toString(),children:o?.map((l,m)=>b(vt,{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(ht,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:q(l.name||"")}),b(xt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:q(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(F,{ratio:1,className:"w-full",children:f("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),f("div",{className:i(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(F,{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"})}):f("div",{className:"hidden md:flex",children:o?.[r]?.image?f(F,{ratio:1,className:"w-full",children:f("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):f("div",{className:"h-0 w-0"})})})})]}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as uu,jsx as xe}from"react/jsx-runtime";var pu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return xe(Ni,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return xe(Ml,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return xe(Il,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return xe(Al,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return xe(Ll,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return xe(Fl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return xe(El,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return xe(zl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return xe(Hl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return xe(_l,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return xe(Bl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return xe(Ni,{dataHeading:o,dataFeatures:t,dataButtons:a})}},fu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>xe(uu,{children:pu({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),gu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>xe(_,{className:t,idSection:a,background:o,children:xe(fu,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as vu}from"@heroicons/react/24/solid";import Pi from"html-react-parser";import hu from"lodash";var cr=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],dr=({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()||""},pr=(e,o)=>o[e%o.length];import{Fragment as Vl,jsx as ee,jsxs as Fo}from"react/jsx-runtime";var xu=({avatar:e="",name:o="",index:t=0})=>{if(hu.isEmpty(e)){let a=dr({name:o})??"",r=pr(t,cr);return ee("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",r),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})})},Ol=({testimonial:e,className:o,index:t})=>ee("div",{className:i("testimonial-item",o),children:Fo("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:[Fo("div",{className:"flex flex-nowrap items-center space-x-2",children:[ee(xu,{avatar:e.avatar,name:e.name,index:t}),Fo("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:Pi(e.position)})]})]}),Fo("div",{className:"mt-3",children:[e?.shortTitle&&ee("div",{className:"text-sm font-bold text-gray-700",children:Pi(e.shortTitle)}),e?.description&&ee("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Pi(e.description)})]}),Fo("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,r)=>ee(vu,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Ci=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return Fo(Vl,{children:[e&&ee(h,{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(Vl,{children:r?ee("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:ee(Lo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>ee(Ol,{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(Ol,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&ee(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as Wl}from"@heroicons/react/24/solid";import Ri from"html-react-parser";import{Fragment as wu,jsx as z,jsxs as qe}from"react/jsx-runtime";var bu=({className:e})=>z("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:z("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"})}),yu=({testimonial:e,className:o})=>z("div",{className:i("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:qe("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&z("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:z(F,{ratio:2/3,className:"w-full",children:z("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),qe("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[qe("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[qe("div",{className:"grow",children:[e?.name&&z("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&z("div",{className:"mt-1 text-xs font-normal text-gray-500",children:Ri(e.position)})]}),(e?.date||Number(e?.rating)>0)&&qe("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&z("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&z("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>z(Wl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&z("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:z(F,{ratio:2/3,className:"w-full",children:z("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),qe("div",{className:"flex flex-1 flex-col md:flex-none",children:[qe("div",{className:"flex-1",children:[qe("div",{className:"mb-1.5 flex flex-none space-x-3",children:[z(bu,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&z("div",{className:"flex-none text-base font-medium md:text-lg",children:Ri(e.shortTitle)})]}),e?.description&&z("blockquote",{className:"relative flex-1 text-justify text-base",children:Ri(e.description)})]}),(e?.date||Number(e?.rating)>0)&&qe("div",{className:i("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&z("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&z("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>z(Wl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),$l=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>qe(wu,{children:[e&&z(h,{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&&qe(fe,{className:"w-full",children:[z(ge,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>z(se,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:z(yu,{testimonial:a})},r))}),(o??[]).length>1&&z(Po,{className:"mt-8"})]}),t&&z(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as Nu}from"@heroicons/react/24/solid";import Ti from"html-react-parser";import Pu from"lodash";import{Fragment as jl,jsx as W,jsxs as lo}from"react/jsx-runtime";var Cu=({avatar:e="",name:o="",index:t=0})=>{if(Pu.isEmpty(e)){let a=dr({name:o})??"",r=pr(t,cr);return W("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",r),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})})},Gl=({testimonial:e,className:o,index:t})=>W("div",{className:i("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(Cu,{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:Ti(e.position)})]})]}),lo("div",{className:"mt-3",children:[e?.shortTitle&&W("div",{className:"text-sm font-bold text-gray-700",children:Ti(e.shortTitle)}),e?.description&&W("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Ti(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,r)=>W(Nu,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Ql=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=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(jl,{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(Gl,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return lo(jl,{children:[e&&W(h,{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(go,{children:r?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(Gl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&W(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),W("style",{children:`
290
290
  .mark-vertical-marquee {
291
291
  mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
292
292
  }
293
- `})]})};import{Fragment as ku,jsx as lo}from"react/jsx-runtime";var Cu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return lo(Pi,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return lo(Ql,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return lo($l,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return lo(Pi,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Ru=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>lo(ku,{children:Cu({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Tu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>lo(H,{className:i(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(Ru,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import Ul from"html-react-parser";import{Fragment as Su,jsx as oe,jsxs as mo}from"react/jsx-runtime";var Ti=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>oe(ft,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>mo(gt,{value:n.title,className:"last:border-none",children:[oe(ut,{className:"md:text-lg",children:n.title}),oe(vt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Ul(n.description)})]},s))});return mo("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[oe("div",{className:"relative",children:mo("div",{className:"md:sticky md:top-16",children:[o&&oe(h,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),t&&oe(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&oe("div",{className:"col-span-2",children:a(e[0])}),t&&oe(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},ql=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>oe(ft,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>mo(gt,{value:c.title,className:"last:border-none",children:[oe(ut,{className:"md:text-lg",children:c.title}),oe(vt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Ul(c.description)})]},d))});return mo(Su,{children:[o&&oe(h,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),e&&mo(Pt,{defaultValue:e[0]?.title,children:[e?.length>1&&mo(bt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[oe(yt,{className:"mb-3 text-center",children:oe(Ze,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>oe(Ke,{value:m.title,children:m.title},m.title+c))})}),oe(wt,{}),oe(Nt,{})]}),e.map((m,c)=>oe(Je,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&oe(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as Au,jsx as Fo}from"react/jsx-runtime";var Du=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return Fo(Ti,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return Fo(ql,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return Fo(Ti,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},Mu=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>Fo(Au,{children:Du({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Iu=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Fo(H,{className:t,idSection:r,background:a,children:Fo(Mu,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import Lu,{memo as Fu}from"react";import{ArrowDownIcon as Eu}from"@heroicons/react/20/solid";import zu from"html-react-parser";import{Fragment as Xl,jsx as X,jsxs as lt}from"react/jsx-runtime";var Hu=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return lt(Xl,{children:[X("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:lt("picture",{children:[X("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),X("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),lt("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[X("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}),lt("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&lt(Xl,{children:[X(fe,{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&&X("span",{className:"flex-none leading-none",children:"\xB7"})]}),X("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},ki=Fu(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{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)=>lt("div",{children:[X("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((g,v)=>X("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:X("div",{onClick:R=>m(R,g?.id,g?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:X(Hu,{news:g})},g?.id)},v))}),d?.isShowBtn&&X("div",{className:"mt-8 flex w-full items-center justify-center",children:lt(Oe,{action:d?.btnUrl||r&&(()=>r?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[zu(d.btnName||"Xem th\xEAm"),d?.isLoading?X(uo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&X(Eu,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return lt(Lu.Fragment,{children:[e&&X(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?lt(Pt,{defaultValue:t[0]?.title,children:[lt(bt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[X(yt,{className:"mb-6 text-center",children:X(Ze,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>X(Ke,{value:d.title,children:d.title},d.title+p))})}),X(wt,{}),X(Nt,{})]}),t.map((d,p)=>X(Je,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as Vu,jsx as ua}from"react/jsx-runtime";var _u=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return ua(ki,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return ua(ki,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Bu=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>ua(Vu,{children:_u({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ou=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>ua(H,{className:i(r),background:n,idSection:e,children:ua(Bu,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as Qu,jsx as Se,jsxs as Si}from"react/jsx-runtime";var Yl=({dataHeading:e,dataCTA:o,dataButtons:t})=>Si("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:o?.background},children:[e&&Se(h,{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&&Se(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Wu=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Si("div",{className:"grid gap-6 grid-cols-1 md:grid-cols-2 rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 pb-0 md:px-10 bg-pink-700 md:pb-0 md:pt-0",style:o?.background?{background:o.background}:{},children:[Si("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&Se(h,{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&&Se(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Se("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&Se(E,{ratio:4/3,children:Se("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),$u=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return Se(Yl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return Se(Wu,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return Se(Yl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},Gu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>Se(Qu,{children:$u({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),ju=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>Se(H,{className:t,idSection:a,background:o,children:Se(Gu,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import Zl from"react";import Di from"html-react-parser";import{jsx as $t,jsxs as Kl}from"react/jsx-runtime";var Uu=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Kl("div",{className:" text-center",children:[$t("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Di(t??"")}),$t("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Di(o??"")}),a&&$t("div",{className:"mt-2 text-sm text-gray-500",children:Di(a??"")})]})},pr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Kl(Zl.Fragment,{children:[t&&$t(h,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&$t("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,r)=>$t(Zl.Fragment,{children:$t(Uu,{metric:a})},r))}),o&&$t(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import Jl from"react";import Mi from"html-react-parser";import{jsx as Gt,jsxs as em}from"react/jsx-runtime";var qu=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return em("div",{className:" text-center md:text-left",children:[Gt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:Mi(t??"")}),Gt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Mi(o??"")}),a&&Gt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:Mi(a??"")})]})},Ii=({dataMetrics:e,dataButtons:o,dataHeading:t})=>em(Jl.Fragment,{children:[t&&Gt(h,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&Gt("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,r)=>Gt(Jl.Fragment,{children:Gt(qu,{metric:a})},r))}),o&&Gt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as Ku,jsx as Eo}from"react/jsx-runtime";var Xu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return Eo(pr,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return Eo(Ii,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return Eo(pr,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Yu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>Eo(Ku,{children:Xu({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Zu=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>Eo(H,{className:i(n),background:r,idSection:e,children:Eo(Yu,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as Ju}from"react";import{jsx as tm,jsxs as t0}from"react/jsx-runtime";var e0=Ju(({className:e,title:o,children:t},a)=>t0("div",{className:e,ref:a,children:[tm("div",{className:"font-semibold text-gray-800",children:o}),tm("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 n0}from"react";import{Fragment as i0,jsx as co,jsxs as r0}from"react/jsx-runtime";var o0=()=>co("div",{className:"p-3 border rounded-lg",children:r0("div",{className:"flex items-center gap-3",children:[co(Ua,{className:"rounded-md h-9 w-9 "}),co("div",{className:"flex-1",children:co(Ua,{className:"w-48 h-5 "})}),co("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function a0(){return co(i0,{children:Array.from({length:4}).map((e,o)=>co(o0,{},o))})}var om=a0;import{Fragment as m0,jsx as Mt,jsxs as Ai}from"react/jsx-runtime";var s0=({paymentMethod:e})=>Mt(Qa,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:Ai("div",{className:"flex items-center space-x-3",children:[Mt("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),Ai("div",{className:"grid grid-cols-1 gap-1",children:[Mt("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Mt("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Mt("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),l0=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=n0(s=>a?.(s),[a]);return Ai(m0,{children:[e&&Mt("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Mt(om,{}):Mt(ja,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Mt(s0,{paymentMethod:s},s.id))})]})};import{forwardRef as am}from"react";import{jsx as im}from"react/jsx-runtime";var c0=am(({children:e,className:o},t)=>im("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),rm=am(({children:e,className:o,...t},a)=>im(c0,{ref:a,className:o,...t,children:e}));rm.displayName="Payment";import{forwardRef as d0}from"react";import{jsx as nm,jsxs as f0}from"react/jsx-runtime";var p0=d0(({className:e,children:o},t)=>f0("div",{className:i("",e),ref:t,children:[nm("hr",{className:"mb-5 h-px w-full bg-gray-500"}),nm("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as g0}from"react";import{jsx as v0}from"react/jsx-runtime";var u0=g0(({className:e,children:o},t)=>v0("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as N0}from"react";import{CheckBadgeIcon as h0,XCircleIcon as x0}from"@heroicons/react/20/solid";import{jsx as ne,jsxs as zo}from"react/jsx-runtime";var b0=({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&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(la,{message:o,type:"success",icon:ne(h0,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),y0=({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&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),ne(la,{message:o,type:"error",icon:ne(x0,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),w0=({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&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(la,{message:o,type:"neutral"})]}),sm=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ne(b0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return ne(y0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return ne(w0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as C0,jsxs as R0}from"react/jsx-runtime";var P0=N0(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>R0("div",{ref:s,className:i("rounded-lg p-4",e),children:[C0(sm,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as k0,useEffect as S0}from"react";import{jsx as Li,jsxs as T0}from"react/jsx-runtime";var fr=({content:e})=>T0("picture",{children:[Li("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),Li("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),Li(Oe,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as va,jsxs as I0}from"react/jsx-runtime";var D0=({template:e,content:o})=>{switch(e){case 1:return va(fr,{content:o});default:return va(fr,{content:o})}},M0=k0(({template:e,content:o},t)=>(S0(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),I0("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:D0({template:e,content:o})})}),va("style",{children:`
293
+ `})]})};import{Fragment as Su,jsx as mo}from"react/jsx-runtime";var Ru=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return mo(Ci,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return mo(Ql,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return mo($l,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return mo(Ci,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Tu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>mo(Su,{children:Ru({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),ku=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>mo(_,{className:i(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(Tu,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import Ul from"html-react-parser";import{Fragment as Du,jsx as ae,jsxs as co}from"react/jsx-runtime";var ki=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>ae(ut,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>co(vt,{value:n.title,className:"last:border-none",children:[ae(ht,{className:"md:text-lg",children:n.title}),ae(xt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Ul(n.description)})]},s))});return co("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[ae("div",{className:"relative",children:co("div",{className:"md:sticky md:top-16",children:[o&&ae(h,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),t&&ae(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("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(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},ql=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>ae(ut,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>co(vt,{value:c.title,className:"last:border-none",children:[ae(ht,{className:"md:text-lg",children:c.title}),ae(xt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Ul(c.description)})]},d))});return co(Du,{children:[o&&ae(h,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),e&&co(Rt,{defaultValue:e[0]?.title,children:[e?.length>1&&co(wt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[ae(Nt,{className:"mb-3 text-center",children:ae(Je,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>ae(et,{value:m.title,children:m.title},m.title+c))})}),ae(Pt,{}),ae(Ct,{})]}),e.map((m,c)=>ae(tt,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&ae(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as Lu,jsx as Eo}from"react/jsx-runtime";var Mu=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return Eo(ki,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return Eo(ql,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return Eo(ki,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},Iu=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>Eo(Lu,{children:Mu({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Au=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Eo(_,{className:t,idSection:r,background:a,children:Eo(Iu,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import Fu,{memo as Eu}from"react";import{ArrowDownIcon as zu}from"@heroicons/react/20/solid";import Hu from"html-react-parser";import{Fragment as Xl,jsx as Y,jsxs as ct}from"react/jsx-runtime";var _u=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return ct(Xl,{children:[Y("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:[Y("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),Y("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:[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}),ct("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&ct(Xl,{children:[Y(pe,{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})]})]})]})},Si=Eu(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{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:[Y("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((g,v)=>Y("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:Y("div",{onClick:R=>m(R,g?.id,g?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:Y(_u,{news:g})},g?.id)},v))}),d?.isShowBtn&&Y("div",{className:"mt-8 flex w-full items-center justify-center",children:ct(We,{action:d?.btnUrl||r&&(()=>r?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[Hu(d.btnName||"Xem th\xEAm"),d?.isLoading?Y(vo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&Y(zu,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return ct(Fu.Fragment,{children:[e&&Y(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?ct(Rt,{defaultValue:t[0]?.title,children:[ct(wt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[Y(Nt,{className:"mb-6 text-center",children:Y(Je,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>Y(et,{value:d.title,children:d.title},d.title+p))})}),Y(Pt,{}),Y(Ct,{})]}),t.map((d,p)=>Y(tt,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as Wu,jsx as va}from"react/jsx-runtime";var Bu=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return va(Si,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return va(Si,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Ou=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>va(Wu,{children:Bu({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Vu=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>va(_,{className:i(r),background:n,idSection:e,children:va(Ou,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as Uu,jsx as Se,jsxs as Di}from"react/jsx-runtime";var Yl=({dataHeading:e,dataCTA:o,dataButtons:t})=>Di("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:o?.background},children:[e&&Se(h,{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&&Se(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),$u=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Di("div",{className:"grid gap-6 grid-cols-1 md:grid-cols-2 rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 pb-0 md:px-10 bg-pink-700 md:pb-0 md:pt-0",style:o?.background?{background:o.background}:{},children:[Di("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&Se(h,{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&&Se(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Se("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&Se(F,{ratio:4/3,children:Se("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Gu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return Se(Yl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return Se($u,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return Se(Yl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},ju=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>Se(Uu,{children:Gu({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),Qu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>Se(_,{className:t,idSection:a,background:o,children:Se(ju,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import Zl from"react";import Mi from"html-react-parser";import{jsx as jt,jsxs as Kl}from"react/jsx-runtime";var qu=({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:Mi(t??"")}),jt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Mi(o??"")}),a&&jt("div",{className:"mt-2 text-sm text-gray-500",children:Mi(a??"")})]})},fr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Kl(Zl.Fragment,{children:[t&&jt(h,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&jt("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,r)=>jt(Zl.Fragment,{children:jt(qu,{metric:a})},r))}),o&&jt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import Jl from"react";import Ii from"html-react-parser";import{jsx as Qt,jsxs as em}from"react/jsx-runtime";var Xu=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return em("div",{className:" text-center md:text-left",children:[Qt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:Ii(t??"")}),Qt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Ii(o??"")}),a&&Qt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:Ii(a??"")})]})},Ai=({dataMetrics:e,dataButtons:o,dataHeading:t})=>em(Jl.Fragment,{children:[t&&Qt(h,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&Qt("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,r)=>Qt(Jl.Fragment,{children:Qt(Xu,{metric:a})},r))}),o&&Qt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as Ju,jsx as zo}from"react/jsx-runtime";var Yu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return zo(fr,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return zo(Ai,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return zo(fr,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Zu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>zo(Ju,{children:Yu({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Ku=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>zo(_,{className:i(n),background:r,idSection:e,children:zo(Zu,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as e0}from"react";import{jsx as tm,jsxs as o0}from"react/jsx-runtime";var t0=e0(({className:e,title:o,children:t},a)=>o0("div",{className:e,ref:a,children:[tm("div",{className:"font-semibold text-gray-800",children:o}),tm("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 s0}from"react";import{Fragment as n0,jsx as po,jsxs as i0}from"react/jsx-runtime";var a0=()=>po("div",{className:"p-3 border rounded-lg",children:i0("div",{className:"flex items-center gap-3",children:[po(qa,{className:"rounded-md h-9 w-9 "}),po("div",{className:"flex-1",children:po(qa,{className:"w-48 h-5 "})}),po("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function r0(){return po(n0,{children:Array.from({length:4}).map((e,o)=>po(a0,{},o))})}var om=r0;import{Fragment as c0,jsx as At,jsxs as Li}from"react/jsx-runtime";var l0=({paymentMethod:e})=>At(Ua,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:Li("div",{className:"flex items-center space-x-3",children:[At("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),Li("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})]})]})}),m0=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=s0(s=>a?.(s),[a]);return Li(c0,{children:[e&&At("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?At(om,{}):At(Qa,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>At(l0,{paymentMethod:s},s.id))})]})};import{forwardRef as am}from"react";import{jsx as im}from"react/jsx-runtime";var d0=am(({children:e,className:o},t)=>im("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),rm=am(({children:e,className:o,...t},a)=>im(d0,{ref:a,className:o,...t,children:e}));rm.displayName="Payment";import{forwardRef as p0}from"react";import{jsx as nm,jsxs as g0}from"react/jsx-runtime";var f0=p0(({className:e,children:o},t)=>g0("div",{className:i("",e),ref:t,children:[nm("hr",{className:"mb-5 h-px w-full bg-gray-500"}),nm("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as u0}from"react";import{jsx as h0}from"react/jsx-runtime";var v0=u0(({className:e,children:o},t)=>h0("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as P0}from"react";import{CheckBadgeIcon as x0,XCircleIcon as b0}from"@heroicons/react/20/solid";import{jsx as ne,jsxs as Ho}from"react/jsx-runtime";var y0=({iconPaymentResult:e,message:o="",title:t=""})=>Ho("div",{className:"grid grid-cols-1 gap-4",children:[Ho("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(ma,{message:o,type:"success",icon:ne(x0,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),w0=({iconPaymentResult:e,message:o="",title:t=""})=>Ho("div",{className:"grid grid-cols-1 gap-4",children:[Ho("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),ne(ma,{message:o,type:"error",icon:ne(b0,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),N0=({iconPaymentResult:e,message:o="",title:t=""})=>Ho("div",{className:"grid grid-cols-1 gap-4",children:[Ho("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(ma,{message:o,type:"neutral"})]}),sm=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ne(y0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return ne(w0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return ne(N0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as R0,jsxs as T0}from"react/jsx-runtime";var C0=P0(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>T0("div",{ref:s,className:i("rounded-lg p-4",e),children:[R0(sm,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as S0,useEffect as D0}from"react";import{jsx as Fi,jsxs as k0}from"react/jsx-runtime";var gr=({content:e})=>k0("picture",{children:[Fi("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),Fi("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),Fi(We,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as ha,jsxs as A0}from"react/jsx-runtime";var M0=({template:e,content:o})=>{switch(e){case 1:return ha(gr,{content:o});default:return ha(gr,{content:o})}},I0=S0(({template:e,content:o},t)=>(D0(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),A0("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[ha("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:ha("div",{className:"content",children:M0({template:e,content:o})})}),ha("style",{children:`
294
294
  .container-topbar .content {
295
295
  width: 100%;
296
296
  aspect-ratio: 1088/50;
@@ -308,7 +308,7 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
308
308
  aspect-ratio: 720/88;
309
309
  }
310
310
  }
311
- `})]})));import*as ha from"react";import{XIcon as A0}from"lucide-react";import{Drawer as _e}from"vaul";import{jsx as mt,jsxs as Fi}from"react/jsx-runtime";var lm=({shouldScaleBackground:e=!0,...o})=>mt(_e.Root,{shouldScaleBackground:e,...o});lm.displayName="Drawer";var L0=_e.Trigger,mm=_e.Portal,F0=_e.Close,Ei=ha.forwardRef(({className:e,...o},t)=>mt(_e.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));Ei.displayName=_e.Overlay.displayName;var cm=ha.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>Fi(mm,{children:[mt(Ei,{}),Fi(_e.Content,{ref:r,className:i("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&&Fi(_e.Close,{className:i("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:[mt(A0,{className:"h-5 w-5"}),mt("span",{className:"sr-only",children:"Close"})]}),o]})]}));cm.displayName="DrawerContent";var dm=({className:e,...o})=>mt("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});dm.displayName="DrawerHeader";var pm=({className:e,...o})=>mt("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});pm.displayName="DrawerFooter";var fm=ha.forwardRef(({className:e,...o},t)=>mt(_e.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));fm.displayName=_e.Title.displayName;var gm=ha.forwardRef(({className:e,...o},t)=>mt(_e.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));gm.displayName=_e.Description.displayName;var um=({children:e,className:o,...t})=>mt("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});um.displayName="DrawerBody";import*as po from"react";import{OTPInput as E0,OTPInputContext as z0}from"input-otp";import{Minus as H0}from"lucide-react";import{jsx as Ho,jsxs as vm}from"react/jsx-runtime";var hm=po.forwardRef(({className:e,containerClassName:o,...t},a)=>Ho(E0,{ref:a,containerClassName:i("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:i("disabled:cursor-not-allowed",e),...t}));hm.displayName="InputOTP";var xm=po.forwardRef(({className:e,...o},t)=>Ho("div",{ref:t,className:i("flex items-center",e),...o}));xm.displayName="InputOTPGroup";var bm=po.forwardRef(({index:e,className:o,...t},a)=>{let r=po.useContext(z0),{char:n,hasFakeCaret:s,isActive:l}=r.slots[e]??{};return vm("div",{ref:a,className:i("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&&vm("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[Ho("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),Ho("style",{children:`
311
+ `})]})));import*as xa from"react";import{XIcon as L0}from"lucide-react";import{Drawer as _e}from"vaul";import{jsx as dt,jsxs as Ei}from"react/jsx-runtime";var lm=({shouldScaleBackground:e=!0,...o})=>dt(_e.Root,{shouldScaleBackground:e,...o});lm.displayName="Drawer";var F0=_e.Trigger,mm=_e.Portal,E0=_e.Close,zi=xa.forwardRef(({className:e,...o},t)=>dt(_e.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));zi.displayName=_e.Overlay.displayName;var cm=xa.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>Ei(mm,{children:[dt(zi,{}),Ei(_e.Content,{ref:r,className:i("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&&Ei(_e.Close,{className:i("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(L0,{className:"h-5 w-5"}),dt("span",{className:"sr-only",children:"Close"})]}),o]})]}));cm.displayName="DrawerContent";var dm=({className:e,...o})=>dt("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});dm.displayName="DrawerHeader";var pm=({className:e,...o})=>dt("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});pm.displayName="DrawerFooter";var fm=xa.forwardRef(({className:e,...o},t)=>dt(_e.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));fm.displayName=_e.Title.displayName;var gm=xa.forwardRef(({className:e,...o},t)=>dt(_e.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));gm.displayName=_e.Description.displayName;var um=({children:e,className:o,...t})=>dt("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});um.displayName="DrawerBody";import*as fo from"react";import{OTPInput as z0,OTPInputContext as H0}from"input-otp";import{Minus as _0}from"lucide-react";import{jsx as _o,jsxs as vm}from"react/jsx-runtime";var hm=fo.forwardRef(({className:e,containerClassName:o,...t},a)=>_o(z0,{ref:a,containerClassName:i("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:i("disabled:cursor-not-allowed",e),...t}));hm.displayName="InputOTP";var xm=fo.forwardRef(({className:e,...o},t)=>_o("div",{ref:t,className:i("flex items-center",e),...o}));xm.displayName="InputOTPGroup";var bm=fo.forwardRef(({index:e,className:o,...t},a)=>{let r=fo.useContext(H0),{char:n,hasFakeCaret:s,isActive:l}=r.slots[e]??{};return vm("div",{ref:a,className:i("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&&vm("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[_o("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),_o("style",{children:`
312
312
  @keyframes caret-blink {
313
313
  0%, 70%, 100% {
314
314
  opacity: 1;
@@ -321,7 +321,7 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
321
321
  .animate-caret-blink {
322
322
  animation: caret-blink 1.25s ease-out infinite;
323
323
  }
324
- `})]})]})});bm.displayName="InputOTPSlot";var ym=po.forwardRef(({...e},o)=>Ho("div",{ref:o,role:"separator",...e,children:Ho(H0,{className:"text-gray-400"})}));ym.displayName="InputOTPSeparator";import{useEffect as Cm,useRef as j0,useState as Rm}from"react";import{toPng as Q0}from"html-to-image";import ba from"react";import{LucideMessageCircleQuestion as O0}from"lucide-react";import{QRCodeSVG as V0}from"qrcode.react";async function wm(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let r=document.createElement("canvas");r.width=a.width,r.height=a.height;let n=r.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=r.toDataURL("image/png");o(s)},a.onerror=function(r){t(r)},a.src=e})}import{jsx as Ue,jsxs as jt}from"react/jsx-runtime";var _0=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>jt("div",{className:`grid grid-cols-1 gap-y-6 py-8 text-sm ${t}`,children:[jt("div",{className:"flex flex-nowrap items-center",children:[Ue("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:Ue("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),jt("div",{className:"flex-1 pl-4",children:[Ue("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 1 :"}),Ue("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"})]})]}),jt("div",{className:"flex flex-nowrap items-center",children:[Ue("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:Ue("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),jt("div",{className:"flex-1 pl-4",children:[Ue("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 2 :"}),Ue("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),jt("div",{className:"flex flex-nowrap items-center",children:[Ue("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:Ue("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),jt("div",{className:"flex-1 pl-4",children:[Ue("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 3 :"}),jt("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"]})]})]})]}),zi=_0;import{jsx as xa,jsxs as Nm}from"react/jsx-runtime";var B0=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:r,onOpenChange:n})=>Nm(Be,{open:r,onOpenChange:n,children:[xa(Wo,{asChild:!0,children:e}),Nm(Ae,{position:"bottom",children:[xa(vo,{children:xa(ho,{children:o})}),xa(Ye,{children:xa(zi,{isQrForAll:t,shortTitle:a})})]})]}),Hi=B0;import{Fragment as gr,jsx as C,jsxs as me}from"react/jsx-runtime";var W0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n})=>me(gr,{children:[me("div",{className:"qrcode__scan__container relative select-none ",children:[me("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[C("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"select-none shrink-0"}),C("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),C("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"select-none shrink-0"})]}),me("div",{className:"qrcode__scan select-none",children:[C("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:C("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),C("div",{className:"invisible opacity-0 select-none qrcode__border md:visible md:opacity-100",children:C("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),C("div",{className:"p-4 select-none qrcode__image",children:e?C("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy",onLoad:a}):ba.Children.map(o,s=>(ba.isValidElement(s),s))})]}),n&&me("div",{className:"text-sm text-gray-900 md:hidden",children:[C("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),C("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),r&&me("div",{className:i("mt-3 text-sm text-gray-900 md:hidden"),children:[C("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),C("span",{className:"font-semibold",children:r})]}),C("div",{className:"hidden mt-4 text-sm font-semibold text-gray-900 md:block",children:t?me(gr,{children:[C("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250710143736-638877550567721225.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),C("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"})]}):me(gr,{children:[C("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:C("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",C("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),$0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,className:s=""})=>me(gr,{children:[C("div",{className:i(s),children:C(W0,{dateExpired:r,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,children:o})}),C("style",{children:`
324
+ `})]})]})});bm.displayName="InputOTPSlot";var ym=fo.forwardRef(({...e},o)=>_o("div",{ref:o,role:"separator",...e,children:_o(_0,{className:"text-gray-400"})}));ym.displayName="InputOTPSeparator";import{useEffect as Cm,useRef as Q0,useState as Rm}from"react";import{toPng as U0}from"html-to-image";import ya from"react";import{LucideMessageCircleQuestion as V0}from"lucide-react";import{QRCodeSVG as W0}from"qrcode.react";async function wm(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let r=document.createElement("canvas");r.width=a.width,r.height=a.height;let n=r.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=r.toDataURL("image/png");o(s)},a.onerror=function(r){t(r)},a.src=e})}import{jsx as Xe,jsxs as Ut}from"react/jsx-runtime";var B0=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>Ut("div",{className:`grid grid-cols-1 gap-y-6 py-8 text-sm ${t}`,children:[Ut("div",{className:"flex flex-nowrap items-center",children:[Xe("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:Xe("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Ut("div",{className:"flex-1 pl-4",children:[Xe("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 1 :"}),Xe("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"})]})]}),Ut("div",{className:"flex flex-nowrap items-center",children:[Xe("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:Xe("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Ut("div",{className:"flex-1 pl-4",children:[Xe("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 2 :"}),Xe("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Ut("div",{className:"flex flex-nowrap items-center",children:[Xe("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:Xe("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Ut("div",{className:"flex-1 pl-4",children:[Xe("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 3 :"}),Ut("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"]})]})]})]}),Hi=B0;import{jsx as ba,jsxs as Nm}from"react/jsx-runtime";var O0=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:r,onOpenChange:n})=>Nm(Ve,{open:r,onOpenChange:n,children:[ba($o,{asChild:!0,children:e}),Nm(Ae,{position:"bottom",children:[ba(ho,{children:ba(xo,{children:o})}),ba(Ke,{children:ba(Hi,{isQrForAll:t,shortTitle:a})})]})]}),_i=O0;import{Fragment as ur,jsx as C,jsxs as me}from"react/jsx-runtime";var $0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n})=>me(ur,{children:[me("div",{className:"qrcode__scan__container relative select-none ",children:[me("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[C("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"select-none shrink-0"}),C("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),C("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"select-none shrink-0"})]}),me("div",{className:"qrcode__scan select-none",children:[C("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:C("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),C("div",{className:"invisible opacity-0 select-none qrcode__border md:visible md:opacity-100",children:C("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),C("div",{className:"p-4 select-none qrcode__image",children:e?C("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy",onLoad:a}):ya.Children.map(o,s=>(ya.isValidElement(s),s))})]}),n&&me("div",{className:"text-sm text-gray-900 md:hidden",children:[C("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),C("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),r&&me("div",{className:i("mt-3 text-sm text-gray-900 md:hidden"),children:[C("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),C("span",{className:"font-semibold",children:r})]}),C("div",{className:"hidden mt-4 text-sm font-semibold text-gray-900 md:block",children:t?me(ur,{children:[C("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250710143736-638877550567721225.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),C("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"})]}):me(ur,{children:[C("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:C("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",C("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:r,priceOrder:n,className:s=""})=>me(ur,{children:[C("div",{className:i(s),children:C($0,{dateExpired:r,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,children:o})}),C("style",{children:`
325
325
  .qrcode__scan__container {
326
326
  padding: 15px;
327
327
  background-color: white;
@@ -389,7 +389,7 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
389
389
  transform: translate3d(0, 30%, 0);
390
390
  }
391
391
  }
392
- `})]}),G0=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:r,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:m,dateExpired:c,priceOrder:d,titleOrder:p})=>{let[g,v]=ba.useState(void 0);return ba.useEffect(()=>{a?wm(a).then(v).catch(()=>v(void 0)):v(void 0)},[a]),ba.useEffect(()=>{t&&g&&typeof s=="function"&&!o&&s()},[t,g,s,o]),me("div",{className:"relative z-[1] ",children:[me("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:[C("div",{className:i(" 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&&C("div",{className:"visible absolute left-0 right-0 top-0 z-20 cursor-pointer opacity-100 md:hidden md:select-none",children:C("img",{src:l,alt:"QR Code"})}),me($0,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,children:[t&&g&&!o&&C(V0,{value:t,size:215,imageSettings:{src:`${g}`,height:40,width:40,excavate:!0},level:"H"}),r&&C("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:C("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&C("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:C(ni,{size:"lg"})})]})]}),me("div",{className:"relative z-10 px-5 pb-5 text-center bg-pink-50 bg-repeat-y select-none qrcode__guide",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[me("div",{className:i("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[me("div",{className:"rounded-full ripple size-5",children:[C("div",{className:"ripple-1"}),C("div",{className:"ripple-2"})]}),C("img",{className:"object-contain relative z-10 -mt-1 drop-shadow-lg select-none qrcode__hand size-7",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),C("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),C(Hi,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:me("div",{className:"flex justify-center items-center space-x-1 text-sm font-semibold text-center text-pink-600 cursor-pointer",children:[C("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",C(O0,{className:"size-4"})," "]})}),C("style",{children:`
392
+ `})]}),j0=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:r,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:m,dateExpired:c,priceOrder:d,titleOrder:p})=>{let[g,v]=ya.useState(void 0);return ya.useEffect(()=>{a?wm(a).then(v).catch(()=>v(void 0)):v(void 0)},[a]),ya.useEffect(()=>{t&&g&&typeof s=="function"&&!o&&s()},[t,g,s,o]),me("div",{className:"relative z-[1] ",children:[me("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:[C("div",{className:i(" 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&&C("div",{className:"visible absolute left-0 right-0 top-0 z-20 cursor-pointer opacity-100 md:hidden md:select-none",children:C("img",{src:l,alt:"QR Code"})}),me(G0,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,children:[t&&g&&!o&&C(W0,{value:t,size:215,imageSettings:{src:`${g}`,height:40,width:40,excavate:!0},level:"H"}),r&&C("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:C("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&C("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:C(si,{size:"lg"})})]})]}),me("div",{className:"relative z-10 px-5 pb-5 text-center bg-pink-50 bg-repeat-y select-none qrcode__guide",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[me("div",{className:i("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[me("div",{className:"rounded-full ripple size-5",children:[C("div",{className:"ripple-1"}),C("div",{className:"ripple-2"})]}),C("img",{className:"object-contain relative z-10 -mt-1 drop-shadow-lg select-none qrcode__hand size-7",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),C("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),C(_i,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:me("div",{className:"flex justify-center items-center space-x-1 text-sm font-semibold text-center text-pink-600 cursor-pointer",children:[C("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",C(V0,{className:"size-4"})," "]})}),C("style",{children:`
393
393
  .ripple {
394
394
  box-sizing: border-box;
395
395
  position: relative;
@@ -445,7 +445,7 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
445
445
  transform: scale(1) translateY(0);
446
446
  }
447
447
  }
448
- `})]})]})},Pm=G0;import{Fragment as Y0,jsx as _i}from"react/jsx-runtime";var U0=["qrcode__gradient","qrcode__guide","qrcode__title"],q0=e=>!U0.some(o=>e.classList?.contains(o)),X0=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:m})=>{let c=j0(null),[d,p]=Rm(null),[g,v]=Rm(!1);return Cm(()=>{if(g&&c.current){let R=setTimeout(()=>{c.current&&Q0(c.current,{filter:q0}).then(k=>{p(k)}).catch(k=>{console.error("Error generating QR image:",k)})},2e3);return()=>clearTimeout(R)}},[g,t]),Cm(()=>{e&&v(!1)},[e]),_i(Y0,{children:_i("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",m),children:_i(Pm,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:r,expired:o,loading:e,qrCodeRef:c,titleOrder:l,onQrLoaded:()=>{v(!0)},qrImageBase64:d,dateExpired:n,priceOrder:s})})})};import{jsx as It,jsxs as Bi}from"react/jsx-runtime";var Z0=e=>{switch(e){case"email":return{type:"email",inputMode:"email",autoComplete:"email"};case"phone":return{type:"tel",inputMode:"tel",pattern:"[0-9+\\-\\s()]*",autoComplete:"tel"};case"number":return{type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off"};case"password":return{type:"password",autoComplete:"current-password"};case"text":default:return{type:"text",autoComplete:"off"}}},Tm=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return It(Or,{placeholder:e.placeholder,value:n||"",onChange:c=>s(c.target.value),onBlur:l,disabled:e.disabled,className:t,maxLength:e.maxLength,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"});case"boolean":return Bi("div",{className:"flex items-center space-x-3",children:[It(Wa,{checked:n||e.defaultChecked||!1,onCheckedChange:s,disabled:e.disabled,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"}),e.switchLabel&&It("span",{className:"text-sm text-gray-700",children:e.switchLabel})]});default:let m=Z0(e.type);return It(Kr,{...m,placeholder:e.placeholder,value:n||"",isError:r.error,onChange:c=>{let d=c.target.value;e.type==="number"&&(d=d.replace(/[^0-9]/g,"")),e.type==="phone"&&(d=d.replace(/[^0-9+\-\s()]/g,"")),s(d)},onBlur:l,disabled:e.disabled,className:t,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false",maxLength:e.maxLength})}};return It(ci,{control:o,name:e.name,render:({field:r,fieldState:n})=>Bi(Ka,{className:e.className,children:[e.label&&Bi(Ja,{htmlFor:e.name,children:[e.label,e.required&&It("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),It(er,{children:a({...r,error:n.error})}),e.description&&It(tr,{id:`${e.name}-description`,children:e.description}),It(or,{})]})})};import{useMemo as km}from"react";import{zodResolver as K0}from"@hookform/resolvers/zod";import{useForm as J0}from"react-hook-form";import{z as ur}from"zod";var ev=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=ur.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=ur.string().regex(/^[a-zA-ZÀ-ỹ0-9\s\-_.]*$/,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t`);break;case"phone":case"number":default:a=ur.string()}t.required&&(a=a.min(1,`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`)),t.minLength&&t.minLength>0&&(a=a.min(t.minLength,`${t.label||t.name} ph\u1EA3i c\xF3 \xEDt nh\u1EA5t ${t.minLength} k\xFD t\u1EF1`)),t.maxLength&&t.maxLength>0&&(a=a.max(t.maxLength,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 ${t.maxLength} k\xFD t\u1EF1`)),t.pattern&&(a=a.regex(t.pattern,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.customValidation&&(a=a.refine(t.customValidation,{message:"Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7"})),t.required||(a=a.optional()),o[t.name]=a}),ur.object(o)},Sm=e=>{let o=km(()=>ev(e),[e]),t=km(()=>{let r={};return e.forEach(n=>{n.value!==void 0?r[n.name]=n.value:r[n.name]=""}),r},[e]),a=J0({resolver:K0(o),defaultValues:t,mode:"onSubmit"});return{form:a,formData:a.watch(),errors:a.formState.errors,isValid:a.formState.isValid,isSubmitting:a.formState.isSubmitting,reset:a.reset,setValue:a.setValue,trigger:a.trigger}};import{Fragment as rv,jsx as ce,jsxs as Oi}from"react/jsx-runtime";var tv=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,ov=({dataHeading:e,dataMedia:o,captchaComponent:t,onSubmit:a,fieldsSchema:r,loading:n=!1,onFieldChange:s,onValidationError:l,dataButtons:m})=>{let{form:c,errors:d}=Sm(r),p=async A=>{try{s&&Object.entries(A).forEach(([F,M])=>{s(F,M)}),a&&await a(A)}catch(F){if(console.error("Form submission error:",F),l){let M={};Object.entries(d).forEach(([dt,w])=>{M[dt]={message:w?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(M)}}},g=()=>{c.handleSubmit(p)()},v=()=>{let A=(m.buttons||[]).map((F,M)=>M===0?{...F,action:g,isLoading:n,isDisabled:n}:F);return{...m,buttons:A}},R=()=>"space-y-4",k=()=>ce("div",{children:o&&ce("div",{className:"mb-6 shrink-0",children:ce(E,{className:"shrink-0",ratio:tv(o?.ratio),children:ce("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})})}),L=()=>Oi("div",{className:"shadow-small bg-white p-8",children:[e&&ce("div",{className:"mb-6",children:ce(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h2",align:e?.align||"center",sizeHeading:e?.sizeHeading||"small",colorScheme:e?.colorScheme||"black",className:"mb-6"})}),ce(mi,{...c,children:Oi("form",{onSubmit:c.handleSubmit(p),className:"space-y-6",children:[ce("div",{className:R(),children:r.map(A=>ce(Tm,{field:A,control:c.control},A.name))}),t&&ce("div",{className:"flex justify-center",children:t}),ce(x,{...v()})]})})]});return ce(rv,{children:Oi("div",{className:i("grid items-center",o?"grid-cols-1 md:grid-cols-2":"grid-cols-1"),children:[o&&ce("div",{className:"order-last shrink-0 md:order-first",children:k()}),ce("div",{className:"relative order-first mx-auto min-w-[400px] max-w-xl overflow-hidden rounded-lg md:order-last",children:L()})]})})},av=({idSection:e,background:o,className:t,...a})=>ce(H,{className:t,idSection:e,background:o,children:ce(ov,{...a})});import sv from"color";import lv from"tailwindcss/plugin.js";var Dm={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 Mm={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Im={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Am={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Lm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Fm={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Em={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var zm={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Hm={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var _m={white:"#ffffff",black:"#000000",blue:Mm,green:Im,pink:Am,purple:Lm,red:Fm,yellow:Em,gray:Hm,orange:zm};var Vi={..._m};var Bm={"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 ct="250ms",Om={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ct},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ct},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ct},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ct},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ct},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ct},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":ct},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":ct},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ct},".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":ct}};var Vm={".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 Wm={".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 $m={...Vm,...Om,...Wm};import{flatten as iv}from"flat";function nv(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 Gm=e=>nv(iv(e,{safe:!0,delimiter:"-"}));var mv=e=>{let o={utilities:{},colors:{}},t=Gm(Vi),a=Bm,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=sv(s).rgb().array(),d=`--${e}-${n}`;o.utilities[r][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[r][d]=c});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][l]=m}}),o},cv=()=>{let e="mobase",o=mv(e);return lv(({addBase:t,addUtilities:a,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...$m})},{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:{...Vi,...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)`},...Dm}}})};import{Fragment as pv,jsx as I,jsxs as fv}from"react/jsx-runtime";var dv=fv(pv,{children:[I("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"}),I("meta",{name:"distribution",content:"Global"}),I("meta",{name:"author",content:"V\xED MoMo"}),I("meta",{property:"fb:app_id",content:"320653355376196"}),I("meta",{property:"fb:pages",content:"138010322921640"}),I("link",{rel:"shortcut icon",href:"/favicon.ico"}),I("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),I("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),I("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),I("meta",{name:"language",content:"vietnamese"}),I("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),I("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),I("meta",{name:"RATING",content:"GENERAL"}),I("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),I("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),I("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),I("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),I("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),I("link",{rel:"dns-prefetch",href:"//facebook.com"}),I("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),I("link",{rel:"dns-prefetch",href:"//www.google.com"}),I("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),I("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),I("link",{rel:"preconnect",href:"//connect.facebook.net"}),I("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),I("link",{rel:"preconnect",href:"//www.google-analytics.com"}),I("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),I("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),I("link",{rel:"preconnect",href:"//www.google.com"}),I("link",{rel:"preconnect",href:"//www.google.com.vn"}),I("link",{rel:"preconnect",href:"//www.googleadservices.com"}),I("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
448
+ `})]})]})},Pm=j0;import{Fragment as Z0,jsx as Bi}from"react/jsx-runtime";var q0=["qrcode__gradient","qrcode__guide","qrcode__title"],X0=e=>!q0.some(o=>e.classList?.contains(o)),Y0=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:m})=>{let c=Q0(null),[d,p]=Rm(null),[g,v]=Rm(!1);return Cm(()=>{if(g&&c.current){let R=setTimeout(()=>{c.current&&U0(c.current,{filter:X0}).then(k=>{p(k)}).catch(k=>{console.error("Error generating QR image:",k)})},2e3);return()=>clearTimeout(R)}},[g,t]),Cm(()=>{e&&v(!1)},[e]),Bi(Z0,{children:Bi("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",m),children:Bi(Pm,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:r,expired:o,loading:e,qrCodeRef:c,titleOrder:l,onQrLoaded:()=>{v(!0)},qrImageBase64:d,dateExpired:n,priceOrder:s})})})};import{jsx as Lt,jsxs as Oi}from"react/jsx-runtime";var K0=e=>{switch(e){case"email":return{type:"email",inputMode:"email",autoComplete:"email"};case"phone":return{type:"tel",inputMode:"tel",pattern:"[0-9+\\-\\s()]*",autoComplete:"tel"};case"number":return{type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off"};case"password":return{type:"password",autoComplete:"current-password"};case"text":default:return{type:"text",autoComplete:"off"}}},Tm=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return Lt(Vr,{placeholder:e.placeholder,value:n||"",onChange:c=>s(c.target.value),onBlur:l,disabled:e.disabled,className:t,maxLength:e.maxLength,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"});case"boolean":return Oi("div",{className:"flex items-center space-x-3",children:[Lt($a,{checked:n||e.defaultChecked||!1,onCheckedChange:s,disabled:e.disabled,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"}),e.switchLabel&&Lt("span",{className:"text-sm text-gray-700",children:e.switchLabel})]});default:let m=K0(e.type);return Lt(Jr,{...m,placeholder:e.placeholder,value:n||"",isError:r.error,onChange:c=>{let d=c.target.value;e.type==="number"&&(d=d.replace(/[^0-9]/g,"")),e.type==="phone"&&(d=d.replace(/[^0-9+\-\s()]/g,"")),s(d)},onBlur:l,disabled:e.disabled,className:t,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false",maxLength:e.maxLength})}};return Lt(di,{control:o,name:e.name,render:({field:r,fieldState:n})=>Oi(Ja,{className:e.className,children:[e.label&&Oi(er,{htmlFor:e.name,children:[e.label,e.required&&Lt("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),Lt(tr,{children:a({...r,error:n.error})}),e.description&&Lt(or,{id:`${e.name}-description`,children:e.description}),Lt(ar,{})]})})};import{useMemo as km}from"react";import{zodResolver as J0}from"@hookform/resolvers/zod";import{useForm as ev}from"react-hook-form";import{z as vr}from"zod";var tv=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=vr.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=vr.string().regex(/^[a-zA-ZÀ-ỹ0-9\s\-_.]*$/,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t`);break;case"phone":case"number":default:a=vr.string()}t.required&&(a=a.min(1,`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`)),t.minLength&&t.minLength>0&&(a=a.min(t.minLength,`${t.label||t.name} ph\u1EA3i c\xF3 \xEDt nh\u1EA5t ${t.minLength} k\xFD t\u1EF1`)),t.maxLength&&t.maxLength>0&&(a=a.max(t.maxLength,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 ${t.maxLength} k\xFD t\u1EF1`)),t.pattern&&(a=a.regex(t.pattern,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.customValidation&&(a=a.refine(t.customValidation,{message:"Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7"})),t.required||(a=a.optional()),o[t.name]=a}),vr.object(o)},Sm=e=>{let o=km(()=>tv(e),[e]),t=km(()=>{let r={};return e.forEach(n=>{n.value!==void 0?r[n.name]=n.value:r[n.name]=""}),r},[e]),a=ev({resolver:J0(o),defaultValues:t,mode:"onSubmit"});return{form:a,formData:a.watch(),errors:a.formState.errors,isValid:a.formState.isValid,isSubmitting:a.formState.isSubmitting,reset:a.reset,setValue:a.setValue,trigger:a.trigger}};import{Fragment as Dm,jsx as Pe,jsxs as Vi}from"react/jsx-runtime";var ov=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,av=({dataHeading:e,dataMedia:o,captchaComponent:t,onSubmit:a,fieldsSchema:r,loading:n=!1,onFieldChange:s,onValidationError:l,dataButtons:m,classNameMedia:c,classNameFormLead:d,classNameWrapper:p,classNameCaptcha:g})=>{let{form:v,errors:R,reset:k}=Sm(r),I=async H=>{try{s&&Object.entries(H).forEach(([A,Be])=>{s(A,Be)}),a&&await a(H,k)}catch(A){if(console.error("Form submission error:",A),l){let Be={};Object.entries(R).forEach(([Oe,wa])=>{Be[Oe]={message:wa?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(Be)}}},E=()=>{v.handleSubmit(I)()},O=()=>{let H=(m.buttons||[]).map((A,Be)=>{let Oe=A.variant==="primary";return Be===0||Oe?{...A,action:E,isLoading:n,isDisabled:n}:A});return{...m,buttons:H}},L=()=>"space-y-4",ft=()=>Pe(Dm,{children:o&&Pe(F,{className:i("mb-6 shrink-0",c),ratio:ov(o?.ratio),children:Pe("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})}),w=()=>Vi("div",{className:i("shadow-small bg-white p-8",d),children:[e&&Pe(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h2",align:e?.align||"center",sizeHeading:e?.sizeHeading||"small",colorScheme:e?.colorScheme||"black",className:"mb-6"}),Pe(ci,{...v,children:Vi("form",{onSubmit:v.handleSubmit(I),className:"space-y-6",children:[Pe("div",{className:L(),children:r.map(H=>Pe(Tm,{field:H,control:v.control},H.name))}),t&&Pe("div",{className:i("flex",g),children:t}),Pe(x,{...O()})]})})]});return Pe(Dm,{children:Vi("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",p),children:[o&&Pe("div",{className:"shrink-0",children:ft()}),Pe("div",{className:"relative mx-auto max-w-xl overflow-hidden rounded-lg",children:w()})]})})},rv=({idSection:e,background:o,className:t,...a})=>Pe(_,{className:t,idSection:e,background:o,children:Pe(av,{...a})});import sv from"color";import lv from"tailwindcss/plugin.js";var Mm={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 Im={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 Lm={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Fm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Em={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var zm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Hm={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var _m={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Bm={white:"#ffffff",black:"#000000",blue:Im,green:Am,pink:Lm,purple:Fm,red:Em,yellow:zm,gray:_m,orange:Hm};var Wi={...Bm};var Om={"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",Vm={".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 Wm={".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 $m={".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={...Wm,...Vm,...$m};import{flatten as iv}from"flat";function nv(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 jm=e=>nv(iv(e,{safe:!0,delimiter:"-"}));var mv=e=>{let o={utilities:{},colors:{}},t=jm(Wi),a=Om,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=sv(s).rgb().array(),d=`--${e}-${n}`;o.utilities[r][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[r][d]=c});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][l]=m}}),o},cv=()=>{let e="mobase",o=mv(e);return lv(({addBase:t,addUtilities:a,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...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:{...Wi,...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)`},...Mm}}})};import{Fragment as pv,jsx as M,jsxs as fv}from"react/jsx-runtime";var dv=fv(pv,{children:[M("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"}),M("meta",{name:"distribution",content:"Global"}),M("meta",{name:"author",content:"V\xED MoMo"}),M("meta",{property:"fb:app_id",content:"320653355376196"}),M("meta",{property:"fb:pages",content:"138010322921640"}),M("link",{rel:"shortcut icon",href:"/favicon.ico"}),M("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),M("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),M("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),M("meta",{name:"language",content:"vietnamese"}),M("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),M("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),M("meta",{name:"RATING",content:"GENERAL"}),M("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),M("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),M("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),M("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),M("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),M("link",{rel:"dns-prefetch",href:"//facebook.com"}),M("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),M("link",{rel:"dns-prefetch",href:"//www.google.com"}),M("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),M("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),M("link",{rel:"preconnect",href:"//connect.facebook.net"}),M("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),M("link",{rel:"preconnect",href:"//www.google-analytics.com"}),M("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),M("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),M("link",{rel:"preconnect",href:"//www.google.com"}),M("link",{rel:"preconnect",href:"//www.google.com.vn"}),M("link",{rel:"preconnect",href:"//www.googleadservices.com"}),M("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
449
449
  "@context": "https://schema.org/",
450
450
  "@type": "WebSite",
451
451
  "@id":"https://www.momo.vn/#website",
@@ -455,7 +455,7 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
455
455
  "@type": "SearchAction",
456
456
  "target": "https://www.momo.vn/tim-kiem?q={search_term_string}",
457
457
  "query-input": "required name=search_term_string"
458
- }}`}}),I("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
458
+ }}`}}),M("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
459
459
  "@context": "https://schema.org",
460
460
  "@type": "Organization",
461
461
  "name": "Si\xEAu \u1EE9ng d\u1EE5ng MoMo",
@@ -490,5 +490,5 @@ import*as Oo from"react";import{ChevronDownIcon as Xm}from"@heroicons/react/20/s
490
490
  "https://www.linkedin.com/company/momo-mservice/",
491
491
  "https://github.com/momo-wallet"
492
492
  ]
493
- }`}})]});export{ft as Accordion,vt as AccordionContent,gt as AccordionItem,ut as AccordionTrigger,Oe as ActionButton,Md as AlertDialog,In as AlertDialogAction,An as AlertDialogCancel,Tn as AlertDialogContent,Mn as AlertDialogDescription,Sn as AlertDialogFooter,kn as AlertDialogHeader,zr as AlertDialogOverlay,Rn as AlertDialogPortal,Dn as AlertDialogTitle,Id as AlertDialogTrigger,E as AspectRatio,Af as Badge,td as BlogSection,Xi as Breadcrumb,tn as BreadcrumbEllipsis,Zi as BreadcrumbItem,Ki as BreadcrumbLink,Yi as BreadcrumbList,Ji as BreadcrumbPage,en as BreadcrumbSeparator,Ie as Button,x as ButtonsBlock,ju as CTASection,Sa as Calendar,la as Callout,xs as Card,Ns as CardContent,ws as CardDescription,Ps as CardFooter,bs as CardHeader,ys as CardTitle,ge as Carousel,ue as CarouselContent,No as CarouselDots,se as CarouselItem,wo as CarouselNext,yo as CarouselPrevious,Ta as Checkbox,ja as ChoiceboxGroup,Qa as ChoiceboxGroupItem,Vs as ChoiceboxMultiItem,pf as Combobox,df as ComboboxContent,cf as ComboboxTrigger,ti as Command,sf as CommandDialog,Ts as CommandEmpty,ks as CommandGroup,Cs as CommandInput,Ds as CommandItem,Rs as CommandList,Ss as CommandSeparator,Ms as CommandShortcut,eg as Comment,yd as DatePicker,Dd as DateSelect,Be as Dialog,Ye as DialogBody,br as DialogClose,Ae as DialogContent,qi as DialogDescription,Ui as DialogFooter,vo as DialogHeader,yr as DialogOverlay,Qi as DialogPortal,Ut as DialogQr,ho as DialogTitle,Wo as DialogTrigger,lm as Drawer,um as DrawerBody,F0 as DrawerClose,cm as DrawerContent,gm as DrawerDescription,pm as DrawerFooter,dm as DrawerHeader,Ei as DrawerOverlay,mm as DrawerPortal,fm as DrawerTitle,L0 as DrawerTrigger,yg as DropdownMenu,gl as DropdownMenuCheckboxItem,pl as DropdownMenuContent,Ng as DropdownMenuGroup,fl as DropdownMenuItem,vl as DropdownMenuLabel,Pg as DropdownMenuPortal,Rg as DropdownMenuRadioGroup,ul as DropdownMenuRadioItem,hl as DropdownMenuSeparator,xl as DropdownMenuShortcut,Cg as DropdownMenuSub,dl as DropdownMenuSubContent,cl as DropdownMenuSubTrigger,wg as DropdownMenuTrigger,Iu as FAQSection,fu as FeatureSection,af as Footer,mi as Form,er as FormControl,tr as FormDescription,ci as FormField,Ka as FormItem,Ja as FormLabel,av as FormLeadSupport,or as FormMessage,Qd as GuideSection,gs as HeaderNavigation,Cr as Heading,h as HeadingBlock,Tr as HeadingGroup,Rr as HeadingSub,Pr as HeadingTagline,Vg as HeroSection,yt as HorizontalContent,Nt as HorizontalNext,wt as HorizontalPrevious,bt as HorizontalScroll,Dg as HowItWorksSection,ie as IconButton,hm as InputOTP,xm as InputOTPGroup,ym as InputOTPSeparator,bm as InputOTPSlot,ii as LightBoxGalleryContent,ri as LightboxGallery,kf as LightboxThumbnail,Zu as MetricsSection,za as NavigationMenu,Va as NavigationMenuContent,_a as NavigationMenuItem,ra as NavigationMenuLink,Ha as NavigationMenuList,Oa as NavigationMenuTrigger,Ou as NewsSection,Vn as Pagination,rm as Payment,zi as PaymentGuide,Hi as PaymentGuideDialog,e0 as PaymentInvoice,l0 as PaymentMethods,P0 as PaymentResult,u0 as PaymentResultContent,p0 as PaymentResultFooter,Qo as Popover,Co as PopoverContent,Uo as PopoverTrigger,cg as ProgressSteps,mg as ProgressStepsItem,lg as ProgressStepsItemTrigger,Us as Progressbar,X0 as QRPayment,as as RadioGroup,rs as RadioGroupItem,si as ReadMoreLite,Pf as SearchBar,H as SectionBlock,Yo as Select,To as SelectContent,Ko as SelectGroup,Lt as SelectItem,bn as SelectLabel,Fr as SelectScrollDownButton,Lr as SelectScrollUpButton,yn as SelectSeparator,Ro as SelectTrigger,Zo as SelectValue,dv as SiteMeta,Ua as Skeleton,Ys as Slider,su as SocialProofSection,ni as Spinner,Zn as Stepper,Wa as Switch,Pt as Tabs,Je as TabsContent,Ze as TabsList,Ke as TabsTrigger,Tu as TestimonialSection,Or as TextArea,fe as TextButton,Kr as TextInput,Un as ToastAction,cp as Toaster,pp as Tooltip,qn as TooltipArrow,Xn as TooltipContent,dp as TooltipProvider,fp as TooltipTrigger,M0 as Topbar,$s as badgeVariants,Xe as buttonVariants,cv as mobaseTW,Ba as navigationMenuTriggerStyle,sn as textButtonVariants,Gn as toast,da as useFormField,$r as useToast};
493
+ }`}})]});export{ut as Accordion,xt as AccordionContent,vt as AccordionItem,ht as AccordionTrigger,We as ActionButton,Id as AlertDialog,In as AlertDialogAction,An as AlertDialogCancel,Tn as AlertDialogContent,Mn as AlertDialogDescription,Sn as AlertDialogFooter,kn as AlertDialogHeader,Hr as AlertDialogOverlay,Rn as AlertDialogPortal,Dn as AlertDialogTitle,Ad as AlertDialogTrigger,F as AspectRatio,Lf as Badge,od as BlogSection,Xi as Breadcrumb,tn as BreadcrumbEllipsis,Zi as BreadcrumbItem,Ki as BreadcrumbLink,Yi as BreadcrumbList,Ji as BreadcrumbPage,en as BreadcrumbSeparator,Ie as Button,x as ButtonsBlock,Qu as CTASection,Da as Calendar,ma as Callout,xs as Card,Ns as CardContent,ws as CardDescription,Ps as CardFooter,bs as CardHeader,ys as CardTitle,fe as Carousel,ge as CarouselContent,Po as CarouselDots,se as CarouselItem,No as CarouselNext,wo as CarouselPrevious,ka as Checkbox,Qa as ChoiceboxGroup,Ua as ChoiceboxGroupItem,Vs as ChoiceboxMultiItem,ff as Combobox,pf as ComboboxContent,df as ComboboxTrigger,oi as Command,lf as CommandDialog,Ts as CommandEmpty,ks as CommandGroup,Cs as CommandInput,Ds as CommandItem,Rs as CommandList,Ss as CommandSeparator,Ms as CommandShortcut,tg as Comment,wd as DatePicker,Md as DateSelect,Ve as Dialog,Ke as DialogBody,yr as DialogClose,Ae as DialogContent,qi as DialogDescription,Ui as DialogFooter,ho as DialogHeader,wr as DialogOverlay,Qi as DialogPortal,qt as DialogQr,xo as DialogTitle,$o as DialogTrigger,lm as Drawer,um as DrawerBody,E0 as DrawerClose,cm as DrawerContent,gm as DrawerDescription,pm as DrawerFooter,dm as DrawerHeader,zi as DrawerOverlay,mm as DrawerPortal,fm as DrawerTitle,F0 as DrawerTrigger,wg as DropdownMenu,gl as DropdownMenuCheckboxItem,pl as DropdownMenuContent,Pg as DropdownMenuGroup,fl as DropdownMenuItem,vl as DropdownMenuLabel,Cg as DropdownMenuPortal,Tg as DropdownMenuRadioGroup,ul as DropdownMenuRadioItem,hl as DropdownMenuSeparator,xl as DropdownMenuShortcut,Rg as DropdownMenuSub,dl as DropdownMenuSubContent,cl as DropdownMenuSubTrigger,Ng as DropdownMenuTrigger,Au as FAQSection,gu as FeatureSection,rf as Footer,ci as Form,tr as FormControl,or as FormDescription,di as FormField,Ja as FormItem,er as FormLabel,rv as FormLeadSupport,ar as FormMessage,Ud as GuideSection,gs as HeaderNavigation,Rr as Heading,h as HeadingBlock,kr as HeadingGroup,Tr as HeadingSub,Cr as HeadingTagline,Wg as HeroSection,Nt as HorizontalContent,Ct as HorizontalNext,Pt as HorizontalPrevious,wt as HorizontalScroll,Mg as HowItWorksSection,ie as IconButton,hm as InputOTP,xm as InputOTPGroup,ym as InputOTPSeparator,bm as InputOTPSlot,ni as LightBoxGalleryContent,ii as LightboxGallery,Sf as LightboxThumbnail,Ku as MetricsSection,Ha as NavigationMenu,Wa as NavigationMenuContent,Ba as NavigationMenuItem,ia as NavigationMenuLink,_a as NavigationMenuList,Va as NavigationMenuTrigger,Vu as NewsSection,Vn as Pagination,rm as Payment,Hi as PaymentGuide,_i as PaymentGuideDialog,t0 as PaymentInvoice,m0 as PaymentMethods,C0 as PaymentResult,v0 as PaymentResultContent,f0 as PaymentResultFooter,Uo as Popover,Ro as PopoverContent,qo as PopoverTrigger,dg as ProgressSteps,cg as ProgressStepsItem,mg as ProgressStepsItemTrigger,Us as Progressbar,Y0 as QRPayment,as as RadioGroup,rs as RadioGroupItem,li as ReadMoreLite,Cf as SearchBar,_ as SectionBlock,Zo as Select,ko as SelectContent,Jo as SelectGroup,Et as SelectItem,bn as SelectLabel,Er as SelectScrollDownButton,Fr as SelectScrollUpButton,yn as SelectSeparator,To as SelectTrigger,Ko as SelectValue,dv as SiteMeta,qa as Skeleton,Ys as Slider,lu as SocialProofSection,si as Spinner,Zn as Stepper,$a as Switch,Rt as Tabs,tt as TabsContent,Je as TabsList,et as TabsTrigger,ku as TestimonialSection,Vr as TextArea,pe as TextButton,Jr as TextInput,Un as ToastAction,dp as Toaster,fp as Tooltip,qn as TooltipArrow,Xn as TooltipContent,pp as TooltipProvider,gp as TooltipTrigger,I0 as Topbar,$s as badgeVariants,Ze as buttonVariants,cv as mobaseTW,Oa as navigationMenuTriggerStyle,sn as textButtonVariants,Gn as toast,pa as useFormField,Gr as useToast};
494
494
  //# sourceMappingURL=index.js.map