@momo-webplatform/mobase 0.2.102-link → 0.2.103-link

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 $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/solid";import*as Ie from"@radix-ui/react-accordion";import*as Ym from"react";import{twMerge as Zm}from"tailwind-merge";var ht={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var Gi={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var Wo=[{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"}],br=[{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 pe={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 Km}from"@artsy/fresnel";function i(...e){return Zm(e)}var ji=Km({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Lv=ji.createMediaStyle(),{Media:Ke,MediaContextProvider:vo}=ji;import{jsx as ho,jsxs as ec}from"react/jsx-runtime";var xt=$o.forwardRef(({className:e,...o},t)=>ho(Ie.Root,{ref:t,...o}));xt.displayName="AccordionRoot";var bt=$o.forwardRef(({className:e,...o},t)=>ho(Ie.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));bt.displayName="AccordionItem";var yt=$o.forwardRef(({className:e,children:o,...t},a)=>ho(Ie.Header,{className:"flex",children:ec(Ie.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,ho(Jm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));yt.displayName=Ie.Trigger.displayName;var wt=$o.forwardRef(({className:e,children:o,...t},a)=>ho(Ie.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:ho("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));wt.displayName=Ie.Content.displayName;import*as Qi from"react";import{Slot as ac}from"@radix-ui/react-slot";import{cva as rc}from"class-variance-authority";import{jsx as Le,jsxs as oc}from"react/jsx-runtime";var tc=({className:e})=>oc("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[Le("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),Le("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),Le("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),Le("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),Le("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),Le("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),Le("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),Le("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),Le("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),Le("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),Le("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),Le("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),xo=tc;import{Fragment as nc,jsx as yr,jsxs as ic}from"react/jsx-runtime";var Je=rc("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=Qi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?ac:"button",c=i(Je({variant:o,size:t,className:e}),{"cursor-wait":r});return yr(nc,{children:a?yr(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):ic(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[r&&yr(xo,{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 lc}from"qrcode.react";import*as Go from"react";import{XMarkIcon as sc}from"@heroicons/react/16/solid";import*as Y from"@radix-ui/react-dialog";import{jsx as Nt,jsxs as wr}from"react/jsx-runtime";var Ge=Y.Root,jo=Y.Trigger,Ui=Y.Portal,Nr=Y.Close,Pr=Go.forwardRef(({className:e,...o},t)=>Nt(Y.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}));Pr.displayName=Y.Overlay.displayName;var Fe=Go.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 wr(Ui,{children:[Nt(Pr,{}),wr(Y.Content,{ref:c,className:i(...v),...m,children:[l,!t&&wr(Y.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:[Nt(sc,{className:"h-5 w-5 text-gray-700"}),Nt("span",{className:"sr-only",children:"Close"})]})]})]})});Fe.displayName=Y.Content.displayName;var bo=({className:e,...o})=>Nt("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});bo.displayName="DialogHeader";var et=({className:e,isCondensed:o=!1,...t})=>Nt("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});et.displayName="DialogBody";var qi=({className:e,isDivider:o=!0,...t})=>Nt("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});qi.displayName="DialogFooter";var yo=Go.forwardRef(({className:e,...o},t)=>Nt(Y.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));yo.displayName=Y.Title.displayName;var Xi=Go.forwardRef(({className:e,...o},t)=>Nt(Y.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));Xi.displayName=Y.Description.displayName;import{Fragment as Cr,jsx as M,jsxs as fe}from"react/jsx-runtime";var mc=({img:e="",children:o,isQrForAll:t})=>fe(Cr,{children:[M("div",{className:"qrcode__scan__container",children:fe("div",{className:"qrcode__scan",children:[M("div",{className:"qrcode__gradient",children:M("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),M("div",{className:"qrcode__border",children:M("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),M("div",{className:"p-4 qrcode__image",children:e?M("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),M("div",{className:"mt-4 text-sm text-white",children:t?fe(Cr,{children:[M("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),M("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):fe(Cr,{children:[M("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:M("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",M("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),M("style",{children:`
1
+ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/solid";import*as Ie from"@radix-ui/react-accordion";import*as Ym from"react";import{twMerge as Zm}from"tailwind-merge";var ht={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 ji={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 Wo=[{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"}],br=[{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 pe={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 Km}from"@artsy/fresnel";function i(...e){return Zm(e)}var Qi=Km({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Lv=Qi.createMediaStyle(),{Media:Ke,MediaContextProvider:vo}=Qi;import{jsx as ho,jsxs as ec}from"react/jsx-runtime";var xt=$o.forwardRef(({className:e,...o},t)=>ho(Ie.Root,{ref:t,...o}));xt.displayName="AccordionRoot";var bt=$o.forwardRef(({className:e,...o},t)=>ho(Ie.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));bt.displayName="AccordionItem";var yt=$o.forwardRef(({className:e,children:o,...t},a)=>ho(Ie.Header,{className:"flex",children:ec(Ie.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,ho(Jm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));yt.displayName=Ie.Trigger.displayName;var wt=$o.forwardRef(({className:e,children:o,...t},a)=>ho(Ie.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:ho("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));wt.displayName=Ie.Content.displayName;import*as Ui from"react";import{Slot as ac}from"@radix-ui/react-slot";import{cva as rc}from"class-variance-authority";import{jsx as Le,jsxs as oc}from"react/jsx-runtime";var tc=({className:e})=>oc("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[Le("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),Le("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),Le("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),Le("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),Le("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),Le("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),Le("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),Le("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),Le("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),Le("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),Le("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),Le("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),xo=tc;import{Fragment as nc,jsx as yr,jsxs as ic}from"react/jsx-runtime";var Je=rc("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=Ui.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?ac:"button",c=i(Je({variant:o,size:t,className:e}),{"cursor-wait":r});return yr(nc,{children:a?yr(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):ic(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[r&&yr(xo,{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 lc}from"qrcode.react";import*as Go from"react";import{XMarkIcon as sc}from"@heroicons/react/16/solid";import*as Y from"@radix-ui/react-dialog";import{jsx as Nt,jsxs as wr}from"react/jsx-runtime";var Ge=Y.Root,jo=Y.Trigger,qi=Y.Portal,Nr=Y.Close,Pr=Go.forwardRef(({className:e,...o},t)=>Nt(Y.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}));Pr.displayName=Y.Overlay.displayName;var Fe=Go.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 wr(qi,{children:[Nt(Pr,{}),wr(Y.Content,{ref:c,className:i(...v),...m,children:[l,!t&&wr(Y.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:[Nt(sc,{className:"h-5 w-5 text-gray-700"}),Nt("span",{className:"sr-only",children:"Close"})]})]})]})});Fe.displayName=Y.Content.displayName;var bo=({className:e,...o})=>Nt("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});bo.displayName="DialogHeader";var et=({className:e,isCondensed:o=!1,...t})=>Nt("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});et.displayName="DialogBody";var Xi=({className:e,isDivider:o=!0,...t})=>Nt("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});Xi.displayName="DialogFooter";var yo=Go.forwardRef(({className:e,...o},t)=>Nt(Y.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));yo.displayName=Y.Title.displayName;var Yi=Go.forwardRef(({className:e,...o},t)=>Nt(Y.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));Yi.displayName=Y.Description.displayName;import{Fragment as Cr,jsx as M,jsxs as fe}from"react/jsx-runtime";var mc=({img:e="",children:o,isQrForAll:t})=>fe(Cr,{children:[M("div",{className:"qrcode__scan__container",children:fe("div",{className:"qrcode__scan",children:[M("div",{className:"qrcode__gradient",children:M("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),M("div",{className:"qrcode__border",children:M("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),M("div",{className:"p-4 qrcode__image",children:e?M("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),M("div",{className:"mt-4 text-sm text-white",children:t?fe(Cr,{children:[M("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),M("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):fe(Cr,{children:[M("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:M("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",M("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),M("style",{children:`
2
2
  .qrcode__scan__container {
3
3
  padding: 15px;
4
4
  background-color: white;
@@ -67,7 +67,7 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),Zt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>M(Ge,{...m,children:M(Fe,{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:M(et,{className:"p-0",children:fe("div",{className:"flex flex-row flex-wrap",children:[M("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||fe("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[fe("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),fe("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),M("div",{className:"mt-1 text-gray-500",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),fe("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),fe("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),M("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),fe("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),fe("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),fe("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),M("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:fe("div",{className:"px-5 py-10 text-center",children:[t&&M("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),fe("div",{className:"relative",children:[l&&M("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:M("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),M(mc,{img:r,isQrForAll:l,children:n&&M(lc,{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 vc}from"react";import{useEffect as cc,useLayoutEffect as dc,useState as pc}from"react";import fc from"ua-parser-js";var gc=()=>fc().device.type==="mobile",uc=typeof window<"u"?dc:cc,wo=()=>{let[e,o]=pc(!1);return uc(()=>{o(gc())},[]),e};import{Fragment as hc,jsx as Ra,jsxs as xc}from"react/jsx-runtime";var je=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=vc(!1),c=wo(),d=!!a?.qrLink,p=()=>{let A=d?a?.qrLink:e;return typeof A=="string"?A.trim():""},g=()=>{let A=p();!A&&typeof e!="function"||(typeof e=="function"?e():window.open(A,o?"_blank":"_self"))},v=(A,B=0)=>{let z=document.querySelector(A);if(!z)return;let P=z.getBoundingClientRect().top+window.scrollY-B;window.scrollTo({top:P,behavior:"smooth"})},y=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):g()},C=()=>xc(hc,{children:[Ra(Ae,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),Ra(Zt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?C():Ra(Ae,{...s,className:r,onClick:g,"data-name":"button-action-with-qr",children:n}):C():Ra(Ae,{...s,onClick:y,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as No from"react";import{ChevronRightIcon as bc,DotsHorizontalIcon as yc}from"@radix-ui/react-icons";import{Slot as wc}from"@radix-ui/react-slot";import{jsx as Pt,jsxs as Nc}from"react/jsx-runtime";var Yi=No.forwardRef(({className:e,...o},t)=>Pt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Yi.displayName="Breadcrumb";var Zi=No.forwardRef(({className:e,...o},t)=>Pt("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}));Zi.displayName="BreadcrumbList";var Ki=No.forwardRef(({className:e,...o},t)=>Pt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Ki.displayName="BreadcrumbItem";var Ji=No.forwardRef(({asChild:e,className:o,...t},a)=>Pt(e?wc:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Ji.displayName="BreadcrumbLink";var en=No.forwardRef(({className:e,...o},t)=>Pt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));en.displayName="BreadcrumbPage";var tn=({children:e,className:o,...t})=>Pt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??Pt(bc,{className:"w-2 h-2"})});tn.displayName="BreadcrumbSeparator";var on=({className:e,...o})=>Nc("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[Pt(yc,{className:"w-4 h-4 text-gray-900"}),Pt("span",{className:"sr-only",children:"More"})]});on.displayName="BreadcrumbElipssis";import Mr from"html-react-parser";import{createContext as Pc,useContext as an}from"react";import{jsx as Qo}from"react/jsx-runtime";var Rr=Pc({align:"center"}),kr=({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 Qo("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}=an(Rr);return Qo(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})},Sr=({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}=an(Rr);return Qo("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})},Dr=({className:e,align:o="center",children:t})=>Qo("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Qo(Rr.Provider,{value:{align:o},children:t})});import{jsx as Kt,jsxs as Cc}from"react/jsx-runtime";var V=({idSection:e,className:o,background:t,children:a})=>Kt("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Kt("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:Cc(Dr,{align:e,className:l,children:[o&&Kt(kr,{color:m,children:o}),t&&Kt(Tr,{tagHeading:r,color:c,size:s,children:Mr(t)}),a&&Kt(Sr,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:Mr(a)})]})},x=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Kt("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 Kt(je,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:Mr(s)},n)})});import Bc,{memo as Oc}from"react";import{ArrowDownIcon as Vc}from"@heroicons/react/20/solid";import Wc from"html-react-parser";import{createContext as Sc,useCallback as Dc,useContext as Ir,useEffect as Mc,useRef as Ic,useState as Lc}from"react";import{ChevronLeft as Ac,ChevronRight as Fc}from"lucide-react";import*as rn from"react";import{Slot as Rc}from"@radix-ui/react-slot";import{cva as kc}from"class-variance-authority";import{jsx as Tc}from"react/jsx-runtime";var Jt=kc("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"}}),ne=rn.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Rc:"button",m=i(Jt({variant:o,size:t,className:e}));return Tc(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ne.displayName="IconButton";import{Fragment as Ec,jsx as Ht,jsxs as nn}from"react/jsx-runtime";var ka=Sc(void 0),Ct=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=Ic(null),[n,s]=Lc({left:!1,right:!1}),l=Dc(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);Mc(()=>{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,y=g*.7*(c==="left"?-1:1),C=p+y;C<0?C=0:C>v-g&&(C=v-g),d.scrollTo({left:C,behavior:"smooth"})}};return Ht(ka.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:nn("div",{className:i("relative w-full",t),children:[e&&nn(Ec,{children:[n.left&&Ht("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&&Ht("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]})})},Rt=({className:e,children:o})=>{let t=Ir(ka);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Ht("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},kt=({className:e,children:o,...t})=>{let a=Ir(ka);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Ht(ne,{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||Ht(Ac,{className:"h-4 w-4"})}):null},Tt=({className:e,children:o,...t})=>{let a=Ir(ka);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Ht(ne,{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||Ht(Fc,{className:"h-4 w-4"})}):null};import*as Ta from"react";import*as Qe from"@radix-ui/react-tabs";import{jsx as Lr}from"react/jsx-runtime";var St=Qe.Root,tt=Ta.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>Lr(Qe.List,{ref:r,className:i("inline-flex w-full flex-row items-center space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));tt.displayName=Qe.List.displayName;var ot=Ta.forwardRef(({className:e,...o},t)=>Lr(Qe.Trigger,{ref:t,className:i("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap border-b-2 border-transparent py-3 font-semibold text-gray-900 transition-all hover:text-pink-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-pink-500 data-[state=active]:text-pink-500",e),...o}));ot.displayName=Qe.Trigger.displayName;var at=Ta.forwardRef(({className:e,...o},t)=>Lr(Qe.Content,{ref:t,className:i("ring-offset-background focus-visible:ring-ring mt-3 text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e),...o}));at.displayName=Qe.Content.displayName;import*as sn from"react";import{Slot as zc}from"@radix-ui/react-slot";import{cva as Hc}from"class-variance-authority";import{jsx as _c}from"react/jsx-runtime";var ln=Hc("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"}}),ge=sn.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?zc:"button",m=i(ln({variant:o,size:t,className:e}));return _c(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ge.displayName="TextButton";import{Fragment as mn,jsx as j,jsxs as rt}from"react/jsx-runtime";var $c=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return rt(mn,{children:[j("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:j("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:rt("picture",{children:[j("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),j("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),rt("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&j(ge,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),j("div",{className:"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}),rt("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&rt(mn,{children:[j(ge,{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&&j("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&j("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Sa=Oc(({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)=>rt("div",{children:[j("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)=>j("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:j("div",{onClick:y=>m(y,g?.id,g?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:j($c,{blog:g})},g?.id)},v))}),d?.isShowBtn&&j("div",{className:"flex items-center justify-center w-full mt-8",children:rt(je,{action:r?()=>r?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[Wc(d.btnName||"Xem th\xEAm"),d?.isLoading?j(xo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&j(Vc,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||p);return rt(Bc.Fragment,{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:i(e?.className)}),t?.length>1?rt(St,{defaultValue:t[0]?.title,children:[rt(Ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[j(Rt,{className:"mb-6 text-center",children:j(tt,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,p)=>j(ot,{value:d.title,children:d.title},d.title+p))})}),j(kt,{}),j(Tt,{})]}),t.map((d,p)=>j(at,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import qc,{memo as Xc,useEffect as Yc,useState as pn}from"react";import{ChevronLeftIcon as Zc,ChevronRightIcon as Kc}from"@heroicons/react/20/solid";import fn from"html-react-parser";import*as W from"react";import{ChevronLeftIcon as Gc,ChevronRightIcon as jc}from"@heroicons/react/20/solid";import Qc from"embla-carousel-react";import{Fragment as Uc,jsx as Ee,jsxs as dn}from"react/jsx-runtime";var cn=W.createContext(null);function Uo(){let e=W.useContext(cn);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ue=W.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=Qc({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=W.useState(!1),[g,v]=W.useState(!1),y=W.useCallback(B=>{B&&(p(B.canScrollPrev()),v(B.canScrollNext()))},[]),C=W.useCallback(()=>{c?.scrollPrev()},[c]),w=W.useCallback(()=>{c?.scrollNext()},[c]),A=W.useCallback(B=>{B.key==="ArrowLeft"?(B.preventDefault(),C()):B.key==="ArrowRight"&&(B.preventDefault(),w())},[C,w]);return W.useEffect(()=>{!c||!t||t(c)},[c,t]),W.useEffect(()=>{if(c)return y(c),c.on("reInit",y),c.on("select",y),()=>{c?.off("select",y)}},[c,y]),Ee(cn.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:C,scrollNext:w,canScrollPrev:d,canScrollNext:g},children:Ee("div",{ref:l,onKeyDownCapture:A,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});ue.displayName="Carousel";var ve=W.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Uo();return Ee("div",{ref:r,className:i("overflow-hidden",o),children:Ee("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ve.displayName="CarouselContent";var ce=W.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Uo();return Ee("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})});ce.displayName="CarouselItem";var Po=W.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Uo();return dn(ne,{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:[Ee(Gc,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Previous slide"})]})});Po.displayName="CarouselPrevious";var Co=W.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Uo();return dn(ne,{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:[Ee(jc,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Next slide"})]})});Co.displayName="CarouselNext";var Ro=W.forwardRef((e,o)=>{let{api:t}=Uo(),[,a]=W.useState(!1),r=W.useCallback(()=>a(l=>!l),[]);W.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?Ee("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Ee(ne,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):Ee(Uc,{})});Ro.displayName="CarouselDots";import{Fragment as Da,jsx as Q,jsxs as Ue}from"react/jsx-runtime";var Jc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ue(Da,{children:[Q("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Q("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Ue("div",{className:"mt-4 md:pr-3",children:[Q("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&Q("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:fn(e?.description??"")}),Ue("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Ue(Da,{children:[Q(ge,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&Q("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&Q("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},ed=({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 Yc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Ue(Da,{children:[Q(ue,{opts:{dragFree:!1},setApi:o,className:"w-full",children:Q(ve,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>Q(ce,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:Q("div",{onClick:g=>r(g,p?.id,p?.url),className:i("group cursor-pointer",d),children:Q(Jc,{blog:p})},p?.id)},p?.id))})}),s&&Q("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Ue(je,{action:m&&m,newTab:c,variant:"outline",children:[fn(l||"Xem th\xEAm")," "]})})]})},td=({carouselRef:e})=>Ue(ne,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[Q(Zc,{className:"h-6 w-6"}),Q("span",{className:"sr-only",children:"Previous slide"})]}),od=({carouselRef:e})=>Ue(ne,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[Q(Kc,{className:"h-6 w-6"}),Q("span",{className:"sr-only",children:"Next slide"})]}),Ar=Xc(({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]=pn(null),[,l]=pn(0),m=()=>n?Ue("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[Q(td,{carouselRef:n}),Q(od,{carouselRef:n})]}):Q(Da,{});return Ue(qc.Fragment,{children:[Ue("div",{className:" flex items-center justify-between",children:[e&&Q(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)}),Q(m,{})]}),Q(ed,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as nd,jsx as ko}from"react/jsx-runtime";var ad=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return ko(Sa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return ko(Ar,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return ko(Sa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},rd=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>ko(nd,{children:ad({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),id=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>ko(V,{className:i("overflow-hidden",r),idSection:a,background:n,children:ko(rd,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as Ia from"react";import{enUS as cd,vi as dd}from"date-fns/locale";import{ChevronLeft as pd,ChevronRight as fd}from"lucide-react";import gd from"lunisolar";import{DayPicker as ud}from"react-day-picker";import*as gn from"react";import*as qo from"@radix-ui/react-checkbox";import{CheckIcon as sd}from"@heroicons/react/16/solid";import{cva as un}from"class-variance-authority";import{jsx as Fr}from"react/jsx-runtime";var ld=un("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"}}),md=un("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ma=gn.forwardRef(({className:e,size:o,...t},a)=>Fr(qo.Root,{ref:a,className:i(ld({size:o}),e),...t,children:Fr(qo.Indicator,{className:i("flex items-center justify-center text-current"),children:Fr(sd,{className:i(md({size:o}))})})}));Ma.displayName=qo.Root.displayName;import{Fragment as yd,jsx as it,jsxs as Er}from"react/jsx-runtime";var vd=({date:e,cusContent:o})=>{let t=null;return t=gd(e).lunar,Er(yd,{children:[o?o(e):e.getDate(),t&&it("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},hd={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 xd({isShow:e,setIsShow:o,lang:t}){let a=Ia.useId();return it("div",{className:"w-full p-3 pt-0",children:Er("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[it(Ma,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),it("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 bd=e=>e.getDay()===0||e.getDay()===6;function La({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=Ia.useState(!0);return it(ud,{locale:r==="vi"?dd:cd,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(Je({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(Je({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:bd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>it(pd,{className:"h-6 w-6"}),IconRight:()=>it(fd,{className:"h-6 w-6"}),DayContent:c=>it(vd,{date:c.date,cusContent:n}),Months:({children:c})=>Er("div",{className:"w-full",children:[it("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&it(xd,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?hd:{},...s})}La.displayName="Calendar";import{QuestionMarkCircleIcon as wd,XCircleIcon as Nd}from"@heroicons/react/16/solid";import{format as Aa}from"date-fns";import{Calendar as Pd}from"lucide-react";import*as hn from"react";import*as Dt from"@radix-ui/react-popover";import{jsx as vn}from"react/jsx-runtime";var Xo=Dt.Root,Yo=Dt.Trigger,To=hn.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>vn(Dt.Portal,{children:vn(Dt.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=Dt.Content.displayName;import{Fragment as xn,jsx as ke,jsxs as Zo}from"react/jsx-runtime";var Cd=({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 Zo("div",{children:[Zo(Xo,{...m,children:[ke(Yo,{asChild:!0,children:Zo(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:[ke("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Aa(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?ke(xn,{children:p.from?p.to?Zo(xn,{children:[ke("span",{className:"date-from",children:Aa(p.from,s)})," ",ke("span",{className:"date-separator",children:"-"}),ke("span",{className:"date-to",children:Aa(p.to,s)})]}):Aa(p.from,s):o}):o}),e&&ke("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}),ke(Pd,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),ke(To,{className:"w-auto border-none !p-0",...d,children:ke(La,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&Zo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?ke(Nd,{width:16,height:16,className:"text-red-500"}):ke(wd,{width:16,height:16,className:"text-gray-500"}),ke("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Dd,useState as Rn}from"react";import{QuestionMarkCircleIcon as Md,XCircleIcon as Id}from"@heroicons/react/16/solid";import{isValid as Ld}from"date-fns";import*as nt from"react";import{CheckIcon as Rd,ChevronDownIcon as bn,ChevronUpIcon as kd,XCircleIcon as Td}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Sd}from"@heroicons/react/24/outline";import*as D from"@radix-ui/react-select";import{jsx as U,jsxs as Ko}from"react/jsx-runtime";var Jo=nt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Ko("div",{ref:m,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-1 [&>.select-mobase-button]:ring-red-500":"",r===2?"[&>.select-mobase-button]:h-12 [&>.select-mobase-button]:text-base":""),children:[t&&U("span",{className:i("mobase-select-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",r===2&&"-top-2.5 text-sm",n&&"text-red-500"),children:t}),U(D.Root,{disabled:s,...l,children:o}),a&&Ko("div",{className:i("mobase-select-message mt-1 flex items-center space-x-1 text-gray-500",n&&"text-red-500"),children:[n?U(Td,{width:16,height:16}):U(Sd,{width:16,height:16}),U("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),ea=D.Value,So=nt.forwardRef(({className:e,children:o,...t},a)=>Ko(D.Trigger,{ref:a,className:i("select-mobase-button flex h-11 w-full items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus-visible:border-pink-500 focus-visible:ring-1 focus-visible:!ring-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",e),...t,children:[U("div",{className:"line-clamp-1 text-left",children:o}),U(D.Icon,{asChild:!0,children:U(bn,{className:"h-4 w-4 flex-none text-gray-500"})})]}));So.displayName=D.Trigger.displayName;var zr=nt.forwardRef(({className:e,...o},t)=>U(D.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:U(kd,{className:"h-5 w-5"})}));zr.displayName=D.ScrollUpButton.displayName;var Hr=nt.forwardRef(({className:e,...o},t)=>U(D.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center bg-gradient-to-t from-white to-transparent py-1",e),...o,children:U(bn,{className:"h-5 w-5"})}));Hr.displayName=D.ScrollDownButton.displayName;var Do=nt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>U(D.Portal,{children:Ko(D.Content,{ref:r,className:i("shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[U(zr,{}),U(D.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),U(Hr,{})]})}));Do.displayName=D.Content.displayName;var ta=nt.forwardRef(({className:e,children:o,...t},a)=>U(D.Group,{ref:a,className:i("relative border-b border-gray-200 p-1 after:w-full last:border-0",e),...t,children:o})),yn=nt.forwardRef(({className:e,...o},t)=>U(D.Label,{ref:t,className:i("z-[1] py-1.5 pl-7 pr-2 text-sm font-semibold",e),...o}));yn.displayName=D.Label.displayName;var _t=nt.forwardRef(({className:e,children:o,...t},a)=>Ko(D.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:[U("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:U(D.ItemIndicator,{children:U(Rd,{className:"h-4 w-4 text-pink-500"})})}),U(D.ItemText,{children:o})]})),wn=nt.forwardRef(({className:e,...o},t)=>U(D.Separator,{ref:t,className:i("-mx-1 my-1 h-px",e),...o}));wn.displayName=D.Separator.displayName;var Nn=["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"],Pn=["January","February","March","April","May","June","July","August","September","October","November","December"],_r=(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}},Cn=(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 oe,jsxs as st}from"react/jsx-runtime";var Ad=({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]=Rn(o??null),y=Math.min(c,d),C=Math.max(c,d),w=l==="MM/yyyy",A=(P,O)=>{if(O===0){v(void 0),t?.(void 0);return}let E=g?.getFullYear()||new Date().getFullYear(),We=g?.getMonth()??0,$e=g?.getDate()??1;P==="month"&&O!==null&&(We=O-1),P==="year"&&O!==null&&(E=O),w?$e=1:P==="day"&&O!==null&&($e=O);let Ca=_r(E,We+1).daysInMonth;$e>Ca&&($e=1);let Vo=new Date(E,We,$e);Ld(Vo)&&(v(Vo),t?.(Vo))},[B,z]=Rn(!1),vt=P=>{z(P)};return Dd(()=>{v(o??null)},[o]),st("div",{className:i("relative",s&&"cursor-no-drop"),children:[st("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",B&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",g?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&oe("span",{className: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}),st("div",{className:"flex h-full flex-row divide-x",children:[!w&&st(Jo,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:P=>A("day",parseInt(P,10)),onOpenChange:vt,className:"w-[30%]",children:[oe(So,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(ea,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),oe(Do,{onCloseAutoFocus:P=>P.preventDefault(),children:st(ta,{children:[!p&&oe(_t,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:_r(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(P,O)=>(O+1).toString().padStart(2,"0")).map(P=>oe(_t,{value:P,children:P},P))]})})]}),st(Jo,{value:g?(g.getMonth()+1).toString():"",onValueChange:P=>A("month",parseInt(P,10)),onOpenChange:vt,className:i(w?"w-1/2":"w-2/5"),children:[oe(So,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(ea,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),oe(Do,{onCloseAutoFocus:P=>P.preventDefault(),children:st(ta,{children:[!p&&oe(_t,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(P,O)=>O+1).map(P=>oe(_t,{value:P.toString(),children:m==="vi"?Nn[P-1]:Pn[P-1]},P))]})})]}),st(Jo,{value:g?g.getFullYear().toString():"",onValueChange:P=>A("year",parseInt(P,10)),onOpenChange:vt,className:i(w?"w-1/2":"w-[30%]"),children:[oe(So,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(ea,{placeholder:m==="vi"?"N\u0103m":"Year"})}),oe(Do,{onCloseAutoFocus:P=>P.preventDefault(),children:st(ta,{children:[!p&&oe(_t,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Cn(y,C).map(P=>oe(_t,{value:P.toString(),children:P},P))]})})]})]})]}),r&&st("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?oe(Id,{width:16,height:16,className:"text-red-500"}):oe(Md,{width:16,height:16,className:"text-gray-500"}),oe("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as eo from"react";import*as $ from"@radix-ui/react-alert-dialog";import{jsx as Mt,jsxs as zd}from"react/jsx-runtime";var Fd=$.Root,Ed=$.Trigger,kn=$.Portal,Br=eo.forwardRef(({className:e,...o},t)=>Mt($.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}));Br.displayName=$.Overlay.displayName;var Tn=eo.forwardRef(({className:e,...o},t)=>zd(kn,{children:[Mt(Br,{}),Mt($.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=$.Content.displayName;var Sn=({className:e,...o})=>Mt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Sn.displayName="AlertDialogHeader";var Dn=({className:e,...o})=>Mt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Dn.displayName="AlertDialogFooter";var Mn=eo.forwardRef(({className:e,...o},t)=>Mt($.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Mn.displayName=$.Title.displayName;var In=eo.forwardRef(({className:e,...o},t)=>Mt($.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));In.displayName=$.Description.displayName;var Ln=eo.forwardRef(({className:e,...o},t)=>Mt($.Action,{ref:t,className:i(Je({variant:"primary"}),"",e),...o}));Ln.displayName=$.Action.displayName;var An=eo.forwardRef(({className:e,...o},t)=>Mt($.Cancel,{ref:t,className:i(Je({variant:"secondary"}),e),...o}));An.displayName=$.Cancel.displayName;import{memo as jd,useState as Qd}from"react";import{useEffect as Hd,useState as En}from"react";import zn from"html-react-parser";import{motion as _d}from"motion/react";import*as Fn from"@radix-ui/react-aspect-ratio";var H=Fn.Root;import{Fragment as Hn,jsx as ae,jsxs as oa}from"react/jsx-runtime";var Bd=({guideGroup:e,mockup:o})=>{let[t,a]=En(),[r,n]=En(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Hd(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),ae(Hn,{children:e?.stepList&&e?.stepList?.length>0&&oa("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[ae("div",{className:"h-auto w-64 flex-none",children:oa("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"&&oa(Hn,{children:[ae("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),ae("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:oa(ue,{setApi:a,children:[ae(ve,{className:"ml-0",children:e?.stepList.map((l,m)=>ae(ce,{className:"pl-0",children:ae(H,{ratio:o==="small"?540/960:540/1168,children:l?.image&&ae("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),ae(Po,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),ae(Co,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),ae("div",{className:"flex flex-auto pl-12 pt-4",children:ae("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>oa("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:[ae("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}),ae("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:zn(l.title)}),l.content&&ae(_d.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:ae("div",{className:"mt-3 text-sm text-gray-700",children:zn(l.content)})})]},m))})})]})})},Or=Bd;import{useEffect as Od,useRef as Vd,useState as Fa}from"react";import{ChevronRightIcon as _n}from"@heroicons/react/20/solid";import Wd from"embla-carousel-autoplay";import Ea from"html-react-parser";import{Fragment as Vr,jsx as N,jsxs as we}from"react/jsx-runtime";var $d=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=Fa(0),[s,l]=Fa();return Od(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:N(Ge,{open:e,onOpenChange:o,children:we(Fe,{position:"bottom",height:"full",children:[N(bo,{children:N(yo,{className:"line-clamp-1",children:t?.title})}),we(et,{className:"grid overflow-hidden p-0 ",children:[N(ue,{setApi:l,className:" grid overflow-hidden",children:N(ve,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>N(ce,{className:"h-full w-full pl-0",children:we("div",{className:"flex h-full flex-col overflow-y-auto",children:[N("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:N("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:we("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"&&we(Vr,{children:[N("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),N("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:N(H,{ratio:a==="small"?540/960:540/1168,children:m?.image&&N("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),we("div",{className:"p-5 pb-12",children:[N("div",{className:"font-semibold",children:Ea(m.title)}),m?.content&&N("div",{className:"mt-3 text-sm text-gray-800",children:Ea(m.content)})]})]})},c))})}),N("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((m,c)=>N("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},Gd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=Fa(!1),[n,s]=Fa(null),l=Vd(Wd({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:we(Vr,{children:[e?.length>1?N("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>we("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[N("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(c?.avatar||c?.stepList?.[0]?.image)&&N("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),we("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:[we("div",{className:"py-2",children:[t&&N("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),N("div",{className:"font-semibold",children:Ea(c.title)}),c?.description&&N("div",{className:"mt-1 text-sm text-gray-500",children:Ea(c.description)})]}),N("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:N(_n,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&we("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[N("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:N("div",{className:"mx-auto h-auto w-72",children:we("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"&&we(Vr,{children:[N("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),N("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:N(ue,{plugins:[l.current],children:N(ve,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>N(ce,{className:"pl-0",onClick:()=>m(0),children:N(H,{ratio:o==="small"?540/960:540/1168,children:c?.image&&N("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),N("div",{className:"flex w-full flex-none justify-center",children:we(ge,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",N(_n,{className:"ml-1 h-5 w-5"})]})})]}),a&&N($d,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},Bn=Gd;import{Fragment as Ud,jsx as de,jsxs as aa}from"react/jsx-runtime";var On=({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 de("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:de("path",{d:t.d,fill:"currentColor"})})},Wr=jd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=Qd(t?.[0]?.title||"");return aa(Ud,{children:[e&&de(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&&aa(vo,{children:[de(Ke,{lessThan:"md",children:de(Bn,{dataGuide:t,mockup:r,isStep:n})}),de(Ke,{greaterThan:"sm",children:t?.length>1?aa(St,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[aa(Ct,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[de(Rt,{className:"mb-6 text-center",children:de(tt,{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,y=c===p?.title||"";return aa(ot,{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":"",y&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&de(On,{direction:"left",className:i("right-full top-0",y?"text-pink-500":"text-pink-100")}),p.title,n&&!v&&de(On,{direction:"right",className:i("left-full top-0",y?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),de(kt,{}),de(Tt,{})]}),t.map((p,g)=>de(at,{value:p.title,children:de(Or,{guideGroup:p,mockup:r})},p.title+g))]}):t?.length===1&&t[0]&&de(Or,{guideGroup:t[0],mockup:r})})]}),a&&de(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as Zd,jsx as ra}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 ra(Wr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return ra(Wr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Xd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>ra(Zd,{children:qd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Yd=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>ra(V,{className:i(n),background:s,idSection:e,children:ra(Xd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:m,isStep:c})});import{ChevronLeft as Kd,ChevronRight as Jd}from"lucide-react";import{Fragment as ep,jsx as ze,jsxs as Vn}from"react/jsx-runtime";function Wn({current:e,total:o,onChange:t}){let a=r=>ze("li",{children:ze("button",{className:i(Jt({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:Vn("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&ze("li",{children:ze("button",{className:i(Jt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:ze(Kd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):Vn(ep,{children:[a(1),e===1&&[a(2),a(3)],e>3&&ze("li",{children:ze("button",{className:i(Jt({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(Jt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&ze("li",{children:ze("button",{className:i(Jt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:ze(Jd,{className:"h-4 w-4"})})})]})})}import{forwardRef as tp}from"react";import{QuestionMarkCircleIcon as op}from"@heroicons/react/24/outline";import{XCircleIcon as ap}from"@heroicons/react/24/solid";import{jsx as Mo,jsxs as $n}from"react/jsx-runtime";var $r=tp(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>$n("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&Mo("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}),Mo("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&&$n("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?Mo(ap,{width:16,height:16,className:"text-red-500"}):Mo(op,{width:16,height:16,className:"text-gray-500"}),Mo("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Mo("style",{children:`
70
+ `})]}),Zt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>M(Ge,{...m,children:M(Fe,{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:M(et,{className:"p-0",children:fe("div",{className:"flex flex-row flex-wrap",children:[M("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||fe("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[fe("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),fe("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),M("div",{className:"mt-1 text-gray-500",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),fe("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),fe("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),M("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),fe("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),fe("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),fe("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),M("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:fe("div",{className:"px-5 py-10 text-center",children:[t&&M("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),fe("div",{className:"relative",children:[l&&M("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:M("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),M(mc,{img:r,isQrForAll:l,children:n&&M(lc,{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 vc}from"react";import{useEffect as cc,useLayoutEffect as dc,useState as pc}from"react";import fc from"ua-parser-js";var gc=()=>fc().device.type==="mobile",uc=typeof window<"u"?dc:cc,wo=()=>{let[e,o]=pc(!1);return uc(()=>{o(gc())},[]),e};import{Fragment as hc,jsx as Ra,jsxs as xc}from"react/jsx-runtime";var je=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=vc(!1),c=wo(),d=!!a?.qrLink,p=()=>{let A=d?a?.qrLink:e;return typeof A=="string"?A.trim():""},g=()=>{let A=p();!A&&typeof e!="function"||(typeof e=="function"?e():window.open(A,o?"_blank":"_self"))},v=(A,B=0)=>{let z=document.querySelector(A);if(!z)return;let P=z.getBoundingClientRect().top+window.scrollY-B;window.scrollTo({top:P,behavior:"smooth"})},y=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):g()},C=()=>xc(hc,{children:[Ra(Ae,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),Ra(Zt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?C():Ra(Ae,{...s,className:r,onClick:g,"data-name":"button-action-with-qr",children:n}):C():Ra(Ae,{...s,onClick:y,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as No from"react";import{ChevronRightIcon as bc,DotsHorizontalIcon as yc}from"@radix-ui/react-icons";import{Slot as wc}from"@radix-ui/react-slot";import{jsx as Pt,jsxs as Nc}from"react/jsx-runtime";var Zi=No.forwardRef(({className:e,...o},t)=>Pt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Zi.displayName="Breadcrumb";var Ki=No.forwardRef(({className:e,...o},t)=>Pt("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}));Ki.displayName="BreadcrumbList";var Ji=No.forwardRef(({className:e,...o},t)=>Pt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Ji.displayName="BreadcrumbItem";var en=No.forwardRef(({asChild:e,className:o,...t},a)=>Pt(e?wc:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));en.displayName="BreadcrumbLink";var tn=No.forwardRef(({className:e,...o},t)=>Pt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));tn.displayName="BreadcrumbPage";var on=({children:e,className:o,...t})=>Pt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??Pt(bc,{className:"w-2 h-2"})});on.displayName="BreadcrumbSeparator";var an=({className:e,...o})=>Nc("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[Pt(yc,{className:"w-4 h-4 text-gray-900"}),Pt("span",{className:"sr-only",children:"More"})]});an.displayName="BreadcrumbElipssis";import Mr from"html-react-parser";import{createContext as Pc,useContext as rn}from"react";import{jsx as Qo}from"react/jsx-runtime";var Rr=Pc({align:"center"}),kr=({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 Qo("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}=rn(Rr);return Qo(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})},Sr=({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}=rn(Rr);return Qo("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})},Dr=({className:e,align:o="center",children:t})=>Qo("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Qo(Rr.Provider,{value:{align:o},children:t})});import{jsx as Kt,jsxs as Cc}from"react/jsx-runtime";var V=({idSection:e,className:o,background:t,children:a})=>Kt("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Kt("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:Cc(Dr,{align:e,className:l,children:[o&&Kt(kr,{color:m,children:o}),t&&Kt(Tr,{tagHeading:r,color:c,size:s,children:Mr(t)}),a&&Kt(Sr,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:Mr(a)})]})},x=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Kt("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 Kt(je,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:Mr(s)},n)})});import Bc,{memo as Oc}from"react";import{ArrowDownIcon as Vc}from"@heroicons/react/20/solid";import Wc from"html-react-parser";import{createContext as Sc,useCallback as Dc,useContext as Ir,useEffect as Mc,useRef as Ic,useState as Lc}from"react";import{ChevronLeft as Ac,ChevronRight as Fc}from"lucide-react";import*as nn from"react";import{Slot as Rc}from"@radix-ui/react-slot";import{cva as kc}from"class-variance-authority";import{jsx as Tc}from"react/jsx-runtime";var Jt=kc("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"}}),ne=nn.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Rc:"button",m=i(Jt({variant:o,size:t,className:e}));return Tc(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ne.displayName="IconButton";import{Fragment as Ec,jsx as Ht,jsxs as sn}from"react/jsx-runtime";var ka=Sc(void 0),Ct=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=Ic(null),[n,s]=Lc({left:!1,right:!1}),l=Dc(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);Mc(()=>{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,y=g*.7*(c==="left"?-1:1),C=p+y;C<0?C=0:C>v-g&&(C=v-g),d.scrollTo({left:C,behavior:"smooth"})}};return Ht(ka.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:sn("div",{className:i("relative w-full",t),children:[e&&sn(Ec,{children:[n.left&&Ht("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&&Ht("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]})})},Rt=({className:e,children:o})=>{let t=Ir(ka);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Ht("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},kt=({className:e,children:o,...t})=>{let a=Ir(ka);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Ht(ne,{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||Ht(Ac,{className:"h-4 w-4"})}):null},Tt=({className:e,children:o,...t})=>{let a=Ir(ka);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Ht(ne,{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||Ht(Fc,{className:"h-4 w-4"})}):null};import*as Ta from"react";import*as Qe from"@radix-ui/react-tabs";import{jsx as Lr}from"react/jsx-runtime";var St=Qe.Root,tt=Ta.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>Lr(Qe.List,{ref:r,className:i("inline-flex w-full flex-row items-center space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));tt.displayName=Qe.List.displayName;var ot=Ta.forwardRef(({className:e,...o},t)=>Lr(Qe.Trigger,{ref:t,className:i("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap border-b-2 border-transparent py-3 font-semibold text-gray-900 transition-all hover:text-pink-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-pink-500 data-[state=active]:text-pink-500",e),...o}));ot.displayName=Qe.Trigger.displayName;var at=Ta.forwardRef(({className:e,...o},t)=>Lr(Qe.Content,{ref:t,className:i("ring-offset-background focus-visible:ring-ring mt-3 text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e),...o}));at.displayName=Qe.Content.displayName;import*as ln from"react";import{Slot as zc}from"@radix-ui/react-slot";import{cva as Hc}from"class-variance-authority";import{jsx as _c}from"react/jsx-runtime";var mn=Hc("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"}}),ge=ln.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?zc:"button",m=i(mn({variant:o,size:t,className:e}));return _c(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ge.displayName="TextButton";import{Fragment as cn,jsx as j,jsxs as rt}from"react/jsx-runtime";var $c=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return rt(cn,{children:[j("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:j("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:rt("picture",{children:[j("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),j("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),rt("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&j(ge,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),j("div",{className:"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}),rt("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&rt(cn,{children:[j(ge,{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&&j("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&j("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Sa=Oc(({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)=>rt("div",{children:[j("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)=>j("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:j("div",{onClick:y=>m(y,g?.id,g?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:j($c,{blog:g})},g?.id)},v))}),d?.isShowBtn&&j("div",{className:"flex items-center justify-center w-full mt-8",children:rt(je,{action:r?()=>r?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[Wc(d.btnName||"Xem th\xEAm"),d?.isLoading?j(xo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&j(Vc,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||p);return rt(Bc.Fragment,{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:i(e?.className)}),t?.length>1?rt(St,{defaultValue:t[0]?.title,children:[rt(Ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[j(Rt,{className:"mb-6 text-center",children:j(tt,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,p)=>j(ot,{value:d.title,children:d.title},d.title+p))})}),j(kt,{}),j(Tt,{})]}),t.map((d,p)=>j(at,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import qc,{memo as Xc,useEffect as Yc,useState as fn}from"react";import{ChevronLeftIcon as Zc,ChevronRightIcon as Kc}from"@heroicons/react/20/solid";import gn from"html-react-parser";import*as W from"react";import{ChevronLeftIcon as Gc,ChevronRightIcon as jc}from"@heroicons/react/20/solid";import Qc from"embla-carousel-react";import{Fragment as Uc,jsx as Ee,jsxs as pn}from"react/jsx-runtime";var dn=W.createContext(null);function Uo(){let e=W.useContext(dn);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ue=W.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=Qc({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=W.useState(!1),[g,v]=W.useState(!1),y=W.useCallback(B=>{B&&(p(B.canScrollPrev()),v(B.canScrollNext()))},[]),C=W.useCallback(()=>{c?.scrollPrev()},[c]),w=W.useCallback(()=>{c?.scrollNext()},[c]),A=W.useCallback(B=>{B.key==="ArrowLeft"?(B.preventDefault(),C()):B.key==="ArrowRight"&&(B.preventDefault(),w())},[C,w]);return W.useEffect(()=>{!c||!t||t(c)},[c,t]),W.useEffect(()=>{if(c)return y(c),c.on("reInit",y),c.on("select",y),()=>{c?.off("select",y)}},[c,y]),Ee(dn.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:C,scrollNext:w,canScrollPrev:d,canScrollNext:g},children:Ee("div",{ref:l,onKeyDownCapture:A,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});ue.displayName="Carousel";var ve=W.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Uo();return Ee("div",{ref:r,className:i("overflow-hidden",o),children:Ee("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ve.displayName="CarouselContent";var ce=W.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Uo();return Ee("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})});ce.displayName="CarouselItem";var Po=W.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Uo();return pn(ne,{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:[Ee(Gc,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Previous slide"})]})});Po.displayName="CarouselPrevious";var Co=W.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Uo();return pn(ne,{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:[Ee(jc,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Next slide"})]})});Co.displayName="CarouselNext";var Ro=W.forwardRef((e,o)=>{let{api:t}=Uo(),[,a]=W.useState(!1),r=W.useCallback(()=>a(l=>!l),[]);W.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?Ee("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Ee(ne,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):Ee(Uc,{})});Ro.displayName="CarouselDots";import{Fragment as Da,jsx as Q,jsxs as Ue}from"react/jsx-runtime";var Jc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ue(Da,{children:[Q("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Q("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Ue("div",{className:"mt-4 md:pr-3",children:[Q("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&Q("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:gn(e?.description??"")}),Ue("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Ue(Da,{children:[Q(ge,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&Q("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&Q("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},ed=({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 Yc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Ue(Da,{children:[Q(ue,{opts:{dragFree:!1},setApi:o,className:"w-full",children:Q(ve,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>Q(ce,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:Q("div",{onClick:g=>r(g,p?.id,p?.url),className:i("group cursor-pointer",d),children:Q(Jc,{blog:p})},p?.id)},p?.id))})}),s&&Q("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Ue(je,{action:m&&m,newTab:c,variant:"outline",children:[gn(l||"Xem th\xEAm")," "]})})]})},td=({carouselRef:e})=>Ue(ne,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[Q(Zc,{className:"h-6 w-6"}),Q("span",{className:"sr-only",children:"Previous slide"})]}),od=({carouselRef:e})=>Ue(ne,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[Q(Kc,{className:"h-6 w-6"}),Q("span",{className:"sr-only",children:"Next slide"})]}),Ar=Xc(({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]=fn(null),[,l]=fn(0),m=()=>n?Ue("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[Q(td,{carouselRef:n}),Q(od,{carouselRef:n})]}):Q(Da,{});return Ue(qc.Fragment,{children:[Ue("div",{className:" flex items-center justify-between",children:[e&&Q(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)}),Q(m,{})]}),Q(ed,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as nd,jsx as ko}from"react/jsx-runtime";var ad=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return ko(Sa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return ko(Ar,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return ko(Sa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},rd=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>ko(nd,{children:ad({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),id=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>ko(V,{className:i("overflow-hidden",r),idSection:a,background:n,children:ko(rd,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as Ia from"react";import{enUS as cd,vi as dd}from"date-fns/locale";import{ChevronLeft as pd,ChevronRight as fd}from"lucide-react";import gd from"lunisolar";import{DayPicker as ud}from"react-day-picker";import*as un from"react";import*as qo from"@radix-ui/react-checkbox";import{CheckIcon as sd}from"@heroicons/react/16/solid";import{cva as vn}from"class-variance-authority";import{jsx as Fr}from"react/jsx-runtime";var ld=vn("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"}}),md=vn("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ma=un.forwardRef(({className:e,size:o,...t},a)=>Fr(qo.Root,{ref:a,className:i(ld({size:o}),e),...t,children:Fr(qo.Indicator,{className:i("flex items-center justify-center text-current"),children:Fr(sd,{className:i(md({size:o}))})})}));Ma.displayName=qo.Root.displayName;import{Fragment as yd,jsx as it,jsxs as Er}from"react/jsx-runtime";var vd=({date:e,cusContent:o})=>{let t=null;return t=gd(e).lunar,Er(yd,{children:[o?o(e):e.getDate(),t&&it("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},hd={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 xd({isShow:e,setIsShow:o,lang:t}){let a=Ia.useId();return it("div",{className:"w-full p-3 pt-0",children:Er("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[it(Ma,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),it("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 bd=e=>e.getDay()===0||e.getDay()===6;function La({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=Ia.useState(!0);return it(ud,{locale:r==="vi"?dd:cd,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(Je({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(Je({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:bd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>it(pd,{className:"h-6 w-6"}),IconRight:()=>it(fd,{className:"h-6 w-6"}),DayContent:c=>it(vd,{date:c.date,cusContent:n}),Months:({children:c})=>Er("div",{className:"w-full",children:[it("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&it(xd,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?hd:{},...s})}La.displayName="Calendar";import{QuestionMarkCircleIcon as wd,XCircleIcon as Nd}from"@heroicons/react/16/solid";import{format as Aa}from"date-fns";import{Calendar as Pd}from"lucide-react";import*as xn from"react";import*as Dt from"@radix-ui/react-popover";import{jsx as hn}from"react/jsx-runtime";var Xo=Dt.Root,Yo=Dt.Trigger,To=xn.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>hn(Dt.Portal,{children:hn(Dt.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=Dt.Content.displayName;import{Fragment as bn,jsx as ke,jsxs as Zo}from"react/jsx-runtime";var Cd=({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 Zo("div",{children:[Zo(Xo,{...m,children:[ke(Yo,{asChild:!0,children:Zo(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:[ke("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Aa(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?ke(bn,{children:p.from?p.to?Zo(bn,{children:[ke("span",{className:"date-from",children:Aa(p.from,s)})," ",ke("span",{className:"date-separator",children:"-"}),ke("span",{className:"date-to",children:Aa(p.to,s)})]}):Aa(p.from,s):o}):o}),e&&ke("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}),ke(Pd,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),ke(To,{className:"w-auto border-none !p-0",...d,children:ke(La,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&Zo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?ke(Nd,{width:16,height:16,className:"text-red-500"}):ke(wd,{width:16,height:16,className:"text-gray-500"}),ke("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Dd,useState as kn}from"react";import{QuestionMarkCircleIcon as Md,XCircleIcon as Id}from"@heroicons/react/16/solid";import{isValid as Ld}from"date-fns";import*as nt from"react";import{CheckIcon as Rd,ChevronDownIcon as yn,ChevronUpIcon as kd,XCircleIcon as Td}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Sd}from"@heroicons/react/24/outline";import*as D from"@radix-ui/react-select";import{jsx as U,jsxs as Ko}from"react/jsx-runtime";var Jo=nt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Ko("div",{ref:m,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-1 [&>.select-mobase-button]:ring-red-500":"",r===2?"[&>.select-mobase-button]:h-12 [&>.select-mobase-button]:text-base":""),children:[t&&U("span",{className:i("mobase-select-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",r===2&&"-top-2.5 text-sm",n&&"text-red-500"),children:t}),U(D.Root,{disabled:s,...l,children:o}),a&&Ko("div",{className:i("mobase-select-message mt-1 flex items-center space-x-1 text-gray-500",n&&"text-red-500"),children:[n?U(Td,{width:16,height:16}):U(Sd,{width:16,height:16}),U("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),ea=D.Value,So=nt.forwardRef(({className:e,children:o,...t},a)=>Ko(D.Trigger,{ref:a,className:i("select-mobase-button flex h-11 w-full items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus-visible:border-pink-500 focus-visible:ring-1 focus-visible:!ring-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",e),...t,children:[U("div",{className:"line-clamp-1 text-left",children:o}),U(D.Icon,{asChild:!0,children:U(yn,{className:"h-4 w-4 flex-none text-gray-500"})})]}));So.displayName=D.Trigger.displayName;var zr=nt.forwardRef(({className:e,...o},t)=>U(D.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:U(kd,{className:"h-5 w-5"})}));zr.displayName=D.ScrollUpButton.displayName;var Hr=nt.forwardRef(({className:e,...o},t)=>U(D.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center bg-gradient-to-t from-white to-transparent py-1",e),...o,children:U(yn,{className:"h-5 w-5"})}));Hr.displayName=D.ScrollDownButton.displayName;var Do=nt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>U(D.Portal,{children:Ko(D.Content,{ref:r,className:i("shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[U(zr,{}),U(D.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),U(Hr,{})]})}));Do.displayName=D.Content.displayName;var ta=nt.forwardRef(({className:e,children:o,...t},a)=>U(D.Group,{ref:a,className:i("relative border-b border-gray-200 p-1 after:w-full last:border-0",e),...t,children:o})),wn=nt.forwardRef(({className:e,...o},t)=>U(D.Label,{ref:t,className:i("z-[1] py-1.5 pl-7 pr-2 text-sm font-semibold",e),...o}));wn.displayName=D.Label.displayName;var _t=nt.forwardRef(({className:e,children:o,...t},a)=>Ko(D.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:[U("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:U(D.ItemIndicator,{children:U(Rd,{className:"h-4 w-4 text-pink-500"})})}),U(D.ItemText,{children:o})]})),Nn=nt.forwardRef(({className:e,...o},t)=>U(D.Separator,{ref:t,className:i("-mx-1 my-1 h-px",e),...o}));Nn.displayName=D.Separator.displayName;var Pn=["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"],Cn=["January","February","March","April","May","June","July","August","September","October","November","December"],_r=(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}},Rn=(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 oe,jsxs as st}from"react/jsx-runtime";var Ad=({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]=kn(o??null),y=Math.min(c,d),C=Math.max(c,d),w=l==="MM/yyyy",A=(P,O)=>{if(O===0){v(void 0),t?.(void 0);return}let E=g?.getFullYear()||new Date().getFullYear(),We=g?.getMonth()??0,$e=g?.getDate()??1;P==="month"&&O!==null&&(We=O-1),P==="year"&&O!==null&&(E=O),w?$e=1:P==="day"&&O!==null&&($e=O);let Ca=_r(E,We+1).daysInMonth;$e>Ca&&($e=1);let Vo=new Date(E,We,$e);Ld(Vo)&&(v(Vo),t?.(Vo))},[B,z]=kn(!1),vt=P=>{z(P)};return Dd(()=>{v(o??null)},[o]),st("div",{className:i("relative",s&&"cursor-no-drop"),children:[st("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",B&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",g?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&oe("span",{className: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}),st("div",{className:"flex h-full flex-row divide-x",children:[!w&&st(Jo,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:P=>A("day",parseInt(P,10)),onOpenChange:vt,className:"w-[30%]",children:[oe(So,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(ea,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),oe(Do,{onCloseAutoFocus:P=>P.preventDefault(),children:st(ta,{children:[!p&&oe(_t,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:_r(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(P,O)=>(O+1).toString().padStart(2,"0")).map(P=>oe(_t,{value:P,children:P},P))]})})]}),st(Jo,{value:g?(g.getMonth()+1).toString():"",onValueChange:P=>A("month",parseInt(P,10)),onOpenChange:vt,className:i(w?"w-1/2":"w-2/5"),children:[oe(So,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(ea,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),oe(Do,{onCloseAutoFocus:P=>P.preventDefault(),children:st(ta,{children:[!p&&oe(_t,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(P,O)=>O+1).map(P=>oe(_t,{value:P.toString(),children:m==="vi"?Pn[P-1]:Cn[P-1]},P))]})})]}),st(Jo,{value:g?g.getFullYear().toString():"",onValueChange:P=>A("year",parseInt(P,10)),onOpenChange:vt,className:i(w?"w-1/2":"w-[30%]"),children:[oe(So,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(ea,{placeholder:m==="vi"?"N\u0103m":"Year"})}),oe(Do,{onCloseAutoFocus:P=>P.preventDefault(),children:st(ta,{children:[!p&&oe(_t,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Rn(y,C).map(P=>oe(_t,{value:P.toString(),children:P},P))]})})]})]})]}),r&&st("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?oe(Id,{width:16,height:16,className:"text-red-500"}):oe(Md,{width:16,height:16,className:"text-gray-500"}),oe("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as eo from"react";import*as $ from"@radix-ui/react-alert-dialog";import{jsx as Mt,jsxs as zd}from"react/jsx-runtime";var Fd=$.Root,Ed=$.Trigger,Tn=$.Portal,Br=eo.forwardRef(({className:e,...o},t)=>Mt($.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}));Br.displayName=$.Overlay.displayName;var Sn=eo.forwardRef(({className:e,...o},t)=>zd(Tn,{children:[Mt(Br,{}),Mt($.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})]}));Sn.displayName=$.Content.displayName;var Dn=({className:e,...o})=>Mt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Dn.displayName="AlertDialogHeader";var Mn=({className:e,...o})=>Mt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Mn.displayName="AlertDialogFooter";var In=eo.forwardRef(({className:e,...o},t)=>Mt($.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));In.displayName=$.Title.displayName;var Ln=eo.forwardRef(({className:e,...o},t)=>Mt($.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ln.displayName=$.Description.displayName;var An=eo.forwardRef(({className:e,...o},t)=>Mt($.Action,{ref:t,className:i(Je({variant:"primary"}),"",e),...o}));An.displayName=$.Action.displayName;var Fn=eo.forwardRef(({className:e,...o},t)=>Mt($.Cancel,{ref:t,className:i(Je({variant:"secondary"}),e),...o}));Fn.displayName=$.Cancel.displayName;import{memo as jd,useState as Qd}from"react";import{useEffect as Hd,useState as zn}from"react";import Hn from"html-react-parser";import{motion as _d}from"motion/react";import*as En from"@radix-ui/react-aspect-ratio";var H=En.Root;import{Fragment as _n,jsx as ae,jsxs as oa}from"react/jsx-runtime";var Bd=({guideGroup:e,mockup:o})=>{let[t,a]=zn(),[r,n]=zn(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Hd(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),ae(_n,{children:e?.stepList&&e?.stepList?.length>0&&oa("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[ae("div",{className:"h-auto w-64 flex-none",children:oa("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"&&oa(_n,{children:[ae("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),ae("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:oa(ue,{setApi:a,children:[ae(ve,{className:"ml-0",children:e?.stepList.map((l,m)=>ae(ce,{className:"pl-0",children:ae(H,{ratio:o==="small"?540/960:540/1168,children:l?.image&&ae("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),ae(Po,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),ae(Co,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),ae("div",{className:"flex flex-auto pl-12 pt-4",children:ae("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>oa("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:[ae("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}),ae("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:Hn(l.title)}),l.content&&ae(_d.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:ae("div",{className:"mt-3 text-sm text-gray-700",children:Hn(l.content)})})]},m))})})]})})},Or=Bd;import{useEffect as Od,useRef as Vd,useState as Fa}from"react";import{ChevronRightIcon as Bn}from"@heroicons/react/20/solid";import Wd from"embla-carousel-autoplay";import Ea from"html-react-parser";import{Fragment as Vr,jsx as N,jsxs as we}from"react/jsx-runtime";var $d=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=Fa(0),[s,l]=Fa();return Od(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:N(Ge,{open:e,onOpenChange:o,children:we(Fe,{position:"bottom",height:"full",children:[N(bo,{children:N(yo,{className:"line-clamp-1",children:t?.title})}),we(et,{className:"grid overflow-hidden p-0 ",children:[N(ue,{setApi:l,className:" grid overflow-hidden",children:N(ve,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>N(ce,{className:"h-full w-full pl-0",children:we("div",{className:"flex h-full flex-col overflow-y-auto",children:[N("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:N("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:we("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"&&we(Vr,{children:[N("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),N("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:N(H,{ratio:a==="small"?540/960:540/1168,children:m?.image&&N("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),we("div",{className:"p-5 pb-12",children:[N("div",{className:"font-semibold",children:Ea(m.title)}),m?.content&&N("div",{className:"mt-3 text-sm text-gray-800",children:Ea(m.content)})]})]})},c))})}),N("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((m,c)=>N("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},Gd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=Fa(!1),[n,s]=Fa(null),l=Vd(Wd({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:we(Vr,{children:[e?.length>1?N("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>we("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[N("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(c?.avatar||c?.stepList?.[0]?.image)&&N("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),we("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:[we("div",{className:"py-2",children:[t&&N("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),N("div",{className:"font-semibold",children:Ea(c.title)}),c?.description&&N("div",{className:"mt-1 text-sm text-gray-500",children:Ea(c.description)})]}),N("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:N(Bn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&we("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[N("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:N("div",{className:"mx-auto h-auto w-72",children:we("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"&&we(Vr,{children:[N("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),N("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:N(ue,{plugins:[l.current],children:N(ve,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>N(ce,{className:"pl-0",onClick:()=>m(0),children:N(H,{ratio:o==="small"?540/960:540/1168,children:c?.image&&N("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),N("div",{className:"flex w-full flex-none justify-center",children:we(ge,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",N(Bn,{className:"ml-1 h-5 w-5"})]})})]}),a&&N($d,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},On=Gd;import{Fragment as Ud,jsx as de,jsxs as aa}from"react/jsx-runtime";var Vn=({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 de("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:de("path",{d:t.d,fill:"currentColor"})})},Wr=jd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=Qd(t?.[0]?.title||"");return aa(Ud,{children:[e&&de(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&&aa(vo,{children:[de(Ke,{lessThan:"md",children:de(On,{dataGuide:t,mockup:r,isStep:n})}),de(Ke,{greaterThan:"sm",children:t?.length>1?aa(St,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[aa(Ct,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[de(Rt,{className:"mb-6 text-center",children:de(tt,{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,y=c===p?.title||"";return aa(ot,{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":"",y&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&de(Vn,{direction:"left",className:i("right-full top-0",y?"text-pink-500":"text-pink-100")}),p.title,n&&!v&&de(Vn,{direction:"right",className:i("left-full top-0",y?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),de(kt,{}),de(Tt,{})]}),t.map((p,g)=>de(at,{value:p.title,children:de(Or,{guideGroup:p,mockup:r})},p.title+g))]}):t?.length===1&&t[0]&&de(Or,{guideGroup:t[0],mockup:r})})]}),a&&de(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as Zd,jsx as ra}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 ra(Wr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return ra(Wr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Xd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>ra(Zd,{children:qd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Yd=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>ra(V,{className:i(n),background:s,idSection:e,children:ra(Xd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:m,isStep:c})});import{ChevronLeft as Kd,ChevronRight as Jd}from"lucide-react";import{Fragment as ep,jsx as ze,jsxs as Wn}from"react/jsx-runtime";function $n({current:e,total:o,onChange:t}){let a=r=>ze("li",{children:ze("button",{className:i(Jt({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:Wn("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&ze("li",{children:ze("button",{className:i(Jt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:ze(Kd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):Wn(ep,{children:[a(1),e===1&&[a(2),a(3)],e>3&&ze("li",{children:ze("button",{className:i(Jt({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(Jt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&ze("li",{children:ze("button",{className:i(Jt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:ze(Jd,{className:"h-4 w-4"})})})]})})}import{forwardRef as tp}from"react";import{QuestionMarkCircleIcon as op}from"@heroicons/react/24/outline";import{XCircleIcon as ap}from"@heroicons/react/24/solid";import{jsx as Mo,jsxs as Gn}from"react/jsx-runtime";var $r=tp(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>Gn("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&Mo("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}),Mo("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&&Gn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?Mo(ap,{width:16,height:16,className:"text-red-500"}):Mo(op,{width:16,height:16,className:"text-gray-500"}),Mo("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Mo("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 $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
94
94
  color: rgb(var(--mobase-red-500) / 1);
95
95
  }
96
96
  }
97
- `})]}));import*as _a from"react";var rp=1,ip=1e6;var Gr=0;function np(){return Gr=(Gr+1)%Number.MAX_SAFE_INTEGER,Gr.toString()}var jr=new Map,Gn=e=>{if(jr.has(e))return;let o=setTimeout(()=>{jr.delete(e),ia({type:"REMOVE_TOAST",toastId:e})},ip);jr.set(e,o)},sp=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,rp)};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?Gn(t):e.toasts.forEach(a=>{Gn(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=[],Ha={toasts:[]};function ia(e){Ha=sp(Ha,e),za.forEach(o=>{o(Ha)})}function jn({...e}){let o=np(),t=r=>ia({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>ia({type:"DISMISS_TOAST",toastId:o});return ia({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function Qr(){let[e,o]=_a.useState(Ha);return _a.useEffect(()=>(za.push(o),()=>{let t=za.indexOf(o);t>-1&&za.splice(t,1)}),[e]),{...e,toast:jn,dismiss:t=>ia({type:"DISMISS_TOAST",toastId:t})}}import*as to from"react";import{CheckCircleIcon as lp,ExclamationTriangleIcon as mp,InformationCircleIcon as cp,XMarkIcon as dp}from"@heroicons/react/20/solid";import*as K from"@radix-ui/react-toast";import{cva as pp}from"class-variance-authority";import{jsx as It,jsxs as Qn}from"react/jsx-runtime";var Un=K.Provider,Ur=to.forwardRef(({className:e,...o},t)=>It(K.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}));Ur.displayName=K.Viewport.displayName;var fp=pp("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),qr=to.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>Qn(K.Root,{ref:r,className:i(fp({variant:o}),e),...a,children:[Qn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&It(lp,{className:"h-5 w-5 text-green-500"}),o==="warning"&&It(mp,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&It(cp,{className:"h-5 w-5 text-red-500"})]}),t]}));qr.displayName=K.Root.displayName;var qn=to.forwardRef(({className:e,...o},t)=>It(K.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}));qn.displayName=K.Action.displayName;var Xr=to.forwardRef(({className:e,...o},t)=>It(K.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:It(dp,{className:"h-5 w-5"})}));Xr.displayName=K.Close.displayName;var Yr=to.forwardRef(({className:e,...o},t)=>It(K.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));Yr.displayName=K.Title.displayName;var Zr=to.forwardRef(({className:e,...o},t)=>It(K.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));Zr.displayName=K.Description.displayName;import{jsx as Ba,jsxs as Kr}from"react/jsx-runtime";function gp(){let{toasts:e}=Qr();return Kr(Un,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return Kr(qr,{...n,children:[Kr("div",{className:"grid gap-2",children:[t&&Ba(Yr,{children:t}),a&&Ba(Zr,{children:a})]}),r,Ba(Xr,{})]},o)}),Ba(Ur,{})]})}import*as Jr from"react";import*as He from"@radix-ui/react-tooltip";import{jsx as Zn}from"react/jsx-runtime";var up=He.Provider,vp=He.Root,hp=He.Trigger,Xn=Jr.forwardRef((e,o)=>Zn(He.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));Xn.displayName=He.Arrow.displayName;var Yn=Jr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>Zn(He.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}));Yn.displayName=He.Content.displayName;import{forwardRef as xp,useEffect as bp,useRef as yp,useState as wp}from"react";import{QuestionMarkCircleIcon as Np,XCircleIcon as Pp,XCircleIcon as Cp}from"@heroicons/react/16/solid";import{jsx as Bt,jsxs as ei}from"react/jsx-runtime";var ti=xp(({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",...y},C)=>{let[w,A]=wp(!1),B=yp(null),z=E=>{E&&!w&&A(!0),!E&&w&&A(!1)},vt=E=>{s&&z(E.target.value),m?.(E)},P=E=>{s&&z(E.target.value),c?.(E)},O=()=>{let E=B.current?.querySelector("input");E&&(d?.(E.value),E.value="",E.focus(),A(!1))};return bp(()=>{z(g||p)},[p,g]),ei("div",{className:i(r,o&&"mobase-text-input-error"),ref:B,children:[ei("div",{className:"relative",children:[a&&Bt("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}),Bt("input",{disabled:e,type:v,ref:C,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:vt,onFocus:P,value:p,defaultValue:g,...y}),s&&w&&Bt("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:O,children:Bt(Pp,{strokeWidth:2,width:20,height:20})})]}),t&&ei("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?Bt(Cp,{width:16,height:16,className:"text-red-500"}):Bt(Np,{width:16,height:16,className:"text-gray-500"}),Bt("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),Bt("style",{children:`
97
+ `})]}));import*as _a from"react";var rp=1,ip=1e6;var Gr=0;function np(){return Gr=(Gr+1)%Number.MAX_SAFE_INTEGER,Gr.toString()}var jr=new Map,jn=e=>{if(jr.has(e))return;let o=setTimeout(()=>{jr.delete(e),ia({type:"REMOVE_TOAST",toastId:e})},ip);jr.set(e,o)},sp=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,rp)};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?jn(t):e.toasts.forEach(a=>{jn(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=[],Ha={toasts:[]};function ia(e){Ha=sp(Ha,e),za.forEach(o=>{o(Ha)})}function Qn({...e}){let o=np(),t=r=>ia({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>ia({type:"DISMISS_TOAST",toastId:o});return ia({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function Qr(){let[e,o]=_a.useState(Ha);return _a.useEffect(()=>(za.push(o),()=>{let t=za.indexOf(o);t>-1&&za.splice(t,1)}),[e]),{...e,toast:Qn,dismiss:t=>ia({type:"DISMISS_TOAST",toastId:t})}}import*as to from"react";import{CheckCircleIcon as lp,ExclamationTriangleIcon as mp,InformationCircleIcon as cp,XMarkIcon as dp}from"@heroicons/react/20/solid";import*as K from"@radix-ui/react-toast";import{cva as pp}from"class-variance-authority";import{jsx as It,jsxs as Un}from"react/jsx-runtime";var qn=K.Provider,Ur=to.forwardRef(({className:e,...o},t)=>It(K.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}));Ur.displayName=K.Viewport.displayName;var fp=pp("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),qr=to.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>Un(K.Root,{ref:r,className:i(fp({variant:o}),e),...a,children:[Un("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&It(lp,{className:"h-5 w-5 text-green-500"}),o==="warning"&&It(mp,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&It(cp,{className:"h-5 w-5 text-red-500"})]}),t]}));qr.displayName=K.Root.displayName;var Xn=to.forwardRef(({className:e,...o},t)=>It(K.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}));Xn.displayName=K.Action.displayName;var Xr=to.forwardRef(({className:e,...o},t)=>It(K.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:It(dp,{className:"h-5 w-5"})}));Xr.displayName=K.Close.displayName;var Yr=to.forwardRef(({className:e,...o},t)=>It(K.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));Yr.displayName=K.Title.displayName;var Zr=to.forwardRef(({className:e,...o},t)=>It(K.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));Zr.displayName=K.Description.displayName;import{jsx as Ba,jsxs as Kr}from"react/jsx-runtime";function gp(){let{toasts:e}=Qr();return Kr(qn,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return Kr(qr,{...n,children:[Kr("div",{className:"grid gap-2",children:[t&&Ba(Yr,{children:t}),a&&Ba(Zr,{children:a})]}),r,Ba(Xr,{})]},o)}),Ba(Ur,{})]})}import*as Jr from"react";import*as He from"@radix-ui/react-tooltip";import{jsx as Kn}from"react/jsx-runtime";var up=He.Provider,vp=He.Root,hp=He.Trigger,Yn=Jr.forwardRef((e,o)=>Kn(He.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));Yn.displayName=He.Arrow.displayName;var Zn=Jr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>Kn(He.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}));Zn.displayName=He.Content.displayName;import{forwardRef as xp,useEffect as bp,useRef as yp,useState as wp}from"react";import{QuestionMarkCircleIcon as Np,XCircleIcon as Pp,XCircleIcon as Cp}from"@heroicons/react/16/solid";import{jsx as Bt,jsxs as ei}from"react/jsx-runtime";var ti=xp(({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",...y},C)=>{let[w,A]=wp(!1),B=yp(null),z=E=>{E&&!w&&A(!0),!E&&w&&A(!1)},vt=E=>{s&&z(E.target.value),m?.(E)},P=E=>{s&&z(E.target.value),c?.(E)},O=()=>{let E=B.current?.querySelector("input");E&&(d?.(E.value),E.value="",E.focus(),A(!1))};return bp(()=>{z(g||p)},[p,g]),ei("div",{className:i(r,o&&"mobase-text-input-error"),ref:B,children:[ei("div",{className:"relative",children:[a&&Bt("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}),Bt("input",{disabled:e,type:v,ref:C,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:vt,onFocus:P,value:p,defaultValue:g,...y}),s&&w&&Bt("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:O,children:Bt(Pp,{strokeWidth:2,width:20,height:20})})]}),t&&ei("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?Bt(Cp,{width:16,height:16,className:"text-red-500"}):Bt(Np,{width:16,height:16,className:"text-gray-500"}),Bt("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),Bt("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,7 +117,7 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});import{MinusCircleIcon as Rp,PlusCircleIcon as kp}from"@heroicons/react/24/outline";import{forwardRef as Tp,useState as Sp}from"react";import{jsx as na,jsxs as oi}from"react/jsx-runtime";var Kn=Tp(({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]=Sp(r),v=()=>{let w=Math.min(p+a,t);g(w),n?.(w),l?.(w)},y=()=>{let w=Math.max(p-a,o);g(w),n?.(w),s?.(w)},C=w=>{let A=parseFloat(w.target.value);if(!isNaN(A)){let B=Math.max(Math.min(A,t),o);g(B),n?.(B)}};return oi("div",{ref:d,className:i("flex items-center ",e),children:[oi(ne,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:y,disabled:m||p<=o,children:[na(Rp,{className:"w-7 h-7 "}),na("span",{className:"sr-only",children:"Decrease value"})]}),na("input",{type:"number",value:p,onChange:C,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}),oi(ne,{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:[na(kp,{className:"w-7 h-7 "}),na("span",{className:"sr-only",children:"Increase value"})]})]})});Kn.displayName="Stepper";import*as qe from"react";import*as q from"@radix-ui/react-navigation-menu";import{cva as Dp}from"class-variance-authority";import{ChevronDownIcon as Mp}from"@heroicons/react/16/solid";import{jsx as lt,jsxs as Ep}from"react/jsx-runtime";var Jn=qe.createContext(null),Ip=({value:e,children:o})=>lt(Jn.Provider,{value:e,children:o}),Lp=()=>{let e=qe.useContext(Jn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Oa=qe.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>lt(Ip,{value:{alignDropdown:t},children:lt(q.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Oa.displayName=q.Root.displayName;var Va=qe.forwardRef(({className:e,...o},t)=>lt(q.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Va.displayName=q.List.displayName;var Wa=q.Item,$a=Dp(Je({variant:"transparent",size:"sm"})),Ga=qe.forwardRef(({className:e,children:o,...t},a)=>Ep(q.Trigger,{ref:a,className:i($a(),"group px-2",e),...t,children:[o," ",lt(Mp,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Ga.displayName=q.Trigger.displayName;var ja=qe.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Lp();return lt(q.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});ja.displayName=q.Content.displayName;var sa=q.Link,Ap=qe.forwardRef(({className:e,...o},t)=>lt("div",{className:i("absolute left-0 top-full flex justify-center"),children:lt(q.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Ap.displayName=q.Viewport.displayName;var Fp=qe.forwardRef(({className:e,...o},t)=>lt(q.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:lt("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Fp.displayName=q.Indicator.displayName;import*as ts from"react";import*as la from"@radix-ui/react-switch";import{jsx as es}from"react/jsx-runtime";var Qa=ts.forwardRef(({className:e,...o},t)=>es(la.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:es(la.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")})}));Qa.displayName=la.Root.displayName;import*as oo from"react";import*as Ot from"@radix-ui/react-radio-group";import{Circle as zp}from"lucide-react";import{cva as os}from"class-variance-authority";import{jsx as ma}from"react/jsx-runtime";var Hp=os("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"}}),_p=os("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),as=oo.createContext({size:"medium"});function Bp(){let e=oo.useContext(as);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var rs=oo.forwardRef(({className:e,size:o,...t},a)=>ma(as.Provider,{value:{size:o},children:ma(Ot.Root,{className:i("grid gap-2",e),...t,ref:a})}));rs.displayName=Ot.Root.displayName;var is=oo.forwardRef(({className:e,...o},t)=>{let a=Bp(),{size:r}=a??{};return ma(Ot.Item,{ref:t,className:i(Hp({size:r}),e),...o,children:ma(Ot.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:ma(zp,{className:i(_p({size:r}))})})})});is.displayName=Ot.Item.displayName;import{useState as nf}from"react";import{ArrowDownTrayIcon as sf}from"@heroicons/react/16/solid";import lf from"html-react-parser";import{useEffect as Xp,useState as cs}from"react";import{AnimatePresence as Yp,domAnimation as Zp,LazyMotion as Kp,motion as ai}from"motion/react";import{useKey as Jp}from"react-use";var Ua=[.24,.25,.05,1];import{motion as jp}from"motion/react";import{useRouter as Wp}from"next/router";var Op=e=>e.replace(/\/+/g,"/").replace(/\/$/,"")||"/",Vp=({href:e,locale:o,defaultLocale:t,basePath:a=""})=>{if(!o||o===t||!e.startsWith("/")||/\.(pdf|docx|xlsx|doc|xls)$/i.test(e))return e;let r=`/${o}`,n=new RegExp(`^${a}(?=[/#?]|$)`),s;return a&&n.test(e)?s=e.replace(n,`${a}${r}`):s=`${r}${e}`,s},ns=({href:e,locale:o,defaultLocale:t,basePath:a})=>{if(!e)return;let r=Op(e);return Vp({href:r,locale:o,defaultLocale:t,basePath:a})};import{jsx as $p}from"react/jsx-runtime";var T=({href:e,children:o,...t})=>{let a=Wp(),{locale:r,basePath:n,defaultLocale:s}=a;return $p("a",{href:ns({href:e,locale:r,basePath:n,defaultLocale:s}),...t,children:o})};import{jsx as ca,jsxs as ss}from"react/jsx-runtime";var Gp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return ca("li",{className:"min-h-8",children:ss(T,{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&ca("div",{className:"w-6 h-6 shrink-0",children:ca("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),ss("div",{className:" ",children:[ca("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&ca("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},ls=Gp;import{jsx as ao,jsxs as qp}from"react/jsx-runtime";var Qp={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Ua}},exit:{opacity:0,transition:{duration:.05}}},Up=({data:e})=>ao(xt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return ao(jp.div,{variants:Qp,children:o.hasDropdown?qp(bt,{value:o.id,children:[ao(yt,{className:"py-3",children:o.title}),ao(wt,{children:ao("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>ao(ls,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):ao(T,{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)})}),ms=Up;import{jsx as I,jsxs as he}from"react/jsx-runtime";var ef=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,tf=({data:e,className:o})=>{let[t,a]=cs(!1),[r,n]=cs(!1);Jp("Escape",()=>a(!1)),Xp(()=>{if(!t)return;let m=ef();function c(){a(!1)}function d(){a(!1),n(!0)}function p(C){let w=C.target;((w.closest&&w.closest("a"))?.getAttribute("href")||w.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let g=()=>{c()},v=history.pushState,y=history.replaceState;return history.pushState=((...C)=>{let w=v.apply(history,C);return g(),w}),history.replaceState=((...C)=>{let w=y.apply(history,C);return g(),w}),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=y,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:Ua}},exit:{opacity:0,transition:{duration:.15}}};return he("div",{className:i(o),children:[he("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[I("span",{className:"sr-only",children:"Navigation"}),I(ai.div,{animate:t?"hidden":"visible",variants:s,children:I("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:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),I(ai.div,{animate:t?"visible":"hidden",variants:s,children:I("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:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),I(Kp,{features:Zp,children:I(Yp,{mode:"wait",children:t&&he(ai.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:[I(ms,{data:e}),he("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),he("div",{className:"flex flex-nowrap",children:[I("div",{className:"flex-initial",children:I(T,{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:I("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),I("div",{className:"ml-3 flex-initial",children:I(T,{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:I("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),he("ul",{className:"mb-2 text-sm text-gray-500",children:[he("li",{className:"mb-1",children:["Hotline :\xA0",I(T,{href:`tel:${ht.Support.Hotline}`,className:"text-gray-600",children:ht.Support.Hotline_Format})]}),he("li",{className:"mb-1",children:["Email :\xA0",I(T,{href:`mailto:${ht.Support.Email}`,className:"text-gray-600",children:ht.Support.Email})]})]}),I(T,{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:he("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[I("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:I("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:he("g",{children:[I("title",{children:"Asset 1"}),I("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
120
+ `})]})});import{MinusCircleIcon as Rp,PlusCircleIcon as kp}from"@heroicons/react/24/outline";import{forwardRef as Tp,useState as Sp}from"react";import{jsx as na,jsxs as oi}from"react/jsx-runtime";var Jn=Tp(({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]=Sp(r),v=()=>{let w=Math.min(p+a,t);g(w),n?.(w),l?.(w)},y=()=>{let w=Math.max(p-a,o);g(w),n?.(w),s?.(w)},C=w=>{let A=parseFloat(w.target.value);if(!isNaN(A)){let B=Math.max(Math.min(A,t),o);g(B),n?.(B)}};return oi("div",{ref:d,className:i("flex items-center ",e),children:[oi(ne,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:y,disabled:m||p<=o,children:[na(Rp,{className:"w-7 h-7 "}),na("span",{className:"sr-only",children:"Decrease value"})]}),na("input",{type:"number",value:p,onChange:C,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}),oi(ne,{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:[na(kp,{className:"w-7 h-7 "}),na("span",{className:"sr-only",children:"Increase value"})]})]})});Jn.displayName="Stepper";import*as qe from"react";import*as q from"@radix-ui/react-navigation-menu";import{cva as Dp}from"class-variance-authority";import{ChevronDownIcon as Mp}from"@heroicons/react/16/solid";import{jsx as lt,jsxs as Ep}from"react/jsx-runtime";var es=qe.createContext(null),Ip=({value:e,children:o})=>lt(es.Provider,{value:e,children:o}),Lp=()=>{let e=qe.useContext(es);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Oa=qe.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>lt(Ip,{value:{alignDropdown:t},children:lt(q.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Oa.displayName=q.Root.displayName;var Va=qe.forwardRef(({className:e,...o},t)=>lt(q.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Va.displayName=q.List.displayName;var Wa=q.Item,$a=Dp(Je({variant:"transparent",size:"sm"})),Ga=qe.forwardRef(({className:e,children:o,...t},a)=>Ep(q.Trigger,{ref:a,className:i($a(),"group px-2",e),...t,children:[o," ",lt(Mp,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Ga.displayName=q.Trigger.displayName;var ja=qe.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Lp();return lt(q.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});ja.displayName=q.Content.displayName;var sa=q.Link,Ap=qe.forwardRef(({className:e,...o},t)=>lt("div",{className:i("absolute left-0 top-full flex justify-center"),children:lt(q.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Ap.displayName=q.Viewport.displayName;var Fp=qe.forwardRef(({className:e,...o},t)=>lt(q.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:lt("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Fp.displayName=q.Indicator.displayName;import*as os from"react";import*as la from"@radix-ui/react-switch";import{jsx as ts}from"react/jsx-runtime";var Qa=os.forwardRef(({className:e,...o},t)=>ts(la.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:ts(la.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")})}));Qa.displayName=la.Root.displayName;import*as oo from"react";import*as Ot from"@radix-ui/react-radio-group";import{Circle as zp}from"lucide-react";import{cva as as}from"class-variance-authority";import{jsx as ma}from"react/jsx-runtime";var Hp=as("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"}}),_p=as("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),rs=oo.createContext({size:"medium"});function Bp(){let e=oo.useContext(rs);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var is=oo.forwardRef(({className:e,size:o,...t},a)=>ma(rs.Provider,{value:{size:o},children:ma(Ot.Root,{className:i("grid gap-2",e),...t,ref:a})}));is.displayName=Ot.Root.displayName;var ns=oo.forwardRef(({className:e,...o},t)=>{let a=Bp(),{size:r}=a??{};return ma(Ot.Item,{ref:t,className:i(Hp({size:r}),e),...o,children:ma(Ot.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:ma(zp,{className:i(_p({size:r}))})})})});ns.displayName=Ot.Item.displayName;import{useState as nf}from"react";import{ArrowDownTrayIcon as sf}from"@heroicons/react/16/solid";import lf from"html-react-parser";import{useEffect as Xp,useState as cs}from"react";import{AnimatePresence as Yp,domAnimation as Zp,LazyMotion as Kp,motion as ri}from"motion/react";import{useKey as Jp}from"react-use";var Ua=[.24,.25,.05,1];import{motion as jp}from"motion/react";import{useRouter as Wp}from"next/router";var Op=e=>e.replace(/\/+/g,"/").replace(/\/$/,"")||"/",Vp=({href:e,locale:o,defaultLocale:t,basePath:a=""})=>{if(!o||o===t||!e.startsWith("/")||/\.(pdf|docx|xlsx|doc|xls)$/i.test(e))return e;let r=`/${o}`,n=new RegExp(`^${a}(?=[/#?]|$)`),s;return a&&n.test(e)?s=e.replace(n,`${a}${r}`):s=`${r}${e}`,s},ai=({href:e,locale:o,defaultLocale:t,basePath:a})=>{if(!e)return;let r=Op(e);return Vp({href:r,locale:o,defaultLocale:t,basePath:a})};import{jsx as $p}from"react/jsx-runtime";var T=({href:e,children:o,...t})=>{let a=Wp(),{locale:r,basePath:n,defaultLocale:s}=a;return $p("a",{href:ai({href:e,locale:r,basePath:n,defaultLocale:s}),...t,children:o})};import{jsx as ca,jsxs as ss}from"react/jsx-runtime";var Gp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return ca("li",{className:"min-h-8",children:ss(T,{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&ca("div",{className:"w-6 h-6 shrink-0",children:ca("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),ss("div",{className:" ",children:[ca("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&ca("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},ls=Gp;import{jsx as ao,jsxs as qp}from"react/jsx-runtime";var Qp={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Ua}},exit:{opacity:0,transition:{duration:.05}}},Up=({data:e})=>ao(xt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return ao(jp.div,{variants:Qp,children:o.hasDropdown?qp(bt,{value:o.id,children:[ao(yt,{className:"py-3",children:o.title}),ao(wt,{children:ao("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>ao(ls,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):ao(T,{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)})}),ms=Up;import{jsx as I,jsxs as he}from"react/jsx-runtime";var ef=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,tf=({data:e,className:o})=>{let[t,a]=cs(!1),[r,n]=cs(!1);Jp("Escape",()=>a(!1)),Xp(()=>{if(!t)return;let m=ef();function c(){a(!1)}function d(){a(!1),n(!0)}function p(C){let w=C.target;((w.closest&&w.closest("a"))?.getAttribute("href")||w.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let g=()=>{c()},v=history.pushState,y=history.replaceState;return history.pushState=((...C)=>{let w=v.apply(history,C);return g(),w}),history.replaceState=((...C)=>{let w=y.apply(history,C);return g(),w}),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=y,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:Ua}},exit:{opacity:0,transition:{duration:.15}}};return he("div",{className:i(o),children:[he("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[I("span",{className:"sr-only",children:"Navigation"}),I(ri.div,{animate:t?"hidden":"visible",variants:s,children:I("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:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),I(ri.div,{animate:t?"visible":"hidden",variants:s,children:I("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:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),I(Kp,{features:Zp,children:I(Yp,{mode:"wait",children:t&&he(ri.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:[I(ms,{data:e}),he("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),he("div",{className:"flex flex-nowrap",children:[I("div",{className:"flex-initial",children:I(T,{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:I("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),I("div",{className:"ml-3 flex-initial",children:I(T,{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:I("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),he("ul",{className:"mb-2 text-sm text-gray-500",children:[he("li",{className:"mb-1",children:["Hotline :\xA0",I(T,{href:`tel:${ht.Support.Hotline}`,className:"text-gray-600",children:ht.Support.Hotline_Format})]}),he("li",{className:"mb-1",children:["Email :\xA0",I(T,{href:`mailto:${ht.Support.Email}`,className:"text-gray-600",children:ht.Support.Email})]})]}),I(T,{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:he("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[I("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:I("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:he("g",{children:[I("title",{children:"Asset 1"}),I("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
121
121
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
122
122
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),I("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
123
123
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
@@ -125,7 +125,7 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
125
125
  html {
126
126
  scroll-behavior: smooth;
127
127
  }
128
- `})]})};us.displayName="HeaderNavigation";import{useState as cf}from"react";import{Fragment as pf,jsx as u,jsxs as S}from"react/jsx-runtime";var vs=({item:e})=>u("div",{className:"mt-3 flex w-full text-sm",children:S(T,{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})]})}),df=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=cf(null);return S(pf,{children:[u("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:S("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[S("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>u(vs,{item:r},n))]}),S("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(vs,{item:r},n))})]}),S("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[S("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),S("div",{className:"mt-2 text-sm md:mt-3",children:[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:Gi.Address})]}),S("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${pe.Support.Hotline}`,children:pe.Support.Hotline_Format}),S("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),S("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${pe.Support.Email}`,children:pe.Support.Email})]}),S("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${pe.Support.Phone_Ext_1}`,children:pe.Support.Phone_Ext_1_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${pe.Support.Phone_Ext_2}`,children:pe.Support.Phone_Ext_2_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${pe.Support.Phone_Ext_3}`,children:pe.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(T,{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:S("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[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:S("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
128
+ `})]})};us.displayName="HeaderNavigation";import{useState as cf}from"react";import{Fragment as pf,jsx as u,jsxs as S}from"react/jsx-runtime";var vs=({item:e})=>u("div",{className:"mt-3 flex w-full text-sm",children:S(T,{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})]})}),df=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=cf(null);return S(pf,{children:[u("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:S("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[S("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>u(vs,{item:r},n))]}),S("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(vs,{item:r},n))})]}),S("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[S("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),S("div",{className:"mt-2 text-sm md:mt-3",children:[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:ji.Address})]}),S("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${pe.Support.Hotline}`,children:pe.Support.Hotline_Format}),S("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),S("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${pe.Support.Email}`,children:pe.Support.Email})]}),S("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${pe.Support.Phone_Ext_1}`,children:pe.Support.Phone_Ext_1_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${pe.Support.Phone_Ext_2}`,children:pe.Support.Phone_Ext_2_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${pe.Support.Phone_Ext_3}`,children:pe.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(T,{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:S("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[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:S("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
129
129
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
130
130
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),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
131
131
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
@@ -133,14 +133,14 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
133
133
  footer .button-download {
134
134
  max-width: 150px;
135
135
  }
136
- `})]})},hs=df;import{jsx as xs}from"react/jsx-runtime";var ff=({className:e,primaryMenu:o,secondaryMenu:t})=>xs("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:xs(hs,{primaryMenu:o,secondaryMenu:t})});import*as ro from"react";import{jsx as Lo}from"react/jsx-runtime";var bs=ro.forwardRef(({className:e,...o},t)=>Lo("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));bs.displayName="Card";var ys=ro.forwardRef(({className:e,...o},t)=>Lo("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));ys.displayName="CardHeader";var ws=ro.forwardRef(({className:e,...o},t)=>Lo("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));ws.displayName="CardTitle";var Ns=ro.forwardRef(({className:e,...o},t)=>Lo("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ns.displayName="CardDescription";var Ps=ro.forwardRef(({className:e,...o},t)=>Lo("div",{ref:t,className:i("p-6 pt-0",e),...o}));Ps.displayName="CardContent";var Cs=ro.forwardRef(({className:e,...o},t)=>Lo("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));Cs.displayName="CardFooter";import*as Be from"react";import{Command as Ne}from"cmdk";import{XCircleIcon as gf,MagnifyingGlassIcon as uf}from"@heroicons/react/16/solid";import{jsx as Te,jsxs as hf}from"react/jsx-runtime";var ri=Be.forwardRef(({className:e,...o},t)=>Te(Ne,{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}));ri.displayName=Ne.displayName;var vf=({children:e,...o})=>Te(Ge,{...o,children:Te(Fe,{className:"overflow-hidden p-0 shadow-lg",children:Te(ri,{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=Be.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=Be.useRef(null),[s,l]=Be.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return hf("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Te(uf,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Te(Ne.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(gf,{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")})]})});Rs.displayName=Ne.Input.displayName;var ks=Be.forwardRef(({className:e,...o},t)=>Te(Ne.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));ks.displayName=Ne.List.displayName;var Ts=Be.forwardRef((e,o)=>Te(Ne.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Ts.displayName=Ne.Empty.displayName;var Ss=Be.forwardRef(({className:e,...o},t)=>Te(Ne.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}));Ss.displayName=Ne.Group.displayName;var Ds=Be.forwardRef(({className:e,...o},t)=>Te(Ne.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Ds.displayName=Ne.Separator.displayName;var Ms=Be.forwardRef(({className:e,children:o,...t},a)=>Te(Ne.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}));Ms.displayName=Ne.Item.displayName;var Is=({className:e,...o})=>Te("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Is.displayName="CommandShortcut";import{ChevronDownIcon as xf}from"@heroicons/react/16/solid";import{jsx as qa,jsxs as Ls}from"react/jsx-runtime";var bf=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>Ls("div",{className:"relative",children:[Ls(Yo,{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,qa(xf,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&qa("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),yf=({children:e,className:o,...t})=>qa(To,{className:i("border-none !p-0",o),...t,children:e}),wf=({open:e,onOpenChange:o,children:t,...a})=>qa(Xo,{open:e,onOpenChange:o,...a,children:t});import{forwardRef as Nf}from"react";import{InformationCircleIcon as Pf}from"@heroicons/react/24/outline";import{cva as Fs}from"class-variance-authority";import Cf from"html-react-parser";import{jsx as ii,jsxs as As}from"react/jsx-runtime";var Rf=Fs("flex items-center space-x-2 rounded-md border px-3 py-2 text-sm text-gray-700 ",{variants:{typeDiv:{neutral:"border-gray-300 bg-gray-50 ",error:"border-red-300 bg-red-50",success:"border-green-300 bg-green-50",warning:"border-yellow-300 bg-yellow-50",info:"border-blue-300 bg-blue-50"},disabled:{true:"pointer-events-none border-gray-300 bg-gray-50 text-gray-400 opacity-55"}},defaultVariants:{typeDiv:"neutral"}}),kf=Fs("h-5 w-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),da=Nf(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...m},c)=>As("div",{ref:c,className:i("",r,Rf({typeDiv:e,disabled:n})),...m,children:[As("div",{className:"flex items-center space-x-2",children:[l||ii(Pf,{className:i(kf({typeIcon:e,disabled:n})),width:20,height:20}),o&&ii("div",{children:Cf(o)})]}),t&&ii(ge,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));import{forwardRef as Tf,useEffect as Sf,useRef as Df,useState as Mf}from"react";import{MagnifyingGlassIcon as If}from"@heroicons/react/20/solid";import{XCircleIcon as Lf}from"@heroicons/react/24/outline";import{jsx as Ao,jsxs as Es}from"react/jsx-runtime";var Af=Tf(({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]=Mf(!1),y=Df(null),C=z=>{z&&!g&&v(!0),!z&&g&&v(!1)},w=z=>{C(z.target.value),r?.(z)},A=z=>{C(z.target.value),n?.(z)},B=()=>{let z=y.current?.querySelector("input");z&&(s?.(z.value),z.value="",z.focus(),v(!1))};return Sf(()=>{C(m||l)},[l,m]),Es("div",{className:i(o),ref:y,children:[Es("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(If,{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:w,onFocus:A,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:B,children:Ao(Lf,{strokeWidth:2,width:20,height:20})})]}),Ao("style",{children:`
136
+ `})]})},hs=df;import{jsx as xs}from"react/jsx-runtime";var ff=({className:e,primaryMenu:o,secondaryMenu:t})=>xs("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:xs(hs,{primaryMenu:o,secondaryMenu:t})});import*as ro from"react";import{jsx as Lo}from"react/jsx-runtime";var bs=ro.forwardRef(({className:e,...o},t)=>Lo("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));bs.displayName="Card";var ys=ro.forwardRef(({className:e,...o},t)=>Lo("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));ys.displayName="CardHeader";var ws=ro.forwardRef(({className:e,...o},t)=>Lo("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));ws.displayName="CardTitle";var Ns=ro.forwardRef(({className:e,...o},t)=>Lo("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ns.displayName="CardDescription";var Ps=ro.forwardRef(({className:e,...o},t)=>Lo("div",{ref:t,className:i("p-6 pt-0",e),...o}));Ps.displayName="CardContent";var Cs=ro.forwardRef(({className:e,...o},t)=>Lo("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));Cs.displayName="CardFooter";import*as Be from"react";import{Command as Ne}from"cmdk";import{XCircleIcon as gf,MagnifyingGlassIcon as uf}from"@heroicons/react/16/solid";import{jsx as Te,jsxs as hf}from"react/jsx-runtime";var ii=Be.forwardRef(({className:e,...o},t)=>Te(Ne,{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}));ii.displayName=Ne.displayName;var vf=({children:e,...o})=>Te(Ge,{...o,children:Te(Fe,{className:"overflow-hidden p-0 shadow-lg",children:Te(ii,{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=Be.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=Be.useRef(null),[s,l]=Be.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return hf("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Te(uf,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Te(Ne.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(gf,{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")})]})});Rs.displayName=Ne.Input.displayName;var ks=Be.forwardRef(({className:e,...o},t)=>Te(Ne.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));ks.displayName=Ne.List.displayName;var Ts=Be.forwardRef((e,o)=>Te(Ne.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Ts.displayName=Ne.Empty.displayName;var Ss=Be.forwardRef(({className:e,...o},t)=>Te(Ne.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}));Ss.displayName=Ne.Group.displayName;var Ds=Be.forwardRef(({className:e,...o},t)=>Te(Ne.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Ds.displayName=Ne.Separator.displayName;var Ms=Be.forwardRef(({className:e,children:o,...t},a)=>Te(Ne.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}));Ms.displayName=Ne.Item.displayName;var Is=({className:e,...o})=>Te("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Is.displayName="CommandShortcut";import{ChevronDownIcon as xf}from"@heroicons/react/16/solid";import{jsx as qa,jsxs as Ls}from"react/jsx-runtime";var bf=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>Ls("div",{className:"relative",children:[Ls(Yo,{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,qa(xf,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&qa("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),yf=({children:e,className:o,...t})=>qa(To,{className:i("border-none !p-0",o),...t,children:e}),wf=({open:e,onOpenChange:o,children:t,...a})=>qa(Xo,{open:e,onOpenChange:o,...a,children:t});import{forwardRef as Nf}from"react";import{InformationCircleIcon as Pf}from"@heroicons/react/24/outline";import{cva as Fs}from"class-variance-authority";import Cf from"html-react-parser";import{jsx as ni,jsxs as As}from"react/jsx-runtime";var Rf=Fs("flex items-center space-x-2 rounded-md border px-3 py-2 text-sm text-gray-700 ",{variants:{typeDiv:{neutral:"border-gray-300 bg-gray-50 ",error:"border-red-300 bg-red-50",success:"border-green-300 bg-green-50",warning:"border-yellow-300 bg-yellow-50",info:"border-blue-300 bg-blue-50"},disabled:{true:"pointer-events-none border-gray-300 bg-gray-50 text-gray-400 opacity-55"}},defaultVariants:{typeDiv:"neutral"}}),kf=Fs("h-5 w-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),da=Nf(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...m},c)=>As("div",{ref:c,className:i("",r,Rf({typeDiv:e,disabled:n})),...m,children:[As("div",{className:"flex items-center space-x-2",children:[l||ni(Pf,{className:i(kf({typeIcon:e,disabled:n})),width:20,height:20}),o&&ni("div",{children:Cf(o)})]}),t&&ni(ge,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));import{forwardRef as Tf,useEffect as Sf,useRef as Df,useState as Mf}from"react";import{MagnifyingGlassIcon as If}from"@heroicons/react/20/solid";import{XCircleIcon as Lf}from"@heroicons/react/24/outline";import{jsx as Ao,jsxs as Es}from"react/jsx-runtime";var Af=Tf(({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]=Mf(!1),y=Df(null),C=z=>{z&&!g&&v(!0),!z&&g&&v(!1)},w=z=>{C(z.target.value),r?.(z)},A=z=>{C(z.target.value),n?.(z)},B=()=>{let z=y.current?.querySelector("input");z&&(s?.(z.value),z.value="",z.focus(),v(!1))};return Sf(()=>{C(m||l)},[l,m]),Es("div",{className:i(o),ref:y,children:[Es("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(If,{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:w,onFocus:A,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:B,children:Ao(Lf,{strokeWidth:2,width:20,height:20})})]}),Ao("style",{children:`
137
137
  .mobase-text-input-box:hover {
138
138
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
139
139
  }
140
140
  .mobase-text-input-box:focus {
141
141
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
142
142
  }
143
- `})]})});import*as Se from"@radix-ui/react-dialog";import Hs,{useContext as Ff,useEffect as zs,useState as ni}from"react";import{X as Ef}from"lucide-react";import zf from"lodash";import{jsx as ie,jsxs as Lt}from"react/jsx-runtime";var _s=Hs.createContext(void 0);function Bs(){let e=Ff(_s);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var si=({children:e,open:o,onOpenChange:t,className:a})=>ie(_s.Provider,{value:{open:o,onOpenChange:t},children:ie(Se.Root,{open:o,onOpenChange:t,children:ie("div",{className:i("lightbox-gallery",a),children:e})})}),Hf=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=Bs(),m=()=>{n?.(),l&&l(!0)};return Lt(Se.Trigger,{className:i("",a),onClick:m,children:[e,ie(H,{ratio:s,className:"rounded-lg cursor-pointer",children:ie("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},Os=Hs.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=Bs(),n=()=>{r&&r(!1)};return Lt(Se.Portal,{children:[ie(Se.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),Lt(Se.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,Lt(Se.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:[ie(Ef,{className:"h-4 w-4 mt-0.5"}),ie("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Os.displayName=Se.Content.displayName;var li=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=ni(""),[l,m]=ni(),[c,d]=ni(0);zs(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=g=>{let v=zf.filter(e,(C,w)=>w===(g>0?g-1:g)),y=v.length>0?v[0]?.titleImage:"";s(y)};return zs(()=>{p(c)},[c]),Lt(Os,{className:"flex py-0",children:[Lt("div",{className:" flex-1 relative",children:[Lt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),Lt(ue,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ie(ve,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,v)=>ie(ce,{className:"pl-6 md:pl-4",children:Lt("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[ie("div",{className:"flex-1 relative",children:ie("img",{src:g.url,alt:"",className:"absolute h-full w-full object-contain"})}),ie("div",{className:"flex-0",children:ie("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:ie("div",{className:"line-clamp-3",children:n})})})]})},v))}),ie(Po,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ie(Co,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ie("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};import*as $t from"react";import{CheckIcon as _f}from"@heroicons/react/16/solid";import*as pa from"@radix-ui/react-checkbox";import*as Gt from"@radix-ui/react-radio-group";import{Circle as Bf}from"lucide-react";import{jsx as mt,jsxs as $s}from"react/jsx-runtime";var Vs=$t.createContext({hideIndicator:!1});function Of(){let e=$t.useContext(Vs);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Xa=$t.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>mt(Vs.Provider,{value:{hideIndicator:o},children:mt(Gt.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Xa.displayName=Gt.Root.displayName;var Ya=$t.forwardRef(({className:e,children:o,...t},a)=>{let r=Of(),{hideIndicator:n}=r??{};return $s(Gt.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:[mt("div",{className:"min-w-0 flex-1",children:o}),!n&&mt("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:mt(Gt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:mt(Bf,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Ya.displayName=Gt.Item.displayName;var Ws=$t.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>$s(pa.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:[mt("div",{className:"min-w-0 flex-1",children:o}),!t&&mt("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:mt(pa.Indicator,{className:i("flex items-center justify-center text-current"),children:mt(_f,{className:"h-4 w-4"})})})]}));Ws.displayName=pa.Root.displayName;import{cva as Vf}from"class-variance-authority";import{jsx as $f}from"react/jsx-runtime";var Gs=Vf("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 Wf({className:e,variant:o,...t}){return $f("div",{className:i(Gs({variant:o}),e),...t})}import*as Qs from"react";import*as fa from"@radix-ui/react-progress";import{cva as Us}from"class-variance-authority";import{jsx as js}from"react/jsx-runtime";var Gf=Us("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"}}),jf=Us("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=Qs.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>js(fa.Root,{ref:s,className:i("",jf({size:a}),e),...n,children:js(fa.Indicator,{className:i("",Gf({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));qs.displayName=fa.Root.displayName;import{jsx as Qf}from"react/jsx-runtime";function Za({className:e,...o}){return Qf("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Uf,jsx as io,jsxs as Xs}from"react/jsx-runtime";function mi({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 io("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return Xs("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>io("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),io("style",{children:`
143
+ `})]})});import*as Se from"@radix-ui/react-dialog";import Hs,{useContext as Ff,useEffect as zs,useState as si}from"react";import{X as Ef}from"lucide-react";import zf from"lodash";import{jsx as ie,jsxs as Lt}from"react/jsx-runtime";var _s=Hs.createContext(void 0);function Bs(){let e=Ff(_s);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var li=({children:e,open:o,onOpenChange:t,className:a})=>ie(_s.Provider,{value:{open:o,onOpenChange:t},children:ie(Se.Root,{open:o,onOpenChange:t,children:ie("div",{className:i("lightbox-gallery",a),children:e})})}),Hf=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=Bs(),m=()=>{n?.(),l&&l(!0)};return Lt(Se.Trigger,{className:i("",a),onClick:m,children:[e,ie(H,{ratio:s,className:"rounded-lg cursor-pointer",children:ie("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},Os=Hs.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=Bs(),n=()=>{r&&r(!1)};return Lt(Se.Portal,{children:[ie(Se.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),Lt(Se.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,Lt(Se.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:[ie(Ef,{className:"h-4 w-4 mt-0.5"}),ie("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Os.displayName=Se.Content.displayName;var mi=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=si(""),[l,m]=si(),[c,d]=si(0);zs(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=g=>{let v=zf.filter(e,(C,w)=>w===(g>0?g-1:g)),y=v.length>0?v[0]?.titleImage:"";s(y)};return zs(()=>{p(c)},[c]),Lt(Os,{className:"flex py-0",children:[Lt("div",{className:" flex-1 relative",children:[Lt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),Lt(ue,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ie(ve,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,v)=>ie(ce,{className:"pl-6 md:pl-4",children:Lt("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[ie("div",{className:"flex-1 relative",children:ie("img",{src:g.url,alt:"",className:"absolute h-full w-full object-contain"})}),ie("div",{className:"flex-0",children:ie("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:ie("div",{className:"line-clamp-3",children:n})})})]})},v))}),ie(Po,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ie(Co,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ie("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};import*as $t from"react";import{CheckIcon as _f}from"@heroicons/react/16/solid";import*as pa from"@radix-ui/react-checkbox";import*as Gt from"@radix-ui/react-radio-group";import{Circle as Bf}from"lucide-react";import{jsx as mt,jsxs as $s}from"react/jsx-runtime";var Vs=$t.createContext({hideIndicator:!1});function Of(){let e=$t.useContext(Vs);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Xa=$t.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>mt(Vs.Provider,{value:{hideIndicator:o},children:mt(Gt.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Xa.displayName=Gt.Root.displayName;var Ya=$t.forwardRef(({className:e,children:o,...t},a)=>{let r=Of(),{hideIndicator:n}=r??{};return $s(Gt.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:[mt("div",{className:"min-w-0 flex-1",children:o}),!n&&mt("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:mt(Gt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:mt(Bf,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Ya.displayName=Gt.Item.displayName;var Ws=$t.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>$s(pa.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:[mt("div",{className:"min-w-0 flex-1",children:o}),!t&&mt("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:mt(pa.Indicator,{className:i("flex items-center justify-center text-current"),children:mt(_f,{className:"h-4 w-4"})})})]}));Ws.displayName=pa.Root.displayName;import{cva as Vf}from"class-variance-authority";import{jsx as $f}from"react/jsx-runtime";var Gs=Vf("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 Wf({className:e,variant:o,...t}){return $f("div",{className:i(Gs({variant:o}),e),...t})}import*as Qs from"react";import*as fa from"@radix-ui/react-progress";import{cva as Us}from"class-variance-authority";import{jsx as js}from"react/jsx-runtime";var Gf=Us("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"}}),jf=Us("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=Qs.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>js(fa.Root,{ref:s,className:i("",jf({size:a}),e),...n,children:js(fa.Indicator,{className:i("",Gf({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));qs.displayName=fa.Root.displayName;import{jsx as Qf}from"react/jsx-runtime";function Za({className:e,...o}){return Qf("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Uf,jsx as io,jsxs as Xs}from"react/jsx-runtime";function ci({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 io("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return Xs("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>io("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),io("style",{children:`
144
144
  .spinner_dots span {
145
145
  animation-name: spinner-dots;
146
146
  animation-duration: 1.4s;
@@ -247,7 +247,7 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
247
247
  opacity: 0.15;
248
248
  }
249
249
  }
250
- `})]})}})()})}import*as Ys from"react";import*as ct from"@radix-ui/react-slider";import{jsx as jt,jsxs as qf}from"react/jsx-runtime";var Zs=Ys.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>qf(ct.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[jt(ct.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:jt(ct.Range,{className:"absolute h-full bg-pink-500"})}),jt(ct.Thumb,{className:"group relative",children:jt("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&&jt("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})})}),jt(ct.Thumb,{className:"group relative",children:jt("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&&jt("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})})})]}));Zs.displayName=ct.Root.displayName;import{forwardRef as mg}from"react";import{Fragment as Kf,jsx as Oe,jsxs as Ka}from"react/jsx-runtime";var Xf=({author:e=""})=>Oe("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Yf=({author:e,avatar:o})=>Oe("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Oe("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Oe(Xf,{author:e})});function Zf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return Oe(Kf,{children:Ka("div",{className:"flex relative items-center space-x-3",children:[Oe(Yf,{avatar:e,author:o}),Ka("div",{className:"flex flex-col",children:[o&&Oe("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Ka("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Oe("div",{className:"text-gray-400",children:t}),a&&Ka("div",{className:"flex items-center space-x-2",children:[Oe("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Oe("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&Oe("div",{className:"absolute right-1 top-0",children:Oe("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Ks=Zf;import{useState as al}from"react";import{StarIcon as Jf}from"@heroicons/react/20/solid";import{jsx as Js,jsxs as el}from"react/jsx-runtime";var eg={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!"},tg={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 og({point:e,max:o,className:t}){let a=o>5?eg[e||10]:tg[e||5];return el("div",{className:i("flex items-center space-x-1",t),children:[Js(Jf,{className:"w-5 h-5 text-yellow-500"}),Js("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),el("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var tl=og;import{useState as ag}from"react";import ol from"html-react-parser";import{jsx as rg,jsxs as ig}from"react/jsx-runtime";var ci=({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]=ag(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return ig("div",{className:i(n),children:[s?ol(c(e,o)):ol(e),e.length>o&&rg("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 no,jsxs as rl}from"react/jsx-runtime";function ng({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=al(0),[m,c]=al(!1),d=p=>{c(!0),l(p)};return rl("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&no(tl,{className:"mb-0.5",point:r.point,max:r.max}),e&&no(ci,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&no("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>no("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&&rl(si,{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)=>no(H,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:no("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),no(li,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var il=ng;import{jsx as lg}from"react/jsx-runtime";function sg({actions:e=[]}){return lg("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var nl=sg;import{jsx as Ja,jsxs as dg}from"react/jsx-runtime";var cg=mg(({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},y)=>dg("div",{ref:y,className:i("",c?"ml-4 py-4":"py-5"),children:[Ja(Ks,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),Ja(il,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&Ja(nl,{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 Qt from"react";import{cva as pg}from"class-variance-authority";import{CheckIcon as fg}from"@heroicons/react/16/solid";import{XIcon as gg}from"lucide-react";import{jsx as Pe,jsxs as er}from"react/jsx-runtime";var ug=pg("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"}}),sl=Qt.createContext("default");function vg(){let e=Qt.useContext(sl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var hg=Qt.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?Pe(gg,{className:s}):er("div",{children:[e==="iconStep"&&Pe("div",{className:s,children:o}),e==="numberStep"&&Pe("div",{children:t}),e==="default"&&(n==="completed"?Pe(fg,{className:s}):Pe("div",{children:t}))]})}),xg=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=Qt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return Pe("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},bg=({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=vg();return er("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[er("div",{className:"flex w-full items-center justify-center gap-2",children:[Pe("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")}),Pe("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",ug({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...g,children:Pe(hg,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),Pe("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),er("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&&Pe("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&Pe("div",{className:"text-xs text-gray-500 ",children:s})]})]})},yg=({children:e,className:o,type:t="numberStep",...a})=>Pe(sl.Provider,{value:t,children:Pe("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as Ce from"react";import{Slot as Cg}from"@radix-ui/react-slot";import{Controller as Rg,FormProvider as kg,useFormContext as Tg}from"react-hook-form";import*as ll from"react";import*as di from"@radix-ui/react-label";import{cva as wg}from"class-variance-authority";import{jsx as Pg}from"react/jsx-runtime";var Ng=wg("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),tr=ll.forwardRef(({className:e,...o},t)=>Pg(di.Root,{ref:t,className:i(Ng(),e),...o}));tr.displayName=di.Root.displayName;import{jsx as Ut}from"react/jsx-runtime";var pi=kg,ml=Ce.createContext({}),fi=({...e})=>Ut(ml.Provider,{value:{name:e.name},children:Ut(Rg,{...e})}),ga=()=>{let e=Ce.useContext(ml),o=Ce.useContext(cl),{getFieldState:t,formState:a}=Tg(),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}},cl=Ce.createContext({}),or=Ce.forwardRef(({className:e,...o},t)=>{let a=Ce.useId();return Ut(cl.Provider,{value:{id:a},children:Ut("div",{ref:t,className:i("space-y-2",e),...o})})});or.displayName="FormItem";var ar=Ce.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=ga();return Ut(tr,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});ar.displayName="FormLabel";var rr=Ce.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=ga();return Ut(Cg,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});rr.displayName="FormControl";var ir=Ce.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=ga();return Ut("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});ir.displayName="FormDescription";var nr=Ce.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=ga(),s=r?String(r?.message):o;return s?Ut("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});nr.displayName="FormMessage";import*as At from"react";import*as R from"@radix-ui/react-dropdown-menu";import{ChevronRight as Sg,Check as Dg}from"lucide-react";import{jsx as xe,jsxs as ua}from"react/jsx-runtime";var Mg=R.Root,Ig=R.Trigger,Lg=R.Group,Ag=R.Portal,Fg=R.Sub,Eg=R.RadioGroup,dl=At.forwardRef(({className:e,inset:o,children:t,...a},r)=>ua(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,xe(Sg,{className:"ml-auto"})]}));dl.displayName=R.SubTrigger.displayName;var pl=At.forwardRef(({className:e,...o},t)=>xe(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}));pl.displayName=R.SubContent.displayName;var fl=At.forwardRef(({className:e,sideOffset:o=4,...t},a)=>xe(R.Portal,{children:xe(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})}));fl.displayName=R.Content.displayName;var gl=At.forwardRef(({className:e,inset:o,...t},a)=>xe(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}));gl.displayName=R.Item.displayName;var ul=At.forwardRef(({className:e,children:o,checked:t,...a},r)=>ua(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:[ua("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&xe("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),xe(R.ItemIndicator,{children:xe("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:xe(Dg,{size:16,strokeWidth:3})})})]}),o]}));ul.displayName=R.CheckboxItem.displayName;var vl=At.forwardRef(({className:e,children:o,...t},a)=>ua(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:[ua("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[xe("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),xe(R.ItemIndicator,{children:xe("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));vl.displayName=R.RadioItem.displayName;var hl=At.forwardRef(({className:e,inset:o,...t},a)=>xe(R.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));hl.displayName=R.Label.displayName;var xl=At.forwardRef(({className:e,...o},t)=>xe(R.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));xl.displayName=R.Separator.displayName;var bl=({className:e,...o})=>xe("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});bl.displayName="DropdownMenuShortcut";import{Slot as zg}from"@radix-ui/react-slot";import so from"html-react-parser";var yl=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};import{Fragment as sr,jsx as F,jsxs as dt}from"react/jsx-runtime";var wl=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(sr,{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&&o?.length>0&&F("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>F("div",{className:i("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:dt("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:[F("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}),dt("div",{className:"mt-6 w-full",children:[F("div",{className:"w-full text-xl font-semibold",children:so(a.title)}),a?.description&&F("div",{className:"mt-2 text-base text-gray-600",children:so(a.description)})]})]})},r))}),t&&F(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Hg=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(sr,{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&&o?.length>0&&F("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>dt("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:[dt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[F("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&&F("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:F(H,{ratio:1,children:F("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),dt("div",{className:"mt-6 w-full",children:[F("div",{className:"w-full text-xl font-semibold",children:so(a.title)}),a?.description&&F("div",{className:"mt-2 text-base text-gray-600",children:so(a.description)})]})]},r))}),t&&F(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),_g=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(sr,{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&&o.length>0&&F("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4 ",children:o.map((a,r)=>dt("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&&F("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?yl(a.image)?F("img",{src:a.image,className:"block object-cover"}):F(zg,{className:"h-6 w-6 stroke-white stroke-2",children:so(a.image.replace(/\n|\r/g,""))}):a.image}),dt("div",{className:"mt-4 w-full md:mt-6",children:[F("div",{className:"w-full text-xl font-semibold",children:so(a.title)}),a?.description&&F("div",{className:"mt-2 text-base text-gray-600",children:so(a.description)})]})]},r))}),t&&F(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Bg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return F(wl,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return F(Hg,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return F(_g,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return F(wl,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Og=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>F(sr,{children:Bg({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Vg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>F(V,{className:t,idSection:a,background:o,children:F(Og,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as Wg}from"class-variance-authority";import Nl from"html-react-parser";import{CheckIcon as Pl}from"lucide-react";import{Fragment as gi,jsx as be,jsxs as Cl}from"react/jsx-runtime";var $g=Wg("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}}),Gg=({template:e,name:o,image:t,isFeatures:a})=>be(gi,{children:(()=>{switch(e){case 1:case 2:return be(gi,{children:Cl("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full"})}):be("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:be(Pl,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"ml-2 ",children:Nl(o)})]})});case 3:return Cl("li",{className:"flex h-full space-x-4",children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full"})}):be("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:be(Pl,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"my-auto ml-2 md:my-0",children:Nl(o)})]});default:return null}})()}),lr=({dataFeatures:e,template:o=1})=>be(gi,{children:(e?.length??0)>0&&be("ul",{className:i("",$g({template:o})),children:e?.map((t,a)=>be(Gg,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as jg}from"lucide-react";import{jsx as J,jsxs as va}from"react/jsx-runtime";var Rl=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Qg=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>va(vo,{children:[J(Ke,{greaterThan:"sm",children:va(H,{className:i(""),ratio:Rl(o),children:[J("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&va(Ge,{children:[J(jo,{onClick:r,children:J("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:J("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:va("g",{fill:"none",fillRule:"evenodd",children:[J("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),J("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),J(Fe,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:va(et,{className:"relative bg-transparent p-4 text-center",children:[J("div",{className:"aspect-[16/9] w-full p-0",children:J("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),J(Nr,{asChild:!0,children:J(ne,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:J(jg,{className:"h-6 w-6"})})})]})})]})]})}),a&&J(Ke,{lessThan:"md",children:J("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:J("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),mr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>J("div",{className:a,children:n?J(Qg,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):J(H,{ratio:Rl(t),children:J("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});import Ug from"html-react-parser";import{Fragment as Xg,jsx as cr,jsxs as ui}from"react/jsx-runtime";var qg=({value:e,suffix:o,unit:t,description:a,idx:r})=>ui("div",{className:i(""),children:[e&&ui("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&ui("span",{children:[o," ",t]})]}),a&&cr("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:Ug(a)})]}),dr=({dataStats:e})=>cr(Xg,{children:(e?.length??0)>0&&cr("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)=>cr(qg,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as kl,jsx as ee,jsxs as ha}from"react/jsx-runtime";var vi=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ha("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[ha("div",{className:"col-span-1 ",children:[ee(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)}),ee(lr,{dataFeatures:t,template:a}),o&&ee(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),ee(dr,{dataStats:r})]}),ee("div",{className:"col-span-1 md:pl-10",children:s||ee(mr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Tl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ha("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[ee("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||ee(mr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),ha("div",{className:"order-1 col-span-1 md:order-2",children:[ee(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)}),ee(lr,{dataFeatures:t,template:a}),o&&ee("div",{className:"flex w-full items-center justify-center md:justify-start",children:ee(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),ee(dr,{dataStats:r})]})]}),Sl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ha(kl,{children:[ee(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&&ee(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"}),ee(lr,{dataFeatures:t,template:a}),ee("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:ee(dr,{dataStats:r})}),s||ee(kl,{children:n?.src&&ee(mr,{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 eu,jsx as lo}from"react/jsx-runtime";var Yg=`var(
250
+ `})]})}})()})}import*as Ys from"react";import*as ct from"@radix-ui/react-slider";import{jsx as jt,jsxs as qf}from"react/jsx-runtime";var Zs=Ys.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>qf(ct.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[jt(ct.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:jt(ct.Range,{className:"absolute h-full bg-pink-500"})}),jt(ct.Thumb,{className:"group relative",children:jt("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&&jt("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})})}),jt(ct.Thumb,{className:"group relative",children:jt("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&&jt("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})})})]}));Zs.displayName=ct.Root.displayName;import{forwardRef as mg}from"react";import{Fragment as Kf,jsx as Oe,jsxs as Ka}from"react/jsx-runtime";var Xf=({author:e=""})=>Oe("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Yf=({author:e,avatar:o})=>Oe("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Oe("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Oe(Xf,{author:e})});function Zf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return Oe(Kf,{children:Ka("div",{className:"flex relative items-center space-x-3",children:[Oe(Yf,{avatar:e,author:o}),Ka("div",{className:"flex flex-col",children:[o&&Oe("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Ka("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Oe("div",{className:"text-gray-400",children:t}),a&&Ka("div",{className:"flex items-center space-x-2",children:[Oe("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Oe("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&Oe("div",{className:"absolute right-1 top-0",children:Oe("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Ks=Zf;import{useState as al}from"react";import{StarIcon as Jf}from"@heroicons/react/20/solid";import{jsx as Js,jsxs as el}from"react/jsx-runtime";var eg={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!"},tg={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 og({point:e,max:o,className:t}){let a=o>5?eg[e||10]:tg[e||5];return el("div",{className:i("flex items-center space-x-1",t),children:[Js(Jf,{className:"w-5 h-5 text-yellow-500"}),Js("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),el("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var tl=og;import{useState as ag}from"react";import ol from"html-react-parser";import{jsx as rg,jsxs as ig}from"react/jsx-runtime";var di=({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]=ag(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return ig("div",{className:i(n),children:[s?ol(c(e,o)):ol(e),e.length>o&&rg("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 no,jsxs as rl}from"react/jsx-runtime";function ng({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=al(0),[m,c]=al(!1),d=p=>{c(!0),l(p)};return rl("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&no(tl,{className:"mb-0.5",point:r.point,max:r.max}),e&&no(di,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&no("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>no("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&&rl(li,{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)=>no(H,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:no("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),no(mi,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var il=ng;import{jsx as lg}from"react/jsx-runtime";function sg({actions:e=[]}){return lg("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var nl=sg;import{jsx as Ja,jsxs as dg}from"react/jsx-runtime";var cg=mg(({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},y)=>dg("div",{ref:y,className:i("",c?"ml-4 py-4":"py-5"),children:[Ja(Ks,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),Ja(il,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&Ja(nl,{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 Qt from"react";import{cva as pg}from"class-variance-authority";import{CheckIcon as fg}from"@heroicons/react/16/solid";import{XIcon as gg}from"lucide-react";import{jsx as Pe,jsxs as er}from"react/jsx-runtime";var ug=pg("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"}}),sl=Qt.createContext("default");function vg(){let e=Qt.useContext(sl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var hg=Qt.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?Pe(gg,{className:s}):er("div",{children:[e==="iconStep"&&Pe("div",{className:s,children:o}),e==="numberStep"&&Pe("div",{children:t}),e==="default"&&(n==="completed"?Pe(fg,{className:s}):Pe("div",{children:t}))]})}),xg=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=Qt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return Pe("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},bg=({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=vg();return er("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[er("div",{className:"flex w-full items-center justify-center gap-2",children:[Pe("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")}),Pe("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",ug({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...g,children:Pe(hg,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),Pe("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),er("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&&Pe("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&Pe("div",{className:"text-xs text-gray-500 ",children:s})]})]})},yg=({children:e,className:o,type:t="numberStep",...a})=>Pe(sl.Provider,{value:t,children:Pe("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as Ce from"react";import{Slot as Cg}from"@radix-ui/react-slot";import{Controller as Rg,FormProvider as kg,useFormContext as Tg}from"react-hook-form";import*as ll from"react";import*as pi from"@radix-ui/react-label";import{cva as wg}from"class-variance-authority";import{jsx as Pg}from"react/jsx-runtime";var Ng=wg("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),tr=ll.forwardRef(({className:e,...o},t)=>Pg(pi.Root,{ref:t,className:i(Ng(),e),...o}));tr.displayName=pi.Root.displayName;import{jsx as Ut}from"react/jsx-runtime";var fi=kg,ml=Ce.createContext({}),gi=({...e})=>Ut(ml.Provider,{value:{name:e.name},children:Ut(Rg,{...e})}),ga=()=>{let e=Ce.useContext(ml),o=Ce.useContext(cl),{getFieldState:t,formState:a}=Tg(),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}},cl=Ce.createContext({}),or=Ce.forwardRef(({className:e,...o},t)=>{let a=Ce.useId();return Ut(cl.Provider,{value:{id:a},children:Ut("div",{ref:t,className:i("space-y-2",e),...o})})});or.displayName="FormItem";var ar=Ce.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=ga();return Ut(tr,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});ar.displayName="FormLabel";var rr=Ce.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=ga();return Ut(Cg,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});rr.displayName="FormControl";var ir=Ce.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=ga();return Ut("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});ir.displayName="FormDescription";var nr=Ce.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=ga(),s=r?String(r?.message):o;return s?Ut("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});nr.displayName="FormMessage";import*as At from"react";import*as R from"@radix-ui/react-dropdown-menu";import{ChevronRight as Sg,Check as Dg}from"lucide-react";import{jsx as xe,jsxs as ua}from"react/jsx-runtime";var Mg=R.Root,Ig=R.Trigger,Lg=R.Group,Ag=R.Portal,Fg=R.Sub,Eg=R.RadioGroup,dl=At.forwardRef(({className:e,inset:o,children:t,...a},r)=>ua(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,xe(Sg,{className:"ml-auto"})]}));dl.displayName=R.SubTrigger.displayName;var pl=At.forwardRef(({className:e,...o},t)=>xe(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}));pl.displayName=R.SubContent.displayName;var fl=At.forwardRef(({className:e,sideOffset:o=4,...t},a)=>xe(R.Portal,{children:xe(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})}));fl.displayName=R.Content.displayName;var gl=At.forwardRef(({className:e,inset:o,...t},a)=>xe(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}));gl.displayName=R.Item.displayName;var ul=At.forwardRef(({className:e,children:o,checked:t,...a},r)=>ua(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:[ua("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&xe("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),xe(R.ItemIndicator,{children:xe("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:xe(Dg,{size:16,strokeWidth:3})})})]}),o]}));ul.displayName=R.CheckboxItem.displayName;var vl=At.forwardRef(({className:e,children:o,...t},a)=>ua(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:[ua("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[xe("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),xe(R.ItemIndicator,{children:xe("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));vl.displayName=R.RadioItem.displayName;var hl=At.forwardRef(({className:e,inset:o,...t},a)=>xe(R.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));hl.displayName=R.Label.displayName;var xl=At.forwardRef(({className:e,...o},t)=>xe(R.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));xl.displayName=R.Separator.displayName;var bl=({className:e,...o})=>xe("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});bl.displayName="DropdownMenuShortcut";import{Slot as zg}from"@radix-ui/react-slot";import so from"html-react-parser";var yl=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};import{Fragment as sr,jsx as F,jsxs as dt}from"react/jsx-runtime";var wl=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(sr,{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&&o?.length>0&&F("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>F("div",{className:i("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:dt("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:[F("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}),dt("div",{className:"mt-6 w-full",children:[F("div",{className:"w-full text-xl font-semibold",children:so(a.title)}),a?.description&&F("div",{className:"mt-2 text-base text-gray-600",children:so(a.description)})]})]})},r))}),t&&F(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Hg=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(sr,{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&&o?.length>0&&F("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>dt("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:[dt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[F("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&&F("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:F(H,{ratio:1,children:F("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),dt("div",{className:"mt-6 w-full",children:[F("div",{className:"w-full text-xl font-semibold",children:so(a.title)}),a?.description&&F("div",{className:"mt-2 text-base text-gray-600",children:so(a.description)})]})]},r))}),t&&F(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),_g=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(sr,{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&&o.length>0&&F("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4 ",children:o.map((a,r)=>dt("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&&F("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?yl(a.image)?F("img",{src:a.image,className:"block object-cover"}):F(zg,{className:"h-6 w-6 stroke-white stroke-2",children:so(a.image.replace(/\n|\r/g,""))}):a.image}),dt("div",{className:"mt-4 w-full md:mt-6",children:[F("div",{className:"w-full text-xl font-semibold",children:so(a.title)}),a?.description&&F("div",{className:"mt-2 text-base text-gray-600",children:so(a.description)})]})]},r))}),t&&F(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Bg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return F(wl,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return F(Hg,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return F(_g,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return F(wl,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Og=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>F(sr,{children:Bg({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Vg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>F(V,{className:t,idSection:a,background:o,children:F(Og,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as Wg}from"class-variance-authority";import Nl from"html-react-parser";import{CheckIcon as Pl}from"lucide-react";import{Fragment as ui,jsx as be,jsxs as Cl}from"react/jsx-runtime";var $g=Wg("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}}),Gg=({template:e,name:o,image:t,isFeatures:a})=>be(ui,{children:(()=>{switch(e){case 1:case 2:return be(ui,{children:Cl("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full"})}):be("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:be(Pl,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"ml-2 ",children:Nl(o)})]})});case 3:return Cl("li",{className:"flex h-full space-x-4",children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full"})}):be("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:be(Pl,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"my-auto ml-2 md:my-0",children:Nl(o)})]});default:return null}})()}),lr=({dataFeatures:e,template:o=1})=>be(ui,{children:(e?.length??0)>0&&be("ul",{className:i("",$g({template:o})),children:e?.map((t,a)=>be(Gg,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as jg}from"lucide-react";import{jsx as J,jsxs as va}from"react/jsx-runtime";var Rl=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Qg=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>va(vo,{children:[J(Ke,{greaterThan:"sm",children:va(H,{className:i(""),ratio:Rl(o),children:[J("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&va(Ge,{children:[J(jo,{onClick:r,children:J("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:J("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:va("g",{fill:"none",fillRule:"evenodd",children:[J("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),J("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),J(Fe,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:va(et,{className:"relative bg-transparent p-4 text-center",children:[J("div",{className:"aspect-[16/9] w-full p-0",children:J("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),J(Nr,{asChild:!0,children:J(ne,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:J(jg,{className:"h-6 w-6"})})})]})})]})]})}),a&&J(Ke,{lessThan:"md",children:J("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:J("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),mr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>J("div",{className:a,children:n?J(Qg,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):J(H,{ratio:Rl(t),children:J("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});import Ug from"html-react-parser";import{Fragment as Xg,jsx as cr,jsxs as vi}from"react/jsx-runtime";var qg=({value:e,suffix:o,unit:t,description:a,idx:r})=>vi("div",{className:i(""),children:[e&&vi("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&vi("span",{children:[o," ",t]})]}),a&&cr("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:Ug(a)})]}),dr=({dataStats:e})=>cr(Xg,{children:(e?.length??0)>0&&cr("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)=>cr(qg,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as kl,jsx as ee,jsxs as ha}from"react/jsx-runtime";var hi=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ha("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[ha("div",{className:"col-span-1 ",children:[ee(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)}),ee(lr,{dataFeatures:t,template:a}),o&&ee(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),ee(dr,{dataStats:r})]}),ee("div",{className:"col-span-1 md:pl-10",children:s||ee(mr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Tl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ha("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[ee("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||ee(mr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),ha("div",{className:"order-1 col-span-1 md:order-2",children:[ee(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)}),ee(lr,{dataFeatures:t,template:a}),o&&ee("div",{className:"flex w-full items-center justify-center md:justify-start",children:ee(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),ee(dr,{dataStats:r})]})]}),Sl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ha(kl,{children:[ee(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&&ee(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"}),ee(lr,{dataFeatures:t,template:a}),ee("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:ee(dr,{dataStats:r})}),s||ee(kl,{children:n?.src&&ee(mr,{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 eu,jsx as lo}from"react/jsx-runtime";var Yg=`var(
251
251
  --gradient-pink-1,
252
252
  linear-gradient(
253
253
  38deg,
@@ -269,7 +269,7 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
269
269
  rgba(255, 255, 255, 0) 80%
270
270
  ),
271
271
  #fff
272
- )`,Zg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return lo(vi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return lo(Tl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return lo(Sl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return lo(vi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},Kg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>lo(eu,{children:Zg({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),Jg=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>lo(V,{className:i(l),background:m??Yg,idSection:o,children:lo(Kg,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as tu}from"react";import{Fragment as ou,jsx as Fo,jsxs as au}from"react/jsx-runtime";var pr=tu(({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 au(ou,{children:[e&&Fo(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&&Fo("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 Fo("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:Fo(m,{...c,className:"group flex h-full w-full items-center justify-center",children:Fo("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&&Fo(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as ru}from"react";import{Fragment as iu,jsx as mo,jsxs as nu}from"react/jsx-runtime";var hi=ru(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>nu(iu,{children:[e&&mo(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&&mo("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 mo("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:mo(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:mo("div",{className:"flex w-full items-center justify-center",children:mo("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain"})})})},n)})}),t&&mo(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as su}from"react";import{Fragment as lu,jsx as Xe,jsxs as bi}from"react/jsx-runtime";var xi=(e,o)=>{if(!e)return Xe("div",{className:i("h-full w-full",o)});let t=e.url?"a":"div";return Xe("div",{className:i("h-full w-full",o),children:Xe(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:Xe("div",{className:"flex h-full w-full items-center justify-center",children:Xe("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},yi=su(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=wo(),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 bi(lu,{children:[e&&Xe(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&&bi(ue,{opts:{align:a?"center":"start"},className:"w-full",children:[Xe(ve,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?r.map((s,l)=>bi(ce,{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:[xi(s,"min-h-0 flex-1"),n[l]?xi(n[l],"min-h-0 flex-1"):Xe("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>Xe(ce,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:xi(s)},l))}),Xe(Ro,{className:"mt-5"})]}),t&&Xe(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as uu}from"react";import{useEffect as mu,useState as wi}from"react";import{animate as Dl,motion as cu,useMotionValue as du}from"motion/react";import pu from"react-use-measure";import{jsx as gu,jsxs as fu}from"react/jsx-runtime";function Eo({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=wi(t),[d,{width:p,height:g}]=pu(),v=du(0),[y,C]=wi(!1),[w,A]=wi(0);mu(()=>{let z,P=(r==="horizontal"?p:g)+o,O=n?-P/2:0,E=n?0:-P/2,$e=Math.abs(E-O)/m;if(y){let Vo=Math.abs(v.get()-E)/m;z=Dl(v,[v.get(),E],{ease:"linear",duration:Vo,onComplete:()=>{C(!1),A(Xm=>Xm+1)}})}else z=Dl(v,[O,E],{ease:"linear",duration:$e,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(O)}});return z?.stop},[w,v,m,p,g,o,y,r,n]);let B=a?{onHoverStart:()=>{C(!0),c(a)},onHoverEnd:()=>{C(!0),c(t)},onTouchStart:()=>{C(!0),c(a)},onTouchEnd:()=>{C(!0),c(t)}}:{};return gu("div",{className:i("overflow-hidden",s),children:fu(cu.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,...B,children:[e,e]})})}import{Fragment as Il,jsx as De,jsxs as vu}from"react/jsx-runtime";var Ml=(e,o)=>{let t=e?.url?"a":"div";return De("div",{className:i("h-full w-full",o),children:De(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:De("div",{className:"flex h-full w-full items-center justify-center",children:De("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},Ni=uu(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,r=a>6;return vu(Il,{children:[e&&De(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&&De(Il,{children:r?De("div",{className:"mark-horizontal-slider relative overflow-hidden",children:De(Eo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>De("div",{className:"w-32 md:w-40",children:Ml(n)},s))})}):De("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)=>De("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:Ml(n)},s))})}),t&&De(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),De("style",{children:`
272
+ )`,Zg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return lo(hi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return lo(Tl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return lo(Sl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return lo(hi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},Kg=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>lo(eu,{children:Zg({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),Jg=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>lo(V,{className:i(l),background:m??Yg,idSection:o,children:lo(Kg,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as tu}from"react";import{Fragment as ou,jsx as Fo,jsxs as au}from"react/jsx-runtime";var pr=tu(({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 au(ou,{children:[e&&Fo(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&&Fo("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 Fo("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:Fo(m,{...c,className:"group flex h-full w-full items-center justify-center",children:Fo("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&&Fo(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as ru}from"react";import{Fragment as iu,jsx as mo,jsxs as nu}from"react/jsx-runtime";var xi=ru(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>nu(iu,{children:[e&&mo(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&&mo("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 mo("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:mo(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:mo("div",{className:"flex w-full items-center justify-center",children:mo("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain"})})})},n)})}),t&&mo(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as su}from"react";import{Fragment as lu,jsx as Xe,jsxs as yi}from"react/jsx-runtime";var bi=(e,o)=>{if(!e)return Xe("div",{className:i("h-full w-full",o)});let t=e.url?"a":"div";return Xe("div",{className:i("h-full w-full",o),children:Xe(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:Xe("div",{className:"flex h-full w-full items-center justify-center",children:Xe("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},wi=su(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=wo(),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 yi(lu,{children:[e&&Xe(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&&yi(ue,{opts:{align:a?"center":"start"},className:"w-full",children:[Xe(ve,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?r.map((s,l)=>yi(ce,{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:[bi(s,"min-h-0 flex-1"),n[l]?bi(n[l],"min-h-0 flex-1"):Xe("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>Xe(ce,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:bi(s)},l))}),Xe(Ro,{className:"mt-5"})]}),t&&Xe(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as uu}from"react";import{useEffect as mu,useState as Ni}from"react";import{animate as Dl,motion as cu,useMotionValue as du}from"motion/react";import pu from"react-use-measure";import{jsx as gu,jsxs as fu}from"react/jsx-runtime";function Eo({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=Ni(t),[d,{width:p,height:g}]=pu(),v=du(0),[y,C]=Ni(!1),[w,A]=Ni(0);mu(()=>{let z,P=(r==="horizontal"?p:g)+o,O=n?-P/2:0,E=n?0:-P/2,$e=Math.abs(E-O)/m;if(y){let Vo=Math.abs(v.get()-E)/m;z=Dl(v,[v.get(),E],{ease:"linear",duration:Vo,onComplete:()=>{C(!1),A(Xm=>Xm+1)}})}else z=Dl(v,[O,E],{ease:"linear",duration:$e,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(O)}});return z?.stop},[w,v,m,p,g,o,y,r,n]);let B=a?{onHoverStart:()=>{C(!0),c(a)},onHoverEnd:()=>{C(!0),c(t)},onTouchStart:()=>{C(!0),c(a)},onTouchEnd:()=>{C(!0),c(t)}}:{};return gu("div",{className:i("overflow-hidden",s),children:fu(cu.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,...B,children:[e,e]})})}import{Fragment as Il,jsx as De,jsxs as vu}from"react/jsx-runtime";var Ml=(e,o)=>{let t=e?.url?"a":"div";return De("div",{className:i("h-full w-full",o),children:De(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:De("div",{className:"flex h-full w-full items-center justify-center",children:De("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},Pi=uu(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,r=a>6;return vu(Il,{children:[e&&De(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&&De(Il,{children:r?De("div",{className:"mark-horizontal-slider relative overflow-hidden",children:De(Eo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>De("div",{className:"w-32 md:w-40",children:Ml(n)},s))})}):De("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)=>De("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:Ml(n)},s))})}),t&&De(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),De("style",{children:`
273
273
  .mark-horizontal-slider {
274
274
  mask-image: linear-gradient(
275
275
  to right,
@@ -286,15 +286,15 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
286
286
  transparent 100%
287
287
  );
288
288
  }
289
- `})]})});import{Fragment as yu,jsx as qt}from"react/jsx-runtime";var hu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return qt(pr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return qt(hi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return qt(yi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return qt(Ni,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return qt(pr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},xu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>qt(yu,{children:hu({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),bu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>qt(V,{className:i(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:qt(xu,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as wu}from"react";import{ChevronRightIcon as Nu}from"@heroicons/react/16/solid";import X from"html-react-parser";import{Fragment as Ft,jsx as f,jsxs as b}from"react/jsx-runtime";var pt=({btnLink:e,btnName:o,newTab:t})=>f(ge,{variant:"primary",asChild:!0,children:b(T,{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(Nu,{className:"h-4 w-4"})]})}),Pi=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ll=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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:`
289
+ `})]})});import{Fragment as yu,jsx as qt}from"react/jsx-runtime";var hu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return qt(pr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return qt(xi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return qt(wi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return qt(Pi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return qt(pr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},xu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>qt(yu,{children:hu({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),bu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>qt(V,{className:i(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:qt(xu,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as wu}from"react";import{ChevronRightIcon as Nu}from"@heroicons/react/16/solid";import X from"html-react-parser";import{Fragment as Ft,jsx as f,jsxs as b}from"react/jsx-runtime";var pt=({btnLink:e,btnName:o,newTab:t})=>f(ge,{variant:"primary",asChild:!0,children:b(T,{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(Nu,{className:"h-4 w-4"})]})}),Ci=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ll=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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:`
290
290
  .list-features-2 .feature-item {
291
291
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
292
292
  }
293
- `})]}),Al=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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("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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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"})]})]}),El=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Hl=({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:X(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:X(d.description)})]})]})},p)};return b(Ft,{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"})]})},_l=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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"})]}),Bl=({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:X(r.name)}),r?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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(H,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),Ol=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>b(Ft,{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:X(r.name)}),r?.description&&f("div",{className:"mt-2 text-gray-500",children:X(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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"})]}),Vl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=wu(0),s=wo();return b(Ft,{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(xt,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((l,m)=>b(bt,{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(yt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:X(l.name||"")}),b(wt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:X(l.description||"")}),l?.btnLink&&f("div",{className:"",children:f(pt,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&f("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:f(H,{ratio:1,className:"w-full",children:f("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},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(H,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):f("div",{className:"hidden md:flex",children:o?.[r]?.image?f(H,{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 ku,jsx as ye}from"react/jsx-runtime";var Pu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return ye(Pi,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ye(Ll,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ye(Al,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ye(Fl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ye(El,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ye(zl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ye(Hl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ye(_l,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ye(Bl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return ye(Ol,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return ye(Vl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return ye(Pi,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Cu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>ye(ku,{children:Pu({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Ru=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>ye(V,{className:t,idSection:a,background:o,children:ye(Cu,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as Tu}from"@heroicons/react/24/solid";import Ci from"html-react-parser";import Su from"lodash";var fr=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],gr=({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()||""},ur=(e,o)=>o[e%o.length];import{Fragment as $l,jsx as te,jsxs as zo}from"react/jsx-runtime";var Du=({avatar:e="",name:o="",index:t=0})=>{if(Su.isEmpty(e)){let a=gr({name:o})??"",r=ur(t,fr);return te("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 te("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:te("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Wl=({testimonial:e,className:o,index:t})=>te("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:[te(Du,{avatar:e.avatar,name:e.name,index:t}),zo("div",{className:"min-w-0 flex-1 pl-1",children:[te("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&te("div",{className:"text-xs font-normal text-pink-500",children:Ci(e.position)})]})]}),zo("div",{className:"mt-3",children:[e?.shortTitle&&te("div",{className:"text-sm font-bold text-gray-700",children:Ci(e.shortTitle)}),e?.description&&te("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Ci(e.description)})]}),zo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&te("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&te("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>te(Tu,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Ri=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return zo($l,{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($l,{children:r?te("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:te(Eo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>te(Wl,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):te("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>te(Wl,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&te(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as Gl}from"@heroicons/react/24/solid";import ki from"html-react-parser";import{Fragment as Lu,jsx as _,jsxs as Ye}from"react/jsx-runtime";var Mu=({className:e})=>_("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),Iu=({testimonial:e,className:o})=>_("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:Ye("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&_("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:_(H,{ratio:2/3,className:"w-full",children:_("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Ye("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Ye("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Ye("div",{className:"grow",children:[e?.name&&_("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&_("div",{className:"mt-1 text-xs font-normal text-gray-500",children:ki(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Ye("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>_(Gl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&_("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:_(H,{ratio:2/3,className:"w-full",children:_("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Ye("div",{className:"flex flex-1 flex-col md:flex-none",children:[Ye("div",{className:"flex-1",children:[Ye("div",{className:"mb-1.5 flex flex-none space-x-3",children:[_(Mu,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&_("div",{className:"flex-none text-base font-medium md:text-lg",children:ki(e.shortTitle)})]}),e?.description&&_("blockquote",{className:"relative flex-1 text-justify text-base",children:ki(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Ye("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&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>_(Gl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),jl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Ye(Lu,{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}),(o??[]).length>0&&Ye(ue,{className:"w-full",children:[_(ve,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>_(ce,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:_(Iu,{testimonial:a})},r))}),(o??[]).length>1&&_(Ro,{className:"mt-8"})]}),t&&_(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as Au}from"@heroicons/react/24/solid";import Ti from"html-react-parser";import Fu from"lodash";import{Fragment as Ul,jsx as G,jsxs as co}from"react/jsx-runtime";var Eu=({avatar:e="",name:o="",index:t=0})=>{if(Fu.isEmpty(e)){let a=gr({name:o})??"",r=ur(t,fr);return G("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 G("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:G("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Ql=({testimonial:e,className:o,index:t})=>G("div",{className:i("testimonial-item",o),children:co("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:[co("div",{className:"flex flex-nowrap items-center space-x-2",children:[G(Eu,{avatar:e.avatar,name:e.name,index:t}),co("div",{className:"flex-1 pl-1",children:[G("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&G("div",{className:"text-xs font-normal text-pink-500",children:Ti(e.position)})]})]}),co("div",{className:"mt-3",children:[e?.shortTitle&&G("div",{className:"text-sm font-bold text-gray-700",children:Ti(e.shortTitle)}),e?.description&&G("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Ti(e.description)})]}),co("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&G("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&G("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>G(Au,{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=>G(Ul,{children:l.map((m,c)=>G(Eo,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>G(Ql,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return co(Ul,{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:e.className}),a>0&&G(vo,{children:r?co("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[G(Ke,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),G(Ke,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),G(Ke,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):G("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>G(Ql,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&G(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),G("style",{children:`
293
+ `})]}),Al=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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("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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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"})]})]}),El=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Hl=({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:X(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:X(d.description)})]})]})},p)};return b(Ft,{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"})]})},_l=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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"})]}),Bl=({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:X(r.name)}),r?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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(H,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),Ol=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>b(Ft,{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:X(r.name)}),r?.description&&f("div",{className:"mt-2 text-gray-500",children:X(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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"})]}),Vl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=wu(0),s=wo();return b(Ft,{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(xt,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((l,m)=>b(bt,{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(yt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:X(l.name||"")}),b(wt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:X(l.description||"")}),l?.btnLink&&f("div",{className:"",children:f(pt,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&f("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:f(H,{ratio:1,className:"w-full",children:f("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},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(H,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):f("div",{className:"hidden md:flex",children:o?.[r]?.image?f(H,{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 ku,jsx as ye}from"react/jsx-runtime";var Pu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return ye(Ci,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ye(Ll,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ye(Al,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ye(Fl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ye(El,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ye(zl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ye(Hl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ye(_l,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ye(Bl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return ye(Ol,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return ye(Vl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return ye(Ci,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Cu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>ye(ku,{children:Pu({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Ru=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>ye(V,{className:t,idSection:a,background:o,children:ye(Cu,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as Tu}from"@heroicons/react/24/solid";import Ri from"html-react-parser";import Su from"lodash";var fr=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],gr=({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()||""},ur=(e,o)=>o[e%o.length];import{Fragment as $l,jsx as te,jsxs as zo}from"react/jsx-runtime";var Du=({avatar:e="",name:o="",index:t=0})=>{if(Su.isEmpty(e)){let a=gr({name:o})??"",r=ur(t,fr);return te("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 te("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:te("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Wl=({testimonial:e,className:o,index:t})=>te("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:[te(Du,{avatar:e.avatar,name:e.name,index:t}),zo("div",{className:"min-w-0 flex-1 pl-1",children:[te("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&te("div",{className:"text-xs font-normal text-pink-500",children:Ri(e.position)})]})]}),zo("div",{className:"mt-3",children:[e?.shortTitle&&te("div",{className:"text-sm font-bold text-gray-700",children:Ri(e.shortTitle)}),e?.description&&te("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Ri(e.description)})]}),zo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&te("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&te("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>te(Tu,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),ki=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return zo($l,{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($l,{children:r?te("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:te(Eo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>te(Wl,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):te("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>te(Wl,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&te(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as Gl}from"@heroicons/react/24/solid";import Ti from"html-react-parser";import{Fragment as Lu,jsx as _,jsxs as Ye}from"react/jsx-runtime";var Mu=({className:e})=>_("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),Iu=({testimonial:e,className:o})=>_("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:Ye("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&_("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:_(H,{ratio:2/3,className:"w-full",children:_("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Ye("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Ye("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Ye("div",{className:"grow",children:[e?.name&&_("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&_("div",{className:"mt-1 text-xs font-normal text-gray-500",children:Ti(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Ye("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>_(Gl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&_("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:_(H,{ratio:2/3,className:"w-full",children:_("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Ye("div",{className:"flex flex-1 flex-col md:flex-none",children:[Ye("div",{className:"flex-1",children:[Ye("div",{className:"mb-1.5 flex flex-none space-x-3",children:[_(Mu,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&_("div",{className:"flex-none text-base font-medium md:text-lg",children:Ti(e.shortTitle)})]}),e?.description&&_("blockquote",{className:"relative flex-1 text-justify text-base",children:Ti(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Ye("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&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>_(Gl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),jl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Ye(Lu,{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}),(o??[]).length>0&&Ye(ue,{className:"w-full",children:[_(ve,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>_(ce,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:_(Iu,{testimonial:a})},r))}),(o??[]).length>1&&_(Ro,{className:"mt-8"})]}),t&&_(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as Au}from"@heroicons/react/24/solid";import Si from"html-react-parser";import Fu from"lodash";import{Fragment as Ul,jsx as G,jsxs as co}from"react/jsx-runtime";var Eu=({avatar:e="",name:o="",index:t=0})=>{if(Fu.isEmpty(e)){let a=gr({name:o})??"",r=ur(t,fr);return G("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 G("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:G("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Ql=({testimonial:e,className:o,index:t})=>G("div",{className:i("testimonial-item",o),children:co("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:[co("div",{className:"flex flex-nowrap items-center space-x-2",children:[G(Eu,{avatar:e.avatar,name:e.name,index:t}),co("div",{className:"flex-1 pl-1",children:[G("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&G("div",{className:"text-xs font-normal text-pink-500",children:Si(e.position)})]})]}),co("div",{className:"mt-3",children:[e?.shortTitle&&G("div",{className:"text-sm font-bold text-gray-700",children:Si(e.shortTitle)}),e?.description&&G("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Si(e.description)})]}),co("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&G("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&G("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>G(Au,{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=>G(Ul,{children:l.map((m,c)=>G(Eo,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>G(Ql,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return co(Ul,{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:e.className}),a>0&&G(vo,{children:r?co("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[G(Ke,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),G(Ke,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),G(Ke,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):G("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>G(Ql,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&G(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),G("style",{children:`
294
294
  .mark-vertical-marquee {
295
295
  mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
296
296
  }
297
- `})]})};import{Fragment as Bu,jsx as po}from"react/jsx-runtime";var zu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return po(Ri,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return po(ql,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return po(jl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return po(Ri,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Hu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>po(Bu,{children:zu({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),_u=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>po(V,{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:po(Hu,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import Xl from"html-react-parser";import{Fragment as Ou,jsx as re,jsxs as fo}from"react/jsx-runtime";var Si=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>re(xt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>fo(bt,{value:n.title,className:"last:border-none",children:[re(yt,{className:"md:text-lg",children:n.title}),re(wt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Xl(n.description)})]},s))});return fo("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[re("div",{className:"relative",children:fo("div",{className:"md:sticky md:top-16",children:[o&&re(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&&re(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]&&re("div",{className:"col-span-2",children:a(e[0])}),t&&re(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Yl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>re(xt,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>fo(bt,{value:c.title,className:"last:border-none",children:[re(yt,{className:"md:text-lg",children:c.title}),re(wt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Xl(c.description)})]},d))});return fo(Ou,{children:[o&&re(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&&fo(St,{defaultValue:e[0]?.title,children:[e?.length>=1&&fo(Ct,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[re(Rt,{className:"mb-3 text-center",children:re(tt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>re(ot,{value:m.title,children:m.title},m.title+c))})}),re(kt,{}),re(Tt,{})]}),e.map((m,c)=>re(at,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&re(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as Gu,jsx as Ho}from"react/jsx-runtime";var Vu=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return Ho(Si,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return Ho(Yl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return Ho(Si,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},Wu=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>Ho(Gu,{children:Vu({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),$u=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Ho(V,{className:t,idSection:r,background:a,children:Ho(Wu,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import ju,{memo as Qu}from"react";import{ArrowDownIcon as Uu}from"@heroicons/react/20/solid";import qu from"html-react-parser";import{Fragment as Zl,jsx as Z,jsxs as ft}from"react/jsx-runtime";var Xu=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return ft(Zl,{children:[Z("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:ft("picture",{children:[Z("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),Z("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),ft("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[Z("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),ft("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&ft(Zl,{children:[Z(ge,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&Z("span",{className:"flex-none leading-none",children:"\xB7"})]}),Z("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Di=Qu(({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)=>ft("div",{children:[Z("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)=>Z("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:Z("div",{onClick:y=>m(y,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:Z(Xu,{news:g})},g?.id)},v))}),d?.isShowBtn&&Z("div",{className:"mt-8 flex w-full items-center justify-center",children:ft(je,{action:d?.btnUrl||r&&(()=>r?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[qu(d.btnName||"Xem th\xEAm"),d?.isLoading?Z(xo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&Z(Uu,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return ft(ju.Fragment,{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:i(e?.className)}),t?.length>1?ft(St,{defaultValue:t[0]?.title,children:[ft(Ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[Z(Rt,{className:"mb-6 text-center",children:Z(tt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>Z(ot,{value:d.title,children:d.title},d.title+p))})}),Z(kt,{}),Z(Tt,{})]}),t.map((d,p)=>Z(at,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as Ju,jsx as xa}from"react/jsx-runtime";var Yu=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return xa(Di,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return xa(Di,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Zu=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>xa(Ju,{children:Yu({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ku=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>xa(V,{className:i(r),background:n,idSection:e,children:xa(Zu,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as r0,jsx as Me,jsxs as Mi}from"react/jsx-runtime";var Kl=({dataHeading:e,dataCTA:o,dataButtons:t})=>Mi("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&&Me(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&&Me(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),e0=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Mi("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:[Mi("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&Me(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&&Me(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Me("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&Me(H,{ratio:4/3,children:Me("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),t0=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return Me(Kl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return Me(e0,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return Me(Kl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},o0=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>Me(r0,{children:t0({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),a0=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>Me(V,{className:t,idSection:a,background:o,children:Me(o0,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import Jl from"react";import Ii from"html-react-parser";import{jsx as Xt,jsxs as em}from"react/jsx-runtime";var i0=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return em("div",{className:"text-center",children:[Xt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Ii(t??"")}),Xt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Ii(o??"")}),a&&Xt("div",{className:"mt-2 text-sm text-gray-500",children:Ii(a??"")})]})},vr=({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:i("grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",e?.length===2&&"md:grid-cols-4 md:[&>*:first-child]:col-start-2",e?.length===4&&"md:grid-cols-4"),children:e?.map((a,r)=>Xt(Jl.Fragment,{children:Xt(i0,{metric:a})},r))}),o&&Xt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import tm from"react";import Li from"html-react-parser";import{jsx as Yt,jsxs as om}from"react/jsx-runtime";var n0=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return om("div",{className:"bg-gray-100 p-4 text-center md:p-8",children:[Yt("div",{className:"text-2xl font-bold text-gray-900 md:text-3xl",children:Li(t??"")}),Yt("div",{className:"mt-2 text-sm font-semibold text-gray-500",children:Li(o??"")}),a&&Yt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:Li(a??"")})]})},Ai=({dataMetrics:e,dataButtons:o,dataHeading:t})=>om(tm.Fragment,{children:[t&&Yt(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&&Yt("div",{className:i("grid grid-cols-2 gap-px overflow-hidden rounded-lg md:rounded-xl md:py-0 lg:grid-cols-4",e?.length===2&&"lg:grid-cols-2",e?.length===3&&"lg:grid-cols-3"),children:e?.map((a,r)=>Yt(tm.Fragment,{children:Yt(n0,{metric:a})},r))}),o&&Yt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as c0,jsx as _o}from"react/jsx-runtime";var s0=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return _o(vr,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return _o(Ai,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return _o(vr,{dataMetrics:o,dataButtons:a,dataHeading:e})}},l0=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>_o(c0,{children:s0({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),m0=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>_o(V,{className:i(n),background:r,idSection:e,children:_o(l0,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as d0}from"react";import{jsx as am,jsxs as f0}from"react/jsx-runtime";var p0=d0(({className:e,title:o,children:t},a)=>f0("div",{className:e,ref:a,children:[am("div",{className:"font-semibold text-gray-800",children:o}),am("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 x0}from"react";import{Fragment as h0,jsx as go,jsxs as v0}from"react/jsx-runtime";var g0=()=>go("div",{className:"p-3 border rounded-lg",children:v0("div",{className:"flex items-center gap-3",children:[go(Za,{className:"rounded-md h-9 w-9 "}),go("div",{className:"flex-1",children:go(Za,{className:"w-48 h-5 "})}),go("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function u0(){return go(h0,{children:Array.from({length:4}).map((e,o)=>go(g0,{},o))})}var rm=u0;import{Fragment as w0,jsx as Et,jsxs as Fi}from"react/jsx-runtime";var b0=({paymentMethod:e})=>Et(Ya,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:Fi("div",{className:"flex items-center space-x-3",children:[Et("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),Fi("div",{className:"grid grid-cols-1 gap-1",children:[Et("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Et("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Et("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),y0=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=x0(s=>a?.(s),[a]);return Fi(w0,{children:[e&&Et("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Et(rm,{}):Et(Xa,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Et(b0,{paymentMethod:s},s.id))})]})};import{forwardRef as im}from"react";import{jsx as sm}from"react/jsx-runtime";var N0=im(({children:e,className:o},t)=>sm("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),nm=im(({children:e,className:o,...t},a)=>sm(N0,{ref:a,className:o,...t,children:e}));nm.displayName="Payment";import{forwardRef as P0}from"react";import{jsx as lm,jsxs as R0}from"react/jsx-runtime";var C0=P0(({className:e,children:o},t)=>R0("div",{className:i("",e),ref:t,children:[lm("hr",{className:"mb-5 h-px w-full bg-gray-500"}),lm("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as k0}from"react";import{jsx as S0}from"react/jsx-runtime";var T0=k0(({className:e,children:o},t)=>S0("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as F0}from"react";import{CheckBadgeIcon as D0,XCircleIcon as M0}from"@heroicons/react/20/solid";import{jsx as se,jsxs as Bo}from"react/jsx-runtime";var I0=({iconPaymentResult:e,message:o="",title:t=""})=>Bo("div",{className:"grid grid-cols-1 gap-4",children:[Bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&se("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&se("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&se(da,{message:o,type:"success",icon:se(D0,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),L0=({iconPaymentResult:e,message:o="",title:t=""})=>Bo("div",{className:"grid grid-cols-1 gap-4",children:[Bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&se("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&se("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),se(da,{message:o,type:"error",icon:se(M0,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),A0=({iconPaymentResult:e,message:o="",title:t=""})=>Bo("div",{className:"grid grid-cols-1 gap-4",children:[Bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&se("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&se("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&se(da,{message:o,type:"neutral"})]}),mm=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return se(I0,{status:e,title:o,message:t,iconPaymentResult:a||se("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return se(L0,{status:e,title:o,message:t,iconPaymentResult:a||se("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return se(A0,{status:e,title:o,message:t,iconPaymentResult:a||se("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as z0,jsxs as H0}from"react/jsx-runtime";var E0=F0(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>H0("div",{ref:s,className:i("rounded-lg p-4",e),children:[z0(mm,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as B0,useEffect as O0}from"react";import{jsx as Ei,jsxs as _0}from"react/jsx-runtime";var hr=({content:e})=>_0("picture",{children:[Ei("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),Ei("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),Ei(je,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as ba,jsxs as $0}from"react/jsx-runtime";var V0=({template:e,content:o})=>{switch(e){case 1:return ba(hr,{content:o});default:return ba(hr,{content:o})}},W0=B0(({template:e,content:o},t)=>(O0(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),$0("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[ba("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:ba("div",{className:"content",children:V0({template:e,content:o})})}),ba("style",{children:`
297
+ `})]})};import{Fragment as Bu,jsx as po}from"react/jsx-runtime";var zu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return po(ki,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return po(ql,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return po(jl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return po(ki,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Hu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>po(Bu,{children:zu({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),_u=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>po(V,{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:po(Hu,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import Xl from"html-react-parser";import{Fragment as Ou,jsx as re,jsxs as fo}from"react/jsx-runtime";var Di=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>re(xt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>fo(bt,{value:n.title,className:"last:border-none",children:[re(yt,{className:"md:text-lg",children:n.title}),re(wt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Xl(n.description)})]},s))});return fo("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[re("div",{className:"relative",children:fo("div",{className:"md:sticky md:top-16",children:[o&&re(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&&re(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]&&re("div",{className:"col-span-2",children:a(e[0])}),t&&re(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Yl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>re(xt,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>fo(bt,{value:c.title,className:"last:border-none",children:[re(yt,{className:"md:text-lg",children:c.title}),re(wt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Xl(c.description)})]},d))});return fo(Ou,{children:[o&&re(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&&fo(St,{defaultValue:e[0]?.title,children:[e?.length>=1&&fo(Ct,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[re(Rt,{className:"mb-3 text-center",children:re(tt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>re(ot,{value:m.title,children:m.title},m.title+c))})}),re(kt,{}),re(Tt,{})]}),e.map((m,c)=>re(at,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&re(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as Gu,jsx as Ho}from"react/jsx-runtime";var Vu=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return Ho(Di,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return Ho(Yl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return Ho(Di,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},Wu=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>Ho(Gu,{children:Vu({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),$u=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Ho(V,{className:t,idSection:r,background:a,children:Ho(Wu,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import ju,{memo as Qu}from"react";import{ArrowDownIcon as Uu}from"@heroicons/react/20/solid";import qu from"html-react-parser";import{Fragment as Zl,jsx as Z,jsxs as ft}from"react/jsx-runtime";var Xu=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return ft(Zl,{children:[Z("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:ft("picture",{children:[Z("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),Z("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),ft("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[Z("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),ft("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&ft(Zl,{children:[Z(ge,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&Z("span",{className:"flex-none leading-none",children:"\xB7"})]}),Z("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Mi=Qu(({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)=>ft("div",{children:[Z("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)=>Z("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:Z("div",{onClick:y=>m(y,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:Z(Xu,{news:g})},g?.id)},v))}),d?.isShowBtn&&Z("div",{className:"mt-8 flex w-full items-center justify-center",children:ft(je,{action:d?.btnUrl||r&&(()=>r?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[qu(d.btnName||"Xem th\xEAm"),d?.isLoading?Z(xo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&Z(Uu,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return ft(ju.Fragment,{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:i(e?.className)}),t?.length>1?ft(St,{defaultValue:t[0]?.title,children:[ft(Ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[Z(Rt,{className:"mb-6 text-center",children:Z(tt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>Z(ot,{value:d.title,children:d.title},d.title+p))})}),Z(kt,{}),Z(Tt,{})]}),t.map((d,p)=>Z(at,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as Ju,jsx as xa}from"react/jsx-runtime";var Yu=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return xa(Mi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return xa(Mi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Zu=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>xa(Ju,{children:Yu({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ku=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>xa(V,{className:i(r),background:n,idSection:e,children:xa(Zu,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as r0,jsx as Me,jsxs as Ii}from"react/jsx-runtime";var Kl=({dataHeading:e,dataCTA:o,dataButtons:t})=>Ii("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&&Me(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&&Me(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),e0=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Ii("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:[Ii("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&Me(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&&Me(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Me("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&Me(H,{ratio:4/3,children:Me("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),t0=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return Me(Kl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return Me(e0,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return Me(Kl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},o0=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>Me(r0,{children:t0({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),a0=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>Me(V,{className:t,idSection:a,background:o,children:Me(o0,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import Jl from"react";import Li from"html-react-parser";import{jsx as Xt,jsxs as em}from"react/jsx-runtime";var i0=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return em("div",{className:"text-center",children:[Xt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Li(t??"")}),Xt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Li(o??"")}),a&&Xt("div",{className:"mt-2 text-sm text-gray-500",children:Li(a??"")})]})},vr=({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:i("grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",e?.length===2&&"md:grid-cols-4 md:[&>*:first-child]:col-start-2",e?.length===4&&"md:grid-cols-4"),children:e?.map((a,r)=>Xt(Jl.Fragment,{children:Xt(i0,{metric:a})},r))}),o&&Xt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import tm from"react";import Ai from"html-react-parser";import{jsx as Yt,jsxs as om}from"react/jsx-runtime";var n0=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return om("div",{className:"bg-gray-100 p-4 text-center md:p-8",children:[Yt("div",{className:"text-2xl font-bold text-gray-900 md:text-3xl",children:Ai(t??"")}),Yt("div",{className:"mt-2 text-sm font-semibold text-gray-500",children:Ai(o??"")}),a&&Yt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:Ai(a??"")})]})},Fi=({dataMetrics:e,dataButtons:o,dataHeading:t})=>om(tm.Fragment,{children:[t&&Yt(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&&Yt("div",{className:i("grid grid-cols-2 gap-px overflow-hidden rounded-lg md:rounded-xl md:py-0 lg:grid-cols-4",e?.length===2&&"lg:grid-cols-2",e?.length===3&&"lg:grid-cols-3"),children:e?.map((a,r)=>Yt(tm.Fragment,{children:Yt(n0,{metric:a})},r))}),o&&Yt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as c0,jsx as _o}from"react/jsx-runtime";var s0=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return _o(vr,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return _o(Fi,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return _o(vr,{dataMetrics:o,dataButtons:a,dataHeading:e})}},l0=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>_o(c0,{children:s0({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),m0=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>_o(V,{className:i(n),background:r,idSection:e,children:_o(l0,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as d0}from"react";import{jsx as am,jsxs as f0}from"react/jsx-runtime";var p0=d0(({className:e,title:o,children:t},a)=>f0("div",{className:e,ref:a,children:[am("div",{className:"font-semibold text-gray-800",children:o}),am("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 x0}from"react";import{Fragment as h0,jsx as go,jsxs as v0}from"react/jsx-runtime";var g0=()=>go("div",{className:"p-3 border rounded-lg",children:v0("div",{className:"flex items-center gap-3",children:[go(Za,{className:"rounded-md h-9 w-9 "}),go("div",{className:"flex-1",children:go(Za,{className:"w-48 h-5 "})}),go("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function u0(){return go(h0,{children:Array.from({length:4}).map((e,o)=>go(g0,{},o))})}var rm=u0;import{Fragment as w0,jsx as Et,jsxs as Ei}from"react/jsx-runtime";var b0=({paymentMethod:e})=>Et(Ya,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:Ei("div",{className:"flex items-center space-x-3",children:[Et("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),Ei("div",{className:"grid grid-cols-1 gap-1",children:[Et("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Et("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Et("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),y0=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=x0(s=>a?.(s),[a]);return Ei(w0,{children:[e&&Et("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Et(rm,{}):Et(Xa,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Et(b0,{paymentMethod:s},s.id))})]})};import{forwardRef as im}from"react";import{jsx as sm}from"react/jsx-runtime";var N0=im(({children:e,className:o},t)=>sm("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),nm=im(({children:e,className:o,...t},a)=>sm(N0,{ref:a,className:o,...t,children:e}));nm.displayName="Payment";import{forwardRef as P0}from"react";import{jsx as lm,jsxs as R0}from"react/jsx-runtime";var C0=P0(({className:e,children:o},t)=>R0("div",{className:i("",e),ref:t,children:[lm("hr",{className:"mb-5 h-px w-full bg-gray-500"}),lm("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as k0}from"react";import{jsx as S0}from"react/jsx-runtime";var T0=k0(({className:e,children:o},t)=>S0("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as F0}from"react";import{CheckBadgeIcon as D0,XCircleIcon as M0}from"@heroicons/react/20/solid";import{jsx as se,jsxs as Bo}from"react/jsx-runtime";var I0=({iconPaymentResult:e,message:o="",title:t=""})=>Bo("div",{className:"grid grid-cols-1 gap-4",children:[Bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&se("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&se("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&se(da,{message:o,type:"success",icon:se(D0,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),L0=({iconPaymentResult:e,message:o="",title:t=""})=>Bo("div",{className:"grid grid-cols-1 gap-4",children:[Bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&se("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&se("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),se(da,{message:o,type:"error",icon:se(M0,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),A0=({iconPaymentResult:e,message:o="",title:t=""})=>Bo("div",{className:"grid grid-cols-1 gap-4",children:[Bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&se("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&se("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&se(da,{message:o,type:"neutral"})]}),mm=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return se(I0,{status:e,title:o,message:t,iconPaymentResult:a||se("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return se(L0,{status:e,title:o,message:t,iconPaymentResult:a||se("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return se(A0,{status:e,title:o,message:t,iconPaymentResult:a||se("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as z0,jsxs as H0}from"react/jsx-runtime";var E0=F0(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>H0("div",{ref:s,className:i("rounded-lg p-4",e),children:[z0(mm,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as B0,useEffect as O0}from"react";import{jsx as zi,jsxs as _0}from"react/jsx-runtime";var hr=({content:e})=>_0("picture",{children:[zi("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),zi("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),zi(je,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as ba,jsxs as $0}from"react/jsx-runtime";var V0=({template:e,content:o})=>{switch(e){case 1:return ba(hr,{content:o});default:return ba(hr,{content:o})}},W0=B0(({template:e,content:o},t)=>(O0(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),$0("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[ba("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:ba("div",{className:"content",children:V0({template:e,content:o})})}),ba("style",{children:`
298
298
  .container-topbar .content {
299
299
  width: 100%;
300
300
  aspect-ratio: 1088/50;
@@ -312,7 +312,7 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
312
312
  aspect-ratio: 720/88;
313
313
  }
314
314
  }
315
- `})]})));import*as ya from"react";import{XIcon as G0}from"lucide-react";import{Drawer as Ve}from"vaul";import{jsx as gt,jsxs as zi}from"react/jsx-runtime";var cm=({shouldScaleBackground:e=!0,...o})=>gt(Ve.Root,{shouldScaleBackground:e,...o});cm.displayName="Drawer";var j0=Ve.Trigger,dm=Ve.Portal,Q0=Ve.Close,Hi=ya.forwardRef(({className:e,...o},t)=>gt(Ve.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));Hi.displayName=Ve.Overlay.displayName;var pm=ya.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>zi(dm,{children:[gt(Hi,{}),zi(Ve.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(Ve.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:[gt(G0,{className:"h-5 w-5"}),gt("span",{className:"sr-only",children:"Close"})]}),o]})]}));pm.displayName="DrawerContent";var fm=({className:e,...o})=>gt("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});fm.displayName="DrawerHeader";var gm=({className:e,...o})=>gt("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});gm.displayName="DrawerFooter";var um=ya.forwardRef(({className:e,...o},t)=>gt(Ve.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));um.displayName=Ve.Title.displayName;var vm=ya.forwardRef(({className:e,...o},t)=>gt(Ve.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));vm.displayName=Ve.Description.displayName;var hm=({children:e,className:o,...t})=>gt("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});hm.displayName="DrawerBody";import*as uo from"react";import{OTPInput as U0,OTPInputContext as q0}from"input-otp";import{Minus as X0}from"lucide-react";import{jsx as Oo,jsxs as xm}from"react/jsx-runtime";var bm=uo.forwardRef(({className:e,containerClassName:o,...t},a)=>Oo(U0,{ref:a,containerClassName:i("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:i("disabled:cursor-not-allowed",e),...t}));bm.displayName="InputOTP";var ym=uo.forwardRef(({className:e,...o},t)=>Oo("div",{ref:t,className:i("flex items-center",e),...o}));ym.displayName="InputOTPGroup";var wm=uo.forwardRef(({index:e,className:o,...t},a)=>{let r=uo.useContext(q0),{char:n,hasFakeCaret:s,isActive:l}=r.slots[e]??{};return xm("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&&xm("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[Oo("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),Oo("style",{children:`
315
+ `})]})));import*as ya from"react";import{XIcon as G0}from"lucide-react";import{Drawer as Ve}from"vaul";import{jsx as gt,jsxs as Hi}from"react/jsx-runtime";var cm=({shouldScaleBackground:e=!0,...o})=>gt(Ve.Root,{shouldScaleBackground:e,...o});cm.displayName="Drawer";var j0=Ve.Trigger,dm=Ve.Portal,Q0=Ve.Close,_i=ya.forwardRef(({className:e,...o},t)=>gt(Ve.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));_i.displayName=Ve.Overlay.displayName;var pm=ya.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>Hi(dm,{children:[gt(_i,{}),Hi(Ve.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&&Hi(Ve.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:[gt(G0,{className:"h-5 w-5"}),gt("span",{className:"sr-only",children:"Close"})]}),o]})]}));pm.displayName="DrawerContent";var fm=({className:e,...o})=>gt("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});fm.displayName="DrawerHeader";var gm=({className:e,...o})=>gt("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});gm.displayName="DrawerFooter";var um=ya.forwardRef(({className:e,...o},t)=>gt(Ve.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));um.displayName=Ve.Title.displayName;var vm=ya.forwardRef(({className:e,...o},t)=>gt(Ve.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));vm.displayName=Ve.Description.displayName;var hm=({children:e,className:o,...t})=>gt("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});hm.displayName="DrawerBody";import*as uo from"react";import{OTPInput as U0,OTPInputContext as q0}from"input-otp";import{Minus as X0}from"lucide-react";import{jsx as Oo,jsxs as xm}from"react/jsx-runtime";var bm=uo.forwardRef(({className:e,containerClassName:o,...t},a)=>Oo(U0,{ref:a,containerClassName:i("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:i("disabled:cursor-not-allowed",e),...t}));bm.displayName="InputOTP";var ym=uo.forwardRef(({className:e,...o},t)=>Oo("div",{ref:t,className:i("flex items-center",e),...o}));ym.displayName="InputOTPGroup";var wm=uo.forwardRef(({index:e,className:o,...t},a)=>{let r=uo.useContext(q0),{char:n,hasFakeCaret:s,isActive:l}=r.slots[e]??{};return xm("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&&xm("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[Oo("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),Oo("style",{children:`
316
316
  @keyframes caret-blink {
317
317
  0%, 70%, 100% {
318
318
  opacity: 1;
@@ -325,7 +325,7 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
325
325
  .animate-caret-blink {
326
326
  animation: caret-blink 1.25s ease-out infinite;
327
327
  }
328
- `})]})]})});wm.displayName="InputOTPSlot";var Nm=uo.forwardRef(({...e},o)=>Oo("div",{ref:o,role:"separator",...e,children:Oo(X0,{className:"text-gray-400"})}));Nm.displayName="InputOTPSeparator";import{useEffect as km,useRef as sv,useState as Tm}from"react";import{toPng as lv}from"html-to-image";import Na from"react";import{LucideMessageCircleQuestion as ov}from"lucide-react";import{QRCodeSVG as av}from"qrcode.react";async function Pm(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 Y0 from"html-react-parser";import{Fragment as ev,jsx as le,jsxs as Ze}from"react/jsx-runtime";var Z0=()=>{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 le("ul",{className:"grid grid-cols-1 gap-y-6 -ml-3 list-decimal md:hidden",children:e.map((o,t)=>Ze("li",{className:"flex relative gap-4 items-center",children:[le("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}),Ze("div",{className:"flex flex-1 gap-2 items-start",children:[le("p",{className:"text-sm leading-relaxed text-gray-700",children:Y0(o.text)}),t<e.length-1&&le("div",{className:"absolute left-4 top-8 w-px h-12 bg-gray-400 transform -translate-x-1/2"})]})]},t))})},K0=({isQrForAll:e,shortTitle:o,className:t})=>Ze("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[Ze("div",{className:"flex flex-nowrap items-start",children:[le("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:le("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Ze("div",{className:"flex-1 pl-4",children:[le("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),le("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"})]})]}),Ze("div",{className:"flex flex-nowrap items-center",children:[le("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:le("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Ze("div",{className:"flex-1 pl-4",children:[le("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),le("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Ze("div",{className:"flex flex-nowrap items-center",children:[le("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:le("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Ze("div",{className:"flex-1 pl-4",children:[le("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),Ze("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"]})]})]})]}),J0=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>Ze(ev,{children:[le(K0,{isQrForAll:e,shortTitle:o,className:t}),le(Z0,{})]}),_i=J0;import{jsx as wa,jsxs as Cm}from"react/jsx-runtime";var tv=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:r,onOpenChange:n})=>Cm(Ge,{open:r,onOpenChange:n,children:[wa(jo,{asChild:!0,children:e}),Cm(Fe,{position:"bottom",children:[wa(bo,{children:wa(yo,{children:o})}),wa(et,{children:wa(_i,{isQrForAll:t,shortTitle:a})})]})]}),Bi=tv;import{Fragment as xr,jsx as k,jsxs as me}from"react/jsx-runtime";var rv=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,isHideGuidePayment:s})=>me(xr,{children:[me("div",{className:"qrcode__scan__container relative select-none",children:[t&&me("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[k("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"shrink-0 select-none"}),k("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),k("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"shrink-0 select-none"})]}),me("div",{className:"qrcode__scan select-none",children:[k("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:k("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),k("div",{className:"qrcode__border invisible select-none opacity-0 md:visible md:opacity-100",children:k("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),k("div",{className:"qrcode__image select-none p-4",children:e?k("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy",onLoad:a}):Na.Children.map(o,l=>(Na.isValidElement(l),l))})]}),n&&me("div",{className:"text-sm text-gray-900 md:hidden",children:[k("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),k("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),r&&me("div",{className:i("mt-3 text-sm text-gray-900 md:hidden"),children:[k("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),k("span",{className:"font-semibold",children:r})]}),k("div",{className:"mt-4 hidden text-sm font-semibold text-gray-900 md:block",children:t?me(xr,{children:[k("img",{src:"https://homepage.momocdn.net/img/frame-1-1-251120093929.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),k("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):!s&&me("div",{className:"text-xs text-gray-700",children:[k("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:k("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",k("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),iv=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,className:s="",isHideGuidePayment:l})=>me(xr,{children:[k("div",{className:i(s),children:k(rv,{dateExpired:r,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,isHideGuidePayment:l,children:o})}),k("style",{children:`
328
+ `})]})]})});wm.displayName="InputOTPSlot";var Nm=uo.forwardRef(({...e},o)=>Oo("div",{ref:o,role:"separator",...e,children:Oo(X0,{className:"text-gray-400"})}));Nm.displayName="InputOTPSeparator";import{useEffect as km,useRef as sv,useState as Tm}from"react";import{toPng as lv}from"html-to-image";import Na from"react";import{LucideMessageCircleQuestion as ov}from"lucide-react";import{QRCodeSVG as av}from"qrcode.react";async function Pm(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 Y0 from"html-react-parser";import{Fragment as ev,jsx as le,jsxs as Ze}from"react/jsx-runtime";var Z0=()=>{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 le("ul",{className:"grid grid-cols-1 gap-y-6 -ml-3 list-decimal md:hidden",children:e.map((o,t)=>Ze("li",{className:"flex relative gap-4 items-center",children:[le("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}),Ze("div",{className:"flex flex-1 gap-2 items-start",children:[le("p",{className:"text-sm leading-relaxed text-gray-700",children:Y0(o.text)}),t<e.length-1&&le("div",{className:"absolute left-4 top-8 w-px h-12 bg-gray-400 transform -translate-x-1/2"})]})]},t))})},K0=({isQrForAll:e,shortTitle:o,className:t})=>Ze("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[Ze("div",{className:"flex flex-nowrap items-start",children:[le("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:le("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Ze("div",{className:"flex-1 pl-4",children:[le("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),le("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"})]})]}),Ze("div",{className:"flex flex-nowrap items-center",children:[le("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:le("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Ze("div",{className:"flex-1 pl-4",children:[le("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),le("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Ze("div",{className:"flex flex-nowrap items-center",children:[le("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:le("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Ze("div",{className:"flex-1 pl-4",children:[le("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),Ze("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"]})]})]})]}),J0=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>Ze(ev,{children:[le(K0,{isQrForAll:e,shortTitle:o,className:t}),le(Z0,{})]}),Bi=J0;import{jsx as wa,jsxs as Cm}from"react/jsx-runtime";var tv=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:r,onOpenChange:n})=>Cm(Ge,{open:r,onOpenChange:n,children:[wa(jo,{asChild:!0,children:e}),Cm(Fe,{position:"bottom",children:[wa(bo,{children:wa(yo,{children:o})}),wa(et,{children:wa(Bi,{isQrForAll:t,shortTitle:a})})]})]}),Oi=tv;import{Fragment as xr,jsx as k,jsxs as me}from"react/jsx-runtime";var rv=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,isHideGuidePayment:s})=>me(xr,{children:[me("div",{className:"qrcode__scan__container relative select-none",children:[t&&me("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[k("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"shrink-0 select-none"}),k("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),k("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"shrink-0 select-none"})]}),me("div",{className:"qrcode__scan select-none",children:[k("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:k("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),k("div",{className:"qrcode__border invisible select-none opacity-0 md:visible md:opacity-100",children:k("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),k("div",{className:"qrcode__image select-none p-4",children:e?k("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy",onLoad:a}):Na.Children.map(o,l=>(Na.isValidElement(l),l))})]}),n&&me("div",{className:"text-sm text-gray-900 md:hidden",children:[k("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),k("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),r&&me("div",{className:i("mt-3 text-sm text-gray-900 md:hidden"),children:[k("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),k("span",{className:"font-semibold",children:r})]}),k("div",{className:"mt-4 hidden text-sm font-semibold text-gray-900 md:block",children:t?me(xr,{children:[k("img",{src:"https://homepage.momocdn.net/img/frame-1-1-251120093929.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),k("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):!s&&me("div",{className:"text-xs text-gray-700",children:[k("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:k("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",k("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),iv=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,className:s="",isHideGuidePayment:l})=>me(xr,{children:[k("div",{className:i(s),children:k(rv,{dateExpired:r,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,isHideGuidePayment:l,children:o})}),k("style",{children:`
329
329
  .qrcode__scan__container {
330
330
  padding: 15px;
331
331
  background-color: white;
@@ -393,7 +393,7 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
393
393
  transform: translate3d(0, 30%, 0);
394
394
  }
395
395
  }
396
- `})]}),nv=({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,isHideGuidePayment:g})=>{let[v,y]=Na.useState(void 0);return Na.useEffect(()=>{a?Pm(a).then(y).catch(()=>y(void 0)):y(void 0)},[a]),Na.useEffect(()=>{t&&v&&typeof s=="function"&&!o&&s()},[t,v,s,o]),me("div",{className:"relative z-[1]",children:[me("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:m,children:[k("img",{className:"pointer-events-none absolute right-6 top-14 hidden select-none md:flex",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250821154232-638913877527374430.png",alt:"pattern-qr"}),k("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&&k("div",{className:"visible absolute left-0 right-0 top-0 z-20 h-full w-full cursor-pointer overflow-hidden opacity-100 md:hidden md:select-none",children:k("img",{src:l,alt:"QR Code",className:"absolute left-1/2 top-1/2 max-h-full max-w-none -translate-x-1/2 -translate-y-1/2"})}),me(iv,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,isHideGuidePayment:g,children:[t&&v&&!o&&k(av,{value:t,size:215,imageSettings:{src:`${v}`,height:40,width:40,excavate:!0},level:"H"}),r&&k("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:k("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&k("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:k(mi,{size:"lg"})})]})]}),me("div",{className:"qrcode__guide relative z-10 select-none bg-pink-50 bg-repeat-y px-5 pb-5 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[me("div",{className:i("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[me("div",{className:"ripple size-5 rounded-full",children:[k("div",{className:"ripple-1"}),k("div",{className:"ripple-2"})]}),k("img",{className:"qrcode__hand relative z-10 -mt-1 size-7 select-none object-contain drop-shadow-lg",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),!g&&me(xr,{children:[k("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),k(Bi,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:me("div",{className:"flex cursor-pointer items-center justify-center space-x-1 text-center text-sm font-semibold text-pink-600",children:[k("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",k(ov,{className:"size-4"})," "]})})]}),k("style",{children:`
396
+ `})]}),nv=({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,isHideGuidePayment:g})=>{let[v,y]=Na.useState(void 0);return Na.useEffect(()=>{a?Pm(a).then(y).catch(()=>y(void 0)):y(void 0)},[a]),Na.useEffect(()=>{t&&v&&typeof s=="function"&&!o&&s()},[t,v,s,o]),me("div",{className:"relative z-[1]",children:[me("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:m,children:[k("img",{className:"pointer-events-none absolute right-6 top-14 hidden select-none md:flex",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250821154232-638913877527374430.png",alt:"pattern-qr"}),k("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&&k("div",{className:"visible absolute left-0 right-0 top-0 z-20 h-full w-full cursor-pointer overflow-hidden opacity-100 md:hidden md:select-none",children:k("img",{src:l,alt:"QR Code",className:"absolute left-1/2 top-1/2 max-h-full max-w-none -translate-x-1/2 -translate-y-1/2"})}),me(iv,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,isHideGuidePayment:g,children:[t&&v&&!o&&k(av,{value:t,size:215,imageSettings:{src:`${v}`,height:40,width:40,excavate:!0},level:"H"}),r&&k("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:k("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&k("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:k(ci,{size:"lg"})})]})]}),me("div",{className:"qrcode__guide relative z-10 select-none bg-pink-50 bg-repeat-y px-5 pb-5 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[me("div",{className:i("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[me("div",{className:"ripple size-5 rounded-full",children:[k("div",{className:"ripple-1"}),k("div",{className:"ripple-2"})]}),k("img",{className:"qrcode__hand relative z-10 -mt-1 size-7 select-none object-contain drop-shadow-lg",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),!g&&me(xr,{children:[k("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),k(Oi,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:me("div",{className:"flex cursor-pointer items-center justify-center space-x-1 text-center text-sm font-semibold text-pink-600",children:[k("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",k(ov,{className:"size-4"})," "]})})]}),k("style",{children:`
397
397
  .ripple {
398
398
  box-sizing: border-box;
399
399
  position: relative;
@@ -449,7 +449,7 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
449
449
  transform: scale(1) translateY(0);
450
450
  }
451
451
  }
452
- `})]})]})},Rm=nv;import{Fragment as fv,jsx as Oi}from"react/jsx-runtime";var mv="https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",cv=["qrcode__gradient","qrcode__guide","qrcode__title"],dv=e=>!cv.some(o=>e.classList?.contains(o)),pv=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:m,isAIOQR:c=!0,isHideGuidePayment:d=!1})=>{let p=sv(null),[g,v]=Tm(null),[y,C]=Tm(!1);return km(()=>{if(y&&p.current){let w=setTimeout(()=>{p.current&&lv(p.current,{filter:dv}).then(A=>{v(A)}).catch(A=>{console.error("Error generating QR image:",A)})},2e3);return()=>clearTimeout(w)}},[y,t]),km(()=>{e&&C(!1)},[e]),Oi(fv,{children:Oi("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",m),children:Oi(Rm,{isQrForAll:c,qrImage:a,qrLink:t,logoQr:c?r:mv,expired:o,loading:e,qrCodeRef:p,titleOrder:l,onQrLoaded:()=>{C(!0)},qrImageBase64:g,dateExpired:n,priceOrder:s,isHideGuidePayment:d})})})};import{jsx as zt,jsxs as Vi}from"react/jsx-runtime";var gv=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"}}},Sm=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return zt($r,{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 Vi("div",{className:"flex items-center space-x-3",children:[zt(Qa,{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=gv(e.type);return zt(ti,{...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(fi,{control:o,name:e.name,render:({field:r,fieldState:n})=>Vi(or,{className:e.className,children:[e.label&&Vi(ar,{htmlFor:e.name,children:[e.label,e.required&&zt("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),zt(rr,{children:a({...r,error:n.error})}),e.description&&zt(ir,{id:`${e.name}-description`,children:e.description}),zt(nr,{})]})})};import{useMemo as Mm}from"react";import{zodResolver as uv}from"@hookform/resolvers/zod";import{useForm as vv}from"react-hook-form";import{z as Pa}from"zod";var Dm=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=Pa.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=Pa.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=Pa.boolean();break;case"phone":case"number":case"password":case"textarea":default:a=Pa.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}),Pa.object(o)};var Im=e=>{let o=Mm(()=>Dm(e),[e]),t=Mm(()=>{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=vv({resolver:uv(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 Lm,jsx as Re,jsxs as Wi}from"react/jsx-runtime";var hv=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,xv=({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:y,reset:C}=Im(r),w=async O=>{try{s&&Object.entries(O).forEach(([E,We])=>{s(E,We)}),a&&await a(O,C)}catch(E){if(console.error("Form submission error:",E),l){let We={};Object.entries(y).forEach(([$e,Ca])=>{We[$e]={message:Ca?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(We)}}},A=()=>{v?.handleSubmit(w)()},B=()=>{let O=(m?.buttons||[]).map((E,We)=>{let $e=E?.variant==="primary";return We===0||$e?{...E,action:A,isLoading:n,isDisabled:n}:E});return{...m,buttons:O}},z=()=>"space-y-4",vt=()=>Re(Lm,{children:o&&Re(H,{className:i("mb-6 shrink-0",c),ratio:hv(o?.ratio),children:Re("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})}),P=()=>Wi("div",{className:i("shadow-small bg-white p-8",d),children:[e&&Re(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&&Re(pi,{...v,children:Wi("form",{onSubmit:v.handleSubmit(w),className:"space-y-6",children:[Re("div",{className:z(),children:r?.map(O=>Re(Sm,{field:O,control:v.control},O.name))}),t&&Re("div",{className:i("flex",g),children:t}),m&&Re(x,{...B()})]})})]});return Re(Lm,{children:Wi("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",p),children:[o&&Re("div",{className:"shrink-0",children:vt()}),Re("div",{className:"relative mx-auto max-w-xl overflow-hidden rounded-lg",children:P()})]})})},bv=({idSection:e,background:o,className:t,...a})=>Re(V,{className:t,idSection:e,background:o,children:Re(xv,{...a})});import Nv from"color";import Pv from"tailwindcss/plugin.js";var Am={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 Fm={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Em={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var zm={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Hm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var _m={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Bm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Om={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Vm={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Wm={white:"#ffffff",black:"#000000",blue:Fm,green:Em,pink:zm,purple:Hm,red:_m,yellow:Bm,gray:Vm,orange:Om};var $i={...Wm};var $m={"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 ut="250ms",Gm={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ut},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ut},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ut},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ut},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ut},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ut},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":ut},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":ut},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ut},".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":ut}};var jm={".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 Qm={".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 Um={...jm,...Gm,...Qm};import{flatten as yv}from"flat";function wv(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=>wv(yv(e,{safe:!0,delimiter:"-"}));var Cv=e=>{let o={utilities:{},colors:{}},t=qm($i),a=$m,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=Nv(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},Rv=()=>{let e="mobase",o=Cv(e);return Pv(({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({...Um})},{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:{...$i,...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)`},...Am}}})};import{Fragment as Tv,jsx as L,jsxs as Sv}from"react/jsx-runtime";var kv=Sv(Tv,{children:[L("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"}),L("meta",{name:"distribution",content:"Global"}),L("meta",{name:"author",content:"V\xED MoMo"}),L("meta",{property:"fb:app_id",content:"320653355376196"}),L("meta",{property:"fb:pages",content:"138010322921640"}),L("link",{rel:"shortcut icon",href:"/favicon.ico"}),L("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),L("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),L("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),L("meta",{name:"language",content:"vietnamese"}),L("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),L("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),L("meta",{name:"RATING",content:"GENERAL"}),L("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),L("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),L("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),L("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),L("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),L("link",{rel:"dns-prefetch",href:"//facebook.com"}),L("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),L("link",{rel:"dns-prefetch",href:"//www.google.com"}),L("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),L("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),L("link",{rel:"preconnect",href:"//connect.facebook.net"}),L("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),L("link",{rel:"preconnect",href:"//www.google-analytics.com"}),L("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),L("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),L("link",{rel:"preconnect",href:"//www.google.com"}),L("link",{rel:"preconnect",href:"//www.google.com.vn"}),L("link",{rel:"preconnect",href:"//www.googleadservices.com"}),L("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
452
+ `})]})]})},Rm=nv;import{Fragment as fv,jsx as Vi}from"react/jsx-runtime";var mv="https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",cv=["qrcode__gradient","qrcode__guide","qrcode__title"],dv=e=>!cv.some(o=>e.classList?.contains(o)),pv=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:m,isAIOQR:c=!0,isHideGuidePayment:d=!1})=>{let p=sv(null),[g,v]=Tm(null),[y,C]=Tm(!1);return km(()=>{if(y&&p.current){let w=setTimeout(()=>{p.current&&lv(p.current,{filter:dv}).then(A=>{v(A)}).catch(A=>{console.error("Error generating QR image:",A)})},2e3);return()=>clearTimeout(w)}},[y,t]),km(()=>{e&&C(!1)},[e]),Vi(fv,{children:Vi("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",m),children:Vi(Rm,{isQrForAll:c,qrImage:a,qrLink:t,logoQr:c?r:mv,expired:o,loading:e,qrCodeRef:p,titleOrder:l,onQrLoaded:()=>{C(!0)},qrImageBase64:g,dateExpired:n,priceOrder:s,isHideGuidePayment:d})})})};import{jsx as zt,jsxs as Wi}from"react/jsx-runtime";var gv=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"}}},Sm=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return zt($r,{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 Wi("div",{className:"flex items-center space-x-3",children:[zt(Qa,{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=gv(e.type);return zt(ti,{...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(gi,{control:o,name:e.name,render:({field:r,fieldState:n})=>Wi(or,{className:e.className,children:[e.label&&Wi(ar,{htmlFor:e.name,children:[e.label,e.required&&zt("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),zt(rr,{children:a({...r,error:n.error})}),e.description&&zt(ir,{id:`${e.name}-description`,children:e.description}),zt(nr,{})]})})};import{useMemo as Mm}from"react";import{zodResolver as uv}from"@hookform/resolvers/zod";import{useForm as vv}from"react-hook-form";import{z as Pa}from"zod";var Dm=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=Pa.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=Pa.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=Pa.boolean();break;case"phone":case"number":case"password":case"textarea":default:a=Pa.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}),Pa.object(o)};var Im=e=>{let o=Mm(()=>Dm(e),[e]),t=Mm(()=>{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=vv({resolver:uv(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 Lm,jsx as Re,jsxs as $i}from"react/jsx-runtime";var hv=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,xv=({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:y,reset:C}=Im(r),w=async O=>{try{s&&Object.entries(O).forEach(([E,We])=>{s(E,We)}),a&&await a(O,C)}catch(E){if(console.error("Form submission error:",E),l){let We={};Object.entries(y).forEach(([$e,Ca])=>{We[$e]={message:Ca?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(We)}}},A=()=>{v?.handleSubmit(w)()},B=()=>{let O=(m?.buttons||[]).map((E,We)=>{let $e=E?.variant==="primary";return We===0||$e?{...E,action:A,isLoading:n,isDisabled:n}:E});return{...m,buttons:O}},z=()=>"space-y-4",vt=()=>Re(Lm,{children:o&&Re(H,{className:i("mb-6 shrink-0",c),ratio:hv(o?.ratio),children:Re("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})}),P=()=>$i("div",{className:i("shadow-small bg-white p-8",d),children:[e&&Re(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&&Re(fi,{...v,children:$i("form",{onSubmit:v.handleSubmit(w),className:"space-y-6",children:[Re("div",{className:z(),children:r?.map(O=>Re(Sm,{field:O,control:v.control},O.name))}),t&&Re("div",{className:i("flex",g),children:t}),m&&Re(x,{...B()})]})})]});return Re(Lm,{children:$i("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",p),children:[o&&Re("div",{className:"shrink-0",children:vt()}),Re("div",{className:"relative mx-auto max-w-xl overflow-hidden rounded-lg",children:P()})]})})},bv=({idSection:e,background:o,className:t,...a})=>Re(V,{className:t,idSection:e,background:o,children:Re(xv,{...a})});import Nv from"color";import Pv from"tailwindcss/plugin.js";var Am={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 Fm={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Em={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var zm={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Hm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var _m={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Bm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Om={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Vm={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Wm={white:"#ffffff",black:"#000000",blue:Fm,green:Em,pink:zm,purple:Hm,red:_m,yellow:Bm,gray:Vm,orange:Om};var Gi={...Wm};var $m={"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 ut="250ms",Gm={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ut},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ut},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ut},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ut},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ut},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ut},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":ut},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":ut},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ut},".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":ut}};var jm={".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 Qm={".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 Um={...jm,...Gm,...Qm};import{flatten as yv}from"flat";function wv(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=>wv(yv(e,{safe:!0,delimiter:"-"}));var Cv=e=>{let o={utilities:{},colors:{}},t=qm(Gi),a=$m,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=Nv(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},Rv=()=>{let e="mobase",o=Cv(e);return Pv(({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({...Um})},{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:{...Gi,...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)`},...Am}}})};import{Fragment as Tv,jsx as L,jsxs as Sv}from"react/jsx-runtime";var kv=Sv(Tv,{children:[L("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"}),L("meta",{name:"distribution",content:"Global"}),L("meta",{name:"author",content:"V\xED MoMo"}),L("meta",{property:"fb:app_id",content:"320653355376196"}),L("meta",{property:"fb:pages",content:"138010322921640"}),L("link",{rel:"shortcut icon",href:"/favicon.ico"}),L("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),L("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),L("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),L("meta",{name:"language",content:"vietnamese"}),L("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),L("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),L("meta",{name:"RATING",content:"GENERAL"}),L("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),L("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),L("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),L("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),L("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),L("link",{rel:"dns-prefetch",href:"//facebook.com"}),L("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),L("link",{rel:"dns-prefetch",href:"//www.google.com"}),L("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),L("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),L("link",{rel:"preconnect",href:"//connect.facebook.net"}),L("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),L("link",{rel:"preconnect",href:"//www.google-analytics.com"}),L("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),L("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),L("link",{rel:"preconnect",href:"//www.google.com"}),L("link",{rel:"preconnect",href:"//www.google.com.vn"}),L("link",{rel:"preconnect",href:"//www.googleadservices.com"}),L("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
453
453
  "@context": "https://schema.org/",
454
454
  "@type": "WebSite",
455
455
  "@id":"https://www.momo.vn/#website",
@@ -494,5 +494,5 @@ import*as $o from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
494
494
  "https://www.linkedin.com/company/momo-mservice/",
495
495
  "https://github.com/momo-wallet"
496
496
  ]
497
- }`}})]});export{xt as Accordion,wt as AccordionContent,bt as AccordionItem,yt as AccordionTrigger,je as ActionButton,Fd as AlertDialog,Ln as AlertDialogAction,An as AlertDialogCancel,Tn as AlertDialogContent,In as AlertDialogDescription,Dn as AlertDialogFooter,Sn as AlertDialogHeader,Br as AlertDialogOverlay,kn as AlertDialogPortal,Mn as AlertDialogTitle,Ed as AlertDialogTrigger,H as AspectRatio,Wf as Badge,id as BlogSection,Yi as Breadcrumb,on as BreadcrumbEllipsis,Ki as BreadcrumbItem,Ji as BreadcrumbLink,Zi as BreadcrumbList,en as BreadcrumbPage,tn as BreadcrumbSeparator,Ae as Button,x as ButtonsBlock,a0 as CTASection,La as Calendar,da as Callout,bs as Card,Ps as CardContent,Ns as CardDescription,Cs as CardFooter,ys as CardHeader,ws as CardTitle,ue as Carousel,ve as CarouselContent,Ro as CarouselDots,ce as CarouselItem,Co as CarouselNext,Po as CarouselPrevious,Ma as Checkbox,Xa as ChoiceboxGroup,Ya as ChoiceboxGroupItem,Ws as ChoiceboxMultiItem,wf as Combobox,yf as ComboboxContent,bf as ComboboxTrigger,ri as Command,vf as CommandDialog,Ts as CommandEmpty,Ss as CommandGroup,Rs as CommandInput,Ms as CommandItem,ks as CommandList,Ds as CommandSeparator,Is as CommandShortcut,cg as Comment,Cd as DatePicker,Ad as DateSelect,Ge as Dialog,et as DialogBody,Nr as DialogClose,Fe as DialogContent,Xi as DialogDescription,qi as DialogFooter,bo as DialogHeader,Pr as DialogOverlay,Ui as DialogPortal,Zt as DialogQr,yo as DialogTitle,jo as DialogTrigger,cm as Drawer,hm as DrawerBody,Q0 as DrawerClose,pm as DrawerContent,vm as DrawerDescription,gm as DrawerFooter,fm as DrawerHeader,Hi as DrawerOverlay,dm as DrawerPortal,um as DrawerTitle,j0 as DrawerTrigger,Mg as DropdownMenu,ul as DropdownMenuCheckboxItem,fl as DropdownMenuContent,Lg as DropdownMenuGroup,gl as DropdownMenuItem,hl as DropdownMenuLabel,Ag as DropdownMenuPortal,Eg as DropdownMenuRadioGroup,vl as DropdownMenuRadioItem,xl as DropdownMenuSeparator,bl as DropdownMenuShortcut,Fg as DropdownMenuSub,pl as DropdownMenuSubContent,dl as DropdownMenuSubTrigger,Ig as DropdownMenuTrigger,$u as FAQSection,Ru as FeatureSection,ff as Footer,pi as Form,rr as FormControl,ir as FormDescription,fi as FormField,or as FormItem,ar as FormLabel,bv as FormLeadSupport,nr as FormMessage,Yd as GuideSection,us as HeaderNavigation,Tr as Heading,h as HeadingBlock,Dr as HeadingGroup,Sr as HeadingSub,kr as HeadingTagline,Jg as HeroSection,Rt as HorizontalContent,Tt as HorizontalNext,kt as HorizontalPrevious,Ct as HorizontalScroll,Vg as HowItWorksSection,ne as IconButton,bm as InputOTP,ym as InputOTPGroup,Nm as InputOTPSeparator,wm as InputOTPSlot,li as LightBoxGalleryContent,si as LightboxGallery,Hf as LightboxThumbnail,m0 as MetricsSection,Oa as NavigationMenu,ja as NavigationMenuContent,Wa as NavigationMenuItem,sa as NavigationMenuLink,Va as NavigationMenuList,Ga as NavigationMenuTrigger,Ku as NewsSection,Wn as Pagination,nm as Payment,_i as PaymentGuide,Bi as PaymentGuideDialog,p0 as PaymentInvoice,y0 as PaymentMethods,E0 as PaymentResult,T0 as PaymentResultContent,C0 as PaymentResultFooter,Xo as Popover,To as PopoverContent,Yo as PopoverTrigger,yg as ProgressSteps,bg as ProgressStepsItem,xg as ProgressStepsItemTrigger,qs as Progressbar,pv as QRPayment,rs as RadioGroup,is as RadioGroupItem,ci as ReadMoreLite,Af as SearchBar,V as SectionBlock,Jo as Select,Do as SelectContent,ta as SelectGroup,_t as SelectItem,yn as SelectLabel,Hr as SelectScrollDownButton,zr as SelectScrollUpButton,wn as SelectSeparator,So as SelectTrigger,ea as SelectValue,kv as SiteMeta,Za as Skeleton,Zs as Slider,bu as SocialProofSection,mi as Spinner,Kn as Stepper,Qa as Switch,St as Tabs,at as TabsContent,tt as TabsList,ot as TabsTrigger,_u as TestimonialSection,$r as TextArea,ge as TextButton,ti as TextInput,qn as ToastAction,gp as Toaster,vp as Tooltip,Xn as TooltipArrow,Yn as TooltipContent,up as TooltipProvider,hp as TooltipTrigger,W0 as Topbar,Gs as badgeVariants,Je as buttonVariants,Rv as mobaseTW,$a as navigationMenuTriggerStyle,ln as textButtonVariants,jn as toast,ga as useFormField,Qr as useToast};
497
+ }`}})]});export{xt as Accordion,wt as AccordionContent,bt as AccordionItem,yt as AccordionTrigger,je as ActionButton,Fd as AlertDialog,An as AlertDialogAction,Fn as AlertDialogCancel,Sn as AlertDialogContent,Ln as AlertDialogDescription,Mn as AlertDialogFooter,Dn as AlertDialogHeader,Br as AlertDialogOverlay,Tn as AlertDialogPortal,In as AlertDialogTitle,Ed as AlertDialogTrigger,H as AspectRatio,Wf as Badge,id as BlogSection,Zi as Breadcrumb,an as BreadcrumbEllipsis,Ji as BreadcrumbItem,en as BreadcrumbLink,Ki as BreadcrumbList,tn as BreadcrumbPage,on as BreadcrumbSeparator,Ae as Button,x as ButtonsBlock,a0 as CTASection,La as Calendar,da as Callout,bs as Card,Ps as CardContent,Ns as CardDescription,Cs as CardFooter,ys as CardHeader,ws as CardTitle,ue as Carousel,ve as CarouselContent,Ro as CarouselDots,ce as CarouselItem,Co as CarouselNext,Po as CarouselPrevious,Ma as Checkbox,Xa as ChoiceboxGroup,Ya as ChoiceboxGroupItem,Ws as ChoiceboxMultiItem,wf as Combobox,yf as ComboboxContent,bf as ComboboxTrigger,ii as Command,vf as CommandDialog,Ts as CommandEmpty,Ss as CommandGroup,Rs as CommandInput,Ms as CommandItem,ks as CommandList,Ds as CommandSeparator,Is as CommandShortcut,cg as Comment,T as CustomLink,Cd as DatePicker,Ad as DateSelect,Ge as Dialog,et as DialogBody,Nr as DialogClose,Fe as DialogContent,Yi as DialogDescription,Xi as DialogFooter,bo as DialogHeader,Pr as DialogOverlay,qi as DialogPortal,Zt as DialogQr,yo as DialogTitle,jo as DialogTrigger,cm as Drawer,hm as DrawerBody,Q0 as DrawerClose,pm as DrawerContent,vm as DrawerDescription,gm as DrawerFooter,fm as DrawerHeader,_i as DrawerOverlay,dm as DrawerPortal,um as DrawerTitle,j0 as DrawerTrigger,Mg as DropdownMenu,ul as DropdownMenuCheckboxItem,fl as DropdownMenuContent,Lg as DropdownMenuGroup,gl as DropdownMenuItem,hl as DropdownMenuLabel,Ag as DropdownMenuPortal,Eg as DropdownMenuRadioGroup,vl as DropdownMenuRadioItem,xl as DropdownMenuSeparator,bl as DropdownMenuShortcut,Fg as DropdownMenuSub,pl as DropdownMenuSubContent,dl as DropdownMenuSubTrigger,Ig as DropdownMenuTrigger,$u as FAQSection,Ru as FeatureSection,ff as Footer,fi as Form,rr as FormControl,ir as FormDescription,gi as FormField,or as FormItem,ar as FormLabel,bv as FormLeadSupport,nr as FormMessage,Yd as GuideSection,us as HeaderNavigation,Tr as Heading,h as HeadingBlock,Dr as HeadingGroup,Sr as HeadingSub,kr as HeadingTagline,Jg as HeroSection,Rt as HorizontalContent,Tt as HorizontalNext,kt as HorizontalPrevious,Ct as HorizontalScroll,Vg as HowItWorksSection,ne as IconButton,bm as InputOTP,ym as InputOTPGroup,Nm as InputOTPSeparator,wm as InputOTPSlot,mi as LightBoxGalleryContent,li as LightboxGallery,Hf as LightboxThumbnail,m0 as MetricsSection,Oa as NavigationMenu,ja as NavigationMenuContent,Wa as NavigationMenuItem,sa as NavigationMenuLink,Va as NavigationMenuList,Ga as NavigationMenuTrigger,Ku as NewsSection,$n as Pagination,nm as Payment,Bi as PaymentGuide,Oi as PaymentGuideDialog,p0 as PaymentInvoice,y0 as PaymentMethods,E0 as PaymentResult,T0 as PaymentResultContent,C0 as PaymentResultFooter,Xo as Popover,To as PopoverContent,Yo as PopoverTrigger,yg as ProgressSteps,bg as ProgressStepsItem,xg as ProgressStepsItemTrigger,qs as Progressbar,pv as QRPayment,is as RadioGroup,ns as RadioGroupItem,di as ReadMoreLite,Af as SearchBar,V as SectionBlock,Jo as Select,Do as SelectContent,ta as SelectGroup,_t as SelectItem,wn as SelectLabel,Hr as SelectScrollDownButton,zr as SelectScrollUpButton,Nn as SelectSeparator,So as SelectTrigger,ea as SelectValue,kv as SiteMeta,Za as Skeleton,Zs as Slider,bu as SocialProofSection,ci as Spinner,Jn as Stepper,Qa as Switch,St as Tabs,at as TabsContent,tt as TabsList,ot as TabsTrigger,_u as TestimonialSection,$r as TextArea,ge as TextButton,ti as TextInput,Xn as ToastAction,gp as Toaster,vp as Tooltip,Yn as TooltipArrow,Zn as TooltipContent,up as TooltipProvider,hp as TooltipTrigger,W0 as Topbar,Gs as badgeVariants,Je as buttonVariants,ai as getFinalHref,Rv as mobaseTW,$a as navigationMenuTriggerStyle,mn as textButtonVariants,Qn as toast,ga as useFormField,Qr as useToast};
498
498
  //# sourceMappingURL=index.js.map