@momo-webplatform/mobase 0.2.74 → 0.2.75

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 No from"react";import{ChevronDownIcon as jl}from"@heroicons/react/20/solid";import*as Te from"@radix-ui/react-accordion";import*as Wl from"react";import{twMerge as $l}from"tailwind-merge";var ot={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var ei={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var yo=[{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"}],Wa=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}];var le={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};import{createMedia as Gl}from"@artsy/fresnel";function i(...e){return $l(e)}var ti=Gl({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Hu=ti.createMediaStyle(),{Media:Be,MediaContextProvider:eo}=ti;import{jsx as to,jsxs as Ul}from"react/jsx-runtime";var at=No.forwardRef(({className:e,...o},t)=>to(Te.Root,{ref:t,...o}));at.displayName="AccordionRoot";var rt=No.forwardRef(({className:e,...o},t)=>to(Te.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));rt.displayName="AccordionItem";var it=No.forwardRef(({className:e,children:o,...t},a)=>to(Te.Header,{className:"flex",children:Ul(Te.Trigger,{ref:a,className:i("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,to(jl,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));it.displayName=Te.Trigger.displayName;var nt=No.forwardRef(({className:e,children:o,...t},a)=>to(Te.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:to("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));nt.displayName=Te.Content.displayName;import*as oi from"react";import{Slot as Xl}from"@radix-ui/react-slot";import{cva as Yl}from"class-variance-authority";import{jsx as ke,jsxs as ql}from"react/jsx-runtime";var Ql=({className:e})=>ql("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[ke("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),ke("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),ke("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),ke("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),ke("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),ke("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),ke("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),ke("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),ke("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),ke("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),ke("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),ke("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),oo=Ql;import{Fragment as Kl,jsx as $a,jsxs as Zl}from"react/jsx-runtime";var Ve=Yl("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Se=oi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?Xl:"button",d=i(Ve({variant:o,size:t,className:e}),{"cursor-wait":r});return $a(Kl,{children:a?$a(m,{className:d,type:"button",disabled:n,ref:l,...s,children:s.children}):Zl(m,{className:d,type:"button",disabled:n,ref:l,...s,children:[r&&$a(oo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Se.displayName="Button";import*as wo from"react";import{XMarkIcon as Jl}from"@heroicons/react/16/solid";import*as q from"@radix-ui/react-dialog";import{jsx as st,jsxs as Ga}from"react/jsx-runtime";var lt=q.Root,ja=q.Trigger,ai=q.Portal,Ua=q.Close,Qa=wo.forwardRef(({className:e,...o},t)=>st(q.Overlay,{ref:t,className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));Qa.displayName=q.Overlay.displayName;var Oe=wo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:n="auto",isFull:s=!1,children:l,...m},d)=>{let c={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},f={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},x=[c.base,c[r],f[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return Ga(ai,{children:[st(Qa,{}),Ga(q.Content,{ref:d,className:i(...x),...m,children:[l,!t&&Ga(q.Close,{className:i("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[st(Jl,{className:"h-5 w-5 text-gray-700"}),st("span",{className:"sr-only",children:"Close"})]})]})]})});Oe.displayName=q.Content.displayName;var Ko=({className:e,...o})=>st("div",{className:i("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});Ko.displayName="DialogHeader";var wt=({className:e,isCondensed:o=!1,...t})=>st("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});wt.displayName="DialogBody";var ri=({className:e,isDivider:o=!0,...t})=>st("div",{className:i("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});ri.displayName="DialogFooter";var Jo=wo.forwardRef(({className:e,...o},t)=>st(q.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Jo.displayName=q.Title.displayName;var ii=wo.forwardRef(({className:e,...o},t)=>st(q.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));ii.displayName=q.Description.displayName;import{QRCodeSVG as em}from"qrcode.react";import{Fragment as qa,jsx as R,jsxs as me}from"react/jsx-runtime";var tm=({img:e="",children:o,isQrForAll:t})=>me(qa,{children:[R("div",{className:"qrcode__scan__container",children:me("div",{className:"qrcode__scan",children:[R("div",{className:"qrcode__gradient",children:R("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),R("div",{className:"qrcode__border",children:R("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),R("div",{className:"qrcode__image p-4",children:e?R("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),R("div",{className:"mt-4 text-sm text-white",children:t?me(qa,{children:[R("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),R("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):me(qa,{children:[R("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:R("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",R("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),R("style",{children:`
1
+ import*as No from"react";import{ChevronDownIcon as jl}from"@heroicons/react/20/solid";import*as Te from"@radix-ui/react-accordion";import*as Wl from"react";import{twMerge as $l}from"tailwind-merge";var ot={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var ei={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var yo=[{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"}],Wa=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}];var le={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};import{createMedia as Gl}from"@artsy/fresnel";function i(...e){return $l(e)}var ti=Gl({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Fu=ti.createMediaStyle(),{Media:Ve,MediaContextProvider:eo}=ti;import{jsx as to,jsxs as Ul}from"react/jsx-runtime";var at=No.forwardRef(({className:e,...o},t)=>to(Te.Root,{ref:t,...o}));at.displayName="AccordionRoot";var rt=No.forwardRef(({className:e,...o},t)=>to(Te.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));rt.displayName="AccordionItem";var it=No.forwardRef(({className:e,children:o,...t},a)=>to(Te.Header,{className:"flex",children:Ul(Te.Trigger,{ref:a,className:i("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,to(jl,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));it.displayName=Te.Trigger.displayName;var nt=No.forwardRef(({className:e,children:o,...t},a)=>to(Te.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:to("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));nt.displayName=Te.Content.displayName;import*as oi from"react";import{Slot as Xl}from"@radix-ui/react-slot";import{cva as Yl}from"class-variance-authority";import{jsx as ke,jsxs as ql}from"react/jsx-runtime";var Ql=({className:e})=>ql("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[ke("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),ke("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),ke("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),ke("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),ke("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),ke("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),ke("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),ke("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),ke("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),ke("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),ke("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),ke("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),oo=Ql;import{Fragment as Kl,jsx as $a,jsxs as Zl}from"react/jsx-runtime";var Oe=Yl("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Se=oi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?Xl:"button",d=i(Oe({variant:o,size:t,className:e}),{"cursor-wait":r});return $a(Kl,{children:a?$a(m,{className:d,type:"button",disabled:n,ref:l,...s,children:s.children}):Zl(m,{className:d,type:"button",disabled:n,ref:l,...s,children:[r&&$a(oo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Se.displayName="Button";import*as wo from"react";import{XMarkIcon as Jl}from"@heroicons/react/16/solid";import*as q from"@radix-ui/react-dialog";import{jsx as st,jsxs as Ga}from"react/jsx-runtime";var lt=q.Root,ja=q.Trigger,ai=q.Portal,Ua=q.Close,Qa=wo.forwardRef(({className:e,...o},t)=>st(q.Overlay,{ref:t,className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));Qa.displayName=q.Overlay.displayName;var We=wo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:n="auto",isFull:s=!1,children:l,...m},d)=>{let c={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},f={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},x=[c.base,c[r],f[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return Ga(ai,{children:[st(Qa,{}),Ga(q.Content,{ref:d,className:i(...x),...m,children:[l,!t&&Ga(q.Close,{className:i("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[st(Jl,{className:"h-5 w-5 text-gray-700"}),st("span",{className:"sr-only",children:"Close"})]})]})]})});We.displayName=q.Content.displayName;var Ko=({className:e,...o})=>st("div",{className:i("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});Ko.displayName="DialogHeader";var wt=({className:e,isCondensed:o=!1,...t})=>st("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});wt.displayName="DialogBody";var ri=({className:e,isDivider:o=!0,...t})=>st("div",{className:i("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});ri.displayName="DialogFooter";var Jo=wo.forwardRef(({className:e,...o},t)=>st(q.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Jo.displayName=q.Title.displayName;var ii=wo.forwardRef(({className:e,...o},t)=>st(q.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));ii.displayName=q.Description.displayName;import{QRCodeSVG as em}from"qrcode.react";import{Fragment as qa,jsx as R,jsxs as me}from"react/jsx-runtime";var tm=({img:e="",children:o,isQrForAll:t})=>me(qa,{children:[R("div",{className:"qrcode__scan__container",children:me("div",{className:"qrcode__scan",children:[R("div",{className:"qrcode__gradient",children:R("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),R("div",{className:"qrcode__border",children:R("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),R("div",{className:"qrcode__image p-4",children:e?R("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),R("div",{className:"mt-4 text-sm text-white",children:t?me(qa,{children:[R("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),R("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):me(qa,{children:[R("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:R("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",R("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),R("style",{children:`
2
2
  .qrcode__scan__container {
3
3
  padding: 15px;
4
4
  background-color: white;
@@ -67,7 +67,7 @@ import*as No from"react";import{ChevronDownIcon as jl}from"@heroicons/react/20/s
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),zt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>R(lt,{...m,children:R(Oe,{className:i("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:R(wt,{className:"p-0",children:me("div",{className:"flex flex-row flex-wrap",children:[R("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||me("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),R("div",{className:"mt-1 text-gray-500 ",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),R("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),me("div",{className:"mt-1 text-gray-500 ",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),R("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:me("div",{className:"px-5 py-10 text-center",children:[t&&R("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),me("div",{className:"relative",children:[l&&R("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:R("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),R(tm,{img:r,isQrForAll:l,children:n&&R(em,{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 lm}from"react";import{useEffect as om,useLayoutEffect as am,useState as rm}from"react";import im from"ua-parser-js";var nm=()=>im().device.type==="mobile",sm=typeof window<"u"?am:om,ni=()=>{let[e,o]=rm(!1);return sm(()=>{o(nm())},[]),e};import{Fragment as mm,jsx as ea,jsxs as cm}from"react/jsx-runtime";var Ee=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=lm(!1),d=ni(),c=!!a?.qrLink,f=()=>{let E=c?a?.qrLink:e;return typeof E=="string"?E.trim():""},u=()=>{let E=f();!E&&typeof e!="function"||(typeof e=="function"?e():window.open(E,o?"_blank":"_self"))},x=(E,W=0)=>{let I=document.querySelector(E);if(!I)return;let w=I.getBoundingClientRect().top+window.scrollY-W;window.scrollTo({top:w,behavior:"smooth"})},k=()=>{typeof e=="string"&&e.startsWith("#")?x(e,t):u()},D=()=>cm(mm,{children:[ea(Se,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),ea(zt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return c?d?a?.isQrForAll?D():ea(Se,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):D():ea(Se,{...s,onClick:k,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as ao from"react";import{ChevronRightIcon as dm,DotsHorizontalIcon as pm}from"@radix-ui/react-icons";import{Slot as fm}from"@radix-ui/react-slot";import{jsx as mt,jsxs as gm}from"react/jsx-runtime";var si=ao.forwardRef(({className:e,...o},t)=>mt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));si.displayName="Breadcrumb";var li=ao.forwardRef(({className:e,...o},t)=>mt("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));li.displayName="BreadcrumbList";var mi=ao.forwardRef(({className:e,...o},t)=>mt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));mi.displayName="BreadcrumbItem";var ci=ao.forwardRef(({asChild:e,className:o,...t},a)=>mt(e?fm:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));ci.displayName="BreadcrumbLink";var di=ao.forwardRef(({className:e,...o},t)=>mt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));di.displayName="BreadcrumbPage";var pi=({children:e,className:o,...t})=>mt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??mt(dm,{className:"w-2 h-2"})});pi.displayName="BreadcrumbSeparator";var fi=({className:e,...o})=>gm("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[mt(pm,{className:"w-4 h-4 text-gray-900"}),mt("span",{className:"sr-only",children:"More"})]});fi.displayName="BreadcrumbElipssis";import er from"html-react-parser";import{createContext as um,useContext as gi}from"react";import{jsx as Po}from"react/jsx-runtime";var Xa=um({align:"center"}),Ya=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return Po("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Za=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=gi(Xa);return Po(s,{className:i("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",r),children:n})},Ka=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=gi(Xa);return Po("div",{className:i(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",r),children:n})},Ja=({className:e,align:o="center",children:t})=>Po("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Po(Xa.Provider,{value:{align:o},children:t})});import{jsx as _t,jsxs as vm}from"react/jsx-runtime";var G=({idSection:e,className:o,background:t,children:a})=>_t("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:_t("div",{className:"wrapper relative",children:a})}),b=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",c=n==="white"?"white":"regular";return!t&&!a&&!o?null:vm(Ja,{align:e,className:l,children:[o&&_t(Ya,{color:m,children:o}),t&&_t(Za,{tagHeading:r,color:d,size:s,children:er(t)}),a&&_t(Ka,{color:c,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:er(a)})]})},y=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:_t("div",{className:i("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((r,n)=>{if(!r)return null;let{btnName:s,...l}=r;return _t(Ee,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:er(s)},n)})});import Im,{memo as Am}from"react";import{ArrowDownIcon as Lm}from"@heroicons/react/20/solid";import Em from"html-react-parser";import{createContext as ym,useCallback as Nm,useContext as tr,useEffect as wm,useRef as Pm,useState as Cm}from"react";import{ChevronLeft as Rm,ChevronRight as Tm}from"lucide-react";import*as ui from"react";import{Slot as xm}from"@radix-ui/react-slot";import{cva as bm}from"class-variance-authority";import{jsx as hm}from"react/jsx-runtime";var Bt=bm("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),ie=ui.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?xm:"button",m=i(Bt({variant:o,size:t,className:e}));return hm(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ie.displayName="IconButton";import{Fragment as km,jsx as Pt,jsxs as vi}from"react/jsx-runtime";var ta=ym(void 0),ct=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=Pm(null),[n,s]=Cm({left:!1,right:!1}),l=Nm(()=>{let d=r.current;if(d){let{scrollLeft:c,scrollWidth:f,clientWidth:u}=d;s({left:c>0,right:Math.ceil(c+u)<f})}},[]);wm(()=>{let d=r.current;if(d)return l(),window.addEventListener("resize",l),d.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),d.removeEventListener("scroll",l)}},[l]);let m=d=>{let c=r.current;if(c){let{scrollLeft:f,clientWidth:u,scrollWidth:x}=c,k=u*.7*(d==="left"?-1:1),D=f+k;D<0?D=0:D>x-u&&(D=x-u),c.scrollTo({left:D,behavior:"smooth"})}};return Pt(ta.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:vi("div",{className:i("relative w-full",t),children:[e&&vi(km,{children:[n.left&&Pt("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&&Pt("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]})})},dt=({className:e,children:o})=>{let t=tr(ta);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Pt("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},pt=({className:e,children:o,...t})=>{let a=tr(ta);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Pt(ie,{className:i("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Pt(Rm,{className:"h-4 w-4"})}):null},ft=({className:e,children:o,...t})=>{let a=tr(ta);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Pt(ie,{className:i("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Pt(Tm,{className:"h-4 w-4"})}):null};import*as oa from"react";import*as He from"@radix-ui/react-tabs";import{jsx as or}from"react/jsx-runtime";var gt=He.Root,We=oa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>or(He.List,{ref:r,className:i("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));We.displayName=He.List.displayName;var $e=oa.forwardRef(({className:e,...o},t)=>or(He.Trigger,{ref:t,className:i("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));$e.displayName=He.Trigger.displayName;var Ge=oa.forwardRef(({className:e,...o},t)=>or(He.Content,{ref:t,className:i("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Ge.displayName=He.Content.displayName;import*as xi from"react";import{Slot as Sm}from"@radix-ui/react-slot";import{cva as Dm}from"class-variance-authority";import{jsx as Mm}from"react/jsx-runtime";var bi=Dm("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),ce=xi.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Sm:"button",m=i(bi({variant:o,size:t,className:e}));return Mm(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ce.displayName="TextButton";import{Fragment as hi,jsx as _,jsxs as je}from"react/jsx-runtime";var Hm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return je(hi,{children:[_("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:_("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:je("picture",{children:[_("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),_("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),je("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&_(ce,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),_("div",{className:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),je("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&je(hi,{children:[_(ce,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&_("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&_("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},aa=Am(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(c,f,u)=>{c?.preventDefault(),c?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(c,f)=>je("div",{children:[_("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",c?.blogList?.length<3?"md:justify-center":""),children:c?.blogList?.map((u,x)=>_("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:_("div",{onClick:k=>m(k,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",c?.classNameItem),children:_(Hm,{blog:u})},u?.id)},x))}),c?.isShowBtn&&_("div",{className:"flex items-center justify-center w-full mt-8",children:je(Ee,{action:r?()=>r?.(f):c?.btnUrl,newTab:c?.isNewTab,variant:"outline",children:[Em(c.btnName||"Xem th\xEAm"),c?.isLoading?_(oo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!c?.btnUrl&&_(Lm,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},c?.title||f);return je(Im.Fragment,{children:[e&&_(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?je(gt,{defaultValue:t[0]?.title,children:[je(ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[_(dt,{className:"mb-6 text-center",children:_(We,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((c,f)=>_($e,{value:c.title,children:c.title},c.title+f))})}),_(pt,{}),_(ft,{})]}),t.map((c,f)=>_(Ge,{value:c.title,children:d(c,f)},c.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});import Vm,{memo as Om,useEffect as Wm,useState as wi}from"react";import{ChevronLeftIcon as $m,ChevronRightIcon as Gm}from"@heroicons/react/20/solid";import Pi from"html-react-parser";import*as L from"react";import{ChevronLeftIcon as Fm,ChevronRightIcon as zm}from"@heroicons/react/20/solid";import _m from"embla-carousel-react";import{Fragment as Bm,jsx as De,jsxs as Ni}from"react/jsx-runtime";var yi=L.createContext(null);function Co(){let e=L.useContext(yi);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var he=L.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,d]=_m({...o,axis:e==="horizontal"?"x":"y"},a),[c,f]=L.useState(!1),[u,x]=L.useState(!1),k=L.useCallback(W=>{W&&(f(W.canScrollPrev()),x(W.canScrollNext()))},[]),D=L.useCallback(()=>{d?.scrollPrev()},[d]),M=L.useCallback(()=>{d?.scrollNext()},[d]),E=L.useCallback(W=>{W.key==="ArrowLeft"?(W.preventDefault(),D()):W.key==="ArrowRight"&&(W.preventDefault(),M())},[D,M]);return L.useEffect(()=>{!d||!t||t(d)},[d,t]),L.useEffect(()=>{if(d)return k(d),d.on("reInit",k),d.on("select",k),()=>{d?.off("select",k)}},[d,k]),De(yi.Provider,{value:{carouselRef:m,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:M,canScrollPrev:c,canScrollNext:u},children:De("div",{ref:l,onKeyDownCapture:E,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});he.displayName="Carousel";var ye=L.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Co();return De("div",{ref:r,className:i(o,"overflow-hidden"),children:De("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ye.displayName="CarouselContent";var Ne=L.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Co();return De("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});Ne.displayName="CarouselItem";var ro=L.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Co();return Ni(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[De(Fm,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Previous slide"})]})});ro.displayName="CarouselPrevious";var io=L.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Co();return Ni(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[De(zm,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Next slide"})]})});io.displayName="CarouselNext";var ra=L.forwardRef((e,o)=>{let{api:t}=Co(),[,a]=L.useState(!1),r=L.useCallback(()=>a(l=>!l),[]);L.useEffect(()=>{if(t)return t.on("select",r),t.on("reInit",r),()=>{t.off("select",r),t.off("reInit",r)}},[t,r]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?De("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>De(ie,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):De(Bm,{})});ra.displayName="CarouselDots";import{Fragment as ia,jsx as B,jsxs as Fe}from"react/jsx-runtime";var jm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Fe(ia,{children:[B("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:B("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Fe("div",{className:"mt-4 md:pr-3",children:[B("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&B("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:Pi(e?.description??"")}),Fe("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Fe(ia,{children:[B(ce,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&B("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&B("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Um=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:d,classNameItem:c}=e??{};return Wm(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Fe(ia,{children:[B(he,{opts:{dragFree:!1},setApi:o,className:"w-full",children:B(ye,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>B(Ne,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:B("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",c),children:B(jm,{blog:f})},f?.id)},f?.id))})}),s&&B("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Fe(Ee,{action:m&&m,newTab:d,variant:"outline",children:[Pi(l||"Xem th\xEAm")," "]})})]})},Qm=({carouselRef:e})=>Fe(ie,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[B($m,{className:"h-6 w-6"}),B("span",{className:"sr-only",children:"Previous slide"})]}),qm=({carouselRef:e})=>Fe(ie,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[B(Gm,{className:"h-6 w-6"}),B("span",{className:"sr-only",children:"Next slide"})]}),ar=Om(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(d,c,f)=>{d?.preventDefault(),d?.stopPropagation(),t?t(c):window.open(f,"_blank")},[n,s]=wi(null),[,l]=wi(0),m=()=>n?Fe("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[B(Qm,{carouselRef:n}),B(qm,{carouselRef:n})]}):B(ia,{});return Fe(Vm.Fragment,{children:[Fe("div",{className:" flex items-center justify-between",children:[e&&B(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),B(m,{})]}),B(Um,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as Km,jsx as no}from"react/jsx-runtime";var Xm=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return no(aa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return no(ar,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return no(aa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Ym=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>no(Km,{children:Xm({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),Zm=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:l})=>no(G,{className:i("overflow-hidden",a),background:r,children:no(Ym,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as sa from"react";import{enUS as oc,vi as ac}from"date-fns/locale";import{ChevronLeft as rc,ChevronRight as ic}from"lucide-react";import nc from"lunisolar";import{DayPicker as sc}from"react-day-picker";import*as Ci from"react";import*as Ro from"@radix-ui/react-checkbox";import{CheckIcon as Jm}from"@heroicons/react/16/solid";import{cva as Ri}from"class-variance-authority";import{jsx as rr}from"react/jsx-runtime";var ec=Ri("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"}}),tc=Ri("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),na=Ci.forwardRef(({className:e,size:o,...t},a)=>rr(Ro.Root,{ref:a,className:i(ec({size:o}),e),...t,children:rr(Ro.Indicator,{className:i("flex items-center justify-center text-current"),children:rr(Jm,{className:i(tc({size:o}))})})}));na.displayName=Ro.Root.displayName;import{Fragment as pc,jsx as Ue,jsxs as ir}from"react/jsx-runtime";var lc=({date:e,cusContent:o})=>{let t=null;return t=nc(e).lunar,ir(pc,{children:[o?o(e):e.getDate(),t&&Ue("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},mc={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let o=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][o]}};function cc({isShow:e,setIsShow:o,lang:t}){let a=sa.useId();return Ue("div",{className:"w-full p-3 pt-0",children:ir("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[Ue(na,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),Ue("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var dc=e=>e.getDay()===0||e.getDay()===6;function la({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=sa.useState(!0);return Ue(sc,{locale:r==="vi"?ac:oc,showOutsideDays:t,className:i("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:i(Ve({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:i("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:i(Ve({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:dc},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>Ue(rc,{className:"h-6 w-6"}),IconRight:()=>Ue(ic,{className:"h-6 w-6"}),DayContent:d=>Ue(lc,{date:d.date,cusContent:n}),Months:({children:d})=>ir("div",{className:"w-full",children:[Ue("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&Ue(cc,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?mc:{},...s})}la.displayName="Calendar";import{QuestionMarkCircleIcon as fc,XCircleIcon as gc}from"@heroicons/react/16/solid";import{format as ma}from"date-fns";import{Calendar as uc}from"lucide-react";import*as ki from"react";import*as ut from"@radix-ui/react-popover";import{jsx as Ti}from"react/jsx-runtime";var To=ut.Root,ko=ut.Trigger,so=ki.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>Ti(ut.Portal,{children:Ti(ut.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));so.displayName=ut.Content.displayName;import{Fragment as Si,jsx as we,jsxs as So}from"react/jsx-runtime";var vc=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:d,popoverContentProps:c})=>{let f=d?.selected||null;return So("div",{children:[So(To,{...m,children:[we(ko,{asChild:!0,children:So(Se,{variant:"secondary",className:i("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!f||!(f instanceof Date)&&typeof f=="object"&&(!("from"in f)||!f.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[we("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?ma(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?we(Si,{children:f.from?f.to?So(Si,{children:[we("span",{className:"date-from",children:ma(f.from,s)})," ",we("span",{className:"date-separator",children:"-"}),we("span",{className:"date-to",children:ma(f.to,s)})]}):ma(f.from,s):o}):o}),e&&we("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),we(uc,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),we(so,{className:"w-auto border-none !p-0",...c,children:we(la,{...d,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&So("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?we(gc,{width:16,height:16,className:"text-red-500"}):we(fc,{width:16,height:16,className:"text-gray-500"}),we("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Nc,useState as Hi}from"react";import{QuestionMarkCircleIcon as wc,XCircleIcon as Pc}from"@heroicons/react/16/solid";import{isValid as Cc}from"date-fns";import*as Qe from"react";import{ChevronDownIcon as Di,ChevronUpIcon as xc,CheckIcon as bc,XCircleIcon as hc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as yc}from"@heroicons/react/24/outline";import*as C from"@radix-ui/react-select";import{jsx as V,jsxs as Do}from"react/jsx-runtime";var Mo=Qe.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Do("div",{ref:m,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&V("span",{className:i("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),V(C.Root,{disabled:s,...l,children:o}),a&&Do("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?V(hc,{width:16,height:16}):V(yc,{width:16,height:16}),V("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Io=C.Value,lo=Qe.forwardRef(({className:e,children:o,...t},a)=>Do(C.Trigger,{ref:a,className:i("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[V("div",{className:"line-clamp-1 text-left",children:o}),V(C.Icon,{asChild:!0,children:V(Di,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));lo.displayName=C.Trigger.displayName;var nr=Qe.forwardRef(({className:e,...o},t)=>V(C.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:V(xc,{className:"h-5 w-5"})}));nr.displayName=C.ScrollUpButton.displayName;var sr=Qe.forwardRef(({className:e,...o},t)=>V(C.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:V(Di,{className:"h-5 w-5"})}));sr.displayName=C.ScrollDownButton.displayName;var mo=Qe.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>V(C.Portal,{children:Do(C.Content,{ref:r,className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[V(nr,{}),V(C.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),V(sr,{})]})}));mo.displayName=C.Content.displayName;var Ao=Qe.forwardRef(({className:e,children:o,...t},a)=>V(C.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Mi=Qe.forwardRef(({className:e,...o},t)=>V(C.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Mi.displayName=C.Label.displayName;var Ct=Qe.forwardRef(({className:e,children:o,...t},a)=>Do(C.Item,{ref:a,className:i("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[V("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:V(C.ItemIndicator,{children:V(bc,{className:"h-4 w-4 text-pink-500"})})}),V(C.ItemText,{children:o})]})),Ii=Qe.forwardRef(({className:e,...o},t)=>V(C.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));Ii.displayName=C.Separator.displayName;var Ai=["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"],Li=["January","February","March","April","May","June","July","August","September","October","November","December"],lr=(e,o,t,a)=>{let r=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():r;return{daysInMonth:r,startDay:n,endDay:s}},Ei=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};import{jsx as ee,jsxs as qe}from"react/jsx-runtime";var Rc=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:d=1900,toYear:c=new Date().getFullYear(),disableUnselect:f=!1})=>{let[u,x]=Hi(o??null),k=Math.min(d,c),D=Math.max(d,c),M=l==="MM/yyyy",E=(w,re)=>{if(re===0){x(void 0),t?.(void 0);return}let $=u?.getFullYear()||new Date().getFullYear(),Zo=u?.getMonth()??0,Ft=u?.getDate()??1;w==="month"&&re!==null&&(Zo=re-1),w==="year"&&re!==null&&($=re),M?Ft=1:w==="day"&&re!==null&&(Ft=re);let Jr=lr($,Zo+1).daysInMonth;Ft>Jr&&(Ft=1);let ho=new Date($,Zo,Ft);Cc(ho)&&(x(ho),t?.(ho))},[W,I]=Hi(!1),Ht=w=>{I(w)};return Nc(()=>{x(o??null)},[o]),qe("div",{className:i("relative",s&&"cursor-no-drop"),children:[qe("div",{className:i("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",W&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",u?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&ee("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),qe("div",{className:"flex h-full flex-row divide-x",children:[!M&&qe(Mo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:w=>E("day",parseInt(w,10)),onOpenChange:Ht,className:"w-[30%]",children:[ee(lo,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),ee(mo,{onCloseAutoFocus:w=>w.preventDefault(),children:qe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:lr(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(w,re)=>(re+1).toString().padStart(2,"0")).map(w=>ee(Ct,{value:w,children:w},w))]})})]}),qe(Mo,{value:u?(u.getMonth()+1).toString():"",onValueChange:w=>E("month",parseInt(w,10)),onOpenChange:Ht,className:i(M?"w-1/2":"w-2/5"),children:[ee(lo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),ee(mo,{onCloseAutoFocus:w=>w.preventDefault(),children:qe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(w,re)=>re+1).map(w=>ee(Ct,{value:w.toString(),children:m==="vi"?Ai[w-1]:Li[w-1]},w))]})})]}),qe(Mo,{value:u?u.getFullYear().toString():"",onValueChange:w=>E("year",parseInt(w,10)),onOpenChange:Ht,className:i(M?"w-1/2":"w-[30%]"),children:[ee(lo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"N\u0103m":"Year"})}),ee(mo,{onCloseAutoFocus:w=>w.preventDefault(),children:qe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Ei(k,D).map(w=>ee(Ct,{value:w.toString(),children:w},w))]})})]})]})]}),r&&qe("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?ee(Pc,{width:16,height:16,className:"text-red-500"}):ee(wc,{width:16,height:16,className:"text-gray-500"}),ee("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as Vt from"react";import*as H from"@radix-ui/react-alert-dialog";import{jsx as vt,jsxs as Sc}from"react/jsx-runtime";var Tc=H.Root,kc=H.Trigger,Fi=H.Portal,mr=Vt.forwardRef(({className:e,...o},t)=>vt(H.Overlay,{className:i("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));mr.displayName=H.Overlay.displayName;var zi=Vt.forwardRef(({className:e,...o},t)=>Sc(Fi,{children:[vt(mr,{}),vt(H.Content,{ref:t,className:i("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));zi.displayName=H.Content.displayName;var _i=({className:e,...o})=>vt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});_i.displayName="AlertDialogHeader";var Bi=({className:e,...o})=>vt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Bi.displayName="AlertDialogFooter";var Vi=Vt.forwardRef(({className:e,...o},t)=>vt(H.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Vi.displayName=H.Title.displayName;var Oi=Vt.forwardRef(({className:e,...o},t)=>vt(H.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Oi.displayName=H.Description.displayName;var Wi=Vt.forwardRef(({className:e,...o},t)=>vt(H.Action,{ref:t,className:i(Ve({variant:"primary"}),"",e),...o}));Wi.displayName=H.Action.displayName;var $i=Vt.forwardRef(({className:e,...o},t)=>vt(H.Cancel,{ref:t,className:i(Ve({variant:"secondary"}),e),...o}));$i.displayName=H.Cancel.displayName;import{memo as zc,useState as _c}from"react";import{useEffect as Dc,useState as ji}from"react";import Ui from"html-react-parser";import{motion as Mc}from"motion/react";import*as Gi from"@radix-ui/react-aspect-ratio";var A=Gi.Root;import{Fragment as Qi,jsx as te,jsxs as Lo}from"react/jsx-runtime";var Ic=({guideGroup:e,mockup:o})=>{let[t,a]=ji(),[r,n]=ji(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Dc(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),te(Qi,{children:e?.stepList&&e?.stepList?.length>0&&Lo("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[te("div",{className:"h-auto w-64 flex-none",children:Lo("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&Lo(Qi,{children:[te("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),te("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:Lo(he,{setApi:a,children:[te(ye,{className:"ml-0",children:e?.stepList.map((l,m)=>te(Ne,{className:"pl-0",children:te(A,{ratio:o==="small"?540/960:540/1168,children:te("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),te(ro,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),te(io,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),te("div",{className:"flex flex-auto py-4 pl-12",children:te("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>Lo("li",{className:i("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",m+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[te("div",{className:i("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),te("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:Ui(l.title)}),l.content&&te(Mc.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:te("div",{className:"mt-3 text-sm text-gray-700",children:Ui(l.content)})})]},m))})})]})})},cr=Ic;import{useEffect as Ac,useRef as Lc,useState as ca}from"react";import{ChevronRightIcon as qi}from"@heroicons/react/20/solid";import Ec from"embla-carousel-autoplay";import da from"html-react-parser";import{Fragment as dr,jsx as h,jsxs as ue}from"react/jsx-runtime";var Hc=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=ca(0),[s,l]=ca();return Ac(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:h(lt,{open:e,onOpenChange:o,children:ue(Oe,{position:"bottom",height:"full",children:[h(Ko,{children:h(Jo,{className:"line-clamp-1",children:t?.title})}),ue(wt,{className:"grid overflow-hidden p-0 ",children:[h(he,{setApi:l,className:" grid overflow-hidden",children:h(ye,{className:"ml-0 h-full",children:t.stepList.map((m,d)=>h(Ne,{className:"h-full w-full pl-0",children:ue("div",{className:"flex h-full flex-col overflow-y-auto",children:[h("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:h("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:ue("div",{className:i("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&ue(dr,{children:[h("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),h("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:h(A,{ratio:a==="small"?540/960:540/1168,children:h("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),ue("div",{className:"p-5 pb-12",children:[h("div",{className:"font-semibold",children:da(m.title)}),m?.content&&h("div",{className:"mt-3 text-sm text-gray-800",children:da(m.content)})]})]})},d))})}),h("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,d)=>h("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},Fc=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=ca(!1),[n,s]=ca(null),l=Lc(Ec({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=d=>{s(e?.[d]||null),r(!0)};return e?.length===0?null:ue(dr,{children:[e?.length>1?h("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,c)=>ue("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(c),children:[h("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:h(A,{ratio:1,children:h("img",{src:d.avatar,className:"object-cover",alt:d.title})})}),ue("div",{className:i("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",c+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[ue("div",{className:"py-2",children:[t&&h("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${c+1}`}),h("div",{className:"font-semibold",children:da(d.title)}),d?.description&&h("div",{className:"mt-1 text-sm text-gray-500",children:da(d.description)})]}),h("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:h(qi,{className:"h-6 w-6"})})]})]},c))}):e?.[0]&&e[0].stepList?.length>0&&ue("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[h("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:h("div",{className:"mx-auto h-auto w-72",children:ue("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&ue(dr,{children:[h("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),h("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:h(he,{plugins:[l.current],children:h(ye,{className:"ml-0",children:e[0]?.stepList.map((d,c)=>h(Ne,{className:"pl-0",onClick:()=>m(0),children:h(A,{ratio:o==="small"?540/960:540/1168,children:h("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},c))})})})]})})}),h("div",{className:"flex w-full flex-none justify-center",children:ue(ce,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",h(qi,{className:"ml-1 h-5 w-5"})]})})]}),a&&h(Hc,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},Xi=Fc;import{Fragment as Bc,jsx as se,jsxs as Eo}from"react/jsx-runtime";var Yi=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return se("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:se("path",{d:t.d,fill:"currentColor"})})},pr=zc(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[d,c]=_c(t?.[0]?.title||"");return Eo(Bc,{children:[e&&se(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t&&t?.length>0&&Eo(eo,{children:[se(Be,{lessThan:"md",children:se(Xi,{dataGuide:t,mockup:r,isStep:n})}),se(Be,{greaterThan:"sm",children:t?.length>1?Eo(gt,{defaultValue:t[0]?.title,onValueChange:f=>c(f),children:[Eo(ct,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[se(dt,{className:"mb-6 text-center",children:se(We,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let x=u===t.length-1,k=d===f?.title||"";return Eo($e,{value:f.title,className:i(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",k&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&se(Yi,{direction:"left",className:i("right-full top-0",k?"text-pink-500":"text-pink-100")}),f.title,n&&!x&&se(Yi,{direction:"right",className:i("left-full top-0",k?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),se(pt,{}),se(ft,{})]}),t.map((f,u)=>se(Ge,{value:f.title,children:se(cr,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&se(cr,{guideGroup:t[0],mockup:r})})]}),a&&se(y,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as $c,jsx as Ho}from"react/jsx-runtime";var Vc=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return Ho(pr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return Ho(pr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Oc=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>Ho($c,{children:Vc({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Wc=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:r,background:n,template:s=1,mockup:l="default",isStep:m=!1})=>Ho(G,{className:i(r),background:n,children:Ho(Oc,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:l,isStep:m})});import{ChevronLeft as Gc,ChevronRight as jc}from"lucide-react";import{Fragment as Uc,jsx as Me,jsxs as Zi}from"react/jsx-runtime";function Ki({current:e,total:o,onChange:t}){let a=r=>Me("li",{children:Me("button",{className:i(Bt({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return Me("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:Zi("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Me(Gc,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):Zi(Uc,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Me(jc,{className:"h-4 w-4"})})})]})})}import{forwardRef as Qc}from"react";import{QuestionMarkCircleIcon as qc}from"@heroicons/react/24/outline";import{XCircleIcon as Xc}from"@heroicons/react/24/solid";import{jsx as co,jsxs as Ji}from"react/jsx-runtime";var Yc=Qc(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},d)=>Ji("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&co("span",{className:i("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),co("textarea",{disabled:e,ref:d,className:i("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:l,...m}),t&&Ji("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?co(Xc,{width:16,height:16,className:"text-red-500"}):co(qc,{width:16,height:16,className:"text-gray-500"}),co("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),co("style",{children:`
70
+ `})]}),zt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>R(lt,{...m,children:R(We,{className:i("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:R(wt,{className:"p-0",children:me("div",{className:"flex flex-row flex-wrap",children:[R("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||me("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),R("div",{className:"mt-1 text-gray-500 ",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),R("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),me("div",{className:"mt-1 text-gray-500 ",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),R("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:me("div",{className:"px-5 py-10 text-center",children:[t&&R("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),me("div",{className:"relative",children:[l&&R("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:R("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),R(tm,{img:r,isQrForAll:l,children:n&&R(em,{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 lm}from"react";import{useEffect as om,useLayoutEffect as am,useState as rm}from"react";import im from"ua-parser-js";var nm=()=>im().device.type==="mobile",sm=typeof window<"u"?am:om,ni=()=>{let[e,o]=rm(!1);return sm(()=>{o(nm())},[]),e};import{Fragment as mm,jsx as ea,jsxs as cm}from"react/jsx-runtime";var Ee=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=lm(!1),d=ni(),c=!!a?.qrLink,f=()=>{let H=c?a?.qrLink:e;return typeof H=="string"?H.trim():""},u=()=>{let H=f();!H&&typeof e!="function"||(typeof e=="function"?e():window.open(H,o?"_blank":"_self"))},x=(H,W=0)=>{let I=document.querySelector(H);if(!I)return;let w=I.getBoundingClientRect().top+window.scrollY-W;window.scrollTo({top:w,behavior:"smooth"})},k=()=>{typeof e=="string"&&e.startsWith("#")?x(e,t):u()},D=()=>cm(mm,{children:[ea(Se,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),ea(zt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return c?d?a?.isQrForAll?D():ea(Se,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):D():ea(Se,{...s,onClick:k,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as ao from"react";import{ChevronRightIcon as dm,DotsHorizontalIcon as pm}from"@radix-ui/react-icons";import{Slot as fm}from"@radix-ui/react-slot";import{jsx as mt,jsxs as gm}from"react/jsx-runtime";var si=ao.forwardRef(({className:e,...o},t)=>mt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));si.displayName="Breadcrumb";var li=ao.forwardRef(({className:e,...o},t)=>mt("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));li.displayName="BreadcrumbList";var mi=ao.forwardRef(({className:e,...o},t)=>mt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));mi.displayName="BreadcrumbItem";var ci=ao.forwardRef(({asChild:e,className:o,...t},a)=>mt(e?fm:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));ci.displayName="BreadcrumbLink";var di=ao.forwardRef(({className:e,...o},t)=>mt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));di.displayName="BreadcrumbPage";var pi=({children:e,className:o,...t})=>mt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??mt(dm,{className:"w-2 h-2"})});pi.displayName="BreadcrumbSeparator";var fi=({className:e,...o})=>gm("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[mt(pm,{className:"w-4 h-4 text-gray-900"}),mt("span",{className:"sr-only",children:"More"})]});fi.displayName="BreadcrumbElipssis";import er from"html-react-parser";import{createContext as um,useContext as gi}from"react";import{jsx as Po}from"react/jsx-runtime";var Xa=um({align:"center"}),Ya=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return Po("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Za=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=gi(Xa);return Po(s,{className:i("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",r),children:n})},Ka=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=gi(Xa);return Po("div",{className:i(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",r),children:n})},Ja=({className:e,align:o="center",children:t})=>Po("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Po(Xa.Provider,{value:{align:o},children:t})});import{jsx as _t,jsxs as vm}from"react/jsx-runtime";var G=({idSection:e,className:o,background:t,children:a})=>_t("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:_t("div",{className:"wrapper relative",children:a})}),b=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",c=n==="white"?"white":"regular";return!t&&!a&&!o?null:vm(Ja,{align:e,className:l,children:[o&&_t(Ya,{color:m,children:o}),t&&_t(Za,{tagHeading:r,color:d,size:s,children:er(t)}),a&&_t(Ka,{color:c,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:er(a)})]})},y=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:_t("div",{className:i("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((r,n)=>{if(!r)return null;let{btnName:s,...l}=r;return _t(Ee,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:er(s)},n)})});import Im,{memo as Am}from"react";import{ArrowDownIcon as Lm}from"@heroicons/react/20/solid";import Em from"html-react-parser";import{createContext as ym,useCallback as Nm,useContext as tr,useEffect as wm,useRef as Pm,useState as Cm}from"react";import{ChevronLeft as Rm,ChevronRight as Tm}from"lucide-react";import*as ui from"react";import{Slot as xm}from"@radix-ui/react-slot";import{cva as bm}from"class-variance-authority";import{jsx as hm}from"react/jsx-runtime";var Bt=bm("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),ie=ui.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?xm:"button",m=i(Bt({variant:o,size:t,className:e}));return hm(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ie.displayName="IconButton";import{Fragment as km,jsx as Pt,jsxs as vi}from"react/jsx-runtime";var ta=ym(void 0),ct=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=Pm(null),[n,s]=Cm({left:!1,right:!1}),l=Nm(()=>{let d=r.current;if(d){let{scrollLeft:c,scrollWidth:f,clientWidth:u}=d;s({left:c>0,right:Math.ceil(c+u)<f})}},[]);wm(()=>{let d=r.current;if(d)return l(),window.addEventListener("resize",l),d.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),d.removeEventListener("scroll",l)}},[l]);let m=d=>{let c=r.current;if(c){let{scrollLeft:f,clientWidth:u,scrollWidth:x}=c,k=u*.7*(d==="left"?-1:1),D=f+k;D<0?D=0:D>x-u&&(D=x-u),c.scrollTo({left:D,behavior:"smooth"})}};return Pt(ta.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:vi("div",{className:i("relative w-full",t),children:[e&&vi(km,{children:[n.left&&Pt("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&&Pt("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]})})},dt=({className:e,children:o})=>{let t=tr(ta);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Pt("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},pt=({className:e,children:o,...t})=>{let a=tr(ta);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Pt(ie,{className:i("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Pt(Rm,{className:"h-4 w-4"})}):null},ft=({className:e,children:o,...t})=>{let a=tr(ta);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Pt(ie,{className:i("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Pt(Tm,{className:"h-4 w-4"})}):null};import*as oa from"react";import*as He from"@radix-ui/react-tabs";import{jsx as or}from"react/jsx-runtime";var gt=He.Root,$e=oa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>or(He.List,{ref:r,className:i("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));$e.displayName=He.List.displayName;var Ge=oa.forwardRef(({className:e,...o},t)=>or(He.Trigger,{ref:t,className:i("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));Ge.displayName=He.Trigger.displayName;var je=oa.forwardRef(({className:e,...o},t)=>or(He.Content,{ref:t,className:i("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));je.displayName=He.Content.displayName;import*as xi from"react";import{Slot as Sm}from"@radix-ui/react-slot";import{cva as Dm}from"class-variance-authority";import{jsx as Mm}from"react/jsx-runtime";var bi=Dm("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),ce=xi.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Sm:"button",m=i(bi({variant:o,size:t,className:e}));return Mm(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ce.displayName="TextButton";import{Fragment as hi,jsx as B,jsxs as Ue}from"react/jsx-runtime";var Hm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ue(hi,{children:[B("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:B("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Ue("picture",{children:[B("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),B("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Ue("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&B(ce,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),B("div",{className:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),Ue("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&Ue(hi,{children:[B(ce,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&B("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&B("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},aa=Am(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(c,f,u)=>{c?.preventDefault(),c?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(c,f)=>Ue("div",{children:[B("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",c?.blogList?.length<3?"md:justify-center":""),children:c?.blogList?.map((u,x)=>B("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:B("div",{onClick:k=>m(k,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",c?.classNameItem),children:B(Hm,{blog:u})},u?.id)},x))}),c?.isShowBtn&&B("div",{className:"flex items-center justify-center w-full mt-8",children:Ue(Ee,{action:r?()=>r?.(f):c?.btnUrl,newTab:c?.isNewTab,variant:"outline",children:[Em(c.btnName||"Xem th\xEAm"),c?.isLoading?B(oo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!c?.btnUrl&&B(Lm,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},c?.title||f);return Ue(Im.Fragment,{children:[e&&B(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?Ue(gt,{defaultValue:t[0]?.title,children:[Ue(ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[B(dt,{className:"mb-6 text-center",children:B($e,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((c,f)=>B(Ge,{value:c.title,children:c.title},c.title+f))})}),B(pt,{}),B(ft,{})]}),t.map((c,f)=>B(je,{value:c.title,children:d(c,f)},c.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});import Vm,{memo as Om,useEffect as Wm,useState as wi}from"react";import{ChevronLeftIcon as $m,ChevronRightIcon as Gm}from"@heroicons/react/20/solid";import Pi from"html-react-parser";import*as E from"react";import{ChevronLeftIcon as Fm,ChevronRightIcon as zm}from"@heroicons/react/20/solid";import _m from"embla-carousel-react";import{Fragment as Bm,jsx as De,jsxs as Ni}from"react/jsx-runtime";var yi=E.createContext(null);function Co(){let e=E.useContext(yi);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var he=E.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,d]=_m({...o,axis:e==="horizontal"?"x":"y"},a),[c,f]=E.useState(!1),[u,x]=E.useState(!1),k=E.useCallback(W=>{W&&(f(W.canScrollPrev()),x(W.canScrollNext()))},[]),D=E.useCallback(()=>{d?.scrollPrev()},[d]),M=E.useCallback(()=>{d?.scrollNext()},[d]),H=E.useCallback(W=>{W.key==="ArrowLeft"?(W.preventDefault(),D()):W.key==="ArrowRight"&&(W.preventDefault(),M())},[D,M]);return E.useEffect(()=>{!d||!t||t(d)},[d,t]),E.useEffect(()=>{if(d)return k(d),d.on("reInit",k),d.on("select",k),()=>{d?.off("select",k)}},[d,k]),De(yi.Provider,{value:{carouselRef:m,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:M,canScrollPrev:c,canScrollNext:u},children:De("div",{ref:l,onKeyDownCapture:H,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});he.displayName="Carousel";var ye=E.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Co();return De("div",{ref:r,className:i(o,"overflow-hidden"),children:De("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ye.displayName="CarouselContent";var Ne=E.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Co();return De("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});Ne.displayName="CarouselItem";var ro=E.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Co();return Ni(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[De(Fm,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Previous slide"})]})});ro.displayName="CarouselPrevious";var io=E.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Co();return Ni(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[De(zm,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Next slide"})]})});io.displayName="CarouselNext";var ra=E.forwardRef((e,o)=>{let{api:t}=Co(),[,a]=E.useState(!1),r=E.useCallback(()=>a(l=>!l),[]);E.useEffect(()=>{if(t)return t.on("select",r),t.on("reInit",r),()=>{t.off("select",r),t.off("reInit",r)}},[t,r]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?De("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>De(ie,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):De(Bm,{})});ra.displayName="CarouselDots";import{Fragment as ia,jsx as V,jsxs as Fe}from"react/jsx-runtime";var jm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Fe(ia,{children:[V("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:V("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Fe("div",{className:"mt-4 md:pr-3",children:[V("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&V("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:Pi(e?.description??"")}),Fe("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Fe(ia,{children:[V(ce,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&V("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&V("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Um=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:d,classNameItem:c}=e??{};return Wm(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Fe(ia,{children:[V(he,{opts:{dragFree:!1},setApi:o,className:"w-full",children:V(ye,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>V(Ne,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:V("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",c),children:V(jm,{blog:f})},f?.id)},f?.id))})}),s&&V("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Fe(Ee,{action:m&&m,newTab:d,variant:"outline",children:[Pi(l||"Xem th\xEAm")," "]})})]})},Qm=({carouselRef:e})=>Fe(ie,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[V($m,{className:"h-6 w-6"}),V("span",{className:"sr-only",children:"Previous slide"})]}),qm=({carouselRef:e})=>Fe(ie,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[V(Gm,{className:"h-6 w-6"}),V("span",{className:"sr-only",children:"Next slide"})]}),ar=Om(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(d,c,f)=>{d?.preventDefault(),d?.stopPropagation(),t?t(c):window.open(f,"_blank")},[n,s]=wi(null),[,l]=wi(0),m=()=>n?Fe("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[V(Qm,{carouselRef:n}),V(qm,{carouselRef:n})]}):V(ia,{});return Fe(Vm.Fragment,{children:[Fe("div",{className:" flex items-center justify-between",children:[e&&V(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),V(m,{})]}),V(Um,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as Km,jsx as no}from"react/jsx-runtime";var Xm=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return no(aa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return no(ar,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return no(aa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Ym=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>no(Km,{children:Xm({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),Zm=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:l})=>no(G,{className:i("overflow-hidden",a),background:r,children:no(Ym,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as sa from"react";import{enUS as oc,vi as ac}from"date-fns/locale";import{ChevronLeft as rc,ChevronRight as ic}from"lucide-react";import nc from"lunisolar";import{DayPicker as sc}from"react-day-picker";import*as Ci from"react";import*as Ro from"@radix-ui/react-checkbox";import{CheckIcon as Jm}from"@heroicons/react/16/solid";import{cva as Ri}from"class-variance-authority";import{jsx as rr}from"react/jsx-runtime";var ec=Ri("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"}}),tc=Ri("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),na=Ci.forwardRef(({className:e,size:o,...t},a)=>rr(Ro.Root,{ref:a,className:i(ec({size:o}),e),...t,children:rr(Ro.Indicator,{className:i("flex items-center justify-center text-current"),children:rr(Jm,{className:i(tc({size:o}))})})}));na.displayName=Ro.Root.displayName;import{Fragment as pc,jsx as Qe,jsxs as ir}from"react/jsx-runtime";var lc=({date:e,cusContent:o})=>{let t=null;return t=nc(e).lunar,ir(pc,{children:[o?o(e):e.getDate(),t&&Qe("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},mc={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let o=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][o]}};function cc({isShow:e,setIsShow:o,lang:t}){let a=sa.useId();return Qe("div",{className:"w-full p-3 pt-0",children:ir("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[Qe(na,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),Qe("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var dc=e=>e.getDay()===0||e.getDay()===6;function la({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=sa.useState(!0);return Qe(sc,{locale:r==="vi"?ac:oc,showOutsideDays:t,className:i("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:i(Oe({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:i("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:i(Oe({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:dc},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>Qe(rc,{className:"h-6 w-6"}),IconRight:()=>Qe(ic,{className:"h-6 w-6"}),DayContent:d=>Qe(lc,{date:d.date,cusContent:n}),Months:({children:d})=>ir("div",{className:"w-full",children:[Qe("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&Qe(cc,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?mc:{},...s})}la.displayName="Calendar";import{QuestionMarkCircleIcon as fc,XCircleIcon as gc}from"@heroicons/react/16/solid";import{format as ma}from"date-fns";import{Calendar as uc}from"lucide-react";import*as ki from"react";import*as ut from"@radix-ui/react-popover";import{jsx as Ti}from"react/jsx-runtime";var To=ut.Root,ko=ut.Trigger,so=ki.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>Ti(ut.Portal,{children:Ti(ut.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));so.displayName=ut.Content.displayName;import{Fragment as Si,jsx as we,jsxs as So}from"react/jsx-runtime";var vc=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:d,popoverContentProps:c})=>{let f=d?.selected||null;return So("div",{children:[So(To,{...m,children:[we(ko,{asChild:!0,children:So(Se,{variant:"secondary",className:i("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!f||!(f instanceof Date)&&typeof f=="object"&&(!("from"in f)||!f.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[we("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?ma(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?we(Si,{children:f.from?f.to?So(Si,{children:[we("span",{className:"date-from",children:ma(f.from,s)})," ",we("span",{className:"date-separator",children:"-"}),we("span",{className:"date-to",children:ma(f.to,s)})]}):ma(f.from,s):o}):o}),e&&we("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),we(uc,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),we(so,{className:"w-auto border-none !p-0",...c,children:we(la,{...d,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&So("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?we(gc,{width:16,height:16,className:"text-red-500"}):we(fc,{width:16,height:16,className:"text-gray-500"}),we("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Nc,useState as Hi}from"react";import{QuestionMarkCircleIcon as wc,XCircleIcon as Pc}from"@heroicons/react/16/solid";import{isValid as Cc}from"date-fns";import*as qe from"react";import{ChevronDownIcon as Di,ChevronUpIcon as xc,CheckIcon as bc,XCircleIcon as hc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as yc}from"@heroicons/react/24/outline";import*as C from"@radix-ui/react-select";import{jsx as O,jsxs as Do}from"react/jsx-runtime";var Mo=qe.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Do("div",{ref:m,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&O("span",{className:i("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),O(C.Root,{disabled:s,...l,children:o}),a&&Do("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?O(hc,{width:16,height:16}):O(yc,{width:16,height:16}),O("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Io=C.Value,lo=qe.forwardRef(({className:e,children:o,...t},a)=>Do(C.Trigger,{ref:a,className:i("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[O("div",{className:"line-clamp-1 text-left",children:o}),O(C.Icon,{asChild:!0,children:O(Di,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));lo.displayName=C.Trigger.displayName;var nr=qe.forwardRef(({className:e,...o},t)=>O(C.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:O(xc,{className:"h-5 w-5"})}));nr.displayName=C.ScrollUpButton.displayName;var sr=qe.forwardRef(({className:e,...o},t)=>O(C.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:O(Di,{className:"h-5 w-5"})}));sr.displayName=C.ScrollDownButton.displayName;var mo=qe.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>O(C.Portal,{children:Do(C.Content,{ref:r,className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[O(nr,{}),O(C.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),O(sr,{})]})}));mo.displayName=C.Content.displayName;var Ao=qe.forwardRef(({className:e,children:o,...t},a)=>O(C.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Mi=qe.forwardRef(({className:e,...o},t)=>O(C.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Mi.displayName=C.Label.displayName;var Ct=qe.forwardRef(({className:e,children:o,...t},a)=>Do(C.Item,{ref:a,className:i("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[O("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:O(C.ItemIndicator,{children:O(bc,{className:"h-4 w-4 text-pink-500"})})}),O(C.ItemText,{children:o})]})),Ii=qe.forwardRef(({className:e,...o},t)=>O(C.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));Ii.displayName=C.Separator.displayName;var Ai=["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"],Li=["January","February","March","April","May","June","July","August","September","October","November","December"],lr=(e,o,t,a)=>{let r=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():r;return{daysInMonth:r,startDay:n,endDay:s}},Ei=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};import{jsx as ee,jsxs as Xe}from"react/jsx-runtime";var Rc=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:d=1900,toYear:c=new Date().getFullYear(),disableUnselect:f=!1})=>{let[u,x]=Hi(o??null),k=Math.min(d,c),D=Math.max(d,c),M=l==="MM/yyyy",H=(w,re)=>{if(re===0){x(void 0),t?.(void 0);return}let $=u?.getFullYear()||new Date().getFullYear(),Zo=u?.getMonth()??0,Ft=u?.getDate()??1;w==="month"&&re!==null&&(Zo=re-1),w==="year"&&re!==null&&($=re),M?Ft=1:w==="day"&&re!==null&&(Ft=re);let Jr=lr($,Zo+1).daysInMonth;Ft>Jr&&(Ft=1);let ho=new Date($,Zo,Ft);Cc(ho)&&(x(ho),t?.(ho))},[W,I]=Hi(!1),Ht=w=>{I(w)};return Nc(()=>{x(o??null)},[o]),Xe("div",{className:i("relative",s&&"cursor-no-drop"),children:[Xe("div",{className:i("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",W&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",u?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&ee("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),Xe("div",{className:"flex h-full flex-row divide-x",children:[!M&&Xe(Mo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:w=>H("day",parseInt(w,10)),onOpenChange:Ht,className:"w-[30%]",children:[ee(lo,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),ee(mo,{onCloseAutoFocus:w=>w.preventDefault(),children:Xe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:lr(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(w,re)=>(re+1).toString().padStart(2,"0")).map(w=>ee(Ct,{value:w,children:w},w))]})})]}),Xe(Mo,{value:u?(u.getMonth()+1).toString():"",onValueChange:w=>H("month",parseInt(w,10)),onOpenChange:Ht,className:i(M?"w-1/2":"w-2/5"),children:[ee(lo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),ee(mo,{onCloseAutoFocus:w=>w.preventDefault(),children:Xe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(w,re)=>re+1).map(w=>ee(Ct,{value:w.toString(),children:m==="vi"?Ai[w-1]:Li[w-1]},w))]})})]}),Xe(Mo,{value:u?u.getFullYear().toString():"",onValueChange:w=>H("year",parseInt(w,10)),onOpenChange:Ht,className:i(M?"w-1/2":"w-[30%]"),children:[ee(lo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"N\u0103m":"Year"})}),ee(mo,{onCloseAutoFocus:w=>w.preventDefault(),children:Xe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Ei(k,D).map(w=>ee(Ct,{value:w.toString(),children:w},w))]})})]})]})]}),r&&Xe("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?ee(Pc,{width:16,height:16,className:"text-red-500"}):ee(wc,{width:16,height:16,className:"text-gray-500"}),ee("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as Vt from"react";import*as F from"@radix-ui/react-alert-dialog";import{jsx as vt,jsxs as Sc}from"react/jsx-runtime";var Tc=F.Root,kc=F.Trigger,Fi=F.Portal,mr=Vt.forwardRef(({className:e,...o},t)=>vt(F.Overlay,{className:i("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));mr.displayName=F.Overlay.displayName;var zi=Vt.forwardRef(({className:e,...o},t)=>Sc(Fi,{children:[vt(mr,{}),vt(F.Content,{ref:t,className:i("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));zi.displayName=F.Content.displayName;var _i=({className:e,...o})=>vt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});_i.displayName="AlertDialogHeader";var Bi=({className:e,...o})=>vt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Bi.displayName="AlertDialogFooter";var Vi=Vt.forwardRef(({className:e,...o},t)=>vt(F.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Vi.displayName=F.Title.displayName;var Oi=Vt.forwardRef(({className:e,...o},t)=>vt(F.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Oi.displayName=F.Description.displayName;var Wi=Vt.forwardRef(({className:e,...o},t)=>vt(F.Action,{ref:t,className:i(Oe({variant:"primary"}),"",e),...o}));Wi.displayName=F.Action.displayName;var $i=Vt.forwardRef(({className:e,...o},t)=>vt(F.Cancel,{ref:t,className:i(Oe({variant:"secondary"}),e),...o}));$i.displayName=F.Cancel.displayName;import{memo as zc,useState as _c}from"react";import{useEffect as Dc,useState as ji}from"react";import Ui from"html-react-parser";import{motion as Mc}from"motion/react";import*as Gi from"@radix-ui/react-aspect-ratio";var A=Gi.Root;import{Fragment as Qi,jsx as te,jsxs as Lo}from"react/jsx-runtime";var Ic=({guideGroup:e,mockup:o})=>{let[t,a]=ji(),[r,n]=ji(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Dc(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),te(Qi,{children:e?.stepList&&e?.stepList?.length>0&&Lo("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[te("div",{className:"h-auto w-64 flex-none",children:Lo("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&Lo(Qi,{children:[te("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),te("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:Lo(he,{setApi:a,children:[te(ye,{className:"ml-0",children:e?.stepList.map((l,m)=>te(Ne,{className:"pl-0",children:te(A,{ratio:o==="small"?540/960:540/1168,children:te("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),te(ro,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),te(io,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),te("div",{className:"flex flex-auto py-4 pl-12",children:te("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>Lo("li",{className:i("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",m+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[te("div",{className:i("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),te("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:Ui(l.title)}),l.content&&te(Mc.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:te("div",{className:"mt-3 text-sm text-gray-700",children:Ui(l.content)})})]},m))})})]})})},cr=Ic;import{useEffect as Ac,useRef as Lc,useState as ca}from"react";import{ChevronRightIcon as qi}from"@heroicons/react/20/solid";import Ec from"embla-carousel-autoplay";import da from"html-react-parser";import{Fragment as dr,jsx as h,jsxs as ue}from"react/jsx-runtime";var Hc=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=ca(0),[s,l]=ca();return Ac(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:h(lt,{open:e,onOpenChange:o,children:ue(We,{position:"bottom",height:"full",children:[h(Ko,{children:h(Jo,{className:"line-clamp-1",children:t?.title})}),ue(wt,{className:"grid overflow-hidden p-0 ",children:[h(he,{setApi:l,className:" grid overflow-hidden",children:h(ye,{className:"ml-0 h-full",children:t.stepList.map((m,d)=>h(Ne,{className:"h-full w-full pl-0",children:ue("div",{className:"flex h-full flex-col overflow-y-auto",children:[h("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:h("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:ue("div",{className:i("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&ue(dr,{children:[h("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),h("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:h(A,{ratio:a==="small"?540/960:540/1168,children:h("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),ue("div",{className:"p-5 pb-12",children:[h("div",{className:"font-semibold",children:da(m.title)}),m?.content&&h("div",{className:"mt-3 text-sm text-gray-800",children:da(m.content)})]})]})},d))})}),h("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,d)=>h("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},Fc=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=ca(!1),[n,s]=ca(null),l=Lc(Ec({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=d=>{s(e?.[d]||null),r(!0)};return e?.length===0?null:ue(dr,{children:[e?.length>1?h("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,c)=>ue("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(c),children:[h("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:h(A,{ratio:1,children:h("img",{src:d.avatar,className:"object-cover",alt:d.title})})}),ue("div",{className:i("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",c+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[ue("div",{className:"py-2",children:[t&&h("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${c+1}`}),h("div",{className:"font-semibold",children:da(d.title)}),d?.description&&h("div",{className:"mt-1 text-sm text-gray-500",children:da(d.description)})]}),h("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:h(qi,{className:"h-6 w-6"})})]})]},c))}):e?.[0]&&e[0].stepList?.length>0&&ue("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[h("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:h("div",{className:"mx-auto h-auto w-72",children:ue("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&ue(dr,{children:[h("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),h("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),h("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:h(he,{plugins:[l.current],children:h(ye,{className:"ml-0",children:e[0]?.stepList.map((d,c)=>h(Ne,{className:"pl-0",onClick:()=>m(0),children:h(A,{ratio:o==="small"?540/960:540/1168,children:h("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},c))})})})]})})}),h("div",{className:"flex w-full flex-none justify-center",children:ue(ce,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",h(qi,{className:"ml-1 h-5 w-5"})]})})]}),a&&h(Hc,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},Xi=Fc;import{Fragment as Bc,jsx as se,jsxs as Eo}from"react/jsx-runtime";var Yi=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return se("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:se("path",{d:t.d,fill:"currentColor"})})},pr=zc(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[d,c]=_c(t?.[0]?.title||"");return Eo(Bc,{children:[e&&se(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t&&t?.length>0&&Eo(eo,{children:[se(Ve,{lessThan:"md",children:se(Xi,{dataGuide:t,mockup:r,isStep:n})}),se(Ve,{greaterThan:"sm",children:t?.length>1?Eo(gt,{defaultValue:t[0]?.title,onValueChange:f=>c(f),children:[Eo(ct,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[se(dt,{className:"mb-6 text-center",children:se($e,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let x=u===t.length-1,k=d===f?.title||"";return Eo(Ge,{value:f.title,className:i(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",k&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&se(Yi,{direction:"left",className:i("right-full top-0",k?"text-pink-500":"text-pink-100")}),f.title,n&&!x&&se(Yi,{direction:"right",className:i("left-full top-0",k?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),se(pt,{}),se(ft,{})]}),t.map((f,u)=>se(je,{value:f.title,children:se(cr,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&se(cr,{guideGroup:t[0],mockup:r})})]}),a&&se(y,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as $c,jsx as Ho}from"react/jsx-runtime";var Vc=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return Ho(pr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return Ho(pr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Oc=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>Ho($c,{children:Vc({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Wc=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:r,background:n,template:s=1,mockup:l="default",isStep:m=!1})=>Ho(G,{className:i(r),background:n,children:Ho(Oc,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:l,isStep:m})});import{ChevronLeft as Gc,ChevronRight as jc}from"lucide-react";import{Fragment as Uc,jsx as Me,jsxs as Zi}from"react/jsx-runtime";function Ki({current:e,total:o,onChange:t}){let a=r=>Me("li",{children:Me("button",{className:i(Bt({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return Me("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:Zi("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Me(Gc,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):Zi(Uc,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Me(jc,{className:"h-4 w-4"})})})]})})}import{forwardRef as Qc}from"react";import{QuestionMarkCircleIcon as qc}from"@heroicons/react/24/outline";import{XCircleIcon as Xc}from"@heroicons/react/24/solid";import{jsx as co,jsxs as Ji}from"react/jsx-runtime";var Yc=Qc(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},d)=>Ji("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&co("span",{className:i("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),co("textarea",{disabled:e,ref:d,className:i("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:l,...m}),t&&Ji("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?co(Xc,{width:16,height:16,className:"text-red-500"}):co(qc,{width:16,height:16,className:"text-gray-500"}),co("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),co("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 No from"react";import{ChevronDownIcon as jl}from"@heroicons/react/20/s
94
94
  color: rgb(var(--mobase-red-500) / 1);
95
95
  }
96
96
  }
97
- `})]}));import*as ga from"react";var Zc=1,Kc=1e6;var fr=0;function Jc(){return fr=(fr+1)%Number.MAX_SAFE_INTEGER,fr.toString()}var gr=new Map,en=e=>{if(gr.has(e))return;let o=setTimeout(()=>{gr.delete(e),Fo({type:"REMOVE_TOAST",toastId:e})},Kc);gr.set(e,o)},ed=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Zc)};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?en(t):e.toasts.forEach(a=>{en(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}},pa=[],fa={toasts:[]};function Fo(e){fa=ed(fa,e),pa.forEach(o=>{o(fa)})}function tn({...e}){let o=Jc(),t=r=>Fo({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>Fo({type:"DISMISS_TOAST",toastId:o});return Fo({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function ur(){let[e,o]=ga.useState(fa);return ga.useEffect(()=>(pa.push(o),()=>{let t=pa.indexOf(o);t>-1&&pa.splice(t,1)}),[e]),{...e,toast:tn,dismiss:t=>Fo({type:"DISMISS_TOAST",toastId:t})}}import*as Ot from"react";import{CheckCircleIcon as td,ExclamationTriangleIcon as od,InformationCircleIcon as ad,XMarkIcon as rd}from"@heroicons/react/20/solid";import*as Y from"@radix-ui/react-toast";import{cva as id}from"class-variance-authority";import{jsx as xt,jsxs as on}from"react/jsx-runtime";var an=Y.Provider,vr=Ot.forwardRef(({className:e,...o},t)=>xt(Y.Viewport,{ref:t,className:i("fixed bottom-0 left-0 z-[100] 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}));vr.displayName=Y.Viewport.displayName;var nd=id("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 group pointer-events-auto relative w-full overflow-hidden rounded-md border border border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),xr=Ot.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>on(Y.Root,{ref:r,className:i(nd({variant:o}),e),...a,children:[on("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&xt(td,{className:"h-5 w-5 text-green-500"}),o==="warning"&&xt(od,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&xt(ad,{className:"h-5 w-5 text-red-500"})]}),t]}));xr.displayName=Y.Root.displayName;var rn=Ot.forwardRef(({className:e,...o},t)=>xt(Y.Action,{ref:t,className:i("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));rn.displayName=Y.Action.displayName;var br=Ot.forwardRef(({className:e,...o},t)=>xt(Y.Close,{ref:t,className:i("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:xt(rd,{className:"h-5 w-5"})}));br.displayName=Y.Close.displayName;var hr=Ot.forwardRef(({className:e,...o},t)=>xt(Y.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));hr.displayName=Y.Title.displayName;var yr=Ot.forwardRef(({className:e,...o},t)=>xt(Y.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));yr.displayName=Y.Description.displayName;import{jsx as ua,jsxs as Nr}from"react/jsx-runtime";function sd(){let{toasts:e}=ur();return Nr(an,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return Nr(xr,{...n,children:[Nr("div",{className:"grid gap-2",children:[t&&ua(hr,{children:t}),a&&ua(yr,{children:a})]}),r,ua(br,{})]},o)}),ua(vr,{})]})}import*as wr from"react";import*as Ie from"@radix-ui/react-tooltip";import{jsx as ln}from"react/jsx-runtime";var ld=Ie.Provider,md=Ie.Root,cd=Ie.Trigger,nn=wr.forwardRef((e,o)=>ln(Ie.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));nn.displayName=Ie.Arrow.displayName;var sn=wr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>ln(Ie.Content,{ref:r,sideOffset:t,className:i("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));sn.displayName=Ie.Content.displayName;import{forwardRef as dd,useEffect as pd,useRef as fd,useState as gd}from"react";import{QuestionMarkCircleIcon as ud,XCircleIcon as vd,XCircleIcon as xd}from"@heroicons/react/16/solid";import{jsx as Rt,jsxs as Pr}from"react/jsx-runtime";var bd=dd(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:d,onClickClear:c,value:f,defaultValue:u,type:x="text",...k},D)=>{let[M,E]=gd(!1),W=fd(null),I=$=>{$&&!M&&E(!0),!$&&M&&E(!1)},Ht=$=>{s&&I($.target.value),m?.($)},w=$=>{s&&I($.target.value),d?.($)},re=()=>{let $=W.current?.querySelector("input");$&&(c?.($.value),$.value="",$.focus(),E(!1))};return pd(()=>{I(u||f)},[f,u]),Pr("div",{className:i(r,o&&"mobase-text-input-error"),ref:W,children:[Pr("div",{className:"relative",children:[a&&Rt("span",{className:i("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),Rt("input",{disabled:e,type:x,ref:D,className:i("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",l===2&&"h-12 text-base",n),onChange:Ht,onFocus:w,value:f,defaultValue:u,...k}),s&&M&&Rt("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:re,children:Rt(vd,{strokeWidth:2,width:20,height:20})})]}),t&&Pr("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?Rt(xd,{width:16,height:16,className:"text-red-500"}):Rt(ud,{width:16,height:16,className:"text-gray-500"}),Rt("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),Rt("style",{children:`
97
+ `})]}));import*as ga from"react";var Zc=1,Kc=1e6;var fr=0;function Jc(){return fr=(fr+1)%Number.MAX_SAFE_INTEGER,fr.toString()}var gr=new Map,en=e=>{if(gr.has(e))return;let o=setTimeout(()=>{gr.delete(e),Fo({type:"REMOVE_TOAST",toastId:e})},Kc);gr.set(e,o)},ed=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Zc)};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?en(t):e.toasts.forEach(a=>{en(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}},pa=[],fa={toasts:[]};function Fo(e){fa=ed(fa,e),pa.forEach(o=>{o(fa)})}function tn({...e}){let o=Jc(),t=r=>Fo({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>Fo({type:"DISMISS_TOAST",toastId:o});return Fo({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function ur(){let[e,o]=ga.useState(fa);return ga.useEffect(()=>(pa.push(o),()=>{let t=pa.indexOf(o);t>-1&&pa.splice(t,1)}),[e]),{...e,toast:tn,dismiss:t=>Fo({type:"DISMISS_TOAST",toastId:t})}}import*as Ot from"react";import{CheckCircleIcon as td,ExclamationTriangleIcon as od,InformationCircleIcon as ad,XMarkIcon as rd}from"@heroicons/react/20/solid";import*as Y from"@radix-ui/react-toast";import{cva as id}from"class-variance-authority";import{jsx as xt,jsxs as on}from"react/jsx-runtime";var an=Y.Provider,vr=Ot.forwardRef(({className:e,...o},t)=>xt(Y.Viewport,{ref:t,className:i("fixed bottom-0 left-0 z-[100] 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}));vr.displayName=Y.Viewport.displayName;var nd=id("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 group pointer-events-auto relative w-full overflow-hidden rounded-md border border border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),xr=Ot.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>on(Y.Root,{ref:r,className:i(nd({variant:o}),e),...a,children:[on("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&xt(td,{className:"h-5 w-5 text-green-500"}),o==="warning"&&xt(od,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&xt(ad,{className:"h-5 w-5 text-red-500"})]}),t]}));xr.displayName=Y.Root.displayName;var rn=Ot.forwardRef(({className:e,...o},t)=>xt(Y.Action,{ref:t,className:i("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));rn.displayName=Y.Action.displayName;var br=Ot.forwardRef(({className:e,...o},t)=>xt(Y.Close,{ref:t,className:i("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:xt(rd,{className:"h-5 w-5"})}));br.displayName=Y.Close.displayName;var hr=Ot.forwardRef(({className:e,...o},t)=>xt(Y.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));hr.displayName=Y.Title.displayName;var yr=Ot.forwardRef(({className:e,...o},t)=>xt(Y.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));yr.displayName=Y.Description.displayName;import{jsx as ua,jsxs as Nr}from"react/jsx-runtime";function sd(){let{toasts:e}=ur();return Nr(an,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return Nr(xr,{...n,children:[Nr("div",{className:"grid gap-2",children:[t&&ua(hr,{children:t}),a&&ua(yr,{children:a})]}),r,ua(br,{})]},o)}),ua(vr,{})]})}import*as wr from"react";import*as Ie from"@radix-ui/react-tooltip";import{jsx as ln}from"react/jsx-runtime";var ld=Ie.Provider,md=Ie.Root,cd=Ie.Trigger,nn=wr.forwardRef((e,o)=>ln(Ie.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));nn.displayName=Ie.Arrow.displayName;var sn=wr.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>ln(Ie.Content,{ref:r,sideOffset:t,className:i("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));sn.displayName=Ie.Content.displayName;import{forwardRef as dd,useEffect as pd,useRef as fd,useState as gd}from"react";import{QuestionMarkCircleIcon as ud,XCircleIcon as vd,XCircleIcon as xd}from"@heroicons/react/16/solid";import{jsx as Rt,jsxs as Pr}from"react/jsx-runtime";var bd=dd(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:d,onClickClear:c,value:f,defaultValue:u,type:x="text",...k},D)=>{let[M,H]=gd(!1),W=fd(null),I=$=>{$&&!M&&H(!0),!$&&M&&H(!1)},Ht=$=>{s&&I($.target.value),m?.($)},w=$=>{s&&I($.target.value),d?.($)},re=()=>{let $=W.current?.querySelector("input");$&&(c?.($.value),$.value="",$.focus(),H(!1))};return pd(()=>{I(u||f)},[f,u]),Pr("div",{className:i(r,o&&"mobase-text-input-error"),ref:W,children:[Pr("div",{className:"relative",children:[a&&Rt("span",{className:i("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),Rt("input",{disabled:e,type:x,ref:D,className:i("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",l===2&&"h-12 text-base",n),onChange:Ht,onFocus:w,value:f,defaultValue:u,...k}),s&&M&&Rt("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:re,children:Rt(vd,{strokeWidth:2,width:20,height:20})})]}),t&&Pr("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?Rt(xd,{width:16,height:16,className:"text-red-500"}):Rt(ud,{width:16,height:16,className:"text-gray-500"}),Rt("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),Rt("style",{children:`
98
98
  .mobase-text-input-box:hover {
99
99
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
100
100
  }
@@ -117,7 +117,7 @@ import*as No from"react";import{ChevronDownIcon as jl}from"@heroicons/react/20/s
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});import{MinusCircleIcon as hd,PlusCircleIcon as yd}from"@heroicons/react/24/outline";import{forwardRef as Nd,useState as wd}from"react";import{jsx as zo,jsxs as Cr}from"react/jsx-runtime";var mn=Nd(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...d},c)=>{let[f,u]=wd(r),x=()=>{let M=Math.min(f+a,t);u(M),n?.(M),l?.(M)},k=()=>{let M=Math.max(f-a,o);u(M),n?.(M),s?.(M)},D=M=>{let E=parseFloat(M.target.value);if(!isNaN(E)){let W=Math.max(Math.min(E,t),o);u(W),n?.(W)}};return Cr("div",{ref:c,className:i("flex items-center ",e),children:[Cr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:k,disabled:m||f<=o,children:[zo(hd,{className:"w-7 h-7 "}),zo("span",{className:"sr-only",children:"Decrease value"})]}),zo("input",{type:"number",value:f,onChange:D,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:m,...d}),Cr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:x,disabled:m||f>=t,children:[zo(yd,{className:"w-7 h-7 "}),zo("span",{className:"sr-only",children:"Increase value"})]})]})});mn.displayName="Stepper";import*as ze from"react";import*as j from"@radix-ui/react-navigation-menu";import{cva as Pd}from"class-variance-authority";import{ChevronDownIcon as Cd}from"@heroicons/react/16/solid";import{jsx as Xe,jsxs as Dd}from"react/jsx-runtime";var cn=ze.createContext(null),Rd=({value:e,children:o})=>Xe(cn.Provider,{value:e,children:o}),Td=()=>{let e=ze.useContext(cn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},va=ze.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>Xe(Rd,{value:{alignDropdown:t},children:Xe(j.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));va.displayName=j.Root.displayName;var xa=ze.forwardRef(({className:e,...o},t)=>Xe(j.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));xa.displayName=j.List.displayName;var ba=j.Item,ha=Pd(Ve({variant:"transparent",size:"sm"})),ya=ze.forwardRef(({className:e,children:o,...t},a)=>Dd(j.Trigger,{ref:a,className:i(ha(),"group px-2",e),...t,children:[o," ",Xe(Cd,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ya.displayName=j.Trigger.displayName;var Na=ze.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Td();return Xe(j.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Na.displayName=j.Content.displayName;var _o=j.Link,kd=ze.forwardRef(({className:e,...o},t)=>Xe("div",{className:i("absolute left-0 top-full flex justify-center"),children:Xe(j.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));kd.displayName=j.Viewport.displayName;var Sd=ze.forwardRef(({className:e,...o},t)=>Xe(j.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:Xe("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Sd.displayName=j.Indicator.displayName;import*as pn from"react";import*as Bo from"@radix-ui/react-switch";import{jsx as dn}from"react/jsx-runtime";var fn=pn.forwardRef(({className:e,...o},t)=>dn(Bo.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:dn(Bo.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));fn.displayName=Bo.Root.displayName;import*as Wt from"react";import*as Tt from"@radix-ui/react-radio-group";import{Circle as Md}from"lucide-react";import{cva as gn}from"class-variance-authority";import{jsx as Vo}from"react/jsx-runtime";var Id=gn("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"}}),Ad=gn("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),un=Wt.createContext({size:"medium"});function Ld(){let e=Wt.useContext(un);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var vn=Wt.forwardRef(({className:e,size:o,...t},a)=>Vo(un.Provider,{value:{size:o},children:Vo(Tt.Root,{className:i("grid gap-2",e),...t,ref:a})}));vn.displayName=Tt.Root.displayName;var xn=Wt.forwardRef(({className:e,...o},t)=>{let a=Ld(),{size:r}=a??{};return Vo(Tt.Item,{ref:t,className:i(Id({size:r}),e),...o,children:Vo(Tt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Vo(Md,{className:i(Ad({size:r}))})})})});xn.displayName=Tt.Item.displayName;import{useState as Yd}from"react";import{ArrowDownTrayIcon as Zd}from"@heroicons/react/16/solid";import Kd from"html-react-parser";import{useEffect as Bd,useState as Vd}from"react";import Nn from"next/router";import{AnimatePresence as Od,domAnimation as Wd,LazyMotion as $d,motion as Rr}from"motion/react";import{useKey as Gd}from"react-use";var wa=[.24,.25,.05,1];import{motion as Hd}from"motion/react";import{jsx as Oo,jsxs as bn}from"react/jsx-runtime";var Ed=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Oo("li",{className:"min-h-8",children:bn("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&Oo("div",{className:"w-6 h-6 shrink-0",children:Oo("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),bn("div",{className:" ",children:[Oo("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&Oo("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},hn=Ed;import{jsx as $t,jsxs as _d}from"react/jsx-runtime";var Fd={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:wa}},exit:{opacity:0,transition:{duration:.05}}},zd=({data:e})=>$t(at,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return $t(Hd.div,{variants:Fd,children:o.hasDropdown?_d(rt,{value:o.id,children:[$t(it,{className:"py-3",children:o.title}),$t(nt,{children:$t("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>$t(hn,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):$t("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)})}),yn=zd;import{jsx as T,jsxs as de}from"react/jsx-runtime";var jd=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Ud=({data:e,className:o})=>{let[t,a]=Vd(!1);Gd("Escape",()=>a(!1)),Bd(()=>{if(!t)return;let s=jd();function l(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Nn.events.on("routeChangeComplete",l),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),Nn.events.off("routeChangeComplete",l)}},[t]);let r={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:wa}},exit:{opacity:0,transition:{duration:.15}}};return de("div",{className:i(o),children:[de("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[T("span",{className:"sr-only",children:"Navigation"}),T(Rr.div,{animate:t?"hidden":"visible",variants:r,children:T("svg",{className:i("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),T(Rr.div,{animate:t?"visible":"hidden",variants:r,children:T("svg",{className:i("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),T($d,{features:Wd,children:T(Od,{mode:"wait",children:t&&de(Rr.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[T(yn,{data:e}),de("div",{className:"animate-fade-in py-4 text-sm delay-300 duration-500",children:[T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),de("div",{className:"flex flex-nowrap",children:[T("div",{className:"flex-initial",children:T("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),T("div",{className:"ml-3 flex-initial",children:T("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),de("ul",{className:"mb-2 text-sm text-gray-500",children:[de("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{href:`tel:${ot.Support.Hotline}`,className:"text-gray-600",children:ot.Support.Hotline_Format})]}),de("li",{className:"mb-1",children:["Email :\xA0",T("a",{href:`mailto:${ot.Support.Email}`,className:"text-gray-600",children:ot.Support.Email})]})]}),T("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:de("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[T("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:T("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:de("g",{children:[T("title",{children:"Asset 1"}),T("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
120
+ `})]})});import{MinusCircleIcon as hd,PlusCircleIcon as yd}from"@heroicons/react/24/outline";import{forwardRef as Nd,useState as wd}from"react";import{jsx as zo,jsxs as Cr}from"react/jsx-runtime";var mn=Nd(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...d},c)=>{let[f,u]=wd(r),x=()=>{let M=Math.min(f+a,t);u(M),n?.(M),l?.(M)},k=()=>{let M=Math.max(f-a,o);u(M),n?.(M),s?.(M)},D=M=>{let H=parseFloat(M.target.value);if(!isNaN(H)){let W=Math.max(Math.min(H,t),o);u(W),n?.(W)}};return Cr("div",{ref:c,className:i("flex items-center ",e),children:[Cr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:k,disabled:m||f<=o,children:[zo(hd,{className:"w-7 h-7 "}),zo("span",{className:"sr-only",children:"Decrease value"})]}),zo("input",{type:"number",value:f,onChange:D,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:m,...d}),Cr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:x,disabled:m||f>=t,children:[zo(yd,{className:"w-7 h-7 "}),zo("span",{className:"sr-only",children:"Increase value"})]})]})});mn.displayName="Stepper";import*as ze from"react";import*as j from"@radix-ui/react-navigation-menu";import{cva as Pd}from"class-variance-authority";import{ChevronDownIcon as Cd}from"@heroicons/react/16/solid";import{jsx as Ye,jsxs as Dd}from"react/jsx-runtime";var cn=ze.createContext(null),Rd=({value:e,children:o})=>Ye(cn.Provider,{value:e,children:o}),Td=()=>{let e=ze.useContext(cn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},va=ze.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>Ye(Rd,{value:{alignDropdown:t},children:Ye(j.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));va.displayName=j.Root.displayName;var xa=ze.forwardRef(({className:e,...o},t)=>Ye(j.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));xa.displayName=j.List.displayName;var ba=j.Item,ha=Pd(Oe({variant:"transparent",size:"sm"})),ya=ze.forwardRef(({className:e,children:o,...t},a)=>Dd(j.Trigger,{ref:a,className:i(ha(),"group px-2",e),...t,children:[o," ",Ye(Cd,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ya.displayName=j.Trigger.displayName;var Na=ze.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Td();return Ye(j.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Na.displayName=j.Content.displayName;var _o=j.Link,kd=ze.forwardRef(({className:e,...o},t)=>Ye("div",{className:i("absolute left-0 top-full flex justify-center"),children:Ye(j.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));kd.displayName=j.Viewport.displayName;var Sd=ze.forwardRef(({className:e,...o},t)=>Ye(j.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:Ye("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Sd.displayName=j.Indicator.displayName;import*as pn from"react";import*as Bo from"@radix-ui/react-switch";import{jsx as dn}from"react/jsx-runtime";var fn=pn.forwardRef(({className:e,...o},t)=>dn(Bo.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:dn(Bo.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));fn.displayName=Bo.Root.displayName;import*as Wt from"react";import*as Tt from"@radix-ui/react-radio-group";import{Circle as Md}from"lucide-react";import{cva as gn}from"class-variance-authority";import{jsx as Vo}from"react/jsx-runtime";var Id=gn("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"}}),Ad=gn("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),un=Wt.createContext({size:"medium"});function Ld(){let e=Wt.useContext(un);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var vn=Wt.forwardRef(({className:e,size:o,...t},a)=>Vo(un.Provider,{value:{size:o},children:Vo(Tt.Root,{className:i("grid gap-2",e),...t,ref:a})}));vn.displayName=Tt.Root.displayName;var xn=Wt.forwardRef(({className:e,...o},t)=>{let a=Ld(),{size:r}=a??{};return Vo(Tt.Item,{ref:t,className:i(Id({size:r}),e),...o,children:Vo(Tt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Vo(Md,{className:i(Ad({size:r}))})})})});xn.displayName=Tt.Item.displayName;import{useState as Yd}from"react";import{ArrowDownTrayIcon as Zd}from"@heroicons/react/16/solid";import Kd from"html-react-parser";import{useEffect as Bd,useState as Vd}from"react";import Nn from"next/router";import{AnimatePresence as Od,domAnimation as Wd,LazyMotion as $d,motion as Rr}from"motion/react";import{useKey as Gd}from"react-use";var wa=[.24,.25,.05,1];import{motion as Hd}from"motion/react";import{jsx as Oo,jsxs as bn}from"react/jsx-runtime";var Ed=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Oo("li",{className:"min-h-8",children:bn("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&Oo("div",{className:"w-6 h-6 shrink-0",children:Oo("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),bn("div",{className:" ",children:[Oo("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&Oo("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},hn=Ed;import{jsx as $t,jsxs as _d}from"react/jsx-runtime";var Fd={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:wa}},exit:{opacity:0,transition:{duration:.05}}},zd=({data:e})=>$t(at,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return $t(Hd.div,{variants:Fd,children:o.hasDropdown?_d(rt,{value:o.id,children:[$t(it,{className:"py-3",children:o.title}),$t(nt,{children:$t("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>$t(hn,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):$t("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)})}),yn=zd;import{jsx as T,jsxs as de}from"react/jsx-runtime";var jd=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Ud=({data:e,className:o})=>{let[t,a]=Vd(!1);Gd("Escape",()=>a(!1)),Bd(()=>{if(!t)return;let s=jd();function l(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Nn.events.on("routeChangeComplete",l),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),Nn.events.off("routeChangeComplete",l)}},[t]);let r={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:wa}},exit:{opacity:0,transition:{duration:.15}}};return de("div",{className:i(o),children:[de("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[T("span",{className:"sr-only",children:"Navigation"}),T(Rr.div,{animate:t?"hidden":"visible",variants:r,children:T("svg",{className:i("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),T(Rr.div,{animate:t?"visible":"hidden",variants:r,children:T("svg",{className:i("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),T($d,{features:Wd,children:T(Od,{mode:"wait",children:t&&de(Rr.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[T(yn,{data:e}),de("div",{className:"animate-fade-in py-4 text-sm delay-300 duration-500",children:[T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),de("div",{className:"flex flex-nowrap",children:[T("div",{className:"flex-initial",children:T("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),T("div",{className:"ml-3 flex-initial",children:T("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),de("ul",{className:"mb-2 text-sm text-gray-500",children:[de("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{href:`tel:${ot.Support.Hotline}`,className:"text-gray-600",children:ot.Support.Hotline_Format})]}),de("li",{className:"mb-1",children:["Email :\xA0",T("a",{href:`mailto:${ot.Support.Email}`,className:"text-gray-600",children:ot.Support.Email})]})]}),T("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:de("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[T("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:T("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:de("g",{children:[T("title",{children:"Asset 1"}),T("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
121
121
  V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
122
122
  c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),T("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
123
123
  c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
@@ -129,14 +129,14 @@ import*as No from"react";import{ChevronDownIcon as jl}from"@heroicons/react/20/s
129
129
  footer .button-download {
130
130
  max-width: 150px;
131
131
  }
132
- `})]})},Sn=ep;import{jsx as Dn}from"react/jsx-runtime";var op=({className:e,primaryMenu:o,secondaryMenu:t})=>Dn("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Dn(Sn,{primaryMenu:o,secondaryMenu:t})});import*as jt from"react";import{jsx as fo}from"react/jsx-runtime";var Mn=jt.forwardRef(({className:e,...o},t)=>fo("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Mn.displayName="Card";var In=jt.forwardRef(({className:e,...o},t)=>fo("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));In.displayName="CardHeader";var An=jt.forwardRef(({className:e,...o},t)=>fo("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));An.displayName="CardTitle";var Ln=jt.forwardRef(({className:e,...o},t)=>fo("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ln.displayName="CardDescription";var En=jt.forwardRef(({className:e,...o},t)=>fo("div",{ref:t,className:i("p-6 pt-0",e),...o}));En.displayName="CardContent";var Hn=jt.forwardRef(({className:e,...o},t)=>fo("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));Hn.displayName="CardFooter";import*as Ae from"react";import{Command as ve}from"cmdk";import{XCircleIcon as ap,MagnifyingGlassIcon as rp}from"@heroicons/react/16/solid";import{jsx as Pe,jsxs as np}from"react/jsx-runtime";var Tr=Ae.forwardRef(({className:e,...o},t)=>Pe(ve,{ref:t,className:i("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));Tr.displayName=ve.displayName;var ip=({children:e,...o})=>Pe(lt,{...o,children:Pe(Oe,{className:"overflow-hidden p-0 shadow-lg",children:Pe(Tr,{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})})}),Fn=Ae.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=Ae.useRef(null),[s,l]=Ae.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return np("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Pe(rp,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Pe(ve.Input,{ref:r,className:i("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),Pe(ap,{onClick:m,className:i("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Fn.displayName=ve.Input.displayName;var zn=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));zn.displayName=ve.List.displayName;var _n=Ae.forwardRef((e,o)=>Pe(ve.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));_n.displayName=ve.Empty.displayName;var Bn=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.Group,{ref:t,className:i("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));Bn.displayName=ve.Group.displayName;var Vn=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Vn.displayName=ve.Separator.displayName;var On=Ae.forwardRef(({className:e,children:o,...t},a)=>Pe(ve.Item,{ref:a,className:i("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));On.displayName=ve.Item.displayName;var Wn=({className:e,...o})=>Pe("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Wn.displayName="CommandShortcut";import{ChevronDownIcon as sp}from"@heroicons/react/16/solid";import{jsx as Pa,jsxs as $n}from"react/jsx-runtime";var lp=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>$n("div",{className:"relative",children:[$n(ko,{className:i("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||r,Pa(sp,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&Pa("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),mp=({children:e,className:o,...t})=>Pa(so,{className:i("border-none !p-0",o),...t,children:e}),cp=({open:e,onOpenChange:o,children:t,...a})=>Pa(To,{open:e,onOpenChange:o,...a,children:t});import{cva as jn}from"class-variance-authority";import{forwardRef as dp}from"react";import{InformationCircleIcon as pp}from"@heroicons/react/24/outline";import{jsx as kr,jsxs as Gn}from"react/jsx-runtime";var fp=jn("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ",{variants:{typeDiv:{neutral:"bg-gray-50 border-gray-300 ",error:"bg-red-50 border-red-300",success:"bg-green-50 border-green-300",warning:"bg-yellow-50 border-yellow-300",info:"bg-blue-50 border-blue-300"},disabled:{true:"text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300"}},defaultVariants:{typeDiv:"neutral"}}),gp=jn("w-5 h-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),Wo=dp(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...m},d)=>Gn("div",{ref:d,className:i("",r,fp({typeDiv:e,disabled:n})),...m,children:[Gn("div",{className:"flex items-center space-x-2",children:[l||kr(pp,{className:i(gp({typeIcon:e,disabled:n})),width:20,height:20}),o&&kr("div",{children:o})]}),t&&kr(ce,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));import{forwardRef as up,useEffect as vp,useRef as xp,useState as bp}from"react";import{MagnifyingGlassIcon as hp}from"@heroicons/react/20/solid";import{XCircleIcon as yp}from"@heroicons/react/24/outline";import{jsx as go,jsxs as Un}from"react/jsx-runtime";var Np=up(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:d="text",...c},f)=>{let[u,x]=bp(!1),k=xp(null),D=I=>{I&&!u&&x(!0),!I&&u&&x(!1)},M=I=>{D(I.target.value),r?.(I)},E=I=>{D(I.target.value),n?.(I)},W=()=>{let I=k.current?.querySelector("input");I&&(s?.(I.value),I.value="",I.focus(),x(!1))};return vp(()=>{D(m||l)},[l,m]),Un("div",{className:i(o),ref:k,children:[Un("div",{className:"relative flex items-center",children:[go("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:go(hp,{className:"w-4 h-4 text-gray-500"})}),go("input",{disabled:e,type:d,ref:f,className:i("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:M,onFocus:E,value:l,defaultValue:m,...c}),u&&go("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:W,children:go(yp,{strokeWidth:2,width:20,height:20})})]}),go("style",{children:`
132
+ `})]})},Sn=ep;import{jsx as Dn}from"react/jsx-runtime";var op=({className:e,primaryMenu:o,secondaryMenu:t})=>Dn("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Dn(Sn,{primaryMenu:o,secondaryMenu:t})});import*as jt from"react";import{jsx as fo}from"react/jsx-runtime";var Mn=jt.forwardRef(({className:e,...o},t)=>fo("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Mn.displayName="Card";var In=jt.forwardRef(({className:e,...o},t)=>fo("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));In.displayName="CardHeader";var An=jt.forwardRef(({className:e,...o},t)=>fo("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));An.displayName="CardTitle";var Ln=jt.forwardRef(({className:e,...o},t)=>fo("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ln.displayName="CardDescription";var En=jt.forwardRef(({className:e,...o},t)=>fo("div",{ref:t,className:i("p-6 pt-0",e),...o}));En.displayName="CardContent";var Hn=jt.forwardRef(({className:e,...o},t)=>fo("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));Hn.displayName="CardFooter";import*as Ae from"react";import{Command as ve}from"cmdk";import{XCircleIcon as ap,MagnifyingGlassIcon as rp}from"@heroicons/react/16/solid";import{jsx as Pe,jsxs as np}from"react/jsx-runtime";var Tr=Ae.forwardRef(({className:e,...o},t)=>Pe(ve,{ref:t,className:i("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));Tr.displayName=ve.displayName;var ip=({children:e,...o})=>Pe(lt,{...o,children:Pe(We,{className:"overflow-hidden p-0 shadow-lg",children:Pe(Tr,{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})})}),Fn=Ae.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=Ae.useRef(null),[s,l]=Ae.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return np("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Pe(rp,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Pe(ve.Input,{ref:r,className:i("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),Pe(ap,{onClick:m,className:i("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});Fn.displayName=ve.Input.displayName;var zn=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));zn.displayName=ve.List.displayName;var _n=Ae.forwardRef((e,o)=>Pe(ve.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));_n.displayName=ve.Empty.displayName;var Bn=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.Group,{ref:t,className:i("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));Bn.displayName=ve.Group.displayName;var Vn=Ae.forwardRef(({className:e,...o},t)=>Pe(ve.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));Vn.displayName=ve.Separator.displayName;var On=Ae.forwardRef(({className:e,children:o,...t},a)=>Pe(ve.Item,{ref:a,className:i("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));On.displayName=ve.Item.displayName;var Wn=({className:e,...o})=>Pe("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Wn.displayName="CommandShortcut";import{ChevronDownIcon as sp}from"@heroicons/react/16/solid";import{jsx as Pa,jsxs as $n}from"react/jsx-runtime";var lp=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>$n("div",{className:"relative",children:[$n(ko,{className:i("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||r,Pa(sp,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&Pa("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),mp=({children:e,className:o,...t})=>Pa(so,{className:i("border-none !p-0",o),...t,children:e}),cp=({open:e,onOpenChange:o,children:t,...a})=>Pa(To,{open:e,onOpenChange:o,...a,children:t});import{cva as jn}from"class-variance-authority";import{forwardRef as dp}from"react";import{InformationCircleIcon as pp}from"@heroicons/react/24/outline";import{jsx as kr,jsxs as Gn}from"react/jsx-runtime";var fp=jn("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ",{variants:{typeDiv:{neutral:"bg-gray-50 border-gray-300 ",error:"bg-red-50 border-red-300",success:"bg-green-50 border-green-300",warning:"bg-yellow-50 border-yellow-300",info:"bg-blue-50 border-blue-300"},disabled:{true:"text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300"}},defaultVariants:{typeDiv:"neutral"}}),gp=jn("w-5 h-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),Wo=dp(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...m},d)=>Gn("div",{ref:d,className:i("",r,fp({typeDiv:e,disabled:n})),...m,children:[Gn("div",{className:"flex items-center space-x-2",children:[l||kr(pp,{className:i(gp({typeIcon:e,disabled:n})),width:20,height:20}),o&&kr("div",{children:o})]}),t&&kr(ce,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));import{forwardRef as up,useEffect as vp,useRef as xp,useState as bp}from"react";import{MagnifyingGlassIcon as hp}from"@heroicons/react/20/solid";import{XCircleIcon as yp}from"@heroicons/react/24/outline";import{jsx as go,jsxs as Un}from"react/jsx-runtime";var Np=up(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:d="text",...c},f)=>{let[u,x]=bp(!1),k=xp(null),D=I=>{I&&!u&&x(!0),!I&&u&&x(!1)},M=I=>{D(I.target.value),r?.(I)},H=I=>{D(I.target.value),n?.(I)},W=()=>{let I=k.current?.querySelector("input");I&&(s?.(I.value),I.value="",I.focus(),x(!1))};return vp(()=>{D(m||l)},[l,m]),Un("div",{className:i(o),ref:k,children:[Un("div",{className:"relative flex items-center",children:[go("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:go(hp,{className:"w-4 h-4 text-gray-500"})}),go("input",{disabled:e,type:d,ref:f,className:i("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:M,onFocus:H,value:l,defaultValue:m,...c}),u&&go("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:W,children:go(yp,{strokeWidth:2,width:20,height:20})})]}),go("style",{children:`
133
133
  .mobase-text-input-box:hover {
134
134
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
135
135
  }
136
136
  .mobase-text-input-box:focus {
137
137
  box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
138
138
  }
139
- `})]})});import*as Ce from"@radix-ui/react-dialog";import qn,{useContext as wp,useEffect as Qn,useState as Sr}from"react";import{X as Pp}from"lucide-react";import Cp from"lodash";import{jsx as ae,jsxs as bt}from"react/jsx-runtime";var Xn=qn.createContext(void 0);function Yn(){let e=wp(Xn);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Dr=({children:e,open:o,onOpenChange:t,className:a})=>ae(Xn.Provider,{value:{open:o,onOpenChange:t},children:ae(Ce.Root,{open:o,onOpenChange:t,children:ae("div",{className:i("lightbox-gallery",a),children:e})})}),Rp=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=Yn(),m=()=>{n?.(),l&&l(!0)};return bt(Ce.Trigger,{className:i("",a),onClick:m,children:[e,ae(A,{ratio:s,className:"rounded-lg cursor-pointer",children:ae("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},Zn=qn.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=Yn(),n=()=>{r&&r(!1)};return bt(Ce.Portal,{children:[ae(Ce.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),bt(Ce.Content,{ref:a,className:i("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,bt(Ce.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[ae(Pp,{className:"h-4 w-4 mt-0.5"}),ae("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Zn.displayName=Ce.Content.displayName;var Mr=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=Sr(""),[l,m]=Sr(),[d,c]=Sr(0);Qn(()=>{l&&(c(l.selectedScrollSnap()+1),l.on("select",()=>{c(l.selectedScrollSnap()+1)}))},[l]);let f=u=>{let x=Cp.filter(e,(D,M)=>M===(u>0?u-1:u)),k=x.length>0?x[0]?.titleImage:"";s(k)};return Qn(()=>{f(d)},[d]),bt(Zn,{className:"flex py-0",children:[bt("div",{className:" flex-1 relative",children:[bt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[d||1," / ",e?.length]}),bt(he,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ae(ye,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,x)=>ae(Ne,{className:"pl-6 md:pl-4",children:bt("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})})})]})},x))}),ae(ro,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ae(io,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ae("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};import*as St from"react";import{CheckIcon as Tp}from"@heroicons/react/16/solid";import*as $o from"@radix-ui/react-checkbox";import*as Dt from"@radix-ui/react-radio-group";import{Circle as kp}from"lucide-react";import{jsx as Ye,jsxs as es}from"react/jsx-runtime";var Kn=St.createContext({hideIndicator:!1});function Sp(){let e=St.useContext(Kn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ca=St.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>Ye(Kn.Provider,{value:{hideIndicator:o},children:Ye(Dt.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Ca.displayName=Dt.Root.displayName;var Ra=St.forwardRef(({className:e,children:o,...t},a)=>{let r=Sp(),{hideIndicator:n}=r??{};return es(Dt.Item,{ref:a,className:i("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[Ye("div",{className:"min-w-0 flex-1",children:o}),!n&&Ye("div",{className:i("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:Ye(Dt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:Ye(kp,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Ra.displayName=Dt.Item.displayName;var Jn=St.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>es($o.Root,{ref:r,className:i("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[Ye("div",{className:"min-w-0 flex-1",children:o}),!t&&Ye("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:Ye($o.Indicator,{className:i("flex items-center justify-center text-current"),children:Ye(Tp,{className:"h-4 w-4"})})})]}));Jn.displayName=$o.Root.displayName;import{cva as Dp}from"class-variance-authority";import{jsx as Ip}from"react/jsx-runtime";var ts=Dp("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 Mp({className:e,variant:o,...t}){return Ip("div",{className:i(ts({variant:o}),e),...t})}import*as as from"react";import*as Go from"@radix-ui/react-progress";import{cva as rs}from"class-variance-authority";import{jsx as os}from"react/jsx-runtime";var Ap=rs("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"}}),Lp=rs("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"}}),is=as.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>os(Go.Root,{ref:s,className:i("",Lp({size:a}),e),...n,children:os(Go.Indicator,{className:i("",Ap({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));is.displayName=Go.Root.displayName;import{jsx as Ep}from"react/jsx-runtime";function Ta({className:e,...o}){return Ep("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Fp,jsx as Ut,jsxs as ns}from"react/jsx-runtime";function Hp({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let r={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return Ut("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return ns("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>Ut("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),Ut("style",{children:`
139
+ `})]})});import*as Ce from"@radix-ui/react-dialog";import qn,{useContext as wp,useEffect as Qn,useState as Sr}from"react";import{X as Pp}from"lucide-react";import Cp from"lodash";import{jsx as ae,jsxs as bt}from"react/jsx-runtime";var Xn=qn.createContext(void 0);function Yn(){let e=wp(Xn);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Dr=({children:e,open:o,onOpenChange:t,className:a})=>ae(Xn.Provider,{value:{open:o,onOpenChange:t},children:ae(Ce.Root,{open:o,onOpenChange:t,children:ae("div",{className:i("lightbox-gallery",a),children:e})})}),Rp=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=Yn(),m=()=>{n?.(),l&&l(!0)};return bt(Ce.Trigger,{className:i("",a),onClick:m,children:[e,ae(A,{ratio:s,className:"rounded-lg cursor-pointer",children:ae("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},Zn=qn.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=Yn(),n=()=>{r&&r(!1)};return bt(Ce.Portal,{children:[ae(Ce.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),bt(Ce.Content,{ref:a,className:i("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,bt(Ce.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[ae(Pp,{className:"h-4 w-4 mt-0.5"}),ae("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Zn.displayName=Ce.Content.displayName;var Mr=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=Sr(""),[l,m]=Sr(),[d,c]=Sr(0);Qn(()=>{l&&(c(l.selectedScrollSnap()+1),l.on("select",()=>{c(l.selectedScrollSnap()+1)}))},[l]);let f=u=>{let x=Cp.filter(e,(D,M)=>M===(u>0?u-1:u)),k=x.length>0?x[0]?.titleImage:"";s(k)};return Qn(()=>{f(d)},[d]),bt(Zn,{className:"flex py-0",children:[bt("div",{className:" flex-1 relative",children:[bt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[d||1," / ",e?.length]}),bt(he,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ae(ye,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,x)=>ae(Ne,{className:"pl-6 md:pl-4",children:bt("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})})})]})},x))}),ae(ro,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ae(io,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ae("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};import*as St from"react";import{CheckIcon as Tp}from"@heroicons/react/16/solid";import*as $o from"@radix-ui/react-checkbox";import*as Dt from"@radix-ui/react-radio-group";import{Circle as kp}from"lucide-react";import{jsx as Ze,jsxs as es}from"react/jsx-runtime";var Kn=St.createContext({hideIndicator:!1});function Sp(){let e=St.useContext(Kn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ca=St.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>Ze(Kn.Provider,{value:{hideIndicator:o},children:Ze(Dt.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Ca.displayName=Dt.Root.displayName;var Ra=St.forwardRef(({className:e,children:o,...t},a)=>{let r=Sp(),{hideIndicator:n}=r??{};return es(Dt.Item,{ref:a,className:i("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[Ze("div",{className:"min-w-0 flex-1",children:o}),!n&&Ze("div",{className:i("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:Ze(Dt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:Ze(kp,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Ra.displayName=Dt.Item.displayName;var Jn=St.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>es($o.Root,{ref:r,className:i("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[Ze("div",{className:"min-w-0 flex-1",children:o}),!t&&Ze("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:Ze($o.Indicator,{className:i("flex items-center justify-center text-current"),children:Ze(Tp,{className:"h-4 w-4"})})})]}));Jn.displayName=$o.Root.displayName;import{cva as Dp}from"class-variance-authority";import{jsx as Ip}from"react/jsx-runtime";var ts=Dp("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 Mp({className:e,variant:o,...t}){return Ip("div",{className:i(ts({variant:o}),e),...t})}import*as as from"react";import*as Go from"@radix-ui/react-progress";import{cva as rs}from"class-variance-authority";import{jsx as os}from"react/jsx-runtime";var Ap=rs("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"}}),Lp=rs("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"}}),is=as.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>os(Go.Root,{ref:s,className:i("",Lp({size:a}),e),...n,children:os(Go.Indicator,{className:i("",Ap({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));is.displayName=Go.Root.displayName;import{jsx as Ep}from"react/jsx-runtime";function Ta({className:e,...o}){return Ep("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Fp,jsx as Ut,jsxs as ns}from"react/jsx-runtime";function Hp({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let r={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return Ut("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return ns("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>Ut("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),Ut("style",{children:`
140
140
  .spinner_dots span {
141
141
  animation-name: spinner-dots;
142
142
  animation-duration: 1.4s;
@@ -243,7 +243,7 @@ import*as No from"react";import{ChevronDownIcon as jl}from"@heroicons/react/20/s
243
243
  opacity: 0.15;
244
244
  }
245
245
  }
246
- `})]})}})()})}import*as ss from"react";import*as Ze from"@radix-ui/react-slider";import{jsx as Mt,jsxs as zp}from"react/jsx-runtime";var ls=ss.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>zp(Ze.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Mt(Ze.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Mt(Ze.Range,{className:"absolute h-full bg-pink-500"})}),Mt(Ze.Thumb,{className:"group relative",children:Mt("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&&Mt("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})})}),Mt(Ze.Thumb,{className:"group relative",children:Mt("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&&Mt("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})})})]}));ls.displayName=Ze.Root.displayName;import{forwardRef as Kp}from"react";import{Fragment as Op,jsx as Le,jsxs as ka}from"react/jsx-runtime";var _p=({author:e=""})=>Le("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Bp=({author:e,avatar:o})=>Le("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Le("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Le(_p,{author:e})});function Vp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return Le(Op,{children:ka("div",{className:"flex relative items-center space-x-3",children:[Le(Bp,{avatar:e,author:o}),ka("div",{className:"flex flex-col",children:[o&&Le("div",{className:"font-semibold text-gray-900 text-sm",children:o}),ka("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Le("div",{className:"text-gray-400",children:t}),a&&ka("div",{className:"flex items-center space-x-2",children:[Le("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Le("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&Le("div",{className:"absolute right-1 top-0",children:Le("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var ms=Vp;import{useState as gs}from"react";import{StarIcon as Wp}from"@heroicons/react/20/solid";import{jsx as cs,jsxs as ds}from"react/jsx-runtime";var $p={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!"},Gp={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 jp({point:e,max:o,className:t}){let a=o>5?$p[e||10]:Gp[e||5];return ds("div",{className:i("flex items-center space-x-1",t),children:[cs(Wp,{className:"w-5 h-5 text-yellow-500"}),cs("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),ds("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var ps=jp;import{useState as Up}from"react";import fs from"html-react-parser";import{jsx as Qp,jsxs as qp}from"react/jsx-runtime";var Ir=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,l]=Up(!0),m=()=>{l(!s)},d=(c,f,u=" ")=>c.length<=f?c:c.substring(0,c.lastIndexOf(u,f));return qp("div",{className:i(n),children:[s?fs(d(e,o)):fs(e),e.length>o&&Qp("span",{onClick:m,className:i("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",r),children:s?t:a})]})};import{jsx as Qt,jsxs as us}from"react/jsx-runtime";function Xp({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=gs(0),[m,d]=gs(!1),c=f=>{d(!0),l(f)};return us("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&Qt(ps,{className:"mb-0.5",point:r.point,max:r.max}),e&&Qt(Ir,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&Qt("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(f=>Qt("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:f}))}),o?.length>0&&us(Dr,{open:m,onOpenChange:d,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((f,u)=>Qt(A,{onClick:()=>c(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:Qt("img",{src:f.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),Qt(Mr,{activeSlideIndex:s,images:o?.map((f,u)=>({url:f.url,titleImage:f.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var vs=Xp;import{jsx as Zp}from"react/jsx-runtime";function Yp({actions:e=[]}){return Zp("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var xs=Yp;import{jsx as Sa,jsxs as ef}from"react/jsx-runtime";var Jp=Kp(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:d,children:c,commentSideBar:f,isOutStanding:u,limitContent:x=260},k)=>ef("div",{ref:k,className:i("",d?"ml-4 py-4":"py-5"),children:[Sa(ms,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:u}),Sa(vs,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:f,limitContent:x}),l&&l?.filter(Boolean)?.length>0&&Sa(xs,{actions:l.filter(Boolean)}),c&&Sa("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:c})]}));import*as It from"react";import{cva as tf}from"class-variance-authority";import{CheckIcon as of}from"@heroicons/react/16/solid";import{XIcon as af}from"lucide-react";import{jsx as xe,jsxs as Da}from"react/jsx-runtime";var rf=tf("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"}}),bs=It.createContext("default");function nf(){let e=It.useContext(bs);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var sf=It.memo(({type:e,icon:o,stepNumber:t,size:a,isError:r,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return r?xe(af,{className:s}):Da("div",{children:[e==="iconStep"&&xe("div",{className:s,children:o}),e==="numberStep"&&xe("div",{children:t}),e==="default"&&(n==="completed"?xe(of,{className:s}):xe("div",{children:t}))]})}),lf=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=It.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return xe("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},mf=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:l,fristStep:m,icon:d,isError:c,onValueChangeStep:f,...u})=>{let x=nf();return Da("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[Da("div",{className:"flex w-full items-center justify-center gap-2",children:[xe("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),xe("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",rf({state:o,size:t}),c&&"bg-red-500 text-white shadow-none",r),...u,children:xe(sf,{type:x,icon:d,stepNumber:e,size:t,isError:c,state:o})}),xe("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Da("div",{className:i("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&xe("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&xe("div",{className:"text-xs text-gray-500 ",children:s})]})]})},cf=({children:e,className:o,type:t="numberStep",...a})=>xe(bs.Provider,{value:t,children:xe("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as be from"react";import{Slot as gf}from"@radix-ui/react-slot";import{Controller as uf,FormProvider as vf,useFormContext as xf}from"react-hook-form";import*as hs from"react";import*as Ar from"@radix-ui/react-label";import{cva as df}from"class-variance-authority";import{jsx as ff}from"react/jsx-runtime";var pf=df("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ma=hs.forwardRef(({className:e,...o},t)=>ff(Ar.Root,{ref:t,className:i(pf(),e),...o}));Ma.displayName=Ar.Root.displayName;import{jsx as At}from"react/jsx-runtime";var bf=vf,ys=be.createContext({}),hf=({...e})=>At(ys.Provider,{value:{name:e.name},children:At(uf,{...e})}),jo=()=>{let e=be.useContext(ys),o=be.useContext(Ns),{getFieldState:t,formState:a}=xf(),r=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...r}},Ns=be.createContext({}),ws=be.forwardRef(({className:e,...o},t)=>{let a=be.useId();return At(Ns.Provider,{value:{id:a},children:At("div",{ref:t,className:i("space-y-2",e),...o})})});ws.displayName="FormItem";var Ps=be.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=jo();return At(Ma,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});Ps.displayName="FormLabel";var Cs=be.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=jo();return At(gf,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});Cs.displayName="FormControl";var Rs=be.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=jo();return At("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});Rs.displayName="FormDescription";var Ts=be.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=jo(),s=r?String(r?.message):o;return s?At("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});Ts.displayName="FormMessage";import*as ht from"react";import*as N from"@radix-ui/react-dropdown-menu";import{ChevronRight as yf,Check as Nf}from"lucide-react";import{jsx as pe,jsxs as Uo}from"react/jsx-runtime";var wf=N.Root,Pf=N.Trigger,Cf=N.Group,Rf=N.Portal,Tf=N.Sub,kf=N.RadioGroup,ks=ht.forwardRef(({className:e,inset:o,children:t,...a},r)=>Uo(N.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,pe(yf,{className:"ml-auto"})]}));ks.displayName=N.SubTrigger.displayName;var Ss=ht.forwardRef(({className:e,...o},t)=>pe(N.SubContent,{ref:t,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));Ss.displayName=N.SubContent.displayName;var Ds=ht.forwardRef(({className:e,sideOffset:o=4,...t},a)=>pe(N.Portal,{children:pe(N.Content,{ref:a,sideOffset:o,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));Ds.displayName=N.Content.displayName;var Ms=ht.forwardRef(({className:e,inset:o,...t},a)=>pe(N.Item,{ref:a,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));Ms.displayName=N.Item.displayName;var Is=ht.forwardRef(({className:e,children:o,checked:t,...a},r)=>Uo(N.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[Uo("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&pe("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),pe(N.ItemIndicator,{children:pe("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:pe(Nf,{size:16,strokeWidth:3})})})]}),o]}));Is.displayName=N.CheckboxItem.displayName;var As=ht.forwardRef(({className:e,children:o,...t},a)=>Uo(N.RadioItem,{ref:a,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[Uo("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[pe("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),pe(N.ItemIndicator,{children:pe("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));As.displayName=N.RadioItem.displayName;var Ls=ht.forwardRef(({className:e,inset:o,...t},a)=>pe(N.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Ls.displayName=N.Label.displayName;var Es=ht.forwardRef(({className:e,...o},t)=>pe(N.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));Es.displayName=N.Separator.displayName;var Hs=({className:e,...o})=>pe("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});Hs.displayName="DropdownMenuShortcut";import Ia from"html-react-parser";import{Fragment as Lr,jsx as U,jsxs as qt}from"react/jsx-runtime";var Fs=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>qt(Lr,{children:[e&&U(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&U("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>U("div",{className:"basis-full px-3.5 md:basis-1/3",children:qt("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[U("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:r+1}),qt("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:Ia(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:Ia(a.description)})]})]})},r))}),t&&U(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Sf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>qt(Lr,{children:[e&&U(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&U("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>qt("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[qt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[U("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:r+1}),a?.image&&U("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:U(A,{ratio:1,children:U("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),qt("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:Ia(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:Ia(a.description)})]})]},r))}),t&&U(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Df=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return U(Fs,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return U(Sf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return U(Fs,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Mf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>U(Lr,{children:Df({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),If=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>U(G,{className:t,idSection:a,background:o,children:U(Mf,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as Af}from"class-variance-authority";import zs from"html-react-parser";import{CheckIcon as _s}from"lucide-react";import{Fragment as Er,jsx as fe,jsxs as Bs}from"react/jsx-runtime";var Lf=Af("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}}),Ef=({template:e,name:o,image:t,isFeatures:a})=>fe(Er,{children:(()=>{switch(e){case 1:case 2:return fe(Er,{children:Bs("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?fe("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:fe("img",{src:t,alt:"",className:"max-w-full"})}):fe("div",{className:"mt-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-pink-100",children:fe(_s,{className:"h-4 w-4 text-pink-500"})}),o&&fe("div",{className:"ml-2 ",children:zs(o)})]})});case 3:return Bs("li",{className:"flex h-full space-x-4",children:[t?fe("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:fe("img",{src:t,alt:"",className:"max-w-full"})}):fe("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:fe(_s,{className:"h-4 w-4 text-pink-500"})}),o&&fe("div",{className:"my-auto ml-2 md:my-0",children:zs(o)})]});default:return null}})()}),Aa=({dataFeatures:e,template:o=1})=>fe(Er,{children:(e?.length??0)>0&&fe("ul",{className:i("",Lf({template:o})),children:e?.map((t,a)=>fe(Ef,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as Hf}from"lucide-react";import{jsx as Z,jsxs as Qo}from"react/jsx-runtime";var Vs=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Ff=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>Qo(eo,{children:[Z(Be,{greaterThan:"sm",children:Qo(A,{className:i(""),ratio:Vs(o),children:[Z("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&Qo(lt,{children:[Z(ja,{onClick:r,children:Z("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:Z("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:Qo("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(Oe,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:Qo(wt,{className:"relative bg-transparent p-4 text-center",children:[Z("div",{className:"aspect-[16/9] w-full p-0",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),Z(Ua,{asChild:!0,children:Z(ie,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:Z(Hf,{className:"h-6 w-6"})})})]})})]})]})}),a&&Z(Be,{lessThan:"md",children:Z("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),La=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>Z("div",{className:a,children:n?Z(Ff,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):Z(A,{ratio:Vs(t),children:Z("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});import zf from"html-react-parser";import{Fragment as Bf,jsx as Ea,jsxs as Hr}from"react/jsx-runtime";var _f=({value:e,suffix:o,unit:t,description:a,idx:r})=>Hr("div",{className:i(""),children:[e&&Hr("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Hr("span",{children:[o," ",t]})]}),a&&Ea("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:zf(a)})]}),Ha=({dataStats:e})=>Ea(Bf,{children:(e?.length??0)>0&&Ea("ul",{className:i("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>Ea(_f,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Os,jsx as K,jsxs as qo}from"react/jsx-runtime";var Fr=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>qo("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[qo("div",{className:"col-span-1 ",children:[K(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),K(Aa,{dataFeatures:t,template:a}),o&&K(y,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),K(Ha,{dataStats:r})]}),K("div",{className:"col-span-1 md:pl-10",children:s||K(La,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Ws=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>qo("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[K("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||K(La,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),qo("div",{className:"order-1 col-span-1 md:order-2",children:[K(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),K(Aa,{dataFeatures:t,template:a}),o&&K("div",{className:"flex w-full items-center justify-center md:justify-start",children:K(y,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),K(Ha,{dataStats:r})]})]}),$s=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>qo(Os,{children:[K(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),o&&K(y,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),K(Aa,{dataFeatures:t,template:a}),K("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:K(Ha,{dataStats:r})}),s||K(Os,{children:n?.src&&K(La,{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 Gf,jsx as Xt}from"react/jsx-runtime";var Vf=`var(
246
+ `})]})}})()})}import*as ss from"react";import*as Ke from"@radix-ui/react-slider";import{jsx as Mt,jsxs as zp}from"react/jsx-runtime";var ls=ss.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>zp(Ke.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Mt(Ke.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Mt(Ke.Range,{className:"absolute h-full bg-pink-500"})}),Mt(Ke.Thumb,{className:"group relative",children:Mt("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&&Mt("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})})}),Mt(Ke.Thumb,{className:"group relative",children:Mt("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&&Mt("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})})})]}));ls.displayName=Ke.Root.displayName;import{forwardRef as Kp}from"react";import{Fragment as Op,jsx as Le,jsxs as ka}from"react/jsx-runtime";var _p=({author:e=""})=>Le("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Bp=({author:e,avatar:o})=>Le("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Le("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Le(_p,{author:e})});function Vp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return Le(Op,{children:ka("div",{className:"flex relative items-center space-x-3",children:[Le(Bp,{avatar:e,author:o}),ka("div",{className:"flex flex-col",children:[o&&Le("div",{className:"font-semibold text-gray-900 text-sm",children:o}),ka("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Le("div",{className:"text-gray-400",children:t}),a&&ka("div",{className:"flex items-center space-x-2",children:[Le("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Le("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&Le("div",{className:"absolute right-1 top-0",children:Le("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var ms=Vp;import{useState as gs}from"react";import{StarIcon as Wp}from"@heroicons/react/20/solid";import{jsx as cs,jsxs as ds}from"react/jsx-runtime";var $p={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!"},Gp={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 jp({point:e,max:o,className:t}){let a=o>5?$p[e||10]:Gp[e||5];return ds("div",{className:i("flex items-center space-x-1",t),children:[cs(Wp,{className:"w-5 h-5 text-yellow-500"}),cs("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),ds("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var ps=jp;import{useState as Up}from"react";import fs from"html-react-parser";import{jsx as Qp,jsxs as qp}from"react/jsx-runtime";var Ir=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,l]=Up(!0),m=()=>{l(!s)},d=(c,f,u=" ")=>c.length<=f?c:c.substring(0,c.lastIndexOf(u,f));return qp("div",{className:i(n),children:[s?fs(d(e,o)):fs(e),e.length>o&&Qp("span",{onClick:m,className:i("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",r),children:s?t:a})]})};import{jsx as Qt,jsxs as us}from"react/jsx-runtime";function Xp({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=gs(0),[m,d]=gs(!1),c=f=>{d(!0),l(f)};return us("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&Qt(ps,{className:"mb-0.5",point:r.point,max:r.max}),e&&Qt(Ir,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&Qt("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(f=>Qt("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:f}))}),o?.length>0&&us(Dr,{open:m,onOpenChange:d,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((f,u)=>Qt(A,{onClick:()=>c(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:Qt("img",{src:f.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),Qt(Mr,{activeSlideIndex:s,images:o?.map((f,u)=>({url:f.url,titleImage:f.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var vs=Xp;import{jsx as Zp}from"react/jsx-runtime";function Yp({actions:e=[]}){return Zp("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var xs=Yp;import{jsx as Sa,jsxs as ef}from"react/jsx-runtime";var Jp=Kp(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:d,children:c,commentSideBar:f,isOutStanding:u,limitContent:x=260},k)=>ef("div",{ref:k,className:i("",d?"ml-4 py-4":"py-5"),children:[Sa(ms,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:u}),Sa(vs,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:f,limitContent:x}),l&&l?.filter(Boolean)?.length>0&&Sa(xs,{actions:l.filter(Boolean)}),c&&Sa("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:c})]}));import*as It from"react";import{cva as tf}from"class-variance-authority";import{CheckIcon as of}from"@heroicons/react/16/solid";import{XIcon as af}from"lucide-react";import{jsx as xe,jsxs as Da}from"react/jsx-runtime";var rf=tf("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"}}),bs=It.createContext("default");function nf(){let e=It.useContext(bs);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var sf=It.memo(({type:e,icon:o,stepNumber:t,size:a,isError:r,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return r?xe(af,{className:s}):Da("div",{children:[e==="iconStep"&&xe("div",{className:s,children:o}),e==="numberStep"&&xe("div",{children:t}),e==="default"&&(n==="completed"?xe(of,{className:s}):xe("div",{children:t}))]})}),lf=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=It.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return xe("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},mf=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:l,fristStep:m,icon:d,isError:c,onValueChangeStep:f,...u})=>{let x=nf();return Da("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[Da("div",{className:"flex w-full items-center justify-center gap-2",children:[xe("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),xe("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",rf({state:o,size:t}),c&&"bg-red-500 text-white shadow-none",r),...u,children:xe(sf,{type:x,icon:d,stepNumber:e,size:t,isError:c,state:o})}),xe("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Da("div",{className:i("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&xe("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&xe("div",{className:"text-xs text-gray-500 ",children:s})]})]})},cf=({children:e,className:o,type:t="numberStep",...a})=>xe(bs.Provider,{value:t,children:xe("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as be from"react";import{Slot as gf}from"@radix-ui/react-slot";import{Controller as uf,FormProvider as vf,useFormContext as xf}from"react-hook-form";import*as hs from"react";import*as Ar from"@radix-ui/react-label";import{cva as df}from"class-variance-authority";import{jsx as ff}from"react/jsx-runtime";var pf=df("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ma=hs.forwardRef(({className:e,...o},t)=>ff(Ar.Root,{ref:t,className:i(pf(),e),...o}));Ma.displayName=Ar.Root.displayName;import{jsx as At}from"react/jsx-runtime";var bf=vf,ys=be.createContext({}),hf=({...e})=>At(ys.Provider,{value:{name:e.name},children:At(uf,{...e})}),jo=()=>{let e=be.useContext(ys),o=be.useContext(Ns),{getFieldState:t,formState:a}=xf(),r=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...r}},Ns=be.createContext({}),ws=be.forwardRef(({className:e,...o},t)=>{let a=be.useId();return At(Ns.Provider,{value:{id:a},children:At("div",{ref:t,className:i("space-y-2",e),...o})})});ws.displayName="FormItem";var Ps=be.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=jo();return At(Ma,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});Ps.displayName="FormLabel";var Cs=be.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=jo();return At(gf,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});Cs.displayName="FormControl";var Rs=be.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=jo();return At("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});Rs.displayName="FormDescription";var Ts=be.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=jo(),s=r?String(r?.message):o;return s?At("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});Ts.displayName="FormMessage";import*as ht from"react";import*as N from"@radix-ui/react-dropdown-menu";import{ChevronRight as yf,Check as Nf}from"lucide-react";import{jsx as pe,jsxs as Uo}from"react/jsx-runtime";var wf=N.Root,Pf=N.Trigger,Cf=N.Group,Rf=N.Portal,Tf=N.Sub,kf=N.RadioGroup,ks=ht.forwardRef(({className:e,inset:o,children:t,...a},r)=>Uo(N.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,pe(yf,{className:"ml-auto"})]}));ks.displayName=N.SubTrigger.displayName;var Ss=ht.forwardRef(({className:e,...o},t)=>pe(N.SubContent,{ref:t,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));Ss.displayName=N.SubContent.displayName;var Ds=ht.forwardRef(({className:e,sideOffset:o=4,...t},a)=>pe(N.Portal,{children:pe(N.Content,{ref:a,sideOffset:o,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));Ds.displayName=N.Content.displayName;var Ms=ht.forwardRef(({className:e,inset:o,...t},a)=>pe(N.Item,{ref:a,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));Ms.displayName=N.Item.displayName;var Is=ht.forwardRef(({className:e,children:o,checked:t,...a},r)=>Uo(N.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[Uo("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&pe("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),pe(N.ItemIndicator,{children:pe("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:pe(Nf,{size:16,strokeWidth:3})})})]}),o]}));Is.displayName=N.CheckboxItem.displayName;var As=ht.forwardRef(({className:e,children:o,...t},a)=>Uo(N.RadioItem,{ref:a,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[Uo("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[pe("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),pe(N.ItemIndicator,{children:pe("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));As.displayName=N.RadioItem.displayName;var Ls=ht.forwardRef(({className:e,inset:o,...t},a)=>pe(N.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Ls.displayName=N.Label.displayName;var Es=ht.forwardRef(({className:e,...o},t)=>pe(N.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));Es.displayName=N.Separator.displayName;var Hs=({className:e,...o})=>pe("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});Hs.displayName="DropdownMenuShortcut";import Ia from"html-react-parser";import{Fragment as Lr,jsx as U,jsxs as qt}from"react/jsx-runtime";var Fs=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>qt(Lr,{children:[e&&U(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&U("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>U("div",{className:"basis-full px-3.5 md:basis-1/3",children:qt("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[U("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:r+1}),qt("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:Ia(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:Ia(a.description)})]})]})},r))}),t&&U(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Sf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>qt(Lr,{children:[e&&U(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&U("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>qt("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[qt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[U("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:r+1}),a?.image&&U("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:U(A,{ratio:1,children:U("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),qt("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:Ia(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:Ia(a.description)})]})]},r))}),t&&U(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Df=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return U(Fs,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return U(Sf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return U(Fs,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Mf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>U(Lr,{children:Df({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),If=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>U(G,{className:t,idSection:a,background:o,children:U(Mf,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as Af}from"class-variance-authority";import zs from"html-react-parser";import{CheckIcon as _s}from"lucide-react";import{Fragment as Er,jsx as fe,jsxs as Bs}from"react/jsx-runtime";var Lf=Af("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}}),Ef=({template:e,name:o,image:t,isFeatures:a})=>fe(Er,{children:(()=>{switch(e){case 1:case 2:return fe(Er,{children:Bs("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?fe("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:fe("img",{src:t,alt:"",className:"max-w-full"})}):fe("div",{className:"mt-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-pink-100",children:fe(_s,{className:"h-4 w-4 text-pink-500"})}),o&&fe("div",{className:"ml-2 ",children:zs(o)})]})});case 3:return Bs("li",{className:"flex h-full space-x-4",children:[t?fe("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:fe("img",{src:t,alt:"",className:"max-w-full"})}):fe("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:fe(_s,{className:"h-4 w-4 text-pink-500"})}),o&&fe("div",{className:"my-auto ml-2 md:my-0",children:zs(o)})]});default:return null}})()}),Aa=({dataFeatures:e,template:o=1})=>fe(Er,{children:(e?.length??0)>0&&fe("ul",{className:i("",Lf({template:o})),children:e?.map((t,a)=>fe(Ef,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as Hf}from"lucide-react";import{jsx as Z,jsxs as Qo}from"react/jsx-runtime";var Vs=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Ff=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>Qo(eo,{children:[Z(Ve,{greaterThan:"sm",children:Qo(A,{className:i(""),ratio:Vs(o),children:[Z("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&Qo(lt,{children:[Z(ja,{onClick:r,children:Z("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:Z("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:Qo("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(We,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:Qo(wt,{className:"relative bg-transparent p-4 text-center",children:[Z("div",{className:"aspect-[16/9] w-full p-0",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),Z(Ua,{asChild:!0,children:Z(ie,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:Z(Hf,{className:"h-6 w-6"})})})]})})]})]})}),a&&Z(Ve,{lessThan:"md",children:Z("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),La=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>Z("div",{className:a,children:n?Z(Ff,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):Z(A,{ratio:Vs(t),children:Z("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});import zf from"html-react-parser";import{Fragment as Bf,jsx as Ea,jsxs as Hr}from"react/jsx-runtime";var _f=({value:e,suffix:o,unit:t,description:a,idx:r})=>Hr("div",{className:i(""),children:[e&&Hr("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Hr("span",{children:[o," ",t]})]}),a&&Ea("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:zf(a)})]}),Ha=({dataStats:e})=>Ea(Bf,{children:(e?.length??0)>0&&Ea("ul",{className:i("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>Ea(_f,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Os,jsx as K,jsxs as qo}from"react/jsx-runtime";var Fr=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>qo("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[qo("div",{className:"col-span-1 ",children:[K(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),K(Aa,{dataFeatures:t,template:a}),o&&K(y,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),K(Ha,{dataStats:r})]}),K("div",{className:"col-span-1 md:pl-10",children:s||K(La,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Ws=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>qo("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[K("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||K(La,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),qo("div",{className:"order-1 col-span-1 md:order-2",children:[K(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),K(Aa,{dataFeatures:t,template:a}),o&&K("div",{className:"flex w-full items-center justify-center md:justify-start",children:K(y,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),K(Ha,{dataStats:r})]})]}),$s=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>qo(Os,{children:[K(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),o&&K(y,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),K(Aa,{dataFeatures:t,template:a}),K("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:K(Ha,{dataStats:r})}),s||K(Os,{children:n?.src&&K(La,{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 Gf,jsx as Xt}from"react/jsx-runtime";var Vf=`var(
247
247
  --gradient-pink-1,
248
248
  linear-gradient(
249
249
  38deg,
@@ -265,15 +265,15 @@ import*as No from"react";import{ChevronDownIcon as jl}from"@heroicons/react/20/s
265
265
  rgba(255, 255, 255, 0) 80%
266
266
  ),
267
267
  #fff
268
- )`,Of=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return Xt(Fr,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return Xt(Ws,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return Xt($s,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return Xt(Fr,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},Wf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>Xt(Gf,{children:Of({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),$f=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:d=null})=>Xt(G,{className:i(l),background:m??Vf,idSection:o,children:Xt(Wf,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:d})});import{Fragment as zr,jsx as F,jsxs as js}from"react/jsx-runtime";var Gs=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:r})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return js(zr,{children:[e&&F(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&F("div",{className:i("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],r?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,l)=>F("div",{className:i("flex items-center justify-center md:basis-auto md:px-0",r?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:F("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?F("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:F("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):F("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},l))}),t&&F(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},jf=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>js(zr,{children:[e&&F(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&F("div",{className:i("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((r,n)=>F("div",{className:i("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:r?.url?F("a",{href:r?.url,title:r?.name,target:r?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:F("div",{className:"flex w-auto max-w-36 items-center justify-center",children:F("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})}):F("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:F("div",{className:"flex w-auto max-w-36 items-center justify-center",children:F("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})})},n))}),t&&F(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Uf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return F(Gs,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return F(jf,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return F(Gs,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},Qf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>F(zr,{children:Uf({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),qf=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>F(G,{className:t,idSection:a,background:o,children:F(Qf,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as Xf}from"react";import{ChevronRightIcon as Yf}from"@heroicons/react/16/solid";import Q from"html-react-parser";import{Fragment as yt,jsx as p,jsxs as v}from"react/jsx-runtime";var Ke=({btnLink:e,btnName:o,newTab:t})=>p(ce,{variant:"primary",asChild:!0,children:v("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",p(Yf,{className:"h-4 w-4"})]})}),_r=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&p("div",{className:"mx-auto h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Ke,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Us=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Ke,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),p("style",{children:`
268
+ )`,Of=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return Xt(Fr,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return Xt(Ws,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return Xt($s,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return Xt(Fr,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},Wf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>Xt(Gf,{children:Of({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),$f=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:d=null})=>Xt(G,{className:i(l),background:m??Vf,idSection:o,children:Xt(Wf,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:d})});import{Fragment as zr,jsx as z,jsxs as js}from"react/jsx-runtime";var Gs=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:r})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return js(zr,{children:[e&&z(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&z("div",{className:i("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],r?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,l)=>z("div",{className:i("flex items-center justify-center md:basis-auto md:px-0",r?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:z("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?z("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:z("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):z("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},l))}),t&&z(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},jf=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>js(zr,{children:[e&&z(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&z("div",{className:i("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((r,n)=>z("div",{className:i("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:r?.url?z("a",{href:r?.url,title:r?.name,target:r?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:z("div",{className:"flex w-auto max-w-36 items-center justify-center",children:z("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})}):z("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:z("div",{className:"flex w-auto max-w-36 items-center justify-center",children:z("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"object-contain"})})})},n))}),t&&z(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Uf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return z(Gs,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return z(jf,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return z(Gs,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},Qf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>z(zr,{children:Uf({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),qf=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>z(G,{className:t,idSection:a,background:o,children:z(Qf,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as Xf}from"react";import{ChevronRightIcon as Yf}from"@heroicons/react/16/solid";import Q from"html-react-parser";import{Fragment as yt,jsx as p,jsxs as v}from"react/jsx-runtime";var Je=({btnLink:e,btnName:o,newTab:t})=>p(ce,{variant:"primary",asChild:!0,children:v("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",p(Yf,{className:"h-4 w-4"})]})}),_r=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&p("div",{className:"mx-auto h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Us=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),p("style",{children:`
269
269
  .list-features-2 .feature-item {
270
270
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
271
271
  }
272
- `})]}),Qs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 w-full flex-1",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Ke,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),qs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[v("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),v("div",{className:"lg:col-span-6",children:[o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Ke,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Xs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Ke,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ys=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,r)=>v("div",{className:"feature-item relative w-full",children:[a?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Ke,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,r={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?r.special:r.default,m=n[a]??-1,d=(c,f)=>{let u=c?.btnLink?"a":"div",x=c?.btnLink?{href:c.btnLink,target:c?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:c?.btnName}:{};return p("div",{className:i("basis-1/2 px-2 lg:px-5",l,f===m&&"md:break-after-row",c?.btnLink&&"group cursor-pointer"),children:v(u,{...x,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[c?.image&&p("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:p("img",{src:c?.image,alt:c?.name,className:"h-full w-full object-contain",loading:"lazy"})}),v("div",{className:"w-full flex-1 text-center",children:[c?.name&&p("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:Q(c.name)}),c?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(c.description)})]})]})},f)};return v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((c,f)=>d(c,f))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Ks=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[v("div",{className:"flex w-full flex-1 flex-col p-5",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Ke,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&p("div",{className:"w-full",style:{aspectRatio:"347/220"},children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Js=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>v("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[p("div",{className:"flex items-center lg:col-span-6",children:v("div",{className:"w-full",children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:text-left",e?.className)}),o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((r,n)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&p("div",{className:"h-10 w-10",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(Ke,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&p("div",{className:"flex items-center lg:col-span-4",children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:p(A,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),el=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),p("div",{className:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&v("div",{className:i("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((r,n)=>v("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-gray-500",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(Ke,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&v("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[p("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),p("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:p("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&p(y,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),tl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=Xf(0);return v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&v("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[p("div",{children:o&&p("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:p(at,{type:"single",collapsible:!0,value:r.toString(),onValueChange:s=>{let l=parseInt(s);isNaN(l)||n(l)},defaultValue:r.toString(),children:o?.map((s,l)=>v(rt,{value:l.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[p(it,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:Q(s.name||"")}),v(nt,{children:[s?.description&&p("div",{className:"text-muted-foreground mb-3",children:Q(s.description||"")}),s?.btnLink&&p("div",{className:"mt-4",children:p(Ke,{btnLink:s.btnLink,btnName:s?.btnName,newTab:s?.newTab})}),s?.image&&!a&&p("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:p(A,{ratio:1,className:"w-full",children:p("img",{src:s?.image,alt:s?.name,className:"h-full w-full object-contain"})})})]})]},l))})})}),p("div",{className:i(a?"flex":"hidden md:flex"),children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?p(A,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):p("div",{className:"hidden md:flex",children:o?.[r]?.image?p(A,{ratio:1,className:"w-full",children:p("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain"})}):p("div",{className:"h-0 w-0"})})})})]}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as eg,jsx as ge}from"react/jsx-runtime";var Zf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return ge(_r,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ge(Us,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ge(Qs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ge(qs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ge(Xs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ge(Ys,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ge(Zs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ge(Ks,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ge(Js,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return ge(el,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return ge(tl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return ge(_r,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Kf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>ge(eg,{children:Zf({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Jf=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>ge(G,{className:t,idSection:a,background:o,children:ge(Kf,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as sg}from"@heroicons/react/24/solid";import Vr from"html-react-parser";import lg from"lodash";import{useEffect as tg,useState as Br}from"react";import{animate as ol,motion as og,useMotionValue as ag}from"motion/react";import rg from"react-use-measure";import{jsx as ng,jsxs as ig}from"react/jsx-runtime";function Fa({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,d]=Br(t),[c,{width:f,height:u}]=rg(),x=ag(0),[k,D]=Br(!1),[M,E]=Br(0);tg(()=>{let I,w=(r==="horizontal"?f:u)+o,re=n?-w/2:0,$=n?0:-w/2,Ft=Math.abs($-re)/m;if(k){let ho=Math.abs(x.get()-$)/m;I=ol(x,[x.get(),$],{ease:"linear",duration:ho,onComplete:()=>{D(!1),E(Ol=>Ol+1)}})}else I=ol(x,[re,$],{ease:"linear",duration:Ft,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{x.set(re)}});return I?.stop},[M,x,m,f,u,o,k,r,n]);let W=a?{onHoverStart:()=>{D(!0),d(a)},onHoverEnd:()=>{D(!0),d(t)},onTouchStart:()=>{D(!0),d(a)},onTouchEnd:()=>{D(!0),d(t)}}:{};return ng("div",{className:i("overflow-hidden",s),children:ig(og.div,{className:i("flex w-max",l),style:{...r==="horizontal"?{x,paddingLeft:o}:{y:x},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:c,...W,children:[e,e]})})}var za=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],_a=({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()||""},Ba=(e,o)=>o[e%o.length];import{Fragment as rl,jsx as J,jsxs as uo}from"react/jsx-runtime";var mg=({avatar:e="",name:o="",index:t=0})=>{if(lg.isEmpty(e)){let a=_a({name:o})??"",r=Ba(t,za);return J("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",r),children:a})}return J("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:J("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},al=({testimonial:e,className:o,index:t})=>J("div",{className:i("testimonial-item",o),children:uo("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:[uo("div",{className:"flex flex-nowrap items-center space-x-2",children:[J(mg,{avatar:e.avatar,name:e.name,index:t}),uo("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:Vr(e.position)})]})]}),uo("div",{className:"mt-3",children:[e?.shortTitle&&J("div",{className:"text-sm font-bold text-gray-700",children:Vr(e.shortTitle)}),e?.description&&J("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Vr(e.description)})]}),uo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&J("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&J("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>J(sg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Or=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return uo(rl,{children:[e&&J(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&J(rl,{children:r?J("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:J(Fa,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>J(al,{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(al,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&J(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as il}from"@heroicons/react/24/solid";import Wr from"html-react-parser";import{Fragment as dg,jsx as O,jsxs as Je}from"react/jsx-runtime";var cg=({testimonial:e,className:o})=>O("div",{className:i("testimonial-item relative mb-1.5 h-full w-full cursor-grab overflow-hidden rounded-xl border border-gray-100 bg-white p-5 shadow-md md:p-10",o),children:Je("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&O("div",{className:"relative hidden w-56 flex-none grow-0 items-start md:flex",children:O(A,{ratio:2/3,className:"w-full",children:O("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-4 md:order-2 lg:space-x-6",children:[Je("div",{className:"grow",children:[e?.name&&O("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&O("div",{className:"mt-1 max-w-sm text-xs font-normal text-gray-500",children:Wr(e.position)})]}),Je("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",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},(t,a)=>O(il,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&O("div",{className:"relative w-24 flex-none grow-0 md:hidden",children:O(A,{ratio:2/3,className:"w-full",children:O("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Je("div",{className:"flex flex-1 select-none flex-col md:flex-none",children:[Je("div",{className:"flex-1",children:[e?.shortTitle&&O("div",{className:"mb-1 flex-none text-base font-medium md:text-lg",children:Wr(e.shortTitle)}),e?.description&&O("div",{className:"relative flex-1 text-justify text-sm md:text-base",children:Wr(e.description)})]}),Je("div",{className:i("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&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},(t,a)=>O(il,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),nl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Je(dg,{children:[e&&O(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&Je(he,{className:"w-full",children:[O(ye,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>O(Ne,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12",children:O(cg,{testimonial:a})},r))}),(o??[]).length>1&&O(ra,{className:"mt-8"})]}),t&&O(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as pg}from"@heroicons/react/24/solid";import $r from"html-react-parser";import fg from"lodash";import{Fragment as ll,jsx as z,jsxs as Yt}from"react/jsx-runtime";var gg=({avatar:e="",name:o="",index:t=0})=>{if(fg.isEmpty(e)){let a=_a({name:o})??"",r=Ba(t,za);return z("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",r),children:a})}return z("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:z("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},sl=({testimonial:e,className:o,index:t})=>z("div",{className:i("testimonial-item",o),children:Yt("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:[Yt("div",{className:"flex flex-nowrap items-center space-x-2",children:[z(gg,{avatar:e.avatar,name:e.name,index:t}),Yt("div",{className:"flex-1 pl-1",children:[z("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&z("div",{className:"text-xs font-normal text-pink-500",children:$r(e.position)})]})]}),Yt("div",{className:"mt-3",children:[e?.shortTitle&&z("div",{className:"text-sm font-bold text-gray-700",children:$r(e.shortTitle)}),e?.description&&z("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:$r(e.description)})]}),Yt("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&&z("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&z("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>z(pg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),ml=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>z(ll,{children:l.map((m,d)=>z(Fa,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((c,f)=>z(sl,{testimonial:c,index:f,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${d}-${f}`))},`slider-${d}`))});return Yt(ll,{children:[e&&z(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&z(eo,{children:r?Yt("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[z(Be,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),z(Be,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),z(Be,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):z("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>z(sl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&z(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),z("style",{children:`
272
+ `})]}),Qs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 w-full flex-1",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),qs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[v("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),v("div",{className:"lg:col-span-6",children:[o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Xs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ys=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,r)=>v("div",{className:"feature-item relative w-full",children:[a?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,r={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?r.special:r.default,m=n[a]??-1,d=(c,f)=>{let u=c?.btnLink?"a":"div",x=c?.btnLink?{href:c.btnLink,target:c?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:c?.btnName}:{};return p("div",{className:i("basis-1/2 px-2 lg:px-5",l,f===m&&"md:break-after-row",c?.btnLink&&"group cursor-pointer"),children:v(u,{...x,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[c?.image&&p("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:p("img",{src:c?.image,alt:c?.name,className:"h-full w-full object-contain",loading:"lazy"})}),v("div",{className:"w-full flex-1 text-center",children:[c?.name&&p("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:Q(c.name)}),c?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(c.description)})]})]})},f)};return v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((c,f)=>d(c,f))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Ks=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>v("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[v("div",{className:"flex w-full flex-1 flex-col p-5",children:[v("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&p("div",{className:"w-full",style:{aspectRatio:"347/220"},children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Js=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>v("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[p("div",{className:"flex items-center lg:col-span-6",children:v("div",{className:"w-full",children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:text-left",e?.className)}),o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((r,n)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&p("div",{className:"h-10 w-10",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&p("div",{className:"flex items-center lg:col-span-4",children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:p(A,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),el=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),p("div",{className:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&v("div",{className:i("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((r,n)=>v("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-gray-500",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&v("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[p("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),p("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:p("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&p(y,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),tl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=Xf(0);return v(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&v("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[p("div",{children:o&&p("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:p(at,{type:"single",collapsible:!0,value:r.toString(),onValueChange:s=>{let l=parseInt(s);isNaN(l)||n(l)},defaultValue:r.toString(),children:o?.map((s,l)=>v(rt,{value:l.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[p(it,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:Q(s.name||"")}),v(nt,{children:[s?.description&&p("div",{className:"text-muted-foreground mb-3",children:Q(s.description||"")}),s?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:s.btnLink,btnName:s?.btnName,newTab:s?.newTab})}),s?.image&&!a&&p("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:p(A,{ratio:1,className:"w-full",children:p("img",{src:s?.image,alt:s?.name,className:"h-full w-full object-contain"})})})]})]},l))})})}),p("div",{className:i(a?"flex":"hidden md:flex"),children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?p(A,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):p("div",{className:"hidden md:flex",children:o?.[r]?.image?p(A,{ratio:1,className:"w-full",children:p("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain"})}):p("div",{className:"h-0 w-0"})})})})]}),t&&p(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as eg,jsx as ge}from"react/jsx-runtime";var Zf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return ge(_r,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ge(Us,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ge(Qs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ge(qs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ge(Xs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ge(Ys,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ge(Zs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ge(Ks,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ge(Js,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return ge(el,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return ge(tl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return ge(_r,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Kf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>ge(eg,{children:Zf({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Jf=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>ge(G,{className:t,idSection:a,background:o,children:ge(Kf,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as sg}from"@heroicons/react/24/solid";import Vr from"html-react-parser";import lg from"lodash";import{useEffect as tg,useState as Br}from"react";import{animate as ol,motion as og,useMotionValue as ag}from"motion/react";import rg from"react-use-measure";import{jsx as ng,jsxs as ig}from"react/jsx-runtime";function Fa({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,d]=Br(t),[c,{width:f,height:u}]=rg(),x=ag(0),[k,D]=Br(!1),[M,H]=Br(0);tg(()=>{let I,w=(r==="horizontal"?f:u)+o,re=n?-w/2:0,$=n?0:-w/2,Ft=Math.abs($-re)/m;if(k){let ho=Math.abs(x.get()-$)/m;I=ol(x,[x.get(),$],{ease:"linear",duration:ho,onComplete:()=>{D(!1),H(Ol=>Ol+1)}})}else I=ol(x,[re,$],{ease:"linear",duration:Ft,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{x.set(re)}});return I?.stop},[M,x,m,f,u,o,k,r,n]);let W=a?{onHoverStart:()=>{D(!0),d(a)},onHoverEnd:()=>{D(!0),d(t)},onTouchStart:()=>{D(!0),d(a)},onTouchEnd:()=>{D(!0),d(t)}}:{};return ng("div",{className:i("overflow-hidden",s),children:ig(og.div,{className:i("flex w-max",l),style:{...r==="horizontal"?{x,paddingLeft:o}:{y:x},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:c,...W,children:[e,e]})})}var za=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],_a=({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()||""},Ba=(e,o)=>o[e%o.length];import{Fragment as rl,jsx as J,jsxs as uo}from"react/jsx-runtime";var mg=({avatar:e="",name:o="",index:t=0})=>{if(lg.isEmpty(e)){let a=_a({name:o})??"",r=Ba(t,za);return J("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",r),children:a})}return J("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:J("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},al=({testimonial:e,className:o,index:t})=>J("div",{className:i("testimonial-item",o),children:uo("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:[uo("div",{className:"flex flex-nowrap items-center space-x-2",children:[J(mg,{avatar:e.avatar,name:e.name,index:t}),uo("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:Vr(e.position)})]})]}),uo("div",{className:"mt-3",children:[e?.shortTitle&&J("div",{className:"text-sm font-bold text-gray-700",children:Vr(e.shortTitle)}),e?.description&&J("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Vr(e.description)})]}),uo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&J("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&J("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>J(sg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Or=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return uo(rl,{children:[e&&J(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&J(rl,{children:r?J("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:J(Fa,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>J(al,{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(al,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&J(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as il}from"@heroicons/react/24/solid";import Wr from"html-react-parser";import{Fragment as pg,jsx as L,jsxs as Be}from"react/jsx-runtime";var cg=({className:e})=>L("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L("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"})}),dg=({testimonial:e,className:o})=>L("div",{className:i("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:Be("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&L("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:L(A,{ratio:2/3,className:"w-full",children:L("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Be("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Be("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Be("div",{className:"grow",children:[e?.name&&L("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&L("div",{className:"mt-1 text-xs font-normal text-gray-500",children:Wr(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Be("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&L("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&L("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>L(il,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&L("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:L(A,{ratio:2/3,className:"w-full",children:L("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Be("div",{className:"flex flex-1 flex-col md:flex-none",children:[Be("div",{className:"flex-1",children:[Be("div",{className:"mb-1.5 flex flex-none space-x-3",children:[L(cg,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&L("div",{className:"flex-none text-base font-medium md:text-lg",children:Wr(e.shortTitle)})]}),e?.description&&L("blockquote",{className:"relative flex-1 text-justify text-base",children:Wr(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Be("div",{className:i("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&L("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&L("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>L(il,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),nl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Be(pg,{children:[e&&L(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&Be(he,{className:"w-full",children:[L(ye,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>L(Ne,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:L(dg,{testimonial:a})},r))}),(o??[]).length>1&&L(ra,{className:"mt-8"})]}),t&&L(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as fg}from"@heroicons/react/24/solid";import $r from"html-react-parser";import gg from"lodash";import{Fragment as ll,jsx as _,jsxs as Yt}from"react/jsx-runtime";var ug=({avatar:e="",name:o="",index:t=0})=>{if(gg.isEmpty(e)){let a=_a({name:o})??"",r=Ba(t,za);return _("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",r),children:a})}return _("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:_("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},sl=({testimonial:e,className:o,index:t})=>_("div",{className:i("testimonial-item",o),children:Yt("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:[Yt("div",{className:"flex flex-nowrap items-center space-x-2",children:[_(ug,{avatar:e.avatar,name:e.name,index:t}),Yt("div",{className:"flex-1 pl-1",children:[_("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&_("div",{className:"text-xs font-normal text-pink-500",children:$r(e.position)})]})]}),Yt("div",{className:"mt-3",children:[e?.shortTitle&&_("div",{className:"text-sm font-bold text-gray-700",children:$r(e.shortTitle)}),e?.description&&_("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:$r(e.description)})]}),Yt("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>_(fg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),ml=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>_(ll,{children:l.map((m,d)=>_(Fa,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((c,f)=>_(sl,{testimonial:c,index:f,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${d}-${f}`))},`slider-${d}`))});return Yt(ll,{children:[e&&_(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&_(eo,{children:r?Yt("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[_(Ve,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),_(Ve,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),_(Ve,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):_("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>_(sl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&_(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),_("style",{children:`
273
273
  .mark-vertical-marquee {
274
274
  mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
275
275
  }
276
- `})]})};import{Fragment as bg,jsx as Zt}from"react/jsx-runtime";var ug=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return Zt(Or,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return Zt(ml,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return Zt(nl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return Zt(Or,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},vg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>Zt(bg,{children:ug({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),xg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>Zt(G,{className:i(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:Zt(vg,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import cl from"html-react-parser";import{Fragment as hg,jsx as oe,jsxs as Kt}from"react/jsx-runtime";var Gr=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>oe(at,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>Kt(rt,{value:n.title,className:"last:border-none",children:[oe(it,{className:"md:text-lg",children:n.title}),oe(nt,{className:"prose max-w-none",children:cl(n.description)})]},s))});return Kt("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[oe("div",{className:"relative",children:Kt("div",{className:"md:sticky md:top-14",children:[o&&oe(b,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),t&&oe(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&oe("div",{className:"col-span-2",children:a(e[0])}),t&&oe(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},dl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>oe(at,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((d,c)=>Kt(rt,{value:d.title,className:"last:border-none",children:[oe(it,{className:"md:text-lg",children:d.title}),oe(nt,{className:"prose max-w-none",children:cl(d.description)})]},c))});return Kt(hg,{children:[o&&oe(b,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),e&&Kt(gt,{defaultValue:e[0]?.title,children:[e?.length>1&&Kt(ct,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[oe(dt,{className:"mb-3 text-center",children:oe(We,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",size:"base",children:e.map((m,d)=>oe($e,{value:m.title,children:m.title},m.title+d))})}),oe(pt,{}),oe(ft,{})]}),e.map((m,d)=>oe(Ge,{className:"max-w-3xl mx-auto mt-0",value:m.title,children:l(m)},m.title+d))]}),t&&oe(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as Pg,jsx as vo}from"react/jsx-runtime";var yg=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return vo(Gr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return vo(dl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return vo(Gr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},Ng=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>vo(Pg,{children:yg({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),wg=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>vo(G,{className:t,idSection:r,background:a,children:vo(Ng,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import Cg,{memo as Rg}from"react";import{ArrowDownIcon as Tg}from"@heroicons/react/20/solid";import kg from"html-react-parser";import{Fragment as pl,jsx as X,jsxs as et}from"react/jsx-runtime";var Sg=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return et(pl,{children:[X("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:et("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})]})}),et("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}),et("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&et(pl,{children:[X(ce,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&X("span",{className:"flex-none leading-none",children:"\xB7"})]}),X("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},jr=Rg(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(c,f,u)=>{c?.preventDefault(),c?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(c,f)=>et("div",{children:[X("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",c?.newsList?.length<4?"md:justify-center":""),children:c?.newsList?.map((u,x)=>X("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:X("div",{onClick:k=>m(k,u?.id,u?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",c?.classNameItem),children:X(Sg,{news:u})},u?.id)},x))}),c?.isShowBtn&&X("div",{className:"mt-8 flex w-full items-center justify-center",children:et(Ee,{action:c?.btnUrl||r&&(()=>r?.(f)),newTab:c?.isNewTab,variant:"outline",disabled:c?.isLoading,children:[kg(c.btnName||"Xem th\xEAm"),c?.isLoading?X(oo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!c?.btnUrl&&X(Tg,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},c?.title||f);return et(Cg.Fragment,{children:[e&&X(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?et(gt,{defaultValue:t[0]?.title,children:[et(ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[X(dt,{className:"mb-6 text-center",children:X(We,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((c,f)=>X($e,{value:c.title,children:c.title},c.title+f))})}),X(pt,{}),X(ft,{})]}),t.map((c,f)=>X(Ge,{value:c.title,children:d(c,f)},c.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});import{Fragment as Ag,jsx as Xo}from"react/jsx-runtime";var Dg=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return Xo(jr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return Xo(jr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Mg=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>Xo(Ag,{children:Dg({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ig=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:l})=>Xo(G,{className:i(a),background:r,children:Xo(Mg,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as zg,jsx as Re,jsxs as Ur}from"react/jsx-runtime";var fl=({dataHeading:e,dataCTA:o,dataButtons:t})=>Ur("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:o?.background},children:[e&&Re(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&Re(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Lg=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Ur("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:[Ur("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&Re(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&Re(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Re("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&Re(A,{ratio:4/3,children:Re("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Eg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return Re(fl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return Re(Lg,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return Re(fl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},Hg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>Re(zg,{children:Eg({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),Fg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>Re(G,{className:t,idSection:a,background:o,children:Re(Hg,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import gl from"react";import Qr from"html-react-parser";import{jsx as Lt,jsxs as ul}from"react/jsx-runtime";var _g=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return ul("div",{className:" text-center",children:[Lt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Qr(t??"")}),Lt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Qr(o??"")}),a&&Lt("div",{className:"mt-2 text-sm text-gray-500",children:Qr(a??"")})]})},Va=({dataMetrics:e,dataButtons:o,dataHeading:t})=>ul(gl.Fragment,{children:[t&&Lt(b,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&Lt("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,r)=>Lt(gl.Fragment,{children:Lt(_g,{metric:a})},r))}),o&&Lt(y,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import vl from"react";import qr from"html-react-parser";import{jsx as Et,jsxs as xl}from"react/jsx-runtime";var Bg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return xl("div",{className:" text-center md:text-left",children:[Et("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:qr(t??"")}),Et("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:qr(o??"")}),a&&Et("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:qr(a??"")})]})},Xr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>xl(vl.Fragment,{children:[t&&Et(b,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&Et("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,r)=>Et(vl.Fragment,{children:Et(Bg,{metric:a})},r))}),o&&Et(y,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as $g,jsx as xo}from"react/jsx-runtime";var Vg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return xo(Va,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return xo(Xr,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return xo(Va,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Og=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>xo($g,{children:Vg({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Wg=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:r,template:n})=>xo(G,{className:i(r),background:a,children:xo(Og,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});import{forwardRef as Gg}from"react";import{jsx as bl,jsxs as Ug}from"react/jsx-runtime";var jg=Gg(({className:e,title:o,children:t},a)=>Ug("div",{className:e,ref:a,children:[bl("div",{className:"font-semibold text-gray-800",children:o}),bl("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 Zg}from"react";import{Fragment as Yg,jsx as Jt,jsxs as Xg}from"react/jsx-runtime";var Qg=()=>Jt("div",{className:"p-3 border rounded-lg",children:Xg("div",{className:"flex items-center gap-3",children:[Jt(Ta,{className:"rounded-md h-9 w-9 "}),Jt("div",{className:"flex-1",children:Jt(Ta,{className:"w-48 h-5 "})}),Jt("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function qg(){return Jt(Yg,{children:Array.from({length:4}).map((e,o)=>Jt(Qg,{},o))})}var hl=qg;import{Fragment as eu,jsx as Nt,jsxs as Yr}from"react/jsx-runtime";var Kg=({paymentMethod:e})=>Nt(Ra,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:Yr("div",{className:"flex items-center space-x-3",children:[Nt("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),Yr("div",{className:"grid grid-cols-1 gap-1",children:[Nt("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Nt("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Nt("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Jg=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=Zg(s=>a?.(s),[a]);return Yr(eu,{children:[e&&Nt("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Nt(hl,{}):Nt(Ca,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Nt(Kg,{paymentMethod:s},s.id))})]})};import{forwardRef as yl}from"react";import{jsx as wl}from"react/jsx-runtime";var tu=yl(({children:e,className:o},t)=>wl("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),Nl=yl(({children:e,className:o,...t},a)=>wl(tu,{ref:a,className:o,...t,children:e}));Nl.displayName="Payment";import{forwardRef as ou}from"react";import{jsx as Pl,jsxs as ru}from"react/jsx-runtime";var au=ou(({className:e,children:o},t)=>ru("div",{className:i("",e),ref:t,children:[Pl("hr",{className:"mb-5 h-px w-full bg-gray-500"}),Pl("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as iu}from"react";import{jsx as su}from"react/jsx-runtime";var nu=iu(({className:e,children:o},t)=>su("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as fu}from"react";import{CheckBadgeIcon as lu,XCircleIcon as mu}from"@heroicons/react/20/solid";import{jsx as ne,jsxs as bo}from"react/jsx-runtime";var cu=({iconPaymentResult:e,message:o="",title:t=""})=>bo("div",{className:"grid grid-cols-1 gap-4",children:[bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&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(Wo,{message:o,type:"success",icon:ne(lu,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),du=({iconPaymentResult:e,message:o="",title:t=""})=>bo("div",{className:"grid grid-cols-1 gap-4",children:[bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&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(Wo,{message:o,type:"error",icon:ne(mu,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),pu=({iconPaymentResult:e,message:o="",title:t=""})=>bo("div",{className:"grid grid-cols-1 gap-4",children:[bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&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(Wo,{message:o,type:"neutral"})]}),Cl=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ne(cu,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return ne(du,{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(pu,{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 uu,jsxs as vu}from"react/jsx-runtime";var gu=fu(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>vu("div",{ref:s,className:i("rounded-lg p-4",e),children:[uu(Cl,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as bu,useEffect as hu}from"react";import{jsx as Zr,jsxs as xu}from"react/jsx-runtime";var Oa=({content:e})=>xu("picture",{children:[Zr("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),Zr("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),Zr(Ee,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as Yo,jsxs as wu}from"react/jsx-runtime";var yu=({template:e,content:o})=>{switch(e){case 1:return Yo(Oa,{content:o});default:return Yo(Oa,{content:o})}},Nu=bu(({template:e,content:o},t)=>(hu(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),wu("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[Yo("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:Yo("div",{className:"content",children:yu({template:e,content:o})})}),Yo("style",{children:`
276
+ `})]})};import{Fragment as hg,jsx as Zt}from"react/jsx-runtime";var vg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return Zt(Or,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return Zt(ml,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return Zt(nl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return Zt(Or,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},xg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>Zt(hg,{children:vg({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),bg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>Zt(G,{className:i(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:Zt(xg,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import cl from"html-react-parser";import{Fragment as yg,jsx as oe,jsxs as Kt}from"react/jsx-runtime";var Gr=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>oe(at,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>Kt(rt,{value:n.title,className:"last:border-none",children:[oe(it,{className:"md:text-lg",children:n.title}),oe(nt,{className:"prose max-w-none",children:cl(n.description)})]},s))});return Kt("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[oe("div",{className:"relative",children:Kt("div",{className:"md:sticky md:top-14",children:[o&&oe(b,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),t&&oe(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&oe("div",{className:"col-span-2",children:a(e[0])}),t&&oe(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},dl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>oe(at,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((d,c)=>Kt(rt,{value:d.title,className:"last:border-none",children:[oe(it,{className:"md:text-lg",children:d.title}),oe(nt,{className:"prose max-w-none",children:cl(d.description)})]},c))});return Kt(yg,{children:[o&&oe(b,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),e&&Kt(gt,{defaultValue:e[0]?.title,children:[e?.length>1&&Kt(ct,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[oe(dt,{className:"mb-3 text-center",children:oe($e,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",size:"base",children:e.map((m,d)=>oe(Ge,{value:m.title,children:m.title},m.title+d))})}),oe(pt,{}),oe(ft,{})]}),e.map((m,d)=>oe(je,{className:"max-w-3xl mx-auto mt-0",value:m.title,children:l(m)},m.title+d))]}),t&&oe(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as Cg,jsx as vo}from"react/jsx-runtime";var Ng=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return vo(Gr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return vo(dl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return vo(Gr,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},wg=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>vo(Cg,{children:Ng({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Pg=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>vo(G,{className:t,idSection:r,background:a,children:vo(wg,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import Rg,{memo as Tg}from"react";import{ArrowDownIcon as kg}from"@heroicons/react/20/solid";import Sg from"html-react-parser";import{Fragment as pl,jsx as X,jsxs as et}from"react/jsx-runtime";var Dg=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return et(pl,{children:[X("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:et("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})]})}),et("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}),et("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&et(pl,{children:[X(ce,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&X("span",{className:"flex-none leading-none",children:"\xB7"})]}),X("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},jr=Tg(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(c,f,u)=>{c?.preventDefault(),c?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(c,f)=>et("div",{children:[X("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",c?.newsList?.length<4?"md:justify-center":""),children:c?.newsList?.map((u,x)=>X("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:X("div",{onClick:k=>m(k,u?.id,u?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",c?.classNameItem),children:X(Dg,{news:u})},u?.id)},x))}),c?.isShowBtn&&X("div",{className:"mt-8 flex w-full items-center justify-center",children:et(Ee,{action:c?.btnUrl||r&&(()=>r?.(f)),newTab:c?.isNewTab,variant:"outline",disabled:c?.isLoading,children:[Sg(c.btnName||"Xem th\xEAm"),c?.isLoading?X(oo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!c?.btnUrl&&X(kg,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},c?.title||f);return et(Rg.Fragment,{children:[e&&X(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?et(gt,{defaultValue:t[0]?.title,children:[et(ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[X(dt,{className:"mb-6 text-center",children:X($e,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((c,f)=>X(Ge,{value:c.title,children:c.title},c.title+f))})}),X(pt,{}),X(ft,{})]}),t.map((c,f)=>X(je,{value:c.title,children:d(c,f)},c.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});import{Fragment as Lg,jsx as Xo}from"react/jsx-runtime";var Mg=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return Xo(jr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return Xo(jr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Ig=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>Xo(Lg,{children:Mg({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ag=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:l})=>Xo(G,{className:i(a),background:r,children:Xo(Ig,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as _g,jsx as Re,jsxs as Ur}from"react/jsx-runtime";var fl=({dataHeading:e,dataCTA:o,dataButtons:t})=>Ur("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:o?.background},children:[e&&Re(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&Re(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Eg=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Ur("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:[Ur("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&Re(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&Re(y,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Re("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&Re(A,{ratio:4/3,children:Re("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Hg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return Re(fl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return Re(Eg,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return Re(fl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},Fg=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>Re(_g,{children:Hg({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),zg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>Re(G,{className:t,idSection:a,background:o,children:Re(Fg,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import gl from"react";import Qr from"html-react-parser";import{jsx as Lt,jsxs as ul}from"react/jsx-runtime";var Bg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return ul("div",{className:" text-center",children:[Lt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Qr(t??"")}),Lt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Qr(o??"")}),a&&Lt("div",{className:"mt-2 text-sm text-gray-500",children:Qr(a??"")})]})},Va=({dataMetrics:e,dataButtons:o,dataHeading:t})=>ul(gl.Fragment,{children:[t&&Lt(b,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&Lt("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,r)=>Lt(gl.Fragment,{children:Lt(Bg,{metric:a})},r))}),o&&Lt(y,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import vl from"react";import qr from"html-react-parser";import{jsx as Et,jsxs as xl}from"react/jsx-runtime";var Vg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return xl("div",{className:" text-center md:text-left",children:[Et("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:qr(t??"")}),Et("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:qr(o??"")}),a&&Et("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:qr(a??"")})]})},Xr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>xl(vl.Fragment,{children:[t&&Et(b,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&Et("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,r)=>Et(vl.Fragment,{children:Et(Vg,{metric:a})},r))}),o&&Et(y,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as Gg,jsx as xo}from"react/jsx-runtime";var Og=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return xo(Va,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return xo(Xr,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return xo(Va,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Wg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>xo(Gg,{children:Og({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),$g=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:r,template:n})=>xo(G,{className:i(r),background:a,children:xo(Wg,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});import{forwardRef as jg}from"react";import{jsx as bl,jsxs as Qg}from"react/jsx-runtime";var Ug=jg(({className:e,title:o,children:t},a)=>Qg("div",{className:e,ref:a,children:[bl("div",{className:"font-semibold text-gray-800",children:o}),bl("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 Kg}from"react";import{Fragment as Zg,jsx as Jt,jsxs as Yg}from"react/jsx-runtime";var qg=()=>Jt("div",{className:"p-3 border rounded-lg",children:Yg("div",{className:"flex items-center gap-3",children:[Jt(Ta,{className:"rounded-md h-9 w-9 "}),Jt("div",{className:"flex-1",children:Jt(Ta,{className:"w-48 h-5 "})}),Jt("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Xg(){return Jt(Zg,{children:Array.from({length:4}).map((e,o)=>Jt(qg,{},o))})}var hl=Xg;import{Fragment as tu,jsx as Nt,jsxs as Yr}from"react/jsx-runtime";var Jg=({paymentMethod:e})=>Nt(Ra,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:Yr("div",{className:"flex items-center space-x-3",children:[Nt("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),Yr("div",{className:"grid grid-cols-1 gap-1",children:[Nt("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Nt("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Nt("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),eu=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=Kg(s=>a?.(s),[a]);return Yr(tu,{children:[e&&Nt("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Nt(hl,{}):Nt(Ca,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Nt(Jg,{paymentMethod:s},s.id))})]})};import{forwardRef as yl}from"react";import{jsx as wl}from"react/jsx-runtime";var ou=yl(({children:e,className:o},t)=>wl("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),Nl=yl(({children:e,className:o,...t},a)=>wl(ou,{ref:a,className:o,...t,children:e}));Nl.displayName="Payment";import{forwardRef as au}from"react";import{jsx as Pl,jsxs as iu}from"react/jsx-runtime";var ru=au(({className:e,children:o},t)=>iu("div",{className:i("",e),ref:t,children:[Pl("hr",{className:"mb-5 h-px w-full bg-gray-500"}),Pl("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as nu}from"react";import{jsx as lu}from"react/jsx-runtime";var su=nu(({className:e,children:o},t)=>lu("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as gu}from"react";import{CheckBadgeIcon as mu,XCircleIcon as cu}from"@heroicons/react/20/solid";import{jsx as ne,jsxs as bo}from"react/jsx-runtime";var du=({iconPaymentResult:e,message:o="",title:t=""})=>bo("div",{className:"grid grid-cols-1 gap-4",children:[bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&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(Wo,{message:o,type:"success",icon:ne(mu,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),pu=({iconPaymentResult:e,message:o="",title:t=""})=>bo("div",{className:"grid grid-cols-1 gap-4",children:[bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&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(Wo,{message:o,type:"error",icon:ne(cu,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),fu=({iconPaymentResult:e,message:o="",title:t=""})=>bo("div",{className:"grid grid-cols-1 gap-4",children:[bo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&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(Wo,{message:o,type:"neutral"})]}),Cl=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ne(du,{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(pu,{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(fu,{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 vu,jsxs as xu}from"react/jsx-runtime";var uu=gu(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>xu("div",{ref:s,className:i("rounded-lg p-4",e),children:[vu(Cl,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as hu,useEffect as yu}from"react";import{jsx as Zr,jsxs as bu}from"react/jsx-runtime";var Oa=({content:e})=>bu("picture",{children:[Zr("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),Zr("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),Zr(Ee,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as Yo,jsxs as Pu}from"react/jsx-runtime";var Nu=({template:e,content:o})=>{switch(e){case 1:return Yo(Oa,{content:o});default:return Yo(Oa,{content:o})}},wu=hu(({template:e,content:o},t)=>(yu(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),Pu("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[Yo("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:Yo("div",{className:"content",children:Nu({template:e,content:o})})}),Yo("style",{children:`
277
277
  .container-topbar .content {
278
278
  width: 100%;
279
279
  aspect-ratio: 1088/50;
@@ -291,7 +291,7 @@ import*as No from"react";import{ChevronDownIcon as jl}from"@heroicons/react/20/s
291
291
  aspect-ratio: 720/88;
292
292
  }
293
293
  }
294
- `})]})));import Ru from"color";import Tu from"tailwindcss/plugin.js";var Rl={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 Tl={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var kl={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Sl={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Dl={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Ml={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Il={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Al={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Ll={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var El={white:"#ffffff",black:"#000000",blue:Tl,green:kl,pink:Sl,purple:Dl,red:Ml,yellow:Il,gray:Ll,orange:Al};var Kr={...El};var Hl={"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 tt="250ms",Fl={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":tt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":tt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":tt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":tt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":tt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":tt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":tt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":tt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":tt},".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":tt}};var zl={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"}};var _l={".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 Bl={...zl,...Fl,..._l};import{flatten as Pu}from"flat";function Cu(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 Vl=e=>Cu(Pu(e,{safe:!0,delimiter:"-"}));var ku=e=>{let o={utilities:{},colors:{}},t=Vl(Kr),a=Hl,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,d]=Ru(s).rgb().array(),c=`--${e}-${n}`;o.utilities[r][c]=`${l} ${m} ${d}`,o.colors[n]=`rgb(var(${c}) / <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,d])=>{let c=`${l}-${m}`;o.utilities[r][c]=d});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][l]=m}}),o},Su=()=>{let e="mobase",o=ku(e);return Tu(({addBase:t,addUtilities:a,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Bl})},{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:{...Kr,...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)`},...Rl}}})};import{Fragment as Mu,jsx as S,jsxs as Iu}from"react/jsx-runtime";var Du=Iu(Mu,{children:[S("meta",{name:"abstract",content:"V\xED \u0111i\u1EC7n t\u1EED MoMo - Si\xEAu \u1EE9ng d\u1EE5ng thanh to\xE1n s\u1ED1 1 Vi\u1EC7t Nam"}),S("meta",{name:"distribution",content:"Global"}),S("meta",{name:"author",content:"V\xED MoMo"}),S("meta",{property:"fb:app_id",content:"320653355376196"}),S("meta",{property:"fb:pages",content:"138010322921640"}),S("link",{rel:"shortcut icon",href:"/favicon.ico"}),S("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),S("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),S("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),S("meta",{name:"language",content:"vietnamese"}),S("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),S("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),S("meta",{name:"RATING",content:"GENERAL"}),S("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),S("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),S("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),S("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),S("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),S("link",{rel:"dns-prefetch",href:"//facebook.com"}),S("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),S("link",{rel:"dns-prefetch",href:"//www.google.com"}),S("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),S("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),S("link",{rel:"preconnect",href:"//connect.facebook.net"}),S("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),S("link",{rel:"preconnect",href:"//www.google-analytics.com"}),S("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),S("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),S("link",{rel:"preconnect",href:"//www.google.com"}),S("link",{rel:"preconnect",href:"//www.google.com.vn"}),S("link",{rel:"preconnect",href:"//www.googleadservices.com"}),S("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
294
+ `})]})));import Tu from"color";import ku from"tailwindcss/plugin.js";var Rl={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 Tl={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var kl={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Sl={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Dl={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Ml={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Il={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Al={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Ll={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var El={white:"#ffffff",black:"#000000",blue:Tl,green:kl,pink:Sl,purple:Dl,red:Ml,yellow:Il,gray:Ll,orange:Al};var Kr={...El};var Hl={"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 tt="250ms",Fl={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":tt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":tt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":tt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":tt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":tt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":tt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":tt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":tt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":tt},".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":tt}};var zl={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"}};var _l={".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 Bl={...zl,...Fl,..._l};import{flatten as Cu}from"flat";function Ru(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 Vl=e=>Ru(Cu(e,{safe:!0,delimiter:"-"}));var Su=e=>{let o={utilities:{},colors:{}},t=Vl(Kr),a=Hl,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,d]=Tu(s).rgb().array(),c=`--${e}-${n}`;o.utilities[r][c]=`${l} ${m} ${d}`,o.colors[n]=`rgb(var(${c}) / <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,d])=>{let c=`${l}-${m}`;o.utilities[r][c]=d});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][l]=m}}),o},Du=()=>{let e="mobase",o=Su(e);return ku(({addBase:t,addUtilities:a,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Bl})},{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:{...Kr,...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)`},...Rl}}})};import{Fragment as Iu,jsx as S,jsxs as Au}from"react/jsx-runtime";var Mu=Au(Iu,{children:[S("meta",{name:"abstract",content:"V\xED \u0111i\u1EC7n t\u1EED MoMo - Si\xEAu \u1EE9ng d\u1EE5ng thanh to\xE1n s\u1ED1 1 Vi\u1EC7t Nam"}),S("meta",{name:"distribution",content:"Global"}),S("meta",{name:"author",content:"V\xED MoMo"}),S("meta",{property:"fb:app_id",content:"320653355376196"}),S("meta",{property:"fb:pages",content:"138010322921640"}),S("link",{rel:"shortcut icon",href:"/favicon.ico"}),S("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),S("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),S("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),S("meta",{name:"language",content:"vietnamese"}),S("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),S("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),S("meta",{name:"RATING",content:"GENERAL"}),S("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),S("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),S("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),S("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),S("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),S("link",{rel:"dns-prefetch",href:"//facebook.com"}),S("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),S("link",{rel:"dns-prefetch",href:"//www.google.com"}),S("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),S("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),S("link",{rel:"preconnect",href:"//connect.facebook.net"}),S("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),S("link",{rel:"preconnect",href:"//www.google-analytics.com"}),S("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),S("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),S("link",{rel:"preconnect",href:"//www.google.com"}),S("link",{rel:"preconnect",href:"//www.google.com.vn"}),S("link",{rel:"preconnect",href:"//www.googleadservices.com"}),S("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
295
295
  "@context": "https://schema.org/",
296
296
  "@type": "WebSite",
297
297
  "@id":"https://www.momo.vn/#website",
@@ -336,5 +336,5 @@ import*as No from"react";import{ChevronDownIcon as jl}from"@heroicons/react/20/s
336
336
  "https://www.linkedin.com/company/momo-mservice/",
337
337
  "https://github.com/momo-wallet"
338
338
  ]
339
- }`}})]});export{at as Accordion,nt as AccordionContent,rt as AccordionItem,it as AccordionTrigger,Ee as ActionButton,Tc as AlertDialog,Wi as AlertDialogAction,$i as AlertDialogCancel,zi as AlertDialogContent,Oi as AlertDialogDescription,Bi as AlertDialogFooter,_i as AlertDialogHeader,mr as AlertDialogOverlay,Fi as AlertDialogPortal,Vi as AlertDialogTitle,kc as AlertDialogTrigger,A as AspectRatio,Mp as Badge,Zm as BlogSection,si as Breadcrumb,fi as BreadcrumbEllipsis,mi as BreadcrumbItem,ci as BreadcrumbLink,li as BreadcrumbList,di as BreadcrumbPage,pi as BreadcrumbSeparator,Se as Button,Fg as CTASection,la as Calendar,Wo as Callout,Mn as Card,En as CardContent,Ln as CardDescription,Hn as CardFooter,In as CardHeader,An as CardTitle,he as Carousel,ye as CarouselContent,ra as CarouselDots,Ne as CarouselItem,io as CarouselNext,ro as CarouselPrevious,na as Checkbox,Ca as ChoiceboxGroup,Ra as ChoiceboxGroupItem,Jn as ChoiceboxMultiItem,cp as Combobox,mp as ComboboxContent,lp as ComboboxTrigger,Tr as Command,ip as CommandDialog,_n as CommandEmpty,Bn as CommandGroup,Fn as CommandInput,On as CommandItem,zn as CommandList,Vn as CommandSeparator,Wn as CommandShortcut,Jp as Comment,vc as DatePicker,Rc as DateSelect,lt as Dialog,wt as DialogBody,Ua as DialogClose,Oe as DialogContent,ii as DialogDescription,ri as DialogFooter,Ko as DialogHeader,Qa as DialogOverlay,ai as DialogPortal,zt as DialogQr,Jo as DialogTitle,ja as DialogTrigger,wf as DropdownMenu,Is as DropdownMenuCheckboxItem,Ds as DropdownMenuContent,Cf as DropdownMenuGroup,Ms as DropdownMenuItem,Ls as DropdownMenuLabel,Rf as DropdownMenuPortal,kf as DropdownMenuRadioGroup,As as DropdownMenuRadioItem,Es as DropdownMenuSeparator,Hs as DropdownMenuShortcut,Tf as DropdownMenuSub,Ss as DropdownMenuSubContent,ks as DropdownMenuSubTrigger,Pf as DropdownMenuTrigger,wg as FAQSection,Jf as FeatureSection,op as Footer,bf as Form,Cs as FormControl,Rs as FormDescription,hf as FormField,ws as FormItem,Ps as FormLabel,Ts as FormMessage,Wc as GuideSection,Tn as HeaderNavigation,Za as Heading,Ja as HeadingGroup,Ka as HeadingSub,Ya as HeadingTagline,$f as HeroSection,dt as HorizontalContent,ft as HorizontalNext,pt as HorizontalPrevious,ct as HorizontalScroll,If as HowItWorksSection,ie as IconButton,Mr as LightBoxGalleryContent,Dr as LightboxGallery,Rp as LightboxThumbnail,Wg as MetricsSection,va as NavigationMenu,Na as NavigationMenuContent,ba as NavigationMenuItem,_o as NavigationMenuLink,xa as NavigationMenuList,ya as NavigationMenuTrigger,Ig as NewsSection,Ki as Pagination,Nl as Payment,jg as PaymentInvoice,Jg as PaymentMethods,gu as PaymentResult,nu as PaymentResultContent,au as PaymentResultFooter,To as Popover,so as PopoverContent,ko as PopoverTrigger,cf as ProgressSteps,mf as ProgressStepsItem,lf as ProgressStepsItemTrigger,is as Progressbar,vn as RadioGroup,xn as RadioGroupItem,Ir as ReadMoreLite,Np as SearchBar,Mo as Select,mo as SelectContent,Ao as SelectGroup,Ct as SelectItem,Mi as SelectLabel,sr as SelectScrollDownButton,nr as SelectScrollUpButton,Ii as SelectSeparator,lo as SelectTrigger,Io as SelectValue,Du as SiteMeta,Ta as Skeleton,ls as Slider,qf as SocialProofSection,Hp as Spinner,mn as Stepper,fn as Switch,gt as Tabs,Ge as TabsContent,We as TabsList,$e as TabsTrigger,xg as TestimonialSection,Yc as TextArea,ce as TextButton,bd as TextInput,rn as ToastAction,sd as Toaster,md as Tooltip,nn as TooltipArrow,sn as TooltipContent,ld as TooltipProvider,cd as TooltipTrigger,Nu as Topbar,ts as badgeVariants,Ve as buttonVariants,Su as mobaseTW,ha as navigationMenuTriggerStyle,bi as textButtonVariants,tn as toast,jo as useFormField,ur as useToast};
339
+ }`}})]});export{at as Accordion,nt as AccordionContent,rt as AccordionItem,it as AccordionTrigger,Ee as ActionButton,Tc as AlertDialog,Wi as AlertDialogAction,$i as AlertDialogCancel,zi as AlertDialogContent,Oi as AlertDialogDescription,Bi as AlertDialogFooter,_i as AlertDialogHeader,mr as AlertDialogOverlay,Fi as AlertDialogPortal,Vi as AlertDialogTitle,kc as AlertDialogTrigger,A as AspectRatio,Mp as Badge,Zm as BlogSection,si as Breadcrumb,fi as BreadcrumbEllipsis,mi as BreadcrumbItem,ci as BreadcrumbLink,li as BreadcrumbList,di as BreadcrumbPage,pi as BreadcrumbSeparator,Se as Button,zg as CTASection,la as Calendar,Wo as Callout,Mn as Card,En as CardContent,Ln as CardDescription,Hn as CardFooter,In as CardHeader,An as CardTitle,he as Carousel,ye as CarouselContent,ra as CarouselDots,Ne as CarouselItem,io as CarouselNext,ro as CarouselPrevious,na as Checkbox,Ca as ChoiceboxGroup,Ra as ChoiceboxGroupItem,Jn as ChoiceboxMultiItem,cp as Combobox,mp as ComboboxContent,lp as ComboboxTrigger,Tr as Command,ip as CommandDialog,_n as CommandEmpty,Bn as CommandGroup,Fn as CommandInput,On as CommandItem,zn as CommandList,Vn as CommandSeparator,Wn as CommandShortcut,Jp as Comment,vc as DatePicker,Rc as DateSelect,lt as Dialog,wt as DialogBody,Ua as DialogClose,We as DialogContent,ii as DialogDescription,ri as DialogFooter,Ko as DialogHeader,Qa as DialogOverlay,ai as DialogPortal,zt as DialogQr,Jo as DialogTitle,ja as DialogTrigger,wf as DropdownMenu,Is as DropdownMenuCheckboxItem,Ds as DropdownMenuContent,Cf as DropdownMenuGroup,Ms as DropdownMenuItem,Ls as DropdownMenuLabel,Rf as DropdownMenuPortal,kf as DropdownMenuRadioGroup,As as DropdownMenuRadioItem,Es as DropdownMenuSeparator,Hs as DropdownMenuShortcut,Tf as DropdownMenuSub,Ss as DropdownMenuSubContent,ks as DropdownMenuSubTrigger,Pf as DropdownMenuTrigger,Pg as FAQSection,Jf as FeatureSection,op as Footer,bf as Form,Cs as FormControl,Rs as FormDescription,hf as FormField,ws as FormItem,Ps as FormLabel,Ts as FormMessage,Wc as GuideSection,Tn as HeaderNavigation,Za as Heading,Ja as HeadingGroup,Ka as HeadingSub,Ya as HeadingTagline,$f as HeroSection,dt as HorizontalContent,ft as HorizontalNext,pt as HorizontalPrevious,ct as HorizontalScroll,If as HowItWorksSection,ie as IconButton,Mr as LightBoxGalleryContent,Dr as LightboxGallery,Rp as LightboxThumbnail,$g as MetricsSection,va as NavigationMenu,Na as NavigationMenuContent,ba as NavigationMenuItem,_o as NavigationMenuLink,xa as NavigationMenuList,ya as NavigationMenuTrigger,Ag as NewsSection,Ki as Pagination,Nl as Payment,Ug as PaymentInvoice,eu as PaymentMethods,uu as PaymentResult,su as PaymentResultContent,ru as PaymentResultFooter,To as Popover,so as PopoverContent,ko as PopoverTrigger,cf as ProgressSteps,mf as ProgressStepsItem,lf as ProgressStepsItemTrigger,is as Progressbar,vn as RadioGroup,xn as RadioGroupItem,Ir as ReadMoreLite,Np as SearchBar,Mo as Select,mo as SelectContent,Ao as SelectGroup,Ct as SelectItem,Mi as SelectLabel,sr as SelectScrollDownButton,nr as SelectScrollUpButton,Ii as SelectSeparator,lo as SelectTrigger,Io as SelectValue,Mu as SiteMeta,Ta as Skeleton,ls as Slider,qf as SocialProofSection,Hp as Spinner,mn as Stepper,fn as Switch,gt as Tabs,je as TabsContent,$e as TabsList,Ge as TabsTrigger,bg as TestimonialSection,Yc as TextArea,ce as TextButton,bd as TextInput,rn as ToastAction,sd as Toaster,md as Tooltip,nn as TooltipArrow,sn as TooltipContent,ld as TooltipProvider,cd as TooltipTrigger,wu as Topbar,ts as badgeVariants,Oe as buttonVariants,Du as mobaseTW,ha as navigationMenuTriggerStyle,bi as textButtonVariants,tn as toast,jo as useFormField,ur as useToast};
340
340
  //# sourceMappingURL=index.js.map