@momo-webplatform/mobase 1.0.2 → 1.0.4

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 Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/solid";import*as Se from"@radix-ui/react-accordion";import*as vr from"react";import{createMedia as mm}from"@artsy/fresnel";import cm from"html-react-parser";import{twMerge as dm}from"tailwind-merge";var dt={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var ur={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 Eo=[{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"}],oi=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}];var de={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};function r(...e){return dm(e)}var hr=mm({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),C0=hr.createMediaStyle(),{Media:Ue,MediaContextProvider:lo}=hr,u=e=>e?vr.isValidElement(e)||typeof e=="object"&&"$typeof"in e?e:typeof e=="string"?cm(e):e:null;import{jsx as mo,jsxs as fm}from"react/jsx-runtime";var pt=Ho.forwardRef(({className:e,...o},t)=>mo(Se.Root,{ref:t,...o}));pt.displayName="AccordionRoot";var ft=Ho.forwardRef(({className:e,...o},t)=>mo(Se.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));ft.displayName="AccordionItem";var gt=Ho.forwardRef(({className:e,children:o,...t},a)=>mo(Se.Header,{className:"flex",children:fm(Se.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,mo(pm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));gt.displayName=Se.Trigger.displayName;var ut=Ho.forwardRef(({className:e,children:o,...t},a)=>mo(Se.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:mo("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));ut.displayName=Se.Content.displayName;import*as xr from"react";import{Slot as vm}from"@radix-ui/react-slot";import{cva as hm}from"class-variance-authority";import{jsx as De,jsxs as um}from"react/jsx-runtime";var gm=({className:e})=>um("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[De("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),De("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),De("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),De("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),De("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),De("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),De("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),De("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),De("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),De("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),De("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),De("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),co=gm;import{Fragment as bm,jsx as ai,jsxs as xm}from"react/jsx-runtime";var qe=hm("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Me=xr.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let m=a?vm:"button",c=r(qe({variant:o,size:t,className:e}),{"cursor-wait":i});return ai(bm,{children:a?ai(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):xm(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[i&&ai(co,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Me.displayName="Button";import{QRCodeSVG as wm}from"qrcode.react";import*as _o from"react";import{XMarkIcon as ym}from"@heroicons/react/16/solid";import*as q from"@radix-ui/react-dialog";import{jsx as vt,jsxs as ii}from"react/jsx-runtime";var Fe=q.Root,Bo=q.Trigger,br=q.Portal,ri=q.Close,ni=_o.forwardRef(({className:e,...o},t)=>vt(q.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));ni.displayName=q.Overlay.displayName;var Ie=_o.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...m},c)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},p={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},g={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},h=[d.base,d[i],p[a],g[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return ii(br,{children:[vt(ni,{}),ii(q.Content,{ref:c,className:r(...h),...m,children:[l,!t&&ii(q.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[vt(ym,{className:"h-5 w-5 text-gray-700"}),vt("span",{className:"sr-only",children:"Close"})]})]})]})});Ie.displayName=q.Content.displayName;var po=({className:e,...o})=>vt("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});po.displayName="DialogHeader";var Xe=({className:e,isCondensed:o=!1,...t})=>vt("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Xe.displayName="DialogBody";var yr=({className:e,isDivider:o=!0,...t})=>vt("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});yr.displayName="DialogFooter";var fo=_o.forwardRef(({className:e,...o},t)=>vt(q.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));fo.displayName=q.Title.displayName;var wr=_o.forwardRef(({className:e,...o},t)=>vt(q.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));wr.displayName=q.Description.displayName;import{Fragment as si,jsx as M,jsxs as pe}from"react/jsx-runtime";var Nm=({img:e="",children:o,isQrForAll:t})=>pe(si,{children:[M("div",{className:"qrcode__scan__container",children:pe("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?pe(si,{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"})]}):pe(si,{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 Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/solid";import*as Se from"@radix-ui/react-accordion";import*as vr from"react";import{createMedia as mm}from"@artsy/fresnel";import cm from"html-react-parser";import{twMerge as dm}from"tailwind-merge";var dt={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var gr={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 Eo=[{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"}],oi=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}];var de={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};function r(...e){return dm(e)}var hr=mm({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),C0=hr.createMediaStyle(),{Media:Ue,MediaContextProvider:lo}=hr,g=e=>e?vr.isValidElement(e)||typeof e=="object"&&"$typeof"in e?e:typeof e=="string"?cm(e):e:null;import{jsx as mo,jsxs as fm}from"react/jsx-runtime";var pt=Ho.forwardRef(({className:e,...o},t)=>mo(Se.Root,{ref:t,...o}));pt.displayName="AccordionRoot";var ft=Ho.forwardRef(({className:e,...o},t)=>mo(Se.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));ft.displayName="AccordionItem";var ut=Ho.forwardRef(({className:e,children:o,...t},a)=>mo(Se.Header,{className:"flex",children:fm(Se.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,mo(pm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));ut.displayName=Se.Trigger.displayName;var gt=Ho.forwardRef(({className:e,children:o,...t},a)=>mo(Se.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:mo("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));gt.displayName=Se.Content.displayName;import*as xr from"react";import{Slot as vm}from"@radix-ui/react-slot";import{cva as hm}from"class-variance-authority";import{jsx as De,jsxs as gm}from"react/jsx-runtime";var um=({className:e})=>gm("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[De("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),De("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),De("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),De("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),De("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),De("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),De("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),De("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),De("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),De("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),De("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),De("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),co=um;import{Fragment as bm,jsx as ai,jsxs as xm}from"react/jsx-runtime";var qe=hm("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Me=xr.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let m=a?vm:"button",c=r(qe({variant:o,size:t,className:e}),{"cursor-wait":i});return ai(bm,{children:a?ai(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):xm(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[i&&ai(co,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Me.displayName="Button";import{QRCodeSVG as wm}from"qrcode.react";import*as _o from"react";import{XMarkIcon as ym}from"@heroicons/react/16/solid";import*as q from"@radix-ui/react-dialog";import{jsx as vt,jsxs as ii}from"react/jsx-runtime";var Be=q.Root,Fo=q.Trigger,br=q.Portal,ri=q.Close,ni=_o.forwardRef(({className:e,...o},t)=>vt(q.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));ni.displayName=q.Overlay.displayName;var Ie=_o.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...m},c)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},p={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},h=[d.base,d[i],p[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return ii(br,{children:[vt(ni,{}),ii(q.Content,{ref:c,className:r(...h),...m,children:[l,!t&&ii(q.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[vt(ym,{className:"h-5 w-5 text-gray-700"}),vt("span",{className:"sr-only",children:"Close"})]})]})]})});Ie.displayName=q.Content.displayName;var po=({className:e,...o})=>vt("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});po.displayName="DialogHeader";var Xe=({className:e,isCondensed:o=!1,...t})=>vt("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Xe.displayName="DialogBody";var yr=({className:e,isDivider:o=!0,...t})=>vt("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});yr.displayName="DialogFooter";var fo=_o.forwardRef(({className:e,...o},t)=>vt(q.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));fo.displayName=q.Title.displayName;var wr=_o.forwardRef(({className:e,...o},t)=>vt(q.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));wr.displayName=q.Description.displayName;import{Fragment as si,jsx as M,jsxs as pe}from"react/jsx-runtime";var Nm=({img:e="",children:o,isQrForAll:t})=>pe(si,{children:[M("div",{className:"qrcode__scan__container",children:pe("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?pe(si,{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"})]}):pe(si,{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 Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),jt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>M(Fe,{...m,children:M(Ie,{className:r("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:M(Xe,{className:"p-0",children:pe("div",{className:"flex flex-row flex-wrap",children:[M("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||pe("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[pe("div",{className:"flex flex-nowrap items-center",children:[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"})}),pe("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"})]})]}),pe("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"})}),pe("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"})]})]}),pe("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"})}),pe("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),pe("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),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:pe("div",{className:"px-5 py-10 text-center",children:[t&&M("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),pe("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(Nm,{img:i,isQrForAll:l,children:n&&M(wm,{value:n,size:215,imageSettings:{src:`${s||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});import{useState as Dm}from"react";import{useEffect as Pm,useLayoutEffect as Cm,useState as Rm}from"react";import km from"ua-parser-js";var Tm=()=>km().device.type==="mobile",Sm=typeof window<"u"?Cm:Pm,go=()=>{let[e,o]=Rm(!1);return Sm(()=>{o(Tm())},[]),e};import{Fragment as Mm,jsx as va,jsxs as Im}from"react/jsx-runtime";var Oe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,m]=Dm(!1),c=go(),d=!!a?.qrLink,p=()=>{let H=d?a?.qrLink:e;return typeof H=="string"?H.trim():""},g=()=>{let H=p();!H&&typeof e!="function"||(typeof e=="function"?e():window.open(H,o?"_blank":"_self"))},h=(H,V=0)=>{let z=document.querySelector(H);if(!z)return;let C=z.getBoundingClientRect().top+window.scrollY-V;window.scrollTo({top:C,behavior:"smooth"})},k=()=>{typeof e=="string"&&e.startsWith("#")?h(e,t):g()},P=()=>Im(Mm,{children:[va(Me,{...s,className:i,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),va(jt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?P():va(Me,{...s,className:i,onClick:g,"data-name":"button-action-with-qr",children:n}):P():va(Me,{...s,onClick:k,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as uo from"react";import{ChevronRightIcon as Am,DotsHorizontalIcon as Lm}from"@radix-ui/react-icons";import{Slot as zm}from"@radix-ui/react-slot";import{jsx as ht,jsxs as Em}from"react/jsx-runtime";var Nr=uo.forwardRef(({className:e,...o},t)=>ht("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Nr.displayName="Breadcrumb";var Pr=uo.forwardRef(({className:e,...o},t)=>ht("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Pr.displayName="BreadcrumbList";var Cr=uo.forwardRef(({className:e,...o},t)=>ht("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Cr.displayName="BreadcrumbItem";var Rr=uo.forwardRef(({asChild:e,className:o,...t},a)=>ht(e?zm:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Rr.displayName="BreadcrumbLink";var kr=uo.forwardRef(({className:e,...o},t)=>ht("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));kr.displayName="BreadcrumbPage";var Tr=({children:e,className:o,...t})=>ht("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??ht(Am,{className:"w-2 h-2"})});Tr.displayName="BreadcrumbSeparator";var Sr=({className:e,...o})=>Em("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[ht(Lm,{className:"w-4 h-4 text-gray-900"}),ht("span",{className:"sr-only",children:"More"})]});Sr.displayName="BreadcrumbElipssis";import{createContext as Hm,useContext as Dr}from"react";import{jsx as Fo}from"react/jsx-runtime";var li=Hm({align:"center"}),mi=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return Fo("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},ci=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:c}=Dr(li);return Fo(s,{className:r("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",i),children:n})},di=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:c}=Dr(li);return Fo("div",{className:r(c==="center"?"mx-auto max-w-2xl":c==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",i),children:n})},pi=({className:e,align:o="center",children:t})=>Fo("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Fo(li.Provider,{value:{align:o},children:t})});import{jsx as Qt,jsxs as _m}from"react/jsx-runtime";var W=({idSection:e,className:o,background:t,children:a})=>Qt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Qt("div",{className:"wrapper relative",children:a})}),x=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",c=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:_m(pi,{align:e,className:l,children:[o&&Qt(mi,{color:m,children:o}),t&&Qt(ci,{tagHeading:i,color:c,size:s,children:u(t)}),a&&Qt(di,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:u(a)})]})},b=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Qt("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{if(!i)return null;let{btnName:s,...l}=i;return Qt(Oe,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:u(s)},n)})});import Km,{memo as Jm}from"react";import{ArrowDownIcon as ec}from"@heroicons/react/20/solid";import{createContext as Vm,useCallback as Wm,useContext as fi,useEffect as Gm,useRef as $m,useState as jm}from"react";import{ChevronLeft as Qm,ChevronRight as Um}from"lucide-react";import*as Mr from"react";import{Slot as Bm}from"@radix-ui/react-slot";import{cva as Fm}from"class-variance-authority";import{jsx as Om}from"react/jsx-runtime";var Ut=Fm("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),re=Mr.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Bm:"button",m=r(Ut({variant:o,size:t,className:e}));return Om(l,{className:m,disabled:i,ref:s,...n,children:n.children})});re.displayName="IconButton";import{Fragment as qm,jsx as Mt,jsxs as Ir}from"react/jsx-runtime";var ha=Vm(void 0),xt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=$m(null),[n,s]=jm({left:!1,right:!1}),l=Wm(()=>{let c=i.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);Gm(()=>{let c=i.current;if(c)return l(),window.addEventListener("resize",l),c.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),c.removeEventListener("scroll",l)}},[l]);let m=c=>{let d=i.current;if(d){let{scrollLeft:p,clientWidth:g,scrollWidth:h}=d,k=g*.7*(c==="left"?-1:1),P=p+k;P<0?P=0:P>h-g&&(P=h-g),d.scrollTo({left:P,behavior:"smooth"})}};return Mt(ha.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:m,gradientOverlayColor:o},children:Ir("div",{className:r("relative w-full",t),children:[e&&Ir(qm,{children:[n.left&&Mt("div",{className:"pointer-events-none absolute left-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&Mt("div",{className:"pointer-events-none absolute right-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},bt=({className:e,children:o})=>{let t=fi(ha);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Mt("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},yt=({className:e,children:o,...t})=>{let a=fi(ha);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Mt(re,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Mt(Qm,{className:"h-4 w-4"})}):null},wt=({className:e,children:o,...t})=>{let a=fi(ha);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Mt(re,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Mt(Um,{className:"h-4 w-4"})}):null};import*as xa from"react";import*as Ve from"@radix-ui/react-tabs";import{jsx as gi}from"react/jsx-runtime";var Nt=Ve.Root,Ye=xa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>gi(Ve.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Ye.displayName=Ve.List.displayName;var Ze=xa.forwardRef(({className:e,...o},t)=>gi(Ve.Trigger,{ref:t,className:r("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));Ze.displayName=Ve.Trigger.displayName;var Ke=xa.forwardRef(({className:e,...o},t)=>gi(Ve.Content,{ref:t,className:r("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Ke.displayName=Ve.Content.displayName;import*as Ar from"react";import{Slot as Xm}from"@radix-ui/react-slot";import{cva as Ym}from"class-variance-authority";import{jsx as Zm}from"react/jsx-runtime";var Lr=Ym("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),fe=Ar.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Xm:"button",m=r(Lr({variant:o,size:t,className:e}));return Zm(l,{className:m,disabled:i,ref:s,...n,children:n.children})});fe.displayName="TextButton";import{Fragment as zr,jsx as G,jsxs as Je}from"react/jsx-runtime";var tc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Je(zr,{children:[G("div",{className:"flex-none basis-1/2 pr-3 md:basis-full md:pr-0",children:G("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Je("picture",{children:[G("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),G("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})})}),Je("div",{className:"basis-1/2 overflow-hidden md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&G(fe,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),G("div",{className:"line-clamp-3 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),Je("div",{className:"mt-2 flex items-center md:space-x-1",children:[e?.category&&e?.categoryUrl&&Je(zr,{children:[G(fe,{variant:"default",className:"shink-0 hidden justify-start whitespace-normal text-left text-xs md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&G("span",{className:"hidden flex-none leading-none md:block",children:"\xB7"})]}),e?.totalViews&&G("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},ba=Jm(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>Je("div",{children:[G("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((g,h)=>G("div",{className:"min-w-0 basis-full px-3 md:basis-1/2 lg:basis-1/3",children:G("div",{onClick:k=>m(k,g?.id,g?.url),className:r("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:G(tc,{blog:g})},g?.id)},h))}),d?.isShowBtn&&G("div",{className:"mt-8 flex w-full items-center justify-center",children:Je(Oe,{action:i?()=>i?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[u(d.btnName||"Xem th\xEAm"),d?.isLoading?G(co,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!d?.btnUrl&&G(ec,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return Je(Km.Fragment,{children:[e&&G(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?Je(Nt,{defaultValue:t[0]?.title,children:[Je(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[G(bt,{className:"mb-6 text-center",children:G(Ye,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>G(Ze,{value:d.title,children:d.title},d.title+p))})}),G(yt,{}),G(wt,{})]}),t.map((d,p)=>G(Ke,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import nc,{memo as sc,useEffect as lc,useState as _r}from"react";import{ChevronLeftIcon as mc,ChevronRightIcon as cc}from"@heroicons/react/20/solid";import*as _ from"react";import{ChevronLeftIcon as oc,ChevronRightIcon as ac}from"@heroicons/react/20/solid";import ic from"embla-carousel-react";import{Fragment as rc,jsx as Ae,jsxs as Hr}from"react/jsx-runtime";var Er=_.createContext(null);function Oo(){let e=_.useContext(Er);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ge=_.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[m,c]=ic({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=_.useState(!1),[g,h]=_.useState(!1),k=_.useCallback(V=>{V&&(p(V.canScrollPrev()),h(V.canScrollNext()))},[]),P=_.useCallback(()=>{c?.scrollPrev()},[c]),S=_.useCallback(()=>{c?.scrollNext()},[c]),H=_.useCallback(V=>{V.key==="ArrowLeft"?(V.preventDefault(),P()):V.key==="ArrowRight"&&(V.preventDefault(),S())},[P,S]);return _.useEffect(()=>{!c||!t||t(c)},[c,t]),_.useEffect(()=>{if(c)return k(c),c.on("reInit",k),c.on("select",k),()=>{c?.off("select",k)}},[c,k]),Ae(Er.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:P,scrollNext:S,canScrollPrev:d,canScrollNext:g},children:Ae("div",{ref:l,onKeyDownCapture:H,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});ge.displayName="Carousel";var ue=_.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=Oo();return Ae("div",{ref:i,className:r("overflow-hidden",o),children:Ae("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ue.displayName="CarouselContent";var le=_.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Oo();return Ae("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});le.displayName="CarouselItem";var vo=_.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Oo();return Hr(re,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ae(oc,{className:"h-6 w-6"}),Ae("span",{className:"sr-only",children:"Previous slide"})]})});vo.displayName="CarouselPrevious";var ho=_.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Oo();return Hr(re,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ae(ac,{className:"h-6 w-6"}),Ae("span",{className:"sr-only",children:"Next slide"})]})});ho.displayName="CarouselNext";var xo=_.forwardRef((e,o)=>{let{api:t}=Oo(),[,a]=_.useState(!1),i=_.useCallback(()=>a(l=>!l),[]);_.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Ae("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Ae(re,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):Ae(rc,{})});xo.displayName="CarouselDots";import{Fragment as ya,jsx as $,jsxs as We}from"react/jsx-runtime";var dc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return We(ya,{children:[$("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:$("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),We("div",{className:"mt-4 md:pr-3",children:[$("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight",children:e?.title}),e?.description&&$("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:u(e?.description??"")}),We("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&We(ya,{children:[$(fe,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&$("span",{className:"flex-none leading-none text-gray-300",children:"\xB7"})]}),e?.totalViews&&$("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},pc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return lc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),We(ya,{children:[$(ge,{opts:{dragFree:!1},setApi:o,className:"w-full",children:$(ue,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>$(le,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:$("div",{onClick:g=>i(g,p?.id,p?.url),className:r("group cursor-pointer",d),children:$(dc,{blog:p})},p?.id)},p?.id))})}),s&&$("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10",children:We(Oe,{action:m&&m,newTab:c,variant:"outline",children:[u(l||"Xem th\xEAm")," "]})})]})},fc=({carouselRef:e})=>We(re,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[$(mc,{className:"h-6 w-6"}),$("span",{className:"sr-only",children:"Previous slide"})]}),gc=({carouselRef:e})=>We(re,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[$(cc,{className:"h-6 w-6"}),$("span",{className:"sr-only",children:"Next slide"})]}),ui=sc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(c,d,p)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(p,"_blank")},[n,s]=_r(null),[,l]=_r(0),m=()=>n?We("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[$(fc,{carouselRef:n}),$(gc,{carouselRef:n})]}):$(ya,{});return We(nc.Fragment,{children:[We("div",{className:"flex items-center justify-between",children:[e&&$(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),$(m,{})]}),$(pc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});import{Fragment as xc,jsx as bo}from"react/jsx-runtime";var uc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return bo(ba,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return bo(ui,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return bo(ba,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},vc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>bo(xc,{children:uc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),hc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>bo(W,{className:r("overflow-hidden",i),idSection:a,background:n,children:bo(vc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as Na from"react";import{enUS as Nc,vi as Pc}from"date-fns/locale";import{ChevronLeft as Cc,ChevronRight as Rc}from"lucide-react";import kc from"lunisolar";import{DayPicker as Tc}from"react-day-picker";import*as Br from"react";import*as Vo from"@radix-ui/react-checkbox";import{CheckIcon as bc}from"@heroicons/react/16/solid";import{cva as Fr}from"class-variance-authority";import{jsx as vi}from"react/jsx-runtime";var yc=Fr("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"}}),wc=Fr("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),wa=Br.forwardRef(({className:e,size:o,...t},a)=>vi(Vo.Root,{ref:a,className:r(yc({size:o}),e),...t,children:vi(Vo.Indicator,{className:r("flex items-center justify-center text-current"),children:vi(bc,{className:r(wc({size:o}))})})}));wa.displayName=Vo.Root.displayName;import{Fragment as Ac,jsx as et,jsxs as hi}from"react/jsx-runtime";var Sc=({date:e,cusContent:o})=>{let t=null;return t=kc(e).lunar,hi(Ac,{children:[o?o(e):e.getDate(),t&&et("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Dc={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 Mc({isShow:e,setIsShow:o,lang:t}){let a=Na.useId();return et("div",{className:"w-full p-3 pt-0",children:hi("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[et(wa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),et("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Ic=e=>e.getDay()===0||e.getDay()===6;function Pa({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,m]=Na.useState(!0);return et(Tc,{locale:i==="vi"?Pc:Nc,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(qe({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(qe({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Ic},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>et(Cc,{className:"h-6 w-6"}),IconRight:()=>et(Rc,{className:"h-6 w-6"}),DayContent:c=>et(Sc,{date:c.date,cusContent:n}),Months:({children:c})=>hi("div",{className:"w-full",children:[et("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&et(Mc,{isShow:l,setIsShow:m,lang:i})]})},formatters:i==="vi"?Dc:{},...s})}Pa.displayName="Calendar";import{QuestionMarkCircleIcon as Lc,XCircleIcon as zc}from"@heroicons/react/16/solid";import{format as Ca}from"date-fns";import{Calendar as Ec}from"lucide-react";import*as Vr from"react";import*as Pt from"@radix-ui/react-popover";import{jsx as Or}from"react/jsx-runtime";var Wo=Pt.Root,Go=Pt.Trigger,yo=Vr.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>Or(Pt.Portal,{children:Or(Pt.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));yo.displayName=Pt.Content.displayName;import{Fragment as Wr,jsx as Pe,jsxs as $o}from"react/jsx-runtime";var Hc=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:c,popoverContentProps:d})=>{let p=c?.selected||null;return $o("div",{children:[$o(Wo,{...m,children:[Pe(Go,{asChild:!0,children:$o(Me,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!p||!(p instanceof Date)&&typeof p=="object"&&(!("from"in p)||!p.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Pe("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Ca(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?Pe(Wr,{children:p.from?p.to?$o(Wr,{children:[Pe("span",{className:"date-from",children:Ca(p.from,s)})," ",Pe("span",{className:"date-separator",children:"-"}),Pe("span",{className:"date-to",children:Ca(p.to,s)})]}):Ca(p.from,s):o}):o}),e&&Pe("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),Pe(Ec,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Pe(yo,{className:"w-auto border-none !p-0",...d,children:Pe(Pa,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&$o("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?Pe(zc,{width:16,height:16,className:"text-red-500"}):Pe(Lc,{width:16,height:16,className:"text-gray-500"}),Pe("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Vc,useState as Xr}from"react";import{QuestionMarkCircleIcon as Wc,XCircleIcon as Gc}from"@heroicons/react/16/solid";import{isValid as $c}from"date-fns";import*as tt from"react";import{ChevronDownIcon as Gr,ChevronUpIcon as _c,CheckIcon as Bc,XCircleIcon as Fc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Oc}from"@heroicons/react/24/outline";import*as D from"@radix-ui/react-select";import{jsx as j,jsxs as jo}from"react/jsx-runtime";var Qo=tt.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},m)=>jo("div",{ref:m,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&j("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),j(D.Root,{disabled:s,...l,children:o}),a&&jo("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?j(Fc,{width:16,height:16}):j(Oc,{width:16,height:16}),j("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Uo=D.Value,wo=tt.forwardRef(({className:e,children:o,...t},a)=>jo(D.Trigger,{ref:a,className:r("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[j("div",{className:"line-clamp-1 text-left",children:o}),j(D.Icon,{asChild:!0,children:j(Gr,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));wo.displayName=D.Trigger.displayName;var xi=tt.forwardRef(({className:e,...o},t)=>j(D.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:j(_c,{className:"h-5 w-5"})}));xi.displayName=D.ScrollUpButton.displayName;var bi=tt.forwardRef(({className:e,...o},t)=>j(D.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:j(Gr,{className:"h-5 w-5"})}));bi.displayName=D.ScrollDownButton.displayName;var No=tt.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>j(D.Portal,{children:jo(D.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[j(xi,{}),j(D.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),j(bi,{})]})}));No.displayName=D.Content.displayName;var qo=tt.forwardRef(({className:e,children:o,...t},a)=>j(D.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),$r=tt.forwardRef(({className:e,...o},t)=>j(D.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));$r.displayName=D.Label.displayName;var It=tt.forwardRef(({className:e,children:o,...t},a)=>jo(D.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[j("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:j(D.ItemIndicator,{children:j(Bc,{className:"h-4 w-4 text-pink-500"})})}),j(D.ItemText,{children:o})]})),jr=tt.forwardRef(({className:e,...o},t)=>j(D.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));jr.displayName=D.Separator.displayName;var Qr=["Th\xE1ng 01","Th\xE1ng 02","Th\xE1ng 03","Th\xE1ng 04","Th\xE1ng 05","Th\xE1ng 06","Th\xE1ng 07","Th\xE1ng 08","Th\xE1ng 09","Th\xE1ng 10","Th\xE1ng 11","Th\xE1ng 12"],Ur=["January","February","March","April","May","June","July","August","September","October","November","December"],yi=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},qr=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,l)=>n-l)};import{jsx as ee,jsxs as ot}from"react/jsx-runtime";var jc=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:c=1900,toYear:d=new Date().getFullYear(),disableUnselect:p=!1})=>{let[g,h]=Xr(o??null),k=Math.min(c,d),P=Math.max(c,d),S=l==="MM/yyyy",H=(C,ie)=>{if(ie===0){h(void 0),t?.(void 0);return}let Q=g?.getFullYear()||new Date().getFullYear(),ua=g?.getMonth()??0,$t=g?.getDate()??1;C==="month"&&ie!==null&&(ua=ie-1),C==="year"&&ie!==null&&(Q=ie),S?$t=1:C==="day"&&ie!==null&&($t=ie);let gr=yi(Q,ua+1).daysInMonth;$t>gr&&($t=1);let zo=new Date(Q,ua,$t);$c(zo)&&(h(zo),t?.(zo))},[V,z]=Xr(!1),Gt=C=>{z(C)};return Vc(()=>{h(o??null)},[o]),ot("div",{className:r("relative",s&&"cursor-no-drop"),children:[ot("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",V&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",g?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&ee("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),ot("div",{className:"flex h-full flex-row divide-x",children:[!S&&ot(Qo,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:C=>H("day",parseInt(C,10)),onOpenChange:Gt,className:"w-[30%]",children:[ee(wo,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Uo,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),ee(No,{onCloseAutoFocus:C=>C.preventDefault(),children:ot(qo,{children:[!p&&ee(It,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:yi(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(C,ie)=>(ie+1).toString().padStart(2,"0")).map(C=>ee(It,{value:C,children:C},C))]})})]}),ot(Qo,{value:g?(g.getMonth()+1).toString():"",onValueChange:C=>H("month",parseInt(C,10)),onOpenChange:Gt,className:r(S?"w-1/2":"w-2/5"),children:[ee(wo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Uo,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),ee(No,{onCloseAutoFocus:C=>C.preventDefault(),children:ot(qo,{children:[!p&&ee(It,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(C,ie)=>ie+1).map(C=>ee(It,{value:C.toString(),children:m==="vi"?Qr[C-1]:Ur[C-1]},C))]})})]}),ot(Qo,{value:g?g.getFullYear().toString():"",onValueChange:C=>H("year",parseInt(C,10)),onOpenChange:Gt,className:r(S?"w-1/2":"w-[30%]"),children:[ee(wo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Uo,{placeholder:m==="vi"?"N\u0103m":"Year"})}),ee(No,{onCloseAutoFocus:C=>C.preventDefault(),children:ot(qo,{children:[!p&&ee(It,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),qr(k,P).map(C=>ee(It,{value:C.toString(),children:C},C))]})})]})]})]}),i&&ot("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?ee(Gc,{width:16,height:16,className:"text-red-500"}):ee(Wc,{width:16,height:16,className:"text-gray-500"}),ee("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};import*as qt from"react";import*as F from"@radix-ui/react-alert-dialog";import{jsx as Ct,jsxs as qc}from"react/jsx-runtime";var Qc=F.Root,Uc=F.Trigger,Yr=F.Portal,wi=qt.forwardRef(({className:e,...o},t)=>Ct(F.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));wi.displayName=F.Overlay.displayName;var Zr=qt.forwardRef(({className:e,...o},t)=>qc(Yr,{children:[Ct(wi,{}),Ct(F.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));Zr.displayName=F.Content.displayName;var Kr=({className:e,...o})=>Ct("div",{className:r("flex flex-col space-y-2 text-left",e),...o});Kr.displayName="AlertDialogHeader";var Jr=({className:e,...o})=>Ct("div",{className:r("flex flex-row justify-end space-x-4",e),...o});Jr.displayName="AlertDialogFooter";var en=qt.forwardRef(({className:e,...o},t)=>Ct(F.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));en.displayName=F.Title.displayName;var tn=qt.forwardRef(({className:e,...o},t)=>Ct(F.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));tn.displayName=F.Description.displayName;var on=qt.forwardRef(({className:e,...o},t)=>Ct(F.Action,{ref:t,className:r(qe({variant:"primary"}),"",e),...o}));on.displayName=F.Action.displayName;var an=qt.forwardRef(({className:e,...o},t)=>Ct(F.Cancel,{ref:t,className:r(qe({variant:"secondary"}),e),...o}));an.displayName=F.Cancel.displayName;import{memo as ad,useState as id}from"react";import{useEffect as Xc,useState as nn}from"react";import{motion as Yc}from"motion/react";import*as rn from"@radix-ui/react-aspect-ratio";var B=rn.Root;import{Fragment as sn,jsx as te,jsxs as Xo}from"react/jsx-runtime";var Zc=({guideGroup:e,mockup:o})=>{let[t,a]=nn(),[i,n]=nn(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Xc(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),te(sn,{children:e?.stepList&&e?.stepList?.length>0&&Xo("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[te("div",{className:"h-auto w-64 flex-none",children:Xo("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&Xo(sn,{children:[te("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),te("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:Xo(ge,{setApi:a,children:[te(ue,{className:"ml-0",children:e?.stepList.map((l,m)=>te(le,{className:"pl-0",children:te(B,{ratio:o==="small"?540/960:540/1168,children:l?.image&&te("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),te(vo,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),te(ho,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),te("div",{className:"flex flex-auto pl-12 pt-4",children:te("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>Xo("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",m+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[te("div",{className:r("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),te("div",{className:r("text-sm font-medium",m+1===i?"text-pink-500":"text-gray-900"),children:u(l.title)}),l.content&&te(Yc.div,{initial:"closed",animate:m+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:te("div",{className:"mt-3 text-sm text-gray-700",children:u(l.content)})})]},m))})})]})})},Ni=Zc;import{useEffect as Kc,useRef as Jc,useState as Ra}from"react";import{ChevronRightIcon as ln}from"@heroicons/react/20/solid";import ed from"embla-carousel-autoplay";import{Fragment as Pi,jsx as w,jsxs as ye}from"react/jsx-runtime";var td=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=Ra(0),[s,l]=Ra();return Kc(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:w(Fe,{open:e,onOpenChange:o,children:ye(Ie,{position:"bottom",height:"full",children:[w(po,{children:w(fo,{className:"line-clamp-1",children:t?.title})}),ye(Xe,{className:"grid overflow-hidden p-0",children:[w(ge,{setApi:l,className:"grid overflow-hidden",children:w(ue,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>w(le,{className:"h-full w-full pl-0",children:ye("div",{className:"flex h-full flex-col overflow-y-auto",children:[w("div",{className:"relative flex w-full flex-none justify-center bg-gray-100 p-5",children:w("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:ye("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&ye(Pi,{children:[w("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),w("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:w(B,{ratio:a==="small"?540/960:540/1168,children:m?.image&&w("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),ye("div",{className:"p-5 pb-12",children:[w("div",{className:"font-semibold",children:u(m.title)}),m?.content&&w("div",{className:"mt-3 text-sm text-gray-800",children:u(m.content)})]})]})},c))})}),w("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)=>w("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},od=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=Ra(!1),[n,s]=Ra(null),l=Jc(ed({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),i(!0)};return e?.length===0?null:ye(Pi,{children:[e?.length>1?w("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>ye("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5",onClick:()=>m(d),children:[w("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)&&w("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),ye("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8",d+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[ye("div",{className:"py-2",children:[t&&w("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),w("div",{className:"font-semibold",children:u(c.title)}),c?.description&&w("div",{className:"mt-1 text-sm text-gray-500",children:u(c.description)})]}),w("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:w(ln,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&ye("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[w("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:w("div",{className:"mx-auto h-auto w-72",children:ye("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&ye(Pi,{children:[w("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),w("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:w(ge,{plugins:[l.current],children:w(ue,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>w(le,{className:"pl-0",onClick:()=>m(0),children:w(B,{ratio:o==="small"?540/960:540/1168,children:c?.image&&w("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),w("div",{className:"flex w-full flex-none justify-center",children:ye(fe,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",w(ln,{className:"ml-1 h-5 w-5"})]})})]}),a&&w(td,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},mn=od;import{Fragment as rd,jsx as me,jsxs as Yo}from"react/jsx-runtime";var cn=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return me("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:me("path",{d:t.d,fill:"currentColor"})})},Ci=ad(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=id(t?.[0]?.title||"");return Yo(rd,{children:[e&&me(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&Yo(lo,{children:[me(Ue,{lessThan:"md",children:me(mn,{dataGuide:t,mockup:i,isStep:n})}),me(Ue,{greaterThan:"sm",children:t?.length>1?Yo(Nt,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[Yo(xt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[me(bt,{className:"mb-6 text-center",children:me(Ye,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,g)=>{let h=g===t.length-1,k=c===p?.title||"";return Yo(Ze,{value:p.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",k&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&me(cn,{direction:"left",className:r("right-full top-0",k?"text-pink-500":"text-pink-100")}),p.title,n&&!h&&me(cn,{direction:"right",className:r("left-full top-0",k?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),me(yt,{}),me(wt,{})]}),t.map((p,g)=>me(Ke,{value:p.title,children:me(Ni,{guideGroup:p,mockup:i})},p.title+g))]}):t?.length===1&&t[0]&&me(Ni,{guideGroup:t[0],mockup:i})})]}),a&&me(b,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as md,jsx as Zo}from"react/jsx-runtime";var nd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return Zo(Ci,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return Zo(Ci,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},sd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>Zo(md,{children:nd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),ld=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>Zo(W,{className:r(n),background:s,idSection:e,children:Zo(sd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:m,isStep:c})});import{ChevronLeft as cd,ChevronRight as dd}from"lucide-react";import{Fragment as pd,jsx as Le,jsxs as dn}from"react/jsx-runtime";function pn({current:e,total:o,onChange:t}){let a=i=>Le("li",{children:Le("button",{className:r(Ut({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return Le("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:dn("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Le("li",{children:Le("button",{className:r(Ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Le(cd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):dn(pd,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Le("li",{children:Le("button",{className:r(Ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&Le("button",{className:r(Ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Le("li",{children:Le("button",{className:r(Ut({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Le(dd,{className:"h-4 w-4"})})})]})})}import{forwardRef as fd}from"react";import{QuestionMarkCircleIcon as gd}from"@heroicons/react/24/outline";import{XCircleIcon as ud}from"@heroicons/react/24/solid";import{jsx as Po,jsxs as fn}from"react/jsx-runtime";var vd=fd(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...m},c)=>fn("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&Po("span",{className:r("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),Po("textarea",{disabled:e,ref:c,className:r("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...m}),t&&fn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?Po(ud,{width:16,height:16,className:"text-red-500"}):Po(gd,{width:16,height:16,className:"text-gray-500"}),Po("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Po("style",{children:`
70
+ `})]}),jt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>M(Be,{...m,children:M(Ie,{className:r("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:M(Xe,{className:"p-0",children:pe("div",{className:"flex flex-row flex-wrap",children:[M("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||pe("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[pe("div",{className:"flex flex-nowrap items-center",children:[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"})}),pe("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"})]})]}),pe("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"})}),pe("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"})]})]}),pe("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"})}),pe("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),pe("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),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:pe("div",{className:"px-5 py-10 text-center",children:[t&&M("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),pe("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(Nm,{img:i,isQrForAll:l,children:n&&M(wm,{value:n,size:215,imageSettings:{src:`${s||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});import{useState as Dm}from"react";import{useEffect as Pm,useLayoutEffect as Cm,useState as km}from"react";import Rm from"ua-parser-js";var Tm=()=>Rm().device.type==="mobile",Sm=typeof window<"u"?Cm:Pm,uo=()=>{let[e,o]=km(!1);return Sm(()=>{o(Tm())},[]),e};import{Fragment as Mm,jsx as va,jsxs as Im}from"react/jsx-runtime";var Oe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,m]=Dm(!1),c=uo(),d=!!a?.qrLink,p=()=>{let H=d?a?.qrLink:e;return typeof H=="string"?H.trim():""},u=()=>{let H=p();!H&&typeof e!="function"||(typeof e=="function"?e():window.open(H,o?"_blank":"_self"))},h=(H,V=0)=>{let z=document.querySelector(H);if(!z)return;let C=z.getBoundingClientRect().top+window.scrollY-V;window.scrollTo({top:C,behavior:"smooth"})},R=()=>{typeof e=="string"&&e.startsWith("#")?h(e,t):u()},P=()=>Im(Mm,{children:[va(Me,{...s,className:i,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),va(jt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?P():va(Me,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):P():va(Me,{...s,onClick:R,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as go from"react";import{ChevronRightIcon as Am,DotsHorizontalIcon as Lm}from"@radix-ui/react-icons";import{Slot as zm}from"@radix-ui/react-slot";import{jsx as ht,jsxs as Em}from"react/jsx-runtime";var Nr=go.forwardRef(({className:e,...o},t)=>ht("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Nr.displayName="Breadcrumb";var Pr=go.forwardRef(({className:e,...o},t)=>ht("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Pr.displayName="BreadcrumbList";var Cr=go.forwardRef(({className:e,...o},t)=>ht("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Cr.displayName="BreadcrumbItem";var kr=go.forwardRef(({asChild:e,className:o,...t},a)=>ht(e?zm:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));kr.displayName="BreadcrumbLink";var Rr=go.forwardRef(({className:e,...o},t)=>ht("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Rr.displayName="BreadcrumbPage";var Tr=({children:e,className:o,...t})=>ht("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??ht(Am,{className:"w-2 h-2"})});Tr.displayName="BreadcrumbSeparator";var Sr=({className:e,...o})=>Em("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[ht(Lm,{className:"w-4 h-4 text-gray-900"}),ht("span",{className:"sr-only",children:"More"})]});Sr.displayName="BreadcrumbElipssis";import{createContext as Hm,useContext as Dr}from"react";import{jsx as Bo}from"react/jsx-runtime";var li=Hm({align:"center"}),mi=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return Bo("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},ci=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:c}=Dr(li);return Bo(s,{className:r("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",i),children:n})},di=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:c}=Dr(li);return Bo("div",{className:r(c==="center"?"mx-auto max-w-2xl":c==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",i),children:n})},pi=({className:e,align:o="center",children:t})=>Bo("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Bo(li.Provider,{value:{align:o},children:t})});import{jsx as Qt,jsxs as _m}from"react/jsx-runtime";var W=({idSection:e,className:o,background:t,children:a})=>Qt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Qt("div",{className:"wrapper relative",children:a})}),x=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",c=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:_m(pi,{align:e,className:l,children:[o&&Qt(mi,{color:m,children:o}),t&&Qt(ci,{tagHeading:i,color:c,size:s,children:g(t)}),a&&Qt(di,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:g(a)})]})},b=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Qt("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{if(!i)return null;let{btnName:s,...l}=i;return Qt(Oe,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:g(s)},n)})});import Km,{memo as Jm}from"react";import{ArrowDownIcon as ec}from"@heroicons/react/20/solid";import{createContext as Vm,useCallback as Wm,useContext as fi,useEffect as Gm,useRef as $m,useState as jm}from"react";import{ChevronLeft as Qm,ChevronRight as Um}from"lucide-react";import*as Mr from"react";import{Slot as Fm}from"@radix-ui/react-slot";import{cva as Bm}from"class-variance-authority";import{jsx as Om}from"react/jsx-runtime";var Ut=Bm("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),re=Mr.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Fm:"button",m=r(Ut({variant:o,size:t,className:e}));return Om(l,{className:m,disabled:i,ref:s,...n,children:n.children})});re.displayName="IconButton";import{Fragment as qm,jsx as Mt,jsxs as Ir}from"react/jsx-runtime";var ha=Vm(void 0),xt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=$m(null),[n,s]=jm({left:!1,right:!1}),l=Wm(()=>{let c=i.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:u}=c;s({left:d>0,right:Math.ceil(d+u)<p})}},[]);Gm(()=>{let c=i.current;if(c)return l(),window.addEventListener("resize",l),c.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),c.removeEventListener("scroll",l)}},[l]);let m=c=>{let d=i.current;if(d){let{scrollLeft:p,clientWidth:u,scrollWidth:h}=d,R=u*.7*(c==="left"?-1:1),P=p+R;P<0?P=0:P>h-u&&(P=h-u),d.scrollTo({left:P,behavior:"smooth"})}};return Mt(ha.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:m,gradientOverlayColor:o},children:Ir("div",{className:r("relative w-full",t),children:[e&&Ir(qm,{children:[n.left&&Mt("div",{className:"pointer-events-none absolute left-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&Mt("div",{className:"pointer-events-none absolute right-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},bt=({className:e,children:o})=>{let t=fi(ha);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Mt("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},yt=({className:e,children:o,...t})=>{let a=fi(ha);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Mt(re,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Mt(Qm,{className:"h-4 w-4"})}):null},wt=({className:e,children:o,...t})=>{let a=fi(ha);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Mt(re,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Mt(Um,{className:"h-4 w-4"})}):null};import*as xa from"react";import*as Ve from"@radix-ui/react-tabs";import{jsx as ui}from"react/jsx-runtime";var Nt=Ve.Root,Ye=xa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>ui(Ve.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Ye.displayName=Ve.List.displayName;var Ze=xa.forwardRef(({className:e,...o},t)=>ui(Ve.Trigger,{ref:t,className:r("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));Ze.displayName=Ve.Trigger.displayName;var Ke=xa.forwardRef(({className:e,...o},t)=>ui(Ve.Content,{ref:t,className:r("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Ke.displayName=Ve.Content.displayName;import*as Ar from"react";import{Slot as Xm}from"@radix-ui/react-slot";import{cva as Ym}from"class-variance-authority";import{jsx as Zm}from"react/jsx-runtime";var Lr=Ym("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),fe=Ar.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Xm:"button",m=r(Lr({variant:o,size:t,className:e}));return Zm(l,{className:m,disabled:i,ref:s,...n,children:n.children})});fe.displayName="TextButton";import{Fragment as zr,jsx as G,jsxs as Je}from"react/jsx-runtime";var tc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Je(zr,{children:[G("div",{className:"flex-none basis-1/2 pr-3 md:basis-full md:pr-0",children:G("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Je("picture",{children:[G("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),G("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})})}),Je("div",{className:"basis-1/2 overflow-hidden md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&G(fe,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),G("div",{className:"line-clamp-3 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),Je("div",{className:"mt-2 flex items-center md:space-x-1",children:[e?.category&&e?.categoryUrl&&Je(zr,{children:[G(fe,{variant:"default",className:"shink-0 hidden justify-start whitespace-normal text-left text-xs md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&G("span",{className:"hidden flex-none leading-none md:block",children:"\xB7"})]}),e?.totalViews&&G("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},ba=Jm(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,u)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(u,"_blank")},c=(d,p)=>Je("div",{children:[G("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((u,h)=>G("div",{className:"min-w-0 basis-full px-3 md:basis-1/2 lg:basis-1/3",children:G("div",{onClick:R=>m(R,u?.id,u?.url),className:r("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:G(tc,{blog:u})},u?.id)},h))}),d?.isShowBtn&&G("div",{className:"mt-8 flex w-full items-center justify-center",children:Je(Oe,{action:i?()=>i?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[g(d.btnName||"Xem th\xEAm"),d?.isLoading?G(co,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!d?.btnUrl&&G(ec,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return Je(Km.Fragment,{children:[e&&G(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?Je(Nt,{defaultValue:t[0]?.title,children:[Je(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[G(bt,{className:"mb-6 text-center",children:G(Ye,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>G(Ze,{value:d.title,children:d.title},d.title+p))})}),G(yt,{}),G(wt,{})]}),t.map((d,p)=>G(Ke,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import nc,{memo as sc,useEffect as lc,useState as _r}from"react";import{ChevronLeftIcon as mc,ChevronRightIcon as cc}from"@heroicons/react/20/solid";import*as _ from"react";import{ChevronLeftIcon as oc,ChevronRightIcon as ac}from"@heroicons/react/20/solid";import ic from"embla-carousel-react";import{Fragment as rc,jsx as Ae,jsxs as Hr}from"react/jsx-runtime";var Er=_.createContext(null);function Oo(){let e=_.useContext(Er);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ue=_.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[m,c]=ic({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=_.useState(!1),[u,h]=_.useState(!1),R=_.useCallback(V=>{V&&(p(V.canScrollPrev()),h(V.canScrollNext()))},[]),P=_.useCallback(()=>{c?.scrollPrev()},[c]),S=_.useCallback(()=>{c?.scrollNext()},[c]),H=_.useCallback(V=>{V.key==="ArrowLeft"?(V.preventDefault(),P()):V.key==="ArrowRight"&&(V.preventDefault(),S())},[P,S]);return _.useEffect(()=>{!c||!t||t(c)},[c,t]),_.useEffect(()=>{if(c)return R(c),c.on("reInit",R),c.on("select",R),()=>{c?.off("select",R)}},[c,R]),Ae(Er.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:P,scrollNext:S,canScrollPrev:d,canScrollNext:u},children:Ae("div",{ref:l,onKeyDownCapture:H,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});ue.displayName="Carousel";var ge=_.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=Oo();return Ae("div",{ref:i,className:r("overflow-hidden",o),children:Ae("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ge.displayName="CarouselContent";var le=_.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Oo();return Ae("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});le.displayName="CarouselItem";var vo=_.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Oo();return Hr(re,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ae(oc,{className:"h-6 w-6"}),Ae("span",{className:"sr-only",children:"Previous slide"})]})});vo.displayName="CarouselPrevious";var ho=_.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Oo();return Hr(re,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ae(ac,{className:"h-6 w-6"}),Ae("span",{className:"sr-only",children:"Next slide"})]})});ho.displayName="CarouselNext";var xo=_.forwardRef((e,o)=>{let{api:t}=Oo(),[,a]=_.useState(!1),i=_.useCallback(()=>a(l=>!l),[]);_.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Ae("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Ae(re,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):Ae(rc,{})});xo.displayName="CarouselDots";import{Fragment as ya,jsx as $,jsxs as We}from"react/jsx-runtime";var dc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return We(ya,{children:[$("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:$("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),We("div",{className:"mt-4 md:pr-3",children:[$("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight",children:e?.title}),e?.description&&$("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:g(e?.description??"")}),We("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&We(ya,{children:[$(fe,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&$("span",{className:"flex-none leading-none text-gray-300",children:"\xB7"})]}),e?.totalViews&&$("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},pc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return lc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),We(ya,{children:[$(ue,{opts:{dragFree:!1},setApi:o,className:"w-full",children:$(ge,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>$(le,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:$("div",{onClick:u=>i(u,p?.id,p?.url),className:r("group cursor-pointer",d),children:$(dc,{blog:p})},p?.id)},p?.id))})}),s&&$("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10",children:We(Oe,{action:m&&m,newTab:c,variant:"outline",children:[g(l||"Xem th\xEAm")," "]})})]})},fc=({carouselRef:e})=>We(re,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[$(mc,{className:"h-6 w-6"}),$("span",{className:"sr-only",children:"Previous slide"})]}),uc=({carouselRef:e})=>We(re,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[$(cc,{className:"h-6 w-6"}),$("span",{className:"sr-only",children:"Next slide"})]}),gi=sc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(c,d,p)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(p,"_blank")},[n,s]=_r(null),[,l]=_r(0),m=()=>n?We("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[$(fc,{carouselRef:n}),$(uc,{carouselRef:n})]}):$(ya,{});return We(nc.Fragment,{children:[We("div",{className:"flex items-center justify-between",children:[e&&$(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),$(m,{})]}),$(pc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});import{Fragment as xc,jsx as bo}from"react/jsx-runtime";var gc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return bo(ba,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return bo(gi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return bo(ba,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},vc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>bo(xc,{children:gc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),hc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>bo(W,{className:r("overflow-hidden",i),idSection:a,background:n,children:bo(vc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as Na from"react";import{enUS as Nc,vi as Pc}from"date-fns/locale";import{ChevronLeft as Cc,ChevronRight as kc}from"lucide-react";import Rc from"lunisolar";import{DayPicker as Tc}from"react-day-picker";import*as Fr from"react";import*as Vo from"@radix-ui/react-checkbox";import{CheckIcon as bc}from"@heroicons/react/16/solid";import{cva as Br}from"class-variance-authority";import{jsx as vi}from"react/jsx-runtime";var yc=Br("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"}}),wc=Br("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),wa=Fr.forwardRef(({className:e,size:o,...t},a)=>vi(Vo.Root,{ref:a,className:r(yc({size:o}),e),...t,children:vi(Vo.Indicator,{className:r("flex items-center justify-center text-current"),children:vi(bc,{className:r(wc({size:o}))})})}));wa.displayName=Vo.Root.displayName;import{Fragment as Ac,jsx as et,jsxs as hi}from"react/jsx-runtime";var Sc=({date:e,cusContent:o})=>{let t=null;return t=Rc(e).lunar,hi(Ac,{children:[o?o(e):e.getDate(),t&&et("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Dc={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 Mc({isShow:e,setIsShow:o,lang:t}){let a=Na.useId();return et("div",{className:"w-full p-3 pt-0",children:hi("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[et(wa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),et("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Ic=e=>e.getDay()===0||e.getDay()===6;function Pa({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,m]=Na.useState(!0);return et(Tc,{locale:i==="vi"?Pc:Nc,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(qe({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(qe({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Ic},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>et(Cc,{className:"h-6 w-6"}),IconRight:()=>et(kc,{className:"h-6 w-6"}),DayContent:c=>et(Sc,{date:c.date,cusContent:n}),Months:({children:c})=>hi("div",{className:"w-full",children:[et("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&et(Mc,{isShow:l,setIsShow:m,lang:i})]})},formatters:i==="vi"?Dc:{},...s})}Pa.displayName="Calendar";import{QuestionMarkCircleIcon as Lc,XCircleIcon as zc}from"@heroicons/react/16/solid";import{format as Ca}from"date-fns";import{Calendar as Ec}from"lucide-react";import*as Vr from"react";import*as Pt from"@radix-ui/react-popover";import{jsx as Or}from"react/jsx-runtime";var Wo=Pt.Root,Go=Pt.Trigger,yo=Vr.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>Or(Pt.Portal,{children:Or(Pt.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));yo.displayName=Pt.Content.displayName;import{Fragment as Wr,jsx as Pe,jsxs as $o}from"react/jsx-runtime";var Hc=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:c,popoverContentProps:d})=>{let p=c?.selected||null;return $o("div",{children:[$o(Wo,{...m,children:[Pe(Go,{asChild:!0,children:$o(Me,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!p||!(p instanceof Date)&&typeof p=="object"&&(!("from"in p)||!p.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Pe("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Ca(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?Pe(Wr,{children:p.from?p.to?$o(Wr,{children:[Pe("span",{className:"date-from",children:Ca(p.from,s)})," ",Pe("span",{className:"date-separator",children:"-"}),Pe("span",{className:"date-to",children:Ca(p.to,s)})]}):Ca(p.from,s):o}):o}),e&&Pe("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),Pe(Ec,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Pe(yo,{className:"w-auto border-none !p-0",...d,children:Pe(Pa,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&$o("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?Pe(zc,{width:16,height:16,className:"text-red-500"}):Pe(Lc,{width:16,height:16,className:"text-gray-500"}),Pe("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Vc,useState as Xr}from"react";import{QuestionMarkCircleIcon as Wc,XCircleIcon as Gc}from"@heroicons/react/16/solid";import{isValid as $c}from"date-fns";import*as tt from"react";import{ChevronDownIcon as Gr,ChevronUpIcon as _c,CheckIcon as Fc,XCircleIcon as Bc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Oc}from"@heroicons/react/24/outline";import*as D from"@radix-ui/react-select";import{jsx as j,jsxs as jo}from"react/jsx-runtime";var Qo=tt.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},m)=>jo("div",{ref:m,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&j("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),j(D.Root,{disabled:s,...l,children:o}),a&&jo("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?j(Bc,{width:16,height:16}):j(Oc,{width:16,height:16}),j("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Uo=D.Value,wo=tt.forwardRef(({className:e,children:o,...t},a)=>jo(D.Trigger,{ref:a,className:r("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[j("div",{className:"line-clamp-1 text-left",children:o}),j(D.Icon,{asChild:!0,children:j(Gr,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));wo.displayName=D.Trigger.displayName;var xi=tt.forwardRef(({className:e,...o},t)=>j(D.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:j(_c,{className:"h-5 w-5"})}));xi.displayName=D.ScrollUpButton.displayName;var bi=tt.forwardRef(({className:e,...o},t)=>j(D.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:j(Gr,{className:"h-5 w-5"})}));bi.displayName=D.ScrollDownButton.displayName;var No=tt.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>j(D.Portal,{children:jo(D.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[j(xi,{}),j(D.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),j(bi,{})]})}));No.displayName=D.Content.displayName;var qo=tt.forwardRef(({className:e,children:o,...t},a)=>j(D.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),$r=tt.forwardRef(({className:e,...o},t)=>j(D.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));$r.displayName=D.Label.displayName;var It=tt.forwardRef(({className:e,children:o,...t},a)=>jo(D.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[j("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:j(D.ItemIndicator,{children:j(Fc,{className:"h-4 w-4 text-pink-500"})})}),j(D.ItemText,{children:o})]})),jr=tt.forwardRef(({className:e,...o},t)=>j(D.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));jr.displayName=D.Separator.displayName;var Qr=["Th\xE1ng 01","Th\xE1ng 02","Th\xE1ng 03","Th\xE1ng 04","Th\xE1ng 05","Th\xE1ng 06","Th\xE1ng 07","Th\xE1ng 08","Th\xE1ng 09","Th\xE1ng 10","Th\xE1ng 11","Th\xE1ng 12"],Ur=["January","February","March","April","May","June","July","August","September","October","November","December"],yi=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},qr=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,l)=>n-l)};import{jsx as ee,jsxs as ot}from"react/jsx-runtime";var jc=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:c=1900,toYear:d=new Date().getFullYear(),disableUnselect:p=!1})=>{let[u,h]=Xr(o??null),R=Math.min(c,d),P=Math.max(c,d),S=l==="MM/yyyy",H=(C,ie)=>{if(ie===0){h(void 0),t?.(void 0);return}let Q=u?.getFullYear()||new Date().getFullYear(),ga=u?.getMonth()??0,$t=u?.getDate()??1;C==="month"&&ie!==null&&(ga=ie-1),C==="year"&&ie!==null&&(Q=ie),S?$t=1:C==="day"&&ie!==null&&($t=ie);let ur=yi(Q,ga+1).daysInMonth;$t>ur&&($t=1);let zo=new Date(Q,ga,$t);$c(zo)&&(h(zo),t?.(zo))},[V,z]=Xr(!1),Gt=C=>{z(C)};return Vc(()=>{h(o??null)},[o]),ot("div",{className:r("relative",s&&"cursor-no-drop"),children:[ot("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",V&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",u?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&ee("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),ot("div",{className:"flex h-full flex-row divide-x",children:[!S&&ot(Qo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:C=>H("day",parseInt(C,10)),onOpenChange:Gt,className:"w-[30%]",children:[ee(wo,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Uo,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),ee(No,{onCloseAutoFocus:C=>C.preventDefault(),children:ot(qo,{children:[!p&&ee(It,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:yi(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(C,ie)=>(ie+1).toString().padStart(2,"0")).map(C=>ee(It,{value:C,children:C},C))]})})]}),ot(Qo,{value:u?(u.getMonth()+1).toString():"",onValueChange:C=>H("month",parseInt(C,10)),onOpenChange:Gt,className:r(S?"w-1/2":"w-2/5"),children:[ee(wo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Uo,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),ee(No,{onCloseAutoFocus:C=>C.preventDefault(),children:ot(qo,{children:[!p&&ee(It,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(C,ie)=>ie+1).map(C=>ee(It,{value:C.toString(),children:m==="vi"?Qr[C-1]:Ur[C-1]},C))]})})]}),ot(Qo,{value:u?u.getFullYear().toString():"",onValueChange:C=>H("year",parseInt(C,10)),onOpenChange:Gt,className:r(S?"w-1/2":"w-[30%]"),children:[ee(wo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Uo,{placeholder:m==="vi"?"N\u0103m":"Year"})}),ee(No,{onCloseAutoFocus:C=>C.preventDefault(),children:ot(qo,{children:[!p&&ee(It,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),qr(R,P).map(C=>ee(It,{value:C.toString(),children:C},C))]})})]})]})]}),i&&ot("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?ee(Gc,{width:16,height:16,className:"text-red-500"}):ee(Wc,{width:16,height:16,className:"text-gray-500"}),ee("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};import*as qt from"react";import*as B from"@radix-ui/react-alert-dialog";import{jsx as Ct,jsxs as qc}from"react/jsx-runtime";var Qc=B.Root,Uc=B.Trigger,Yr=B.Portal,wi=qt.forwardRef(({className:e,...o},t)=>Ct(B.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));wi.displayName=B.Overlay.displayName;var Zr=qt.forwardRef(({className:e,...o},t)=>qc(Yr,{children:[Ct(wi,{}),Ct(B.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));Zr.displayName=B.Content.displayName;var Kr=({className:e,...o})=>Ct("div",{className:r("flex flex-col space-y-2 text-left",e),...o});Kr.displayName="AlertDialogHeader";var Jr=({className:e,...o})=>Ct("div",{className:r("flex flex-row justify-end space-x-4",e),...o});Jr.displayName="AlertDialogFooter";var en=qt.forwardRef(({className:e,...o},t)=>Ct(B.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));en.displayName=B.Title.displayName;var tn=qt.forwardRef(({className:e,...o},t)=>Ct(B.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));tn.displayName=B.Description.displayName;var on=qt.forwardRef(({className:e,...o},t)=>Ct(B.Action,{ref:t,className:r(qe({variant:"primary"}),"",e),...o}));on.displayName=B.Action.displayName;var an=qt.forwardRef(({className:e,...o},t)=>Ct(B.Cancel,{ref:t,className:r(qe({variant:"secondary"}),e),...o}));an.displayName=B.Cancel.displayName;import{memo as ad,useState as id}from"react";import{useEffect as Xc,useState as nn}from"react";import{motion as Yc}from"motion/react";import*as rn from"@radix-ui/react-aspect-ratio";var F=rn.Root;import{Fragment as sn,jsx as te,jsxs as Xo}from"react/jsx-runtime";var Zc=({guideGroup:e,mockup:o})=>{let[t,a]=nn(),[i,n]=nn(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Xc(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),te(sn,{children:e?.stepList&&e?.stepList?.length>0&&Xo("div",{className:"flex flex-nowrap justify-center mx-auto max-w-3xl",children:[te("div",{className:"flex-none w-64 h-auto",children:Xo("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&Xo(sn,{children:[te("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),te("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:Xo(ue,{setApi:a,children:[te(ge,{className:"ml-0",children:e?.stepList.map((l,m)=>te(le,{className:"pl-0",children:te(F,{ratio:o==="small"?540/960:540/1168,children:l?.image&&te("img",{src:l.image,className:"object-contain size-full",alt:l.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":"0","data-puck-array-field":"stepList","data-puck-array-index-nested":m?.toString()??"","data-puck-nested-field":"image"})})},m))}),te(vo,{className:"left-1 text-white border-none bg-gray-900/30 hover:bg-gray-900/40 disabled:hidden"}),te(ho,{className:"right-1 text-white border-none bg-gray-900/30 hover:bg-gray-900/40 disabled:hidden"})]})})]})}),te("div",{className:"flex flex-auto pt-4 pl-12",children:te("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>Xo("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",m+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[te("div",{className:r("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),te("div",{className:r("text-sm font-medium",m+1===i?"text-pink-500":"text-gray-900"),children:g(l.title)}),l.content&&te(Yc.div,{initial:"closed",animate:m+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:te("div",{className:"mt-3 text-sm text-gray-700",children:g(l.content)})})]},m))})})]})})},Ni=Zc;import{useEffect as Kc,useRef as Jc,useState as ka}from"react";import{ChevronRightIcon as ln}from"@heroicons/react/20/solid";import ed from"embla-carousel-autoplay";import{Fragment as Pi,jsx as w,jsxs as ye}from"react/jsx-runtime";var td=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=ka(0),[s,l]=ka();return Kc(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:w(Be,{open:e,onOpenChange:o,children:ye(Ie,{position:"bottom",height:"full",children:[w(po,{children:w(fo,{className:"line-clamp-1",children:t?.title})}),ye(Xe,{className:"grid overflow-hidden p-0",children:[w(ue,{setApi:l,className:"grid overflow-hidden",children:w(ge,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>w(le,{className:"pl-0 w-full h-full",children:ye("div",{className:"flex overflow-y-auto flex-col h-full",children:[w("div",{className:"flex relative flex-none justify-center p-5 w-full bg-gray-100",children:w("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:ye("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&ye(Pi,{children:[w("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),w("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:w(F,{ratio:a==="small"?540/960:540/1168,children:m?.image&&w("img",{src:m.image,className:"object-contain size-full",alt:m.title})})})]})})}),ye("div",{className:"p-5 pb-12",children:[w("div",{className:"font-semibold",children:g(m.title)}),m?.content&&w("div",{className:"mt-3 text-sm text-gray-800",children:g(m.content)})]})]})},c))})}),w("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)=>w("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},od=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=ka(!1),[n,s]=ka(null),l=Jc(ed({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),i(!0)};return e?.length===0?null:ye(Pi,{children:[e?.length>1?w("div",{className:"grid grid-cols-1 -mx-5 md:mx-0",children:e.map((c,d)=>ye("div",{className:"flex relative flex-nowrap items-center pl-5 space-x-4 cursor-pointer",onClick:()=>m(d),children:[w("div",{className:"flex overflow-hidden justify-center p-2 pb-0 w-20 h-28 bg-gray-100 rounded-t-lg borde",children:(c?.avatar||c?.stepList?.[0]?.image)&&w("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"object-cover object-top w-full h-full",alt:c.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":d,"data-puck-nested-field":"avatar"})}),ye("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8",d+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[ye("div",{className:"py-2",children:[t&&w("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),w("div",{className:"font-semibold",children:g(c.title)}),c?.description&&w("div",{className:"mt-1 text-sm text-gray-500",children:g(c.description)})]}),w("div",{className:"absolute right-4 top-1/2 text-gray-500 -translate-y-1/2",children:w(ln,{className:"w-6 h-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&ye("div",{className:"flex flex-col flex-wrap gap-y-6 justify-center mx-auto max-w-3xl",children:[w("div",{className:"overflow-hidden relative flex-none w-full max-h-96",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:w("div",{className:"mx-auto w-72 h-auto",children:ye("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&ye(Pi,{children:[w("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),w("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:w(ue,{plugins:[l.current],children:w(ge,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>w(le,{className:"pl-0",onClick:()=>m(0),children:w(F,{ratio:o==="small"?540/960:540/1168,children:c?.image&&w("img",{src:c.image,className:"object-contain size-full",alt:c.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":0,"data-puck-array-field":"stepList","data-puck-array-index-nested":d?d?.toString():"","data-puck-nested-field":"image"})})},d))})})})]})})}),w("div",{className:"flex flex-none justify-center w-full",children:ye(fe,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",w(ln,{className:"ml-1 w-5 h-5"})]})})]}),a&&w(td,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},mn=od;import{Fragment as rd,jsx as me,jsxs as Yo}from"react/jsx-runtime";var cn=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return me("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:me("path",{d:t.d,fill:"currentColor"})})},Ci=ad(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=id(t?.[0]?.title||"");return Yo(rd,{children:[e&&me(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&Yo(lo,{children:[me(Ue,{lessThan:"md",children:me(mn,{dataGuide:t,mockup:i,isStep:n})}),me(Ue,{greaterThan:"sm",children:t?.length>1?Yo(Nt,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[Yo(xt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[me(bt,{className:"mb-6 text-center",children:me(Ye,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,u)=>{let h=u===t.length-1,R=c===p?.title||"";return Yo(Ze,{value:p.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",R&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&me(cn,{direction:"left",className:r("right-full top-0",R?"text-pink-500":"text-pink-100")}),p.title,n&&!h&&me(cn,{direction:"right",className:r("left-full top-0",R?"text-pink-500":"text-pink-100")})]},p.title+u)})})}),me(yt,{}),me(wt,{})]}),t.map((p,u)=>me(Ke,{value:p.title,children:me(Ni,{guideGroup:p,mockup:i})},p.title+u))]}):t?.length===1&&t[0]&&me(Ni,{guideGroup:t[0],mockup:i})})]}),a&&me(b,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as md,jsx as Zo}from"react/jsx-runtime";var nd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return Zo(Ci,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return Zo(Ci,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},sd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>Zo(md,{children:nd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),ld=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>Zo(W,{className:r(n),background:s,idSection:e,children:Zo(sd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:m,isStep:c})});import{ChevronLeft as cd,ChevronRight as dd}from"lucide-react";import{Fragment as pd,jsx as Le,jsxs as dn}from"react/jsx-runtime";function pn({current:e,total:o,onChange:t}){let a=i=>Le("li",{children:Le("button",{className:r(Ut({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return Le("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:dn("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Le("li",{children:Le("button",{className:r(Ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Le(cd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):dn(pd,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Le("li",{children:Le("button",{className:r(Ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&Le("button",{className:r(Ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Le("li",{children:Le("button",{className:r(Ut({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Le(dd,{className:"h-4 w-4"})})})]})})}import{forwardRef as fd}from"react";import{QuestionMarkCircleIcon as ud}from"@heroicons/react/24/outline";import{XCircleIcon as gd}from"@heroicons/react/24/solid";import{jsx as Po,jsxs as fn}from"react/jsx-runtime";var vd=fd(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...m},c)=>fn("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&Po("span",{className:r("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),Po("textarea",{disabled:e,ref:c,className:r("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...m}),t&&fn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?Po(gd,{width:16,height:16,className:"text-red-500"}):Po(ud,{width:16,height:16,className:"text-gray-500"}),Po("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Po("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 Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
94
94
  color: rgb(var(--mobase-red-500) / 1);
95
95
  }
96
96
  }
97
- `})]}));import*as Sa from"react";var hd=1,xd=1e6;var Ri=0;function bd(){return Ri=(Ri+1)%Number.MAX_SAFE_INTEGER,Ri.toString()}var ki=new Map,gn=e=>{if(ki.has(e))return;let o=setTimeout(()=>{ki.delete(e),Ko({type:"REMOVE_TOAST",toastId:e})},xd);ki.set(e,o)},yd=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,hd)};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}},ka=[],Ta={toasts:[]};function Ko(e){Ta=yd(Ta,e),ka.forEach(o=>{o(Ta)})}function un({...e}){let o=bd(),t=i=>Ko({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>Ko({type:"DISMISS_TOAST",toastId:o});return Ko({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function Ti(){let[e,o]=Sa.useState(Ta);return Sa.useEffect(()=>(ka.push(o),()=>{let t=ka.indexOf(o);t>-1&&ka.splice(t,1)}),[e]),{...e,toast:un,dismiss:t=>Ko({type:"DISMISS_TOAST",toastId:t})}}import*as Xt from"react";import{CheckCircleIcon as wd,ExclamationTriangleIcon as Nd,InformationCircleIcon as Pd,XMarkIcon as Cd}from"@heroicons/react/20/solid";import*as Y from"@radix-ui/react-toast";import{cva as Rd}from"class-variance-authority";import{jsx as Rt,jsxs as vn}from"react/jsx-runtime";var hn=Y.Provider,Si=Xt.forwardRef(({className:e,...o},t)=>Rt(Y.Viewport,{ref:t,className:r("fixed bottom-0 left-0 z-[300] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));Si.displayName=Y.Viewport.displayName;var kd=Rd("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"}}),Di=Xt.forwardRef(({className:e,variant:o="success",children:t,...a},i)=>vn(Y.Root,{ref:i,className:r(kd({variant:o}),e),...a,children:[vn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&Rt(wd,{className:"h-5 w-5 text-green-500"}),o==="warning"&&Rt(Nd,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&Rt(Pd,{className:"h-5 w-5 text-red-500"})]}),t]}));Di.displayName=Y.Root.displayName;var xn=Xt.forwardRef(({className:e,...o},t)=>Rt(Y.Action,{ref:t,className:r("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));xn.displayName=Y.Action.displayName;var Mi=Xt.forwardRef(({className:e,...o},t)=>Rt(Y.Close,{ref:t,className:r("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:Rt(Cd,{className:"h-5 w-5"})}));Mi.displayName=Y.Close.displayName;var Ii=Xt.forwardRef(({className:e,...o},t)=>Rt(Y.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));Ii.displayName=Y.Title.displayName;var Ai=Xt.forwardRef(({className:e,...o},t)=>Rt(Y.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));Ai.displayName=Y.Description.displayName;import{jsx as Da,jsxs as Li}from"react/jsx-runtime";function Td(){let{toasts:e}=Ti();return Li(hn,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return Li(Di,{...n,children:[Li("div",{className:"grid gap-2",children:[t&&Da(Ii,{children:t}),a&&Da(Ai,{children:a})]}),i,Da(Mi,{})]},o)}),Da(Si,{})]})}import*as zi from"react";import*as ze from"@radix-ui/react-tooltip";import{jsx as wn}from"react/jsx-runtime";var Sd=ze.Provider,Dd=ze.Root,Md=ze.Trigger,bn=zi.forwardRef((e,o)=>wn(ze.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));bn.displayName=ze.Arrow.displayName;var yn=zi.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>wn(ze.Content,{ref:i,sideOffset:t,className:r("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));yn.displayName=ze.Content.displayName;import{forwardRef as Id,useEffect as Ad,useRef as Ld,useState as zd}from"react";import{QuestionMarkCircleIcon as Ed,XCircleIcon as Hd,XCircleIcon as _d}from"@heroicons/react/16/solid";import{jsx as At,jsxs as Ei}from"react/jsx-runtime";var Bd=Id(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:c,onClickClear:d,value:p,defaultValue:g,type:h="text",...k},P)=>{let[S,H]=zd(!1),V=Ld(null),z=Q=>{Q&&!S&&H(!0),!Q&&S&&H(!1)},Gt=Q=>{s&&z(Q.target.value),m?.(Q)},C=Q=>{s&&z(Q.target.value),c?.(Q)},ie=()=>{let Q=V.current?.querySelector("input");Q&&(d?.(Q.value),Q.value="",Q.focus(),H(!1))};return Ad(()=>{z(g||p)},[p,g]),Ei("div",{className:r(i,o&&"mobase-text-input-error"),ref:V,children:[Ei("div",{className:"relative",children:[a&&At("span",{className:r("mobase-text-input-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),At("input",{disabled:e,type:h,ref:P,className:r("mobase-text-input-box block h-11 w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",l===2&&"h-12 text-base",n),onChange:Gt,onFocus:C,value:p,defaultValue:g,...k}),s&&S&&At("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 shrink-0 -translate-y-1/2 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:ie,children:At(Hd,{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?At(_d,{width:16,height:16,className:"text-red-500"}):At(Ed,{width:16,height:16,className:"text-gray-500"}),At("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),At("style",{children:`
97
+ `})]}));import*as Sa from"react";var hd=1,xd=1e6;var ki=0;function bd(){return ki=(ki+1)%Number.MAX_SAFE_INTEGER,ki.toString()}var Ri=new Map,un=e=>{if(Ri.has(e))return;let o=setTimeout(()=>{Ri.delete(e),Ko({type:"REMOVE_TOAST",toastId:e})},xd);Ri.set(e,o)},yd=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,hd)};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?un(t):e.toasts.forEach(a=>{un(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}},Ra=[],Ta={toasts:[]};function Ko(e){Ta=yd(Ta,e),Ra.forEach(o=>{o(Ta)})}function gn({...e}){let o=bd(),t=i=>Ko({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>Ko({type:"DISMISS_TOAST",toastId:o});return Ko({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function Ti(){let[e,o]=Sa.useState(Ta);return Sa.useEffect(()=>(Ra.push(o),()=>{let t=Ra.indexOf(o);t>-1&&Ra.splice(t,1)}),[e]),{...e,toast:gn,dismiss:t=>Ko({type:"DISMISS_TOAST",toastId:t})}}import*as Xt from"react";import{CheckCircleIcon as wd,ExclamationTriangleIcon as Nd,InformationCircleIcon as Pd,XMarkIcon as Cd}from"@heroicons/react/20/solid";import*as Y from"@radix-ui/react-toast";import{cva as kd}from"class-variance-authority";import{jsx as kt,jsxs as vn}from"react/jsx-runtime";var hn=Y.Provider,Si=Xt.forwardRef(({className:e,...o},t)=>kt(Y.Viewport,{ref:t,className:r("fixed bottom-0 left-0 z-[300] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));Si.displayName=Y.Viewport.displayName;var Rd=kd("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"}}),Di=Xt.forwardRef(({className:e,variant:o="success",children:t,...a},i)=>vn(Y.Root,{ref:i,className:r(Rd({variant:o}),e),...a,children:[vn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&kt(wd,{className:"h-5 w-5 text-green-500"}),o==="warning"&&kt(Nd,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&kt(Pd,{className:"h-5 w-5 text-red-500"})]}),t]}));Di.displayName=Y.Root.displayName;var xn=Xt.forwardRef(({className:e,...o},t)=>kt(Y.Action,{ref:t,className:r("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));xn.displayName=Y.Action.displayName;var Mi=Xt.forwardRef(({className:e,...o},t)=>kt(Y.Close,{ref:t,className:r("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:kt(Cd,{className:"h-5 w-5"})}));Mi.displayName=Y.Close.displayName;var Ii=Xt.forwardRef(({className:e,...o},t)=>kt(Y.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));Ii.displayName=Y.Title.displayName;var Ai=Xt.forwardRef(({className:e,...o},t)=>kt(Y.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));Ai.displayName=Y.Description.displayName;import{jsx as Da,jsxs as Li}from"react/jsx-runtime";function Td(){let{toasts:e}=Ti();return Li(hn,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return Li(Di,{...n,children:[Li("div",{className:"grid gap-2",children:[t&&Da(Ii,{children:t}),a&&Da(Ai,{children:a})]}),i,Da(Mi,{})]},o)}),Da(Si,{})]})}import*as zi from"react";import*as ze from"@radix-ui/react-tooltip";import{jsx as wn}from"react/jsx-runtime";var Sd=ze.Provider,Dd=ze.Root,Md=ze.Trigger,bn=zi.forwardRef((e,o)=>wn(ze.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));bn.displayName=ze.Arrow.displayName;var yn=zi.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>wn(ze.Content,{ref:i,sideOffset:t,className:r("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));yn.displayName=ze.Content.displayName;import{forwardRef as Id,useEffect as Ad,useRef as Ld,useState as zd}from"react";import{QuestionMarkCircleIcon as Ed,XCircleIcon as Hd,XCircleIcon as _d}from"@heroicons/react/16/solid";import{jsx as At,jsxs as Ei}from"react/jsx-runtime";var Fd=Id(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:c,onClickClear:d,value:p,defaultValue:u,type:h="text",...R},P)=>{let[S,H]=zd(!1),V=Ld(null),z=Q=>{Q&&!S&&H(!0),!Q&&S&&H(!1)},Gt=Q=>{s&&z(Q.target.value),m?.(Q)},C=Q=>{s&&z(Q.target.value),c?.(Q)},ie=()=>{let Q=V.current?.querySelector("input");Q&&(d?.(Q.value),Q.value="",Q.focus(),H(!1))};return Ad(()=>{z(u||p)},[p,u]),Ei("div",{className:r(i,o&&"mobase-text-input-error"),ref:V,children:[Ei("div",{className:"relative",children:[a&&At("span",{className:r("mobase-text-input-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),At("input",{disabled:e,type:h,ref:P,className:r("mobase-text-input-box block h-11 w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",l===2&&"h-12 text-base",n),onChange:Gt,onFocus:C,value:p,defaultValue:u,...R}),s&&S&&At("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 shrink-0 -translate-y-1/2 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:ie,children:At(Hd,{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?At(_d,{width:16,height:16,className:"text-red-500"}):At(Ed,{width:16,height:16,className:"text-gray-500"}),At("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),At("style",{children:`
98
98
  .mobase-text-input-box:hover {
99
99
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
100
100
  }
@@ -117,11 +117,11 @@ import*as Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});import{MinusCircleIcon as Fd,PlusCircleIcon as Od}from"@heroicons/react/24/outline";import{forwardRef as Vd,useState as Wd}from"react";import{jsx as Jo,jsxs as Hi}from"react/jsx-runtime";var Nn=Vd(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[p,g]=Wd(i),h=()=>{let S=Math.min(p+a,t);g(S),n?.(S),l?.(S)},k=()=>{let S=Math.max(p-a,o);g(S),n?.(S),s?.(S)},P=S=>{let H=parseFloat(S.target.value);if(!isNaN(H)){let V=Math.max(Math.min(H,t),o);g(V),n?.(V)}};return Hi("div",{ref:d,className:r("flex items-center ",e),children:[Hi(re,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:k,disabled:m||p<=o,children:[Jo(Fd,{className:"w-7 h-7 "}),Jo("span",{className:"sr-only",children:"Decrease value"})]}),Jo("input",{type:"number",value:p,onChange:P,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}),Hi(re,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:h,disabled:m||p>=t,children:[Jo(Od,{className:"w-7 h-7 "}),Jo("span",{className:"sr-only",children:"Increase value"})]})]})});Nn.displayName="Stepper";import*as Ge from"react";import*as U from"@radix-ui/react-navigation-menu";import{cva as Gd}from"class-variance-authority";import{ChevronDownIcon as $d}from"@heroicons/react/16/solid";import{jsx as at,jsxs as Xd}from"react/jsx-runtime";var Pn=Ge.createContext(null),jd=({value:e,children:o})=>at(Pn.Provider,{value:e,children:o}),Qd=()=>{let e=Ge.useContext(Pn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Ma=Ge.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>at(jd,{value:{alignDropdown:t},children:at(U.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Ma.displayName=U.Root.displayName;var Ia=Ge.forwardRef(({className:e,...o},t)=>at(U.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ia.displayName=U.List.displayName;var Aa=U.Item,La=Gd(qe({variant:"transparent",size:"sm"})),za=Ge.forwardRef(({className:e,children:o,...t},a)=>Xd(U.Trigger,{ref:a,className:r(La(),"group px-2",e),...t,children:[o," ",at($d,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));za.displayName=U.Trigger.displayName;var Ea=Ge.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Qd();return at(U.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Ea.displayName=U.Content.displayName;var ea=U.Link,Ud=Ge.forwardRef(({className:e,...o},t)=>at("div",{className:r("absolute left-0 top-full flex justify-center"),children:at(U.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Ud.displayName=U.Viewport.displayName;var qd=Ge.forwardRef(({className:e,...o},t)=>at(U.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:at("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));qd.displayName=U.Indicator.displayName;import*as Rn from"react";import*as ta from"@radix-ui/react-switch";import{jsx as Cn}from"react/jsx-runtime";var kn=Rn.forwardRef(({className:e,...o},t)=>Cn(ta.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Cn(ta.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));kn.displayName=ta.Root.displayName;import*as Yt from"react";import*as Lt from"@radix-ui/react-radio-group";import{Circle as Yd}from"lucide-react";import{cva as Tn}from"class-variance-authority";import{jsx as oa}from"react/jsx-runtime";var Zd=Tn("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"}}),Kd=Tn("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Sn=Yt.createContext({size:"medium"});function Jd(){let e=Yt.useContext(Sn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Dn=Yt.forwardRef(({className:e,size:o,...t},a)=>oa(Sn.Provider,{value:{size:o},children:oa(Lt.Root,{className:r("grid gap-2",e),...t,ref:a})}));Dn.displayName=Lt.Root.displayName;var Mn=Yt.forwardRef(({className:e,...o},t)=>{let a=Jd(),{size:i}=a??{};return oa(Lt.Item,{ref:t,className:r(Zd({size:i}),e),...o,children:oa(Lt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:oa(Yd,{className:r(Kd({size:i}))})})})});Mn.displayName=Lt.Item.displayName;import{useState as up}from"react";import{ArrowDownTrayIcon as vp}from"@heroicons/react/16/solid";import{useEffect as rp,useState as zn}from"react";import{AnimatePresence as np,domAnimation as sp,LazyMotion as lp,motion as _i}from"motion/react";import{useKey as mp}from"react-use";var Ha=[.24,.25,.05,1];import{motion as tp}from"motion/react";import{jsx as aa,jsxs as In}from"react/jsx-runtime";var ep=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return aa("li",{className:"min-h-8",children:In("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&aa("div",{className:"w-6 h-6 shrink-0",children:aa("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),In("div",{className:" ",children:[aa("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&aa("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},An=ep;import{jsx as Zt,jsxs as ip}from"react/jsx-runtime";var op={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Ha}},exit:{opacity:0,transition:{duration:.05}}},ap=({data:e})=>Zt(pt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return Zt(tp.div,{variants:op,children:o.hasDropdown?ip(ft,{value:o.id,children:[Zt(gt,{className:"py-3",children:o.title}),Zt(ut,{children:Zt("ul",{className:r("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>Zt(An,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):Zt("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),Ln=ap;import{jsx as I,jsxs as ve}from"react/jsx-runtime";var cp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,dp=({data:e,className:o})=>{let[t,a]=zn(!1),[i,n]=zn(!1);mp("Escape",()=>a(!1)),rp(()=>{if(!t)return;let m=cp();function c(){a(!1)}function d(){a(!1),n(!0)}function p(P){let S=P.target;((S.closest&&S.closest("a"))?.getAttribute("href")||S.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let g=()=>{c()},h=history.pushState,k=history.replaceState;return history.pushState=((...P)=>{let S=h.apply(history,P);return g(),S}),history.replaceState=((...P)=>{let S=k.apply(history,P);return g(),S}),window.addEventListener("popstate",g),window.addEventListener("hashchange",d),window.addEventListener("click",p,!0),()=>{i||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),history.pushState=h,history.replaceState=k,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:Ha}},exit:{opacity:0,transition:{duration:.15}}};return ve("div",{className:r(o),children:[ve("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[I("span",{className:"sr-only",children:"Navigation"}),I(_i.div,{animate:t?"hidden":"visible",variants:s,children:I("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),I(_i.div,{animate:t?"visible":"hidden",variants:s,children:I("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),I(lp,{features:sp,children:I(np,{mode:"wait",children:t&&ve(_i.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[I(Ln,{data:e}),ve("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"}),ve("div",{className:"flex flex-nowrap",children:[I("div",{className:"flex-initial",children:I("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children: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("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children: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"}),ve("ul",{className:"mb-2 text-sm text-gray-500",children:[ve("li",{className:"mb-1",children:["Hotline :\xA0",I("a",{href:`tel:${dt.Support.Hotline}`,className:"text-gray-600",children:dt.Support.Hotline_Format})]}),ve("li",{className:"mb-1",children:["Email :\xA0",I("a",{href:`mailto:${dt.Support.Email}`,className:"text-gray-600",children:dt.Support.Email})]})]}),I("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:ve("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[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:ve("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 Bd,PlusCircleIcon as Od}from"@heroicons/react/24/outline";import{forwardRef as Vd,useState as Wd}from"react";import{jsx as Jo,jsxs as Hi}from"react/jsx-runtime";var Nn=Vd(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[p,u]=Wd(i),h=()=>{let S=Math.min(p+a,t);u(S),n?.(S),l?.(S)},R=()=>{let S=Math.max(p-a,o);u(S),n?.(S),s?.(S)},P=S=>{let H=parseFloat(S.target.value);if(!isNaN(H)){let V=Math.max(Math.min(H,t),o);u(V),n?.(V)}};return Hi("div",{ref:d,className:r("flex items-center ",e),children:[Hi(re,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:R,disabled:m||p<=o,children:[Jo(Bd,{className:"w-7 h-7 "}),Jo("span",{className:"sr-only",children:"Decrease value"})]}),Jo("input",{type:"number",value:p,onChange:P,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}),Hi(re,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:h,disabled:m||p>=t,children:[Jo(Od,{className:"w-7 h-7 "}),Jo("span",{className:"sr-only",children:"Increase value"})]})]})});Nn.displayName="Stepper";import*as Ge from"react";import*as U from"@radix-ui/react-navigation-menu";import{cva as Gd}from"class-variance-authority";import{ChevronDownIcon as $d}from"@heroicons/react/16/solid";import{jsx as at,jsxs as Xd}from"react/jsx-runtime";var Pn=Ge.createContext(null),jd=({value:e,children:o})=>at(Pn.Provider,{value:e,children:o}),Qd=()=>{let e=Ge.useContext(Pn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Ma=Ge.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>at(jd,{value:{alignDropdown:t},children:at(U.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Ma.displayName=U.Root.displayName;var Ia=Ge.forwardRef(({className:e,...o},t)=>at(U.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ia.displayName=U.List.displayName;var Aa=U.Item,La=Gd(qe({variant:"transparent",size:"sm"})),za=Ge.forwardRef(({className:e,children:o,...t},a)=>Xd(U.Trigger,{ref:a,className:r(La(),"group px-2",e),...t,children:[o," ",at($d,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));za.displayName=U.Trigger.displayName;var Ea=Ge.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Qd();return at(U.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Ea.displayName=U.Content.displayName;var ea=U.Link,Ud=Ge.forwardRef(({className:e,...o},t)=>at("div",{className:r("absolute left-0 top-full flex justify-center"),children:at(U.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Ud.displayName=U.Viewport.displayName;var qd=Ge.forwardRef(({className:e,...o},t)=>at(U.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:at("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));qd.displayName=U.Indicator.displayName;import*as kn from"react";import*as ta from"@radix-ui/react-switch";import{jsx as Cn}from"react/jsx-runtime";var Rn=kn.forwardRef(({className:e,...o},t)=>Cn(ta.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Cn(ta.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Rn.displayName=ta.Root.displayName;import*as Yt from"react";import*as Lt from"@radix-ui/react-radio-group";import{Circle as Yd}from"lucide-react";import{cva as Tn}from"class-variance-authority";import{jsx as oa}from"react/jsx-runtime";var Zd=Tn("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"}}),Kd=Tn("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Sn=Yt.createContext({size:"medium"});function Jd(){let e=Yt.useContext(Sn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Dn=Yt.forwardRef(({className:e,size:o,...t},a)=>oa(Sn.Provider,{value:{size:o},children:oa(Lt.Root,{className:r("grid gap-2",e),...t,ref:a})}));Dn.displayName=Lt.Root.displayName;var Mn=Yt.forwardRef(({className:e,...o},t)=>{let a=Jd(),{size:i}=a??{};return oa(Lt.Item,{ref:t,className:r(Zd({size:i}),e),...o,children:oa(Lt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:oa(Yd,{className:r(Kd({size:i}))})})})});Mn.displayName=Lt.Item.displayName;import{useState as gp}from"react";import{ArrowDownTrayIcon as vp}from"@heroicons/react/16/solid";import{useEffect as rp,useState as zn}from"react";import{AnimatePresence as np,domAnimation as sp,LazyMotion as lp,motion as _i}from"motion/react";import{useKey as mp}from"react-use";var Ha=[.24,.25,.05,1];import{motion as tp}from"motion/react";import{jsx as aa,jsxs as In}from"react/jsx-runtime";var ep=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return aa("li",{className:"min-h-8",children:In("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&aa("div",{className:"w-6 h-6 shrink-0",children:aa("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),In("div",{className:" ",children:[aa("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&aa("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},An=ep;import{jsx as Zt,jsxs as ip}from"react/jsx-runtime";var op={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Ha}},exit:{opacity:0,transition:{duration:.05}}},ap=({data:e})=>Zt(pt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return Zt(tp.div,{variants:op,children:o.hasDropdown?ip(ft,{value:o.id,children:[Zt(ut,{className:"py-3",children:o.title}),Zt(gt,{children:Zt("ul",{className:r("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>Zt(An,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):Zt("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),Ln=ap;import{jsx as I,jsxs as ve}from"react/jsx-runtime";var cp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,dp=({data:e,className:o})=>{let[t,a]=zn(!1),[i,n]=zn(!1);mp("Escape",()=>a(!1)),rp(()=>{if(!t)return;let m=cp();function c(){a(!1)}function d(){a(!1),n(!0)}function p(P){let S=P.target;((S.closest&&S.closest("a"))?.getAttribute("href")||S.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let u=()=>{c()},h=history.pushState,R=history.replaceState;return history.pushState=((...P)=>{let S=h.apply(history,P);return u(),S}),history.replaceState=((...P)=>{let S=R.apply(history,P);return u(),S}),window.addEventListener("popstate",u),window.addEventListener("hashchange",d),window.addEventListener("click",p,!0),()=>{i||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),history.pushState=h,history.replaceState=R,window.removeEventListener("popstate",u),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:Ha}},exit:{opacity:0,transition:{duration:.15}}};return ve("div",{className:r(o),children:[ve("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[I("span",{className:"sr-only",children:"Navigation"}),I(_i.div,{animate:t?"hidden":"visible",variants:s,children:I("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),I(_i.div,{animate:t?"visible":"hidden",variants:s,children:I("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),I(lp,{features:sp,children:I(np,{mode:"wait",children:t&&ve(_i.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[I(Ln,{data:e}),ve("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"}),ve("div",{className:"flex flex-nowrap",children:[I("div",{className:"flex-initial",children:I("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children: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("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children: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"}),ve("ul",{className:"mb-2 text-sm text-gray-500",children:[ve("li",{className:"mb-1",children:["Hotline :\xA0",I("a",{href:`tel:${dt.Support.Hotline}`,className:"text-gray-600",children:dt.Support.Hotline_Format})]}),ve("li",{className:"mb-1",children:["Email :\xA0",I("a",{href:`mailto:${dt.Support.Email}`,className:"text-gray-600",children:dt.Support.Email})]})]}),I("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:ve("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[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:ve("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
124
- c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),I("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),I("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),ve("ul",{className:"mb-2 text-sm text-gray-500",children:[ve("li",{className:"mb-1",children:["Hotline :\xA0",I("a",{className:"text-gray-600",href:`tel:${dt.Business.Phome}`,children:dt.Business.Phome_Format})]}),ve("li",{className:"mb-1",children:["Email :\xA0",ve("a",{href:`mailto:${dt.Business.Email}`,className:"text-gray-600",children:[" ",dt.Business.Email]})]})]}),I("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:ve("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[I("div",{className:"absolute left-1 top-1 ",children:I("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),I("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),I("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},En=dp;import{jsx as Co,jsxs as Hn}from"react/jsx-runtime";var pp=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Co("li",{className:"",children:Co(ea,{asChild:!0,children:Hn("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&Co("div",{className:"w-7 h-7 shrink-0 mt-1",children:Co("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),Hn("div",{className:" ",children:[Co("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&Co("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},_n=pp;import{jsx as zt,jsxs as gp}from"react/jsx-runtime";var fp=({data:e,alignDropdown:o})=>zt(Ma,{alignDropdown:o,children:zt(Ia,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?gp(Aa,{className:"relative",children:[zt(za,{children:t.title}),zt(Ea,{children:zt("ul",{className:r("grid w-[300px] grid-cols-1 p-2",t.dropDownCompact===!1&&"w-[230px]",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>zt(_n,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):zt(Aa,{className:"relative",children:zt(ea,{href:t.url,className:La(),...a,children:t.title})},t.id)})})}),Bn=fp;import{Fragment as hp,jsx as Ee,jsxs as Et}from"react/jsx-runtime";var Fn=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:m,name:c,url:d}=t||{},[p,g]=up(!1);return Et(hp,{children:[Et("div",{className:r(e,"z-40 flex-none w-full lg:z-50",n?"sticky top-0":"relative"),children:[Ee("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Ee("nav",{className:r("grid grid-cols-1 items-center wrapper [--header-height-mobase:64px] lg:border-0"),style:{minHeight:"var(--header-height-mobase)"},children:Et("div",{className:"flex relative items-center",children:[l&&Et("a",{href:"/",title:"MoMo",className:"overflow-hidden flex-none mr-3 w-9 h-9 rounded-none hover:opacity-80",children:[Ee("span",{className:"sr-only",children:"MoMo - \u1EE8ng d\u1EE5ng t\xE0i ch\xEDnh"}),Ee("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"})]}),t&&Et("a",{href:d,title:c,className:r("relative flex flex-none items-center space-x-1 rounded-none hover:opacity-80",l&&"pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-['']"),children:[Ee("img",{src:m,className:"h-9",alt:"MoMo","data-puck-editable":"true","data-puck-component":"HeaderNavigation","data-puck-field":"serviceInfo","data-puck-nested-field":"logo"}),Ee("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:u(c)})]}),Ee("div",{className:r("relative hidden items-center lg:ml-2 lg:flex xl:ml-4",!i&&!a&&"lg:ml-auto xl:ml-auto"),children:Ee(Bn,{data:o,alignDropdown:s})}),Et("div",{className:r("ml-auto flex flex-nowrap items-center space-x-3",!i&&!a&&"lg:ml-0"),children:[i&&i,a&&Et("div",{className:"hidden sm:flex",children:[Et(Me,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",Ee(vp,{className:"mr-1 w-4 h-4"})," T\u1EA3i V\xED MoMo"]}),Ee(jt,{open:p,onOpenChange:()=>g(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Ee(En,{data:o,className:"lg:hidden"})]})]})})]}),Ee("style",{children:`
124
+ c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),I("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),I("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),ve("ul",{className:"mb-2 text-sm text-gray-500",children:[ve("li",{className:"mb-1",children:["Hotline :\xA0",I("a",{className:"text-gray-600",href:`tel:${dt.Business.Phome}`,children:dt.Business.Phome_Format})]}),ve("li",{className:"mb-1",children:["Email :\xA0",ve("a",{href:`mailto:${dt.Business.Email}`,className:"text-gray-600",children:[" ",dt.Business.Email]})]})]}),I("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:ve("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[I("div",{className:"absolute left-1 top-1 ",children:I("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),I("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),I("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},En=dp;import{jsx as Co,jsxs as Hn}from"react/jsx-runtime";var pp=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Co("li",{className:"",children:Co(ea,{asChild:!0,children:Hn("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&Co("div",{className:"w-7 h-7 shrink-0 mt-1",children:Co("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),Hn("div",{className:" ",children:[Co("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&Co("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},_n=pp;import{jsx as zt,jsxs as up}from"react/jsx-runtime";var fp=({data:e,alignDropdown:o})=>zt(Ma,{alignDropdown:o,children:zt(Ia,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?up(Aa,{className:"relative",children:[zt(za,{children:t.title}),zt(Ea,{children:zt("ul",{className:r("grid w-[300px] grid-cols-1 p-2",t.dropDownCompact===!1&&"w-[230px]",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>zt(_n,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):zt(Aa,{className:"relative",children:zt(ea,{href:t.url,className:La(),...a,children:t.title})},t.id)})})}),Fn=fp;import{Fragment as hp,jsx as Ee,jsxs as Et}from"react/jsx-runtime";var Bn=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:m,name:c,url:d}=t||{},[p,u]=gp(!1);return Et(hp,{children:[Et("div",{className:r(e,"z-40 flex-none w-full lg:z-50",n?"sticky top-0":"relative"),children:[Ee("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Ee("nav",{className:r("grid grid-cols-1 items-center wrapper [--header-height-mobase:64px] lg:border-0"),style:{minHeight:"var(--header-height-mobase)"},children:Et("div",{className:"flex relative items-center",children:[l&&Et("a",{href:"/",title:"MoMo",className:"overflow-hidden flex-none mr-3 w-9 h-9 rounded-none hover:opacity-80",children:[Ee("span",{className:"sr-only",children:"MoMo - \u1EE8ng d\u1EE5ng t\xE0i ch\xEDnh"}),Ee("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"})]}),t&&Et("a",{href:d,title:c,className:r("relative flex flex-none items-center space-x-1 rounded-none hover:opacity-80",l&&"pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-['']"),children:[Ee("img",{src:m,className:"h-9",alt:"MoMo","data-puck-editable":"true","data-puck-component":"HeaderNavigation","data-puck-field":"serviceInfo","data-puck-nested-field":"logo"}),Ee("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:g(c)})]}),Ee("div",{className:r("relative hidden items-center lg:ml-2 lg:flex xl:ml-4",!i&&!a&&"lg:ml-auto xl:ml-auto"),children:Ee(Fn,{data:o,alignDropdown:s})}),Et("div",{className:r("ml-auto flex flex-nowrap items-center space-x-3",!i&&!a&&"lg:ml-0"),children:[i&&i,a&&Et("div",{className:"hidden sm:flex",children:[Et(Me,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>u(!0),children:[" ",Ee(vp,{className:"mr-1 w-4 h-4"})," T\u1EA3i V\xED MoMo"]}),Ee(jt,{open:p,onOpenChange:()=>u(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Ee(En,{data:o,className:"lg:hidden"})]})]})})]}),Ee("style",{children:`
125
125
  :root{
126
126
  --nextra-navbar-height: 64px;
127
127
  }
@@ -129,7 +129,7 @@ import*as Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
129
129
  scroll-behavior: smooth;
130
130
  scroll-padding-top: var(--nextra-navbar-height);
131
131
  }
132
- `})]})};Fn.displayName="HeaderNavigation";import{useState as xp}from"react";import{Fragment as yp,jsx as v,jsxs as T}from"react/jsx-runtime";var On=({item:e})=>v("div",{className:"mt-3 flex w-full text-sm",children:T("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&v("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:v("img",{src:e.icon,className:"absolute inset-0"})}),v("span",{className:"block ",children:e.title})]})}),bp=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=xp(null);return T(yp,{children:[v("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:T("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[T("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((i,n)=>v(On,{item:i},n))]}),T("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),v("div",{className:"flex flex-wrap",children:o?.lists?.map((i,n)=>v(On,{item:i},n))})]}),T("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[T("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),T("div",{className:"mt-2 text-sm md:mt-3",children:[v("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),v("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:ur.Address})]}),T("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Hotline : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Hotline}`,children:de.Support.Hotline_Format}),T("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),T("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Email : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${de.Support.Email}`,children:de.Support.Email})]}),T("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_1}`,children:de.Support.Phone_Ext_1_Format}),v("span",{className:"text-white text-opacity-60",children:" - "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_2}`,children:de.Support.Phone_Ext_2_Format}),v("span",{className:"text-white text-opacity-60",children:" - "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_3}`,children:de.Support.Phone_Ext_3_Format}),v("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),v("div",{className:"mt-3 flex",children:v("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:T("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[v("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:v("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:T("g",{children:[v("title",{children:"Asset 1"}),v("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
132
+ `})]})};Bn.displayName="HeaderNavigation";import{useState as xp}from"react";import{Fragment as yp,jsx as v,jsxs as T}from"react/jsx-runtime";var On=({item:e})=>v("div",{className:"mt-3 flex w-full text-sm",children:T("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&v("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:v("img",{src:e.icon,className:"absolute inset-0"})}),v("span",{className:"block ",children:e.title})]})}),bp=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=xp(null);return T(yp,{children:[v("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:T("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[T("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((i,n)=>v(On,{item:i},n))]}),T("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),v("div",{className:"flex flex-wrap",children:o?.lists?.map((i,n)=>v(On,{item:i},n))})]}),T("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[T("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[v("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),T("div",{className:"mt-2 text-sm md:mt-3",children:[v("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),v("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:gr.Address})]}),T("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Hotline : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Hotline}`,children:de.Support.Hotline_Format}),T("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),T("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"Email : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${de.Support.Email}`,children:de.Support.Email})]}),T("div",{className:"mt-1 text-sm",children:[v("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_1}`,children:de.Support.Phone_Ext_1_Format}),v("span",{className:"text-white text-opacity-60",children:" - "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_2}`,children:de.Support.Phone_Ext_2_Format}),v("span",{className:"text-white text-opacity-60",children:" - "}),v("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${de.Support.Phone_Ext_3}`,children:de.Support.Phone_Ext_3_Format}),v("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),v("div",{className:"mt-3 flex",children:v("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:T("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[v("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:v("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:T("g",{children:[v("title",{children:"Asset 1"}),v("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
133
133
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
134
134
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),v("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
135
135
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
@@ -137,14 +137,14 @@ import*as Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
137
137
  footer .button-download {
138
138
  max-width: 150px;
139
139
  }
140
- `})]})},Vn=bp;import{jsx as Wn}from"react/jsx-runtime";var wp=({className:e,primaryMenu:o,secondaryMenu:t})=>Wn("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Wn(Vn,{primaryMenu:o,secondaryMenu:t})});import*as Kt from"react";import{jsx as Ro}from"react/jsx-runtime";var Gn=Kt.forwardRef(({className:e,...o},t)=>Ro("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Gn.displayName="Card";var $n=Kt.forwardRef(({className:e,...o},t)=>Ro("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));$n.displayName="CardHeader";var jn=Kt.forwardRef(({className:e,...o},t)=>Ro("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));jn.displayName="CardTitle";var Qn=Kt.forwardRef(({className:e,...o},t)=>Ro("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Qn.displayName="CardDescription";var Un=Kt.forwardRef(({className:e,...o},t)=>Ro("div",{ref:t,className:r("p-6 pt-0",e),...o}));Un.displayName="CardContent";var qn=Kt.forwardRef(({className:e,...o},t)=>Ro("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));qn.displayName="CardFooter";import*as He from"react";import{Command as we}from"cmdk";import{XCircleIcon as Np,MagnifyingGlassIcon as Pp}from"@heroicons/react/16/solid";import{jsx as Ce,jsxs as Rp}from"react/jsx-runtime";var Bi=He.forwardRef(({className:e,...o},t)=>Ce(we,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));Bi.displayName=we.displayName;var Cp=({children:e,...o})=>Ce(Fe,{...o,children:Ce(Ie,{className:"overflow-hidden p-0 shadow-lg",children:Ce(Bi,{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})})}),Xn=He.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=He.useRef(null),[s,l]=He.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return Rp("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Ce(Pp,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Ce(we.Input,{ref:i,className:r("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),Ce(Np,{onClick:m,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Xn.displayName=we.Input.displayName;var Yn=He.forwardRef(({className:e,...o},t)=>Ce(we.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Yn.displayName=we.List.displayName;var Zn=He.forwardRef((e,o)=>Ce(we.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Zn.displayName=we.Empty.displayName;var Kn=He.forwardRef(({className:e,...o},t)=>Ce(we.Group,{ref:t,className:r("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));Kn.displayName=we.Group.displayName;var Jn=He.forwardRef(({className:e,...o},t)=>Ce(we.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));Jn.displayName=we.Separator.displayName;var es=He.forwardRef(({className:e,children:o,...t},a)=>Ce(we.Item,{ref:a,className:r("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));es.displayName=we.Item.displayName;var ts=({className:e,...o})=>Ce("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});ts.displayName="CommandShortcut";import{ChevronDownIcon as kp}from"@heroicons/react/16/solid";import{jsx as _a,jsxs as os}from"react/jsx-runtime";var Tp=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>os("div",{className:"relative",children:[os(Go,{className:r("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||i,_a(kp,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&_a("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Sp=({children:e,className:o,...t})=>_a(yo,{className:r("border-none !p-0",o),...t,children:e}),Dp=({open:e,onOpenChange:o,children:t,...a})=>_a(Wo,{open:e,onOpenChange:o,...a,children:t});import{forwardRef as Mp}from"react";import{InformationCircleIcon as Ip}from"@heroicons/react/24/outline";import{cva as is}from"class-variance-authority";import{jsx as Fi,jsxs as as}from"react/jsx-runtime";var Ap=is("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"}}),Lp=is("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"}}),ia=Mp(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...m},c)=>as("div",{ref:c,className:r("",i,Ap({typeDiv:e,disabled:n})),...m,children:[as("div",{className:"flex items-center space-x-2",children:[l||Fi(Ip,{className:r(Lp({typeIcon:e,disabled:n})),width:20,height:20}),o&&Fi("div",{children:u(o)})]}),t&&Fi(fe,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as zp,useEffect as Ep,useRef as Hp,useState as _p}from"react";import{MagnifyingGlassIcon as Bp}from"@heroicons/react/20/solid";import{XCircleIcon as Fp}from"@heroicons/react/24/outline";import{jsx as ko,jsxs as rs}from"react/jsx-runtime";var Op=zp(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:c="text",...d},p)=>{let[g,h]=_p(!1),k=Hp(null),P=z=>{z&&!g&&h(!0),!z&&g&&h(!1)},S=z=>{P(z.target.value),i?.(z)},H=z=>{P(z.target.value),n?.(z)},V=()=>{let z=k.current?.querySelector("input");z&&(s?.(z.value),z.value="",z.focus(),h(!1))};return Ep(()=>{P(m||l)},[l,m]),rs("div",{className:r(o),ref:k,children:[rs("div",{className:"relative flex items-center",children:[ko("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:ko(Bp,{className:"w-4 h-4 text-gray-500"})}),ko("input",{disabled:e,type:c,ref:p,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:S,onFocus:H,value:l,defaultValue:m,...d}),g&&ko("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:V,children:ko(Fp,{strokeWidth:2,width:20,height:20})})]}),ko("style",{children:`
140
+ `})]})},Vn=bp;import{jsx as Wn}from"react/jsx-runtime";var wp=({className:e,primaryMenu:o,secondaryMenu:t})=>Wn("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Wn(Vn,{primaryMenu:o,secondaryMenu:t})});import*as Kt from"react";import{jsx as ko}from"react/jsx-runtime";var Gn=Kt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Gn.displayName="Card";var $n=Kt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));$n.displayName="CardHeader";var jn=Kt.forwardRef(({className:e,...o},t)=>ko("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));jn.displayName="CardTitle";var Qn=Kt.forwardRef(({className:e,...o},t)=>ko("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Qn.displayName="CardDescription";var Un=Kt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:r("p-6 pt-0",e),...o}));Un.displayName="CardContent";var qn=Kt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));qn.displayName="CardFooter";import*as He from"react";import{Command as we}from"cmdk";import{XCircleIcon as Np,MagnifyingGlassIcon as Pp}from"@heroicons/react/16/solid";import{jsx as Ce,jsxs as kp}from"react/jsx-runtime";var Fi=He.forwardRef(({className:e,...o},t)=>Ce(we,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));Fi.displayName=we.displayName;var Cp=({children:e,...o})=>Ce(Be,{...o,children:Ce(Ie,{className:"overflow-hidden p-0 shadow-lg",children:Ce(Fi,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Xn=He.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=He.useRef(null),[s,l]=He.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return kp("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Ce(Pp,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Ce(we.Input,{ref:i,className:r("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),Ce(Np,{onClick:m,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Xn.displayName=we.Input.displayName;var Yn=He.forwardRef(({className:e,...o},t)=>Ce(we.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Yn.displayName=we.List.displayName;var Zn=He.forwardRef((e,o)=>Ce(we.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Zn.displayName=we.Empty.displayName;var Kn=He.forwardRef(({className:e,...o},t)=>Ce(we.Group,{ref:t,className:r("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));Kn.displayName=we.Group.displayName;var Jn=He.forwardRef(({className:e,...o},t)=>Ce(we.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));Jn.displayName=we.Separator.displayName;var es=He.forwardRef(({className:e,children:o,...t},a)=>Ce(we.Item,{ref:a,className:r("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));es.displayName=we.Item.displayName;var ts=({className:e,...o})=>Ce("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});ts.displayName="CommandShortcut";import{ChevronDownIcon as Rp}from"@heroicons/react/16/solid";import{jsx as _a,jsxs as os}from"react/jsx-runtime";var Tp=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>os("div",{className:"relative",children:[os(Go,{className:r("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||i,_a(Rp,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&_a("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Sp=({children:e,className:o,...t})=>_a(yo,{className:r("border-none !p-0",o),...t,children:e}),Dp=({open:e,onOpenChange:o,children:t,...a})=>_a(Wo,{open:e,onOpenChange:o,...a,children:t});import{forwardRef as Mp}from"react";import{InformationCircleIcon as Ip}from"@heroicons/react/24/outline";import{cva as is}from"class-variance-authority";import{jsx as Bi,jsxs as as}from"react/jsx-runtime";var Ap=is("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"}}),Lp=is("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"}}),ia=Mp(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...m},c)=>as("div",{ref:c,className:r("",i,Ap({typeDiv:e,disabled:n})),...m,children:[as("div",{className:"flex items-center space-x-2",children:[l||Bi(Ip,{className:r(Lp({typeIcon:e,disabled:n})),width:20,height:20}),o&&Bi("div",{children:g(o)})]}),t&&Bi(fe,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as zp,useEffect as Ep,useRef as Hp,useState as _p}from"react";import{MagnifyingGlassIcon as Fp}from"@heroicons/react/20/solid";import{XCircleIcon as Bp}from"@heroicons/react/24/outline";import{jsx as Ro,jsxs as rs}from"react/jsx-runtime";var Op=zp(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:c="text",...d},p)=>{let[u,h]=_p(!1),R=Hp(null),P=z=>{z&&!u&&h(!0),!z&&u&&h(!1)},S=z=>{P(z.target.value),i?.(z)},H=z=>{P(z.target.value),n?.(z)},V=()=>{let z=R.current?.querySelector("input");z&&(s?.(z.value),z.value="",z.focus(),h(!1))};return Ep(()=>{P(m||l)},[l,m]),rs("div",{className:r(o),ref:R,children:[rs("div",{className:"relative flex items-center",children:[Ro("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:Ro(Fp,{className:"w-4 h-4 text-gray-500"})}),Ro("input",{disabled:e,type:c,ref:p,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:S,onFocus:H,value:l,defaultValue:m,...d}),u&&Ro("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:V,children:Ro(Bp,{strokeWidth:2,width:20,height:20})})]}),Ro("style",{children:`
141
141
  .mobase-text-input-box:hover {
142
142
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
143
143
  }
144
144
  .mobase-text-input-box:focus {
145
145
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
146
146
  }
147
- `})]})});import*as Re from"@radix-ui/react-dialog";import ss,{useContext as Vp,useEffect as ns,useState as Oi}from"react";import{X as Wp}from"lucide-react";import Gp from"lodash";import{jsx as ae,jsxs as kt}from"react/jsx-runtime";var ls=ss.createContext(void 0);function ms(){let e=Vp(ls);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Vi=({children:e,open:o,onOpenChange:t,className:a})=>ae(ls.Provider,{value:{open:o,onOpenChange:t},children:ae(Re.Root,{open:o,onOpenChange:t,children:ae("div",{className:r("lightbox-gallery",a),children:e})})}),$p=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=ms(),m=()=>{n?.(),l&&l(!0)};return kt(Re.Trigger,{className:r("",a),onClick:m,children:[e,ae(B,{ratio:s,className:"rounded-lg cursor-pointer",children:ae("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},cs=ss.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=ms(),n=()=>{i&&i(!1)};return kt(Re.Portal,{children:[ae(Re.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),kt(Re.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,kt(Re.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[ae(Wp,{className:"h-4 w-4 mt-0.5"}),ae("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});cs.displayName=Re.Content.displayName;var Wi=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=Oi(""),[l,m]=Oi(),[c,d]=Oi(0);ns(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=g=>{let h=Gp.filter(e,(P,S)=>S===(g>0?g-1:g)),k=h.length>0?h[0]?.titleImage:"";s(k)};return ns(()=>{p(c)},[c]),kt(cs,{className:"flex py-0",children:[kt("div",{className:" flex-1 relative",children:[kt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),kt(ge,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ae(ue,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,h)=>ae(le,{className:"pl-6 md:pl-4",children:kt("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[ae("div",{className:"flex-1 relative",children:ae("img",{src:g.url,alt:"",className:"absolute h-full w-full object-contain"})}),ae("div",{className:"flex-0",children:ae("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:ae("div",{className:"line-clamp-3",children:n})})})]})},h))}),ae(vo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ae(ho,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ae("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as Ht from"react";import{CheckIcon as jp}from"@heroicons/react/16/solid";import*as ra from"@radix-ui/react-checkbox";import*as _t from"@radix-ui/react-radio-group";import{Circle as Qp}from"lucide-react";import{jsx as it,jsxs as fs}from"react/jsx-runtime";var ds=Ht.createContext({hideIndicator:!1});function Up(){let e=Ht.useContext(ds);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ba=Ht.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>it(ds.Provider,{value:{hideIndicator:o},children:it(_t.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Ba.displayName=_t.Root.displayName;var Fa=Ht.forwardRef(({className:e,children:o,...t},a)=>{let i=Up(),{hideIndicator:n}=i??{};return fs(_t.Item,{ref:a,className:r("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[it("div",{className:"min-w-0 flex-1",children:o}),!n&&it("div",{className:r("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:it(_t.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:it(Qp,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Fa.displayName=_t.Item.displayName;var ps=Ht.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>fs(ra.Root,{ref:i,className:r("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[it("div",{className:"min-w-0 flex-1",children:o}),!t&&it("div",{className:"ring-offset-background h-4 w-4 shrink-0 rounded border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-300 group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:it(ra.Indicator,{className:r("flex items-center justify-center text-current"),children:it(jp,{className:"h-4 w-4"})})})]}));ps.displayName=ra.Root.displayName;import{cva as qp}from"class-variance-authority";import{jsx as Yp}from"react/jsx-runtime";var gs=qp("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 Xp({className:e,variant:o,...t}){return Yp("div",{className:r(gs({variant:o}),e),...t})}import*as vs from"react";import*as na from"@radix-ui/react-progress";import{cva as hs}from"class-variance-authority";import{jsx as us}from"react/jsx-runtime";var Zp=hs("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"}}),Kp=hs("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"}}),xs=vs.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>us(na.Root,{ref:s,className:r("",Kp({size:a}),e),...n,children:us(na.Indicator,{className:r("",Zp({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));xs.displayName=na.Root.displayName;import{jsx as Jp}from"react/jsx-runtime";function Oa({className:e,...o}){return Jp("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as ef,jsx as Jt,jsxs as bs}from"react/jsx-runtime";function Gi({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return Jt("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return bs("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>Jt("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),Jt("style",{children:`
147
+ `})]})});import*as ke from"@radix-ui/react-dialog";import ss,{useContext as Vp,useEffect as ns,useState as Oi}from"react";import{X as Wp}from"lucide-react";import Gp from"lodash";import{jsx as ae,jsxs as Rt}from"react/jsx-runtime";var ls=ss.createContext(void 0);function ms(){let e=Vp(ls);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Vi=({children:e,open:o,onOpenChange:t,className:a})=>ae(ls.Provider,{value:{open:o,onOpenChange:t},children:ae(ke.Root,{open:o,onOpenChange:t,children:ae("div",{className:r("lightbox-gallery",a),children:e})})}),$p=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=ms(),m=()=>{n?.(),l&&l(!0)};return Rt(ke.Trigger,{className:r("",a),onClick:m,children:[e,ae(F,{ratio:s,className:"rounded-lg cursor-pointer",children:ae("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},cs=ss.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=ms(),n=()=>{i&&i(!1)};return Rt(ke.Portal,{children:[ae(ke.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),Rt(ke.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,Rt(ke.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[ae(Wp,{className:"h-4 w-4 mt-0.5"}),ae("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});cs.displayName=ke.Content.displayName;var Wi=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=Oi(""),[l,m]=Oi(),[c,d]=Oi(0);ns(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=u=>{let h=Gp.filter(e,(P,S)=>S===(u>0?u-1:u)),R=h.length>0?h[0]?.titleImage:"";s(R)};return ns(()=>{p(c)},[c]),Rt(cs,{className:"flex py-0",children:[Rt("div",{className:" flex-1 relative",children:[Rt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),Rt(ue,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ae(ge,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,h)=>ae(le,{className:"pl-6 md:pl-4",children:Rt("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[ae("div",{className:"flex-1 relative",children:ae("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),ae("div",{className:"flex-0",children:ae("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:ae("div",{className:"line-clamp-3",children:n})})})]})},h))}),ae(vo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ae(ho,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ae("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as Ht from"react";import{CheckIcon as jp}from"@heroicons/react/16/solid";import*as ra from"@radix-ui/react-checkbox";import*as _t from"@radix-ui/react-radio-group";import{Circle as Qp}from"lucide-react";import{jsx as it,jsxs as fs}from"react/jsx-runtime";var ds=Ht.createContext({hideIndicator:!1});function Up(){let e=Ht.useContext(ds);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Fa=Ht.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>it(ds.Provider,{value:{hideIndicator:o},children:it(_t.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Fa.displayName=_t.Root.displayName;var Ba=Ht.forwardRef(({className:e,children:o,...t},a)=>{let i=Up(),{hideIndicator:n}=i??{};return fs(_t.Item,{ref:a,className:r("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[it("div",{className:"min-w-0 flex-1",children:o}),!n&&it("div",{className:r("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:it(_t.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:it(Qp,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Ba.displayName=_t.Item.displayName;var ps=Ht.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>fs(ra.Root,{ref:i,className:r("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[it("div",{className:"min-w-0 flex-1",children:o}),!t&&it("div",{className:"ring-offset-background h-4 w-4 shrink-0 rounded border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-300 group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:it(ra.Indicator,{className:r("flex items-center justify-center text-current"),children:it(jp,{className:"h-4 w-4"})})})]}));ps.displayName=ra.Root.displayName;import{cva as qp}from"class-variance-authority";import{jsx as Yp}from"react/jsx-runtime";var us=qp("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 Xp({className:e,variant:o,...t}){return Yp("div",{className:r(us({variant:o}),e),...t})}import*as vs from"react";import*as na from"@radix-ui/react-progress";import{cva as hs}from"class-variance-authority";import{jsx as gs}from"react/jsx-runtime";var Zp=hs("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"}}),Kp=hs("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"}}),xs=vs.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>gs(na.Root,{ref:s,className:r("",Kp({size:a}),e),...n,children:gs(na.Indicator,{className:r("",Zp({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));xs.displayName=na.Root.displayName;import{jsx as Jp}from"react/jsx-runtime";function Oa({className:e,...o}){return Jp("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as ef,jsx as Jt,jsxs as bs}from"react/jsx-runtime";function Gi({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return Jt("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return bs("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>Jt("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),Jt("style",{children:`
148
148
  .spinner_dots span {
149
149
  animation-name: spinner-dots;
150
150
  animation-duration: 1.4s;
@@ -251,7 +251,7 @@ import*as Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
251
251
  opacity: 0.15;
252
252
  }
253
253
  }
254
- `})]})}})()})}import*as ys from"react";import*as rt from"@radix-ui/react-slider";import{jsx as Bt,jsxs as tf}from"react/jsx-runtime";var ws=ys.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>tf(rt.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Bt(rt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Bt(rt.Range,{className:"absolute h-full bg-pink-500"})}),Bt(rt.Thumb,{className:"group relative",children:Bt("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&Bt("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),Bt(rt.Thumb,{className:"group relative",children:Bt("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&Bt("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));ws.displayName=rt.Root.displayName;import{forwardRef as hf}from"react";import{Fragment as nf,jsx as _e,jsxs as Va}from"react/jsx-runtime";var of=({author:e=""})=>_e("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),af=({author:e,avatar:o})=>_e("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?_e("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):_e(of,{author:e})});function rf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return _e(nf,{children:Va("div",{className:"flex relative items-center space-x-3",children:[_e(af,{avatar:e,author:o}),Va("div",{className:"flex flex-col",children:[o&&_e("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Va("div",{className:"flex items-center space-x-2 text-xs",children:[t&&_e("div",{className:"text-gray-400",children:t}),a&&Va("div",{className:"flex items-center space-x-2",children:[_e("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),_e("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&_e("div",{className:"absolute right-1 top-0",children:_e("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Ns=rf;import{useState as ks}from"react";import{StarIcon as sf}from"@heroicons/react/20/solid";import{jsx as Ps,jsxs as Cs}from"react/jsx-runtime";var lf={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!"},mf={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 cf({point:e,max:o,className:t}){let a=o>5?lf[e||10]:mf[e||5];return Cs("div",{className:r("flex items-center space-x-1",t),children:[Ps(sf,{className:"w-5 h-5 text-yellow-500"}),Ps("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Cs("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Rs=cf;import{useState as df}from"react";import{jsx as pf,jsxs as ff}from"react/jsx-runtime";var $i=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=df(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return ff("div",{className:r(n),children:[s?u(c(e,o)):u(e),e.length>o&&pf("span",{onClick:m,className:r("read-or-hide text-md w-fit cursor-pointer pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as eo,jsxs as Ts}from"react/jsx-runtime";function gf({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=ks(0),[m,c]=ks(!1),d=p=>{c(!0),l(p)};return Ts("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&eo(Rs,{className:"mb-0.5",point:i.point,max:i.max}),e&&eo($i,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&eo("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>eo("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:p}))}),o?.length>0&&Ts(Vi,{open:m,onOpenChange:c,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((p,g)=>eo(B,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:eo("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),eo(Wi,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Ss=gf;import{jsx as vf}from"react/jsx-runtime";function uf({actions:e=[]}){return vf("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Ds=uf;import{jsx as Wa,jsxs as bf}from"react/jsx-runtime";var xf=hf(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:p,isOutStanding:g,limitContent:h=260},k)=>bf("div",{ref:k,className:r("",c?"ml-4 py-4":"py-5"),children:[Wa(Ns,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),Wa(Ss,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:h}),l&&l?.filter(Boolean)?.length>0&&Wa(Ds,{actions:l.filter(Boolean)}),d&&Wa("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:d})]}));import*as Ft from"react";import{cva as yf}from"class-variance-authority";import{CheckIcon as wf}from"@heroicons/react/16/solid";import{XIcon as Nf}from"lucide-react";import{jsx as Ne,jsxs as Ga}from"react/jsx-runtime";var Pf=yf("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"}}),Ms=Ft.createContext("default");function Cf(){let e=Ft.useContext(Ms);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Rf=Ft.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?Ne(Nf,{className:s}):Ga("div",{children:[e==="iconStep"&&Ne("div",{className:s,children:o}),e==="numberStep"&&Ne("div",{children:t}),e==="default"&&(n==="completed"?Ne(wf,{className:s}):Ne("div",{children:t}))]})}),kf=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Ft.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return Ne("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Tf=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:m,icon:c,isError:d,onValueChangeStep:p,...g})=>{let h=Cf();return Ga("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[Ga("div",{className:"flex w-full items-center justify-center gap-2",children:[Ne("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),Ne("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Pf({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",i),...g,children:Ne(Rf,{type:h,icon:c,stepNumber:e,size:t,isError:d,state:o})}),Ne("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Ga("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&Ne("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&Ne("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Sf=({children:e,className:o,type:t="numberStep",...a})=>Ne(Ms.Provider,{value:t,children:Ne("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as Tt from"react";import*as N from"@radix-ui/react-dropdown-menu";import{ChevronRight as Df,Check as Mf}from"lucide-react";import{jsx as he,jsxs as sa}from"react/jsx-runtime";var If=N.Root,Af=N.Trigger,Lf=N.Group,zf=N.Portal,Ef=N.Sub,Hf=N.RadioGroup,Is=Tt.forwardRef(({className:e,inset:o,children:t,...a},i)=>sa(N.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,he(Df,{className:"ml-auto"})]}));Is.displayName=N.SubTrigger.displayName;var As=Tt.forwardRef(({className:e,...o},t)=>he(N.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));As.displayName=N.SubContent.displayName;var Ls=Tt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>he(N.Portal,{children:he(N.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));Ls.displayName=N.Content.displayName;var zs=Tt.forwardRef(({className:e,inset:o,...t},a)=>he(N.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));zs.displayName=N.Item.displayName;var Es=Tt.forwardRef(({className:e,children:o,checked:t,...a},i)=>sa(N.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[sa("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&he("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),he(N.ItemIndicator,{children:he("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:he(Mf,{size:16,strokeWidth:3})})})]}),o]}));Es.displayName=N.CheckboxItem.displayName;var Hs=Tt.forwardRef(({className:e,children:o,...t},a)=>sa(N.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[sa("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[he("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),he(N.ItemIndicator,{children:he("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));Hs.displayName=N.RadioItem.displayName;var _s=Tt.forwardRef(({className:e,inset:o,...t},a)=>he(N.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));_s.displayName=N.Label.displayName;var Bs=Tt.forwardRef(({className:e,...o},t)=>he(N.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));Bs.displayName=N.Separator.displayName;var Fs=({className:e,...o})=>he("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});Fs.displayName="DropdownMenuShortcut";import{Slot as _f}from"@radix-ui/react-slot";var Os=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};import{Fragment as $a,jsx as L,jsxs as nt}from"react/jsx-runtime";var Vs=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>nt($a,{children:[e&&L(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&L("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>L("div",{className:r("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:nt("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[L("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),nt("div",{className:"mt-6 w-full",children:[L("div",{className:"w-full text-xl font-semibold",children:u(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]})]})},i))}),t&&L(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Bf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>nt($a,{children:[e&&L(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&L("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>nt("div",{className:r("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[nt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[L("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&L("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:L(B,{ratio:1,children:L("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),nt("div",{className:"mt-6 w-full",children:[L("div",{className:"w-full text-xl font-semibold",children:u(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]})]},i))}),t&&L(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ff=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>nt($a,{children:[e&&L(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&L("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4",children:o.map((a,i)=>nt("div",{className:r("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&L("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?Os(a.image)?L("img",{src:a.image,className:"block object-cover"}):L(_f,{className:"h-6 w-6 stroke-white stroke-2",children:u(a.image.replace(/\n|\r/g,""))}):a.image}),nt("div",{className:"mt-4 w-full md:mt-6",children:[L("div",{className:"w-full text-xl font-semibold",children:u(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]})]},i))}),t&&L(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Of=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return L(Vs,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return L(Bf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return L(Ff,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return L(Vs,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Vf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>L($a,{children:Of({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Wf=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>L(W,{className:t,idSection:a,background:o,children:L(Vf,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{cva as Gf}from"class-variance-authority";import{CheckIcon as Ws}from"lucide-react";import{Fragment as ji,jsx as xe,jsxs as Gs}from"react/jsx-runtime";var $f=Gf("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}}),jf=({template:e,name:o,image:t,isFeatures:a,idx:i})=>xe(ji,{children:(()=>{switch(e){case 1:case 2:return xe(ji,{children:Gs("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?xe("div",{className:"flex flex-none justify-center items-center w-10 h-10 shrink-0",children:xe("img",{src:t,alt:"",className:"max-w-full","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataFeatures","data-puck-nested-field":"image","data-puck-array-index":i})}):xe("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:xe(Ws,{className:"w-4 h-4 text-pink-500"})}),o&&xe("div",{className:"ml-2",children:u(o)})]})});case 3:return Gs("li",{className:"flex space-x-4 h-full",children:[t?xe("div",{className:"flex flex-none justify-center items-center w-10 h-10 shrink-0",children:xe("img",{src:t,alt:"",className:"max-w-full"})}):xe("div",{className:"flex flex-none justify-center items-center p-1 w-5 h-5 bg-pink-100 rounded-full",children:xe(Ws,{className:"w-4 h-4 text-pink-500"})}),o&&xe("div",{className:"my-auto ml-2 md:my-0",children:u(o)})]});default:return null}})()}),ja=({dataFeatures:e,template:o=1})=>xe(ji,{children:(e?.length??0)>0&&xe("ul",{className:r("",$f({template:o})),children:e?.map((t,a)=>xe(jf,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as Qf}from"lucide-react";import{jsx as Z,jsxs as la}from"react/jsx-runtime";var $s=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,Uf=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>la(lo,{children:[Z(Ue,{greaterThan:"sm",children:la(B,{className:r(""),ratio:$s(o),children:[Z("img",{src:e,className:r("hidden object-cover w-full h-full md:block",t,e?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"}),a&&la(Fe,{children:[Z(Bo,{onClick:i,children:Z("div",{className:"hidden absolute top-0 z-10 justify-center items-center w-full h-full transition-transform cursor-pointer group-hover:scale-105 md:flex",children:Z("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:la("g",{fill:"none",fillRule:"evenodd",children:[Z("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),Z("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),Z(Ie,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:la(Xe,{className:"relative p-4 text-center bg-transparent",children:[Z("div",{className:"aspect-[16/9] w-full p-0",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"w-full h-full"})}),Z(ri,{asChild:!0,children:Z(re,{variant:"secondary",className:"absolute top-0 right-0 rounded-full",size:"sm",children:Z(Qf,{className:"w-6 h-6"})})})]})})]})]})}),a&&Z(Ue,{lessThan:"md",children:Z("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"object-cover w-full h-full md:hidden"})})})]}),Qa=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>Z("div",{className:a,children:n?Z(Uf,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):Z(B,{ratio:$s(t),children:Z("img",{src:o,className:r("object-cover w-full h-full",i,o?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})});import{Fragment as Xf,jsx as Ua,jsxs as Qi}from"react/jsx-runtime";var qf=({value:e,suffix:o,unit:t,description:a,idx:i})=>Qi("div",{className:r(""),children:[e&&Qi("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Qi("span",{children:[o," ",t]})]}),a&&Ua("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:u(a)})]}),qa=({dataStats:e})=>Ua(Xf,{children:(e?.length??0)>0&&Ua("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>Ua(qf,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as js,jsx as K,jsxs as ma}from"react/jsx-runtime";var Ui=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ma("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[ma("div",{className:"col-span-1 ",children:[K(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),K(ja,{dataFeatures:t,template:a}),o&&K(b,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),K(qa,{dataStats:i})]}),K("div",{className:"col-span-1 md:pl-10",children:s||K(Qa,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Qs=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ma("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[K("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||K(Qa,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),ma("div",{className:"order-1 col-span-1 md:order-2",children:[K(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),K(ja,{dataFeatures:t,template:a}),o&&K("div",{className:"flex w-full items-center justify-center md:justify-start",children:K(b,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),K(qa,{dataStats:i})]})]}),Us=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ma(js,{children:[K(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&K(b,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),K(ja,{dataFeatures:t,template:a}),K("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:K(qa,{dataStats:i})}),s||K(js,{children:n?.src&&K(Qa,{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 eg,jsx as to}from"react/jsx-runtime";var Yf=`var(
254
+ `})]})}})()})}import*as ys from"react";import*as rt from"@radix-ui/react-slider";import{jsx as Ft,jsxs as tf}from"react/jsx-runtime";var ws=ys.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>tf(rt.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Ft(rt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Ft(rt.Range,{className:"absolute h-full bg-pink-500"})}),Ft(rt.Thumb,{className:"group relative",children:Ft("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&&Ft("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})})}),Ft(rt.Thumb,{className:"group relative",children:Ft("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&&Ft("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})})})]}));ws.displayName=rt.Root.displayName;import{forwardRef as hf}from"react";import{Fragment as nf,jsx as _e,jsxs as Va}from"react/jsx-runtime";var of=({author:e=""})=>_e("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),af=({author:e,avatar:o})=>_e("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?_e("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):_e(of,{author:e})});function rf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return _e(nf,{children:Va("div",{className:"flex relative items-center space-x-3",children:[_e(af,{avatar:e,author:o}),Va("div",{className:"flex flex-col",children:[o&&_e("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Va("div",{className:"flex items-center space-x-2 text-xs",children:[t&&_e("div",{className:"text-gray-400",children:t}),a&&Va("div",{className:"flex items-center space-x-2",children:[_e("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),_e("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&_e("div",{className:"absolute right-1 top-0",children:_e("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Ns=rf;import{useState as Rs}from"react";import{StarIcon as sf}from"@heroicons/react/20/solid";import{jsx as Ps,jsxs as Cs}from"react/jsx-runtime";var lf={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!"},mf={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 cf({point:e,max:o,className:t}){let a=o>5?lf[e||10]:mf[e||5];return Cs("div",{className:r("flex items-center space-x-1",t),children:[Ps(sf,{className:"w-5 h-5 text-yellow-500"}),Ps("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Cs("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var ks=cf;import{useState as df}from"react";import{jsx as pf,jsxs as ff}from"react/jsx-runtime";var $i=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=df(!0),m=()=>{l(!s)},c=(d,p,u=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(u,p));return ff("div",{className:r(n),children:[s?g(c(e,o)):g(e),e.length>o&&pf("span",{onClick:m,className:r("read-or-hide text-md w-fit cursor-pointer pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as eo,jsxs as Ts}from"react/jsx-runtime";function uf({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=Rs(0),[m,c]=Rs(!1),d=p=>{c(!0),l(p)};return Ts("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&eo(ks,{className:"mb-0.5",point:i.point,max:i.max}),e&&eo($i,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&eo("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>eo("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:p}))}),o?.length>0&&Ts(Vi,{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,u)=>eo(F,{onClick:()=>d(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:eo("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),eo(Wi,{activeSlideIndex:s,images:o?.map((p,u)=>({url:p.url,titleImage:p.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Ss=uf;import{jsx as vf}from"react/jsx-runtime";function gf({actions:e=[]}){return vf("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Ds=gf;import{jsx as Wa,jsxs as bf}from"react/jsx-runtime";var xf=hf(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:p,isOutStanding:u,limitContent:h=260},R)=>bf("div",{ref:R,className:r("",c?"ml-4 py-4":"py-5"),children:[Wa(Ns,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:u}),Wa(Ss,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:h}),l&&l?.filter(Boolean)?.length>0&&Wa(Ds,{actions:l.filter(Boolean)}),d&&Wa("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 Bt from"react";import{cva as yf}from"class-variance-authority";import{CheckIcon as wf}from"@heroicons/react/16/solid";import{XIcon as Nf}from"lucide-react";import{jsx as Ne,jsxs as Ga}from"react/jsx-runtime";var Pf=yf("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"}}),Ms=Bt.createContext("default");function Cf(){let e=Bt.useContext(Ms);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var kf=Bt.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?Ne(Nf,{className:s}):Ga("div",{children:[e==="iconStep"&&Ne("div",{className:s,children:o}),e==="numberStep"&&Ne("div",{children:t}),e==="default"&&(n==="completed"?Ne(wf,{className:s}):Ne("div",{children:t}))]})}),Rf=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Bt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return Ne("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Tf=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:m,icon:c,isError:d,onValueChangeStep:p,...u})=>{let h=Cf();return Ga("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[Ga("div",{className:"flex w-full items-center justify-center gap-2",children:[Ne("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),Ne("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Pf({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",i),...u,children:Ne(kf,{type:h,icon:c,stepNumber:e,size:t,isError:d,state:o})}),Ne("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Ga("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&Ne("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&Ne("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Sf=({children:e,className:o,type:t="numberStep",...a})=>Ne(Ms.Provider,{value:t,children:Ne("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as Tt from"react";import*as N from"@radix-ui/react-dropdown-menu";import{ChevronRight as Df,Check as Mf}from"lucide-react";import{jsx as he,jsxs as sa}from"react/jsx-runtime";var If=N.Root,Af=N.Trigger,Lf=N.Group,zf=N.Portal,Ef=N.Sub,Hf=N.RadioGroup,Is=Tt.forwardRef(({className:e,inset:o,children:t,...a},i)=>sa(N.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,he(Df,{className:"ml-auto"})]}));Is.displayName=N.SubTrigger.displayName;var As=Tt.forwardRef(({className:e,...o},t)=>he(N.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));As.displayName=N.SubContent.displayName;var Ls=Tt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>he(N.Portal,{children:he(N.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));Ls.displayName=N.Content.displayName;var zs=Tt.forwardRef(({className:e,inset:o,...t},a)=>he(N.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));zs.displayName=N.Item.displayName;var Es=Tt.forwardRef(({className:e,children:o,checked:t,...a},i)=>sa(N.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[sa("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&he("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),he(N.ItemIndicator,{children:he("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:he(Mf,{size:16,strokeWidth:3})})})]}),o]}));Es.displayName=N.CheckboxItem.displayName;var Hs=Tt.forwardRef(({className:e,children:o,...t},a)=>sa(N.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[sa("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[he("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),he(N.ItemIndicator,{children:he("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));Hs.displayName=N.RadioItem.displayName;var _s=Tt.forwardRef(({className:e,inset:o,...t},a)=>he(N.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));_s.displayName=N.Label.displayName;var Fs=Tt.forwardRef(({className:e,...o},t)=>he(N.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));Fs.displayName=N.Separator.displayName;var Bs=({className:e,...o})=>he("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});Bs.displayName="DropdownMenuShortcut";import{Slot as _f}from"@radix-ui/react-slot";var Os=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};import{Fragment as $a,jsx as L,jsxs as nt}from"react/jsx-runtime";var Vs=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>nt($a,{children:[e&&L(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&L("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>L("div",{className:r("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:nt("div",{className:"px-6 py-8 h-full text-center bg-white rounded-lg border border-gray-100 shadow-lg md:px-4 lg:px-6",children:[L("div",{className:"flex justify-center items-center mx-auto w-9 h-9 text-xl font-bold text-white bg-pink-500 rounded-full",children:i+1}),nt("div",{className:"mt-6 w-full",children:[L("div",{className:"w-full text-xl font-semibold",children:g(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:g(a.description)})]})]})},i))}),t&&L(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ff=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>nt($a,{children:[e&&L(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&L("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>nt("div",{className:r("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[nt("div",{className:"flex relative justify-center items-center mx-auto w-52 h-52",children:[L("div",{className:"flex absolute -top-4 -left-4 z-10 justify-center items-center w-12 h-12 text-lg font-bold text-white bg-pink-500 rounded-full border-4 border-white",children:i+1}),a?.image&&L("div",{className:"overflow-hidden w-full bg-gray-100 rounded-lg aspect-1",children:L(F,{ratio:1,children:L("img",{src:a.image,alt:a.title,className:"object-cover w-full h-full","data-puck-editable":"true","data-puck-component":"HowItWorksSection","data-puck-field":"dataHowItWorks","data-puck-array-index":i,"data-puck-nested-field":"image"})})})]}),nt("div",{className:"mt-6 w-full",children:[L("div",{className:"w-full text-xl font-semibold",children:g(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:g(a.description)})]})]},i))}),t&&L(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Bf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>nt($a,{children:[e&&L(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&L("div",{className:"flex flex-col gap-y-14 justify-center md:flex-row md:gap-x-4",children:o.map((a,i)=>nt("div",{className:r("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&L("span",{className:"flex justify-center items-center mx-auto bg-pink-500 rounded-full size-12 md:size-14",children:typeof a.image=="string"?Os(a.image)?L("img",{src:a.image,className:"block object-cover","data-puck-editable":"true","data-puck-component":"HowItWorksSection","data-puck-field":"dataHowItWorks","data-puck-array-index":i,"data-puck-nested-field":"image"}):L(_f,{className:"w-6 h-6 stroke-2 stroke-white",children:g(a.image.replace(/\n|\r/g,""))}):a.image}),nt("div",{className:"mt-4 w-full md:mt-6",children:[L("div",{className:"w-full text-xl font-semibold",children:g(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:g(a.description)})]})]},i))}),t&&L(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Of=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return L(Vs,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return L(Ff,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return L(Bf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return L(Vs,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Vf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>L($a,{children:Of({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Wf=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>L(W,{className:t,idSection:a,background:o,children:L(Vf,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{cva as Gf}from"class-variance-authority";import{CheckIcon as Ws}from"lucide-react";import{Fragment as ji,jsx as xe,jsxs as Gs}from"react/jsx-runtime";var $f=Gf("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}}),jf=({template:e,name:o,image:t,isFeatures:a,idx:i})=>xe(ji,{children:(()=>{switch(e){case 1:case 2:return xe(ji,{children:Gs("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?xe("div",{className:"flex flex-none justify-center items-center w-10 h-10 shrink-0",children:xe("img",{src:t,alt:"",className:"max-w-full","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataFeatures","data-puck-nested-field":"image","data-puck-array-index":i})}):xe("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:xe(Ws,{className:"w-4 h-4 text-pink-500"})}),o&&xe("div",{className:"ml-2",children:g(o)})]})});case 3:return Gs("li",{className:"flex space-x-4 h-full",children:[t?xe("div",{className:"flex flex-none justify-center items-center w-10 h-10 shrink-0",children:xe("img",{src:t,alt:"",className:"max-w-full"})}):xe("div",{className:"flex flex-none justify-center items-center p-1 w-5 h-5 bg-pink-100 rounded-full",children:xe(Ws,{className:"w-4 h-4 text-pink-500"})}),o&&xe("div",{className:"my-auto ml-2 md:my-0",children:g(o)})]});default:return null}})()}),ja=({dataFeatures:e,template:o=1})=>xe(ji,{children:(e?.length??0)>0&&xe("ul",{className:r("",$f({template:o})),children:e?.map((t,a)=>xe(jf,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as Qf}from"lucide-react";import{jsx as Z,jsxs as la}from"react/jsx-runtime";var $s=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,Uf=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>la(lo,{children:[Z(Ue,{greaterThan:"sm",children:la(F,{className:r(""),ratio:$s(o),children:[Z("img",{src:e,className:r("hidden object-cover w-full h-full md:block",t,e?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"}),a&&la(Be,{children:[Z(Fo,{onClick:i,children:Z("div",{className:"hidden absolute top-0 z-10 justify-center items-center w-full h-full transition-transform cursor-pointer group-hover:scale-105 md:flex",children:Z("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:la("g",{fill:"none",fillRule:"evenodd",children:[Z("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),Z("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),Z(Ie,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:la(Xe,{className:"relative p-4 text-center bg-transparent",children:[Z("div",{className:"aspect-[16/9] w-full p-0",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"w-full h-full"})}),Z(ri,{asChild:!0,children:Z(re,{variant:"secondary",className:"absolute top-0 right-0 rounded-full",size:"sm",children:Z(Qf,{className:"w-6 h-6"})})})]})})]})]})}),a&&Z(Ue,{lessThan:"md",children:Z("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"object-cover w-full h-full md:hidden"})})})]}),Qa=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>Z("div",{className:a,children:n?Z(Uf,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):Z(F,{ratio:$s(t),children:Z("img",{src:o,className:r("object-cover w-full h-full",i,o?"":"bg-gray-200"),alt:"","data-puck-editable":"true","data-puck-component":"Hero","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})});import{Fragment as Xf,jsx as Ua,jsxs as Qi}from"react/jsx-runtime";var qf=({value:e,suffix:o,unit:t,description:a,idx:i})=>Qi("div",{className:r(""),children:[e&&Qi("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Qi("span",{children:[o," ",t]})]}),a&&Ua("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:g(a)})]}),qa=({dataStats:e})=>Ua(Xf,{children:(e?.length??0)>0&&Ua("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>Ua(qf,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as js,jsx as K,jsxs as ma}from"react/jsx-runtime";var Ui=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ma("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[ma("div",{className:"col-span-1 ",children:[K(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),K(ja,{dataFeatures:t,template:a}),o&&K(b,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),K(qa,{dataStats:i})]}),K("div",{className:"col-span-1 md:pl-10",children:s||K(Qa,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Qs=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ma("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[K("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||K(Qa,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),ma("div",{className:"order-1 col-span-1 md:order-2",children:[K(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),K(ja,{dataFeatures:t,template:a}),o&&K("div",{className:"flex w-full items-center justify-center md:justify-start",children:K(b,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),K(qa,{dataStats:i})]})]}),Us=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ma(js,{children:[K(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&K(b,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),K(ja,{dataFeatures:t,template:a}),K("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:K(qa,{dataStats:i})}),s||K(js,{children:n?.src&&K(Qa,{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 to}from"react/jsx-runtime";var Yf=`var(
255
255
  --gradient-pink-1,
256
256
  linear-gradient(
257
257
  38deg,
@@ -273,7 +273,7 @@ import*as Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
273
273
  rgba(255, 255, 255, 0) 80%
274
274
  ),
275
275
  #fff
276
- )`,Zf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return to(Ui,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return to(Qs,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return to(Us,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return to(Ui,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},Kf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>to(eg,{children:Zf({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),Jf=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>to(W,{className:r(l),background:m??Yf,idSection:o,children:to(Kf,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as tg}from"react";import{Fragment as og,jsx as To,jsxs as ag}from"react/jsx-runtime";var Xa=tg(({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9","40px":"md:gap-x-10","48px":"md:gap-x-12","56px":"md:gap-x-14","64px":"md:gap-x-16","80px":"md:gap-x-20"};return ag(og,{children:[e&&To(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&To("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"mx-auto max-w-xs flex-wrap justify-center md:max-w-full"),children:o?.map((s,l)=>{let m=s?.url?"a":"div",c=s?.url?{href:s.url,title:s.name,target:s.newTab?"_blank":"_self"}:{};return To("div",{className:r("flex max-h-28 w-auto items-center justify-center md:max-w-36 md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-3"),children:To(m,{...c,className:"group flex h-full w-full items-center justify-center",children:To("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:r("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105")})})},l)})}),t&&To(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as ig}from"react";import{Fragment as rg,jsx as oo,jsxs as ng}from"react/jsx-runtime";var qi=ig(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>ng(rg,{children:[e&&oo(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&oo("div",{className:r("list-brands flex md:flex-wrap md:justify-center md:gap-y-6",a?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"-mx-2.5 flex-wrap gap-y-5 md:-mx-3"),children:o.map((i,n)=>{let s=i?.url?"a":"div",l=i?.url?{href:i.url,title:i.name,target:i.newTab?"_blank":"_self"}:{};return oo("div",{className:r("flex items-center justify-center text-center md:basis-1/4 md:px-3",a?"shrink-0 basis-5/12 snap-center":"basis-1/2 px-2.5"),children:oo(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:oo("div",{className:"flex w-full items-center justify-center",children:oo("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain"})})})},n)})}),t&&oo(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as sg}from"react";import{Fragment as lg,jsx as $e,jsxs as Yi}from"react/jsx-runtime";var Xi=(e,o)=>{if(!e)return $e("div",{className:r("h-full w-full",o)});let t=e.url?"a":"div";return $e("div",{className:r("h-full w-full",o),children:$e(t,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e.url&&"duration-300 hover:border-pink-500"),children:$e("div",{className:"flex h-full w-full items-center justify-center",children:$e("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},Zi=sg(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=go(),i=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);i.push(...o.slice(0,s)),n.push(...o.slice(s))}return Yi(lg,{children:[e&&$e(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&Yi(ge,{opts:{align:a?"center":"start"},className:"w-full",children:[$e(ue,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?i.map((s,l)=>Yi(le,{className:"flex shrink-0 basis-5/12 flex-col items-center justify-between gap-3 pl-3 md:basis-1/4 md:gap-4 md:pl-4 lg:basis-1/6",children:[Xi(s,"min-h-0 flex-1"),n[l]?Xi(n[l],"min-h-0 flex-1"):$e("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>$e(le,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:Xi(s)},l))}),$e(xo,{className:"mt-5"})]}),t&&$e(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as ug}from"react";import{useEffect as mg,useState as Ki}from"react";import{animate as qs,motion as cg,useMotionValue as dg}from"motion/react";import pg from"react-use-measure";import{jsx as gg,jsxs as fg}from"react/jsx-runtime";function So({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=Ki(t),[d,{width:p,height:g}]=pg(),h=dg(0),[k,P]=Ki(!1),[S,H]=Ki(0);mg(()=>{let z,C=(i==="horizontal"?p:g)+o,ie=n?-C/2:0,Q=n?0:-C/2,$t=Math.abs(Q-ie)/m;if(k){let zo=Math.abs(h.get()-Q)/m;z=qs(h,[h.get(),Q],{ease:"linear",duration:zo,onComplete:()=>{P(!1),H(lm=>lm+1)}})}else z=qs(h,[ie,Q],{ease:"linear",duration:$t,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{h.set(ie)}});return z?.stop},[S,h,m,p,g,o,k,i,n]);let V=a?{onHoverStart:()=>{P(!0),c(a)},onHoverEnd:()=>{P(!0),c(t)},onTouchStart:()=>{P(!0),c(a)},onTouchEnd:()=>{P(!0),c(t)}}:{};return gg("div",{className:r("overflow-hidden",s),children:fg(cg.div,{className:r("flex w-max",l),style:{...i==="horizontal"?{x:h,paddingLeft:o}:{y:h},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:d,...V,children:[e,e]})})}import{Fragment as Ys,jsx as ke,jsxs as vg}from"react/jsx-runtime";var Xs=(e,o)=>{let t=e?.url?"a":"div";return ke("div",{className:r("h-full w-full",o),children:ke(t,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e?.url&&"duration-300 hover:border-pink-500"),children:ke("div",{className:"flex h-full w-full items-center justify-center",children:ke("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},Ji=ug(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,i=a>6;return vg(Ys,{children:[e&&ke(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),a>0&&ke(Ys,{children:i?ke("div",{className:"mark-horizontal-slider relative overflow-hidden",children:ke(So,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>ke("div",{className:"w-32 md:w-40",children:Xs(n)},s))})}):ke("div",{className:r("list-brands -mx-5 flex snap-x snap-mandatory flex-nowrap space-x-3 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:flex-wrap md:justify-center md:gap-y-6 md:space-x-0 md:px-0"),children:o?.map((n,s)=>ke("div",{className:"flex shrink-0 basis-5/12 snap-center items-center justify-center md:basis-1/4 md:px-3 lg:basis-1/6",children:Xs(n)},s))})}),t&&ke(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),ke("style",{children:`
276
+ )`,Zf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return to(Ui,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return to(Qs,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return to(Us,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return to(Ui,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},Kf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>to(eu,{children:Zf({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),Jf=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>to(W,{className:r(l),background:m??Yf,idSection:o,children:to(Kf,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as tu}from"react";import{Fragment as ou,jsx as To,jsxs as au}from"react/jsx-runtime";var Xa=tu(({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9","40px":"md:gap-x-10","48px":"md:gap-x-12","56px":"md:gap-x-14","64px":"md:gap-x-16","80px":"md:gap-x-20"};return au(ou,{children:[e&&To(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&To("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"mx-auto max-w-xs flex-wrap justify-center md:max-w-full"),children:o?.map((s,l)=>{let m=s?.url?"a":"div",c=s?.url?{href:s.url,title:s.name,target:s.newTab?"_blank":"_self"}:{};return To("div",{className:r("flex justify-center items-center w-auto max-h-28 md:max-w-36 md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"px-3 basis-1/2"),children:To(m,{...c,className:"flex justify-center items-center w-full h-full group",children:To("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:r("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105"),"data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":l,"data-puck-nested-field":"logo"})})},l)})}),t&&To(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as iu}from"react";import{Fragment as ru,jsx as oo,jsxs as nu}from"react/jsx-runtime";var qi=iu(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>nu(ru,{children:[e&&oo(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&oo("div",{className:r("list-brands flex md:flex-wrap md:justify-center md:gap-y-6",a?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"-mx-2.5 flex-wrap gap-y-5 md:-mx-3"),children:o.map((i,n)=>{let s=i?.url?"a":"div",l=i?.url?{href:i.url,title:i.name,target:i.newTab?"_blank":"_self"}:{};return oo("div",{className:r("flex items-center justify-center text-center md:basis-1/4 md:px-3",a?"shrink-0 basis-5/12 snap-center":"basis-1/2 px-2.5"),children:oo(s,{...l,className:"flex justify-center items-center p-3 w-full h-full bg-white rounded-md border border-gray-200 duration-300 hover:border-pink-500",children:oo("div",{className:"flex justify-center items-center w-full",children:oo("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain w-auto max-w-full h-auto max-h-28","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":n,"data-puck-nested-field":"logo"})})})},n)})}),t&&oo(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as su}from"react";import{Fragment as lu,jsx as $e,jsxs as Yi}from"react/jsx-runtime";var Xi=(e,o,t)=>{if(!e)return $e("div",{className:r("w-full h-full",o)});let a=e.url?"a":"div";return $e("div",{className:r("w-full h-full",o),children:$e(a,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e.url&&"duration-300 hover:border-pink-500"),children:$e("div",{className:"flex justify-center items-center w-full h-full",children:$e("img",{src:e.logo,alt:e.name,className:"object-contain w-auto max-w-full h-auto max-h-full","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":t,"data-puck-nested-field":"logo"})})})})},Zi=su(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=uo(),i=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);i.push(...o.slice(0,s)),n.push(...o.slice(s))}return Yi(lu,{children:[e&&$e(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&Yi(ue,{opts:{align:a?"center":"start"},className:"w-full",children:[$e(ge,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?i.map((s,l)=>Yi(le,{className:"flex flex-col gap-3 justify-between items-center pl-3 shrink-0 basis-5/12 md:basis-1/4 md:gap-4 md:pl-4 lg:basis-1/6",children:[Xi(s,"min-h-0 flex-1",l),n[l]?Xi(n[l],"min-h-0 flex-1",l):$e("div",{className:"flex-1 min-h-0"})]},l)):o.map((s,l)=>$e(le,{className:"flex justify-center items-center pl-3 basis-5/12 md:basis-1/4 md:pl-4 lg:basis-1/6",children:Xi(s,"",l)},l))}),$e(xo,{className:"mt-5"})]}),t&&$e(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as gu}from"react";import{useEffect as mu,useState as Ki}from"react";import{animate as qs,motion as cu,useMotionValue as du}from"motion/react";import pu from"react-use-measure";import{jsx as uu,jsxs as fu}from"react/jsx-runtime";function So({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=Ki(t),[d,{width:p,height:u}]=pu(),h=du(0),[R,P]=Ki(!1),[S,H]=Ki(0);mu(()=>{let z,C=(i==="horizontal"?p:u)+o,ie=n?-C/2:0,Q=n?0:-C/2,$t=Math.abs(Q-ie)/m;if(R){let zo=Math.abs(h.get()-Q)/m;z=qs(h,[h.get(),Q],{ease:"linear",duration:zo,onComplete:()=>{P(!1),H(lm=>lm+1)}})}else z=qs(h,[ie,Q],{ease:"linear",duration:$t,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{h.set(ie)}});return z?.stop},[S,h,m,p,u,o,R,i,n]);let V=a?{onHoverStart:()=>{P(!0),c(a)},onHoverEnd:()=>{P(!0),c(t)},onTouchStart:()=>{P(!0),c(a)},onTouchEnd:()=>{P(!0),c(t)}}:{};return uu("div",{className:r("overflow-hidden",s),children:fu(cu.div,{className:r("flex w-max",l),style:{...i==="horizontal"?{x:h,paddingLeft:o}:{y:h},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:d,...V,children:[e,e]})})}import{Fragment as Ys,jsx as Re,jsxs as vu}from"react/jsx-runtime";var Xs=(e,o,t)=>{let a=e?.url?"a":"div";return Re("div",{className:r("w-full h-full",o),children:Re(a,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:r("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e?.url&&"duration-300 hover:border-pink-500"),children:Re("div",{className:"flex justify-center items-center w-full h-full",children:Re("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain","data-puck-editable":"true","data-puck-component":"SocialProofSection","data-puck-field":"dataBrands","data-puck-array-index":t,"data-puck-nested-field":"logo"})})})})},Ji=gu(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,i=a>6;return vu(Ys,{children:[e&&Re(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),a>0&&Re(Ys,{children:i?Re("div",{className:"overflow-hidden relative mark-horizontal-slider",children:Re(So,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>Re("div",{className:"w-32 md:w-40",children:Xs(n,"",s)},s))})}):Re("div",{className:r("flex overflow-hidden overflow-x-auto flex-nowrap px-5 pb-3 -mx-5 space-x-3 list-brands snap-x snap-mandatory 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)=>Re("div",{className:"flex justify-center items-center shrink-0 basis-5/12 snap-center md:basis-1/4 md:px-3 lg:basis-1/6",children:Xs(n,"",s)},s))})}),t&&Re(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),Re("style",{children:`
277
277
  .mark-horizontal-slider {
278
278
  mask-image: linear-gradient(
279
279
  to right,
@@ -290,15 +290,15 @@ import*as Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
290
290
  transparent 100%
291
291
  );
292
292
  }
293
- `})]})});import{Fragment as yg,jsx as Ot}from"react/jsx-runtime";var hg=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return Ot(Xa,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return Ot(qi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return Ot(Zi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return Ot(Ji,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return Ot(Xa,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},xg=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>Ot(yg,{children:hg({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),bg=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>Ot(W,{className:r(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:Ot(xg,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as wg}from"react";import{ChevronRightIcon as Ng}from"@heroicons/react/16/solid";import{Fragment as St,jsx as f,jsxs as y}from"react/jsx-runtime";var st=({btnLink:e,btnName:o,newTab:t})=>f(fe,{variant:"primary",asChild:!0,children:y("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(Ng,{className:"h-4 w-4"})]})}),er=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>y("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"})}),y("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>y("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"})}),y("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
293
+ `})]})});import{Fragment as yu,jsx as Ot}from"react/jsx-runtime";var hu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return Ot(Xa,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return Ot(qi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return Ot(Zi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return Ot(Ji,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return Ot(Xa,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},xu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>Ot(yu,{children:hu({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),bu=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>Ot(W,{className:r(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:Ot(xu,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as wu}from"react";import{ChevronRightIcon as Nu}from"@heroicons/react/16/solid";import{Fragment as St,jsx as f,jsxs as y}from"react/jsx-runtime";var st=({btnLink:e,btnName:o,newTab:t})=>f(fe,{variant:"primary",asChild:!0,children:y("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(Nu,{className:"w-4 h-4"})]})}),er=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"grid grid-cols-1 gap-8 list-features md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>y("div",{className:"flex relative flex-col w-full text-center feature-item",children:[a?.image&&f("div",{className:"mx-auto w-16 h-16",children:f("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"flex-1 mx-auto mt-4 w-full max-w-xs md:max-w-full",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:g(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:g(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"grid grid-cols-1 gap-6 list-features list-features-2 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>y("div",{className:"flex overflow-hidden relative flex-col p-5 w-full rounded-md border border-gray-200 feature-item",children:[a?.image&&f("div",{className:"w-16 h-16",children:f("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"flex flex-col flex-1 mt-4 w-full",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:g(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:g(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
294
294
  .list-features-2 .feature-item {
295
295
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
296
296
  }
297
- `})]}),Ks=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>y("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"})}),y("div",{className:"mt-4 w-full flex-1",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Js=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[y("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),y("div",{className:"lg:col-span-6",children:[o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>y("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"})}),y("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),el=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>y("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"})}),y("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),tl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>y("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"})}),y("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ol=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,m=n[a]??-1,c=(d,p)=>{let g=d?.btnLink?"a":"div",h=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return f("div",{className:r("basis-1/2 px-2 lg:px-5",l,p===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:y(g,{...h,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"})}),y("div",{className:"w-full flex-1 text-center",children:[d?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:u(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:u(d.description)})]})]})},p)};return y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&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(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},al=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>y("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[y("div",{className:"flex w-full flex-1 flex-col p-5",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:u(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&f("div",{className:"w-full",style:{aspectRatio:"347/220"},children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),il=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>y("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:y("div",{className:"w-full",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>y("div",{className:"feature-item relative flex w-full flex-col",children:[i?.image&&f("div",{className:"h-10 w-10",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),y("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:u(i.name)}),i?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:u(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&f(b,{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(B,{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"})})})})]}),rl=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),f("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&y("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>y("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[i?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),y("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[y("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:u(i.name)}),i?.description&&f("div",{className:"mt-2 text-gray-500",children:u(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&y("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(b,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),nl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=wg(0),s=go();return y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&y("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[f("div",{children:f("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:f(pt,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:i.toString(),children:o?.map((l,m)=>y(ft,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[f(gt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:u(l.name||"")}),y(ut,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:u(l.description||"")}),l?.btnLink&&f("div",{className:"",children:f(st,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&f("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:f(B,{ratio:1,className:"w-full",children:f("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),f("div",{className:r(a?.src?"flex":"hidden md:flex"),children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?f(B,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):f("div",{className:"hidden md:flex",children:o?.[i]?.image?f(B,{ratio:1,className:"w-full",children:f("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):f("div",{className:"h-0 w-0"})})})})]}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as kg,jsx as be}from"react/jsx-runtime";var Pg=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return be(er,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return be(Zs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return be(Ks,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return be(Js,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return be(el,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return be(tl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return be(ol,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return be(al,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return be(il,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return be(rl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return be(nl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return be(er,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Cg=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>be(kg,{children:Pg({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),Rg=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>be(W,{className:t,idSection:a,background:o,children:be(Cg,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as Tg}from"@heroicons/react/24/solid";import Sg from"lodash";var Ya=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Za=({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()||""},Ka=(e,o)=>o[e%o.length];import{Fragment as ll,jsx as J,jsxs as Do}from"react/jsx-runtime";var Dg=({avatar:e="",name:o="",index:t=0})=>{if(Sg.isEmpty(e)){let a=Za({name:o})??"",i=Ka(t,Ya);return J("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return J("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:J("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},sl=({testimonial:e,className:o,index:t})=>J("div",{className:r("testimonial-item",o),children:Do("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:[Do("div",{className:"flex flex-nowrap items-center space-x-2",children:[J(Dg,{avatar:e.avatar,name:e.name,index:t}),Do("div",{className:"min-w-0 flex-1 pl-1",children:[J("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&J("div",{className:"text-xs font-normal text-pink-500",children:u(e.position)})]})]}),Do("div",{className:"mt-3",children:[e?.shortTitle&&J("div",{className:"text-sm font-bold text-gray-700",children:u(e.shortTitle)}),e?.description&&J("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:u(e.description)})]}),Do("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&J("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&J("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>J(Tg,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),tr=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return Do(ll,{children:[e&&J(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&J(ll,{children:i?J("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:J(So,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>J(sl,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):J("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>J(sl,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&J(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as ml}from"@heroicons/react/24/solid";import{Fragment as Ag,jsx as E,jsxs as je}from"react/jsx-runtime";var Mg=({className:e})=>E("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),Ig=({testimonial:e,className:o})=>E("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:je("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&E("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:E(B,{ratio:2/3,className:"w-full",children:E("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),je("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[je("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[je("div",{className:"grow",children:[e?.name&&E("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&E("div",{className:"mt-1 text-xs font-normal text-gray-500",children:u(e.position)})]}),(e?.date||Number(e?.rating)>0)&&je("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&E("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&E("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>E(ml,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&E("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:E(B,{ratio:2/3,className:"w-full",children:E("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),je("div",{className:"flex flex-1 flex-col md:flex-none",children:[je("div",{className:"flex-1",children:[je("div",{className:"mb-1.5 flex flex-none space-x-3",children:[E(Mg,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&E("div",{className:"flex-none text-base font-medium md:text-lg",children:u(e.shortTitle)})]}),e?.description&&E("blockquote",{className:"relative flex-1 text-justify text-base",children:u(e.description)})]}),(e?.date||Number(e?.rating)>0)&&je("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&E("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&E("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>E(ml,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),cl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>je(Ag,{children:[e&&E(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&je(ge,{className:"w-full",children:[E(ue,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>E(le,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:E(Ig,{testimonial:a})},i))}),(o??[]).length>1&&E(xo,{className:"mt-8"})]}),t&&E(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as Lg}from"@heroicons/react/24/solid";import zg from"lodash";import{Fragment as pl,jsx as O,jsxs as ao}from"react/jsx-runtime";var Eg=({avatar:e="",name:o="",index:t=0})=>{if(zg.isEmpty(e)){let a=Za({name:o})??"",i=Ka(t,Ya);return O("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return O("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:O("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},dl=({testimonial:e,className:o,index:t})=>O("div",{className:r("testimonial-item",o),children:ao("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:[ao("div",{className:"flex flex-nowrap items-center space-x-2",children:[O(Eg,{avatar:e.avatar,name:e.name,index:t}),ao("div",{className:"flex-1 pl-1",children:[O("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&O("div",{className:"text-xs font-normal text-pink-500",children:u(e.position)})]})]}),ao("div",{className:"mt-3",children:[e?.shortTitle&&O("div",{className:"text-sm font-bold text-gray-700",children:u(e.shortTitle)}),e?.description&&O("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:u(e.description)})]}),ao("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&O("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&O("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>O(Lg,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),fl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>O(pl,{children:l.map((m,c)=>O(So,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>O(dl,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return ao(pl,{children:[e&&O(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&O(lo,{children:i?ao("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[O(Ue,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),O(Ue,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),O(Ue,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):O("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>O(dl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&O(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),O("style",{children:`
297
+ `})]}),Ks=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"grid grid-cols-1 gap-8 list-features md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>y("div",{className:"flex relative flex-col w-full feature-item",children:[a?.image&&f("div",{className:"w-16 h-16",children:f("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"flex-1 mt-4 w-full",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:g(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:g(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Js=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[y("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),y("div",{className:"lg:col-span-6",children:[o&&f("div",{className:"grid grid-cols-1 gap-6 list-features md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>y("div",{className:"flex relative flex-col p-5 w-full bg-white rounded-lg border border-gray-200 feature-item",children:[a?.image&&f("div",{className:"w-16 h-16",children:f("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"flex flex-col flex-1 mt-4 w-full",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:g(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:g(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),el=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"grid grid-cols-1 gap-5 mx-auto max-w-4xl list-features md:grid-cols-2",children:o?.map((a,i)=>y("div",{className:"flex relative flex-col p-7 w-full bg-white rounded-lg border border-gray-200 feature-item",children:[a?.image&&f("div",{className:"w-16 h-16",children:f("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"flex flex-col flex-1 mt-4 w-full",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:g(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:g(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),tl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"grid grid-cols-1 gap-8 list-features md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>y("div",{className:"relative w-full feature-item",children:[a?.image&&f("div",{className:"w-12 h-12",children:f("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}),y("div",{className:"flex flex-col flex-1 mt-3 w-full",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:g(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:g(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ol=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,m=n[a]??-1,c=(d,p)=>{let u=d?.btnLink?"a":"div",h=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return f("div",{className:r("basis-1/2 px-2 lg:px-5",l,p===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:y(u,{...h,className:"flex relative flex-col gap-3 items-center w-full feature-item",children:[d?.image&&f("div",{className:"w-16 h-16 transition-transform duration-300 group-hover:scale-105",children:f("img",{src:d?.image,alt:d?.name,className:"object-contain w-full h-full",loading:"lazy","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":p,"data-puck-nested-field":"image"})}),y("div",{className:"flex-1 w-full text-center",children:[d?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:g(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:g(d.description)})]})]})},p)};return y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"flex flex-wrap gap-y-10 justify-center -mx-2 list-features lg:-mx-5",children:o.map((d,p)=>c(d,p))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},al=({dataHeading:e,dataFeatures:o,dataButtons:t})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"grid grid-cols-1 gap-6 list-features md:grid-cols-3",children:o?.map((a,i)=>y("div",{className:"flex overflow-hidden relative flex-col w-full bg-gray-100 rounded-xl feature-item",children:[y("div",{className:"flex flex-col flex-1 p-5 w-full",children:[y("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:g(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:g(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&f("div",{className:"w-full",style:{aspectRatio:"347/220"},children:f("img",{src:a?.image,alt:a?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),il=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>y("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:y("div",{className:"w-full",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&f("div",{className:"grid grid-cols-1 gap-6 list-features md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>y("div",{className:"flex relative flex-col w-full feature-item",children:[i?.image&&f("div",{className:"w-10 h-10",children:f("img",{src:i?.image,alt:i?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":n,"data-puck-nested-field":"image"})}),y("div",{className:"flex flex-col flex-1 mt-3 w-full",children:[y("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:g(i.name)}),i?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:g(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&f("div",{className:"flex items-center lg:col-span-4",children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:f(F,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"object-cover w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})})})})]}),rl=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),f("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&y("div",{className:r("grid grid-cols-1 gap-8 list-features md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>y("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[i?.image&&f("div",{className:"w-12 h-12",children:f("img",{src:i?.image,alt:i?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":n,"data-puck-nested-field":"image"})}),y("div",{className:"flex flex-col flex-1 mt-3 w-full",children:[y("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:g(i.name)}),i?.description&&f("div",{className:"mt-2 text-gray-500",children:g(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(st,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&y("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:"absolute inset-0 w-full h-full pointer-events-none select-none mockup-bg",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),f("div",{className:"overflow-hidden w-full h-full bg-gray-100",style:{borderRadius:"30px"},children:f("img",{src:t?.src,alt:t?.alt,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})})]})]})}),a&&f(b,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),nl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=wu(0),s=uo();return y(St,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&y("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[f("div",{children:f("div",{className:"w-full list-features md:border-l-2 md:border-gray-200",children:f(pt,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:i.toString(),children:o?.map((l,m)=>y(ft,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[f(ut,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:g(l.name||"")}),y(gt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:g(l.description||"")}),l?.btnLink&&f("div",{className:"",children:f(st,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&f("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:f(F,{ratio:1,className:"w-full",children:f("img",{src:l?.image,alt:l?.name,className:"object-contain w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":m,"data-puck-nested-field":"image"})})})]})]},m))})})}),f("div",{className:r(a?.src?"flex":"hidden md:flex"),children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?f(F,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"object-cover w-full h-full","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataBanner","data-puck-nested-field":"src"})}):f("div",{className:"hidden md:flex",children:o?.[i]?.image?f(F,{ratio:1,className:"w-full",children:f("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"object-contain w-full h-full",loading:"lazy","data-puck-editable":"true","data-puck-component":"FeatureSection","data-puck-field":"dataFeatures","data-puck-array-index":i,"data-puck-nested-field":"image"})}):f("div",{className:"w-0 h-0"})})})})]}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as Ru,jsx as be}from"react/jsx-runtime";var Pu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return be(er,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return be(Zs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return be(Ks,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return be(Js,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return be(el,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return be(tl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return be(ol,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return be(al,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return be(il,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return be(rl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return be(nl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return be(er,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Cu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>be(Ru,{children:Pu({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),ku=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>be(W,{className:t,idSection:a,background:o,children:be(Cu,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as Tu}from"@heroicons/react/24/solid";import Su from"lodash";var Ya=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Za=({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()||""},Ka=(e,o)=>o[e%o.length];import{Fragment as ll,jsx as J,jsxs as Do}from"react/jsx-runtime";var Du=({avatar:e="",name:o="",index:t=0})=>{if(Su.isEmpty(e)){let a=Za({name:o})??"",i=Ka(t,Ya);return J("div",{className:r("flex overflow-hidden justify-center items-center w-9 h-9 font-semibold text-white rounded-full shrink-0",i),children:a})}return J("div",{className:"overflow-hidden w-9 h-9 rounded-full shrink-0",children:J("img",{src:e,loading:"lazy",className:"object-cover w-full h-full",alt:o,"data-puck-editable":"true","data-puck-component":"TestimonialSection","data-puck-field":"dataTestimonials","data-puck-array-index":t,"data-puck-nested-field":"avatar"})})},sl=({testimonial:e,className:o,index:t})=>J("div",{className:r("testimonial-item",o),children:Do("div",{className:"relative px-5 pt-4 pb-10 h-full bg-white rounded-xl border border-gray-100 shadow-md sm:px-5",children:[Do("div",{className:"flex flex-nowrap items-center space-x-2",children:[J(Du,{avatar:e.avatar,name:e.name,index:t}),Do("div",{className:"flex-1 pl-1 min-w-0",children:[J("div",{className:"overflow-hidden text-sm font-semibold text-gray-700 whitespace-nowrap text-ellipsis",children:e.name}),e?.position&&J("div",{className:"text-xs font-normal text-pink-500",children:g(e.position)})]})]}),Do("div",{className:"mt-3",children:[e?.shortTitle&&J("div",{className:"text-sm font-bold text-gray-700",children:g(e.shortTitle)}),e?.description&&J("div",{className:"overflow-hidden relative mt-1 max-h-full text-sm leading-normal text-gray-600",children:g(e.description)})]}),Do("div",{className:"flex absolute right-0 bottom-0 left-0 justify-between items-center p-4 space-x-2 md:px-5",children:[e?.date&&J("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&J("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>J(Tu,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),tr=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return Do(ll,{children:[e&&J(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&J(ll,{children:i?J("div",{className:"overflow-hidden relative -mx-5 md:mx-0",children:J(So,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>J(sl,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):J("div",{className:"flex overflow-hidden overflow-x-auto flex-nowrap gap-y-6 px-5 pb-3 -mx-5 space-x-5 snap-x snap-mandatory md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>J(sl,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&J(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as ml}from"@heroicons/react/24/solid";import{Fragment as Au,jsx as E,jsxs as je}from"react/jsx-runtime";var Mu=({className:e})=>E("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E("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})=>E("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:je("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&E("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:E(F,{ratio:2/3,className:"w-full",children:E("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),je("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[je("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[je("div",{className:"grow",children:[e?.name&&E("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&E("div",{className:"mt-1 text-xs font-normal text-gray-500",children:g(e.position)})]}),(e?.date||Number(e?.rating)>0)&&je("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&E("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&E("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>E(ml,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&E("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:E(F,{ratio:2/3,className:"w-full",children:E("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),je("div",{className:"flex flex-1 flex-col md:flex-none",children:[je("div",{className:"flex-1",children:[je("div",{className:"mb-1.5 flex flex-none space-x-3",children:[E(Mu,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&E("div",{className:"flex-none text-base font-medium md:text-lg",children:g(e.shortTitle)})]}),e?.description&&E("blockquote",{className:"relative flex-1 text-justify text-base",children:g(e.description)})]}),(e?.date||Number(e?.rating)>0)&&je("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&E("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&E("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>E(ml,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),cl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>je(Au,{children:[e&&E(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&je(ue,{className:"w-full",children:[E(ge,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>E(le,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:E(Iu,{testimonial:a})},i))}),(o??[]).length>1&&E(xo,{className:"mt-8"})]}),t&&E(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as Lu}from"@heroicons/react/24/solid";import zu from"lodash";import{Fragment as pl,jsx as O,jsxs as ao}from"react/jsx-runtime";var Eu=({avatar:e="",name:o="",index:t=0})=>{if(zu.isEmpty(e)){let a=Za({name:o})??"",i=Ka(t,Ya);return O("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return O("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:O("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},dl=({testimonial:e,className:o,index:t})=>O("div",{className:r("testimonial-item",o),children:ao("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:[ao("div",{className:"flex flex-nowrap items-center space-x-2",children:[O(Eu,{avatar:e.avatar,name:e.name,index:t}),ao("div",{className:"flex-1 pl-1",children:[O("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&O("div",{className:"text-xs font-normal text-pink-500",children:g(e.position)})]})]}),ao("div",{className:"mt-3",children:[e?.shortTitle&&O("div",{className:"text-sm font-bold text-gray-700",children:g(e.shortTitle)}),e?.description&&O("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:g(e.description)})]}),ao("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&O("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&O("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>O(Lu,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),fl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>O(pl,{children:l.map((m,c)=>O(So,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>O(dl,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return ao(pl,{children:[e&&O(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&O(lo,{children:i?ao("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[O(Ue,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),O(Ue,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),O(Ue,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):O("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>O(dl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&O(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),O("style",{children:`
298
298
  .mark-vertical-marquee {
299
299
  mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
300
300
  }
301
- `})]})};import{Fragment as Fg,jsx as io}from"react/jsx-runtime";var Hg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return io(tr,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return io(fl,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return io(cl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return io(tr,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},_g=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>io(Fg,{children:Hg({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Bg=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>io(W,{className:r(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:io(_g,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import{Fragment as Og,jsx as oe,jsxs as ro}from"react/jsx-runtime";var or=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>oe(pt,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>ro(ft,{value:n.title,className:"last:border-none",children:[oe(gt,{className:"md:text-lg",children:n.title}),oe(ut,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:u(n.description)})]},s))});return ro("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[oe("div",{className:"relative",children:ro("div",{className:"md:sticky md:top-16",children:[o&&oe(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&oe(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&oe("div",{className:"col-span-2",children:a(e[0])}),t&&oe(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},gl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>oe(pt,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>ro(ft,{value:c.title,className:"last:border-none",children:[oe(gt,{className:"md:text-lg",children:c.title}),oe(ut,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:u(c.description)})]},d))});return ro(Og,{children:[o&&oe(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&ro(Nt,{defaultValue:e[0]?.title,children:[e?.length>1&&ro(xt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[oe(bt,{className:"mb-3 text-center",children:oe(Ye,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>oe(Ze,{value:m.title,children:m.title},m.title+c))})}),oe(yt,{}),oe(wt,{})]}),e.map((m,c)=>oe(Ke,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&oe(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};import{Fragment as $g,jsx as Mo}from"react/jsx-runtime";var Vg=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return Mo(or,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return Mo(gl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return Mo(or,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Wg=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>Mo($g,{children:Vg({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),Gg=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Mo(W,{className:t,idSection:i,background:a,children:Mo(Wg,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import jg,{memo as Qg}from"react";import{ArrowDownIcon as Ug}from"@heroicons/react/20/solid";import{Fragment as ul,jsx as X,jsxs as lt}from"react/jsx-runtime";var qg=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return lt(ul,{children:[X("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:lt("picture",{children:[X("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),X("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),lt("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[X("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),lt("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&lt(ul,{children:[X(fe,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&X("span",{className:"flex-none leading-none",children:"\xB7"})]}),X("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},ar=Qg(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>lt("div",{children:[X("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((g,h)=>X("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:X("div",{onClick:k=>m(k,g?.id,g?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:X(qg,{news:g})},g?.id)},h))}),d?.isShowBtn&&X("div",{className:"mt-8 flex w-full items-center justify-center",children:lt(Oe,{action:d?.btnUrl||i&&(()=>i?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[u(d.btnName||"Xem th\xEAm"),d?.isLoading?X(co,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!d?.btnUrl&&X(Ug,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return lt(jg.Fragment,{children:[e&&X(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?lt(Nt,{defaultValue:t[0]?.title,children:[lt(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[X(bt,{className:"mb-6 text-center",children:X(Ye,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>X(Ze,{value:d.title,children:d.title},d.title+p))})}),X(yt,{}),X(wt,{})]}),t.map((d,p)=>X(Ke,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as Kg,jsx as ca}from"react/jsx-runtime";var Xg=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return ca(ar,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return ca(ar,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Yg=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>ca(Kg,{children:Xg({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),Zg=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>ca(W,{className:r(i),background:n,idSection:e,children:ca(Yg,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as au,jsx as Te,jsxs as ir}from"react/jsx-runtime";var vl=({dataHeading:e,dataCTA:o,dataButtons:t})=>ir("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&&Te(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&Te(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Jg=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>ir("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:[ir("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&Te(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&Te(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Te("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&Te(B,{ratio:4/3,children:Te("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),eu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return Te(vl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return Te(Jg,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return Te(vl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},tu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>Te(au,{children:eu({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),ou=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>Te(W,{className:t,idSection:a,background:o,children:Te(tu,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import hl from"react";import{jsx as Vt,jsxs as xl}from"react/jsx-runtime";var iu=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return xl("div",{className:"text-center",children:[Vt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:u(t??"")}),Vt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:u(o??"")}),a&&Vt("div",{className:"mt-2 text-sm text-gray-500",children:u(a??"")})]})},Ja=({dataMetrics:e,dataButtons:o,dataHeading:t})=>xl(hl.Fragment,{children:[t&&Vt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Vt("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,i)=>Vt(hl.Fragment,{children:Vt(iu,{metric:a})},i))}),o&&Vt(b,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import bl from"react";import{jsx as Wt,jsxs as yl}from"react/jsx-runtime";var ru=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return yl("div",{className:"text-center md:text-left",children:[Wt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:u(t??"")}),Wt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:u(o??"")}),a&&Wt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:u(a??"")})]})},rr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>yl(bl.Fragment,{children:[t&&Wt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Wt("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,i)=>Wt(bl.Fragment,{children:Wt(ru,{metric:a})},i))}),o&&Wt(b,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as mu,jsx as Io}from"react/jsx-runtime";var nu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return Io(Ja,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return Io(rr,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return Io(Ja,{dataMetrics:o,dataButtons:a,dataHeading:e})}},su=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>Io(mu,{children:nu({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),lu=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:i,className:n,template:s})=>Io(W,{className:r(n),background:i,idSection:e,children:Io(su,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as cu}from"react";import{jsx as wl,jsxs as pu}from"react/jsx-runtime";var du=cu(({className:e,title:o,children:t},a)=>pu("div",{className:e,ref:a,children:[wl("div",{className:"font-semibold text-gray-800",children:o}),wl("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 hu}from"react";import{Fragment as vu,jsx as no,jsxs as uu}from"react/jsx-runtime";var fu=()=>no("div",{className:"p-3 border rounded-lg",children:uu("div",{className:"flex items-center gap-3",children:[no(Oa,{className:"rounded-md h-9 w-9 "}),no("div",{className:"flex-1",children:no(Oa,{className:"w-48 h-5 "})}),no("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function gu(){return no(vu,{children:Array.from({length:4}).map((e,o)=>no(fu,{},o))})}var Nl=gu;import{Fragment as yu,jsx as Dt,jsxs as nr}from"react/jsx-runtime";var xu=({paymentMethod:e})=>Dt(Fa,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:nr("div",{className:"flex items-center space-x-3",children:[Dt("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),nr("div",{className:"grid grid-cols-1 gap-1",children:[Dt("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Dt("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Dt("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),bu=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=hu(s=>a?.(s),[a]);return nr(yu,{children:[e&&Dt("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Dt(Nl,{}):Dt(Ba,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Dt(xu,{paymentMethod:s},s.id))})]})};import{forwardRef as Pl}from"react";import{jsx as Rl}from"react/jsx-runtime";var wu=Pl(({children:e,className:o},t)=>Rl("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),Cl=Pl(({children:e,className:o,...t},a)=>Rl(wu,{ref:a,className:o,...t,children:e}));Cl.displayName="Payment";import{forwardRef as Nu}from"react";import{jsx as kl,jsxs as Cu}from"react/jsx-runtime";var Pu=Nu(({className:e,children:o},t)=>Cu("div",{className:r("",e),ref:t,children:[kl("hr",{className:"mb-5 h-px w-full bg-gray-500"}),kl("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as Ru}from"react";import{jsx as Tu}from"react/jsx-runtime";var ku=Ru(({className:e,children:o},t)=>Tu("div",{className:r("pb-5",e),ref:t,children:o}));import{forwardRef as Lu}from"react";import{CheckBadgeIcon as Su,XCircleIcon as Du}from"@heroicons/react/20/solid";import{jsx as ne,jsxs as Ao}from"react/jsx-runtime";var Mu=({iconPaymentResult:e,message:o="",title:t=""})=>Ao("div",{className:"grid grid-cols-1 gap-4",children:[Ao("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(ia,{message:o,type:"success",icon:ne(Su,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Iu=({iconPaymentResult:e,message:o="",title:t=""})=>Ao("div",{className:"grid grid-cols-1 gap-4",children:[Ao("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),ne(ia,{message:o,type:"error",icon:ne(Du,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Au=({iconPaymentResult:e,message:o="",title:t=""})=>Ao("div",{className:"grid grid-cols-1 gap-4",children:[Ao("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(ia,{message:o,type:"neutral"})]}),Tl=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ne(Mu,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return ne(Iu,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return ne(Au,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as Eu,jsxs as Hu}from"react/jsx-runtime";var zu=Lu(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>Hu("div",{ref:s,className:r("rounded-lg p-4",e),children:[Eu(Tl,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));import{forwardRef as Bu,useEffect as Fu}from"react";import{jsx as sr,jsxs as _u}from"react/jsx-runtime";var ei=({content:e})=>_u("picture",{children:[sr("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),sr("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),sr(Oe,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as da,jsxs as Wu}from"react/jsx-runtime";var Ou=({template:e,content:o})=>{switch(e){case 1:return da(ei,{content:o});default:return da(ei,{content:o})}},Vu=Bu(({template:e,content:o},t)=>(Fu(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),Wu("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[da("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:da("div",{className:"content",children:Ou({template:e,content:o})})}),da("style",{children:`
301
+ `})]})};import{Fragment as Bu,jsx as io}from"react/jsx-runtime";var Hu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return io(tr,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return io(fl,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return io(cl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return io(tr,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},_u=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>io(Bu,{children:Hu({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Fu=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>io(W,{className:r(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:io(_u,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import{Fragment as Ou,jsx as oe,jsxs as ro}from"react/jsx-runtime";var or=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>oe(pt,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>ro(ft,{value:n.title,className:"last:border-none",children:[oe(ut,{className:"md:text-lg",children:n.title}),oe(gt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:g(n.description)})]},s))});return ro("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[oe("div",{className:"relative",children:ro("div",{className:"md:sticky md:top-16",children:[o&&oe(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&oe(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&oe("div",{className:"col-span-2",children:a(e[0])}),t&&oe(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},ul=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>oe(pt,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>ro(ft,{value:c.title,className:"last:border-none",children:[oe(ut,{className:"md:text-lg",children:c.title}),oe(gt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:g(c.description)})]},d))});return ro(Ou,{children:[o&&oe(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&ro(Nt,{defaultValue:e[0]?.title,children:[e?.length>1&&ro(xt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[oe(bt,{className:"mb-3 text-center",children:oe(Ye,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>oe(Ze,{value:m.title,children:m.title},m.title+c))})}),oe(yt,{}),oe(wt,{})]}),e.map((m,c)=>oe(Ke,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&oe(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};import{Fragment as $u,jsx as Mo}from"react/jsx-runtime";var Vu=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return Mo(or,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return Mo(ul,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return Mo(or,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Wu=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>Mo($u,{children:Vu({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),Gu=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Mo(W,{className:t,idSection:i,background:a,children:Mo(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{Fragment as gl,jsx as X,jsxs as lt}from"react/jsx-runtime";var qu=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return lt(gl,{children:[X("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:lt("picture",{children:[X("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),X("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),lt("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[X("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),lt("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&lt(gl,{children:[X(fe,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&X("span",{className:"flex-none leading-none",children:"\xB7"})]}),X("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},ar=Qu(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,u)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(u,"_blank")},c=(d,p)=>lt("div",{children:[X("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((u,h)=>X("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:X("div",{onClick:R=>m(R,u?.id,u?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:X(qu,{news:u})},u?.id)},h))}),d?.isShowBtn&&X("div",{className:"mt-8 flex w-full items-center justify-center",children:lt(Oe,{action:d?.btnUrl||i&&(()=>i?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[g(d.btnName||"Xem th\xEAm"),d?.isLoading?X(co,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!d?.btnUrl&&X(Uu,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return lt(ju.Fragment,{children:[e&&X(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?lt(Nt,{defaultValue:t[0]?.title,children:[lt(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[X(bt,{className:"mb-6 text-center",children:X(Ye,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>X(Ze,{value:d.title,children:d.title},d.title+p))})}),X(yt,{}),X(wt,{})]}),t.map((d,p)=>X(Ke,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as Ku,jsx as ca}from"react/jsx-runtime";var Xu=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return ca(ar,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return ca(ar,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Yu=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>ca(Ku,{children:Xu({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),Zu=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>ca(W,{className:r(i),background:n,idSection:e,children:ca(Yu,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as ag,jsx as Te,jsxs as ir}from"react/jsx-runtime";var vl=({dataHeading:e,dataCTA:o,dataButtons:t})=>ir("div",{className:"block overflow-hidden relative p-6 bg-pink-50 rounded-2xl md:px-10 md:py-14 lg:overflow-visible",style:{background:o?.background},children:[e&&Te(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&Te(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Ju=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>ir("div",{className:"block grid overflow-hidden relative grid-cols-1 gap-6 p-6 pb-0 bg-pink-700 rounded-2xl md:grid-cols-2 md:px-10 md:pb-0 md:pt-0 lg:overflow-visible",style:o?.background?{background:o.background}:{},children:[ir("div",{className:"flex flex-col justify-center md:py-14",children:[e&&Te(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&Te(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Te("div",{className:"self-end mx-auto w-full max-w-sm md:ml-auto md:mr-0 md:pt-10",children:a&&Te(F,{ratio:4/3,children:Te("img",{src:a.src,alt:a.alt,className:"object-contain w-full h-full rounded-md","data-puck-editable":"true","data-puck-component":"CTASection","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})})]}),eg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return Te(vl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return Te(Ju,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return Te(vl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},tg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>Te(ag,{children:eg({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),og=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>Te(W,{className:t,idSection:a,background:o,children:Te(tg,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import hl from"react";import{jsx as Vt,jsxs as xl}from"react/jsx-runtime";var ig=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return xl("div",{className:"text-center",children:[Vt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:g(t??"")}),Vt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:g(o??"")}),a&&Vt("div",{className:"mt-2 text-sm text-gray-500",children:g(a??"")})]})},Ja=({dataMetrics:e,dataButtons:o,dataHeading:t})=>xl(hl.Fragment,{children:[t&&Vt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Vt("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,i)=>Vt(hl.Fragment,{children:Vt(ig,{metric:a})},i))}),o&&Vt(b,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import bl from"react";import{jsx as Wt,jsxs as yl}from"react/jsx-runtime";var rg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return yl("div",{className:"text-center md:text-left",children:[Wt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:g(t??"")}),Wt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:g(o??"")}),a&&Wt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:g(a??"")})]})},rr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>yl(bl.Fragment,{children:[t&&Wt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Wt("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,i)=>Wt(bl.Fragment,{children:Wt(rg,{metric:a})},i))}),o&&Wt(b,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as mg,jsx as Io}from"react/jsx-runtime";var ng=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return Io(Ja,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return Io(rr,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return Io(Ja,{dataMetrics:o,dataButtons:a,dataHeading:e})}},sg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>Io(mg,{children:ng({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),lg=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:i,className:n,template:s})=>Io(W,{className:r(n),background:i,idSection:e,children:Io(sg,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as cg}from"react";import{jsx as wl,jsxs as pg}from"react/jsx-runtime";var dg=cg(({className:e,title:o,children:t},a)=>pg("div",{className:e,ref:a,children:[wl("div",{className:"font-semibold text-gray-800",children:o}),wl("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 hg}from"react";import{Fragment as vg,jsx as no,jsxs as gg}from"react/jsx-runtime";var fg=()=>no("div",{className:"p-3 border rounded-lg",children:gg("div",{className:"flex items-center gap-3",children:[no(Oa,{className:"rounded-md h-9 w-9 "}),no("div",{className:"flex-1",children:no(Oa,{className:"w-48 h-5 "})}),no("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function ug(){return no(vg,{children:Array.from({length:4}).map((e,o)=>no(fg,{},o))})}var Nl=ug;import{Fragment as yg,jsx as Dt,jsxs as nr}from"react/jsx-runtime";var xg=({paymentMethod:e})=>Dt(Ba,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:nr("div",{className:"flex items-center space-x-3",children:[Dt("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),nr("div",{className:"grid grid-cols-1 gap-1",children:[Dt("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Dt("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Dt("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),bg=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=hg(s=>a?.(s),[a]);return nr(yg,{children:[e&&Dt("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Dt(Nl,{}):Dt(Fa,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Dt(xg,{paymentMethod:s},s.id))})]})};import{forwardRef as Pl}from"react";import{jsx as kl}from"react/jsx-runtime";var wg=Pl(({children:e,className:o},t)=>kl("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),Cl=Pl(({children:e,className:o,...t},a)=>kl(wg,{ref:a,className:o,...t,children:e}));Cl.displayName="Payment";import{forwardRef as Ng}from"react";import{jsx as Rl,jsxs as Cg}from"react/jsx-runtime";var Pg=Ng(({className:e,children:o},t)=>Cg("div",{className:r("",e),ref:t,children:[Rl("hr",{className:"mb-5 h-px w-full bg-gray-500"}),Rl("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as kg}from"react";import{jsx as Tg}from"react/jsx-runtime";var Rg=kg(({className:e,children:o},t)=>Tg("div",{className:r("pb-5",e),ref:t,children:o}));import{forwardRef as Lg}from"react";import{CheckBadgeIcon as Sg,XCircleIcon as Dg}from"@heroicons/react/20/solid";import{jsx as ne,jsxs as Ao}from"react/jsx-runtime";var Mg=({iconPaymentResult:e,message:o="",title:t=""})=>Ao("div",{className:"grid grid-cols-1 gap-4",children:[Ao("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(ia,{message:o,type:"success",icon:ne(Sg,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Ig=({iconPaymentResult:e,message:o="",title:t=""})=>Ao("div",{className:"grid grid-cols-1 gap-4",children:[Ao("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),ne(ia,{message:o,type:"error",icon:ne(Dg,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Ag=({iconPaymentResult:e,message:o="",title:t=""})=>Ao("div",{className:"grid grid-cols-1 gap-4",children:[Ao("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(ia,{message:o,type:"neutral"})]}),Tl=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ne(Mg,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return ne(Ig,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return ne(Ag,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as Eg,jsxs as Hg}from"react/jsx-runtime";var zg=Lg(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>Hg("div",{ref:s,className:r("rounded-lg p-4",e),children:[Eg(Tl,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));import{forwardRef as Fg,useEffect as Bg}from"react";import{jsx as sr,jsxs as _g}from"react/jsx-runtime";var ei=({content:e})=>_g("picture",{children:[sr("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),sr("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),sr(Oe,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as da,jsxs as Wg}from"react/jsx-runtime";var Og=({template:e,content:o})=>{switch(e){case 1:return da(ei,{content:o});default:return da(ei,{content:o})}},Vg=Fg(({template:e,content:o},t)=>(Bg(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),Wg("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[da("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:da("div",{className:"content",children:Og({template:e,content:o})})}),da("style",{children:`
302
302
  .container-topbar .content {
303
303
  width: 100%;
304
304
  aspect-ratio: 1088/50;
@@ -316,7 +316,7 @@ import*as Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
316
316
  aspect-ratio: 720/88;
317
317
  }
318
318
  }
319
- `})]})));import*as pa from"react";import{XIcon as Gu}from"lucide-react";import{Drawer as Be}from"vaul";import{jsx as mt,jsxs as lr}from"react/jsx-runtime";var Sl=({shouldScaleBackground:e=!0,...o})=>mt(Be.Root,{shouldScaleBackground:e,...o});Sl.displayName="Drawer";var $u=Be.Trigger,Dl=Be.Portal,ju=Be.Close,mr=pa.forwardRef(({className:e,...o},t)=>mt(Be.Overlay,{ref:t,className:r("fixed inset-0 z-50 bg-black/50",e),...o}));mr.displayName=Be.Overlay.displayName;var Ml=pa.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},i)=>lr(Dl,{children:[mt(mr,{}),lr(Be.Content,{ref:i,className:r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90dvh] flex-col rounded-t-xl border bg-white",e),...a,children:[!t&&lr(Be.Close,{className:r("data-[state=open]:outline-focus absolute right-2 top-2 select-none appearance-none rounded-full p-2 text-gray-700 outline-none hover:bg-gray-100 active:bg-gray-200 data-[state=open]:z-10 data-[state=open]:outline-2 data-[state=open]:outline-offset-2"),title:"\u0110\xF3ng",children:[mt(Gu,{className:"h-5 w-5"}),mt("span",{className:"sr-only",children:"Close"})]}),o]})]}));Ml.displayName="DrawerContent";var Il=({className:e,...o})=>mt("div",{className:r("grid gap-1.5 p-5 text-left",e),...o});Il.displayName="DrawerHeader";var Al=({className:e,...o})=>mt("div",{className:r("mt-auto flex flex-col gap-2 p-4",e),...o});Al.displayName="DrawerFooter";var Ll=pa.forwardRef(({className:e,...o},t)=>mt(Be.Title,{ref:t,className:r(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));Ll.displayName=Be.Title.displayName;var zl=pa.forwardRef(({className:e,...o},t)=>mt(Be.Description,{ref:t,className:r("truncate text-sm text-gray-500",e),...o}));zl.displayName=Be.Description.displayName;var El=({children:e,className:o,...t})=>mt("div",{className:r("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});El.displayName="DrawerBody";import*as so from"react";import{OTPInput as Qu,OTPInputContext as Uu}from"input-otp";import{Minus as qu}from"lucide-react";import{jsx as Lo,jsxs as Hl}from"react/jsx-runtime";var _l=so.forwardRef(({className:e,containerClassName:o,...t},a)=>Lo(Qu,{ref:a,containerClassName:r("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:r("disabled:cursor-not-allowed",e),...t}));_l.displayName="InputOTP";var Bl=so.forwardRef(({className:e,...o},t)=>Lo("div",{ref:t,className:r("flex items-center",e),...o}));Bl.displayName="InputOTPGroup";var Fl=so.forwardRef(({index:e,className:o,...t},a)=>{let i=so.useContext(Uu),{char:n,hasFakeCaret:s,isActive:l}=i.slots[e]??{};return Hl("div",{ref:a,className:r("border-input relative flex h-9 w-9 items-center justify-center border-y border-r border-gray-400 text-sm text-gray-900 shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"ring-ring z-10 ring-1",o),...t,children:[n,s&&Hl("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[Lo("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),Lo("style",{children:`
319
+ `})]})));import*as pa from"react";import{XIcon as Gg}from"lucide-react";import{Drawer as Fe}from"vaul";import{jsx as mt,jsxs as lr}from"react/jsx-runtime";var Sl=({shouldScaleBackground:e=!0,...o})=>mt(Fe.Root,{shouldScaleBackground:e,...o});Sl.displayName="Drawer";var $g=Fe.Trigger,Dl=Fe.Portal,jg=Fe.Close,mr=pa.forwardRef(({className:e,...o},t)=>mt(Fe.Overlay,{ref:t,className:r("fixed inset-0 z-50 bg-black/50",e),...o}));mr.displayName=Fe.Overlay.displayName;var Ml=pa.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},i)=>lr(Dl,{children:[mt(mr,{}),lr(Fe.Content,{ref:i,className:r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90dvh] flex-col rounded-t-xl border bg-white",e),...a,children:[!t&&lr(Fe.Close,{className:r("data-[state=open]:outline-focus absolute right-2 top-2 select-none appearance-none rounded-full p-2 text-gray-700 outline-none hover:bg-gray-100 active:bg-gray-200 data-[state=open]:z-10 data-[state=open]:outline-2 data-[state=open]:outline-offset-2"),title:"\u0110\xF3ng",children:[mt(Gg,{className:"h-5 w-5"}),mt("span",{className:"sr-only",children:"Close"})]}),o]})]}));Ml.displayName="DrawerContent";var Il=({className:e,...o})=>mt("div",{className:r("grid gap-1.5 p-5 text-left",e),...o});Il.displayName="DrawerHeader";var Al=({className:e,...o})=>mt("div",{className:r("mt-auto flex flex-col gap-2 p-4",e),...o});Al.displayName="DrawerFooter";var Ll=pa.forwardRef(({className:e,...o},t)=>mt(Fe.Title,{ref:t,className:r(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));Ll.displayName=Fe.Title.displayName;var zl=pa.forwardRef(({className:e,...o},t)=>mt(Fe.Description,{ref:t,className:r("truncate text-sm text-gray-500",e),...o}));zl.displayName=Fe.Description.displayName;var El=({children:e,className:o,...t})=>mt("div",{className:r("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});El.displayName="DrawerBody";import*as so from"react";import{OTPInput as Qg,OTPInputContext as Ug}from"input-otp";import{Minus as qg}from"lucide-react";import{jsx as Lo,jsxs as Hl}from"react/jsx-runtime";var _l=so.forwardRef(({className:e,containerClassName:o,...t},a)=>Lo(Qg,{ref:a,containerClassName:r("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:r("disabled:cursor-not-allowed",e),...t}));_l.displayName="InputOTP";var Fl=so.forwardRef(({className:e,...o},t)=>Lo("div",{ref:t,className:r("flex items-center",e),...o}));Fl.displayName="InputOTPGroup";var Bl=so.forwardRef(({index:e,className:o,...t},a)=>{let i=so.useContext(Ug),{char:n,hasFakeCaret:s,isActive:l}=i.slots[e]??{};return Hl("div",{ref:a,className:r("border-input relative flex h-9 w-9 items-center justify-center border-y border-r border-gray-400 text-sm text-gray-900 shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"ring-ring z-10 ring-1",o),...t,children:[n,s&&Hl("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[Lo("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),Lo("style",{children:`
320
320
  @keyframes caret-blink {
321
321
  0%, 70%, 100% {
322
322
  opacity: 1;
@@ -329,7 +329,7 @@ import*as Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
329
329
  .animate-caret-blink {
330
330
  animation: caret-blink 1.25s ease-out infinite;
331
331
  }
332
- `})]})]})});Fl.displayName="InputOTPSlot";var Ol=so.forwardRef(({...e},o)=>Lo("div",{ref:o,role:"separator",...e,children:Lo(qu,{className:"text-gray-400"})}));Ol.displayName="InputOTPSeparator";import{useEffect as $l,useRef as r0,useState as jl}from"react";import{toPng as n0}from"html-to-image";import ga from"react";import{LucideMessageCircleQuestion as e0}from"lucide-react";import{QRCodeSVG as t0}from"qrcode.react";async function Vl(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let n=i.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=i.toDataURL("image/png");o(s)},a.onerror=function(i){t(i)},a.src=e})}import{Fragment as Ku,jsx as se,jsxs as Qe}from"react/jsx-runtime";var Xu=()=>{let e=[{text:"Ng\u01B0\u1EDDi d\xF9ng l\u01B0u m\xE3 QR v\u1EC1 m\xE1y (nh\u1EA5n gi\u1EEF \u1EA3nh ho\u1EB7c ch\u1EE5p m\xE0n h\xECnh)."},{text:"M\u1EDF \u1EE9ng d\u1EE5ng Ng\xE2n h\xE0ng ho\u1EB7c V\xED \u0111i\u1EC7n t\u1EED"},{text:'Trong app, ch\u1ECDn ch\u1EE9c n\u0103ng "Qu\xE9t QR" (th\u01B0\u1EDDng l\xE0 bi\u1EC3u t\u01B0\u1EE3ng camera/scan) \u0111\u1EC3 t\u1EA3i \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'},{text:'"Ch\u1ECDn \u1EA3nh t\u1EEB th\u01B0 vi\u1EC7n" / "T\u1EA3i \u1EA3nh QR" ch\u1ECDn \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'}];return se("ul",{className:"-ml-3 grid list-decimal grid-cols-1 gap-y-6 md:hidden",children:e.map((o,t)=>Qe("li",{className:"relative flex items-center gap-4",children:[se("div",{className:"relative z-20 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-gray-100 text-sm font-semibold text-gray-700",children:t+1}),Qe("div",{className:"flex flex-1 items-start gap-2",children:[se("p",{className:"text-sm leading-relaxed text-gray-700",children:u(o.text)}),t<e.length-1&&se("div",{className:"absolute left-4 top-8 h-12 w-px -translate-x-1/2 transform bg-gray-400"})]})]},t))})},Yu=({isQrForAll:e,shortTitle:o,className:t})=>Qe("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[Qe("div",{className:"flex flex-nowrap items-start",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Qe("div",{className:"flex-1 pl-4",children:[se("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 1 :"}),se("div",{className:"mt-1 text-gray-500",children:e?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),Qe("div",{className:"flex flex-nowrap items-center",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Qe("div",{className:"flex-1 pl-4",children:[se("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 2 :"}),se("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Qe("div",{className:"flex flex-nowrap items-center",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Qe("div",{className:"flex-1 pl-4",children:[se("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 3 :"}),Qe("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c ",o||"Truy c\u1EADp ngay"]})]})]})]}),Zu=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>Qe(Ku,{children:[se(Yu,{isQrForAll:e,shortTitle:o,className:t}),se(Xu,{})]}),cr=Zu;import{jsx as fa,jsxs as Wl}from"react/jsx-runtime";var Ju=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:i,onOpenChange:n})=>Wl(Fe,{open:i,onOpenChange:n,children:[fa(Bo,{asChild:!0,children:e}),Wl(Ie,{position:"bottom",children:[fa(po,{children:fa(fo,{children:o})}),fa(Xe,{children:fa(cr,{isQrForAll:t,shortTitle:a})})]})]}),dr=Ju;import{Fragment as ti,jsx as R,jsxs as ce}from"react/jsx-runtime";var o0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n})=>ce(ti,{children:[ce("div",{className:"relative select-none qrcode__scan__container",children:[ce("div",{className:"flex justify-center items-center space-x-2 w-full md:hidden",children:[R("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"select-none shrink-0"}),R("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),R("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"select-none shrink-0"})]}),ce("div",{className:"select-none qrcode__scan",children:[R("div",{className:"invisible opacity-0 select-none qrcode__gradient md:visible md:opacity-100",children:R("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),R("div",{className:"invisible opacity-0 select-none qrcode__border md:visible md:opacity-100",children:R("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),R("div",{className:"p-4 select-none qrcode__image",children:e?R("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy",onLoad:a}):ga.Children.map(o,s=>(ga.isValidElement(s),s))})]}),n&&ce("div",{className:"text-sm text-gray-900 md:hidden",children:[R("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),R("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),i&&ce("div",{className:r("mt-3 text-sm text-gray-900 md:hidden"),children:[R("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),R("span",{className:"font-semibold",children:i})]}),R("div",{className:"hidden mt-4 text-sm font-semibold text-gray-900 md:block",children:t?ce(ti,{children:[R("img",{src:"https://homepage.momocdn.net/img/frame-1-1-251120093929.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),R("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):ce(ti,{children:[R("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:R("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",R("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),a0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n,className:s=""})=>ce(ti,{children:[R("div",{className:r(s),children:R(o0,{dateExpired:i,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,children:o})}),R("style",{children:`
332
+ `})]})]})});Bl.displayName="InputOTPSlot";var Ol=so.forwardRef(({...e},o)=>Lo("div",{ref:o,role:"separator",...e,children:Lo(qg,{className:"text-gray-400"})}));Ol.displayName="InputOTPSeparator";import{useEffect as $l,useRef as r0,useState as jl}from"react";import{toPng as n0}from"html-to-image";import ua from"react";import{LucideMessageCircleQuestion as e0}from"lucide-react";import{QRCodeSVG as t0}from"qrcode.react";async function Vl(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let n=i.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=i.toDataURL("image/png");o(s)},a.onerror=function(i){t(i)},a.src=e})}import{Fragment as Kg,jsx as se,jsxs as Qe}from"react/jsx-runtime";var Xg=()=>{let e=[{text:"Ng\u01B0\u1EDDi d\xF9ng l\u01B0u m\xE3 QR v\u1EC1 m\xE1y (nh\u1EA5n gi\u1EEF \u1EA3nh ho\u1EB7c ch\u1EE5p m\xE0n h\xECnh)."},{text:"M\u1EDF \u1EE9ng d\u1EE5ng Ng\xE2n h\xE0ng ho\u1EB7c V\xED \u0111i\u1EC7n t\u1EED"},{text:'Trong app, ch\u1ECDn ch\u1EE9c n\u0103ng "Qu\xE9t QR" (th\u01B0\u1EDDng l\xE0 bi\u1EC3u t\u01B0\u1EE3ng camera/scan) \u0111\u1EC3 t\u1EA3i \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'},{text:'"Ch\u1ECDn \u1EA3nh t\u1EEB th\u01B0 vi\u1EC7n" / "T\u1EA3i \u1EA3nh QR" ch\u1ECDn \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'}];return se("ul",{className:"-ml-3 grid list-decimal grid-cols-1 gap-y-6 md:hidden",children:e.map((o,t)=>Qe("li",{className:"relative flex items-center gap-4",children:[se("div",{className:"relative z-20 flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-gray-100 text-sm font-semibold text-gray-700",children:t+1}),Qe("div",{className:"flex flex-1 items-start gap-2",children:[se("p",{className:"text-sm leading-relaxed text-gray-700",children:g(o.text)}),t<e.length-1&&se("div",{className:"absolute left-4 top-8 h-12 w-px -translate-x-1/2 transform bg-gray-400"})]})]},t))})},Yg=({isQrForAll:e,shortTitle:o,className:t})=>Qe("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[Qe("div",{className:"flex flex-nowrap items-start",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Qe("div",{className:"flex-1 pl-4",children:[se("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 1 :"}),se("div",{className:"mt-1 text-gray-500",children:e?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),Qe("div",{className:"flex flex-nowrap items-center",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Qe("div",{className:"flex-1 pl-4",children:[se("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 2 :"}),se("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Qe("div",{className:"flex flex-nowrap items-center",children:[se("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:se("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Qe("div",{className:"flex-1 pl-4",children:[se("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 3 :"}),Qe("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c ",o||"Truy c\u1EADp ngay"]})]})]})]}),Zg=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>Qe(Kg,{children:[se(Yg,{isQrForAll:e,shortTitle:o,className:t}),se(Xg,{})]}),cr=Zg;import{jsx as fa,jsxs as Wl}from"react/jsx-runtime";var Jg=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:i,onOpenChange:n})=>Wl(Be,{open:i,onOpenChange:n,children:[fa(Fo,{asChild:!0,children:e}),Wl(Ie,{position:"bottom",children:[fa(po,{children:fa(fo,{children:o})}),fa(Xe,{children:fa(cr,{isQrForAll:t,shortTitle:a})})]})]}),dr=Jg;import{Fragment as ti,jsx as k,jsxs as ce}from"react/jsx-runtime";var o0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n})=>ce(ti,{children:[ce("div",{className:"relative select-none qrcode__scan__container",children:[ce("div",{className:"flex justify-center items-center space-x-2 w-full md:hidden",children:[k("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"select-none shrink-0"}),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:"select-none shrink-0"})]}),ce("div",{className:"select-none qrcode__scan",children:[k("div",{className:"invisible opacity-0 select-none qrcode__gradient 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:"invisible opacity-0 select-none qrcode__border 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:"p-4 select-none qrcode__image",children:e?k("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy",onLoad:a}):ua.Children.map(o,s=>(ua.isValidElement(s),s))})]}),n&&ce("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})]})]}),i&&ce("div",{className:r("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:i})]}),k("div",{className:"hidden mt-4 text-sm font-semibold text-gray-900 md:block",children:t?ce(ti,{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"})]}):ce(ti,{children:[k("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: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."]})})]}),a0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n,className:s=""})=>ce(ti,{children:[k("div",{className:r(s),children:k(o0,{dateExpired:i,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,children:o})}),k("style",{children:`
333
333
  .qrcode__scan__container {
334
334
  padding: 15px;
335
335
  background-color: white;
@@ -397,7 +397,7 @@ import*as Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
397
397
  transform: translate3d(0, 30%, 0);
398
398
  }
399
399
  }
400
- `})]}),i0=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:i,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:m,dateExpired:c,priceOrder:d,titleOrder:p})=>{let[g,h]=ga.useState(void 0);return ga.useEffect(()=>{a?Vl(a).then(h).catch(()=>h(void 0)):h(void 0)},[a]),ga.useEffect(()=>{t&&g&&typeof s=="function"&&!o&&s()},[t,g,s,o]),ce("div",{className:"relative z-[1]",children:[ce("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:m,children:[R("img",{className:"hidden absolute right-6 top-14 pointer-events-none select-none md:flex",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250821154232-638913877527374430.png",alt:"pattern-qr"}),R("div",{className:r("mb-2 hidden text-base font-bold text-gray-900 md:block",l&&"opacity-0 md:opacity-100"),children:p||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),l&&R("div",{className:"overflow-hidden absolute top-0 right-0 left-0 visible z-20 w-full h-full opacity-100 cursor-pointer md:hidden md:select-none",children:R("img",{src:l,alt:"QR Code",className:"absolute top-1/2 left-1/2 max-w-none max-h-full -translate-x-1/2 -translate-y-1/2"})}),ce(a0,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,children:[t&&g&&!o&&R(t0,{value:t,size:215,imageSettings:{src:`${g}`,height:40,width:40,excavate:!0},level:"H"}),i&&R("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:R("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&R("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:R(Gi,{size:"lg"})})]})]}),ce("div",{className:"relative z-10 px-5 pb-5 text-center bg-pink-50 bg-repeat-y select-none qrcode__guide",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[ce("div",{className:r("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[ce("div",{className:"rounded-full ripple size-5",children:[R("div",{className:"ripple-1"}),R("div",{className:"ripple-2"})]}),R("img",{className:"object-contain relative z-10 -mt-1 drop-shadow-lg select-none qrcode__hand size-7",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),R("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),R(dr,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:ce("div",{className:"flex justify-center items-center space-x-1 text-sm font-semibold text-center text-pink-600 cursor-pointer",children:[R("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",R(e0,{className:"size-4"})," "]})}),R("style",{children:`
400
+ `})]}),i0=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:i,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:m,dateExpired:c,priceOrder:d,titleOrder:p})=>{let[u,h]=ua.useState(void 0);return ua.useEffect(()=>{a?Vl(a).then(h).catch(()=>h(void 0)):h(void 0)},[a]),ua.useEffect(()=>{t&&u&&typeof s=="function"&&!o&&s()},[t,u,s,o]),ce("div",{className:"relative z-[1]",children:[ce("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:m,children:[k("img",{className:"hidden absolute right-6 top-14 pointer-events-none select-none md:flex",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250821154232-638913877527374430.png",alt:"pattern-qr"}),k("div",{className:r("mb-2 hidden text-base font-bold text-gray-900 md:block",l&&"opacity-0 md:opacity-100"),children:p||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),l&&k("div",{className:"overflow-hidden absolute top-0 right-0 left-0 visible z-20 w-full h-full opacity-100 cursor-pointer md:hidden md:select-none",children:k("img",{src:l,alt:"QR Code",className:"absolute top-1/2 left-1/2 max-w-none max-h-full -translate-x-1/2 -translate-y-1/2"})}),ce(a0,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,children:[t&&u&&!o&&k(t0,{value:t,size:215,imageSettings:{src:`${u}`,height:40,width:40,excavate:!0},level:"H"}),i&&k("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full 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:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:k(Gi,{size:"lg"})})]})]}),ce("div",{className:"relative z-10 px-5 pb-5 text-center bg-pink-50 bg-repeat-y select-none qrcode__guide",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[ce("div",{className:r("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[ce("div",{className:"rounded-full ripple size-5",children:[k("div",{className:"ripple-1"}),k("div",{className:"ripple-2"})]}),k("img",{className:"object-contain relative z-10 -mt-1 drop-shadow-lg select-none qrcode__hand size-7",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),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(dr,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:ce("div",{className:"flex justify-center items-center space-x-1 text-sm font-semibold text-center text-pink-600 cursor-pointer",children:[k("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",k(e0,{className:"size-4"})," "]})}),k("style",{children:`
401
401
  .ripple {
402
402
  box-sizing: border-box;
403
403
  position: relative;
@@ -453,7 +453,7 @@ import*as Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
453
453
  transform: scale(1) translateY(0);
454
454
  }
455
455
  }
456
- `})]})]})},Gl=i0;import{Fragment as c0,jsx as pr}from"react/jsx-runtime";var s0=["qrcode__gradient","qrcode__guide","qrcode__title"],l0=e=>!s0.some(o=>e.classList?.contains(o)),m0=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:i,dateExpired:n,priceOrder:s,titleOrder:l,className:m})=>{let c=r0(null),[d,p]=jl(null),[g,h]=jl(!1);return $l(()=>{if(g&&c.current){let k=setTimeout(()=>{c.current&&n0(c.current,{filter:l0}).then(P=>{p(P)}).catch(P=>{console.error("Error generating QR image:",P)})},2e3);return()=>clearTimeout(k)}},[g,t]),$l(()=>{e&&h(!1)},[e]),pr(c0,{children:pr("div",{className:r("relative h-full md:col-span-7 md:rounded-lg",m),children:pr(Gl,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:i,expired:o,loading:e,qrCodeRef:c,titleOrder:l,onQrLoaded:()=>{h(!0)},qrImageBase64:d,dateExpired:n,priceOrder:s})})})};import f0 from"color";import g0 from"tailwindcss/plugin.js";var Ql={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 Ul={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var ql={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Xl={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Yl={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Zl={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Kl={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Jl={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var em={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var tm={white:"#ffffff",black:"#000000",blue:Ul,green:ql,pink:Xl,purple:Yl,red:Zl,yellow:Kl,gray:em,orange:Jl};var fr={...tm};var om={"disabled-opacity":.5,"box-shadow":{small:"0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",medium:"0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",large:"0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"},radius:{none:"0px",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"font-size":{xxs:"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},"line-height":{xxs:"1rem",xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"1","6xl":"1","7xl":"1","8xl":"1","9xl":"1"}};var ct="250ms",am={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ct},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ct},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ct},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ct},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ct},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ct},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":ct},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":ct},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ct},".transition-transform-colors-opacity":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ct}};var im={".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 rm={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}};var nm={...im,...am,...rm};import{flatten as d0}from"flat";function p0(e){let o={};for(let t in e){if(t.endsWith("-DEFAULT")){o[t.replace("-DEFAULT","")]=e[t];continue}o[t]=e[t]}return o}var sm=e=>p0(d0(e,{safe:!0,delimiter:"-"}));var u0=e=>{let o={utilities:{},colors:{}},t=sm(fr),a=om,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=f0(s).rgb().array(),d=`--${e}-${n}`;o.utilities[i][d]=`${l} ${m} ${c}`,o.colors[n]=`rgb(var(${d}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([m,c])=>{let d=`${l}-${m}`;o.utilities[i][d]=c});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=m}}),o},v0=()=>{let e="mobase",o=u0(e);return g0(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...nm})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},extend:{fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"],mono:["SFMono-Regular","Consolas","Liberation Mono","Menlo","monospace"]},colors:{...fr,...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)`},...Ql}}})};import{Fragment as x0,jsx as A,jsxs as b0}from"react/jsx-runtime";var h0=b0(x0,{children:[A("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"}),A("meta",{name:"distribution",content:"Global"}),A("meta",{name:"author",content:"V\xED MoMo"}),A("meta",{property:"fb:app_id",content:"320653355376196"}),A("meta",{property:"fb:pages",content:"138010322921640"}),A("link",{rel:"shortcut icon",href:"/favicon.ico"}),A("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),A("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),A("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),A("meta",{name:"language",content:"vietnamese"}),A("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),A("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),A("meta",{name:"RATING",content:"GENERAL"}),A("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),A("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),A("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),A("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),A("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),A("link",{rel:"dns-prefetch",href:"//facebook.com"}),A("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),A("link",{rel:"dns-prefetch",href:"//www.google.com"}),A("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),A("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),A("link",{rel:"preconnect",href:"//connect.facebook.net"}),A("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),A("link",{rel:"preconnect",href:"//www.google-analytics.com"}),A("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),A("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),A("link",{rel:"preconnect",href:"//www.google.com"}),A("link",{rel:"preconnect",href:"//www.google.com.vn"}),A("link",{rel:"preconnect",href:"//www.googleadservices.com"}),A("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
456
+ `})]})]})},Gl=i0;import{Fragment as c0,jsx as pr}from"react/jsx-runtime";var s0=["qrcode__gradient","qrcode__guide","qrcode__title"],l0=e=>!s0.some(o=>e.classList?.contains(o)),m0=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:i,dateExpired:n,priceOrder:s,titleOrder:l,className:m})=>{let c=r0(null),[d,p]=jl(null),[u,h]=jl(!1);return $l(()=>{if(u&&c.current){let R=setTimeout(()=>{c.current&&n0(c.current,{filter:l0}).then(P=>{p(P)}).catch(P=>{console.error("Error generating QR image:",P)})},2e3);return()=>clearTimeout(R)}},[u,t]),$l(()=>{e&&h(!1)},[e]),pr(c0,{children:pr("div",{className:r("relative h-full md:col-span-7 md:rounded-lg",m),children:pr(Gl,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:i,expired:o,loading:e,qrCodeRef:c,titleOrder:l,onQrLoaded:()=>{h(!0)},qrImageBase64:d,dateExpired:n,priceOrder:s})})})};import f0 from"color";import u0 from"tailwindcss/plugin.js";var Ql={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 Ul={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var ql={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Xl={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Yl={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Zl={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Kl={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Jl={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var em={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var tm={white:"#ffffff",black:"#000000",blue:Ul,green:ql,pink:Xl,purple:Yl,red:Zl,yellow:Kl,gray:em,orange:Jl};var fr={...tm};var om={"disabled-opacity":.5,"box-shadow":{small:"0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",medium:"0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",large:"0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"},radius:{none:"0px",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"font-size":{xxs:"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},"line-height":{xxs:"1rem",xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"1","6xl":"1","7xl":"1","8xl":"1","9xl":"1"}};var ct="250ms",am={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ct},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ct},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ct},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ct},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ct},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ct},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":ct},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":ct},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ct},".transition-transform-colors-opacity":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ct}};var im={".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 rm={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}};var nm={...im,...am,...rm};import{flatten as d0}from"flat";function p0(e){let o={};for(let t in e){if(t.endsWith("-DEFAULT")){o[t.replace("-DEFAULT","")]=e[t];continue}o[t]=e[t]}return o}var sm=e=>p0(d0(e,{safe:!0,delimiter:"-"}));var g0=e=>{let o={utilities:{},colors:{}},t=sm(fr),a=om,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=f0(s).rgb().array(),d=`--${e}-${n}`;o.utilities[i][d]=`${l} ${m} ${c}`,o.colors[n]=`rgb(var(${d}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([m,c])=>{let d=`${l}-${m}`;o.utilities[i][d]=c});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=m}}),o},v0=()=>{let e="mobase",o=g0(e);return u0(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...nm})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},extend:{fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"],mono:["SFMono-Regular","Consolas","Liberation Mono","Menlo","monospace"]},colors:{...fr,...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)`},...Ql}}})};import{Fragment as x0,jsx as A,jsxs as b0}from"react/jsx-runtime";var h0=b0(x0,{children:[A("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"}),A("meta",{name:"distribution",content:"Global"}),A("meta",{name:"author",content:"V\xED MoMo"}),A("meta",{property:"fb:app_id",content:"320653355376196"}),A("meta",{property:"fb:pages",content:"138010322921640"}),A("link",{rel:"shortcut icon",href:"/favicon.ico"}),A("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),A("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),A("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),A("meta",{name:"language",content:"vietnamese"}),A("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),A("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),A("meta",{name:"RATING",content:"GENERAL"}),A("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),A("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),A("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),A("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),A("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),A("link",{rel:"dns-prefetch",href:"//facebook.com"}),A("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),A("link",{rel:"dns-prefetch",href:"//www.google.com"}),A("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),A("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),A("link",{rel:"preconnect",href:"//connect.facebook.net"}),A("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),A("link",{rel:"preconnect",href:"//www.google-analytics.com"}),A("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),A("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),A("link",{rel:"preconnect",href:"//www.google.com"}),A("link",{rel:"preconnect",href:"//www.google.com.vn"}),A("link",{rel:"preconnect",href:"//www.googleadservices.com"}),A("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
457
457
  "@context": "https://schema.org/",
458
458
  "@type": "WebSite",
459
459
  "@id":"https://www.momo.vn/#website",
@@ -498,5 +498,5 @@ import*as Ho from"react";import{ChevronDownIcon as pm}from"@heroicons/react/20/s
498
498
  "https://www.linkedin.com/company/momo-mservice/",
499
499
  "https://github.com/momo-wallet"
500
500
  ]
501
- }`}})]});export{pt as Accordion,ut as AccordionContent,ft as AccordionItem,gt as AccordionTrigger,Oe as ActionButton,Qc as AlertDialog,on as AlertDialogAction,an as AlertDialogCancel,Zr as AlertDialogContent,tn as AlertDialogDescription,Jr as AlertDialogFooter,Kr as AlertDialogHeader,wi as AlertDialogOverlay,Yr as AlertDialogPortal,en as AlertDialogTitle,Uc as AlertDialogTrigger,B as AspectRatio,Xp as Badge,hc as BlogSection,Nr as Breadcrumb,Sr as BreadcrumbEllipsis,Cr as BreadcrumbItem,Rr as BreadcrumbLink,Pr as BreadcrumbList,kr as BreadcrumbPage,Tr as BreadcrumbSeparator,Me as Button,b as ButtonsBlock,ou as CTASection,Pa as Calendar,ia as Callout,Gn as Card,Un as CardContent,Qn as CardDescription,qn as CardFooter,$n as CardHeader,jn as CardTitle,ge as Carousel,ue as CarouselContent,xo as CarouselDots,le as CarouselItem,ho as CarouselNext,vo as CarouselPrevious,wa as Checkbox,Ba as ChoiceboxGroup,Fa as ChoiceboxGroupItem,ps as ChoiceboxMultiItem,Dp as Combobox,Sp as ComboboxContent,Tp as ComboboxTrigger,Bi as Command,Cp as CommandDialog,Zn as CommandEmpty,Kn as CommandGroup,Xn as CommandInput,es as CommandItem,Yn as CommandList,Jn as CommandSeparator,ts as CommandShortcut,xf as Comment,Hc as DatePicker,jc as DateSelect,Fe as Dialog,Xe as DialogBody,ri as DialogClose,Ie as DialogContent,wr as DialogDescription,yr as DialogFooter,po as DialogHeader,ni as DialogOverlay,br as DialogPortal,jt as DialogQr,fo as DialogTitle,Bo as DialogTrigger,Sl as Drawer,El as DrawerBody,ju as DrawerClose,Ml as DrawerContent,zl as DrawerDescription,Al as DrawerFooter,Il as DrawerHeader,mr as DrawerOverlay,Dl as DrawerPortal,Ll as DrawerTitle,$u as DrawerTrigger,If as DropdownMenu,Es as DropdownMenuCheckboxItem,Ls as DropdownMenuContent,Lf as DropdownMenuGroup,zs as DropdownMenuItem,_s as DropdownMenuLabel,zf as DropdownMenuPortal,Hf as DropdownMenuRadioGroup,Hs as DropdownMenuRadioItem,Bs as DropdownMenuSeparator,Fs as DropdownMenuShortcut,Ef as DropdownMenuSub,As as DropdownMenuSubContent,Is as DropdownMenuSubTrigger,Af as DropdownMenuTrigger,Gg as FAQSection,Rg as FeatureSection,wp as Footer,ld as GuideSection,Fn as HeaderNavigation,ci as Heading,x as HeadingBlock,pi as HeadingGroup,di as HeadingSub,mi as HeadingTagline,Jf as HeroSection,bt as HorizontalContent,wt as HorizontalNext,yt as HorizontalPrevious,xt as HorizontalScroll,Wf as HowItWorksSection,re as IconButton,_l as InputOTP,Bl as InputOTPGroup,Ol as InputOTPSeparator,Fl as InputOTPSlot,Wi as LightBoxGalleryContent,Vi as LightboxGallery,$p as LightboxThumbnail,lu as MetricsSection,Ma as NavigationMenu,Ea as NavigationMenuContent,Aa as NavigationMenuItem,ea as NavigationMenuLink,Ia as NavigationMenuList,za as NavigationMenuTrigger,Zg as NewsSection,pn as Pagination,Cl as Payment,cr as PaymentGuide,dr as PaymentGuideDialog,du as PaymentInvoice,bu as PaymentMethods,zu as PaymentResult,ku as PaymentResultContent,Pu as PaymentResultFooter,Wo as Popover,yo as PopoverContent,Go as PopoverTrigger,Sf as ProgressSteps,Tf as ProgressStepsItem,kf as ProgressStepsItemTrigger,xs as Progressbar,m0 as QRPayment,Dn as RadioGroup,Mn as RadioGroupItem,$i as ReadMoreLite,Op as SearchBar,W as SectionBlock,Qo as Select,No as SelectContent,qo as SelectGroup,It as SelectItem,$r as SelectLabel,bi as SelectScrollDownButton,xi as SelectScrollUpButton,jr as SelectSeparator,wo as SelectTrigger,Uo as SelectValue,h0 as SiteMeta,Oa as Skeleton,ws as Slider,bg as SocialProofSection,Gi as Spinner,Nn as Stepper,kn as Switch,Nt as Tabs,Ke as TabsContent,Ye as TabsList,Ze as TabsTrigger,Bg as TestimonialSection,vd as TextArea,fe as TextButton,Bd as TextInput,xn as ToastAction,Td as Toaster,Dd as Tooltip,bn as TooltipArrow,yn as TooltipContent,Sd as TooltipProvider,Md as TooltipTrigger,Vu as Topbar,gs as badgeVariants,qe as buttonVariants,v0 as mobaseTW,La as navigationMenuTriggerStyle,Lr as textButtonVariants,un as toast,Ti as useToast};
501
+ }`}})]});export{pt as Accordion,gt as AccordionContent,ft as AccordionItem,ut as AccordionTrigger,Oe as ActionButton,Qc as AlertDialog,on as AlertDialogAction,an as AlertDialogCancel,Zr as AlertDialogContent,tn as AlertDialogDescription,Jr as AlertDialogFooter,Kr as AlertDialogHeader,wi as AlertDialogOverlay,Yr as AlertDialogPortal,en as AlertDialogTitle,Uc as AlertDialogTrigger,F as AspectRatio,Xp as Badge,hc as BlogSection,Nr as Breadcrumb,Sr as BreadcrumbEllipsis,Cr as BreadcrumbItem,kr as BreadcrumbLink,Pr as BreadcrumbList,Rr as BreadcrumbPage,Tr as BreadcrumbSeparator,Me as Button,b as ButtonsBlock,og as CTASection,Pa as Calendar,ia as Callout,Gn as Card,Un as CardContent,Qn as CardDescription,qn as CardFooter,$n as CardHeader,jn as CardTitle,ue as Carousel,ge as CarouselContent,xo as CarouselDots,le as CarouselItem,ho as CarouselNext,vo as CarouselPrevious,wa as Checkbox,Fa as ChoiceboxGroup,Ba as ChoiceboxGroupItem,ps as ChoiceboxMultiItem,Dp as Combobox,Sp as ComboboxContent,Tp as ComboboxTrigger,Fi as Command,Cp as CommandDialog,Zn as CommandEmpty,Kn as CommandGroup,Xn as CommandInput,es as CommandItem,Yn as CommandList,Jn as CommandSeparator,ts as CommandShortcut,xf as Comment,Hc as DatePicker,jc as DateSelect,Be as Dialog,Xe as DialogBody,ri as DialogClose,Ie as DialogContent,wr as DialogDescription,yr as DialogFooter,po as DialogHeader,ni as DialogOverlay,br as DialogPortal,jt as DialogQr,fo as DialogTitle,Fo as DialogTrigger,Sl as Drawer,El as DrawerBody,jg as DrawerClose,Ml as DrawerContent,zl as DrawerDescription,Al as DrawerFooter,Il as DrawerHeader,mr as DrawerOverlay,Dl as DrawerPortal,Ll as DrawerTitle,$g as DrawerTrigger,If as DropdownMenu,Es as DropdownMenuCheckboxItem,Ls as DropdownMenuContent,Lf as DropdownMenuGroup,zs as DropdownMenuItem,_s as DropdownMenuLabel,zf as DropdownMenuPortal,Hf as DropdownMenuRadioGroup,Hs as DropdownMenuRadioItem,Fs as DropdownMenuSeparator,Bs as DropdownMenuShortcut,Ef as DropdownMenuSub,As as DropdownMenuSubContent,Is as DropdownMenuSubTrigger,Af as DropdownMenuTrigger,Gu as FAQSection,ku as FeatureSection,wp as Footer,ld as GuideSection,Bn as HeaderNavigation,ci as Heading,x as HeadingBlock,pi as HeadingGroup,di as HeadingSub,mi as HeadingTagline,Jf as HeroSection,bt as HorizontalContent,wt as HorizontalNext,yt as HorizontalPrevious,xt as HorizontalScroll,Wf as HowItWorksSection,re as IconButton,_l as InputOTP,Fl as InputOTPGroup,Ol as InputOTPSeparator,Bl as InputOTPSlot,Wi as LightBoxGalleryContent,Vi as LightboxGallery,$p as LightboxThumbnail,lg as MetricsSection,Ma as NavigationMenu,Ea as NavigationMenuContent,Aa as NavigationMenuItem,ea as NavigationMenuLink,Ia as NavigationMenuList,za as NavigationMenuTrigger,Zu as NewsSection,pn as Pagination,Cl as Payment,cr as PaymentGuide,dr as PaymentGuideDialog,dg as PaymentInvoice,bg as PaymentMethods,zg as PaymentResult,Rg as PaymentResultContent,Pg as PaymentResultFooter,Wo as Popover,yo as PopoverContent,Go as PopoverTrigger,Sf as ProgressSteps,Tf as ProgressStepsItem,Rf as ProgressStepsItemTrigger,xs as Progressbar,m0 as QRPayment,Dn as RadioGroup,Mn as RadioGroupItem,$i as ReadMoreLite,Op as SearchBar,W as SectionBlock,Qo as Select,No as SelectContent,qo as SelectGroup,It as SelectItem,$r as SelectLabel,bi as SelectScrollDownButton,xi as SelectScrollUpButton,jr as SelectSeparator,wo as SelectTrigger,Uo as SelectValue,h0 as SiteMeta,Oa as Skeleton,ws as Slider,bu as SocialProofSection,Gi as Spinner,Nn as Stepper,Rn as Switch,Nt as Tabs,Ke as TabsContent,Ye as TabsList,Ze as TabsTrigger,Fu as TestimonialSection,vd as TextArea,fe as TextButton,Fd as TextInput,xn as ToastAction,Td as Toaster,Dd as Tooltip,bn as TooltipArrow,yn as TooltipContent,Sd as TooltipProvider,Md as TooltipTrigger,Vg as Topbar,us as badgeVariants,qe as buttonVariants,v0 as mobaseTW,La as navigationMenuTriggerStyle,Lr as textButtonVariants,gn as toast,Ti as useToast};
502
502
  //# sourceMappingURL=index.js.map