@momo-webplatform/mobase 0.2.81 → 0.2.82

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 Po from"react";import{ChevronDownIcon as im}from"@heroicons/react/20/solid";import*as Te from"@radix-ui/react-accordion";import*as om from"react";import{twMerge as am}from"tailwind-merge";var rt={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 ni={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 No=[{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"}],Ua=[{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 le={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 rm}from"@artsy/fresnel";function i(...e){return am(e)}var si=rm({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Ku=si.createMediaStyle(),{Media:Oe,MediaContextProvider:oo}=si;import{jsx as ao,jsxs as nm}from"react/jsx-runtime";var it=Po.forwardRef(({className:e,...o},t)=>ao(Te.Root,{ref:t,...o}));it.displayName="AccordionRoot";var nt=Po.forwardRef(({className:e,...o},t)=>ao(Te.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));nt.displayName="AccordionItem";var st=Po.forwardRef(({className:e,children:o,...t},a)=>ao(Te.Header,{className:"flex",children:nm(Te.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,ao(im,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));st.displayName=Te.Trigger.displayName;var lt=Po.forwardRef(({className:e,children:o,...t},a)=>ao(Te.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:ao("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));lt.displayName=Te.Content.displayName;import*as li from"react";import{Slot as mm}from"@radix-ui/react-slot";import{cva as cm}from"class-variance-authority";import{jsx as ke,jsxs as lm}from"react/jsx-runtime";var sm=({className:e})=>lm("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"})]}),ro=sm;import{Fragment as pm,jsx as Qa,jsxs as dm}from"react/jsx-runtime";var We=cm("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Se=li.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?mm:"button",c=i(We({variant:o,size:t,className:e}),{"cursor-wait":r});return Qa(pm,{children:a?Qa(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):dm(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[r&&Qa(ro,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Se.displayName="Button";import*as Co from"react";import{XMarkIcon as fm}from"@heroicons/react/16/solid";import*as q from"@radix-ui/react-dialog";import{jsx as mt,jsxs as qa}from"react/jsx-runtime";var ct=q.Root,Xa=q.Trigger,mi=q.Portal,Ya=q.Close,Za=Co.forwardRef(({className:e,...o},t)=>mt(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}));Za.displayName=q.Overlay.displayName;var $e=Co.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"},f={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},v=[d.base,d[r],f[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return qa(mi,{children:[mt(Za,{}),qa(q.Content,{ref:c,className:i(...v),...m,children:[l,!t&&qa(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:[mt(fm,{className:"h-5 w-5 text-gray-700"}),mt("span",{className:"sr-only",children:"Close"})]})]})]})});$e.displayName=q.Content.displayName;var ta=({className:e,...o})=>mt("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});ta.displayName="DialogHeader";var Ct=({className:e,isCondensed:o=!1,...t})=>mt("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Ct.displayName="DialogBody";var ci=({className:e,isDivider:o=!0,...t})=>mt("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});ci.displayName="DialogFooter";var oa=Co.forwardRef(({className:e,...o},t)=>mt(q.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));oa.displayName=q.Title.displayName;var di=Co.forwardRef(({className:e,...o},t)=>mt(q.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));di.displayName=q.Description.displayName;import{QRCodeSVG as gm}from"qrcode.react";import{Fragment as Ka,jsx as R,jsxs as me}from"react/jsx-runtime";var um=({img:e="",children:o,isQrForAll:t})=>me(Ka,{children:[R("div",{className:"qrcode__scan__container",children:me("div",{className:"qrcode__scan",children:[R("div",{className:"qrcode__gradient",children:R("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),R("div",{className:"qrcode__border",children:R("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),R("div",{className:"qrcode__image p-4",children:e?R("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),R("div",{className:"mt-4 text-sm text-white",children:t?me(Ka,{children:[R("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),R("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):me(Ka,{children:[R("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:R("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",R("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),R("style",{children:`
1
+ import*as Ro from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/solid";import*as Te from"@radix-ui/react-accordion";import*as mm from"react";import{twMerge as cm}from"tailwind-merge";var rt={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 li={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 Co=[{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"}],qa=[{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 le={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 dm}from"@artsy/fresnel";function i(...e){return cm(e)}var mi=dm({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),l0=mi.createMediaStyle(),{Media:Ve,MediaContextProvider:ao}=mi;import{jsx as ro,jsxs as fm}from"react/jsx-runtime";var it=Ro.forwardRef(({className:e,...o},t)=>ro(Te.Root,{ref:t,...o}));it.displayName="AccordionRoot";var nt=Ro.forwardRef(({className:e,...o},t)=>ro(Te.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));nt.displayName="AccordionItem";var st=Ro.forwardRef(({className:e,children:o,...t},a)=>ro(Te.Header,{className:"flex",children:fm(Te.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,ro(pm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));st.displayName=Te.Trigger.displayName;var lt=Ro.forwardRef(({className:e,children:o,...t},a)=>ro(Te.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:ro("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));lt.displayName=Te.Content.displayName;import*as ci from"react";import{Slot as vm}from"@radix-ui/react-slot";import{cva as xm}from"class-variance-authority";import{jsx as ke,jsxs as um}from"react/jsx-runtime";var gm=({className:e})=>um("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"}),ke("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"})]}),io=gm;import{Fragment as hm,jsx as Xa,jsxs as bm}from"react/jsx-runtime";var We=xm("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"}}),Se=ci.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?vm:"button",c=i(We({variant:o,size:t,className:e}),{"cursor-wait":r});return Xa(hm,{children:a?Xa(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):bm(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[r&&Xa(io,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Se.displayName="Button";import*as To from"react";import{XMarkIcon as ym}from"@heroicons/react/16/solid";import*as q from"@radix-ui/react-dialog";import{jsx as mt,jsxs as Ya}from"react/jsx-runtime";var ct=q.Root,Za=q.Trigger,di=q.Portal,Ka=q.Close,Ja=To.forwardRef(({className:e,...o},t)=>mt(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}));Ja.displayName=q.Overlay.displayName;var $e=To.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"},f={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},v=[d.base,d[r],f[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return Ya(di,{children:[mt(Ja,{}),Ya(q.Content,{ref:c,className:i(...v),...m,children:[l,!t&&Ya(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:[mt(ym,{className:"h-5 w-5 text-gray-700"}),mt("span",{className:"sr-only",children:"Close"})]})]})]})});$e.displayName=q.Content.displayName;var aa=({className:e,...o})=>mt("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});aa.displayName="DialogHeader";var Ct=({className:e,isCondensed:o=!1,...t})=>mt("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Ct.displayName="DialogBody";var pi=({className:e,isDivider:o=!0,...t})=>mt("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});pi.displayName="DialogFooter";var ra=To.forwardRef(({className:e,...o},t)=>mt(q.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));ra.displayName=q.Title.displayName;var fi=To.forwardRef(({className:e,...o},t)=>mt(q.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));fi.displayName=q.Description.displayName;import{QRCodeSVG as wm}from"qrcode.react";import{Fragment as er,jsx as R,jsxs as me}from"react/jsx-runtime";var Nm=({img:e="",children:o,isQrForAll:t})=>me(er,{children:[R("div",{className:"qrcode__scan__container",children:me("div",{className:"qrcode__scan",children:[R("div",{className:"qrcode__gradient",children:R("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),R("div",{className:"qrcode__border",children:R("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),R("div",{className:"qrcode__image p-4",children:e?R("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),R("div",{className:"mt-4 text-sm text-white",children:t?me(er,{children:[R("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),R("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):me(er,{children:[R("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:R("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",R("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),R("style",{children:`
2
2
  .qrcode__scan__container {
3
3
  padding: 15px;
4
4
  background-color: white;
@@ -67,7 +67,7 @@ import*as Po from"react";import{ChevronDownIcon as im}from"@heroicons/react/20/s
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),Bt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>R(ct,{...m,children:R($e,{className:i("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:R(Ct,{className:"p-0",children:me("div",{className:"flex flex-row flex-wrap",children:[R("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||me("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),R("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"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),R("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),me("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"]})]})]})]})}),R("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:me("div",{className:"px-5 py-10 text-center",children:[t&&R("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),me("div",{className:"relative",children:[l&&R("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:R("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),R(um,{img:r,isQrForAll:l,children:n&&R(gm,{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 Nm}from"react";import{useEffect as vm,useLayoutEffect as xm,useState as bm}from"react";import hm from"ua-parser-js";var ym=()=>hm().device.type==="mobile",wm=typeof window<"u"?xm:vm,aa=()=>{let[e,o]=bm(!1);return wm(()=>{o(ym())},[]),e};import{Fragment as Pm,jsx as ra,jsxs as Cm}from"react/jsx-runtime";var He=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=Nm(!1),c=aa(),d=!!a?.qrLink,f=()=>{let H=d?a?.qrLink:e;return typeof H=="string"?H.trim():""},u=()=>{let H=f();!H&&typeof e!="function"||(typeof e=="function"?e():window.open(H,o?"_blank":"_self"))},v=(H,$=0)=>{let I=document.querySelector(H);if(!I)return;let N=I.getBoundingClientRect().top+window.scrollY-$;window.scrollTo({top:N,behavior:"smooth"})},k=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):u()},D=()=>Cm(Pm,{children:[ra(Se,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),ra(Bt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?D():ra(Se,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):D():ra(Se,{...s,onClick:k,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as io from"react";import{ChevronRightIcon as Rm,DotsHorizontalIcon as Tm}from"@radix-ui/react-icons";import{Slot as km}from"@radix-ui/react-slot";import{jsx as dt,jsxs as Sm}from"react/jsx-runtime";var pi=io.forwardRef(({className:e,...o},t)=>dt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));pi.displayName="Breadcrumb";var fi=io.forwardRef(({className:e,...o},t)=>dt("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}));fi.displayName="BreadcrumbList";var gi=io.forwardRef(({className:e,...o},t)=>dt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));gi.displayName="BreadcrumbItem";var ui=io.forwardRef(({asChild:e,className:o,...t},a)=>dt(e?km:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));ui.displayName="BreadcrumbLink";var vi=io.forwardRef(({className:e,...o},t)=>dt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));vi.displayName="BreadcrumbPage";var xi=({children:e,className:o,...t})=>dt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??dt(Rm,{className:"w-2 h-2"})});xi.displayName="BreadcrumbSeparator";var bi=({className:e,...o})=>Sm("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[dt(Tm,{className:"w-4 h-4 text-gray-900"}),dt("span",{className:"sr-only",children:"More"})]});bi.displayName="BreadcrumbElipssis";import rr from"html-react-parser";import{createContext as Dm,useContext as hi}from"react";import{jsx as Ro}from"react/jsx-runtime";var Ja=Dm({align:"center"}),er=({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 Ro("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},tr=({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}=hi(Ja);return Ro(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})},or=({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}=hi(Ja);return Ro("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})},ar=({className:e,align:o="center",children:t})=>Ro("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Ro(Ja.Provider,{value:{align:o},children:t})});import{jsx as Vt,jsxs as Mm}from"react/jsx-runtime";var B=({idSection:e,className:o,background:t,children:a})=>Vt("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Vt("div",{className:"wrapper relative",children:a})}),b=({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:Mm(ar,{align:e,className:l,children:[o&&Vt(er,{color:m,children:o}),t&&Vt(tr,{tagHeading:r,color:c,size:s,children:rr(t)}),a&&Vt(or,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:rr(a)})]})},h=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Vt("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 Vt(He,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:rr(s)},n)})});import jm,{memo as Um}from"react";import{ArrowDownIcon as Qm}from"@heroicons/react/20/solid";import qm from"html-react-parser";import{createContext as Em,useCallback as Hm,useContext as ir,useEffect as Fm,useRef as zm,useState as _m}from"react";import{ChevronLeft as Bm,ChevronRight as Vm}from"lucide-react";import*as yi from"react";import{Slot as Im}from"@radix-ui/react-slot";import{cva as Am}from"class-variance-authority";import{jsx as Lm}from"react/jsx-runtime";var Ot=Am("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=yi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Im:"button",m=i(Ot({variant:o,size:t,className:e}));return Lm(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ie.displayName="IconButton";import{Fragment as Om,jsx as Rt,jsxs as wi}from"react/jsx-runtime";var ia=Em(void 0),pt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=zm(null),[n,s]=_m({left:!1,right:!1}),l=Hm(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:f,clientWidth:u}=c;s({left:d>0,right:Math.ceil(d+u)<f})}},[]);Fm(()=>{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:f,clientWidth:u,scrollWidth:v}=d,k=u*.7*(c==="left"?-1:1),D=f+k;D<0?D=0:D>v-u&&(D=v-u),d.scrollTo({left:D,behavior:"smooth"})}};return Rt(ia.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:wi("div",{className:i("relative w-full",t),children:[e&&wi(Om,{children:[n.left&&Rt("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&&Rt("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]})})},ft=({className:e,children:o})=>{let t=ir(ia);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Rt("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},gt=({className:e,children:o,...t})=>{let a=ir(ia);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Rt(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||Rt(Bm,{className:"h-4 w-4"})}):null},ut=({className:e,children:o,...t})=>{let a=ir(ia);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Rt(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||Rt(Vm,{className:"h-4 w-4"})}):null};import*as na from"react";import*as Fe from"@radix-ui/react-tabs";import{jsx as nr}from"react/jsx-runtime";var vt=Fe.Root,Ge=na.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>nr(Fe.List,{ref:r,className:i("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Ge.displayName=Fe.List.displayName;var je=na.forwardRef(({className:e,...o},t)=>nr(Fe.Trigger,{ref:t,className:i("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));je.displayName=Fe.Trigger.displayName;var Ue=na.forwardRef(({className:e,...o},t)=>nr(Fe.Content,{ref:t,className:i("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Ue.displayName=Fe.Content.displayName;import*as Ni from"react";import{Slot as Wm}from"@radix-ui/react-slot";import{cva as $m}from"class-variance-authority";import{jsx as Gm}from"react/jsx-runtime";var Pi=$m("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"}}),ce=Ni.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Wm:"button",m=i(Pi({variant:o,size:t,className:e}));return Gm(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ce.displayName="TextButton";import{Fragment as Ci,jsx as V,jsxs as Qe}from"react/jsx-runtime";var Xm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Qe(Ci,{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:Qe("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})]})})}),Qe("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&V(ce,{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}),Qe("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&Qe(Ci,{children:[V(ce,{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})]})]})]})},sa=Um(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,f,u)=>{d?.preventDefault(),d?.stopPropagation(),a?a(f):window.open(u,"_blank")},c=(d,f)=>Qe("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((u,v)=>V("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:V("div",{onClick:k=>m(k,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:V(Xm,{blog:u})},u?.id)},v))}),d?.isShowBtn&&V("div",{className:"flex items-center justify-center w-full mt-8",children:Qe(He,{action:r?()=>r?.(f):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[qm(d.btnName||"Xem th\xEAm"),d?.isLoading?V(ro,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&V(Qm,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||f);return Qe(jm.Fragment,{children:[e&&V(b,{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?Qe(vt,{defaultValue:t[0]?.title,children:[Qe(pt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[V(ft,{className:"mb-6 text-center",children:V(Ge,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,f)=>V(je,{value:d.title,children:d.title},d.title+f))})}),V(gt,{}),V(ut,{})]}),t.map((d,f)=>V(Ue,{value:d.title,children:c(d,f)},d.title+f))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import ec,{memo as tc,useEffect as oc,useState as ki}from"react";import{ChevronLeftIcon as ac,ChevronRightIcon as rc}from"@heroicons/react/20/solid";import Si from"html-react-parser";import*as L from"react";import{ChevronLeftIcon as Ym,ChevronRightIcon as Zm}from"@heroicons/react/20/solid";import Km from"embla-carousel-react";import{Fragment as Jm,jsx as De,jsxs as Ti}from"react/jsx-runtime";var Ri=L.createContext(null);function To(){let e=L.useContext(Ri);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var he=L.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=Km({...o,axis:e==="horizontal"?"x":"y"},a),[d,f]=L.useState(!1),[u,v]=L.useState(!1),k=L.useCallback($=>{$&&(f($.canScrollPrev()),v($.canScrollNext()))},[]),D=L.useCallback(()=>{c?.scrollPrev()},[c]),M=L.useCallback(()=>{c?.scrollNext()},[c]),H=L.useCallback($=>{$.key==="ArrowLeft"?($.preventDefault(),D()):$.key==="ArrowRight"&&($.preventDefault(),M())},[D,M]);return L.useEffect(()=>{!c||!t||t(c)},[c,t]),L.useEffect(()=>{if(c)return k(c),c.on("reInit",k),c.on("select",k),()=>{c?.off("select",k)}},[c,k]),De(Ri.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:M,canScrollPrev:d,canScrollNext:u},children:De("div",{ref:l,onKeyDownCapture:H,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});he.displayName="Carousel";var ye=L.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=To();return De("div",{ref:r,className:i(o,"overflow-hidden"),children:De("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ye.displayName="CarouselContent";var we=L.forwardRef(({className:e,...o},t)=>{let{orientation:a}=To();return De("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})});we.displayName="CarouselItem";var no=L.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=To();return Ti(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:[De(Ym,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Previous slide"})]})});no.displayName="CarouselPrevious";var so=L.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=To();return Ti(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:[De(Zm,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Next slide"})]})});so.displayName="CarouselNext";var la=L.forwardRef((e,o)=>{let{api:t}=To(),[,a]=L.useState(!1),r=L.useCallback(()=>a(l=>!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?De("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>De(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))}):De(Jm,{})});la.displayName="CarouselDots";import{Fragment as ma,jsx as O,jsxs as ze}from"react/jsx-runtime";var ic=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return ze(ma,{children:[O("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:O("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),ze("div",{className:"mt-4 md:pr-3",children:[O("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&O("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:Si(e?.description??"")}),ze("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&ze(ma,{children:[O(ce,{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&&O("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&O("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},nc=({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 oc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),ze(ma,{children:[O(he,{opts:{dragFree:!1},setApi:o,className:"w-full",children:O(ye,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>O(we,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:O("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",d),children:O(ic,{blog:f})},f?.id)},f?.id))})}),s&&O("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:ze(He,{action:m&&m,newTab:c,variant:"outline",children:[Si(l||"Xem th\xEAm")," "]})})]})},sc=({carouselRef:e})=>ze(ie,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[O(ac,{className:"h-6 w-6"}),O("span",{className:"sr-only",children:"Previous slide"})]}),lc=({carouselRef:e})=>ze(ie,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[O(rc,{className:"h-6 w-6"}),O("span",{className:"sr-only",children:"Next slide"})]}),sr=tc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(c,d,f)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(f,"_blank")},[n,s]=ki(null),[,l]=ki(0),m=()=>n?ze("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[O(sc,{carouselRef:n}),O(lc,{carouselRef:n})]}):O(ma,{});return ze(ec.Fragment,{children:[ze("div",{className:" flex items-center justify-between",children:[e&&O(b,{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)}),O(m,{})]}),O(nc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as pc,jsx as lo}from"react/jsx-runtime";var mc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return lo(sa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return lo(sr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return lo(sa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},cc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>lo(pc,{children:mc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),dc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:l})=>lo(B,{className:i("overflow-hidden",a),background:r,children:lo(cc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as da from"react";import{enUS as vc,vi as xc}from"date-fns/locale";import{ChevronLeft as bc,ChevronRight as hc}from"lucide-react";import yc from"lunisolar";import{DayPicker as wc}from"react-day-picker";import*as Di from"react";import*as ko from"@radix-ui/react-checkbox";import{CheckIcon as fc}from"@heroicons/react/16/solid";import{cva as Mi}from"class-variance-authority";import{jsx as lr}from"react/jsx-runtime";var gc=Mi("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"}}),uc=Mi("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),ca=Di.forwardRef(({className:e,size:o,...t},a)=>lr(ko.Root,{ref:a,className:i(gc({size:o}),e),...t,children:lr(ko.Indicator,{className:i("flex items-center justify-center text-current"),children:lr(fc,{className:i(uc({size:o}))})})}));ca.displayName=ko.Root.displayName;import{Fragment as Tc,jsx as qe,jsxs as mr}from"react/jsx-runtime";var Nc=({date:e,cusContent:o})=>{let t=null;return t=yc(e).lunar,mr(Tc,{children:[o?o(e):e.getDate(),t&&qe("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Pc={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 Cc({isShow:e,setIsShow:o,lang:t}){let a=da.useId();return qe("div",{className:"w-full p-3 pt-0",children:mr("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[qe(ca,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),qe("label",{htmlFor:`check-show-luna-${a}`,className:"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 Rc=e=>e.getDay()===0||e.getDay()===6;function pa({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=da.useState(!0);return qe(wc,{locale:r==="vi"?xc:vc,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(We({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(We({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:Rc},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>qe(bc,{className:"h-6 w-6"}),IconRight:()=>qe(hc,{className:"h-6 w-6"}),DayContent:c=>qe(Nc,{date:c.date,cusContent:n}),Months:({children:c})=>mr("div",{className:"w-full",children:[qe("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&qe(Cc,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?Pc:{},...s})}pa.displayName="Calendar";import{QuestionMarkCircleIcon as kc,XCircleIcon as Sc}from"@heroicons/react/16/solid";import{format as fa}from"date-fns";import{Calendar as Dc}from"lucide-react";import*as Ai from"react";import*as xt from"@radix-ui/react-popover";import{jsx as Ii}from"react/jsx-runtime";var So=xt.Root,Do=xt.Trigger,mo=Ai.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>Ii(xt.Portal,{children:Ii(xt.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})}));mo.displayName=xt.Content.displayName;import{Fragment as Li,jsx as Ne,jsxs as Mo}from"react/jsx-runtime";var Mc=({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 f=c?.selected||null;return Mo("div",{children:[Mo(So,{...m,children:[Ne(Do,{asChild:!0,children:Mo(Se,{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",(!f||!(f instanceof Date)&&typeof f=="object"&&(!("from"in f)||!f.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Ne("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?fa(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?Ne(Li,{children:f.from?f.to?Mo(Li,{children:[Ne("span",{className:"date-from",children:fa(f.from,s)})," ",Ne("span",{className:"date-separator",children:"-"}),Ne("span",{className:"date-to",children:fa(f.to,s)})]}):fa(f.from,s):o}):o}),e&&Ne("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),Ne(Dc,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Ne(mo,{className:"w-auto border-none !p-0",...d,children:Ne(pa,{...c,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&Mo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?Ne(Sc,{width:16,height:16,className:"text-red-500"}):Ne(kc,{width:16,height:16,className:"text-gray-500"}),Ne("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Hc,useState as Vi}from"react";import{QuestionMarkCircleIcon as Fc,XCircleIcon as zc}from"@heroicons/react/16/solid";import{isValid as _c}from"date-fns";import*as Xe from"react";import{ChevronDownIcon as Ei,ChevronUpIcon as Ic,CheckIcon as Ac,XCircleIcon as Lc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Ec}from"@heroicons/react/24/outline";import*as C from"@radix-ui/react-select";import{jsx as W,jsxs as Io}from"react/jsx-runtime";var Ao=Xe.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Io("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&&W("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}),W(C.Root,{disabled:s,...l,children:o}),a&&Io("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?W(Lc,{width:16,height:16}):W(Ec,{width:16,height:16}),W("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Lo=C.Value,co=Xe.forwardRef(({className:e,children:o,...t},a)=>Io(C.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:[W("div",{className:"line-clamp-1 text-left",children:o}),W(C.Icon,{asChild:!0,children:W(Ei,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));co.displayName=C.Trigger.displayName;var cr=Xe.forwardRef(({className:e,...o},t)=>W(C.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:W(Ic,{className:"h-5 w-5"})}));cr.displayName=C.ScrollUpButton.displayName;var dr=Xe.forwardRef(({className:e,...o},t)=>W(C.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:W(Ei,{className:"h-5 w-5"})}));dr.displayName=C.ScrollDownButton.displayName;var po=Xe.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>W(C.Portal,{children:Io(C.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:[W(cr,{}),W(C.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),W(dr,{})]})}));po.displayName=C.Content.displayName;var Eo=Xe.forwardRef(({className:e,children:o,...t},a)=>W(C.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Hi=Xe.forwardRef(({className:e,...o},t)=>W(C.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Hi.displayName=C.Label.displayName;var Tt=Xe.forwardRef(({className:e,children:o,...t},a)=>Io(C.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:[W("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:W(C.ItemIndicator,{children:W(Ac,{className:"h-4 w-4 text-pink-500"})})}),W(C.ItemText,{children:o})]})),Fi=Xe.forwardRef(({className:e,...o},t)=>W(C.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));Fi.displayName=C.Separator.displayName;var zi=["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"],_i=["January","February","March","April","May","June","July","August","September","October","November","December"],pr=(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}},Bi=(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 Ye}from"react/jsx-runtime";var Bc=({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:f=!1})=>{let[u,v]=Vi(o??null),k=Math.min(c,d),D=Math.max(c,d),M=l==="MM/yyyy",H=(N,re)=>{if(re===0){v(void 0),t?.(void 0);return}let G=u?.getFullYear()||new Date().getFullYear(),ea=u?.getMonth()??0,_t=u?.getDate()??1;N==="month"&&re!==null&&(ea=re-1),N==="year"&&re!==null&&(G=re),M?_t=1:N==="day"&&re!==null&&(_t=re);let ii=pr(G,ea+1).daysInMonth;_t>ii&&(_t=1);let wo=new Date(G,ea,_t);_c(wo)&&(v(wo),t?.(wo))},[$,I]=Vi(!1),zt=N=>{I(N)};return Hc(()=>{v(o??null)},[o]),Ye("div",{className:i("relative",s&&"cursor-no-drop"),children:[Ye("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",$&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",u?"":"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 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),Ye("div",{className:"flex h-full flex-row divide-x",children:[!M&&Ye(Ao,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:N=>H("day",parseInt(N,10)),onOpenChange:zt,className:"w-[30%]",children:[ee(co,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Lo,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),ee(po,{onCloseAutoFocus:N=>N.preventDefault(),children:Ye(Eo,{children:[!f&&ee(Tt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:pr(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(N,re)=>(re+1).toString().padStart(2,"0")).map(N=>ee(Tt,{value:N,children:N},N))]})})]}),Ye(Ao,{value:u?(u.getMonth()+1).toString():"",onValueChange:N=>H("month",parseInt(N,10)),onOpenChange:zt,className:i(M?"w-1/2":"w-2/5"),children:[ee(co,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Lo,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),ee(po,{onCloseAutoFocus:N=>N.preventDefault(),children:Ye(Eo,{children:[!f&&ee(Tt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(N,re)=>re+1).map(N=>ee(Tt,{value:N.toString(),children:m==="vi"?zi[N-1]:_i[N-1]},N))]})})]}),Ye(Ao,{value:u?u.getFullYear().toString():"",onValueChange:N=>H("year",parseInt(N,10)),onOpenChange:zt,className:i(M?"w-1/2":"w-[30%]"),children:[ee(co,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Lo,{placeholder:m==="vi"?"N\u0103m":"Year"})}),ee(po,{onCloseAutoFocus:N=>N.preventDefault(),children:Ye(Eo,{children:[!f&&ee(Tt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Bi(k,D).map(N=>ee(Tt,{value:N.toString(),children:N},N))]})})]})]})]}),r&&Ye("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?ee(zc,{width:16,height:16,className:"text-red-500"}):ee(Fc,{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 Wt from"react";import*as F from"@radix-ui/react-alert-dialog";import{jsx as bt,jsxs as Wc}from"react/jsx-runtime";var Vc=F.Root,Oc=F.Trigger,Oi=F.Portal,fr=Wt.forwardRef(({className:e,...o},t)=>bt(F.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}));fr.displayName=F.Overlay.displayName;var Wi=Wt.forwardRef(({className:e,...o},t)=>Wc(Oi,{children:[bt(fr,{}),bt(F.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})]}));Wi.displayName=F.Content.displayName;var $i=({className:e,...o})=>bt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});$i.displayName="AlertDialogHeader";var Gi=({className:e,...o})=>bt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Gi.displayName="AlertDialogFooter";var ji=Wt.forwardRef(({className:e,...o},t)=>bt(F.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));ji.displayName=F.Title.displayName;var Ui=Wt.forwardRef(({className:e,...o},t)=>bt(F.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ui.displayName=F.Description.displayName;var Qi=Wt.forwardRef(({className:e,...o},t)=>bt(F.Action,{ref:t,className:i(We({variant:"primary"}),"",e),...o}));Qi.displayName=F.Action.displayName;var qi=Wt.forwardRef(({className:e,...o},t)=>bt(F.Cancel,{ref:t,className:i(We({variant:"secondary"}),e),...o}));qi.displayName=F.Cancel.displayName;import{memo as Zc,useState as Kc}from"react";import{useEffect as $c,useState as Yi}from"react";import Zi from"html-react-parser";import{motion as Gc}from"motion/react";import*as Xi from"@radix-ui/react-aspect-ratio";var E=Xi.Root;import{Fragment as Ki,jsx as te,jsxs as Ho}from"react/jsx-runtime";var jc=({guideGroup:e,mockup:o})=>{let[t,a]=Yi(),[r,n]=Yi(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return $c(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),te(Ki,{children:e?.stepList&&e?.stepList?.length>0&&Ho("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[te("div",{className:"h-auto w-64 flex-none",children:Ho("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"&&Ho(Ki,{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:Ho(he,{setApi:a,children:[te(ye,{className:"ml-0",children:e?.stepList.map((l,m)=>te(we,{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(no,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),te(so,{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)=>Ho("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:Zi(l.title)}),l.content&&te(Gc.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:Zi(l.content)})})]},m))})})]})})},gr=jc;import{useEffect as Uc,useRef as Qc,useState as ga}from"react";import{ChevronRightIcon as Ji}from"@heroicons/react/20/solid";import qc from"embla-carousel-autoplay";import ua from"html-react-parser";import{Fragment as ur,jsx as y,jsxs as ue}from"react/jsx-runtime";var Xc=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=ga(0),[s,l]=ga();return Uc(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:y(ct,{open:e,onOpenChange:o,children:ue($e,{position:"bottom",height:"full",children:[y(ta,{children:y(oa,{className:"line-clamp-1",children:t?.title})}),ue(Ct,{className:"grid overflow-hidden p-0 ",children:[y(he,{setApi:l,className:" grid overflow-hidden",children:y(ye,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>y(we,{className:"h-full w-full pl-0",children:ue("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:ue("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"&&ue(ur,{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})})})]})})}),ue("div",{className:"p-5 pb-12",children:[y("div",{className:"font-semibold",children:ua(m.title)}),m?.content&&y("div",{className:"mt-3 text-sm text-gray-800",children:ua(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))})]})]})})},Yc=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=ga(!1),[n,s]=ga(null),l=Qc(qc({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:ue(ur,{children:[e?.length>1?y("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>ue("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})}),ue("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:[ue("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:ua(c.title)}),c?.description&&y("div",{className:"mt-1 text-sm text-gray-500",children:ua(c.description)})]}),y("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:y(Ji,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&ue("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:ue("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"&&ue(ur,{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(he,{plugins:[l.current],children:y(ye,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>y(we,{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:ue(ce,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",y(Ji,{className:"ml-1 h-5 w-5"})]})})]}),a&&y(Xc,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},en=Yc;import{Fragment as Jc,jsx as se,jsxs as Fo}from"react/jsx-runtime";var tn=({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 se("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:se("path",{d:t.d,fill:"currentColor"})})},vr=Zc(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=Kc(t?.[0]?.title||"");return Fo(Jc,{children:[e&&se(b,{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&&Fo(oo,{children:[se(Oe,{lessThan:"md",children:se(en,{dataGuide:t,mockup:r,isStep:n})}),se(Oe,{greaterThan:"sm",children:t?.length>1?Fo(vt,{defaultValue:t[0]?.title,onValueChange:f=>d(f),children:[Fo(pt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[se(ft,{className:"mb-6 text-center",children:se(Ge,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let v=u===t.length-1,k=c===f?.title||"";return Fo(je,{value:f.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":"",k&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&se(tn,{direction:"left",className:i("right-full top-0",k?"text-pink-500":"text-pink-100")}),f.title,n&&!v&&se(tn,{direction:"right",className:i("left-full top-0",k?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),se(gt,{}),se(ut,{})]}),t.map((f,u)=>se(Ue,{value:f.title,children:se(gr,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&se(gr,{guideGroup:t[0],mockup:r})})]}),a&&se(h,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as ad,jsx as zo}from"react/jsx-runtime";var ed=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return zo(vr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return zo(vr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},td=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>zo(ad,{children:ed({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),od=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:r,background:n,template:s=1,mockup:l="default",isStep:m=!1})=>zo(B,{className:i(r),background:n,children:zo(td,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:l,isStep:m})});import{ChevronLeft as rd,ChevronRight as id}from"lucide-react";import{Fragment as nd,jsx as Me,jsxs as on}from"react/jsx-runtime";function an({current:e,total:o,onChange:t}){let a=r=>Me("li",{children:Me("button",{className:i(Ot({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return Me("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&&Me("li",{children:Me("button",{className:i(Ot({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Me(rd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):on(nd,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Me("li",{children:Me("button",{className:i(Ot({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&&Me("button",{className:i(Ot({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Me("li",{children:Me("button",{className:i(Ot({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Me(id,{className:"h-4 w-4"})})})]})})}import{forwardRef as sd}from"react";import{QuestionMarkCircleIcon as ld}from"@heroicons/react/24/outline";import{XCircleIcon as md}from"@heroicons/react/24/solid";import{jsx as fo,jsxs as rn}from"react/jsx-runtime";var cd=sd(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>rn("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&fo("span",{className:i("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),fo("textarea",{disabled:e,ref:c,className:i("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:l,...m}),t&&rn("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?fo(md,{width:16,height:16,className:"text-red-500"}):fo(ld,{width:16,height:16,className:"text-gray-500"}),fo("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),fo("style",{children:`
70
+ `})]}),Bt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>R(ct,{...m,children:R($e,{className:i("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:R(Ct,{className:"p-0",children:me("div",{className:"flex flex-row flex-wrap",children:[R("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||me("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),R("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"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),R("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),me("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"]})]})]})]})}),R("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:me("div",{className:"px-5 py-10 text-center",children:[t&&R("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),me("div",{className:"relative",children:[l&&R("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:R("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),R(Nm,{img:r,isQrForAll:l,children:n&&R(wm,{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 Dm}from"react";import{useEffect as Pm,useLayoutEffect as Cm,useState as Rm}from"react";import Tm from"ua-parser-js";var km=()=>Tm().device.type==="mobile",Sm=typeof window<"u"?Cm:Pm,ia=()=>{let[e,o]=Rm(!1);return Sm(()=>{o(km())},[]),e};import{Fragment as Mm,jsx as na,jsxs as Im}from"react/jsx-runtime";var He=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=Dm(!1),c=ia(),d=!!a?.qrLink,f=()=>{let H=d?a?.qrLink:e;return typeof H=="string"?H.trim():""},u=()=>{let H=f();!H&&typeof e!="function"||(typeof e=="function"?e():window.open(H,o?"_blank":"_self"))},v=(H,$=0)=>{let I=document.querySelector(H);if(!I)return;let N=I.getBoundingClientRect().top+window.scrollY-$;window.scrollTo({top:N,behavior:"smooth"})},k=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):u()},D=()=>Im(Mm,{children:[na(Se,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),na(Bt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?D():na(Se,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):D():na(Se,{...s,onClick:k,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as no from"react";import{ChevronRightIcon as Am,DotsHorizontalIcon as Lm}from"@radix-ui/react-icons";import{Slot as Em}from"@radix-ui/react-slot";import{jsx as dt,jsxs as Hm}from"react/jsx-runtime";var gi=no.forwardRef(({className:e,...o},t)=>dt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));gi.displayName="Breadcrumb";var ui=no.forwardRef(({className:e,...o},t)=>dt("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}));ui.displayName="BreadcrumbList";var vi=no.forwardRef(({className:e,...o},t)=>dt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));vi.displayName="BreadcrumbItem";var xi=no.forwardRef(({asChild:e,className:o,...t},a)=>dt(e?Em:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));xi.displayName="BreadcrumbLink";var bi=no.forwardRef(({className:e,...o},t)=>dt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));bi.displayName="BreadcrumbPage";var hi=({children:e,className:o,...t})=>dt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??dt(Am,{className:"w-2 h-2"})});hi.displayName="BreadcrumbSeparator";var yi=({className:e,...o})=>Hm("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[dt(Lm,{className:"w-4 h-4 text-gray-900"}),dt("span",{className:"sr-only",children:"More"})]});yi.displayName="BreadcrumbElipssis";import nr from"html-react-parser";import{createContext as Fm,useContext as wi}from"react";import{jsx as ko}from"react/jsx-runtime";var tr=Fm({align:"center"}),or=({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 ko("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},ar=({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}=wi(tr);return ko(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}=wi(tr);return ko("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})},ir=({className:e,align:o="center",children:t})=>ko("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:ko(tr.Provider,{value:{align:o},children:t})});import{jsx as Ot,jsxs as zm}from"react/jsx-runtime";var B=({idSection:e,className:o,background:t,children:a})=>Ot("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Ot("div",{className:"wrapper relative",children:a})}),b=({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:zm(ir,{align:e,className:l,children:[o&&Ot(or,{color:m,children:o}),t&&Ot(ar,{tagHeading:r,color:c,size:s,children:nr(t)}),a&&Ot(rr,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:nr(a)})]})},h=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Ot("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 Ot(He,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:nr(s)},n)})});import Km,{memo as Jm}from"react";import{ArrowDownIcon as ec}from"@heroicons/react/20/solid";import tc from"html-react-parser";import{createContext as Vm,useCallback as Wm,useContext as sr,useEffect as $m,useRef as Gm,useState as jm}from"react";import{ChevronLeft as Um,ChevronRight as Qm}from"lucide-react";import*as Ni from"react";import{Slot as _m}from"@radix-ui/react-slot";import{cva as Bm}from"class-variance-authority";import{jsx as Om}from"react/jsx-runtime";var Vt=Bm("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=Ni.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?_m:"button",m=i(Vt({variant:o,size:t,className:e}));return Om(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ie.displayName="IconButton";import{Fragment as qm,jsx as Rt,jsxs as Pi}from"react/jsx-runtime";var sa=Vm(void 0),pt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=Gm(null),[n,s]=jm({left:!1,right:!1}),l=Wm(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:f,clientWidth:u}=c;s({left:d>0,right:Math.ceil(d+u)<f})}},[]);$m(()=>{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:f,clientWidth:u,scrollWidth:v}=d,k=u*.7*(c==="left"?-1:1),D=f+k;D<0?D=0:D>v-u&&(D=v-u),d.scrollTo({left:D,behavior:"smooth"})}};return Rt(sa.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:Pi("div",{className:i("relative w-full",t),children:[e&&Pi(qm,{children:[n.left&&Rt("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&&Rt("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]})})},ft=({className:e,children:o})=>{let t=sr(sa);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Rt("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},gt=({className:e,children:o,...t})=>{let a=sr(sa);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Rt(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||Rt(Um,{className:"h-4 w-4"})}):null},ut=({className:e,children:o,...t})=>{let a=sr(sa);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Rt(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||Rt(Qm,{className:"h-4 w-4"})}):null};import*as la from"react";import*as Fe from"@radix-ui/react-tabs";import{jsx as lr}from"react/jsx-runtime";var vt=Fe.Root,Ge=la.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>lr(Fe.List,{ref:r,className:i("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Ge.displayName=Fe.List.displayName;var je=la.forwardRef(({className:e,...o},t)=>lr(Fe.Trigger,{ref:t,className:i("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));je.displayName=Fe.Trigger.displayName;var Ue=la.forwardRef(({className:e,...o},t)=>lr(Fe.Content,{ref:t,className:i("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Ue.displayName=Fe.Content.displayName;import*as Ci from"react";import{Slot as Xm}from"@radix-ui/react-slot";import{cva as Ym}from"class-variance-authority";import{jsx as Zm}from"react/jsx-runtime";var Ri=Ym("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"}}),ce=Ci.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Xm:"button",m=i(Ri({variant:o,size:t,className:e}));return Zm(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ce.displayName="TextButton";import{Fragment as Ti,jsx as O,jsxs as Qe}from"react/jsx-runtime";var oc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Qe(Ti,{children:[O("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:O("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Qe("picture",{children:[O("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),O("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Qe("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&O(ce,{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}),O("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}),Qe("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&Qe(Ti,{children:[O(ce,{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&&O("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&O("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},ma=Jm(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,f,u)=>{d?.preventDefault(),d?.stopPropagation(),a?a(f):window.open(u,"_blank")},c=(d,f)=>Qe("div",{children:[O("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((u,v)=>O("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:O("div",{onClick:k=>m(k,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:O(oc,{blog:u})},u?.id)},v))}),d?.isShowBtn&&O("div",{className:"flex items-center justify-center w-full mt-8",children:Qe(He,{action:r?()=>r?.(f):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[tc(d.btnName||"Xem th\xEAm"),d?.isLoading?O(io,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&O(ec,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||f);return Qe(Km.Fragment,{children:[e&&O(b,{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?Qe(vt,{defaultValue:t[0]?.title,children:[Qe(pt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[O(ft,{className:"mb-6 text-center",children:O(Ge,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,f)=>O(je,{value:d.title,children:d.title},d.title+f))})}),O(gt,{}),O(ut,{})]}),t.map((d,f)=>O(Ue,{value:d.title,children:c(d,f)},d.title+f))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import sc,{memo as lc,useEffect as mc,useState as Di}from"react";import{ChevronLeftIcon as cc,ChevronRightIcon as dc}from"@heroicons/react/20/solid";import Mi from"html-react-parser";import*as L from"react";import{ChevronLeftIcon as ac,ChevronRightIcon as rc}from"@heroicons/react/20/solid";import ic from"embla-carousel-react";import{Fragment as nc,jsx as De,jsxs as Si}from"react/jsx-runtime";var ki=L.createContext(null);function So(){let e=L.useContext(ki);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var he=L.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=ic({...o,axis:e==="horizontal"?"x":"y"},a),[d,f]=L.useState(!1),[u,v]=L.useState(!1),k=L.useCallback($=>{$&&(f($.canScrollPrev()),v($.canScrollNext()))},[]),D=L.useCallback(()=>{c?.scrollPrev()},[c]),M=L.useCallback(()=>{c?.scrollNext()},[c]),H=L.useCallback($=>{$.key==="ArrowLeft"?($.preventDefault(),D()):$.key==="ArrowRight"&&($.preventDefault(),M())},[D,M]);return L.useEffect(()=>{!c||!t||t(c)},[c,t]),L.useEffect(()=>{if(c)return k(c),c.on("reInit",k),c.on("select",k),()=>{c?.off("select",k)}},[c,k]),De(ki.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:M,canScrollPrev:d,canScrollNext:u},children:De("div",{ref:l,onKeyDownCapture:H,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});he.displayName="Carousel";var ye=L.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=So();return De("div",{ref:r,className:i(o,"overflow-hidden"),children:De("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ye.displayName="CarouselContent";var we=L.forwardRef(({className:e,...o},t)=>{let{orientation:a}=So();return De("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})});we.displayName="CarouselItem";var so=L.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=So();return Si(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:[De(ac,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Previous slide"})]})});so.displayName="CarouselPrevious";var lo=L.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=So();return Si(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:[De(rc,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Next slide"})]})});lo.displayName="CarouselNext";var ca=L.forwardRef((e,o)=>{let{api:t}=So(),[,a]=L.useState(!1),r=L.useCallback(()=>a(l=>!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?De("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>De(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))}):De(nc,{})});ca.displayName="CarouselDots";import{Fragment as da,jsx as V,jsxs as ze}from"react/jsx-runtime";var pc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return ze(da,{children:[V("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:V("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),ze("div",{className:"mt-4 md:pr-3",children:[V("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&V("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:Mi(e?.description??"")}),ze("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&ze(da,{children:[V(ce,{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&&V("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&V("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},fc=({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 mc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),ze(da,{children:[V(he,{opts:{dragFree:!1},setApi:o,className:"w-full",children:V(ye,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>V(we,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:V("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",d),children:V(pc,{blog:f})},f?.id)},f?.id))})}),s&&V("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:ze(He,{action:m&&m,newTab:c,variant:"outline",children:[Mi(l||"Xem th\xEAm")," "]})})]})},gc=({carouselRef:e})=>ze(ie,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[V(cc,{className:"h-6 w-6"}),V("span",{className:"sr-only",children:"Previous slide"})]}),uc=({carouselRef:e})=>ze(ie,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[V(dc,{className:"h-6 w-6"}),V("span",{className:"sr-only",children:"Next slide"})]}),mr=lc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(c,d,f)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(f,"_blank")},[n,s]=Di(null),[,l]=Di(0),m=()=>n?ze("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[V(gc,{carouselRef:n}),V(uc,{carouselRef:n})]}):V(da,{});return ze(sc.Fragment,{children:[ze("div",{className:" flex items-center justify-between",children:[e&&V(b,{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)}),V(m,{})]}),V(fc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as hc,jsx as mo}from"react/jsx-runtime";var vc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return mo(ma,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return mo(mr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return mo(ma,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},xc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>mo(hc,{children:vc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),bc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:l})=>mo(B,{className:i("overflow-hidden",a),background:r,children:mo(xc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as fa from"react";import{enUS as Pc,vi as Cc}from"date-fns/locale";import{ChevronLeft as Rc,ChevronRight as Tc}from"lucide-react";import kc from"lunisolar";import{DayPicker as Sc}from"react-day-picker";import*as Ii from"react";import*as Do from"@radix-ui/react-checkbox";import{CheckIcon as yc}from"@heroicons/react/16/solid";import{cva as Ai}from"class-variance-authority";import{jsx as cr}from"react/jsx-runtime";var wc=Ai("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"}}),Nc=Ai("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),pa=Ii.forwardRef(({className:e,size:o,...t},a)=>cr(Do.Root,{ref:a,className:i(wc({size:o}),e),...t,children:cr(Do.Indicator,{className:i("flex items-center justify-center text-current"),children:cr(yc,{className:i(Nc({size:o}))})})}));pa.displayName=Do.Root.displayName;import{Fragment as Lc,jsx as qe,jsxs as dr}from"react/jsx-runtime";var Dc=({date:e,cusContent:o})=>{let t=null;return t=kc(e).lunar,dr(Lc,{children:[o?o(e):e.getDate(),t&&qe("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Mc={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 Ic({isShow:e,setIsShow:o,lang:t}){let a=fa.useId();return qe("div",{className:"w-full p-3 pt-0",children:dr("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[qe(pa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),qe("label",{htmlFor:`check-show-luna-${a}`,className:"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 Ac=e=>e.getDay()===0||e.getDay()===6;function ga({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=fa.useState(!0);return qe(Sc,{locale:r==="vi"?Cc:Pc,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(We({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(We({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:Ac},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>qe(Rc,{className:"h-6 w-6"}),IconRight:()=>qe(Tc,{className:"h-6 w-6"}),DayContent:c=>qe(Dc,{date:c.date,cusContent:n}),Months:({children:c})=>dr("div",{className:"w-full",children:[qe("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&qe(Ic,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?Mc:{},...s})}ga.displayName="Calendar";import{QuestionMarkCircleIcon as Ec,XCircleIcon as Hc}from"@heroicons/react/16/solid";import{format as ua}from"date-fns";import{Calendar as Fc}from"lucide-react";import*as Ei from"react";import*as xt from"@radix-ui/react-popover";import{jsx as Li}from"react/jsx-runtime";var Mo=xt.Root,Io=xt.Trigger,co=Ei.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>Li(xt.Portal,{children:Li(xt.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=xt.Content.displayName;import{Fragment as Hi,jsx as Ne,jsxs as Ao}from"react/jsx-runtime";var zc=({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 f=c?.selected||null;return Ao("div",{children:[Ao(Mo,{...m,children:[Ne(Io,{asChild:!0,children:Ao(Se,{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",(!f||!(f instanceof Date)&&typeof f=="object"&&(!("from"in f)||!f.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Ne("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?ua(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?Ne(Hi,{children:f.from?f.to?Ao(Hi,{children:[Ne("span",{className:"date-from",children:ua(f.from,s)})," ",Ne("span",{className:"date-separator",children:"-"}),Ne("span",{className:"date-to",children:ua(f.to,s)})]}):ua(f.from,s):o}):o}),e&&Ne("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),Ne(Fc,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Ne(co,{className:"w-auto border-none !p-0",...d,children:Ne(ga,{...c,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&Ao("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?Ne(Hc,{width:16,height:16,className:"text-red-500"}):Ne(Ec,{width:16,height:16,className:"text-gray-500"}),Ne("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Wc,useState as Wi}from"react";import{QuestionMarkCircleIcon as $c,XCircleIcon as Gc}from"@heroicons/react/16/solid";import{isValid as jc}from"date-fns";import*as Xe from"react";import{ChevronDownIcon as Fi,ChevronUpIcon as _c,CheckIcon as Bc,XCircleIcon as Oc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Vc}from"@heroicons/react/24/outline";import*as C from"@radix-ui/react-select";import{jsx as W,jsxs as Lo}from"react/jsx-runtime";var Eo=Xe.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Lo("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&&W("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}),W(C.Root,{disabled:s,...l,children:o}),a&&Lo("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?W(Oc,{width:16,height:16}):W(Vc,{width:16,height:16}),W("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Ho=C.Value,po=Xe.forwardRef(({className:e,children:o,...t},a)=>Lo(C.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:[W("div",{className:"line-clamp-1 text-left",children:o}),W(C.Icon,{asChild:!0,children:W(Fi,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));po.displayName=C.Trigger.displayName;var pr=Xe.forwardRef(({className:e,...o},t)=>W(C.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:W(_c,{className:"h-5 w-5"})}));pr.displayName=C.ScrollUpButton.displayName;var fr=Xe.forwardRef(({className:e,...o},t)=>W(C.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:W(Fi,{className:"h-5 w-5"})}));fr.displayName=C.ScrollDownButton.displayName;var fo=Xe.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>W(C.Portal,{children:Lo(C.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:[W(pr,{}),W(C.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),W(fr,{})]})}));fo.displayName=C.Content.displayName;var Fo=Xe.forwardRef(({className:e,children:o,...t},a)=>W(C.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),zi=Xe.forwardRef(({className:e,...o},t)=>W(C.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));zi.displayName=C.Label.displayName;var Tt=Xe.forwardRef(({className:e,children:o,...t},a)=>Lo(C.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:[W("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:W(C.ItemIndicator,{children:W(Bc,{className:"h-4 w-4 text-pink-500"})})}),W(C.ItemText,{children:o})]})),_i=Xe.forwardRef(({className:e,...o},t)=>W(C.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));_i.displayName=C.Separator.displayName;var Bi=["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"],Oi=["January","February","March","April","May","June","July","August","September","October","November","December"],gr=(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}},Vi=(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 Ye}from"react/jsx-runtime";var Uc=({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:f=!1})=>{let[u,v]=Wi(o??null),k=Math.min(c,d),D=Math.max(c,d),M=l==="MM/yyyy",H=(N,re)=>{if(re===0){v(void 0),t?.(void 0);return}let G=u?.getFullYear()||new Date().getFullYear(),oa=u?.getMonth()??0,_t=u?.getDate()??1;N==="month"&&re!==null&&(oa=re-1),N==="year"&&re!==null&&(G=re),M?_t=1:N==="day"&&re!==null&&(_t=re);let si=gr(G,oa+1).daysInMonth;_t>si&&(_t=1);let Po=new Date(G,oa,_t);jc(Po)&&(v(Po),t?.(Po))},[$,I]=Wi(!1),zt=N=>{I(N)};return Wc(()=>{v(o??null)},[o]),Ye("div",{className:i("relative",s&&"cursor-no-drop"),children:[Ye("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",$&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",u?"":"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 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),Ye("div",{className:"flex h-full flex-row divide-x",children:[!M&&Ye(Eo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:N=>H("day",parseInt(N,10)),onOpenChange:zt,className:"w-[30%]",children:[ee(po,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Ho,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),ee(fo,{onCloseAutoFocus:N=>N.preventDefault(),children:Ye(Fo,{children:[!f&&ee(Tt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:gr(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(N,re)=>(re+1).toString().padStart(2,"0")).map(N=>ee(Tt,{value:N,children:N},N))]})})]}),Ye(Eo,{value:u?(u.getMonth()+1).toString():"",onValueChange:N=>H("month",parseInt(N,10)),onOpenChange:zt,className:i(M?"w-1/2":"w-2/5"),children:[ee(po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Ho,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),ee(fo,{onCloseAutoFocus:N=>N.preventDefault(),children:Ye(Fo,{children:[!f&&ee(Tt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(N,re)=>re+1).map(N=>ee(Tt,{value:N.toString(),children:m==="vi"?Bi[N-1]:Oi[N-1]},N))]})})]}),Ye(Eo,{value:u?u.getFullYear().toString():"",onValueChange:N=>H("year",parseInt(N,10)),onOpenChange:zt,className:i(M?"w-1/2":"w-[30%]"),children:[ee(po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Ho,{placeholder:m==="vi"?"N\u0103m":"Year"})}),ee(fo,{onCloseAutoFocus:N=>N.preventDefault(),children:Ye(Fo,{children:[!f&&ee(Tt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Vi(k,D).map(N=>ee(Tt,{value:N.toString(),children:N},N))]})})]})]})]}),r&&Ye("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?ee(Gc,{width:16,height:16,className:"text-red-500"}):ee($c,{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 Wt from"react";import*as F from"@radix-ui/react-alert-dialog";import{jsx as bt,jsxs as Xc}from"react/jsx-runtime";var Qc=F.Root,qc=F.Trigger,$i=F.Portal,ur=Wt.forwardRef(({className:e,...o},t)=>bt(F.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}));ur.displayName=F.Overlay.displayName;var Gi=Wt.forwardRef(({className:e,...o},t)=>Xc($i,{children:[bt(ur,{}),bt(F.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})]}));Gi.displayName=F.Content.displayName;var ji=({className:e,...o})=>bt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});ji.displayName="AlertDialogHeader";var Ui=({className:e,...o})=>bt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Ui.displayName="AlertDialogFooter";var Qi=Wt.forwardRef(({className:e,...o},t)=>bt(F.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Qi.displayName=F.Title.displayName;var qi=Wt.forwardRef(({className:e,...o},t)=>bt(F.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));qi.displayName=F.Description.displayName;var Xi=Wt.forwardRef(({className:e,...o},t)=>bt(F.Action,{ref:t,className:i(We({variant:"primary"}),"",e),...o}));Xi.displayName=F.Action.displayName;var Yi=Wt.forwardRef(({className:e,...o},t)=>bt(F.Cancel,{ref:t,className:i(We({variant:"secondary"}),e),...o}));Yi.displayName=F.Cancel.displayName;import{memo as rd,useState as id}from"react";import{useEffect as Yc,useState as Ki}from"react";import Ji from"html-react-parser";import{motion as Zc}from"motion/react";import*as Zi from"@radix-ui/react-aspect-ratio";var E=Zi.Root;import{Fragment as en,jsx as te,jsxs as zo}from"react/jsx-runtime";var Kc=({guideGroup:e,mockup:o})=>{let[t,a]=Ki(),[r,n]=Ki(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Yc(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),te(en,{children:e?.stepList&&e?.stepList?.length>0&&zo("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[te("div",{className:"h-auto w-64 flex-none",children:zo("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"&&zo(en,{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:zo(he,{setApi:a,children:[te(ye,{className:"ml-0",children:e?.stepList.map((l,m)=>te(we,{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(so,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),te(lo,{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)=>zo("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:Ji(l.title)}),l.content&&te(Zc.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:Ji(l.content)})})]},m))})})]})})},vr=Kc;import{useEffect as Jc,useRef as ed,useState as va}from"react";import{ChevronRightIcon as tn}from"@heroicons/react/20/solid";import td from"embla-carousel-autoplay";import xa from"html-react-parser";import{Fragment as xr,jsx as y,jsxs as ue}from"react/jsx-runtime";var od=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=va(0),[s,l]=va();return Jc(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:y(ct,{open:e,onOpenChange:o,children:ue($e,{position:"bottom",height:"full",children:[y(aa,{children:y(ra,{className:"line-clamp-1",children:t?.title})}),ue(Ct,{className:"grid overflow-hidden p-0 ",children:[y(he,{setApi:l,className:" grid overflow-hidden",children:y(ye,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>y(we,{className:"h-full w-full pl-0",children:ue("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:ue("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"&&ue(xr,{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})})})]})})}),ue("div",{className:"p-5 pb-12",children:[y("div",{className:"font-semibold",children:xa(m.title)}),m?.content&&y("div",{className:"mt-3 text-sm text-gray-800",children:xa(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))})]})]})})},ad=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=va(!1),[n,s]=va(null),l=ed(td({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:ue(xr,{children:[e?.length>1?y("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>ue("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})}),ue("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:[ue("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:xa(c.title)}),c?.description&&y("div",{className:"mt-1 text-sm text-gray-500",children:xa(c.description)})]}),y("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:y(tn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&ue("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:ue("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"&&ue(xr,{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(he,{plugins:[l.current],children:y(ye,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>y(we,{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:ue(ce,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",y(tn,{className:"ml-1 h-5 w-5"})]})})]}),a&&y(od,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},on=ad;import{Fragment as nd,jsx as se,jsxs as _o}from"react/jsx-runtime";var an=({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 se("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:se("path",{d:t.d,fill:"currentColor"})})},br=rd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=id(t?.[0]?.title||"");return _o(nd,{children:[e&&se(b,{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&&_o(ao,{children:[se(Ve,{lessThan:"md",children:se(on,{dataGuide:t,mockup:r,isStep:n})}),se(Ve,{greaterThan:"sm",children:t?.length>1?_o(vt,{defaultValue:t[0]?.title,onValueChange:f=>d(f),children:[_o(pt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[se(ft,{className:"mb-6 text-center",children:se(Ge,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let v=u===t.length-1,k=c===f?.title||"";return _o(je,{value:f.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":"",k&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&se(an,{direction:"left",className:i("right-full top-0",k?"text-pink-500":"text-pink-100")}),f.title,n&&!v&&se(an,{direction:"right",className:i("left-full top-0",k?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),se(gt,{}),se(ut,{})]}),t.map((f,u)=>se(Ue,{value:f.title,children:se(vr,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&se(vr,{guideGroup:t[0],mockup:r})})]}),a&&se(h,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as cd,jsx as Bo}from"react/jsx-runtime";var sd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return Bo(br,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return Bo(br,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},ld=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>Bo(cd,{children:sd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),md=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:r,background:n,template:s=1,mockup:l="default",isStep:m=!1})=>Bo(B,{className:i(r),background:n,children:Bo(ld,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:l,isStep:m})});import{ChevronLeft as dd,ChevronRight as pd}from"lucide-react";import{Fragment as fd,jsx as Me,jsxs as rn}from"react/jsx-runtime";function nn({current:e,total:o,onChange:t}){let a=r=>Me("li",{children:Me("button",{className:i(Vt({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return Me("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:rn("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Me("li",{children:Me("button",{className:i(Vt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Me(dd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):rn(fd,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Me("li",{children:Me("button",{className:i(Vt({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&&Me("button",{className:i(Vt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Me("li",{children:Me("button",{className:i(Vt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Me(pd,{className:"h-4 w-4"})})})]})})}import{forwardRef as gd}from"react";import{QuestionMarkCircleIcon as ud}from"@heroicons/react/24/outline";import{XCircleIcon as vd}from"@heroicons/react/24/solid";import{jsx as go,jsxs as sn}from"react/jsx-runtime";var xd=gd(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>sn("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&go("span",{className:i("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),go("textarea",{disabled:e,ref:c,className:i("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:l,...m}),t&&sn("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?go(vd,{width:16,height:16,className:"text-red-500"}):go(ud,{width:16,height:16,className:"text-gray-500"}),go("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),go("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 Po from"react";import{ChevronDownIcon as im}from"@heroicons/react/20/s
94
94
  color: rgb(var(--mobase-red-500) / 1);
95
95
  }
96
96
  }
97
- `})]}));import*as ba from"react";var dd=1,pd=1e6;var xr=0;function fd(){return xr=(xr+1)%Number.MAX_SAFE_INTEGER,xr.toString()}var br=new Map,nn=e=>{if(br.has(e))return;let o=setTimeout(()=>{br.delete(e),_o({type:"REMOVE_TOAST",toastId:e})},pd);br.set(e,o)},gd=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,dd)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===o.toast.id?{...t,...o.toast}:t)};case"DISMISS_TOAST":{let{toastId:t}=o;return t?nn(t):e.toasts.forEach(a=>{nn(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}},va=[],xa={toasts:[]};function _o(e){xa=gd(xa,e),va.forEach(o=>{o(xa)})}function sn({...e}){let o=fd(),t=r=>_o({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>_o({type:"DISMISS_TOAST",toastId:o});return _o({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function hr(){let[e,o]=ba.useState(xa);return ba.useEffect(()=>(va.push(o),()=>{let t=va.indexOf(o);t>-1&&va.splice(t,1)}),[e]),{...e,toast:sn,dismiss:t=>_o({type:"DISMISS_TOAST",toastId:t})}}import*as $t from"react";import{CheckCircleIcon as ud,ExclamationTriangleIcon as vd,InformationCircleIcon as xd,XMarkIcon as bd}from"@heroicons/react/20/solid";import*as Y from"@radix-ui/react-toast";import{cva as hd}from"class-variance-authority";import{jsx as ht,jsxs as ln}from"react/jsx-runtime";var mn=Y.Provider,yr=$t.forwardRef(({className:e,...o},t)=>ht(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}));yr.displayName=Y.Viewport.displayName;var yd=hd("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"}}),wr=$t.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>ln(Y.Root,{ref:r,className:i(yd({variant:o}),e),...a,children:[ln("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&ht(ud,{className:"h-5 w-5 text-green-500"}),o==="warning"&&ht(vd,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&ht(xd,{className:"h-5 w-5 text-red-500"})]}),t]}));wr.displayName=Y.Root.displayName;var cn=$t.forwardRef(({className:e,...o},t)=>ht(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}));cn.displayName=Y.Action.displayName;var Nr=$t.forwardRef(({className:e,...o},t)=>ht(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:ht(bd,{className:"h-5 w-5"})}));Nr.displayName=Y.Close.displayName;var Pr=$t.forwardRef(({className:e,...o},t)=>ht(Y.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));Pr.displayName=Y.Title.displayName;var Cr=$t.forwardRef(({className:e,...o},t)=>ht(Y.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));Cr.displayName=Y.Description.displayName;import{jsx as ha,jsxs as Rr}from"react/jsx-runtime";function wd(){let{toasts:e}=hr();return Rr(mn,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return Rr(wr,{...n,children:[Rr("div",{className:"grid gap-2",children:[t&&ha(Pr,{children:t}),a&&ha(Cr,{children:a})]}),r,ha(Nr,{})]},o)}),ha(yr,{})]})}import*as Tr from"react";import*as Ie from"@radix-ui/react-tooltip";import{jsx as fn}from"react/jsx-runtime";var Nd=Ie.Provider,Pd=Ie.Root,Cd=Ie.Trigger,dn=Tr.forwardRef((e,o)=>fn(Ie.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));dn.displayName=Ie.Arrow.displayName;var pn=Tr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>fn(Ie.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}));pn.displayName=Ie.Content.displayName;import{forwardRef as Rd,useEffect as Td,useRef as kd,useState as Sd}from"react";import{QuestionMarkCircleIcon as Dd,XCircleIcon as Md,XCircleIcon as Id}from"@heroicons/react/16/solid";import{jsx as kt,jsxs as kr}from"react/jsx-runtime";var Ad=Rd(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:c,onClickClear:d,value:f,defaultValue:u,type:v="text",...k},D)=>{let[M,H]=Sd(!1),$=kd(null),I=G=>{G&&!M&&H(!0),!G&&M&&H(!1)},zt=G=>{s&&I(G.target.value),m?.(G)},N=G=>{s&&I(G.target.value),c?.(G)},re=()=>{let G=$.current?.querySelector("input");G&&(d?.(G.value),G.value="",G.focus(),H(!1))};return Td(()=>{I(u||f)},[f,u]),kr("div",{className:i(r,o&&"mobase-text-input-error"),ref:$,children:[kr("div",{className:"relative",children:[a&&kt("span",{className:i("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),kt("input",{disabled:e,type:v,ref:D,className:i("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",l===2&&"h-12 text-base",n),onChange:zt,onFocus:N,value:f,defaultValue:u,...k}),s&&M&&kt("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:re,children:kt(Md,{strokeWidth:2,width:20,height:20})})]}),t&&kr("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?kt(Id,{width:16,height:16,className:"text-red-500"}):kt(Dd,{width:16,height:16,className:"text-gray-500"}),kt("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),kt("style",{children:`
97
+ `})]}));import*as ya from"react";var bd=1,hd=1e6;var hr=0;function yd(){return hr=(hr+1)%Number.MAX_SAFE_INTEGER,hr.toString()}var yr=new Map,ln=e=>{if(yr.has(e))return;let o=setTimeout(()=>{yr.delete(e),Oo({type:"REMOVE_TOAST",toastId:e})},hd);yr.set(e,o)},wd=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,bd)};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?ln(t):e.toasts.forEach(a=>{ln(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}},ba=[],ha={toasts:[]};function Oo(e){ha=wd(ha,e),ba.forEach(o=>{o(ha)})}function mn({...e}){let o=yd(),t=r=>Oo({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>Oo({type:"DISMISS_TOAST",toastId:o});return Oo({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function wr(){let[e,o]=ya.useState(ha);return ya.useEffect(()=>(ba.push(o),()=>{let t=ba.indexOf(o);t>-1&&ba.splice(t,1)}),[e]),{...e,toast:mn,dismiss:t=>Oo({type:"DISMISS_TOAST",toastId:t})}}import*as $t from"react";import{CheckCircleIcon as Nd,ExclamationTriangleIcon as Pd,InformationCircleIcon as Cd,XMarkIcon as Rd}from"@heroicons/react/20/solid";import*as Y from"@radix-ui/react-toast";import{cva as Td}from"class-variance-authority";import{jsx as ht,jsxs as cn}from"react/jsx-runtime";var dn=Y.Provider,Nr=$t.forwardRef(({className:e,...o},t)=>ht(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}));Nr.displayName=Y.Viewport.displayName;var kd=Td("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"}}),Pr=$t.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>cn(Y.Root,{ref:r,className:i(kd({variant:o}),e),...a,children:[cn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&ht(Nd,{className:"h-5 w-5 text-green-500"}),o==="warning"&&ht(Pd,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&ht(Cd,{className:"h-5 w-5 text-red-500"})]}),t]}));Pr.displayName=Y.Root.displayName;var pn=$t.forwardRef(({className:e,...o},t)=>ht(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}));pn.displayName=Y.Action.displayName;var Cr=$t.forwardRef(({className:e,...o},t)=>ht(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:ht(Rd,{className:"h-5 w-5"})}));Cr.displayName=Y.Close.displayName;var Rr=$t.forwardRef(({className:e,...o},t)=>ht(Y.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));Rr.displayName=Y.Title.displayName;var Tr=$t.forwardRef(({className:e,...o},t)=>ht(Y.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));Tr.displayName=Y.Description.displayName;import{jsx as wa,jsxs as kr}from"react/jsx-runtime";function Sd(){let{toasts:e}=wr();return kr(dn,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return kr(Pr,{...n,children:[kr("div",{className:"grid gap-2",children:[t&&wa(Rr,{children:t}),a&&wa(Tr,{children:a})]}),r,wa(Cr,{})]},o)}),wa(Nr,{})]})}import*as Sr from"react";import*as Ie from"@radix-ui/react-tooltip";import{jsx as un}from"react/jsx-runtime";var Dd=Ie.Provider,Md=Ie.Root,Id=Ie.Trigger,fn=Sr.forwardRef((e,o)=>un(Ie.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));fn.displayName=Ie.Arrow.displayName;var gn=Sr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>un(Ie.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}));gn.displayName=Ie.Content.displayName;import{forwardRef as Ad,useEffect as Ld,useRef as Ed,useState as Hd}from"react";import{QuestionMarkCircleIcon as Fd,XCircleIcon as zd,XCircleIcon as _d}from"@heroicons/react/16/solid";import{jsx as kt,jsxs as Dr}from"react/jsx-runtime";var Bd=Ad(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:c,onClickClear:d,value:f,defaultValue:u,type:v="text",...k},D)=>{let[M,H]=Hd(!1),$=Ed(null),I=G=>{G&&!M&&H(!0),!G&&M&&H(!1)},zt=G=>{s&&I(G.target.value),m?.(G)},N=G=>{s&&I(G.target.value),c?.(G)},re=()=>{let G=$.current?.querySelector("input");G&&(d?.(G.value),G.value="",G.focus(),H(!1))};return Ld(()=>{I(u||f)},[f,u]),Dr("div",{className:i(r,o&&"mobase-text-input-error"),ref:$,children:[Dr("div",{className:"relative",children:[a&&kt("span",{className:i("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),kt("input",{disabled:e,type:v,ref:D,className:i("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",l===2&&"h-12 text-base",n),onChange:zt,onFocus:N,value:f,defaultValue:u,...k}),s&&M&&kt("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:re,children:kt(zd,{strokeWidth:2,width:20,height:20})})]}),t&&Dr("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?kt(_d,{width:16,height:16,className:"text-red-500"}):kt(Fd,{width:16,height:16,className:"text-gray-500"}),kt("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),kt("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 Po from"react";import{ChevronDownIcon as im}from"@heroicons/react/20/s
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});import{MinusCircleIcon as Ld,PlusCircleIcon as Ed}from"@heroicons/react/24/outline";import{forwardRef as Hd,useState as Fd}from"react";import{jsx as Bo,jsxs as Sr}from"react/jsx-runtime";var gn=Hd(({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[f,u]=Fd(r),v=()=>{let M=Math.min(f+a,t);u(M),n?.(M),l?.(M)},k=()=>{let M=Math.max(f-a,o);u(M),n?.(M),s?.(M)},D=M=>{let H=parseFloat(M.target.value);if(!isNaN(H)){let $=Math.max(Math.min(H,t),o);u($),n?.($)}};return Sr("div",{ref:d,className:i("flex items-center ",e),children:[Sr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:k,disabled:m||f<=o,children:[Bo(Ld,{className:"w-7 h-7 "}),Bo("span",{className:"sr-only",children:"Decrease value"})]}),Bo("input",{type:"number",value:f,onChange:D,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}),Sr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:v,disabled:m||f>=t,children:[Bo(Ed,{className:"w-7 h-7 "}),Bo("span",{className:"sr-only",children:"Increase value"})]})]})});gn.displayName="Stepper";import*as _e from"react";import*as j from"@radix-ui/react-navigation-menu";import{cva as zd}from"class-variance-authority";import{ChevronDownIcon as _d}from"@heroicons/react/16/solid";import{jsx as Ze,jsxs as $d}from"react/jsx-runtime";var un=_e.createContext(null),Bd=({value:e,children:o})=>Ze(un.Provider,{value:e,children:o}),Vd=()=>{let e=_e.useContext(un);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},ya=_e.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>Ze(Bd,{value:{alignDropdown:t},children:Ze(j.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));ya.displayName=j.Root.displayName;var wa=_e.forwardRef(({className:e,...o},t)=>Ze(j.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));wa.displayName=j.List.displayName;var Na=j.Item,Pa=zd(We({variant:"transparent",size:"sm"})),Ca=_e.forwardRef(({className:e,children:o,...t},a)=>$d(j.Trigger,{ref:a,className:i(Pa(),"group px-2",e),...t,children:[o," ",Ze(_d,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Ca.displayName=j.Trigger.displayName;var Ra=_e.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Vd();return Ze(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})});Ra.displayName=j.Content.displayName;var Vo=j.Link,Od=_e.forwardRef(({className:e,...o},t)=>Ze("div",{className:i("absolute left-0 top-full flex justify-center"),children:Ze(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})}));Od.displayName=j.Viewport.displayName;var Wd=_e.forwardRef(({className:e,...o},t)=>Ze(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:Ze("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Wd.displayName=j.Indicator.displayName;import*as xn from"react";import*as Oo from"@radix-ui/react-switch";import{jsx as vn}from"react/jsx-runtime";var bn=xn.forwardRef(({className:e,...o},t)=>vn(Oo.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:vn(Oo.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")})}));bn.displayName=Oo.Root.displayName;import*as Gt from"react";import*as St from"@radix-ui/react-radio-group";import{Circle as Gd}from"lucide-react";import{cva as hn}from"class-variance-authority";import{jsx as Wo}from"react/jsx-runtime";var jd=hn("aspect-square rounded-full border-2 border-gray-300 disabled:bg-gray-100 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-400 data-[state=checked]:bg-pink-500 data-[state=checked]:border-none ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default peer",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ud=hn("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),yn=Gt.createContext({size:"medium"});function Qd(){let e=Gt.useContext(yn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var wn=Gt.forwardRef(({className:e,size:o,...t},a)=>Wo(yn.Provider,{value:{size:o},children:Wo(St.Root,{className:i("grid gap-2",e),...t,ref:a})}));wn.displayName=St.Root.displayName;var Nn=Gt.forwardRef(({className:e,...o},t)=>{let a=Qd(),{size:r}=a??{};return Wo(St.Item,{ref:t,className:i(jd({size:r}),e),...o,children:Wo(St.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Wo(Gd,{className:i(Ud({size:r}))})})})});Nn.displayName=St.Item.displayName;import{useState as mp}from"react";import{ArrowDownTrayIcon as cp}from"@heroicons/react/16/solid";import dp from"html-react-parser";import{useEffect as Jd,useState as Tn}from"react";import kn from"next/router";import{AnimatePresence as ep,domAnimation as tp,LazyMotion as op,motion as Dr}from"motion/react";import{useKey as ap}from"react-use";var Ta=[.24,.25,.05,1];import{motion as Xd}from"motion/react";import{jsx as $o,jsxs as Pn}from"react/jsx-runtime";var qd=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return $o("li",{className:"min-h-8",children:Pn("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&$o("div",{className:"w-6 h-6 shrink-0",children:$o("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),Pn("div",{className:" ",children:[$o("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&$o("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Cn=qd;import{jsx as jt,jsxs as Kd}from"react/jsx-runtime";var Yd={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Ta}},exit:{opacity:0,transition:{duration:.05}}},Zd=({data:e})=>jt(it,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return jt(Xd.div,{variants:Yd,children:o.hasDropdown?Kd(nt,{value:o.id,children:[jt(st,{className:"py-3",children:o.title}),jt(lt,{children:jt("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>jt(Cn,{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)})}),Rn=Zd;import{jsx as T,jsxs as de}from"react/jsx-runtime";var rp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,ip=({data:e,className:o})=>{let[t,a]=Tn(!1),[r,n]=Tn(!1);ap("Escape",()=>a(!1)),Jd(()=>{if(!t)return;let m=rp();function c(){a(!1)}function d(){a(!1),n(!0)}function f(u){let v=u.target;v.tagName==="A"&&v.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",kn.events.on("routeChangeComplete",c),window.addEventListener("hashchange",d),window.addEventListener("click",f),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),kn.events.off("routeChangeComplete",c),window.removeEventListener("hashchange",d),window.removeEventListener("click",f)}},[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:Ta}},exit:{opacity:0,transition:{duration:.15}}};return de("div",{className:i(o),children:[de("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[T("span",{className:"sr-only",children:"Navigation"}),T(Dr.div,{animate:t?"hidden":"visible",variants:s,children:T("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:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),T(Dr.div,{animate:t?"visible":"hidden",variants:s,children:T("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:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),T(op,{features:tp,children:T(ep,{mode:"wait",children:t&&de(Dr.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:[T(Rn,{data:e}),de("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),de("div",{className:"flex flex-nowrap",children:[T("div",{className:"flex-initial",children:T("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:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),T("div",{className:"ml-3 flex-initial",children:T("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:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),de("ul",{className:"mb-2 text-sm text-gray-500",children:[de("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{href:`tel:${rt.Support.Hotline}`,className:"text-gray-600",children:rt.Support.Hotline_Format})]}),de("li",{className:"mb-1",children:["Email :\xA0",T("a",{href:`mailto:${rt.Support.Email}`,className:"text-gray-600",children:rt.Support.Email})]})]}),T("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:de("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:[T("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:T("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:de("g",{children:[T("title",{children:"Asset 1"}),T("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 Od,PlusCircleIcon as Vd}from"@heroicons/react/24/outline";import{forwardRef as Wd,useState as $d}from"react";import{jsx as Vo,jsxs as Mr}from"react/jsx-runtime";var vn=Wd(({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[f,u]=$d(r),v=()=>{let M=Math.min(f+a,t);u(M),n?.(M),l?.(M)},k=()=>{let M=Math.max(f-a,o);u(M),n?.(M),s?.(M)},D=M=>{let H=parseFloat(M.target.value);if(!isNaN(H)){let $=Math.max(Math.min(H,t),o);u($),n?.($)}};return Mr("div",{ref:d,className:i("flex items-center ",e),children:[Mr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:k,disabled:m||f<=o,children:[Vo(Od,{className:"w-7 h-7 "}),Vo("span",{className:"sr-only",children:"Decrease value"})]}),Vo("input",{type:"number",value:f,onChange:D,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}),Mr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:v,disabled:m||f>=t,children:[Vo(Vd,{className:"w-7 h-7 "}),Vo("span",{className:"sr-only",children:"Increase value"})]})]})});vn.displayName="Stepper";import*as _e from"react";import*as j from"@radix-ui/react-navigation-menu";import{cva as Gd}from"class-variance-authority";import{ChevronDownIcon as jd}from"@heroicons/react/16/solid";import{jsx as Ze,jsxs as Yd}from"react/jsx-runtime";var xn=_e.createContext(null),Ud=({value:e,children:o})=>Ze(xn.Provider,{value:e,children:o}),Qd=()=>{let e=_e.useContext(xn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Na=_e.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>Ze(Ud,{value:{alignDropdown:t},children:Ze(j.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Na.displayName=j.Root.displayName;var Pa=_e.forwardRef(({className:e,...o},t)=>Ze(j.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Pa.displayName=j.List.displayName;var Ca=j.Item,Ra=Gd(We({variant:"transparent",size:"sm"})),Ta=_e.forwardRef(({className:e,children:o,...t},a)=>Yd(j.Trigger,{ref:a,className:i(Ra(),"group px-2",e),...t,children:[o," ",Ze(jd,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Ta.displayName=j.Trigger.displayName;var ka=_e.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Qd();return Ze(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})});ka.displayName=j.Content.displayName;var Wo=j.Link,qd=_e.forwardRef(({className:e,...o},t)=>Ze("div",{className:i("absolute left-0 top-full flex justify-center"),children:Ze(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})}));qd.displayName=j.Viewport.displayName;var Xd=_e.forwardRef(({className:e,...o},t)=>Ze(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:Ze("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Xd.displayName=j.Indicator.displayName;import*as hn from"react";import*as $o from"@radix-ui/react-switch";import{jsx as bn}from"react/jsx-runtime";var yn=hn.forwardRef(({className:e,...o},t)=>bn($o.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:bn($o.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")})}));yn.displayName=$o.Root.displayName;import*as Gt from"react";import*as St from"@radix-ui/react-radio-group";import{Circle as Zd}from"lucide-react";import{cva as wn}from"class-variance-authority";import{jsx as Go}from"react/jsx-runtime";var Kd=wn("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"}}),Jd=wn("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Nn=Gt.createContext({size:"medium"});function ep(){let e=Gt.useContext(Nn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Pn=Gt.forwardRef(({className:e,size:o,...t},a)=>Go(Nn.Provider,{value:{size:o},children:Go(St.Root,{className:i("grid gap-2",e),...t,ref:a})}));Pn.displayName=St.Root.displayName;var Cn=Gt.forwardRef(({className:e,...o},t)=>{let a=ep(),{size:r}=a??{};return Go(St.Item,{ref:t,className:i(Kd({size:r}),e),...o,children:Go(St.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Go(Zd,{className:i(Jd({size:r}))})})})});Cn.displayName=St.Item.displayName;import{useState as vp}from"react";import{ArrowDownTrayIcon as xp}from"@heroicons/react/16/solid";import bp from"html-react-parser";import{useEffect as np,useState as Sn}from"react";import Dn from"next/router";import{AnimatePresence as sp,domAnimation as lp,LazyMotion as mp,motion as Ir}from"motion/react";import{useKey as cp}from"react-use";var Sa=[.24,.25,.05,1];import{motion as op}from"motion/react";import{jsx as jo,jsxs as Rn}from"react/jsx-runtime";var tp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return jo("li",{className:"min-h-8",children:Rn("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&jo("div",{className:"w-6 h-6 shrink-0",children:jo("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),Rn("div",{className:" ",children:[jo("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&jo("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Tn=tp;import{jsx as jt,jsxs as ip}from"react/jsx-runtime";var ap={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Sa}},exit:{opacity:0,transition:{duration:.05}}},rp=({data:e})=>jt(it,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return jt(op.div,{variants:ap,children:o.hasDropdown?ip(nt,{value:o.id,children:[jt(st,{className:"py-3",children:o.title}),jt(lt,{children:jt("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>jt(Tn,{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)})}),kn=rp;import{jsx as T,jsxs as de}from"react/jsx-runtime";var dp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,pp=({data:e,className:o})=>{let[t,a]=Sn(!1),[r,n]=Sn(!1);cp("Escape",()=>a(!1)),np(()=>{if(!t)return;let m=dp();function c(){a(!1)}function d(){a(!1),n(!0)}function f(u){let v=u.target;v.tagName==="A"&&v.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",Dn.events.on("routeChangeComplete",c),window.addEventListener("hashchange",d),window.addEventListener("click",f),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),Dn.events.off("routeChangeComplete",c),window.removeEventListener("hashchange",d),window.removeEventListener("click",f)}},[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:Sa}},exit:{opacity:0,transition:{duration:.15}}};return de("div",{className:i(o),children:[de("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[T("span",{className:"sr-only",children:"Navigation"}),T(Ir.div,{animate:t?"hidden":"visible",variants:s,children:T("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:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),T(Ir.div,{animate:t?"visible":"hidden",variants:s,children:T("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:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),T(mp,{features:lp,children:T(sp,{mode:"wait",children:t&&de(Ir.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:[T(kn,{data:e}),de("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),de("div",{className:"flex flex-nowrap",children:[T("div",{className:"flex-initial",children:T("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:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),T("div",{className:"ml-3 flex-initial",children:T("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:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),de("ul",{className:"mb-2 text-sm text-gray-500",children:[de("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{href:`tel:${rt.Support.Hotline}`,className:"text-gray-600",children:rt.Support.Hotline_Format})]}),de("li",{className:"mb-1",children:["Email :\xA0",T("a",{href:`mailto:${rt.Support.Email}`,className:"text-gray-600",children:rt.Support.Email})]})]}),T("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:de("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:[T("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:T("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:de("g",{children:[T("title",{children:"Asset 1"}),T("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`}),T("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`})]})})}),T("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),T("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),de("ul",{className:"mb-2 text-sm text-gray-500",children:[de("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{className:"text-gray-600",href:`tel:${rt.Business.Phome}`,children:rt.Business.Phome_Format})]}),de("li",{className:"mb-1",children:["Email :\xA0",de("a",{href:`mailto:${rt.Business.Email}`,className:"text-gray-600",children:[" ",rt.Business.Email]})]})]}),T("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:de("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:[T("div",{className:"absolute left-1 top-1 ",children:T("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),T("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),T("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},Sn=ip;import{jsx as go,jsxs as Dn}from"react/jsx-runtime";var np=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return go("li",{className:"",children:go(Vo,{asChild:!0,children:Dn("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&&go("div",{className:"w-7 h-7 shrink-0 mt-1",children:go("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),Dn("div",{className:" ",children:[go("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&go("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Mn=np;import{jsx as Dt,jsxs as lp}from"react/jsx-runtime";var sp=({data:e,alignDropdown:o})=>Dt(ya,{alignDropdown:o,children:Dt(wa,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?lp(Na,{className:"relative",children:[Dt(Ca,{children:t.title}),Dt(Ra,{children:Dt("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=>Dt(Mn,{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):Dt(Na,{className:"relative",children:Dt(Vo,{href:t.url,className:Pa(),...a,children:t.title})},t.id)})})}),In=sp;import{jsx as Be,jsxs as Ut}from"react/jsx-runtime";var An=({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||{},[f,u]=mp(!1);return Ut("div",{className:i(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[Be("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Be("nav",{className:i("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0 "),style:{minHeight:"var(--header-height-mobase)"},children:Ut("div",{className:"relative flex items-center ",children:[l&&Ut("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[Be("span",{className:"sr-only",children:"MoMo home page"}),Be("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&Ut("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:[Be("img",{src:m,className:"h-9 w-9",alt:"MoMo"}),Be("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&dp(c)})]}),Be("div",{className:i("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!r&&!a&&" lg:ml-auto xl:ml-auto"),children:Be(In,{data:o,alignDropdown:s})}),Ut("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&" lg:ml-0"),children:[r&&r,a&&Ut("div",{className:" hidden sm:flex",children:[Ut(Se,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>u(!0),children:[" ",Be(cp,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Be(Bt,{open:f,onOpenChange:()=>u(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Be(Sn,{data:o,className:"lg:hidden "})]})]})})]})};An.displayName="HeaderNavigation";import{useState as pp}from"react";import{Fragment as gp,jsx as g,jsxs as P}from"react/jsx-runtime";var Ln=({item:e})=>g("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&&g("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:g("img",{src:e.icon,className:"absolute inset-0"})}),g("span",{className:"block ",children:e.title})]})}),fp=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=pp(null);return P(gp,{children:[g("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:[g("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>g(Ln,{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:[g("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),g("div",{className:"flex flex-wrap",children:o?.lists?.map((r,n)=>g(Ln,{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:[g("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:[g("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),g("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:ni.Address})]}),P("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Hotline : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${le.Support.Hotline}`,children:le.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:[g("span",{className:"text-white text-opacity-50",children:"Email : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${le.Support.Email}`,children:le.Support.Email})]}),P("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${le.Support.Phone_Ext_1}`,children:le.Support.Phone_Ext_1_Format}),g("span",{className:"text-white text-opacity-60",children:" - "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${le.Support.Phone_Ext_2}`,children:le.Support.Phone_Ext_2_Format}),g("span",{className:"text-white text-opacity-60",children:" - "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${le.Support.Phone_Ext_3}`,children:le.Support.Phone_Ext_3_Format}),g("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),g("div",{className:"mt-3 flex",children:g("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:[g("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:g("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:P("g",{children:[g("title",{children:"Asset 1"}),g("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`})]})})}),T("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),T("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),de("ul",{className:"mb-2 text-sm text-gray-500",children:[de("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{className:"text-gray-600",href:`tel:${rt.Business.Phome}`,children:rt.Business.Phome_Format})]}),de("li",{className:"mb-1",children:["Email :\xA0",de("a",{href:`mailto:${rt.Business.Email}`,className:"text-gray-600",children:[" ",rt.Business.Email]})]})]}),T("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:de("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:[T("div",{className:"absolute left-1 top-1 ",children:T("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),T("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),T("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},Mn=pp;import{jsx as uo,jsxs as In}from"react/jsx-runtime";var fp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return uo("li",{className:"",children:uo(Wo,{asChild:!0,children:In("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&&uo("div",{className:"w-7 h-7 shrink-0 mt-1",children:uo("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),In("div",{className:" ",children:[uo("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&uo("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},An=fp;import{jsx as Dt,jsxs as up}from"react/jsx-runtime";var gp=({data:e,alignDropdown:o})=>Dt(Na,{alignDropdown:o,children:Dt(Pa,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?up(Ca,{className:"relative",children:[Dt(Ta,{children:t.title}),Dt(ka,{children:Dt("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=>Dt(An,{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):Dt(Ca,{className:"relative",children:Dt(Wo,{href:t.url,className:Ra(),...a,children:t.title})},t.id)})})}),Ln=gp;import{jsx as Be,jsxs as Ut}from"react/jsx-runtime";var En=({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||{},[f,u]=vp(!1);return Ut("div",{className:i(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[Be("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Be("nav",{className:i("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0 "),style:{minHeight:"var(--header-height-mobase)"},children:Ut("div",{className:"relative flex items-center ",children:[l&&Ut("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[Be("span",{className:"sr-only",children:"MoMo home page"}),Be("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&Ut("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:[Be("img",{src:m,className:"h-9 w-9",alt:"MoMo"}),Be("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&bp(c)})]}),Be("div",{className:i("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!r&&!a&&" lg:ml-auto xl:ml-auto"),children:Be(Ln,{data:o,alignDropdown:s})}),Ut("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&" lg:ml-0"),children:[r&&r,a&&Ut("div",{className:" hidden sm:flex",children:[Ut(Se,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>u(!0),children:[" ",Be(xp,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Be(Bt,{open:f,onOpenChange:()=>u(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Be(Mn,{data:o,className:"lg:hidden "})]})]})})]})};En.displayName="HeaderNavigation";import{useState as hp}from"react";import{Fragment as wp,jsx as g,jsxs as P}from"react/jsx-runtime";var Hn=({item:e})=>g("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&&g("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:g("img",{src:e.icon,className:"absolute inset-0"})}),g("span",{className:"block ",children:e.title})]})}),yp=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=hp(null);return P(wp,{children:[g("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:[g("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>g(Hn,{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:[g("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),g("div",{className:"flex flex-wrap",children:o?.lists?.map((r,n)=>g(Hn,{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:[g("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:[g("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),g("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:li.Address})]}),P("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Hotline : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${le.Support.Hotline}`,children:le.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:[g("span",{className:"text-white text-opacity-50",children:"Email : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${le.Support.Email}`,children:le.Support.Email})]}),P("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${le.Support.Phone_Ext_1}`,children:le.Support.Phone_Ext_1_Format}),g("span",{className:"text-white text-opacity-60",children:" - "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${le.Support.Phone_Ext_2}`,children:le.Support.Phone_Ext_2_Format}),g("span",{className:"text-white text-opacity-60",children:" - "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${le.Support.Phone_Ext_3}`,children:le.Support.Phone_Ext_3_Format}),g("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),g("div",{className:"mt-3 flex",children:g("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:[g("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:g("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:P("g",{children:[g("title",{children:"Asset 1"}),g("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`}),g("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`})]})})}),g("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),g("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:[g("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:[g("span",{className:"text-white text-opacity-50",children:"Hotline : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${le.Business.Phome}`,children:le.Business.Phome_Format})]}),P("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Email : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${le.Business.Email}`,children:le.Business.Email})]}),P("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Website : "}),g("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"})]}),g("div",{className:"mt-3 flex",children:g("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:[g("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:[g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"})]})}),g("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),g("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:[g("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"}),g("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:g("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:No&&No.map((r,n)=>g("li",{className:"inline-block",children:g("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:g("img",{src:r.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),P("div",{className:"h-auto",children:[g("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:[g("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:g("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),g("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:Ua&&Ua.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:[g(Se,{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}),g("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),g(Bt,{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))}),g("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:g("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:No&&No.map((r,n)=>g("li",{children:g("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:g("img",{alt:r.Name,src:r.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),P("div",{className:"hidden h-auto md:block",children:[g("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()]}),g("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:g("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),g("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:[g("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:[g("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"}),g("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: ",g("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",g("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),P("ul",{className:" mt-0.5 ",children:[g("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),g("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),g("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()]}),g("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:g("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),g("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`})]})})}),g("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),g("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:[g("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:[g("span",{className:"text-white text-opacity-50",children:"Hotline : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${le.Business.Phome}`,children:le.Business.Phome_Format})]}),P("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Email : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${le.Business.Email}`,children:le.Business.Email})]}),P("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Website : "}),g("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"})]}),g("div",{className:"mt-3 flex",children:g("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:[g("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:[g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"})]})}),g("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),g("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:[g("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"}),g("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:g("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Co&&Co.map((r,n)=>g("li",{className:"inline-block",children:g("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:g("img",{src:r.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),P("div",{className:"h-auto",children:[g("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:[g("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:g("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),g("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:qa&&qa.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:[g(Se,{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}),g("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),g(Bt,{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))}),g("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:g("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Co&&Co.map((r,n)=>g("li",{children:g("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:g("img",{alt:r.Name,src:r.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),P("div",{className:"hidden h-auto md:block",children:[g("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()]}),g("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:g("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),g("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:[g("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:[g("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"}),g("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: ",g("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",g("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),P("ul",{className:" mt-0.5 ",children:[g("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),g("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),g("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()]}),g("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:g("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),g("style",{children:`
129
129
  footer .button-download {
130
130
  max-width: 150px;
131
131
  }
132
- `})]})},En=fp;import{jsx as Hn}from"react/jsx-runtime";var up=({className:e,primaryMenu:o,secondaryMenu:t})=>Hn("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Hn(En,{primaryMenu:o,secondaryMenu:t})});import*as Qt from"react";import{jsx as uo}from"react/jsx-runtime";var Fn=Qt.forwardRef(({className:e,...o},t)=>uo("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Fn.displayName="Card";var zn=Qt.forwardRef(({className:e,...o},t)=>uo("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));zn.displayName="CardHeader";var _n=Qt.forwardRef(({className:e,...o},t)=>uo("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));_n.displayName="CardTitle";var Bn=Qt.forwardRef(({className:e,...o},t)=>uo("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Bn.displayName="CardDescription";var Vn=Qt.forwardRef(({className:e,...o},t)=>uo("div",{ref:t,className:i("p-6 pt-0",e),...o}));Vn.displayName="CardContent";var On=Qt.forwardRef(({className:e,...o},t)=>uo("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));On.displayName="CardFooter";import*as Ae from"react";import{Command as ve}from"cmdk";import{XCircleIcon as vp,MagnifyingGlassIcon as xp}from"@heroicons/react/16/solid";import{jsx as Pe,jsxs as hp}from"react/jsx-runtime";var Mr=Ae.forwardRef(({className:e,...o},t)=>Pe(ve,{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}));Mr.displayName=ve.displayName;var bp=({children:e,...o})=>Pe(ct,{...o,children:Pe($e,{className:"overflow-hidden p-0 shadow-lg",children:Pe(Mr,{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})})}),Wn=Ae.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=Ae.useRef(null),[s,l]=Ae.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return hp("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Pe(xp,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Pe(ve.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}),Pe(vp,{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")})]})});Wn.displayName=ve.Input.displayName;var $n=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));$n.displayName=ve.List.displayName;var Gn=Ae.forwardRef((e,o)=>Pe(ve.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Gn.displayName=ve.Empty.displayName;var jn=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.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}));jn.displayName=ve.Group.displayName;var Un=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Un.displayName=ve.Separator.displayName;var Qn=Ae.forwardRef(({className:e,children:o,...t},a)=>Pe(ve.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}));Qn.displayName=ve.Item.displayName;var qn=({className:e,...o})=>Pe("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});qn.displayName="CommandShortcut";import{ChevronDownIcon as yp}from"@heroicons/react/16/solid";import{jsx as ka,jsxs as Xn}from"react/jsx-runtime";var wp=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>Xn("div",{className:"relative",children:[Xn(Do,{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,ka(yp,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&ka("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Np=({children:e,className:o,...t})=>ka(mo,{className:i("border-none !p-0",o),...t,children:e}),Pp=({open:e,onOpenChange:o,children:t,...a})=>ka(So,{open:e,onOpenChange:o,...a,children:t});import{cva as Zn}from"class-variance-authority";import{forwardRef as Cp}from"react";import{InformationCircleIcon as Rp}from"@heroicons/react/24/outline";import{jsx as Ir,jsxs as Yn}from"react/jsx-runtime";var Tp=Zn("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"}}),kp=Zn("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"}}),Go=Cp(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...m},c)=>Yn("div",{ref:c,className:i("",r,Tp({typeDiv:e,disabled:n})),...m,children:[Yn("div",{className:"flex items-center space-x-2",children:[l||Ir(Rp,{className:i(kp({typeIcon:e,disabled:n})),width:20,height:20}),o&&Ir("div",{children:o})]}),t&&Ir(ce,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));import{forwardRef as Sp,useEffect as Dp,useRef as Mp,useState as Ip}from"react";import{MagnifyingGlassIcon as Ap}from"@heroicons/react/20/solid";import{XCircleIcon as Lp}from"@heroicons/react/24/outline";import{jsx as vo,jsxs as Kn}from"react/jsx-runtime";var Ep=Sp(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:c="text",...d},f)=>{let[u,v]=Ip(!1),k=Mp(null),D=I=>{I&&!u&&v(!0),!I&&u&&v(!1)},M=I=>{D(I.target.value),r?.(I)},H=I=>{D(I.target.value),n?.(I)},$=()=>{let I=k.current?.querySelector("input");I&&(s?.(I.value),I.value="",I.focus(),v(!1))};return Dp(()=>{D(m||l)},[l,m]),Kn("div",{className:i(o),ref:k,children:[Kn("div",{className:"relative flex items-center",children:[vo("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:vo(Ap,{className:"w-4 h-4 text-gray-500"})}),vo("input",{disabled:e,type:c,ref:f,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:M,onFocus:H,value:l,defaultValue:m,...d}),u&&vo("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:$,children:vo(Lp,{strokeWidth:2,width:20,height:20})})]}),vo("style",{children:`
132
+ `})]})},Fn=yp;import{jsx as zn}from"react/jsx-runtime";var Np=({className:e,primaryMenu:o,secondaryMenu:t})=>zn("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:zn(Fn,{primaryMenu:o,secondaryMenu:t})});import*as Qt from"react";import{jsx as vo}from"react/jsx-runtime";var _n=Qt.forwardRef(({className:e,...o},t)=>vo("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));_n.displayName="Card";var Bn=Qt.forwardRef(({className:e,...o},t)=>vo("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));Bn.displayName="CardHeader";var On=Qt.forwardRef(({className:e,...o},t)=>vo("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));On.displayName="CardTitle";var Vn=Qt.forwardRef(({className:e,...o},t)=>vo("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Vn.displayName="CardDescription";var Wn=Qt.forwardRef(({className:e,...o},t)=>vo("div",{ref:t,className:i("p-6 pt-0",e),...o}));Wn.displayName="CardContent";var $n=Qt.forwardRef(({className:e,...o},t)=>vo("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));$n.displayName="CardFooter";import*as Ae from"react";import{Command as ve}from"cmdk";import{XCircleIcon as Pp,MagnifyingGlassIcon as Cp}from"@heroicons/react/16/solid";import{jsx as Pe,jsxs as Tp}from"react/jsx-runtime";var Ar=Ae.forwardRef(({className:e,...o},t)=>Pe(ve,{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}));Ar.displayName=ve.displayName;var Rp=({children:e,...o})=>Pe(ct,{...o,children:Pe($e,{className:"overflow-hidden p-0 shadow-lg",children:Pe(Ar,{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})})}),Gn=Ae.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=Ae.useRef(null),[s,l]=Ae.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return Tp("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Pe(Cp,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Pe(ve.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}),Pe(Pp,{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")})]})});Gn.displayName=ve.Input.displayName;var jn=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));jn.displayName=ve.List.displayName;var Un=Ae.forwardRef((e,o)=>Pe(ve.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Un.displayName=ve.Empty.displayName;var Qn=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.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}));Qn.displayName=ve.Group.displayName;var qn=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));qn.displayName=ve.Separator.displayName;var Xn=Ae.forwardRef(({className:e,children:o,...t},a)=>Pe(ve.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}));Xn.displayName=ve.Item.displayName;var Yn=({className:e,...o})=>Pe("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Yn.displayName="CommandShortcut";import{ChevronDownIcon as kp}from"@heroicons/react/16/solid";import{jsx as Da,jsxs as Zn}from"react/jsx-runtime";var Sp=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>Zn("div",{className:"relative",children:[Zn(Io,{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,Da(kp,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&Da("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Dp=({children:e,className:o,...t})=>Da(co,{className:i("border-none !p-0",o),...t,children:e}),Mp=({open:e,onOpenChange:o,children:t,...a})=>Da(Mo,{open:e,onOpenChange:o,...a,children:t});import{cva as Jn}from"class-variance-authority";import{forwardRef as Ip}from"react";import{InformationCircleIcon as Ap}from"@heroicons/react/24/outline";import{jsx as Lr,jsxs as Kn}from"react/jsx-runtime";var Lp=Jn("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"}}),Ep=Jn("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"}}),Uo=Ip(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...m},c)=>Kn("div",{ref:c,className:i("",r,Lp({typeDiv:e,disabled:n})),...m,children:[Kn("div",{className:"flex items-center space-x-2",children:[l||Lr(Ap,{className:i(Ep({typeIcon:e,disabled:n})),width:20,height:20}),o&&Lr("div",{children:o})]}),t&&Lr(ce,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));import{forwardRef as Hp,useEffect as Fp,useRef as zp,useState as _p}from"react";import{MagnifyingGlassIcon as Bp}from"@heroicons/react/20/solid";import{XCircleIcon as Op}from"@heroicons/react/24/outline";import{jsx as xo,jsxs as es}from"react/jsx-runtime";var Vp=Hp(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:c="text",...d},f)=>{let[u,v]=_p(!1),k=zp(null),D=I=>{I&&!u&&v(!0),!I&&u&&v(!1)},M=I=>{D(I.target.value),r?.(I)},H=I=>{D(I.target.value),n?.(I)},$=()=>{let I=k.current?.querySelector("input");I&&(s?.(I.value),I.value="",I.focus(),v(!1))};return Fp(()=>{D(m||l)},[l,m]),es("div",{className:i(o),ref:k,children:[es("div",{className:"relative flex items-center",children:[xo("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:xo(Bp,{className:"w-4 h-4 text-gray-500"})}),xo("input",{disabled:e,type:c,ref:f,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:M,onFocus:H,value:l,defaultValue:m,...d}),u&&xo("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:$,children:xo(Op,{strokeWidth:2,width:20,height:20})})]}),xo("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 Ce from"@radix-ui/react-dialog";import es,{useContext as Hp,useEffect as Jn,useState as Ar}from"react";import{X as Fp}from"lucide-react";import zp from"lodash";import{jsx as ae,jsxs as yt}from"react/jsx-runtime";var ts=es.createContext(void 0);function os(){let e=Hp(ts);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Lr=({children:e,open:o,onOpenChange:t,className:a})=>ae(ts.Provider,{value:{open:o,onOpenChange:t},children:ae(Ce.Root,{open:o,onOpenChange:t,children:ae("div",{className:i("lightbox-gallery",a),children:e})})}),_p=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=os(),m=()=>{n?.(),l&&l(!0)};return yt(Ce.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)})})]})},as=es.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=os(),n=()=>{r&&r(!1)};return yt(Ce.Portal,{children:[ae(Ce.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),yt(Ce.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,yt(Ce.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(Fp,{className:"h-4 w-4 mt-0.5"}),ae("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});as.displayName=Ce.Content.displayName;var Er=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=Ar(""),[l,m]=Ar(),[c,d]=Ar(0);Jn(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let f=u=>{let v=zp.filter(e,(D,M)=>M===(u>0?u-1:u)),k=v.length>0?v[0]?.titleImage:"";s(k)};return Jn(()=>{f(c)},[c]),yt(as,{className:"flex py-0",children:[yt("div",{className:" flex-1 relative",children:[yt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),yt(he,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ae(ye,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,v)=>ae(we,{className:"pl-6 md:pl-4",children:yt("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:u.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(no,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ae(so,{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 Mt from"react";import{CheckIcon as Bp}from"@heroicons/react/16/solid";import*as jo from"@radix-ui/react-checkbox";import*as It from"@radix-ui/react-radio-group";import{Circle as Vp}from"lucide-react";import{jsx as Ke,jsxs as ns}from"react/jsx-runtime";var rs=Mt.createContext({hideIndicator:!1});function Op(){let e=Mt.useContext(rs);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Sa=Mt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>Ke(rs.Provider,{value:{hideIndicator:o},children:Ke(It.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Sa.displayName=It.Root.displayName;var Da=Mt.forwardRef(({className:e,children:o,...t},a)=>{let r=Op(),{hideIndicator:n}=r??{};return ns(It.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:[Ke("div",{className:"min-w-0 flex-1",children:o}),!n&&Ke("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:Ke(It.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:Ke(Vp,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Da.displayName=It.Item.displayName;var is=Mt.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>ns(jo.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:[Ke("div",{className:"min-w-0 flex-1",children:o}),!t&&Ke("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:Ke(jo.Indicator,{className:i("flex items-center justify-center text-current"),children:Ke(Bp,{className:"h-4 w-4"})})})]}));is.displayName=jo.Root.displayName;import{cva as Wp}from"class-variance-authority";import{jsx as Gp}from"react/jsx-runtime";var ss=Wp("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 $p({className:e,variant:o,...t}){return Gp("div",{className:i(ss({variant:o}),e),...t})}import*as ms from"react";import*as Uo from"@radix-ui/react-progress";import{cva as cs}from"class-variance-authority";import{jsx as ls}from"react/jsx-runtime";var jp=cs("h-full w-full rounded-full flex-1 transition-all",{variants:{variant:{progress:"bg-pink-500",success:"bg-green-600",disabled:"bg-gray-400",empty:"bg-gray-200"}},defaultVariants:{variant:"progress"}}),Up=cs("relative h-4 w-full overflow-hidden rounded-full bg-gray-200",{variants:{size:{small:"h-[6px]",medium:"h-2",large:"h-[10px]"}},defaultVariants:{size:"medium"}}),ds=ms.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>ls(Uo.Root,{ref:s,className:i("",Up({size:a}),e),...n,children:ls(Uo.Indicator,{className:i("",jp({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));ds.displayName=Uo.Root.displayName;import{jsx as Qp}from"react/jsx-runtime";function Ma({className:e,...o}){return Qp("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Xp,jsx as qt,jsxs as ps}from"react/jsx-runtime";function qp({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 qt("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return ps("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>qt("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),qt("style",{children:`
139
+ `})]})});import*as Ce from"@radix-ui/react-dialog";import os,{useContext as Wp,useEffect as ts,useState as Er}from"react";import{X as $p}from"lucide-react";import Gp from"lodash";import{jsx as ae,jsxs as yt}from"react/jsx-runtime";var as=os.createContext(void 0);function rs(){let e=Wp(as);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Hr=({children:e,open:o,onOpenChange:t,className:a})=>ae(as.Provider,{value:{open:o,onOpenChange:t},children:ae(Ce.Root,{open:o,onOpenChange:t,children:ae("div",{className:i("lightbox-gallery",a),children:e})})}),jp=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=rs(),m=()=>{n?.(),l&&l(!0)};return yt(Ce.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)})})]})},is=os.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=rs(),n=()=>{r&&r(!1)};return yt(Ce.Portal,{children:[ae(Ce.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),yt(Ce.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,yt(Ce.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($p,{className:"h-4 w-4 mt-0.5"}),ae("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});is.displayName=Ce.Content.displayName;var Fr=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=Er(""),[l,m]=Er(),[c,d]=Er(0);ts(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let f=u=>{let v=Gp.filter(e,(D,M)=>M===(u>0?u-1:u)),k=v.length>0?v[0]?.titleImage:"";s(k)};return ts(()=>{f(c)},[c]),yt(is,{className:"flex py-0",children:[yt("div",{className:" flex-1 relative",children:[yt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),yt(he,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ae(ye,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,v)=>ae(we,{className:"pl-6 md:pl-4",children:yt("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:u.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(so,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ae(lo,{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 Mt from"react";import{CheckIcon as Up}from"@heroicons/react/16/solid";import*as Qo from"@radix-ui/react-checkbox";import*as It from"@radix-ui/react-radio-group";import{Circle as Qp}from"lucide-react";import{jsx as Ke,jsxs as ls}from"react/jsx-runtime";var ns=Mt.createContext({hideIndicator:!1});function qp(){let e=Mt.useContext(ns);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ma=Mt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>Ke(ns.Provider,{value:{hideIndicator:o},children:Ke(It.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Ma.displayName=It.Root.displayName;var Ia=Mt.forwardRef(({className:e,children:o,...t},a)=>{let r=qp(),{hideIndicator:n}=r??{};return ls(It.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:[Ke("div",{className:"min-w-0 flex-1",children:o}),!n&&Ke("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:Ke(It.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:Ke(Qp,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Ia.displayName=It.Item.displayName;var ss=Mt.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>ls(Qo.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:[Ke("div",{className:"min-w-0 flex-1",children:o}),!t&&Ke("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:Ke(Qo.Indicator,{className:i("flex items-center justify-center text-current"),children:Ke(Up,{className:"h-4 w-4"})})})]}));ss.displayName=Qo.Root.displayName;import{cva as Xp}from"class-variance-authority";import{jsx as Zp}from"react/jsx-runtime";var ms=Xp("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 Yp({className:e,variant:o,...t}){return Zp("div",{className:i(ms({variant:o}),e),...t})}import*as ds from"react";import*as qo from"@radix-ui/react-progress";import{cva as ps}from"class-variance-authority";import{jsx as cs}from"react/jsx-runtime";var Kp=ps("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"}}),Jp=ps("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"}}),fs=ds.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>cs(qo.Root,{ref:s,className:i("",Jp({size:a}),e),...n,children:cs(qo.Indicator,{className:i("",Kp({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));fs.displayName=qo.Root.displayName;import{jsx as ef}from"react/jsx-runtime";function Aa({className:e,...o}){return ef("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as of,jsx as qt,jsxs as gs}from"react/jsx-runtime";function tf({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 qt("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return gs("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>qt("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),qt("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 Po from"react";import{ChevronDownIcon as im}from"@heroicons/react/20/s
163
163
  opacity: .2;
164
164
  }
165
165
  }
166
- `})]});case"default":default:return ps(Xp,{children:[qt("div",{className:i("spinner_wrapper relative size-5 overflow-hidden",r[e],t),children:qt("div",{className:i("spinner relative left-1/2 top-1/2 size-5 ",r[e],t),children:[...Array(12)].map((l,m)=>qt("div",{className:i(`spinner_bar child-${m+1}`,o)},m))})}),qt("style",{children:`
166
+ `})]});case"default":default:return gs(of,{children:[qt("div",{className:i("spinner_wrapper relative size-5 overflow-hidden",r[e],t),children:qt("div",{className:i("spinner relative left-1/2 top-1/2 size-5 ",r[e],t),children:[...Array(12)].map((l,m)=>qt("div",{className:i(`spinner_bar child-${m+1}`,o)},m))})}),qt("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 Po from"react";import{ChevronDownIcon as im}from"@heroicons/react/20/s
243
243
  opacity: 0.15;
244
244
  }
245
245
  }
246
- `})]})}})()})}import*as fs from"react";import*as Je from"@radix-ui/react-slider";import{jsx as At,jsxs as Yp}from"react/jsx-runtime";var gs=fs.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>Yp(Je.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[At(Je.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:At(Je.Range,{className:"absolute h-full bg-pink-500"})}),At(Je.Thumb,{className:"group relative",children:At("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&&At("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})})}),At(Je.Thumb,{className:"group relative",children:At("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&&At("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})})})]}));gs.displayName=Je.Root.displayName;import{forwardRef as pf}from"react";import{Fragment as ef,jsx as Le,jsxs as Ia}from"react/jsx-runtime";var Zp=({author:e=""})=>Le("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Kp=({author:e,avatar:o})=>Le("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Le("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Le(Zp,{author:e})});function Jp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return Le(ef,{children:Ia("div",{className:"flex relative items-center space-x-3",children:[Le(Kp,{avatar:e,author:o}),Ia("div",{className:"flex flex-col",children:[o&&Le("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Ia("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Le("div",{className:"text-gray-400",children:t}),a&&Ia("div",{className:"flex items-center space-x-2",children:[Le("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Le("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&Le("div",{className:"absolute right-1 top-0",children:Le("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var us=Jp;import{useState as ys}from"react";import{StarIcon as tf}from"@heroicons/react/20/solid";import{jsx as vs,jsxs as xs}from"react/jsx-runtime";var of={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!"},af={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 rf({point:e,max:o,className:t}){let a=o>5?of[e||10]:af[e||5];return xs("div",{className:i("flex items-center space-x-1",t),children:[vs(tf,{className:"w-5 h-5 text-yellow-500"}),vs("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),xs("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var bs=rf;import{useState as nf}from"react";import hs from"html-react-parser";import{jsx as sf,jsxs as lf}from"react/jsx-runtime";var Hr=({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]=nf(!0),m=()=>{l(!s)},c=(d,f,u=" ")=>d.length<=f?d:d.substring(0,d.lastIndexOf(u,f));return lf("div",{className:i(n),children:[s?hs(c(e,o)):hs(e),e.length>o&&sf("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 Xt,jsxs as ws}from"react/jsx-runtime";function mf({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=ys(0),[m,c]=ys(!1),d=f=>{c(!0),l(f)};return ws("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&Xt(bs,{className:"mb-0.5",point:r.point,max:r.max}),e&&Xt(Hr,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&Xt("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(f=>Xt("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:f}))}),o?.length>0&&ws(Lr,{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((f,u)=>Xt(E,{onClick:()=>d(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:Xt("img",{src:f.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),Xt(Er,{activeSlideIndex:s,images:o?.map((f,u)=>({url:f.url,titleImage:f.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Ns=mf;import{jsx as df}from"react/jsx-runtime";function cf({actions:e=[]}){return df("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Ps=cf;import{jsx as Aa,jsxs as gf}from"react/jsx-runtime";var ff=pf(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:f,isOutStanding:u,limitContent:v=260},k)=>gf("div",{ref:k,className:i("",c?"ml-4 py-4":"py-5"),children:[Aa(us,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:u}),Aa(Ns,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:f,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&Aa(Ps,{actions:l.filter(Boolean)}),d&&Aa("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 Lt from"react";import{cva as uf}from"class-variance-authority";import{CheckIcon as vf}from"@heroicons/react/16/solid";import{XIcon as xf}from"lucide-react";import{jsx as xe,jsxs as La}from"react/jsx-runtime";var bf=uf("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"}}),Cs=Lt.createContext("default");function hf(){let e=Lt.useContext(Cs);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var yf=Lt.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?xe(xf,{className:s}):La("div",{children:[e==="iconStep"&&xe("div",{className:s,children:o}),e==="numberStep"&&xe("div",{children:t}),e==="default"&&(n==="completed"?xe(vf,{className:s}):xe("div",{children:t}))]})}),wf=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=Lt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return xe("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Nf=({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:f,...u})=>{let v=hf();return La("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[La("div",{className:"flex w-full items-center justify-center gap-2",children:[xe("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")}),xe("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",bf({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...u,children:xe(yf,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),xe("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),La("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&&xe("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&xe("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Pf=({children:e,className:o,type:t="numberStep",...a})=>xe(Cs.Provider,{value:t,children:xe("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as be from"react";import{Slot as kf}from"@radix-ui/react-slot";import{Controller as Sf,FormProvider as Df,useFormContext as Mf}from"react-hook-form";import*as Rs from"react";import*as Fr from"@radix-ui/react-label";import{cva as Cf}from"class-variance-authority";import{jsx as Tf}from"react/jsx-runtime";var Rf=Cf("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ea=Rs.forwardRef(({className:e,...o},t)=>Tf(Fr.Root,{ref:t,className:i(Rf(),e),...o}));Ea.displayName=Fr.Root.displayName;import{jsx as Et}from"react/jsx-runtime";var If=Df,Ts=be.createContext({}),Af=({...e})=>Et(Ts.Provider,{value:{name:e.name},children:Et(Sf,{...e})}),Qo=()=>{let e=be.useContext(Ts),o=be.useContext(ks),{getFieldState:t,formState:a}=Mf(),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}},ks=be.createContext({}),Ss=be.forwardRef(({className:e,...o},t)=>{let a=be.useId();return Et(ks.Provider,{value:{id:a},children:Et("div",{ref:t,className:i("space-y-2",e),...o})})});Ss.displayName="FormItem";var Ds=be.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=Qo();return Et(Ea,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});Ds.displayName="FormLabel";var Ms=be.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=Qo();return Et(kf,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});Ms.displayName="FormControl";var Is=be.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=Qo();return Et("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});Is.displayName="FormDescription";var As=be.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=Qo(),s=r?String(r?.message):o;return s?Et("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});As.displayName="FormMessage";import*as wt from"react";import*as w from"@radix-ui/react-dropdown-menu";import{ChevronRight as Lf,Check as Ef}from"lucide-react";import{jsx as pe,jsxs as qo}from"react/jsx-runtime";var Hf=w.Root,Ff=w.Trigger,zf=w.Group,_f=w.Portal,Bf=w.Sub,Vf=w.RadioGroup,Ls=wt.forwardRef(({className:e,inset:o,children:t,...a},r)=>qo(w.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,pe(Lf,{className:"ml-auto"})]}));Ls.displayName=w.SubTrigger.displayName;var Es=wt.forwardRef(({className:e,...o},t)=>pe(w.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}));Es.displayName=w.SubContent.displayName;var Hs=wt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>pe(w.Portal,{children:pe(w.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})}));Hs.displayName=w.Content.displayName;var Fs=wt.forwardRef(({className:e,inset:o,...t},a)=>pe(w.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}));Fs.displayName=w.Item.displayName;var zs=wt.forwardRef(({className:e,children:o,checked:t,...a},r)=>qo(w.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:[qo("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&pe("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),pe(w.ItemIndicator,{children:pe("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:pe(Ef,{size:16,strokeWidth:3})})})]}),o]}));zs.displayName=w.CheckboxItem.displayName;var _s=wt.forwardRef(({className:e,children:o,...t},a)=>qo(w.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:[qo("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[pe("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),pe(w.ItemIndicator,{children:pe("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));_s.displayName=w.RadioItem.displayName;var Bs=wt.forwardRef(({className:e,inset:o,...t},a)=>pe(w.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Bs.displayName=w.Label.displayName;var Vs=wt.forwardRef(({className:e,...o},t)=>pe(w.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));Vs.displayName=w.Separator.displayName;var Os=({className:e,...o})=>pe("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});Os.displayName="DropdownMenuShortcut";import Ha from"html-react-parser";import{Fragment as zr,jsx as U,jsxs as Yt}from"react/jsx-runtime";var Ws=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Yt(zr,{children:[e&&U(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&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:Yt("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}),Yt("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:Ha(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:Ha(a.description)})]})]})},r))}),t&&U(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Of=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Yt(zr,{children:[e&&U(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&U("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>Yt("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[Yt("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(E,{ratio:1,children:U("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),Yt("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:Ha(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:Ha(a.description)})]})]},r))}),t&&U(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Wf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return U(Ws,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return U(Of,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return U(Ws,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},$f=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>U(zr,{children:Wf({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Gf=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>U(B,{className:t,idSection:a,background:o,children:U($f,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as jf}from"class-variance-authority";import $s from"html-react-parser";import{CheckIcon as Gs}from"lucide-react";import{Fragment as _r,jsx as fe,jsxs as js}from"react/jsx-runtime";var Uf=jf("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-1 gap-y-3 ",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),Qf=({template:e,name:o,image:t,isFeatures:a})=>fe(_r,{children:(()=>{switch(e){case 1:case 2:return fe(_r,{children:js("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?fe("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:fe("img",{src:t,alt:"",className:"max-w-full"})}):fe("div",{className:"mt-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-pink-100",children:fe(Gs,{className:"h-4 w-4 text-pink-500"})}),o&&fe("div",{className:"ml-2 ",children:$s(o)})]})});case 3:return js("li",{className:"flex h-full space-x-4",children:[t?fe("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:fe("img",{src:t,alt:"",className:"max-w-full"})}):fe("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:fe(Gs,{className:"h-4 w-4 text-pink-500"})}),o&&fe("div",{className:"my-auto ml-2 md:my-0",children:$s(o)})]});default:return null}})()}),Fa=({dataFeatures:e,template:o=1})=>fe(_r,{children:(e?.length??0)>0&&fe("ul",{className:i("",Uf({template:o})),children:e?.map((t,a)=>fe(Qf,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as qf}from"lucide-react";import{jsx as Z,jsxs as Xo}from"react/jsx-runtime";var Us=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Xf=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>Xo(oo,{children:[Z(Oe,{greaterThan:"sm",children:Xo(E,{className:i(""),ratio:Us(o),children:[Z("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&Xo(ct,{children:[Z(Xa,{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:Xo("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($e,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:Xo(Ct,{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(Ya,{asChild:!0,children:Z(ie,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:Z(qf,{className:"h-6 w-6"})})})]})})]})]})}),a&&Z(Oe,{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"})})})]}),za=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>Z("div",{className:a,children:n?Z(Xf,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):Z(E,{ratio:Us(t),children:Z("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});import Yf from"html-react-parser";import{Fragment as Kf,jsx as _a,jsxs as Br}from"react/jsx-runtime";var Zf=({value:e,suffix:o,unit:t,description:a,idx:r})=>Br("div",{className:i(""),children:[e&&Br("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Br("span",{children:[o," ",t]})]}),a&&_a("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:Yf(a)})]}),Ba=({dataStats:e})=>_a(Kf,{children:(e?.length??0)>0&&_a("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)=>_a(Zf,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Qs,jsx as K,jsxs as Yo}from"react/jsx-runtime";var Vr=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>Yo("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[Yo("div",{className:"col-span-1 ",children:[K(b,{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(Fa,{dataFeatures:t,template:a}),o&&K(h,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),K(Ba,{dataStats:r})]}),K("div",{className:"col-span-1 md:pl-10",children:s||K(za,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),qs=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>Yo("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(za,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),Yo("div",{className:"order-1 col-span-1 md:order-2",children:[K(b,{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(Fa,{dataFeatures:t,template:a}),o&&K("div",{className:"flex w-full items-center justify-center md:justify-start",children:K(h,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),K(Ba,{dataStats:r})]})]}),Xs=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>Yo(Qs,{children:[K(b,{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(h,{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(Fa,{dataFeatures:t,template:a}),K("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:K(Ba,{dataStats:r})}),s||K(Qs,{children:n?.src&&K(za,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});import{Fragment as ag,jsx as Zt}from"react/jsx-runtime";var Jf=`var(
246
+ `})]})}})()})}import*as us from"react";import*as Je from"@radix-ui/react-slider";import{jsx as At,jsxs as af}from"react/jsx-runtime";var vs=us.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>af(Je.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[At(Je.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:At(Je.Range,{className:"absolute h-full bg-pink-500"})}),At(Je.Thumb,{className:"group relative",children:At("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&&At("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})})}),At(Je.Thumb,{className:"group relative",children:At("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&&At("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})})})]}));vs.displayName=Je.Root.displayName;import{forwardRef as hf}from"react";import{Fragment as lf,jsx as Le,jsxs as La}from"react/jsx-runtime";var rf=({author:e=""})=>Le("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),nf=({author:e,avatar:o})=>Le("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Le("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Le(rf,{author:e})});function sf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return Le(lf,{children:La("div",{className:"flex relative items-center space-x-3",children:[Le(nf,{avatar:e,author:o}),La("div",{className:"flex flex-col",children:[o&&Le("div",{className:"font-semibold text-gray-900 text-sm",children:o}),La("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Le("div",{className:"text-gray-400",children:t}),a&&La("div",{className:"flex items-center space-x-2",children:[Le("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Le("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&Le("div",{className:"absolute right-1 top-0",children:Le("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var xs=sf;import{useState as Ns}from"react";import{StarIcon as mf}from"@heroicons/react/20/solid";import{jsx as bs,jsxs as hs}from"react/jsx-runtime";var cf={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!"},df={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 pf({point:e,max:o,className:t}){let a=o>5?cf[e||10]:df[e||5];return hs("div",{className:i("flex items-center space-x-1",t),children:[bs(mf,{className:"w-5 h-5 text-yellow-500"}),bs("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),hs("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var ys=pf;import{useState as ff}from"react";import ws from"html-react-parser";import{jsx as gf,jsxs as uf}from"react/jsx-runtime";var zr=({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]=ff(!0),m=()=>{l(!s)},c=(d,f,u=" ")=>d.length<=f?d:d.substring(0,d.lastIndexOf(u,f));return uf("div",{className:i(n),children:[s?ws(c(e,o)):ws(e),e.length>o&&gf("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 Xt,jsxs as Ps}from"react/jsx-runtime";function vf({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=Ns(0),[m,c]=Ns(!1),d=f=>{c(!0),l(f)};return Ps("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&Xt(ys,{className:"mb-0.5",point:r.point,max:r.max}),e&&Xt(zr,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&Xt("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(f=>Xt("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:f}))}),o?.length>0&&Ps(Hr,{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((f,u)=>Xt(E,{onClick:()=>d(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:Xt("img",{src:f.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),Xt(Fr,{activeSlideIndex:s,images:o?.map((f,u)=>({url:f.url,titleImage:f.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Cs=vf;import{jsx as bf}from"react/jsx-runtime";function xf({actions:e=[]}){return bf("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Rs=xf;import{jsx as Ea,jsxs as wf}from"react/jsx-runtime";var yf=hf(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:f,isOutStanding:u,limitContent:v=260},k)=>wf("div",{ref:k,className:i("",c?"ml-4 py-4":"py-5"),children:[Ea(xs,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:u}),Ea(Cs,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:f,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&Ea(Rs,{actions:l.filter(Boolean)}),d&&Ea("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 Lt from"react";import{cva as Nf}from"class-variance-authority";import{CheckIcon as Pf}from"@heroicons/react/16/solid";import{XIcon as Cf}from"lucide-react";import{jsx as xe,jsxs as Ha}from"react/jsx-runtime";var Rf=Nf("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"}}),Ts=Lt.createContext("default");function Tf(){let e=Lt.useContext(Ts);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var kf=Lt.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?xe(Cf,{className:s}):Ha("div",{children:[e==="iconStep"&&xe("div",{className:s,children:o}),e==="numberStep"&&xe("div",{children:t}),e==="default"&&(n==="completed"?xe(Pf,{className:s}):xe("div",{children:t}))]})}),Sf=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=Lt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return xe("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Df=({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:f,...u})=>{let v=Tf();return Ha("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[Ha("div",{className:"flex w-full items-center justify-center gap-2",children:[xe("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")}),xe("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",Rf({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...u,children:xe(kf,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),xe("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Ha("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&&xe("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&xe("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Mf=({children:e,className:o,type:t="numberStep",...a})=>xe(Ts.Provider,{value:t,children:xe("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as be from"react";import{Slot as Ef}from"@radix-ui/react-slot";import{Controller as Hf,FormProvider as Ff,useFormContext as zf}from"react-hook-form";import*as ks from"react";import*as _r from"@radix-ui/react-label";import{cva as If}from"class-variance-authority";import{jsx as Lf}from"react/jsx-runtime";var Af=If("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Fa=ks.forwardRef(({className:e,...o},t)=>Lf(_r.Root,{ref:t,className:i(Af(),e),...o}));Fa.displayName=_r.Root.displayName;import{jsx as Et}from"react/jsx-runtime";var _f=Ff,Ss=be.createContext({}),Bf=({...e})=>Et(Ss.Provider,{value:{name:e.name},children:Et(Hf,{...e})}),Xo=()=>{let e=be.useContext(Ss),o=be.useContext(Ds),{getFieldState:t,formState:a}=zf(),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}},Ds=be.createContext({}),Ms=be.forwardRef(({className:e,...o},t)=>{let a=be.useId();return Et(Ds.Provider,{value:{id:a},children:Et("div",{ref:t,className:i("space-y-2",e),...o})})});Ms.displayName="FormItem";var Is=be.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=Xo();return Et(Fa,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});Is.displayName="FormLabel";var As=be.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=Xo();return Et(Ef,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});As.displayName="FormControl";var Ls=be.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=Xo();return Et("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});Ls.displayName="FormDescription";var Es=be.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=Xo(),s=r?String(r?.message):o;return s?Et("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});Es.displayName="FormMessage";import*as wt from"react";import*as w from"@radix-ui/react-dropdown-menu";import{ChevronRight as Of,Check as Vf}from"lucide-react";import{jsx as pe,jsxs as Yo}from"react/jsx-runtime";var Wf=w.Root,$f=w.Trigger,Gf=w.Group,jf=w.Portal,Uf=w.Sub,Qf=w.RadioGroup,Hs=wt.forwardRef(({className:e,inset:o,children:t,...a},r)=>Yo(w.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,pe(Of,{className:"ml-auto"})]}));Hs.displayName=w.SubTrigger.displayName;var Fs=wt.forwardRef(({className:e,...o},t)=>pe(w.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}));Fs.displayName=w.SubContent.displayName;var zs=wt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>pe(w.Portal,{children:pe(w.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})}));zs.displayName=w.Content.displayName;var _s=wt.forwardRef(({className:e,inset:o,...t},a)=>pe(w.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}));_s.displayName=w.Item.displayName;var Bs=wt.forwardRef(({className:e,children:o,checked:t,...a},r)=>Yo(w.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:[Yo("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&pe("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),pe(w.ItemIndicator,{children:pe("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:pe(Vf,{size:16,strokeWidth:3})})})]}),o]}));Bs.displayName=w.CheckboxItem.displayName;var Os=wt.forwardRef(({className:e,children:o,...t},a)=>Yo(w.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:[Yo("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[pe("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),pe(w.ItemIndicator,{children:pe("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));Os.displayName=w.RadioItem.displayName;var Vs=wt.forwardRef(({className:e,inset:o,...t},a)=>pe(w.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Vs.displayName=w.Label.displayName;var Ws=wt.forwardRef(({className:e,...o},t)=>pe(w.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));Ws.displayName=w.Separator.displayName;var $s=({className:e,...o})=>pe("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});$s.displayName="DropdownMenuShortcut";import za from"html-react-parser";import{Fragment as Br,jsx as U,jsxs as Yt}from"react/jsx-runtime";var Gs=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Yt(Br,{children:[e&&U(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&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:Yt("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}),Yt("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:za(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:za(a.description)})]})]})},r))}),t&&U(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),qf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Yt(Br,{children:[e&&U(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&U("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>Yt("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[Yt("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(E,{ratio:1,children:U("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),Yt("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:za(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:za(a.description)})]})]},r))}),t&&U(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Xf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return U(Gs,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return U(qf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return U(Gs,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Yf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>U(Br,{children:Xf({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Zf=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>U(B,{className:t,idSection:a,background:o,children:U(Yf,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as Kf}from"class-variance-authority";import js from"html-react-parser";import{CheckIcon as Us}from"lucide-react";import{Fragment as Or,jsx as fe,jsxs as Qs}from"react/jsx-runtime";var Jf=Kf("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}}),eg=({template:e,name:o,image:t,isFeatures:a})=>fe(Or,{children:(()=>{switch(e){case 1:case 2:return fe(Or,{children:Qs("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?fe("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:fe("img",{src:t,alt:"",className:"max-w-full"})}):fe("div",{className:"mt-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-pink-100",children:fe(Us,{className:"h-4 w-4 text-pink-500"})}),o&&fe("div",{className:"ml-2 ",children:js(o)})]})});case 3:return Qs("li",{className:"flex h-full space-x-4",children:[t?fe("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:fe("img",{src:t,alt:"",className:"max-w-full"})}):fe("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:fe(Us,{className:"h-4 w-4 text-pink-500"})}),o&&fe("div",{className:"my-auto ml-2 md:my-0",children:js(o)})]});default:return null}})()}),_a=({dataFeatures:e,template:o=1})=>fe(Or,{children:(e?.length??0)>0&&fe("ul",{className:i("",Jf({template:o})),children:e?.map((t,a)=>fe(eg,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as tg}from"lucide-react";import{jsx as Z,jsxs as Zo}from"react/jsx-runtime";var qs=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,og=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>Zo(ao,{children:[Z(Ve,{greaterThan:"sm",children:Zo(E,{className:i(""),ratio:qs(o),children:[Z("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&Zo(ct,{children:[Z(Za,{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:Zo("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($e,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:Zo(Ct,{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(Ka,{asChild:!0,children:Z(ie,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:Z(tg,{className:"h-6 w-6"})})})]})})]})]})}),a&&Z(Ve,{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"})})})]}),Ba=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>Z("div",{className:a,children:n?Z(og,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):Z(E,{ratio:qs(t),children:Z("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});import ag from"html-react-parser";import{Fragment as ig,jsx as Oa,jsxs as Vr}from"react/jsx-runtime";var rg=({value:e,suffix:o,unit:t,description:a,idx:r})=>Vr("div",{className:i(""),children:[e&&Vr("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Vr("span",{children:[o," ",t]})]}),a&&Oa("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:ag(a)})]}),Va=({dataStats:e})=>Oa(ig,{children:(e?.length??0)>0&&Oa("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)=>Oa(rg,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Xs,jsx as K,jsxs as Ko}from"react/jsx-runtime";var Wr=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>Ko("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[Ko("div",{className:"col-span-1 ",children:[K(b,{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(_a,{dataFeatures:t,template:a}),o&&K(h,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),K(Va,{dataStats:r})]}),K("div",{className:"col-span-1 md:pl-10",children:s||K(Ba,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Ys=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>Ko("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(Ba,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),Ko("div",{className:"order-1 col-span-1 md:order-2",children:[K(b,{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(_a,{dataFeatures:t,template:a}),o&&K("div",{className:"flex w-full items-center justify-center md:justify-start",children:K(h,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),K(Va,{dataStats:r})]})]}),Zs=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>Ko(Xs,{children:[K(b,{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(h,{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(_a,{dataFeatures:t,template:a}),K("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:K(Va,{dataStats:r})}),s||K(Xs,{children:n?.src&&K(Ba,{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 cg,jsx as Zt}from"react/jsx-runtime";var ng=`var(
247
247
  --gradient-pink-1,
248
248
  linear-gradient(
249
249
  38deg,
@@ -265,15 +265,15 @@ import*as Po from"react";import{ChevronDownIcon as im}from"@heroicons/react/20/s
265
265
  rgba(255, 255, 255, 0) 80%
266
266
  ),
267
267
  #fff
268
- )`,eg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return Zt(Vr,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return Zt(qs,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return Zt(Xs,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return Zt(Vr,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},tg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>Zt(ag,{children:eg({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),og=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>Zt(B,{className:i(l),background:m??Jf,idSection:o,children:Zt(tg,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:c})});import{Fragment as Or,jsx as z,jsxs as Zs}from"react/jsx-runtime";var Ys=({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"};return Zs(Or,{children:[e&&z(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&z("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:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,l)=>z("div",{className:i("flex items-center justify-center md:basis-auto md:px-0",r?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:z("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?z("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:z("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):z("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},l))}),t&&z(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},rg=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>Zs(Or,{children:[e&&z(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&z("div",{className:i("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((r,n)=>z("div",{className:i("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:r?.url?z("a",{href:r?.url,title:r?.name,target:r?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:z("div",{className:"flex w-auto max-w-36 items-center justify-center",children:z("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})}):z("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:z("div",{className:"flex w-auto max-w-36 items-center justify-center",children:z("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})})},n))}),t&&z(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ig=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return z(Ys,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return z(rg,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return z(Ys,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},ng=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>z(Or,{children:ig({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),sg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>z(B,{className:t,idSection:a,background:o,children:z(ng,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as lg}from"react";import{ChevronRightIcon as mg}from"@heroicons/react/16/solid";import Q from"html-react-parser";import{Fragment as Nt,jsx as p,jsxs as x}from"react/jsx-runtime";var et=({btnLink:e,btnName:o,newTab:t})=>p(ce,{variant:"primary",asChild:!0,children:x("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",p(mg,{className:"h-4 w-4"})]})}),Wr=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&p("div",{className:"mx-auto h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ks=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("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)=>x("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),p("style",{children:`
268
+ )`,sg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return Zt(Wr,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return Zt(Ys,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return Zt(Zs,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return Zt(Wr,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},lg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>Zt(cg,{children:sg({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),mg=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>Zt(B,{className:i(l),background:m??ng,idSection:o,children:Zt(lg,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:c})});import{Fragment as $r,jsx as z,jsxs as Js}from"react/jsx-runtime";var Ks=({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"};return Js($r,{children:[e&&z(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&z("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:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,l)=>z("div",{className:i("flex items-center justify-center md:basis-auto md:px-0",r?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:z("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?z("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:z("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):z("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},l))}),t&&z(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},dg=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>Js($r,{children:[e&&z(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&z("div",{className:i("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((r,n)=>z("div",{className:i("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:r?.url?z("a",{href:r?.url,title:r?.name,target:r?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:z("div",{className:"flex w-auto max-w-36 items-center justify-center",children:z("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})}):z("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:z("div",{className:"flex w-auto max-w-36 items-center justify-center",children:z("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})})},n))}),t&&z(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),pg=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return z(Ks,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return z(dg,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return z(Ks,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},fg=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>z($r,{children:pg({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),gg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>z(B,{className:t,idSection:a,background:o,children:z(fg,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as ug}from"react";import{ChevronRightIcon as vg}from"@heroicons/react/16/solid";import Q from"html-react-parser";import{Fragment as Nt,jsx as p,jsxs as x}from"react/jsx-runtime";var et=({btnLink:e,btnName:o,newTab:t})=>p(ce,{variant:"primary",asChild:!0,children:x("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",p(vg,{className:"h-4 w-4"})]})}),Gr=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&p("div",{className:"mx-auto h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),el=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("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)=>x("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),p("style",{children:`
269
269
  .list-features-2 .feature-item {
270
270
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
271
271
  }
272
- `})]}),Js=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 w-full flex-1",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),el=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[x("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&p(b,{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&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),x("div",{className:"lg:col-span-6",children:[o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),tl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ol=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("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)=>x("div",{className:"feature-item relative w-full",children:[a?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),al=({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,f)=>{let u=d?.btnLink?"a":"div",v=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return p("div",{className:i("basis-1/2 px-2 lg:px-5",l,f===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:x(u,{...v,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&p("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:p("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy"})}),x("div",{className:"w-full flex-1 text-center",children:[d?.name&&p("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:Q(d.name)}),d?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(d.description)})]})]})},f)};return x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,f)=>c(d,f))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},rl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[x("div",{className:"flex w-full flex-1 flex-col p-5",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&p("div",{className:"w-full",style:{aspectRatio:"347/220"},children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),il=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>x("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[p("div",{className:"flex items-center lg:col-span-6",children:x("div",{className:"w-full",children:[e&&p(b,{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&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((r,n)=>x("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&p("div",{className:"h-10 w-10",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&p("div",{className:"flex items-center lg:col-span-4",children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:p(E,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),nl=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),p("div",{className:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&x("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)=>x("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-gray-500",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&x("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:[p("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"}}),p("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:p("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&p(h,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),sl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=lg(0),s=aa();return x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&x("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[p("div",{children:o&&p("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:p(it,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((l,m)=>x(nt,{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:[p(st,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:Q(l.name||"")}),x(lt,{children:[l?.description&&p("div",{className:"text-muted-foreground mb-3",children:Q(l.description||"")}),l?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a&&p("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:p(E,{ratio:1,className:"w-full",children:p("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),p("div",{className:i(a?"flex":"hidden md:flex"),children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?p(E,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):p("div",{className:"hidden md:flex",children:o?.[r]?.image?p(E,{ratio:1,className:"w-full",children:p("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):p("div",{className:"h-0 w-0"})})})})]}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as fg,jsx as ge}from"react/jsx-runtime";var cg=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return ge(Wr,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ge(Ks,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ge(Js,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ge(el,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ge(tl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ge(ol,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ge(al,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ge(rl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ge(il,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return ge(nl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return ge(sl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return ge(Wr,{dataHeading:o,dataFeatures:t,dataButtons:a})}},dg=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>ge(fg,{children:cg({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),pg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>ge(B,{className:t,idSection:a,background:o,children:ge(dg,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as yg}from"@heroicons/react/24/solid";import Gr from"html-react-parser";import wg from"lodash";import{useEffect as gg,useState as $r}from"react";import{animate as ll,motion as ug,useMotionValue as vg}from"motion/react";import xg from"react-use-measure";import{jsx as hg,jsxs as bg}from"react/jsx-runtime";function Va({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=$r(t),[d,{width:f,height:u}]=xg(),v=vg(0),[k,D]=$r(!1),[M,H]=$r(0);gg(()=>{let I,N=(r==="horizontal"?f:u)+o,re=n?-N/2:0,G=n?0:-N/2,_t=Math.abs(G-re)/m;if(k){let wo=Math.abs(v.get()-G)/m;I=ll(v,[v.get(),G],{ease:"linear",duration:wo,onComplete:()=>{D(!1),H(tm=>tm+1)}})}else I=ll(v,[re,G],{ease:"linear",duration:_t,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(re)}});return I?.stop},[M,v,m,f,u,o,k,r,n]);let $=a?{onHoverStart:()=>{D(!0),c(a)},onHoverEnd:()=>{D(!0),c(t)},onTouchStart:()=>{D(!0),c(a)},onTouchEnd:()=>{D(!0),c(t)}}:{};return hg("div",{className:i("overflow-hidden",s),children:bg(ug.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,...$,children:[e,e]})})}var Oa=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Wa=({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()||""},$a=(e,o)=>o[e%o.length];import{Fragment as cl,jsx as J,jsxs as xo}from"react/jsx-runtime";var Ng=({avatar:e="",name:o="",index:t=0})=>{if(wg.isEmpty(e)){let a=Wa({name:o})??"",r=$a(t,Oa);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})})},ml=({testimonial:e,className:o,index:t})=>J("div",{className:i("testimonial-item",o),children:xo("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:[xo("div",{className:"flex flex-nowrap items-center space-x-2",children:[J(Ng,{avatar:e.avatar,name:e.name,index:t}),xo("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:Gr(e.position)})]})]}),xo("div",{className:"mt-3",children:[e?.shortTitle&&J("div",{className:"text-sm font-bold text-gray-700",children:Gr(e.shortTitle)}),e?.description&&J("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Gr(e.description)})]}),xo("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(yg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),jr=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return xo(cl,{children:[e&&J(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&J(cl,{children:r?J("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:J(Va,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>J(ml,{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(ml,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&J(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as dl}from"@heroicons/react/24/solid";import Ur from"html-react-parser";import{Fragment as Rg,jsx as A,jsxs as Ve}from"react/jsx-runtime";var Pg=({className:e})=>A("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A("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"})}),Cg=({testimonial:e,className:o})=>A("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:Ve("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&A("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:A(E,{ratio:2/3,className:"w-full",children:A("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Ve("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Ve("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Ve("div",{className:"grow",children:[e?.name&&A("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&A("div",{className:"mt-1 text-xs font-normal text-gray-500",children:Ur(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Ve("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&A("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&A("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>A(dl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&A("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:A(E,{ratio:2/3,className:"w-full",children:A("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Ve("div",{className:"flex flex-1 flex-col md:flex-none",children:[Ve("div",{className:"flex-1",children:[Ve("div",{className:"mb-1.5 flex flex-none space-x-3",children:[A(Pg,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&A("div",{className:"flex-none text-base font-medium md:text-lg",children:Ur(e.shortTitle)})]}),e?.description&&A("blockquote",{className:"relative flex-1 text-justify text-base",children:Ur(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Ve("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&&A("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&A("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>A(dl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),pl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Ve(Rg,{children:[e&&A(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&Ve(he,{className:"w-full",children:[A(ye,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>A(we,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:A(Cg,{testimonial:a})},r))}),(o??[]).length>1&&A(la,{className:"mt-8"})]}),t&&A(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as Tg}from"@heroicons/react/24/solid";import Qr from"html-react-parser";import kg from"lodash";import{Fragment as gl,jsx as _,jsxs as Kt}from"react/jsx-runtime";var Sg=({avatar:e="",name:o="",index:t=0})=>{if(kg.isEmpty(e)){let a=Wa({name:o})??"",r=$a(t,Oa);return _("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 _("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:_("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},fl=({testimonial:e,className:o,index:t})=>_("div",{className:i("testimonial-item",o),children:Kt("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:[Kt("div",{className:"flex flex-nowrap items-center space-x-2",children:[_(Sg,{avatar:e.avatar,name:e.name,index:t}),Kt("div",{className:"flex-1 pl-1",children:[_("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&_("div",{className:"text-xs font-normal text-pink-500",children:Qr(e.position)})]})]}),Kt("div",{className:"mt-3",children:[e?.shortTitle&&_("div",{className:"text-sm font-bold text-gray-700",children:Qr(e.shortTitle)}),e?.description&&_("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Qr(e.description)})]}),Kt("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&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>_(Tg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),ul=({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=>_(gl,{children:l.map((m,c)=>_(Va,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,f)=>_(fl,{testimonial:d,index:f,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${f}`))},`slider-${c}`))});return Kt(gl,{children:[e&&_(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&_(oo,{children:r?Kt("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[_(Oe,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),_(Oe,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),_(Oe,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):_("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>_(fl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&_(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),_("style",{children:`
272
+ `})]}),tl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 w-full flex-1",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ol=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[x("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&p(b,{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&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),x("div",{className:"lg:col-span-6",children:[o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),al=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),rl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("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)=>x("div",{className:"feature-item relative w-full",children:[a?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),il=({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,f)=>{let u=d?.btnLink?"a":"div",v=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return p("div",{className:i("basis-1/2 px-2 lg:px-5",l,f===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:x(u,{...v,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&p("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:p("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy"})}),x("div",{className:"w-full flex-1 text-center",children:[d?.name&&p("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:Q(d.name)}),d?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(d.description)})]})]})},f)};return x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,f)=>c(d,f))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},nl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[x("div",{className:"flex w-full flex-1 flex-col p-5",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&p("div",{className:"w-full",style:{aspectRatio:"347/220"},children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),sl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>x("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[p("div",{className:"flex items-center lg:col-span-6",children:x("div",{className:"w-full",children:[e&&p(b,{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&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((r,n)=>x("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&p("div",{className:"h-10 w-10",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&p("div",{className:"flex items-center lg:col-span-4",children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:p(E,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),ll=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),p("div",{className:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&x("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)=>x("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-gray-500",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&x("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:[p("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"}}),p("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:p("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&p(h,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),ml=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=ug(0),s=ia();return x(Nt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&x("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[p("div",{children:o&&p("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:p(it,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((l,m)=>x(nt,{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:[p(st,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:Q(l.name||"")}),x(lt,{children:[l?.description&&p("div",{className:"text-muted-foreground mb-3",children:Q(l.description||"")}),l?.btnLink&&p("div",{className:"mt-4",children:p(et,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a&&p("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:p(E,{ratio:1,className:"w-full",children:p("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),p("div",{className:i(a?"flex":"hidden md:flex"),children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?p(E,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):p("div",{className:"hidden md:flex",children:o?.[r]?.image?p(E,{ratio:1,className:"w-full",children:p("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):p("div",{className:"h-0 w-0"})})})})]}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as yg,jsx as ge}from"react/jsx-runtime";var xg=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return ge(Gr,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ge(el,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ge(tl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ge(ol,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ge(al,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ge(rl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ge(il,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ge(nl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ge(sl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return ge(ll,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return ge(ml,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return ge(Gr,{dataHeading:o,dataFeatures:t,dataButtons:a})}},bg=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>ge(yg,{children:xg({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),hg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>ge(B,{className:t,idSection:a,background:o,children:ge(bg,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as kg}from"@heroicons/react/24/solid";import Ur from"html-react-parser";import Sg from"lodash";import{useEffect as wg,useState as jr}from"react";import{animate as cl,motion as Ng,useMotionValue as Pg}from"motion/react";import Cg from"react-use-measure";import{jsx as Tg,jsxs as Rg}from"react/jsx-runtime";function Wa({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=jr(t),[d,{width:f,height:u}]=Cg(),v=Pg(0),[k,D]=jr(!1),[M,H]=jr(0);wg(()=>{let I,N=(r==="horizontal"?f:u)+o,re=n?-N/2:0,G=n?0:-N/2,_t=Math.abs(G-re)/m;if(k){let Po=Math.abs(v.get()-G)/m;I=cl(v,[v.get(),G],{ease:"linear",duration:Po,onComplete:()=>{D(!1),H(lm=>lm+1)}})}else I=cl(v,[re,G],{ease:"linear",duration:_t,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(re)}});return I?.stop},[M,v,m,f,u,o,k,r,n]);let $=a?{onHoverStart:()=>{D(!0),c(a)},onHoverEnd:()=>{D(!0),c(t)},onTouchStart:()=>{D(!0),c(a)},onTouchEnd:()=>{D(!0),c(t)}}:{};return Tg("div",{className:i("overflow-hidden",s),children:Rg(Ng.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,...$,children:[e,e]})})}var $a=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Ga=({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()||""},ja=(e,o)=>o[e%o.length];import{Fragment as pl,jsx as J,jsxs as bo}from"react/jsx-runtime";var Dg=({avatar:e="",name:o="",index:t=0})=>{if(Sg.isEmpty(e)){let a=Ga({name:o})??"",r=ja(t,$a);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})})},dl=({testimonial:e,className:o,index:t})=>J("div",{className:i("testimonial-item",o),children:bo("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:[bo("div",{className:"flex flex-nowrap items-center space-x-2",children:[J(Dg,{avatar:e.avatar,name:e.name,index:t}),bo("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:Ur(e.position)})]})]}),bo("div",{className:"mt-3",children:[e?.shortTitle&&J("div",{className:"text-sm font-bold text-gray-700",children:Ur(e.shortTitle)}),e?.description&&J("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Ur(e.description)})]}),bo("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(kg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Qr=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return bo(pl,{children:[e&&J(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&J(pl,{children:r?J("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:J(Wa,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>J(dl,{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(dl,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&J(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as fl}from"@heroicons/react/24/solid";import qr from"html-react-parser";import{Fragment as Ag,jsx as A,jsxs as Oe}from"react/jsx-runtime";var Mg=({className:e})=>A("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A("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"})}),Ig=({testimonial:e,className:o})=>A("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:Oe("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&A("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:A(E,{ratio:2/3,className:"w-full",children:A("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Oe("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Oe("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Oe("div",{className:"grow",children:[e?.name&&A("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&A("div",{className:"mt-1 text-xs font-normal text-gray-500",children:qr(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Oe("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&A("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&A("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>A(fl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&A("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:A(E,{ratio:2/3,className:"w-full",children:A("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Oe("div",{className:"flex flex-1 flex-col md:flex-none",children:[Oe("div",{className:"flex-1",children:[Oe("div",{className:"mb-1.5 flex flex-none space-x-3",children:[A(Mg,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&A("div",{className:"flex-none text-base font-medium md:text-lg",children:qr(e.shortTitle)})]}),e?.description&&A("blockquote",{className:"relative flex-1 text-justify text-base",children:qr(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Oe("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&&A("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&A("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>A(fl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),gl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Oe(Ag,{children:[e&&A(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&Oe(he,{className:"w-full",children:[A(ye,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>A(we,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:A(Ig,{testimonial:a})},r))}),(o??[]).length>1&&A(ca,{className:"mt-8"})]}),t&&A(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as Lg}from"@heroicons/react/24/solid";import Xr from"html-react-parser";import Eg from"lodash";import{Fragment as vl,jsx as _,jsxs as Kt}from"react/jsx-runtime";var Hg=({avatar:e="",name:o="",index:t=0})=>{if(Eg.isEmpty(e)){let a=Ga({name:o})??"",r=ja(t,$a);return _("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 _("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:_("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},ul=({testimonial:e,className:o,index:t})=>_("div",{className:i("testimonial-item",o),children:Kt("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:[Kt("div",{className:"flex flex-nowrap items-center space-x-2",children:[_(Hg,{avatar:e.avatar,name:e.name,index:t}),Kt("div",{className:"flex-1 pl-1",children:[_("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&_("div",{className:"text-xs font-normal text-pink-500",children:Xr(e.position)})]})]}),Kt("div",{className:"mt-3",children:[e?.shortTitle&&_("div",{className:"text-sm font-bold text-gray-700",children:Xr(e.shortTitle)}),e?.description&&_("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Xr(e.description)})]}),Kt("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&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>_(Lg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),xl=({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=>_(vl,{children:l.map((m,c)=>_(Wa,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,f)=>_(ul,{testimonial:d,index:f,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${f}`))},`slider-${c}`))});return Kt(vl,{children:[e&&_(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&_(ao,{children:r?Kt("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[_(Ve,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),_(Ve,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),_(Ve,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):_("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>_(ul,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&_(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),_("style",{children:`
273
273
  .mark-vertical-marquee {
274
274
  mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
275
275
  }
276
- `})]})};import{Fragment as Ag,jsx as Jt}from"react/jsx-runtime";var Dg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return Jt(jr,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return Jt(ul,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return Jt(pl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return Jt(jr,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Mg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>Jt(Ag,{children:Dg({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Ig=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>Jt(B,{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:Jt(Mg,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import vl from"html-react-parser";import{Fragment as Lg,jsx as oe,jsxs as eo}from"react/jsx-runtime";var qr=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>oe(it,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>eo(nt,{value:n.title,className:"last:border-none",children:[oe(st,{className:"md:text-lg",children:n.title}),oe(lt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:vl(n.description)})]},s))});return eo("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[oe("div",{className:"relative",children:eo("div",{className:"md:sticky md:top-14",children:[o&&oe(b,{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(h,{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(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},xl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>oe(it,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>eo(nt,{value:c.title,className:"last:border-none",children:[oe(st,{className:"md:text-lg",children:c.title}),oe(lt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:vl(c.description)})]},d))});return eo(Lg,{children:[o&&oe(b,{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&&eo(vt,{defaultValue:e[0]?.title,children:[e?.length>1&&eo(pt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[oe(ft,{className:"mb-3 text-center",children:oe(Ge,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>oe(je,{value:m.title,children:m.title},m.title+c))})}),oe(gt,{}),oe(ut,{})]}),e.map((m,c)=>oe(Ue,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&oe(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as zg,jsx as bo}from"react/jsx-runtime";var Eg=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return bo(qr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return bo(xl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return bo(qr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},Hg=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>bo(zg,{children:Eg({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Fg=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>bo(B,{className:t,idSection:r,background:a,children:bo(Hg,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import _g,{memo as Bg}from"react";import{ArrowDownIcon as Vg}from"@heroicons/react/20/solid";import Og from"html-react-parser";import{Fragment as bl,jsx as X,jsxs as tt}from"react/jsx-runtime";var Wg=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return tt(bl,{children:[X("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:tt("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})]})}),tt("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}),tt("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&tt(bl,{children:[X(ce,{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})]})]})]})},Xr=Bg(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,f,u)=>{d?.preventDefault(),d?.stopPropagation(),a?a(f):window.open(u,"_blank")},c=(d,f)=>tt("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((u,v)=>X("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:X("div",{onClick:k=>m(k,u?.id,u?.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(Wg,{news:u})},u?.id)},v))}),d?.isShowBtn&&X("div",{className:"mt-8 flex w-full items-center justify-center",children:tt(He,{action:d?.btnUrl||r&&(()=>r?.(f)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[Og(d.btnName||"Xem th\xEAm"),d?.isLoading?X(ro,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&X(Vg,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||f);return tt(_g.Fragment,{children:[e&&X(b,{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?tt(vt,{defaultValue:t[0]?.title,children:[tt(pt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[X(ft,{className:"mb-6 text-center",children:X(Ge,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,f)=>X(je,{value:d.title,children:d.title},d.title+f))})}),X(gt,{}),X(ut,{})]}),t.map((d,f)=>X(Ue,{value:d.title,children:c(d,f)},d.title+f))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as Ug,jsx as Zo}from"react/jsx-runtime";var $g=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return Zo(Xr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return Zo(Xr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Gg=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>Zo(Ug,{children:$g({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),jg=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:l})=>Zo(B,{className:i(a),background:r,children:Zo(Gg,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as Zg,jsx as Re,jsxs as Yr}from"react/jsx-runtime";var hl=({dataHeading:e,dataCTA:o,dataButtons:t})=>Yr("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&&Re(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&Re(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Qg=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Yr("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:[Yr("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&Re(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&Re(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Re("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&Re(E,{ratio:4/3,children:Re("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),qg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return Re(hl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return Re(Qg,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return Re(hl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},Xg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>Re(Zg,{children:qg({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),Yg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>Re(B,{className:t,idSection:a,background:o,children:Re(Xg,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import yl from"react";import Zr from"html-react-parser";import{jsx as Ht,jsxs as wl}from"react/jsx-runtime";var Kg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return wl("div",{className:" text-center",children:[Ht("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Zr(t??"")}),Ht("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Zr(o??"")}),a&&Ht("div",{className:"mt-2 text-sm text-gray-500",children:Zr(a??"")})]})},Ga=({dataMetrics:e,dataButtons:o,dataHeading:t})=>wl(yl.Fragment,{children:[t&&Ht(b,{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&&Ht("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)=>Ht(yl.Fragment,{children:Ht(Kg,{metric:a})},r))}),o&&Ht(h,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import Nl from"react";import Kr from"html-react-parser";import{jsx as Ft,jsxs as Pl}from"react/jsx-runtime";var Jg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Pl("div",{className:" text-center md:text-left",children:[Ft("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:Kr(t??"")}),Ft("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Kr(o??"")}),a&&Ft("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:Kr(a??"")})]})},Jr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Pl(Nl.Fragment,{children:[t&&Ft(b,{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&&Ft("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)=>Ft(Nl.Fragment,{children:Ft(Jg,{metric:a})},r))}),o&&Ft(h,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as au,jsx as ho}from"react/jsx-runtime";var eu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return ho(Ga,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return ho(Jr,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return ho(Ga,{dataMetrics:o,dataButtons:a,dataHeading:e})}},tu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>ho(au,{children:eu({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),ou=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:r,template:n})=>ho(B,{className:i(r),background:a,children:ho(tu,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});import{forwardRef as ru}from"react";import{jsx as Cl,jsxs as nu}from"react/jsx-runtime";var iu=ru(({className:e,title:o,children:t},a)=>nu("div",{className:e,ref:a,children:[Cl("div",{className:"font-semibold text-gray-800",children:o}),Cl("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 du}from"react";import{Fragment as cu,jsx as to,jsxs as mu}from"react/jsx-runtime";var su=()=>to("div",{className:"p-3 border rounded-lg",children:mu("div",{className:"flex items-center gap-3",children:[to(Ma,{className:"rounded-md h-9 w-9 "}),to("div",{className:"flex-1",children:to(Ma,{className:"w-48 h-5 "})}),to("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function lu(){return to(cu,{children:Array.from({length:4}).map((e,o)=>to(su,{},o))})}var Rl=lu;import{Fragment as gu,jsx as Pt,jsxs as ei}from"react/jsx-runtime";var pu=({paymentMethod:e})=>Pt(Da,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:ei("div",{className:"flex items-center space-x-3",children:[Pt("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),ei("div",{className:"grid grid-cols-1 gap-1",children:[Pt("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Pt("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Pt("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),fu=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=du(s=>a?.(s),[a]);return ei(gu,{children:[e&&Pt("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Pt(Rl,{}):Pt(Sa,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Pt(pu,{paymentMethod:s},s.id))})]})};import{forwardRef as Tl}from"react";import{jsx as Sl}from"react/jsx-runtime";var uu=Tl(({children:e,className:o},t)=>Sl("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),kl=Tl(({children:e,className:o,...t},a)=>Sl(uu,{ref:a,className:o,...t,children:e}));kl.displayName="Payment";import{forwardRef as vu}from"react";import{jsx as Dl,jsxs as bu}from"react/jsx-runtime";var xu=vu(({className:e,children:o},t)=>bu("div",{className:i("",e),ref:t,children:[Dl("hr",{className:"mb-5 h-px w-full bg-gray-500"}),Dl("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as hu}from"react";import{jsx as wu}from"react/jsx-runtime";var yu=hu(({className:e,children:o},t)=>wu("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as ku}from"react";import{CheckBadgeIcon as Nu,XCircleIcon as Pu}from"@heroicons/react/20/solid";import{jsx as ne,jsxs as yo}from"react/jsx-runtime";var Cu=({iconPaymentResult:e,message:o="",title:t=""})=>yo("div",{className:"grid grid-cols-1 gap-4",children:[yo("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(Go,{message:o,type:"success",icon:ne(Nu,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Ru=({iconPaymentResult:e,message:o="",title:t=""})=>yo("div",{className:"grid grid-cols-1 gap-4",children:[yo("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(Go,{message:o,type:"error",icon:ne(Pu,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Tu=({iconPaymentResult:e,message:o="",title:t=""})=>yo("div",{className:"grid grid-cols-1 gap-4",children:[yo("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(Go,{message:o,type:"neutral"})]}),Ml=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ne(Cu,{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(Ru,{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(Tu,{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 Du,jsxs as Mu}from"react/jsx-runtime";var Su=ku(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>Mu("div",{ref:s,className:i("rounded-lg p-4",e),children:[Du(Ml,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as Au,useEffect as Lu}from"react";import{jsx as ti,jsxs as Iu}from"react/jsx-runtime";var ja=({content:e})=>Iu("picture",{children:[ti("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),ti("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),ti(He,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as Ko,jsxs as Fu}from"react/jsx-runtime";var Eu=({template:e,content:o})=>{switch(e){case 1:return Ko(ja,{content:o});default:return Ko(ja,{content:o})}},Hu=Au(({template:e,content:o},t)=>(Lu(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),Fu("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[Ko("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:Ko("div",{className:"content",children:Eu({template:e,content:o})})}),Ko("style",{children:`
276
+ `})]})};import{Fragment as Bg,jsx as Jt}from"react/jsx-runtime";var Fg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return Jt(Qr,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return Jt(xl,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return Jt(gl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return Jt(Qr,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},zg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>Jt(Bg,{children:Fg({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),_g=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>Jt(B,{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:Jt(zg,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import bl from"html-react-parser";import{Fragment as Og,jsx as oe,jsxs as eo}from"react/jsx-runtime";var Yr=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>oe(it,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>eo(nt,{value:n.title,className:"last:border-none",children:[oe(st,{className:"md:text-lg",children:n.title}),oe(lt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:bl(n.description)})]},s))});return eo("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[oe("div",{className:"relative",children:eo("div",{className:"md:sticky md:top-14",children:[o&&oe(b,{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(h,{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(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},hl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>oe(it,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>eo(nt,{value:c.title,className:"last:border-none",children:[oe(st,{className:"md:text-lg",children:c.title}),oe(lt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:bl(c.description)})]},d))});return eo(Og,{children:[o&&oe(b,{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&&eo(vt,{defaultValue:e[0]?.title,children:[e?.length>1&&eo(pt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[oe(ft,{className:"mb-3 text-center",children:oe(Ge,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>oe(je,{value:m.title,children:m.title},m.title+c))})}),oe(gt,{}),oe(ut,{})]}),e.map((m,c)=>oe(Ue,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&oe(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as Gg,jsx as ho}from"react/jsx-runtime";var Vg=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return ho(Yr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return ho(hl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return ho(Yr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},Wg=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>ho(Gg,{children:Vg({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),$g=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>ho(B,{className:t,idSection:r,background:a,children:ho(Wg,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import jg,{memo as Ug}from"react";import{ArrowDownIcon as Qg}from"@heroicons/react/20/solid";import qg from"html-react-parser";import{Fragment as yl,jsx as X,jsxs as tt}from"react/jsx-runtime";var Xg=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return tt(yl,{children:[X("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:tt("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})]})}),tt("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}),tt("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&tt(yl,{children:[X(ce,{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})]})]})]})},Zr=Ug(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,f,u)=>{d?.preventDefault(),d?.stopPropagation(),a?a(f):window.open(u,"_blank")},c=(d,f)=>tt("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((u,v)=>X("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:X("div",{onClick:k=>m(k,u?.id,u?.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(Xg,{news:u})},u?.id)},v))}),d?.isShowBtn&&X("div",{className:"mt-8 flex w-full items-center justify-center",children:tt(He,{action:d?.btnUrl||r&&(()=>r?.(f)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[qg(d.btnName||"Xem th\xEAm"),d?.isLoading?X(io,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&X(Qg,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||f);return tt(jg.Fragment,{children:[e&&X(b,{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?tt(vt,{defaultValue:t[0]?.title,children:[tt(pt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[X(ft,{className:"mb-6 text-center",children:X(Ge,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,f)=>X(je,{value:d.title,children:d.title},d.title+f))})}),X(gt,{}),X(ut,{})]}),t.map((d,f)=>X(Ue,{value:d.title,children:c(d,f)},d.title+f))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as Jg,jsx as Jo}from"react/jsx-runtime";var Yg=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return Jo(Zr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return Jo(Zr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Zg=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>Jo(Jg,{children:Yg({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Kg=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:l})=>Jo(B,{className:i(a),background:r,children:Jo(Zg,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as ru,jsx as Re,jsxs as Kr}from"react/jsx-runtime";var wl=({dataHeading:e,dataCTA:o,dataButtons:t})=>Kr("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&&Re(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&Re(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),eu=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Kr("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:[Kr("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&Re(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&Re(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Re("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&Re(E,{ratio:4/3,children:Re("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),tu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return Re(wl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return Re(eu,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return Re(wl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},ou=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>Re(ru,{children:tu({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),au=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>Re(B,{className:t,idSection:a,background:o,children:Re(ou,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import Nl from"react";import Jr from"html-react-parser";import{jsx as Ht,jsxs as Pl}from"react/jsx-runtime";var iu=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Pl("div",{className:" text-center",children:[Ht("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Jr(t??"")}),Ht("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Jr(o??"")}),a&&Ht("div",{className:"mt-2 text-sm text-gray-500",children:Jr(a??"")})]})},Ua=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Pl(Nl.Fragment,{children:[t&&Ht(b,{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&&Ht("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)=>Ht(Nl.Fragment,{children:Ht(iu,{metric:a})},r))}),o&&Ht(h,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import Cl from"react";import ei from"html-react-parser";import{jsx as Ft,jsxs as Rl}from"react/jsx-runtime";var nu=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Rl("div",{className:" text-center md:text-left",children:[Ft("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:ei(t??"")}),Ft("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:ei(o??"")}),a&&Ft("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:ei(a??"")})]})},ti=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Rl(Cl.Fragment,{children:[t&&Ft(b,{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&&Ft("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)=>Ft(Cl.Fragment,{children:Ft(nu,{metric:a})},r))}),o&&Ft(h,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as cu,jsx as yo}from"react/jsx-runtime";var su=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return yo(Ua,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return yo(ti,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return yo(Ua,{dataMetrics:o,dataButtons:a,dataHeading:e})}},lu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>yo(cu,{children:su({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),mu=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:r,template:n})=>yo(B,{className:i(r),background:a,children:yo(lu,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});import{forwardRef as du}from"react";import{jsx as Tl,jsxs as fu}from"react/jsx-runtime";var pu=du(({className:e,title:o,children:t},a)=>fu("div",{className:e,ref:a,children:[Tl("div",{className:"font-semibold text-gray-800",children:o}),Tl("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 bu}from"react";import{Fragment as xu,jsx as to,jsxs as vu}from"react/jsx-runtime";var gu=()=>to("div",{className:"p-3 border rounded-lg",children:vu("div",{className:"flex items-center gap-3",children:[to(Aa,{className:"rounded-md h-9 w-9 "}),to("div",{className:"flex-1",children:to(Aa,{className:"w-48 h-5 "})}),to("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function uu(){return to(xu,{children:Array.from({length:4}).map((e,o)=>to(gu,{},o))})}var kl=uu;import{Fragment as wu,jsx as Pt,jsxs as oi}from"react/jsx-runtime";var hu=({paymentMethod:e})=>Pt(Ia,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:oi("div",{className:"flex items-center space-x-3",children:[Pt("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),oi("div",{className:"grid grid-cols-1 gap-1",children:[Pt("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Pt("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Pt("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),yu=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=bu(s=>a?.(s),[a]);return oi(wu,{children:[e&&Pt("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Pt(kl,{}):Pt(Ma,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Pt(hu,{paymentMethod:s},s.id))})]})};import{forwardRef as Sl}from"react";import{jsx as Ml}from"react/jsx-runtime";var Nu=Sl(({children:e,className:o},t)=>Ml("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),Dl=Sl(({children:e,className:o,...t},a)=>Ml(Nu,{ref:a,className:o,...t,children:e}));Dl.displayName="Payment";import{forwardRef as Pu}from"react";import{jsx as Il,jsxs as Ru}from"react/jsx-runtime";var Cu=Pu(({className:e,children:o},t)=>Ru("div",{className:i("",e),ref:t,children:[Il("hr",{className:"mb-5 h-px w-full bg-gray-500"}),Il("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as Tu}from"react";import{jsx as Su}from"react/jsx-runtime";var ku=Tu(({className:e,children:o},t)=>Su("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as Eu}from"react";import{CheckBadgeIcon as Du,XCircleIcon as Mu}from"@heroicons/react/20/solid";import{jsx as ne,jsxs as wo}from"react/jsx-runtime";var Iu=({iconPaymentResult:e,message:o="",title:t=""})=>wo("div",{className:"grid grid-cols-1 gap-4",children:[wo("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(Uo,{message:o,type:"success",icon:ne(Du,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Au=({iconPaymentResult:e,message:o="",title:t=""})=>wo("div",{className:"grid grid-cols-1 gap-4",children:[wo("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(Uo,{message:o,type:"error",icon:ne(Mu,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Lu=({iconPaymentResult:e,message:o="",title:t=""})=>wo("div",{className:"grid grid-cols-1 gap-4",children:[wo("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(Uo,{message:o,type:"neutral"})]}),Al=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ne(Iu,{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(Au,{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(Lu,{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 Fu,jsxs as zu}from"react/jsx-runtime";var Hu=Eu(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>zu("div",{ref:s,className:i("rounded-lg p-4",e),children:[Fu(Al,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as Bu,useEffect as Ou}from"react";import{jsx as ai,jsxs as _u}from"react/jsx-runtime";var Qa=({content:e})=>_u("picture",{children:[ai("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),ai("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),ai(He,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as ea,jsxs as $u}from"react/jsx-runtime";var Vu=({template:e,content:o})=>{switch(e){case 1:return ea(Qa,{content:o});default:return ea(Qa,{content:o})}},Wu=Bu(({template:e,content:o},t)=>(Ou(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),$u("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[ea("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:ea("div",{className:"content",children:Vu({template:e,content:o})})}),ea("style",{children:`
277
277
  .container-topbar .content {
278
278
  width: 100%;
279
279
  aspect-ratio: 1088/50;
@@ -291,7 +291,20 @@ import*as Po from"react";import{ChevronDownIcon as im}from"@heroicons/react/20/s
291
291
  aspect-ratio: 720/88;
292
292
  }
293
293
  }
294
- `})]})));import*as Jo from"react";import{XIcon as zu}from"lucide-react";import{Drawer as Ee}from"vaul";import{jsx as ot,jsxs as oi}from"react/jsx-runtime";var Il=({shouldScaleBackground:e=!0,...o})=>ot(Ee.Root,{shouldScaleBackground:e,...o});Il.displayName="Drawer";var _u=Ee.Trigger,Al=Ee.Portal,Bu=Ee.Close,ai=Jo.forwardRef(({className:e,...o},t)=>ot(Ee.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));ai.displayName=Ee.Overlay.displayName;var Ll=Jo.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>oi(Al,{children:[ot(ai,{}),oi(Ee.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&&oi(Ee.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:[ot(zu,{className:"h-5 w-5"}),ot("span",{className:"sr-only",children:"Close"})]}),o]})]}));Ll.displayName="DrawerContent";var El=({className:e,...o})=>ot("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});El.displayName="DrawerHeader";var Hl=({className:e,...o})=>ot("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});Hl.displayName="DrawerFooter";var Fl=Jo.forwardRef(({className:e,...o},t)=>ot(Ee.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));Fl.displayName=Ee.Title.displayName;var zl=Jo.forwardRef(({className:e,...o},t)=>ot(Ee.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));zl.displayName=Ee.Description.displayName;var _l=({children:e,className:o,...t})=>ot("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});_l.displayName="DrawerBody";import Wu from"color";import $u from"tailwindcss/plugin.js";var Bl={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 Vl={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Ol={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Wl={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var $l={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Gl={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var jl={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Ul={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Ql={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var ql={white:"#ffffff",black:"#000000",blue:Vl,green:Ol,pink:Wl,purple:$l,red:Gl,yellow:jl,gray:Ql,orange:Ul};var ri={...ql};var Xl={"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 at="250ms",Yl={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":at},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":at},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":at},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":at},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":at},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":at},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":at},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":at},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":at},".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":at}};var Zl={".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 Kl={".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 Jl={...Zl,...Yl,...Kl};import{flatten as Vu}from"flat";function Ou(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 em=e=>Ou(Vu(e,{safe:!0,delimiter:"-"}));var Gu=e=>{let o={utilities:{},colors:{}},t=em(ri),a=Xl,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=Wu(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},ju=()=>{let e="mobase",o=Gu(e);return $u(({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({...Jl})},{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:{...ri,...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)`},...Bl}}})};import{Fragment as Qu,jsx as S,jsxs as qu}from"react/jsx-runtime";var Uu=qu(Qu,{children:[S("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"}),S("meta",{name:"distribution",content:"Global"}),S("meta",{name:"author",content:"V\xED MoMo"}),S("meta",{property:"fb:app_id",content:"320653355376196"}),S("meta",{property:"fb:pages",content:"138010322921640"}),S("link",{rel:"shortcut icon",href:"/favicon.ico"}),S("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),S("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),S("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),S("meta",{name:"language",content:"vietnamese"}),S("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),S("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),S("meta",{name:"RATING",content:"GENERAL"}),S("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),S("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),S("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),S("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),S("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),S("link",{rel:"dns-prefetch",href:"//facebook.com"}),S("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),S("link",{rel:"dns-prefetch",href:"//www.google.com"}),S("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),S("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),S("link",{rel:"preconnect",href:"//connect.facebook.net"}),S("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),S("link",{rel:"preconnect",href:"//www.google-analytics.com"}),S("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),S("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),S("link",{rel:"preconnect",href:"//www.google.com"}),S("link",{rel:"preconnect",href:"//www.google.com.vn"}),S("link",{rel:"preconnect",href:"//www.googleadservices.com"}),S("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
294
+ `})]})));import*as ta from"react";import{XIcon as Gu}from"lucide-react";import{Drawer as Ee}from"vaul";import{jsx as ot,jsxs as ri}from"react/jsx-runtime";var Ll=({shouldScaleBackground:e=!0,...o})=>ot(Ee.Root,{shouldScaleBackground:e,...o});Ll.displayName="Drawer";var ju=Ee.Trigger,El=Ee.Portal,Uu=Ee.Close,ii=ta.forwardRef(({className:e,...o},t)=>ot(Ee.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));ii.displayName=Ee.Overlay.displayName;var Hl=ta.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>ri(El,{children:[ot(ii,{}),ri(Ee.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&&ri(Ee.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:[ot(Gu,{className:"h-5 w-5"}),ot("span",{className:"sr-only",children:"Close"})]}),o]})]}));Hl.displayName="DrawerContent";var Fl=({className:e,...o})=>ot("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});Fl.displayName="DrawerHeader";var zl=({className:e,...o})=>ot("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});zl.displayName="DrawerFooter";var _l=ta.forwardRef(({className:e,...o},t)=>ot(Ee.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));_l.displayName=Ee.Title.displayName;var Bl=ta.forwardRef(({className:e,...o},t)=>ot(Ee.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));Bl.displayName=Ee.Description.displayName;var Ol=({children:e,className:o,...t})=>ot("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});Ol.displayName="DrawerBody";import*as oo from"react";import{OTPInput as Qu,OTPInputContext as qu}from"input-otp";import{Minus as Xu}from"lucide-react";import{jsx as No,jsxs as Vl}from"react/jsx-runtime";var Wl=oo.forwardRef(({className:e,containerClassName:o,...t},a)=>No(Qu,{ref:a,containerClassName:i("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:i("disabled:cursor-not-allowed",e),...t}));Wl.displayName="InputOTP";var $l=oo.forwardRef(({className:e,...o},t)=>No("div",{ref:t,className:i("flex items-center",e),...o}));$l.displayName="InputOTPGroup";var Gl=oo.forwardRef(({index:e,className:o,...t},a)=>{let r=oo.useContext(qu),{char:n,hasFakeCaret:s,isActive:l}=r.slots[e]??{};return Vl("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&&Vl("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[No("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),No("style",{children:`
295
+ @keyframes caret-blink {
296
+ 0%, 70%, 100% {
297
+ opacity: 1;
298
+ }
299
+ 20%, 50% {
300
+ opacity: 0;
301
+ }
302
+ }
303
+
304
+ .animate-caret-blink {
305
+ animation: caret-blink 1.25s ease-out infinite;
306
+ }
307
+ `})]})]})});Gl.displayName="InputOTPSlot";var jl=oo.forwardRef(({...e},o)=>No("div",{ref:o,role:"separator",...e,children:No(Xu,{className:"text-gray-400"})}));jl.displayName="InputOTPSeparator";import Ku from"color";import Ju from"tailwindcss/plugin.js";var Ul={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 Ql={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var ql={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Xl={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Yl={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Zl={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Kl={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Jl={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var em={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var tm={white:"#ffffff",black:"#000000",blue:Ql,green:ql,pink:Xl,purple:Yl,red:Zl,yellow:Kl,gray:em,orange:Jl};var ni={...tm};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 at="250ms",am={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":at},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":at},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":at},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":at},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":at},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":at},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":at},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":at},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":at},".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":at}};var rm={".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 im={".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 nm={...rm,...am,...im};import{flatten as Yu}from"flat";function Zu(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 sm=e=>Zu(Yu(e,{safe:!0,delimiter:"-"}));var e0=e=>{let o={utilities:{},colors:{}},t=sm(ni),a=om,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=Ku(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},t0=()=>{let e="mobase",o=e0(e);return Ju(({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({...nm})},{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:{...ni,...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)`},...Ul}}})};import{Fragment as a0,jsx as S,jsxs as r0}from"react/jsx-runtime";var o0=r0(a0,{children:[S("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"}),S("meta",{name:"distribution",content:"Global"}),S("meta",{name:"author",content:"V\xED MoMo"}),S("meta",{property:"fb:app_id",content:"320653355376196"}),S("meta",{property:"fb:pages",content:"138010322921640"}),S("link",{rel:"shortcut icon",href:"/favicon.ico"}),S("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),S("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),S("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),S("meta",{name:"language",content:"vietnamese"}),S("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),S("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),S("meta",{name:"RATING",content:"GENERAL"}),S("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),S("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),S("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),S("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),S("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),S("link",{rel:"dns-prefetch",href:"//facebook.com"}),S("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),S("link",{rel:"dns-prefetch",href:"//www.google.com"}),S("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),S("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),S("link",{rel:"preconnect",href:"//connect.facebook.net"}),S("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),S("link",{rel:"preconnect",href:"//www.google-analytics.com"}),S("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),S("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),S("link",{rel:"preconnect",href:"//www.google.com"}),S("link",{rel:"preconnect",href:"//www.google.com.vn"}),S("link",{rel:"preconnect",href:"//www.googleadservices.com"}),S("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
295
308
  "@context": "https://schema.org/",
296
309
  "@type": "WebSite",
297
310
  "@id":"https://www.momo.vn/#website",
@@ -336,5 +349,5 @@ import*as Po from"react";import{ChevronDownIcon as im}from"@heroicons/react/20/s
336
349
  "https://www.linkedin.com/company/momo-mservice/",
337
350
  "https://github.com/momo-wallet"
338
351
  ]
339
- }`}})]});export{it as Accordion,lt as AccordionContent,nt as AccordionItem,st as AccordionTrigger,He as ActionButton,Vc as AlertDialog,Qi as AlertDialogAction,qi as AlertDialogCancel,Wi as AlertDialogContent,Ui as AlertDialogDescription,Gi as AlertDialogFooter,$i as AlertDialogHeader,fr as AlertDialogOverlay,Oi as AlertDialogPortal,ji as AlertDialogTitle,Oc as AlertDialogTrigger,E as AspectRatio,$p as Badge,dc as BlogSection,pi as Breadcrumb,bi as BreadcrumbEllipsis,gi as BreadcrumbItem,ui as BreadcrumbLink,fi as BreadcrumbList,vi as BreadcrumbPage,xi as BreadcrumbSeparator,Se as Button,h as ButtonsBlock,Yg as CTASection,pa as Calendar,Go as Callout,Fn as Card,Vn as CardContent,Bn as CardDescription,On as CardFooter,zn as CardHeader,_n as CardTitle,he as Carousel,ye as CarouselContent,la as CarouselDots,we as CarouselItem,so as CarouselNext,no as CarouselPrevious,ca as Checkbox,Sa as ChoiceboxGroup,Da as ChoiceboxGroupItem,is as ChoiceboxMultiItem,Pp as Combobox,Np as ComboboxContent,wp as ComboboxTrigger,Mr as Command,bp as CommandDialog,Gn as CommandEmpty,jn as CommandGroup,Wn as CommandInput,Qn as CommandItem,$n as CommandList,Un as CommandSeparator,qn as CommandShortcut,ff as Comment,Mc as DatePicker,Bc as DateSelect,ct as Dialog,Ct as DialogBody,Ya as DialogClose,$e as DialogContent,di as DialogDescription,ci as DialogFooter,ta as DialogHeader,Za as DialogOverlay,mi as DialogPortal,Bt as DialogQr,oa as DialogTitle,Xa as DialogTrigger,Il as Drawer,_l as DrawerBody,Bu as DrawerClose,Ll as DrawerContent,zl as DrawerDescription,Hl as DrawerFooter,El as DrawerHeader,ai as DrawerOverlay,Al as DrawerPortal,Fl as DrawerTitle,_u as DrawerTrigger,Hf as DropdownMenu,zs as DropdownMenuCheckboxItem,Hs as DropdownMenuContent,zf as DropdownMenuGroup,Fs as DropdownMenuItem,Bs as DropdownMenuLabel,_f as DropdownMenuPortal,Vf as DropdownMenuRadioGroup,_s as DropdownMenuRadioItem,Vs as DropdownMenuSeparator,Os as DropdownMenuShortcut,Bf as DropdownMenuSub,Es as DropdownMenuSubContent,Ls as DropdownMenuSubTrigger,Ff as DropdownMenuTrigger,Fg as FAQSection,pg as FeatureSection,up as Footer,If as Form,Ms as FormControl,Is as FormDescription,Af as FormField,Ss as FormItem,Ds as FormLabel,As as FormMessage,od as GuideSection,An as HeaderNavigation,tr as Heading,b as HeadingBlock,ar as HeadingGroup,or as HeadingSub,er as HeadingTagline,og as HeroSection,ft as HorizontalContent,ut as HorizontalNext,gt as HorizontalPrevious,pt as HorizontalScroll,Gf as HowItWorksSection,ie as IconButton,Er as LightBoxGalleryContent,Lr as LightboxGallery,_p as LightboxThumbnail,ou as MetricsSection,ya as NavigationMenu,Ra as NavigationMenuContent,Na as NavigationMenuItem,Vo as NavigationMenuLink,wa as NavigationMenuList,Ca as NavigationMenuTrigger,jg as NewsSection,an as Pagination,kl as Payment,iu as PaymentInvoice,fu as PaymentMethods,Su as PaymentResult,yu as PaymentResultContent,xu as PaymentResultFooter,So as Popover,mo as PopoverContent,Do as PopoverTrigger,Pf as ProgressSteps,Nf as ProgressStepsItem,wf as ProgressStepsItemTrigger,ds as Progressbar,wn as RadioGroup,Nn as RadioGroupItem,Hr as ReadMoreLite,Ep as SearchBar,B as SectionBlock,Ao as Select,po as SelectContent,Eo as SelectGroup,Tt as SelectItem,Hi as SelectLabel,dr as SelectScrollDownButton,cr as SelectScrollUpButton,Fi as SelectSeparator,co as SelectTrigger,Lo as SelectValue,Uu as SiteMeta,Ma as Skeleton,gs as Slider,sg as SocialProofSection,qp as Spinner,gn as Stepper,bn as Switch,vt as Tabs,Ue as TabsContent,Ge as TabsList,je as TabsTrigger,Ig as TestimonialSection,cd as TextArea,ce as TextButton,Ad as TextInput,cn as ToastAction,wd as Toaster,Pd as Tooltip,dn as TooltipArrow,pn as TooltipContent,Nd as TooltipProvider,Cd as TooltipTrigger,Hu as Topbar,ss as badgeVariants,We as buttonVariants,ju as mobaseTW,Pa as navigationMenuTriggerStyle,Pi as textButtonVariants,sn as toast,Qo as useFormField,hr as useToast};
352
+ }`}})]});export{it as Accordion,lt as AccordionContent,nt as AccordionItem,st as AccordionTrigger,He as ActionButton,Qc as AlertDialog,Xi as AlertDialogAction,Yi as AlertDialogCancel,Gi as AlertDialogContent,qi as AlertDialogDescription,Ui as AlertDialogFooter,ji as AlertDialogHeader,ur as AlertDialogOverlay,$i as AlertDialogPortal,Qi as AlertDialogTitle,qc as AlertDialogTrigger,E as AspectRatio,Yp as Badge,bc as BlogSection,gi as Breadcrumb,yi as BreadcrumbEllipsis,vi as BreadcrumbItem,xi as BreadcrumbLink,ui as BreadcrumbList,bi as BreadcrumbPage,hi as BreadcrumbSeparator,Se as Button,h as ButtonsBlock,au as CTASection,ga as Calendar,Uo as Callout,_n as Card,Wn as CardContent,Vn as CardDescription,$n as CardFooter,Bn as CardHeader,On as CardTitle,he as Carousel,ye as CarouselContent,ca as CarouselDots,we as CarouselItem,lo as CarouselNext,so as CarouselPrevious,pa as Checkbox,Ma as ChoiceboxGroup,Ia as ChoiceboxGroupItem,ss as ChoiceboxMultiItem,Mp as Combobox,Dp as ComboboxContent,Sp as ComboboxTrigger,Ar as Command,Rp as CommandDialog,Un as CommandEmpty,Qn as CommandGroup,Gn as CommandInput,Xn as CommandItem,jn as CommandList,qn as CommandSeparator,Yn as CommandShortcut,yf as Comment,zc as DatePicker,Uc as DateSelect,ct as Dialog,Ct as DialogBody,Ka as DialogClose,$e as DialogContent,fi as DialogDescription,pi as DialogFooter,aa as DialogHeader,Ja as DialogOverlay,di as DialogPortal,Bt as DialogQr,ra as DialogTitle,Za as DialogTrigger,Ll as Drawer,Ol as DrawerBody,Uu as DrawerClose,Hl as DrawerContent,Bl as DrawerDescription,zl as DrawerFooter,Fl as DrawerHeader,ii as DrawerOverlay,El as DrawerPortal,_l as DrawerTitle,ju as DrawerTrigger,Wf as DropdownMenu,Bs as DropdownMenuCheckboxItem,zs as DropdownMenuContent,Gf as DropdownMenuGroup,_s as DropdownMenuItem,Vs as DropdownMenuLabel,jf as DropdownMenuPortal,Qf as DropdownMenuRadioGroup,Os as DropdownMenuRadioItem,Ws as DropdownMenuSeparator,$s as DropdownMenuShortcut,Uf as DropdownMenuSub,Fs as DropdownMenuSubContent,Hs as DropdownMenuSubTrigger,$f as DropdownMenuTrigger,$g as FAQSection,hg as FeatureSection,Np as Footer,_f as Form,As as FormControl,Ls as FormDescription,Bf as FormField,Ms as FormItem,Is as FormLabel,Es as FormMessage,md as GuideSection,En as HeaderNavigation,ar as Heading,b as HeadingBlock,ir as HeadingGroup,rr as HeadingSub,or as HeadingTagline,mg as HeroSection,ft as HorizontalContent,ut as HorizontalNext,gt as HorizontalPrevious,pt as HorizontalScroll,Zf as HowItWorksSection,ie as IconButton,Wl as InputOTP,$l as InputOTPGroup,jl as InputOTPSeparator,Gl as InputOTPSlot,Fr as LightBoxGalleryContent,Hr as LightboxGallery,jp as LightboxThumbnail,mu as MetricsSection,Na as NavigationMenu,ka as NavigationMenuContent,Ca as NavigationMenuItem,Wo as NavigationMenuLink,Pa as NavigationMenuList,Ta as NavigationMenuTrigger,Kg as NewsSection,nn as Pagination,Dl as Payment,pu as PaymentInvoice,yu as PaymentMethods,Hu as PaymentResult,ku as PaymentResultContent,Cu as PaymentResultFooter,Mo as Popover,co as PopoverContent,Io as PopoverTrigger,Mf as ProgressSteps,Df as ProgressStepsItem,Sf as ProgressStepsItemTrigger,fs as Progressbar,Pn as RadioGroup,Cn as RadioGroupItem,zr as ReadMoreLite,Vp as SearchBar,B as SectionBlock,Eo as Select,fo as SelectContent,Fo as SelectGroup,Tt as SelectItem,zi as SelectLabel,fr as SelectScrollDownButton,pr as SelectScrollUpButton,_i as SelectSeparator,po as SelectTrigger,Ho as SelectValue,o0 as SiteMeta,Aa as Skeleton,vs as Slider,gg as SocialProofSection,tf as Spinner,vn as Stepper,yn as Switch,vt as Tabs,Ue as TabsContent,Ge as TabsList,je as TabsTrigger,_g as TestimonialSection,xd as TextArea,ce as TextButton,Bd as TextInput,pn as ToastAction,Sd as Toaster,Md as Tooltip,fn as TooltipArrow,gn as TooltipContent,Dd as TooltipProvider,Id as TooltipTrigger,Wu as Topbar,ms as badgeVariants,We as buttonVariants,t0 as mobaseTW,Ra as navigationMenuTriggerStyle,Ri as textButtonVariants,mn as toast,Xo as useFormField,wr as useToast};
340
353
  //# sourceMappingURL=index.js.map