@momo-webplatform/mobase 0.2.50 → 0.2.52

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 It from"react";import*as ne from"@radix-ui/react-accordion";import{ChevronDownIcon as os}from"@heroicons/react/20/solid";import*as es from"react";import{twMerge as ts}from"tailwind-merge";var Ie={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 Ha={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 Mt=[{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"}],zo=[{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 U={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};function r(...e){return ts(e)}import{jsx as wt,jsxs as as}from"react/jsx-runtime";var tt=It.forwardRef(({className:e,...o},t)=>wt(ne.Root,{ref:t,...o}));tt.displayName="AccordionRoot";var ot=It.forwardRef(({className:e,...o},t)=>wt(ne.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));ot.displayName="AccordionItem";var at=It.forwardRef(({className:e,children:o,...t},a)=>wt(ne.Header,{className:"flex",children:as(ne.Trigger,{ref:a,className:r("flex flex-1 items-center text-left justify-between py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 text-gray-900",e),...t,children:[o,wt(os,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));at.displayName=ne.Trigger.displayName;var it=It.forwardRef(({className:e,children:o,...t},a)=>wt(ne.Content,{ref:a,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...t,children:wt("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));it.displayName=ne.Content.displayName;import*as _a from"react";import{Slot as ns}from"@radix-ui/react-slot";import{cva as ss}from"class-variance-authority";import{jsx as se,jsxs as rs}from"react/jsx-runtime";var is=({className:e})=>rs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"})]}),Nt=is;import{Fragment as ms,jsx as Bo,jsxs as ls}from"react/jsx-runtime";var we=ss("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"}}),le=_a.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let d=a?ns:"button",p=r(we({variant:o,size:t,className:e}),{"cursor-wait":i});return Bo(ms,{children:a?Bo(d,{className:p,type:"button",disabled:n,ref:l,...s,children:s.children}):ls(d,{className:p,type:"button",disabled:n,ref:l,...s,children:[i&&Bo(Nt,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});le.displayName="Button";import*as At from"react";import*as E from"@radix-ui/react-dialog";import{XMarkIcon as cs}from"@heroicons/react/16/solid";import{jsx as Ae,jsxs as Vo}from"react/jsx-runtime";var rt=E.Root,Oo=E.Trigger,Fa=E.Portal,ds=E.Close,Wo=At.forwardRef(({className:e,...o},t)=>Ae(E.Overlay,{ref:t,className:r("fixed inset-0 z-50 bg-black/60 !duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o}));Wo.displayName=E.Overlay.displayName;var Oe=At.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...d},p)=>{let m={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(-32px_+_100vh)] 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"},g={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},R=[m.base,m[i],g[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 Vo(Fa,{children:[Ae(Wo,{}),Vo(E.Content,{ref:p,className:r(...R),...d,children:[l,!t&&Vo(E.Close,{className:r("absolute md:top-4 top-2 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 text-gray-900 w-8 h-8 flex justify-center items-center rounded-full before:opacity-0 hover:before:opacity-100 before:transition-opacity before:z-[-1] before:content-[''] before:absolute before:inset-0 before:rounded-full before:select-none before:left-0 before:top-0 before:bg-gray-200 left-3 md:left-auto md:right-4",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[Ae(cs,{className:"h-5 w-5 text-gray-700"}),Ae("span",{className:"sr-only",children:"Close"})]})]})]})});Oe.displayName=E.Content.displayName;var za=({className:e,...o})=>Ae("div",{className:r("dialog-header py-2 md:py-4 h-12 md:h-16 px-10 md:px-12 items-center justify-center flex border-b border-gray-200 w-full shrink-0",e),...o});za.displayName="DialogHeader";var ro=({className:e,isCondensed:o=!1,...t})=>Ae("div",{className:r("dialog-body p-6 flex-1 overflow-y-auto",o&&"p-5",e),...t});ro.displayName="DialogBody";var Ba=({className:e,isDivider:o=!0,...t})=>Ae("div",{className:r("dialog-footer flex sm:flex-row justify-center [&>*]:basis-1/2 [&>*]:sm:basis-auto sm:justify-end space-x-2 px-6 pb-4 shrink-0",o&&"border-gray-200 border-t py-4",e),...t});Ba.displayName="DialogFooter";var Va=At.forwardRef(({className:e,...o},t)=>Ae(E.Title,{ref:t,className:r("text-base font-semibold line-clamp-1 max-w-full",e),...o}));Va.displayName=E.Title.displayName;var Oa=At.forwardRef(({className:e,...o},t)=>Ae(E.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));Oa.displayName=E.Description.displayName;import{QRCodeSVG as ps}from"qrcode.react";import{Fragment as $o,jsx as h,jsxs as Q}from"react/jsx-runtime";var fs=({img:e="",children:o,isQrForAll:t})=>Q($o,{children:[h("div",{className:"qrcode__scan__container",children:Q("div",{className:"qrcode__scan",children:[h("div",{className:"qrcode__gradient",children:h("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),h("div",{className:"qrcode__border",children:h("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),h("div",{className:"qrcode__image p-4",children:e?h("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),h("div",{className:"mt-4 text-sm text-white",children:t?Q($o,{children:[h("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),h("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"})]}):Q($o,{children:[h("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:h("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",h("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),h("style",{children:`
1
+ import*as It from"react";import*as ne from"@radix-ui/react-accordion";import{ChevronDownIcon as os}from"@heroicons/react/20/solid";import*as es from"react";import{twMerge as ts}from"tailwind-merge";var Ie={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 Ha={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 Mt=[{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"}],zo=[{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 U={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};function r(...e){return ts(e)}import{jsx as wt,jsxs as as}from"react/jsx-runtime";var tt=It.forwardRef(({className:e,...o},t)=>wt(ne.Root,{ref:t,...o}));tt.displayName="AccordionRoot";var ot=It.forwardRef(({className:e,...o},t)=>wt(ne.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));ot.displayName="AccordionItem";var at=It.forwardRef(({className:e,children:o,...t},a)=>wt(ne.Header,{className:"flex",children:as(ne.Trigger,{ref:a,className:r("flex flex-1 items-center text-left justify-between py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 text-gray-900",e),...t,children:[o,wt(os,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));at.displayName=ne.Trigger.displayName;var it=It.forwardRef(({className:e,children:o,...t},a)=>wt(ne.Content,{ref:a,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...t,children:wt("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));it.displayName=ne.Content.displayName;import*as _a from"react";import{Slot as ns}from"@radix-ui/react-slot";import{cva as ss}from"class-variance-authority";import{jsx as se,jsxs as rs}from"react/jsx-runtime";var is=({className:e})=>rs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"}),se("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"})]}),Nt=is;import{Fragment as ms,jsx as Bo,jsxs as ls}from"react/jsx-runtime";var we=ss("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"}}),le=_a.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let d=a?ns:"button",p=r(we({variant:o,size:t,className:e}),{"cursor-wait":i});return Bo(ms,{children:a?Bo(d,{className:p,type:"button",disabled:n,ref:l,...s,children:s.children}):ls(d,{className:p,type:"button",disabled:n,ref:l,...s,children:[i&&Bo(Nt,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});le.displayName="Button";import*as At from"react";import*as E from"@radix-ui/react-dialog";import{XMarkIcon as cs}from"@heroicons/react/16/solid";import{jsx as Ae,jsxs as Vo}from"react/jsx-runtime";var rt=E.Root,Oo=E.Trigger,Fa=E.Portal,ds=E.Close,Wo=At.forwardRef(({className:e,...o},t)=>Ae(E.Overlay,{ref:t,className:r("fixed inset-0 z-50 bg-black/60 !duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o}));Wo.displayName=E.Overlay.displayName;var Oe=At.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...d},p)=>{let m={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(-32px_+_100vh)] 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"},g={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},C=[m.base,m[i],g[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 Vo(Fa,{children:[Ae(Wo,{}),Vo(E.Content,{ref:p,className:r(...C),...d,children:[l,!t&&Vo(E.Close,{className:r("absolute md:top-3 top-2 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 text-gray-900 w-8 h-8 flex justify-center items-center rounded-full before:opacity-0 hover:before:opacity-100 before:transition-opacity before:z-[-1] before:content-[''] before:absolute before:inset-0 before:rounded-full before:select-none before:left-0 before:top-0 before:bg-gray-200 left-3 md:left-auto md:right-4",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[Ae(cs,{className:"h-5 w-5 text-gray-700"}),Ae("span",{className:"sr-only",children:"Close"})]})]})]})});Oe.displayName=E.Content.displayName;var za=({className:e,...o})=>Ae("div",{className:r("dialog-header py-2 md:py-3 h-12 md:h-14 px-10 md:px-12 items-center justify-center flex border-b border-gray-200 w-full shrink-0",e),...o});za.displayName="DialogHeader";var ro=({className:e,isCondensed:o=!1,...t})=>Ae("div",{className:r("dialog-body p-6 flex-1 overflow-y-auto",o&&"p-5",e),...t});ro.displayName="DialogBody";var Ba=({className:e,isDivider:o=!0,...t})=>Ae("div",{className:r("dialog-footer flex sm:flex-row justify-center [&>*]:basis-1/2 [&>*]:sm:basis-auto sm:justify-end space-x-2 px-6 pb-4 shrink-0",o&&"border-gray-200 border-t py-3",e),...t});Ba.displayName="DialogFooter";var Va=At.forwardRef(({className:e,...o},t)=>Ae(E.Title,{ref:t,className:r("text-base font-semibold line-clamp-1 max-w-full",e),...o}));Va.displayName=E.Title.displayName;var Oa=At.forwardRef(({className:e,...o},t)=>Ae(E.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));Oa.displayName=E.Description.displayName;import{QRCodeSVG as ps}from"qrcode.react";import{Fragment as $o,jsx as h,jsxs as Q}from"react/jsx-runtime";var fs=({img:e="",children:o,isQrForAll:t})=>Q($o,{children:[h("div",{className:"qrcode__scan__container",children:Q("div",{className:"qrcode__scan",children:[h("div",{className:"qrcode__gradient",children:h("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),h("div",{className:"qrcode__border",children:h("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),h("div",{className:"qrcode__image p-4",children:e?h("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),h("div",{className:"mt-4 text-sm text-white",children:t?Q($o,{children:[h("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),h("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"})]}):Q($o,{children:[h("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:h("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",h("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),h("style",{children:`
2
2
  .qrcode__scan__container {
3
3
  padding: 15px;
4
4
  background-color: white;
@@ -67,7 +67,7 @@ import*as It from"react";import*as ne from"@radix-ui/react-accordion";import{Che
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),nt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...d})=>h(rt,{...d,children:h(Oe,{className:r("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:h(ro,{className:"p-0",children:Q("div",{className:"flex flex-row flex-wrap",children:[h("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||Q("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[Q("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Q("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),h("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"})]})]}),Q("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Q("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),h("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Q("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Q("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),Q("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"]})]})]})]})}),h("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:Q("div",{className:"px-5 py-10 text-center",children:[t&&h("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),Q("div",{className:"relative",children:[l&&h("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:h("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),h(fs,{img:i,isQrForAll:l,children:n&&h(ps,{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 ys}from"react";import{useEffect as gs,useLayoutEffect as us,useState as vs}from"react";import bs from"ua-parser-js";var xs=()=>bs().device.type==="mobile",hs=typeof window<"u"?us:gs,Wa=()=>{let[e,o]=vs(!1);return hs(()=>{o(xs())},[]),e};import{Fragment as ws,jsx as no,jsxs as Ns}from"react/jsx-runtime";var st=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,d]=ys(!1),p=Wa(),m=!!a?.qrLink,g=()=>{let V=m?a?.qrLink:e;return typeof V=="string"?V.trim():""},u=()=>{let V=g();!V&&typeof e!="function"||(typeof e=="function"?e():window.open(V,o?"_blank":"_self"))},R=(V,O=0)=>{let F=document.querySelector(V);if(!F)return;let Fo=F.getBoundingClientRect().top+window.scrollY-O;window.scrollTo({top:Fo,behavior:"smooth"})},M=()=>{typeof e=="string"&&e.startsWith("#")?R(e,t):u()},j=()=>Ns(ws,{children:[no(le,{...s,className:i,onClick:()=>d(!0),"data-name":"button-action-with-qr",children:n}),no(nt,{...a,open:l,onOpenChange:()=>d(!1),qrLink:a?.qrLink||""})]});return m?p?a?.isQrForAll?j():no(le,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):j():no(le,{...s,onClick:M,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as Pt from"react";import{ChevronRightIcon as Ps,DotsHorizontalIcon as Cs}from"@radix-ui/react-icons";import{Slot as Rs}from"@radix-ui/react-slot";import{jsx as Le,jsxs as Ts}from"react/jsx-runtime";var $a=Pt.forwardRef(({className:e,...o},t)=>Le("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));$a.displayName="Breadcrumb";var Ga=Pt.forwardRef(({className:e,...o},t)=>Le("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Ga.displayName="BreadcrumbList";var ja=Pt.forwardRef(({className:e,...o},t)=>Le("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));ja.displayName="BreadcrumbItem";var Ua=Pt.forwardRef(({asChild:e,className:o,...t},a)=>Le(e?Rs:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Ua.displayName="BreadcrumbLink";var Qa=Pt.forwardRef(({className:e,...o},t)=>Le("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Qa.displayName="BreadcrumbPage";var Xa=({children:e,className:o,...t})=>Le("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??Le(Ps,{className:"w-2 h-2"})});Xa.displayName="BreadcrumbSeparator";var qa=({className:e,...o})=>Ts("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[Le(Cs,{className:"w-4 h-4 text-gray-900"}),Le("span",{className:"sr-only",children:"More"})]});qa.displayName="BreadcrumbElipssis";import{createContext as ks,useContext as Za}from"react";import{jsx as Lt}from"react/jsx-runtime";var Go=ks({align:"center"}),jo=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return Lt("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},Uo=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},d={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:p}=Za(Go);return Lt(s,{className:r("font-bold max-w-4xl",p==="center"?"mx-auto":p==="right"?"ml-auto":"",l[t],d[o],a&&"truncate","text-balance md:text-wrap",i),children:n})},Qo=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"md:text-base text-sm",large:"md:text-lg text-base"},d={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:p}=Za(Go);return Lt("div",{className:r(p==="center"?"mx-auto max-w-2xl":p==="right"?"max-w-4xl ml-auto":"max-w-4xl",s[e],l[o],d[t],a&&"truncate",i),children:n})},Xo=({className:e,align:o="center",children:t})=>Lt("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Lt(Go.Provider,{value:{align:o},children:t})});import qo from"html-react-parser";import{jsx as lt,jsxs as Ss}from"react/jsx-runtime";var W=({idSection:e,className:o,background:t,children:a})=>lt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:lt("div",{className:"wrapper relative",children:a})}),P=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let d=n==="black"?"pink":n==="pink"?"regular":"white",p=n==="pink"?"pink":n==="white"?"white":"regular",m=n==="white"?"white":"regular";return Ss(Xo,{align:e,className:l,children:[o&&lt(jo,{color:d,children:o}),t&&lt(Uo,{tagHeading:i,color:p,size:s,children:qo(t)}),a&&lt(Qo,{color:m,marginTop:s==="large"?"spacing2Xl":"spacingX",children:qo(a)})]})},C=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:lt("div",{className:r("buttons-block mt-8 md:mt-10 flex gap-4 w-full",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{let{btnName:s,...l}=i;return lt(st,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:qo(s)},n)})});import $s,{memo as Gs}from"react";import*as so from"react";import*as ve from"@radix-ui/react-tabs";import{jsx as Zo}from"react/jsx-runtime";var mt=ve.Root,We=so.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>Zo(ve.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));We.displayName=ve.List.displayName;var $e=so.forwardRef(({className:e,...o},t)=>Zo(ve.Trigger,{ref:t,className:r("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));$e.displayName=ve.Trigger.displayName;var Ge=so.forwardRef(({className:e,...o},t)=>Zo(ve.Content,{ref:t,className:r("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Ge.displayName=ve.Content.displayName;import js from"html-react-parser";import*as Ka from"react";import{Slot as Ds}from"@radix-ui/react-slot";import{cva as Ms}from"class-variance-authority";import{jsx as Is}from"react/jsx-runtime";var Ya=Ms("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"}}),be=Ka.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Ds:"button",d=r(Ya({variant:o,size:t,className:e}));return Is(l,{className:d,disabled:i,ref:s,...n,children:n.children})});be.displayName="TextButton";import{useRef as Hs,useState as _s,useEffect as Fs,useCallback as zs,createContext as Bs,useContext as Ko}from"react";import{ChevronLeft as Vs,ChevronRight as Os}from"lucide-react";import*as Ja from"react";import{Slot as As}from"@radix-ui/react-slot";import{cva as Ls}from"class-variance-authority";import{jsx as Es}from"react/jsx-runtime";var ct=Ls("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"}}),xe=Ja.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?As:"button",d=r(ct({variant:o,size:t,className:e}));return Es(l,{className:d,disabled:i,ref:s,...n,children:n.children})});xe.displayName="IconButton";import{Fragment as Ws,jsx as je,jsxs as ei}from"react/jsx-runtime";var lo=Bs(void 0),Et=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=Hs(null),[n,s]=_s({left:!1,right:!1}),l=zs(()=>{let p=i.current;if(p){let{scrollLeft:m,scrollWidth:g,clientWidth:u}=p;s({left:m>0,right:m+u<g})}},[]);Fs(()=>{let p=i.current;if(p)return l(),window.addEventListener("resize",l),p.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),p.removeEventListener("scroll",l)}},[l]);let d=p=>{let m=i.current;if(m){let g=m.clientWidth*.7*(p==="left"?-1:1);m.scrollBy({left:g,behavior:"smooth"})}};return je(lo.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:d,gradientOverlayColor:o},children:ei("div",{className:r("relative w-full",t),children:[e&&ei(Ws,{children:[n.left&&je("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&je("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},Ht=({className:e,children:o})=>{let t=Ko(lo);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return je("div",{ref:t.scrollContainerRef,className:r("overflow-x-auto scrollbar-hide scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},_t=({className:e,children:o,...t})=>{let a=Ko(lo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?je(xe,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute left-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||je(Vs,{className:"h-4 w-4"})}):null},Ft=({className:e,children:o,...t})=>{let a=Ko(lo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?je(xe,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute right-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||je(Os,{className:"h-4 w-4"})}):null};import{ArrowDownIcon as Us}from"@heroicons/react/20/solid";import{Fragment as ti,jsx as S,jsxs as Ne}from"react/jsx-runtime";var Qs=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ne(ti,{children:[S("div",{className:"basis-1/2 md:basis-full flex-none pr-3 md:pr-0",children:S("div",{className:"rounded-md aspect-[16/9] w-full relative overflow-hidden block bg-gray-100",children:Ne("picture",{children:[S("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),S("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Ne("div",{className:"md:mt-3 basis-1/2 md:basis-full overflow-hidden",children:[e?.category&&e?.categoryUrl&&S(be,{variant:"default",className:"text-xs block md:hidden line-clamp-1 shink-0 justify-start text-left whitespace-normal mb-0.5",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),S("div",{className:"text-gray-900 font-medium text-sm md:text-base group-hover:text-pink-500 line-clamp-3 md:line-clamp-none",children:e?.title}),Ne("div",{className:"flex items-center md:space-x-1 mt-2",children:[e?.category&&e?.categoryUrl&&Ne(ti,{children:[S(be,{variant:"default",className:"text-xs hidden md:block md:line-clamp-1 shink-0 justify-start text-left whitespace-normal",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),S("span",{className:"flex-none leading-none hidden md:block",children:"\xB7"})]}),e?.totalViews&&S("div",{className:"text-gray-500 text-xs flex-none",children:e.totalViews})]})]})]})},Yo=Gs(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},d=(m,g,u)=>{m?.preventDefault(),m?.stopPropagation(),a?a(g):window.open(u,"_blank")},p=(m,g)=>Ne("div",{children:[S("div",{className:r("flex flex-row flex-wrap -mx-3 gap-y-5",m?.blogList?.length<3?"md:justify-center":""),children:m?.blogList?.map((u,R)=>S("div",{className:"px-3 basis-full md:basis-1/2 lg:basis-1/3 min-w-0",children:S("div",{onClick:M=>d(M,u?.id,u?.url),className:r("cursor-pointer group flex flex-row md:flex-col",m?.classNameItem),children:S(Qs,{news:u})},u?.id)},R))}),m?.isShowBtn&&S("div",{className:"w-full flex items-center justify-center mt-8",children:Ne(st,{action:i?()=>i?.(g):m?.btnUrl,newTab:m?.isNewTab,variant:"outline",children:[js(m.btnName||"Xem th\xEAm"),m?.isLoading?S(Nt,{className:"animate-spin-loading ml-2 w-5 h-5"}):i&&!m?.btnUrl&&S(Us,{className:"w-5 h-5 animate-bounce ml-2 -mb-1"})]})})]},m?.title||g);return Ne($s.Fragment,{children:[e&&S(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?Ne(mt,{defaultValue:t[0]?.title,children:[Ne(Et,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[S(Ht,{className:"mb-6 text-center",children:S(We,{className:"inline-flex mx-auto items-center mb-6 overflow-visible w-auto mb-0",children:t.map((m,g)=>S($e,{value:m.title,children:m.title},m.title+g))})}),S(_t,{}),S(Ft,{})]}),t.map((m,g)=>S(Ge,{value:m.title,children:p(m,g)},m.title+g))]}):t?.length===1&&t[0]&&p(t[0],0)]})});import{Fragment as Ks,jsx as zt}from"react/jsx-runtime";var Xs=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return zt(Yo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return zt(Yo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},qs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>zt(Ks,{children:Xs({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Zs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>zt(W,{className:r(a),background:i,children:zt(qs,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as co from"react";import{enUS as tl,vi as ol}from"date-fns/locale";import{DayPicker as al}from"react-day-picker";import{ChevronLeft as il,ChevronRight as rl}from"lucide-react";import nl from"lunisolar";import*as oi from"react";import*as Bt from"@radix-ui/react-checkbox";import{CheckIcon as Ys}from"@heroicons/react/16/solid";import{cva as ai}from"class-variance-authority";import{jsx as Jo}from"react/jsx-runtime";var Js=ai("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"}}),el=ai("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),mo=oi.forwardRef(({className:e,size:o,...t},a)=>Jo(Bt.Root,{ref:a,className:r(Js({size:o}),e),...t,children:Jo(Bt.Indicator,{className:r("flex items-center justify-center text-current"),children:Jo(Ys,{className:r(el({size:o}))})})}));mo.displayName=Bt.Root.displayName;import{Fragment as dl,jsx as Pe,jsxs as ea}from"react/jsx-runtime";var sl=({date:e,cusContent:o})=>{let t=null;return t=nl(e).lunar,ea(dl,{children:[o?o(e):e.getDate(),t&&Pe("span",{className:"text-[8px] absolute top-1 right-0.5 leading-none luna-date hidden group-[.show-luna]:block",children:t.day})]})},ll={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 ml({isShow:e,setIsShow:o,lang:t}){let a=co.useId();return Pe("div",{className:"w-full p-3 pt-0",children:ea("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[Pe(mo,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),Pe("label",{htmlFor:`check-show-luna-${a}`,className:"text-sm text-gray-900 peer-disabled:text-gray-400 leading-none peer-disabled:cursor-default cursor-pointer",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var cl=e=>e.getDay()===0||e.getDay()===6;function po({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,d]=co.useState(!0);return Pe(al,{locale:i==="vi"?ol:tl,showOutsideDays:t,className:r("border border-gray-200 rounded-b-md b bg-white shadow-md w-fit",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(we({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("font-medium rounded-md w-11 text-xs text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(we({variant:"transparent"}),"h-11 w-11 text-center text-sm p-0 aria-selected:opacity-100 aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white [&.day-range-end.day-range-start]:rounded-md focus-within:relative focus-within:z-20 font-semibold relative group",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("text-gray-900 !bg-pink-50 !rounded-none group/mid [&:nth-child(7)]:!text-red-600 day-range-middle",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:cl},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>Pe(il,{className:"h-6 w-6"}),IconRight:()=>Pe(rl,{className:"h-6 w-6"}),DayContent:p=>Pe(sl,{date:p.date,cusContent:n}),Months:({children:p})=>ea("div",{className:"w-full",children:[Pe("div",{className:r("flex flex-col sm:flex-row months-wrapper"),children:p}),a&&Pe(ml,{isShow:l,setIsShow:d,lang:i})]})},formatters:i==="vi"?ll:{},...s})}po.displayName="Calendar";import*as H from"react";import pl from"embla-carousel-react";import{ChevronLeftIcon as fl,ChevronRightIcon as gl}from"@heroicons/react/16/solid";import{jsx as Ee,jsxs as ri}from"react/jsx-runtime";var ii=H.createContext(null);function fo(){let e=H.useContext(ii);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var go=H.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[d,p]=pl({...o,axis:e==="horizontal"?"x":"y"},a),[m,g]=H.useState(!1),[u,R]=H.useState(!1),M=H.useCallback(O=>{O&&(g(O.canScrollPrev()),R(O.canScrollNext()))},[]),j=H.useCallback(()=>{p?.scrollPrev()},[p]),I=H.useCallback(()=>{p?.scrollNext()},[p]),V=H.useCallback(O=>{O.key==="ArrowLeft"?(O.preventDefault(),j()):O.key==="ArrowRight"&&(O.preventDefault(),I())},[j,I]);return H.useEffect(()=>{!p||!t||t(p)},[p,t]),H.useEffect(()=>{if(p)return M(p),p.on("reInit",M),p.on("select",M),()=>{p?.off("select",M)}},[p,M]),Ee(ii.Provider,{value:{carouselRef:d,api:p,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:j,scrollNext:I,canScrollPrev:m,canScrollNext:u},children:Ee("div",{ref:l,onKeyDownCapture:V,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});go.displayName="Carousel";var uo=H.forwardRef(({className:e,...o},t)=>{let{carouselRef:a,orientation:i}=fo();return Ee("div",{ref:a,className:"overflow-hidden",children:Ee("div",{ref:t,className:r("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...o})})});uo.displayName="CarouselContent";var vo=H.forwardRef(({className:e,...o},t)=>{let{orientation:a}=fo();return Ee("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});vo.displayName="CarouselItem";var bo=H.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=fo();return ri(xe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ee(fl,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Previous slide"})]})});bo.displayName="CarouselPrevious";var xo=H.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=fo();return ri(xe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ee(gl,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Next slide"})]})});xo.displayName="CarouselNext";import*as si from"react";import*as He from"@radix-ui/react-popover";import{jsx as ni}from"react/jsx-runtime";var Vt=He.Root,Ot=He.Trigger,Ct=si.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>ni(He.Portal,{children:ni(He.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ct.displayName=He.Content.displayName;import{format as ho}from"date-fns";import{Calendar as ul}from"lucide-react";import{QuestionMarkCircleIcon as vl,XCircleIcon as bl}from"@heroicons/react/16/solid";import{Fragment as li,jsx as oe,jsxs as Wt}from"react/jsx-runtime";var xl=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:d,calendarProps:p})=>{let m=p?.selected||null;return Wt("div",{children:[Wt(Vt,{...d,children:[oe(Ot,{asChild:!0,children:Wt(le,{variant:"secondary",className:r("w-full justify-between text-left text-sm font-normal h-11 text-gray-900 overflow-visible hover:ring-1 focus:ring-1 hover:ring-gray-400 focus:ring-gray-400 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-pink-500 [&[data-state=open]]:ring-1 relative disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none disabled:text-gray-500",t===2&&"h-12 text-base",(!m||!(m instanceof Date)&&typeof m=="object"&&(!("from"in m)||!m.from))&&"text-gray-500",i&&"border-red-500 ring-red-500 ring-1"),disabled:n,...l,children:[oe("div",{className:"line-clamp-1 flex-1",children:m instanceof Date?ho(m,s):m&&typeof m=="object"&&"from"in m&&"to"in m?oe(li,{children:m.from?m.to?Wt(li,{children:[oe("span",{className:"date-from",children:ho(m.from,s)})," ",oe("span",{className:"date-separator",children:"-"}),oe("span",{className:"date-to",children:ho(m.to,s)})]}):ho(m.from,s):o}):o}),e&&oe("span",{className:r("absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),oe(ul,{className:"ml-2 h-4 w-4 text-gray-500 flex-none"})]})}),oe(Ct,{className:"w-auto !p-0 border-none",children:oe(po,{...p})})]}),a&&Wt("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[i?oe(bl,{width:16,height:16,className:"text-red-500"}):oe(vl,{width:16,height:16,className:"text-gray-500"}),oe("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import*as dt from"react";import*as T from"@radix-ui/react-alert-dialog";import{jsx as _e,jsxs as wl}from"react/jsx-runtime";var hl=T.Root,yl=T.Trigger,mi=T.Portal,ta=dt.forwardRef(({className:e,...o},t)=>_e(T.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));ta.displayName=T.Overlay.displayName;var ci=dt.forwardRef(({className:e,...o},t)=>wl(mi,{children:[_e(ta,{}),_e(T.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));ci.displayName=T.Content.displayName;var di=({className:e,...o})=>_e("div",{className:r("flex flex-col space-y-2 text-left",e),...o});di.displayName="AlertDialogHeader";var pi=({className:e,...o})=>_e("div",{className:r("flex flex-row justify-end space-x-4",e),...o});pi.displayName="AlertDialogFooter";var fi=dt.forwardRef(({className:e,...o},t)=>_e(T.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));fi.displayName=T.Title.displayName;var gi=dt.forwardRef(({className:e,...o},t)=>_e(T.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));gi.displayName=T.Description.displayName;var ui=dt.forwardRef(({className:e,...o},t)=>_e(T.Action,{ref:t,className:r(we({variant:"primary"}),"",e),...o}));ui.displayName=T.Action.displayName;var vi=dt.forwardRef(({className:e,...o},t)=>_e(T.Cancel,{ref:t,className:r(we({variant:"secondary"}),e),...o}));vi.displayName=T.Cancel.displayName;import{ChevronLeft as Nl,ChevronRight as Pl}from"lucide-react";import{Fragment as Cl,jsx as me,jsxs as bi}from"react/jsx-runtime";function xi({current:e,total:o,onChange:t}){let a=i=>me("li",{children:me("button",{className:r(ct({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return me("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:bi("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&me("li",{children:me("button",{className:r(ct({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:me(Nl,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):bi(Cl,{children:[a(1),e===1&&[a(2),a(3)],e>3&&me("li",{children:me("button",{className:r(ct({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:r(ct({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&me("li",{children:me("button",{className:r(ct({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:me(Pl,{className:"h-4 w-4"})})})]})})}import{forwardRef as Rl}from"react";import{QuestionMarkCircleIcon as Tl}from"@heroicons/react/24/outline";import{XCircleIcon as kl}from"@heroicons/react/24/solid";import{jsx as Rt,jsxs as hi}from"react/jsx-runtime";var Sl=Rl(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...d},p)=>hi("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&Rt("span",{className:r("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),Rt("textarea",{disabled:e,ref:p,className:r("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:l,...d}),t&&hi("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?Rt(kl,{width:16,height:16,className:"text-red-500"}):Rt(Tl,{width:16,height:16,className:"text-gray-500"}),Rt("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Rt("style",{children:`
70
+ `})]}),nt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...d})=>h(rt,{...d,children:h(Oe,{className:r("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:h(ro,{className:"p-0",children:Q("div",{className:"flex flex-row flex-wrap",children:[h("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||Q("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[Q("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Q("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),h("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"})]})]}),Q("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Q("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),h("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Q("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Q("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),Q("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"]})]})]})]})}),h("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:Q("div",{className:"px-5 py-10 text-center",children:[t&&h("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),Q("div",{className:"relative",children:[l&&h("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:h("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),h(fs,{img:i,isQrForAll:l,children:n&&h(ps,{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 ys}from"react";import{useEffect as gs,useLayoutEffect as us,useState as vs}from"react";import bs from"ua-parser-js";var xs=()=>bs().device.type==="mobile",hs=typeof window<"u"?us:gs,Wa=()=>{let[e,o]=vs(!1);return hs(()=>{o(xs())},[]),e};import{Fragment as ws,jsx as no,jsxs as Ns}from"react/jsx-runtime";var st=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,d]=ys(!1),p=Wa(),m=!!a?.qrLink,g=()=>{let V=m?a?.qrLink:e;return typeof V=="string"?V.trim():""},u=()=>{let V=g();!V&&typeof e!="function"||(typeof e=="function"?e():window.open(V,o?"_blank":"_self"))},C=(V,O=0)=>{let F=document.querySelector(V);if(!F)return;let Fo=F.getBoundingClientRect().top+window.scrollY-O;window.scrollTo({top:Fo,behavior:"smooth"})},M=()=>{typeof e=="string"&&e.startsWith("#")?C(e,t):u()},j=()=>Ns(ws,{children:[no(le,{...s,className:i,onClick:()=>d(!0),"data-name":"button-action-with-qr",children:n}),no(nt,{...a,open:l,onOpenChange:()=>d(!1),qrLink:a?.qrLink||""})]});return m?p?a?.isQrForAll?j():no(le,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):j():no(le,{...s,onClick:M,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as Pt from"react";import{ChevronRightIcon as Ps,DotsHorizontalIcon as Cs}from"@radix-ui/react-icons";import{Slot as Rs}from"@radix-ui/react-slot";import{jsx as Le,jsxs as Ts}from"react/jsx-runtime";var $a=Pt.forwardRef(({className:e,...o},t)=>Le("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));$a.displayName="Breadcrumb";var Ga=Pt.forwardRef(({className:e,...o},t)=>Le("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Ga.displayName="BreadcrumbList";var ja=Pt.forwardRef(({className:e,...o},t)=>Le("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));ja.displayName="BreadcrumbItem";var Ua=Pt.forwardRef(({asChild:e,className:o,...t},a)=>Le(e?Rs:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Ua.displayName="BreadcrumbLink";var Qa=Pt.forwardRef(({className:e,...o},t)=>Le("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Qa.displayName="BreadcrumbPage";var Xa=({children:e,className:o,...t})=>Le("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??Le(Ps,{className:"w-2 h-2"})});Xa.displayName="BreadcrumbSeparator";var qa=({className:e,...o})=>Ts("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[Le(Cs,{className:"w-4 h-4 text-gray-900"}),Le("span",{className:"sr-only",children:"More"})]});qa.displayName="BreadcrumbElipssis";import{createContext as ks,useContext as Za}from"react";import{jsx as Lt}from"react/jsx-runtime";var Go=ks({align:"center"}),jo=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return Lt("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},Uo=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},d={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:p}=Za(Go);return Lt(s,{className:r("font-bold max-w-4xl",p==="center"?"mx-auto":p==="right"?"ml-auto":"",l[t],d[o],a&&"truncate","text-balance md:text-wrap",i),children:n})},Qo=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"md:text-base text-sm",large:"md:text-lg text-base"},d={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:p}=Za(Go);return Lt("div",{className:r(p==="center"?"mx-auto max-w-2xl":p==="right"?"max-w-4xl ml-auto":"max-w-4xl",s[e],l[o],d[t],a&&"truncate",i),children:n})},Xo=({className:e,align:o="center",children:t})=>Lt("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Lt(Go.Provider,{value:{align:o},children:t})});import qo from"html-react-parser";import{jsx as lt,jsxs as Ss}from"react/jsx-runtime";var W=({idSection:e,className:o,background:t,children:a})=>lt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:lt("div",{className:"wrapper relative",children:a})}),P=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let d=n==="black"?"pink":n==="pink"?"regular":"white",p=n==="pink"?"pink":n==="white"?"white":"regular",m=n==="white"?"white":"regular";return Ss(Xo,{align:e,className:l,children:[o&&lt(jo,{color:d,children:o}),t&&lt(Uo,{tagHeading:i,color:p,size:s,children:qo(t)}),a&&lt(Qo,{color:m,marginTop:s==="large"?"spacing2Xl":"spacingX",children:qo(a)})]})},R=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:lt("div",{className:r("buttons-block mt-8 md:mt-10 flex gap-4 w-full",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{let{btnName:s,...l}=i;return lt(st,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:qo(s)},n)})});import $s,{memo as Gs}from"react";import*as so from"react";import*as ve from"@radix-ui/react-tabs";import{jsx as Zo}from"react/jsx-runtime";var mt=ve.Root,We=so.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>Zo(ve.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));We.displayName=ve.List.displayName;var $e=so.forwardRef(({className:e,...o},t)=>Zo(ve.Trigger,{ref:t,className:r("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));$e.displayName=ve.Trigger.displayName;var Ge=so.forwardRef(({className:e,...o},t)=>Zo(ve.Content,{ref:t,className:r("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Ge.displayName=ve.Content.displayName;import js from"html-react-parser";import*as Ka from"react";import{Slot as Ds}from"@radix-ui/react-slot";import{cva as Ms}from"class-variance-authority";import{jsx as Is}from"react/jsx-runtime";var Ya=Ms("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"}}),be=Ka.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Ds:"button",d=r(Ya({variant:o,size:t,className:e}));return Is(l,{className:d,disabled:i,ref:s,...n,children:n.children})});be.displayName="TextButton";import{useRef as Hs,useState as _s,useEffect as Fs,useCallback as zs,createContext as Bs,useContext as Ko}from"react";import{ChevronLeft as Vs,ChevronRight as Os}from"lucide-react";import*as Ja from"react";import{Slot as As}from"@radix-ui/react-slot";import{cva as Ls}from"class-variance-authority";import{jsx as Es}from"react/jsx-runtime";var ct=Ls("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"}}),xe=Ja.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?As:"button",d=r(ct({variant:o,size:t,className:e}));return Es(l,{className:d,disabled:i,ref:s,...n,children:n.children})});xe.displayName="IconButton";import{Fragment as Ws,jsx as je,jsxs as ei}from"react/jsx-runtime";var lo=Bs(void 0),Et=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=Hs(null),[n,s]=_s({left:!1,right:!1}),l=zs(()=>{let p=i.current;if(p){let{scrollLeft:m,scrollWidth:g,clientWidth:u}=p;s({left:m>0,right:m+u<g})}},[]);Fs(()=>{let p=i.current;if(p)return l(),window.addEventListener("resize",l),p.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),p.removeEventListener("scroll",l)}},[l]);let d=p=>{let m=i.current;if(m){let g=m.clientWidth*.7*(p==="left"?-1:1);m.scrollBy({left:g,behavior:"smooth"})}};return je(lo.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:d,gradientOverlayColor:o},children:ei("div",{className:r("relative w-full",t),children:[e&&ei(Ws,{children:[n.left&&je("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&je("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},Ht=({className:e,children:o})=>{let t=Ko(lo);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return je("div",{ref:t.scrollContainerRef,className:r("overflow-x-auto scrollbar-hide scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},_t=({className:e,children:o,...t})=>{let a=Ko(lo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?je(xe,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute left-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||je(Vs,{className:"h-4 w-4"})}):null},Ft=({className:e,children:o,...t})=>{let a=Ko(lo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?je(xe,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute right-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||je(Os,{className:"h-4 w-4"})}):null};import{ArrowDownIcon as Us}from"@heroicons/react/20/solid";import{Fragment as ti,jsx as S,jsxs as Ne}from"react/jsx-runtime";var Qs=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ne(ti,{children:[S("div",{className:"basis-1/2 md:basis-full flex-none pr-3 md:pr-0",children:S("div",{className:"rounded-md aspect-[16/9] w-full relative overflow-hidden block bg-gray-100",children:Ne("picture",{children:[S("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),S("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Ne("div",{className:"md:mt-3 basis-1/2 md:basis-full overflow-hidden",children:[e?.category&&e?.categoryUrl&&S(be,{variant:"default",className:"text-xs block md:hidden line-clamp-1 shink-0 justify-start text-left whitespace-normal mb-0.5",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),S("div",{className:"text-gray-900 font-medium text-sm md:text-base group-hover:text-pink-500 line-clamp-3 md:line-clamp-none",children:e?.title}),Ne("div",{className:"flex items-center md:space-x-1 mt-2",children:[e?.category&&e?.categoryUrl&&Ne(ti,{children:[S(be,{variant:"default",className:"text-xs hidden md:block md:line-clamp-1 shink-0 justify-start text-left whitespace-normal",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),S("span",{className:"flex-none leading-none hidden md:block",children:"\xB7"})]}),e?.totalViews&&S("div",{className:"text-gray-500 text-xs flex-none",children:e.totalViews})]})]})]})},Yo=Gs(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},d=(m,g,u)=>{m?.preventDefault(),m?.stopPropagation(),a?a(g):window.open(u,"_blank")},p=(m,g)=>Ne("div",{children:[S("div",{className:r("flex flex-row flex-wrap -mx-3 gap-y-5",m?.blogList?.length<3?"md:justify-center":""),children:m?.blogList?.map((u,C)=>S("div",{className:"px-3 basis-full md:basis-1/2 lg:basis-1/3 min-w-0",children:S("div",{onClick:M=>d(M,u?.id,u?.url),className:r("cursor-pointer group flex flex-row md:flex-col",m?.classNameItem),children:S(Qs,{news:u})},u?.id)},C))}),m?.isShowBtn&&S("div",{className:"w-full flex items-center justify-center mt-8",children:Ne(st,{action:i?()=>i?.(g):m?.btnUrl,newTab:m?.isNewTab,variant:"outline",children:[js(m.btnName||"Xem th\xEAm"),m?.isLoading?S(Nt,{className:"animate-spin-loading ml-2 w-5 h-5"}):i&&!m?.btnUrl&&S(Us,{className:"w-5 h-5 animate-bounce ml-2 -mb-1"})]})})]},m?.title||g);return Ne($s.Fragment,{children:[e&&S(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?Ne(mt,{defaultValue:t[0]?.title,children:[Ne(Et,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[S(Ht,{className:"mb-6 text-center",children:S(We,{className:"inline-flex mx-auto items-center mb-6 overflow-visible w-auto mb-0",children:t.map((m,g)=>S($e,{value:m.title,children:m.title},m.title+g))})}),S(_t,{}),S(Ft,{})]}),t.map((m,g)=>S(Ge,{value:m.title,children:p(m,g)},m.title+g))]}):t?.length===1&&t[0]&&p(t[0],0)]})});import{Fragment as Ks,jsx as zt}from"react/jsx-runtime";var Xs=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return zt(Yo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return zt(Yo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},qs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>zt(Ks,{children:Xs({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Zs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>zt(W,{className:r(a),background:i,children:zt(qs,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as co from"react";import{enUS as tl,vi as ol}from"date-fns/locale";import{DayPicker as al}from"react-day-picker";import{ChevronLeft as il,ChevronRight as rl}from"lucide-react";import nl from"lunisolar";import*as oi from"react";import*as Bt from"@radix-ui/react-checkbox";import{CheckIcon as Ys}from"@heroicons/react/16/solid";import{cva as ai}from"class-variance-authority";import{jsx as Jo}from"react/jsx-runtime";var Js=ai("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"}}),el=ai("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),mo=oi.forwardRef(({className:e,size:o,...t},a)=>Jo(Bt.Root,{ref:a,className:r(Js({size:o}),e),...t,children:Jo(Bt.Indicator,{className:r("flex items-center justify-center text-current"),children:Jo(Ys,{className:r(el({size:o}))})})}));mo.displayName=Bt.Root.displayName;import{Fragment as dl,jsx as Pe,jsxs as ea}from"react/jsx-runtime";var sl=({date:e,cusContent:o})=>{let t=null;return t=nl(e).lunar,ea(dl,{children:[o?o(e):e.getDate(),t&&Pe("span",{className:"text-[8px] absolute top-1 right-0.5 leading-none luna-date hidden group-[.show-luna]:block",children:t.day})]})},ll={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 ml({isShow:e,setIsShow:o,lang:t}){let a=co.useId();return Pe("div",{className:"w-full p-3 pt-0",children:ea("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[Pe(mo,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),Pe("label",{htmlFor:`check-show-luna-${a}`,className:"text-sm text-gray-900 peer-disabled:text-gray-400 leading-none peer-disabled:cursor-default cursor-pointer",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var cl=e=>e.getDay()===0||e.getDay()===6;function po({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,d]=co.useState(!0);return Pe(al,{locale:i==="vi"?ol:tl,showOutsideDays:t,className:r("border border-gray-200 rounded-b-md b bg-white shadow-md w-fit",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(we({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("font-medium rounded-md w-11 text-xs text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(we({variant:"transparent"}),"h-11 w-11 text-center text-sm p-0 aria-selected:opacity-100 aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white [&.day-range-end.day-range-start]:rounded-md focus-within:relative focus-within:z-20 font-semibold relative group",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("text-gray-900 !bg-pink-50 !rounded-none group/mid [&:nth-child(7)]:!text-red-600 day-range-middle",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:cl},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>Pe(il,{className:"h-6 w-6"}),IconRight:()=>Pe(rl,{className:"h-6 w-6"}),DayContent:p=>Pe(sl,{date:p.date,cusContent:n}),Months:({children:p})=>ea("div",{className:"w-full",children:[Pe("div",{className:r("flex flex-col sm:flex-row months-wrapper"),children:p}),a&&Pe(ml,{isShow:l,setIsShow:d,lang:i})]})},formatters:i==="vi"?ll:{},...s})}po.displayName="Calendar";import*as H from"react";import pl from"embla-carousel-react";import{ChevronLeftIcon as fl,ChevronRightIcon as gl}from"@heroicons/react/16/solid";import{jsx as Ee,jsxs as ri}from"react/jsx-runtime";var ii=H.createContext(null);function fo(){let e=H.useContext(ii);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var go=H.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[d,p]=pl({...o,axis:e==="horizontal"?"x":"y"},a),[m,g]=H.useState(!1),[u,C]=H.useState(!1),M=H.useCallback(O=>{O&&(g(O.canScrollPrev()),C(O.canScrollNext()))},[]),j=H.useCallback(()=>{p?.scrollPrev()},[p]),I=H.useCallback(()=>{p?.scrollNext()},[p]),V=H.useCallback(O=>{O.key==="ArrowLeft"?(O.preventDefault(),j()):O.key==="ArrowRight"&&(O.preventDefault(),I())},[j,I]);return H.useEffect(()=>{!p||!t||t(p)},[p,t]),H.useEffect(()=>{if(p)return M(p),p.on("reInit",M),p.on("select",M),()=>{p?.off("select",M)}},[p,M]),Ee(ii.Provider,{value:{carouselRef:d,api:p,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:j,scrollNext:I,canScrollPrev:m,canScrollNext:u},children:Ee("div",{ref:l,onKeyDownCapture:V,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});go.displayName="Carousel";var uo=H.forwardRef(({className:e,...o},t)=>{let{carouselRef:a,orientation:i}=fo();return Ee("div",{ref:a,className:"overflow-hidden",children:Ee("div",{ref:t,className:r("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...o})})});uo.displayName="CarouselContent";var vo=H.forwardRef(({className:e,...o},t)=>{let{orientation:a}=fo();return Ee("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});vo.displayName="CarouselItem";var bo=H.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=fo();return ri(xe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ee(fl,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Previous slide"})]})});bo.displayName="CarouselPrevious";var xo=H.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=fo();return ri(xe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ee(gl,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Next slide"})]})});xo.displayName="CarouselNext";import*as si from"react";import*as He from"@radix-ui/react-popover";import{jsx as ni}from"react/jsx-runtime";var Vt=He.Root,Ot=He.Trigger,Ct=si.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>ni(He.Portal,{children:ni(He.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ct.displayName=He.Content.displayName;import{format as ho}from"date-fns";import{Calendar as ul}from"lucide-react";import{QuestionMarkCircleIcon as vl,XCircleIcon as bl}from"@heroicons/react/16/solid";import{Fragment as li,jsx as oe,jsxs as Wt}from"react/jsx-runtime";var xl=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:d,calendarProps:p})=>{let m=p?.selected||null;return Wt("div",{children:[Wt(Vt,{...d,children:[oe(Ot,{asChild:!0,children:Wt(le,{variant:"secondary",className:r("w-full justify-between text-left text-sm font-normal h-11 text-gray-900 overflow-visible hover:ring-1 focus:ring-1 hover:ring-gray-400 focus:ring-gray-400 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-pink-500 [&[data-state=open]]:ring-1 relative disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none disabled:text-gray-500",t===2&&"h-12 text-base",(!m||!(m instanceof Date)&&typeof m=="object"&&(!("from"in m)||!m.from))&&"text-gray-500",i&&"border-red-500 ring-red-500 ring-1"),disabled:n,...l,children:[oe("div",{className:"line-clamp-1 flex-1",children:m instanceof Date?ho(m,s):m&&typeof m=="object"&&"from"in m&&"to"in m?oe(li,{children:m.from?m.to?Wt(li,{children:[oe("span",{className:"date-from",children:ho(m.from,s)})," ",oe("span",{className:"date-separator",children:"-"}),oe("span",{className:"date-to",children:ho(m.to,s)})]}):ho(m.from,s):o}):o}),e&&oe("span",{className:r("absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),oe(ul,{className:"ml-2 h-4 w-4 text-gray-500 flex-none"})]})}),oe(Ct,{className:"w-auto !p-0 border-none",children:oe(po,{...p})})]}),a&&Wt("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[i?oe(bl,{width:16,height:16,className:"text-red-500"}):oe(vl,{width:16,height:16,className:"text-gray-500"}),oe("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import*as dt from"react";import*as T from"@radix-ui/react-alert-dialog";import{jsx as _e,jsxs as wl}from"react/jsx-runtime";var hl=T.Root,yl=T.Trigger,mi=T.Portal,ta=dt.forwardRef(({className:e,...o},t)=>_e(T.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));ta.displayName=T.Overlay.displayName;var ci=dt.forwardRef(({className:e,...o},t)=>wl(mi,{children:[_e(ta,{}),_e(T.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));ci.displayName=T.Content.displayName;var di=({className:e,...o})=>_e("div",{className:r("flex flex-col space-y-2 text-left",e),...o});di.displayName="AlertDialogHeader";var pi=({className:e,...o})=>_e("div",{className:r("flex flex-row justify-end space-x-4",e),...o});pi.displayName="AlertDialogFooter";var fi=dt.forwardRef(({className:e,...o},t)=>_e(T.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));fi.displayName=T.Title.displayName;var gi=dt.forwardRef(({className:e,...o},t)=>_e(T.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));gi.displayName=T.Description.displayName;var ui=dt.forwardRef(({className:e,...o},t)=>_e(T.Action,{ref:t,className:r(we({variant:"primary"}),"",e),...o}));ui.displayName=T.Action.displayName;var vi=dt.forwardRef(({className:e,...o},t)=>_e(T.Cancel,{ref:t,className:r(we({variant:"secondary"}),e),...o}));vi.displayName=T.Cancel.displayName;import{ChevronLeft as Nl,ChevronRight as Pl}from"lucide-react";import{Fragment as Cl,jsx as me,jsxs as bi}from"react/jsx-runtime";function xi({current:e,total:o,onChange:t}){let a=i=>me("li",{children:me("button",{className:r(ct({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return me("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:bi("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&me("li",{children:me("button",{className:r(ct({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:me(Nl,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):bi(Cl,{children:[a(1),e===1&&[a(2),a(3)],e>3&&me("li",{children:me("button",{className:r(ct({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:r(ct({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&me("li",{children:me("button",{className:r(ct({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:me(Pl,{className:"h-4 w-4"})})})]})})}import{forwardRef as Rl}from"react";import{QuestionMarkCircleIcon as Tl}from"@heroicons/react/24/outline";import{XCircleIcon as kl}from"@heroicons/react/24/solid";import{jsx as Rt,jsxs as hi}from"react/jsx-runtime";var Sl=Rl(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...d},p)=>hi("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&Rt("span",{className:r("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),Rt("textarea",{disabled:e,ref:p,className:r("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:l,...d}),t&&hi("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?Rt(kl,{width:16,height:16,className:"text-red-500"}):Rt(Tl,{width:16,height:16,className:"text-gray-500"}),Rt("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Rt("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 It from"react";import*as ne from"@radix-ui/react-accordion";import{Che
94
94
  color: rgb(var(--mobase-red-500) / 1);
95
95
  }
96
96
  }
97
- `})]}));import*as No from"react";var Dl=1,Ml=1e6;var oa=0;function Il(){return oa=(oa+1)%Number.MAX_SAFE_INTEGER,oa.toString()}var aa=new Map,yi=e=>{if(aa.has(e))return;let o=setTimeout(()=>{aa.delete(e),$t({type:"REMOVE_TOAST",toastId:e})},Ml);aa.set(e,o)},Al=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Dl)};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?yi(t):e.toasts.forEach(a=>{yi(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}},yo=[],wo={toasts:[]};function $t(e){wo=Al(wo,e),yo.forEach(o=>{o(wo)})}function wi({...e}){let o=Il(),t=i=>$t({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>$t({type:"DISMISS_TOAST",toastId:o});return $t({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function ia(){let[e,o]=No.useState(wo);return No.useEffect(()=>(yo.push(o),()=>{let t=yo.indexOf(o);t>-1&&yo.splice(t,1)}),[e]),{...e,toast:wi,dismiss:t=>$t({type:"DISMISS_TOAST",toastId:t})}}import*as pt from"react";import*as z from"@radix-ui/react-toast";import{cva as Ll}from"class-variance-authority";import{XMarkIcon as El,CheckCircleIcon as Hl,ExclamationTriangleIcon as _l,InformationCircleIcon as Fl}from"@heroicons/react/20/solid";import{jsx as Fe,jsxs as Ni}from"react/jsx-runtime";var Pi=z.Provider,ra=pt.forwardRef(({className:e,...o},t)=>Fe(z.Viewport,{ref:t,className:r("fixed bottom-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 left-0 sm:right-0 sm:left-auto sm:top-0 sm:bottom-auto sm:flex-col md:max-w-[420px]",e),...o}));ra.displayName=z.Viewport.displayName;var zl=Ll("group pointer-events-auto relative w-full overflow-hidden rounded-md border py-4 pr-10 pl-10 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full bg-white text-gray-900 border border-gray-200 border-l-4",{variants:{variant:{sucess:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"sucess"}}),na=pt.forwardRef(({className:e,variant:o="sucess",children:t,...a},i)=>Ni(z.Root,{ref:i,className:r(zl({variant:o}),e),...a,children:[Ni("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[o==="sucess"&&Fe(Hl,{className:"w-5 h-5 text-green-500"}),o==="warning"&&Fe(_l,{className:"w-5 h-5 text-yellow-500"}),o==="error"&&Fe(Fl,{className:"w-5 h-5 text-red-500"})]}),t]}));na.displayName=z.Root.displayName;var Ci=pt.forwardRef(({className:e,...o},t)=>Fe(z.Action,{ref:t,className:r("inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-0 focus:ring-ring focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 text-blue-600 hover:underline mt-2",e),...o}));Ci.displayName=z.Action.displayName;var sa=pt.forwardRef(({className:e,...o},t)=>Fe(z.Close,{ref:t,className:r("absolute right-2 top-2 rounded-md transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2 text-gray-800 w-8 h-8 flex items-center justify-center",e),"toast-close":"",...o,children:Fe(El,{className:"h-5 w-5"})}));sa.displayName=z.Close.displayName;var la=pt.forwardRef(({className:e,...o},t)=>Fe(z.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));la.displayName=z.Title.displayName;var ma=pt.forwardRef(({className:e,...o},t)=>Fe(z.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));ma.displayName=z.Description.displayName;import{jsx as Po,jsxs as ca}from"react/jsx-runtime";function Bl(){let{toasts:e}=ia();return ca(Pi,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return ca(na,{...n,children:[ca("div",{className:"grid gap-2",children:[t&&Po(la,{children:t}),a&&Po(ma,{children:a})]}),i,Po(sa,{})]},o)}),Po(ra,{})]})}import*as da from"react";import*as ce from"@radix-ui/react-tooltip";import{jsx as ki}from"react/jsx-runtime";var Vl=ce.Provider,Ol=ce.Root,Wl=ce.Trigger,Ri=da.forwardRef((e,o)=>ki(ce.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));Ri.displayName=ce.Arrow.displayName;var Ti=da.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>ki(ce.Content,{ref:i,sideOffset:t,className:r("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));Ti.displayName=ce.Content.displayName;import{forwardRef as $l,useEffect as Gl,useRef as jl,useState as Ul}from"react";import{QuestionMarkCircleIcon as Ql,XCircleIcon as Xl,XCircleIcon as ql}from"@heroicons/react/16/solid";import{jsx as Ue,jsxs as pa}from"react/jsx-runtime";var Zl=$l(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:d,onFocus:p,onClickClear:m,value:g,defaultValue:u,type:R="text",...M},j)=>{let[I,V]=Ul(!1),O=jl(null),F=te=>{te&&!I&&V(!0),!te&&I&&V(!1)},Ea=te=>{s&&F(te.target.value),d?.(te)},Fo=te=>{s&&F(te.target.value),p?.(te)},Jn=()=>{let te=O.current?.querySelector("input");te&&(m?.(te.value),te.value="",te.focus(),V(!1))};return Gl(()=>{F(u||g)},[g,u]),pa("div",{className:r(i,o&&"mobase-text-input-error"),ref:O,children:[pa("div",{className:"relative",children:[a&&Ue("span",{className:r("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),Ue("input",{disabled:e,type:R,ref:j,className:r("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",l===2&&"h-12 text-base",n),onChange:Ea,onFocus:Fo,value:g,defaultValue:u,...M}),s&&I&&Ue("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:Jn,children:Ue(Xl,{strokeWidth:2,width:20,height:20})})]}),t&&pa("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?Ue(ql,{width:16,height:16,className:"text-red-500"}):Ue(Ql,{width:16,height:16,className:"text-gray-500"}),Ue("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),Ue("style",{children:`
97
+ `})]}));import*as No from"react";var Dl=1,Ml=1e6;var oa=0;function Il(){return oa=(oa+1)%Number.MAX_SAFE_INTEGER,oa.toString()}var aa=new Map,yi=e=>{if(aa.has(e))return;let o=setTimeout(()=>{aa.delete(e),$t({type:"REMOVE_TOAST",toastId:e})},Ml);aa.set(e,o)},Al=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Dl)};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?yi(t):e.toasts.forEach(a=>{yi(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}},yo=[],wo={toasts:[]};function $t(e){wo=Al(wo,e),yo.forEach(o=>{o(wo)})}function wi({...e}){let o=Il(),t=i=>$t({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>$t({type:"DISMISS_TOAST",toastId:o});return $t({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function ia(){let[e,o]=No.useState(wo);return No.useEffect(()=>(yo.push(o),()=>{let t=yo.indexOf(o);t>-1&&yo.splice(t,1)}),[e]),{...e,toast:wi,dismiss:t=>$t({type:"DISMISS_TOAST",toastId:t})}}import*as pt from"react";import*as z from"@radix-ui/react-toast";import{cva as Ll}from"class-variance-authority";import{XMarkIcon as El,CheckCircleIcon as Hl,ExclamationTriangleIcon as _l,InformationCircleIcon as Fl}from"@heroicons/react/20/solid";import{jsx as Fe,jsxs as Ni}from"react/jsx-runtime";var Pi=z.Provider,ra=pt.forwardRef(({className:e,...o},t)=>Fe(z.Viewport,{ref:t,className:r("fixed bottom-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 left-0 sm:right-0 sm:left-auto sm:top-0 sm:bottom-auto sm:flex-col md:max-w-[420px]",e),...o}));ra.displayName=z.Viewport.displayName;var zl=Ll("group pointer-events-auto relative w-full overflow-hidden rounded-md border py-4 pr-10 pl-10 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full bg-white text-gray-900 border border-gray-200 border-l-4",{variants:{variant:{sucess:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"sucess"}}),na=pt.forwardRef(({className:e,variant:o="sucess",children:t,...a},i)=>Ni(z.Root,{ref:i,className:r(zl({variant:o}),e),...a,children:[Ni("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[o==="sucess"&&Fe(Hl,{className:"w-5 h-5 text-green-500"}),o==="warning"&&Fe(_l,{className:"w-5 h-5 text-yellow-500"}),o==="error"&&Fe(Fl,{className:"w-5 h-5 text-red-500"})]}),t]}));na.displayName=z.Root.displayName;var Ci=pt.forwardRef(({className:e,...o},t)=>Fe(z.Action,{ref:t,className:r("inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-0 focus:ring-ring focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 text-blue-600 hover:underline mt-2",e),...o}));Ci.displayName=z.Action.displayName;var sa=pt.forwardRef(({className:e,...o},t)=>Fe(z.Close,{ref:t,className:r("absolute right-2 top-2 rounded-md transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2 text-gray-800 w-8 h-8 flex items-center justify-center",e),"toast-close":"",...o,children:Fe(El,{className:"h-5 w-5"})}));sa.displayName=z.Close.displayName;var la=pt.forwardRef(({className:e,...o},t)=>Fe(z.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));la.displayName=z.Title.displayName;var ma=pt.forwardRef(({className:e,...o},t)=>Fe(z.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));ma.displayName=z.Description.displayName;import{jsx as Po,jsxs as ca}from"react/jsx-runtime";function Bl(){let{toasts:e}=ia();return ca(Pi,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return ca(na,{...n,children:[ca("div",{className:"grid gap-2",children:[t&&Po(la,{children:t}),a&&Po(ma,{children:a})]}),i,Po(sa,{})]},o)}),Po(ra,{})]})}import*as da from"react";import*as ce from"@radix-ui/react-tooltip";import{jsx as ki}from"react/jsx-runtime";var Vl=ce.Provider,Ol=ce.Root,Wl=ce.Trigger,Ri=da.forwardRef((e,o)=>ki(ce.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));Ri.displayName=ce.Arrow.displayName;var Ti=da.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>ki(ce.Content,{ref:i,sideOffset:t,className:r("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));Ti.displayName=ce.Content.displayName;import{forwardRef as $l,useEffect as Gl,useRef as jl,useState as Ul}from"react";import{QuestionMarkCircleIcon as Ql,XCircleIcon as Xl,XCircleIcon as ql}from"@heroicons/react/16/solid";import{jsx as Ue,jsxs as pa}from"react/jsx-runtime";var Zl=$l(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:d,onFocus:p,onClickClear:m,value:g,defaultValue:u,type:C="text",...M},j)=>{let[I,V]=Ul(!1),O=jl(null),F=te=>{te&&!I&&V(!0),!te&&I&&V(!1)},Ea=te=>{s&&F(te.target.value),d?.(te)},Fo=te=>{s&&F(te.target.value),p?.(te)},Jn=()=>{let te=O.current?.querySelector("input");te&&(m?.(te.value),te.value="",te.focus(),V(!1))};return Gl(()=>{F(u||g)},[g,u]),pa("div",{className:r(i,o&&"mobase-text-input-error"),ref:O,children:[pa("div",{className:"relative",children:[a&&Ue("span",{className:r("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),Ue("input",{disabled:e,type:C,ref:j,className:r("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",l===2&&"h-12 text-base",n),onChange:Ea,onFocus:Fo,value:g,defaultValue:u,...M}),s&&I&&Ue("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:Jn,children:Ue(Xl,{strokeWidth:2,width:20,height:20})})]}),t&&pa("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?Ue(ql,{width:16,height:16,className:"text-red-500"}):Ue(Ql,{width:16,height:16,className:"text-gray-500"}),Ue("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),Ue("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 It from"react";import*as ne from"@radix-ui/react-accordion";import{Che
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});import{MinusCircleIcon as Kl,PlusCircleIcon as Yl}from"@heroicons/react/24/outline";import{forwardRef as Jl,useState as em}from"react";import{jsx as Gt,jsxs as fa}from"react/jsx-runtime";var Si=Jl(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:d=!1,...p},m)=>{let[g,u]=em(i),R=()=>{let I=Math.min(g+a,t);u(I),n?.(I),l?.(I)},M=()=>{let I=Math.max(g-a,o);u(I),n?.(I),s?.(I)},j=I=>{let V=parseFloat(I.target.value);if(!isNaN(V)){let O=Math.max(Math.min(V,t),o);u(O),n?.(O)}};return fa("div",{ref:m,className:r("flex items-center ",e),children:[fa(xe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",d&&"text-gray-400 cursor-default"),variant:"transparent",onClick:M,disabled:d||g<=o,children:[Gt(Kl,{className:"w-7 h-7 "}),Gt("span",{className:"sr-only",children:"Decrease value"})]}),Gt("input",{type:"number",value:g,onChange:j,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:d,...p}),fa(xe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",d&&"text-gray-400 cursor-default"),variant:"transparent",onClick:R,disabled:d||g>=t,children:[Gt(Yl,{className:"w-7 h-7 "}),Gt("span",{className:"sr-only",children:"Increase value"})]})]})});Si.displayName="Stepper";import*as Ce from"react";import{ChevronDownIcon as Di,ChevronUpIcon as tm,CheckIcon as om,XCircleIcon as am}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as im}from"@heroicons/react/24/outline";import*as x from"@radix-ui/react-select";import{jsx as D,jsxs as jt}from"react/jsx-runtime";var rm=Ce.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},d)=>jt("div",{ref:d,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&D("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),D(x.Root,{disabled:s,...l,children:o}),a&&jt("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?D(am,{width:16,height:16}):D(im,{width:16,height:16}),D("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),nm=x.Value,Mi=Ce.forwardRef(({className:e,children:o,...t},a)=>jt(x.Trigger,{ref:a,className:r("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[D("div",{className:"line-clamp-1 text-left",children:o}),D(x.Icon,{asChild:!0,children:D(Di,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Mi.displayName=x.Trigger.displayName;var ga=Ce.forwardRef(({className:e,...o},t)=>D(x.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:D(tm,{className:"h-5 w-5"})}));ga.displayName=x.ScrollUpButton.displayName;var ua=Ce.forwardRef(({className:e,...o},t)=>D(x.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:D(Di,{className:"h-5 w-5"})}));ua.displayName=x.ScrollDownButton.displayName;var Ii=Ce.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>D(x.Portal,{children:jt(x.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[D(ga,{}),D(x.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),D(ua,{})]})}));Ii.displayName=x.Content.displayName;var sm=Ce.forwardRef(({className:e,children:o,...t},a)=>D(x.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Ai=Ce.forwardRef(({className:e,...o},t)=>D(x.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Ai.displayName=x.Label.displayName;var lm=Ce.forwardRef(({className:e,children:o,...t},a)=>jt(x.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[D("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:D(x.ItemIndicator,{children:D(om,{className:"h-4 w-4 text-pink-500"})})}),D(x.ItemText,{children:o})]})),Li=Ce.forwardRef(({className:e,...o},t)=>D(x.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));Li.displayName=x.Separator.displayName;import*as he from"react";import*as A from"@radix-ui/react-navigation-menu";import{cva as mm}from"class-variance-authority";import{ChevronDownIcon as cm}from"@heroicons/react/16/solid";import{jsx as Re,jsxs as um}from"react/jsx-runtime";var Ei=he.createContext(null),dm=({value:e,children:o})=>Re(Ei.Provider,{value:e,children:o}),pm=()=>{let e=he.useContext(Ei);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Co=he.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>Re(dm,{value:{alignDropdown:t},children:Re(A.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Co.displayName=A.Root.displayName;var Ro=he.forwardRef(({className:e,...o},t)=>Re(A.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ro.displayName=A.List.displayName;var To=A.Item,ko=mm(we({variant:"transparent",size:"sm"})),So=he.forwardRef(({className:e,children:o,...t},a)=>um(A.Trigger,{ref:a,className:r(ko(),"group px-2",e),...t,children:[o," ",Re(cm,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));So.displayName=A.Trigger.displayName;var Do=he.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=pm();return Re(A.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Do.displayName=A.Content.displayName;var Ut=A.Link,fm=he.forwardRef(({className:e,...o},t)=>Re("div",{className:r("absolute left-0 top-full flex justify-center"),children:Re(A.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));fm.displayName=A.Viewport.displayName;var gm=he.forwardRef(({className:e,...o},t)=>Re(A.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:Re("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));gm.displayName=A.Indicator.displayName;import*as _i from"react";import*as Qt from"@radix-ui/react-switch";import{jsx as Hi}from"react/jsx-runtime";var Fi=_i.forwardRef(({className:e,...o},t)=>Hi(Qt.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Hi(Qt.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Fi.displayName=Qt.Root.displayName;import*as ft from"react";import*as Qe from"@radix-ui/react-radio-group";import{Circle as vm}from"lucide-react";import{cva as zi}from"class-variance-authority";import{jsx as Xt}from"react/jsx-runtime";var bm=zi("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"}}),xm=zi("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Bi=ft.createContext({size:"medium"});function hm(){let e=ft.useContext(Bi);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Vi=ft.forwardRef(({className:e,size:o,...t},a)=>Xt(Bi.Provider,{value:{size:o},children:Xt(Qe.Root,{className:r("grid gap-2",e),...t,ref:a})}));Vi.displayName=Qe.Root.displayName;var Oi=ft.forwardRef(({className:e,...o},t)=>{let a=hm(),{size:i}=a??{};return Xt(Qe.Item,{ref:t,className:r(bm({size:i}),e),...o,children:Xt(Qe.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Xt(vm,{className:r(xm({size:i}))})})})});Oi.displayName=Qe.Item.displayName;import{jsx as Tt,jsxs as Wi}from"react/jsx-runtime";var ym=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Tt("li",{className:"",children:Tt(Ut,{asChild:!0,children:Wi("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&Tt("div",{className:"w-7 h-7 shrink-0 mt-1",children:Tt("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),Wi("div",{className:" ",children:[Tt("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&Tt("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},$i=ym;import{jsx as Xe,jsxs as Nm}from"react/jsx-runtime";var wm=({data:e,alignDropdown:o})=>Xe(Co,{alignDropdown:o,children:Xe(Ro,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Nm(To,{className:"relative",children:[Xe(So,{children:t.title}),Xe(Do,{children:Xe("ul",{className:r("grid w-[300px] p-2 grid-cols-1",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>Xe($i,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):Xe(To,{className:"relative",children:Xe(Ut,{href:t.url,className:ko(),...a,children:t.title})},t.id)})})}),Gi=wm;import{useEffect as Sm,useState as Dm}from"react";var Mo=[.24,.25,.05,1];import{useKey as Mm}from"react-use";import Xi from"next/router";import{jsx as qt,jsxs as ji}from"react/jsx-runtime";var Pm=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return qt("li",{className:"min-h-8",children:ji("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&qt("div",{className:"w-6 h-6 shrink-0",children:qt("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),ji("div",{className:" ",children:[qt("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&qt("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ui=Pm;import{motion as Cm}from"framer-motion";import{jsx as gt,jsxs as km}from"react/jsx-runtime";var Rm={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Mo}},exit:{opacity:0,transition:{duration:.05}}},Tm=({data:e})=>gt(tt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return gt(Cm.div,{variants:Rm,children:o.hasDropdown?km(ot,{value:o.id,children:[gt(at,{className:"py-3",children:o.title}),gt(it,{children:gt("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>gt(Ui,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):gt("a",{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:o.url,...t,children:o.title})},o.id)})}),Qi=Tm;import{motion as va,AnimatePresence as Im,LazyMotion as Am,domAnimation as Lm}from"framer-motion";import{jsx as y,jsxs as X}from"react/jsx-runtime";var Em=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Hm=({data:e,className:o})=>{let[t,a]=Dm(!1);Mm("Escape",()=>a(!1)),Sm(()=>{if(!t)return;let s=Em();function l(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Xi.events.on("routeChangeComplete",l),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),Xi.events.off("routeChangeComplete",l)}},[t]);let i={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Mo}},exit:{opacity:0,transition:{duration:.15}}};return X("div",{className:r(o),children:[X("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>a(!t),children:[y("span",{className:"sr-only",children:"Navigation"}),y(va.div,{animate:t?"hidden":"visible",variants:i,children:y("svg",{className:r("block w-7 h-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:y("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),y(va.div,{animate:t?"visible":"hidden",variants:i,children:y("svg",{className:r("block w-7 h-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:y("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),y(Am,{features:Lm,children:y(Im,{mode:"wait",children:t&&X(va.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed block w-full max-w-full z-50 px-5 bg-white left-0 right-0 bottom-0 overflow-y-auto top-[calc(var(--header-height)+1px)] pb-24 "),children:[y(Qi,{data:e}),X("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[y("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),X("div",{className:"flex flex-nowrap",children:[y("div",{className:"flex-initial",children:y("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:y("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),y("div",{className:"ml-3 flex-initial",children:y("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:y("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),y("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),X("ul",{className:"mb-2 text-sm text-gray-500",children:[X("li",{className:"mb-1",children:["Hotline :\xA0",y("a",{href:`tel:${Ie.Support.Hotline}`,className:"text-gray-600",children:Ie.Support.Hotline_Format})]}),X("li",{className:"mb-1",children:["Email :\xA0",y("a",{href:`mailto:${Ie.Support.Email}`,className:"text-gray-600",children:Ie.Support.Email})]})]}),y("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:X("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:[y("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:y("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:X("g",{children:[y("title",{children:"Asset 1"}),y("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 Kl,PlusCircleIcon as Yl}from"@heroicons/react/24/outline";import{forwardRef as Jl,useState as em}from"react";import{jsx as Gt,jsxs as fa}from"react/jsx-runtime";var Si=Jl(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:d=!1,...p},m)=>{let[g,u]=em(i),C=()=>{let I=Math.min(g+a,t);u(I),n?.(I),l?.(I)},M=()=>{let I=Math.max(g-a,o);u(I),n?.(I),s?.(I)},j=I=>{let V=parseFloat(I.target.value);if(!isNaN(V)){let O=Math.max(Math.min(V,t),o);u(O),n?.(O)}};return fa("div",{ref:m,className:r("flex items-center ",e),children:[fa(xe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",d&&"text-gray-400 cursor-default"),variant:"transparent",onClick:M,disabled:d||g<=o,children:[Gt(Kl,{className:"w-7 h-7 "}),Gt("span",{className:"sr-only",children:"Decrease value"})]}),Gt("input",{type:"number",value:g,onChange:j,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:d,...p}),fa(xe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",d&&"text-gray-400 cursor-default"),variant:"transparent",onClick:C,disabled:d||g>=t,children:[Gt(Yl,{className:"w-7 h-7 "}),Gt("span",{className:"sr-only",children:"Increase value"})]})]})});Si.displayName="Stepper";import*as Ce from"react";import{ChevronDownIcon as Di,ChevronUpIcon as tm,CheckIcon as om,XCircleIcon as am}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as im}from"@heroicons/react/24/outline";import*as x from"@radix-ui/react-select";import{jsx as D,jsxs as jt}from"react/jsx-runtime";var rm=Ce.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},d)=>jt("div",{ref:d,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&D("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),D(x.Root,{disabled:s,...l,children:o}),a&&jt("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?D(am,{width:16,height:16}):D(im,{width:16,height:16}),D("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),nm=x.Value,Mi=Ce.forwardRef(({className:e,children:o,...t},a)=>jt(x.Trigger,{ref:a,className:r("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[D("div",{className:"line-clamp-1 text-left",children:o}),D(x.Icon,{asChild:!0,children:D(Di,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Mi.displayName=x.Trigger.displayName;var ga=Ce.forwardRef(({className:e,...o},t)=>D(x.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:D(tm,{className:"h-5 w-5"})}));ga.displayName=x.ScrollUpButton.displayName;var ua=Ce.forwardRef(({className:e,...o},t)=>D(x.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:D(Di,{className:"h-5 w-5"})}));ua.displayName=x.ScrollDownButton.displayName;var Ii=Ce.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>D(x.Portal,{children:jt(x.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[D(ga,{}),D(x.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),D(ua,{})]})}));Ii.displayName=x.Content.displayName;var sm=Ce.forwardRef(({className:e,children:o,...t},a)=>D(x.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Ai=Ce.forwardRef(({className:e,...o},t)=>D(x.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Ai.displayName=x.Label.displayName;var lm=Ce.forwardRef(({className:e,children:o,...t},a)=>jt(x.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[D("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:D(x.ItemIndicator,{children:D(om,{className:"h-4 w-4 text-pink-500"})})}),D(x.ItemText,{children:o})]})),Li=Ce.forwardRef(({className:e,...o},t)=>D(x.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));Li.displayName=x.Separator.displayName;import*as he from"react";import*as A from"@radix-ui/react-navigation-menu";import{cva as mm}from"class-variance-authority";import{ChevronDownIcon as cm}from"@heroicons/react/16/solid";import{jsx as Re,jsxs as um}from"react/jsx-runtime";var Ei=he.createContext(null),dm=({value:e,children:o})=>Re(Ei.Provider,{value:e,children:o}),pm=()=>{let e=he.useContext(Ei);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Co=he.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>Re(dm,{value:{alignDropdown:t},children:Re(A.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Co.displayName=A.Root.displayName;var Ro=he.forwardRef(({className:e,...o},t)=>Re(A.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ro.displayName=A.List.displayName;var To=A.Item,ko=mm(we({variant:"transparent",size:"sm"})),So=he.forwardRef(({className:e,children:o,...t},a)=>um(A.Trigger,{ref:a,className:r(ko(),"group px-2",e),...t,children:[o," ",Re(cm,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));So.displayName=A.Trigger.displayName;var Do=he.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=pm();return Re(A.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Do.displayName=A.Content.displayName;var Ut=A.Link,fm=he.forwardRef(({className:e,...o},t)=>Re("div",{className:r("absolute left-0 top-full flex justify-center"),children:Re(A.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));fm.displayName=A.Viewport.displayName;var gm=he.forwardRef(({className:e,...o},t)=>Re(A.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:Re("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));gm.displayName=A.Indicator.displayName;import*as _i from"react";import*as Qt from"@radix-ui/react-switch";import{jsx as Hi}from"react/jsx-runtime";var Fi=_i.forwardRef(({className:e,...o},t)=>Hi(Qt.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Hi(Qt.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Fi.displayName=Qt.Root.displayName;import*as ft from"react";import*as Qe from"@radix-ui/react-radio-group";import{Circle as vm}from"lucide-react";import{cva as zi}from"class-variance-authority";import{jsx as Xt}from"react/jsx-runtime";var bm=zi("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"}}),xm=zi("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Bi=ft.createContext({size:"medium"});function hm(){let e=ft.useContext(Bi);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Vi=ft.forwardRef(({className:e,size:o,...t},a)=>Xt(Bi.Provider,{value:{size:o},children:Xt(Qe.Root,{className:r("grid gap-2",e),...t,ref:a})}));Vi.displayName=Qe.Root.displayName;var Oi=ft.forwardRef(({className:e,...o},t)=>{let a=hm(),{size:i}=a??{};return Xt(Qe.Item,{ref:t,className:r(bm({size:i}),e),...o,children:Xt(Qe.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Xt(vm,{className:r(xm({size:i}))})})})});Oi.displayName=Qe.Item.displayName;import{jsx as Tt,jsxs as Wi}from"react/jsx-runtime";var ym=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Tt("li",{className:"",children:Tt(Ut,{asChild:!0,children:Wi("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&Tt("div",{className:"w-7 h-7 shrink-0 mt-1",children:Tt("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),Wi("div",{className:" ",children:[Tt("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&Tt("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},$i=ym;import{jsx as Xe,jsxs as Nm}from"react/jsx-runtime";var wm=({data:e,alignDropdown:o})=>Xe(Co,{alignDropdown:o,children:Xe(Ro,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Nm(To,{className:"relative",children:[Xe(So,{children:t.title}),Xe(Do,{children:Xe("ul",{className:r("grid w-[300px] p-2 grid-cols-1",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>Xe($i,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):Xe(To,{className:"relative",children:Xe(Ut,{href:t.url,className:ko(),...a,children:t.title})},t.id)})})}),Gi=wm;import{useEffect as Sm,useState as Dm}from"react";var Mo=[.24,.25,.05,1];import{useKey as Mm}from"react-use";import Xi from"next/router";import{jsx as qt,jsxs as ji}from"react/jsx-runtime";var Pm=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return qt("li",{className:"min-h-8",children:ji("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&qt("div",{className:"w-6 h-6 shrink-0",children:qt("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),ji("div",{className:" ",children:[qt("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&qt("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ui=Pm;import{motion as Cm}from"framer-motion";import{jsx as gt,jsxs as km}from"react/jsx-runtime";var Rm={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Mo}},exit:{opacity:0,transition:{duration:.05}}},Tm=({data:e})=>gt(tt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return gt(Cm.div,{variants:Rm,children:o.hasDropdown?km(ot,{value:o.id,children:[gt(at,{className:"py-3",children:o.title}),gt(it,{children:gt("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>gt(Ui,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):gt("a",{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:o.url,...t,children:o.title})},o.id)})}),Qi=Tm;import{motion as va,AnimatePresence as Im,LazyMotion as Am,domAnimation as Lm}from"framer-motion";import{jsx as y,jsxs as X}from"react/jsx-runtime";var Em=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Hm=({data:e,className:o})=>{let[t,a]=Dm(!1);Mm("Escape",()=>a(!1)),Sm(()=>{if(!t)return;let s=Em();function l(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Xi.events.on("routeChangeComplete",l),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),Xi.events.off("routeChangeComplete",l)}},[t]);let i={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Mo}},exit:{opacity:0,transition:{duration:.15}}};return X("div",{className:r(o),children:[X("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>a(!t),children:[y("span",{className:"sr-only",children:"Navigation"}),y(va.div,{animate:t?"hidden":"visible",variants:i,children:y("svg",{className:r("block w-7 h-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:y("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),y(va.div,{animate:t?"visible":"hidden",variants:i,children:y("svg",{className:r("block w-7 h-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:y("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),y(Am,{features:Lm,children:y(Im,{mode:"wait",children:t&&X(va.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed block w-full max-w-full z-50 px-5 bg-white left-0 right-0 bottom-0 overflow-y-auto top-[calc(var(--header-height)+1px)] pb-24 "),children:[y(Qi,{data:e}),X("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[y("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),X("div",{className:"flex flex-nowrap",children:[y("div",{className:"flex-initial",children:y("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:y("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),y("div",{className:"ml-3 flex-initial",children:y("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:y("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),y("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),X("ul",{className:"mb-2 text-sm text-gray-500",children:[X("li",{className:"mb-1",children:["Hotline :\xA0",y("a",{href:`tel:${Ie.Support.Hotline}`,className:"text-gray-600",children:Ie.Support.Hotline_Format})]}),X("li",{className:"mb-1",children:["Email :\xA0",y("a",{href:`mailto:${Ie.Support.Email}`,className:"text-gray-600",children:Ie.Support.Email})]})]}),y("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:X("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:[y("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:y("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:X("g",{children:[y("title",{children:"Asset 1"}),y("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`}),y("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 It from"react";import*as ne from"@radix-ui/react-accordion";import{Che
129
129
  footer .button-download {
130
130
  max-width: 150px;
131
131
  }
132
- `})]})},Yi=Vm;import{jsx as Ji}from"react/jsx-runtime";var Wm=({className:e,primaryMenu:o,secondaryMenu:t})=>Ji("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Ji(Yi,{primaryMenu:o,secondaryMenu:t})});import*as vt from"react";import{jsx as kt}from"react/jsx-runtime";var er=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));er.displayName="Card";var tr=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));tr.displayName="CardHeader";var or=vt.forwardRef(({className:e,...o},t)=>kt("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));or.displayName="CardTitle";var ar=vt.forwardRef(({className:e,...o},t)=>kt("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));ar.displayName="CardDescription";var ir=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("p-6 pt-0",e),...o}));ir.displayName="CardContent";var rr=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));rr.displayName="CardFooter";import*as de from"react";import{Command as Z}from"cmdk";import{XCircleIcon as $m,MagnifyingGlassIcon as Gm}from"@heroicons/react/16/solid";import{jsx as ae,jsxs as Um}from"react/jsx-runtime";var ba=de.forwardRef(({className:e,...o},t)=>ae(Z,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ba.displayName=Z.displayName;var jm=({children:e,...o})=>ae(rt,{...o,children:ae(Oe,{className:"overflow-hidden p-0 shadow-lg",children:ae(ba,{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})})}),nr=de.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=de.useRef(null),[s,l]=de.useState(""),d=()=>{!s||s?.length<=0||(l(""),o?.(s))};return Um("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[ae(Gm,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),ae(Z.Input,{ref:i,className:r("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),ae($m,{onClick:d,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});nr.displayName=Z.Input.displayName;var sr=de.forwardRef(({className:e,...o},t)=>ae(Z.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));sr.displayName=Z.List.displayName;var lr=de.forwardRef((e,o)=>ae(Z.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));lr.displayName=Z.Empty.displayName;var mr=de.forwardRef(({className:e,...o},t)=>ae(Z.Group,{ref:t,className:r("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));mr.displayName=Z.Group.displayName;var cr=de.forwardRef(({className:e,...o},t)=>ae(Z.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));cr.displayName=Z.Separator.displayName;var dr=de.forwardRef(({className:e,children:o,...t},a)=>ae(Z.Item,{ref:a,className:r("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));dr.displayName=Z.Item.displayName;var pr=({className:e,...o})=>ae("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});pr.displayName="CommandShortcut";import{ChevronDownIcon as Qm}from"@heroicons/react/16/solid";import{jsx as Io,jsxs as fr}from"react/jsx-runtime";var Xm=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>fr("div",{className:"relative",children:[fr(Ot,{className:r("focus-visible:outline-none w-72 focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 select-mobase-button bg-white ring-0 transition-all 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",n===2&&"h-12 text-base",e),children:[o||a||i,Io(Qm,{className:"h-4 w-4 text-gray-700 flex-none"})]}),t&&Io("span",{className:"absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",children:t})]}),qm=({children:e,className:o})=>Io(Ct,{className:r("!p-0 border-none",o),children:e}),Zm=({open:e,onOpenChange:o,children:t})=>Io(Vt,{open:e,onOpenChange:o,children:t});import{cva as ur}from"class-variance-authority";import{forwardRef as Km}from"react";import{InformationCircleIcon as Ym}from"@heroicons/react/24/outline";import{jsx as xa,jsxs as gr}from"react/jsx-runtime";var Jm=ur("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"}}),ec=ur("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"}}),tc=Km(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...d},p)=>gr("div",{ref:p,className:r("",i,Jm({typeDiv:e,disabled:n})),...d,children:[gr("div",{className:"flex items-center space-x-2",children:[l||xa(Ym,{className:r(ec({typeIcon:e,disabled:n})),width:20,height:20}),o&&xa("div",{children:o})]}),t&&xa(be,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as oc,useEffect as ac,useRef as ic,useState as rc}from"react";import{MagnifyingGlassIcon as nc}from"@heroicons/react/20/solid";import{XCircleIcon as sc}from"@heroicons/react/24/outline";import{jsx as St,jsxs as vr}from"react/jsx-runtime";var lc=oc(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:d,type:p="text",...m},g)=>{let[u,R]=rc(!1),M=ic(null),j=F=>{F&&!u&&R(!0),!F&&u&&R(!1)},I=F=>{j(F.target.value),i?.(F)},V=F=>{j(F.target.value),n?.(F)},O=()=>{let F=M.current?.querySelector("input");F&&(s?.(F.value),F.value="",F.focus(),R(!1))};return ac(()=>{j(d||l)},[l,d]),vr("div",{className:r(o),ref:M,children:[vr("div",{className:"relative flex items-center",children:[St("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:St(nc,{className:"w-4 h-4 text-gray-500"})}),St("input",{disabled:e,type:p,ref:g,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:I,onFocus:V,value:l,defaultValue:d,...m}),u&&St("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:O,children:St(sc,{strokeWidth:2,width:20,height:20})})]}),St("style",{children:`
132
+ `})]})},Yi=Vm;import{jsx as Ji}from"react/jsx-runtime";var Wm=({className:e,primaryMenu:o,secondaryMenu:t})=>Ji("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Ji(Yi,{primaryMenu:o,secondaryMenu:t})});import*as vt from"react";import{jsx as kt}from"react/jsx-runtime";var er=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));er.displayName="Card";var tr=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));tr.displayName="CardHeader";var or=vt.forwardRef(({className:e,...o},t)=>kt("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));or.displayName="CardTitle";var ar=vt.forwardRef(({className:e,...o},t)=>kt("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));ar.displayName="CardDescription";var ir=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("p-6 pt-0",e),...o}));ir.displayName="CardContent";var rr=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));rr.displayName="CardFooter";import*as de from"react";import{Command as Z}from"cmdk";import{XCircleIcon as $m,MagnifyingGlassIcon as Gm}from"@heroicons/react/16/solid";import{jsx as ae,jsxs as Um}from"react/jsx-runtime";var ba=de.forwardRef(({className:e,...o},t)=>ae(Z,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ba.displayName=Z.displayName;var jm=({children:e,...o})=>ae(rt,{...o,children:ae(Oe,{className:"overflow-hidden p-0 shadow-lg",children:ae(ba,{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})})}),nr=de.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=de.useRef(null),[s,l]=de.useState(""),d=()=>{!s||s?.length<=0||(l(""),o?.(s))};return Um("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[ae(Gm,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),ae(Z.Input,{ref:i,className:r("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),ae($m,{onClick:d,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});nr.displayName=Z.Input.displayName;var sr=de.forwardRef(({className:e,...o},t)=>ae(Z.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));sr.displayName=Z.List.displayName;var lr=de.forwardRef((e,o)=>ae(Z.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));lr.displayName=Z.Empty.displayName;var mr=de.forwardRef(({className:e,...o},t)=>ae(Z.Group,{ref:t,className:r("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));mr.displayName=Z.Group.displayName;var cr=de.forwardRef(({className:e,...o},t)=>ae(Z.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));cr.displayName=Z.Separator.displayName;var dr=de.forwardRef(({className:e,children:o,...t},a)=>ae(Z.Item,{ref:a,className:r("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));dr.displayName=Z.Item.displayName;var pr=({className:e,...o})=>ae("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});pr.displayName="CommandShortcut";import{ChevronDownIcon as Qm}from"@heroicons/react/16/solid";import{jsx as Io,jsxs as fr}from"react/jsx-runtime";var Xm=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>fr("div",{className:"relative",children:[fr(Ot,{className:r("focus-visible:outline-none w-72 focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 select-mobase-button bg-white ring-0 transition-all 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",n===2&&"h-12 text-base",e),children:[o||a||i,Io(Qm,{className:"h-4 w-4 text-gray-700 flex-none"})]}),t&&Io("span",{className:"absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",children:t})]}),qm=({children:e,className:o})=>Io(Ct,{className:r("!p-0 border-none",o),children:e}),Zm=({open:e,onOpenChange:o,children:t})=>Io(Vt,{open:e,onOpenChange:o,children:t});import{cva as ur}from"class-variance-authority";import{forwardRef as Km}from"react";import{InformationCircleIcon as Ym}from"@heroicons/react/24/outline";import{jsx as xa,jsxs as gr}from"react/jsx-runtime";var Jm=ur("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"}}),ec=ur("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"}}),tc=Km(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...d},p)=>gr("div",{ref:p,className:r("",i,Jm({typeDiv:e,disabled:n})),...d,children:[gr("div",{className:"flex items-center space-x-2",children:[l||xa(Ym,{className:r(ec({typeIcon:e,disabled:n})),width:20,height:20}),o&&xa("div",{children:o})]}),t&&xa(be,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as oc,useEffect as ac,useRef as ic,useState as rc}from"react";import{MagnifyingGlassIcon as nc}from"@heroicons/react/20/solid";import{XCircleIcon as sc}from"@heroicons/react/24/outline";import{jsx as St,jsxs as vr}from"react/jsx-runtime";var lc=oc(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:d,type:p="text",...m},g)=>{let[u,C]=rc(!1),M=ic(null),j=F=>{F&&!u&&C(!0),!F&&u&&C(!1)},I=F=>{j(F.target.value),i?.(F)},V=F=>{j(F.target.value),n?.(F)},O=()=>{let F=M.current?.querySelector("input");F&&(s?.(F.value),F.value="",F.focus(),C(!1))};return ac(()=>{j(d||l)},[l,d]),vr("div",{className:r(o),ref:M,children:[vr("div",{className:"relative flex items-center",children:[St("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:St(nc,{className:"w-4 h-4 text-gray-500"})}),St("input",{disabled:e,type:p,ref:g,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:I,onFocus:V,value:l,defaultValue:d,...m}),u&&St("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:O,children:St(sc,{strokeWidth:2,width:20,height:20})})]}),St("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 ie from"@radix-ui/react-dialog";import hr,{useContext as mc,useEffect as xr,useState as ha}from"react";import{X as cc}from"lucide-react";import dc from"lodash";import*as br from"@radix-ui/react-aspect-ratio";var pe=br.Root;import{jsx as $,jsxs as ze}from"react/jsx-runtime";var yr=hr.createContext(void 0);function wr(){let e=mc(yr);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var ya=({children:e,open:o,onOpenChange:t,className:a})=>$(yr.Provider,{value:{open:o,onOpenChange:t},children:$(ie.Root,{open:o,onOpenChange:t,children:$("div",{className:r("lightbox-gallery",a),children:e})})}),pc=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=wr(),d=()=>{n?.(),l&&l(!0)};return ze(ie.Trigger,{className:r("",a),onClick:d,children:[e,$(pe,{ratio:s,className:"rounded-lg cursor-pointer",children:$("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},Nr=hr.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=wr(),n=()=>{i&&i(!1)};return ze(ie.Portal,{children:[$(ie.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),ze(ie.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,ze(ie.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:[$(cc,{className:"h-4 w-4 mt-0.5"}),$("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Nr.displayName=ie.Content.displayName;var wa=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=ha(""),[l,d]=ha(),[p,m]=ha(0);xr(()=>{l&&(m(l.selectedScrollSnap()+1),l.on("select",()=>{m(l.selectedScrollSnap()+1)}))},[l]);let g=u=>{let R=dc.filter(e,(j,I)=>I===(u>0?u-1:u)),M=R.length>0?R[0]?.titleImage:"";s(M)};return xr(()=>{g(p)},[p]),ze(Nr,{className:"flex py-0",children:[ze("div",{className:" flex-1 relative",children:[ze("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[p||1," / ",e?.length]}),ze(go,{opts:{startIndex:o},setApi:d,className:"w-full h-full relative",children:[$(uo,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,R)=>$(vo,{className:"pl-6 md:pl-4",children:ze("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[$("div",{className:"flex-1 relative",children:$("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),$("div",{className:"flex-0",children:$("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:$("div",{className:"line-clamp-3",children:n})})})]})},R))}),$(bo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),$(xo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&$("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as qe from"react";import*as Ze from"@radix-ui/react-radio-group";import{Circle as fc}from"lucide-react";import*as Zt from"@radix-ui/react-checkbox";import{CheckIcon as gc}from"@heroicons/react/16/solid";import{jsx as Te,jsxs as kr}from"react/jsx-runtime";var Pr=qe.createContext({hideIndicator:!1});function uc(){let e=qe.useContext(Pr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Cr=qe.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>Te(Pr.Provider,{value:{hideIndicator:o},children:Te(Ze.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Cr.displayName=Ze.Root.displayName;var Rr=qe.forwardRef(({className:e,children:o,...t},a)=>{let i=uc(),{hideIndicator:n}=i??{};return kr(Ze.Item,{ref:a,className:r("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[Te("div",{className:"flex-1 min-w-0",children:o}),!n&&Te("div",{className:r("flex-none aspect-square h-4 w-4 rounded-full border-2 border-gray-300 group-disabled:bg-gray-200 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:text-white group-disabled:data-[state=checked]:bg-gray-100 group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:border-none group-disabled:cursor-default has"),children:Te(Ze.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Te(fc,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Rr.displayName=Ze.Item.displayName;var Tr=qe.forwardRef(({className:e,children:o,...t},a)=>kr(Zt.Root,{ref:a,className:r("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[Te("div",{className:"flex-1 min-w-0",children:o}),Te("div",{className:"h-4 w-4 shrink-0 rounded border-2 group-disabled:bg-gray-300 border-gray-300 ring-offset-background group-disabled:cursor-default group-disabled:bg-gray-100 group-data-[state=checked]:border-none group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:Te(Zt.Indicator,{className:r("flex items-center justify-center text-current"),children:Te(gc,{className:"h-4 w-4"})})})]}));Tr.displayName=Zt.Root.displayName;import{cva as vc}from"class-variance-authority";import{jsx as xc}from"react/jsx-runtime";var Sr=vc("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 bc({className:e,variant:o,...t}){return xc("div",{className:r(Sr({variant:o}),e),...t})}import*as Mr from"react";import*as Kt from"@radix-ui/react-progress";import{cva as Ir}from"class-variance-authority";import{jsx as Dr}from"react/jsx-runtime";var hc=Ir("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"}}),yc=Ir("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"}}),Ar=Mr.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>Dr(Kt.Root,{ref:s,className:r("",yc({size:a}),e),...n,children:Dr(Kt.Indicator,{className:r("",hc({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Ar.displayName=Kt.Root.displayName;import{jsx as Nc}from"react/jsx-runtime";function wc({className:e,...o}){return Nc("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Cc,jsx as bt,jsxs as Lr}from"react/jsx-runtime";function Pc({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return bt("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return Lr("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,d)=>bt("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e])},d)),bt("style",{children:`
139
+ `})]})});import*as ie from"@radix-ui/react-dialog";import hr,{useContext as mc,useEffect as xr,useState as ha}from"react";import{X as cc}from"lucide-react";import dc from"lodash";import*as br from"@radix-ui/react-aspect-ratio";var pe=br.Root;import{jsx as $,jsxs as ze}from"react/jsx-runtime";var yr=hr.createContext(void 0);function wr(){let e=mc(yr);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var ya=({children:e,open:o,onOpenChange:t,className:a})=>$(yr.Provider,{value:{open:o,onOpenChange:t},children:$(ie.Root,{open:o,onOpenChange:t,children:$("div",{className:r("lightbox-gallery",a),children:e})})}),pc=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=wr(),d=()=>{n?.(),l&&l(!0)};return ze(ie.Trigger,{className:r("",a),onClick:d,children:[e,$(pe,{ratio:s,className:"rounded-lg cursor-pointer",children:$("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},Nr=hr.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=wr(),n=()=>{i&&i(!1)};return ze(ie.Portal,{children:[$(ie.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),ze(ie.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,ze(ie.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:[$(cc,{className:"h-4 w-4 mt-0.5"}),$("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Nr.displayName=ie.Content.displayName;var wa=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=ha(""),[l,d]=ha(),[p,m]=ha(0);xr(()=>{l&&(m(l.selectedScrollSnap()+1),l.on("select",()=>{m(l.selectedScrollSnap()+1)}))},[l]);let g=u=>{let C=dc.filter(e,(j,I)=>I===(u>0?u-1:u)),M=C.length>0?C[0]?.titleImage:"";s(M)};return xr(()=>{g(p)},[p]),ze(Nr,{className:"flex py-0",children:[ze("div",{className:" flex-1 relative",children:[ze("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[p||1," / ",e?.length]}),ze(go,{opts:{startIndex:o},setApi:d,className:"w-full h-full relative",children:[$(uo,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,C)=>$(vo,{className:"pl-6 md:pl-4",children:ze("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[$("div",{className:"flex-1 relative",children:$("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),$("div",{className:"flex-0",children:$("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:$("div",{className:"line-clamp-3",children:n})})})]})},C))}),$(bo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),$(xo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&$("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as qe from"react";import*as Ze from"@radix-ui/react-radio-group";import{Circle as fc}from"lucide-react";import*as Zt from"@radix-ui/react-checkbox";import{CheckIcon as gc}from"@heroicons/react/16/solid";import{jsx as Te,jsxs as kr}from"react/jsx-runtime";var Pr=qe.createContext({hideIndicator:!1});function uc(){let e=qe.useContext(Pr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Cr=qe.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>Te(Pr.Provider,{value:{hideIndicator:o},children:Te(Ze.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Cr.displayName=Ze.Root.displayName;var Rr=qe.forwardRef(({className:e,children:o,...t},a)=>{let i=uc(),{hideIndicator:n}=i??{};return kr(Ze.Item,{ref:a,className:r("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[Te("div",{className:"flex-1 min-w-0",children:o}),!n&&Te("div",{className:r("flex-none aspect-square h-4 w-4 rounded-full border-2 border-gray-300 group-disabled:bg-gray-200 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:text-white group-disabled:data-[state=checked]:bg-gray-100 group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:border-none group-disabled:cursor-default has"),children:Te(Ze.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Te(fc,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Rr.displayName=Ze.Item.displayName;var Tr=qe.forwardRef(({className:e,children:o,...t},a)=>kr(Zt.Root,{ref:a,className:r("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[Te("div",{className:"flex-1 min-w-0",children:o}),Te("div",{className:"h-4 w-4 shrink-0 rounded border-2 group-disabled:bg-gray-300 border-gray-300 ring-offset-background group-disabled:cursor-default group-disabled:bg-gray-100 group-data-[state=checked]:border-none group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:Te(Zt.Indicator,{className:r("flex items-center justify-center text-current"),children:Te(gc,{className:"h-4 w-4"})})})]}));Tr.displayName=Zt.Root.displayName;import{cva as vc}from"class-variance-authority";import{jsx as xc}from"react/jsx-runtime";var Sr=vc("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 bc({className:e,variant:o,...t}){return xc("div",{className:r(Sr({variant:o}),e),...t})}import*as Mr from"react";import*as Kt from"@radix-ui/react-progress";import{cva as Ir}from"class-variance-authority";import{jsx as Dr}from"react/jsx-runtime";var hc=Ir("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"}}),yc=Ir("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"}}),Ar=Mr.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>Dr(Kt.Root,{ref:s,className:r("",yc({size:a}),e),...n,children:Dr(Kt.Indicator,{className:r("",hc({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Ar.displayName=Kt.Root.displayName;import{jsx as Nc}from"react/jsx-runtime";function wc({className:e,...o}){return Nc("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Cc,jsx as bt,jsxs as Lr}from"react/jsx-runtime";function Pc({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return bt("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return Lr("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,d)=>bt("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},d)),bt("style",{children:`
140
140
  .spinner_dots span {
141
141
  animation-name: spinner-dots;
142
142
  animation-duration: 1.4s;
@@ -163,7 +163,7 @@ import*as It from"react";import*as ne from"@radix-ui/react-accordion";import{Che
163
163
  opacity: .2;
164
164
  }
165
165
  }
166
- `})]});case"default":default:return Lr(Cc,{children:[bt("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:bt("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e]),children:[...Array(12)].map((l,d)=>bt("div",{className:r(`spinner_bar child-${d+1}`,o)},d))})}),bt("style",{children:`
166
+ `})]});case"default":default:return Lr(Cc,{children:[bt("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:bt("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e],t),children:[...Array(12)].map((l,d)=>bt("div",{className:r(`spinner_bar child-${d+1}`,o)},d))})}),bt("style",{children:`
167
167
  .spinner_bar {
168
168
  animation: spinner_spin 1.2s linear infinite;
169
169
  border-radius: 20px;
@@ -243,7 +243,7 @@ import*as It from"react";import*as ne from"@radix-ui/react-accordion";import{Che
243
243
  opacity: 0.15;
244
244
  }
245
245
  }
246
- `})]})}})()})}import*as Er from"react";import*as ke from"@radix-ui/react-slider";import{jsx as Ke,jsxs as Rc}from"react/jsx-runtime";var Hr=Er.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>Rc(ke.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Ke(ke.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Ke(ke.Range,{className:"absolute h-full bg-pink-500"})}),Ke(ke.Thumb,{className:"group relative",children:Ke("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:o&&Ke("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-sm rounded-lg px-2.5 py-1.5 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-2 whitespace-nowrap",children:o})})}),Ke(ke.Thumb,{className:"group relative",children:Ke("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:t&&Ke("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-sm rounded-lg px-2.5 py-1.5 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-2 whitespace-nowrap",children:t})})})]}));Hr.displayName=ke.Root.displayName;import{forwardRef as Vc}from"react";import{Fragment as Dc,jsx as fe,jsxs as Ao}from"react/jsx-runtime";var Tc=({author:e=""})=>fe("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),kc=({author:e,avatar:o})=>fe("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?fe("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):fe(Tc,{author:e})});function Sc({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return fe(Dc,{children:Ao("div",{className:"flex relative items-center space-x-3",children:[fe(kc,{avatar:e,author:o}),Ao("div",{className:"flex flex-col",children:[o&&fe("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Ao("div",{className:"flex items-center space-x-2 text-xs",children:[t&&fe("div",{className:"text-gray-400",children:t}),a&&Ao("div",{className:"flex items-center space-x-2",children:[fe("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),fe("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&fe("div",{className:"absolute right-1 top-0",children:fe("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var _r=Sc;import{useState as Or}from"react";import{StarIcon as Mc}from"@heroicons/react/20/solid";import{jsx as Fr,jsxs as zr}from"react/jsx-runtime";var Ic={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!"},Ac={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 Lc({point:e,max:o,className:t}){let a=o>5?Ic[e||10]:Ac[e||5];return zr("div",{className:r("flex items-center space-x-1",t),children:[Fr(Mc,{className:"w-5 h-5 text-yellow-500"}),Fr("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),zr("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Br=Lc;import{useState as Ec}from"react";import Vr from"html-react-parser";import{jsx as Hc,jsxs as _c}from"react/jsx-runtime";var Na=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=Ec(!0),d=()=>{l(!s)},p=(m,g,u=" ")=>m.length<=g?m:m.substring(0,m.lastIndexOf(u,g));return _c("div",{className:r(n),children:[s?Vr(p(e,o)):Vr(e),e.length>o&&Hc("span",{onClick:d,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as xt,jsxs as Wr}from"react/jsx-runtime";function Fc({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=Or(0),[d,p]=Or(!1),m=g=>{p(!0),l(g)};return Wr("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&xt(Br,{className:"mb-0.5",point:i.point,max:i.max}),e&&xt(Na,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&xt("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>xt("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:g}))}),o?.length>0&&Wr(ya,{open:d,onOpenChange:p,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((g,u)=>xt(pe,{onClick:()=>m(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:xt("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),xt(wa,{activeSlideIndex:s,images:o?.map((g,u)=>({url:g.url,titleImage:g.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var $r=Fc;import{jsx as Bc}from"react/jsx-runtime";function zc({actions:e=[]}){return Bc("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Gr=zc;import{jsx as Lo,jsxs as Wc}from"react/jsx-runtime";var Oc=Vc(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:d,isReply:p,children:m,commentSideBar:g,isOutStanding:u,limitContent:R=260},M)=>Wc("div",{ref:M,className:r("",p?"ml-4 py-4":"py-5"),children:[Lo(_r,{avatar:e,author:o,time:t,statusMessage:d,isOutStanding:u}),Lo($r,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:R}),l&&l?.filter(Boolean)?.length>0&&Lo(Gr,{actions:l.filter(Boolean)}),m&&Lo("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:m})]}));import*as Ye from"react";import{cva as $c}from"class-variance-authority";import{CheckIcon as Gc}from"@heroicons/react/16/solid";import{XIcon as jc}from"lucide-react";import{jsx as K,jsxs as Eo}from"react/jsx-runtime";var Uc=$c("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-500 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),jr=Ye.createContext("default");function Qc(){let e=Ye.useContext(jr);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Xc=Ye.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?K(jc,{className:s}):Eo("div",{children:[e==="iconStep"&&K("div",{className:s,children:o}),e==="numberStep"&&K("div",{children:t}),e==="default"&&(n==="completed"?K(Gc,{className:s}):K("div",{children:t}))]})}),qc=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Ye.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return K("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Zc=({step:e,state:o="default",size:t="default",className:a,title:i,description:n,lastStep:s,fristStep:l,icon:d,isError:p,onValueChangeStep:m,...g})=>{let u=Qc();return Eo("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[Eo("div",{className:"flex w-full items-center justify-center gap-2",children:[K("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),K("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Uc({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",a),...g,children:K(Xc,{type:u,icon:d,stepNumber:e,size:t,isError:p,state:o})}),K("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",s&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Eo("div",{className:"text-center w-full flex flex-col items-center mt-2 px-0.5",children:[i&&K("div",{className:"text-xs font-bold text-slate-900 ",children:i}),n&&K("div",{className:"text-xs text-gray-500 ",children:n})]})]})},Kc=({children:e,className:o,type:t="numberStep",...a})=>K(jr.Provider,{value:t,children:K("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as Y from"react";import{Slot as td}from"@radix-ui/react-slot";import{Controller as od,FormProvider as ad,useFormContext as id}from"react-hook-form";import*as Ur from"react";import*as Pa from"@radix-ui/react-label";import{cva as Yc}from"class-variance-authority";import{jsx as ed}from"react/jsx-runtime";var Jc=Yc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ho=Ur.forwardRef(({className:e,...o},t)=>ed(Pa.Root,{ref:t,className:r(Jc(),e),...o}));Ho.displayName=Pa.Root.displayName;import{jsx as Je}from"react/jsx-runtime";var rd=ad,Qr=Y.createContext({}),nd=({...e})=>Je(Qr.Provider,{value:{name:e.name},children:Je(od,{...e})}),Yt=()=>{let e=Y.useContext(Qr),o=Y.useContext(Xr),{getFieldState:t,formState:a}=id(),i=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},Xr=Y.createContext({}),qr=Y.forwardRef(({className:e,...o},t)=>{let a=Y.useId();return Je(Xr.Provider,{value:{id:a},children:Je("div",{ref:t,className:r("space-y-2",e),...o})})});qr.displayName="FormItem";var Zr=Y.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=Yt();return Je(Ho,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});Zr.displayName="FormLabel";var Kr=Y.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=Yt();return Je(td,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});Kr.displayName="FormControl";var Yr=Y.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=Yt();return Je("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});Yr.displayName="FormDescription";var Jr=Y.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=Yt(),s=i?String(i?.message):o;return s?Je("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});Jr.displayName="FormMessage";import*as Be from"react";import*as b from"@radix-ui/react-dropdown-menu";import{ChevronRight as sd,Check as ld}from"lucide-react";import{jsx as q,jsxs as Jt}from"react/jsx-runtime";var md=b.Root,cd=b.Trigger,dd=b.Group,pd=b.Portal,fd=b.Sub,gd=b.RadioGroup,en=Be.forwardRef(({className:e,inset:o,children:t,...a},i)=>Jt(b.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,q(sd,{className:"ml-auto"})]}));en.displayName=b.SubTrigger.displayName;var tn=Be.forwardRef(({className:e,...o},t)=>q(b.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));tn.displayName=b.SubContent.displayName;var on=Be.forwardRef(({className:e,sideOffset:o=4,...t},a)=>q(b.Portal,{children:q(b.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));on.displayName=b.Content.displayName;var an=Be.forwardRef(({className:e,inset:o,...t},a)=>q(b.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));an.displayName=b.Item.displayName;var rn=Be.forwardRef(({className:e,children:o,checked:t,...a},i)=>Jt(b.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[Jt("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&q("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),q(b.ItemIndicator,{children:q("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:q(ld,{size:16,strokeWidth:3})})})]}),o]}));rn.displayName=b.CheckboxItem.displayName;var nn=Be.forwardRef(({className:e,children:o,...t},a)=>Jt(b.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[Jt("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[q("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),q(b.ItemIndicator,{children:q("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));nn.displayName=b.RadioItem.displayName;var sn=Be.forwardRef(({className:e,inset:o,...t},a)=>q(b.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));sn.displayName=b.Label.displayName;var ln=Be.forwardRef(({className:e,...o},t)=>q(b.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));ln.displayName=b.Separator.displayName;var mn=({className:e,...o})=>q("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});mn.displayName="DropdownMenuShortcut";import cn from"html-react-parser";import{Fragment as pn,jsx as ge,jsxs as Ca}from"react/jsx-runtime";var dn=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Ca(pn,{children:[e&&ge(P,{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&&ge("div",{className:"flex flex-row flex-wrap -mx-3.5 gap-y-5",children:o.slice(0,3).map((a,i)=>ge("div",{className:"basis-full md:basis-1/3 px-3.5",children:Ca("div",{className:"px-6 md:px-4 lg:px-6 py-8 rounded-lg shadow-lg bg-white text-center border border-gray-100 h-full",children:[ge("div",{className:"w-9 h-9 bg-pink-500 rounded-full flex justify-center items-center text-white text-xl font-bold mx-auto",children:i+1}),Ca("div",{className:"w-full mt-6",children:[ge("div",{className:"w-full font-semibold text-xl",children:cn(a.title)}),a?.description&&ge("div",{className:"text-base mt-2 text-gray-600",children:cn(a.description)})]})]})},i))}),t&&ge(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ud=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return ge(dn,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return ge(dn,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},vd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>ge(pn,{children:ud({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),bd=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>ge(W,{className:t,idSection:a,background:o,children:ge(vd,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{forwardRef as Rd}from"react";import{cva as xd}from"class-variance-authority";import fn from"html-react-parser";import{CheckIcon as hd}from"lucide-react";import{Fragment as wd,jsx as Ve,jsxs as eo}from"react/jsx-runtime";var yd=xd("text-gray-800 list-inside mt-6",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-2 md:grid-cols-4 gap-2 w-full",3:"grid grid-cols-1 md:grid-cols-4 gap-4 md:gap-12 max-w-5xl mx-auto items-center py-8 md:py-12 text-left text-sm font-semibold space-y-1"}},defaultVariants:{template:1}}),gn=({template:e,name:o,description:t,image:a,idx:i,value:n,suffix:s,unit:l})=>Ve(wd,{children:(()=>{switch(e){case 1:case 3:return eo("li",{className:"flex items-center space-x-4",children:[a?Ve("div",{className:"w-10 h-10 flex justify-center items-center shrink-0",children:Ve("img",{src:a,alt:"",className:"max-w-full"})}):Ve("div",{className:"bg-pink-100 p-1 rounded-full w-5 h-5 flex items-center justify-center",children:Ve(hd,{className:"w-4 h-4 text-pink-500"})}),o&&Ve("div",{className:"ml-2 leading-tight",children:fn(o)})]});case 2:return eo("div",{className:r("odd:border-0 odd:pr-4 even:pl-4 even:border-l border-gray-200 md:border-l md:odd:border-l md:odd:pr-0",i>0?"md:pl-4":"md:!border-0"),children:[n&&eo("div",{className:"font-bold text-gray-900 line-clamp-2",children:[n,(s||l)&&eo("span",{children:[s," ",l]})]}),t&&Ve("div",{className:"text-sm mt-1 text-gray-500 leading-tight",children:fn(t)})]});default:return null}})()}),_o=({dataFeatures:e,template:o=1,dataStats:t})=>eo("ul",{className:r("",yd({template:o})),children:[(o===1||o===3)&&e?.map((a,i)=>Ve(gn,{name:a?.name,template:o,image:a?.image,idx:i},i)),o===2&&t?.map((a,i)=>Ve(gn,{value:a?.value,suffix:a?.suffix,unit:a?.unit,template:o,description:a?.description,idx:i},i))]});import{Fragment as Pd,jsx as J,jsxs as Ra}from"react/jsx-runtime";var un=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,Nd=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>Ra(pe,{className:r(""),ratio:un(o),children:[J("img",{src:e,className:r("w-full h-full object-cover md:block hidden",t,e?"":"bg-gray-200"),alt:""}),a&&J("div",{className:"aspect-[16/9] realtive overflow-hidden w-full md:hidden",children:J("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"w-full h-full object-cover md:hidden"})}),a&&Ra(rt,{children:[J(Oo,{onClick:i,children:J("div",{className:"w-full hidden md:flex h-full cursor-pointer transition-transform group-hover:scale-105 top-0 absolute z-10 items-center justify-center",children:J("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:Ra("g",{fill:"none",fillRule:"evenodd",children:[J("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),J("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),J(Oe,{hideCloseBtn:!0,className:"w-full h-full !shadow-none !bg-transparent flex items-center justify-center bg-gray-900 p-0",children:J("iframe",{width:738,height:439,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:""})})]})]}),to=({type:e=1,src:o,ratio:t,className:a,youtubeId:i,onClickFC:n=()=>{}})=>J(Pd,{children:i?J(Nd,{type:e,src:o,ratio:t,youtubeId:i,onClickFC:n}):J(pe,{className:r(""),ratio:un(t),children:J("img",{src:o,className:r("w-full h-full object-cover",a,o?"":"bg-gray-200"),alt:""})})});import{Fragment as Cd,jsx as G,jsxs as oo}from"react/jsx-runtime";var Ta=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>oo("div",{className:r("grid grid-cols-1 md:grid-cols-2 md:gap-6 gap-8 items-center"),children:[oo("div",{className:"col-span-1 ",children:[G(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:`${e?.className} mb-0 md:mb-0`}),G(_o,{dataFeatures:t,template:a,dataStats:i}),o&&G(C,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})]}),G("div",{className:"col-span-1 md:pl-10",children:s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),vn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>oo("div",{className:r("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[G("div",{className:"col-span-1 hidden md:block",children:s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),oo("div",{className:"col-span-1",children:[G(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:e?.className}),G(_o,{dataFeatures:t,template:a,dataStats:i}),G("div",{className:"md:hidden mt-10",children:s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),o&&G("div",{className:"w-full flex items-center justify-center md:justify-start",children:G(C,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})})]})]}),bn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>oo(Cd,{children:[G(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:`${e?.className||""} mb-0 md:mb-0`}),o&&G(C,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"w-full md:w-full inline-flex items-center justify-center text-base font-semibold text-center"}),G(_o,{dataFeatures:t,template:a,dataStats:i}),s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"rounded-lg"})]});import{Fragment as Md,jsx as ht}from"react/jsx-runtime";var Td=`var(
246
+ `})]})}})()})}import*as Er from"react";import*as ke from"@radix-ui/react-slider";import{jsx as Ke,jsxs as Rc}from"react/jsx-runtime";var Hr=Er.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>Rc(ke.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Ke(ke.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Ke(ke.Range,{className:"absolute h-full bg-pink-500"})}),Ke(ke.Thumb,{className:"group relative",children:Ke("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:o&&Ke("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-sm rounded-lg px-2.5 py-1.5 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-2 whitespace-nowrap",children:o})})}),Ke(ke.Thumb,{className:"group relative",children:Ke("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:t&&Ke("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-sm rounded-lg px-2.5 py-1.5 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-2 whitespace-nowrap",children:t})})})]}));Hr.displayName=ke.Root.displayName;import{forwardRef as Vc}from"react";import{Fragment as Dc,jsx as fe,jsxs as Ao}from"react/jsx-runtime";var Tc=({author:e=""})=>fe("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),kc=({author:e,avatar:o})=>fe("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?fe("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):fe(Tc,{author:e})});function Sc({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return fe(Dc,{children:Ao("div",{className:"flex relative items-center space-x-3",children:[fe(kc,{avatar:e,author:o}),Ao("div",{className:"flex flex-col",children:[o&&fe("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Ao("div",{className:"flex items-center space-x-2 text-xs",children:[t&&fe("div",{className:"text-gray-400",children:t}),a&&Ao("div",{className:"flex items-center space-x-2",children:[fe("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),fe("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&fe("div",{className:"absolute right-1 top-0",children:fe("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var _r=Sc;import{useState as Or}from"react";import{StarIcon as Mc}from"@heroicons/react/20/solid";import{jsx as Fr,jsxs as zr}from"react/jsx-runtime";var Ic={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!"},Ac={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 Lc({point:e,max:o,className:t}){let a=o>5?Ic[e||10]:Ac[e||5];return zr("div",{className:r("flex items-center space-x-1",t),children:[Fr(Mc,{className:"w-5 h-5 text-yellow-500"}),Fr("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),zr("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Br=Lc;import{useState as Ec}from"react";import Vr from"html-react-parser";import{jsx as Hc,jsxs as _c}from"react/jsx-runtime";var Na=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=Ec(!0),d=()=>{l(!s)},p=(m,g,u=" ")=>m.length<=g?m:m.substring(0,m.lastIndexOf(u,g));return _c("div",{className:r(n),children:[s?Vr(p(e,o)):Vr(e),e.length>o&&Hc("span",{onClick:d,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as xt,jsxs as Wr}from"react/jsx-runtime";function Fc({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=Or(0),[d,p]=Or(!1),m=g=>{p(!0),l(g)};return Wr("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&xt(Br,{className:"mb-0.5",point:i.point,max:i.max}),e&&xt(Na,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&xt("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>xt("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:g}))}),o?.length>0&&Wr(ya,{open:d,onOpenChange:p,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((g,u)=>xt(pe,{onClick:()=>m(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:xt("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),xt(wa,{activeSlideIndex:s,images:o?.map((g,u)=>({url:g.url,titleImage:g.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var $r=Fc;import{jsx as Bc}from"react/jsx-runtime";function zc({actions:e=[]}){return Bc("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Gr=zc;import{jsx as Lo,jsxs as Wc}from"react/jsx-runtime";var Oc=Vc(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:d,isReply:p,children:m,commentSideBar:g,isOutStanding:u,limitContent:C=260},M)=>Wc("div",{ref:M,className:r("",p?"ml-4 py-4":"py-5"),children:[Lo(_r,{avatar:e,author:o,time:t,statusMessage:d,isOutStanding:u}),Lo($r,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:C}),l&&l?.filter(Boolean)?.length>0&&Lo(Gr,{actions:l.filter(Boolean)}),m&&Lo("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:m})]}));import*as Ye from"react";import{cva as $c}from"class-variance-authority";import{CheckIcon as Gc}from"@heroicons/react/16/solid";import{XIcon as jc}from"lucide-react";import{jsx as K,jsxs as Eo}from"react/jsx-runtime";var Uc=$c("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"}}),jr=Ye.createContext("default");function Qc(){let e=Ye.useContext(jr);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Xc=Ye.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?K(jc,{className:s}):Eo("div",{children:[e==="iconStep"&&K("div",{className:s,children:o}),e==="numberStep"&&K("div",{children:t}),e==="default"&&(n==="completed"?K(Gc,{className:s}):K("div",{children:t}))]})}),qc=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Ye.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return K("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Zc=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:d,icon:p,isError:m,onValueChangeStep:g,...u})=>{let C=Qc();return Eo("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[Eo("div",{className:"flex w-full items-center justify-center gap-2",children:[K("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",d&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),K("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Uc({state:o,size:t}),m&&"bg-red-500 text-white shadow-none",i),...u,children:K(Xc,{type:C,icon:p,stepNumber:e,size:t,isError:m,state:o})}),K("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Eo("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&K("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&K("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Kc=({children:e,className:o,type:t="numberStep",...a})=>K(jr.Provider,{value:t,children:K("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as Y from"react";import{Slot as td}from"@radix-ui/react-slot";import{Controller as od,FormProvider as ad,useFormContext as id}from"react-hook-form";import*as Ur from"react";import*as Pa from"@radix-ui/react-label";import{cva as Yc}from"class-variance-authority";import{jsx as ed}from"react/jsx-runtime";var Jc=Yc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ho=Ur.forwardRef(({className:e,...o},t)=>ed(Pa.Root,{ref:t,className:r(Jc(),e),...o}));Ho.displayName=Pa.Root.displayName;import{jsx as Je}from"react/jsx-runtime";var rd=ad,Qr=Y.createContext({}),nd=({...e})=>Je(Qr.Provider,{value:{name:e.name},children:Je(od,{...e})}),Yt=()=>{let e=Y.useContext(Qr),o=Y.useContext(Xr),{getFieldState:t,formState:a}=id(),i=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},Xr=Y.createContext({}),qr=Y.forwardRef(({className:e,...o},t)=>{let a=Y.useId();return Je(Xr.Provider,{value:{id:a},children:Je("div",{ref:t,className:r("space-y-2",e),...o})})});qr.displayName="FormItem";var Zr=Y.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=Yt();return Je(Ho,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});Zr.displayName="FormLabel";var Kr=Y.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=Yt();return Je(td,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});Kr.displayName="FormControl";var Yr=Y.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=Yt();return Je("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});Yr.displayName="FormDescription";var Jr=Y.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=Yt(),s=i?String(i?.message):o;return s?Je("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});Jr.displayName="FormMessage";import*as Be from"react";import*as b from"@radix-ui/react-dropdown-menu";import{ChevronRight as sd,Check as ld}from"lucide-react";import{jsx as q,jsxs as Jt}from"react/jsx-runtime";var md=b.Root,cd=b.Trigger,dd=b.Group,pd=b.Portal,fd=b.Sub,gd=b.RadioGroup,en=Be.forwardRef(({className:e,inset:o,children:t,...a},i)=>Jt(b.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,q(sd,{className:"ml-auto"})]}));en.displayName=b.SubTrigger.displayName;var tn=Be.forwardRef(({className:e,...o},t)=>q(b.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));tn.displayName=b.SubContent.displayName;var on=Be.forwardRef(({className:e,sideOffset:o=4,...t},a)=>q(b.Portal,{children:q(b.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));on.displayName=b.Content.displayName;var an=Be.forwardRef(({className:e,inset:o,...t},a)=>q(b.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));an.displayName=b.Item.displayName;var rn=Be.forwardRef(({className:e,children:o,checked:t,...a},i)=>Jt(b.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[Jt("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&q("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),q(b.ItemIndicator,{children:q("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:q(ld,{size:16,strokeWidth:3})})})]}),o]}));rn.displayName=b.CheckboxItem.displayName;var nn=Be.forwardRef(({className:e,children:o,...t},a)=>Jt(b.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[Jt("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[q("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),q(b.ItemIndicator,{children:q("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));nn.displayName=b.RadioItem.displayName;var sn=Be.forwardRef(({className:e,inset:o,...t},a)=>q(b.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));sn.displayName=b.Label.displayName;var ln=Be.forwardRef(({className:e,...o},t)=>q(b.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));ln.displayName=b.Separator.displayName;var mn=({className:e,...o})=>q("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});mn.displayName="DropdownMenuShortcut";import cn from"html-react-parser";import{Fragment as pn,jsx as ge,jsxs as Ca}from"react/jsx-runtime";var dn=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Ca(pn,{children:[e&&ge(P,{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&&ge("div",{className:"flex flex-row flex-wrap -mx-3.5 gap-y-5",children:o.slice(0,3).map((a,i)=>ge("div",{className:"basis-full md:basis-1/3 px-3.5",children:Ca("div",{className:"px-6 md:px-4 lg:px-6 py-8 rounded-lg shadow-lg bg-white text-center border border-gray-100 h-full",children:[ge("div",{className:"w-9 h-9 bg-pink-500 rounded-full flex justify-center items-center text-white text-xl font-bold mx-auto",children:i+1}),Ca("div",{className:"w-full mt-6",children:[ge("div",{className:"w-full font-semibold text-xl",children:cn(a.title)}),a?.description&&ge("div",{className:"text-base mt-2 text-gray-600",children:cn(a.description)})]})]})},i))}),t&&ge(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ud=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return ge(dn,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return ge(dn,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},vd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>ge(pn,{children:ud({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),bd=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>ge(W,{className:t,idSection:a,background:o,children:ge(vd,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{forwardRef as Rd}from"react";import{cva as xd}from"class-variance-authority";import fn from"html-react-parser";import{CheckIcon as hd}from"lucide-react";import{Fragment as wd,jsx as Ve,jsxs as eo}from"react/jsx-runtime";var yd=xd("text-gray-800 list-inside mt-6",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-2 md:grid-cols-4 gap-2 w-full",3:"grid grid-cols-1 md:grid-cols-4 gap-4 md:gap-12 max-w-5xl mx-auto items-center py-8 md:py-12 text-left text-sm font-semibold space-y-1"}},defaultVariants:{template:1}}),gn=({template:e,name:o,description:t,image:a,idx:i,value:n,suffix:s,unit:l})=>Ve(wd,{children:(()=>{switch(e){case 1:case 3:return eo("li",{className:"flex items-center space-x-4",children:[a?Ve("div",{className:"w-10 h-10 flex justify-center items-center shrink-0",children:Ve("img",{src:a,alt:"",className:"max-w-full"})}):Ve("div",{className:"bg-pink-100 p-1 rounded-full w-5 h-5 flex items-center justify-center",children:Ve(hd,{className:"w-4 h-4 text-pink-500"})}),o&&Ve("div",{className:"ml-2 leading-tight",children:fn(o)})]});case 2:return eo("div",{className:r("odd:border-0 odd:pr-4 even:pl-4 even:border-l border-gray-200 md:border-l md:odd:border-l md:odd:pr-0",i>0?"md:pl-4":"md:!border-0"),children:[n&&eo("div",{className:"font-bold text-gray-900 line-clamp-2",children:[n,(s||l)&&eo("span",{children:[s," ",l]})]}),t&&Ve("div",{className:"text-sm mt-1 text-gray-500 leading-tight",children:fn(t)})]});default:return null}})()}),_o=({dataFeatures:e,template:o=1,dataStats:t})=>eo("ul",{className:r("",yd({template:o})),children:[(o===1||o===3)&&e?.map((a,i)=>Ve(gn,{name:a?.name,template:o,image:a?.image,idx:i},i)),o===2&&t?.map((a,i)=>Ve(gn,{value:a?.value,suffix:a?.suffix,unit:a?.unit,template:o,description:a?.description,idx:i},i))]});import{Fragment as Pd,jsx as J,jsxs as Ra}from"react/jsx-runtime";var un=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,Nd=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>Ra(pe,{className:r(""),ratio:un(o),children:[J("img",{src:e,className:r("w-full h-full object-cover md:block hidden",t,e?"":"bg-gray-200"),alt:""}),a&&J("div",{className:"aspect-[16/9] realtive overflow-hidden w-full md:hidden",children:J("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"w-full h-full object-cover md:hidden"})}),a&&Ra(rt,{children:[J(Oo,{onClick:i,children:J("div",{className:"w-full hidden md:flex h-full cursor-pointer transition-transform group-hover:scale-105 top-0 absolute z-10 items-center justify-center",children:J("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:Ra("g",{fill:"none",fillRule:"evenodd",children:[J("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),J("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),J(Oe,{hideCloseBtn:!0,className:"w-full h-full !shadow-none !bg-transparent flex items-center justify-center bg-gray-900 p-0",children:J("iframe",{width:738,height:439,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:""})})]})]}),to=({type:e=1,src:o,ratio:t,className:a,youtubeId:i,onClickFC:n=()=>{}})=>J(Pd,{children:i?J(Nd,{type:e,src:o,ratio:t,youtubeId:i,onClickFC:n}):J(pe,{className:r(""),ratio:un(t),children:J("img",{src:o,className:r("w-full h-full object-cover",a,o?"":"bg-gray-200"),alt:""})})});import{Fragment as Cd,jsx as G,jsxs as oo}from"react/jsx-runtime";var Ta=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>oo("div",{className:r("grid grid-cols-1 md:grid-cols-2 md:gap-6 gap-8 items-center"),children:[oo("div",{className:"col-span-1 ",children:[G(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:`${e?.className} mb-0 md:mb-0`}),G(_o,{dataFeatures:t,template:a,dataStats:i}),o&&G(R,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})]}),G("div",{className:"col-span-1 md:pl-10",children:s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),vn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>oo("div",{className:r("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[G("div",{className:"col-span-1 hidden md:block",children:s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),oo("div",{className:"col-span-1",children:[G(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:e?.className}),G(_o,{dataFeatures:t,template:a,dataStats:i}),G("div",{className:"md:hidden mt-10",children:s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),o&&G("div",{className:"w-full flex items-center justify-center md:justify-start",children:G(R,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})})]})]}),bn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>oo(Cd,{children:[G(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:`${e?.className||""} mb-0 md:mb-0`}),o&&G(R,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"w-full md:w-full inline-flex items-center justify-center text-base font-semibold text-center"}),G(_o,{dataFeatures:t,template:a,dataStats:i}),s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"rounded-lg"})]});import{Fragment as Md,jsx as ht}from"react/jsx-runtime";var Td=`var(
247
247
  --gradient-pink-1,
248
248
  linear-gradient(
249
249
  38deg,
@@ -265,11 +265,11 @@ import*as It from"react";import*as ne from"@radix-ui/react-accordion";import{Che
265
265
  rgba(255, 255, 255, 0) 80%
266
266
  ),
267
267
  #fff
268
- )`,kd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return ht(Ta,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return ht(vn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return ht(bn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return ht(Ta,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},Sd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ht(Md,{children:kd({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),Dd=Rd(({template:e=1,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,className:s,background:l,advancedComponent:d=null})=>ht(W,{className:r(s),background:l??Td,children:ht(Sd,{dataButtons:t,template:e,dataHeading:o,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:d})}));import{Fragment as ka,jsx as k,jsxs as hn}from"react/jsx-runtime";var xn=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={spacingX:"md:gap-x-5",spacingM:"md:gap-x-6",spacingL:"md:gap-x-7",spacingXl:"md:gap-x-10",spacing2Xl:"md:gap-x-12"};return hn(ka,{children:[e&&k(P,{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&&k("div",{className:r("list-brands flex flex-row gap-y-6 md:flex-wrap md:justify-center overflow-hidden overflow-x-auto py-2",n[a||"spacingXl"],i?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3 space-x-5 md:space-x-0 px-5 md:px-0":"flex-wrap justify-center"),children:o?.map((s,l)=>k("div",{className:r("flex justify-center items-center md:px-0 md:basis-auto",i?"snap-center shrink-0 basis-1/3":"basis-1/2 px-2.5"),children:k("div",{className:"w-auto max-w-36 flex justify-center items-center",children:s?.url?k("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:k("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain transition transform group-hover:scale-105"})}):k("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},l))}),t&&k(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Id=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>hn(ka,{children:[e&&k(P,{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&&k("div",{className:r("list-brands md:grid-cols-4 md:gap-y-6 md:gap-x-7",a?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3 flex md:grid overflow-hidden overflow-x-auto md:mx-0 md:px-0 px-5 space-x-5 md:space-x-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((i,n)=>k("div",{className:r("flex justify-center items-center text-center",a?"snap-center shrink-0 basis-5/12":""),children:i?.url?k("a",{href:i?.url,title:i?.name,target:i?.newTab?"_blank":"_self",className:"flex justify-center items-center rounded-md border border-gray-200 duration-300 hover:border-pink-500 w-full h-full p-3",children:k("div",{className:"w-auto max-w-36 flex justify-center items-center",children:k("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):k("div",{className:"flex justify-center items-center rounded-md border border-gray-200 w-full h-full p-3",children:k("div",{className:"w-auto max-w-36 flex justify-center items-center",children:k("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&k(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ad=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return k(xn,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return k(Id,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return k(xn,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},Ld=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>k(ka,{children:Ad({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),Ed=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="spacingXl",isScrollSnap:d})=>k(W,{className:t,idSection:a,background:o,children:k(Ld,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:d})});import B from"html-react-parser";import{ChevronRightIcon as Hd}from"@heroicons/react/16/solid";import{Fragment as et,jsx as c,jsxs as v}from"react/jsx-runtime";var Se=({btnLink:e,btnName:o,newTab:t})=>c(be,{variant:"primary",asChild:!0,children:v("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",c(Hd,{className:"w-4 h-4"})]})}),Sa=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{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&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full text-center flex flex-col",children:[c("div",{className:"w-16 h-16 mx-auto",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex-1",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),yn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{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&&c("div",{className:"list-features list-features-2 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:o?.map((a,i)=>v("div",{className:"feature-item p-5 overflow-hidden border border-gray-200 rounded-md relative w-full flex flex-col",children:[c("div",{className:"w-16 h-16",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),c("style",{children:`
268
+ )`,kd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return ht(Ta,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return ht(vn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return ht(bn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return ht(Ta,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},Sd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ht(Md,{children:kd({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),Dd=Rd(({template:e=1,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,className:s,background:l,advancedComponent:d=null})=>ht(W,{className:r(s),background:l??Td,children:ht(Sd,{dataButtons:t,template:e,dataHeading:o,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:d})}));import{Fragment as ka,jsx as k,jsxs as hn}from"react/jsx-runtime";var xn=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={spacingX:"md:gap-x-5",spacingM:"md:gap-x-6",spacingL:"md:gap-x-7",spacingXl:"md:gap-x-10",spacing2Xl:"md:gap-x-12"};return hn(ka,{children:[e&&k(P,{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&&k("div",{className:r("list-brands flex flex-row gap-y-6 md:flex-wrap md:justify-center overflow-hidden overflow-x-auto py-2",n[a||"spacingXl"],i?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3 space-x-5 md:space-x-0 px-5 md:px-0":"flex-wrap justify-center"),children:o?.map((s,l)=>k("div",{className:r("flex justify-center items-center md:px-0 md:basis-auto",i?"snap-center shrink-0 basis-1/3":"basis-1/2 px-2.5"),children:k("div",{className:"w-auto max-w-36 flex justify-center items-center",children:s?.url?k("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:k("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain transition transform group-hover:scale-105"})}):k("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},l))}),t&&k(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Id=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>hn(ka,{children:[e&&k(P,{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&&k("div",{className:r("list-brands md:grid-cols-4 md:gap-y-6 md:gap-x-7",a?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3 flex md:grid overflow-hidden overflow-x-auto md:mx-0 md:px-0 px-5 space-x-5 md:space-x-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((i,n)=>k("div",{className:r("flex justify-center items-center text-center",a?"snap-center shrink-0 basis-5/12":""),children:i?.url?k("a",{href:i?.url,title:i?.name,target:i?.newTab?"_blank":"_self",className:"flex justify-center items-center rounded-md border border-gray-200 duration-300 hover:border-pink-500 w-full h-full p-3",children:k("div",{className:"w-auto max-w-36 flex justify-center items-center",children:k("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):k("div",{className:"flex justify-center items-center rounded-md border border-gray-200 w-full h-full p-3",children:k("div",{className:"w-auto max-w-36 flex justify-center items-center",children:k("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&k(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ad=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return k(xn,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return k(Id,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return k(xn,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},Ld=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>k(ka,{children:Ad({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),Ed=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="spacingXl",isScrollSnap:d})=>k(W,{className:t,idSection:a,background:o,children:k(Ld,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:d})});import B from"html-react-parser";import{ChevronRightIcon as Hd}from"@heroicons/react/16/solid";import{Fragment as et,jsx as c,jsxs as v}from"react/jsx-runtime";var Se=({btnLink:e,btnName:o,newTab:t})=>c(be,{variant:"primary",asChild:!0,children:v("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",c(Hd,{className:"w-4 h-4"})]})}),Sa=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{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&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full text-center flex flex-col",children:[c("div",{className:"w-16 h-16 mx-auto",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex-1",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),yn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{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&&c("div",{className:"list-features list-features-2 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:o?.map((a,i)=>v("div",{className:"feature-item p-5 overflow-hidden border border-gray-200 rounded-md relative w-full flex flex-col",children:[c("div",{className:"w-16 h-16",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),c("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
- `})]}),wn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col",children:[c("div",{className:"w-16 h-16",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex-1",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Nn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-0 lg:gap-12",children:[v("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("lg:mb-0",e?.className)}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),v("div",{className:"lg:col-span-6",children:[o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-5",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-5 bg-white",children:[c("div",{className:"w-16 h-16",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Pn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{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&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-5 max-w-4xl mx-auto",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-7 bg-white",children:[c("div",{className:"w-12 h-12 ",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Cn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{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&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full",children:[c("div",{className:"w-12 h-12",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-500 mt-2 text-sm",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Rn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{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&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-6 lg:gap-y-8",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex gap-3",children:[c("div",{className:"w-12 h-12",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-500 mt-2 text-sm",children:B(a.description)}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Tn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-6",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col overflow-hidden bg-gray-100 rounded-xl",children:[v("div",{className:"w-full flex flex-1 flex-col p-5",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),c("div",{className:"w-full",style:{aspectRatio:"347/220"},children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),kn=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>v("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-10 lg:gap-14",children:[c("div",{className:"lg:col-span-6 flex items-center",children:v("div",{className:"w-full",children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:auto-cols-auto",children:o?.map((i,n)=>v("div",{className:"feature-item relative w-full flex flex-col",children:[c("div",{className:"w-10 h-10",children:c("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&c("h3",{className:"text-lg font-semibold",children:B(i.name)}),i?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(i.description)})]}),i?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&c("div",{className:"lg:col-span-4 flex items-center",children:c("div",{className:"max-w-md mx-auto w-full",children:c(pe,{ratio:a?.ratio||1,className:"w-full",children:c("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),Sn=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),c("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&v("div",{className:r("list-features grid grid-cols-1 md:grid-cols-2 gap-8",t?"lg:gap-y-16 lg:gap-x-0 lg:flex-wrap lg:flex lg:flex-row":"max-w-4xl mx-auto"),children:[o?.map((i,n)=>v("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[c("div",{className:"w-12 h-12",children:c("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&c("h3",{className:"text-lg font-semibold",children:B(i.name)}),i?.description&&c("div",{className:"text-gray-500 mt-2",children:B(i.description)})]}),i?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&v("div",{className:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 hidden lg:flex lg:justify-center lg:items-end xl:p-2 lg:p-1.5 w-72 mx-auto",style:{aspectRatio:"352/721"},children:[c("div",{className:"mockup-bg absolute inset-0 w-full h-full select-none pointer-events-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),c("div",{className:"w-full h-full bg-gray-100 overflow-hidden",style:{borderRadius:"30px"},children:c("img",{src:t?.src,alt:t?.alt,className:"w-full h-full object-contain"})})]})]})}),a&&c(C,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});import{Fragment as Bd,jsx as ee}from"react/jsx-runtime";var _d=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return ee(Sa,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ee(yn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ee(wn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ee(Nn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ee(Pn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ee(Cn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ee(Rn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ee(Tn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ee(kn,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return ee(Sn,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return ee(Sa,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Fd=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>ee(Bd,{children:_d({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),zd=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>ee(W,{className:t,idSection:a,background:o,children:ee(Fd,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import Da from"html-react-parser";import{StarIcon as Vd}from"@heroicons/react/24/solid";import{Fragment as In,jsx as L,jsxs as yt}from"react/jsx-runtime";var Dn=({testimonial:e,isHiddenOnMobile:o=!1,index:t=0,itemCount:a})=>L("div",{className:r("testimonial-item grow sm:px-0 basis-10/12 md:basis-0 px-3 snap-center shrink-0 first:pl-5 md:first:pl-0",o?"hidden sm:block":"",t+1===a?"pr-5":""),children:L("div",{className:"rounded-xl border border-gray-50 bg-white px-5 pt-4 sm:px-5 pb-10 shadow-md relative h-full",children:yt("div",{className:"testimonial-item-width",children:[yt("div",{className:"flex flex-nowrap items-center space-x-2",children:[L("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:L("img",{src:e?.avatar,loading:"lazy",className:"h-full w-full object-cover",alt:e.name})}),yt("div",{className:"min-w-0 flex-1 pl-1",children:[L("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&L("div",{className:"text-xs font-normal text-pink-500",children:Da(e.position)})]})]}),yt("div",{className:"mt-3",children:[e?.shortTitle&&L("div",{className:"text-sm font-bold text-gray-700",children:Da(e.shortTitle)}),e?.description&&L("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Da(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:[L("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&L("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>L(Vd,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),Mn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return yt(In,{children:[e&&L(P,{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&&L("div",{className:r("testimonials-mobase scroll-hidden relative overflow-x-scroll py-2 md:overflow-hidden -my-2 -mx-5 sm:mx-0",i&&"run-animation"),children:yt("div",{className:"testimonials-slider sm:space-x-6 flex flex-row overflow-hidden overflow-x-auto sm:overflow-visible sm:pl-6 sm:pr-0 snap-x sm:snap-none snap-mandatory pb-3 sm:pb-0",children:[o?.map((n,s)=>L(Dn,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&o?.map((n,s)=>L(Dn,{testimonial:n,isHiddenOnMobile:!0},`duplicate-${s}`))]})}),t&&L(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),i&&L("style",{children:`
272
+ `})]}),wn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col",children:[c("div",{className:"w-16 h-16",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex-1",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Nn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-0 lg:gap-12",children:[v("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("lg:mb-0",e?.className)}),t&&c(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),v("div",{className:"lg:col-span-6",children:[o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-5",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-5 bg-white",children:[c("div",{className:"w-16 h-16",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Pn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{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&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-5 max-w-4xl mx-auto",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-7 bg-white",children:[c("div",{className:"w-12 h-12 ",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Cn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{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&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full",children:[c("div",{className:"w-12 h-12",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-500 mt-2 text-sm",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Rn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{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&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-6 lg:gap-y-8",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex gap-3",children:[c("div",{className:"w-12 h-12",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-500 mt-2 text-sm",children:B(a.description)}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Tn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-6",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col overflow-hidden bg-gray-100 rounded-xl",children:[v("div",{className:"w-full flex flex-1 flex-col p-5",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),c("div",{className:"w-full",style:{aspectRatio:"347/220"},children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})})]},i))}),t&&c(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),kn=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>v("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-10 lg:gap-14",children:[c("div",{className:"lg:col-span-6 flex items-center",children:v("div",{className:"w-full",children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:auto-cols-auto",children:o?.map((i,n)=>v("div",{className:"feature-item relative w-full flex flex-col",children:[c("div",{className:"w-10 h-10",children:c("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&c("h3",{className:"text-lg font-semibold",children:B(i.name)}),i?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(i.description)})]}),i?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&c(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&c("div",{className:"lg:col-span-4 flex items-center",children:c("div",{className:"max-w-md mx-auto w-full",children:c(pe,{ratio:a?.ratio||1,className:"w-full",children:c("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),Sn=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),c("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&v("div",{className:r("list-features grid grid-cols-1 md:grid-cols-2 gap-8",t?"lg:gap-y-16 lg:gap-x-0 lg:flex-wrap lg:flex lg:flex-row":"max-w-4xl mx-auto"),children:[o?.map((i,n)=>v("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[c("div",{className:"w-12 h-12",children:c("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&c("h3",{className:"text-lg font-semibold",children:B(i.name)}),i?.description&&c("div",{className:"text-gray-500 mt-2",children:B(i.description)})]}),i?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&v("div",{className:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 hidden lg:flex lg:justify-center lg:items-end xl:p-2 lg:p-1.5 w-72 mx-auto",style:{aspectRatio:"352/721"},children:[c("div",{className:"mockup-bg absolute inset-0 w-full h-full select-none pointer-events-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),c("div",{className:"w-full h-full bg-gray-100 overflow-hidden",style:{borderRadius:"30px"},children:c("img",{src:t?.src,alt:t?.alt,className:"w-full h-full object-contain"})})]})]})}),a&&c(R,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});import{Fragment as Bd,jsx as ee}from"react/jsx-runtime";var _d=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return ee(Sa,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ee(yn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ee(wn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ee(Nn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ee(Pn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ee(Cn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ee(Rn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ee(Tn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ee(kn,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return ee(Sn,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return ee(Sa,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Fd=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>ee(Bd,{children:_d({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),zd=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>ee(W,{className:t,idSection:a,background:o,children:ee(Fd,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import Da from"html-react-parser";import{StarIcon as Vd}from"@heroicons/react/24/solid";import{Fragment as In,jsx as L,jsxs as yt}from"react/jsx-runtime";var Dn=({testimonial:e,isHiddenOnMobile:o=!1,index:t=0,itemCount:a})=>L("div",{className:r("testimonial-item grow sm:px-0 basis-10/12 md:basis-0 px-3 snap-center shrink-0 first:pl-5 md:first:pl-0",o?"hidden sm:block":"",t+1===a?"pr-5":""),children:L("div",{className:"rounded-xl border border-gray-50 bg-white px-5 pt-4 sm:px-5 pb-10 shadow-md relative h-full",children:yt("div",{className:"testimonial-item-width",children:[yt("div",{className:"flex flex-nowrap items-center space-x-2",children:[L("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:L("img",{src:e?.avatar,loading:"lazy",className:"h-full w-full object-cover",alt:e.name})}),yt("div",{className:"min-w-0 flex-1 pl-1",children:[L("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&L("div",{className:"text-xs font-normal text-pink-500",children:Da(e.position)})]})]}),yt("div",{className:"mt-3",children:[e?.shortTitle&&L("div",{className:"text-sm font-bold text-gray-700",children:Da(e.shortTitle)}),e?.description&&L("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Da(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:[L("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&L("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>L(Vd,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),Mn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return yt(In,{children:[e&&L(P,{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&&L("div",{className:r("testimonials-mobase scroll-hidden relative overflow-x-scroll py-2 md:overflow-hidden -my-2 -mx-5 sm:mx-0",i&&"run-animation"),children:yt("div",{className:"testimonials-slider sm:space-x-6 flex flex-row overflow-hidden overflow-x-auto sm:overflow-visible sm:pl-6 sm:pr-0 snap-x sm:snap-none snap-mandatory pb-3 sm:pb-0",children:[o?.map((n,s)=>L(Dn,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&o?.map((n,s)=>L(Dn,{testimonial:n,isHiddenOnMobile:!0},`duplicate-${s}`))]})}),t&&L(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),i&&L("style",{children:`
273
273
  @media screen and (min-width: 640px) {
274
274
  .testimonials-mobase.run-animation {
275
275
  --items-count: ${a};
@@ -293,7 +293,7 @@ import*as It from"react";import*as ne from"@radix-ui/react-accordion";import{Che
293
293
  transform: translateX(calc(${a===4?"-476px":"-386px"} * var(--items-count)));
294
294
  }
295
295
  }
296
- `})]})},Od=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return L(Mn,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return L(Mn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Wd=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>L(In,{children:Od({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),$d=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>L(W,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${t||""}`,idSection:a,background:o,children:L(Wd,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import Gd,{memo as An}from"react";import Ln from"html-react-parser";import{jsx as ue,jsxs as ao}from"react/jsx-runtime";var Ma=An(({dataFAQ:e,dataHeading:o})=>ao("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[o&&ue(P,{tagline:o?.tagline,title:o?.title,description:o?.description,tagHeading:o?.tagHeading||"h2",align:"left",colorScheme:o?.colorScheme||"pink",sizeHeading:o?.sizeHeading,className:r("md:mb-0 mb-0 mt-2 col-span-1 text-center md:text-left",o?.className)}),e&&ue("div",{className:"col-span-2",children:e[0]?.contents.map((t,a)=>ue(tt,{type:"single",collapsible:!0,className:"w-full",children:ao(ot,{value:t.title,children:[ue(at,{className:"font-bold",children:t.title}),ue(it,{children:Ln(t.description)})]})},t.title+a))})]})),En=An(({dataFAQ:e,dataHeading:o})=>ao(Gd.Fragment,{children:[o&&ue(P,{tagline:o?.tagline,title:o?.title,description:o?.description,tagHeading:o?.tagHeading,align:"center",colorScheme:o?.colorScheme||"pink",sizeHeading:o?.sizeHeading,className:r(o?.className)}),e&&ao(mt,{defaultValue:e[0]?.title,children:[ue(We,{className:"flex items-center sm:justify-center",children:e.map((t,a)=>ue($e,{value:t.title,children:t.title},t.title+a))}),e.map((t,a)=>ue(Ge,{className:"max-w-3xl mx-auto",value:t.title,children:t.contents.map((i,n)=>ue(tt,{type:"single",collapsible:!0,className:"w-full",children:ao(ot,{value:i.title,children:[ue(at,{className:"font-bold",children:i.title}),ue(it,{children:Ln(i.description)})]})},i.title+n))},t.title+a))]})]}));import{Fragment as Xd,jsx as Dt}from"react/jsx-runtime";var jd=({template:e,dataFAQ:o,dataHeading:t})=>{switch(e){case 1:return Dt(Ma,{dataFAQ:o,dataHeading:t});case 2:return Dt(En,{dataFAQ:o,dataHeading:t});default:return Dt(Ma,{dataFAQ:o,dataHeading:t})}},Ud=({dataHeading:e,dataFAQ:o,template:t})=>Dt(Xd,{children:jd({dataHeading:e,dataFAQ:o,template:t})}),Qd=({dataHeading:e,dataFAQ:o=[],className:t="",background:a=""})=>{let i=o&&o?.length>1?2:1;return Dt(W,{className:r(t),background:a,children:Dt(Ud,{dataHeading:e,dataFAQ:o,template:i})})};import qd,{memo as Zd}from"react";import Kd from"html-react-parser";import{ArrowDownIcon as Yd}from"@heroicons/react/20/solid";import{Fragment as Hn,jsx as _,jsxs as De}from"react/jsx-runtime";var Jd=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return De(Hn,{children:[_("div",{className:"rounded-md md:rounded-none aspect-[1/1] md:aspect-[77/37] relative overflow-hidden block bg-gray-100",children:De("picture",{children:[_("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),_("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})}),De("div",{className:"flex flex-col flex-1 mt-3 md:mt-0 md:p-3",children:[_("div",{className:"text-gray-900 font-medium text-sm group-hover:text-pink-500 flex-1 line-clamp-2 md:line-clamp-none",children:e?.title}),De("div",{className:"flex items-center space-x-1 mt-2",children:[e?.category&&e?.categoryUrl&&De(Hn,{children:[_(be,{variant:"default",className:"text-xs line-clamp-1 shink-0 justify-start text-left whitespace-normal",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),_("span",{className:"flex-none leading-none",children:"\xB7"})]}),_("div",{className:"text-gray-500 text-xs flex-none",children:e?.dateTime})]})]})]})},Ia=Zd(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},d=(m,g,u)=>{m?.preventDefault(),m?.stopPropagation(),a?a(g):window.open(u,"_blank")},p=(m,g)=>De("div",{children:[_("div",{className:r("flex flex-row flex-wrap -mx-2 gap-y-5",m?.newsList?.length<4?"md:justify-center":""),children:m?.newsList?.map((u,R)=>_("div",{className:"px-2 basis-1/2 lg:basis-1/4 min-w-0",children:_("div",{onClick:M=>d(M,u?.id,u?.url),className:r("cursor-pointer group flex flex-col md:h-full md:rounded-md overflow-hidden md:shadow-md md:bg-white",m?.classNameItem),children:_(Jd,{news:u})},u?.id)},R))}),m?.isShowBtn&&_("div",{className:"w-full flex items-center justify-center mt-8",children:De(st,{action:m?.btnUrl||i&&(()=>i?.(g)),newTab:m?.isNewTab,variant:"outline",disabled:m?.isLoading,children:[Kd(m.btnName||"Xem th\xEAm"),m?.isLoading?_(Nt,{className:"animate-spin-loading ml-2 w-5 h-5"}):i&&!m?.btnUrl&&_(Yd,{className:"w-5 h-5 animate-bounce ml-2 -mb-1"})]})})]},m?.title||g);return De(qd.Fragment,{children:[e&&_(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?De(mt,{defaultValue:t[0]?.title,children:[De(Et,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[_(Ht,{className:"mb-6 text-center",children:_(We,{className:"inline-flex mx-auto items-center mb-6 overflow-visible w-auto mb-0",children:t.map((m,g)=>_($e,{value:m.title,children:m.title},m.title+g))})}),_(_t,{}),_(Ft,{})]}),t.map((m,g)=>_(Ge,{value:m.title,children:p(m,g)},m.title+g))]}):t?.length===1&&t[0]&&p(t[0],0)]})});import{Fragment as ap,jsx as io}from"react/jsx-runtime";var ep=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return io(Ia,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return io(Ia,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},tp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>io(ap,{children:ep({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),op=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>io(W,{className:r(a),background:i,children:io(tp,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as lp,jsx as re,jsxs as Aa}from"react/jsx-runtime";var _n=({dataHeading:e,dataCTA:o,dataButtons:t})=>Aa("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(P,{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(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),ip=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Aa("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:[Aa("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&re(P,{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(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(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(pe,{ratio:4/3,children:re("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),rp=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return re(_n,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return re(ip,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return re(_n,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},np=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>re(lp,{children:rp({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),sp=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>re(W,{className:t,idSection:a,background:o,children:re(np,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import dp from"color";import pp from"tailwindcss/plugin.js";var Me="250ms",Fn={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Me},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Me},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Me},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Me},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Me},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Me},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Me},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Me},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Me},".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":Me}};var zn={".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 Bn={".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 Vn={...zn,...Fn,...Bn};import{flatten as mp}from"flat";function cp(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 On=e=>cp(mp(e,{safe:!0,delimiter:"-"}));var Wn={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var $n={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Gn={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var jn={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Un={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Qn={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Xn={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var qn={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var Zn={white:"#ffffff",black:"#000000",blue:Wn,green:$n,pink:Gn,purple:jn,red:Un,yellow:Qn,gray:qn,orange:Xn};var La={...Zn};var Kn={"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 Yn={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 fp=e=>{let o={utilities:{},colors:{}},t=On(La),a=Kn,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,d,p]=dp(s).rgb().array(),m=`--${e}-${n}`;o.utilities[i][m]=`${l} ${d} ${p}`,o.colors[n]=`rgb(var(${m}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([d,p])=>{let m=`${l}-${d}`;o.utilities[i][m]=p});else{let d=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=d}}),o},gp=()=>{let e="mobase",o=fp(e);return pp(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Vn})},{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:{...La,...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)`},...Yn}}})};import{Fragment as vp,jsx as N,jsxs as bp}from"react/jsx-runtime";var up=bp(vp,{children:[N("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"}),N("meta",{name:"distribution",content:"Global"}),N("meta",{name:"author",content:"V\xED MoMo"}),N("meta",{property:"fb:app_id",content:"320653355376196"}),N("meta",{property:"fb:pages",content:"138010322921640"}),N("link",{rel:"shortcut icon",href:"/favicon.ico"}),N("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),N("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),N("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),N("meta",{name:"language",content:"vietnamese"}),N("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),N("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),N("meta",{name:"RATING",content:"GENERAL"}),N("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),N("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),N("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),N("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),N("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),N("link",{rel:"dns-prefetch",href:"//facebook.com"}),N("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),N("link",{rel:"dns-prefetch",href:"//www.google.com"}),N("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),N("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),N("link",{rel:"preconnect",href:"//connect.facebook.net"}),N("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),N("link",{rel:"preconnect",href:"//www.google-analytics.com"}),N("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),N("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),N("link",{rel:"preconnect",href:"//www.google.com"}),N("link",{rel:"preconnect",href:"//www.google.com.vn"}),N("link",{rel:"preconnect",href:"//www.googleadservices.com"}),N("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
296
+ `})]})},Od=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return L(Mn,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return L(Mn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Wd=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>L(In,{children:Od({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),$d=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>L(W,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${t||""}`,idSection:a,background:o,children:L(Wd,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import Gd,{memo as An}from"react";import Ln from"html-react-parser";import{jsx as ue,jsxs as ao}from"react/jsx-runtime";var Ma=An(({dataFAQ:e,dataHeading:o})=>ao("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[o&&ue(P,{tagline:o?.tagline,title:o?.title,description:o?.description,tagHeading:o?.tagHeading||"h2",align:"left",colorScheme:o?.colorScheme||"pink",sizeHeading:o?.sizeHeading,className:r("md:mb-0 mb-0 mt-2 col-span-1 text-center md:text-left",o?.className)}),e&&ue("div",{className:"col-span-2",children:e[0]?.contents.map((t,a)=>ue(tt,{type:"single",collapsible:!0,className:"w-full",children:ao(ot,{value:t.title,children:[ue(at,{className:"font-bold",children:t.title}),ue(it,{children:Ln(t.description)})]})},t.title+a))})]})),En=An(({dataFAQ:e,dataHeading:o})=>ao(Gd.Fragment,{children:[o&&ue(P,{tagline:o?.tagline,title:o?.title,description:o?.description,tagHeading:o?.tagHeading,align:"center",colorScheme:o?.colorScheme||"pink",sizeHeading:o?.sizeHeading,className:r(o?.className)}),e&&ao(mt,{defaultValue:e[0]?.title,children:[ue(We,{className:"flex items-center sm:justify-center",children:e.map((t,a)=>ue($e,{value:t.title,children:t.title},t.title+a))}),e.map((t,a)=>ue(Ge,{className:"max-w-3xl mx-auto",value:t.title,children:t.contents.map((i,n)=>ue(tt,{type:"single",collapsible:!0,className:"w-full",children:ao(ot,{value:i.title,children:[ue(at,{className:"font-bold",children:i.title}),ue(it,{children:Ln(i.description)})]})},i.title+n))},t.title+a))]})]}));import{Fragment as Xd,jsx as Dt}from"react/jsx-runtime";var jd=({template:e,dataFAQ:o,dataHeading:t})=>{switch(e){case 1:return Dt(Ma,{dataFAQ:o,dataHeading:t});case 2:return Dt(En,{dataFAQ:o,dataHeading:t});default:return Dt(Ma,{dataFAQ:o,dataHeading:t})}},Ud=({dataHeading:e,dataFAQ:o,template:t})=>Dt(Xd,{children:jd({dataHeading:e,dataFAQ:o,template:t})}),Qd=({dataHeading:e,dataFAQ:o=[],className:t="",background:a=""})=>{let i=o&&o?.length>1?2:1;return Dt(W,{className:r(t),background:a,children:Dt(Ud,{dataHeading:e,dataFAQ:o,template:i})})};import qd,{memo as Zd}from"react";import Kd from"html-react-parser";import{ArrowDownIcon as Yd}from"@heroicons/react/20/solid";import{Fragment as Hn,jsx as _,jsxs as De}from"react/jsx-runtime";var Jd=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return De(Hn,{children:[_("div",{className:"rounded-md md:rounded-none aspect-[1/1] md:aspect-[77/37] relative overflow-hidden block bg-gray-100",children:De("picture",{children:[_("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),_("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})}),De("div",{className:"flex flex-col flex-1 mt-3 md:mt-0 md:p-3",children:[_("div",{className:"text-gray-900 font-medium text-sm group-hover:text-pink-500 flex-1 line-clamp-2 md:line-clamp-none",children:e?.title}),De("div",{className:"flex items-center space-x-1 mt-2",children:[e?.category&&e?.categoryUrl&&De(Hn,{children:[_(be,{variant:"default",className:"text-xs line-clamp-1 shink-0 justify-start text-left whitespace-normal",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),_("span",{className:"flex-none leading-none",children:"\xB7"})]}),_("div",{className:"text-gray-500 text-xs flex-none",children:e?.dateTime})]})]})]})},Ia=Zd(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},d=(m,g,u)=>{m?.preventDefault(),m?.stopPropagation(),a?a(g):window.open(u,"_blank")},p=(m,g)=>De("div",{children:[_("div",{className:r("flex flex-row flex-wrap -mx-2 gap-y-5",m?.newsList?.length<4?"md:justify-center":""),children:m?.newsList?.map((u,C)=>_("div",{className:"px-2 basis-1/2 lg:basis-1/4 min-w-0",children:_("div",{onClick:M=>d(M,u?.id,u?.url),className:r("cursor-pointer group flex flex-col md:h-full md:rounded-md overflow-hidden md:shadow-md md:bg-white",m?.classNameItem),children:_(Jd,{news:u})},u?.id)},C))}),m?.isShowBtn&&_("div",{className:"w-full flex items-center justify-center mt-8",children:De(st,{action:m?.btnUrl||i&&(()=>i?.(g)),newTab:m?.isNewTab,variant:"outline",disabled:m?.isLoading,children:[Kd(m.btnName||"Xem th\xEAm"),m?.isLoading?_(Nt,{className:"animate-spin-loading ml-2 w-5 h-5"}):i&&!m?.btnUrl&&_(Yd,{className:"w-5 h-5 animate-bounce ml-2 -mb-1"})]})})]},m?.title||g);return De(qd.Fragment,{children:[e&&_(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?De(mt,{defaultValue:t[0]?.title,children:[De(Et,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[_(Ht,{className:"mb-6 text-center",children:_(We,{className:"inline-flex mx-auto items-center mb-6 overflow-visible w-auto mb-0",children:t.map((m,g)=>_($e,{value:m.title,children:m.title},m.title+g))})}),_(_t,{}),_(Ft,{})]}),t.map((m,g)=>_(Ge,{value:m.title,children:p(m,g)},m.title+g))]}):t?.length===1&&t[0]&&p(t[0],0)]})});import{Fragment as ap,jsx as io}from"react/jsx-runtime";var ep=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return io(Ia,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return io(Ia,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},tp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>io(ap,{children:ep({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),op=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>io(W,{className:r(a),background:i,children:io(tp,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as lp,jsx as re,jsxs as Aa}from"react/jsx-runtime";var _n=({dataHeading:e,dataCTA:o,dataButtons:t})=>Aa("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(P,{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(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),ip=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Aa("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:[Aa("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&re(P,{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(R,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(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(pe,{ratio:4/3,children:re("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),rp=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return re(_n,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return re(ip,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return re(_n,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},np=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>re(lp,{children:rp({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),sp=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>re(W,{className:t,idSection:a,background:o,children:re(np,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import dp from"color";import pp from"tailwindcss/plugin.js";var Me="250ms",Fn={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Me},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Me},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Me},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Me},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Me},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Me},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Me},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Me},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Me},".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":Me}};var zn={".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 Bn={".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 Vn={...zn,...Fn,...Bn};import{flatten as mp}from"flat";function cp(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 On=e=>cp(mp(e,{safe:!0,delimiter:"-"}));var Wn={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var $n={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Gn={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var jn={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Un={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Qn={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Xn={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var qn={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var Zn={white:"#ffffff",black:"#000000",blue:Wn,green:$n,pink:Gn,purple:jn,red:Un,yellow:Qn,gray:qn,orange:Xn};var La={...Zn};var Kn={"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 Yn={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 fp=e=>{let o={utilities:{},colors:{}},t=On(La),a=Kn,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,d,p]=dp(s).rgb().array(),m=`--${e}-${n}`;o.utilities[i][m]=`${l} ${d} ${p}`,o.colors[n]=`rgb(var(${m}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([d,p])=>{let m=`${l}-${d}`;o.utilities[i][m]=p});else{let d=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=d}}),o},gp=()=>{let e="mobase",o=fp(e);return pp(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Vn})},{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:{...La,...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)`},...Yn}}})};import{Fragment as vp,jsx as N,jsxs as bp}from"react/jsx-runtime";var up=bp(vp,{children:[N("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"}),N("meta",{name:"distribution",content:"Global"}),N("meta",{name:"author",content:"V\xED MoMo"}),N("meta",{property:"fb:app_id",content:"320653355376196"}),N("meta",{property:"fb:pages",content:"138010322921640"}),N("link",{rel:"shortcut icon",href:"/favicon.ico"}),N("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),N("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),N("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),N("meta",{name:"language",content:"vietnamese"}),N("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),N("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),N("meta",{name:"RATING",content:"GENERAL"}),N("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),N("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),N("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),N("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),N("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),N("link",{rel:"dns-prefetch",href:"//facebook.com"}),N("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),N("link",{rel:"dns-prefetch",href:"//www.google.com"}),N("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),N("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),N("link",{rel:"preconnect",href:"//connect.facebook.net"}),N("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),N("link",{rel:"preconnect",href:"//www.google-analytics.com"}),N("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),N("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),N("link",{rel:"preconnect",href:"//www.google.com"}),N("link",{rel:"preconnect",href:"//www.google.com.vn"}),N("link",{rel:"preconnect",href:"//www.googleadservices.com"}),N("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
297
297
  "@context": "https://schema.org/",
298
298
  "@type": "WebSite",
299
299
  "@id":"https://www.momo.vn/#website",