@momo-webplatform/mobase 0.2.52 → 0.2.53
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/cjs/index.cjs +17 -17
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +118 -18
- package/dist/esm/index.d.ts +118 -18
- package/dist/esm/index.js +16 -16
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -1
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"},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:`
|
|
1
|
+
import*as Qt from"react";import*as ge from"@radix-ui/react-accordion";import{ChevronDownIcon as Cs}from"@heroicons/react/20/solid";import*as ws from"react";import{twMerge as Ns}from"tailwind-merge";var Ve={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 Ja={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 Ut=[{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"}],Jo=[{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 Y={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};import{createMedia as Ps}from"@artsy/fresnel";function r(...e){return Ns(e)}var ei=Ps({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),af=ei.createMediaStyle(),{Media:Dt,MediaContextProvider:wo}=ei;import{jsx as Mt,jsxs as Rs}from"react/jsx-runtime";var It=Qt.forwardRef(({className:e,...o},t)=>Mt(ge.Root,{ref:t,...o}));It.displayName="AccordionRoot";var At=Qt.forwardRef(({className:e,...o},t)=>Mt(ge.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));At.displayName="AccordionItem";var Lt=Qt.forwardRef(({className:e,children:o,...t},a)=>Mt(ge.Header,{className:"flex",children:Rs(ge.Trigger,{ref:a,className:r("flex flex-1 items-center text-left py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 justify-between text-gray-900",e),...t,children:[o,Mt(Cs,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));Lt.displayName=ge.Trigger.displayName;var Ht=Qt.forwardRef(({className:e,children:o,...t},a)=>Mt(ge.Content,{ref:a,className:" text-sm overflow-hidden transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...t,children:Mt("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));Ht.displayName=ge.Content.displayName;import*as ti from"react";import{Slot as Ss}from"@radix-ui/react-slot";import{cva as Ds}from"class-variance-authority";import{jsx as ue,jsxs as ks}from"react/jsx-runtime";var Ts=({className:e})=>ks("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[ue("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"}),ue("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"}),ue("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"}),ue("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"}),ue("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"}),ue("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"}),ue("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"}),ue("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"}),ue("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"}),ue("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"}),ue("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"}),ue("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"})]}),Et=Ts;import{Fragment as Is,jsx as ea,jsxs as Ms}from"react/jsx-runtime";var Te=Ds("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"}}),ve=ti.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let d=a?Ss:"button",c=r(Te({variant:o,size:t,className:e}),{"cursor-wait":i});return ea(Is,{children:a?ea(d,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):Ms(d,{className:c,type:"button",disabled:n,ref:l,...s,children:[i&&ea(Et,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});ve.displayName="Button";import*as qt from"react";import{XMarkIcon as As}from"@heroicons/react/16/solid";import*as z from"@radix-ui/react-dialog";import{jsx as Oe,jsxs as ta}from"react/jsx-runtime";var We=z.Root,oa=z.Trigger,oi=z.Portal,Ls=z.Close,aa=qt.forwardRef(({className:e,...o},t)=>Oe(z.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));aa.displayName=z.Overlay.displayName;var ke=qt.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...d},c)=>{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(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},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"},T=[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 ta(oi,{children:[Oe(aa,{}),ta(z.Content,{ref:c,className:r(...T),...d,children:[l,!t&&ta(z.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[Oe(As,{className:"h-5 w-5 text-gray-700"}),Oe("span",{className:"sr-only",children:"Close"})]})]})]})});ke.displayName=z.Content.displayName;var No=({className:e,...o})=>Oe("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});No.displayName="DialogHeader";var zt=({className:e,isCondensed:o=!1,...t})=>Oe("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});zt.displayName="DialogBody";var ai=({className:e,isDivider:o=!0,...t})=>Oe("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});ai.displayName="DialogFooter";var Po=qt.forwardRef(({className:e,...o},t)=>Oe(z.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Po.displayName=z.Title.displayName;var ii=qt.forwardRef(({className:e,...o},t)=>Oe(z.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));ii.displayName=z.Description.displayName;import{QRCodeSVG as Hs}from"qrcode.react";import{Fragment as ia,jsx as y,jsxs as J}from"react/jsx-runtime";var Es=({img:e="",children:o,isQrForAll:t})=>J(ia,{children:[y("div",{className:"qrcode__scan__container",children:J("div",{className:"qrcode__scan",children:[y("div",{className:"qrcode__gradient",children:y("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),y("div",{className:"qrcode__border",children:y("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),y("div",{className:"qrcode__image p-4",children:e?y("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),y("div",{className:"mt-4 text-sm text-white",children:t?J(ia,{children:[y("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),y("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"})]}):J(ia,{children:[y("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:y("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",y("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),y("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"))},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&<(jo,{color:d,children:o}),t&<(Uo,{tagHeading:i,color:p,size:s,children:qo(t)}),a&<(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:`
|
|
70
|
+
`})]}),gt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...d})=>y(We,{...d,children:y(ke,{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:y(zt,{className:"p-0",children:J("div",{className:"flex flex-row flex-wrap",children:[y("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||J("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[J("div",{className:"flex flex-nowrap items-center",children:[y("div",{className:"flex-none",children:y("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),J("div",{className:"flex-1 pl-4",children:[y("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),y("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"})]})]}),J("div",{className:"flex flex-nowrap items-center",children:[y("div",{className:"flex-none",children:y("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),J("div",{className:"flex-1 pl-4",children:[y("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),y("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),J("div",{className:"flex flex-nowrap items-center",children:[y("div",{className:"flex-none",children:y("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),J("div",{className:"flex-1 pl-4",children:[y("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),J("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"]})]})]})]})}),y("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:J("div",{className:"px-5 py-10 text-center",children:[t&&y("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),J("div",{className:"relative",children:[l&&y("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:y("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),y(Es,{img:i,isQrForAll:l,children:n&&y(Hs,{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 Ws}from"react";import{useEffect as zs,useLayoutEffect as _s,useState as Fs}from"react";import Bs from"ua-parser-js";var Vs=()=>Bs().device.type==="mobile",Os=typeof window<"u"?_s:zs,ri=()=>{let[e,o]=Fs(!1);return Os(()=>{o(Vs())},[]),e};import{Fragment as $s,jsx as Co,jsxs as Gs}from"react/jsx-runtime";var ut=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,d]=Ws(!1),c=ri(),m=!!a?.qrLink,g=()=>{let U=m?a?.qrLink:e;return typeof U=="string"?U.trim():""},u=()=>{let U=g();!U&&typeof e!="function"||(typeof e=="function"?e():window.open(U,o?"_blank":"_self"))},T=(U,Q=0)=>{let B=document.querySelector(U);if(!B)return;let Yo=B.getBoundingClientRect().top+window.scrollY-Q;window.scrollTo({top:Yo,behavior:"smooth"})},k=()=>{typeof e=="string"&&e.startsWith("#")?T(e,t):u()},K=()=>Gs($s,{children:[Co(ve,{...s,className:i,onClick:()=>d(!0),"data-name":"button-action-with-qr",children:n}),Co(gt,{...a,open:l,onOpenChange:()=>d(!1),qrLink:a?.qrLink||""})]});return m?c?a?.isQrForAll?K():Co(ve,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):K():Co(ve,{...s,onClick:k,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as _t from"react";import{ChevronRightIcon as js,DotsHorizontalIcon as Us}from"@radix-ui/react-icons";import{Slot as Qs}from"@radix-ui/react-slot";import{jsx as $e,jsxs as qs}from"react/jsx-runtime";var ni=_t.forwardRef(({className:e,...o},t)=>$e("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));ni.displayName="Breadcrumb";var si=_t.forwardRef(({className:e,...o},t)=>$e("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}));si.displayName="BreadcrumbList";var li=_t.forwardRef(({className:e,...o},t)=>$e("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));li.displayName="BreadcrumbItem";var mi=_t.forwardRef(({asChild:e,className:o,...t},a)=>$e(e?Qs:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));mi.displayName="BreadcrumbLink";var ci=_t.forwardRef(({className:e,...o},t)=>$e("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));ci.displayName="BreadcrumbPage";var di=({children:e,className:o,...t})=>$e("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??$e(js,{className:"w-2 h-2"})});di.displayName="BreadcrumbSeparator";var pi=({className:e,...o})=>qs("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[$e(Us,{className:"w-4 h-4 text-gray-900"}),$e("span",{className:"sr-only",children:"More"})]});pi.displayName="BreadcrumbElipssis";import{createContext as Xs,useContext as fi}from"react";import{jsx as Xt}from"react/jsx-runtime";var ra=Xs({align:"center"}),na=({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 Xt("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},sa=({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:c}=fi(ra);return Xt(s,{className:r("font-bold max-w-4xl",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],d[o],a&&"truncate","text-balance md:text-wrap",i),children:n})},la=({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:c}=fi(ra);return Xt("div",{className:r(c==="center"?"mx-auto max-w-2xl":c==="right"?"max-w-4xl ml-auto":"max-w-4xl",s[e],l[o],d[t],a&&"truncate",i),children:n})},ma=({className:e,align:o="center",children:t})=>Xt("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Xt(ra.Provider,{value:{align:o},children:t})});import ca from"html-react-parser";import{jsx as vt,jsxs as Zs}from"react/jsx-runtime";var V=({idSection:e,className:o,background:t,children:a})=>vt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:vt("div",{className:"wrapper relative",children:a})}),w=({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",c=n==="pink"?"pink":n==="white"?"white":"regular",m=n==="white"?"white":"regular";return Zs(ma,{align:e,className:l,children:[o&&vt(na,{color:d,children:o}),t&&vt(sa,{tagHeading:i,color:c,size:s,children:ca(t)}),a&&vt(la,{color:m,marginTop:s==="large"?"spacing2Xl":"spacingX",children:ca(a)})]})},P=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:vt("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 vt(ut,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:ca(s)},n)})});import dl,{memo as pl}from"react";import{ArrowDownIcon as fl}from"@heroicons/react/20/solid";import gl from"html-react-parser";import{useRef as el,useState as tl,useEffect as ol,useCallback as al,createContext as il,useContext as da}from"react";import{ChevronLeft as rl,ChevronRight as nl}from"lucide-react";import*as gi from"react";import{Slot as Ks}from"@radix-ui/react-slot";import{cva as Ys}from"class-variance-authority";import{jsx as Js}from"react/jsx-runtime";var bt=Ys("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"}}),we=gi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Ks:"button",d=r(bt({variant:o,size:t,className:e}));return Js(l,{className:d,disabled:i,ref:s,...n,children:n.children})});we.displayName="IconButton";import{Fragment as sl,jsx as it,jsxs as ui}from"react/jsx-runtime";var Ro=il(void 0),Ge=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=el(null),[n,s]=tl({left:!1,right:!1}),l=al(()=>{let c=i.current;if(c){let{scrollLeft:m,scrollWidth:g,clientWidth:u}=c;s({left:m>0,right:m+u<g})}},[]);ol(()=>{let c=i.current;if(c)return l(),window.addEventListener("resize",l),c.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),c.removeEventListener("scroll",l)}},[l]);let d=c=>{let m=i.current;if(m){let g=m.clientWidth*.7*(c==="left"?-1:1);m.scrollBy({left:g,behavior:"smooth"})}};return it(Ro.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:d,gradientOverlayColor:o},children:ui("div",{className:r("relative w-full",t),children:[e&&ui(sl,{children:[n.left&&it("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&&it("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]})})},je=({className:e,children:o})=>{let t=da(Ro);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return it("div",{ref:t.scrollContainerRef,className:r("overflow-x-auto scrollbar-hide scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},Ue=({className:e,children:o,...t})=>{let a=da(Ro);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?it(we,{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||it(rl,{className:"h-4 w-4"})}):null},Qe=({className:e,children:o,...t})=>{let a=da(Ro);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?it(we,{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||it(nl,{className:"h-4 w-4"})}):null};import*as To from"react";import*as Ne from"@radix-ui/react-tabs";import{jsx as pa}from"react/jsx-runtime";var qe=Ne.Root,Se=To.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>pa(Ne.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}));Se.displayName=Ne.List.displayName;var De=To.forwardRef(({className:e,...o},t)=>pa(Ne.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}));De.displayName=Ne.Trigger.displayName;var Me=To.forwardRef(({className:e,...o},t)=>pa(Ne.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}));Me.displayName=Ne.Content.displayName;import*as vi from"react";import{Slot as ll}from"@radix-ui/react-slot";import{cva as ml}from"class-variance-authority";import{jsx as cl}from"react/jsx-runtime";var bi=ml("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"}}),me=vi.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?ll:"button",d=r(bi({variant:o,size:t,className:e}));return cl(l,{className:d,disabled:i,ref:s,...n,children:n.children})});me.displayName="TextButton";import{Fragment as xi,jsx as M,jsxs as Ie}from"react/jsx-runtime";var ul=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ie(xi,{children:[M("div",{className:"flex-none basis-1/2 pr-3 md:basis-full md:pr-0",children:M("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Ie("picture",{children:[M("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),M("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})})}),Ie("div",{className:"basis-1/2 overflow-hidden md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&M(me,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),M("div",{className:"line-clamp-3 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),Ie("div",{className:"mt-2 flex items-center md:space-x-1",children:[e?.category&&e?.categoryUrl&&Ie(xi,{children:[M(me,{variant:"default",className:"shink-0 hidden justify-start whitespace-normal text-left text-xs md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),M("span",{className:"hidden flex-none leading-none md:block",children:"\xB7"})]}),e?.totalViews&&M("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},fa=pl(({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")},c=(m,g)=>Ie("div",{children:[M("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",m?.blogList?.length<3?"md:justify-center":""),children:m?.blogList?.map((u,T)=>M("div",{className:"min-w-0 basis-full px-3 md:basis-1/2 lg:basis-1/3",children:M("div",{onClick:k=>d(k,u?.id,u?.url),className:r("group flex cursor-pointer flex-row md:flex-col",m?.classNameItem),children:M(ul,{news:u})},u?.id)},T))}),m?.isShowBtn&&M("div",{className:"mt-8 flex w-full items-center justify-center",children:Ie(ut,{action:i?()=>i?.(g):m?.btnUrl,newTab:m?.isNewTab,variant:"outline",children:[gl(m.btnName||"Xem th\xEAm"),m?.isLoading?M(Et,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!m?.btnUrl&&M(fl,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},m?.title||g);return Ie(dl.Fragment,{children:[e&&M(w,{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?Ie(qe,{defaultValue:t[0]?.title,children:[Ie(Ge,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[M(je,{className:"mb-6 text-center",children:M(Se,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((m,g)=>M(De,{value:m.title,children:m.title},m.title+g))})}),M(Ue,{}),M(Qe,{})]}),t.map((m,g)=>M(Me,{value:m.title,children:c(m,g)},m.title+g))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as hl,jsx as Zt}from"react/jsx-runtime";var vl=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return Zt(fa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return Zt(fa,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},bl=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>Zt(hl,{children:vl({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),xl=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>Zt(V,{className:r(a),background:i,children:Zt(bl,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as So from"react";import{enUS as Pl,vi as Cl}from"date-fns/locale";import{DayPicker as Rl}from"react-day-picker";import{ChevronLeft as Tl,ChevronRight as kl}from"lucide-react";import Sl from"lunisolar";import*as hi from"react";import*as Kt from"@radix-ui/react-checkbox";import{CheckIcon as yl}from"@heroicons/react/16/solid";import{cva as yi}from"class-variance-authority";import{jsx as ga}from"react/jsx-runtime";var wl=yi("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"}}),Nl=yi("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),ko=hi.forwardRef(({className:e,size:o,...t},a)=>ga(Kt.Root,{ref:a,className:r(wl({size:o}),e),...t,children:ga(Kt.Indicator,{className:r("flex items-center justify-center text-current"),children:ga(yl,{className:r(Nl({size:o}))})})}));ko.displayName=Kt.Root.displayName;import{Fragment as Ll,jsx as Ae,jsxs as ua}from"react/jsx-runtime";var Dl=({date:e,cusContent:o})=>{let t=null;return t=Sl(e).lunar,ua(Ll,{children:[o?o(e):e.getDate(),t&&Ae("span",{className:"text-[8px] absolute top-1 right-0.5 leading-none luna-date hidden group-[.show-luna]:block",children:t.day})]})},Ml={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 Il({isShow:e,setIsShow:o,lang:t}){let a=So.useId();return Ae("div",{className:"w-full p-3 pt-0",children:ua("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[Ae(ko,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),Ae("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 Al=e=>e.getDay()===0||e.getDay()===6;function Do({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,d]=So.useState(!0);return Ae(Rl,{locale:i==="vi"?Cl:Pl,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(Te({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(Te({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:Al},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>Ae(Tl,{className:"h-6 w-6"}),IconRight:()=>Ae(kl,{className:"h-6 w-6"}),DayContent:c=>Ae(Dl,{date:c.date,cusContent:n}),Months:({children:c})=>ua("div",{className:"w-full",children:[Ae("div",{className:r("flex flex-col sm:flex-row months-wrapper"),children:c}),a&&Ae(Il,{isShow:l,setIsShow:d,lang:i})]})},formatters:i==="vi"?Ml:{},...s})}Do.displayName="Calendar";import*as _ from"react";import Hl from"embla-carousel-react";import{ChevronLeftIcon as El,ChevronRightIcon as zl}from"@heroicons/react/16/solid";import{jsx as Xe,jsxs as Ni}from"react/jsx-runtime";var wi=_.createContext(null);function Mo(){let e=_.useContext(wi);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Ze=_.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[d,c]=Hl({...o,axis:e==="horizontal"?"x":"y"},a),[m,g]=_.useState(!1),[u,T]=_.useState(!1),k=_.useCallback(Q=>{Q&&(g(Q.canScrollPrev()),T(Q.canScrollNext()))},[]),K=_.useCallback(()=>{c?.scrollPrev()},[c]),A=_.useCallback(()=>{c?.scrollNext()},[c]),U=_.useCallback(Q=>{Q.key==="ArrowLeft"?(Q.preventDefault(),K()):Q.key==="ArrowRight"&&(Q.preventDefault(),A())},[K,A]);return _.useEffect(()=>{!c||!t||t(c)},[c,t]),_.useEffect(()=>{if(c)return k(c),c.on("reInit",k),c.on("select",k),()=>{c?.off("select",k)}},[c,k]),Xe(wi.Provider,{value:{carouselRef:d,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:K,scrollNext:A,canScrollPrev:m,canScrollNext:u},children:Xe("div",{ref:l,onKeyDownCapture:U,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Ze.displayName="Carousel";var Ke=_.forwardRef(({className:e,...o},t)=>{let{carouselRef:a,orientation:i}=Mo();return Xe("div",{ref:a,className:"overflow-hidden",children:Xe("div",{ref:t,className:r("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...o})})});Ke.displayName="CarouselContent";var Ye=_.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Mo();return Xe("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})});Ye.displayName="CarouselItem";var Ft=_.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Mo();return Ni(we,{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:[Xe(El,{className:"h-6 w-6"}),Xe("span",{className:"sr-only",children:"Previous slide"})]})});Ft.displayName="CarouselPrevious";var Bt=_.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Mo();return Ni(we,{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:[Xe(zl,{className:"h-6 w-6"}),Xe("span",{className:"sr-only",children:"Next slide"})]})});Bt.displayName="CarouselNext";import*as Ci from"react";import*as Je from"@radix-ui/react-popover";import{jsx as Pi}from"react/jsx-runtime";var Yt=Je.Root,Jt=Je.Trigger,Vt=Ci.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>Pi(Je.Portal,{children:Pi(Je.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})}));Vt.displayName=Je.Content.displayName;import{format as Io}from"date-fns";import{Calendar as _l}from"lucide-react";import{QuestionMarkCircleIcon as Fl,XCircleIcon as Bl}from"@heroicons/react/16/solid";import{Fragment as Ri,jsx as ce,jsxs as eo}from"react/jsx-runtime";var Vl=({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:c})=>{let m=c?.selected||null;return eo("div",{children:[eo(Yt,{...d,children:[ce(Jt,{asChild:!0,children:eo(ve,{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:[ce("div",{className:"line-clamp-1 flex-1",children:m instanceof Date?Io(m,s):m&&typeof m=="object"&&"from"in m&&"to"in m?ce(Ri,{children:m.from?m.to?eo(Ri,{children:[ce("span",{className:"date-from",children:Io(m.from,s)})," ",ce("span",{className:"date-separator",children:"-"}),ce("span",{className:"date-to",children:Io(m.to,s)})]}):Io(m.from,s):o}):o}),e&&ce("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}),ce(_l,{className:"ml-2 h-4 w-4 text-gray-500 flex-none"})]})}),ce(Vt,{className:"w-auto !p-0 border-none",children:ce(Do,{...c})})]}),a&&eo("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[i?ce(Bl,{width:16,height:16,className:"text-red-500"}):ce(Fl,{width:16,height:16,className:"text-gray-500"}),ce("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import*as xt from"react";import*as S from"@radix-ui/react-alert-dialog";import{jsx as et,jsxs as $l}from"react/jsx-runtime";var Ol=S.Root,Wl=S.Trigger,Ti=S.Portal,va=xt.forwardRef(({className:e,...o},t)=>et(S.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}));va.displayName=S.Overlay.displayName;var ki=xt.forwardRef(({className:e,...o},t)=>$l(Ti,{children:[et(va,{}),et(S.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})]}));ki.displayName=S.Content.displayName;var Si=({className:e,...o})=>et("div",{className:r("flex flex-col space-y-2 text-left",e),...o});Si.displayName="AlertDialogHeader";var Di=({className:e,...o})=>et("div",{className:r("flex flex-row justify-end space-x-4",e),...o});Di.displayName="AlertDialogFooter";var Mi=xt.forwardRef(({className:e,...o},t)=>et(S.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));Mi.displayName=S.Title.displayName;var Ii=xt.forwardRef(({className:e,...o},t)=>et(S.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Ii.displayName=S.Description.displayName;var Ai=xt.forwardRef(({className:e,...o},t)=>et(S.Action,{ref:t,className:r(Te({variant:"primary"}),"",e),...o}));Ai.displayName=S.Action.displayName;var Li=xt.forwardRef(({className:e,...o},t)=>et(S.Cancel,{ref:t,className:r(Te({variant:"secondary"}),e),...o}));Li.displayName=S.Cancel.displayName;import{memo as Yl,useState as Jl}from"react";import{useEffect as Gl,useState as Ei}from"react";import{motion as jl}from"framer-motion";import zi from"html-react-parser";import*as Hi from"@radix-ui/react-aspect-ratio";var O=Hi.Root;import{Fragment as _i,jsx as G,jsxs as to}from"react/jsx-runtime";var Ul=({guideGroup:e,mockup:o})=>{let[t,a]=Ei(),[i,n]=Ei(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Gl(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),G(_i,{children:e?.stepList&&e?.stepList?.length>0&&to("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[G("div",{className:"h-auto w-64 flex-none",children:to("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&to(_i,{children:[G("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),G("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),G("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),G("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),G("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:to(Ze,{setApi:a,children:[G(Ke,{className:"ml-0",children:e?.stepList.map((l,d)=>G(Ye,{className:"pl-0",children:G(O,{ratio:o==="small"?540/960:540/1168,children:G("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},d))}),G(Ft,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),G(Bt,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),G("div",{className:"flex flex-auto py-4 pl-12",children:G("ul",{className:"flex flex-col",children:e?.stepList.map((l,d)=>to("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",d+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(d),children:[G("div",{className:r("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",d+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:d+1}),G("div",{className:r(" text-sm font-medium",d+1===i?"text-pink-500":"text-gray-900"),children:zi(l.title)}),l.content&&G(jl.div,{initial:"closed",animate:d+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:G("div",{className:"mt-3 text-sm text-gray-700",children:zi(l.content)})})]},d))})})]})})},ba=Ul;import{useEffect as Ql,useRef as ql,useState as Ao}from"react";import{ChevronRightIcon as Fi}from"@heroicons/react/20/solid";import Xl from"embla-carousel-autoplay";import Lo from"html-react-parser";import{Fragment as xa,jsx as b,jsxs as oe}from"react/jsx-runtime";var Zl=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=Ao(0),[s,l]=Ao();return Ql(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:b(We,{open:e,onOpenChange:o,children:oe(ke,{position:"bottom",height:"full",children:[b(No,{children:b(Po,{className:"line-clamp-1",children:t?.title})}),oe(zt,{className:"grid overflow-hidden p-0 ",children:[b(Ze,{setApi:l,className:" grid overflow-hidden",children:b(Ke,{className:"ml-0 h-full",children:t.stepList.map((d,c)=>b(Ye,{className:"h-full w-full pl-0",children:oe("div",{className:"flex h-full flex-col overflow-y-auto",children:[b("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:b("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:oe("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&oe(xa,{children:[b("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),b("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:b(O,{ratio:a==="small"?540/960:540/1168,children:b("img",{src:d.image,className:"size-full object-contain",alt:d.title})})})]})})}),oe("div",{className:"p-5 pb-12",children:[b("div",{className:"font-semibold",children:Lo(d.title)}),d?.content&&b("div",{className:"mt-3 text-sm text-gray-800",children:Lo(d.content)})]})]})},c))})}),b("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((d,c)=>b("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},Kl=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=Ao(!1),[n,s]=Ao(null),l=ql(Xl({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),d=c=>{s(e?.[c]||null),i(!0)};return e?.length===0?null:oe(xa,{children:[e?.length>1?b("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,m)=>oe("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>d(m),children:[b("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:b(O,{ratio:1,children:b("img",{src:c.avatar,className:"object-cover",alt:c.title})})}),oe("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",m+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[oe("div",{className:"py-2",children:[t&&b("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${m+1}`}),b("div",{className:"font-semibold",children:Lo(c.title)}),c?.description&&b("div",{className:"mt-1 text-sm text-gray-500",children:Lo(c.description)})]}),b("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:b(Fi,{className:"h-6 w-6"})})]})]},m))}):e?.[0]&&e[0].stepList?.length>0&&oe("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[b("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:b("div",{className:"mx-auto h-auto w-72",children:oe("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&oe(xa,{children:[b("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),b("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:b(Ze,{plugins:[l.current],children:b(Ke,{className:"ml-0",children:e[0]?.stepList.map((c,m)=>b(Ye,{className:"pl-0",onClick:()=>d(0),children:b(O,{ratio:o==="small"?540/960:540/1168,children:b("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},m))})})})]})})}),b("div",{className:"flex w-full flex-none justify-center",children:oe(me,{size:"lg",variant:"primary",onClick:()=>d(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",b(Fi,{className:"ml-1 h-5 w-5"})]})})]}),a&&b(Zl,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},Bi=Kl;import{Fragment as em,jsx as Z,jsxs as oo}from"react/jsx-runtime";var Vi=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return Z("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:Z("path",{d:t.d,fill:"currentColor"})})},ha=Yl(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:d}=o||{},[c,m]=Jl(t?.[0]?.title||"");return oo(em,{children:[e&&Z(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&oo(wo,{children:[Z(Dt,{lessThan:"md",children:Z(Bi,{dataGuide:t,mockup:i,isStep:n})}),Z(Dt,{greaterThan:"sm",children:t?.length>1?oo(qe,{defaultValue:t[0]?.title,onValueChange:g=>m(g),children:[oo(Ge,{showGradientOverlay:s,gradientOverlayColor:l,className:d,children:[Z(je,{className:"mb-6 text-center",children:Z(Se,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((g,u)=>{let T=u===t.length-1,k=c===g?.title||"";return oo(De,{value:g.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",k&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&Z(Vi,{direction:"left",className:r("right-full top-0",k?"text-pink-500":"text-pink-100")}),g.title,n&&!T&&Z(Vi,{direction:"right",className:r("left-full top-0",k?"text-pink-500":"text-pink-100")})]},g.title+u)})})}),Z(Ue,{}),Z(Qe,{})]}),t.map((g,u)=>Z(Me,{value:g.title,children:Z(ba,{guideGroup:g,mockup:i})},g.title+u))]}):t?.length===1&&t[0]&&Z(ba,{guideGroup:t[0],mockup:i})})]}),a&&Z(P,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as im,jsx as ao}from"react/jsx-runtime";var tm=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return ao(ha,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return ao(ha,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},om=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>ao(im,{children:tm({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),am=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:i,background:n,template:s=1,mockup:l="default",isStep:d=!1})=>ao(V,{className:r(i),background:n,children:ao(om,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:l,isStep:d})});import{ChevronLeft as rm,ChevronRight as nm}from"lucide-react";import{Fragment as sm,jsx as be,jsxs as Oi}from"react/jsx-runtime";function Wi({current:e,total:o,onChange:t}){let a=i=>be("li",{children:be("button",{className:r(bt({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return be("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:Oi("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&be("li",{children:be("button",{className:r(bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:be(rm,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):Oi(sm,{children:[a(1),e===1&&[a(2),a(3)],e>3&&be("li",{children:be("button",{className:r(bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&be("button",{className:r(bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&be("li",{children:be("button",{className:r(bt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:be(nm,{className:"h-4 w-4"})})})]})})}import{forwardRef as lm}from"react";import{QuestionMarkCircleIcon as mm}from"@heroicons/react/24/outline";import{XCircleIcon as cm}from"@heroicons/react/24/solid";import{jsx as Ot,jsxs as $i}from"react/jsx-runtime";var dm=lm(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...d},c)=>$i("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&Ot("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}),Ot("textarea",{disabled:e,ref:c,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&&$i("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?Ot(cm,{width:16,height:16,className:"text-red-500"}):Ot(mm,{width:16,height:16,className:"text-gray-500"}),Ot("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Ot("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
|
|
97
|
+
`})]}));import*as zo from"react";var pm=1,fm=1e6;var ya=0;function gm(){return ya=(ya+1)%Number.MAX_SAFE_INTEGER,ya.toString()}var wa=new Map,Gi=e=>{if(wa.has(e))return;let o=setTimeout(()=>{wa.delete(e),io({type:"REMOVE_TOAST",toastId:e})},fm);wa.set(e,o)},um=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,pm)};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?Gi(t):e.toasts.forEach(a=>{Gi(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}},Ho=[],Eo={toasts:[]};function io(e){Eo=um(Eo,e),Ho.forEach(o=>{o(Eo)})}function ji({...e}){let o=gm(),t=i=>io({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>io({type:"DISMISS_TOAST",toastId:o});return io({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function Na(){let[e,o]=zo.useState(Eo);return zo.useEffect(()=>(Ho.push(o),()=>{let t=Ho.indexOf(o);t>-1&&Ho.splice(t,1)}),[e]),{...e,toast:ji,dismiss:t=>io({type:"DISMISS_TOAST",toastId:t})}}import*as ht from"react";import*as W from"@radix-ui/react-toast";import{cva as vm}from"class-variance-authority";import{XMarkIcon as bm,CheckCircleIcon as xm,ExclamationTriangleIcon as hm,InformationCircleIcon as ym}from"@heroicons/react/20/solid";import{jsx as tt,jsxs as Ui}from"react/jsx-runtime";var Qi=W.Provider,Pa=ht.forwardRef(({className:e,...o},t)=>tt(W.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}));Pa.displayName=W.Viewport.displayName;var wm=vm("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"}}),Ca=ht.forwardRef(({className:e,variant:o="sucess",children:t,...a},i)=>Ui(W.Root,{ref:i,className:r(wm({variant:o}),e),...a,children:[Ui("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[o==="sucess"&&tt(xm,{className:"w-5 h-5 text-green-500"}),o==="warning"&&tt(hm,{className:"w-5 h-5 text-yellow-500"}),o==="error"&&tt(ym,{className:"w-5 h-5 text-red-500"})]}),t]}));Ca.displayName=W.Root.displayName;var qi=ht.forwardRef(({className:e,...o},t)=>tt(W.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}));qi.displayName=W.Action.displayName;var Ra=ht.forwardRef(({className:e,...o},t)=>tt(W.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:tt(bm,{className:"h-5 w-5"})}));Ra.displayName=W.Close.displayName;var Ta=ht.forwardRef(({className:e,...o},t)=>tt(W.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));Ta.displayName=W.Title.displayName;var ka=ht.forwardRef(({className:e,...o},t)=>tt(W.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));ka.displayName=W.Description.displayName;import{jsx as _o,jsxs as Sa}from"react/jsx-runtime";function Nm(){let{toasts:e}=Na();return Sa(Qi,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return Sa(Ca,{...n,children:[Sa("div",{className:"grid gap-2",children:[t&&_o(Ta,{children:t}),a&&_o(ka,{children:a})]}),i,_o(Ra,{})]},o)}),_o(Pa,{})]})}import*as Da from"react";import*as xe from"@radix-ui/react-tooltip";import{jsx as Ki}from"react/jsx-runtime";var Pm=xe.Provider,Cm=xe.Root,Rm=xe.Trigger,Xi=Da.forwardRef((e,o)=>Ki(xe.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));Xi.displayName=xe.Arrow.displayName;var Zi=Da.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>Ki(xe.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}));Zi.displayName=xe.Content.displayName;import{forwardRef as Tm,useEffect as km,useRef as Sm,useState as Dm}from"react";import{QuestionMarkCircleIcon as Mm,XCircleIcon as Im,XCircleIcon as Am}from"@heroicons/react/16/solid";import{jsx as rt,jsxs as Ma}from"react/jsx-runtime";var Lm=Tm(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:d,onFocus:c,onClickClear:m,value:g,defaultValue:u,type:T="text",...k},K)=>{let[A,U]=Dm(!1),Q=Sm(null),B=le=>{le&&!A&&U(!0),!le&&A&&U(!1)},Ya=le=>{s&&B(le.target.value),d?.(le)},Yo=le=>{s&&B(le.target.value),c?.(le)},ys=()=>{let le=Q.current?.querySelector("input");le&&(m?.(le.value),le.value="",le.focus(),U(!1))};return km(()=>{B(u||g)},[g,u]),Ma("div",{className:r(i,o&&"mobase-text-input-error"),ref:Q,children:[Ma("div",{className:"relative",children:[a&&rt("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}),rt("input",{disabled:e,type:T,ref:K,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:Ya,onFocus:Yo,value:g,defaultValue:u,...k}),s&&A&&rt("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:ys,children:rt(Im,{strokeWidth:2,width:20,height:20})})]}),t&&Ma("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?rt(Am,{width:16,height:16,className:"text-red-500"}):rt(Mm,{width:16,height:16,className:"text-gray-500"}),rt("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),rt("style",{children:`
|
|
98
98
|
.mobase-text-input-box:hover {
|
|
99
99
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
100
100
|
}
|
|
@@ -117,26 +117,26 @@ 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),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
|
|
120
|
+
`})]})});import{MinusCircleIcon as Hm,PlusCircleIcon as Em}from"@heroicons/react/24/outline";import{forwardRef as zm,useState as _m}from"react";import{jsx as ro,jsxs as Ia}from"react/jsx-runtime";var Yi=zm(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:d=!1,...c},m)=>{let[g,u]=_m(i),T=()=>{let A=Math.min(g+a,t);u(A),n?.(A),l?.(A)},k=()=>{let A=Math.max(g-a,o);u(A),n?.(A),s?.(A)},K=A=>{let U=parseFloat(A.target.value);if(!isNaN(U)){let Q=Math.max(Math.min(U,t),o);u(Q),n?.(Q)}};return Ia("div",{ref:m,className:r("flex items-center ",e),children:[Ia(we,{className:r(" text-pink-500 cursor-pointer w-9 h-9",d&&"text-gray-400 cursor-default"),variant:"transparent",onClick:k,disabled:d||g<=o,children:[ro(Hm,{className:"w-7 h-7 "}),ro("span",{className:"sr-only",children:"Decrease value"})]}),ro("input",{type:"number",value:g,onChange:K,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,...c}),Ia(we,{className:r(" text-pink-500 cursor-pointer w-9 h-9",d&&"text-gray-400 cursor-default"),variant:"transparent",onClick:T,disabled:d||g>=t,children:[ro(Em,{className:"w-7 h-7 "}),ro("span",{className:"sr-only",children:"Increase value"})]})]})});Yi.displayName="Stepper";import*as Le from"react";import{ChevronDownIcon as Ji,ChevronUpIcon as Fm,CheckIcon as Bm,XCircleIcon as Vm}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Om}from"@heroicons/react/24/outline";import*as h from"@radix-ui/react-select";import{jsx as I,jsxs as no}from"react/jsx-runtime";var Wm=Le.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},d)=>no("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&&I("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}),I(h.Root,{disabled:s,...l,children:o}),a&&no("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?I(Vm,{width:16,height:16}):I(Om,{width:16,height:16}),I("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),$m=h.Value,er=Le.forwardRef(({className:e,children:o,...t},a)=>no(h.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:[I("div",{className:"line-clamp-1 text-left",children:o}),I(h.Icon,{asChild:!0,children:I(Ji,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));er.displayName=h.Trigger.displayName;var Aa=Le.forwardRef(({className:e,...o},t)=>I(h.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:I(Fm,{className:"h-5 w-5"})}));Aa.displayName=h.ScrollUpButton.displayName;var La=Le.forwardRef(({className:e,...o},t)=>I(h.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:I(Ji,{className:"h-5 w-5"})}));La.displayName=h.ScrollDownButton.displayName;var tr=Le.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>I(h.Portal,{children:no(h.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:[I(Aa,{}),I(h.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),I(La,{})]})}));tr.displayName=h.Content.displayName;var Gm=Le.forwardRef(({className:e,children:o,...t},a)=>I(h.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),or=Le.forwardRef(({className:e,...o},t)=>I(h.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));or.displayName=h.Label.displayName;var jm=Le.forwardRef(({className:e,children:o,...t},a)=>no(h.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:[I("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:I(h.ItemIndicator,{children:I(Bm,{className:"h-4 w-4 text-pink-500"})})}),I(h.ItemText,{children:o})]})),ar=Le.forwardRef(({className:e,...o},t)=>I(h.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));ar.displayName=h.Separator.displayName;import*as Pe from"react";import*as L from"@radix-ui/react-navigation-menu";import{cva as Um}from"class-variance-authority";import{ChevronDownIcon as Qm}from"@heroicons/react/16/solid";import{jsx as He,jsxs as Ym}from"react/jsx-runtime";var ir=Pe.createContext(null),qm=({value:e,children:o})=>He(ir.Provider,{value:e,children:o}),Xm=()=>{let e=Pe.useContext(ir);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Fo=Pe.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>He(qm,{value:{alignDropdown:t},children:He(L.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Fo.displayName=L.Root.displayName;var Bo=Pe.forwardRef(({className:e,...o},t)=>He(L.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Bo.displayName=L.List.displayName;var Vo=L.Item,Oo=Um(Te({variant:"transparent",size:"sm"})),Wo=Pe.forwardRef(({className:e,children:o,...t},a)=>Ym(L.Trigger,{ref:a,className:r(Oo(),"group px-2",e),...t,children:[o," ",He(Qm,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Wo.displayName=L.Trigger.displayName;var $o=Pe.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Xm();return He(L.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})});$o.displayName=L.Content.displayName;var so=L.Link,Zm=Pe.forwardRef(({className:e,...o},t)=>He("div",{className:r("absolute left-0 top-full flex justify-center"),children:He(L.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})}));Zm.displayName=L.Viewport.displayName;var Km=Pe.forwardRef(({className:e,...o},t)=>He(L.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:He("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Km.displayName=L.Indicator.displayName;import*as nr from"react";import*as lo from"@radix-ui/react-switch";import{jsx as rr}from"react/jsx-runtime";var sr=nr.forwardRef(({className:e,...o},t)=>rr(lo.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:rr(lo.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")})}));sr.displayName=lo.Root.displayName;import*as yt from"react";import*as nt from"@radix-ui/react-radio-group";import{Circle as Jm}from"lucide-react";import{cva as lr}from"class-variance-authority";import{jsx as mo}from"react/jsx-runtime";var ec=lr("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"}}),tc=lr("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),mr=yt.createContext({size:"medium"});function oc(){let e=yt.useContext(mr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var cr=yt.forwardRef(({className:e,size:o,...t},a)=>mo(mr.Provider,{value:{size:o},children:mo(nt.Root,{className:r("grid gap-2",e),...t,ref:a})}));cr.displayName=nt.Root.displayName;var dr=yt.forwardRef(({className:e,...o},t)=>{let a=oc(),{size:i}=a??{};return mo(nt.Item,{ref:t,className:r(ec({size:i}),e),...o,children:mo(nt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:mo(Jm,{className:r(tc({size:i}))})})})});dr.displayName=nt.Item.displayName;import{jsx as Wt,jsxs as pr}from"react/jsx-runtime";var ac=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Wt("li",{className:"",children:Wt(so,{asChild:!0,children:pr("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&&Wt("div",{className:"w-7 h-7 shrink-0 mt-1",children:Wt("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),pr("div",{className:" ",children:[Wt("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&Wt("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},fr=ac;import{jsx as st,jsxs as rc}from"react/jsx-runtime";var ic=({data:e,alignDropdown:o})=>st(Fo,{alignDropdown:o,children:st(Bo,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?rc(Vo,{className:"relative",children:[st(Wo,{children:t.title}),st($o,{children:st("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=>st(fr,{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):st(Vo,{className:"relative",children:st(so,{href:t.url,className:Oo(),...a,children:t.title})},t.id)})})}),gr=ic;import{useEffect as dc,useState as pc}from"react";var Go=[.24,.25,.05,1];import{useKey as fc}from"react-use";import xr from"next/router";import{jsx as co,jsxs as ur}from"react/jsx-runtime";var nc=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return co("li",{className:"min-h-8",children:ur("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&co("div",{className:"w-6 h-6 shrink-0",children:co("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),ur("div",{className:" ",children:[co("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&co("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},vr=nc;import{motion as sc}from"framer-motion";import{jsx as wt,jsxs as cc}from"react/jsx-runtime";var lc={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Go}},exit:{opacity:0,transition:{duration:.05}}},mc=({data:e})=>wt(It,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return wt(sc.div,{variants:lc,children:o.hasDropdown?cc(At,{value:o.id,children:[wt(Lt,{className:"py-3",children:o.title}),wt(Ht,{children:wt("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>wt(vr,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):wt("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)})}),br=mc;import{motion as Ha,AnimatePresence as gc,LazyMotion as uc,domAnimation as vc}from"framer-motion";import{jsx as N,jsxs as ee}from"react/jsx-runtime";var bc=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,xc=({data:e,className:o})=>{let[t,a]=pc(!1);fc("Escape",()=>a(!1)),dc(()=>{if(!t)return;let s=bc();function l(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",xr.events.on("routeChangeComplete",l),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),xr.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:Go}},exit:{opacity:0,transition:{duration:.15}}};return ee("div",{className:r(o),children:[ee("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>a(!t),children:[N("span",{className:"sr-only",children:"Navigation"}),N(Ha.div,{animate:t?"hidden":"visible",variants:i,children:N("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:N("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),N(Ha.div,{animate:t?"visible":"hidden",variants:i,children:N("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:N("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),N(uc,{features:vc,children:N(gc,{mode:"wait",children:t&&ee(Ha.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:[N(br,{data:e}),ee("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[N("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),ee("div",{className:"flex flex-nowrap",children:[N("div",{className:"flex-initial",children:N("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:N("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),N("div",{className:"ml-3 flex-initial",children:N("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:N("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),N("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),ee("ul",{className:"mb-2 text-sm text-gray-500",children:[ee("li",{className:"mb-1",children:["Hotline :\xA0",N("a",{href:`tel:${Ve.Support.Hotline}`,className:"text-gray-600",children:Ve.Support.Hotline_Format})]}),ee("li",{className:"mb-1",children:["Email :\xA0",N("a",{href:`mailto:${Ve.Support.Email}`,className:"text-gray-600",children:Ve.Support.Email})]})]}),N("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:ee("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:[N("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:N("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:ee("g",{children:[N("title",{children:"Asset 1"}),N("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
|
-
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),
|
|
122
|
+
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),N("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
123
123
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
124
|
-
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),
|
|
124
|
+
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),N("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),N("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),N("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),ee("ul",{className:"mb-2 text-sm text-gray-500",children:[ee("li",{className:"mb-1",children:["Hotline :\xA0",N("a",{className:"text-gray-600",href:`tel:${Ve.Business.Phome}`,children:Ve.Business.Phome_Format})]}),ee("li",{className:"mb-1",children:["Email :\xA0",ee("a",{href:`mailto:${Ve.Business.Email}`,className:"text-gray-600",children:[" ",Ve.Business.Email]})]})]}),N("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:ee("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-12 pr-2 hover:bg-gray-100",children:[N("div",{className:"absolute left-1 top-1 ",children:N("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),N("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),N("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},hr=xc;import hc from"html-react-parser";import{ArrowDownTrayIcon as yc}from"@heroicons/react/16/solid";import{useState as wc}from"react";import{jsx as Ce,jsxs as Nt}from"react/jsx-runtime";var yr=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left"})=>{let{logo:l,name:d,url:c}=t||{},[m,g]=wc(!1);return Nt("div",{className:r(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[Ce("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Ce("nav",{className:r("wrapper grid grid-cols-1 items-center lg:border-0 [--header-height:64px] "),style:{minHeight:"var(--header-height)"},children:Nt("div",{className:"relative flex items-center ",children:[Nt("a",{href:"/",title:"MoMo",className:"mr-3 flex-none w-9 h-9 overflow-hidden rounded-none hover:opacity-80",children:[Ce("span",{className:"sr-only",children:"MoMo home page"}),Ce("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"})]}),t&&Nt("a",{href:c,title:d,className:" relative flex flex-none space-x-1 pl-2 items-center rounded-none hover:opacity-80 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] ",children:[Ce("img",{src:l,className:"w-9 h-9",alt:"MoMo"}),Ce("div",{className:"text-sm font-semibold leading-[1.1] text-pink-500 line-clamp-2",children:d&&hc(d)})]}),Ce("div",{className:"relative lg:ml-2 xl:ml-4 hidden lg:flex items-center ",children:Ce(gr,{data:o,alignDropdown:s})}),Nt("div",{className:"ml-auto flex space-x-3 flex-nowrap items-center",children:[i&&i,a&&Nt("div",{className:" hidden sm:flex",children:[Nt(ve,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",Ce(yc,{className:"mr-1 w-4 h-4"})," T\u1EA3i V\xED MoMo"]}),Ce(gt,{open:m,onOpenChange:()=>g(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Ce(hr,{data:o,className:"lg:hidden "})]})]})})]})};yr.displayName="HeaderNavigation";import{useState as Nc}from"react";import{Fragment as Cc,jsx as f,jsxs as C}from"react/jsx-runtime";var wr=({item:e})=>f("div",{className:"mt-3 flex w-full text-sm",children:C("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&f("span",{className:"relative flex-none h-5 w-5 md:h-6 md:w-6",children:f("img",{src:e.icon,className:"absolute inset-0"})}),f("span",{className:"block ",children:e.title})]})}),Pc=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=Nc(null);return C(Cc,{children:[f("div",{className:"footer-main order-2 py-7 text-white md:order-1 text-sm",children:C("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[C("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[f("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((i,n)=>f(wr,{item:i},n))]}),C("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[f("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),f("div",{className:"flex flex-wrap",children:o?.lists?.map((i,n)=>f(wr,{item:i},n))})]}),C("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[C("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[f("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),C("div",{className:"mt-2 text-sm md:mt-3",children:[f("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),f("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:Ja.Address})]}),C("div",{className:"mt-1 text-sm",children:[f("span",{className:"text-white text-opacity-50",children:"Hotline : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Y.Support.Hotline}`,children:Y.Support.Hotline_Format}),C("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),C("div",{className:"mt-1 text-sm",children:[f("span",{className:"text-white text-opacity-50",children:"Email : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${Y.Support.Email}`,children:Y.Support.Email})]}),C("div",{className:"mt-1 text-sm",children:[C("span",{className:"text-white text-opacity-50",children:["T\u1ED5ng \u0111\xE0i g\u1ECDi ra :"," "]}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Y.Support.Phone_Ext_1}`,children:Y.Support.Phone_Ext_1_Format}),f("span",{className:"text-white text-opacity-60",children:" - "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Y.Support.Phone_Ext_2}`,children:Y.Support.Phone_Ext_2_Format}),f("span",{className:"text-white text-opacity-60",children:" - "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Y.Support.Phone_Ext_3}`,children:Y.Support.Phone_Ext_3_Format}),f("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),f("div",{className:"mt-3 flex",children:f("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:C("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[f("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:f("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:C("g",{children:[f("title",{children:"Asset 1"}),f("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
|
|
125
125
|
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
|
|
126
126
|
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),f("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
|
|
127
127
|
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
|
|
128
|
-
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),f("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),f("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),w("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[f("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),w("div",{className:"mt-2 text-sm md:mt-3",children:[f("span",{className:"text-white text-opacity-50",children:"Hotline : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Business.Phome}`,children:U.Business.Phome_Format})]}),w("div",{className:"mt-1 text-sm",children:[f("span",{className:"text-white text-opacity-50",children:"Email : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${U.Business.Email}`,children:U.Business.Email})]}),w("div",{className:"mt-1 text-sm",children:[f("span",{className:"text-white text-opacity-50",children:"Website : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),f("div",{className:"mt-3 flex",children:f("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:w("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[f("div",{className:"absolute left-1 top-1 flex aspect-1 items-center justify-center",children:w("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[f("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),f("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),f("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),f("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),f("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),f("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),f("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),f("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),f("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),f("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),f("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),w("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[w("div",{className:"h-auto",children:[f("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),f("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:f("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Mt&&Mt.map((i,n)=>f("li",{className:"inline-block",children:f("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:f("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),w("div",{className:"h-auto",children:[f("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),w("div",{className:"flex items-center flex-wrap md:mt-3 md:space-x-1.5",children:[f("div",{className:"relative hidden h-24 w-24 lg:w-20 lg:h-20 grow-0 overflow-hidden rounded-sm bg-white md:block",children:f("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),f("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:zo&&zo.map((i,n)=>w("div",{className:"w-full md:flex md:items-center button-download",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[f(le,{onClick:()=>a(n),className:"!bg-transparent rounded-none w-full hidden sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),f("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),f(nt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),f("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:f("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Mt&&Mt.map((i,n)=>f("li",{children:f("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:f("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),w("div",{className:"h-auto",children:[f("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),w("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[w("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),f("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:f("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),f("div",{className:" footer-bottom order-1 bg-gray-800 py-3.5 md:order-2 md:py-5",children:w("div",{className:"wrapper flex flex-wrap items-end justify-between md:flex-nowrap md:space-x-3",children:[w("div",{className:"mb-2.5 flex justify-between md:mb-0",children:[f("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"}),w("div",{className:"shrink pl-3",children:[f("div",{className:"text-sm text-white text-opacity-80 md:mb-1.5 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),f("span",{className:"hidden text-xs text-white text-opacity-50 md:block lg:text-sm lg:leading-none",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"})]})]}),f("span",{className:"block text-sm text-white text-opacity-50 md:hidden",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),w("span",{className:"hidden w-48 flex-none text-right text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})}),f("style",{children:`
|
|
128
|
+
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),f("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),f("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),C("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[f("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),C("div",{className:"mt-2 text-sm md:mt-3",children:[f("span",{className:"text-white text-opacity-50",children:"Hotline : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${Y.Business.Phome}`,children:Y.Business.Phome_Format})]}),C("div",{className:"mt-1 text-sm",children:[f("span",{className:"text-white text-opacity-50",children:"Email : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${Y.Business.Email}`,children:Y.Business.Email})]}),C("div",{className:"mt-1 text-sm",children:[f("span",{className:"text-white text-opacity-50",children:"Website : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),f("div",{className:"mt-3 flex",children:f("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:C("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[f("div",{className:"absolute left-1 top-1 flex aspect-1 items-center justify-center",children:C("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[f("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),f("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),f("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),f("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),f("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),f("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),f("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),f("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),f("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),f("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),f("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),C("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[C("div",{className:"h-auto",children:[f("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),f("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:f("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Ut&&Ut.map((i,n)=>f("li",{className:"inline-block",children:f("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:f("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),C("div",{className:"h-auto",children:[f("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),C("div",{className:"flex items-center flex-wrap md:mt-3 md:space-x-1.5",children:[f("div",{className:"relative hidden h-24 w-24 lg:w-20 lg:h-20 grow-0 overflow-hidden rounded-sm bg-white md:block",children:f("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),f("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:Jo&&Jo.map((i,n)=>C("div",{className:"w-full md:flex md:items-center button-download",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[f(ve,{onClick:()=>a(n),className:"!bg-transparent rounded-none w-full hidden sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),f("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),f(gt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),f("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:f("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Ut&&Ut.map((i,n)=>f("li",{children:f("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:f("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),C("div",{className:"h-auto",children:[f("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),C("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[C("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),f("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:f("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),f("div",{className:" footer-bottom order-1 bg-gray-800 py-3.5 md:order-2 md:py-5",children:C("div",{className:"wrapper flex flex-wrap items-end justify-between md:flex-nowrap md:space-x-3",children:[C("div",{className:"mb-2.5 flex justify-between md:mb-0",children:[f("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"}),C("div",{className:"shrink pl-3",children:[f("div",{className:"text-sm text-white text-opacity-80 md:mb-1.5 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),f("span",{className:"hidden text-xs text-white text-opacity-50 md:block lg:text-sm lg:leading-none",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"})]})]}),f("span",{className:"block text-sm text-white text-opacity-50 md:hidden",children:"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, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),C("span",{className:"hidden w-48 flex-none text-right text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})}),f("style",{children:`
|
|
129
129
|
footer .button-download {
|
|
130
130
|
max-width: 150px;
|
|
131
131
|
}
|
|
132
|
-
`})]})},
|
|
132
|
+
`})]})},Nr=Pc;import{jsx as Pr}from"react/jsx-runtime";var Rc=({className:e,primaryMenu:o,secondaryMenu:t})=>Pr("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Pr(Nr,{primaryMenu:o,secondaryMenu:t})});import*as Pt from"react";import{jsx as $t}from"react/jsx-runtime";var Cr=Pt.forwardRef(({className:e,...o},t)=>$t("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Cr.displayName="Card";var Rr=Pt.forwardRef(({className:e,...o},t)=>$t("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));Rr.displayName="CardHeader";var Tr=Pt.forwardRef(({className:e,...o},t)=>$t("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));Tr.displayName="CardTitle";var kr=Pt.forwardRef(({className:e,...o},t)=>$t("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));kr.displayName="CardDescription";var Sr=Pt.forwardRef(({className:e,...o},t)=>$t("div",{ref:t,className:r("p-6 pt-0",e),...o}));Sr.displayName="CardContent";var Dr=Pt.forwardRef(({className:e,...o},t)=>$t("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));Dr.displayName="CardFooter";import*as he from"react";import{Command as ae}from"cmdk";import{XCircleIcon as Tc,MagnifyingGlassIcon as kc}from"@heroicons/react/16/solid";import{jsx as de,jsxs as Dc}from"react/jsx-runtime";var Ea=he.forwardRef(({className:e,...o},t)=>de(ae,{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}));Ea.displayName=ae.displayName;var Sc=({children:e,...o})=>de(We,{...o,children:de(ke,{className:"overflow-hidden p-0 shadow-lg",children:de(Ea,{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})})}),Mr=he.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=he.useRef(null),[s,l]=he.useState(""),d=()=>{!s||s?.length<=0||(l(""),o?.(s))};return Dc("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[de(kc,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),de(ae.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}),de(Tc,{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")})]})});Mr.displayName=ae.Input.displayName;var Ir=he.forwardRef(({className:e,...o},t)=>de(ae.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Ir.displayName=ae.List.displayName;var Ar=he.forwardRef((e,o)=>de(ae.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Ar.displayName=ae.Empty.displayName;var Lr=he.forwardRef(({className:e,...o},t)=>de(ae.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}));Lr.displayName=ae.Group.displayName;var Hr=he.forwardRef(({className:e,...o},t)=>de(ae.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));Hr.displayName=ae.Separator.displayName;var Er=he.forwardRef(({className:e,children:o,...t},a)=>de(ae.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}));Er.displayName=ae.Item.displayName;var zr=({className:e,...o})=>de("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});zr.displayName="CommandShortcut";import{ChevronDownIcon as Mc}from"@heroicons/react/16/solid";import{jsx as jo,jsxs as _r}from"react/jsx-runtime";var Ic=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>_r("div",{className:"relative",children:[_r(Jt,{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,jo(Mc,{className:"h-4 w-4 text-gray-700 flex-none"})]}),t&&jo("span",{className:"absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",children:t})]}),Ac=({children:e,className:o})=>jo(Vt,{className:r("!p-0 border-none",o),children:e}),Lc=({open:e,onOpenChange:o,children:t})=>jo(Yt,{open:e,onOpenChange:o,children:t});import{cva as Br}from"class-variance-authority";import{forwardRef as Hc}from"react";import{InformationCircleIcon as Ec}from"@heroicons/react/24/outline";import{jsx as za,jsxs as Fr}from"react/jsx-runtime";var zc=Br("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"}}),_c=Br("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"}}),Fc=Hc(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...d},c)=>Fr("div",{ref:c,className:r("",i,zc({typeDiv:e,disabled:n})),...d,children:[Fr("div",{className:"flex items-center space-x-2",children:[l||za(Ec,{className:r(_c({typeIcon:e,disabled:n})),width:20,height:20}),o&&za("div",{children:o})]}),t&&za(me,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as Bc,useEffect as Vc,useRef as Oc,useState as Wc}from"react";import{MagnifyingGlassIcon as $c}from"@heroicons/react/20/solid";import{XCircleIcon as Gc}from"@heroicons/react/24/outline";import{jsx as Gt,jsxs as Vr}from"react/jsx-runtime";var jc=Bc(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:d,type:c="text",...m},g)=>{let[u,T]=Wc(!1),k=Oc(null),K=B=>{B&&!u&&T(!0),!B&&u&&T(!1)},A=B=>{K(B.target.value),i?.(B)},U=B=>{K(B.target.value),n?.(B)},Q=()=>{let B=k.current?.querySelector("input");B&&(s?.(B.value),B.value="",B.focus(),T(!1))};return Vc(()=>{K(d||l)},[l,d]),Vr("div",{className:r(o),ref:k,children:[Vr("div",{className:"relative flex items-center",children:[Gt("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:Gt($c,{className:"w-4 h-4 text-gray-500"})}),Gt("input",{disabled:e,type:c,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:A,onFocus:U,value:l,defaultValue:d,...m}),u&&Gt("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:Q,children:Gt(Gc,{strokeWidth:2,width:20,height:20})})]}),Gt("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
|
|
139
|
+
`})]})});import*as pe from"@radix-ui/react-dialog";import Wr,{useContext as Uc,useEffect as Or,useState as _a}from"react";import{X as Qc}from"lucide-react";import qc from"lodash";import{jsx as q,jsxs as ot}from"react/jsx-runtime";var $r=Wr.createContext(void 0);function Gr(){let e=Uc($r);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Fa=({children:e,open:o,onOpenChange:t,className:a})=>q($r.Provider,{value:{open:o,onOpenChange:t},children:q(pe.Root,{open:o,onOpenChange:t,children:q("div",{className:r("lightbox-gallery",a),children:e})})}),Xc=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=Gr(),d=()=>{n?.(),l&&l(!0)};return ot(pe.Trigger,{className:r("",a),onClick:d,children:[e,q(O,{ratio:s,className:"rounded-lg cursor-pointer",children:q("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},jr=Wr.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=Gr(),n=()=>{i&&i(!1)};return ot(pe.Portal,{children:[q(pe.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),ot(pe.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,ot(pe.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:[q(Qc,{className:"h-4 w-4 mt-0.5"}),q("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});jr.displayName=pe.Content.displayName;var Ba=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=_a(""),[l,d]=_a(),[c,m]=_a(0);Or(()=>{l&&(m(l.selectedScrollSnap()+1),l.on("select",()=>{m(l.selectedScrollSnap()+1)}))},[l]);let g=u=>{let T=qc.filter(e,(K,A)=>A===(u>0?u-1:u)),k=T.length>0?T[0]?.titleImage:"";s(k)};return Or(()=>{g(c)},[c]),ot(jr,{className:"flex py-0",children:[ot("div",{className:" flex-1 relative",children:[ot("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),ot(Ze,{opts:{startIndex:o},setApi:d,className:"w-full h-full relative",children:[q(Ke,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,T)=>q(Ye,{className:"pl-6 md:pl-4",children:ot("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[q("div",{className:"flex-1 relative",children:q("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),q("div",{className:"flex-0",children:q("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:q("div",{className:"line-clamp-3",children:n})})})]})},T))}),q(Ft,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),q(Bt,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&q("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as lt from"react";import*as mt from"@radix-ui/react-radio-group";import{Circle as Zc}from"lucide-react";import*as po from"@radix-ui/react-checkbox";import{CheckIcon as Kc}from"@heroicons/react/16/solid";import{jsx as Ee,jsxs as Zr}from"react/jsx-runtime";var Ur=lt.createContext({hideIndicator:!1});function Yc(){let e=lt.useContext(Ur);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Qr=lt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>Ee(Ur.Provider,{value:{hideIndicator:o},children:Ee(mt.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Qr.displayName=mt.Root.displayName;var qr=lt.forwardRef(({className:e,children:o,...t},a)=>{let i=Yc(),{hideIndicator:n}=i??{};return Zr(mt.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:[Ee("div",{className:"flex-1 min-w-0",children:o}),!n&&Ee("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:Ee(mt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Ee(Zc,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});qr.displayName=mt.Item.displayName;var Xr=lt.forwardRef(({className:e,children:o,...t},a)=>Zr(po.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:[Ee("div",{className:"flex-1 min-w-0",children:o}),Ee("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:Ee(po.Indicator,{className:r("flex items-center justify-center text-current"),children:Ee(Kc,{className:"h-4 w-4"})})})]}));Xr.displayName=po.Root.displayName;import{cva as Jc}from"class-variance-authority";import{jsx as td}from"react/jsx-runtime";var Kr=Jc("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 ed({className:e,variant:o,...t}){return td("div",{className:r(Kr({variant:o}),e),...t})}import*as Jr from"react";import*as fo from"@radix-ui/react-progress";import{cva as en}from"class-variance-authority";import{jsx as Yr}from"react/jsx-runtime";var od=en("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"}}),ad=en("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"}}),tn=Jr.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>Yr(fo.Root,{ref:s,className:r("",ad({size:a}),e),...n,children:Yr(fo.Indicator,{className:r("",od({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));tn.displayName=fo.Root.displayName;import{jsx as rd}from"react/jsx-runtime";function id({className:e,...o}){return rd("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as sd,jsx as Ct,jsxs as on}from"react/jsx-runtime";function nd({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 Ct("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return on("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,d)=>Ct("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},d)),Ct("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
|
|
166
|
+
`})]});case"default":default:return on(sd,{children:[Ct("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:Ct("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e],t),children:[...Array(12)].map((l,d)=>Ct("div",{className:r(`spinner_bar child-${d+1}`,o)},d))})}),Ct("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: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(
|
|
246
|
+
`})]})}})()})}import*as an from"react";import*as ze from"@radix-ui/react-slider";import{jsx as ct,jsxs as ld}from"react/jsx-runtime";var rn=an.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>ld(ze.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[ct(ze.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:ct(ze.Range,{className:"absolute h-full bg-pink-500"})}),ct(ze.Thumb,{className:"group relative",children:ct("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&&ct("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})})}),ct(ze.Thumb,{className:"group relative",children:ct("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&&ct("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})})})]}));rn.displayName=ze.Root.displayName;import{forwardRef as Pd}from"react";import{Fragment as pd,jsx as ye,jsxs as Uo}from"react/jsx-runtime";var md=({author:e=""})=>ye("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),cd=({author:e,avatar:o})=>ye("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?ye("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):ye(md,{author:e})});function dd({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return ye(pd,{children:Uo("div",{className:"flex relative items-center space-x-3",children:[ye(cd,{avatar:e,author:o}),Uo("div",{className:"flex flex-col",children:[o&&ye("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Uo("div",{className:"flex items-center space-x-2 text-xs",children:[t&&ye("div",{className:"text-gray-400",children:t}),a&&Uo("div",{className:"flex items-center space-x-2",children:[ye("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),ye("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&ye("div",{className:"absolute right-1 top-0",children:ye("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var nn=dd;import{useState as dn}from"react";import{StarIcon as fd}from"@heroicons/react/20/solid";import{jsx as sn,jsxs as ln}from"react/jsx-runtime";var gd={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!"},ud={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 vd({point:e,max:o,className:t}){let a=o>5?gd[e||10]:ud[e||5];return ln("div",{className:r("flex items-center space-x-1",t),children:[sn(fd,{className:"w-5 h-5 text-yellow-500"}),sn("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),ln("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var mn=vd;import{useState as bd}from"react";import cn from"html-react-parser";import{jsx as xd,jsxs as hd}from"react/jsx-runtime";var Va=({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]=bd(!0),d=()=>{l(!s)},c=(m,g,u=" ")=>m.length<=g?m:m.substring(0,m.lastIndexOf(u,g));return hd("div",{className:r(n),children:[s?cn(c(e,o)):cn(e),e.length>o&&xd("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 Rt,jsxs as pn}from"react/jsx-runtime";function yd({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=dn(0),[d,c]=dn(!1),m=g=>{c(!0),l(g)};return pn("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&Rt(mn,{className:"mb-0.5",point:i.point,max:i.max}),e&&Rt(Va,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&Rt("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>Rt("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&&pn(Fa,{open:d,onOpenChange:c,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((g,u)=>Rt(O,{onClick:()=>m(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:Rt("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),Rt(Ba,{activeSlideIndex:s,images:o?.map((g,u)=>({url:g.url,titleImage:g.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var fn=yd;import{jsx as Nd}from"react/jsx-runtime";function wd({actions:e=[]}){return Nd("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var gn=wd;import{jsx as Qo,jsxs as Rd}from"react/jsx-runtime";var Cd=Pd(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:d,isReply:c,children:m,commentSideBar:g,isOutStanding:u,limitContent:T=260},k)=>Rd("div",{ref:k,className:r("",c?"ml-4 py-4":"py-5"),children:[Qo(nn,{avatar:e,author:o,time:t,statusMessage:d,isOutStanding:u}),Qo(fn,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:T}),l&&l?.filter(Boolean)?.length>0&&Qo(gn,{actions:l.filter(Boolean)}),m&&Qo("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 dt from"react";import{cva as Td}from"class-variance-authority";import{CheckIcon as kd}from"@heroicons/react/16/solid";import{XIcon as Sd}from"lucide-react";import{jsx as ie,jsxs as qo}from"react/jsx-runtime";var Dd=Td("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"}}),un=dt.createContext("default");function Md(){let e=dt.useContext(un);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Id=dt.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?ie(Sd,{className:s}):qo("div",{children:[e==="iconStep"&&ie("div",{className:s,children:o}),e==="numberStep"&&ie("div",{children:t}),e==="default"&&(n==="completed"?ie(kd,{className:s}):ie("div",{children:t}))]})}),Ad=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=dt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return ie("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Ld=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:d,icon:c,isError:m,onValueChangeStep:g,...u})=>{let T=Md();return qo("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[qo("div",{className:"flex w-full items-center justify-center gap-2",children:[ie("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")}),ie("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Dd({state:o,size:t}),m&&"bg-red-500 text-white shadow-none",i),...u,children:ie(Id,{type:T,icon:c,stepNumber:e,size:t,isError:m,state:o})}),ie("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),qo("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&&ie("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&ie("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Hd=({children:e,className:o,type:t="numberStep",...a})=>ie(un.Provider,{value:t,children:ie("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as re from"react";import{Slot as Fd}from"@radix-ui/react-slot";import{Controller as Bd,FormProvider as Vd,useFormContext as Od}from"react-hook-form";import*as vn from"react";import*as Oa from"@radix-ui/react-label";import{cva as Ed}from"class-variance-authority";import{jsx as _d}from"react/jsx-runtime";var zd=Ed("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Xo=vn.forwardRef(({className:e,...o},t)=>_d(Oa.Root,{ref:t,className:r(zd(),e),...o}));Xo.displayName=Oa.Root.displayName;import{jsx as pt}from"react/jsx-runtime";var Wd=Vd,bn=re.createContext({}),$d=({...e})=>pt(bn.Provider,{value:{name:e.name},children:pt(Bd,{...e})}),go=()=>{let e=re.useContext(bn),o=re.useContext(xn),{getFieldState:t,formState:a}=Od(),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}},xn=re.createContext({}),hn=re.forwardRef(({className:e,...o},t)=>{let a=re.useId();return pt(xn.Provider,{value:{id:a},children:pt("div",{ref:t,className:r("space-y-2",e),...o})})});hn.displayName="FormItem";var yn=re.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=go();return pt(Xo,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});yn.displayName="FormLabel";var wn=re.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=go();return pt(Fd,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});wn.displayName="FormControl";var Nn=re.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=go();return pt("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});Nn.displayName="FormDescription";var Pn=re.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=go(),s=i?String(i?.message):o;return s?pt("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});Pn.displayName="FormMessage";import*as at from"react";import*as x from"@radix-ui/react-dropdown-menu";import{ChevronRight as Gd,Check as jd}from"lucide-react";import{jsx as te,jsxs as uo}from"react/jsx-runtime";var Ud=x.Root,Qd=x.Trigger,qd=x.Group,Xd=x.Portal,Zd=x.Sub,Kd=x.RadioGroup,Cn=at.forwardRef(({className:e,inset:o,children:t,...a},i)=>uo(x.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,te(Gd,{className:"ml-auto"})]}));Cn.displayName=x.SubTrigger.displayName;var Rn=at.forwardRef(({className:e,...o},t)=>te(x.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}));Rn.displayName=x.SubContent.displayName;var Tn=at.forwardRef(({className:e,sideOffset:o=4,...t},a)=>te(x.Portal,{children:te(x.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})}));Tn.displayName=x.Content.displayName;var kn=at.forwardRef(({className:e,inset:o,...t},a)=>te(x.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}));kn.displayName=x.Item.displayName;var Sn=at.forwardRef(({className:e,children:o,checked:t,...a},i)=>uo(x.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:[uo("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&te("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),te(x.ItemIndicator,{children:te("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:te(jd,{size:16,strokeWidth:3})})})]}),o]}));Sn.displayName=x.CheckboxItem.displayName;var Dn=at.forwardRef(({className:e,children:o,...t},a)=>uo(x.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:[uo("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[te("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),te(x.ItemIndicator,{children:te("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));Dn.displayName=x.RadioItem.displayName;var Mn=at.forwardRef(({className:e,inset:o,...t},a)=>te(x.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Mn.displayName=x.Label.displayName;var In=at.forwardRef(({className:e,...o},t)=>te(x.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));In.displayName=x.Separator.displayName;var An=({className:e,...o})=>te("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});An.displayName="DropdownMenuShortcut";import Zo from"html-react-parser";import{Fragment as Wa,jsx as H,jsxs as Tt}from"react/jsx-runtime";var Ln=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Tt(Wa,{children:[e&&H(w,{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&&H("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>H("div",{className:"basis-full px-3.5 md:basis-1/3",children:Tt("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[H("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),Tt("div",{className:"mt-6 w-full",children:[H("div",{className:"w-full text-xl font-semibold",children:Zo(a.title)}),a?.description&&H("div",{className:"mt-2 text-base text-gray-600",children:Zo(a.description)})]})]})},i))}),t&&H(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Yd=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Tt(Wa,{children:[e&&H(w,{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&&H("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>Tt("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[Tt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[H("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&H("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:H(O,{ratio:1,children:H("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),Tt("div",{className:"mt-6 w-full",children:[H("div",{className:"w-full text-xl font-semibold",children:Zo(a.title)}),a?.description&&H("div",{className:"mt-2 text-base text-gray-600",children:Zo(a.description)})]})]},i))}),t&&H(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Jd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return H(Ln,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return H(Yd,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return H(Ln,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},ep=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>H(Wa,{children:Jd({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),tp=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>H(V,{className:t,idSection:a,background:o,children:H(ep,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{forwardRef as rp}from"react";import{cva as op}from"class-variance-authority";import Hn from"html-react-parser";import{CheckIcon as ap}from"lucide-react";import{Fragment as _n,jsx as Re,jsxs as vo}from"react/jsx-runtime";var En=op("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid w-full grid-cols-2 gap-2 md:grid-cols-4",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 space-y-1 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),zn=({template:e,name:o,description:t,image:a,idx:i,value:n,suffix:s,unit:l})=>Re(_n,{children:(()=>{switch(e){case 1:case 3:return vo("li",{className:"flex items-center space-x-4",children:[a?Re("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:Re("img",{src:a,alt:"",className:"max-w-full"})}):Re("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:Re(ap,{className:"h-4 w-4 text-pink-500"})}),o&&Re("div",{className:"ml-2 leading-tight",children:Hn(o)})]});case 2:return vo("div",{className:r("border-gray-200 odd:border-0 odd:pr-4 even:border-l even:pl-4 md:border-l md:odd:border-l md:odd:pr-0",i>0?"md:pl-4":"md:!border-0"),children:[n&&vo("div",{className:"line-clamp-2 font-bold text-gray-900",children:[n,(s||l)&&vo("span",{children:[s," ",l]})]}),t&&Re("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:Hn(t)})]});default:return null}})()}),Ko=({dataFeatures:e,template:o=1,dataStats:t})=>vo(_n,{children:[e&&e?.length>0&&Re("ul",{className:r("",En({template:o})),children:(o===1||o===3)&&e?.map((a,i)=>Re(zn,{name:a?.name,template:o,image:a?.image,idx:i},i))}),o===2&&(t?.length??0)>0&&Re("ul",{className:r("",En({template:o})),children:t?.map((a,i)=>Re(zn,{value:a?.value,suffix:a?.suffix,unit:a?.unit,template:o,description:a?.description,idx:i},i))})]});import{jsx as ne,jsxs as $a}from"react/jsx-runtime";var Fn=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,ip=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>$a(O,{className:r(""),ratio:Fn(o),children:[ne("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&ne("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:ne("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})}),a&&$a(We,{children:[ne(oa,{onClick:i,children:ne("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:ne("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:$a("g",{fill:"none",fillRule:"evenodd",children:[ne("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),ne("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"})]})})})}),ne(ke,{hideCloseBtn:!0,className:"flex h-full w-full items-center justify-center !bg-transparent bg-gray-900 p-0 !shadow-none",children:ne("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:""})})]})]}),bo=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>ne("div",{className:a,children:n?ne(ip,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):ne(O,{ratio:Fn(t),children:ne("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});import{Fragment as Bn,jsx as X,jsxs as xo}from"react/jsx-runtime";var Ga=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>xo("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[xo("div",{className:"col-span-1 ",children:[X(w,{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`}),X(Ko,{dataFeatures:t,template:a,dataStats:i}),o&&X(P,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})]}),X("div",{className:"col-span-1 md:pl-10",children:s||X(bo,{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})=>xo("div",{className:r("grid grid-cols-1 items-center gap-16 md:grid-cols-2"),children:[X("div",{className:"col-span-1 hidden md:block",children:s||X(bo,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),xo("div",{className:"col-span-1",children:[X(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),X(Ko,{dataFeatures:t,template:a,dataStats:i}),X("div",{className:"mt-10 md:hidden",children:s||X(bo,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),o&&X("div",{className:"flex w-full items-center justify-center md:justify-start",children:X(P,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})})]})]}),On=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>xo(Bn,{children:[X(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&X(P,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),X(Ko,{dataFeatures:t,template:a,dataStats:i}),s||X(Bn,{children:n?.src&&X(bo,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});import{Fragment as cp,jsx as kt}from"react/jsx-runtime";var np=`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
|
-
)`,
|
|
268
|
+
)`,sp=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return kt(Ga,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return kt(Vn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return kt(On,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return kt(Ga,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},lp=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>kt(cp,{children:sp({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),mp=rp(({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:l,background:d,advancedComponent:c=null})=>kt(V,{className:l,idSection:o,background:d??np,children:kt(lp,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:c})}));import{Fragment as ja,jsx as D,jsxs as $n}from"react/jsx-runtime";var Wn=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return $n(ja,{children:[e&&D(w,{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&&D("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,l)=>D("div",{className:r("flex items-center justify-center md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:D("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?D("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:D("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):D("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},l))}),t&&D(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},dp=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>$n(ja,{children:[e&&D(w,{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&&D("div",{className:r("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((i,n)=>D("div",{className:r("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:i?.url?D("a",{href:i?.url,title:i?.name,target:i?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:D("div",{className:"flex w-auto max-w-36 items-center justify-center",children:D("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):D("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:D("div",{className:"flex w-auto max-w-36 items-center justify-center",children:D("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&D(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),pp=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return D(Wn,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return D(dp,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return D(Wn,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},fp=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>D(ja,{children:pp({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),gp=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:d})=>D(V,{className:t,idSection:a,background:o,children:D(fp,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:d})});import $ from"html-react-parser";import{ChevronRightIcon as up}from"@heroicons/react/16/solid";import{Fragment as ft,jsx as p,jsxs as v}from"react/jsx-runtime";var _e=({btnLink:e,btnName:o,newTab:t})=>p(me,{variant:"primary",asChild:!0,children:v("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",p(up,{className:"w-4 h-4"})]})}),Ua=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(ft,{children:[e&&p(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 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:[p("div",{className:"w-16 h-16 mx-auto",children:p("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&&p("h3",{className:"text-lg font-semibold",children:$(a.name)}),a?.description&&p("div",{className:"text-gray-600 mt-2 text-base",children:$(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(_e,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Gn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(ft,{children:[e&&p(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features list-features-2 grid grid-cols-1 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:[p("div",{className:"w-16 h-16",children:p("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&&p("h3",{className:"text-lg font-semibold",children:$(a.name)}),a?.description&&p("div",{className:"text-gray-600 mt-2 text-base",children:$(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(_e,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),p("style",{children:`
|
|
269
269
|
.list-features-2 .feature-item {
|
|
270
270
|
background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
|
|
271
271
|
}
|
|
272
|
-
`})]}),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:`
|
|
272
|
+
`})]}),jn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(ft,{children:[e&&p(w,{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&&p("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:[p("div",{className:"w-16 h-16",children:p("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&&p("h3",{className:"text-lg font-semibold",children:$(a.name)}),a?.description&&p("div",{className:"text-gray-600 mt-2 text-base",children:$(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(_e,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Un=({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&&p(w,{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&&p(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),v("div",{className:"lg:col-span-6",children:[o&&p("div",{className:"list-features grid grid-cols-1 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:[p("div",{className:"w-16 h-16",children:p("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&&p("h3",{className:"text-lg font-semibold",children:$(a.name)}),a?.description&&p("div",{className:"text-gray-600 mt-2 text-base",children:$(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(_e,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Qn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(ft,{children:[e&&p(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 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:[p("div",{className:"w-12 h-12 ",children:p("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&&p("h3",{className:"text-lg font-semibold",children:$(a.name)}),a?.description&&p("div",{className:"text-gray-600 mt-2 text-base",children:$(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(_e,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),qn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(ft,{children:[e&&p(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 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:[p("div",{className:"w-12 h-12",children:p("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&&p("h3",{className:"text-lg font-semibold",children:$(a.name)}),a?.description&&p("div",{className:"text-gray-500 mt-2 text-sm",children:$(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(_e,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Xn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(ft,{children:[e&&p(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&p("div",{className:"list-features grid grid-cols-1 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:[p("div",{className:"w-12 h-12",children:p("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:$(a.name)}),a?.description&&p("div",{className:"text-gray-500 mt-2 text-sm",children:$(a.description)}),a?.btnLink&&p("div",{className:"mt-4",children:p(_e,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&p(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(ft,{children:[e&&p(w,{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&&p("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&&p("h3",{className:"text-lg font-semibold",children:$(a.name)}),a?.description&&p("div",{className:"text-gray-600 mt-2 text-base",children:$(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(_e,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),p("div",{className:"w-full",style:{aspectRatio:"347/220"},children:p("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})})]},i))}),t&&p(P,{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:[p("div",{className:"lg:col-span-6 flex items-center",children:v("div",{className:"w-full",children:[e&&p(w,{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&&p("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:[p("div",{className:"w-10 h-10",children:p("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&&p("h3",{className:"text-lg font-semibold",children:$(i.name)}),i?.description&&p("div",{className:"text-gray-600 mt-2 text-base",children:$(i.description)})]}),i?.btnLink&&p("div",{className:"mt-4",children:p(_e,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&p(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&p("div",{className:"lg:col-span-4 flex items-center",children:p("div",{className:"max-w-md mx-auto w-full",children:p(O,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),Yn=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>v(ft,{children:[e&&p(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),p("div",{className: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:[p("div",{className:"w-12 h-12",children:p("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&&p("h3",{className:"text-lg font-semibold",children:$(i.name)}),i?.description&&p("div",{className:"text-gray-500 mt-2",children:$(i.description)})]}),i?.btnLink&&p("div",{className:"mt-4",children:p(_e,{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:[p("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"}}),p("div",{className:"w-full h-full bg-gray-100 overflow-hidden",style:{borderRadius:"30px"},children:p("img",{src:t?.src,alt:t?.alt,className:"w-full h-full object-contain"})})]})]})}),a&&p(P,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});import{Fragment as hp,jsx as se}from"react/jsx-runtime";var vp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return se(Ua,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return se(Gn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return se(jn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return se(Un,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return se(Qn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return se(qn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return se(Xn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return se(Zn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return se(Kn,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return se(Yn,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return se(Ua,{dataHeading:o,dataFeatures:t,dataButtons:a})}},bp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>se(hp,{children:vp({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),xp=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>se(V,{className:t,idSection:a,background:o,children:se(bp,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import Qa from"html-react-parser";import{StarIcon as yp}from"@heroicons/react/24/solid";import{Fragment as ts,jsx as E,jsxs as St}from"react/jsx-runtime";var Jn=({testimonial:e,isHiddenOnMobile:o=!1,index:t=0,itemCount:a})=>E("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:E("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:St("div",{className:"testimonial-item-width",children:[St("div",{className:"flex flex-nowrap items-center space-x-2",children:[E("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:E("img",{src:e?.avatar,loading:"lazy",className:"h-full w-full object-cover",alt:e.name})}),St("div",{className:"min-w-0 flex-1 pl-1",children:[E("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&E("div",{className:"text-xs font-normal text-pink-500",children:Qa(e.position)})]})]}),St("div",{className:"mt-3",children:[e?.shortTitle&&E("div",{className:"text-sm font-bold text-gray-700",children:Qa(e.shortTitle)}),e?.description&&E("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Qa(e.description)})]}),St("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[E("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&E("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>E(yp,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),es=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return St(ts,{children:[e&&E(w,{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&&E("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:St("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)=>E(Jn,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&o?.map((n,s)=>E(Jn,{testimonial:n,isHiddenOnMobile:!0},`duplicate-${s}`))]})}),t&&E(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),i&&E("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,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:`{
|
|
296
|
+
`})]})},wp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return E(es,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return E(es,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Np=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>E(ts,{children:wp({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Pp=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>E(V,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${t||""}`,idSection:a,background:o,children:E(Np,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import{memo as Cp}from"react";import Rp from"html-react-parser";import{Fragment as Tp,jsx as j,jsxs as jt}from"react/jsx-runtime";var qa=Cp(({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=e?.length>1,d=c=>j(It,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((m,g)=>jt(At,{value:m.title,className:"last:border-none",children:[j(Lt,{className:"font-bold",children:m.title}),j(Ht,{children:Rp(m.description)})]},g))});return j(wo,{children:l?jt(Tp,{children:[o&&j(w,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&jt(qe,{defaultValue:e[0]?.title,children:[jt(Ge,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[j(je,{className:"mb-3 text-center",children:j(Se,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:e.map((c,m)=>j(De,{value:c.title,children:c.title},c.title+m))})}),j(Ue,{}),j(Qe,{})]}),e.map((c,m)=>j(Me,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:d(c)},c.title+m))]}),t&&j(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]}):jt("div",{className:"grid grid-cols-1 gap-y-5 sm:grid-cols-3 md:gap-x-6",children:[j("div",{className:"relative",children:jt("div",{className:"md:sticky md:top-20",children:[o&&j(w,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&j(Dt,{greaterThan:"sm",children:j(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("md:mt-6",t?.className),align:"left"})})]})}),e&&e.length>0&&e[0]&&j("div",{className:"col-span-2",children:d(e[0])}),t&&j(Dt,{lessThan:"md",children:j(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3",t?.className),align:"center"})})]})})});import{Fragment as Mp,jsx as ho}from"react/jsx-runtime";var kp=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return ho(qa,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return ho(qa,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Sp=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>ho(Mp,{children:kp({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),Dp=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>ho(V,{className:t,idSection:i,background:a,children:ho(Sp,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import Ip,{memo as Ap}from"react";import{ArrowDownIcon as Lp}from"@heroicons/react/20/solid";import Hp from"html-react-parser";import{Fragment as os,jsx as F,jsxs as Fe}from"react/jsx-runtime";var Ep=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Fe(os,{children:[F("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:Fe("picture",{children:[F("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),F("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),Fe("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[F("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),Fe("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Fe(os,{children:[F(me,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),F("span",{className:"flex-none leading-none",children:"\xB7"})]}),F("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Xa=Ap(({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")},c=(m,g)=>Fe("div",{children:[F("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",m?.newsList?.length<4?"md:justify-center":""),children:m?.newsList?.map((u,T)=>F("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:F("div",{onClick:k=>d(k,u?.id,u?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",m?.classNameItem),children:F(Ep,{news:u})},u?.id)},T))}),m?.isShowBtn&&F("div",{className:"mt-8 flex w-full items-center justify-center",children:Fe(ut,{action:m?.btnUrl||i&&(()=>i?.(g)),newTab:m?.isNewTab,variant:"outline",disabled:m?.isLoading,children:[Hp(m.btnName||"Xem th\xEAm"),m?.isLoading?F(Et,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!m?.btnUrl&&F(Lp,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},m?.title||g);return Fe(Ip.Fragment,{children:[e&&F(w,{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?Fe(qe,{defaultValue:t[0]?.title,children:[Fe(Ge,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[F(je,{className:"mb-6 text-center",children:F(Se,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((m,g)=>F(De,{value:m.title,children:m.title},m.title+g))})}),F(Ue,{}),F(Qe,{})]}),t.map((m,g)=>F(Me,{value:m.title,children:c(m,g)},m.title+g))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as Bp,jsx as yo}from"react/jsx-runtime";var zp=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return yo(Xa,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return yo(Xa,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},_p=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>yo(Bp,{children:zp({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),Fp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>yo(V,{className:r(a),background:i,children:yo(_p,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as Gp,jsx as fe,jsxs as Za}from"react/jsx-runtime";var as=({dataHeading:e,dataCTA:o,dataButtons:t})=>Za("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&&fe(w,{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&&fe(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Vp=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Za("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:[Za("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&fe(w,{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&&fe(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),fe("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&fe(O,{ratio:4/3,children:fe("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Op=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return fe(as,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return fe(Vp,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return fe(as,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},Wp=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>fe(Gp,{children:Op({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),$p=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>fe(V,{className:t,idSection:a,background:o,children:fe(Wp,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import Qp from"color";import qp from"tailwindcss/plugin.js";var Be="250ms",is={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Be},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Be},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Be},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Be},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Be},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Be},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Be},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Be},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Be},".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":Be}};var rs={".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 ns={".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 ss={...rs,...is,...ns};import{flatten as jp}from"flat";function Up(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 ls=e=>Up(jp(e,{safe:!0,delimiter:"-"}));var ms={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var cs={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var ds={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var ps={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var fs={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var gs={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var us={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var vs={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var bs={white:"#ffffff",black:"#000000",blue:ms,green:cs,pink:ds,purple:ps,red:fs,yellow:gs,gray:vs,orange:us};var Ka={...bs};var xs={"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 hs={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 Xp=e=>{let o={utilities:{},colors:{}},t=ls(Ka),a=xs,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,d,c]=Qp(s).rgb().array(),m=`--${e}-${n}`;o.utilities[i][m]=`${l} ${d} ${c}`,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,c])=>{let m=`${l}-${d}`;o.utilities[i][m]=c});else{let d=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=d}}),o},Zp=()=>{let e="mobase",o=Xp(e);return qp(({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({...ss})},{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:{...Ka,...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)`},...hs}}})};import{Fragment as Yp,jsx as R,jsxs as Jp}from"react/jsx-runtime";var Kp=Jp(Yp,{children:[R("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"}),R("meta",{name:"distribution",content:"Global"}),R("meta",{name:"author",content:"V\xED MoMo"}),R("meta",{property:"fb:app_id",content:"320653355376196"}),R("meta",{property:"fb:pages",content:"138010322921640"}),R("link",{rel:"shortcut icon",href:"/favicon.ico"}),R("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),R("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),R("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),R("meta",{name:"language",content:"vietnamese"}),R("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),R("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),R("meta",{name:"RATING",content:"GENERAL"}),R("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),R("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),R("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),R("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),R("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),R("link",{rel:"dns-prefetch",href:"//facebook.com"}),R("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),R("link",{rel:"dns-prefetch",href:"//www.google.com"}),R("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),R("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),R("link",{rel:"preconnect",href:"//connect.facebook.net"}),R("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),R("link",{rel:"preconnect",href:"//www.google-analytics.com"}),R("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),R("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),R("link",{rel:"preconnect",href:"//www.google.com"}),R("link",{rel:"preconnect",href:"//www.google.com.vn"}),R("link",{rel:"preconnect",href:"//www.googleadservices.com"}),R("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",
|
|
@@ -303,7 +303,7 @@ import*as It from"react";import*as ne from"@radix-ui/react-accordion";import{Che
|
|
|
303
303
|
"@type": "SearchAction",
|
|
304
304
|
"target": "https://www.momo.vn/tim-kiem?q={search_term_string}",
|
|
305
305
|
"query-input": "required name=search_term_string"
|
|
306
|
-
}}`}}),
|
|
306
|
+
}}`}}),R("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
307
307
|
"@context": "https://schema.org",
|
|
308
308
|
"@type": "Organization",
|
|
309
309
|
"name": "Si\xEAu \u1EE9ng d\u1EE5ng MoMo",
|
|
@@ -338,5 +338,5 @@ import*as It from"react";import*as ne from"@radix-ui/react-accordion";import{Che
|
|
|
338
338
|
"https://www.linkedin.com/company/momo-mservice/",
|
|
339
339
|
"https://github.com/momo-wallet"
|
|
340
340
|
]
|
|
341
|
-
}`}})]});export{
|
|
341
|
+
}`}})]});export{It as Accordion,Ht as AccordionContent,At as AccordionItem,Lt as AccordionTrigger,ut as ActionButton,Ol as AlertDialog,Ai as AlertDialogAction,Li as AlertDialogCancel,ki as AlertDialogContent,Ii as AlertDialogDescription,Di as AlertDialogFooter,Si as AlertDialogHeader,va as AlertDialogOverlay,Ti as AlertDialogPortal,Mi as AlertDialogTitle,Wl as AlertDialogTrigger,O as AspectRatio,ed as Badge,xl as BlogSection,ni as Breadcrumb,pi as BreadcrumbEllipsis,li as BreadcrumbItem,mi as BreadcrumbLink,si as BreadcrumbList,ci as BreadcrumbPage,di as BreadcrumbSeparator,ve as Button,$p as CTASection,Do as Calendar,Fc as Callout,Cr as Card,Sr as CardContent,kr as CardDescription,Dr as CardFooter,Rr as CardHeader,Tr as CardTitle,Ze as Carousel,Ke as CarouselContent,Ye as CarouselItem,Bt as CarouselNext,Ft as CarouselPrevious,ko as Checkbox,Qr as ChoiceboxGroup,qr as ChoiceboxGroupItem,Xr as ChoiceboxMultiItem,Lc as Combobox,Ac as ComboboxContent,Ic as ComboboxTrigger,Ea as Command,Sc as CommandDialog,Ar as CommandEmpty,Lr as CommandGroup,Mr as CommandInput,Er as CommandItem,Ir as CommandList,Hr as CommandSeparator,zr as CommandShortcut,Cd as Comment,Vl as DatePicker,We as Dialog,zt as DialogBody,Ls as DialogClose,ke as DialogContent,ii as DialogDescription,ai as DialogFooter,No as DialogHeader,aa as DialogOverlay,oi as DialogPortal,gt as DialogQr,Po as DialogTitle,oa as DialogTrigger,Ud as DropdownMenu,Sn as DropdownMenuCheckboxItem,Tn as DropdownMenuContent,qd as DropdownMenuGroup,kn as DropdownMenuItem,Mn as DropdownMenuLabel,Xd as DropdownMenuPortal,Kd as DropdownMenuRadioGroup,Dn as DropdownMenuRadioItem,In as DropdownMenuSeparator,An as DropdownMenuShortcut,Zd as DropdownMenuSub,Rn as DropdownMenuSubContent,Cn as DropdownMenuSubTrigger,Qd as DropdownMenuTrigger,Dp as FAQSection,xp as FeatureSection,Rc as Footer,Wd as Form,wn as FormControl,Nn as FormDescription,$d as FormField,hn as FormItem,yn as FormLabel,Pn as FormMessage,am as GuideSection,yr as HeaderNavigation,sa as Heading,ma as HeadingGroup,la as HeadingSub,na as HeadingTagline,mp as HeroSection,je as HorizontalContent,Qe as HorizontalNext,Ue as HorizontalPrevious,Ge as HorizontalScroll,tp as HowItWorksSection,we as IconButton,Ba as LightBoxGalleryContent,Fa as LightboxGallery,Xc as LightboxThumbnail,Fo as NavigationMenu,$o as NavigationMenuContent,Vo as NavigationMenuItem,so as NavigationMenuLink,Bo as NavigationMenuList,Wo as NavigationMenuTrigger,Fp as NewsSection,Wi as Pagination,Yt as Popover,Vt as PopoverContent,Jt as PopoverTrigger,Hd as ProgressSteps,Ld as ProgressStepsItem,Ad as ProgressStepsItemTrigger,tn as Progressbar,cr as RadioGroup,dr as RadioGroupItem,Va as ReadMoreLite,jc as SearchBar,Wm as Select,tr as SelectContent,Gm as SelectGroup,jm as SelectItem,or as SelectLabel,La as SelectScrollDownButton,Aa as SelectScrollUpButton,ar as SelectSeparator,er as SelectTrigger,$m as SelectValue,Kp as SiteMeta,id as Skeleton,rn as Slider,gp as SocialProofSection,nd as Spinner,Yi as Stepper,sr as Switch,qe as Tabs,Me as TabsContent,Se as TabsList,De as TabsTrigger,Pp as TestimonialSection,dm as TextArea,me as TextButton,Lm as TextInput,qi as ToastAction,Nm as Toaster,Cm as Tooltip,Xi as TooltipArrow,Zi as TooltipContent,Pm as TooltipProvider,Rm as TooltipTrigger,Kr as badgeVariants,Te as buttonVariants,Zp as mobaseTW,Oo as navigationMenuTriggerStyle,bi as textButtonVariants,ji as toast,go as useFormField,Na as useToast};
|
|
342
342
|
//# sourceMappingURL=index.js.map
|