@momo-webplatform/mobase 0.2.63 → 0.2.65

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 eo from"react";import*as be from"@radix-ui/react-accordion";import{ChevronDownIcon as js}from"@heroicons/react/20/solid";import*as Ws from"react";import{twMerge as $s}from"tailwind-merge";var je={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 gi={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 Jt=[{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"}],ma=[{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 te={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 Gs}from"@artsy/fresnel";function r(...e){return $s(e)}var ui=Gs({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Xf=ui.createMediaStyle(),{Media:Ue,MediaContextProvider:Ht}=ui;import{jsx as zt,jsxs as Us}from"react/jsx-runtime";var Ft=eo.forwardRef(({className:e,...o},t)=>zt(be.Root,{ref:t,...o}));Ft.displayName="AccordionRoot";var _t=eo.forwardRef(({className:e,...o},t)=>zt(be.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));_t.displayName="AccordionItem";var Bt=eo.forwardRef(({className:e,children:o,...t},a)=>zt(be.Header,{className:"flex",children:Us(be.Trigger,{ref:a,className:r("flex flex-1 items-center text-left py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 justify-between text-gray-900",e),...t,children:[o,zt(js,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));Bt.displayName=be.Trigger.displayName;var Vt=eo.forwardRef(({className:e,children:o,...t},a)=>zt(be.Content,{ref:a,className:" text-sm overflow-hidden transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...t,children:zt("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));Vt.displayName=be.Content.displayName;import*as vi from"react";import{Slot as Xs}from"@radix-ui/react-slot";import{cva as Zs}from"class-variance-authority";import{jsx as xe,jsxs as qs}from"react/jsx-runtime";var Qs=({className:e})=>qs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[xe("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"}),xe("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"}),xe("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"}),xe("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"}),xe("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"}),xe("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"}),xe("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"}),xe("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"}),xe("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"}),xe("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"}),xe("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"}),xe("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"})]}),Ot=Qs;import{Fragment as Ys,jsx as ca,jsxs as Ks}from"react/jsx-runtime";var Ae=Zs("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),he=vi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},m)=>{let c=a?Xs:"button",d=r(Ae({variant:o,size:t,className:e}),{"cursor-wait":i});return ca(Ys,{children:a?ca(c,{className:d,type:"button",disabled:n,ref:m,...s,children:s.children}):Ks(c,{className:d,type:"button",disabled:n,ref:m,...s,children:[i&&ca(Ot,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});he.displayName="Button";import*as to from"react";import{XMarkIcon as Js}from"@heroicons/react/16/solid";import*as V from"@radix-ui/react-dialog";import{jsx as Qe,jsxs as da}from"react/jsx-runtime";var qe=V.Root,pa=V.Trigger,bi=V.Portal,fa=V.Close,ga=to.forwardRef(({className:e,...o},t)=>Qe(V.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));ga.displayName=V.Overlay.displayName;var Le=to.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:m,...c},d)=>{let l={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"},C=[l.base,l[i],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 da(bi,{children:[Qe(ga,{}),da(V.Content,{ref:d,className:r(...C),...c,children:[m,!t&&da(V.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[Qe(Js,{className:"h-5 w-5 text-gray-700"}),Qe("span",{className:"sr-only",children:"Close"})]})]})]})});Le.displayName=V.Content.displayName;var ko=({className:e,...o})=>Qe("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});ko.displayName="DialogHeader";var lt=({className:e,isCondensed:o=!1,...t})=>Qe("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});lt.displayName="DialogBody";var xi=({className:e,isDivider:o=!0,...t})=>Qe("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});xi.displayName="DialogFooter";var So=to.forwardRef(({className:e,...o},t)=>Qe(V.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));So.displayName=V.Title.displayName;var hi=to.forwardRef(({className:e,...o},t)=>Qe(V.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));hi.displayName=V.Description.displayName;import{QRCodeSVG as el}from"qrcode.react";import{Fragment as ua,jsx as N,jsxs as oe}from"react/jsx-runtime";var tl=({img:e="",children:o,isQrForAll:t})=>oe(ua,{children:[N("div",{className:"qrcode__scan__container",children:oe("div",{className:"qrcode__scan",children:[N("div",{className:"qrcode__gradient",children:N("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),N("div",{className:"qrcode__border",children:N("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),N("div",{className:"qrcode__image p-4",children:e?N("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),N("div",{className:"mt-4 text-sm text-white",children:t?oe(ua,{children:[N("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),N("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"})]}):oe(ua,{children:[N("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:N("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",N("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),N("style",{children:`
1
+ import*as go from"react";import*as we from"@radix-ui/react-accordion";import{ChevronDownIcon as hl}from"@heroicons/react/20/solid";import*as vl from"react";import{twMerge as xl}from"tailwind-merge";var Ye={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 Ei={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 fo=[{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"}],Da=[{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 ne={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 bl}from"@artsy/fresnel";function r(...e){return xl(e)}var Fi=bl({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),qg=Fi.createMediaStyle(),{Media:Ze,MediaContextProvider:Gt}=Fi;import{jsx as $t,jsxs as yl}from"react/jsx-runtime";var jt=go.forwardRef(({className:e,...o},t)=>$t(we.Root,{ref:t,...o}));jt.displayName="AccordionRoot";var Ut=go.forwardRef(({className:e,...o},t)=>$t(we.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));Ut.displayName="AccordionItem";var Qt=go.forwardRef(({className:e,children:o,...t},a)=>$t(we.Header,{className:"flex",children:yl(we.Trigger,{ref:a,className:r("flex flex-1 items-center text-left py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 justify-between text-gray-900",e),...t,children:[o,$t(hl,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));Qt.displayName=we.Trigger.displayName;var Xt=go.forwardRef(({className:e,children:o,...t},a)=>$t(we.Content,{ref:a,className:" text-sm overflow-hidden transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...t,children:$t("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));Xt.displayName=we.Content.displayName;import*as zi from"react";import{Slot as Pl}from"@radix-ui/react-slot";import{cva as Cl}from"class-variance-authority";import{jsx as Ne,jsxs as Nl}from"react/jsx-runtime";var wl=({className:e})=>Nl("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"})]}),qt=wl;import{Fragment as kl,jsx as Ma,jsxs as Rl}from"react/jsx-runtime";var Fe=Cl("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Pe=zi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let c=a?Pl:"button",d=r(Fe({variant:o,size:t,className:e}),{"cursor-wait":i});return Ma(kl,{children:a?Ma(c,{className:d,type:"button",disabled:n,ref:l,...s,children:s.children}):Rl(c,{className:d,type:"button",disabled:n,ref:l,...s,children:[i&&Ma(qt,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Pe.displayName="Button";import*as uo from"react";import{XMarkIcon as Tl}from"@heroicons/react/16/solid";import*as W from"@radix-ui/react-dialog";import{jsx as Ke,jsxs as Ia}from"react/jsx-runtime";var Je=W.Root,Aa=W.Trigger,_i=W.Portal,La=W.Close,Ha=uo.forwardRef(({className:e,...o},t)=>Ke(W.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));Ha.displayName=W.Overlay.displayName;var ze=uo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...c},d)=>{let m={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},p={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},N=[m.base,m[i],p[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 Ia(_i,{children:[Ke(Ha,{}),Ia(W.Content,{ref:d,className:r(...N),...c,children:[l,!t&&Ia(W.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[Ke(Tl,{className:"h-5 w-5 text-gray-700"}),Ke("span",{className:"sr-only",children:"Close"})]})]})]})});ze.displayName=W.Content.displayName;var $o=({className:e,...o})=>Ke("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});$o.displayName="DialogHeader";var gt=({className:e,isCondensed:o=!1,...t})=>Ke("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});gt.displayName="DialogBody";var Bi=({className:e,isDivider:o=!0,...t})=>Ke("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});Bi.displayName="DialogFooter";var jo=uo.forwardRef(({className:e,...o},t)=>Ke(W.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));jo.displayName=W.Title.displayName;var Vi=uo.forwardRef(({className:e,...o},t)=>Ke(W.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));Vi.displayName=W.Description.displayName;import{QRCodeSVG as Sl}from"qrcode.react";import{Fragment as Ea,jsx as C,jsxs as se}from"react/jsx-runtime";var Dl=({img:e="",children:o,isQrForAll:t})=>se(Ea,{children:[C("div",{className:"qrcode__scan__container",children:se("div",{className:"qrcode__scan",children:[C("div",{className:"qrcode__gradient",children:C("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),C("div",{className:"qrcode__border",children:C("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),C("div",{className:"qrcode__image p-4",children:e?C("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),C("div",{className:"mt-4 text-sm text-white",children:t?se(Ea,{children:[C("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),C("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):se(Ea,{children:[C("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:C("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",C("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),C("style",{children:`
2
2
  .qrcode__scan__container {
3
3
  padding: 15px;
4
4
  background-color: white;
@@ -67,7 +67,7 @@ import*as eo from"react";import*as be from"@radix-ui/react-accordion";import{Che
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),wt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:m=!1,...c})=>N(qe,{...c,children:N(Le,{className:r("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:N(lt,{className:"p-0",children:oe("div",{className:"flex flex-row flex-wrap",children:[N("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||oe("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[oe("div",{className:"flex flex-nowrap items-center",children:[N("div",{className:"flex-none",children:N("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),oe("div",{className:"flex-1 pl-4",children:[N("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),N("div",{className:"mt-1 text-gray-500 ",children:m?"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"})]})]}),oe("div",{className:"flex flex-nowrap items-center",children:[N("div",{className:"flex-none",children:N("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),oe("div",{className:"flex-1 pl-4",children:[N("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),N("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),oe("div",{className:"flex flex-nowrap items-center",children:[N("div",{className:"flex-none",children:N("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),oe("div",{className:"flex-1 pl-4",children:[N("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),oe("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"]})]})]})]})}),N("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:oe("div",{className:"px-5 py-10 text-center",children:[t&&N("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),oe("div",{className:"relative",children:[m&&N("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:N("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),N(tl,{img:i,isQrForAll:m,children:n&&N(el,{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 ll}from"react";import{useEffect as ol,useLayoutEffect as al,useState as il}from"react";import rl from"ua-parser-js";var nl=()=>rl().device.type==="mobile",sl=typeof window<"u"?al:ol,yi=()=>{let[e,o]=il(!1);return sl(()=>{o(nl())},[]),e};import{Fragment as ml,jsx as Do,jsxs as cl}from"react/jsx-runtime";var Xe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[m,c]=ll(!1),d=yi(),l=!!a?.qrLink,f=()=>{let Z=l?a?.qrLink:e;return typeof Z=="string"?Z.trim():""},u=()=>{let Z=f();!Z&&typeof e!="function"||(typeof e=="function"?e():window.open(Z,o?"_blank":"_self"))},C=(Z,K=0)=>{let W=document.querySelector(Z);if(!W)return;let la=W.getBoundingClientRect().top+window.scrollY-K;window.scrollTo({top:la,behavior:"smooth"})},k=()=>{typeof e=="string"&&e.startsWith("#")?C(e,t):u()},B=()=>cl(ml,{children:[Do(he,{...s,className:i,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),Do(wt,{...a,open:m,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return l?d?a?.isQrForAll?B():Do(he,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):B():Do(he,{...s,onClick:k,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as Wt from"react";import{ChevronRightIcon as dl,DotsHorizontalIcon as pl}from"@radix-ui/react-icons";import{Slot as fl}from"@radix-ui/react-slot";import{jsx as Ze,jsxs as gl}from"react/jsx-runtime";var wi=Wt.forwardRef(({className:e,...o},t)=>Ze("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));wi.displayName="Breadcrumb";var Ni=Wt.forwardRef(({className:e,...o},t)=>Ze("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Ni.displayName="BreadcrumbList";var Pi=Wt.forwardRef(({className:e,...o},t)=>Ze("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Pi.displayName="BreadcrumbItem";var Ci=Wt.forwardRef(({asChild:e,className:o,...t},a)=>Ze(e?fl:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Ci.displayName="BreadcrumbLink";var Ri=Wt.forwardRef(({className:e,...o},t)=>Ze("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Ri.displayName="BreadcrumbPage";var Ti=({children:e,className:o,...t})=>Ze("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??Ze(dl,{className:"w-2 h-2"})});Ti.displayName="BreadcrumbSeparator";var ki=({className:e,...o})=>gl("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[Ze(pl,{className:"w-4 h-4 text-gray-900"}),Ze("span",{className:"sr-only",children:"More"})]});ki.displayName="BreadcrumbElipssis";import wa from"html-react-parser";import{createContext as ul,useContext as Si}from"react";import{jsx as oo}from"react/jsx-runtime";var va=ul({align:"center"}),ba=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return oo("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},xa=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,m={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=Si(va);return oo(s,{className:r("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",m[t],c[o],a&&"truncate",i),children:n})},ha=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},m={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=Si(va);return oo("div",{className:r(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],m[o],c[t],a&&"truncate",i),children:n})},ya=({className:e,align:o="center",children:t})=>oo("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:oo(va.Provider,{value:{align:o},children:t})});import{jsx as Nt,jsxs as vl}from"react/jsx-runtime";var z=({idSection:e,className:o,background:t,children:a})=>Nt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Nt("div",{className:"wrapper relative",children:a})}),x=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:m})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",l=n==="white"?"white":"regular";return!t&&!a&&!o?null:vl(ya,{align:e,className:m,children:[o&&Nt(ba,{color:c,children:o}),t&&Nt(xa,{tagHeading:i,color:d,size:s,children:wa(t)}),a&&Nt(ha,{color:l,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:wa(a)})]})},y=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Nt("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{let{btnName:s,...m}=i;return Nt(Xe,{...m,className:r(o&&"w-full md:w-auto",i?.className),children:wa(s)},n)})});import Il,{memo as Al}from"react";import{ArrowDownIcon as Ll}from"@heroicons/react/20/solid";import El from"html-react-parser";import{createContext as yl,useCallback as wl,useContext as Na,useEffect as Nl,useRef as Pl,useState as Cl}from"react";import{ChevronLeft as Rl,ChevronRight as Tl}from"lucide-react";import*as Di from"react";import{Slot as bl}from"@radix-ui/react-slot";import{cva as xl}from"class-variance-authority";import{jsx as hl}from"react/jsx-runtime";var Pt=xl("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"}}),J=Di.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?bl:"button",c=r(Pt({variant:o,size:t,className:e}));return hl(m,{className:c,disabled:i,ref:s,...n,children:n.children})});J.displayName="IconButton";import{Fragment as kl,jsx as mt,jsxs as Mi}from"react/jsx-runtime";var Mo=yl(void 0),Ke=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=Pl(null),[n,s]=Cl({left:!1,right:!1}),m=wl(()=>{let d=i.current;if(d){let{scrollLeft:l,scrollWidth:f,clientWidth:u}=d;s({left:l>0,right:Math.ceil(l+u)<f})}},[]);Nl(()=>{let d=i.current;if(d)return m(),window.addEventListener("resize",m),d.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),d.removeEventListener("scroll",m)}},[m]);let c=d=>{let l=i.current;if(l){let{scrollLeft:f,clientWidth:u,scrollWidth:C}=l,k=u*.7*(d==="left"?-1:1),B=f+k;B<0?B=0:B>C-u&&(B=C-u),l.scrollTo({left:B,behavior:"smooth"})}};return mt(Mo.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:c,gradientOverlayColor:o},children:Mi("div",{className:r("relative w-full",t),children:[e&&Mi(kl,{children:[n.left&&mt("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&&mt("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]})})},Ye=({className:e,children:o})=>{let t=Na(Mo);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return mt("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},Je=({className:e,children:o,...t})=>{let a=Na(Mo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?mt(J,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||mt(Rl,{className:"h-4 w-4"})}):null},et=({className:e,children:o,...t})=>{let a=Na(Mo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?mt(J,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||mt(Tl,{className:"h-4 w-4"})}):null};import*as Io from"react";import*as Re from"@radix-ui/react-tabs";import{jsx as Pa}from"react/jsx-runtime";var tt=Re.Root,Ee=Io.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>Pa(Re.List,{ref:i,className:r("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}));Ee.displayName=Re.List.displayName;var He=Io.forwardRef(({className:e,...o},t)=>Pa(Re.Trigger,{ref:t,className:r("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}));He.displayName=Re.Trigger.displayName;var ze=Io.forwardRef(({className:e,...o},t)=>Pa(Re.Content,{ref:t,className:r("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}));ze.displayName=Re.Content.displayName;import*as Ii from"react";import{Slot as Sl}from"@radix-ui/react-slot";import{cva as Dl}from"class-variance-authority";import{jsx as Ml}from"react/jsx-runtime";var Ai=Dl("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"}}),ae=Ii.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?Sl:"button",c=r(Ai({variant:o,size:t,className:e}));return Ml(m,{className:c,disabled:i,ref:s,...n,children:n.children})});ae.displayName="TextButton";import{Fragment as Li,jsx as A,jsxs as Fe}from"react/jsx-runtime";var Hl=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Fe(Li,{children:[A("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:A("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Fe("picture",{children:[A("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),A("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Fe("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&A(ae,{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}),A("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}),Fe("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&Fe(Li,{children:[A(ae,{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&&A("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&A("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Ao=Al(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(l,f,u)=>{l?.preventDefault(),l?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(l,f)=>Fe("div",{children:[A("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",l?.blogList?.length<3?"md:justify-center":""),children:l?.blogList?.map((u,C)=>A("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:A("div",{onClick:k=>c(k,u?.id,u?.url),className:r("group flex cursor-pointer flex-row md:flex-col",l?.classNameItem),children:A(Hl,{blog:u})},u?.id)},C))}),l?.isShowBtn&&A("div",{className:"flex items-center justify-center w-full mt-8",children:Fe(Xe,{action:i?()=>i?.(f):l?.btnUrl,newTab:l?.isNewTab,variant:"outline",children:[El(l.btnName||"Xem th\xEAm"),l?.isLoading?A(Ot,{className:"w-5 h-5 ml-2 animate-spin-loading"}):i&&!l?.btnUrl&&A(Ll,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},l?.title||f);return Fe(Il.Fragment,{children:[e&&A(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?Fe(tt,{defaultValue:t[0]?.title,children:[Fe(Ke,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[A(Ye,{className:"mb-6 text-center",children:A(Ee,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((l,f)=>A(He,{value:l.title,children:l.title},l.title+f))})}),A(Je,{}),A(et,{})]}),t.map((l,f)=>A(ze,{value:l.title,children:d(l,f)},l.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});import Vl,{memo as Ol,useEffect as Wl,useState as Fi}from"react";import{ChevronLeftIcon as $l,ChevronRightIcon as Gl}from"@heroicons/react/20/solid";import _i from"html-react-parser";import*as S from"react";import{ChevronLeftIcon as zl,ChevronRightIcon as Fl}from"@heroicons/react/20/solid";import _l from"embla-carousel-react";import{Fragment as Bl,jsx as ye,jsxs as zi}from"react/jsx-runtime";var Ei=S.createContext(null);function ao(){let e=S.useContext(Ei);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Te=S.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},m)=>{let[c,d]=_l({...o,axis:e==="horizontal"?"x":"y"},a),[l,f]=S.useState(!1),[u,C]=S.useState(!1),k=S.useCallback(K=>{K&&(f(K.canScrollPrev()),C(K.canScrollNext()))},[]),B=S.useCallback(()=>{d?.scrollPrev()},[d]),H=S.useCallback(()=>{d?.scrollNext()},[d]),Z=S.useCallback(K=>{K.key==="ArrowLeft"?(K.preventDefault(),B()):K.key==="ArrowRight"&&(K.preventDefault(),H())},[B,H]);return S.useEffect(()=>{!d||!t||t(d)},[d,t]),S.useEffect(()=>{if(d)return k(d),d.on("reInit",k),d.on("select",k),()=>{d?.off("select",k)}},[d,k]),ye(Ei.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:B,scrollNext:H,canScrollPrev:l,canScrollNext:u},children:ye("div",{ref:m,onKeyDownCapture:Z,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Te.displayName="Carousel";var ke=S.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=ao();return ye("div",{ref:i,className:r(o,"overflow-hidden"),children:ye("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ke.displayName="CarouselContent";var Se=S.forwardRef(({className:e,...o},t)=>{let{orientation:a}=ao();return ye("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});Se.displayName="CarouselItem";var $t=S.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:m}=ao();return zi(J,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!m,onClick:s,...a,children:[ye(zl,{className:"w-6 h-6"}),ye("span",{className:"sr-only",children:"Previous slide"})]})});$t.displayName="CarouselPrevious";var Gt=S.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:m}=ao();return zi(J,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!m,onClick:s,...a,children:[ye(Fl,{className:"w-6 h-6"}),ye("span",{className:"sr-only",children:"Next slide"})]})});Gt.displayName="CarouselNext";var Hi=S.forwardRef((e,o)=>{let{api:t}=ao(),[,a]=S.useState(!1),i=S.useCallback(()=>a(m=>!m),[]);S.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?ye("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(m,c)=>ye(J,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${c===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 ${c+1}`,onClick:()=>t?.scrollTo(c)},c))}):ye(Bl,{})});Hi.displayName="CarouselDots";import{Fragment as Lo,jsx as L,jsxs as De}from"react/jsx-runtime";var jl=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return De(Lo,{children:[L("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:L("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),De("div",{className:"mt-4 md:pr-3",children:[L("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&L("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:_i(e?.description??"")}),De("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&De(Lo,{children:[L(ae,{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&&L("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&L("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Ul=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:m,btnUrl:c="#",isNewTab:d,classNameItem:l}=e??{};return Wl(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),De(Lo,{children:[L(Te,{opts:{dragFree:!1},setApi:o,className:"w-full",children:L(ke,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>L(Se,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:L("div",{onClick:u=>i(u,f?.id,f?.url),className:r("group cursor-pointer",l),children:L(jl,{blog:f})},f?.id)},f?.id))})}),s&&L("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:De(Xe,{action:c&&c,newTab:d,variant:"outline",children:[_i(m||"Xem th\xEAm")," "]})})]})},Ql=({carouselRef:e})=>De(J,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[L($l,{className:"h-6 w-6"}),L("span",{className:"sr-only",children:"Previous slide"})]}),ql=({carouselRef:e})=>De(J,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[L(Gl,{className:"h-6 w-6"}),L("span",{className:"sr-only",children:"Next slide"})]}),Ca=Ol(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(d,l,f)=>{d?.preventDefault(),d?.stopPropagation(),t?t(l):window.open(f,"_blank")},[n,s]=Fi(null),[,m]=Fi(0),c=()=>n?De("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[L(Ql,{carouselRef:n}),L(ql,{carouselRef:n})]}):L(Lo,{});return De(Vl.Fragment,{children:[De("div",{className:" flex items-center justify-between",children:[e&&L(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),L(c,{})]}),L(Ul,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:m,handleOnClickItem:i})]})});import{Fragment as Yl,jsx as jt}from"react/jsx-runtime";var Xl=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return jt(Ao,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return jt(Ca,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return jt(Ao,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Zl=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>jt(Yl,{children:Xl({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Kl=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:m})=>jt(z,{className:r("overflow-hidden",a),background:i,children:jt(Zl,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:m})});import*as Ho from"react";import{enUS as om,vi as am}from"date-fns/locale";import{DayPicker as im}from"react-day-picker";import{ChevronLeft as rm,ChevronRight as nm}from"lucide-react";import sm from"lunisolar";import*as Bi from"react";import*as io from"@radix-ui/react-checkbox";import{CheckIcon as Jl}from"@heroicons/react/16/solid";import{cva as Vi}from"class-variance-authority";import{jsx as Ra}from"react/jsx-runtime";var em=Vi("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"}}),tm=Vi("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Eo=Bi.forwardRef(({className:e,size:o,...t},a)=>Ra(io.Root,{ref:a,className:r(em({size:o}),e),...t,children:Ra(io.Indicator,{className:r("flex items-center justify-center text-current"),children:Ra(Jl,{className:r(tm({size:o}))})})}));Eo.displayName=io.Root.displayName;import{Fragment as pm,jsx as _e,jsxs as Ta}from"react/jsx-runtime";var lm=({date:e,cusContent:o})=>{let t=null;return t=sm(e).lunar,Ta(pm,{children:[o?o(e):e.getDate(),t&&_e("span",{className:"text-[8px] absolute top-1 right-0.5 leading-none luna-date hidden group-[.show-luna]:block",children:t.day})]})},mm={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 cm({isShow:e,setIsShow:o,lang:t}){let a=Ho.useId();return _e("div",{className:"w-full p-3 pt-0",children:Ta("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[_e(Eo,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),_e("label",{htmlFor:`check-show-luna-${a}`,className:"text-sm text-gray-900 peer-disabled:text-gray-400 leading-none peer-disabled:cursor-default cursor-pointer",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var dm=e=>e.getDay()===0||e.getDay()===6;function zo({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[m,c]=Ho.useState(!0);return _e(im,{locale:i==="vi"?am:om,showOutsideDays:t,className:r("border border-gray-200 rounded-b-md b bg-white shadow-md w-fit",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(Ae({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("font-medium rounded-md w-11 text-xs text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(Ae({variant:"transparent"}),"h-11 w-11 text-center text-sm p-0 aria-selected:opacity-100 aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white [&.day-range-end.day-range-start]:rounded-md focus-within:relative focus-within:z-20 font-semibold relative group",a&&m&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("text-gray-900 !bg-pink-50 !rounded-none group/mid [&:nth-child(7)]:!text-red-600 day-range-middle",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:dm},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>_e(rm,{className:"h-6 w-6"}),IconRight:()=>_e(nm,{className:"h-6 w-6"}),DayContent:d=>_e(lm,{date:d.date,cusContent:n}),Months:({children:d})=>Ta("div",{className:"w-full",children:[_e("div",{className:r("flex flex-col sm:flex-row months-wrapper"),children:d}),a&&_e(cm,{isShow:m,setIsShow:c,lang:i})]})},formatters:i==="vi"?mm:{},...s})}zo.displayName="Calendar";import{QuestionMarkCircleIcon as fm,XCircleIcon as gm}from"@heroicons/react/16/solid";import{format as Fo}from"date-fns";import{Calendar as um}from"lucide-react";import*as Wi from"react";import*as ot from"@radix-ui/react-popover";import{jsx as Oi}from"react/jsx-runtime";var ro=ot.Root,no=ot.Trigger,Ut=Wi.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>Oi(ot.Portal,{children:Oi(ot.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ut.displayName=ot.Content.displayName;import{Fragment as $i,jsx as fe,jsxs as so}from"react/jsx-runtime";var vm=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:m,popoverProps:c,calendarProps:d})=>{let l=d?.selected||null;return so("div",{children:[so(ro,{...c,children:[fe(no,{asChild:!0,children:so(he,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!l||!(l instanceof Date)&&typeof l=="object"&&(!("from"in l)||!l.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...m,children:[fe("div",{className:"line-clamp-1 flex-1",children:l instanceof Date?Fo(l,s):l&&typeof l=="object"&&"from"in l&&"to"in l?fe($i,{children:l.from?l.to?so($i,{children:[fe("span",{className:"date-from",children:Fo(l.from,s)})," ",fe("span",{className:"date-separator",children:"-"}),fe("span",{className:"date-to",children:Fo(l.to,s)})]}):Fo(l.from,s):o}):o}),e&&fe("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),fe(um,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),fe(Ut,{className:"w-auto border-none !p-0",children:fe(zo,{...d,defaultMonth:l&&typeof l=="object"&&"from"in l?l.from:l instanceof Date?l:void 0})})]}),a&&so("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?fe(gm,{width:16,height:16,className:"text-red-500"}):fe(fm,{width:16,height:16,className:"text-gray-500"}),fe("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import*as Ct from"react";import*as D from"@radix-ui/react-alert-dialog";import{jsx as at,jsxs as hm}from"react/jsx-runtime";var bm=D.Root,xm=D.Trigger,Gi=D.Portal,ka=Ct.forwardRef(({className:e,...o},t)=>at(D.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));ka.displayName=D.Overlay.displayName;var ji=Ct.forwardRef(({className:e,...o},t)=>hm(Gi,{children:[at(ka,{}),at(D.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));ji.displayName=D.Content.displayName;var Ui=({className:e,...o})=>at("div",{className:r("flex flex-col space-y-2 text-left",e),...o});Ui.displayName="AlertDialogHeader";var Qi=({className:e,...o})=>at("div",{className:r("flex flex-row justify-end space-x-4",e),...o});Qi.displayName="AlertDialogFooter";var qi=Ct.forwardRef(({className:e,...o},t)=>at(D.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));qi.displayName=D.Title.displayName;var Xi=Ct.forwardRef(({className:e,...o},t)=>at(D.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Xi.displayName=D.Description.displayName;var Zi=Ct.forwardRef(({className:e,...o},t)=>at(D.Action,{ref:t,className:r(Ae({variant:"primary"}),"",e),...o}));Zi.displayName=D.Action.displayName;var Ki=Ct.forwardRef(({className:e,...o},t)=>at(D.Cancel,{ref:t,className:r(Ae({variant:"secondary"}),e),...o}));Ki.displayName=D.Cancel.displayName;import{memo as Sm,useState as Dm}from"react";import{useEffect as ym,useState as Ji}from"react";import{motion as wm}from"framer-motion";import er from"html-react-parser";import*as Yi from"@radix-ui/react-aspect-ratio";var $=Yi.Root;import{Fragment as tr,jsx as q,jsxs as lo}from"react/jsx-runtime";var Nm=({guideGroup:e,mockup:o})=>{let[t,a]=Ji(),[i,n]=Ji(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return ym(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),q(tr,{children:e?.stepList&&e?.stepList?.length>0&&lo("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[q("div",{className:"h-auto w-64 flex-none",children:lo("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&lo(tr,{children:[q("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),q("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),q("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),q("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),q("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:lo(Te,{setApi:a,children:[q(ke,{className:"ml-0",children:e?.stepList.map((m,c)=>q(Se,{className:"pl-0",children:q($,{ratio:o==="small"?540/960:540/1168,children:q("img",{src:m.image,className:"size-full object-contain",alt:m.title})})},c))}),q($t,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),q(Gt,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),q("div",{className:"flex flex-auto py-4 pl-12",children:q("ul",{className:"flex flex-col",children:e?.stepList.map((m,c)=>lo("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",c+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[q("div",{className:r("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),q("div",{className:r(" text-sm font-medium",c+1===i?"text-pink-500":"text-gray-900"),children:er(m.title)}),m.content&&q(wm.div,{initial:"closed",animate:c+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:q("div",{className:"mt-3 text-sm text-gray-700",children:er(m.content)})})]},c))})})]})})},Sa=Nm;import{useEffect as Pm,useRef as Cm,useState as _o}from"react";import{ChevronRightIcon as or}from"@heroicons/react/20/solid";import Rm from"embla-carousel-autoplay";import Bo from"html-react-parser";import{Fragment as Da,jsx as b,jsxs as se}from"react/jsx-runtime";var Tm=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=_o(0),[s,m]=_o();return Pm(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:b(qe,{open:e,onOpenChange:o,children:se(Le,{position:"bottom",height:"full",children:[b(ko,{children:b(So,{className:"line-clamp-1",children:t?.title})}),se(lt,{className:"grid overflow-hidden p-0 ",children:[b(Te,{setApi:m,className:" grid overflow-hidden",children:b(ke,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>b(Se,{className:"h-full w-full pl-0",children:se("div",{className:"flex h-full flex-col overflow-y-auto",children:[b("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:b("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:se("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&se(Da,{children:[b("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),b("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:b($,{ratio:a==="small"?540/960:540/1168,children:b("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),se("div",{className:"p-5 pb-12",children:[b("div",{className:"font-semibold",children:Bo(c.title)}),c?.content&&b("div",{className:"mt-3 text-sm text-gray-800",children:Bo(c.content)})]})]})},d))})}),b("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((c,d)=>b("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},km=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=_o(!1),[n,s]=_o(null),m=Cm(Rm({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),i(!0)};return e?.length===0?null:se(Da,{children:[e?.length>1?b("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,l)=>se("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(l),children:[b("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:b($,{ratio:1,children:b("img",{src:d.avatar,className:"object-cover",alt:d.title})})}),se("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",l+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[se("div",{className:"py-2",children:[t&&b("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${l+1}`}),b("div",{className:"font-semibold",children:Bo(d.title)}),d?.description&&b("div",{className:"mt-1 text-sm text-gray-500",children:Bo(d.description)})]}),b("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:b(or,{className:"h-6 w-6"})})]})]},l))}):e?.[0]&&e[0].stepList?.length>0&&se("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[b("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:b("div",{className:"mx-auto h-auto w-72",children:se("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&se(Da,{children:[b("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),b("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:b(Te,{plugins:[m.current],children:b(ke,{className:"ml-0",children:e[0]?.stepList.map((d,l)=>b(Se,{className:"pl-0",onClick:()=>c(0),children:b($,{ratio:o==="small"?540/960:540/1168,children:b("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},l))})})})]})})}),b("div",{className:"flex w-full flex-none justify-center",children:se(ae,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",b(or,{className:"ml-1 h-5 w-5"})]})})]}),a&&b(Tm,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},ar=km;import{Fragment as Mm,jsx as ee,jsxs as mo}from"react/jsx-runtime";var ir=({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 ee("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:ee("path",{d:t.d,fill:"currentColor"})})},Ma=Sm(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:m,className:c}=o||{},[d,l]=Dm(t?.[0]?.title||"");return mo(Mm,{children:[e&&ee(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&mo(Ht,{children:[ee(Ue,{lessThan:"md",children:ee(ar,{dataGuide:t,mockup:i,isStep:n})}),ee(Ue,{greaterThan:"sm",children:t?.length>1?mo(tt,{defaultValue:t[0]?.title,onValueChange:f=>l(f),children:[mo(Ke,{showGradientOverlay:s,gradientOverlayColor:m,className:c,children:[ee(Ye,{className:"mb-6 text-center",children:ee(Ee,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let C=u===t.length-1,k=d===f?.title||"";return mo(He,{value:f.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",k&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&ee(ir,{direction:"left",className:r("right-full top-0",k?"text-pink-500":"text-pink-100")}),f.title,n&&!C&&ee(ir,{direction:"right",className:r("left-full top-0",k?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),ee(Je,{}),ee(et,{})]}),t.map((f,u)=>ee(ze,{value:f.title,children:ee(Sa,{guideGroup:f,mockup:i})},f.title+u))]}):t?.length===1&&t[0]&&ee(Sa,{guideGroup:t[0],mockup:i})})]}),a&&ee(y,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as Em,jsx as co}from"react/jsx-runtime";var Im=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return co(Ma,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return co(Ma,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},Am=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>co(Em,{children:Im({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),Lm=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:i,background:n,template:s=1,mockup:m="default",isStep:c=!1})=>co(z,{className:r(i),background:n,children:co(Am,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:m,isStep:c})});import{ChevronLeft as Hm,ChevronRight as zm}from"lucide-react";import{Fragment as Fm,jsx as we,jsxs as rr}from"react/jsx-runtime";function nr({current:e,total:o,onChange:t}){let a=i=>we("li",{children:we("button",{className:r(Pt({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return we("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:rr("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&we("li",{children:we("button",{className:r(Pt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:we(Hm,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):rr(Fm,{children:[a(1),e===1&&[a(2),a(3)],e>3&&we("li",{children:we("button",{className:r(Pt({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&&we("button",{className:r(Pt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&we("li",{children:we("button",{className:r(Pt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:we(zm,{className:"h-4 w-4"})})})]})})}import{forwardRef as _m}from"react";import{QuestionMarkCircleIcon as Bm}from"@heroicons/react/24/outline";import{XCircleIcon as Vm}from"@heroicons/react/24/solid";import{jsx as Qt,jsxs as sr}from"react/jsx-runtime";var Om=_m(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:m=3,...c},d)=>sr("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&Qt("span",{className:r("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}),Qt("textarea",{disabled:e,ref:d,className:r("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:m,...c}),t&&sr("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?Qt(Vm,{width:16,height:16,className:"text-red-500"}):Qt(Bm,{width:16,height:16,className:"text-gray-500"}),Qt("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Qt("style",{children:`
70
+ `})]}),St=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...c})=>C(Je,{...c,children:C(ze,{className:r("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:C(gt,{className:"p-0",children:se("div",{className:"flex flex-row flex-wrap",children:[C("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||se("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[se("div",{className:"flex flex-nowrap items-center",children:[C("div",{className:"flex-none",children:C("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),se("div",{className:"flex-1 pl-4",children:[C("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),C("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"})]})]}),se("div",{className:"flex flex-nowrap items-center",children:[C("div",{className:"flex-none",children:C("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),se("div",{className:"flex-1 pl-4",children:[C("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),C("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),se("div",{className:"flex flex-nowrap items-center",children:[C("div",{className:"flex-none",children:C("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),se("div",{className:"flex-1 pl-4",children:[C("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),se("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"]})]})]})]})}),C("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:se("div",{className:"px-5 py-10 text-center",children:[t&&C("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),se("div",{className:"relative",children:[l&&C("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:C("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),C(Dl,{img:i,isQrForAll:l,children:n&&C(Sl,{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 Fl}from"react";import{useEffect as Ml,useLayoutEffect as Il,useState as Al}from"react";import Ll from"ua-parser-js";var Hl=()=>Ll().device.type==="mobile",El=typeof window<"u"?Il:Ml,Oi=()=>{let[e,o]=Al(!1);return El(()=>{o(Hl())},[]),e};import{Fragment as zl,jsx as Uo,jsxs as _l}from"react/jsx-runtime";var et=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,c]=Fl(!1),d=Oi(),m=!!a?.qrLink,p=()=>{let $=m?a?.qrLink:e;return typeof $=="string"?$.trim():""},u=()=>{let $=p();!$&&typeof e!="function"||(typeof e=="function"?e():window.open($,o?"_blank":"_self"))},N=($,j=0)=>{let A=document.querySelector($);if(!A)return;let re=A.getBoundingClientRect().top+window.scrollY-j;window.scrollTo({top:re,behavior:"smooth"})},S=()=>{typeof e=="string"&&e.startsWith("#")?N(e,t):u()},D=()=>_l(zl,{children:[Uo(Pe,{...s,className:i,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),Uo(St,{...a,open:l,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return m?d?a?.isQrForAll?D():Uo(Pe,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):D():Uo(Pe,{...s,onClick:S,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as Yt from"react";import{ChevronRightIcon as Bl,DotsHorizontalIcon as Vl}from"@radix-ui/react-icons";import{Slot as Ol}from"@radix-ui/react-slot";import{jsx as tt,jsxs as Wl}from"react/jsx-runtime";var Wi=Yt.forwardRef(({className:e,...o},t)=>tt("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Wi.displayName="Breadcrumb";var Gi=Yt.forwardRef(({className:e,...o},t)=>tt("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Gi.displayName="BreadcrumbList";var $i=Yt.forwardRef(({className:e,...o},t)=>tt("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));$i.displayName="BreadcrumbItem";var ji=Yt.forwardRef(({asChild:e,className:o,...t},a)=>tt(e?Ol:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));ji.displayName="BreadcrumbLink";var Ui=Yt.forwardRef(({className:e,...o},t)=>tt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Ui.displayName="BreadcrumbPage";var Qi=({children:e,className:o,...t})=>tt("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??tt(Bl,{className:"w-2 h-2"})});Qi.displayName="BreadcrumbSeparator";var Xi=({className:e,...o})=>Wl("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[tt(Vl,{className:"w-4 h-4 text-gray-900"}),tt("span",{className:"sr-only",children:"More"})]});Xi.displayName="BreadcrumbElipssis";import Oa from"html-react-parser";import{createContext as Gl,useContext as qi}from"react";import{jsx as vo}from"react/jsx-runtime";var Fa=Gl({align:"center"}),za=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return vo("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},_a=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=qi(Fa);return vo(s,{className:r("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",l[t],c[o],a&&"truncate",i),children:n})},Ba=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=qi(Fa);return vo("div",{className:r(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],c[t],a&&"truncate",i),children:n})},Va=({className:e,align:o="center",children:t})=>vo("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:vo(Fa.Provider,{value:{align:o},children:t})});import{jsx as Dt,jsxs as $l}from"react/jsx-runtime";var B=({idSection:e,className:o,background:t,children:a})=>Dt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Dt("div",{className:"wrapper relative",children:a})}),b=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",m=n==="white"?"white":"regular";return!t&&!a&&!o?null:$l(Va,{align:e,className:l,children:[o&&Dt(za,{color:c,children:o}),t&&Dt(_a,{tagHeading:i,color:d,size:s,children:Oa(t)}),a&&Dt(Ba,{color:m,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:Oa(a)})]})},y=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Dt("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{let{btnName:s,...l}=i;return Dt(et,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:Oa(s)},n)})});import rm,{memo as nm}from"react";import{ArrowDownIcon as sm}from"@heroicons/react/20/solid";import lm from"html-react-parser";import{createContext as Xl,useCallback as ql,useContext as Wa,useEffect as Yl,useRef as Zl,useState as Kl}from"react";import{ChevronLeft as Jl,ChevronRight as em}from"lucide-react";import*as Yi from"react";import{Slot as jl}from"@radix-ui/react-slot";import{cva as Ul}from"class-variance-authority";import{jsx as Ql}from"react/jsx-runtime";var Mt=Ul("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"}}),oe=Yi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?jl:"button",c=r(Mt({variant:o,size:t,className:e}));return Ql(l,{className:c,disabled:i,ref:s,...n,children:n.children})});oe.displayName="IconButton";import{Fragment as tm,jsx as ut,jsxs as Zi}from"react/jsx-runtime";var Qo=Xl(void 0),ot=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=Zl(null),[n,s]=Kl({left:!1,right:!1}),l=ql(()=>{let d=i.current;if(d){let{scrollLeft:m,scrollWidth:p,clientWidth:u}=d;s({left:m>0,right:Math.ceil(m+u)<p})}},[]);Yl(()=>{let d=i.current;if(d)return l(),window.addEventListener("resize",l),d.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),d.removeEventListener("scroll",l)}},[l]);let c=d=>{let m=i.current;if(m){let{scrollLeft:p,clientWidth:u,scrollWidth:N}=m,S=u*.7*(d==="left"?-1:1),D=p+S;D<0?D=0:D>N-u&&(D=N-u),m.scrollTo({left:D,behavior:"smooth"})}};return ut(Qo.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:c,gradientOverlayColor:o},children:Zi("div",{className:r("relative w-full",t),children:[e&&Zi(tm,{children:[n.left&&ut("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&&ut("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]})})},at=({className:e,children:o})=>{let t=Wa(Qo);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return ut("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},it=({className:e,children:o,...t})=>{let a=Wa(Qo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?ut(oe,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||ut(Jl,{className:"h-4 w-4"})}):null},rt=({className:e,children:o,...t})=>{let a=Wa(Qo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?ut(oe,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||ut(em,{className:"h-4 w-4"})}):null};import*as Xo from"react";import*as De from"@radix-ui/react-tabs";import{jsx as Ga}from"react/jsx-runtime";var nt=De.Root,_e=Xo.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>Ga(De.List,{ref:i,className:r("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}));_e.displayName=De.List.displayName;var Be=Xo.forwardRef(({className:e,...o},t)=>Ga(De.Trigger,{ref:t,className:r("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}));Be.displayName=De.Trigger.displayName;var Ve=Xo.forwardRef(({className:e,...o},t)=>Ga(De.Content,{ref:t,className:r("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}));Ve.displayName=De.Content.displayName;import*as Ki from"react";import{Slot as om}from"@radix-ui/react-slot";import{cva as am}from"class-variance-authority";import{jsx as im}from"react/jsx-runtime";var Ji=am("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"}}),le=Ki.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?om:"button",c=r(Ji({variant:o,size:t,className:e}));return im(l,{className:c,disabled:i,ref:s,...n,children:n.children})});le.displayName="TextButton";import{Fragment as er,jsx as F,jsxs as Oe}from"react/jsx-runtime";var mm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Oe(er,{children:[F("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:F("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Oe("picture",{children:[F("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),F("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Oe("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&F(le,{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}),F("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}),Oe("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&Oe(er,{children:[F(le,{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&&F("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&F("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},qo=nm(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(m,p,u)=>{m?.preventDefault(),m?.stopPropagation(),a?a(p):window.open(u,"_blank")},d=(m,p)=>Oe("div",{children:[F("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",m?.blogList?.length<3?"md:justify-center":""),children:m?.blogList?.map((u,N)=>F("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:F("div",{onClick:S=>c(S,u?.id,u?.url),className:r("group flex cursor-pointer flex-row md:flex-col",m?.classNameItem),children:F(mm,{blog:u})},u?.id)},N))}),m?.isShowBtn&&F("div",{className:"flex items-center justify-center w-full mt-8",children:Oe(et,{action:i?()=>i?.(p):m?.btnUrl,newTab:m?.isNewTab,variant:"outline",children:[lm(m.btnName||"Xem th\xEAm"),m?.isLoading?F(qt,{className:"w-5 h-5 ml-2 animate-spin-loading"}):i&&!m?.btnUrl&&F(sm,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},m?.title||p);return Oe(rm.Fragment,{children:[e&&F(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?Oe(nt,{defaultValue:t[0]?.title,children:[Oe(ot,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[F(at,{className:"mb-6 text-center",children:F(_e,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((m,p)=>F(Be,{value:m.title,children:m.title},m.title+p))})}),F(it,{}),F(rt,{})]}),t.map((m,p)=>F(Ve,{value:m.title,children:d(m,p)},m.title+p))]}):t?.length===1&&t[0]&&d(t[0],0)]})});import gm,{memo as um,useEffect as vm,useState as ir}from"react";import{ChevronLeftIcon as xm,ChevronRightIcon as bm}from"@heroicons/react/20/solid";import rr from"html-react-parser";import*as I from"react";import{ChevronLeftIcon as cm,ChevronRightIcon as dm}from"@heroicons/react/20/solid";import pm from"embla-carousel-react";import{Fragment as fm,jsx as Ce,jsxs as ar}from"react/jsx-runtime";var tr=I.createContext(null);function xo(){let e=I.useContext(tr);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Me=I.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[c,d]=pm({...o,axis:e==="horizontal"?"x":"y"},a),[m,p]=I.useState(!1),[u,N]=I.useState(!1),S=I.useCallback(j=>{j&&(p(j.canScrollPrev()),N(j.canScrollNext()))},[]),D=I.useCallback(()=>{d?.scrollPrev()},[d]),M=I.useCallback(()=>{d?.scrollNext()},[d]),$=I.useCallback(j=>{j.key==="ArrowLeft"?(j.preventDefault(),D()):j.key==="ArrowRight"&&(j.preventDefault(),M())},[D,M]);return I.useEffect(()=>{!d||!t||t(d)},[d,t]),I.useEffect(()=>{if(d)return S(d),d.on("reInit",S),d.on("select",S),()=>{d?.off("select",S)}},[d,S]),Ce(tr.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:M,canScrollPrev:m,canScrollNext:u},children:Ce("div",{ref:l,onKeyDownCapture:$,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Me.displayName="Carousel";var Ie=I.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=xo();return Ce("div",{ref:i,className:r(o,"overflow-hidden"),children:Ce("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Ie.displayName="CarouselContent";var Ae=I.forwardRef(({className:e,...o},t)=>{let{orientation:a}=xo();return Ce("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});Ae.displayName="CarouselItem";var Zt=I.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=xo();return ar(oe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ce(cm,{className:"w-6 h-6"}),Ce("span",{className:"sr-only",children:"Previous slide"})]})});Zt.displayName="CarouselPrevious";var Kt=I.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=xo();return ar(oe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ce(dm,{className:"w-6 h-6"}),Ce("span",{className:"sr-only",children:"Next slide"})]})});Kt.displayName="CarouselNext";var or=I.forwardRef((e,o)=>{let{api:t}=xo(),[,a]=I.useState(!1),i=I.useCallback(()=>a(l=>!l),[]);I.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Ce("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,c)=>Ce(oe,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${c===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 ${c+1}`,onClick:()=>t?.scrollTo(c)},c))}):Ce(fm,{})});or.displayName="CarouselDots";import{Fragment as Yo,jsx as z,jsxs as Le}from"react/jsx-runtime";var hm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Le(Yo,{children:[z("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:z("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Le("div",{className:"mt-4 md:pr-3",children:[z("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&z("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:rr(e?.description??"")}),Le("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Le(Yo,{children:[z(le,{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&&z("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&z("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},ym=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:c="#",isNewTab:d,classNameItem:m}=e??{};return vm(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Le(Yo,{children:[z(Me,{opts:{dragFree:!1},setApi:o,className:"w-full",children:z(Ie,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>z(Ae,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:z("div",{onClick:u=>i(u,p?.id,p?.url),className:r("group cursor-pointer",m),children:z(hm,{blog:p})},p?.id)},p?.id))})}),s&&z("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Le(et,{action:c&&c,newTab:d,variant:"outline",children:[rr(l||"Xem th\xEAm")," "]})})]})},wm=({carouselRef:e})=>Le(oe,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[z(xm,{className:"h-6 w-6"}),z("span",{className:"sr-only",children:"Previous slide"})]}),Nm=({carouselRef:e})=>Le(oe,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[z(bm,{className:"h-6 w-6"}),z("span",{className:"sr-only",children:"Next slide"})]}),$a=um(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(d,m,p)=>{d?.preventDefault(),d?.stopPropagation(),t?t(m):window.open(p,"_blank")},[n,s]=ir(null),[,l]=ir(0),c=()=>n?Le("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[z(wm,{carouselRef:n}),z(Nm,{carouselRef:n})]}):z(Yo,{});return Le(gm.Fragment,{children:[Le("div",{className:" flex items-center justify-between",children:[e&&z(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),z(c,{})]}),z(ym,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});import{Fragment as km,jsx as Jt}from"react/jsx-runtime";var Pm=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return Jt(qo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return Jt($a,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return Jt(qo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Cm=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>Jt(km,{children:Pm({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Rm=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>Jt(B,{className:r("overflow-hidden",a),background:i,children:Jt(Cm,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as Ko from"react";import{enUS as Mm,vi as Im}from"date-fns/locale";import{ChevronLeft as Am,ChevronRight as Lm}from"lucide-react";import Hm from"lunisolar";import{DayPicker as Em}from"react-day-picker";import*as nr from"react";import*as bo from"@radix-ui/react-checkbox";import{CheckIcon as Tm}from"@heroicons/react/16/solid";import{cva as sr}from"class-variance-authority";import{jsx as ja}from"react/jsx-runtime";var Sm=sr("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"}}),Dm=sr("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Zo=nr.forwardRef(({className:e,size:o,...t},a)=>ja(bo.Root,{ref:a,className:r(Sm({size:o}),e),...t,children:ja(bo.Indicator,{className:r("flex items-center justify-center text-current"),children:ja(Tm,{className:r(Dm({size:o}))})})}));Zo.displayName=bo.Root.displayName;import{Fragment as Vm,jsx as We,jsxs as Ua}from"react/jsx-runtime";var Fm=({date:e,cusContent:o})=>{let t=null;return t=Hm(e).lunar,Ua(Vm,{children:[o?o(e):e.getDate(),t&&We("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},zm={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 _m({isShow:e,setIsShow:o,lang:t}){let a=Ko.useId();return We("div",{className:"w-full p-3 pt-0",children:Ua("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[We(Zo,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),We("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 Bm=e=>e.getDay()===0||e.getDay()===6;function Jo({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,c]=Ko.useState(!0);return We(Em,{locale:i==="vi"?Im:Mm,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(Fe({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(Fe({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Bm},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>We(Am,{className:"h-6 w-6"}),IconRight:()=>We(Lm,{className:"h-6 w-6"}),DayContent:d=>We(Fm,{date:d.date,cusContent:n}),Months:({children:d})=>Ua("div",{className:"w-full",children:[We("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&We(_m,{isShow:l,setIsShow:c,lang:i})]})},formatters:i==="vi"?zm:{},...s})}Jo.displayName="Calendar";import{QuestionMarkCircleIcon as Om,XCircleIcon as Wm}from"@heroicons/react/16/solid";import{format as ea}from"date-fns";import{Calendar as Gm}from"lucide-react";import*as mr from"react";import*as st from"@radix-ui/react-popover";import{jsx as lr}from"react/jsx-runtime";var ho=st.Root,yo=st.Trigger,eo=mr.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>lr(st.Portal,{children:lr(st.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));eo.displayName=st.Content.displayName;import{Fragment as cr,jsx as xe,jsxs as wo}from"react/jsx-runtime";var $m=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:c,calendarProps:d,popoverContentProps:m})=>{let p=d?.selected||null;return wo("div",{children:[wo(ho,{...c,children:[xe(yo,{asChild:!0,children:wo(Pe,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!p||!(p instanceof Date)&&typeof p=="object"&&(!("from"in p)||!p.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[xe("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?ea(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?xe(cr,{children:p.from?p.to?wo(cr,{children:[xe("span",{className:"date-from",children:ea(p.from,s)})," ",xe("span",{className:"date-separator",children:"-"}),xe("span",{className:"date-to",children:ea(p.to,s)})]}):ea(p.from,s):o}):o}),e&&xe("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),xe(Gm,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),xe(eo,{className:"w-auto border-none !p-0",...m,children:xe(Jo,{...d,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&wo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?xe(Wm,{width:16,height:16,className:"text-red-500"}):xe(Om,{width:16,height:16,className:"text-gray-500"}),xe("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as qm,useState as xr}from"react";import{QuestionMarkCircleIcon as Ym,XCircleIcon as Zm}from"@heroicons/react/16/solid";import{isValid as Km}from"date-fns";import*as Ge from"react";import{ChevronDownIcon as dr,ChevronUpIcon as jm,CheckIcon as Um,XCircleIcon as Qm}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Xm}from"@heroicons/react/24/outline";import*as w from"@radix-ui/react-select";import{jsx as _,jsxs as No}from"react/jsx-runtime";var Po=Ge.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},c)=>No("div",{ref:c,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&_("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),_(w.Root,{disabled:s,...l,children:o}),a&&No("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?_(Qm,{width:16,height:16}):_(Xm,{width:16,height:16}),_("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Co=w.Value,to=Ge.forwardRef(({className:e,children:o,...t},a)=>No(w.Trigger,{ref:a,className:r("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[_("div",{className:"line-clamp-1 text-left",children:o}),_(w.Icon,{asChild:!0,children:_(dr,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));to.displayName=w.Trigger.displayName;var Qa=Ge.forwardRef(({className:e,...o},t)=>_(w.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:_(jm,{className:"h-5 w-5"})}));Qa.displayName=w.ScrollUpButton.displayName;var Xa=Ge.forwardRef(({className:e,...o},t)=>_(w.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:_(dr,{className:"h-5 w-5"})}));Xa.displayName=w.ScrollDownButton.displayName;var oo=Ge.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>_(w.Portal,{children:No(w.Content,{ref:i,className:r("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:[_(Qa,{}),_(w.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),_(Xa,{})]})}));oo.displayName=w.Content.displayName;var Ro=Ge.forwardRef(({className:e,children:o,...t},a)=>_(w.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),pr=Ge.forwardRef(({className:e,...o},t)=>_(w.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));pr.displayName=w.Label.displayName;var vt=Ge.forwardRef(({className:e,children:o,...t},a)=>No(w.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[_("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:_(w.ItemIndicator,{children:_(Um,{className:"h-4 w-4 text-pink-500"})})}),_(w.ItemText,{children:o})]})),fr=Ge.forwardRef(({className:e,...o},t)=>_(w.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));fr.displayName=w.Separator.displayName;var gr=["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"],ur=["January","February","March","April","May","June","July","August","September","October","November","December"],qa=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},vr=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,l)=>n-l)};import{jsx as Z,jsxs as $e}from"react/jsx-runtime";var Jm=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:m=new Date().getFullYear()})=>{let[p,u]=xr(o??null),N=Math.min(d,m),S=Math.max(d,m),D=l==="MM/yyyy",M=(P,re)=>{if(re===0){u(void 0),t?.(void 0);return}let co=p?.getFullYear()||new Date().getFullYear(),te=p?.getMonth()??0,po=p?.getDate()??1;P==="month"&&re!==null&&(te=re-1),P==="year"&&re!==null&&(co=re),D?po=1:P==="day"&&re!==null&&(po=re);let ul=qa(co,te+1).daysInMonth;po>ul&&(po=1);let Sa=new Date(co,te,po);Km(Sa)&&(u(Sa),t?.(Sa))},[$,j]=xr(!1),A=P=>{j(P)};return qm(()=>{u(o??null)},[o]),$e("div",{className:r("relative",s&&"cursor-no-drop"),children:[$e("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",$&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",p?"":"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&&Z("span",{className:r("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}),$e("div",{className:"flex h-full flex-row divide-x",children:[!D&&$e(Po,{value:p?p.getDate().toString().padStart(2,"0"):"",onValueChange:P=>M("day",parseInt(P,10)),onOpenChange:A,className:"w-[30%]",children:[Z(to,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:Z(Co,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),Z(oo,{onCloseAutoFocus:P=>P.preventDefault(),children:$e(Ro,{children:[Z(vt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:qa(p?.getFullYear()||new Date().getFullYear(),(p?.getMonth()??0)+1).daysInMonth},(P,re)=>(re+1).toString().padStart(2,"0")).map(P=>Z(vt,{value:P,children:P},P))]})})]}),$e(Po,{value:p?(p.getMonth()+1).toString():"",onValueChange:P=>M("month",parseInt(P,10)),onOpenChange:A,className:r(D?"w-1/2":"w-2/5"),children:[Z(to,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:Z(Co,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),Z(oo,{onCloseAutoFocus:P=>P.preventDefault(),children:$e(Ro,{children:[Z(vt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(P,re)=>re+1).map(P=>Z(vt,{value:P.toString(),children:c==="vi"?gr[P-1]:ur[P-1]},P))]})})]}),$e(Po,{value:p?p.getFullYear().toString():"",onValueChange:P=>M("year",parseInt(P,10)),onOpenChange:A,className:r(D?"w-1/2":"w-[30%]"),children:[Z(to,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:Z(Co,{placeholder:c==="vi"?"N\u0103m":"Year"})}),Z(oo,{onCloseAutoFocus:P=>P.preventDefault(),children:$e(Ro,{children:[Z(vt,{value:"0",className:"text-gray-500",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),vr(N,S).map(P=>Z(vt,{value:P.toString(),children:P},P))]})})]})]})]}),i&&$e("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?Z(Zm,{width:16,height:16,className:"text-red-500"}):Z(Ym,{width:16,height:16,className:"text-gray-500"}),Z("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};import*as It from"react";import*as L from"@radix-ui/react-alert-dialog";import{jsx as lt,jsxs as oc}from"react/jsx-runtime";var ec=L.Root,tc=L.Trigger,br=L.Portal,Ya=It.forwardRef(({className:e,...o},t)=>lt(L.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));Ya.displayName=L.Overlay.displayName;var hr=It.forwardRef(({className:e,...o},t)=>oc(br,{children:[lt(Ya,{}),lt(L.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));hr.displayName=L.Content.displayName;var yr=({className:e,...o})=>lt("div",{className:r("flex flex-col space-y-2 text-left",e),...o});yr.displayName="AlertDialogHeader";var wr=({className:e,...o})=>lt("div",{className:r("flex flex-row justify-end space-x-4",e),...o});wr.displayName="AlertDialogFooter";var Nr=It.forwardRef(({className:e,...o},t)=>lt(L.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));Nr.displayName=L.Title.displayName;var Pr=It.forwardRef(({className:e,...o},t)=>lt(L.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Pr.displayName=L.Description.displayName;var Cr=It.forwardRef(({className:e,...o},t)=>lt(L.Action,{ref:t,className:r(Fe({variant:"primary"}),"",e),...o}));Cr.displayName=L.Action.displayName;var Rr=It.forwardRef(({className:e,...o},t)=>lt(L.Cancel,{ref:t,className:r(Fe({variant:"secondary"}),e),...o}));Rr.displayName=L.Cancel.displayName;import{memo as dc,useState as pc}from"react";import{useEffect as ac,useState as Tr}from"react";import{motion as ic}from"framer-motion";import Sr from"html-react-parser";import*as kr from"@radix-ui/react-aspect-ratio";var U=kr.Root;import{Fragment as Dr,jsx as K,jsxs as ko}from"react/jsx-runtime";var rc=({guideGroup:e,mockup:o})=>{let[t,a]=Tr(),[i,n]=Tr(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return ac(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),K(Dr,{children:e?.stepList&&e?.stepList?.length>0&&ko("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[K("div",{className:"h-auto w-64 flex-none",children:ko("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&ko(Dr,{children:[K("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),K("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),K("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),K("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),K("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:ko(Me,{setApi:a,children:[K(Ie,{className:"ml-0",children:e?.stepList.map((l,c)=>K(Ae,{className:"pl-0",children:K(U,{ratio:o==="small"?540/960:540/1168,children:K("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},c))}),K(Zt,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),K(Kt,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),K("div",{className:"flex flex-auto py-4 pl-12",children:K("ul",{className:"flex flex-col",children:e?.stepList.map((l,c)=>ko("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",c+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[K("div",{className:r("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),K("div",{className:r(" text-sm font-medium",c+1===i?"text-pink-500":"text-gray-900"),children:Sr(l.title)}),l.content&&K(ic.div,{initial:"closed",animate:c+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:K("div",{className:"mt-3 text-sm text-gray-700",children:Sr(l.content)})})]},c))})})]})})},Za=rc;import{useEffect as nc,useRef as sc,useState as ta}from"react";import{ChevronRightIcon as Mr}from"@heroicons/react/20/solid";import lc from"embla-carousel-autoplay";import oa from"html-react-parser";import{Fragment as Ka,jsx as x,jsxs as pe}from"react/jsx-runtime";var mc=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=ta(0),[s,l]=ta();return nc(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:x(Je,{open:e,onOpenChange:o,children:pe(ze,{position:"bottom",height:"full",children:[x($o,{children:x(jo,{className:"line-clamp-1",children:t?.title})}),pe(gt,{className:"grid overflow-hidden p-0 ",children:[x(Me,{setApi:l,className:" grid overflow-hidden",children:x(Ie,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>x(Ae,{className:"h-full w-full pl-0",children:pe("div",{className:"flex h-full flex-col overflow-y-auto",children:[x("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:x("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:pe("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&pe(Ka,{children:[x("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),x("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),x("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),x("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),x("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:x(U,{ratio:a==="small"?540/960:540/1168,children:x("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),pe("div",{className:"p-5 pb-12",children:[x("div",{className:"font-semibold",children:oa(c.title)}),c?.content&&x("div",{className:"mt-3 text-sm text-gray-800",children:oa(c.content)})]})]})},d))})}),x("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((c,d)=>x("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},cc=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=ta(!1),[n,s]=ta(null),l=sc(lc({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),i(!0)};return e?.length===0?null:pe(Ka,{children:[e?.length>1?x("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,m)=>pe("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(m),children:[x("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:x(U,{ratio:1,children:x("img",{src:d.avatar,className:"object-cover",alt:d.title})})}),pe("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",m+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[pe("div",{className:"py-2",children:[t&&x("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${m+1}`}),x("div",{className:"font-semibold",children:oa(d.title)}),d?.description&&x("div",{className:"mt-1 text-sm text-gray-500",children:oa(d.description)})]}),x("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:x(Mr,{className:"h-6 w-6"})})]})]},m))}):e?.[0]&&e[0].stepList?.length>0&&pe("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[x("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:x("div",{className:"mx-auto h-auto w-72",children:pe("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&pe(Ka,{children:[x("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),x("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),x("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),x("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),x("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:x(Me,{plugins:[l.current],children:x(Ie,{className:"ml-0",children:e[0]?.stepList.map((d,m)=>x(Ae,{className:"pl-0",onClick:()=>c(0),children:x(U,{ratio:o==="small"?540/960:540/1168,children:x("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},m))})})})]})})}),x("div",{className:"flex w-full flex-none justify-center",children:pe(le,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",x(Mr,{className:"ml-1 h-5 w-5"})]})})]}),a&&x(mc,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},Ir=cc;import{Fragment as fc,jsx as ie,jsxs as To}from"react/jsx-runtime";var Ar=({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 ie("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:ie("path",{d:t.d,fill:"currentColor"})})},Ja=dc(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:c}=o||{},[d,m]=pc(t?.[0]?.title||"");return To(fc,{children:[e&&ie(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&To(Gt,{children:[ie(Ze,{lessThan:"md",children:ie(Ir,{dataGuide:t,mockup:i,isStep:n})}),ie(Ze,{greaterThan:"sm",children:t?.length>1?To(nt,{defaultValue:t[0]?.title,onValueChange:p=>m(p),children:[To(ot,{showGradientOverlay:s,gradientOverlayColor:l,className:c,children:[ie(at,{className:"mb-6 text-center",children:ie(_e,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,u)=>{let N=u===t.length-1,S=d===p?.title||"";return To(Be,{value:p.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",S&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&ie(Ar,{direction:"left",className:r("right-full top-0",S?"text-pink-500":"text-pink-100")}),p.title,n&&!N&&ie(Ar,{direction:"right",className:r("left-full top-0",S?"text-pink-500":"text-pink-100")})]},p.title+u)})})}),ie(it,{}),ie(rt,{})]}),t.map((p,u)=>ie(Ve,{value:p.title,children:ie(Za,{guideGroup:p,mockup:i})},p.title+u))]}):t?.length===1&&t[0]&&ie(Za,{guideGroup:t[0],mockup:i})})]}),a&&ie(y,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as xc,jsx as So}from"react/jsx-runtime";var gc=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return So(Ja,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return So(Ja,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},uc=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>So(xc,{children:gc({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),vc=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:i,background:n,template:s=1,mockup:l="default",isStep:c=!1})=>So(B,{className:r(i),background:n,children:So(uc,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:l,isStep:c})});import{ChevronLeft as bc,ChevronRight as hc}from"lucide-react";import{Fragment as yc,jsx as Re,jsxs as Lr}from"react/jsx-runtime";function Hr({current:e,total:o,onChange:t}){let a=i=>Re("li",{children:Re("button",{className:r(Mt({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return Re("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:Lr("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Re("li",{children:Re("button",{className:r(Mt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Re(bc,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):Lr(yc,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Re("li",{children:Re("button",{className:r(Mt({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&&Re("button",{className:r(Mt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Re("li",{children:Re("button",{className:r(Mt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Re(hc,{className:"h-4 w-4"})})})]})})}import{forwardRef as wc}from"react";import{QuestionMarkCircleIcon as Nc}from"@heroicons/react/24/outline";import{XCircleIcon as Pc}from"@heroicons/react/24/solid";import{jsx as ao,jsxs as Er}from"react/jsx-runtime";var Cc=wc(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...c},d)=>Er("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&ao("span",{className:r("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}),ao("textarea",{disabled:e,ref:d,className:r("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,...c}),t&&Er("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?ao(Pc,{width:16,height:16,className:"text-red-500"}):ao(Nc,{width:16,height:16,className:"text-gray-500"}),ao("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),ao("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 eo from"react";import*as be from"@radix-ui/react-accordion";import{Che
94
94
  color: rgb(var(--mobase-red-500) / 1);
95
95
  }
96
96
  }
97
- `})]}));import*as Wo from"react";var Wm=1,$m=1e6;var Ia=0;function Gm(){return Ia=(Ia+1)%Number.MAX_SAFE_INTEGER,Ia.toString()}var Aa=new Map,lr=e=>{if(Aa.has(e))return;let o=setTimeout(()=>{Aa.delete(e),po({type:"REMOVE_TOAST",toastId:e})},$m);Aa.set(e,o)},jm=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Wm)};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?lr(t):e.toasts.forEach(a=>{lr(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}},Vo=[],Oo={toasts:[]};function po(e){Oo=jm(Oo,e),Vo.forEach(o=>{o(Oo)})}function mr({...e}){let o=Gm(),t=i=>po({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>po({type:"DISMISS_TOAST",toastId:o});return po({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function La(){let[e,o]=Wo.useState(Oo);return Wo.useEffect(()=>(Vo.push(o),()=>{let t=Vo.indexOf(o);t>-1&&Vo.splice(t,1)}),[e]),{...e,toast:mr,dismiss:t=>po({type:"DISMISS_TOAST",toastId:t})}}import*as Rt from"react";import*as G from"@radix-ui/react-toast";import{cva as Um}from"class-variance-authority";import{XMarkIcon as Qm,CheckCircleIcon as qm,ExclamationTriangleIcon as Xm,InformationCircleIcon as Zm}from"@heroicons/react/20/solid";import{jsx as it,jsxs as cr}from"react/jsx-runtime";var dr=G.Provider,Ea=Rt.forwardRef(({className:e,...o},t)=>it(G.Viewport,{ref:t,className:r("fixed bottom-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 left-0 sm:right-0 sm:left-auto sm:top-0 sm:bottom-auto sm:flex-col md:max-w-[420px]",e),...o}));Ea.displayName=G.Viewport.displayName;var Km=Um("group pointer-events-auto relative w-full overflow-hidden rounded-md border py-4 pr-10 pl-10 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full bg-white text-gray-900 border border-gray-200 border-l-4",{variants:{variant:{sucess:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"sucess"}}),Ha=Rt.forwardRef(({className:e,variant:o="sucess",children:t,...a},i)=>cr(G.Root,{ref:i,className:r(Km({variant:o}),e),...a,children:[cr("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[o==="sucess"&&it(qm,{className:"w-5 h-5 text-green-500"}),o==="warning"&&it(Xm,{className:"w-5 h-5 text-yellow-500"}),o==="error"&&it(Zm,{className:"w-5 h-5 text-red-500"})]}),t]}));Ha.displayName=G.Root.displayName;var pr=Rt.forwardRef(({className:e,...o},t)=>it(G.Action,{ref:t,className:r("inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-0 focus:ring-ring focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 text-blue-600 hover:underline mt-2",e),...o}));pr.displayName=G.Action.displayName;var za=Rt.forwardRef(({className:e,...o},t)=>it(G.Close,{ref:t,className:r("absolute right-2 top-2 rounded-md transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2 text-gray-800 w-8 h-8 flex items-center justify-center",e),"toast-close":"",...o,children:it(Qm,{className:"h-5 w-5"})}));za.displayName=G.Close.displayName;var Fa=Rt.forwardRef(({className:e,...o},t)=>it(G.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));Fa.displayName=G.Title.displayName;var _a=Rt.forwardRef(({className:e,...o},t)=>it(G.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));_a.displayName=G.Description.displayName;import{jsx as $o,jsxs as Ba}from"react/jsx-runtime";function Ym(){let{toasts:e}=La();return Ba(dr,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return Ba(Ha,{...n,children:[Ba("div",{className:"grid gap-2",children:[t&&$o(Fa,{children:t}),a&&$o(_a,{children:a})]}),i,$o(za,{})]},o)}),$o(Ea,{})]})}import*as Va from"react";import*as Ne from"@radix-ui/react-tooltip";import{jsx as ur}from"react/jsx-runtime";var Jm=Ne.Provider,ec=Ne.Root,tc=Ne.Trigger,fr=Va.forwardRef((e,o)=>ur(Ne.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));fr.displayName=Ne.Arrow.displayName;var gr=Va.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>ur(Ne.Content,{ref:i,sideOffset:t,className:r("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));gr.displayName=Ne.Content.displayName;import{forwardRef as oc,useEffect as ac,useRef as ic,useState as rc}from"react";import{QuestionMarkCircleIcon as nc,XCircleIcon as sc,XCircleIcon as lc}from"@heroicons/react/16/solid";import{jsx as ct,jsxs as Oa}from"react/jsx-runtime";var mc=oc(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:m,onChange:c,onFocus:d,onClickClear:l,value:f,defaultValue:u,type:C="text",...k},B)=>{let[H,Z]=rc(!1),K=ic(null),W=pe=>{pe&&!H&&Z(!0),!pe&&H&&Z(!1)},fi=pe=>{s&&W(pe.target.value),c?.(pe)},la=pe=>{s&&W(pe.target.value),d?.(pe)},Os=()=>{let pe=K.current?.querySelector("input");pe&&(l?.(pe.value),pe.value="",pe.focus(),Z(!1))};return ac(()=>{W(u||f)},[f,u]),Oa("div",{className:r(i,o&&"mobase-text-input-error"),ref:K,children:[Oa("div",{className:"relative",children:[a&&ct("span",{className:r("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",m===2&&" -top-2.5 text-sm"),children:a}),ct("input",{disabled:e,type:C,ref:B,className:r("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",m===2&&"h-12 text-base",n),onChange:fi,onFocus:la,value:f,defaultValue:u,...k}),s&&H&&ct("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:Os,children:ct(sc,{strokeWidth:2,width:20,height:20})})]}),t&&Oa("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?ct(lc,{width:16,height:16,className:"text-red-500"}):ct(nc,{width:16,height:16,className:"text-gray-500"}),ct("span",{className:r("text-gray-500 ",m===2?"text-sm":"text-xs"),children:t})]}),ct("style",{children:`
97
+ `})]}));import*as ra from"react";var Rc=1,kc=1e6;var ei=0;function Tc(){return ei=(ei+1)%Number.MAX_SAFE_INTEGER,ei.toString()}var ti=new Map,Fr=e=>{if(ti.has(e))return;let o=setTimeout(()=>{ti.delete(e),Do({type:"REMOVE_TOAST",toastId:e})},kc);ti.set(e,o)},Sc=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Rc)};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?Fr(t):e.toasts.forEach(a=>{Fr(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===t||t===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return o.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(t=>t.id!==o.toastId)};default:return e}},aa=[],ia={toasts:[]};function Do(e){ia=Sc(ia,e),aa.forEach(o=>{o(ia)})}function zr({...e}){let o=Tc(),t=i=>Do({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>Do({type:"DISMISS_TOAST",toastId:o});return Do({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function oi(){let[e,o]=ra.useState(ia);return ra.useEffect(()=>(aa.push(o),()=>{let t=aa.indexOf(o);t>-1&&aa.splice(t,1)}),[e]),{...e,toast:zr,dismiss:t=>Do({type:"DISMISS_TOAST",toastId:t})}}import*as At from"react";import*as Q from"@radix-ui/react-toast";import{cva as Dc}from"class-variance-authority";import{XMarkIcon as Mc,CheckCircleIcon as Ic,ExclamationTriangleIcon as Ac,InformationCircleIcon as Lc}from"@heroicons/react/20/solid";import{jsx as mt,jsxs as _r}from"react/jsx-runtime";var Br=Q.Provider,ai=At.forwardRef(({className:e,...o},t)=>mt(Q.Viewport,{ref:t,className:r("fixed bottom-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 left-0 sm:right-0 sm:left-auto sm:top-0 sm:bottom-auto sm:flex-col md:max-w-[420px]",e),...o}));ai.displayName=Q.Viewport.displayName;var Hc=Dc("group pointer-events-auto relative w-full overflow-hidden rounded-md border py-4 pr-10 pl-10 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full bg-white text-gray-900 border border-gray-200 border-l-4",{variants:{variant:{sucess:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"sucess"}}),ii=At.forwardRef(({className:e,variant:o="sucess",children:t,...a},i)=>_r(Q.Root,{ref:i,className:r(Hc({variant:o}),e),...a,children:[_r("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[o==="sucess"&&mt(Ic,{className:"w-5 h-5 text-green-500"}),o==="warning"&&mt(Ac,{className:"w-5 h-5 text-yellow-500"}),o==="error"&&mt(Lc,{className:"w-5 h-5 text-red-500"})]}),t]}));ii.displayName=Q.Root.displayName;var Vr=At.forwardRef(({className:e,...o},t)=>mt(Q.Action,{ref:t,className:r("inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-0 focus:ring-ring focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 text-blue-600 hover:underline mt-2",e),...o}));Vr.displayName=Q.Action.displayName;var ri=At.forwardRef(({className:e,...o},t)=>mt(Q.Close,{ref:t,className:r("absolute right-2 top-2 rounded-md transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2 text-gray-800 w-8 h-8 flex items-center justify-center",e),"toast-close":"",...o,children:mt(Mc,{className:"h-5 w-5"})}));ri.displayName=Q.Close.displayName;var ni=At.forwardRef(({className:e,...o},t)=>mt(Q.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));ni.displayName=Q.Title.displayName;var si=At.forwardRef(({className:e,...o},t)=>mt(Q.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));si.displayName=Q.Description.displayName;import{jsx as na,jsxs as li}from"react/jsx-runtime";function Ec(){let{toasts:e}=oi();return li(Br,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return li(ii,{...n,children:[li("div",{className:"grid gap-2",children:[t&&na(ni,{children:t}),a&&na(si,{children:a})]}),i,na(ri,{})]},o)}),na(ai,{})]})}import*as mi from"react";import*as ke from"@radix-ui/react-tooltip";import{jsx as Gr}from"react/jsx-runtime";var Fc=ke.Provider,zc=ke.Root,_c=ke.Trigger,Or=mi.forwardRef((e,o)=>Gr(ke.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));Or.displayName=ke.Arrow.displayName;var Wr=mi.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>Gr(ke.Content,{ref:i,sideOffset:t,className:r("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));Wr.displayName=ke.Content.displayName;import{forwardRef as Bc,useEffect as Vc,useRef as Oc,useState as Wc}from"react";import{QuestionMarkCircleIcon as Gc,XCircleIcon as $c,XCircleIcon as jc}from"@heroicons/react/16/solid";import{jsx as xt,jsxs as ci}from"react/jsx-runtime";var Uc=Bc(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:c,onFocus:d,onClickClear:m,value:p,defaultValue:u,type:N="text",...S},D)=>{let[M,$]=Wc(!1),j=Oc(null),A=te=>{te&&!M&&$(!0),!te&&M&&$(!1)},P=te=>{s&&A(te.target.value),c?.(te)},re=te=>{s&&A(te.target.value),d?.(te)},co=()=>{let te=j.current?.querySelector("input");te&&(m?.(te.value),te.value="",te.focus(),$(!1))};return Vc(()=>{A(u||p)},[p,u]),ci("div",{className:r(i,o&&"mobase-text-input-error"),ref:j,children:[ci("div",{className:"relative",children:[a&&xt("span",{className:r("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}),xt("input",{disabled:e,type:N,ref:D,className:r("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:P,onFocus:re,value:p,defaultValue:u,...S}),s&&M&&xt("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:co,children:xt($c,{strokeWidth:2,width:20,height:20})})]}),t&&ci("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?xt(jc,{width:16,height:16,className:"text-red-500"}):xt(Gc,{width:16,height:16,className:"text-gray-500"}),xt("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),xt("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 eo from"react";import*as be from"@radix-ui/react-accordion";import{Che
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});import{MinusCircleIcon as cc,PlusCircleIcon as dc}from"@heroicons/react/24/outline";import{forwardRef as pc,useState as fc}from"react";import{jsx as fo,jsxs as Wa}from"react/jsx-runtime";var vr=pc(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:m,disabled:c=!1,...d},l)=>{let[f,u]=fc(i),C=()=>{let H=Math.min(f+a,t);u(H),n?.(H),m?.(H)},k=()=>{let H=Math.max(f-a,o);u(H),n?.(H),s?.(H)},B=H=>{let Z=parseFloat(H.target.value);if(!isNaN(Z)){let K=Math.max(Math.min(Z,t),o);u(K),n?.(K)}};return Wa("div",{ref:l,className:r("flex items-center ",e),children:[Wa(J,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:k,disabled:c||f<=o,children:[fo(cc,{className:"w-7 h-7 "}),fo("span",{className:"sr-only",children:"Decrease value"})]}),fo("input",{type:"number",value:f,onChange:B,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:c,...d}),Wa(J,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:C,disabled:c||f>=t,children:[fo(dc,{className:"w-7 h-7 "}),fo("span",{className:"sr-only",children:"Increase value"})]})]})});vr.displayName="Stepper";import*as Be from"react";import{ChevronDownIcon as br,ChevronUpIcon as gc,CheckIcon as uc,XCircleIcon as vc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as bc}from"@heroicons/react/24/outline";import*as w from"@radix-ui/react-select";import{jsx as E,jsxs as go}from"react/jsx-runtime";var xc=Be.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...m},c)=>go("div",{ref:c,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&E("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),E(w.Root,{disabled:s,...m,children:o}),a&&go("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?E(vc,{width:16,height:16}):E(bc,{width:16,height:16}),E("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),hc=w.Value,xr=Be.forwardRef(({className:e,children:o,...t},a)=>go(w.Trigger,{ref:a,className:r("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:[E("div",{className:"line-clamp-1 text-left",children:o}),E(w.Icon,{asChild:!0,children:E(br,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));xr.displayName=w.Trigger.displayName;var $a=Be.forwardRef(({className:e,...o},t)=>E(w.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:E(gc,{className:"h-5 w-5"})}));$a.displayName=w.ScrollUpButton.displayName;var Ga=Be.forwardRef(({className:e,...o},t)=>E(w.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:E(br,{className:"h-5 w-5"})}));Ga.displayName=w.ScrollDownButton.displayName;var hr=Be.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>E(w.Portal,{children:go(w.Content,{ref:i,className:r("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:[E($a,{}),E(w.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),E(Ga,{})]})}));hr.displayName=w.Content.displayName;var yc=Be.forwardRef(({className:e,children:o,...t},a)=>E(w.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),yr=Be.forwardRef(({className:e,...o},t)=>E(w.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));yr.displayName=w.Label.displayName;var wc=Be.forwardRef(({className:e,children:o,...t},a)=>go(w.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[E("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:E(w.ItemIndicator,{children:E(uc,{className:"h-4 w-4 text-pink-500"})})}),E(w.ItemText,{children:o})]})),wr=Be.forwardRef(({className:e,...o},t)=>E(w.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));wr.displayName=w.Separator.displayName;import*as Me from"react";import*as F from"@radix-ui/react-navigation-menu";import{cva as Nc}from"class-variance-authority";import{ChevronDownIcon as Pc}from"@heroicons/react/16/solid";import{jsx as Ve,jsxs as Sc}from"react/jsx-runtime";var Nr=Me.createContext(null),Cc=({value:e,children:o})=>Ve(Nr.Provider,{value:e,children:o}),Rc=()=>{let e=Me.useContext(Nr);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Go=Me.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>Ve(Cc,{value:{alignDropdown:t},children:Ve(F.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Go.displayName=F.Root.displayName;var jo=Me.forwardRef(({className:e,...o},t)=>Ve(F.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));jo.displayName=F.List.displayName;var Uo=F.Item,Qo=Nc(Ae({variant:"transparent",size:"sm"})),qo=Me.forwardRef(({className:e,children:o,...t},a)=>Sc(F.Trigger,{ref:a,className:r(Qo(),"group px-2",e),...t,children:[o," ",Ve(Pc,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));qo.displayName=F.Trigger.displayName;var Xo=Me.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Rc();return Ve(F.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Xo.displayName=F.Content.displayName;var uo=F.Link,Tc=Me.forwardRef(({className:e,...o},t)=>Ve("div",{className:r("absolute left-0 top-full flex justify-center"),children:Ve(F.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Tc.displayName=F.Viewport.displayName;var kc=Me.forwardRef(({className:e,...o},t)=>Ve(F.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:Ve("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));kc.displayName=F.Indicator.displayName;import*as Cr from"react";import*as vo from"@radix-ui/react-switch";import{jsx as Pr}from"react/jsx-runtime";var Rr=Cr.forwardRef(({className:e,...o},t)=>Pr(vo.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Pr(vo.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Rr.displayName=vo.Root.displayName;import*as Tt from"react";import*as dt from"@radix-ui/react-radio-group";import{Circle as Dc}from"lucide-react";import{cva as Tr}from"class-variance-authority";import{jsx as bo}from"react/jsx-runtime";var Mc=Tr("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"}}),Ic=Tr("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),kr=Tt.createContext({size:"medium"});function Ac(){let e=Tt.useContext(kr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Sr=Tt.forwardRef(({className:e,size:o,...t},a)=>bo(kr.Provider,{value:{size:o},children:bo(dt.Root,{className:r("grid gap-2",e),...t,ref:a})}));Sr.displayName=dt.Root.displayName;var Dr=Tt.forwardRef(({className:e,...o},t)=>{let a=Ac(),{size:i}=a??{};return bo(dt.Item,{ref:t,className:r(Mc({size:i}),e),...o,children:bo(dt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:bo(Dc,{className:r(Ic({size:i}))})})})});Dr.displayName=dt.Item.displayName;import{useState as Xc}from"react";import{ArrowDownTrayIcon as Zc}from"@heroicons/react/16/solid";import Kc from"html-react-parser";import{useEffect as _c,useState as Bc}from"react";var Zo=[.24,.25,.05,1];import{useKey as Vc}from"react-use";import Lr from"next/router";import{jsx as xo,jsxs as Mr}from"react/jsx-runtime";var Lc=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return xo("li",{className:"min-h-8",children:Mr("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&xo("div",{className:"w-6 h-6 shrink-0",children:xo("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),Mr("div",{className:" ",children:[xo("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&xo("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ir=Lc;import{motion as Ec}from"framer-motion";import{jsx as kt,jsxs as Fc}from"react/jsx-runtime";var Hc={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Zo}},exit:{opacity:0,transition:{duration:.05}}},zc=({data:e})=>kt(Ft,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return kt(Ec.div,{variants:Hc,children:o.hasDropdown?Fc(_t,{value:o.id,children:[kt(Bt,{className:"py-3",children:o.title}),kt(Vt,{children:kt("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>kt(Ir,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):kt("a",{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:o.url,...t,children:o.title})},o.id)})}),Ar=zc;import{motion as ja,AnimatePresence as Oc,LazyMotion as Wc,domAnimation as $c}from"framer-motion";import{jsx as P,jsxs as ie}from"react/jsx-runtime";var Gc=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,jc=({data:e,className:o})=>{let[t,a]=Bc(!1);Vc("Escape",()=>a(!1)),_c(()=>{if(!t)return;let s=Gc();function m(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Lr.events.on("routeChangeComplete",m),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),Lr.events.off("routeChangeComplete",m)}},[t]);let i={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Zo}},exit:{opacity:0,transition:{duration:.15}}};return ie("div",{className:r(o),children:[ie("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>a(!t),children:[P("span",{className:"sr-only",children:"Navigation"}),P(ja.div,{animate:t?"hidden":"visible",variants:i,children:P("svg",{className:r("block w-7 h-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:P("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),P(ja.div,{animate:t?"visible":"hidden",variants:i,children:P("svg",{className:r("block w-7 h-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:P("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),P(Wc,{features:$c,children:P(Oc,{mode:"wait",children:t&&ie(ja.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed block w-full max-w-full z-50 px-5 bg-white left-0 right-0 bottom-0 overflow-y-auto top-[calc(var(--header-height)+1px)] pb-24 "),children:[P(Ar,{data:e}),ie("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[P("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),ie("div",{className:"flex flex-nowrap",children:[P("div",{className:"flex-initial",children:P("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:P("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),P("div",{className:"ml-3 flex-initial",children:P("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:P("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),P("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),ie("ul",{className:"mb-2 text-sm text-gray-500",children:[ie("li",{className:"mb-1",children:["Hotline :\xA0",P("a",{href:`tel:${je.Support.Hotline}`,className:"text-gray-600",children:je.Support.Hotline_Format})]}),ie("li",{className:"mb-1",children:["Email :\xA0",P("a",{href:`mailto:${je.Support.Email}`,className:"text-gray-600",children:je.Support.Email})]})]}),P("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:ie("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:[P("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:P("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:ie("g",{children:[P("title",{children:"Asset 1"}),P("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 Qc,PlusCircleIcon as Xc}from"@heroicons/react/24/outline";import{forwardRef as qc,useState as Yc}from"react";import{jsx as Mo,jsxs as di}from"react/jsx-runtime";var $r=qc(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:c=!1,...d},m)=>{let[p,u]=Yc(i),N=()=>{let M=Math.min(p+a,t);u(M),n?.(M),l?.(M)},S=()=>{let M=Math.max(p-a,o);u(M),n?.(M),s?.(M)},D=M=>{let $=parseFloat(M.target.value);if(!isNaN($)){let j=Math.max(Math.min($,t),o);u(j),n?.(j)}};return di("div",{ref:m,className:r("flex items-center ",e),children:[di(oe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:S,disabled:c||p<=o,children:[Mo(Qc,{className:"w-7 h-7 "}),Mo("span",{className:"sr-only",children:"Decrease value"})]}),Mo("input",{type:"number",value:p,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:c,...d}),di(oe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:N,disabled:c||p>=t,children:[Mo(Xc,{className:"w-7 h-7 "}),Mo("span",{className:"sr-only",children:"Increase value"})]})]})});$r.displayName="Stepper";import*as He from"react";import*as V from"@radix-ui/react-navigation-menu";import{cva as Zc}from"class-variance-authority";import{ChevronDownIcon as Kc}from"@heroicons/react/16/solid";import{jsx as je,jsxs as ad}from"react/jsx-runtime";var jr=He.createContext(null),Jc=({value:e,children:o})=>je(jr.Provider,{value:e,children:o}),ed=()=>{let e=He.useContext(jr);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},sa=He.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>je(Jc,{value:{alignDropdown:t},children:je(V.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));sa.displayName=V.Root.displayName;var la=He.forwardRef(({className:e,...o},t)=>je(V.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));la.displayName=V.List.displayName;var ma=V.Item,ca=Zc(Fe({variant:"transparent",size:"sm"})),da=He.forwardRef(({className:e,children:o,...t},a)=>ad(V.Trigger,{ref:a,className:r(ca(),"group px-2",e),...t,children:[o," ",je(Kc,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));da.displayName=V.Trigger.displayName;var pa=He.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=ed();return je(V.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});pa.displayName=V.Content.displayName;var Io=V.Link,td=He.forwardRef(({className:e,...o},t)=>je("div",{className:r("absolute left-0 top-full flex justify-center"),children:je(V.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));td.displayName=V.Viewport.displayName;var od=He.forwardRef(({className:e,...o},t)=>je(V.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:je("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));od.displayName=V.Indicator.displayName;import*as Qr from"react";import*as Ao from"@radix-ui/react-switch";import{jsx as Ur}from"react/jsx-runtime";var Xr=Qr.forwardRef(({className:e,...o},t)=>Ur(Ao.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Ur(Ao.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Xr.displayName=Ao.Root.displayName;import*as Lt from"react";import*as bt from"@radix-ui/react-radio-group";import{Circle as id}from"lucide-react";import{cva as qr}from"class-variance-authority";import{jsx as Lo}from"react/jsx-runtime";var rd=qr("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"}}),nd=qr("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Yr=Lt.createContext({size:"medium"});function sd(){let e=Lt.useContext(Yr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Zr=Lt.forwardRef(({className:e,size:o,...t},a)=>Lo(Yr.Provider,{value:{size:o},children:Lo(bt.Root,{className:r("grid gap-2",e),...t,ref:a})}));Zr.displayName=bt.Root.displayName;var Kr=Lt.forwardRef(({className:e,...o},t)=>{let a=sd(),{size:i}=a??{};return Lo(bt.Item,{ref:t,className:r(rd({size:i}),e),...o,children:Lo(bt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Lo(id,{className:r(nd({size:i}))})})})});Kr.displayName=bt.Item.displayName;import{useState as Cd}from"react";import{ArrowDownTrayIcon as Rd}from"@heroicons/react/16/solid";import kd from"html-react-parser";import{useEffect as fd,useState as gd}from"react";import on from"next/router";import{AnimatePresence as ud,domAnimation as vd,LazyMotion as xd,motion as pi}from"framer-motion";import{useKey as bd}from"react-use";var fa=[.24,.25,.05,1];import{jsx as Ho,jsxs as Jr}from"react/jsx-runtime";var ld=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Ho("li",{className:"min-h-8",children:Jr("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&Ho("div",{className:"w-6 h-6 shrink-0",children:Ho("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),Jr("div",{className:" ",children:[Ho("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&Ho("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},en=ld;import{motion as md}from"framer-motion";import{jsx as Ht,jsxs as pd}from"react/jsx-runtime";var cd={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:fa}},exit:{opacity:0,transition:{duration:.05}}},dd=({data:e})=>Ht(jt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return Ht(md.div,{variants:cd,children:o.hasDropdown?pd(Ut,{value:o.id,children:[Ht(Qt,{className:"py-3",children:o.title}),Ht(Xt,{children:Ht("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>Ht(en,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):Ht("a",{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:o.url,...t,children:o.title})},o.id)})}),tn=dd;import{jsx as R,jsxs as me}from"react/jsx-runtime";var hd=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,yd=({data:e,className:o})=>{let[t,a]=gd(!1);bd("Escape",()=>a(!1)),fd(()=>{if(!t)return;let s=hd();function l(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",on.events.on("routeChangeComplete",l),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),on.events.off("routeChangeComplete",l)}},[t]);let i={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:fa}},exit:{opacity:0,transition:{duration:.15}}};return me("div",{className:r(o),children:[me("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[R("span",{className:"sr-only",children:"Navigation"}),R(pi.div,{animate:t?"hidden":"visible",variants:i,children:R("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:R("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),R(pi.div,{animate:t?"visible":"hidden",variants:i,children:R("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:R("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),R(xd,{features:vd,children:R(ud,{mode:"wait",children:t&&me(pi.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[R(tn,{data:e}),me("div",{className:"animate-fade-in py-4 text-sm delay-300 duration-500",children:[R("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),me("div",{className:"flex flex-nowrap",children:[R("div",{className:"flex-initial",children:R("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:R("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),R("div",{className:"ml-3 flex-initial",children:R("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:R("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),R("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),me("ul",{className:"mb-2 text-sm text-gray-500",children:[me("li",{className:"mb-1",children:["Hotline :\xA0",R("a",{href:`tel:${Ye.Support.Hotline}`,className:"text-gray-600",children:Ye.Support.Hotline_Format})]}),me("li",{className:"mb-1",children:["Email :\xA0",R("a",{href:`mailto:${Ye.Support.Email}`,className:"text-gray-600",children:Ye.Support.Email})]})]}),R("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:me("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:[R("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:R("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:me("g",{children:[R("title",{children:"Asset 1"}),R("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
- c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),P("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
122
+ c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),R("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`})]})})}),P("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),P("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),P("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),ie("ul",{className:"mb-2 text-sm text-gray-500",children:[ie("li",{className:"mb-1",children:["Hotline :\xA0",P("a",{className:"text-gray-600",href:`tel:${je.Business.Phome}`,children:je.Business.Phome_Format})]}),ie("li",{className:"mb-1",children:["Email :\xA0",ie("a",{href:`mailto:${je.Business.Email}`,className:"text-gray-600",children:[" ",je.Business.Email]})]})]}),P("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:ie("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:[P("div",{className:"absolute left-1 top-1 ",children:P("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),P("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),P("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},Er=jc;import{jsx as qt,jsxs as Hr}from"react/jsx-runtime";var Uc=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return qt("li",{className:"",children:qt(uo,{asChild:!0,children:Hr("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&qt("div",{className:"w-7 h-7 shrink-0 mt-1",children:qt("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),Hr("div",{className:" ",children:[qt("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&qt("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},zr=Uc;import{jsx as pt,jsxs as qc}from"react/jsx-runtime";var Qc=({data:e,alignDropdown:o})=>pt(Go,{alignDropdown:o,children:pt(jo,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?qc(Uo,{className:"relative",children:[pt(qo,{children:t.title}),pt(Xo,{children:pt("ul",{className:r("grid w-[300px] grid-cols-1 p-2",t.dropDownCompact===!1&&"w-[230px]",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>pt(zr,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):pt(Uo,{className:"relative",children:pt(uo,{href:t.url,className:Qo(),...a,children:t.title})},t.id)})})}),Fr=Qc;import{jsx as Ie,jsxs as St}from"react/jsx-runtime";var _r=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left"})=>{let{logo:m,name:c,url:d}=t||{},[l,f]=Xc(!1);return St("div",{className:r(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[Ie("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Ie("nav",{className:r("wrapper grid grid-cols-1 items-center [--header-height:64px] lg:border-0 "),style:{minHeight:"var(--header-height)"},children:St("div",{className:"relative flex items-center ",children:[St("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[Ie("span",{className:"sr-only",children:"MoMo home page"}),Ie("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&St("a",{href:d,title:c,className:" relative flex flex-none items-center space-x-1 rounded-none pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] hover:opacity-80 ",children:[Ie("img",{src:m,className:"h-9 w-9",alt:"MoMo"}),Ie("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&Kc(c)})]}),Ie("div",{className:r("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!i&&!a&&" lg:ml-auto xl:ml-auto"),children:Ie(Fr,{data:o,alignDropdown:s})}),St("div",{className:r("ml-auto flex flex-nowrap items-center space-x-3",!i&&!a&&" lg:ml-0"),children:[i&&i,a&&St("div",{className:" hidden sm:flex",children:[St(he,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>f(!0),children:[" ",Ie(Zc,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Ie(wt,{open:l,onOpenChange:()=>f(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Ie(Er,{data:o,className:"lg:hidden "})]})]})})]})};_r.displayName="HeaderNavigation";import{useState as Yc}from"react";import{Fragment as ed,jsx as g,jsxs as R}from"react/jsx-runtime";var Br=({item:e})=>g("div",{className:"mt-3 flex w-full text-sm",children:R("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 flex-none h-5 w-5 md:h-6 md:w-6",children:g("img",{src:e.icon,className:"absolute inset-0"})}),g("span",{className:"block ",children:e.title})]})}),Jc=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=Yc(null);return R(ed,{children:[g("div",{className:"footer-main order-2 py-7 text-white md:order-1 text-sm",children:R("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:[R("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((i,n)=>g(Br,{item:i},n))]}),R("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((i,n)=>g(Br,{item:i},n))})]}),R("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[R("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"}),R("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:gi.Address})]}),R("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:${te.Support.Hotline}`,children:te.Support.Hotline_Format}),R("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),R("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:${te.Support.Email}`,children:te.Support.Email})]}),R("div",{className:"mt-1 text-sm",children:[R("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:${te.Support.Phone_Ext_1}`,children:te.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:${te.Support.Phone_Ext_2}`,children:te.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:${te.Support.Phone_Ext_3}`,children:te.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:R("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:R("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`})]})})}),R("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),R("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),R("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),me("ul",{className:"mb-2 text-sm text-gray-500",children:[me("li",{className:"mb-1",children:["Hotline :\xA0",R("a",{className:"text-gray-600",href:`tel:${Ye.Business.Phome}`,children:Ye.Business.Phome_Format})]}),me("li",{className:"mb-1",children:["Email :\xA0",me("a",{href:`mailto:${Ye.Business.Email}`,className:"text-gray-600",children:[" ",Ye.Business.Email]})]})]}),R("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:me("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:[R("div",{className:"absolute left-1 top-1 ",children:R("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),R("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),R("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},an=yd;import{jsx as io,jsxs as rn}from"react/jsx-runtime";var wd=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return io("li",{className:"",children:io(Io,{asChild:!0,children:rn("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&io("div",{className:"w-7 h-7 shrink-0 mt-1",children:io("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),rn("div",{className:" ",children:[io("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&io("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},nn=wd;import{jsx as ht,jsxs as Pd}from"react/jsx-runtime";var Nd=({data:e,alignDropdown:o})=>ht(sa,{alignDropdown:o,children:ht(la,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Pd(ma,{className:"relative",children:[ht(da,{children:t.title}),ht(pa,{children:ht("ul",{className:r("grid w-[300px] grid-cols-1 p-2",t.dropDownCompact===!1&&"w-[230px]",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>ht(nn,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):ht(ma,{className:"relative",children:ht(Io,{href:t.url,className:ca(),...a,children:t.title})},t.id)})})}),sn=Nd;import{jsx as Ee,jsxs as Et}from"react/jsx-runtime";var ln=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left"})=>{let{logo:l,name:c,url:d}=t||{},[m,p]=Cd(!1);return Et("div",{className:r(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[Ee("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Ee("nav",{className:r("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0 "),style:{minHeight:"var(--header-height-mobase)"},children:Et("div",{className:"relative flex items-center ",children:[Et("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[Ee("span",{className:"sr-only",children:"MoMo home page"}),Ee("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&Et("a",{href:d,title:c,className:" relative flex flex-none items-center space-x-1 rounded-none pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] hover:opacity-80 ",children:[Ee("img",{src:l,className:"h-9 w-9",alt:"MoMo"}),Ee("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&kd(c)})]}),Ee("div",{className:r("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!i&&!a&&" lg:ml-auto xl:ml-auto"),children:Ee(sn,{data:o,alignDropdown:s})}),Et("div",{className:r("ml-auto flex flex-nowrap items-center space-x-3",!i&&!a&&" lg:ml-0"),children:[i&&i,a&&Et("div",{className:" hidden sm:flex",children:[Et(Pe,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>p(!0),children:[" ",Ee(Rd,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Ee(St,{open:m,onOpenChange:()=>p(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Ee(an,{data:o,className:"lg:hidden "})]})]})})]})};ln.displayName="HeaderNavigation";import{useState as Td}from"react";import{Fragment as Dd,jsx as g,jsxs as k}from"react/jsx-runtime";var mn=({item:e})=>g("div",{className:"mt-3 flex w-full text-sm",children:k("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 flex-none h-5 w-5 md:h-6 md:w-6",children:g("img",{src:e.icon,className:"absolute inset-0"})}),g("span",{className:"block ",children:e.title})]})}),Sd=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=Td(null);return k(Dd,{children:[g("div",{className:"footer-main order-2 py-7 text-white md:order-1 text-sm",children:k("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:[k("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((i,n)=>g(mn,{item:i},n))]}),k("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((i,n)=>g(mn,{item:i},n))})]}),k("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[k("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"}),k("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:Ei.Address})]}),k("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:${ne.Support.Hotline}`,children:ne.Support.Hotline_Format}),k("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),k("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:${ne.Support.Email}`,children:ne.Support.Email})]}),k("div",{className:"mt-1 text-sm",children:[k("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:${ne.Support.Phone_Ext_1}`,children:ne.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:${ne.Support.Phone_Ext_2}`,children:ne.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:${ne.Support.Phone_Ext_3}`,children:ne.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:k("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:k("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"})]})})})]}),R("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"}),R("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:${te.Business.Phome}`,children:te.Business.Phome_Format})]}),R("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:${te.Business.Email}`,children:te.Business.Email})]}),R("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:R("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[g("div",{className:"absolute left-1 top-1 flex aspect-1 items-center justify-center",children:R("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"})]})})})]})]}),R("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:[R("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:Jt&&Jt.map((i,n)=>g("li",{className:"inline-block",children:g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:g("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),R("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"}),R("div",{className:"flex items-center flex-wrap md:mt-3 md:space-x-1.5",children:[g("div",{className:"relative hidden h-24 w-24 lg:w-20 lg:h-20 grow-0 overflow-hidden rounded-sm bg-white md:block",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:ma&&ma.map((i,n)=>R("div",{className:"w-full md:flex md:items-center button-download",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[g(he,{onClick:()=>a(n),className:"!bg-transparent rounded-none w-full hidden sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),g(wt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),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:Jt&&Jt.map((i,n)=>g("li",{children:g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:g("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),R("div",{className:"h-auto",children:[g("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),R("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[R("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-1 bg-gray-800 py-3.5 md:order-2 md:py-5",children:R("div",{className:"wrapper flex flex-wrap items-end justify-between md:flex-nowrap md:space-x-3",children:[R("div",{className:"mb-2.5 flex justify-between md:mb-0",children:[g("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"}),R("div",{className:"shrink pl-3",children:[g("div",{className:"text-sm text-white text-opacity-80 md:mb-1.5 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),g("span",{className:"hidden text-xs text-white text-opacity-50 md:block lg:text-sm lg:leading-none",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"})]})]}),g("span",{className:"block text-sm text-white text-opacity-50 md:hidden",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),R("span",{className:"hidden w-48 flex-none text-right text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})}),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"})]})})})]}),k("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"}),k("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:${ne.Business.Phome}`,children:ne.Business.Phome_Format})]}),k("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:${ne.Business.Email}`,children:ne.Business.Email})]}),k("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:k("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[g("div",{className:"absolute left-1 top-1 flex aspect-1 items-center justify-center",children:k("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"})]})})})]})]}),k("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:[k("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:fo&&fo.map((i,n)=>g("li",{className:"inline-block",children:g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:g("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),k("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"}),k("div",{className:"flex items-center flex-wrap md:mt-3 md:space-x-1.5",children:[g("div",{className:"relative hidden h-24 w-24 lg:w-20 lg:h-20 grow-0 overflow-hidden rounded-sm bg-white md:block",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:Da&&Da.map((i,n)=>k("div",{className:"w-full md:flex md:items-center button-download",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[g(Pe,{onClick:()=>a(n),className:"!bg-transparent rounded-none w-full hidden sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),g(St,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),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:fo&&fo.map((i,n)=>g("li",{children:g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:g("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),k("div",{className:"h-auto",children:[g("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),k("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[k("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-1 bg-gray-800 py-3.5 md:order-2 md:py-5",children:k("div",{className:"wrapper flex flex-wrap items-end justify-between md:flex-nowrap md:space-x-3",children:[k("div",{className:"mb-2.5 flex justify-between md:mb-0",children:[g("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"}),k("div",{className:"shrink pl-3",children:[g("div",{className:"text-sm text-white text-opacity-80 md:mb-1.5 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),g("span",{className:"hidden text-xs text-white text-opacity-50 md:block lg:text-sm lg:leading-none",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"})]})]}),g("span",{className:"block text-sm text-white text-opacity-50 md:hidden",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),k("span",{className:"hidden w-48 flex-none text-right text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})}),g("style",{children:`
129
129
  footer .button-download {
130
130
  max-width: 150px;
131
131
  }
132
- `})]})},Vr=Jc;import{jsx as Or}from"react/jsx-runtime";var td=({className:e,primaryMenu:o,secondaryMenu:t})=>Or("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Or(Vr,{primaryMenu:o,secondaryMenu:t})});import*as Dt from"react";import{jsx as Xt}from"react/jsx-runtime";var Wr=Dt.forwardRef(({className:e,...o},t)=>Xt("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Wr.displayName="Card";var $r=Dt.forwardRef(({className:e,...o},t)=>Xt("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));$r.displayName="CardHeader";var Gr=Dt.forwardRef(({className:e,...o},t)=>Xt("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));Gr.displayName="CardTitle";var jr=Dt.forwardRef(({className:e,...o},t)=>Xt("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));jr.displayName="CardDescription";var Ur=Dt.forwardRef(({className:e,...o},t)=>Xt("div",{ref:t,className:r("p-6 pt-0",e),...o}));Ur.displayName="CardContent";var Qr=Dt.forwardRef(({className:e,...o},t)=>Xt("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));Qr.displayName="CardFooter";import*as Pe from"react";import{Command as le}from"cmdk";import{XCircleIcon as od,MagnifyingGlassIcon as ad}from"@heroicons/react/16/solid";import{jsx as ge,jsxs as rd}from"react/jsx-runtime";var Ua=Pe.forwardRef(({className:e,...o},t)=>ge(le,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));Ua.displayName=le.displayName;var id=({children:e,...o})=>ge(qe,{...o,children:ge(Le,{className:"overflow-hidden p-0 shadow-lg",children:ge(Ua,{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})})}),qr=Pe.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=Pe.useRef(null),[s,m]=Pe.useState(""),c=()=>{!s||s?.length<=0||(m(""),o?.(s))};return rd("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[ge(ad,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),ge(le.Input,{ref:i,className:r("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:m,...a}),ge(od,{onClick:c,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});qr.displayName=le.Input.displayName;var Xr=Pe.forwardRef(({className:e,...o},t)=>ge(le.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Xr.displayName=le.List.displayName;var Zr=Pe.forwardRef((e,o)=>ge(le.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Zr.displayName=le.Empty.displayName;var Kr=Pe.forwardRef(({className:e,...o},t)=>ge(le.Group,{ref:t,className:r("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));Kr.displayName=le.Group.displayName;var Yr=Pe.forwardRef(({className:e,...o},t)=>ge(le.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));Yr.displayName=le.Separator.displayName;var Jr=Pe.forwardRef(({className:e,children:o,...t},a)=>ge(le.Item,{ref:a,className:r("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));Jr.displayName=le.Item.displayName;var en=({className:e,...o})=>ge("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});en.displayName="CommandShortcut";import{ChevronDownIcon as nd}from"@heroicons/react/16/solid";import{jsx as Ko,jsxs as tn}from"react/jsx-runtime";var sd=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>tn("div",{className:"relative",children:[tn(no,{className:r("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||i,Ko(nd,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&Ko("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),ld=({children:e,className:o,...t})=>Ko(Ut,{className:r("border-none !p-0",o),...t,children:e}),md=({open:e,onOpenChange:o,children:t,...a})=>Ko(ro,{open:e,onOpenChange:o,...a,children:t});import{cva as an}from"class-variance-authority";import{forwardRef as cd}from"react";import{InformationCircleIcon as dd}from"@heroicons/react/24/outline";import{jsx as Qa,jsxs as on}from"react/jsx-runtime";var pd=an("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"}}),fd=an("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"}}),gd=cd(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:m,...c},d)=>on("div",{ref:d,className:r("",i,pd({typeDiv:e,disabled:n})),...c,children:[on("div",{className:"flex items-center space-x-2",children:[m||Qa(dd,{className:r(fd({typeIcon:e,disabled:n})),width:20,height:20}),o&&Qa("div",{children:o})]}),t&&Qa(ae,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as ud,useEffect as vd,useRef as bd,useState as xd}from"react";import{MagnifyingGlassIcon as hd}from"@heroicons/react/20/solid";import{XCircleIcon as yd}from"@heroicons/react/24/outline";import{jsx as Zt,jsxs as rn}from"react/jsx-runtime";var wd=ud(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:m,defaultValue:c,type:d="text",...l},f)=>{let[u,C]=xd(!1),k=bd(null),B=W=>{W&&!u&&C(!0),!W&&u&&C(!1)},H=W=>{B(W.target.value),i?.(W)},Z=W=>{B(W.target.value),n?.(W)},K=()=>{let W=k.current?.querySelector("input");W&&(s?.(W.value),W.value="",W.focus(),C(!1))};return vd(()=>{B(c||m)},[m,c]),rn("div",{className:r(o),ref:k,children:[rn("div",{className:"relative flex items-center",children:[Zt("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:Zt(hd,{className:"w-4 h-4 text-gray-500"})}),Zt("input",{disabled:e,type:d,ref:f,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:H,onFocus:Z,value:m,defaultValue:c,...l}),u&&Zt("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:K,children:Zt(yd,{strokeWidth:2,width:20,height:20})})]}),Zt("style",{children:`
132
+ `})]})},cn=Sd;import{jsx as dn}from"react/jsx-runtime";var Md=({className:e,primaryMenu:o,secondaryMenu:t})=>dn("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:dn(cn,{primaryMenu:o,secondaryMenu:t})});import*as Ft from"react";import{jsx as ro}from"react/jsx-runtime";var pn=Ft.forwardRef(({className:e,...o},t)=>ro("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));pn.displayName="Card";var fn=Ft.forwardRef(({className:e,...o},t)=>ro("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));fn.displayName="CardHeader";var gn=Ft.forwardRef(({className:e,...o},t)=>ro("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));gn.displayName="CardTitle";var un=Ft.forwardRef(({className:e,...o},t)=>ro("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));un.displayName="CardDescription";var vn=Ft.forwardRef(({className:e,...o},t)=>ro("div",{ref:t,className:r("p-6 pt-0",e),...o}));vn.displayName="CardContent";var xn=Ft.forwardRef(({className:e,...o},t)=>ro("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));xn.displayName="CardFooter";import*as Te from"react";import{Command as fe}from"cmdk";import{XCircleIcon as Id,MagnifyingGlassIcon as Ad}from"@heroicons/react/16/solid";import{jsx as be,jsxs as Hd}from"react/jsx-runtime";var fi=Te.forwardRef(({className:e,...o},t)=>be(fe,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));fi.displayName=fe.displayName;var Ld=({children:e,...o})=>be(Je,{...o,children:be(ze,{className:"overflow-hidden p-0 shadow-lg",children:be(fi,{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})})}),bn=Te.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=Te.useRef(null),[s,l]=Te.useState(""),c=()=>{!s||s?.length<=0||(l(""),o?.(s))};return Hd("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[be(Ad,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),be(fe.Input,{ref:i,className:r("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),be(Id,{onClick:c,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});bn.displayName=fe.Input.displayName;var hn=Te.forwardRef(({className:e,...o},t)=>be(fe.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));hn.displayName=fe.List.displayName;var yn=Te.forwardRef((e,o)=>be(fe.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));yn.displayName=fe.Empty.displayName;var wn=Te.forwardRef(({className:e,...o},t)=>be(fe.Group,{ref:t,className:r("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));wn.displayName=fe.Group.displayName;var Nn=Te.forwardRef(({className:e,...o},t)=>be(fe.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));Nn.displayName=fe.Separator.displayName;var Pn=Te.forwardRef(({className:e,children:o,...t},a)=>be(fe.Item,{ref:a,className:r("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));Pn.displayName=fe.Item.displayName;var Cn=({className:e,...o})=>be("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Cn.displayName="CommandShortcut";import{ChevronDownIcon as Ed}from"@heroicons/react/16/solid";import{jsx as ga,jsxs as Rn}from"react/jsx-runtime";var Fd=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>Rn("div",{className:"relative",children:[Rn(yo,{className:r("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||i,ga(Ed,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&ga("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),zd=({children:e,className:o,...t})=>ga(eo,{className:r("border-none !p-0",o),...t,children:e}),_d=({open:e,onOpenChange:o,children:t,...a})=>ga(ho,{open:e,onOpenChange:o,...a,children:t});import{cva as Tn}from"class-variance-authority";import{forwardRef as Bd}from"react";import{InformationCircleIcon as Vd}from"@heroicons/react/24/outline";import{jsx as gi,jsxs as kn}from"react/jsx-runtime";var Od=Tn("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"}}),Wd=Tn("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"}}),Eo=Bd(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...c},d)=>kn("div",{ref:d,className:r("",i,Od({typeDiv:e,disabled:n})),...c,children:[kn("div",{className:"flex items-center space-x-2",children:[l||gi(Vd,{className:r(Wd({typeIcon:e,disabled:n})),width:20,height:20}),o&&gi("div",{children:o})]}),t&&gi(le,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as Gd,useEffect as $d,useRef as jd,useState as Ud}from"react";import{MagnifyingGlassIcon as Qd}from"@heroicons/react/20/solid";import{XCircleIcon as Xd}from"@heroicons/react/24/outline";import{jsx as no,jsxs as Sn}from"react/jsx-runtime";var qd=Gd(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:c,type:d="text",...m},p)=>{let[u,N]=Ud(!1),S=jd(null),D=A=>{A&&!u&&N(!0),!A&&u&&N(!1)},M=A=>{D(A.target.value),i?.(A)},$=A=>{D(A.target.value),n?.(A)},j=()=>{let A=S.current?.querySelector("input");A&&(s?.(A.value),A.value="",A.focus(),N(!1))};return $d(()=>{D(c||l)},[l,c]),Sn("div",{className:r(o),ref:S,children:[Sn("div",{className:"relative flex items-center",children:[no("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:no(Qd,{className:"w-4 h-4 text-gray-500"})}),no("input",{disabled:e,type:d,ref:p,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:M,onFocus:$,value:l,defaultValue:c,...m}),u&&no("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:j,children:no(Xd,{strokeWidth:2,width:20,height:20})})]}),no("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 ue from"@radix-ui/react-dialog";import sn,{useContext as Nd,useEffect as nn,useState as qa}from"react";import{X as Pd}from"lucide-react";import Cd from"lodash";import{jsx as Y,jsxs as rt}from"react/jsx-runtime";var ln=sn.createContext(void 0);function mn(){let e=Nd(ln);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Xa=({children:e,open:o,onOpenChange:t,className:a})=>Y(ln.Provider,{value:{open:o,onOpenChange:t},children:Y(ue.Root,{open:o,onOpenChange:t,children:Y("div",{className:r("lightbox-gallery",a),children:e})})}),Rd=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:m}=mn(),c=()=>{n?.(),m&&m(!0)};return rt(ue.Trigger,{className:r("",a),onClick:c,children:[e,Y($,{ratio:s,className:"rounded-lg cursor-pointer",children:Y("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},cn=sn.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=mn(),n=()=>{i&&i(!1)};return rt(ue.Portal,{children:[Y(ue.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),rt(ue.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,rt(ue.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:[Y(Pd,{className:"h-4 w-4 mt-0.5"}),Y("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});cn.displayName=ue.Content.displayName;var Za=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=qa(""),[m,c]=qa(),[d,l]=qa(0);nn(()=>{m&&(l(m.selectedScrollSnap()+1),m.on("select",()=>{l(m.selectedScrollSnap()+1)}))},[m]);let f=u=>{let C=Cd.filter(e,(B,H)=>H===(u>0?u-1:u)),k=C.length>0?C[0]?.titleImage:"";s(k)};return nn(()=>{f(d)},[d]),rt(cn,{className:"flex py-0",children:[rt("div",{className:" flex-1 relative",children:[rt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[d||1," / ",e?.length]}),rt(Te,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[Y(ke,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,C)=>Y(Se,{className:"pl-6 md:pl-4",children:rt("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[Y("div",{className:"flex-1 relative",children:Y("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),Y("div",{className:"flex-0",children:Y("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:Y("div",{className:"line-clamp-3",children:n})})})]})},C))}),Y($t,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),Y(Gt,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&Y("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as ft from"react";import{CheckIcon as Td}from"@heroicons/react/16/solid";import*as ho from"@radix-ui/react-checkbox";import*as gt from"@radix-ui/react-radio-group";import{Circle as kd}from"lucide-react";import{jsx as Oe,jsxs as un}from"react/jsx-runtime";var dn=ft.createContext({hideIndicator:!1});function Sd(){let e=ft.useContext(dn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var pn=ft.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>Oe(dn.Provider,{value:{hideIndicator:o},children:Oe(gt.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));pn.displayName=gt.Root.displayName;var fn=ft.forwardRef(({className:e,children:o,...t},a)=>{let i=Sd(),{hideIndicator:n}=i??{};return un(gt.Item,{ref:a,className:r("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[Oe("div",{className:"min-w-0 flex-1",children:o}),!n&&Oe("div",{className:r("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:Oe(gt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:Oe(kd,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});fn.displayName=gt.Item.displayName;var gn=ft.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>un(ho.Root,{ref:i,className:r("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[Oe("div",{className:"min-w-0 flex-1",children:o}),!t&&Oe("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:Oe(ho.Indicator,{className:r("flex items-center justify-center text-current"),children:Oe(Td,{className:"h-4 w-4"})})})]}));gn.displayName=ho.Root.displayName;import{cva as Dd}from"class-variance-authority";import{jsx as Id}from"react/jsx-runtime";var vn=Dd("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 Md({className:e,variant:o,...t}){return Id("div",{className:r(vn({variant:o}),e),...t})}import*as xn from"react";import*as yo from"@radix-ui/react-progress";import{cva as hn}from"class-variance-authority";import{jsx as bn}from"react/jsx-runtime";var Ad=hn("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"}}),Ld=hn("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"}}),yn=xn.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>bn(yo.Root,{ref:s,className:r("",Ld({size:a}),e),...n,children:bn(yo.Indicator,{className:r("",Ad({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));yn.displayName=yo.Root.displayName;import{jsx as Hd}from"react/jsx-runtime";function Ed({className:e,...o}){return Hd("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Fd,jsx as Mt,jsxs as wn}from"react/jsx-runtime";function zd({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return Mt("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return wn("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((m,c)=>Mt("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),Mt("style",{children:`
139
+ `})]})});import*as he from"@radix-ui/react-dialog";import Mn,{useContext as Yd,useEffect as Dn,useState as ui}from"react";import{X as Zd}from"lucide-react";import Kd from"lodash";import{jsx as ee,jsxs as ct}from"react/jsx-runtime";var In=Mn.createContext(void 0);function An(){let e=Yd(In);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var vi=({children:e,open:o,onOpenChange:t,className:a})=>ee(In.Provider,{value:{open:o,onOpenChange:t},children:ee(he.Root,{open:o,onOpenChange:t,children:ee("div",{className:r("lightbox-gallery",a),children:e})})}),Jd=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=An(),c=()=>{n?.(),l&&l(!0)};return ct(he.Trigger,{className:r("",a),onClick:c,children:[e,ee(U,{ratio:s,className:"rounded-lg cursor-pointer",children:ee("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},Ln=Mn.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=An(),n=()=>{i&&i(!1)};return ct(he.Portal,{children:[ee(he.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),ct(he.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,ct(he.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:[ee(Zd,{className:"h-4 w-4 mt-0.5"}),ee("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Ln.displayName=he.Content.displayName;var xi=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=ui(""),[l,c]=ui(),[d,m]=ui(0);Dn(()=>{l&&(m(l.selectedScrollSnap()+1),l.on("select",()=>{m(l.selectedScrollSnap()+1)}))},[l]);let p=u=>{let N=Kd.filter(e,(D,M)=>M===(u>0?u-1:u)),S=N.length>0?N[0]?.titleImage:"";s(S)};return Dn(()=>{p(d)},[d]),ct(Ln,{className:"flex py-0",children:[ct("div",{className:" flex-1 relative",children:[ct("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[d||1," / ",e?.length]}),ct(Me,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[ee(Ie,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,N)=>ee(Ae,{className:"pl-6 md:pl-4",children:ct("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[ee("div",{className:"flex-1 relative",children:ee("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),ee("div",{className:"flex-0",children:ee("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:ee("div",{className:"line-clamp-3",children:n})})})]})},N))}),ee(Zt,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ee(Kt,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ee("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as yt from"react";import{CheckIcon as ep}from"@heroicons/react/16/solid";import*as Fo from"@radix-ui/react-checkbox";import*as wt from"@radix-ui/react-radio-group";import{Circle as tp}from"lucide-react";import{jsx as Ue,jsxs as Fn}from"react/jsx-runtime";var Hn=yt.createContext({hideIndicator:!1});function op(){let e=yt.useContext(Hn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var ua=yt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>Ue(Hn.Provider,{value:{hideIndicator:o},children:Ue(wt.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));ua.displayName=wt.Root.displayName;var va=yt.forwardRef(({className:e,children:o,...t},a)=>{let i=op(),{hideIndicator:n}=i??{};return Fn(wt.Item,{ref:a,className:r("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[Ue("div",{className:"min-w-0 flex-1",children:o}),!n&&Ue("div",{className:r("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:Ue(wt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:Ue(tp,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});va.displayName=wt.Item.displayName;var En=yt.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>Fn(Fo.Root,{ref:i,className:r("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[Ue("div",{className:"min-w-0 flex-1",children:o}),!t&&Ue("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:Ue(Fo.Indicator,{className:r("flex items-center justify-center text-current"),children:Ue(ep,{className:"h-4 w-4"})})})]}));En.displayName=Fo.Root.displayName;import{cva as ap}from"class-variance-authority";import{jsx as rp}from"react/jsx-runtime";var zn=ap("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 ip({className:e,variant:o,...t}){return rp("div",{className:r(zn({variant:o}),e),...t})}import*as Bn from"react";import*as zo from"@radix-ui/react-progress";import{cva as Vn}from"class-variance-authority";import{jsx as _n}from"react/jsx-runtime";var np=Vn("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"}}),sp=Vn("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"}}),On=Bn.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>_n(zo.Root,{ref:s,className:r("",sp({size:a}),e),...n,children:_n(zo.Indicator,{className:r("",np({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));On.displayName=zo.Root.displayName;import{jsx as lp}from"react/jsx-runtime";function xa({className:e,...o}){return lp("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as cp,jsx as zt,jsxs as Wn}from"react/jsx-runtime";function mp({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return zt("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return Wn("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,c)=>zt("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),zt("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 eo from"react";import*as be from"@radix-ui/react-accordion";import{Che
163
163
  opacity: .2;
164
164
  }
165
165
  }
166
- `})]});case"default":default:return wn(Fd,{children:[Mt("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:Mt("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e],t),children:[...Array(12)].map((m,c)=>Mt("div",{className:r(`spinner_bar child-${c+1}`,o)},c))})}),Mt("style",{children:`
166
+ `})]});case"default":default:return Wn(cp,{children:[zt("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:zt("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e],t),children:[...Array(12)].map((l,c)=>zt("div",{className:r(`spinner_bar child-${c+1}`,o)},c))})}),zt("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 eo from"react";import*as be from"@radix-ui/react-accordion";import{Che
243
243
  opacity: 0.15;
244
244
  }
245
245
  }
246
- `})]})}})()})}import*as Nn from"react";import*as We from"@radix-ui/react-slider";import{jsx as ut,jsxs as _d}from"react/jsx-runtime";var Pn=Nn.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>_d(We.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[ut(We.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:ut(We.Range,{className:"absolute h-full bg-pink-500"})}),ut(We.Thumb,{className:"group relative",children:ut("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&&ut("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})})}),ut(We.Thumb,{className:"group relative",children:ut("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&&ut("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})})})]}));Pn.displayName=We.Root.displayName;import{forwardRef as Jd}from"react";import{Fragment as Wd,jsx as Ce,jsxs as Yo}from"react/jsx-runtime";var Bd=({author:e=""})=>Ce("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Vd=({author:e,avatar:o})=>Ce("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Ce("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Ce(Bd,{author:e})});function Od({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return Ce(Wd,{children:Yo("div",{className:"flex relative items-center space-x-3",children:[Ce(Vd,{avatar:e,author:o}),Yo("div",{className:"flex flex-col",children:[o&&Ce("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Yo("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Ce("div",{className:"text-gray-400",children:t}),a&&Yo("div",{className:"flex items-center space-x-2",children:[Ce("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Ce("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&Ce("div",{className:"absolute right-1 top-0",children:Ce("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Cn=Od;import{useState as Dn}from"react";import{StarIcon as $d}from"@heroicons/react/20/solid";import{jsx as Rn,jsxs as Tn}from"react/jsx-runtime";var Gd={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!"},jd={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 Ud({point:e,max:o,className:t}){let a=o>5?Gd[e||10]:jd[e||5];return Tn("div",{className:r("flex items-center space-x-1",t),children:[Rn($d,{className:"w-5 h-5 text-yellow-500"}),Rn("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Tn("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var kn=Ud;import{useState as Qd}from"react";import Sn from"html-react-parser";import{jsx as qd,jsxs as Xd}from"react/jsx-runtime";var Ka=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,m]=Qd(!0),c=()=>{m(!s)},d=(l,f,u=" ")=>l.length<=f?l:l.substring(0,l.lastIndexOf(u,f));return Xd("div",{className:r(n),children:[s?Sn(d(e,o)):Sn(e),e.length>o&&qd("span",{onClick:c,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as It,jsxs as Mn}from"react/jsx-runtime";function Zd({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,m]=Dn(0),[c,d]=Dn(!1),l=f=>{d(!0),m(f)};return Mn("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&It(kn,{className:"mb-0.5",point:i.point,max:i.max}),e&&It(Ka,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&It("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(f=>It("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&&Mn(Xa,{open:c,onOpenChange:d,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)=>It($,{onClick:()=>l(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:It("img",{src:f.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),It(Za,{activeSlideIndex:s,images:o?.map((f,u)=>({url:f.url,titleImage:f.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var In=Zd;import{jsx as Yd}from"react/jsx-runtime";function Kd({actions:e=[]}){return Yd("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var An=Kd;import{jsx as Jo,jsxs as tp}from"react/jsx-runtime";var ep=Jd(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:m=[],statusMessage:c,isReply:d,children:l,commentSideBar:f,isOutStanding:u,limitContent:C=260},k)=>tp("div",{ref:k,className:r("",d?"ml-4 py-4":"py-5"),children:[Jo(Cn,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),Jo(In,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:f,limitContent:C}),m&&m?.filter(Boolean)?.length>0&&Jo(An,{actions:m.filter(Boolean)}),l&&Jo("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:l})]}));import*as vt from"react";import{cva as op}from"class-variance-authority";import{CheckIcon as ap}from"@heroicons/react/16/solid";import{XIcon as ip}from"lucide-react";import{jsx as me,jsxs as ea}from"react/jsx-runtime";var rp=op("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"}}),Ln=vt.createContext("default");function np(){let e=vt.useContext(Ln);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var sp=vt.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?me(ip,{className:s}):ea("div",{children:[e==="iconStep"&&me("div",{className:s,children:o}),e==="numberStep"&&me("div",{children:t}),e==="default"&&(n==="completed"?me(ap,{className:s}):me("div",{children:t}))]})}),lp=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=vt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return me("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},mp=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:m,fristStep:c,icon:d,isError:l,onValueChangeStep:f,...u})=>{let C=np();return ea("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[ea("div",{className:"flex w-full items-center justify-center gap-2",children:[me("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),me("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",rp({state:o,size:t}),l&&"bg-red-500 text-white shadow-none",i),...u,children:me(sp,{type:C,icon:d,stepNumber:e,size:t,isError:l,state:o})}),me("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),ea("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&me("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&me("div",{className:"text-xs text-gray-500 ",children:s})]})]})},cp=({children:e,className:o,type:t="numberStep",...a})=>me(Ln.Provider,{value:t,children:me("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as ce from"react";import{Slot as gp}from"@radix-ui/react-slot";import{Controller as up,FormProvider as vp,useFormContext as bp}from"react-hook-form";import*as En from"react";import*as Ya from"@radix-ui/react-label";import{cva as dp}from"class-variance-authority";import{jsx as fp}from"react/jsx-runtime";var pp=dp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ta=En.forwardRef(({className:e,...o},t)=>fp(Ya.Root,{ref:t,className:r(pp(),e),...o}));ta.displayName=Ya.Root.displayName;import{jsx as bt}from"react/jsx-runtime";var xp=vp,Hn=ce.createContext({}),hp=({...e})=>bt(Hn.Provider,{value:{name:e.name},children:bt(up,{...e})}),wo=()=>{let e=ce.useContext(Hn),o=ce.useContext(zn),{getFieldState:t,formState:a}=bp(),i=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`,...i}},zn=ce.createContext({}),Fn=ce.forwardRef(({className:e,...o},t)=>{let a=ce.useId();return bt(zn.Provider,{value:{id:a},children:bt("div",{ref:t,className:r("space-y-2",e),...o})})});Fn.displayName="FormItem";var _n=ce.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=wo();return bt(ta,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});_n.displayName="FormLabel";var Bn=ce.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=wo();return bt(gp,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});Bn.displayName="FormControl";var Vn=ce.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=wo();return bt("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});Vn.displayName="FormDescription";var On=ce.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=wo(),s=i?String(i?.message):o;return s?bt("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});On.displayName="FormMessage";import*as nt from"react";import*as h from"@radix-ui/react-dropdown-menu";import{ChevronRight as yp,Check as wp}from"lucide-react";import{jsx as re,jsxs as No}from"react/jsx-runtime";var Np=h.Root,Pp=h.Trigger,Cp=h.Group,Rp=h.Portal,Tp=h.Sub,kp=h.RadioGroup,Wn=nt.forwardRef(({className:e,inset:o,children:t,...a},i)=>No(h.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,re(yp,{className:"ml-auto"})]}));Wn.displayName=h.SubTrigger.displayName;var $n=nt.forwardRef(({className:e,...o},t)=>re(h.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));$n.displayName=h.SubContent.displayName;var Gn=nt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>re(h.Portal,{children:re(h.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));Gn.displayName=h.Content.displayName;var jn=nt.forwardRef(({className:e,inset:o,...t},a)=>re(h.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));jn.displayName=h.Item.displayName;var Un=nt.forwardRef(({className:e,children:o,checked:t,...a},i)=>No(h.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[No("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&re("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),re(h.ItemIndicator,{children:re("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:re(wp,{size:16,strokeWidth:3})})})]}),o]}));Un.displayName=h.CheckboxItem.displayName;var Qn=nt.forwardRef(({className:e,children:o,...t},a)=>No(h.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[No("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[re("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),re(h.ItemIndicator,{children:re("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));Qn.displayName=h.RadioItem.displayName;var qn=nt.forwardRef(({className:e,inset:o,...t},a)=>re(h.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));qn.displayName=h.Label.displayName;var Xn=nt.forwardRef(({className:e,...o},t)=>re(h.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));Xn.displayName=h.Separator.displayName;var Zn=({className:e,...o})=>re("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});Zn.displayName="DropdownMenuShortcut";import oa from"html-react-parser";import{Fragment as Ja,jsx as _,jsxs as At}from"react/jsx-runtime";var Kn=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>At(Ja,{children:[e&&_(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&_("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>_("div",{className:"basis-full px-3.5 md:basis-1/3",children:At("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:[_("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),At("div",{className:"mt-6 w-full",children:[_("div",{className:"w-full text-xl font-semibold",children:oa(a.title)}),a?.description&&_("div",{className:"mt-2 text-base text-gray-600",children:oa(a.description)})]})]})},i))}),t&&_(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Sp=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>At(Ja,{children:[e&&_(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&_("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>At("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[At("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[_("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&_("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:_($,{ratio:1,children:_("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),At("div",{className:"mt-6 w-full",children:[_("div",{className:"w-full text-xl font-semibold",children:oa(a.title)}),a?.description&&_("div",{className:"mt-2 text-base text-gray-600",children:oa(a.description)})]})]},i))}),t&&_(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Dp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return _(Kn,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return _(Sp,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return _(Kn,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Mp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>_(Ja,{children:Dp({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Ip=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>_(z,{className:t,idSection:a,background:o,children:_(Mp,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{cva as Ap}from"class-variance-authority";import Yn from"html-react-parser";import{CheckIcon as Jn}from"lucide-react";import{Fragment as ei,jsx as ne,jsxs as es}from"react/jsx-runtime";var Lp=Ap("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}}),Ep=({template:e,name:o,image:t,isFeatures:a})=>ne(ei,{children:(()=>{switch(e){case 1:case 2:return ne(ei,{children:es("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?ne("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:ne("img",{src:t,alt:"",className:"max-w-full"})}):ne("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:ne(Jn,{className:"h-4 w-4 text-pink-500"})}),o&&ne("div",{className:"ml-2 leading-tight",children:Yn(o)})]})});case 3:return es("li",{className:"flex h-full space-x-4",children:[t?ne("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:ne("img",{src:t,alt:"",className:"max-w-full"})}):ne("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:ne(Jn,{className:"h-4 w-4 text-pink-500"})}),o&&ne("div",{className:"my-auto ml-2 leading-tight md:my-0",children:Yn(o)})]});default:return null}})()}),aa=({dataFeatures:e,template:o=1})=>ne(ei,{children:(e?.length??0)>0&&ne("ul",{className:r("",Lp({template:o})),children:e?.map((t,a)=>ne(Ep,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as Hp}from"lucide-react";import{jsx as j,jsxs as Po}from"react/jsx-runtime";var ts=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,zp=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>Po(Ht,{children:[j(Ue,{greaterThan:"sm",children:Po($,{className:r(""),ratio:ts(o),children:[j("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&Po(qe,{children:[j(pa,{onClick:i,children:j("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:j("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:Po("g",{fill:"none",fillRule:"evenodd",children:[j("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),j("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),j(Le,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:Po(lt,{className:"relative bg-transparent p-4 text-center",children:[j("div",{className:"aspect-[16/9] w-full p-0",children:j("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),j(fa,{asChild:!0,children:j(J,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:j(Hp,{className:"h-6 w-6"})})})]})})]})]})}),a&&j(Ue,{lessThan:"md",children:j("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:j("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),ia=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>j("div",{className:a,children:n?j(zp,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):j($,{ratio:ts(t),children:j("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});import Fp from"html-react-parser";import{Fragment as Bp,jsx as ra,jsxs as ti}from"react/jsx-runtime";var _p=({value:e,suffix:o,unit:t,description:a,idx:i})=>ti("div",{className:r(""),children:[e&&ti("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&ti("span",{children:[o," ",t]})]}),a&&ra("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:Fp(a)})]}),na=({dataStats:e})=>ra(Bp,{children:(e?.length??0)>0&&ra("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>ra(_p,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as os,jsx as U,jsxs as Co}from"react/jsx-runtime";var oi=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Co("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[Co("div",{className:"col-span-1 ",children:[U(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),U(aa,{dataFeatures:t,template:a}),o&&U(y,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),U(na,{dataStats:i})]}),U("div",{className:"col-span-1 md:pl-10",children:s||U(ia,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),as=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Co("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[U("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||U(ia,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),Co("div",{className:"order-1 col-span-1 md:order-2",children:[U(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),U(aa,{dataFeatures:t,template:a}),o&&U("div",{className:"flex w-full items-center justify-center md:justify-start",children:U(y,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),U(na,{dataStats:i})]})]}),is=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Co(os,{children:[U(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&U(y,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),U(aa,{dataFeatures:t,template:a}),U("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:U(na,{dataStats:i})}),s||U(os,{children:n?.src&&U(ia,{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 Gp,jsx as Lt}from"react/jsx-runtime";var Vp=`var(
246
+ `})]})}})()})}import*as Gn from"react";import*as Qe from"@radix-ui/react-slider";import{jsx as Nt,jsxs as dp}from"react/jsx-runtime";var $n=Gn.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>dp(Qe.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Nt(Qe.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Nt(Qe.Range,{className:"absolute h-full bg-pink-500"})}),Nt(Qe.Thumb,{className:"group relative",children:Nt("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&&Nt("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})})}),Nt(Qe.Thumb,{className:"group relative",children:Nt("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&&Nt("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})})})]}));$n.displayName=Qe.Root.displayName;import{forwardRef as kp}from"react";import{Fragment as up,jsx as Se,jsxs as ba}from"react/jsx-runtime";var pp=({author:e=""})=>Se("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),fp=({author:e,avatar:o})=>Se("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Se("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Se(pp,{author:e})});function gp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return Se(up,{children:ba("div",{className:"flex relative items-center space-x-3",children:[Se(fp,{avatar:e,author:o}),ba("div",{className:"flex flex-col",children:[o&&Se("div",{className:"font-semibold text-gray-900 text-sm",children:o}),ba("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Se("div",{className:"text-gray-400",children:t}),a&&ba("div",{className:"flex items-center space-x-2",children:[Se("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Se("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&Se("div",{className:"absolute right-1 top-0",children:Se("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var jn=gp;import{useState as Yn}from"react";import{StarIcon as vp}from"@heroicons/react/20/solid";import{jsx as Un,jsxs as Qn}from"react/jsx-runtime";var xp={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!"},bp={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 hp({point:e,max:o,className:t}){let a=o>5?xp[e||10]:bp[e||5];return Qn("div",{className:r("flex items-center space-x-1",t),children:[Un(vp,{className:"w-5 h-5 text-yellow-500"}),Un("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Qn("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Xn=hp;import{useState as yp}from"react";import qn from"html-react-parser";import{jsx as wp,jsxs as Np}from"react/jsx-runtime";var bi=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=yp(!0),c=()=>{l(!s)},d=(m,p,u=" ")=>m.length<=p?m:m.substring(0,m.lastIndexOf(u,p));return Np("div",{className:r(n),children:[s?qn(d(e,o)):qn(e),e.length>o&&wp("span",{onClick:c,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as _t,jsxs as Zn}from"react/jsx-runtime";function Pp({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=Yn(0),[c,d]=Yn(!1),m=p=>{d(!0),l(p)};return Zn("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&_t(Xn,{className:"mb-0.5",point:i.point,max:i.max}),e&&_t(bi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&_t("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>_t("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:p}))}),o?.length>0&&Zn(vi,{open:c,onOpenChange:d,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((p,u)=>_t(U,{onClick:()=>m(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:_t("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),_t(xi,{activeSlideIndex:s,images:o?.map((p,u)=>({url:p.url,titleImage:p.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Kn=Pp;import{jsx as Rp}from"react/jsx-runtime";function Cp({actions:e=[]}){return Rp("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Jn=Cp;import{jsx as ha,jsxs as Sp}from"react/jsx-runtime";var Tp=kp(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:c,isReply:d,children:m,commentSideBar:p,isOutStanding:u,limitContent:N=260},S)=>Sp("div",{ref:S,className:r("",d?"ml-4 py-4":"py-5"),children:[ha(jn,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),ha(Kn,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:N}),l&&l?.filter(Boolean)?.length>0&&ha(Jn,{actions:l.filter(Boolean)}),m&&ha("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:m})]}));import*as Pt from"react";import{cva as Dp}from"class-variance-authority";import{CheckIcon as Mp}from"@heroicons/react/16/solid";import{XIcon as Ip}from"lucide-react";import{jsx as ge,jsxs as ya}from"react/jsx-runtime";var Ap=Dp("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"}}),es=Pt.createContext("default");function Lp(){let e=Pt.useContext(es);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Hp=Pt.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?ge(Ip,{className:s}):ya("div",{children:[e==="iconStep"&&ge("div",{className:s,children:o}),e==="numberStep"&&ge("div",{children:t}),e==="default"&&(n==="completed"?ge(Mp,{className:s}):ge("div",{children:t}))]})}),Ep=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Pt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return ge("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Fp=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:c,icon:d,isError:m,onValueChangeStep:p,...u})=>{let N=Lp();return ya("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[ya("div",{className:"flex w-full items-center justify-center gap-2",children:[ge("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),ge("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Ap({state:o,size:t}),m&&"bg-red-500 text-white shadow-none",i),...u,children:ge(Hp,{type:N,icon:d,stepNumber:e,size:t,isError:m,state:o})}),ge("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),ya("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&ge("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&ge("div",{className:"text-xs text-gray-500 ",children:s})]})]})},zp=({children:e,className:o,type:t="numberStep",...a})=>ge(es.Provider,{value:t,children:ge("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as ue from"react";import{Slot as Op}from"@radix-ui/react-slot";import{Controller as Wp,FormProvider as Gp,useFormContext as $p}from"react-hook-form";import*as ts from"react";import*as hi from"@radix-ui/react-label";import{cva as _p}from"class-variance-authority";import{jsx as Vp}from"react/jsx-runtime";var Bp=_p("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),wa=ts.forwardRef(({className:e,...o},t)=>Vp(hi.Root,{ref:t,className:r(Bp(),e),...o}));wa.displayName=hi.Root.displayName;import{jsx as Ct}from"react/jsx-runtime";var jp=Gp,os=ue.createContext({}),Up=({...e})=>Ct(os.Provider,{value:{name:e.name},children:Ct(Wp,{...e})}),_o=()=>{let e=ue.useContext(os),o=ue.useContext(as),{getFieldState:t,formState:a}=$p(),i=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`,...i}},as=ue.createContext({}),is=ue.forwardRef(({className:e,...o},t)=>{let a=ue.useId();return Ct(as.Provider,{value:{id:a},children:Ct("div",{ref:t,className:r("space-y-2",e),...o})})});is.displayName="FormItem";var rs=ue.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=_o();return Ct(wa,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});rs.displayName="FormLabel";var ns=ue.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=_o();return Ct(Op,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});ns.displayName="FormControl";var ss=ue.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=_o();return Ct("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});ss.displayName="FormDescription";var ls=ue.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=_o(),s=i?String(i?.message):o;return s?Ct("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});ls.displayName="FormMessage";import*as dt from"react";import*as h from"@radix-ui/react-dropdown-menu";import{ChevronRight as Qp,Check as Xp}from"lucide-react";import{jsx as ce,jsxs as Bo}from"react/jsx-runtime";var qp=h.Root,Yp=h.Trigger,Zp=h.Group,Kp=h.Portal,Jp=h.Sub,ef=h.RadioGroup,ms=dt.forwardRef(({className:e,inset:o,children:t,...a},i)=>Bo(h.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,ce(Qp,{className:"ml-auto"})]}));ms.displayName=h.SubTrigger.displayName;var cs=dt.forwardRef(({className:e,...o},t)=>ce(h.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));cs.displayName=h.SubContent.displayName;var ds=dt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>ce(h.Portal,{children:ce(h.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));ds.displayName=h.Content.displayName;var ps=dt.forwardRef(({className:e,inset:o,...t},a)=>ce(h.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));ps.displayName=h.Item.displayName;var fs=dt.forwardRef(({className:e,children:o,checked:t,...a},i)=>Bo(h.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[Bo("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&ce("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),ce(h.ItemIndicator,{children:ce("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:ce(Xp,{size:16,strokeWidth:3})})})]}),o]}));fs.displayName=h.CheckboxItem.displayName;var gs=dt.forwardRef(({className:e,children:o,...t},a)=>Bo(h.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[Bo("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[ce("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),ce(h.ItemIndicator,{children:ce("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));gs.displayName=h.RadioItem.displayName;var us=dt.forwardRef(({className:e,inset:o,...t},a)=>ce(h.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));us.displayName=h.Label.displayName;var vs=dt.forwardRef(({className:e,...o},t)=>ce(h.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));vs.displayName=h.Separator.displayName;var xs=({className:e,...o})=>ce("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});xs.displayName="DropdownMenuShortcut";import Na from"html-react-parser";import{Fragment as yi,jsx as O,jsxs as Bt}from"react/jsx-runtime";var bs=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Bt(yi,{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:e?.className}),o&&o?.length>0&&O("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>O("div",{className:"basis-full px-3.5 md:basis-1/3",children:Bt("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:[O("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),Bt("div",{className:"mt-6 w-full",children:[O("div",{className:"w-full text-xl font-semibold",children:Na(a.title)}),a?.description&&O("div",{className:"mt-2 text-base text-gray-600",children:Na(a.description)})]})]})},i))}),t&&O(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),tf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Bt(yi,{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:e?.className}),o&&o?.length>0&&O("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>Bt("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[Bt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[O("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&O("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:O(U,{ratio:1,children:O("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),Bt("div",{className:"mt-6 w-full",children:[O("div",{className:"w-full text-xl font-semibold",children:Na(a.title)}),a?.description&&O("div",{className:"mt-2 text-base text-gray-600",children:Na(a.description)})]})]},i))}),t&&O(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),of=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return O(bs,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return O(tf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return O(bs,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},af=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>O(yi,{children:of({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),rf=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>O(B,{className:t,idSection:a,background:o,children:O(af,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{cva as nf}from"class-variance-authority";import hs from"html-react-parser";import{CheckIcon as ys}from"lucide-react";import{Fragment as wi,jsx as de,jsxs as ws}from"react/jsx-runtime";var sf=nf("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}}),lf=({template:e,name:o,image:t,isFeatures:a})=>de(wi,{children:(()=>{switch(e){case 1:case 2:return de(wi,{children:ws("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?de("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:de("img",{src:t,alt:"",className:"max-w-full"})}):de("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:de(ys,{className:"h-4 w-4 text-pink-500"})}),o&&de("div",{className:"ml-2 leading-tight",children:hs(o)})]})});case 3:return ws("li",{className:"flex h-full space-x-4",children:[t?de("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:de("img",{src:t,alt:"",className:"max-w-full"})}):de("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:de(ys,{className:"h-4 w-4 text-pink-500"})}),o&&de("div",{className:"my-auto ml-2 leading-tight md:my-0",children:hs(o)})]});default:return null}})()}),Pa=({dataFeatures:e,template:o=1})=>de(wi,{children:(e?.length??0)>0&&de("ul",{className:r("",sf({template:o})),children:e?.map((t,a)=>de(lf,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as mf}from"lucide-react";import{jsx as X,jsxs as Vo}from"react/jsx-runtime";var Ns=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,cf=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>Vo(Gt,{children:[X(Ze,{greaterThan:"sm",children:Vo(U,{className:r(""),ratio:Ns(o),children:[X("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&Vo(Je,{children:[X(Aa,{onClick:i,children:X("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:X("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:Vo("g",{fill:"none",fillRule:"evenodd",children:[X("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),X("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"})]})})})}),X(ze,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:Vo(gt,{className:"relative bg-transparent p-4 text-center",children:[X("div",{className:"aspect-[16/9] w-full p-0",children:X("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"})}),X(La,{asChild:!0,children:X(oe,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:X(mf,{className:"h-6 w-6"})})})]})})]})]})}),a&&X(Ze,{lessThan:"md",children:X("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:X("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"})})})]}),Ca=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>X("div",{className:a,children:n?X(cf,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):X(U,{ratio:Ns(t),children:X("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});import df from"html-react-parser";import{Fragment as ff,jsx as Ra,jsxs as Ni}from"react/jsx-runtime";var pf=({value:e,suffix:o,unit:t,description:a,idx:i})=>Ni("div",{className:r(""),children:[e&&Ni("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Ni("span",{children:[o," ",t]})]}),a&&Ra("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:df(a)})]}),ka=({dataStats:e})=>Ra(ff,{children:(e?.length??0)>0&&Ra("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>Ra(pf,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Ps,jsx as q,jsxs as Oo}from"react/jsx-runtime";var Pi=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Oo("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[Oo("div",{className:"col-span-1 ",children:[q(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),q(Pa,{dataFeatures:t,template:a}),o&&q(y,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),q(ka,{dataStats:i})]}),q("div",{className:"col-span-1 md:pl-10",children:s||q(Ca,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Cs=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Oo("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[q("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||q(Ca,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),Oo("div",{className:"order-1 col-span-1 md:order-2",children:[q(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),q(Pa,{dataFeatures:t,template:a}),o&&q("div",{className:"flex w-full items-center justify-center md:justify-start",children:q(y,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),q(ka,{dataStats:i})]})]}),Rs=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Oo(Ps,{children:[q(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&q(y,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),q(Pa,{dataFeatures:t,template:a}),q("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:q(ka,{dataStats:i})}),s||q(Ps,{children:n?.src&&q(Ca,{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 bf,jsx as Vt}from"react/jsx-runtime";var gf=`var(
247
247
  --gradient-pink-1,
248
248
  linear-gradient(
249
249
  38deg,
@@ -265,11 +265,11 @@ import*as eo from"react";import*as be from"@radix-ui/react-accordion";import{Che
265
265
  rgba(255, 255, 255, 0) 80%
266
266
  ),
267
267
  #fff
268
- )`,Op=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return Lt(oi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return Lt(as,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return Lt(is,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return Lt(oi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},Wp=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Lt(Gp,{children:Op({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),$p=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:m,background:c,advancedComponent:d=null})=>Lt(z,{className:r(m),background:c??Vp,idSection:o,children:Lt(Wp,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:d})});import{Fragment as ai,jsx as M,jsxs as ns}from"react/jsx-runtime";var rs=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return ns(ai,{children:[e&&M(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&M("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,m)=>M("div",{className:r("flex items-center justify-center md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:M("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?M("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:M("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):M("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},m))}),t&&M(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},jp=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>ns(ai,{children:[e&&M(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&M("div",{className:r("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((i,n)=>M("div",{className:r("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:i?.url?M("a",{href:i?.url,title:i?.name,target:i?.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:M("div",{className:"flex w-auto max-w-36 items-center justify-center",children:M("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):M("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:M("div",{className:"flex w-auto max-w-36 items-center justify-center",children:M("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&M(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Up=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return M(rs,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return M(jp,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return M(rs,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},Qp=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>M(ai,{children:Up({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),qp=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m="20px",isScrollSnap:c})=>M(z,{className:t,idSection:a,background:o,children:M(Qp,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m,isScrollSnap:c})});import{ChevronRightIcon as Xp}from"@heroicons/react/16/solid";import Q from"html-react-parser";import{Fragment as xt,jsx as p,jsxs as v}from"react/jsx-runtime";var st=({btnLink:e,btnName:o,newTab:t})=>p(ae,{variant:"primary",asChild:!0,children:v("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",p(Xp,{className:"h-4 w-4"})]})}),ii=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(xt,{children:[e&&p(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col text-center",children:[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"})}),v("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[v("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ss=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(xt,{children:[e&&p(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&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,i)=>v("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),p("style",{children:`
268
+ )`,uf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return Vt(Pi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return Vt(Cs,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return Vt(Rs,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return Vt(Pi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},vf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Vt(bf,{children:uf({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),xf=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:l,background:c,advancedComponent:d=null})=>Vt(B,{className:r(l),background:c??gf,idSection:o,children:Vt(vf,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:d})});import{Fragment as Ci,jsx as H,jsxs as Ts}from"react/jsx-runtime";var ks=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return Ts(Ci,{children:[e&&H(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&&H("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,l)=>H("div",{className:r("flex items-center justify-center md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:H("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?H("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:H("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):H("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},l))}),t&&H(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},hf=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>Ts(Ci,{children:[e&&H(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&&H("div",{className:r("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((i,n)=>H("div",{className:r("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:i?.url?H("a",{href:i?.url,title:i?.name,target:i?.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:H("div",{className:"flex w-auto max-w-36 items-center justify-center",children:H("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):H("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:H("div",{className:"flex w-auto max-w-36 items-center justify-center",children:H("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&H(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),yf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return H(ks,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return H(hf,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return H(ks,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},wf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>H(Ci,{children:yf({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),Nf=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:c})=>H(B,{className:t,idSection:a,background:o,children:H(wf,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:c})});import{ChevronRightIcon as Pf}from"@heroicons/react/16/solid";import Y from"html-react-parser";import{Fragment as Rt,jsx as f,jsxs as v}from"react/jsx-runtime";var pt=({btnLink:e,btnName:o,newTab:t})=>f(le,{variant:"primary",asChild:!0,children:v("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(Pf,{className:"h-4 w-4"})]})}),Ri=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Rt,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col text-center",children:[f("div",{className:"mx-auto h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ss=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Rt,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
269
269
  .list-features-2 .feature-item {
270
270
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
271
271
  }
272
- `})]}),ls=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(xt,{children:[e&&p(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 w-full flex-1",children:[v("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ms=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[v("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&p(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),v("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,i)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),cs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(xt,{children:[e&&p(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ds=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(xt,{children:[e&&p(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&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,i)=>v("div",{className:"feature-item relative w-full",children:[p("div",{className:"h-12 w-12",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ps=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},m=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,c=n[a]??-1,d=(l,f)=>{let u=l?.btnLink?"a":"div",C=l?.btnLink?{href:l.btnLink,target:l?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:l?.btnName}:{};return p("div",{className:r("basis-1/2 px-2 lg:px-5",m,f===c&&"md:break-after-row",l?.btnLink&&"group cursor-pointer"),children:v(u,{...C,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[p("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:p("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain",loading:"lazy"})}),v("div",{className:"w-full flex-1 text-center",children:[l?.name&&p("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:Q(l.name)}),l?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(l.description)})]})]})},f)};return v(xt,{children:[e&&p(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((l,f)=>d(l,f))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},fs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(xt,{children:[e&&p(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[v("div",{className:"flex w-full flex-1 flex-col p-5",children:[v("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(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),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"})})]},i))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),gs=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>v("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:v("div",{className:"w-full",children:[e&&p(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[p("div",{className:"h-10 w-10",children:p("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&p("h3",{className:"text-lg font-semibold",children:Q(i.name)}),i?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(i.description)})]}),i?.btnLink&&p("div",{className:"mt-4",children:p(st,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&p(y,{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-md",children:p($,{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"})})})})]}),us=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>v(xt,{children:[e&&p(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),p("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&v("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>v("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[p("div",{className:"h-12 w-12",children:p("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&p("h3",{className:"text-lg font-semibold",children:Q(i.name)}),i?.description&&p("div",{className:"mt-2 text-gray-500",children:Q(i.description)})]}),i?.btnLink&&p("div",{className:"mt-4",children:p(st,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&v("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(y,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});import{Fragment as Jp,jsx as de}from"react/jsx-runtime";var Zp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return de(ii,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return de(ss,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return de(ls,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return de(ms,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return de(cs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return de(ds,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return de(ps,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return de(fs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return de(gs,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return de(us,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return de(ii,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Kp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>de(Jp,{children:Zp({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),Yp=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})=>de(z,{className:t,idSection:a,background:o,children:de(Kp,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})});import{StarIcon as ef}from"@heroicons/react/24/solid";import ri from"html-react-parser";import tf from"lodash";import{Fragment as xs,jsx as I,jsxs as Et}from"react/jsx-runtime";var of=({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()||""},af=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],rf=(e,o)=>o[e%o.length],nf=({avatar:e="",name:o="",index:t=0})=>{if(tf.isEmpty(e)){let a=of({name:o})??"",i=rf(t,af);return I("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",i),children:a})}return I("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:I("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},vs=({testimonial:e,isHiddenOnMobile:o=!1,index:t=0,itemCount:a})=>I("div",{className:r("testimonial-item shrink-0 grow basis-10/12 snap-center px-3 first:pl-5 sm:px-0 md:basis-0 md:first:pl-0",o?"hidden sm:block":"",t+1===a?"pr-5":""),children:I("div",{className:"relative h-full rounded-xl border border-gray-50 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:Et("div",{className:"testimonial-item-width",children:[Et("div",{className:"flex flex-nowrap items-center space-x-2",children:[I(nf,{avatar:e.avatar,name:e.name,index:t}),Et("div",{className:"min-w-0 flex-1 pl-1",children:[I("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&I("div",{className:"text-xs font-normal text-pink-500",children:ri(e.position)})]})]}),Et("div",{className:"mt-3",children:[e?.shortTitle&&I("div",{className:"text-sm font-bold text-gray-700",children:ri(e.shortTitle)}),e?.description&&I("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:ri(e.description)})]}),Et("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[I("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&I("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>I(ef,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),bs=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return Et(xs,{children:[e&&I(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&I("div",{className:r("testimonials-mobase scroll-hidden relative -mx-5 -my-2 overflow-x-scroll py-2 sm:mx-0 md:overflow-hidden",i&&"run-animation"),children:Et("div",{className:"testimonials-slider flex snap-x snap-mandatory flex-row overflow-hidden overflow-x-auto pb-3 sm:snap-none sm:space-x-6 sm:overflow-visible sm:pb-0 sm:pl-6 sm:pr-0",children:[o?.map((n,s)=>I(vs,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&o?.map((n,s)=>I(vs,{testimonial:n,isHiddenOnMobile:!0,index:s},`duplicate-${s}`))]})}),t&&I(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),i&&I("style",{children:`
272
+ `})]}),Ds=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Rt,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 w-full flex-1",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ms=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[v("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),v("div",{className:"lg:col-span-6",children:[o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Is=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Rt,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),As=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Rt,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full",children:[f("div",{className:"h-12 w-12",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ls=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,c=n[a]??-1,d=(m,p)=>{let u=m?.btnLink?"a":"div",N=m?.btnLink?{href:m.btnLink,target:m?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:m?.btnName}:{};return f("div",{className:r("basis-1/2 px-2 lg:px-5",l,p===c&&"md:break-after-row",m?.btnLink&&"group cursor-pointer"),children:v(u,{...N,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[f("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:f("img",{src:m?.image,alt:m?.name,className:"h-full w-full object-contain",loading:"lazy"})}),v("div",{className:"w-full flex-1 text-center",children:[m?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:Y(m.name)}),m?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:Y(m.description)})]})]})},p)};return v(Rt,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((m,p)=>d(m,p))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Hs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Rt,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[v("div",{className:"flex w-full flex-1 flex-col p-5",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),f("div",{className:"w-full",style:{aspectRatio:"347/220"},children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Es=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>v("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[f("div",{className:"flex items-center lg:col-span-6",children:v("div",{className:"w-full",children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[f("div",{className:"h-10 w-10",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:Y(i.name)}),i?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&f(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&f("div",{className:"flex items-center lg:col-span-4",children:f("div",{className:"mx-auto w-full max-w-md",children:f(U,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),Fs=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>v(Rt,{children:[e&&f(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),f("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&v("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>v("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[f("div",{className:"h-12 w-12",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:Y(i.name)}),i?.description&&f("div",{className:"mt-2 text-gray-500",children:Y(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&v("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[f("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),f("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:f("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&f(y,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});import{Fragment as Tf,jsx as ve}from"react/jsx-runtime";var Cf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return ve(Ri,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ve(Ss,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ve(Ds,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ve(Ms,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ve(Is,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ve(As,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ve(Ls,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ve(Hs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ve(Es,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return ve(Fs,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return ve(Ri,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Rf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>ve(Tf,{children:Cf({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),kf=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>ve(B,{className:t,idSection:a,background:o,children:ve(Rf,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as Sf}from"@heroicons/react/24/solid";import ki from"html-react-parser";import Df from"lodash";import{Fragment as Bs,jsx as E,jsxs as Ot}from"react/jsx-runtime";var Mf=({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()||""},If=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Af=(e,o)=>o[e%o.length],Lf=({avatar:e="",name:o="",index:t=0})=>{if(Df.isEmpty(e)){let a=Mf({name:o})??"",i=Af(t,If);return E("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",i),children:a})}return E("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:E("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},zs=({testimonial:e,isHiddenOnMobile:o=!1,index:t=0,itemCount:a})=>E("div",{className:r("testimonial-item shrink-0 grow basis-10/12 snap-center px-3 first:pl-5 sm:px-0 md:basis-0 md:first:pl-0",o?"hidden sm:block":"",t+1===a?"pr-5":""),children:E("div",{className:"relative h-full rounded-xl border border-gray-50 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:Ot("div",{className:"testimonial-item-width",children:[Ot("div",{className:"flex flex-nowrap items-center space-x-2",children:[E(Lf,{avatar:e.avatar,name:e.name,index:t}),Ot("div",{className:"min-w-0 flex-1 pl-1",children:[E("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&E("div",{className:"text-xs font-normal text-pink-500",children:ki(e.position)})]})]}),Ot("div",{className:"mt-3",children:[e?.shortTitle&&E("div",{className:"text-sm font-bold text-gray-700",children:ki(e.shortTitle)}),e?.description&&E("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:ki(e.description)})]}),Ot("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[E("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&E("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>E(Sf,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),_s=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return Ot(Bs,{children:[e&&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&&E("div",{className:r("testimonials-mobase scroll-hidden relative -mx-5 -my-2 overflow-x-scroll py-2 sm:mx-0 md:overflow-hidden",i&&"run-animation"),children:Ot("div",{className:"testimonials-slider flex snap-x snap-mandatory flex-row overflow-hidden overflow-x-auto pb-3 sm:snap-none sm:space-x-6 sm:overflow-visible sm:pb-0 sm:pl-6 sm:pr-0",children:[o?.map((n,s)=>E(zs,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&o?.map((n,s)=>E(zs,{testimonial:n,isHiddenOnMobile:!0,index:s},`duplicate-${s}`))]})}),t&&E(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),i&&E("style",{children:`
273
273
  @media screen and (min-width: 640px) {
274
274
  .testimonials-mobase.run-animation {
275
275
  --items-count: ${a};
@@ -293,7 +293,7 @@ import*as eo from"react";import*as be from"@radix-ui/react-accordion";import{Che
293
293
  transform: translateX(calc(${a===4?"-476px":"-386px"} * var(--items-count)));
294
294
  }
295
295
  }
296
- `})]})},sf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return I(bs,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return I(bs,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},lf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>I(xs,{children:sf({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),mf=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>I(z,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${t||""}`,idSection:a,background:o,children:I(lf,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import{memo as cf}from"react";import df from"html-react-parser";import{Fragment as pf,jsx as X,jsxs as Kt}from"react/jsx-runtime";var ni=cf(({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},m=e?.length>1,c=d=>X(Ft,{type:"single",collapsible:!0,defaultValue:d?.isActiveFistQuestion&&d?.contents?.[0]?.title||"",className:"w-full",children:d?.contents?.map((l,f)=>Kt(_t,{value:l.title,className:"last:border-none",children:[X(Bt,{className:"font-bold",children:l.title}),X(Vt,{children:df(l.description)})]},f))});return X(Ht,{children:m?Kt(pf,{children:[o&&X(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&Kt(tt,{defaultValue:e[0]?.title,children:[Kt(Ke,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[X(Ye,{className:"mb-3 text-center",children:X(Ee,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:e.map((d,l)=>X(He,{value:d.title,children:d.title},d.title+l))})}),X(Je,{}),X(et,{})]}),e.map((d,l)=>X(ze,{className:"mx-auto mt-0 max-w-3xl",value:d.title,children:c(d)},d.title+l))]}),t&&X(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]}):Kt("div",{className:"grid grid-cols-1 gap-y-5 sm:grid-cols-3 md:gap-x-6",children:[X("div",{className:"relative",children:Kt("div",{className:"md:sticky md:top-20",children:[o&&X(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&X(Ue,{greaterThan:"sm",children:X(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("md:mt-6",t?.className),align:"left"})})]})}),e&&e.length>0&&e[0]&&X("div",{className:"col-span-2",children:c(e[0])}),t&&X(Ue,{lessThan:"md",children:X(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3",t?.className),align:"center"})})]})})});import{Fragment as vf,jsx as Ro}from"react/jsx-runtime";var ff=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return Ro(ni,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return Ro(ni,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},gf=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>Ro(vf,{children:ff({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),uf=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:m=1})=>Ro(z,{className:t,idSection:i,background:a,children:Ro(gf,{dataHeading:e,dataFAQ:o,template:m,dataHorizontalScroll:s,dataButtons:n})});import bf,{memo as xf}from"react";import{ArrowDownIcon as hf}from"@heroicons/react/20/solid";import yf from"html-react-parser";import{Fragment as hs,jsx as O,jsxs as $e}from"react/jsx-runtime";var wf=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return $e(hs,{children:[O("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:$e("picture",{children:[O("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),O("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),$e("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[O("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}),$e("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&$e(hs,{children:[O(ae,{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&&O("span",{className:"flex-none leading-none",children:"\xB7"})]}),O("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},si=xf(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(l,f,u)=>{l?.preventDefault(),l?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(l,f)=>$e("div",{children:[O("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",l?.newsList?.length<4?"md:justify-center":""),children:l?.newsList?.map((u,C)=>O("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:O("div",{onClick:k=>c(k,u?.id,u?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",l?.classNameItem),children:O(wf,{news:u})},u?.id)},C))}),l?.isShowBtn&&O("div",{className:"mt-8 flex w-full items-center justify-center",children:$e(Xe,{action:l?.btnUrl||i&&(()=>i?.(f)),newTab:l?.isNewTab,variant:"outline",disabled:l?.isLoading,children:[yf(l.btnName||"Xem th\xEAm"),l?.isLoading?O(Ot,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!l?.btnUrl&&O(hf,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},l?.title||f);return $e(bf.Fragment,{children:[e&&O(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?$e(tt,{defaultValue:t[0]?.title,children:[$e(Ke,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[O(Ye,{className:"mb-6 text-center",children:O(Ee,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((l,f)=>O(He,{value:l.title,children:l.title},l.title+f))})}),O(Je,{}),O(et,{})]}),t.map((l,f)=>O(ze,{value:l.title,children:d(l,f)},l.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});import{Fragment as Rf,jsx as To}from"react/jsx-runtime";var Nf=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return To(si,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return To(si,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Pf=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>To(Rf,{children:Nf({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),Cf=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:m})=>To(z,{className:r(a),background:i,children:To(Pf,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:m})});import{Fragment as Mf,jsx as ve,jsxs as li}from"react/jsx-runtime";var ys=({dataHeading:e,dataCTA:o,dataButtons:t})=>li("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&&ve(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&ve(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Tf=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>li("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:[li("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&ve(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&ve(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),ve("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&ve($,{ratio:4/3,children:ve("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),kf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return ve(ys,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return ve(Tf,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return ve(ys,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},Sf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>ve(Mf,{children:kf({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),Df=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})=>ve(z,{className:t,idSection:a,background:o,children:ve(Sf,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})});import ws from"react";import mi from"html-react-parser";import{jsx as ht,jsxs as Ns}from"react/jsx-runtime";var If=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Ns("div",{className:" text-center",children:[ht("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:mi(t??"")}),ht("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:mi(o??"")}),a&&ht("div",{className:"mt-2 text-sm text-gray-500",children:mi(a??"")})]})},sa=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Ns(ws.Fragment,{children:[t&&ht(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&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,i)=>ht(ws.Fragment,{children:ht(If,{metric:a})},i))}),o&&ht(y,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import Ps from"react";import ci from"html-react-parser";import{jsx as yt,jsxs as Cs}from"react/jsx-runtime";var Af=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Cs("div",{className:" text-center md:text-left",children:[yt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:ci(t??"")}),yt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:ci(o??"")}),a&&yt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:ci(a??"")})]})},di=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Cs(Ps.Fragment,{children:[t&&yt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&yt("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,i)=>yt(Ps.Fragment,{children:yt(Af,{metric:a})},i))}),o&&yt(y,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as zf,jsx as Yt}from"react/jsx-runtime";var Lf=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return Yt(sa,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return Yt(di,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return Yt(sa,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Ef=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>Yt(zf,{children:Lf({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Hf=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:i,template:n})=>Yt(z,{className:r(i),background:a,children:Yt(Ef,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});import Bf from"color";import Vf from"tailwindcss/plugin.js";var Rs={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 Ts={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var ks={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Ss={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Ds={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Ms={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Is={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var As={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Ls={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Es={white:"#ffffff",black:"#000000",blue:Ts,green:ks,pink:Ss,purple:Ds,red:Ms,yellow:Is,gray:Ls,orange:As};var pi={...Es};var Hs={"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 Ge="250ms",zs={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Ge},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Ge},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Ge},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Ge},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Ge},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Ge},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Ge},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Ge},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Ge},".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":Ge}};var Fs={".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 _s={".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 Bs={...Fs,...zs,..._s};import{flatten as Ff}from"flat";function _f(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 Vs=e=>_f(Ff(e,{safe:!0,delimiter:"-"}));var Of=e=>{let o={utilities:{},colors:{}},t=Vs(pi),a=Hs,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[m,c,d]=Bf(s).rgb().array(),l=`--${e}-${n}`;o.utilities[i][l]=`${m} ${c} ${d}`,o.colors[n]=`rgb(var(${l}) / <alpha-value>)`}catch(m){console.log("error",m?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let m=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,d])=>{let l=`${m}-${c}`;o.utilities[i][l]=d});else{let c=m.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][m]=c}}),o},Wf=()=>{let e="mobase",o=Of(e);return Vf(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Bs})},{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:{...pi,...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)`},...Rs}}})};import{Fragment as Gf,jsx as T,jsxs as jf}from"react/jsx-runtime";var $f=jf(Gf,{children:[T("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"}),T("meta",{name:"distribution",content:"Global"}),T("meta",{name:"author",content:"V\xED MoMo"}),T("meta",{property:"fb:app_id",content:"320653355376196"}),T("meta",{property:"fb:pages",content:"138010322921640"}),T("link",{rel:"shortcut icon",href:"/favicon.ico"}),T("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),T("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),T("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),T("meta",{name:"language",content:"vietnamese"}),T("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),T("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),T("meta",{name:"RATING",content:"GENERAL"}),T("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),T("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),T("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),T("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),T("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),T("link",{rel:"dns-prefetch",href:"//facebook.com"}),T("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),T("link",{rel:"dns-prefetch",href:"//www.google.com"}),T("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),T("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),T("link",{rel:"preconnect",href:"//connect.facebook.net"}),T("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),T("link",{rel:"preconnect",href:"//www.google-analytics.com"}),T("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),T("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),T("link",{rel:"preconnect",href:"//www.google.com"}),T("link",{rel:"preconnect",href:"//www.google.com.vn"}),T("link",{rel:"preconnect",href:"//www.googleadservices.com"}),T("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
296
+ `})]})},Hf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return E(_s,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return E(_s,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Ef=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>E(Bs,{children:Hf({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Ff=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>E(B,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${t||""}`,idSection:a,background:o,children:E(Ef,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import{memo as zf}from"react";import _f from"html-react-parser";import{Fragment as Bf,jsx as J,jsxs as so}from"react/jsx-runtime";var Ti=zf(({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=e?.length>1,c=d=>J(jt,{type:"single",collapsible:!0,defaultValue:d?.isActiveFistQuestion&&d?.contents?.[0]?.title||"",className:"w-full",children:d?.contents?.map((m,p)=>so(Ut,{value:m.title,className:"last:border-none",children:[J(Qt,{className:"font-bold",children:m.title}),J(Xt,{children:_f(m.description)})]},p))});return J(Gt,{children:l?so(Bf,{children:[o&&J(b,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&so(nt,{defaultValue:e[0]?.title,children:[so(ot,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[J(at,{className:"mb-3 text-center",children:J(_e,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:e.map((d,m)=>J(Be,{value:d.title,children:d.title},d.title+m))})}),J(it,{}),J(rt,{})]}),e.map((d,m)=>J(Ve,{className:"mx-auto mt-0 max-w-3xl",value:d.title,children:c(d)},d.title+m))]}),t&&J(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]}):so("div",{className:"grid grid-cols-1 gap-y-5 sm:grid-cols-3 md:gap-x-6",children:[J("div",{className:"relative",children:so("div",{className:"md:sticky md:top-20",children:[o&&J(b,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&J(Ze,{greaterThan:"sm",children:J(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("md:mt-6",t?.className),align:"left"})})]})}),e&&e.length>0&&e[0]&&J("div",{className:"col-span-2",children:c(e[0])}),t&&J(Ze,{lessThan:"md",children:J(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3",t?.className),align:"center"})})]})})});import{Fragment as Gf,jsx as Wo}from"react/jsx-runtime";var Vf=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return Wo(Ti,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return Wo(Ti,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Of=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>Wo(Gf,{children:Vf({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),Wf=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Wo(B,{className:t,idSection:i,background:a,children:Wo(Of,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import $f,{memo as jf}from"react";import{ArrowDownIcon as Uf}from"@heroicons/react/20/solid";import Qf from"html-react-parser";import{Fragment as Vs,jsx as G,jsxs as Xe}from"react/jsx-runtime";var Xf=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Xe(Vs,{children:[G("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:Xe("picture",{children:[G("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),G("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),Xe("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[G("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}),Xe("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Xe(Vs,{children:[G(le,{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&&G("span",{className:"flex-none leading-none",children:"\xB7"})]}),G("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Si=jf(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(m,p,u)=>{m?.preventDefault(),m?.stopPropagation(),a?a(p):window.open(u,"_blank")},d=(m,p)=>Xe("div",{children:[G("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",m?.newsList?.length<4?"md:justify-center":""),children:m?.newsList?.map((u,N)=>G("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:G("div",{onClick:S=>c(S,u?.id,u?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",m?.classNameItem),children:G(Xf,{news:u})},u?.id)},N))}),m?.isShowBtn&&G("div",{className:"mt-8 flex w-full items-center justify-center",children:Xe(et,{action:m?.btnUrl||i&&(()=>i?.(p)),newTab:m?.isNewTab,variant:"outline",disabled:m?.isLoading,children:[Qf(m.btnName||"Xem th\xEAm"),m?.isLoading?G(qt,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!m?.btnUrl&&G(Uf,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},m?.title||p);return Xe($f.Fragment,{children:[e&&G(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?Xe(nt,{defaultValue:t[0]?.title,children:[Xe(ot,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[G(at,{className:"mb-6 text-center",children:G(_e,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((m,p)=>G(Be,{value:m.title,children:m.title},m.title+p))})}),G(it,{}),G(rt,{})]}),t.map((m,p)=>G(Ve,{value:m.title,children:d(m,p)},m.title+p))]}):t?.length===1&&t[0]&&d(t[0],0)]})});import{Fragment as Kf,jsx as Go}from"react/jsx-runtime";var qf=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return Go(Si,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return Go(Si,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Yf=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>Go(Kf,{children:qf({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),Zf=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>Go(B,{className:r(a),background:i,children:Go(Yf,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as ag,jsx as ye,jsxs as Di}from"react/jsx-runtime";var Os=({dataHeading:e,dataCTA:o,dataButtons:t})=>Di("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:o?.background},children:[e&&ye(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&&ye(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Jf=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Di("div",{className:"grid gap-6 grid-cols-1 md:grid-cols-2 rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 pb-0 md:px-10 bg-pink-700 md:pb-0 md:pt-0",style:o?.background?{background:o.background}:{},children:[Di("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&ye(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&&ye(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),ye("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&ye(U,{ratio:4/3,children:ye("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),eg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return ye(Os,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return ye(Jf,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return ye(Os,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},tg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>ye(ag,{children:eg({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),og=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>ye(B,{className:t,idSection:a,background:o,children:ye(tg,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import Ws from"react";import Mi from"html-react-parser";import{jsx as kt,jsxs as Gs}from"react/jsx-runtime";var ig=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Gs("div",{className:" text-center",children:[kt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Mi(t??"")}),kt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Mi(o??"")}),a&&kt("div",{className:"mt-2 text-sm text-gray-500",children:Mi(a??"")})]})},Ta=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Gs(Ws.Fragment,{children:[t&&kt(b,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&kt("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,i)=>kt(Ws.Fragment,{children:kt(ig,{metric:a})},i))}),o&&kt(y,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import $s from"react";import Ii from"html-react-parser";import{jsx as Tt,jsxs as js}from"react/jsx-runtime";var rg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return js("div",{className:" text-center md:text-left",children:[Tt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:Ii(t??"")}),Tt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Ii(o??"")}),a&&Tt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:Ii(a??"")})]})},Ai=({dataMetrics:e,dataButtons:o,dataHeading:t})=>js($s.Fragment,{children:[t&&Tt(b,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Tt("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,i)=>Tt($s.Fragment,{children:Tt(rg,{metric:a})},i))}),o&&Tt(y,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as mg,jsx as lo}from"react/jsx-runtime";var ng=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return lo(Ta,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return lo(Ai,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return lo(Ta,{dataMetrics:o,dataButtons:a,dataHeading:e})}},sg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>lo(mg,{children:ng({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),lg=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:i,template:n})=>lo(B,{className:r(i),background:a,children:lo(sg,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});import{forwardRef as cg}from"react";import{jsx as Us,jsxs as pg}from"react/jsx-runtime";var dg=cg(({className:e,title:o,children:t},a)=>pg("div",{className:e,ref:a,children:[Us("div",{className:"font-semibold text-gray-800",children:o}),Us("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 xg}from"react";import{Fragment as vg,jsx as Wt,jsxs as ug}from"react/jsx-runtime";var fg=()=>Wt("div",{className:"p-3 border rounded-lg",children:ug("div",{className:"flex items-center gap-3",children:[Wt(xa,{className:"rounded-md h-9 w-9 "}),Wt("div",{className:"flex-1",children:Wt(xa,{className:"w-48 h-5 "})}),Wt("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function gg(){return Wt(vg,{children:Array.from({length:4}).map((e,o)=>Wt(fg,{},o))})}var Qs=gg;import{Fragment as yg,jsx as ft,jsxs as Li}from"react/jsx-runtime";var bg=({paymentMethod:e})=>ft(va,{disabled:e?.disabled,value:e?.id,className:"data-[state=checked]:bg-pink-50/50",children:Li("div",{className:"flex items-center space-x-3",children:[ft("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),Li("div",{className:"grid grid-cols-1 gap-1",children:[ft("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&ft("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&ft("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),hg=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=xg(s=>a?.(s),[a]);return Li(yg,{children:[e&&ft("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?ft(Qs,{}):ft(ua,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>ft(bg,{paymentMethod:s},s.id))})]})};import{forwardRef as Xs}from"react";import{jsx as Ys}from"react/jsx-runtime";var wg=Xs(({children:e,className:o},t)=>Ys("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),qs=Xs(({children:e,className:o,...t},a)=>Ys(wg,{ref:a,className:o,...t,children:e}));qs.displayName="Payment";import{forwardRef as Ng}from"react";import{jsx as Zs,jsxs as Cg}from"react/jsx-runtime";var Pg=Ng(({className:e,children:o},t)=>Cg("div",{className:r("",e),ref:t,children:[Zs("hr",{className:"mb-5 h-px w-full bg-gray-500"}),Zs("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as Rg}from"react";import{jsx as Tg}from"react/jsx-runtime";var kg=Rg(({className:e,children:o},t)=>Tg("div",{className:r("pb-5",e),ref:t,children:o}));import{forwardRef as Lg}from"react";import{CheckBadgeIcon as Sg,XCircleIcon as Dg}from"@heroicons/react/20/solid";import{jsx as ae,jsxs as mo}from"react/jsx-runtime";var Mg=({iconPaymentResult:e,message:o="",title:t=""})=>mo("div",{className:"grid grid-cols-1 gap-4",children:[mo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ae("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ae("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ae(Eo,{message:o,type:"success",icon:ae(Sg,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Ig=({iconPaymentResult:e,message:o="",title:t=""})=>mo("div",{className:"grid grid-cols-1 gap-4",children:[mo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ae("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ae("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),ae(Eo,{message:o,type:"error",icon:ae(Dg,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Ag=({iconPaymentResult:e,message:o="",title:t=""})=>mo("div",{className:"grid grid-cols-1 gap-4",children:[mo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ae("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ae("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ae(Eo,{message:o,type:"neutral"})]}),Ks=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ae(Mg,{status:e,title:o,message:t,iconPaymentResult:a||ae("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return ae(Ig,{status:e,title:o,message:t,iconPaymentResult:a||ae("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return ae(Ag,{status:e,title:o,message:t,iconPaymentResult:a||ae("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as Eg,jsxs as Fg}from"react/jsx-runtime";var Hg=Lg(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>Fg("div",{ref:s,className:r("rounded-lg p-4",e),children:[Eg(Ks,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));import Bg from"color";import Vg from"tailwindcss/plugin.js";var Js={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 el={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var tl={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var ol={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var al={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var il={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var rl={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var nl={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var sl={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var ll={white:"#ffffff",black:"#000000",blue:el,green:tl,pink:ol,purple:al,red:il,yellow:rl,gray:sl,orange:nl};var Hi={...ll};var ml={"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 qe="250ms",cl={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":qe},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":qe},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":qe},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":qe},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":qe},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":qe},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":qe},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":qe},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":qe},".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":qe}};var dl={".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 pl={".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 fl={...dl,...cl,...pl};import{flatten as zg}from"flat";function _g(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 gl=e=>_g(zg(e,{safe:!0,delimiter:"-"}));var Og=e=>{let o={utilities:{},colors:{}},t=gl(Hi),a=ml,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,c,d]=Bg(s).rgb().array(),m=`--${e}-${n}`;o.utilities[i][m]=`${l} ${c} ${d}`,o.colors[n]=`rgb(var(${m}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,d])=>{let m=`${l}-${c}`;o.utilities[i][m]=d});else{let c=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=c}}),o},Wg=()=>{let e="mobase",o=Og(e);return Vg(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...fl})},{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:{...Hi,...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)`},...Js}}})};import{Fragment as $g,jsx as T,jsxs as jg}from"react/jsx-runtime";var Gg=jg($g,{children:[T("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"}),T("meta",{name:"distribution",content:"Global"}),T("meta",{name:"author",content:"V\xED MoMo"}),T("meta",{property:"fb:app_id",content:"320653355376196"}),T("meta",{property:"fb:pages",content:"138010322921640"}),T("link",{rel:"shortcut icon",href:"/favicon.ico"}),T("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),T("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),T("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),T("meta",{name:"language",content:"vietnamese"}),T("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),T("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),T("meta",{name:"RATING",content:"GENERAL"}),T("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),T("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),T("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),T("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),T("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),T("link",{rel:"dns-prefetch",href:"//facebook.com"}),T("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),T("link",{rel:"dns-prefetch",href:"//www.google.com"}),T("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),T("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),T("link",{rel:"preconnect",href:"//connect.facebook.net"}),T("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),T("link",{rel:"preconnect",href:"//www.google-analytics.com"}),T("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),T("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),T("link",{rel:"preconnect",href:"//www.google.com"}),T("link",{rel:"preconnect",href:"//www.google.com.vn"}),T("link",{rel:"preconnect",href:"//www.googleadservices.com"}),T("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
297
297
  "@context": "https://schema.org/",
298
298
  "@type": "WebSite",
299
299
  "@id":"https://www.momo.vn/#website",
@@ -338,5 +338,5 @@ import*as eo from"react";import*as be from"@radix-ui/react-accordion";import{Che
338
338
  "https://www.linkedin.com/company/momo-mservice/",
339
339
  "https://github.com/momo-wallet"
340
340
  ]
341
- }`}})]});export{Ft as Accordion,Vt as AccordionContent,_t as AccordionItem,Bt as AccordionTrigger,Xe as ActionButton,bm as AlertDialog,Zi as AlertDialogAction,Ki as AlertDialogCancel,ji as AlertDialogContent,Xi as AlertDialogDescription,Qi as AlertDialogFooter,Ui as AlertDialogHeader,ka as AlertDialogOverlay,Gi as AlertDialogPortal,qi as AlertDialogTitle,xm as AlertDialogTrigger,$ as AspectRatio,Md as Badge,Kl as BlogSection,wi as Breadcrumb,ki as BreadcrumbEllipsis,Pi as BreadcrumbItem,Ci as BreadcrumbLink,Ni as BreadcrumbList,Ri as BreadcrumbPage,Ti as BreadcrumbSeparator,he as Button,Df as CTASection,zo as Calendar,gd as Callout,Wr as Card,Ur as CardContent,jr as CardDescription,Qr as CardFooter,$r as CardHeader,Gr as CardTitle,Te as Carousel,ke as CarouselContent,Hi as CarouselDots,Se as CarouselItem,Gt as CarouselNext,$t as CarouselPrevious,Eo as Checkbox,pn as ChoiceboxGroup,fn as ChoiceboxGroupItem,gn as ChoiceboxMultiItem,md as Combobox,ld as ComboboxContent,sd as ComboboxTrigger,Ua as Command,id as CommandDialog,Zr as CommandEmpty,Kr as CommandGroup,qr as CommandInput,Jr as CommandItem,Xr as CommandList,Yr as CommandSeparator,en as CommandShortcut,ep as Comment,vm as DatePicker,qe as Dialog,lt as DialogBody,fa as DialogClose,Le as DialogContent,hi as DialogDescription,xi as DialogFooter,ko as DialogHeader,ga as DialogOverlay,bi as DialogPortal,wt as DialogQr,So as DialogTitle,pa as DialogTrigger,Np as DropdownMenu,Un as DropdownMenuCheckboxItem,Gn as DropdownMenuContent,Cp as DropdownMenuGroup,jn as DropdownMenuItem,qn as DropdownMenuLabel,Rp as DropdownMenuPortal,kp as DropdownMenuRadioGroup,Qn as DropdownMenuRadioItem,Xn as DropdownMenuSeparator,Zn as DropdownMenuShortcut,Tp as DropdownMenuSub,$n as DropdownMenuSubContent,Wn as DropdownMenuSubTrigger,Pp as DropdownMenuTrigger,uf as FAQSection,Yp as FeatureSection,td as Footer,xp as Form,Bn as FormControl,Vn as FormDescription,hp as FormField,Fn as FormItem,_n as FormLabel,On as FormMessage,Lm as GuideSection,_r as HeaderNavigation,xa as Heading,ya as HeadingGroup,ha as HeadingSub,ba as HeadingTagline,$p as HeroSection,Ye as HorizontalContent,et as HorizontalNext,Je as HorizontalPrevious,Ke as HorizontalScroll,Ip as HowItWorksSection,J as IconButton,Za as LightBoxGalleryContent,Xa as LightboxGallery,Rd as LightboxThumbnail,Hf as MetricsSection,Go as NavigationMenu,Xo as NavigationMenuContent,Uo as NavigationMenuItem,uo as NavigationMenuLink,jo as NavigationMenuList,qo as NavigationMenuTrigger,Cf as NewsSection,nr as Pagination,ro as Popover,Ut as PopoverContent,no as PopoverTrigger,cp as ProgressSteps,mp as ProgressStepsItem,lp as ProgressStepsItemTrigger,yn as Progressbar,Sr as RadioGroup,Dr as RadioGroupItem,Ka as ReadMoreLite,wd as SearchBar,xc as Select,hr as SelectContent,yc as SelectGroup,wc as SelectItem,yr as SelectLabel,Ga as SelectScrollDownButton,$a as SelectScrollUpButton,wr as SelectSeparator,xr as SelectTrigger,hc as SelectValue,$f as SiteMeta,Ed as Skeleton,Pn as Slider,qp as SocialProofSection,zd as Spinner,vr as Stepper,Rr as Switch,tt as Tabs,ze as TabsContent,Ee as TabsList,He as TabsTrigger,mf as TestimonialSection,Om as TextArea,ae as TextButton,mc as TextInput,pr as ToastAction,Ym as Toaster,ec as Tooltip,fr as TooltipArrow,gr as TooltipContent,Jm as TooltipProvider,tc as TooltipTrigger,vn as badgeVariants,Ae as buttonVariants,Wf as mobaseTW,Qo as navigationMenuTriggerStyle,Ai as textButtonVariants,mr as toast,wo as useFormField,La as useToast};
341
+ }`}})]});export{jt as Accordion,Xt as AccordionContent,Ut as AccordionItem,Qt as AccordionTrigger,et as ActionButton,ec as AlertDialog,Cr as AlertDialogAction,Rr as AlertDialogCancel,hr as AlertDialogContent,Pr as AlertDialogDescription,wr as AlertDialogFooter,yr as AlertDialogHeader,Ya as AlertDialogOverlay,br as AlertDialogPortal,Nr as AlertDialogTitle,tc as AlertDialogTrigger,U as AspectRatio,ip as Badge,Rm as BlogSection,Wi as Breadcrumb,Xi as BreadcrumbEllipsis,$i as BreadcrumbItem,ji as BreadcrumbLink,Gi as BreadcrumbList,Ui as BreadcrumbPage,Qi as BreadcrumbSeparator,Pe as Button,og as CTASection,Jo as Calendar,Eo as Callout,pn as Card,vn as CardContent,un as CardDescription,xn as CardFooter,fn as CardHeader,gn as CardTitle,Me as Carousel,Ie as CarouselContent,or as CarouselDots,Ae as CarouselItem,Kt as CarouselNext,Zt as CarouselPrevious,Zo as Checkbox,ua as ChoiceboxGroup,va as ChoiceboxGroupItem,En as ChoiceboxMultiItem,_d as Combobox,zd as ComboboxContent,Fd as ComboboxTrigger,fi as Command,Ld as CommandDialog,yn as CommandEmpty,wn as CommandGroup,bn as CommandInput,Pn as CommandItem,hn as CommandList,Nn as CommandSeparator,Cn as CommandShortcut,Tp as Comment,$m as DatePicker,Jm as DateSelect,Je as Dialog,gt as DialogBody,La as DialogClose,ze as DialogContent,Vi as DialogDescription,Bi as DialogFooter,$o as DialogHeader,Ha as DialogOverlay,_i as DialogPortal,St as DialogQr,jo as DialogTitle,Aa as DialogTrigger,qp as DropdownMenu,fs as DropdownMenuCheckboxItem,ds as DropdownMenuContent,Zp as DropdownMenuGroup,ps as DropdownMenuItem,us as DropdownMenuLabel,Kp as DropdownMenuPortal,ef as DropdownMenuRadioGroup,gs as DropdownMenuRadioItem,vs as DropdownMenuSeparator,xs as DropdownMenuShortcut,Jp as DropdownMenuSub,cs as DropdownMenuSubContent,ms as DropdownMenuSubTrigger,Yp as DropdownMenuTrigger,Wf as FAQSection,kf as FeatureSection,Md as Footer,jp as Form,ns as FormControl,ss as FormDescription,Up as FormField,is as FormItem,rs as FormLabel,ls as FormMessage,vc as GuideSection,ln as HeaderNavigation,_a as Heading,Va as HeadingGroup,Ba as HeadingSub,za as HeadingTagline,xf as HeroSection,at as HorizontalContent,rt as HorizontalNext,it as HorizontalPrevious,ot as HorizontalScroll,rf as HowItWorksSection,oe as IconButton,xi as LightBoxGalleryContent,vi as LightboxGallery,Jd as LightboxThumbnail,lg as MetricsSection,sa as NavigationMenu,pa as NavigationMenuContent,ma as NavigationMenuItem,Io as NavigationMenuLink,la as NavigationMenuList,da as NavigationMenuTrigger,Zf as NewsSection,Hr as Pagination,qs as Payment,dg as PaymentInvoice,hg as PaymentMethods,Hg as PaymentResult,kg as PaymentResultContent,Pg as PaymentResultFooter,ho as Popover,eo as PopoverContent,yo as PopoverTrigger,zp as ProgressSteps,Fp as ProgressStepsItem,Ep as ProgressStepsItemTrigger,On as Progressbar,Zr as RadioGroup,Kr as RadioGroupItem,bi as ReadMoreLite,qd as SearchBar,Po as Select,oo as SelectContent,Ro as SelectGroup,vt as SelectItem,pr as SelectLabel,Xa as SelectScrollDownButton,Qa as SelectScrollUpButton,fr as SelectSeparator,to as SelectTrigger,Co as SelectValue,Gg as SiteMeta,xa as Skeleton,$n as Slider,Nf as SocialProofSection,mp as Spinner,$r as Stepper,Xr as Switch,nt as Tabs,Ve as TabsContent,_e as TabsList,Be as TabsTrigger,Ff as TestimonialSection,Cc as TextArea,le as TextButton,Uc as TextInput,Vr as ToastAction,Ec as Toaster,zc as Tooltip,Or as TooltipArrow,Wr as TooltipContent,Fc as TooltipProvider,_c as TooltipTrigger,zn as badgeVariants,Fe as buttonVariants,Wg as mobaseTW,ca as navigationMenuTriggerStyle,Ji as textButtonVariants,zr as toast,_o as useFormField,oi as useToast};
342
342
  //# sourceMappingURL=index.js.map