@momo-webplatform/mobase 0.2.99 → 1.0.0

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 Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/solid";import*as Me from"@radix-ui/react-accordion";import*as qm from"react";import{twMerge as Xm}from"tailwind-merge";var vt={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var $i={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var Vo=[{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"}],xr=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}];var de={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};import{createMedia as Ym}from"@artsy/fresnel";function i(...e){return Xm(e)}var Gi=Ym({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Rv=Gi.createMediaStyle(),{Media:Ze,MediaContextProvider:uo}=Gi;import{jsx as vo,jsxs as Km}from"react/jsx-runtime";var ht=Wo.forwardRef(({className:e,...o},t)=>vo(Me.Root,{ref:t,...o}));ht.displayName="AccordionRoot";var xt=Wo.forwardRef(({className:e,...o},t)=>vo(Me.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));xt.displayName="AccordionItem";var bt=Wo.forwardRef(({className:e,children:o,...t},a)=>vo(Me.Header,{className:"flex",children:Km(Me.Trigger,{ref:a,className:i("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,vo(Zm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));bt.displayName=Me.Trigger.displayName;var yt=Wo.forwardRef(({className:e,children:o,...t},a)=>vo(Me.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:vo("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));yt.displayName=Me.Content.displayName;import*as ji from"react";import{Slot as tc}from"@radix-ui/react-slot";import{cva as oc}from"class-variance-authority";import{jsx as Ie,jsxs as ec}from"react/jsx-runtime";var Jm=({className:e})=>ec("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[Ie("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"}),Ie("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"}),Ie("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"}),Ie("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"}),Ie("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"}),Ie("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"}),Ie("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"}),Ie("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"}),Ie("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"}),Ie("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"}),Ie("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"}),Ie("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"})]}),ho=Jm;import{Fragment as rc,jsx as br,jsxs as ac}from"react/jsx-runtime";var Ke=oc("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Ae=ji.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?tc:"button",c=i(Ke({variant:o,size:t,className:e}),{"cursor-wait":r});return br(rc,{children:a?br(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):ac(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[r&&br(ho,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Ae.displayName="Button";import{QRCodeSVG as nc}from"qrcode.react";import*as $o from"react";import{XMarkIcon as ic}from"@heroicons/react/16/solid";import*as X from"@radix-ui/react-dialog";import{jsx as wt,jsxs as yr}from"react/jsx-runtime";var $e=X.Root,Go=X.Trigger,Qi=X.Portal,wr=X.Close,Nr=$o.forwardRef(({className:e,...o},t)=>wt(X.Overlay,{ref:t,className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));Nr.displayName=X.Overlay.displayName;var Le=$o.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:n="auto",isFull:s=!1,children:l,...m},c)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},p={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},g={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},v=[d.base,d[r],p[a],g[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return yr(Qi,{children:[wt(Nr,{}),yr(X.Content,{ref:c,className:i(...v),...m,children:[l,!t&&yr(X.Close,{className:i("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[wt(ic,{className:"h-5 w-5 text-gray-700"}),wt("span",{className:"sr-only",children:"Close"})]})]})]})});Le.displayName=X.Content.displayName;var xo=({className:e,...o})=>wt("div",{className:i("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});xo.displayName="DialogHeader";var Je=({className:e,isCondensed:o=!1,...t})=>wt("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Je.displayName="DialogBody";var Ui=({className:e,isDivider:o=!0,...t})=>wt("div",{className:i("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});Ui.displayName="DialogFooter";var bo=$o.forwardRef(({className:e,...o},t)=>wt(X.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));bo.displayName=X.Title.displayName;var qi=$o.forwardRef(({className:e,...o},t)=>wt(X.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));qi.displayName=X.Description.displayName;import{Fragment as Pr,jsx as D,jsxs as pe}from"react/jsx-runtime";var sc=({img:e="",children:o,isQrForAll:t})=>pe(Pr,{children:[D("div",{className:"qrcode__scan__container",children:pe("div",{className:"qrcode__scan",children:[D("div",{className:"qrcode__gradient",children:D("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),D("div",{className:"qrcode__border",children:D("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),D("div",{className:"p-4 qrcode__image",children:e?D("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),D("div",{className:"mt-4 text-sm text-white",children:t?pe(Pr,{children:[D("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),D("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):pe(Pr,{children:[D("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:D("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",D("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),D("style",{children:`
1
+ import*as Bo from"react";import{ChevronDownIcon as Rm}from"@heroicons/react/20/solid";import*as Se from"@radix-ui/react-accordion";import*as Cr from"react";import{createMedia as Nm}from"@artsy/fresnel";import Pm from"html-react-parser";import{twMerge as Cm}from"tailwind-merge";var dt={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 Pr={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var _o=[{Name:"Facebook",Image:"https://homepage.momocdn.net/styles/desktop/images/social/facebook.svg",Link:"https://www.facebook.com/vimomo"},{Name:"Linkedin",Image:"https://homepage.momocdn.net/styles/desktop/images/social/linkedin.svg",Link:"https://www.linkedin.com/company/momo-mservice/"},{Name:"Youtube",Image:"https://homepage.momocdn.net/styles/desktop/images/social/youtube.svg",Link:"https://www.youtube.com/channel/UCKHHW-qL2JoZqcSNm1jPlqw"}],ri=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}];var de={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};function r(...e){return Cm(e)}var Rr=Nm({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),W0=Rr.createMediaStyle(),{Media:Ue,MediaContextProvider:mo}=Rr,co=e=>e?Cr.isValidElement(e)||typeof e=="object"&&"$typeof"in e?e:typeof e=="string"?Pm(e):e:null;import{jsx as po,jsxs as Tm}from"react/jsx-runtime";var pt=Bo.forwardRef(({className:e,...o},t)=>po(Se.Root,{ref:t,...o}));pt.displayName="AccordionRoot";var ft=Bo.forwardRef(({className:e,...o},t)=>po(Se.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));ft.displayName="AccordionItem";var gt=Bo.forwardRef(({className:e,children:o,...t},a)=>po(Se.Header,{className:"flex",children:Tm(Se.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,po(Rm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));gt.displayName=Se.Trigger.displayName;var ut=Bo.forwardRef(({className:e,children:o,...t},a)=>po(Se.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:po("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));ut.displayName=Se.Content.displayName;import*as Tr from"react";import{Slot as Dm}from"@radix-ui/react-slot";import{cva as Mm}from"class-variance-authority";import{jsx as De,jsxs as Sm}from"react/jsx-runtime";var km=({className:e})=>Sm("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[De("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"}),De("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"}),De("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"}),De("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"}),De("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"}),De("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"}),De("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"}),De("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"}),De("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"}),De("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"}),De("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"}),De("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"})]}),fo=km;import{Fragment as Am,jsx as ni,jsxs as Im}from"react/jsx-runtime";var qe=Mm("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Me=Tr.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let m=a?Dm:"button",c=r(qe({variant:o,size:t,className:e}),{"cursor-wait":i});return ni(Am,{children:a?ni(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):Im(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[i&&ni(fo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Me.displayName="Button";import{QRCodeSVG as zm}from"qrcode.react";import*as Fo from"react";import{XMarkIcon as Lm}from"@heroicons/react/16/solid";import*as q from"@radix-ui/react-dialog";import{jsx as vt,jsxs as si}from"react/jsx-runtime";var Fe=q.Root,Oo=q.Trigger,kr=q.Portal,li=q.Close,mi=Fo.forwardRef(({className:e,...o},t)=>vt(q.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}));mi.displayName=q.Overlay.displayName;var Ie=Fo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...m},c)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},p={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},g={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},v=[d.base,d[i],p[a],g[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return si(kr,{children:[vt(mi,{}),si(q.Content,{ref:c,className:r(...v),...m,children:[l,!t&&si(q.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:[vt(Lm,{className:"h-5 w-5 text-gray-700"}),vt("span",{className:"sr-only",children:"Close"})]})]})]})});Ie.displayName=q.Content.displayName;var go=({className:e,...o})=>vt("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});go.displayName="DialogHeader";var Xe=({className:e,isCondensed:o=!1,...t})=>vt("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Xe.displayName="DialogBody";var Sr=({className:e,isDivider:o=!0,...t})=>vt("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});Sr.displayName="DialogFooter";var uo=Fo.forwardRef(({className:e,...o},t)=>vt(q.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));uo.displayName=q.Title.displayName;var Dr=Fo.forwardRef(({className:e,...o},t)=>vt(q.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));Dr.displayName=q.Description.displayName;import{Fragment as ci,jsx as D,jsxs as pe}from"react/jsx-runtime";var Em=({img:e="",children:o,isQrForAll:t})=>pe(ci,{children:[D("div",{className:"qrcode__scan__container",children:pe("div",{className:"qrcode__scan",children:[D("div",{className:"qrcode__gradient",children:D("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),D("div",{className:"qrcode__border",children:D("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),D("div",{className:"p-4 qrcode__image",children:e?D("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),D("div",{className:"mt-4 text-sm text-white",children:t?pe(ci,{children:[D("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),D("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):pe(ci,{children:[D("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:D("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",D("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),D("style",{children:`
2
2
  .qrcode__scan__container {
3
3
  padding: 15px;
4
4
  background-color: white;
@@ -67,7 +67,7 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),Yt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>D($e,{...m,children:D(Le,{className:i("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:D(Je,{className:"p-0",children:pe("div",{className:"flex flex-row flex-wrap",children:[D("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||pe("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[pe("div",{className:"flex flex-nowrap items-center",children:[D("div",{className:"flex-none",children:D("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),pe("div",{className:"flex-1 pl-4",children:[D("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),D("div",{className:"mt-1 text-gray-500",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),pe("div",{className:"flex flex-nowrap items-center",children:[D("div",{className:"flex-none",children:D("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),pe("div",{className:"flex-1 pl-4",children:[D("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),D("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),pe("div",{className:"flex flex-nowrap items-center",children:[D("div",{className:"flex-none",children:D("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),pe("div",{className:"flex-1 pl-4",children:[D("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),pe("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),D("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:pe("div",{className:"px-5 py-10 text-center",children:[t&&D("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),pe("div",{className:"relative",children:[l&&D("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:D("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),D(sc,{img:r,isQrForAll:l,children:n&&D(nc,{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 gc}from"react";import{useEffect as lc,useLayoutEffect as mc,useState as cc}from"react";import dc from"ua-parser-js";var pc=()=>dc().device.type==="mobile",fc=typeof window<"u"?mc:lc,yo=()=>{let[e,o]=cc(!1);return fc(()=>{o(pc())},[]),e};import{Fragment as uc,jsx as Ca,jsxs as vc}from"react/jsx-runtime";var Ge=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=gc(!1),c=yo(),d=!!a?.qrLink,p=()=>{let z=d?a?.qrLink:e;return typeof z=="string"?z.trim():""},g=()=>{let z=p();!z&&typeof e!="function"||(typeof e=="function"?e():window.open(z,o?"_blank":"_self"))},v=(z,_=0)=>{let F=document.querySelector(z);if(!F)return;let N=F.getBoundingClientRect().top+window.scrollY-_;window.scrollTo({top:N,behavior:"smooth"})},P=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):g()},w=()=>vc(uc,{children:[Ca(Ae,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),Ca(Yt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?w():Ca(Ae,{...s,className:r,onClick:g,"data-name":"button-action-with-qr",children:n}):w():Ca(Ae,{...s,onClick:P,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as wo from"react";import{ChevronRightIcon as hc,DotsHorizontalIcon as xc}from"@radix-ui/react-icons";import{Slot as bc}from"@radix-ui/react-slot";import{jsx as Nt,jsxs as yc}from"react/jsx-runtime";var Xi=wo.forwardRef(({className:e,...o},t)=>Nt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Xi.displayName="Breadcrumb";var Yi=wo.forwardRef(({className:e,...o},t)=>Nt("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Yi.displayName="BreadcrumbList";var Zi=wo.forwardRef(({className:e,...o},t)=>Nt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Zi.displayName="BreadcrumbItem";var Ki=wo.forwardRef(({asChild:e,className:o,...t},a)=>Nt(e?bc:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Ki.displayName="BreadcrumbLink";var Ji=wo.forwardRef(({className:e,...o},t)=>Nt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));Ji.displayName="BreadcrumbPage";var en=({children:e,className:o,...t})=>Nt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??Nt(hc,{className:"w-2 h-2"})});en.displayName="BreadcrumbSeparator";var tn=({className:e,...o})=>yc("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[Nt(xc,{className:"w-4 h-4 text-gray-900"}),Nt("span",{className:"sr-only",children:"More"})]});tn.displayName="BreadcrumbElipssis";import Dr from"html-react-parser";import{createContext as wc,useContext as on}from"react";import{jsx as jo}from"react/jsx-runtime";var Cr=wc({align:"center"}),Rr=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return jo("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Tr=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:c}=on(Cr);return jo(s,{className:i("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",r),children:n})},kr=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:c}=on(Cr);return jo("div",{className:i(c==="center"?"mx-auto max-w-2xl":c==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",r),children:n})},Sr=({className:e,align:o="center",children:t})=>jo("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:jo(Cr.Provider,{value:{align:o},children:t})});import{jsx as Zt,jsxs as Nc}from"react/jsx-runtime";var O=({idSection:e,className:o,background:t,children:a})=>Zt("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Zt("div",{className:"wrapper relative",children:a})}),h=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",c=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:Nc(Sr,{align:e,className:l,children:[o&&Zt(Rr,{color:m,children:o}),t&&Zt(Tr,{tagHeading:r,color:c,size:s,children:Dr(t)}),a&&Zt(kr,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:Dr(a)})]})},x=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Zt("div",{className:i("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((r,n)=>{if(!r)return null;let{btnName:s,...l}=r;return Zt(Ge,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:Dr(s)},n)})});import Hc,{memo as _c}from"react";import{ArrowDownIcon as Bc}from"@heroicons/react/20/solid";import Oc from"html-react-parser";import{createContext as Tc,useCallback as kc,useContext as Mr,useEffect as Sc,useRef as Dc,useState as Mc}from"react";import{ChevronLeft as Ic,ChevronRight as Ac}from"lucide-react";import*as an from"react";import{Slot as Pc}from"@radix-ui/react-slot";import{cva as Cc}from"class-variance-authority";import{jsx as Rc}from"react/jsx-runtime";var Kt=Cc("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),ie=an.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Pc:"button",m=i(Kt({variant:o,size:t,className:e}));return Rc(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ie.displayName="IconButton";import{Fragment as Lc,jsx as Et,jsxs as rn}from"react/jsx-runtime";var Ra=Tc(void 0),Pt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=Dc(null),[n,s]=Mc({left:!1,right:!1}),l=kc(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);Sc(()=>{let c=r.current;if(c)return l(),window.addEventListener("resize",l),c.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),c.removeEventListener("scroll",l)}},[l]);let m=c=>{let d=r.current;if(d){let{scrollLeft:p,clientWidth:g,scrollWidth:v}=d,P=g*.7*(c==="left"?-1:1),w=p+P;w<0?w=0:w>v-g&&(w=v-g),d.scrollTo({left:w,behavior:"smooth"})}};return Et(Ra.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:rn("div",{className:i("relative w-full",t),children:[e&&rn(Lc,{children:[n.left&&Et("div",{className:"pointer-events-none absolute left-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&Et("div",{className:"pointer-events-none absolute right-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},Ct=({className:e,children:o})=>{let t=Mr(Ra);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Et("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},Rt=({className:e,children:o,...t})=>{let a=Mr(Ra);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Et(ie,{className:i("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Et(Ic,{className:"h-4 w-4"})}):null},Tt=({className:e,children:o,...t})=>{let a=Mr(Ra);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Et(ie,{className:i("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Et(Ac,{className:"h-4 w-4"})}):null};import*as Ta from"react";import*as je from"@radix-ui/react-tabs";import{jsx as Ir}from"react/jsx-runtime";var kt=je.Root,et=Ta.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>Ir(je.List,{ref:r,className:i("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));et.displayName=je.List.displayName;var tt=Ta.forwardRef(({className:e,...o},t)=>Ir(je.Trigger,{ref:t,className:i("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));tt.displayName=je.Trigger.displayName;var ot=Ta.forwardRef(({className:e,...o},t)=>Ir(je.Content,{ref:t,className:i("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));ot.displayName=je.Content.displayName;import*as nn from"react";import{Slot as Fc}from"@radix-ui/react-slot";import{cva as zc}from"class-variance-authority";import{jsx as Ec}from"react/jsx-runtime";var sn=zc("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),fe=nn.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Fc:"button",m=i(sn({variant:o,size:t,className:e}));return Ec(l,{className:m,disabled:r,ref:s,...n,children:n.children})});fe.displayName="TextButton";import{Fragment as ln,jsx as G,jsxs as at}from"react/jsx-runtime";var Vc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return at(ln,{children:[G("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:G("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:at("picture",{children:[G("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),G("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),at("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&G(fe,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),G("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}),at("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&at(ln,{children:[G(fe,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&G("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&G("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},ka=_c(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>at("div",{children:[G("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((g,v)=>G("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:G("div",{onClick:P=>m(P,g?.id,g?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:G(Vc,{blog:g})},g?.id)},v))}),d?.isShowBtn&&G("div",{className:"flex items-center justify-center w-full mt-8",children:at(Ge,{action:r?()=>r?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[Oc(d.btnName||"Xem th\xEAm"),d?.isLoading?G(ho,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&G(Bc,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||p);return at(Hc.Fragment,{children:[e&&G(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?at(kt,{defaultValue:t[0]?.title,children:[at(Pt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[G(Ct,{className:"mb-6 text-center",children:G(et,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,p)=>G(tt,{value:d.title,children:d.title},d.title+p))})}),G(Rt,{}),G(Tt,{})]}),t.map((d,p)=>G(ot,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import Qc,{memo as Uc,useEffect as qc,useState as dn}from"react";import{ChevronLeftIcon as Xc,ChevronRightIcon as Yc}from"@heroicons/react/20/solid";import pn from"html-react-parser";import*as V from"react";import{ChevronLeftIcon as Wc,ChevronRightIcon as $c}from"@heroicons/react/20/solid";import Gc from"embla-carousel-react";import{Fragment as jc,jsx as Fe,jsxs as cn}from"react/jsx-runtime";var mn=V.createContext(null);function Qo(){let e=V.useContext(mn);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ge=V.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=Gc({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=V.useState(!1),[g,v]=V.useState(!1),P=V.useCallback(_=>{_&&(p(_.canScrollPrev()),v(_.canScrollNext()))},[]),w=V.useCallback(()=>{c?.scrollPrev()},[c]),C=V.useCallback(()=>{c?.scrollNext()},[c]),z=V.useCallback(_=>{_.key==="ArrowLeft"?(_.preventDefault(),w()):_.key==="ArrowRight"&&(_.preventDefault(),C())},[w,C]);return V.useEffect(()=>{!c||!t||t(c)},[c,t]),V.useEffect(()=>{if(c)return P(c),c.on("reInit",P),c.on("select",P),()=>{c?.off("select",P)}},[c,P]),Fe(mn.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:C,canScrollPrev:d,canScrollNext:g},children:Fe("div",{ref:l,onKeyDownCapture:z,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});ge.displayName="Carousel";var ue=V.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Qo();return Fe("div",{ref:r,className:i("overflow-hidden",o),children:Fe("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ue.displayName="CarouselContent";var le=V.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Qo();return Fe("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});le.displayName="CarouselItem";var No=V.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Qo();return cn(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Fe(Wc,{className:"h-6 w-6"}),Fe("span",{className:"sr-only",children:"Previous slide"})]})});No.displayName="CarouselPrevious";var Po=V.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Qo();return cn(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Fe($c,{className:"h-6 w-6"}),Fe("span",{className:"sr-only",children:"Next slide"})]})});Po.displayName="CarouselNext";var Co=V.forwardRef((e,o)=>{let{api:t}=Qo(),[,a]=V.useState(!1),r=V.useCallback(()=>a(l=>!l),[]);V.useEffect(()=>{if(t)return t.on("select",r),t.on("reInit",r),()=>{t.off("select",r),t.off("reInit",r)}},[t,r]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Fe("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Fe(ie,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):Fe(jc,{})});Co.displayName="CarouselDots";import{Fragment as Sa,jsx as j,jsxs as Qe}from"react/jsx-runtime";var Zc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Qe(Sa,{children:[j("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:j("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Qe("div",{className:"mt-4 md:pr-3",children:[j("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&j("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:pn(e?.description??"")}),Qe("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Qe(Sa,{children:[j(fe,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&j("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&j("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Kc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return qc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Qe(Sa,{children:[j(ge,{opts:{dragFree:!1},setApi:o,className:"w-full",children:j(ue,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>j(le,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:j("div",{onClick:g=>r(g,p?.id,p?.url),className:i("group cursor-pointer",d),children:j(Zc,{blog:p})},p?.id)},p?.id))})}),s&&j("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Qe(Ge,{action:m&&m,newTab:c,variant:"outline",children:[pn(l||"Xem th\xEAm")," "]})})]})},Jc=({carouselRef:e})=>Qe(ie,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[j(Xc,{className:"h-6 w-6"}),j("span",{className:"sr-only",children:"Previous slide"})]}),ed=({carouselRef:e})=>Qe(ie,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[j(Yc,{className:"h-6 w-6"}),j("span",{className:"sr-only",children:"Next slide"})]}),Ar=Uc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(c,d,p)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(p,"_blank")},[n,s]=dn(null),[,l]=dn(0),m=()=>n?Qe("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[j(Jc,{carouselRef:n}),j(ed,{carouselRef:n})]}):j(Sa,{});return Qe(Qc.Fragment,{children:[Qe("div",{className:" flex items-center justify-between",children:[e&&j(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),j(m,{})]}),j(Kc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as rd,jsx as Ro}from"react/jsx-runtime";var td=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return Ro(ka,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return Ro(Ar,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return Ro(ka,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},od=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>Ro(rd,{children:td({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),ad=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>Ro(O,{className:i("overflow-hidden",r),idSection:a,background:n,children:Ro(od,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as Ma from"react";import{enUS as ld,vi as md}from"date-fns/locale";import{ChevronLeft as cd,ChevronRight as dd}from"lucide-react";import pd from"lunisolar";import{DayPicker as fd}from"react-day-picker";import*as fn from"react";import*as Uo from"@radix-ui/react-checkbox";import{CheckIcon as id}from"@heroicons/react/16/solid";import{cva as gn}from"class-variance-authority";import{jsx as Lr}from"react/jsx-runtime";var nd=gn("peer shrink-0 rounded border-2 disabled:bg-gray-300 border-gray-300 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:bg-gray-100 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-400 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),sd=gn("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Da=fn.forwardRef(({className:e,size:o,...t},a)=>Lr(Uo.Root,{ref:a,className:i(nd({size:o}),e),...t,children:Lr(Uo.Indicator,{className:i("flex items-center justify-center text-current"),children:Lr(id,{className:i(sd({size:o}))})})}));Da.displayName=Uo.Root.displayName;import{Fragment as xd,jsx as rt,jsxs as Fr}from"react/jsx-runtime";var gd=({date:e,cusContent:o})=>{let t=null;return t=pd(e).lunar,Fr(xd,{children:[o?o(e):e.getDate(),t&&rt("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},ud={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 vd({isShow:e,setIsShow:o,lang:t}){let a=Ma.useId();return rt("div",{className:"w-full p-3 pt-0",children:Fr("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[rt(Da,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),rt("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var hd=e=>e.getDay()===0||e.getDay()===6;function Ia({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=Ma.useState(!0);return rt(fd,{locale:r==="vi"?md:ld,showOutsideDays:t,className:i("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:i(Ke({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:i("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:i(Ke({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:hd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>rt(cd,{className:"h-6 w-6"}),IconRight:()=>rt(dd,{className:"h-6 w-6"}),DayContent:c=>rt(gd,{date:c.date,cusContent:n}),Months:({children:c})=>Fr("div",{className:"w-full",children:[rt("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&rt(vd,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?ud:{},...s})}Ia.displayName="Calendar";import{QuestionMarkCircleIcon as bd,XCircleIcon as yd}from"@heroicons/react/16/solid";import{format as Aa}from"date-fns";import{Calendar as wd}from"lucide-react";import*as vn from"react";import*as St from"@radix-ui/react-popover";import{jsx as un}from"react/jsx-runtime";var qo=St.Root,Xo=St.Trigger,To=vn.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>un(St.Portal,{children:un(St.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));To.displayName=St.Content.displayName;import{Fragment as hn,jsx as Re,jsxs as Yo}from"react/jsx-runtime";var Nd=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:c,popoverContentProps:d})=>{let p=c?.selected||null;return Yo("div",{children:[Yo(qo,{...m,children:[Re(Xo,{asChild:!0,children:Yo(Ae,{variant:"secondary",className:i("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!p||!(p instanceof Date)&&typeof p=="object"&&(!("from"in p)||!p.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Re("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Aa(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?Re(hn,{children:p.from?p.to?Yo(hn,{children:[Re("span",{className:"date-from",children:Aa(p.from,s)})," ",Re("span",{className:"date-separator",children:"-"}),Re("span",{className:"date-to",children:Aa(p.to,s)})]}):Aa(p.from,s):o}):o}),e&&Re("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),Re(wd,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Re(To,{className:"w-auto border-none !p-0",...d,children:Re(Ia,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&Yo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?Re(yd,{width:16,height:16,className:"text-red-500"}):Re(bd,{width:16,height:16,className:"text-gray-500"}),Re("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as kd,useState as Cn}from"react";import{QuestionMarkCircleIcon as Sd,XCircleIcon as Dd}from"@heroicons/react/16/solid";import{isValid as Md}from"date-fns";import*as it from"react";import{ChevronDownIcon as xn,ChevronUpIcon as Pd,CheckIcon as Cd,XCircleIcon as Rd}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Td}from"@heroicons/react/24/outline";import*as S from"@radix-ui/react-select";import{jsx as Q,jsxs as Zo}from"react/jsx-runtime";var Ko=it.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Zo("div",{ref:m,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&Q("span",{className:i("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),Q(S.Root,{disabled:s,...l,children:o}),a&&Zo("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?Q(Rd,{width:16,height:16}):Q(Td,{width:16,height:16}),Q("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Jo=S.Value,ko=it.forwardRef(({className:e,children:o,...t},a)=>Zo(S.Trigger,{ref:a,className:i("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[Q("div",{className:"line-clamp-1 text-left",children:o}),Q(S.Icon,{asChild:!0,children:Q(xn,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));ko.displayName=S.Trigger.displayName;var zr=it.forwardRef(({className:e,...o},t)=>Q(S.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:Q(Pd,{className:"h-5 w-5"})}));zr.displayName=S.ScrollUpButton.displayName;var Er=it.forwardRef(({className:e,...o},t)=>Q(S.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:Q(xn,{className:"h-5 w-5"})}));Er.displayName=S.ScrollDownButton.displayName;var So=it.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>Q(S.Portal,{children:Zo(S.Content,{ref:r,className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[Q(zr,{}),Q(S.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),Q(Er,{})]})}));So.displayName=S.Content.displayName;var ea=it.forwardRef(({className:e,children:o,...t},a)=>Q(S.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),bn=it.forwardRef(({className:e,...o},t)=>Q(S.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));bn.displayName=S.Label.displayName;var Ht=it.forwardRef(({className:e,children:o,...t},a)=>Zo(S.Item,{ref:a,className:i("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[Q("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:Q(S.ItemIndicator,{children:Q(Cd,{className:"h-4 w-4 text-pink-500"})})}),Q(S.ItemText,{children:o})]})),yn=it.forwardRef(({className:e,...o},t)=>Q(S.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));yn.displayName=S.Separator.displayName;var wn=["Th\xE1ng 01","Th\xE1ng 02","Th\xE1ng 03","Th\xE1ng 04","Th\xE1ng 05","Th\xE1ng 06","Th\xE1ng 07","Th\xE1ng 08","Th\xE1ng 09","Th\xE1ng 10","Th\xE1ng 11","Th\xE1ng 12"],Nn=["January","February","March","April","May","June","July","August","September","October","November","December"],Hr=(e,o,t,a)=>{let r=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():r;return{daysInMonth:r,startDay:n,endDay:s}},Pn=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};import{jsx as te,jsxs as nt}from"react/jsx-runtime";var Id=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:c=1900,toYear:d=new Date().getFullYear(),disableUnselect:p=!1})=>{let[g,v]=Cn(o??null),P=Math.min(c,d),w=Math.max(c,d),C=l==="MM/yyyy",z=(N,B)=>{if(B===0){v(void 0),t?.(void 0);return}let L=g?.getFullYear()||new Date().getFullYear(),Ve=g?.getMonth()??0,We=g?.getDate()??1;N==="month"&&B!==null&&(Ve=B-1),N==="year"&&B!==null&&(L=B),C?We=1:N==="day"&&B!==null&&(We=B);let Pa=Hr(L,Ve+1).daysInMonth;We>Pa&&(We=1);let Oo=new Date(L,Ve,We);Md(Oo)&&(v(Oo),t?.(Oo))},[_,F]=Cn(!1),ut=N=>{F(N)};return kd(()=>{v(o??null)},[o]),nt("div",{className:i("relative",s&&"cursor-no-drop"),children:[nt("div",{className:i("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",_&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",g?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&te("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),nt("div",{className:"flex h-full flex-row divide-x",children:[!C&&nt(Ko,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:N=>z("day",parseInt(N,10)),onOpenChange:ut,className:"w-[30%]",children:[te(ko,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Jo,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),te(So,{onCloseAutoFocus:N=>N.preventDefault(),children:nt(ea,{children:[!p&&te(Ht,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Hr(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(N,B)=>(B+1).toString().padStart(2,"0")).map(N=>te(Ht,{value:N,children:N},N))]})})]}),nt(Ko,{value:g?(g.getMonth()+1).toString():"",onValueChange:N=>z("month",parseInt(N,10)),onOpenChange:ut,className:i(C?"w-1/2":"w-2/5"),children:[te(ko,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Jo,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),te(So,{onCloseAutoFocus:N=>N.preventDefault(),children:nt(ea,{children:[!p&&te(Ht,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(N,B)=>B+1).map(N=>te(Ht,{value:N.toString(),children:m==="vi"?wn[N-1]:Nn[N-1]},N))]})})]}),nt(Ko,{value:g?g.getFullYear().toString():"",onValueChange:N=>z("year",parseInt(N,10)),onOpenChange:ut,className:i(C?"w-1/2":"w-[30%]"),children:[te(ko,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Jo,{placeholder:m==="vi"?"N\u0103m":"Year"})}),te(So,{onCloseAutoFocus:N=>N.preventDefault(),children:nt(ea,{children:[!p&&te(Ht,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Pn(P,w).map(N=>te(Ht,{value:N.toString(),children:N},N))]})})]})]})]}),r&&nt("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?te(Dd,{width:16,height:16,className:"text-red-500"}):te(Sd,{width:16,height:16,className:"text-gray-500"}),te("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as Jt from"react";import*as W from"@radix-ui/react-alert-dialog";import{jsx as Dt,jsxs as Fd}from"react/jsx-runtime";var Ad=W.Root,Ld=W.Trigger,Rn=W.Portal,_r=Jt.forwardRef(({className:e,...o},t)=>Dt(W.Overlay,{className:i("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));_r.displayName=W.Overlay.displayName;var Tn=Jt.forwardRef(({className:e,...o},t)=>Fd(Rn,{children:[Dt(_r,{}),Dt(W.Content,{ref:t,className:i("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));Tn.displayName=W.Content.displayName;var kn=({className:e,...o})=>Dt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});kn.displayName="AlertDialogHeader";var Sn=({className:e,...o})=>Dt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Sn.displayName="AlertDialogFooter";var Dn=Jt.forwardRef(({className:e,...o},t)=>Dt(W.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Dn.displayName=W.Title.displayName;var Mn=Jt.forwardRef(({className:e,...o},t)=>Dt(W.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Mn.displayName=W.Description.displayName;var In=Jt.forwardRef(({className:e,...o},t)=>Dt(W.Action,{ref:t,className:i(Ke({variant:"primary"}),"",e),...o}));In.displayName=W.Action.displayName;var An=Jt.forwardRef(({className:e,...o},t)=>Dt(W.Cancel,{ref:t,className:i(Ke({variant:"secondary"}),e),...o}));An.displayName=W.Cancel.displayName;import{memo as $d,useState as Gd}from"react";import{useEffect as zd,useState as Fn}from"react";import zn from"html-react-parser";import{motion as Ed}from"motion/react";import*as Ln from"@radix-ui/react-aspect-ratio";var E=Ln.Root;import{Fragment as En,jsx as oe,jsxs as ta}from"react/jsx-runtime";var Hd=({guideGroup:e,mockup:o})=>{let[t,a]=Fn(),[r,n]=Fn(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return zd(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),oe(En,{children:e?.stepList&&e?.stepList?.length>0&&ta("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[oe("div",{className:"h-auto w-64 flex-none",children:ta("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&ta(En,{children:[oe("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),oe("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),oe("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),oe("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),oe("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:ta(ge,{setApi:a,children:[oe(ue,{className:"ml-0",children:e?.stepList.map((l,m)=>oe(le,{className:"pl-0",children:oe(E,{ratio:o==="small"?540/960:540/1168,children:l?.image&&oe("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),oe(No,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),oe(Po,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),oe("div",{className:"flex flex-auto pl-12 pt-4",children:oe("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>ta("li",{className:i("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",m+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[oe("div",{className:i("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),oe("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:zn(l.title)}),l.content&&oe(Ed.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:oe("div",{className:"mt-3 text-sm text-gray-700",children:zn(l.content)})})]},m))})})]})})},Br=Hd;import{useEffect as _d,useRef as Bd,useState as La}from"react";import{ChevronRightIcon as Hn}from"@heroicons/react/20/solid";import Od from"embla-carousel-autoplay";import Fa from"html-react-parser";import{Fragment as Or,jsx as y,jsxs as ye}from"react/jsx-runtime";var Vd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=La(0),[s,l]=La();return _d(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:y($e,{open:e,onOpenChange:o,children:ye(Le,{position:"bottom",height:"full",children:[y(xo,{children:y(bo,{className:"line-clamp-1",children:t?.title})}),ye(Je,{className:"grid overflow-hidden p-0 ",children:[y(ge,{setApi:l,className:" grid overflow-hidden",children:y(ue,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>y(le,{className:"h-full w-full pl-0",children:ye("div",{className:"flex h-full flex-col overflow-y-auto",children:[y("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:y("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:ye("div",{className:i("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&ye(Or,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:y(E,{ratio:a==="small"?540/960:540/1168,children:m?.image&&y("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),ye("div",{className:"p-5 pb-12",children:[y("div",{className:"font-semibold",children:Fa(m.title)}),m?.content&&y("div",{className:"mt-3 text-sm text-gray-800",children:Fa(m.content)})]})]})},c))})}),y("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((m,c)=>y("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},Wd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=La(!1),[n,s]=La(null),l=Bd(Od({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:ye(Or,{children:[e?.length>1?y("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>ye("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[y("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(c?.avatar||c?.stepList?.[0]?.image)&&y("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),ye("div",{className:i("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",d+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[ye("div",{className:"py-2",children:[t&&y("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),y("div",{className:"font-semibold",children:Fa(c.title)}),c?.description&&y("div",{className:"mt-1 text-sm text-gray-500",children:Fa(c.description)})]}),y("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:y(Hn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&ye("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[y("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:y("div",{className:"mx-auto h-auto w-72",children:ye("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&ye(Or,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:y(ge,{plugins:[l.current],children:y(ue,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>y(le,{className:"pl-0",onClick:()=>m(0),children:y(E,{ratio:o==="small"?540/960:540/1168,children:c?.image&&y("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),y("div",{className:"flex w-full flex-none justify-center",children:ye(fe,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",y(Hn,{className:"ml-1 h-5 w-5"})]})})]}),a&&y(Vd,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},_n=Wd;import{Fragment as jd,jsx as me,jsxs as oa}from"react/jsx-runtime";var Bn=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return me("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:me("path",{d:t.d,fill:"currentColor"})})},Vr=$d(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=Gd(t?.[0]?.title||"");return oa(jd,{children:[e&&me(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t&&t?.length>0&&oa(uo,{children:[me(Ze,{lessThan:"md",children:me(_n,{dataGuide:t,mockup:r,isStep:n})}),me(Ze,{greaterThan:"sm",children:t?.length>1?oa(kt,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[oa(Pt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[me(Ct,{className:"mb-6 text-center",children:me(et,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,g)=>{let v=g===t.length-1,P=c===p?.title||"";return oa(tt,{value:p.title,className:i(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",P&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&me(Bn,{direction:"left",className:i("right-full top-0",P?"text-pink-500":"text-pink-100")}),p.title,n&&!v&&me(Bn,{direction:"right",className:i("left-full top-0",P?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),me(Rt,{}),me(Tt,{})]}),t.map((p,g)=>me(ot,{value:p.title,children:me(Br,{guideGroup:p,mockup:r})},p.title+g))]}):t?.length===1&&t[0]&&me(Br,{guideGroup:t[0],mockup:r})})]}),a&&me(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as Xd,jsx as aa}from"react/jsx-runtime";var Qd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return aa(Vr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return aa(Vr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Ud=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>aa(Xd,{children:Qd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),qd=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>aa(O,{className:i(n),background:s,idSection:e,children:aa(Ud,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:m,isStep:c})});import{ChevronLeft as Yd,ChevronRight as Zd}from"lucide-react";import{Fragment as Kd,jsx as ze,jsxs as On}from"react/jsx-runtime";function Vn({current:e,total:o,onChange:t}){let a=r=>ze("li",{children:ze("button",{className:i(Kt({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return ze("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:On("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&ze("li",{children:ze("button",{className:i(Kt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:ze(Yd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):On(Kd,{children:[a(1),e===1&&[a(2),a(3)],e>3&&ze("li",{children:ze("button",{className:i(Kt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&ze("button",{className:i(Kt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&ze("li",{children:ze("button",{className:i(Kt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:ze(Zd,{className:"h-4 w-4"})})})]})})}import{forwardRef as Jd}from"react";import{QuestionMarkCircleIcon as ep}from"@heroicons/react/24/outline";import{XCircleIcon as tp}from"@heroicons/react/24/solid";import{jsx as Do,jsxs as Wn}from"react/jsx-runtime";var Wr=Jd(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>Wn("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&Do("span",{className:i("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),Do("textarea",{disabled:e,ref:c,className:i("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...m}),t&&Wn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?Do(tp,{width:16,height:16,className:"text-red-500"}):Do(ep,{width:16,height:16,className:"text-gray-500"}),Do("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Do("style",{children:`
70
+ `})]}),jt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>D(Fe,{...m,children:D(Ie,{className:r("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:D(Xe,{className:"p-0",children:pe("div",{className:"flex flex-row flex-wrap",children:[D("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||pe("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[pe("div",{className:"flex flex-nowrap items-center",children:[D("div",{className:"flex-none",children:D("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),pe("div",{className:"flex-1 pl-4",children:[D("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),D("div",{className:"mt-1 text-gray-500",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),pe("div",{className:"flex flex-nowrap items-center",children:[D("div",{className:"flex-none",children:D("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),pe("div",{className:"flex-1 pl-4",children:[D("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),D("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),pe("div",{className:"flex flex-nowrap items-center",children:[D("div",{className:"flex-none",children:D("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),pe("div",{className:"flex-1 pl-4",children:[D("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),pe("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),D("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:pe("div",{className:"px-5 py-10 text-center",children:[t&&D("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),pe("div",{className:"relative",children:[l&&D("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:D("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),D(Em,{img:i,isQrForAll:l,children:n&&D(zm,{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 Wm}from"react";import{useEffect as Hm,useLayoutEffect as _m,useState as Bm}from"react";import Fm from"ua-parser-js";var Om=()=>Fm().device.type==="mobile",Vm=typeof window<"u"?_m:Hm,vo=()=>{let[e,o]=Bm(!1);return Vm(()=>{o(Om())},[]),e};import{Fragment as Gm,jsx as xa,jsxs as $m}from"react/jsx-runtime";var Oe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,m]=Wm(!1),c=vo(),d=!!a?.qrLink,p=()=>{let E=d?a?.qrLink:e;return typeof E=="string"?E.trim():""},g=()=>{let E=p();!E&&typeof e!="function"||(typeof e=="function"?e():window.open(E,o?"_blank":"_self"))},v=(E,O=0)=>{let L=document.querySelector(E);if(!L)return;let P=L.getBoundingClientRect().top+window.scrollY-O;window.scrollTo({top:P,behavior:"smooth"})},R=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):g()},N=()=>$m(Gm,{children:[xa(Me,{...s,className:i,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),xa(jt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?N():xa(Me,{...s,className:i,onClick:g,"data-name":"button-action-with-qr",children:n}):N():xa(Me,{...s,onClick:R,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as ho from"react";import{ChevronRightIcon as jm,DotsHorizontalIcon as Qm}from"@radix-ui/react-icons";import{Slot as Um}from"@radix-ui/react-slot";import{jsx as ht,jsxs as qm}from"react/jsx-runtime";var Mr=ho.forwardRef(({className:e,...o},t)=>ht("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Mr.displayName="Breadcrumb";var Ir=ho.forwardRef(({className:e,...o},t)=>ht("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}));Ir.displayName="BreadcrumbList";var Ar=ho.forwardRef(({className:e,...o},t)=>ht("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Ar.displayName="BreadcrumbItem";var Lr=ho.forwardRef(({asChild:e,className:o,...t},a)=>ht(e?Um:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Lr.displayName="BreadcrumbLink";var zr=ho.forwardRef(({className:e,...o},t)=>ht("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));zr.displayName="BreadcrumbPage";var Er=({children:e,className:o,...t})=>ht("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??ht(jm,{className:"w-2 h-2"})});Er.displayName="BreadcrumbSeparator";var Hr=({className:e,...o})=>qm("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[ht(Qm,{className:"w-4 h-4 text-gray-900"}),ht("span",{className:"sr-only",children:"More"})]});Hr.displayName="BreadcrumbElipssis";import{createContext as Xm,useContext as _r}from"react";import{jsx as Vo}from"react/jsx-runtime";var di=Xm({align:"center"}),pi=({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})},fi=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:c}=_r(di);return Vo(s,{className:r("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",i),children:n})},gi=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:c}=_r(di);return Vo("div",{className:r(c==="center"?"mx-auto max-w-2xl":c==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",i),children:n})},ui=({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(di.Provider,{value:{align:o},children:t})});import{jsx as Qt,jsxs as Ym}from"react/jsx-runtime";var V=({idSection:e,className:o,background:t,children:a})=>Qt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Qt("div",{className:"wrapper relative",children:a})}),h=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",c=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:Ym(ui,{align:e,className:l,children:[o&&Qt(pi,{color:m,children:o}),t&&Qt(fi,{tagHeading:i,color:c,size:s,children:co(t)}),a&&Qt(gi,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:co(a)})]})},x=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Qt("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{if(!i)return null;let{btnName:s,...l}=i;return Qt(Oe,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:co(s)},n)})});import dc,{memo as pc}from"react";import{ArrowDownIcon as fc}from"@heroicons/react/20/solid";import gc from"html-react-parser";import{createContext as ec,useCallback as tc,useContext as vi,useEffect as oc,useRef as ac,useState as ic}from"react";import{ChevronLeft as rc,ChevronRight as nc}from"lucide-react";import*as Br from"react";import{Slot as Zm}from"@radix-ui/react-slot";import{cva as Km}from"class-variance-authority";import{jsx as Jm}from"react/jsx-runtime";var Ut=Km("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"}}),re=Br.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Zm:"button",m=r(Ut({variant:o,size:t,className:e}));return Jm(l,{className:m,disabled:i,ref:s,...n,children:n.children})});re.displayName="IconButton";import{Fragment as sc,jsx as Mt,jsxs as Fr}from"react/jsx-runtime";var ba=ec(void 0),xt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=ac(null),[n,s]=ic({left:!1,right:!1}),l=tc(()=>{let c=i.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);oc(()=>{let c=i.current;if(c)return l(),window.addEventListener("resize",l),c.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),c.removeEventListener("scroll",l)}},[l]);let m=c=>{let d=i.current;if(d){let{scrollLeft:p,clientWidth:g,scrollWidth:v}=d,R=g*.7*(c==="left"?-1:1),N=p+R;N<0?N=0:N>v-g&&(N=v-g),d.scrollTo({left:N,behavior:"smooth"})}};return Mt(ba.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:m,gradientOverlayColor:o},children:Fr("div",{className:r("relative w-full",t),children:[e&&Fr(sc,{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]})})},bt=({className:e,children:o})=>{let t=vi(ba);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})},yt=({className:e,children:o,...t})=>{let a=vi(ba);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Mt(re,{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(rc,{className:"h-4 w-4"})}):null},wt=({className:e,children:o,...t})=>{let a=vi(ba);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Mt(re,{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(nc,{className:"h-4 w-4"})}):null};import*as ya from"react";import*as Ve from"@radix-ui/react-tabs";import{jsx as hi}from"react/jsx-runtime";var Nt=Ve.Root,Ye=ya.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>hi(Ve.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}));Ye.displayName=Ve.List.displayName;var Ze=ya.forwardRef(({className:e,...o},t)=>hi(Ve.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}));Ze.displayName=Ve.Trigger.displayName;var Ke=ya.forwardRef(({className:e,...o},t)=>hi(Ve.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}));Ke.displayName=Ve.Content.displayName;import*as Or from"react";import{Slot as lc}from"@radix-ui/react-slot";import{cva as mc}from"class-variance-authority";import{jsx as cc}from"react/jsx-runtime";var Vr=mc("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),fe=Or.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?lc:"button",m=r(Vr({variant:o,size:t,className:e}));return cc(l,{className:m,disabled:i,ref:s,...n,children:n.children})});fe.displayName="TextButton";import{Fragment as Wr,jsx as W,jsxs as Je}from"react/jsx-runtime";var uc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Je(Wr,{children:[W("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:W("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Je("picture",{children:[W("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),W("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Je("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&W(fe,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),W("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}),Je("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&Je(Wr,{children:[W(fe,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&W("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&W("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},wa=pc(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>Je("div",{children:[W("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((g,v)=>W("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:W("div",{onClick:R=>m(R,g?.id,g?.url),className:r("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:W(uc,{blog:g})},g?.id)},v))}),d?.isShowBtn&&W("div",{className:"flex items-center justify-center w-full mt-8",children:Je(Oe,{action:i?()=>i?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[gc(d.btnName||"Xem th\xEAm"),d?.isLoading?W(fo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):i&&!d?.btnUrl&&W(fc,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||p);return Je(dc.Fragment,{children:[e&&W(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?Je(Nt,{defaultValue:t[0]?.title,children:[Je(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[W(bt,{className:"mb-6 text-center",children:W(Ye,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,p)=>W(Ze,{value:d.title,children:d.title},d.title+p))})}),W(yt,{}),W(wt,{})]}),t.map((d,p)=>W(Ke,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import yc,{memo as wc,useEffect as Nc,useState as jr}from"react";import{ChevronLeftIcon as Pc,ChevronRightIcon as Cc}from"@heroicons/react/20/solid";import Qr from"html-react-parser";import*as H from"react";import{ChevronLeftIcon as vc,ChevronRightIcon as hc}from"@heroicons/react/20/solid";import xc from"embla-carousel-react";import{Fragment as bc,jsx as Ae,jsxs as $r}from"react/jsx-runtime";var Gr=H.createContext(null);function Wo(){let e=H.useContext(Gr);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ge=H.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[m,c]=xc({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=H.useState(!1),[g,v]=H.useState(!1),R=H.useCallback(O=>{O&&(p(O.canScrollPrev()),v(O.canScrollNext()))},[]),N=H.useCallback(()=>{c?.scrollPrev()},[c]),k=H.useCallback(()=>{c?.scrollNext()},[c]),E=H.useCallback(O=>{O.key==="ArrowLeft"?(O.preventDefault(),N()):O.key==="ArrowRight"&&(O.preventDefault(),k())},[N,k]);return H.useEffect(()=>{!c||!t||t(c)},[c,t]),H.useEffect(()=>{if(c)return R(c),c.on("reInit",R),c.on("select",R),()=>{c?.off("select",R)}},[c,R]),Ae(Gr.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:N,scrollNext:k,canScrollPrev:d,canScrollNext:g},children:Ae("div",{ref:l,onKeyDownCapture:E,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});ge.displayName="Carousel";var ue=H.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=Wo();return Ae("div",{ref:i,className:r("overflow-hidden",o),children:Ae("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ue.displayName="CarouselContent";var le=H.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Wo();return Ae("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})});le.displayName="CarouselItem";var xo=H.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Wo();return $r(re,{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:[Ae(vc,{className:"h-6 w-6"}),Ae("span",{className:"sr-only",children:"Previous slide"})]})});xo.displayName="CarouselPrevious";var bo=H.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Wo();return $r(re,{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:[Ae(hc,{className:"h-6 w-6"}),Ae("span",{className:"sr-only",children:"Next slide"})]})});bo.displayName="CarouselNext";var yo=H.forwardRef((e,o)=>{let{api:t}=Wo(),[,a]=H.useState(!1),i=H.useCallback(()=>a(l=>!l),[]);H.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?Ae("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Ae(re,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):Ae(bc,{})});yo.displayName="CarouselDots";import{Fragment as Na,jsx as G,jsxs as We}from"react/jsx-runtime";var Rc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return We(Na,{children:[G("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:G("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),We("div",{className:"mt-4 md:pr-3",children:[G("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&G("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:Qr(e?.description??"")}),We("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&We(Na,{children:[G(fe,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&G("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&G("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Tc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return Nc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),We(Na,{children:[G(ge,{opts:{dragFree:!1},setApi:o,className:"w-full",children:G(ue,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>G(le,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:G("div",{onClick:g=>i(g,p?.id,p?.url),className:r("group cursor-pointer",d),children:G(Rc,{blog:p})},p?.id)},p?.id))})}),s&&G("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:We(Oe,{action:m&&m,newTab:c,variant:"outline",children:[Qr(l||"Xem th\xEAm")," "]})})]})},kc=({carouselRef:e})=>We(re,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[G(Pc,{className:"h-6 w-6"}),G("span",{className:"sr-only",children:"Previous slide"})]}),Sc=({carouselRef:e})=>We(re,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[G(Cc,{className:"h-6 w-6"}),G("span",{className:"sr-only",children:"Next slide"})]}),xi=wc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(c,d,p)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(p,"_blank")},[n,s]=jr(null),[,l]=jr(0),m=()=>n?We("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[G(kc,{carouselRef:n}),G(Sc,{carouselRef:n})]}):G(Na,{});return We(yc.Fragment,{children:[We("div",{className:" flex items-center justify-between",children:[e&&G(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),G(m,{})]}),G(Tc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});import{Fragment as Ac,jsx as wo}from"react/jsx-runtime";var Dc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return wo(wa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return wo(xi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return wo(wa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Mc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>wo(Ac,{children:Dc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Ic=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>wo(V,{className:r("overflow-hidden",i),idSection:a,background:n,children:wo(Mc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as Ca from"react";import{enUS as Hc,vi as _c}from"date-fns/locale";import{ChevronLeft as Bc,ChevronRight as Fc}from"lucide-react";import Oc from"lunisolar";import{DayPicker as Vc}from"react-day-picker";import*as Ur from"react";import*as Go from"@radix-ui/react-checkbox";import{CheckIcon as Lc}from"@heroicons/react/16/solid";import{cva as qr}from"class-variance-authority";import{jsx as bi}from"react/jsx-runtime";var zc=qr("peer shrink-0 rounded border-2 disabled:bg-gray-300 border-gray-300 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:bg-gray-100 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-400 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ec=qr("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Pa=Ur.forwardRef(({className:e,size:o,...t},a)=>bi(Go.Root,{ref:a,className:r(zc({size:o}),e),...t,children:bi(Go.Indicator,{className:r("flex items-center justify-center text-current"),children:bi(Lc,{className:r(Ec({size:o}))})})}));Pa.displayName=Go.Root.displayName;import{Fragment as Qc,jsx as et,jsxs as yi}from"react/jsx-runtime";var Wc=({date:e,cusContent:o})=>{let t=null;return t=Oc(e).lunar,yi(Qc,{children:[o?o(e):e.getDate(),t&&et("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Gc={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let o=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][o]}};function $c({isShow:e,setIsShow:o,lang:t}){let a=Ca.useId();return et("div",{className:"w-full p-3 pt-0",children:yi("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[et(Pa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),et("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var jc=e=>e.getDay()===0||e.getDay()===6;function Ra({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,m]=Ca.useState(!0);return et(Vc,{locale:i==="vi"?_c:Hc,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(qe({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(qe({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:jc},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>et(Bc,{className:"h-6 w-6"}),IconRight:()=>et(Fc,{className:"h-6 w-6"}),DayContent:c=>et(Wc,{date:c.date,cusContent:n}),Months:({children:c})=>yi("div",{className:"w-full",children:[et("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&et($c,{isShow:l,setIsShow:m,lang:i})]})},formatters:i==="vi"?Gc:{},...s})}Ra.displayName="Calendar";import{QuestionMarkCircleIcon as Uc,XCircleIcon as qc}from"@heroicons/react/16/solid";import{format as Ta}from"date-fns";import{Calendar as Xc}from"lucide-react";import*as Yr from"react";import*as Pt from"@radix-ui/react-popover";import{jsx as Xr}from"react/jsx-runtime";var $o=Pt.Root,jo=Pt.Trigger,No=Yr.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>Xr(Pt.Portal,{children:Xr(Pt.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));No.displayName=Pt.Content.displayName;import{Fragment as Zr,jsx as Pe,jsxs as Qo}from"react/jsx-runtime";var Yc=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:c,popoverContentProps:d})=>{let p=c?.selected||null;return Qo("div",{children:[Qo($o,{...m,children:[Pe(jo,{asChild:!0,children:Qo(Me,{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:[Pe("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Ta(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?Pe(Zr,{children:p.from?p.to?Qo(Zr,{children:[Pe("span",{className:"date-from",children:Ta(p.from,s)})," ",Pe("span",{className:"date-separator",children:"-"}),Pe("span",{className:"date-to",children:Ta(p.to,s)})]}):Ta(p.from,s):o}):o}),e&&Pe("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),Pe(Xc,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Pe(No,{className:"w-auto border-none !p-0",...d,children:Pe(Ra,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&Qo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?Pe(qc,{width:16,height:16,className:"text-red-500"}):Pe(Uc,{width:16,height:16,className:"text-gray-500"}),Pe("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as td,useState as rn}from"react";import{QuestionMarkCircleIcon as od,XCircleIcon as ad}from"@heroicons/react/16/solid";import{isValid as id}from"date-fns";import*as tt from"react";import{ChevronDownIcon as Kr,ChevronUpIcon as Zc,CheckIcon as Kc,XCircleIcon as Jc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as ed}from"@heroicons/react/24/outline";import*as S from"@radix-ui/react-select";import{jsx as $,jsxs as Uo}from"react/jsx-runtime";var qo=tt.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},m)=>Uo("div",{ref:m,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-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}),$(S.Root,{disabled:s,...l,children:o}),a&&Uo("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?$(Jc,{width:16,height:16}):$(ed,{width:16,height:16}),$("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Xo=S.Value,Po=tt.forwardRef(({className:e,children:o,...t},a)=>Uo(S.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}),$(S.Icon,{asChild:!0,children:$(Kr,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Po.displayName=S.Trigger.displayName;var wi=tt.forwardRef(({className:e,...o},t)=>$(S.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:$(Zc,{className:"h-5 w-5"})}));wi.displayName=S.ScrollUpButton.displayName;var Ni=tt.forwardRef(({className:e,...o},t)=>$(S.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:$(Kr,{className:"h-5 w-5"})}));Ni.displayName=S.ScrollDownButton.displayName;var Co=tt.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>$(S.Portal,{children:Uo(S.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:[$(wi,{}),$(S.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),$(Ni,{})]})}));Co.displayName=S.Content.displayName;var Yo=tt.forwardRef(({className:e,children:o,...t},a)=>$(S.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Jr=tt.forwardRef(({className:e,...o},t)=>$(S.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Jr.displayName=S.Label.displayName;var It=tt.forwardRef(({className:e,children:o,...t},a)=>Uo(S.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:$(S.ItemIndicator,{children:$(Kc,{className:"h-4 w-4 text-pink-500"})})}),$(S.ItemText,{children:o})]})),en=tt.forwardRef(({className:e,...o},t)=>$(S.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));en.displayName=S.Separator.displayName;var tn=["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"],on=["January","February","March","April","May","June","July","August","September","October","November","December"],Pi=(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}},an=(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 ee,jsxs as ot}from"react/jsx-runtime";var rd=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:c=1900,toYear:d=new Date().getFullYear(),disableUnselect:p=!1})=>{let[g,v]=rn(o??null),R=Math.min(c,d),N=Math.max(c,d),k=l==="MM/yyyy",E=(P,ie)=>{if(ie===0){v(void 0),t?.(void 0);return}let j=g?.getFullYear()||new Date().getFullYear(),ha=g?.getMonth()??0,$t=g?.getDate()??1;P==="month"&&ie!==null&&(ha=ie-1),P==="year"&&ie!==null&&(j=ie),k?$t=1:P==="day"&&ie!==null&&($t=ie);let Nr=Pi(j,ha+1).daysInMonth;$t>Nr&&($t=1);let Ho=new Date(j,ha,$t);id(Ho)&&(v(Ho),t?.(Ho))},[O,L]=rn(!1),Gt=P=>{L(P)};return td(()=>{v(o??null)},[o]),ot("div",{className:r("relative",s&&"cursor-no-drop"),children:[ot("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",O&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",g?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&ee("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),ot("div",{className:"flex h-full flex-row divide-x",children:[!k&&ot(qo,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:P=>E("day",parseInt(P,10)),onOpenChange:Gt,className:"w-[30%]",children:[ee(Po,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Xo,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),ee(Co,{onCloseAutoFocus:P=>P.preventDefault(),children:ot(Yo,{children:[!p&&ee(It,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Pi(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(P,ie)=>(ie+1).toString().padStart(2,"0")).map(P=>ee(It,{value:P,children:P},P))]})})]}),ot(qo,{value:g?(g.getMonth()+1).toString():"",onValueChange:P=>E("month",parseInt(P,10)),onOpenChange:Gt,className:r(k?"w-1/2":"w-2/5"),children:[ee(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Xo,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),ee(Co,{onCloseAutoFocus:P=>P.preventDefault(),children:ot(Yo,{children:[!p&&ee(It,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(P,ie)=>ie+1).map(P=>ee(It,{value:P.toString(),children:m==="vi"?tn[P-1]:on[P-1]},P))]})})]}),ot(qo,{value:g?g.getFullYear().toString():"",onValueChange:P=>E("year",parseInt(P,10)),onOpenChange:Gt,className:r(k?"w-1/2":"w-[30%]"),children:[ee(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Xo,{placeholder:m==="vi"?"N\u0103m":"Year"})}),ee(Co,{onCloseAutoFocus:P=>P.preventDefault(),children:ot(Yo,{children:[!p&&ee(It,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),an(R,N).map(P=>ee(It,{value:P.toString(),children:P},P))]})})]})]})]}),i&&ot("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?ee(ad,{width:16,height:16,className:"text-red-500"}):ee(od,{width:16,height:16,className:"text-gray-500"}),ee("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};import*as qt from"react";import*as B from"@radix-ui/react-alert-dialog";import{jsx as Ct,jsxs as ld}from"react/jsx-runtime";var nd=B.Root,sd=B.Trigger,nn=B.Portal,Ci=qt.forwardRef(({className:e,...o},t)=>Ct(B.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}));Ci.displayName=B.Overlay.displayName;var sn=qt.forwardRef(({className:e,...o},t)=>ld(nn,{children:[Ct(Ci,{}),Ct(B.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})]}));sn.displayName=B.Content.displayName;var ln=({className:e,...o})=>Ct("div",{className:r("flex flex-col space-y-2 text-left",e),...o});ln.displayName="AlertDialogHeader";var mn=({className:e,...o})=>Ct("div",{className:r("flex flex-row justify-end space-x-4",e),...o});mn.displayName="AlertDialogFooter";var cn=qt.forwardRef(({className:e,...o},t)=>Ct(B.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));cn.displayName=B.Title.displayName;var dn=qt.forwardRef(({className:e,...o},t)=>Ct(B.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));dn.displayName=B.Description.displayName;var pn=qt.forwardRef(({className:e,...o},t)=>Ct(B.Action,{ref:t,className:r(qe({variant:"primary"}),"",e),...o}));pn.displayName=B.Action.displayName;var fn=qt.forwardRef(({className:e,...o},t)=>Ct(B.Cancel,{ref:t,className:r(qe({variant:"secondary"}),e),...o}));fn.displayName=B.Cancel.displayName;import{memo as hd,useState as xd}from"react";import{useEffect as md,useState as un}from"react";import vn from"html-react-parser";import{motion as cd}from"motion/react";import*as gn from"@radix-ui/react-aspect-ratio";var _=gn.Root;import{Fragment as hn,jsx as te,jsxs as Zo}from"react/jsx-runtime";var dd=({guideGroup:e,mockup:o})=>{let[t,a]=un(),[i,n]=un(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return md(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),te(hn,{children:e?.stepList&&e?.stepList?.length>0&&Zo("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[te("div",{className:"h-auto w-64 flex-none",children:Zo("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&Zo(hn,{children:[te("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),te("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:Zo(ge,{setApi:a,children:[te(ue,{className:"ml-0",children:e?.stepList.map((l,m)=>te(le,{className:"pl-0",children:te(_,{ratio:o==="small"?540/960:540/1168,children:l?.image&&te("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),te(xo,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),te(bo,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),te("div",{className:"flex flex-auto pl-12 pt-4",children:te("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>Zo("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",m+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[te("div",{className:r("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),te("div",{className:r(" text-sm font-medium",m+1===i?"text-pink-500":"text-gray-900"),children:vn(l.title)}),l.content&&te(cd.div,{initial:"closed",animate:m+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:te("div",{className:"mt-3 text-sm text-gray-700",children:vn(l.content)})})]},m))})})]})})},Ri=dd;import{useEffect as pd,useRef as fd,useState as ka}from"react";import{ChevronRightIcon as xn}from"@heroicons/react/20/solid";import gd from"embla-carousel-autoplay";import Sa from"html-react-parser";import{Fragment as Ti,jsx as y,jsxs as ye}from"react/jsx-runtime";var ud=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=ka(0),[s,l]=ka();return pd(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:y(Fe,{open:e,onOpenChange:o,children:ye(Ie,{position:"bottom",height:"full",children:[y(go,{children:y(uo,{className:"line-clamp-1",children:t?.title})}),ye(Xe,{className:"grid overflow-hidden p-0 ",children:[y(ge,{setApi:l,className:" grid overflow-hidden",children:y(ue,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>y(le,{className:"h-full w-full pl-0",children:ye("div",{className:"flex h-full flex-col overflow-y-auto",children:[y("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:y("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:ye("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"&&ye(Ti,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:y(_,{ratio:a==="small"?540/960:540/1168,children:m?.image&&y("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),ye("div",{className:"p-5 pb-12",children:[y("div",{className:"font-semibold",children:Sa(m.title)}),m?.content&&y("div",{className:"mt-3 text-sm text-gray-800",children:Sa(m.content)})]})]})},c))})}),y("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((m,c)=>y("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},vd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=ka(!1),[n,s]=ka(null),l=fd(gd({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),i(!0)};return e?.length===0?null:ye(Ti,{children:[e?.length>1?y("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>ye("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[y("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(c?.avatar||c?.stepList?.[0]?.image)&&y("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),ye("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",d+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[ye("div",{className:"py-2",children:[t&&y("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),y("div",{className:"font-semibold",children:Sa(c.title)}),c?.description&&y("div",{className:"mt-1 text-sm text-gray-500",children:Sa(c.description)})]}),y("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:y(xn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&ye("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[y("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:y("div",{className:"mx-auto h-auto w-72",children:ye("div",{className: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"&&ye(Ti,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:y(ge,{plugins:[l.current],children:y(ue,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>y(le,{className:"pl-0",onClick:()=>m(0),children:y(_,{ratio:o==="small"?540/960:540/1168,children:c?.image&&y("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),y("div",{className:"flex w-full flex-none justify-center",children:ye(fe,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",y(xn,{className:"ml-1 h-5 w-5"})]})})]}),a&&y(ud,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},bn=vd;import{Fragment as bd,jsx as me,jsxs as Ko}from"react/jsx-runtime";var yn=({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 me("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:me("path",{d:t.d,fill:"currentColor"})})},ki=hd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=xd(t?.[0]?.title||"");return Ko(bd,{children:[e&&me(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&Ko(mo,{children:[me(Ue,{lessThan:"md",children:me(bn,{dataGuide:t,mockup:i,isStep:n})}),me(Ue,{greaterThan:"sm",children:t?.length>1?Ko(Nt,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[Ko(xt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[me(bt,{className:"mb-6 text-center",children:me(Ye,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,g)=>{let v=g===t.length-1,R=c===p?.title||"";return Ko(Ze,{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":"",R&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&me(yn,{direction:"left",className:r("right-full top-0",R?"text-pink-500":"text-pink-100")}),p.title,n&&!v&&me(yn,{direction:"right",className:r("left-full top-0",R?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),me(yt,{}),me(wt,{})]}),t.map((p,g)=>me(Ke,{value:p.title,children:me(Ri,{guideGroup:p,mockup:i})},p.title+g))]}):t?.length===1&&t[0]&&me(Ri,{guideGroup:t[0],mockup:i})})]}),a&&me(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as Pd,jsx as Jo}from"react/jsx-runtime";var yd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return Jo(ki,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return Jo(ki,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},wd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>Jo(Pd,{children:yd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),Nd=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>Jo(V,{className:r(n),background:s,idSection:e,children:Jo(wd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:m,isStep:c})});import{ChevronLeft as Cd,ChevronRight as Rd}from"lucide-react";import{Fragment as Td,jsx as Le,jsxs as wn}from"react/jsx-runtime";function Nn({current:e,total:o,onChange:t}){let a=i=>Le("li",{children:Le("button",{className:r(Ut({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return Le("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:wn("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Le("li",{children:Le("button",{className:r(Ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Le(Cd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):wn(Td,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Le("li",{children:Le("button",{className:r(Ut({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&&Le("button",{className:r(Ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Le("li",{children:Le("button",{className:r(Ut({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Le(Rd,{className:"h-4 w-4"})})})]})})}import{forwardRef as kd}from"react";import{QuestionMarkCircleIcon as Sd}from"@heroicons/react/24/outline";import{XCircleIcon as Dd}from"@heroicons/react/24/solid";import{jsx as Ro,jsxs as Pn}from"react/jsx-runtime";var Md=kd(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...m},c)=>Pn("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&Ro("span",{className:r("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),Ro("textarea",{disabled:e,ref:c,className:r("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...m}),t&&Pn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?Ro(Dd,{width:16,height:16,className:"text-red-500"}):Ro(Sd,{width:16,height:16,className:"text-gray-500"}),Ro("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Ro("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 Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
94
94
  color: rgb(var(--mobase-red-500) / 1);
95
95
  }
96
96
  }
97
- `})]}));import*as Ha from"react";var op=1,ap=1e6;var $r=0;function rp(){return $r=($r+1)%Number.MAX_SAFE_INTEGER,$r.toString()}var Gr=new Map,$n=e=>{if(Gr.has(e))return;let o=setTimeout(()=>{Gr.delete(e),ra({type:"REMOVE_TOAST",toastId:e})},ap);Gr.set(e,o)},ip=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,op)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===o.toast.id?{...t,...o.toast}:t)};case"DISMISS_TOAST":{let{toastId:t}=o;return t?$n(t):e.toasts.forEach(a=>{$n(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===t||t===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return o.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(t=>t.id!==o.toastId)};default:return e}},za=[],Ea={toasts:[]};function ra(e){Ea=ip(Ea,e),za.forEach(o=>{o(Ea)})}function Gn({...e}){let o=rp(),t=r=>ra({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>ra({type:"DISMISS_TOAST",toastId:o});return ra({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function jr(){let[e,o]=Ha.useState(Ea);return Ha.useEffect(()=>(za.push(o),()=>{let t=za.indexOf(o);t>-1&&za.splice(t,1)}),[e]),{...e,toast:Gn,dismiss:t=>ra({type:"DISMISS_TOAST",toastId:t})}}import*as eo from"react";import{CheckCircleIcon as np,ExclamationTriangleIcon as sp,InformationCircleIcon as lp,XMarkIcon as mp}from"@heroicons/react/20/solid";import*as Z from"@radix-ui/react-toast";import{cva as cp}from"class-variance-authority";import{jsx as Mt,jsxs as jn}from"react/jsx-runtime";var Qn=Z.Provider,Qr=eo.forwardRef(({className:e,...o},t)=>Mt(Z.Viewport,{ref:t,className:i("fixed bottom-0 left-0 z-[300] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));Qr.displayName=Z.Viewport.displayName;var dp=cp("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),Ur=eo.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>jn(Z.Root,{ref:r,className:i(dp({variant:o}),e),...a,children:[jn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&Mt(np,{className:"h-5 w-5 text-green-500"}),o==="warning"&&Mt(sp,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&Mt(lp,{className:"h-5 w-5 text-red-500"})]}),t]}));Ur.displayName=Z.Root.displayName;var Un=eo.forwardRef(({className:e,...o},t)=>Mt(Z.Action,{ref:t,className:i("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));Un.displayName=Z.Action.displayName;var qr=eo.forwardRef(({className:e,...o},t)=>Mt(Z.Close,{ref:t,className:i("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:Mt(mp,{className:"h-5 w-5"})}));qr.displayName=Z.Close.displayName;var Xr=eo.forwardRef(({className:e,...o},t)=>Mt(Z.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));Xr.displayName=Z.Title.displayName;var Yr=eo.forwardRef(({className:e,...o},t)=>Mt(Z.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));Yr.displayName=Z.Description.displayName;import{jsx as _a,jsxs as Zr}from"react/jsx-runtime";function pp(){let{toasts:e}=jr();return Zr(Qn,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return Zr(Ur,{...n,children:[Zr("div",{className:"grid gap-2",children:[t&&_a(Xr,{children:t}),a&&_a(Yr,{children:a})]}),r,_a(qr,{})]},o)}),_a(Qr,{})]})}import*as Kr from"react";import*as Ee from"@radix-ui/react-tooltip";import{jsx as Yn}from"react/jsx-runtime";var fp=Ee.Provider,gp=Ee.Root,up=Ee.Trigger,qn=Kr.forwardRef((e,o)=>Yn(Ee.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));qn.displayName=Ee.Arrow.displayName;var Xn=Kr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>Yn(Ee.Content,{ref:r,sideOffset:t,className:i("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));Xn.displayName=Ee.Content.displayName;import{forwardRef as vp,useEffect as hp,useRef as xp,useState as bp}from"react";import{QuestionMarkCircleIcon as yp,XCircleIcon as wp,XCircleIcon as Np}from"@heroicons/react/16/solid";import{jsx as _t,jsxs as Jr}from"react/jsx-runtime";var ei=vp(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:c,onClickClear:d,value:p,defaultValue:g,type:v="text",...P},w)=>{let[C,z]=bp(!1),_=xp(null),F=L=>{L&&!C&&z(!0),!L&&C&&z(!1)},ut=L=>{s&&F(L.target.value),m?.(L)},N=L=>{s&&F(L.target.value),c?.(L)},B=()=>{let L=_.current?.querySelector("input");L&&(d?.(L.value),L.value="",L.focus(),z(!1))};return hp(()=>{F(g||p)},[p,g]),Jr("div",{className:i(r,o&&"mobase-text-input-error"),ref:_,children:[Jr("div",{className:"relative",children:[a&&_t("span",{className:i("mobase-text-input-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),_t("input",{disabled:e,type:v,ref:w,className:i("mobase-text-input-box block h-11 w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",l===2&&"h-12 text-base",n),onChange:ut,onFocus:N,value:p,defaultValue:g,...P}),s&&C&&_t("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 shrink-0 -translate-y-1/2 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:B,children:_t(wp,{strokeWidth:2,width:20,height:20})})]}),t&&Jr("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?_t(Np,{width:16,height:16,className:"text-red-500"}):_t(yp,{width:16,height:16,className:"text-gray-500"}),_t("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),_t("style",{children:`
97
+ `})]}));import*as Ia from"react";var Id=1,Ad=1e6;var Si=0;function Ld(){return Si=(Si+1)%Number.MAX_SAFE_INTEGER,Si.toString()}var Di=new Map,Cn=e=>{if(Di.has(e))return;let o=setTimeout(()=>{Di.delete(e),ea({type:"REMOVE_TOAST",toastId:e})},Ad);Di.set(e,o)},zd=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Id)};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?Cn(t):e.toasts.forEach(a=>{Cn(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}},Da=[],Ma={toasts:[]};function ea(e){Ma=zd(Ma,e),Da.forEach(o=>{o(Ma)})}function Rn({...e}){let o=Ld(),t=i=>ea({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>ea({type:"DISMISS_TOAST",toastId:o});return ea({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function Mi(){let[e,o]=Ia.useState(Ma);return Ia.useEffect(()=>(Da.push(o),()=>{let t=Da.indexOf(o);t>-1&&Da.splice(t,1)}),[e]),{...e,toast:Rn,dismiss:t=>ea({type:"DISMISS_TOAST",toastId:t})}}import*as Xt from"react";import{CheckCircleIcon as Ed,ExclamationTriangleIcon as Hd,InformationCircleIcon as _d,XMarkIcon as Bd}from"@heroicons/react/20/solid";import*as Y from"@radix-ui/react-toast";import{cva as Fd}from"class-variance-authority";import{jsx as Rt,jsxs as Tn}from"react/jsx-runtime";var kn=Y.Provider,Ii=Xt.forwardRef(({className:e,...o},t)=>Rt(Y.Viewport,{ref:t,className:r("fixed bottom-0 left-0 z-[300] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));Ii.displayName=Y.Viewport.displayName;var Od=Fd("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),Ai=Xt.forwardRef(({className:e,variant:o="success",children:t,...a},i)=>Tn(Y.Root,{ref:i,className:r(Od({variant:o}),e),...a,children:[Tn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&Rt(Ed,{className:"h-5 w-5 text-green-500"}),o==="warning"&&Rt(Hd,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&Rt(_d,{className:"h-5 w-5 text-red-500"})]}),t]}));Ai.displayName=Y.Root.displayName;var Sn=Xt.forwardRef(({className:e,...o},t)=>Rt(Y.Action,{ref:t,className:r("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));Sn.displayName=Y.Action.displayName;var Li=Xt.forwardRef(({className:e,...o},t)=>Rt(Y.Close,{ref:t,className:r("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:Rt(Bd,{className:"h-5 w-5"})}));Li.displayName=Y.Close.displayName;var zi=Xt.forwardRef(({className:e,...o},t)=>Rt(Y.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));zi.displayName=Y.Title.displayName;var Ei=Xt.forwardRef(({className:e,...o},t)=>Rt(Y.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));Ei.displayName=Y.Description.displayName;import{jsx as Aa,jsxs as Hi}from"react/jsx-runtime";function Vd(){let{toasts:e}=Mi();return Hi(kn,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return Hi(Ai,{...n,children:[Hi("div",{className:"grid gap-2",children:[t&&Aa(zi,{children:t}),a&&Aa(Ei,{children:a})]}),i,Aa(Li,{})]},o)}),Aa(Ii,{})]})}import*as _i from"react";import*as ze from"@radix-ui/react-tooltip";import{jsx as In}from"react/jsx-runtime";var Wd=ze.Provider,Gd=ze.Root,$d=ze.Trigger,Dn=_i.forwardRef((e,o)=>In(ze.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));Dn.displayName=ze.Arrow.displayName;var Mn=_i.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>In(ze.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}));Mn.displayName=ze.Content.displayName;import{forwardRef as jd,useEffect as Qd,useRef as Ud,useState as qd}from"react";import{QuestionMarkCircleIcon as Xd,XCircleIcon as Yd,XCircleIcon as Zd}from"@heroicons/react/16/solid";import{jsx as At,jsxs as Bi}from"react/jsx-runtime";var Kd=jd(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:c,onClickClear:d,value:p,defaultValue:g,type:v="text",...R},N)=>{let[k,E]=qd(!1),O=Ud(null),L=j=>{j&&!k&&E(!0),!j&&k&&E(!1)},Gt=j=>{s&&L(j.target.value),m?.(j)},P=j=>{s&&L(j.target.value),c?.(j)},ie=()=>{let j=O.current?.querySelector("input");j&&(d?.(j.value),j.value="",j.focus(),E(!1))};return Qd(()=>{L(g||p)},[p,g]),Bi("div",{className:r(i,o&&"mobase-text-input-error"),ref:O,children:[Bi("div",{className:"relative",children:[a&&At("span",{className:r("mobase-text-input-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),At("input",{disabled:e,type:v,ref:N,className:r("mobase-text-input-box block h-11 w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",l===2&&"h-12 text-base",n),onChange:Gt,onFocus:P,value:p,defaultValue:g,...R}),s&&k&&At("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 shrink-0 -translate-y-1/2 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:ie,children:At(Yd,{strokeWidth:2,width:20,height:20})})]}),t&&Bi("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?At(Zd,{width:16,height:16,className:"text-red-500"}):At(Xd,{width:16,height:16,className:"text-gray-500"}),At("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),At("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,11 +117,11 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});import{MinusCircleIcon as Pp,PlusCircleIcon as Cp}from"@heroicons/react/24/outline";import{forwardRef as Rp,useState as Tp}from"react";import{jsx as ia,jsxs as ti}from"react/jsx-runtime";var Zn=Rp(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[p,g]=Tp(r),v=()=>{let C=Math.min(p+a,t);g(C),n?.(C),l?.(C)},P=()=>{let C=Math.max(p-a,o);g(C),n?.(C),s?.(C)},w=C=>{let z=parseFloat(C.target.value);if(!isNaN(z)){let _=Math.max(Math.min(z,t),o);g(_),n?.(_)}};return ti("div",{ref:d,className:i("flex items-center ",e),children:[ti(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:P,disabled:m||p<=o,children:[ia(Pp,{className:"w-7 h-7 "}),ia("span",{className:"sr-only",children:"Decrease value"})]}),ia("input",{type:"number",value:p,onChange:w,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:m,...c}),ti(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:v,disabled:m||p>=t,children:[ia(Cp,{className:"w-7 h-7 "}),ia("span",{className:"sr-only",children:"Increase value"})]})]})});Zn.displayName="Stepper";import*as Ue from"react";import*as U from"@radix-ui/react-navigation-menu";import{cva as kp}from"class-variance-authority";import{ChevronDownIcon as Sp}from"@heroicons/react/16/solid";import{jsx as st,jsxs as Lp}from"react/jsx-runtime";var Kn=Ue.createContext(null),Dp=({value:e,children:o})=>st(Kn.Provider,{value:e,children:o}),Mp=()=>{let e=Ue.useContext(Kn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Ba=Ue.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>st(Dp,{value:{alignDropdown:t},children:st(U.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Ba.displayName=U.Root.displayName;var Oa=Ue.forwardRef(({className:e,...o},t)=>st(U.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Oa.displayName=U.List.displayName;var Va=U.Item,Wa=kp(Ke({variant:"transparent",size:"sm"})),$a=Ue.forwardRef(({className:e,children:o,...t},a)=>Lp(U.Trigger,{ref:a,className:i(Wa(),"group px-2",e),...t,children:[o," ",st(Sp,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));$a.displayName=U.Trigger.displayName;var Ga=Ue.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Mp();return st(U.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Ga.displayName=U.Content.displayName;var na=U.Link,Ip=Ue.forwardRef(({className:e,...o},t)=>st("div",{className:i("absolute left-0 top-full flex justify-center"),children:st(U.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Ip.displayName=U.Viewport.displayName;var Ap=Ue.forwardRef(({className:e,...o},t)=>st(U.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:st("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Ap.displayName=U.Indicator.displayName;import*as es from"react";import*as sa from"@radix-ui/react-switch";import{jsx as Jn}from"react/jsx-runtime";var ja=es.forwardRef(({className:e,...o},t)=>Jn(sa.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Jn(sa.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));ja.displayName=sa.Root.displayName;import*as to from"react";import*as Bt from"@radix-ui/react-radio-group";import{Circle as Fp}from"lucide-react";import{cva as ts}from"class-variance-authority";import{jsx as la}from"react/jsx-runtime";var zp=ts("aspect-square rounded-full border-2 border-gray-300 disabled:bg-gray-100 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-400 data-[state=checked]:bg-pink-500 data-[state=checked]:border-none ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default peer",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ep=ts("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),os=to.createContext({size:"medium"});function Hp(){let e=to.useContext(os);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var as=to.forwardRef(({className:e,size:o,...t},a)=>la(os.Provider,{value:{size:o},children:la(Bt.Root,{className:i("grid gap-2",e),...t,ref:a})}));as.displayName=Bt.Root.displayName;var rs=to.forwardRef(({className:e,...o},t)=>{let a=Hp(),{size:r}=a??{};return la(Bt.Item,{ref:t,className:i(zp({size:r}),e),...o,children:la(Bt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:la(Fp,{className:i(Ep({size:r}))})})})});rs.displayName=Bt.Item.displayName;import{useState as Jp}from"react";import{ArrowDownTrayIcon as ef}from"@heroicons/react/16/solid";import tf from"html-react-parser";import{useEffect as $p,useState as ls}from"react";import{AnimatePresence as Gp,domAnimation as jp,LazyMotion as Qp,motion as oi}from"motion/react";import{useKey as Up}from"react-use";var Qa=[.24,.25,.05,1];import{motion as Bp}from"motion/react";import{jsx as ma,jsxs as is}from"react/jsx-runtime";var _p=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return ma("li",{className:"min-h-8",children:is("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&ma("div",{className:"w-6 h-6 shrink-0",children:ma("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),is("div",{className:" ",children:[ma("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&ma("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},ns=_p;import{jsx as oo,jsxs as Wp}from"react/jsx-runtime";var Op={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Qa}},exit:{opacity:0,transition:{duration:.05}}},Vp=({data:e})=>oo(ht,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return oo(Bp.div,{variants:Op,children:o.hasDropdown?Wp(xt,{value:o.id,children:[oo(bt,{className:"py-3",children:o.title}),oo(yt,{children:oo("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>oo(ns,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):oo("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),ss=Vp;import{jsx as M,jsxs as ve}from"react/jsx-runtime";var qp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Xp=({data:e,className:o})=>{let[t,a]=ls(!1),[r,n]=ls(!1);Up("Escape",()=>a(!1)),$p(()=>{if(!t)return;let m=qp();function c(){a(!1)}function d(){a(!1),n(!0)}function p(w){let C=w.target;((C.closest&&C.closest("a"))?.getAttribute("href")||C.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let g=()=>{c()},v=history.pushState,P=history.replaceState;return history.pushState=((...w)=>{let C=v.apply(history,w);return g(),C}),history.replaceState=((...w)=>{let C=P.apply(history,w);return g(),C}),window.addEventListener("popstate",g),window.addEventListener("hashchange",d),window.addEventListener("click",p,!0),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),history.pushState=v,history.replaceState=P,window.removeEventListener("popstate",g),window.removeEventListener("hashchange",d),window.removeEventListener("click",p,!0)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Qa}},exit:{opacity:0,transition:{duration:.15}}};return ve("div",{className:i(o),children:[ve("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[M("span",{className:"sr-only",children:"Navigation"}),M(oi.div,{animate:t?"hidden":"visible",variants:s,children:M("svg",{className:i("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:M("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),M(oi.div,{animate:t?"visible":"hidden",variants:s,children:M("svg",{className:i("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:M("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),M(Qp,{features:jp,children:M(Gp,{mode:"wait",children:t&&ve(oi.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[M(ss,{data:e}),ve("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[M("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),ve("div",{className:"flex flex-nowrap",children:[M("div",{className:"flex-initial",children:M("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:M("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),M("div",{className:"ml-3 flex-initial",children:M("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:M("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),M("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),ve("ul",{className:"mb-2 text-sm text-gray-500",children:[ve("li",{className:"mb-1",children:["Hotline :\xA0",M("a",{href:`tel:${vt.Support.Hotline}`,className:"text-gray-600",children:vt.Support.Hotline_Format})]}),ve("li",{className:"mb-1",children:["Email :\xA0",M("a",{href:`mailto:${vt.Support.Email}`,className:"text-gray-600",children:vt.Support.Email})]})]}),M("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:ve("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[M("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:M("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:ve("g",{children:[M("title",{children:"Asset 1"}),M("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 Jd,PlusCircleIcon as ep}from"@heroicons/react/24/outline";import{forwardRef as tp,useState as op}from"react";import{jsx as ta,jsxs as Fi}from"react/jsx-runtime";var An=tp(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[p,g]=op(i),v=()=>{let k=Math.min(p+a,t);g(k),n?.(k),l?.(k)},R=()=>{let k=Math.max(p-a,o);g(k),n?.(k),s?.(k)},N=k=>{let E=parseFloat(k.target.value);if(!isNaN(E)){let O=Math.max(Math.min(E,t),o);g(O),n?.(O)}};return Fi("div",{ref:d,className:r("flex items-center ",e),children:[Fi(re,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:R,disabled:m||p<=o,children:[ta(Jd,{className:"w-7 h-7 "}),ta("span",{className:"sr-only",children:"Decrease value"})]}),ta("input",{type:"number",value:p,onChange:N,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:m,...c}),Fi(re,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:v,disabled:m||p>=t,children:[ta(ep,{className:"w-7 h-7 "}),ta("span",{className:"sr-only",children:"Increase value"})]})]})});An.displayName="Stepper";import*as Ge from"react";import*as Q from"@radix-ui/react-navigation-menu";import{cva as ap}from"class-variance-authority";import{ChevronDownIcon as ip}from"@heroicons/react/16/solid";import{jsx as at,jsxs as mp}from"react/jsx-runtime";var Ln=Ge.createContext(null),rp=({value:e,children:o})=>at(Ln.Provider,{value:e,children:o}),np=()=>{let e=Ge.useContext(Ln);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},La=Ge.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>at(rp,{value:{alignDropdown:t},children:at(Q.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));La.displayName=Q.Root.displayName;var za=Ge.forwardRef(({className:e,...o},t)=>at(Q.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));za.displayName=Q.List.displayName;var Ea=Q.Item,Ha=ap(qe({variant:"transparent",size:"sm"})),_a=Ge.forwardRef(({className:e,children:o,...t},a)=>mp(Q.Trigger,{ref:a,className:r(Ha(),"group px-2",e),...t,children:[o," ",at(ip,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));_a.displayName=Q.Trigger.displayName;var Ba=Ge.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=np();return at(Q.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Ba.displayName=Q.Content.displayName;var oa=Q.Link,sp=Ge.forwardRef(({className:e,...o},t)=>at("div",{className:r("absolute left-0 top-full flex justify-center"),children:at(Q.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));sp.displayName=Q.Viewport.displayName;var lp=Ge.forwardRef(({className:e,...o},t)=>at(Q.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:at("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));lp.displayName=Q.Indicator.displayName;import*as En from"react";import*as aa from"@radix-ui/react-switch";import{jsx as zn}from"react/jsx-runtime";var Hn=En.forwardRef(({className:e,...o},t)=>zn(aa.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:zn(aa.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Hn.displayName=aa.Root.displayName;import*as Yt from"react";import*as Lt from"@radix-ui/react-radio-group";import{Circle as cp}from"lucide-react";import{cva as _n}from"class-variance-authority";import{jsx as ia}from"react/jsx-runtime";var dp=_n("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"}}),pp=_n("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Bn=Yt.createContext({size:"medium"});function fp(){let e=Yt.useContext(Bn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Fn=Yt.forwardRef(({className:e,size:o,...t},a)=>ia(Bn.Provider,{value:{size:o},children:ia(Lt.Root,{className:r("grid gap-2",e),...t,ref:a})}));Fn.displayName=Lt.Root.displayName;var On=Yt.forwardRef(({className:e,...o},t)=>{let a=fp(),{size:i}=a??{};return ia(Lt.Item,{ref:t,className:r(dp({size:i}),e),...o,children:ia(Lt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:ia(cp,{className:r(pp({size:i}))})})})});On.displayName=Lt.Item.displayName;import{useState as Dp}from"react";import{ArrowDownTrayIcon as Mp}from"@heroicons/react/16/solid";import{useEffect as bp,useState as $n}from"react";import{AnimatePresence as yp,domAnimation as wp,LazyMotion as Np,motion as Oi}from"motion/react";import{useKey as Pp}from"react-use";var Fa=[.24,.25,.05,1];import{motion as up}from"motion/react";import{jsx as ra,jsxs as Vn}from"react/jsx-runtime";var gp=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return ra("li",{className:"min-h-8",children:Vn("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&ra("div",{className:"w-6 h-6 shrink-0",children:ra("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),Vn("div",{className:" ",children:[ra("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&ra("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Wn=gp;import{jsx as Zt,jsxs as xp}from"react/jsx-runtime";var vp={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Fa}},exit:{opacity:0,transition:{duration:.05}}},hp=({data:e})=>Zt(pt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return Zt(up.div,{variants:vp,children:o.hasDropdown?xp(ft,{value:o.id,children:[Zt(gt,{className:"py-3",children:o.title}),Zt(ut,{children:Zt("ul",{className:r("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>Zt(Wn,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):Zt("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),Gn=hp;import{jsx as M,jsxs as ve}from"react/jsx-runtime";var Cp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Rp=({data:e,className:o})=>{let[t,a]=$n(!1),[i,n]=$n(!1);Pp("Escape",()=>a(!1)),bp(()=>{if(!t)return;let m=Cp();function c(){a(!1)}function d(){a(!1),n(!0)}function p(N){let k=N.target;((k.closest&&k.closest("a"))?.getAttribute("href")||k.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let g=()=>{c()},v=history.pushState,R=history.replaceState;return history.pushState=((...N)=>{let k=v.apply(history,N);return g(),k}),history.replaceState=((...N)=>{let k=R.apply(history,N);return g(),k}),window.addEventListener("popstate",g),window.addEventListener("hashchange",d),window.addEventListener("click",p,!0),()=>{i||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),history.pushState=v,history.replaceState=R,window.removeEventListener("popstate",g),window.removeEventListener("hashchange",d),window.removeEventListener("click",p,!0)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Fa}},exit:{opacity:0,transition:{duration:.15}}};return ve("div",{className:r(o),children:[ve("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[M("span",{className:"sr-only",children:"Navigation"}),M(Oi.div,{animate:t?"hidden":"visible",variants:s,children:M("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:M("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),M(Oi.div,{animate:t?"visible":"hidden",variants:s,children:M("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:M("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),M(Np,{features:wp,children:M(yp,{mode:"wait",children:t&&ve(Oi.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[M(Gn,{data:e}),ve("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[M("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),ve("div",{className:"flex flex-nowrap",children:[M("div",{className:"flex-initial",children:M("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:M("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),M("div",{className:"ml-3 flex-initial",children:M("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:M("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),M("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),ve("ul",{className:"mb-2 text-sm text-gray-500",children:[ve("li",{className:"mb-1",children:["Hotline :\xA0",M("a",{href:`tel:${dt.Support.Hotline}`,className:"text-gray-600",children:dt.Support.Hotline_Format})]}),ve("li",{className:"mb-1",children:["Email :\xA0",M("a",{href:`mailto:${dt.Support.Email}`,className:"text-gray-600",children:dt.Support.Email})]})]}),M("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:ve("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[M("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:M("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:ve("g",{children:[M("title",{children:"Asset 1"}),M("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
121
121
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
122
122
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),M("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`})]})})}),M("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),M("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),M("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),ve("ul",{className:"mb-2 text-sm text-gray-500",children:[ve("li",{className:"mb-1",children:["Hotline :\xA0",M("a",{className:"text-gray-600",href:`tel:${vt.Business.Phome}`,children:vt.Business.Phome_Format})]}),ve("li",{className:"mb-1",children:["Email :\xA0",ve("a",{href:`mailto:${vt.Business.Email}`,className:"text-gray-600",children:[" ",vt.Business.Email]})]})]}),M("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:ve("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[M("div",{className:"absolute left-1 top-1 ",children:M("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),M("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),M("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},ms=Xp;import{jsx as Mo,jsxs as cs}from"react/jsx-runtime";var Yp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Mo("li",{className:"",children:Mo(na,{asChild:!0,children:cs("a",{className:i(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:r,...s,children:[o&&Mo("div",{className:"w-7 h-7 shrink-0 mt-1",children:Mo("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),cs("div",{className:" ",children:[Mo("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&Mo("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},ds=Yp;import{jsx as Ot,jsxs as Kp}from"react/jsx-runtime";var Zp=({data:e,alignDropdown:o})=>Ot(Ba,{alignDropdown:o,children:Ot(Oa,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Kp(Va,{className:"relative",children:[Ot($a,{children:t.title}),Ot(Ga,{children:Ot("ul",{className:i("grid w-[300px] grid-cols-1 p-2",t.dropDownCompact===!1&&"w-[230px]",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(r=>Ot(ds,{title:r.title,href:r.url,newTab:r.newTab,icon:t.dropDownCompact===!0?r.icon:"",children:t.dropDownCompact===!0?r.description:""},r.title))})})]},t.id):Ot(Va,{className:"relative",children:Ot(na,{href:t.url,className:Wa(),...a,children:t.title})},t.id)})})}),ps=Zp;import{Fragment as of,jsx as He,jsxs as Vt}from"react/jsx-runtime";var fs=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:r,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:m,name:c,url:d}=t||{},[p,g]=Jp(!1);return Vt(of,{children:[Vt("div",{className:i(e,"z-40 w-full flex-none lg:z-50",n?"sticky top-0":"relative"),children:[He("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),He("nav",{className:i("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0"),style:{minHeight:"var(--header-height-mobase)"},children:Vt("div",{className:"relative flex items-center",children:[l&&Vt("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[He("span",{className:"sr-only",children:"MoMo - \u1EE8ng d\u1EE5ng t\xE0i ch\xEDnh"}),He("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&Vt("a",{href:d,title:c,className:i("relative flex flex-none items-center space-x-1 rounded-none hover:opacity-80",l&&"pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-['']"),children:[He("img",{src:m,className:"h-9",alt:"MoMo"}),He("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&tf(c)})]}),He("div",{className:i("relative hidden items-center lg:ml-2 lg:flex xl:ml-4",!r&&!a&&"lg:ml-auto xl:ml-auto"),children:He(ps,{data:o,alignDropdown:s})}),Vt("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&"lg:ml-0"),children:[r&&r,a&&Vt("div",{className:"hidden sm:flex",children:[Vt(Ae,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",He(ef,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),He(Yt,{open:p,onOpenChange:()=>g(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),He(ms,{data:o,className:"lg:hidden"})]})]})})]}),He("style",{children:`
124
+ c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),M("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),M("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),M("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),ve("ul",{className:"mb-2 text-sm text-gray-500",children:[ve("li",{className:"mb-1",children:["Hotline :\xA0",M("a",{className:"text-gray-600",href:`tel:${dt.Business.Phome}`,children:dt.Business.Phome_Format})]}),ve("li",{className:"mb-1",children:["Email :\xA0",ve("a",{href:`mailto:${dt.Business.Email}`,className:"text-gray-600",children:[" ",dt.Business.Email]})]})]}),M("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:ve("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[M("div",{className:"absolute left-1 top-1 ",children:M("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),M("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),M("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},jn=Rp;import{jsx as To,jsxs as Qn}from"react/jsx-runtime";var Tp=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return To("li",{className:"",children:To(oa,{asChild:!0,children:Qn("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&&To("div",{className:"w-7 h-7 shrink-0 mt-1",children:To("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),Qn("div",{className:" ",children:[To("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&To("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Un=Tp;import{jsx as zt,jsxs as Sp}from"react/jsx-runtime";var kp=({data:e,alignDropdown:o})=>zt(La,{alignDropdown:o,children:zt(za,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Sp(Ea,{className:"relative",children:[zt(_a,{children:t.title}),zt(Ba,{children:zt("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=>zt(Un,{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):zt(Ea,{className:"relative",children:zt(oa,{href:t.url,className:Ha(),...a,children:t.title})},t.id)})})}),qn=kp;import{Fragment as Ip,jsx as Ee,jsxs as Et}from"react/jsx-runtime";var Xn=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:m,name:c,url:d}=t||{},[p,g]=Dp(!1);return Et(Ip,{children:[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:[l&&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 - \u1EE8ng d\u1EE5ng t\xE0i ch\xEDnh"}),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:r("relative flex flex-none items-center space-x-1 rounded-none hover:opacity-80",l&&"pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-['']"),children:[Ee("img",{src:m,className:"h-9",alt:"MoMo"}),Ee("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:co(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(qn,{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(Me,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",Ee(Mp,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Ee(jt,{open:p,onOpenChange:()=>g(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Ee(jn,{data:o,className:"lg:hidden"})]})]})})]}),Ee("style",{children:`
125
125
  :root{
126
126
  --nextra-navbar-height: 64px;
127
127
  }
@@ -129,22 +129,22 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
129
129
  scroll-behavior: smooth;
130
130
  scroll-padding-top: var(--nextra-navbar-height);
131
131
  }
132
- `})]})};fs.displayName="HeaderNavigation";import{useState as af}from"react";import{Fragment as nf,jsx as u,jsxs as k}from"react/jsx-runtime";var gs=({item:e})=>u("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&&u("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:u("img",{src:e.icon,className:"absolute inset-0"})}),u("span",{className:"block ",children:e.title})]})}),rf=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=af(null);return k(nf,{children:[u("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",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:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>u(gs,{item:r},n))]}),k("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),u("div",{className:"flex flex-wrap",children:o?.lists?.map((r,n)=>u(gs,{item:r},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:[u("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:[u("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),u("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:$i.Address})]}),k("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Hotline}`,children:de.Support.Hotline_Format}),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:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${de.Support.Email}`,children:de.Support.Email})]}),k("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_1}`,children:de.Support.Phone_Ext_1_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_2}`,children:de.Support.Phone_Ext_2_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_3}`,children:de.Support.Phone_Ext_3_Format}),u("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),u("div",{className:"mt-3 flex",children:u("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:k("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[u("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:u("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:k("g",{children:[u("title",{children:"Asset 1"}),u("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
132
+ `})]})};Xn.displayName="HeaderNavigation";import{useState as Ap}from"react";import{Fragment as zp,jsx as u,jsxs as T}from"react/jsx-runtime";var Yn=({item:e})=>u("div",{className:"mt-3 flex w-full text-sm",children:T("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&u("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:u("img",{src:e.icon,className:"absolute inset-0"})}),u("span",{className:"block ",children:e.title})]})}),Lp=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=Ap(null);return T(zp,{children:[u("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:T("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:[T("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((i,n)=>u(Yn,{item:i},n))]}),T("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),u("div",{className:"flex flex-wrap",children:o?.lists?.map((i,n)=>u(Yn,{item:i},n))})]}),T("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[T("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),T("div",{className:"mt-2 text-sm md:mt-3",children:[u("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),u("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:Pr.Address})]}),T("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Hotline}`,children:de.Support.Hotline_Format}),T("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),T("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${de.Support.Email}`,children:de.Support.Email})]}),T("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_1}`,children:de.Support.Phone_Ext_1_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_2}`,children:de.Support.Phone_Ext_2_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_3}`,children:de.Support.Phone_Ext_3_Format}),u("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),u("div",{className:"mt-3 flex",children:u("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:T("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[u("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:u("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:T("g",{children:[u("title",{children:"Asset 1"}),u("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
133
133
  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
134
134
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),u("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
135
135
  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
136
- c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),u("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),k("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),k("div",{className:"mt-2 text-sm md:mt-3",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Business.Phome}`,children:de.Business.Phome_Format})]}),k("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${de.Business.Email}`,children:de.Business.Email})]}),k("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Website : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),u("div",{className:"mt-3 flex",children:u("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:k("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[u("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:k("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[u("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),u("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),u("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),u("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),u("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),u("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),u("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),u("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),u("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),u("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),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:[u("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),u("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Vo&&Vo.map((r,n)=>u("li",{className:"inline-block",children:u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:u("img",{src:r.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),k("div",{className:"h-auto",children:[u("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),k("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[u("div",{className:"relative hidden h-24 w-24 grow-0 overflow-hidden rounded-sm bg-white md:block lg:h-20 lg:w-20",children:u("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),u("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:xr&&xr.map((r,n)=>k("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${r.Image}) center center / contain no-repeat`},children:[u(Ae,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:r.Name}),u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),u(Yt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:r.Link})]},n))}),u("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Vo&&Vo.map((r,n)=>u("li",{children:u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:u("img",{alt:r.Name,src:r.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),k("div",{className:"hidden h-auto md:block",children:[u("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),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()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),u("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:k("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[k("div",{className:" relative ",children:[u("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:" absolute left-0 top-0 mt-0.5 block h-9 w-9",alt:"MoMo"}),k("div",{className:" md:pl-12",children:[u("div",{className:"mb-1 h-10 pl-12 text-sm text-white text-opacity-80 md:h-auto md:pl-0 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),u("div",{className:"text-sm text-white text-opacity-50 lg:leading-normal",children:"Tr\u1EE5 s\u1EDF ch\xEDnh: T\u1EA7ng 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 \u0111\u01B0\u1EDDng Ho\xE0ng V\u0103n Th\xE1i, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),k("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",u("strong",{children:"MoMo"})]}),k("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),k("div",{className:"text-sm text-white text-opacity-50",children:[k("div",{children:["D\u1ECBch v\u1EE5 trung gian thanh to\xE1n do Ng\xE2n h\xE0ng Nh\xE0 n\u01B0\u1EDBc c\u1EA5p ph\xE9p \u0111\u01B0\u1EE3c cung \u1EE9ng th\xF4ng qua\xA0",u("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),k("ul",{className:" mt-0.5 ",children:[u("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),u("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),u("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),k("div",{className:" flex items-center justify-between md:hidden",children:[k("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),u("style",{children:`
136
+ c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),u("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),T("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),T("div",{className:"mt-2 text-sm md:mt-3",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Business.Phome}`,children:de.Business.Phome_Format})]}),T("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${de.Business.Email}`,children:de.Business.Email})]}),T("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Website : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),u("div",{className:"mt-3 flex",children:u("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:T("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[u("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:T("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[u("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),u("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),u("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),u("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),u("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),u("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),u("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),u("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),u("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),u("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),T("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:[T("div",{className:"h-auto",children:[u("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),u("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:_o&&_o.map((i,n)=>u("li",{className:"inline-block",children:u("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:u("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),T("div",{className:"h-auto",children:[u("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),T("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[u("div",{className:"relative hidden h-24 w-24 grow-0 overflow-hidden rounded-sm bg-white md:block lg:h-20 lg:w-20",children:u("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),u("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:ri&&ri.map((i,n)=>T("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[u(Me,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),u("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),u(jt,{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))}),u("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:_o&&_o.map((i,n)=>u("li",{children:u("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:u("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),T("div",{className:"hidden h-auto md:block",children:[u("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),T("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[T("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),u("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:T("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[T("div",{className:" relative ",children:[u("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:" absolute left-0 top-0 mt-0.5 block h-9 w-9",alt:"MoMo"}),T("div",{className:" md:pl-12",children:[u("div",{className:"mb-1 h-10 pl-12 text-sm text-white text-opacity-80 md:h-auto md:pl-0 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),u("div",{className:"text-sm text-white text-opacity-50 lg:leading-normal",children:"Tr\u1EE5 s\u1EDF ch\xEDnh: T\u1EA7ng 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 \u0111\u01B0\u1EDDng Ho\xE0ng V\u0103n Th\xE1i, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),T("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",u("strong",{children:"MoMo"})]}),T("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),T("div",{className:"text-sm text-white text-opacity-50",children:[T("div",{children:["D\u1ECBch v\u1EE5 trung gian thanh to\xE1n do Ng\xE2n h\xE0ng Nh\xE0 n\u01B0\u1EDBc c\u1EA5p ph\xE9p \u0111\u01B0\u1EE3c cung \u1EE9ng th\xF4ng qua\xA0",u("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),T("ul",{className:" mt-0.5 ",children:[u("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),u("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),u("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),T("div",{className:" flex items-center justify-between md:hidden",children:[T("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),u("style",{children:`
137
137
  footer .button-download {
138
138
  max-width: 150px;
139
139
  }
140
- `})]})},us=rf;import{jsx as vs}from"react/jsx-runtime";var sf=({className:e,primaryMenu:o,secondaryMenu:t})=>vs("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:vs(us,{primaryMenu:o,secondaryMenu:t})});import*as ao from"react";import{jsx as Io}from"react/jsx-runtime";var hs=ao.forwardRef(({className:e,...o},t)=>Io("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));hs.displayName="Card";var xs=ao.forwardRef(({className:e,...o},t)=>Io("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));xs.displayName="CardHeader";var bs=ao.forwardRef(({className:e,...o},t)=>Io("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));bs.displayName="CardTitle";var ys=ao.forwardRef(({className:e,...o},t)=>Io("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));ys.displayName="CardDescription";var ws=ao.forwardRef(({className:e,...o},t)=>Io("div",{ref:t,className:i("p-6 pt-0",e),...o}));ws.displayName="CardContent";var Ns=ao.forwardRef(({className:e,...o},t)=>Io("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));Ns.displayName="CardFooter";import*as _e from"react";import{Command as we}from"cmdk";import{XCircleIcon as lf,MagnifyingGlassIcon as mf}from"@heroicons/react/16/solid";import{jsx as Te,jsxs as df}from"react/jsx-runtime";var ai=_e.forwardRef(({className:e,...o},t)=>Te(we,{ref:t,className:i("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ai.displayName=we.displayName;var cf=({children:e,...o})=>Te($e,{...o,children:Te(Le,{className:"overflow-hidden p-0 shadow-lg",children:Te(ai,{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})})}),Ps=_e.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=_e.useRef(null),[s,l]=_e.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return df("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Te(mf,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Te(we.Input,{ref:r,className:i("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),Te(lf,{onClick:m,className:i("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Ps.displayName=we.Input.displayName;var Cs=_e.forwardRef(({className:e,...o},t)=>Te(we.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Cs.displayName=we.List.displayName;var Rs=_e.forwardRef((e,o)=>Te(we.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Rs.displayName=we.Empty.displayName;var Ts=_e.forwardRef(({className:e,...o},t)=>Te(we.Group,{ref:t,className:i("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));Ts.displayName=we.Group.displayName;var ks=_e.forwardRef(({className:e,...o},t)=>Te(we.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));ks.displayName=we.Separator.displayName;var Ss=_e.forwardRef(({className:e,children:o,...t},a)=>Te(we.Item,{ref:a,className:i("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));Ss.displayName=we.Item.displayName;var Ds=({className:e,...o})=>Te("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Ds.displayName="CommandShortcut";import{ChevronDownIcon as pf}from"@heroicons/react/16/solid";import{jsx as Ua,jsxs as Ms}from"react/jsx-runtime";var ff=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>Ms("div",{className:"relative",children:[Ms(Xo,{className:i("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||r,Ua(pf,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&Ua("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),gf=({children:e,className:o,...t})=>Ua(To,{className:i("border-none !p-0",o),...t,children:e}),uf=({open:e,onOpenChange:o,children:t,...a})=>Ua(qo,{open:e,onOpenChange:o,...a,children:t});import{forwardRef as vf}from"react";import{InformationCircleIcon as hf}from"@heroicons/react/24/outline";import{cva as As}from"class-variance-authority";import xf from"html-react-parser";import{jsx as ri,jsxs as Is}from"react/jsx-runtime";var bf=As("flex items-center space-x-2 rounded-md border px-3 py-2 text-sm text-gray-700 ",{variants:{typeDiv:{neutral:"border-gray-300 bg-gray-50 ",error:"border-red-300 bg-red-50",success:"border-green-300 bg-green-50",warning:"border-yellow-300 bg-yellow-50",info:"border-blue-300 bg-blue-50"},disabled:{true:"pointer-events-none border-gray-300 bg-gray-50 text-gray-400 opacity-55"}},defaultVariants:{typeDiv:"neutral"}}),yf=As("h-5 w-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),ca=vf(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...m},c)=>Is("div",{ref:c,className:i("",r,bf({typeDiv:e,disabled:n})),...m,children:[Is("div",{className:"flex items-center space-x-2",children:[l||ri(hf,{className:i(yf({typeIcon:e,disabled:n})),width:20,height:20}),o&&ri("div",{children:xf(o)})]}),t&&ri(fe,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));import{forwardRef as wf,useEffect as Nf,useRef as Pf,useState as Cf}from"react";import{MagnifyingGlassIcon as Rf}from"@heroicons/react/20/solid";import{XCircleIcon as Tf}from"@heroicons/react/24/outline";import{jsx as Ao,jsxs as Ls}from"react/jsx-runtime";var kf=wf(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:c="text",...d},p)=>{let[g,v]=Cf(!1),P=Pf(null),w=F=>{F&&!g&&v(!0),!F&&g&&v(!1)},C=F=>{w(F.target.value),r?.(F)},z=F=>{w(F.target.value),n?.(F)},_=()=>{let F=P.current?.querySelector("input");F&&(s?.(F.value),F.value="",F.focus(),v(!1))};return Nf(()=>{w(m||l)},[l,m]),Ls("div",{className:i(o),ref:P,children:[Ls("div",{className:"relative flex items-center",children:[Ao("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:Ao(Rf,{className:"w-4 h-4 text-gray-500"})}),Ao("input",{disabled:e,type:c,ref:p,className:i("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:C,onFocus:z,value:l,defaultValue:m,...d}),g&&Ao("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:_,children:Ao(Tf,{strokeWidth:2,width:20,height:20})})]}),Ao("style",{children:`
140
+ `})]})},Zn=Lp;import{jsx as Kn}from"react/jsx-runtime";var Ep=({className:e,primaryMenu:o,secondaryMenu:t})=>Kn("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Kn(Zn,{primaryMenu:o,secondaryMenu:t})});import*as Kt from"react";import{jsx as ko}from"react/jsx-runtime";var Jn=Kt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Jn.displayName="Card";var es=Kt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));es.displayName="CardHeader";var ts=Kt.forwardRef(({className:e,...o},t)=>ko("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));ts.displayName="CardTitle";var os=Kt.forwardRef(({className:e,...o},t)=>ko("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));os.displayName="CardDescription";var as=Kt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:r("p-6 pt-0",e),...o}));as.displayName="CardContent";var is=Kt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));is.displayName="CardFooter";import*as He from"react";import{Command as we}from"cmdk";import{XCircleIcon as Hp,MagnifyingGlassIcon as _p}from"@heroicons/react/16/solid";import{jsx as Ce,jsxs as Fp}from"react/jsx-runtime";var Vi=He.forwardRef(({className:e,...o},t)=>Ce(we,{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}));Vi.displayName=we.displayName;var Bp=({children:e,...o})=>Ce(Fe,{...o,children:Ce(Ie,{className:"overflow-hidden p-0 shadow-lg",children:Ce(Vi,{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})})}),rs=He.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=He.useRef(null),[s,l]=He.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return Fp("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Ce(_p,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Ce(we.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}),Ce(Hp,{onClick:m,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});rs.displayName=we.Input.displayName;var ns=He.forwardRef(({className:e,...o},t)=>Ce(we.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));ns.displayName=we.List.displayName;var ss=He.forwardRef((e,o)=>Ce(we.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));ss.displayName=we.Empty.displayName;var ls=He.forwardRef(({className:e,...o},t)=>Ce(we.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}));ls.displayName=we.Group.displayName;var ms=He.forwardRef(({className:e,...o},t)=>Ce(we.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));ms.displayName=we.Separator.displayName;var cs=He.forwardRef(({className:e,children:o,...t},a)=>Ce(we.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}));cs.displayName=we.Item.displayName;var ds=({className:e,...o})=>Ce("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});ds.displayName="CommandShortcut";import{ChevronDownIcon as Op}from"@heroicons/react/16/solid";import{jsx as Oa,jsxs as ps}from"react/jsx-runtime";var Vp=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>ps("div",{className:"relative",children:[ps(jo,{className:r("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||i,Oa(Op,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&Oa("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Wp=({children:e,className:o,...t})=>Oa(No,{className:r("border-none !p-0",o),...t,children:e}),Gp=({open:e,onOpenChange:o,children:t,...a})=>Oa($o,{open:e,onOpenChange:o,...a,children:t});import{forwardRef as $p}from"react";import{InformationCircleIcon as jp}from"@heroicons/react/24/outline";import{cva as gs}from"class-variance-authority";import Qp from"html-react-parser";import{jsx as Wi,jsxs as fs}from"react/jsx-runtime";var Up=gs("flex items-center space-x-2 rounded-md border px-3 py-2 text-sm text-gray-700 ",{variants:{typeDiv:{neutral:"border-gray-300 bg-gray-50 ",error:"border-red-300 bg-red-50",success:"border-green-300 bg-green-50",warning:"border-yellow-300 bg-yellow-50",info:"border-blue-300 bg-blue-50"},disabled:{true:"pointer-events-none border-gray-300 bg-gray-50 text-gray-400 opacity-55"}},defaultVariants:{typeDiv:"neutral"}}),qp=gs("h-5 w-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),na=$p(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...m},c)=>fs("div",{ref:c,className:r("",i,Up({typeDiv:e,disabled:n})),...m,children:[fs("div",{className:"flex items-center space-x-2",children:[l||Wi(jp,{className:r(qp({typeIcon:e,disabled:n})),width:20,height:20}),o&&Wi("div",{children:Qp(o)})]}),t&&Wi(fe,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as Xp,useEffect as Yp,useRef as Zp,useState as Kp}from"react";import{MagnifyingGlassIcon as Jp}from"@heroicons/react/20/solid";import{XCircleIcon as ef}from"@heroicons/react/24/outline";import{jsx as So,jsxs as us}from"react/jsx-runtime";var tf=Xp(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:c="text",...d},p)=>{let[g,v]=Kp(!1),R=Zp(null),N=L=>{L&&!g&&v(!0),!L&&g&&v(!1)},k=L=>{N(L.target.value),i?.(L)},E=L=>{N(L.target.value),n?.(L)},O=()=>{let L=R.current?.querySelector("input");L&&(s?.(L.value),L.value="",L.focus(),v(!1))};return Yp(()=>{N(m||l)},[l,m]),us("div",{className:r(o),ref:R,children:[us("div",{className:"relative flex items-center",children:[So("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:So(Jp,{className:"w-4 h-4 text-gray-500"})}),So("input",{disabled:e,type:c,ref:p,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:k,onFocus:E,value:l,defaultValue:m,...d}),g&&So("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:O,children:So(ef,{strokeWidth:2,width:20,height:20})})]}),So("style",{children:`
141
141
  .mobase-text-input-box:hover {
142
142
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
143
143
  }
144
144
  .mobase-text-input-box:focus {
145
145
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
146
146
  }
147
- `})]})});import*as ke from"@radix-ui/react-dialog";import zs,{useContext as Sf,useEffect as Fs,useState as ii}from"react";import{X as Df}from"lucide-react";import Mf from"lodash";import{jsx as re,jsxs as It}from"react/jsx-runtime";var Es=zs.createContext(void 0);function Hs(){let e=Sf(Es);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var ni=({children:e,open:o,onOpenChange:t,className:a})=>re(Es.Provider,{value:{open:o,onOpenChange:t},children:re(ke.Root,{open:o,onOpenChange:t,children:re("div",{className:i("lightbox-gallery",a),children:e})})}),If=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=Hs(),m=()=>{n?.(),l&&l(!0)};return It(ke.Trigger,{className:i("",a),onClick:m,children:[e,re(E,{ratio:s,className:"rounded-lg cursor-pointer",children:re("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},_s=zs.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=Hs(),n=()=>{r&&r(!1)};return It(ke.Portal,{children:[re(ke.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),It(ke.Content,{ref:a,className:i("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,It(ke.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[re(Df,{className:"h-4 w-4 mt-0.5"}),re("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});_s.displayName=ke.Content.displayName;var si=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=ii(""),[l,m]=ii(),[c,d]=ii(0);Fs(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=g=>{let v=Mf.filter(e,(w,C)=>C===(g>0?g-1:g)),P=v.length>0?v[0]?.titleImage:"";s(P)};return Fs(()=>{p(c)},[c]),It(_s,{className:"flex py-0",children:[It("div",{className:" flex-1 relative",children:[It("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),It(ge,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[re(ue,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,v)=>re(le,{className:"pl-6 md:pl-4",children:It("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[re("div",{className:"flex-1 relative",children:re("img",{src:g.url,alt:"",className:"absolute h-full w-full object-contain"})}),re("div",{className:"flex-0",children:re("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:re("div",{className:"line-clamp-3",children:n})})})]})},v))}),re(No,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),re(Po,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&re("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};import*as Wt from"react";import{CheckIcon as Af}from"@heroicons/react/16/solid";import*as da from"@radix-ui/react-checkbox";import*as $t from"@radix-ui/react-radio-group";import{Circle as Lf}from"lucide-react";import{jsx as lt,jsxs as Vs}from"react/jsx-runtime";var Bs=Wt.createContext({hideIndicator:!1});function Ff(){let e=Wt.useContext(Bs);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var qa=Wt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>lt(Bs.Provider,{value:{hideIndicator:o},children:lt($t.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));qa.displayName=$t.Root.displayName;var Xa=Wt.forwardRef(({className:e,children:o,...t},a)=>{let r=Ff(),{hideIndicator:n}=r??{};return Vs($t.Item,{ref:a,className:i("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[lt("div",{className:"min-w-0 flex-1",children:o}),!n&&lt("div",{className:i("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:lt($t.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:lt(Lf,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Xa.displayName=$t.Item.displayName;var Os=Wt.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>Vs(da.Root,{ref:r,className:i("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[lt("div",{className:"min-w-0 flex-1",children:o}),!t&&lt("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:lt(da.Indicator,{className:i("flex items-center justify-center text-current"),children:lt(Af,{className:"h-4 w-4"})})})]}));Os.displayName=da.Root.displayName;import{cva as zf}from"class-variance-authority";import{jsx as Hf}from"react/jsx-runtime";var Ws=zf("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 Ef({className:e,variant:o,...t}){return Hf("div",{className:i(Ws({variant:o}),e),...t})}import*as Gs from"react";import*as pa from"@radix-ui/react-progress";import{cva as js}from"class-variance-authority";import{jsx as $s}from"react/jsx-runtime";var _f=js("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"}}),Bf=js("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"}}),Qs=Gs.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>$s(pa.Root,{ref:s,className:i("",Bf({size:a}),e),...n,children:$s(pa.Indicator,{className:i("",_f({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Qs.displayName=pa.Root.displayName;import{jsx as Of}from"react/jsx-runtime";function Ya({className:e,...o}){return Of("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Vf,jsx as ro,jsxs as Us}from"react/jsx-runtime";function li({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let r={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return ro("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return Us("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>ro("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),ro("style",{children:`
147
+ `})]})});import*as Re from"@radix-ui/react-dialog";import hs,{useContext as of,useEffect as vs,useState as Gi}from"react";import{X as af}from"lucide-react";import rf from"lodash";import{jsx as ae,jsxs as Tt}from"react/jsx-runtime";var xs=hs.createContext(void 0);function bs(){let e=of(xs);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var $i=({children:e,open:o,onOpenChange:t,className:a})=>ae(xs.Provider,{value:{open:o,onOpenChange:t},children:ae(Re.Root,{open:o,onOpenChange:t,children:ae("div",{className:r("lightbox-gallery",a),children:e})})}),nf=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=bs(),m=()=>{n?.(),l&&l(!0)};return Tt(Re.Trigger,{className:r("",a),onClick:m,children:[e,ae(_,{ratio:s,className:"rounded-lg cursor-pointer",children:ae("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},ys=hs.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=bs(),n=()=>{i&&i(!1)};return Tt(Re.Portal,{children:[ae(Re.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),Tt(Re.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,Tt(Re.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[ae(af,{className:"h-4 w-4 mt-0.5"}),ae("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});ys.displayName=Re.Content.displayName;var ji=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=Gi(""),[l,m]=Gi(),[c,d]=Gi(0);vs(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=g=>{let v=rf.filter(e,(N,k)=>k===(g>0?g-1:g)),R=v.length>0?v[0]?.titleImage:"";s(R)};return vs(()=>{p(c)},[c]),Tt(ys,{className:"flex py-0",children:[Tt("div",{className:" flex-1 relative",children:[Tt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),Tt(ge,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ae(ue,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,v)=>ae(le,{className:"pl-6 md:pl-4",children:Tt("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[ae("div",{className:"flex-1 relative",children:ae("img",{src:g.url,alt:"",className:"absolute h-full w-full object-contain"})}),ae("div",{className:"flex-0",children:ae("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:ae("div",{className:"line-clamp-3",children:n})})})]})},v))}),ae(xo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ae(bo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ae("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as Ht from"react";import{CheckIcon as sf}from"@heroicons/react/16/solid";import*as sa from"@radix-ui/react-checkbox";import*as _t from"@radix-ui/react-radio-group";import{Circle as lf}from"lucide-react";import{jsx as it,jsxs as Ps}from"react/jsx-runtime";var ws=Ht.createContext({hideIndicator:!1});function mf(){let e=Ht.useContext(ws);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Va=Ht.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>it(ws.Provider,{value:{hideIndicator:o},children:it(_t.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Va.displayName=_t.Root.displayName;var Wa=Ht.forwardRef(({className:e,children:o,...t},a)=>{let i=mf(),{hideIndicator:n}=i??{};return Ps(_t.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:[it("div",{className:"min-w-0 flex-1",children:o}),!n&&it("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:it(_t.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:it(lf,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Wa.displayName=_t.Item.displayName;var Ns=Ht.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>Ps(sa.Root,{ref:i,className:r("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[it("div",{className:"min-w-0 flex-1",children:o}),!t&&it("div",{className:"ring-offset-background h-4 w-4 shrink-0 rounded border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-300 group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:it(sa.Indicator,{className:r("flex items-center justify-center text-current"),children:it(sf,{className:"h-4 w-4"})})})]}));Ns.displayName=sa.Root.displayName;import{cva as cf}from"class-variance-authority";import{jsx as pf}from"react/jsx-runtime";var Cs=cf("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 df({className:e,variant:o,...t}){return pf("div",{className:r(Cs({variant:o}),e),...t})}import*as Ts from"react";import*as la from"@radix-ui/react-progress";import{cva as ks}from"class-variance-authority";import{jsx as Rs}from"react/jsx-runtime";var ff=ks("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"}}),gf=ks("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"}}),Ss=Ts.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>Rs(la.Root,{ref:s,className:r("",gf({size:a}),e),...n,children:Rs(la.Indicator,{className:r("",ff({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Ss.displayName=la.Root.displayName;import{jsx as uf}from"react/jsx-runtime";function Ga({className:e,...o}){return uf("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as vf,jsx as Jt,jsxs as Ds}from"react/jsx-runtime";function Qi({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 Jt("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return Ds("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>Jt("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),Jt("style",{children:`
148
148
  .spinner_dots span {
149
149
  animation-name: spinner-dots;
150
150
  animation-duration: 1.4s;
@@ -171,7 +171,7 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
171
171
  opacity: .2;
172
172
  }
173
173
  }
174
- `})]});case"default":default:return Us(Vf,{children:[ro("div",{className:i("spinner_wrapper relative size-5 overflow-hidden",r[e],t),children:ro("div",{className:i("spinner relative left-1/2 top-1/2 size-5 ",r[e],t),children:[...Array(12)].map((l,m)=>ro("div",{className:i(`spinner_bar child-${m+1}`,o)},m))})}),ro("style",{children:`
174
+ `})]});case"default":default:return Ds(vf,{children:[Jt("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:Jt("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e],t),children:[...Array(12)].map((l,m)=>Jt("div",{className:r(`spinner_bar child-${m+1}`,o)},m))})}),Jt("style",{children:`
175
175
  .spinner_bar {
176
176
  animation: spinner_spin 1.2s linear infinite;
177
177
  border-radius: 20px;
@@ -251,7 +251,7 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
251
251
  opacity: 0.15;
252
252
  }
253
253
  }
254
- `})]})}})()})}import*as qs from"react";import*as mt from"@radix-ui/react-slider";import{jsx as Gt,jsxs as Wf}from"react/jsx-runtime";var Xs=qs.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>Wf(mt.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Gt(mt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Gt(mt.Range,{className:"absolute h-full bg-pink-500"})}),Gt(mt.Thumb,{className:"group relative",children:Gt("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&Gt("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),Gt(mt.Thumb,{className:"group relative",children:Gt("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&Gt("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));Xs.displayName=mt.Root.displayName;import{forwardRef as ag}from"react";import{Fragment as Qf,jsx as Be,jsxs as Za}from"react/jsx-runtime";var $f=({author:e=""})=>Be("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Gf=({author:e,avatar:o})=>Be("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Be("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Be($f,{author:e})});function jf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return Be(Qf,{children:Za("div",{className:"flex relative items-center space-x-3",children:[Be(Gf,{avatar:e,author:o}),Za("div",{className:"flex flex-col",children:[o&&Be("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Za("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Be("div",{className:"text-gray-400",children:t}),a&&Za("div",{className:"flex items-center space-x-2",children:[Be("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Be("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&Be("div",{className:"absolute right-1 top-0",children:Be("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Ys=jf;import{useState as tl}from"react";import{StarIcon as Uf}from"@heroicons/react/20/solid";import{jsx as Zs,jsxs as Ks}from"react/jsx-runtime";var qf={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!"},Xf={1:"Kh\xF4ng h\xE0i l\xF2ng",2:"Ch\u01B0a \u01B0ng l\u1EAFm",3:"T\u1EA1m \u1ED5n",4:"H\xE0i l\xF2ng",5:"R\u1EA5t h\xE0i l\xF2ng"};function Yf({point:e,max:o,className:t}){let a=o>5?qf[e||10]:Xf[e||5];return Ks("div",{className:i("flex items-center space-x-1",t),children:[Zs(Uf,{className:"w-5 h-5 text-yellow-500"}),Zs("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Ks("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Js=Yf;import{useState as Zf}from"react";import el from"html-react-parser";import{jsx as Kf,jsxs as Jf}from"react/jsx-runtime";var mi=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,l]=Zf(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return Jf("div",{className:i(n),children:[s?el(c(e,o)):el(e),e.length>o&&Kf("span",{onClick:m,className:i("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",r),children:s?t:a})]})};import{jsx as io,jsxs as ol}from"react/jsx-runtime";function eg({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=tl(0),[m,c]=tl(!1),d=p=>{c(!0),l(p)};return ol("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&io(Js,{className:"mb-0.5",point:r.point,max:r.max}),e&&io(mi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&io("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>io("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:p}))}),o?.length>0&&ol(ni,{open:m,onOpenChange:c,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((p,g)=>io(E,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:io("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),io(si,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var al=eg;import{jsx as og}from"react/jsx-runtime";function tg({actions:e=[]}){return og("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var rl=tg;import{jsx as Ka,jsxs as ig}from"react/jsx-runtime";var rg=ag(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:p,isOutStanding:g,limitContent:v=260},P)=>ig("div",{ref:P,className:i("",c?"ml-4 py-4":"py-5"),children:[Ka(Ys,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),Ka(al,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&Ka(rl,{actions:l.filter(Boolean)}),d&&Ka("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:d})]}));import*as jt from"react";import{cva as ng}from"class-variance-authority";import{CheckIcon as sg}from"@heroicons/react/16/solid";import{XIcon as lg}from"lucide-react";import{jsx as Ne,jsxs as Ja}from"react/jsx-runtime";var mg=ng("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"}}),il=jt.createContext("default");function cg(){let e=jt.useContext(il);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var dg=jt.memo(({type:e,icon:o,stepNumber:t,size:a,isError:r,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return r?Ne(lg,{className:s}):Ja("div",{children:[e==="iconStep"&&Ne("div",{className:s,children:o}),e==="numberStep"&&Ne("div",{children:t}),e==="default"&&(n==="completed"?Ne(sg,{className:s}):Ne("div",{children:t}))]})}),pg=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=jt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return Ne("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},fg=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:l,fristStep:m,icon:c,isError:d,onValueChangeStep:p,...g})=>{let v=cg();return Ja("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[Ja("div",{className:"flex w-full items-center justify-center gap-2",children:[Ne("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),Ne("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",mg({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...g,children:Ne(dg,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),Ne("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Ja("div",{className:i("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&Ne("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&Ne("div",{className:"text-xs text-gray-500 ",children:s})]})]})},gg=({children:e,className:o,type:t="numberStep",...a})=>Ne(il.Provider,{value:t,children:Ne("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as Pe from"react";import{Slot as xg}from"@radix-ui/react-slot";import{Controller as bg,FormProvider as yg,useFormContext as wg}from"react-hook-form";import*as nl from"react";import*as ci from"@radix-ui/react-label";import{cva as ug}from"class-variance-authority";import{jsx as hg}from"react/jsx-runtime";var vg=ug("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),er=nl.forwardRef(({className:e,...o},t)=>hg(ci.Root,{ref:t,className:i(vg(),e),...o}));er.displayName=ci.Root.displayName;import{jsx as Qt}from"react/jsx-runtime";var di=yg,sl=Pe.createContext({}),pi=({...e})=>Qt(sl.Provider,{value:{name:e.name},children:Qt(bg,{...e})}),fa=()=>{let e=Pe.useContext(sl),o=Pe.useContext(ll),{getFieldState:t,formState:a}=wg(),r=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...r}},ll=Pe.createContext({}),tr=Pe.forwardRef(({className:e,...o},t)=>{let a=Pe.useId();return Qt(ll.Provider,{value:{id:a},children:Qt("div",{ref:t,className:i("space-y-2",e),...o})})});tr.displayName="FormItem";var or=Pe.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=fa();return Qt(er,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});or.displayName="FormLabel";var ar=Pe.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=fa();return Qt(xg,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});ar.displayName="FormControl";var rr=Pe.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=fa();return Qt("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});rr.displayName="FormDescription";var ir=Pe.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=fa(),s=r?String(r?.message):o;return s?Qt("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});ir.displayName="FormMessage";import*as At from"react";import*as R from"@radix-ui/react-dropdown-menu";import{ChevronRight as Ng,Check as Pg}from"lucide-react";import{jsx as he,jsxs as ga}from"react/jsx-runtime";var Cg=R.Root,Rg=R.Trigger,Tg=R.Group,kg=R.Portal,Sg=R.Sub,Dg=R.RadioGroup,ml=At.forwardRef(({className:e,inset:o,children:t,...a},r)=>ga(R.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,he(Ng,{className:"ml-auto"})]}));ml.displayName=R.SubTrigger.displayName;var cl=At.forwardRef(({className:e,...o},t)=>he(R.SubContent,{ref:t,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));cl.displayName=R.SubContent.displayName;var dl=At.forwardRef(({className:e,sideOffset:o=4,...t},a)=>he(R.Portal,{children:he(R.Content,{ref:a,sideOffset:o,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));dl.displayName=R.Content.displayName;var pl=At.forwardRef(({className:e,inset:o,...t},a)=>he(R.Item,{ref:a,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));pl.displayName=R.Item.displayName;var fl=At.forwardRef(({className:e,children:o,checked:t,...a},r)=>ga(R.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[ga("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&he("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),he(R.ItemIndicator,{children:he("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:he(Pg,{size:16,strokeWidth:3})})})]}),o]}));fl.displayName=R.CheckboxItem.displayName;var gl=At.forwardRef(({className:e,children:o,...t},a)=>ga(R.RadioItem,{ref:a,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[ga("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[he("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),he(R.ItemIndicator,{children:he("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));gl.displayName=R.RadioItem.displayName;var ul=At.forwardRef(({className:e,inset:o,...t},a)=>he(R.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));ul.displayName=R.Label.displayName;var vl=At.forwardRef(({className:e,...o},t)=>he(R.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));vl.displayName=R.Separator.displayName;var hl=({className:e,...o})=>he("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});hl.displayName="DropdownMenuShortcut";import{Slot as Mg}from"@radix-ui/react-slot";import no from"html-react-parser";var xl=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};import{Fragment as nr,jsx as A,jsxs as ct}from"react/jsx-runtime";var bl=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>ct(nr,{children:[e&&A(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&A("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>A("div",{className:i("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:ct("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:[A("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:r+1}),ct("div",{className:"mt-6 w-full",children:[A("div",{className:"w-full text-xl font-semibold",children:no(a.title)}),a?.description&&A("div",{className:"mt-2 text-base text-gray-600",children:no(a.description)})]})]})},r))}),t&&A(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ig=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>ct(nr,{children:[e&&A(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&A("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>ct("div",{className:i("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[ct("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[A("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:r+1}),a?.image&&A("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:A(E,{ratio:1,children:A("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),ct("div",{className:"mt-6 w-full",children:[A("div",{className:"w-full text-xl font-semibold",children:no(a.title)}),a?.description&&A("div",{className:"mt-2 text-base text-gray-600",children:no(a.description)})]})]},r))}),t&&A(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ag=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>ct(nr,{children:[e&&A(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&A("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4 ",children:o.map((a,r)=>ct("div",{className:i("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&A("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?xl(a.image)?A("img",{src:a.image,className:"block object-cover"}):A(Mg,{className:"h-6 w-6 stroke-white stroke-2",children:no(a.image.replace(/\n|\r/g,""))}):a.image}),ct("div",{className:"mt-4 w-full md:mt-6",children:[A("div",{className:"w-full text-xl font-semibold",children:no(a.title)}),a?.description&&A("div",{className:"mt-2 text-base text-gray-600",children:no(a.description)})]})]},r))}),t&&A(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Lg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return A(bl,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return A(Ig,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return A(Ag,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return A(bl,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Fg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>A(nr,{children:Lg({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),zg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>A(O,{className:t,idSection:a,background:o,children:A(Fg,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as Eg}from"class-variance-authority";import yl from"html-react-parser";import{CheckIcon as wl}from"lucide-react";import{Fragment as fi,jsx as xe,jsxs as Nl}from"react/jsx-runtime";var Hg=Eg("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}}),_g=({template:e,name:o,image:t,isFeatures:a})=>xe(fi,{children:(()=>{switch(e){case 1:case 2:return xe(fi,{children:Nl("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?xe("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:xe("img",{src:t,alt:"",className:"max-w-full"})}):xe("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:xe(wl,{className:"h-4 w-4 text-pink-500"})}),o&&xe("div",{className:"ml-2 ",children:yl(o)})]})});case 3:return Nl("li",{className:"flex h-full space-x-4",children:[t?xe("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:xe("img",{src:t,alt:"",className:"max-w-full"})}):xe("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:xe(wl,{className:"h-4 w-4 text-pink-500"})}),o&&xe("div",{className:"my-auto ml-2 md:my-0",children:yl(o)})]});default:return null}})()}),sr=({dataFeatures:e,template:o=1})=>xe(fi,{children:(e?.length??0)>0&&xe("ul",{className:i("",Hg({template:o})),children:e?.map((t,a)=>xe(_g,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as Bg}from"lucide-react";import{jsx as K,jsxs as ua}from"react/jsx-runtime";var Pl=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Og=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>ua(uo,{children:[K(Ze,{greaterThan:"sm",children:ua(E,{className:i(""),ratio:Pl(o),children:[K("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&ua($e,{children:[K(Go,{onClick:r,children:K("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:K("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:ua("g",{fill:"none",fillRule:"evenodd",children:[K("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),K("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),K(Le,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:ua(Je,{className:"relative bg-transparent p-4 text-center",children:[K("div",{className:"aspect-[16/9] w-full p-0",children:K("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),K(wr,{asChild:!0,children:K(ie,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:K(Bg,{className:"h-6 w-6"})})})]})})]})]})}),a&&K(Ze,{lessThan:"md",children:K("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:K("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),lr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>K("div",{className:a,children:n?K(Og,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):K(E,{ratio:Pl(t),children:K("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});import Vg from"html-react-parser";import{Fragment as $g,jsx as mr,jsxs as gi}from"react/jsx-runtime";var Wg=({value:e,suffix:o,unit:t,description:a,idx:r})=>gi("div",{className:i(""),children:[e&&gi("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&gi("span",{children:[o," ",t]})]}),a&&mr("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:Vg(a)})]}),cr=({dataStats:e})=>mr($g,{children:(e?.length??0)>0&&mr("ul",{className:i("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>mr(Wg,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Cl,jsx as J,jsxs as va}from"react/jsx-runtime";var ui=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>va("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[va("div",{className:"col-span-1 ",children:[J(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),J(sr,{dataFeatures:t,template:a}),o&&J(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),J(cr,{dataStats:r})]}),J("div",{className:"col-span-1 md:pl-10",children:s||J(lr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Rl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>va("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[J("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||J(lr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),va("div",{className:"order-1 col-span-1 md:order-2",children:[J(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),J(sr,{dataFeatures:t,template:a}),o&&J("div",{className:"flex w-full items-center justify-center md:justify-start",children:J(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),J(cr,{dataStats:r})]})]}),Tl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>va(Cl,{children:[J(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),o&&J(x,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),J(sr,{dataFeatures:t,template:a}),J("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:J(cr,{dataStats:r})}),s||J(Cl,{children:n?.src&&J(lr,{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 qg,jsx as so}from"react/jsx-runtime";var Gg=`var(
254
+ `})]})}})()})}import*as Ms from"react";import*as rt from"@radix-ui/react-slider";import{jsx as Bt,jsxs as hf}from"react/jsx-runtime";var Is=Ms.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>hf(rt.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Bt(rt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Bt(rt.Range,{className:"absolute h-full bg-pink-500"})}),Bt(rt.Thumb,{className:"group relative",children:Bt("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&Bt("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),Bt(rt.Thumb,{className:"group relative",children:Bt("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&Bt("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));Is.displayName=rt.Root.displayName;import{forwardRef as Af}from"react";import{Fragment as wf,jsx as _e,jsxs as $a}from"react/jsx-runtime";var xf=({author:e=""})=>_e("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),bf=({author:e,avatar:o})=>_e("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?_e("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):_e(xf,{author:e})});function yf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return _e(wf,{children:$a("div",{className:"flex relative items-center space-x-3",children:[_e(bf,{avatar:e,author:o}),$a("div",{className:"flex flex-col",children:[o&&_e("div",{className:"font-semibold text-gray-900 text-sm",children:o}),$a("div",{className:"flex items-center space-x-2 text-xs",children:[t&&_e("div",{className:"text-gray-400",children:t}),a&&$a("div",{className:"flex items-center space-x-2",children:[_e("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),_e("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&_e("div",{className:"absolute right-1 top-0",children:_e("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var As=yf;import{useState as _s}from"react";import{StarIcon as Nf}from"@heroicons/react/20/solid";import{jsx as Ls,jsxs as zs}from"react/jsx-runtime";var Pf={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!"},Cf={1:"Kh\xF4ng h\xE0i l\xF2ng",2:"Ch\u01B0a \u01B0ng l\u1EAFm",3:"T\u1EA1m \u1ED5n",4:"H\xE0i l\xF2ng",5:"R\u1EA5t h\xE0i l\xF2ng"};function Rf({point:e,max:o,className:t}){let a=o>5?Pf[e||10]:Cf[e||5];return zs("div",{className:r("flex items-center space-x-1",t),children:[Ls(Nf,{className:"w-5 h-5 text-yellow-500"}),Ls("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),zs("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Es=Rf;import{useState as Tf}from"react";import Hs from"html-react-parser";import{jsx as kf,jsxs as Sf}from"react/jsx-runtime";var Ui=({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]=Tf(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return Sf("div",{className:r(n),children:[s?Hs(c(e,o)):Hs(e),e.length>o&&kf("span",{onClick:m,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as eo,jsxs as Bs}from"react/jsx-runtime";function Df({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=_s(0),[m,c]=_s(!1),d=p=>{c(!0),l(p)};return Bs("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&eo(Es,{className:"mb-0.5",point:i.point,max:i.max}),e&&eo(Ui,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&eo("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>eo("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&&Bs($i,{open:m,onOpenChange:c,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((p,g)=>eo(_,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:eo("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),eo(ji,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Fs=Df;import{jsx as If}from"react/jsx-runtime";function Mf({actions:e=[]}){return If("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Os=Mf;import{jsx as ja,jsxs as zf}from"react/jsx-runtime";var Lf=Af(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:p,isOutStanding:g,limitContent:v=260},R)=>zf("div",{ref:R,className:r("",c?"ml-4 py-4":"py-5"),children:[ja(As,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),ja(Fs,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&ja(Os,{actions:l.filter(Boolean)}),d&&ja("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:d})]}));import*as Ft from"react";import{cva as Ef}from"class-variance-authority";import{CheckIcon as Hf}from"@heroicons/react/16/solid";import{XIcon as _f}from"lucide-react";import{jsx as Ne,jsxs as Qa}from"react/jsx-runtime";var Bf=Ef("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"}}),Vs=Ft.createContext("default");function Ff(){let e=Ft.useContext(Vs);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Of=Ft.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?Ne(_f,{className:s}):Qa("div",{children:[e==="iconStep"&&Ne("div",{className:s,children:o}),e==="numberStep"&&Ne("div",{children:t}),e==="default"&&(n==="completed"?Ne(Hf,{className:s}):Ne("div",{children:t}))]})}),Vf=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Ft.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return Ne("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Wf=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:m,icon:c,isError:d,onValueChangeStep:p,...g})=>{let v=Ff();return Qa("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[Qa("div",{className:"flex w-full items-center justify-center gap-2",children:[Ne("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),Ne("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Bf({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",i),...g,children:Ne(Of,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),Ne("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Qa("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&Ne("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&Ne("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Gf=({children:e,className:o,type:t="numberStep",...a})=>Ne(Vs.Provider,{value:t,children:Ne("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as kt from"react";import*as w from"@radix-ui/react-dropdown-menu";import{ChevronRight as $f,Check as jf}from"lucide-react";import{jsx as he,jsxs as ma}from"react/jsx-runtime";var Qf=w.Root,Uf=w.Trigger,qf=w.Group,Xf=w.Portal,Yf=w.Sub,Zf=w.RadioGroup,Ws=kt.forwardRef(({className:e,inset:o,children:t,...a},i)=>ma(w.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,he($f,{className:"ml-auto"})]}));Ws.displayName=w.SubTrigger.displayName;var Gs=kt.forwardRef(({className:e,...o},t)=>he(w.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}));Gs.displayName=w.SubContent.displayName;var $s=kt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>he(w.Portal,{children:he(w.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})}));$s.displayName=w.Content.displayName;var js=kt.forwardRef(({className:e,inset:o,...t},a)=>he(w.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}));js.displayName=w.Item.displayName;var Qs=kt.forwardRef(({className:e,children:o,checked:t,...a},i)=>ma(w.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[ma("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&he("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),he(w.ItemIndicator,{children:he("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:he(jf,{size:16,strokeWidth:3})})})]}),o]}));Qs.displayName=w.CheckboxItem.displayName;var Us=kt.forwardRef(({className:e,children:o,...t},a)=>ma(w.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[ma("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[he("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),he(w.ItemIndicator,{children:he("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));Us.displayName=w.RadioItem.displayName;var qs=kt.forwardRef(({className:e,inset:o,...t},a)=>he(w.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));qs.displayName=w.Label.displayName;var Xs=kt.forwardRef(({className:e,...o},t)=>he(w.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));Xs.displayName=w.Separator.displayName;var Ys=({className:e,...o})=>he("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});Ys.displayName="DropdownMenuShortcut";import{Slot as Kf}from"@radix-ui/react-slot";import to from"html-react-parser";var Zs=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};import{Fragment as Ua,jsx as A,jsxs as nt}from"react/jsx-runtime";var Ks=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>nt(Ua,{children:[e&&A(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&A("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>A("div",{className:r("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:nt("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:[A("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}),nt("div",{className:"mt-6 w-full",children:[A("div",{className:"w-full text-xl font-semibold",children:to(a.title)}),a?.description&&A("div",{className:"mt-2 text-base text-gray-600",children:to(a.description)})]})]})},i))}),t&&A(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Jf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>nt(Ua,{children:[e&&A(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&A("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>nt("div",{className:r("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[nt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[A("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&&A("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:A(_,{ratio:1,children:A("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),nt("div",{className:"mt-6 w-full",children:[A("div",{className:"w-full text-xl font-semibold",children:to(a.title)}),a?.description&&A("div",{className:"mt-2 text-base text-gray-600",children:to(a.description)})]})]},i))}),t&&A(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),eg=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>nt(Ua,{children:[e&&A(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&A("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4 ",children:o.map((a,i)=>nt("div",{className:r("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&A("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?Zs(a.image)?A("img",{src:a.image,className:"block object-cover"}):A(Kf,{className:"h-6 w-6 stroke-white stroke-2",children:to(a.image.replace(/\n|\r/g,""))}):a.image}),nt("div",{className:"mt-4 w-full md:mt-6",children:[A("div",{className:"w-full text-xl font-semibold",children:to(a.title)}),a?.description&&A("div",{className:"mt-2 text-base text-gray-600",children:to(a.description)})]})]},i))}),t&&A(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),tg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return A(Ks,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return A(Jf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return A(eg,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return A(Ks,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},og=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>A(Ua,{children:tg({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),ag=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>A(V,{className:t,idSection:a,background:o,children:A(og,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{cva as ig}from"class-variance-authority";import Js from"html-react-parser";import{CheckIcon as el}from"lucide-react";import{Fragment as qi,jsx as xe,jsxs as tl}from"react/jsx-runtime";var rg=ig("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-1 gap-y-3 ",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),ng=({template:e,name:o,image:t,isFeatures:a})=>xe(qi,{children:(()=>{switch(e){case 1:case 2:return xe(qi,{children:tl("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?xe("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:xe("img",{src:t,alt:"",className:"max-w-full"})}):xe("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:xe(el,{className:"h-4 w-4 text-pink-500"})}),o&&xe("div",{className:"ml-2 ",children:Js(o)})]})});case 3:return tl("li",{className:"flex h-full space-x-4",children:[t?xe("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:xe("img",{src:t,alt:"",className:"max-w-full"})}):xe("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:xe(el,{className:"h-4 w-4 text-pink-500"})}),o&&xe("div",{className:"my-auto ml-2 md:my-0",children:Js(o)})]});default:return null}})()}),qa=({dataFeatures:e,template:o=1})=>xe(qi,{children:(e?.length??0)>0&&xe("ul",{className:r("",rg({template:o})),children:e?.map((t,a)=>xe(ng,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as sg}from"lucide-react";import{jsx as Z,jsxs as ca}from"react/jsx-runtime";var ol=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,lg=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>ca(mo,{children:[Z(Ue,{greaterThan:"sm",children:ca(_,{className:r(""),ratio:ol(o),children:[Z("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&ca(Fe,{children:[Z(Oo,{onClick:i,children:Z("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:Z("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:ca("g",{fill:"none",fillRule:"evenodd",children:[Z("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),Z("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),Z(Ie,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:ca(Xe,{className:"relative bg-transparent p-4 text-center",children:[Z("div",{className:"aspect-[16/9] w-full p-0",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),Z(li,{asChild:!0,children:Z(re,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:Z(sg,{className:"h-6 w-6"})})})]})})]})]})}),a&&Z(Ue,{lessThan:"md",children:Z("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),Xa=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>Z("div",{className:a,children:n?Z(lg,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):Z(_,{ratio:ol(t),children:Z("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});import mg from"html-react-parser";import{Fragment as dg,jsx as Ya,jsxs as Xi}from"react/jsx-runtime";var cg=({value:e,suffix:o,unit:t,description:a,idx:i})=>Xi("div",{className:r(""),children:[e&&Xi("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Xi("span",{children:[o," ",t]})]}),a&&Ya("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:mg(a)})]}),Za=({dataStats:e})=>Ya(dg,{children:(e?.length??0)>0&&Ya("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)=>Ya(cg,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as al,jsx as K,jsxs as da}from"react/jsx-runtime";var Yi=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>da("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[da("div",{className:"col-span-1 ",children:[K(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),K(qa,{dataFeatures:t,template:a}),o&&K(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),K(Za,{dataStats:i})]}),K("div",{className:"col-span-1 md:pl-10",children:s||K(Xa,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),il=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>da("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[K("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||K(Xa,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),da("div",{className:"order-1 col-span-1 md:order-2",children:[K(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),K(qa,{dataFeatures:t,template:a}),o&&K("div",{className:"flex w-full items-center justify-center md:justify-start",children:K(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),K(Za,{dataStats:i})]})]}),rl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>da(al,{children:[K(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&K(x,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),K(qa,{dataFeatures:t,template:a}),K("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:K(Za,{dataStats:i})}),s||K(al,{children:n?.src&&K(Xa,{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 vg,jsx as oo}from"react/jsx-runtime";var pg=`var(
255
255
  --gradient-pink-1,
256
256
  linear-gradient(
257
257
  38deg,
@@ -273,7 +273,7 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
273
273
  rgba(255, 255, 255, 0) 80%
274
274
  ),
275
275
  #fff
276
- )`,jg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return so(ui,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return so(Rl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return so(Tl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return so(ui,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},Qg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>so(qg,{children:jg({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),Ug=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>so(O,{className:i(l),background:m??Gg,idSection:o,children:so(Qg,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as Xg}from"react";import{Fragment as Yg,jsx as Lo,jsxs as Zg}from"react/jsx-runtime";var dr=Xg(({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:r})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9","40px":"md:gap-x-10","48px":"md:gap-x-12","56px":"md:gap-x-14","64px":"md:gap-x-16","80px":"md:gap-x-20"};return Zg(Yg,{children:[e&&Lo(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&Lo("div",{className:i("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],r?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"mx-auto max-w-xs flex-wrap justify-center md:max-w-full"),children:o?.map((s,l)=>{let m=s?.url?"a":"div",c=s?.url?{href:s.url,title:s.name,target:s.newTab?"_blank":"_self"}:{};return Lo("div",{className:i("flex max-h-28 w-auto items-center justify-center md:max-w-36 md:basis-auto md:px-0",r?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-3"),children:Lo(m,{...c,className:"group flex h-full w-full items-center justify-center",children:Lo("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:i("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105")})})},l)})}),t&&Lo(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as Kg}from"react";import{Fragment as Jg,jsx as lo,jsxs as eu}from"react/jsx-runtime";var vi=Kg(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>eu(Jg,{children:[e&&lo(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&lo("div",{className:i("list-brands flex md:flex-wrap md:justify-center md:gap-y-6",a?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"-mx-2.5 flex-wrap gap-y-5 md:-mx-3"),children:o.map((r,n)=>{let s=r?.url?"a":"div",l=r?.url?{href:r.url,title:r.name,target:r.newTab?"_blank":"_self"}:{};return lo("div",{className:i("flex items-center justify-center text-center md:basis-1/4 md:px-3",a?"shrink-0 basis-5/12 snap-center":"basis-1/2 px-2.5"),children:lo(s,{...l,className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3 duration-300 hover:border-pink-500",children:lo("div",{className:"flex w-full items-center justify-center",children:lo("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain"})})})},n)})}),t&&lo(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as tu}from"react";import{Fragment as ou,jsx as qe,jsxs as xi}from"react/jsx-runtime";var hi=(e,o)=>{if(!e)return qe("div",{className:i("h-full w-full",o)});let t=e.url?"a":"div";return qe("div",{className:i("h-full w-full",o),children:qe(t,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:i("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e.url&&"duration-300 hover:border-pink-500"),children:qe("div",{className:"flex h-full w-full items-center justify-center",children:qe("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},bi=tu(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=yo(),r=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);r.push(...o.slice(0,s)),n.push(...o.slice(s))}return xi(ou,{children:[e&&qe(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&xi(ge,{opts:{align:a?"center":"start"},className:"w-full",children:[qe(ue,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?r.map((s,l)=>xi(le,{className:"flex shrink-0 basis-5/12 flex-col items-center justify-between gap-3 pl-3 md:basis-1/4 md:gap-4 md:pl-4 lg:basis-1/6",children:[hi(s,"min-h-0 flex-1"),n[l]?hi(n[l],"min-h-0 flex-1"):qe("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>qe(le,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:hi(s)},l))}),qe(Co,{className:"mt-5"})]}),t&&qe(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as mu}from"react";import{useEffect as au,useState as yi}from"react";import{animate as kl,motion as ru,useMotionValue as iu}from"motion/react";import nu from"react-use-measure";import{jsx as lu,jsxs as su}from"react/jsx-runtime";function Fo({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=yi(t),[d,{width:p,height:g}]=nu(),v=iu(0),[P,w]=yi(!1),[C,z]=yi(0);au(()=>{let F,N=(r==="horizontal"?p:g)+o,B=n?-N/2:0,L=n?0:-N/2,We=Math.abs(L-B)/m;if(P){let Oo=Math.abs(v.get()-L)/m;F=kl(v,[v.get(),L],{ease:"linear",duration:Oo,onComplete:()=>{w(!1),z(Um=>Um+1)}})}else F=kl(v,[B,L],{ease:"linear",duration:We,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(B)}});return F?.stop},[C,v,m,p,g,o,P,r,n]);let _=a?{onHoverStart:()=>{w(!0),c(a)},onHoverEnd:()=>{w(!0),c(t)},onTouchStart:()=>{w(!0),c(a)},onTouchEnd:()=>{w(!0),c(t)}}:{};return lu("div",{className:i("overflow-hidden",s),children:su(ru.div,{className:i("flex w-max",l),style:{...r==="horizontal"?{x:v,paddingLeft:o}:{y:v},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:d,..._,children:[e,e]})})}import{Fragment as Dl,jsx as Se,jsxs as cu}from"react/jsx-runtime";var Sl=(e,o)=>{let t=e?.url?"a":"div";return Se("div",{className:i("h-full w-full",o),children:Se(t,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:i("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e?.url&&"duration-300 hover:border-pink-500"),children:Se("div",{className:"flex h-full w-full items-center justify-center",children:Se("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},wi=mu(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,r=a>6;return cu(Dl,{children:[e&&Se(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),a>0&&Se(Dl,{children:r?Se("div",{className:"mark-horizontal-slider relative overflow-hidden",children:Se(Fo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>Se("div",{className:"w-32 md:w-40",children:Sl(n)},s))})}):Se("div",{className:i("list-brands -mx-5 flex snap-x snap-mandatory flex-nowrap space-x-3 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:flex-wrap md:justify-center md:gap-y-6 md:space-x-0 md:px-0"),children:o?.map((n,s)=>Se("div",{className:"flex shrink-0 basis-5/12 snap-center items-center justify-center md:basis-1/4 md:px-3 lg:basis-1/6",children:Sl(n)},s))})}),t&&Se(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),Se("style",{children:`
276
+ )`,fg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return oo(Yi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return oo(il,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return oo(rl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return oo(Yi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},gg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>oo(vg,{children:fg({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),ug=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>oo(V,{className:r(l),background:m??pg,idSection:o,children:oo(gg,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as hg}from"react";import{Fragment as xg,jsx as Do,jsxs as bg}from"react/jsx-runtime";var Ka=hg(({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9","40px":"md:gap-x-10","48px":"md:gap-x-12","56px":"md:gap-x-14","64px":"md:gap-x-16","80px":"md:gap-x-20"};return bg(xg,{children:[e&&Do(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&Do("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"mx-auto max-w-xs flex-wrap justify-center md:max-w-full"),children:o?.map((s,l)=>{let m=s?.url?"a":"div",c=s?.url?{href:s.url,title:s.name,target:s.newTab?"_blank":"_self"}:{};return Do("div",{className:r("flex max-h-28 w-auto items-center justify-center md:max-w-36 md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-3"),children:Do(m,{...c,className:"group flex h-full w-full items-center justify-center",children:Do("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:r("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105")})})},l)})}),t&&Do(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as yg}from"react";import{Fragment as wg,jsx as ao,jsxs as Ng}from"react/jsx-runtime";var Zi=yg(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>Ng(wg,{children:[e&&ao(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&ao("div",{className:r("list-brands flex md:flex-wrap md:justify-center md:gap-y-6",a?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"-mx-2.5 flex-wrap gap-y-5 md:-mx-3"),children:o.map((i,n)=>{let s=i?.url?"a":"div",l=i?.url?{href:i.url,title:i.name,target:i.newTab?"_blank":"_self"}:{};return ao("div",{className:r("flex items-center justify-center text-center md:basis-1/4 md:px-3",a?"shrink-0 basis-5/12 snap-center":"basis-1/2 px-2.5"),children:ao(s,{...l,className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3 duration-300 hover:border-pink-500",children:ao("div",{className:"flex w-full items-center justify-center",children:ao("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain"})})})},n)})}),t&&ao(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as Pg}from"react";import{Fragment as Cg,jsx as $e,jsxs as Ji}from"react/jsx-runtime";var Ki=(e,o)=>{if(!e)return $e("div",{className:r("h-full w-full",o)});let t=e.url?"a":"div";return $e("div",{className:r("h-full w-full",o),children:$e(t,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e.url&&"duration-300 hover:border-pink-500"),children:$e("div",{className:"flex h-full w-full items-center justify-center",children:$e("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},er=Pg(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=vo(),i=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);i.push(...o.slice(0,s)),n.push(...o.slice(s))}return Ji(Cg,{children:[e&&$e(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&Ji(ge,{opts:{align:a?"center":"start"},className:"w-full",children:[$e(ue,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?i.map((s,l)=>Ji(le,{className:"flex shrink-0 basis-5/12 flex-col items-center justify-between gap-3 pl-3 md:basis-1/4 md:gap-4 md:pl-4 lg:basis-1/6",children:[Ki(s,"min-h-0 flex-1"),n[l]?Ki(n[l],"min-h-0 flex-1"):$e("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>$e(le,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:Ki(s)},l))}),$e(yo,{className:"mt-5"})]}),t&&$e(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as Ig}from"react";import{useEffect as Rg,useState as tr}from"react";import{animate as nl,motion as Tg,useMotionValue as kg}from"motion/react";import Sg from"react-use-measure";import{jsx as Mg,jsxs as Dg}from"react/jsx-runtime";function Mo({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=tr(t),[d,{width:p,height:g}]=Sg(),v=kg(0),[R,N]=tr(!1),[k,E]=tr(0);Rg(()=>{let L,P=(i==="horizontal"?p:g)+o,ie=n?-P/2:0,j=n?0:-P/2,$t=Math.abs(j-ie)/m;if(R){let Ho=Math.abs(v.get()-j)/m;L=nl(v,[v.get(),j],{ease:"linear",duration:Ho,onComplete:()=>{N(!1),E(wm=>wm+1)}})}else L=nl(v,[ie,j],{ease:"linear",duration:$t,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(ie)}});return L?.stop},[k,v,m,p,g,o,R,i,n]);let O=a?{onHoverStart:()=>{N(!0),c(a)},onHoverEnd:()=>{N(!0),c(t)},onTouchStart:()=>{N(!0),c(a)},onTouchEnd:()=>{N(!0),c(t)}}:{};return Mg("div",{className:r("overflow-hidden",s),children:Dg(Tg.div,{className:r("flex w-max",l),style:{...i==="horizontal"?{x:v,paddingLeft:o}:{y:v},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:d,...O,children:[e,e]})})}import{Fragment as ll,jsx as Te,jsxs as Ag}from"react/jsx-runtime";var sl=(e,o)=>{let t=e?.url?"a":"div";return Te("div",{className:r("h-full w-full",o),children:Te(t,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e?.url&&"duration-300 hover:border-pink-500"),children:Te("div",{className:"flex h-full w-full items-center justify-center",children:Te("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},or=Ig(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,i=a>6;return Ag(ll,{children:[e&&Te(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),a>0&&Te(ll,{children:i?Te("div",{className:"mark-horizontal-slider relative overflow-hidden",children:Te(Mo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>Te("div",{className:"w-32 md:w-40",children:sl(n)},s))})}):Te("div",{className:r("list-brands -mx-5 flex snap-x snap-mandatory flex-nowrap space-x-3 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:flex-wrap md:justify-center md:gap-y-6 md:space-x-0 md:px-0"),children:o?.map((n,s)=>Te("div",{className:"flex shrink-0 basis-5/12 snap-center items-center justify-center md:basis-1/4 md:px-3 lg:basis-1/6",children:sl(n)},s))})}),t&&Te(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),Te("style",{children:`
277
277
  .mark-horizontal-slider {
278
278
  mask-image: linear-gradient(
279
279
  to right,
@@ -290,15 +290,15 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
290
290
  transparent 100%
291
291
  );
292
292
  }
293
- `})]})});import{Fragment as gu,jsx as Ut}from"react/jsx-runtime";var du=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return Ut(dr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return Ut(vi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return Ut(bi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return Ut(wi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return Ut(dr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},pu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>Ut(gu,{children:du({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),fu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>Ut(O,{className:i(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:Ut(pu,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as uu}from"react";import{ChevronRightIcon as vu}from"@heroicons/react/16/solid";import q from"html-react-parser";import{Fragment as Lt,jsx as f,jsxs as b}from"react/jsx-runtime";var dt=({btnLink:e,btnName:o,newTab:t})=>f(fe,{variant:"primary",asChild:!0,children:b("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(vu,{className:"h-4 w-4"})]})}),Ni=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Lt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>b("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&f("div",{className:"mx-auto h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ml=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Lt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,r)=>b("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
293
+ `})]})});import{Fragment as Hg,jsx as Ot}from"react/jsx-runtime";var Lg=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return Ot(Ka,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return Ot(Zi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return Ot(er,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return Ot(or,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return Ot(Ka,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},zg=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>Ot(Hg,{children:Lg({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),Eg=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>Ot(V,{className:r(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:Ot(zg,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as _g}from"react";import{ChevronRightIcon as Bg}from"@heroicons/react/16/solid";import U from"html-react-parser";import{Fragment as St,jsx as f,jsxs as b}from"react/jsx-runtime";var st=({btnLink:e,btnName:o,newTab:t})=>f(fe,{variant:"primary",asChild:!0,children:b("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(Bg,{className:"h-4 w-4"})]})}),ar=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(St,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>b("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&f("div",{className:"mx-auto h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ml=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(St,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>b("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
294
294
  .list-features-2 .feature-item {
295
295
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
296
296
  }
297
- `})]}),Il=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Lt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>b("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-4 w-full flex-1",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Al=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[b("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),b("div",{className:"lg:col-span-6",children:[o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>b("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Ll=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Lt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,r)=>b("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Fl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Lt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,r)=>b("div",{className:"feature-item relative w-full",children:[a?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),zl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,r={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?r.special:r.default,m=n[a]??-1,c=(d,p)=>{let g=d?.btnLink?"a":"div",v=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return f("div",{className:i("basis-1/2 px-2 lg:px-5",l,p===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:b(g,{...v,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&f("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:f("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy"})}),b("div",{className:"w-full flex-1 text-center",children:[d?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:q(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:q(d.description)})]})]})},p)};return b(Lt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,p)=>c(d,p))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},El=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Lt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>b("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[b("div",{className:"flex w-full flex-1 flex-col p-5",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&f("div",{className:"w-full",style:{aspectRatio:"347/220"},children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Hl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>b("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[f("div",{className:"flex items-center lg:col-span-6",children:b("div",{className:"w-full",children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:text-left",e?.className)}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((r,n)=>b("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&f("div",{className:"h-10 w-10",children:f("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:q(r.name)}),r?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&f("div",{className:"flex items-center lg:col-span-4",children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:f(E,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),_l=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>b(Lt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),f("div",{className:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&b("div",{className:i("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((r,n)=>b("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:q(r.name)}),r?.description&&f("div",{className:"mt-2 text-gray-500",children:q(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&b("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[f("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),f("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:f("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&f(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),Bl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=uu(0),s=yo();return b(Lt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&b("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[f("div",{children:f("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:f(ht,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((l,m)=>b(xt,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[f(bt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:q(l.name||"")}),b(yt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:q(l.description||"")}),l?.btnLink&&f("div",{className:"",children:f(dt,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&f("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:f(E,{ratio:1,className:"w-full",children:f("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),f("div",{className:i(a?.src?"flex":"hidden md:flex"),children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?f(E,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):f("div",{className:"hidden md:flex",children:o?.[r]?.image?f(E,{ratio:1,className:"w-full",children:f("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):f("div",{className:"h-0 w-0"})})})})]}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as yu,jsx as be}from"react/jsx-runtime";var hu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return be(Ni,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return be(Ml,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return be(Il,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return be(Al,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return be(Ll,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return be(Fl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return be(zl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return be(El,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return be(Hl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return be(_l,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return be(Bl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return be(Ni,{dataHeading:o,dataFeatures:t,dataButtons:a})}},xu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>be(yu,{children:hu({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),bu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>be(O,{className:t,idSection:a,background:o,children:be(xu,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as wu}from"@heroicons/react/24/solid";import Pi from"html-react-parser";import Nu from"lodash";var pr=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],fr=({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()||""},gr=(e,o)=>o[e%o.length];import{Fragment as Vl,jsx as ee,jsxs as zo}from"react/jsx-runtime";var Pu=({avatar:e="",name:o="",index:t=0})=>{if(Nu.isEmpty(e)){let a=fr({name:o})??"",r=gr(t,pr);return ee("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",r),children:a})}return ee("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:ee("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Ol=({testimonial:e,className:o,index:t})=>ee("div",{className:i("testimonial-item",o),children:zo("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[zo("div",{className:"flex flex-nowrap items-center space-x-2",children:[ee(Pu,{avatar:e.avatar,name:e.name,index:t}),zo("div",{className:"min-w-0 flex-1 pl-1",children:[ee("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&ee("div",{className:"text-xs font-normal text-pink-500",children:Pi(e.position)})]})]}),zo("div",{className:"mt-3",children:[e?.shortTitle&&ee("div",{className:"text-sm font-bold text-gray-700",children:Pi(e.shortTitle)}),e?.description&&ee("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Pi(e.description)})]}),zo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&ee("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&ee("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>ee(wu,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Ci=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return zo(Vl,{children:[e&&ee(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&ee(Vl,{children:r?ee("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:ee(Fo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>ee(Ol,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):ee("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>ee(Ol,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&ee(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as Wl}from"@heroicons/react/24/solid";import Ri from"html-react-parser";import{Fragment as Tu,jsx as H,jsxs as Xe}from"react/jsx-runtime";var Cu=({className:e})=>H("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:H("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),Ru=({testimonial:e,className:o})=>H("div",{className:i("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:Xe("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&H("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:H(E,{ratio:2/3,className:"w-full",children:H("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Xe("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Xe("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Xe("div",{className:"grow",children:[e?.name&&H("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&H("div",{className:"mt-1 text-xs font-normal text-gray-500",children:Ri(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Xe("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&H("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&H("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>H(Wl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&H("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:H(E,{ratio:2/3,className:"w-full",children:H("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Xe("div",{className:"flex flex-1 flex-col md:flex-none",children:[Xe("div",{className:"flex-1",children:[Xe("div",{className:"mb-1.5 flex flex-none space-x-3",children:[H(Cu,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&H("div",{className:"flex-none text-base font-medium md:text-lg",children:Ri(e.shortTitle)})]}),e?.description&&H("blockquote",{className:"relative flex-1 text-justify text-base",children:Ri(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Xe("div",{className:i("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&H("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&H("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>H(Wl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),$l=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Xe(Tu,{children:[e&&H(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&Xe(ge,{className:"w-full",children:[H(ue,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>H(le,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:H(Ru,{testimonial:a})},r))}),(o??[]).length>1&&H(Co,{className:"mt-8"})]}),t&&H(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as ku}from"@heroicons/react/24/solid";import Ti from"html-react-parser";import Su from"lodash";import{Fragment as jl,jsx as $,jsxs as mo}from"react/jsx-runtime";var Du=({avatar:e="",name:o="",index:t=0})=>{if(Su.isEmpty(e)){let a=fr({name:o})??"",r=gr(t,pr);return $("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",r),children:a})}return $("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:$("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Gl=({testimonial:e,className:o,index:t})=>$("div",{className:i("testimonial-item",o),children:mo("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[mo("div",{className:"flex flex-nowrap items-center space-x-2",children:[$(Du,{avatar:e.avatar,name:e.name,index:t}),mo("div",{className:"flex-1 pl-1",children:[$("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&$("div",{className:"text-xs font-normal text-pink-500",children:Ti(e.position)})]})]}),mo("div",{className:"mt-3",children:[e?.shortTitle&&$("div",{className:"text-sm font-bold text-gray-700",children:Ti(e.shortTitle)}),e?.description&&$("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Ti(e.description)})]}),mo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&$("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&$("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>$(ku,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Ql=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>$(jl,{children:l.map((m,c)=>$(Fo,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>$(Gl,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return mo(jl,{children:[e&&$(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&$(uo,{children:r?mo("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[$(Ze,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),$(Ze,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),$(Ze,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):$("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>$(Gl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&$(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),$("style",{children:`
297
+ `})]}),cl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(St,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>b("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-4 w-full flex-1",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),dl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[b("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),b("div",{className:"lg:col-span-6",children:[o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>b("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),pl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(St,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>b("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),fl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(St,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>b("div",{className:"feature-item relative w-full",children:[a?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),gl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,m=n[a]??-1,c=(d,p)=>{let g=d?.btnLink?"a":"div",v=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return f("div",{className:r("basis-1/2 px-2 lg:px-5",l,p===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:b(g,{...v,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&f("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:f("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy"})}),b("div",{className:"w-full flex-1 text-center",children:[d?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:U(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:U(d.description)})]})]})},p)};return b(St,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,p)=>c(d,p))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},ul=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(St,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>b("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[b("div",{className:"flex w-full flex-1 flex-col p-5",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&f("div",{className:"w-full",style:{aspectRatio:"347/220"},children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),vl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>b("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[f("div",{className:"flex items-center lg:col-span-6",children:b("div",{className:"w-full",children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className: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)=>b("div",{className:"feature-item relative flex w-full flex-col",children:[i?.image&&f("div",{className:"h-10 w-10",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:U(i.name)}),i?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&f("div",{className:"flex items-center lg:col-span-4",children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:f(_,{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"})})})})]}),hl=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>b(St,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),f("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&b("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)=>b("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[i?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:U(i.name)}),i?.description&&f("div",{className:"mt-2 text-gray-500",children:U(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&b("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[f("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),f("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:f("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&f(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),xl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=_g(0),s=vo();return b(St,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&b("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[f("div",{children:f("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:f(pt,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:i.toString(),children:o?.map((l,m)=>b(ft,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[f(gt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:U(l.name||"")}),b(ut,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:U(l.description||"")}),l?.btnLink&&f("div",{className:"",children:f(st,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&f("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:f(_,{ratio:1,className:"w-full",children:f("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),f("div",{className:r(a?.src?"flex":"hidden md:flex"),children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?f(_,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):f("div",{className:"hidden md:flex",children:o?.[i]?.image?f(_,{ratio:1,className:"w-full",children:f("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):f("div",{className:"h-0 w-0"})})})})]}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as Wg,jsx as be}from"react/jsx-runtime";var Fg=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return be(ar,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return be(ml,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return be(cl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return be(dl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return be(pl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return be(fl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return be(gl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return be(ul,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return be(vl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return be(hl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return be(xl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return be(ar,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Og=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>be(Wg,{children:Fg({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),Vg=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>be(V,{className:t,idSection:a,background:o,children:be(Og,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as Gg}from"@heroicons/react/24/solid";import ir from"html-react-parser";import $g from"lodash";var Ja=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],ei=({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()||""},ti=(e,o)=>o[e%o.length];import{Fragment as yl,jsx as J,jsxs as Io}from"react/jsx-runtime";var jg=({avatar:e="",name:o="",index:t=0})=>{if($g.isEmpty(e)){let a=ei({name:o})??"",i=ti(t,Ja);return J("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 J("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:J("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},bl=({testimonial:e,className:o,index:t})=>J("div",{className:r("testimonial-item",o),children:Io("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[Io("div",{className:"flex flex-nowrap items-center space-x-2",children:[J(jg,{avatar:e.avatar,name:e.name,index:t}),Io("div",{className:"min-w-0 flex-1 pl-1",children:[J("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&J("div",{className:"text-xs font-normal text-pink-500",children:ir(e.position)})]})]}),Io("div",{className:"mt-3",children:[e?.shortTitle&&J("div",{className:"text-sm font-bold text-gray-700",children:ir(e.shortTitle)}),e?.description&&J("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:ir(e.description)})]}),Io("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&J("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&J("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>J(Gg,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),rr=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return Io(yl,{children:[e&&J(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&J(yl,{children:i?J("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:J(Mo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>J(bl,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):J("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>J(bl,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&J(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as wl}from"@heroicons/react/24/solid";import nr from"html-react-parser";import{Fragment as qg,jsx as z,jsxs as je}from"react/jsx-runtime";var Qg=({className:e})=>z("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:z("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),Ug=({testimonial:e,className:o})=>z("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:je("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&z("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:z(_,{ratio:2/3,className:"w-full",children:z("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),je("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[je("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[je("div",{className:"grow",children:[e?.name&&z("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&z("div",{className:"mt-1 text-xs font-normal text-gray-500",children:nr(e.position)})]}),(e?.date||Number(e?.rating)>0)&&je("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&z("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&z("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>z(wl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&z("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:z(_,{ratio:2/3,className:"w-full",children:z("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),je("div",{className:"flex flex-1 flex-col md:flex-none",children:[je("div",{className:"flex-1",children:[je("div",{className:"mb-1.5 flex flex-none space-x-3",children:[z(Qg,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&z("div",{className:"flex-none text-base font-medium md:text-lg",children:nr(e.shortTitle)})]}),e?.description&&z("blockquote",{className:"relative flex-1 text-justify text-base",children:nr(e.description)})]}),(e?.date||Number(e?.rating)>0)&&je("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&z("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&z("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>z(wl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),Nl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>je(qg,{children:[e&&z(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&je(ge,{className:"w-full",children:[z(ue,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>z(le,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:z(Ug,{testimonial:a})},i))}),(o??[]).length>1&&z(yo,{className:"mt-8"})]}),t&&z(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as Xg}from"@heroicons/react/24/solid";import sr from"html-react-parser";import Yg from"lodash";import{Fragment as Cl,jsx as F,jsxs as io}from"react/jsx-runtime";var Zg=({avatar:e="",name:o="",index:t=0})=>{if(Yg.isEmpty(e)){let a=ei({name:o})??"",i=ti(t,Ja);return F("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 F("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:F("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Pl=({testimonial:e,className:o,index:t})=>F("div",{className:r("testimonial-item",o),children:io("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[io("div",{className:"flex flex-nowrap items-center space-x-2",children:[F(Zg,{avatar:e.avatar,name:e.name,index:t}),io("div",{className:"flex-1 pl-1",children:[F("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&F("div",{className:"text-xs font-normal text-pink-500",children:sr(e.position)})]})]}),io("div",{className:"mt-3",children:[e?.shortTitle&&F("div",{className:"text-sm font-bold text-gray-700",children:sr(e.shortTitle)}),e?.description&&F("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:sr(e.description)})]}),io("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&F("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&F("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>F(Xg,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),Rl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>F(Cl,{children:l.map((m,c)=>F(Mo,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>F(Pl,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return io(Cl,{children:[e&&F(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&F(mo,{children:i?io("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[F(Ue,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),F(Ue,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),F(Ue,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):F("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>F(Pl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&F(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),F("style",{children:`
298
298
  .mark-vertical-marquee {
299
299
  mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
300
300
  }
301
- `})]})};import{Fragment as Lu,jsx as co}from"react/jsx-runtime";var Mu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return co(Ci,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return co(Ql,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return co($l,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return co(Ci,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Iu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>co(Lu,{children:Mu({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Au=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>co(O,{className:i(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:co(Iu,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import Ul from"html-react-parser";import{Fragment as Fu,jsx as ae,jsxs as po}from"react/jsx-runtime";var ki=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>ae(ht,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>po(xt,{value:n.title,className:"last:border-none",children:[ae(bt,{className:"md:text-lg",children:n.title}),ae(yt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Ul(n.description)})]},s))});return po("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[ae("div",{className:"relative",children:po("div",{className:"md:sticky md:top-16",children:[o&&ae(h,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),t&&ae(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&ae("div",{className:"col-span-2",children:a(e[0])}),t&&ae(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},ql=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>ae(ht,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>po(xt,{value:c.title,className:"last:border-none",children:[ae(bt,{className:"md:text-lg",children:c.title}),ae(yt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Ul(c.description)})]},d))});return po(Fu,{children:[o&&ae(h,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),e&&po(kt,{defaultValue:e[0]?.title,children:[e?.length>1&&po(Pt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[ae(Ct,{className:"mb-3 text-center",children:ae(et,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>ae(tt,{value:m.title,children:m.title},m.title+c))})}),ae(Rt,{}),ae(Tt,{})]}),e.map((m,c)=>ae(ot,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&ae(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as _u,jsx as Eo}from"react/jsx-runtime";var zu=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return Eo(ki,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return Eo(ql,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return Eo(ki,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},Eu=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>Eo(_u,{children:zu({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Hu=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Eo(O,{className:t,idSection:r,background:a,children:Eo(Eu,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import Bu,{memo as Ou}from"react";import{ArrowDownIcon as Vu}from"@heroicons/react/20/solid";import Wu from"html-react-parser";import{Fragment as Xl,jsx as Y,jsxs as pt}from"react/jsx-runtime";var $u=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return pt(Xl,{children:[Y("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:pt("picture",{children:[Y("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),Y("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),pt("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[Y("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),pt("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&pt(Xl,{children:[Y(fe,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&Y("span",{className:"flex-none leading-none",children:"\xB7"})]}),Y("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Si=Ou(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>pt("div",{children:[Y("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((g,v)=>Y("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:Y("div",{onClick:P=>m(P,g?.id,g?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:Y($u,{news:g})},g?.id)},v))}),d?.isShowBtn&&Y("div",{className:"mt-8 flex w-full items-center justify-center",children:pt(Ge,{action:d?.btnUrl||r&&(()=>r?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[Wu(d.btnName||"Xem th\xEAm"),d?.isLoading?Y(ho,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&Y(Vu,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return pt(Bu.Fragment,{children:[e&&Y(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?pt(kt,{defaultValue:t[0]?.title,children:[pt(Pt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[Y(Ct,{className:"mb-6 text-center",children:Y(et,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>Y(tt,{value:d.title,children:d.title},d.title+p))})}),Y(Rt,{}),Y(Tt,{})]}),t.map((d,p)=>Y(ot,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as Uu,jsx as ha}from"react/jsx-runtime";var Gu=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return ha(Si,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return ha(Si,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},ju=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>ha(Uu,{children:Gu({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Qu=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>ha(O,{className:i(r),background:n,idSection:e,children:ha(ju,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as Ku,jsx as De,jsxs as Di}from"react/jsx-runtime";var Yl=({dataHeading:e,dataCTA:o,dataButtons:t})=>Di("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:o?.background},children:[e&&De(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&De(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),qu=({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&&De(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&De(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),De("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&De(E,{ratio:4/3,children:De("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Xu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return De(Yl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return De(qu,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return De(Yl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},Yu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>De(Ku,{children:Xu({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),Zu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>De(O,{className:t,idSection:a,background:o,children:De(Yu,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import Zl from"react";import Mi from"html-react-parser";import{jsx as qt,jsxs as Kl}from"react/jsx-runtime";var Ju=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Kl("div",{className:" text-center",children:[qt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Mi(t??"")}),qt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Mi(o??"")}),a&&qt("div",{className:"mt-2 text-sm text-gray-500",children:Mi(a??"")})]})},ur=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Kl(Zl.Fragment,{children:[t&&qt(h,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&qt("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,r)=>qt(Zl.Fragment,{children:qt(Ju,{metric:a})},r))}),o&&qt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import Jl from"react";import Ii from"html-react-parser";import{jsx as Xt,jsxs as em}from"react/jsx-runtime";var e0=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return em("div",{className:" text-center md:text-left",children:[Xt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:Ii(t??"")}),Xt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Ii(o??"")}),a&&Xt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:Ii(a??"")})]})},Ai=({dataMetrics:e,dataButtons:o,dataHeading:t})=>em(Jl.Fragment,{children:[t&&Xt(h,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&Xt("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,r)=>Xt(Jl.Fragment,{children:Xt(e0,{metric:a})},r))}),o&&Xt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as r0,jsx as Ho}from"react/jsx-runtime";var t0=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return Ho(ur,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return Ho(Ai,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return Ho(ur,{dataMetrics:o,dataButtons:a,dataHeading:e})}},o0=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>Ho(r0,{children:t0({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),a0=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>Ho(O,{className:i(n),background:r,idSection:e,children:Ho(o0,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as i0}from"react";import{jsx as tm,jsxs as s0}from"react/jsx-runtime";var n0=i0(({className:e,title:o,children:t},a)=>s0("div",{className:e,ref:a,children:[tm("div",{className:"font-semibold text-gray-800",children:o}),tm("div",{style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-241105114139-638664036992710012.png)",backgroundSize:"30%",backgroundPosition:"53% 25%"},className:"mt-4 grid grid-cols-1 gap-4 rounded-lg border bg-no-repeat p-3 text-gray-800",children:t})]}));import{useCallback as p0}from"react";import{Fragment as d0,jsx as fo,jsxs as c0}from"react/jsx-runtime";var l0=()=>fo("div",{className:"p-3 border rounded-lg",children:c0("div",{className:"flex items-center gap-3",children:[fo(Ya,{className:"rounded-md h-9 w-9 "}),fo("div",{className:"flex-1",children:fo(Ya,{className:"w-48 h-5 "})}),fo("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function m0(){return fo(d0,{children:Array.from({length:4}).map((e,o)=>fo(l0,{},o))})}var om=m0;import{Fragment as u0,jsx as Ft,jsxs as Li}from"react/jsx-runtime";var f0=({paymentMethod:e})=>Ft(Xa,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:Li("div",{className:"flex items-center space-x-3",children:[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})]})]})}),g0=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=p0(s=>a?.(s),[a]);return Li(u0,{children:[e&&Ft("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Ft(om,{}):Ft(qa,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Ft(f0,{paymentMethod:s},s.id))})]})};import{forwardRef as am}from"react";import{jsx as im}from"react/jsx-runtime";var v0=am(({children:e,className:o},t)=>im("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),rm=am(({children:e,className:o,...t},a)=>im(v0,{ref:a,className:o,...t,children:e}));rm.displayName="Payment";import{forwardRef as h0}from"react";import{jsx as nm,jsxs as b0}from"react/jsx-runtime";var x0=h0(({className:e,children:o},t)=>b0("div",{className:i("",e),ref:t,children:[nm("hr",{className:"mb-5 h-px w-full bg-gray-500"}),nm("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as y0}from"react";import{jsx as N0}from"react/jsx-runtime";var w0=y0(({className:e,children:o},t)=>N0("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as S0}from"react";import{CheckBadgeIcon as P0,XCircleIcon as C0}from"@heroicons/react/20/solid";import{jsx as ne,jsxs as _o}from"react/jsx-runtime";var R0=({iconPaymentResult:e,message:o="",title:t=""})=>_o("div",{className:"grid grid-cols-1 gap-4",children:[_o("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(ca,{message:o,type:"success",icon:ne(P0,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),T0=({iconPaymentResult:e,message:o="",title:t=""})=>_o("div",{className:"grid grid-cols-1 gap-4",children:[_o("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),ne(ca,{message:o,type:"error",icon:ne(C0,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),k0=({iconPaymentResult:e,message:o="",title:t=""})=>_o("div",{className:"grid grid-cols-1 gap-4",children:[_o("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(ca,{message:o,type:"neutral"})]}),sm=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ne(R0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return ne(T0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return ne(k0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as M0,jsxs as I0}from"react/jsx-runtime";var D0=S0(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>I0("div",{ref:s,className:i("rounded-lg p-4",e),children:[M0(sm,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as L0,useEffect as F0}from"react";import{jsx as Fi,jsxs as A0}from"react/jsx-runtime";var vr=({content:e})=>A0("picture",{children:[Fi("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),Fi("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),Fi(Ge,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as xa,jsxs as H0}from"react/jsx-runtime";var z0=({template:e,content:o})=>{switch(e){case 1:return xa(vr,{content:o});default:return xa(vr,{content:o})}},E0=L0(({template:e,content:o},t)=>(F0(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),H0("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[xa("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:xa("div",{className:"content",children:z0({template:e,content:o})})}),xa("style",{children:`
301
+ `})]})};import{Fragment as tu,jsx as ro}from"react/jsx-runtime";var Kg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return ro(rr,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return ro(Rl,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return ro(Nl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return ro(rr,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Jg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>ro(tu,{children:Kg({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),eu=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>ro(V,{className:r(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:ro(Jg,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import Tl from"html-react-parser";import{Fragment as ou,jsx as oe,jsxs as no}from"react/jsx-runtime";var lr=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>oe(pt,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>no(ft,{value:n.title,className:"last:border-none",children:[oe(gt,{className:"md:text-lg",children:n.title}),oe(ut,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Tl(n.description)})]},s))});return no("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[oe("div",{className:"relative",children:no("div",{className:"md:sticky md:top-16",children:[o&&oe(h,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&oe(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&oe("div",{className:"col-span-2",children:a(e[0])}),t&&oe(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},kl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>oe(pt,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>no(ft,{value:c.title,className:"last:border-none",children:[oe(gt,{className:"md:text-lg",children:c.title}),oe(ut,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Tl(c.description)})]},d))});return no(ou,{children:[o&&oe(h,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&no(Nt,{defaultValue:e[0]?.title,children:[e?.length>1&&no(xt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[oe(bt,{className:"mb-3 text-center",children:oe(Ye,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>oe(Ze,{value:m.title,children:m.title},m.title+c))})}),oe(yt,{}),oe(wt,{})]}),e.map((m,c)=>oe(Ke,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&oe(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};import{Fragment as nu,jsx as Ao}from"react/jsx-runtime";var au=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return Ao(lr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return Ao(kl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return Ao(lr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},iu=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>Ao(nu,{children:au({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),ru=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Ao(V,{className:t,idSection:i,background:a,children:Ao(iu,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import su,{memo as lu}from"react";import{ArrowDownIcon as mu}from"@heroicons/react/20/solid";import cu from"html-react-parser";import{Fragment as Sl,jsx as X,jsxs as lt}from"react/jsx-runtime";var du=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return lt(Sl,{children:[X("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:lt("picture",{children:[X("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),X("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),lt("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[X("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),lt("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&lt(Sl,{children:[X(fe,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&X("span",{className:"flex-none leading-none",children:"\xB7"})]}),X("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},mr=lu(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>lt("div",{children:[X("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((g,v)=>X("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:X("div",{onClick:R=>m(R,g?.id,g?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:X(du,{news:g})},g?.id)},v))}),d?.isShowBtn&&X("div",{className:"mt-8 flex w-full items-center justify-center",children:lt(Oe,{action:d?.btnUrl||i&&(()=>i?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[cu(d.btnName||"Xem th\xEAm"),d?.isLoading?X(fo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!d?.btnUrl&&X(mu,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return lt(su.Fragment,{children:[e&&X(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?lt(Nt,{defaultValue:t[0]?.title,children:[lt(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[X(bt,{className:"mb-6 text-center",children:X(Ye,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>X(Ze,{value:d.title,children:d.title},d.title+p))})}),X(yt,{}),X(wt,{})]}),t.map((d,p)=>X(Ke,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as uu,jsx as pa}from"react/jsx-runtime";var pu=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return pa(mr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return pa(mr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},fu=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>pa(uu,{children:pu({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),gu=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>pa(V,{className:r(i),background:n,idSection:e,children:pa(fu,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as yu,jsx as ke,jsxs as cr}from"react/jsx-runtime";var Dl=({dataHeading:e,dataCTA:o,dataButtons:t})=>cr("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&&ke(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&ke(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),vu=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>cr("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:[cr("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&ke(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&ke(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),ke("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&ke(_,{ratio:4/3,children:ke("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),hu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return ke(Dl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return ke(vu,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return ke(Dl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},xu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>ke(yu,{children:hu({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),bu=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>ke(V,{className:t,idSection:a,background:o,children:ke(xu,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import Ml from"react";import dr from"html-react-parser";import{jsx as Vt,jsxs as Il}from"react/jsx-runtime";var wu=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Il("div",{className:" text-center",children:[Vt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:dr(t??"")}),Vt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:dr(o??"")}),a&&Vt("div",{className:"mt-2 text-sm text-gray-500",children:dr(a??"")})]})},oi=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Il(Ml.Fragment,{children:[t&&Vt(h,{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&&Vt("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)=>Vt(Ml.Fragment,{children:Vt(wu,{metric:a})},i))}),o&&Vt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import Al from"react";import pr from"html-react-parser";import{jsx as Wt,jsxs as Ll}from"react/jsx-runtime";var Nu=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Ll("div",{className:" text-center md:text-left",children:[Wt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:pr(t??"")}),Wt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:pr(o??"")}),a&&Wt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:pr(a??"")})]})},fr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Ll(Al.Fragment,{children:[t&&Wt(h,{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&&Wt("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)=>Wt(Al.Fragment,{children:Wt(Nu,{metric:a})},i))}),o&&Wt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as Tu,jsx as Lo}from"react/jsx-runtime";var Pu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return Lo(oi,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return Lo(fr,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return Lo(oi,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Cu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>Lo(Tu,{children:Pu({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Ru=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:i,className:n,template:s})=>Lo(V,{className:r(n),background:i,idSection:e,children:Lo(Cu,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as ku}from"react";import{jsx as zl,jsxs as Du}from"react/jsx-runtime";var Su=ku(({className:e,title:o,children:t},a)=>Du("div",{className:e,ref:a,children:[zl("div",{className:"font-semibold text-gray-800",children:o}),zl("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 zu}from"react";import{Fragment as Lu,jsx as so,jsxs as Au}from"react/jsx-runtime";var Mu=()=>so("div",{className:"p-3 border rounded-lg",children:Au("div",{className:"flex items-center gap-3",children:[so(Ga,{className:"rounded-md h-9 w-9 "}),so("div",{className:"flex-1",children:so(Ga,{className:"w-48 h-5 "})}),so("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Iu(){return so(Lu,{children:Array.from({length:4}).map((e,o)=>so(Mu,{},o))})}var El=Iu;import{Fragment as _u,jsx as Dt,jsxs as gr}from"react/jsx-runtime";var Eu=({paymentMethod:e})=>Dt(Wa,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:gr("div",{className:"flex items-center space-x-3",children:[Dt("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),gr("div",{className:"grid grid-cols-1 gap-1",children:[Dt("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Dt("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Dt("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Hu=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=zu(s=>a?.(s),[a]);return gr(_u,{children:[e&&Dt("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Dt(El,{}):Dt(Va,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Dt(Eu,{paymentMethod:s},s.id))})]})};import{forwardRef as Hl}from"react";import{jsx as Bl}from"react/jsx-runtime";var Bu=Hl(({children:e,className:o},t)=>Bl("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),_l=Hl(({children:e,className:o,...t},a)=>Bl(Bu,{ref:a,className:o,...t,children:e}));_l.displayName="Payment";import{forwardRef as Fu}from"react";import{jsx as Fl,jsxs as Vu}from"react/jsx-runtime";var Ou=Fu(({className:e,children:o},t)=>Vu("div",{className:r("",e),ref:t,children:[Fl("hr",{className:"mb-5 h-px w-full bg-gray-500"}),Fl("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as Wu}from"react";import{jsx as $u}from"react/jsx-runtime";var Gu=Wu(({className:e,children:o},t)=>$u("div",{className:r("pb-5",e),ref:t,children:o}));import{forwardRef as Yu}from"react";import{CheckBadgeIcon as ju,XCircleIcon as Qu}from"@heroicons/react/20/solid";import{jsx as ne,jsxs as zo}from"react/jsx-runtime";var Uu=({iconPaymentResult:e,message:o="",title:t=""})=>zo("div",{className:"grid grid-cols-1 gap-4",children:[zo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(na,{message:o,type:"success",icon:ne(ju,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),qu=({iconPaymentResult:e,message:o="",title:t=""})=>zo("div",{className:"grid grid-cols-1 gap-4",children:[zo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),ne(na,{message:o,type:"error",icon:ne(Qu,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Xu=({iconPaymentResult:e,message:o="",title:t=""})=>zo("div",{className:"grid grid-cols-1 gap-4",children:[zo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(na,{message:o,type:"neutral"})]}),Ol=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ne(Uu,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return ne(qu,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return ne(Xu,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as Ku,jsxs as Ju}from"react/jsx-runtime";var Zu=Yu(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>Ju("div",{ref:s,className:r("rounded-lg p-4",e),children:[Ku(Ol,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));import{forwardRef as t0,useEffect as o0}from"react";import{jsx as ur,jsxs as e0}from"react/jsx-runtime";var ai=({content:e})=>e0("picture",{children:[ur("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),ur("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),ur(Oe,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as fa,jsxs as r0}from"react/jsx-runtime";var a0=({template:e,content:o})=>{switch(e){case 1:return fa(ai,{content:o});default:return fa(ai,{content:o})}},i0=t0(({template:e,content:o},t)=>(o0(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),r0("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[fa("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:fa("div",{className:"content",children:a0({template:e,content:o})})}),fa("style",{children:`
302
302
  .container-topbar .content {
303
303
  width: 100%;
304
304
  aspect-ratio: 1088/50;
@@ -316,7 +316,7 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
316
316
  aspect-ratio: 720/88;
317
317
  }
318
318
  }
319
- `})]})));import*as ba from"react";import{XIcon as _0}from"lucide-react";import{Drawer as Oe}from"vaul";import{jsx as ft,jsxs as zi}from"react/jsx-runtime";var lm=({shouldScaleBackground:e=!0,...o})=>ft(Oe.Root,{shouldScaleBackground:e,...o});lm.displayName="Drawer";var B0=Oe.Trigger,mm=Oe.Portal,O0=Oe.Close,Ei=ba.forwardRef(({className:e,...o},t)=>ft(Oe.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));Ei.displayName=Oe.Overlay.displayName;var cm=ba.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>zi(mm,{children:[ft(Ei,{}),zi(Oe.Content,{ref:r,className:i("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90dvh] flex-col rounded-t-xl border bg-white",e),...a,children:[!t&&zi(Oe.Close,{className:i("data-[state=open]:outline-focus absolute right-2 top-2 select-none appearance-none rounded-full p-2 text-gray-700 outline-none hover:bg-gray-100 active:bg-gray-200 data-[state=open]:z-10 data-[state=open]:outline-2 data-[state=open]:outline-offset-2"),title:"\u0110\xF3ng",children:[ft(_0,{className:"h-5 w-5"}),ft("span",{className:"sr-only",children:"Close"})]}),o]})]}));cm.displayName="DrawerContent";var dm=({className:e,...o})=>ft("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});dm.displayName="DrawerHeader";var pm=({className:e,...o})=>ft("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});pm.displayName="DrawerFooter";var fm=ba.forwardRef(({className:e,...o},t)=>ft(Oe.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));fm.displayName=Oe.Title.displayName;var gm=ba.forwardRef(({className:e,...o},t)=>ft(Oe.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));gm.displayName=Oe.Description.displayName;var um=({children:e,className:o,...t})=>ft("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});um.displayName="DrawerBody";import*as go from"react";import{OTPInput as V0,OTPInputContext as W0}from"input-otp";import{Minus as $0}from"lucide-react";import{jsx as Bo,jsxs as vm}from"react/jsx-runtime";var hm=go.forwardRef(({className:e,containerClassName:o,...t},a)=>Bo(V0,{ref:a,containerClassName:i("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:i("disabled:cursor-not-allowed",e),...t}));hm.displayName="InputOTP";var xm=go.forwardRef(({className:e,...o},t)=>Bo("div",{ref:t,className:i("flex items-center",e),...o}));xm.displayName="InputOTPGroup";var bm=go.forwardRef(({index:e,className:o,...t},a)=>{let r=go.useContext(W0),{char:n,hasFakeCaret:s,isActive:l}=r.slots[e]??{};return vm("div",{ref:a,className:i("border-input relative flex h-9 w-9 items-center justify-center border-y border-r border-gray-400 text-sm text-gray-900 shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"ring-ring z-10 ring-1",o),...t,children:[n,s&&vm("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[Bo("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),Bo("style",{children:`
319
+ `})]})));import*as ga from"react";import{XIcon as n0}from"lucide-react";import{Drawer as Be}from"vaul";import{jsx as mt,jsxs as vr}from"react/jsx-runtime";var Vl=({shouldScaleBackground:e=!0,...o})=>mt(Be.Root,{shouldScaleBackground:e,...o});Vl.displayName="Drawer";var s0=Be.Trigger,Wl=Be.Portal,l0=Be.Close,hr=ga.forwardRef(({className:e,...o},t)=>mt(Be.Overlay,{ref:t,className:r("fixed inset-0 z-50 bg-black/50",e),...o}));hr.displayName=Be.Overlay.displayName;var Gl=ga.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},i)=>vr(Wl,{children:[mt(hr,{}),vr(Be.Content,{ref:i,className:r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90dvh] flex-col rounded-t-xl border bg-white",e),...a,children:[!t&&vr(Be.Close,{className:r("data-[state=open]:outline-focus absolute right-2 top-2 select-none appearance-none rounded-full p-2 text-gray-700 outline-none hover:bg-gray-100 active:bg-gray-200 data-[state=open]:z-10 data-[state=open]:outline-2 data-[state=open]:outline-offset-2"),title:"\u0110\xF3ng",children:[mt(n0,{className:"h-5 w-5"}),mt("span",{className:"sr-only",children:"Close"})]}),o]})]}));Gl.displayName="DrawerContent";var $l=({className:e,...o})=>mt("div",{className:r("grid gap-1.5 p-5 text-left",e),...o});$l.displayName="DrawerHeader";var jl=({className:e,...o})=>mt("div",{className:r("mt-auto flex flex-col gap-2 p-4",e),...o});jl.displayName="DrawerFooter";var Ql=ga.forwardRef(({className:e,...o},t)=>mt(Be.Title,{ref:t,className:r(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));Ql.displayName=Be.Title.displayName;var Ul=ga.forwardRef(({className:e,...o},t)=>mt(Be.Description,{ref:t,className:r("truncate text-sm text-gray-500",e),...o}));Ul.displayName=Be.Description.displayName;var ql=({children:e,className:o,...t})=>mt("div",{className:r("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});ql.displayName="DrawerBody";import*as lo from"react";import{OTPInput as m0,OTPInputContext as c0}from"input-otp";import{Minus as d0}from"lucide-react";import{jsx as Eo,jsxs as Xl}from"react/jsx-runtime";var Yl=lo.forwardRef(({className:e,containerClassName:o,...t},a)=>Eo(m0,{ref:a,containerClassName:r("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:r("disabled:cursor-not-allowed",e),...t}));Yl.displayName="InputOTP";var Zl=lo.forwardRef(({className:e,...o},t)=>Eo("div",{ref:t,className:r("flex items-center",e),...o}));Zl.displayName="InputOTPGroup";var Kl=lo.forwardRef(({index:e,className:o,...t},a)=>{let i=lo.useContext(c0),{char:n,hasFakeCaret:s,isActive:l}=i.slots[e]??{};return Xl("div",{ref:a,className:r("border-input relative flex h-9 w-9 items-center justify-center border-y border-r border-gray-400 text-sm text-gray-900 shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"ring-ring z-10 ring-1",o),...t,children:[n,s&&Xl("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[Eo("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),Eo("style",{children:`
320
320
  @keyframes caret-blink {
321
321
  0%, 70%, 100% {
322
322
  opacity: 1;
@@ -329,7 +329,7 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
329
329
  .animate-caret-blink {
330
330
  animation: caret-blink 1.25s ease-out infinite;
331
331
  }
332
- `})]})]})});bm.displayName="InputOTPSlot";var ym=go.forwardRef(({...e},o)=>Bo("div",{ref:o,role:"separator",...e,children:Bo($0,{className:"text-gray-400"})}));ym.displayName="InputOTPSeparator";import{useEffect as Cm,useRef as tv,useState as Rm}from"react";import{toPng as ov}from"html-to-image";import wa from"react";import{LucideMessageCircleQuestion as Y0}from"lucide-react";import{QRCodeSVG as Z0}from"qrcode.react";async function wm(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let r=document.createElement("canvas");r.width=a.width,r.height=a.height;let n=r.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=r.toDataURL("image/png");o(s)},a.onerror=function(r){t(r)},a.src=e})}import G0 from"html-react-parser";import{Fragment as q0,jsx as se,jsxs as Ye}from"react/jsx-runtime";var j0=()=>{let e=[{text:"Ng\u01B0\u1EDDi d\xF9ng l\u01B0u m\xE3 QR v\u1EC1 m\xE1y (nh\u1EA5n gi\u1EEF \u1EA3nh ho\u1EB7c ch\u1EE5p m\xE0n h\xECnh)."},{text:"M\u1EDF \u1EE9ng d\u1EE5ng Ng\xE2n h\xE0ng ho\u1EB7c V\xED \u0111i\u1EC7n t\u1EED"},{text:'Trong app, ch\u1ECDn ch\u1EE9c n\u0103ng "Qu\xE9t QR" (th\u01B0\u1EDDng l\xE0 bi\u1EC3u t\u01B0\u1EE3ng camera/scan) \u0111\u1EC3 t\u1EA3i \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'},{text:'"Ch\u1ECDn \u1EA3nh t\u1EEB th\u01B0 vi\u1EC7n" / "T\u1EA3i \u1EA3nh QR" ch\u1ECDn \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'}];return se("ul",{className:"grid grid-cols-1 gap-y-6 -ml-3 list-decimal md:hidden",children:e.map((o,t)=>Ye("li",{className:"flex relative gap-4 items-center",children:[se("div",{className:"flex relative z-20 flex-shrink-0 justify-center items-center w-8 h-8 text-sm font-semibold text-gray-700 bg-gray-100 rounded-full",children:t+1}),Ye("div",{className:"flex flex-1 gap-2 items-start",children:[se("p",{className:"text-sm leading-relaxed text-gray-700",children:G0(o.text)}),t<e.length-1&&se("div",{className:"absolute left-4 top-8 w-px h-12 bg-gray-400 transform -translate-x-1/2"})]})]},t))})},Q0=({isQrForAll:e,shortTitle:o,className:t})=>Ye("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[Ye("div",{className:"flex flex-nowrap items-start",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Ye("div",{className:"flex-1 pl-4",children:[se("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),se("div",{className:"mt-1 text-gray-500",children:e?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),Ye("div",{className:"flex flex-nowrap items-center",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Ye("div",{className:"flex-1 pl-4",children:[se("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),se("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Ye("div",{className:"flex flex-nowrap items-center",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Ye("div",{className:"flex-1 pl-4",children:[se("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),Ye("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c ",o||"Truy c\u1EADp ngay"]})]})]})]}),U0=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>Ye(q0,{children:[se(Q0,{isQrForAll:e,shortTitle:o,className:t}),se(j0,{})]}),Hi=U0;import{jsx as ya,jsxs as Nm}from"react/jsx-runtime";var X0=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:r,onOpenChange:n})=>Nm($e,{open:r,onOpenChange:n,children:[ya(Go,{asChild:!0,children:e}),Nm(Le,{position:"bottom",children:[ya(xo,{children:ya(bo,{children:o})}),ya(Je,{children:ya(Hi,{isQrForAll:t,shortTitle:a})})]})]}),_i=X0;import{Fragment as hr,jsx as T,jsxs as ce}from"react/jsx-runtime";var K0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n})=>ce(hr,{children:[ce("div",{className:"relative select-none qrcode__scan__container",children:[ce("div",{className:"flex justify-center items-center space-x-2 w-full md:hidden",children:[T("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"select-none shrink-0"}),T("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),T("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"select-none shrink-0"})]}),ce("div",{className:"select-none qrcode__scan",children:[T("div",{className:"invisible opacity-0 select-none qrcode__gradient md:visible md:opacity-100",children:T("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),T("div",{className:"invisible opacity-0 select-none qrcode__border md:visible md:opacity-100",children:T("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),T("div",{className:"p-4 select-none qrcode__image",children:e?T("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy",onLoad:a}):wa.Children.map(o,s=>(wa.isValidElement(s),s))})]}),n&&ce("div",{className:"text-sm text-gray-900 md:hidden",children:[T("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),T("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),r&&ce("div",{className:i("mt-3 text-sm text-gray-900 md:hidden"),children:[T("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),T("span",{className:"font-semibold",children:r})]}),T("div",{className:"hidden mt-4 text-sm font-semibold text-gray-900 md:block",children:t?ce(hr,{children:[T("img",{src:"https://homepage.momocdn.net/img/frame-1-1-251120093929.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),T("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"})]}):ce(hr,{children:[T("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:T("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",T("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),J0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,className:s=""})=>ce(hr,{children:[T("div",{className:i(s),children:T(K0,{dateExpired:r,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,children:o})}),T("style",{children:`
332
+ `})]})]})});Kl.displayName="InputOTPSlot";var Jl=lo.forwardRef(({...e},o)=>Eo("div",{ref:o,role:"separator",...e,children:Eo(d0,{className:"text-gray-400"})}));Jl.displayName="InputOTPSeparator";import{useEffect as am,useRef as P0,useState as im}from"react";import{toPng as C0}from"html-to-image";import va from"react";import{LucideMessageCircleQuestion as x0}from"lucide-react";import{QRCodeSVG as b0}from"qrcode.react";async function em(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let n=i.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=i.toDataURL("image/png");o(s)},a.onerror=function(i){t(i)},a.src=e})}import p0 from"html-react-parser";import{Fragment as v0,jsx as se,jsxs as Qe}from"react/jsx-runtime";var f0=()=>{let e=[{text:"Ng\u01B0\u1EDDi d\xF9ng l\u01B0u m\xE3 QR v\u1EC1 m\xE1y (nh\u1EA5n gi\u1EEF \u1EA3nh ho\u1EB7c ch\u1EE5p m\xE0n h\xECnh)."},{text:"M\u1EDF \u1EE9ng d\u1EE5ng Ng\xE2n h\xE0ng ho\u1EB7c V\xED \u0111i\u1EC7n t\u1EED"},{text:'Trong app, ch\u1ECDn ch\u1EE9c n\u0103ng "Qu\xE9t QR" (th\u01B0\u1EDDng l\xE0 bi\u1EC3u t\u01B0\u1EE3ng camera/scan) \u0111\u1EC3 t\u1EA3i \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'},{text:'"Ch\u1ECDn \u1EA3nh t\u1EEB th\u01B0 vi\u1EC7n" / "T\u1EA3i \u1EA3nh QR" ch\u1ECDn \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'}];return se("ul",{className:"grid grid-cols-1 gap-y-6 -ml-3 list-decimal md:hidden",children:e.map((o,t)=>Qe("li",{className:"flex relative gap-4 items-center",children:[se("div",{className:"flex relative z-20 flex-shrink-0 justify-center items-center w-8 h-8 text-sm font-semibold text-gray-700 bg-gray-100 rounded-full",children:t+1}),Qe("div",{className:"flex flex-1 gap-2 items-start",children:[se("p",{className:"text-sm leading-relaxed text-gray-700",children:p0(o.text)}),t<e.length-1&&se("div",{className:"absolute left-4 top-8 w-px h-12 bg-gray-400 transform -translate-x-1/2"})]})]},t))})},g0=({isQrForAll:e,shortTitle:o,className:t})=>Qe("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[Qe("div",{className:"flex flex-nowrap items-start",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Qe("div",{className:"flex-1 pl-4",children:[se("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),se("div",{className:"mt-1 text-gray-500",children:e?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),Qe("div",{className:"flex flex-nowrap items-center",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Qe("div",{className:"flex-1 pl-4",children:[se("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),se("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Qe("div",{className:"flex flex-nowrap items-center",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Qe("div",{className:"flex-1 pl-4",children:[se("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),Qe("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c ",o||"Truy c\u1EADp ngay"]})]})]})]}),u0=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>Qe(v0,{children:[se(g0,{isQrForAll:e,shortTitle:o,className:t}),se(f0,{})]}),xr=u0;import{jsx as ua,jsxs as tm}from"react/jsx-runtime";var h0=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:i,onOpenChange:n})=>tm(Fe,{open:i,onOpenChange:n,children:[ua(Oo,{asChild:!0,children:e}),tm(Ie,{position:"bottom",children:[ua(go,{children:ua(uo,{children:o})}),ua(Xe,{children:ua(xr,{isQrForAll:t,shortTitle:a})})]})]}),br=h0;import{Fragment as ii,jsx as C,jsxs as ce}from"react/jsx-runtime";var y0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n})=>ce(ii,{children:[ce("div",{className:"relative select-none qrcode__scan__container",children:[ce("div",{className:"flex justify-center items-center space-x-2 w-full md:hidden",children:[C("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"select-none shrink-0"}),C("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),C("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"select-none shrink-0"})]}),ce("div",{className:"select-none qrcode__scan",children:[C("div",{className:"invisible opacity-0 select-none qrcode__gradient md:visible md:opacity-100",children:C("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),C("div",{className:"invisible opacity-0 select-none qrcode__border md:visible md:opacity-100",children:C("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),C("div",{className:"p-4 select-none qrcode__image",children:e?C("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy",onLoad:a}):va.Children.map(o,s=>(va.isValidElement(s),s))})]}),n&&ce("div",{className:"text-sm text-gray-900 md:hidden",children:[C("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),C("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),i&&ce("div",{className:r("mt-3 text-sm text-gray-900 md:hidden"),children:[C("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),C("span",{className:"font-semibold",children:i})]}),C("div",{className:"hidden mt-4 text-sm font-semibold text-gray-900 md:block",children:t?ce(ii,{children:[C("img",{src:"https://homepage.momocdn.net/img/frame-1-1-251120093929.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),C("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):ce(ii,{children:[C("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:C("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",C("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),w0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n,className:s=""})=>ce(ii,{children:[C("div",{className:r(s),children:C(y0,{dateExpired:i,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,children:o})}),C("style",{children:`
333
333
  .qrcode__scan__container {
334
334
  padding: 15px;
335
335
  background-color: white;
@@ -397,7 +397,7 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
397
397
  transform: translate3d(0, 30%, 0);
398
398
  }
399
399
  }
400
- `})]}),ev=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:r,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:m,dateExpired:c,priceOrder:d,titleOrder:p})=>{let[g,v]=wa.useState(void 0);return wa.useEffect(()=>{a?wm(a).then(v).catch(()=>v(void 0)):v(void 0)},[a]),wa.useEffect(()=>{t&&g&&typeof s=="function"&&!o&&s()},[t,g,s,o]),ce("div",{className:"relative z-[1]",children:[ce("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:m,children:[T("img",{className:"hidden absolute right-6 top-14 pointer-events-none select-none md:flex",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250821154232-638913877527374430.png",alt:"pattern-qr"}),T("div",{className:i("mb-2 hidden text-base font-bold text-gray-900 md:block",l&&"opacity-0 md:opacity-100"),children:p||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),l&&T("div",{className:"overflow-hidden absolute top-0 right-0 left-0 visible z-20 w-full h-full opacity-100 cursor-pointer md:hidden md:select-none",children:T("img",{src:l,alt:"QR Code",className:"absolute top-1/2 left-1/2 max-w-none max-h-full -translate-x-1/2 -translate-y-1/2"})}),ce(J0,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,children:[t&&g&&!o&&T(Z0,{value:t,size:215,imageSettings:{src:`${g}`,height:40,width:40,excavate:!0},level:"H"}),r&&T("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:T("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&T("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:T(li,{size:"lg"})})]})]}),ce("div",{className:"relative z-10 px-5 pb-5 text-center bg-pink-50 bg-repeat-y select-none qrcode__guide",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[ce("div",{className:i("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[ce("div",{className:"rounded-full ripple size-5",children:[T("div",{className:"ripple-1"}),T("div",{className:"ripple-2"})]}),T("img",{className:"object-contain relative z-10 -mt-1 drop-shadow-lg select-none qrcode__hand size-7",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),T("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),T(_i,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:ce("div",{className:"flex justify-center items-center space-x-1 text-sm font-semibold text-center text-pink-600 cursor-pointer",children:[T("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",T(Y0,{className:"size-4"})," "]})}),T("style",{children:`
400
+ `})]}),N0=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:i,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:m,dateExpired:c,priceOrder:d,titleOrder:p})=>{let[g,v]=va.useState(void 0);return va.useEffect(()=>{a?em(a).then(v).catch(()=>v(void 0)):v(void 0)},[a]),va.useEffect(()=>{t&&g&&typeof s=="function"&&!o&&s()},[t,g,s,o]),ce("div",{className:"relative z-[1]",children:[ce("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:m,children:[C("img",{className:"hidden absolute right-6 top-14 pointer-events-none select-none md:flex",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250821154232-638913877527374430.png",alt:"pattern-qr"}),C("div",{className:r("mb-2 hidden text-base font-bold text-gray-900 md:block",l&&"opacity-0 md:opacity-100"),children:p||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),l&&C("div",{className:"overflow-hidden absolute top-0 right-0 left-0 visible z-20 w-full h-full opacity-100 cursor-pointer md:hidden md:select-none",children:C("img",{src:l,alt:"QR Code",className:"absolute top-1/2 left-1/2 max-w-none max-h-full -translate-x-1/2 -translate-y-1/2"})}),ce(w0,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,children:[t&&g&&!o&&C(b0,{value:t,size:215,imageSettings:{src:`${g}`,height:40,width:40,excavate:!0},level:"H"}),i&&C("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:C("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&C("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:C(Qi,{size:"lg"})})]})]}),ce("div",{className:"relative z-10 px-5 pb-5 text-center bg-pink-50 bg-repeat-y select-none qrcode__guide",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[ce("div",{className:r("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[ce("div",{className:"rounded-full ripple size-5",children:[C("div",{className:"ripple-1"}),C("div",{className:"ripple-2"})]}),C("img",{className:"object-contain relative z-10 -mt-1 drop-shadow-lg select-none qrcode__hand size-7",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),C("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),C(br,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:ce("div",{className:"flex justify-center items-center space-x-1 text-sm font-semibold text-center text-pink-600 cursor-pointer",children:[C("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",C(x0,{className:"size-4"})," "]})}),C("style",{children:`
401
401
  .ripple {
402
402
  box-sizing: border-box;
403
403
  position: relative;
@@ -453,7 +453,7 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
453
453
  transform: scale(1) translateY(0);
454
454
  }
455
455
  }
456
- `})]})]})},Pm=ev;import{Fragment as nv,jsx as Bi}from"react/jsx-runtime";var av=["qrcode__gradient","qrcode__guide","qrcode__title"],rv=e=>!av.some(o=>e.classList?.contains(o)),iv=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:m})=>{let c=tv(null),[d,p]=Rm(null),[g,v]=Rm(!1);return Cm(()=>{if(g&&c.current){let P=setTimeout(()=>{c.current&&ov(c.current,{filter:rv}).then(w=>{p(w)}).catch(w=>{console.error("Error generating QR image:",w)})},2e3);return()=>clearTimeout(P)}},[g,t]),Cm(()=>{e&&v(!1)},[e]),Bi(nv,{children:Bi("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",m),children:Bi(Pm,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:r,expired:o,loading:e,qrCodeRef:c,titleOrder:l,onQrLoaded:()=>{v(!0)},qrImageBase64:d,dateExpired:n,priceOrder:s})})})};import{jsx as zt,jsxs as Oi}from"react/jsx-runtime";var sv=e=>{switch(e){case"email":return{type:"email",inputMode:"email",autoComplete:"email"};case"phone":return{type:"tel",inputMode:"tel",pattern:"[0-9+\\-\\s\\(\\)]*",autoComplete:"tel"};case"number":return{type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off"};case"password":return{type:"password",autoComplete:"current-password"};case"text":default:return{type:"text",autoComplete:"off"}}},Tm=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return zt(Wr,{placeholder:e.placeholder,value:n||"",onChange:d=>s(d.target.value),onBlur:l,disabled:e.disabled,className:t,maxLength:e.maxLength,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"});case"boolean":let m=n!==void 0?!!n:!!e.defaultChecked;return Oi("div",{className:"flex items-center space-x-3",children:[zt(ja,{checked:m,onCheckedChange:d=>{s(d)},disabled:e.disabled,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"}),e.switchLabel&&zt("span",{className:"text-sm text-gray-700",children:e.switchLabel})]});default:let c=sv(e.type);return zt(ei,{...c,placeholder:e.placeholder,value:n||"",isError:r.error,onChange:d=>{let p=d.target.value;e.type==="number"&&(p=p.replace(/[^0-9]/g,"")),e.type==="phone"&&(p=p.replace(/[^0-9+\-\s()]/g,"")),s(p)},onBlur:l,disabled:e.disabled,className:t,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false",maxLength:e.maxLength})}};return zt(pi,{control:o,name:e.name,render:({field:r,fieldState:n})=>Oi(tr,{className:e.className,children:[e.label&&Oi(or,{htmlFor:e.name,children:[e.label,e.required&&zt("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),zt(ar,{children:a({...r,error:n.error})}),e.description&&zt(rr,{id:`${e.name}-description`,children:e.description}),zt(ir,{})]})})};import{useMemo as Sm}from"react";import{zodResolver as lv}from"@hookform/resolvers/zod";import{useForm as mv}from"react-hook-form";import{z as Na}from"zod";var km=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=Na.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=Na.string().regex(/^[a-zA-ZÀ-ỹ0-9\s\-_.]*$/,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t`);break;case"boolean":a=Na.boolean();break;case"phone":case"number":case"password":case"textarea":default:a=Na.string()}t.type==="boolean"?t.required&&(a=a.refine(r=>r===!0,{message:`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`})):(t.required&&(a=a.min(1,`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`)),t.minLength&&t.minLength>0&&(a=a.min(t.minLength,`${t.label||t.name} ph\u1EA3i c\xF3 \xEDt nh\u1EA5t ${t.minLength} k\xFD t\u1EF1`)),t.maxLength&&t.maxLength>0&&(a=a.max(t.maxLength,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 ${t.maxLength} k\xFD t\u1EF1`)),t.type==="phone"&&t.required&&(a=a.min(10,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`).max(15,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.pattern&&(a=a.regex(t.pattern,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.customValidation&&(a=a.refine(t.customValidation,{message:"Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7"})),t.required||(a=a.optional())),o[t.name]=a}),Na.object(o)};var Dm=e=>{let o=Sm(()=>km(e),[e]),t=Sm(()=>{let r={};return e.forEach(n=>{switch(n.type){case"boolean":n.value!==void 0?r[n.name]=!!n.value:r[n.name]=!!n.defaultChecked;break;default:n.value!==void 0?r[n.name]=n.value:r[n.name]=""}}),r},[e]),a=mv({resolver:lv(o),defaultValues:t,mode:"onSubmit"});return{form:a,formData:a.watch(),errors:a.formState.errors,isValid:a.formState.isValid,isSubmitting:a.formState.isSubmitting,reset:a.reset,setValue:a.setValue,trigger:a.trigger}};import{Fragment as Mm,jsx as Ce,jsxs as Vi}from"react/jsx-runtime";var cv=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,dv=({dataHeading:e,dataMedia:o,captchaComponent:t,onSubmit:a,fieldsSchema:r,loading:n=!1,onFieldChange:s,onValidationError:l,dataButtons:m,classNameMedia:c,classNameFormLead:d,classNameWrapper:p,classNameCaptcha:g})=>{let{form:v,errors:P,reset:w}=Dm(r),C=async B=>{try{s&&Object.entries(B).forEach(([L,Ve])=>{s(L,Ve)}),a&&await a(B,w)}catch(L){if(console.error("Form submission error:",L),l){let Ve={};Object.entries(P).forEach(([We,Pa])=>{Ve[We]={message:Pa?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(Ve)}}},z=()=>{v?.handleSubmit(C)()},_=()=>{let B=(m?.buttons||[]).map((L,Ve)=>{let We=L?.variant==="primary";return Ve===0||We?{...L,action:z,isLoading:n,isDisabled:n}:L});return{...m,buttons:B}},F=()=>"space-y-4",ut=()=>Ce(Mm,{children:o&&Ce(E,{className:i("mb-6 shrink-0",c),ratio:cv(o?.ratio),children:Ce("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})}),N=()=>Vi("div",{className:i("shadow-small bg-white p-8",d),children:[e&&Ce(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h2",align:e?.align||"center",sizeHeading:e?.sizeHeading||"small",colorScheme:e?.colorScheme||"black",className:"mb-6"}),r?.length>0&&r&&Ce(di,{...v,children:Vi("form",{onSubmit:v.handleSubmit(C),className:"space-y-6",children:[Ce("div",{className:F(),children:r?.map(B=>Ce(Tm,{field:B,control:v.control},B.name))}),t&&Ce("div",{className:i("flex",g),children:t}),m&&Ce(x,{..._()})]})})]});return Ce(Mm,{children:Vi("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",p),children:[o&&Ce("div",{className:"shrink-0",children:ut()}),Ce("div",{className:"relative mx-auto max-w-xl overflow-hidden rounded-lg",children:N()})]})})},pv=({idSection:e,background:o,className:t,...a})=>Ce(O,{className:t,idSection:e,background:o,children:Ce(dv,{...a})});import uv from"color";import vv from"tailwindcss/plugin.js";var Im={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 Am={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Lm={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Fm={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var zm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Em={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Hm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var _m={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Bm={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Om={white:"#ffffff",black:"#000000",blue:Am,green:Lm,pink:Fm,purple:zm,red:Em,yellow:Hm,gray:Bm,orange:_m};var Wi={...Om};var Vm={"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 gt="250ms",Wm={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":gt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":gt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":gt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":gt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":gt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":gt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":gt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":gt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":gt},".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":gt}};var $m={".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 Gm={".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 jm={...$m,...Wm,...Gm};import{flatten as fv}from"flat";function gv(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 Qm=e=>gv(fv(e,{safe:!0,delimiter:"-"}));var hv=e=>{let o={utilities:{},colors:{}},t=Qm(Wi),a=Vm,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=uv(s).rgb().array(),d=`--${e}-${n}`;o.utilities[r][d]=`${l} ${m} ${c}`,o.colors[n]=`rgb(var(${d}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([m,c])=>{let d=`${l}-${m}`;o.utilities[r][d]=c});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][l]=m}}),o},xv=()=>{let e="mobase",o=hv(e);return vv(({addBase:t,addUtilities:a,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...jm})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},extend:{fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"],mono:["SFMono-Regular","Consolas","Liberation Mono","Menlo","monospace"]},colors:{...Wi,...o?.colors,border:"rgba(var(--border))"},boxShadow:{small:`var(--${e}-box-shadow-small)`,medium:`var(--${e}-box-shadow-medium)`,large:`var(--${e}-box-shadow-large)`},borderRadius:{none:`var(--${e}-radius-none)`,sm:`var(--${e}-radius-sm)`,DEFAULT:`var(--${e}-radius-default)`,md:`var(--${e}-radius-md)`,lg:`var(--${e}-radius-lg)`,xl:`var(--${e}-radius-xl)`,"2xl":`var(--${e}-radius-2xl)`,"3xl":`var(--${e}-radius-3xl)`,full:`var(--${e}-radius-full)`},fontSize:{xxs:[`var(--${e}-font-size-xxs)`,`var(--${e}-line-height-xxs)`],xs:[`var(--${e}-font-size-xs)`,`var(--${e}-line-height-xs)`],sm:[`var(--${e}-font-size-sm)`,`var(--${e}-line-height-sm)`],base:[`var(--${e}-font-size-base)`,`var(--${e}-line-height-base)`],lg:[`var(--${e}-font-size-lg)`,`var(--${e}-line-height-lg)`],xl:[`var(--${e}-font-size-xl)`,`var(--${e}-line-height-xl)`],"2xl":[`var(--${e}-font-size-2xl)`,`var(--${e}-line-height-2xl)`],"3xl":[`var(--${e}-font-size-3xl)`,`var(--${e}-line-height-3xl)`],"4xl":[`var(--${e}-font-size-4xl)`,`var(--${e}-line-height-4xl)`],"5xl":[`var(--${e}-font-size-5xl)`,`var(--${e}-line-height-5xl)`],"6xl":[`var(--${e}-font-size-6xl)`,`var(--${e}-line-height-6xl)`],"7xl":[`var(--${e}-font-size-7xl)`,`var(--${e}-line-height-7xl)`],"8xl":[`var(--${e}-font-size-8xl)`,`var(--${e}-line-height-8xl)`],"9xl":[`var(--${e}-font-size-9xl)`,`var(--${e}-line-height-9xl)`]},zIndex:{negative:`var(--${e}-z-index-negative)`,workbench:`var(--${e}-z-index-workbench)`,default:`var(--${e}-z-index-default)`,"workbench-header":`var(--${e}-z-index-workbench-header)`,modal:`var(--${e}-z-index-modal)`,"modal-content":`var(--${e}-z-index-modal-content)`,dropdown:`var(--${e}-z-index-dropdown)`,tooltip:`var(--${e}-z-index-tooltip)`,notification:`var(--${e}-z-index-notification)`},...Im}}})};import{Fragment as yv,jsx as I,jsxs as wv}from"react/jsx-runtime";var bv=wv(yv,{children:[I("meta",{name:"abstract",content:"V\xED \u0111i\u1EC7n t\u1EED MoMo - Si\xEAu \u1EE9ng d\u1EE5ng thanh to\xE1n s\u1ED1 1 Vi\u1EC7t Nam"}),I("meta",{name:"distribution",content:"Global"}),I("meta",{name:"author",content:"V\xED MoMo"}),I("meta",{property:"fb:app_id",content:"320653355376196"}),I("meta",{property:"fb:pages",content:"138010322921640"}),I("link",{rel:"shortcut icon",href:"/favicon.ico"}),I("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),I("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),I("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),I("meta",{name:"language",content:"vietnamese"}),I("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),I("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),I("meta",{name:"RATING",content:"GENERAL"}),I("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),I("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),I("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),I("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),I("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),I("link",{rel:"dns-prefetch",href:"//facebook.com"}),I("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),I("link",{rel:"dns-prefetch",href:"//www.google.com"}),I("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),I("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),I("link",{rel:"preconnect",href:"//connect.facebook.net"}),I("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),I("link",{rel:"preconnect",href:"//www.google-analytics.com"}),I("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),I("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),I("link",{rel:"preconnect",href:"//www.google.com"}),I("link",{rel:"preconnect",href:"//www.google.com.vn"}),I("link",{rel:"preconnect",href:"//www.googleadservices.com"}),I("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
456
+ `})]})]})},om=N0;import{Fragment as S0,jsx as yr}from"react/jsx-runtime";var R0=["qrcode__gradient","qrcode__guide","qrcode__title"],T0=e=>!R0.some(o=>e.classList?.contains(o)),k0=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:i,dateExpired:n,priceOrder:s,titleOrder:l,className:m})=>{let c=P0(null),[d,p]=im(null),[g,v]=im(!1);return am(()=>{if(g&&c.current){let R=setTimeout(()=>{c.current&&C0(c.current,{filter:T0}).then(N=>{p(N)}).catch(N=>{console.error("Error generating QR image:",N)})},2e3);return()=>clearTimeout(R)}},[g,t]),am(()=>{e&&v(!1)},[e]),yr(S0,{children:yr("div",{className:r("relative h-full md:col-span-7 md:rounded-lg",m),children:yr(om,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:i,expired:o,loading:e,qrCodeRef:c,titleOrder:l,onQrLoaded:()=>{v(!0)},qrImageBase64:d,dateExpired:n,priceOrder:s})})})};import I0 from"color";import A0 from"tailwindcss/plugin.js";var rm={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 nm={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var sm={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var lm={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var mm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var cm={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var dm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var pm={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var fm={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var gm={white:"#ffffff",black:"#000000",blue:nm,green:sm,pink:lm,purple:mm,red:cm,yellow:dm,gray:fm,orange:pm};var wr={...gm};var um={"disabled-opacity":.5,"box-shadow":{small:"0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",medium:"0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",large:"0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"},radius:{none:"0px",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"font-size":{xxs:"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},"line-height":{xxs:"1rem",xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"1","6xl":"1","7xl":"1","8xl":"1","9xl":"1"}};var ct="250ms",vm={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ct},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ct},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ct},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ct},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ct},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ct},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":ct},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":ct},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ct},".transition-transform-colors-opacity":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ct}};var hm={".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 xm={".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 bm={...hm,...vm,...xm};import{flatten as D0}from"flat";function M0(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 ym=e=>M0(D0(e,{safe:!0,delimiter:"-"}));var L0=e=>{let o={utilities:{},colors:{}},t=ym(wr),a=um,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=I0(s).rgb().array(),d=`--${e}-${n}`;o.utilities[i][d]=`${l} ${m} ${c}`,o.colors[n]=`rgb(var(${d}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([m,c])=>{let d=`${l}-${m}`;o.utilities[i][d]=c});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=m}}),o},z0=()=>{let e="mobase",o=L0(e);return A0(({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({...bm})},{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:{...wr,...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)`},...rm}}})};import{Fragment as H0,jsx as I,jsxs as _0}from"react/jsx-runtime";var E0=_0(H0,{children:[I("meta",{name:"abstract",content:"V\xED \u0111i\u1EC7n t\u1EED MoMo - Si\xEAu \u1EE9ng d\u1EE5ng thanh to\xE1n s\u1ED1 1 Vi\u1EC7t Nam"}),I("meta",{name:"distribution",content:"Global"}),I("meta",{name:"author",content:"V\xED MoMo"}),I("meta",{property:"fb:app_id",content:"320653355376196"}),I("meta",{property:"fb:pages",content:"138010322921640"}),I("link",{rel:"shortcut icon",href:"/favicon.ico"}),I("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),I("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),I("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),I("meta",{name:"language",content:"vietnamese"}),I("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),I("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),I("meta",{name:"RATING",content:"GENERAL"}),I("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),I("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),I("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),I("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),I("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),I("link",{rel:"dns-prefetch",href:"//facebook.com"}),I("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),I("link",{rel:"dns-prefetch",href:"//www.google.com"}),I("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),I("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),I("link",{rel:"preconnect",href:"//connect.facebook.net"}),I("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),I("link",{rel:"preconnect",href:"//www.google-analytics.com"}),I("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),I("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),I("link",{rel:"preconnect",href:"//www.google.com"}),I("link",{rel:"preconnect",href:"//www.google.com.vn"}),I("link",{rel:"preconnect",href:"//www.googleadservices.com"}),I("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
457
457
  "@context": "https://schema.org/",
458
458
  "@type": "WebSite",
459
459
  "@id":"https://www.momo.vn/#website",
@@ -498,5 +498,5 @@ import*as Wo from"react";import{ChevronDownIcon as Zm}from"@heroicons/react/20/s
498
498
  "https://www.linkedin.com/company/momo-mservice/",
499
499
  "https://github.com/momo-wallet"
500
500
  ]
501
- }`}})]});export{ht as Accordion,yt as AccordionContent,xt as AccordionItem,bt as AccordionTrigger,Ge as ActionButton,Ad as AlertDialog,In as AlertDialogAction,An as AlertDialogCancel,Tn as AlertDialogContent,Mn as AlertDialogDescription,Sn as AlertDialogFooter,kn as AlertDialogHeader,_r as AlertDialogOverlay,Rn as AlertDialogPortal,Dn as AlertDialogTitle,Ld as AlertDialogTrigger,E as AspectRatio,Ef as Badge,ad as BlogSection,Xi as Breadcrumb,tn as BreadcrumbEllipsis,Zi as BreadcrumbItem,Ki as BreadcrumbLink,Yi as BreadcrumbList,Ji as BreadcrumbPage,en as BreadcrumbSeparator,Ae as Button,x as ButtonsBlock,Zu as CTASection,Ia as Calendar,ca as Callout,hs as Card,ws as CardContent,ys as CardDescription,Ns as CardFooter,xs as CardHeader,bs as CardTitle,ge as Carousel,ue as CarouselContent,Co as CarouselDots,le as CarouselItem,Po as CarouselNext,No as CarouselPrevious,Da as Checkbox,qa as ChoiceboxGroup,Xa as ChoiceboxGroupItem,Os as ChoiceboxMultiItem,uf as Combobox,gf as ComboboxContent,ff as ComboboxTrigger,ai as Command,cf as CommandDialog,Rs as CommandEmpty,Ts as CommandGroup,Ps as CommandInput,Ss as CommandItem,Cs as CommandList,ks as CommandSeparator,Ds as CommandShortcut,rg as Comment,Nd as DatePicker,Id as DateSelect,$e as Dialog,Je as DialogBody,wr as DialogClose,Le as DialogContent,qi as DialogDescription,Ui as DialogFooter,xo as DialogHeader,Nr as DialogOverlay,Qi as DialogPortal,Yt as DialogQr,bo as DialogTitle,Go as DialogTrigger,lm as Drawer,um as DrawerBody,O0 as DrawerClose,cm as DrawerContent,gm as DrawerDescription,pm as DrawerFooter,dm as DrawerHeader,Ei as DrawerOverlay,mm as DrawerPortal,fm as DrawerTitle,B0 as DrawerTrigger,Cg as DropdownMenu,fl as DropdownMenuCheckboxItem,dl as DropdownMenuContent,Tg as DropdownMenuGroup,pl as DropdownMenuItem,ul as DropdownMenuLabel,kg as DropdownMenuPortal,Dg as DropdownMenuRadioGroup,gl as DropdownMenuRadioItem,vl as DropdownMenuSeparator,hl as DropdownMenuShortcut,Sg as DropdownMenuSub,cl as DropdownMenuSubContent,ml as DropdownMenuSubTrigger,Rg as DropdownMenuTrigger,Hu as FAQSection,bu as FeatureSection,sf as Footer,di as Form,ar as FormControl,rr as FormDescription,pi as FormField,tr as FormItem,or as FormLabel,pv as FormLeadSupport,ir as FormMessage,qd as GuideSection,fs as HeaderNavigation,Tr as Heading,h as HeadingBlock,Sr as HeadingGroup,kr as HeadingSub,Rr as HeadingTagline,Ug as HeroSection,Ct as HorizontalContent,Tt as HorizontalNext,Rt as HorizontalPrevious,Pt as HorizontalScroll,zg as HowItWorksSection,ie as IconButton,hm as InputOTP,xm as InputOTPGroup,ym as InputOTPSeparator,bm as InputOTPSlot,si as LightBoxGalleryContent,ni as LightboxGallery,If as LightboxThumbnail,a0 as MetricsSection,Ba as NavigationMenu,Ga as NavigationMenuContent,Va as NavigationMenuItem,na as NavigationMenuLink,Oa as NavigationMenuList,$a as NavigationMenuTrigger,Qu as NewsSection,Vn as Pagination,rm as Payment,Hi as PaymentGuide,_i as PaymentGuideDialog,n0 as PaymentInvoice,g0 as PaymentMethods,D0 as PaymentResult,w0 as PaymentResultContent,x0 as PaymentResultFooter,qo as Popover,To as PopoverContent,Xo as PopoverTrigger,gg as ProgressSteps,fg as ProgressStepsItem,pg as ProgressStepsItemTrigger,Qs as Progressbar,iv as QRPayment,as as RadioGroup,rs as RadioGroupItem,mi as ReadMoreLite,kf as SearchBar,O as SectionBlock,Ko as Select,So as SelectContent,ea as SelectGroup,Ht as SelectItem,bn as SelectLabel,Er as SelectScrollDownButton,zr as SelectScrollUpButton,yn as SelectSeparator,ko as SelectTrigger,Jo as SelectValue,bv as SiteMeta,Ya as Skeleton,Xs as Slider,fu as SocialProofSection,li as Spinner,Zn as Stepper,ja as Switch,kt as Tabs,ot as TabsContent,et as TabsList,tt as TabsTrigger,Au as TestimonialSection,Wr as TextArea,fe as TextButton,ei as TextInput,Un as ToastAction,pp as Toaster,gp as Tooltip,qn as TooltipArrow,Xn as TooltipContent,fp as TooltipProvider,up as TooltipTrigger,E0 as Topbar,Ws as badgeVariants,Ke as buttonVariants,xv as mobaseTW,Wa as navigationMenuTriggerStyle,sn as textButtonVariants,Gn as toast,fa as useFormField,jr as useToast};
501
+ }`}})]});export{pt as Accordion,ut as AccordionContent,ft as AccordionItem,gt as AccordionTrigger,Oe as ActionButton,nd as AlertDialog,pn as AlertDialogAction,fn as AlertDialogCancel,sn as AlertDialogContent,dn as AlertDialogDescription,mn as AlertDialogFooter,ln as AlertDialogHeader,Ci as AlertDialogOverlay,nn as AlertDialogPortal,cn as AlertDialogTitle,sd as AlertDialogTrigger,_ as AspectRatio,df as Badge,Ic as BlogSection,Mr as Breadcrumb,Hr as BreadcrumbEllipsis,Ar as BreadcrumbItem,Lr as BreadcrumbLink,Ir as BreadcrumbList,zr as BreadcrumbPage,Er as BreadcrumbSeparator,Me as Button,x as ButtonsBlock,bu as CTASection,Ra as Calendar,na as Callout,Jn as Card,as as CardContent,os as CardDescription,is as CardFooter,es as CardHeader,ts as CardTitle,ge as Carousel,ue as CarouselContent,yo as CarouselDots,le as CarouselItem,bo as CarouselNext,xo as CarouselPrevious,Pa as Checkbox,Va as ChoiceboxGroup,Wa as ChoiceboxGroupItem,Ns as ChoiceboxMultiItem,Gp as Combobox,Wp as ComboboxContent,Vp as ComboboxTrigger,Vi as Command,Bp as CommandDialog,ss as CommandEmpty,ls as CommandGroup,rs as CommandInput,cs as CommandItem,ns as CommandList,ms as CommandSeparator,ds as CommandShortcut,Lf as Comment,Yc as DatePicker,rd as DateSelect,Fe as Dialog,Xe as DialogBody,li as DialogClose,Ie as DialogContent,Dr as DialogDescription,Sr as DialogFooter,go as DialogHeader,mi as DialogOverlay,kr as DialogPortal,jt as DialogQr,uo as DialogTitle,Oo as DialogTrigger,Vl as Drawer,ql as DrawerBody,l0 as DrawerClose,Gl as DrawerContent,Ul as DrawerDescription,jl as DrawerFooter,$l as DrawerHeader,hr as DrawerOverlay,Wl as DrawerPortal,Ql as DrawerTitle,s0 as DrawerTrigger,Qf as DropdownMenu,Qs as DropdownMenuCheckboxItem,$s as DropdownMenuContent,qf as DropdownMenuGroup,js as DropdownMenuItem,qs as DropdownMenuLabel,Xf as DropdownMenuPortal,Zf as DropdownMenuRadioGroup,Us as DropdownMenuRadioItem,Xs as DropdownMenuSeparator,Ys as DropdownMenuShortcut,Yf as DropdownMenuSub,Gs as DropdownMenuSubContent,Ws as DropdownMenuSubTrigger,Uf as DropdownMenuTrigger,ru as FAQSection,Vg as FeatureSection,Ep as Footer,Nd as GuideSection,Xn as HeaderNavigation,fi as Heading,h as HeadingBlock,ui as HeadingGroup,gi as HeadingSub,pi as HeadingTagline,ug as HeroSection,bt as HorizontalContent,wt as HorizontalNext,yt as HorizontalPrevious,xt as HorizontalScroll,ag as HowItWorksSection,re as IconButton,Yl as InputOTP,Zl as InputOTPGroup,Jl as InputOTPSeparator,Kl as InputOTPSlot,ji as LightBoxGalleryContent,$i as LightboxGallery,nf as LightboxThumbnail,Ru as MetricsSection,La as NavigationMenu,Ba as NavigationMenuContent,Ea as NavigationMenuItem,oa as NavigationMenuLink,za as NavigationMenuList,_a as NavigationMenuTrigger,gu as NewsSection,Nn as Pagination,_l as Payment,xr as PaymentGuide,br as PaymentGuideDialog,Su as PaymentInvoice,Hu as PaymentMethods,Zu as PaymentResult,Gu as PaymentResultContent,Ou as PaymentResultFooter,$o as Popover,No as PopoverContent,jo as PopoverTrigger,Gf as ProgressSteps,Wf as ProgressStepsItem,Vf as ProgressStepsItemTrigger,Ss as Progressbar,k0 as QRPayment,Fn as RadioGroup,On as RadioGroupItem,Ui as ReadMoreLite,tf as SearchBar,V as SectionBlock,qo as Select,Co as SelectContent,Yo as SelectGroup,It as SelectItem,Jr as SelectLabel,Ni as SelectScrollDownButton,wi as SelectScrollUpButton,en as SelectSeparator,Po as SelectTrigger,Xo as SelectValue,E0 as SiteMeta,Ga as Skeleton,Is as Slider,Eg as SocialProofSection,Qi as Spinner,An as Stepper,Hn as Switch,Nt as Tabs,Ke as TabsContent,Ye as TabsList,Ze as TabsTrigger,eu as TestimonialSection,Md as TextArea,fe as TextButton,Kd as TextInput,Sn as ToastAction,Vd as Toaster,Gd as Tooltip,Dn as TooltipArrow,Mn as TooltipContent,Wd as TooltipProvider,$d as TooltipTrigger,i0 as Topbar,Cs as badgeVariants,qe as buttonVariants,z0 as mobaseTW,Ha as navigationMenuTriggerStyle,Vr as textButtonVariants,Rn as toast,Mi as useToast};
502
502
  //# sourceMappingURL=index.js.map