@momo-webplatform/mobase 0.2.87 → 0.2.89
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 +36 -19
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +11 -10
- package/dist/esm/index.d.ts +11 -10
- package/dist/esm/index.js +36 -19
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/solid";import*as Se from"@radix-ui/react-accordion";import*as Rm from"react";import{twMerge as Tm}from"tailwind-merge";var mt={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 br={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 Mo=[{Name:"Facebook",Image:"https://homepage.momocdn.net/styles/desktop/images/social/facebook.svg",Link:"https://www.facebook.com/vimomo"},{Name:"Linkedin",Image:"https://homepage.momocdn.net/styles/desktop/images/social/linkedin.svg",Link:"https://www.linkedin.com/company/momo-mservice/"},{Name:"Youtube",Image:"https://homepage.momocdn.net/styles/desktop/images/social/youtube.svg",Link:"https://www.youtube.com/channel/UCKHHW-qL2JoZqcSNm1jPlqw"}],oi=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}];var ce={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};import{createMedia as km}from"@artsy/fresnel";function r(...e){return Tm(e)}var yr=km({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),z0=yr.createMediaStyle(),{Media:je,MediaContextProvider:so}=yr;import{jsx as lo,jsxs as Dm}from"react/jsx-runtime";var ct=Io.forwardRef(({className:e,...o},t)=>lo(Se.Root,{ref:t,...o}));ct.displayName="AccordionRoot";var dt=Io.forwardRef(({className:e,...o},t)=>lo(Se.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));dt.displayName="AccordionItem";var pt=Io.forwardRef(({className:e,children:o,...t},a)=>lo(Se.Header,{className:"flex",children:Dm(Se.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,lo(Sm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));pt.displayName=Se.Trigger.displayName;var ft=Io.forwardRef(({className:e,children:o,...t},a)=>lo(Se.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:lo("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));ft.displayName=Se.Content.displayName;import*as wr from"react";import{Slot as Am}from"@radix-ui/react-slot";import{cva as Lm}from"class-variance-authority";import{jsx as De,jsxs as Im}from"react/jsx-runtime";var Mm=({className:e})=>Im("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[De("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),De("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),De("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),De("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),De("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),De("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),De("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),De("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),De("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),De("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),De("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),De("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),mo=Mm;import{Fragment as Hm,jsx as ai,jsxs as Em}from"react/jsx-runtime";var Ue=Lm("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Me=wr.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let m=a?Am:"button",c=r(Ue({variant:o,size:t,className:e}),{"cursor-wait":i});return ai(Hm,{children:a?ai(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):Em(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[i&&ai(mo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Me.displayName="Button";import{QRCodeSVG as Fm}from"qrcode.react";import*as Ao from"react";import{XMarkIcon as zm}from"@heroicons/react/16/solid";import*as X from"@radix-ui/react-dialog";import{jsx as gt,jsxs as ii}from"react/jsx-runtime";var _e=X.Root,Lo=X.Trigger,Nr=X.Portal,ri=X.Close,ni=Ao.forwardRef(({className:e,...o},t)=>gt(X.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));ni.displayName=X.Overlay.displayName;var Ie=Ao.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...m},c)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},p={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},g={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},v=[d.base,d[i],p[a],g[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return ii(Nr,{children:[gt(ni,{}),ii(X.Content,{ref:c,className:r(...v),...m,children:[l,!t&&ii(X.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:[gt(zm,{className:"h-5 w-5 text-gray-700"}),gt("span",{className:"sr-only",children:"Close"})]})]})]})});Ie.displayName=X.Content.displayName;var co=({className:e,...o})=>gt("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});co.displayName="DialogHeader";var qe=({className:e,isCondensed:o=!1,...t})=>gt("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});qe.displayName="DialogBody";var Pr=({className:e,isDivider:o=!0,...t})=>gt("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});Pr.displayName="DialogFooter";var po=Ao.forwardRef(({className:e,...o},t)=>gt(X.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));po.displayName=X.Title.displayName;var Cr=Ao.forwardRef(({className:e,...o},t)=>gt(X.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));Cr.displayName=X.Description.displayName;import{Fragment as si,jsx as k,jsxs as de}from"react/jsx-runtime";var _m=({img:e="",children:o,isQrForAll:t})=>de(si,{children:[k("div",{className:"qrcode__scan__container",children:de("div",{className:"qrcode__scan",children:[k("div",{className:"qrcode__gradient",children:k("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),k("div",{className:"qrcode__border",children:k("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),k("div",{className:"p-4 qrcode__image",children:e?k("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),k("div",{className:"mt-4 text-sm text-white",children:t?de(si,{children:[k("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),k("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):de(si,{children:[k("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:k("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",k("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),k("style",{children:`
|
|
1
|
+
import*as _o from"react";import{ChevronDownIcon as Fm}from"@heroicons/react/20/solid";import*as Se from"@radix-ui/react-accordion";import*as zm from"react";import{twMerge as Em}from"tailwind-merge";var ct={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 Si={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 Fo=[{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"}],sr=[{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 ce={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 Hm}from"@artsy/fresnel";function i(...e){return Em(e)}var Di=Hm({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),tv=Di.createMediaStyle(),{Media:Ue,MediaContextProvider:co}=Di;import{jsx as po,jsxs as _m}from"react/jsx-runtime";var dt=_o.forwardRef(({className:e,...o},t)=>po(Se.Root,{ref:t,...o}));dt.displayName="AccordionRoot";var pt=_o.forwardRef(({className:e,...o},t)=>po(Se.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));pt.displayName="AccordionItem";var ft=_o.forwardRef(({className:e,children:o,...t},a)=>po(Se.Header,{className:"flex",children:_m(Se.Trigger,{ref:a,className:i("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,po(Fm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));ft.displayName=Se.Trigger.displayName;var gt=_o.forwardRef(({className:e,children:o,...t},a)=>po(Se.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:po("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));gt.displayName=Se.Content.displayName;import*as Mi from"react";import{Slot as Vm}from"@radix-ui/react-slot";import{cva as Wm}from"class-variance-authority";import{jsx as De,jsxs as Om}from"react/jsx-runtime";var Bm=({className:e})=>Om("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[De("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),De("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),De("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),De("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),De("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),De("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),De("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),De("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),De("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),De("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),De("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),De("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),fo=Bm;import{Fragment as $m,jsx as lr,jsxs as Gm}from"react/jsx-runtime";var qe=Wm("focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap rounded-lg border border-transparent text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"border-gray-300 bg-white text-gray-900 hover:bg-gray-100 disabled:bg-white disabled:text-gray-400",outline:"border-pink-500 bg-white text-pink-500 hover:bg-pink-50 disabled:border-pink-300 disabled:bg-white disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"bg-transparent text-gray-900 hover:bg-gray-100 disabled:bg-transparent disabled:text-gray-400"},size:{default:"h-10 px-4 text-sm",sm:"h-8 rounded-md px-3 text-sm",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Me=Mi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?Vm:"button",c=i(qe({variant:o,size:t,className:e}),{"cursor-wait":r});return lr($m,{children:a?lr(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):Gm(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[r&&lr(fo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Me.displayName="Button";import{QRCodeSVG as Qm}from"qrcode.react";import*as Bo from"react";import{XMarkIcon as jm}from"@heroicons/react/16/solid";import*as q from"@radix-ui/react-dialog";import{jsx as ut,jsxs as mr}from"react/jsx-runtime";var _e=q.Root,Oo=q.Trigger,Ii=q.Portal,cr=q.Close,dr=Bo.forwardRef(({className:e,...o},t)=>ut(q.Overlay,{ref:t,className:i("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));dr.displayName=q.Overlay.displayName;var Ie=Bo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:r="center",height:n="auto",isFull:s=!1,children:l,...m},c)=>{let d={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},p={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},g={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},v=[d.base,d[r],p[a],g[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return mr(Ii,{children:[ut(dr,{}),mr(q.Content,{ref:c,className:i(...v),...m,children:[l,!t&&mr(q.Close,{className:i("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[ut(jm,{className:"h-5 w-5 text-gray-700"}),ut("span",{className:"sr-only",children:"Close"})]})]})]})});Ie.displayName=q.Content.displayName;var go=({className:e,...o})=>ut("div",{className:i("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});go.displayName="DialogHeader";var Xe=({className:e,isCondensed:o=!1,...t})=>ut("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Xe.displayName="DialogBody";var Ai=({className:e,isDivider:o=!0,...t})=>ut("div",{className:i("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});Ai.displayName="DialogFooter";var uo=Bo.forwardRef(({className:e,...o},t)=>ut(q.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));uo.displayName=q.Title.displayName;var Li=Bo.forwardRef(({className:e,...o},t)=>ut(q.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));Li.displayName=q.Description.displayName;import{Fragment as pr,jsx as k,jsxs as de}from"react/jsx-runtime";var Um=({img:e="",children:o,isQrForAll:t})=>de(pr,{children:[k("div",{className:"qrcode__scan__container",children:de("div",{className:"qrcode__scan",children:[k("div",{className:"qrcode__gradient",children:k("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),k("div",{className:"qrcode__border",children:k("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),k("div",{className:"p-4 qrcode__image",children:e?k("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),k("div",{className:"mt-4 text-sm text-white",children:t?de(pr,{children:[k("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),k("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):de(pr,{children:[k("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:k("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",k("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),k("style",{children:`
|
|
2
2
|
.qrcode__scan__container {
|
|
3
3
|
padding: 15px;
|
|
4
4
|
background-color: white;
|
|
@@ -67,7 +67,7 @@ import*as Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
67
67
|
transform: translate3d(0, 30%, 0);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
`})]}),Gt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>k(_e,{...m,children:k(Ie,{className:r("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:k(qe,{className:"p-0",children:de("div",{className:"flex flex-row flex-wrap",children:[k("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||de("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[de("div",{className:"flex flex-nowrap items-center",children:[k("div",{className:"flex-none",children:k("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),de("div",{className:"flex-1 pl-4",children:[k("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),k("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"})]})]}),de("div",{className:"flex flex-nowrap items-center",children:[k("div",{className:"flex-none",children:k("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),de("div",{className:"flex-1 pl-4",children:[k("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),k("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),de("div",{className:"flex flex-nowrap items-center",children:[k("div",{className:"flex-none",children:k("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),de("div",{className:"flex-1 pl-4",children:[k("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),de("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"]})]})]})]})}),k("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:de("div",{className:"px-5 py-10 text-center",children:[t&&k("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),de("div",{className:"relative",children:[l&&k("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:k("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),k(_m,{img:i,isQrForAll:l,children:n&&k(Fm,{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 Qm}from"react";import{useEffect as Bm,useLayoutEffect as Om,useState as Vm}from"react";import Wm from"ua-parser-js";var Gm=()=>Wm().device.type==="mobile",$m=typeof window<"u"?Om:Bm,pa=()=>{let[e,o]=Vm(!1);return $m(()=>{o(Gm())},[]),e};import{Fragment as jm,jsx as fa,jsxs as Um}from"react/jsx-runtime";var Be=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,m]=Qm(!1),c=pa(),d=!!a?.qrLink,p=()=>{let z=d?a?.qrLink:e;return typeof z=="string"?z.trim():""},g=()=>{let z=p();!z&&typeof e!="function"||(typeof e=="function"?e():window.open(z,o?"_blank":"_self"))},v=(z,$=0)=>{let A=document.querySelector(z);if(!A)return;let N=A.getBoundingClientRect().top+window.scrollY-$;window.scrollTo({top:N,behavior:"smooth"})},C=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):g()},M=()=>Um(jm,{children:[fa(Me,{...s,className:i,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),fa(Gt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?M():fa(Me,{...s,className:i,onClick:g,"data-name":"button-action-with-qr",children:n}):M():fa(Me,{...s,onClick:C,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as fo from"react";import{ChevronRightIcon as qm,DotsHorizontalIcon as Xm}from"@radix-ui/react-icons";import{Slot as Ym}from"@radix-ui/react-slot";import{jsx as ut,jsxs as Zm}from"react/jsx-runtime";var Rr=fo.forwardRef(({className:e,...o},t)=>ut("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Rr.displayName="Breadcrumb";var Tr=fo.forwardRef(({className:e,...o},t)=>ut("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}));Tr.displayName="BreadcrumbList";var kr=fo.forwardRef(({className:e,...o},t)=>ut("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));kr.displayName="BreadcrumbItem";var Sr=fo.forwardRef(({asChild:e,className:o,...t},a)=>ut(e?Ym:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Sr.displayName="BreadcrumbLink";var Dr=fo.forwardRef(({className:e,...o},t)=>ut("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Dr.displayName="BreadcrumbPage";var Mr=({children:e,className:o,...t})=>ut("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??ut(qm,{className:"w-2 h-2"})});Mr.displayName="BreadcrumbSeparator";var Ir=({className:e,...o})=>Zm("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[ut(Xm,{className:"w-4 h-4 text-gray-900"}),ut("span",{className:"sr-only",children:"More"})]});Ir.displayName="BreadcrumbElipssis";import fi from"html-react-parser";import{createContext as Km,useContext as Ar}from"react";import{jsx as Eo}from"react/jsx-runtime";var li=Km({align:"center"}),mi=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return Eo("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},ci=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:c}=Ar(li);return Eo(s,{className:r("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",i),children:n})},di=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:c}=Ar(li);return Eo("div",{className:r(c==="center"?"mx-auto max-w-2xl":c==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",i),children:n})},pi=({className:e,align:o="center",children:t})=>Eo("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Eo(li.Provider,{value:{align:o},children:t})});import{jsx as $t,jsxs as Jm}from"react/jsx-runtime";var O=({idSection:e,className:o,background:t,children:a})=>$t("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:$t("div",{className:"wrapper relative",children:a})}),h=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",c=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:Jm(pi,{align:e,className:l,children:[o&&$t(mi,{color:m,children:o}),t&&$t(ci,{tagHeading:i,color:c,size:s,children:fi(t)}),a&&$t(di,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:fi(a)})]})},b=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:$t("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{if(!i)return null;let{btnName:s,...l}=i;return $t(Be,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:fi(s)},n)})});import gc,{memo as uc}from"react";import{ArrowDownIcon as vc}from"@heroicons/react/20/solid";import xc from"html-react-parser";import{createContext as ac,useCallback as ic,useContext as gi,useEffect as rc,useRef as nc,useState as sc}from"react";import{ChevronLeft as lc,ChevronRight as mc}from"lucide-react";import*as Lr from"react";import{Slot as ec}from"@radix-ui/react-slot";import{cva as tc}from"class-variance-authority";import{jsx as oc}from"react/jsx-runtime";var Qt=tc("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),ne=Lr.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?ec:"button",m=r(Qt({variant:o,size:t,className:e}));return oc(l,{className:m,disabled:i,ref:s,...n,children:n.children})});ne.displayName="IconButton";import{Fragment as cc,jsx as St,jsxs as Er}from"react/jsx-runtime";var ga=ac(void 0),vt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=nc(null),[n,s]=sc({left:!1,right:!1}),l=ic(()=>{let c=i.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);rc(()=>{let c=i.current;if(c)return l(),window.addEventListener("resize",l),c.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),c.removeEventListener("scroll",l)}},[l]);let m=c=>{let d=i.current;if(d){let{scrollLeft:p,clientWidth:g,scrollWidth:v}=d,C=g*.7*(c==="left"?-1:1),M=p+C;M<0?M=0:M>v-g&&(M=v-g),d.scrollTo({left:M,behavior:"smooth"})}};return St(ga.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:m,gradientOverlayColor:o},children:Er("div",{className:r("relative w-full",t),children:[e&&Er(cc,{children:[n.left&&St("div",{className:"pointer-events-none absolute left-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&St("div",{className:"pointer-events-none absolute right-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},xt=({className:e,children:o})=>{let t=gi(ga);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return St("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},ht=({className:e,children:o,...t})=>{let a=gi(ga);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?St(ne,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||St(lc,{className:"h-4 w-4"})}):null},bt=({className:e,children:o,...t})=>{let a=gi(ga);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?St(ne,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||St(mc,{className:"h-4 w-4"})}):null};import*as ua from"react";import*as Oe from"@radix-ui/react-tabs";import{jsx as ui}from"react/jsx-runtime";var yt=Oe.Root,Xe=ua.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>ui(Oe.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}));Xe.displayName=Oe.List.displayName;var Ye=ua.forwardRef(({className:e,...o},t)=>ui(Oe.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}));Ye.displayName=Oe.Trigger.displayName;var Ze=ua.forwardRef(({className:e,...o},t)=>ui(Oe.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}));Ze.displayName=Oe.Content.displayName;import*as Hr from"react";import{Slot as dc}from"@radix-ui/react-slot";import{cva as pc}from"class-variance-authority";import{jsx as fc}from"react/jsx-runtime";var zr=pc("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"}}),pe=Hr.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?dc:"button",m=r(zr({variant:o,size:t,className:e}));return fc(l,{className:m,disabled:i,ref:s,...n,children:n.children})});pe.displayName="TextButton";import{Fragment as Fr,jsx as V,jsxs as Ke}from"react/jsx-runtime";var hc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ke(Fr,{children:[V("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:V("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Ke("picture",{children:[V("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),V("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Ke("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&V(pe,{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}),V("div",{className:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),Ke("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&Ke(Fr,{children:[V(pe,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&V("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&V("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},va=uc(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>Ke("div",{children:[V("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((g,v)=>V("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:V("div",{onClick:C=>m(C,g?.id,g?.url),className:r("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:V(hc,{blog:g})},g?.id)},v))}),d?.isShowBtn&&V("div",{className:"flex items-center justify-center w-full mt-8",children:Ke(Be,{action:i?()=>i?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[xc(d.btnName||"Xem th\xEAm"),d?.isLoading?V(mo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):i&&!d?.btnUrl&&V(vc,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||p);return Ke(gc.Fragment,{children:[e&&V(h,{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?Ke(yt,{defaultValue:t[0]?.title,children:[Ke(vt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[V(xt,{className:"mb-6 text-center",children:V(Xe,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,p)=>V(Ye,{value:d.title,children:d.title},d.title+p))})}),V(ht,{}),V(bt,{})]}),t.map((d,p)=>V(Ze,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import Pc,{memo as Cc,useEffect as Rc,useState as Or}from"react";import{ChevronLeftIcon as Tc,ChevronRightIcon as kc}from"@heroicons/react/20/solid";import Vr from"html-react-parser";import*as E from"react";import{ChevronLeftIcon as bc,ChevronRightIcon as yc}from"@heroicons/react/20/solid";import wc from"embla-carousel-react";import{Fragment as Nc,jsx as Ae,jsxs as Br}from"react/jsx-runtime";var _r=E.createContext(null);function Ho(){let e=E.useContext(_r);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var we=E.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[m,c]=wc({...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=E.useState(!1),[g,v]=E.useState(!1),C=E.useCallback($=>{$&&(p($.canScrollPrev()),v($.canScrollNext()))},[]),M=E.useCallback(()=>{c?.scrollPrev()},[c]),I=E.useCallback(()=>{c?.scrollNext()},[c]),z=E.useCallback($=>{$.key==="ArrowLeft"?($.preventDefault(),M()):$.key==="ArrowRight"&&($.preventDefault(),I())},[M,I]);return E.useEffect(()=>{!c||!t||t(c)},[c,t]),E.useEffect(()=>{if(c)return C(c),c.on("reInit",C),c.on("select",C),()=>{c?.off("select",C)}},[c,C]),Ae(_r.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:M,scrollNext:I,canScrollPrev:d,canScrollNext:g},children:Ae("div",{ref:l,onKeyDownCapture:z,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});we.displayName="Carousel";var Ne=E.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=Ho();return Ae("div",{ref:i,className:r(o,"overflow-hidden"),children:Ae("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Ne.displayName="CarouselContent";var Pe=E.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Ho();return Ae("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});Pe.displayName="CarouselItem";var go=E.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Ho();return Br(ne,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ae(bc,{className:"w-6 h-6"}),Ae("span",{className:"sr-only",children:"Previous slide"})]})});go.displayName="CarouselPrevious";var uo=E.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Ho();return Br(ne,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ae(yc,{className:"w-6 h-6"}),Ae("span",{className:"sr-only",children:"Next slide"})]})});uo.displayName="CarouselNext";var xa=E.forwardRef((e,o)=>{let{api:t}=Ho(),[,a]=E.useState(!1),i=E.useCallback(()=>a(l=>!l),[]);E.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Ae("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Ae(ne,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):Ae(Nc,{})});xa.displayName="CarouselDots";import{Fragment as ha,jsx as W,jsxs as Ve}from"react/jsx-runtime";var Sc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ve(ha,{children:[W("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:W("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Ve("div",{className:"mt-4 md:pr-3",children:[W("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&W("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:Vr(e?.description??"")}),Ve("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Ve(ha,{children:[W(pe,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&W("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&W("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Dc=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return Rc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Ve(ha,{children:[W(we,{opts:{dragFree:!1},setApi:o,className:"w-full",children:W(Ne,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>W(Pe,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:W("div",{onClick:g=>i(g,p?.id,p?.url),className:r("group cursor-pointer",d),children:W(Sc,{blog:p})},p?.id)},p?.id))})}),s&&W("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Ve(Be,{action:m&&m,newTab:c,variant:"outline",children:[Vr(l||"Xem th\xEAm")," "]})})]})},Mc=({carouselRef:e})=>Ve(ne,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[W(Tc,{className:"h-6 w-6"}),W("span",{className:"sr-only",children:"Previous slide"})]}),Ic=({carouselRef:e})=>Ve(ne,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[W(kc,{className:"h-6 w-6"}),W("span",{className:"sr-only",children:"Next slide"})]}),vi=Cc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(c,d,p)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(p,"_blank")},[n,s]=Or(null),[,l]=Or(0),m=()=>n?Ve("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[W(Mc,{carouselRef:n}),W(Ic,{carouselRef:n})]}):W(ha,{});return Ve(Pc.Fragment,{children:[Ve("div",{className:" flex items-center justify-between",children:[e&&W(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),W(m,{})]}),W(Dc,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});import{Fragment as Hc,jsx as vo}from"react/jsx-runtime";var Ac=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return vo(va,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return vo(vi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return vo(va,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Lc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>vo(Hc,{children:Ac({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Ec=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>vo(O,{className:r("overflow-hidden",i),idSection:a,background:n,children:vo(Lc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as ya from"react";import{enUS as Bc,vi as Oc}from"date-fns/locale";import{ChevronLeft as Vc,ChevronRight as Wc}from"lucide-react";import Gc from"lunisolar";import{DayPicker as $c}from"react-day-picker";import*as Wr from"react";import*as zo from"@radix-ui/react-checkbox";import{CheckIcon as zc}from"@heroicons/react/16/solid";import{cva as Gr}from"class-variance-authority";import{jsx as xi}from"react/jsx-runtime";var Fc=Gr("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"}}),_c=Gr("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),ba=Wr.forwardRef(({className:e,size:o,...t},a)=>xi(zo.Root,{ref:a,className:r(Fc({size:o}),e),...t,children:xi(zo.Indicator,{className:r("flex items-center justify-center text-current"),children:xi(zc,{className:r(_c({size:o}))})})}));ba.displayName=zo.Root.displayName;import{Fragment as Xc,jsx as Je,jsxs as hi}from"react/jsx-runtime";var Qc=({date:e,cusContent:o})=>{let t=null;return t=Gc(e).lunar,hi(Xc,{children:[o?o(e):e.getDate(),t&&Je("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},jc={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 Uc({isShow:e,setIsShow:o,lang:t}){let a=ya.useId();return Je("div",{className:"w-full p-3 pt-0",children:hi("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[Je(ba,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),Je("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var qc=e=>e.getDay()===0||e.getDay()===6;function wa({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,m]=ya.useState(!0);return Je($c,{locale:i==="vi"?Oc:Bc,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(Ue({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(Ue({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:qc},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>Je(Vc,{className:"h-6 w-6"}),IconRight:()=>Je(Wc,{className:"h-6 w-6"}),DayContent:c=>Je(Qc,{date:c.date,cusContent:n}),Months:({children:c})=>hi("div",{className:"w-full",children:[Je("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&Je(Uc,{isShow:l,setIsShow:m,lang:i})]})},formatters:i==="vi"?jc:{},...s})}wa.displayName="Calendar";import{QuestionMarkCircleIcon as Yc,XCircleIcon as Zc}from"@heroicons/react/16/solid";import{format as Na}from"date-fns";import{Calendar as Kc}from"lucide-react";import*as Qr from"react";import*as wt from"@radix-ui/react-popover";import{jsx as $r}from"react/jsx-runtime";var Fo=wt.Root,_o=wt.Trigger,xo=Qr.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>$r(wt.Portal,{children:$r(wt.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})}));xo.displayName=wt.Content.displayName;import{Fragment as jr,jsx as Ce,jsxs as Bo}from"react/jsx-runtime";var Jc=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:c,popoverContentProps:d})=>{let p=c?.selected||null;return Bo("div",{children:[Bo(Fo,{...m,children:[Ce(_o,{asChild:!0,children:Bo(Me,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!p||!(p instanceof Date)&&typeof p=="object"&&(!("from"in p)||!p.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Ce("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Na(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?Ce(jr,{children:p.from?p.to?Bo(jr,{children:[Ce("span",{className:"date-from",children:Na(p.from,s)})," ",Ce("span",{className:"date-separator",children:"-"}),Ce("span",{className:"date-to",children:Na(p.to,s)})]}):Na(p.from,s):o}):o}),e&&Ce("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),Ce(Kc,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Ce(xo,{className:"w-auto border-none !p-0",...d,children:Ce(wa,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&Bo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?Ce(Zc,{width:16,height:16,className:"text-red-500"}):Ce(Yc,{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{useEffect as id,useState as Jr}from"react";import{QuestionMarkCircleIcon as rd,XCircleIcon as nd}from"@heroicons/react/16/solid";import{isValid as sd}from"date-fns";import*as et from"react";import{ChevronDownIcon as Ur,ChevronUpIcon as ed,CheckIcon as td,XCircleIcon as od}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as ad}from"@heroicons/react/24/outline";import*as T from"@radix-ui/react-select";import{jsx as G,jsxs as Oo}from"react/jsx-runtime";var Vo=et.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},m)=>Oo("div",{ref:m,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&G("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}),G(T.Root,{disabled:s,...l,children:o}),a&&Oo("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?G(od,{width:16,height:16}):G(ad,{width:16,height:16}),G("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Wo=T.Value,ho=et.forwardRef(({className:e,children:o,...t},a)=>Oo(T.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:[G("div",{className:"line-clamp-1 text-left",children:o}),G(T.Icon,{asChild:!0,children:G(Ur,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));ho.displayName=T.Trigger.displayName;var bi=et.forwardRef(({className:e,...o},t)=>G(T.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:G(ed,{className:"h-5 w-5"})}));bi.displayName=T.ScrollUpButton.displayName;var yi=et.forwardRef(({className:e,...o},t)=>G(T.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:G(Ur,{className:"h-5 w-5"})}));yi.displayName=T.ScrollDownButton.displayName;var bo=et.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>G(T.Portal,{children:Oo(T.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:[G(bi,{}),G(T.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),G(yi,{})]})}));bo.displayName=T.Content.displayName;var Go=et.forwardRef(({className:e,children:o,...t},a)=>G(T.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),qr=et.forwardRef(({className:e,...o},t)=>G(T.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));qr.displayName=T.Label.displayName;var Dt=et.forwardRef(({className:e,children:o,...t},a)=>Oo(T.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:[G("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:G(T.ItemIndicator,{children:G(td,{className:"h-4 w-4 text-pink-500"})})}),G(T.ItemText,{children:o})]})),Xr=et.forwardRef(({className:e,...o},t)=>G(T.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));Xr.displayName=T.Separator.displayName;var Yr=["Th\xE1ng 01","Th\xE1ng 02","Th\xE1ng 03","Th\xE1ng 04","Th\xE1ng 05","Th\xE1ng 06","Th\xE1ng 07","Th\xE1ng 08","Th\xE1ng 09","Th\xE1ng 10","Th\xE1ng 11","Th\xE1ng 12"],Zr=["January","February","March","April","May","June","July","August","September","October","November","December"],wi=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},Kr=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,l)=>n-l)};import{jsx as te,jsxs as tt}from"react/jsx-runtime";var ld=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:c=1900,toYear:d=new Date().getFullYear(),disableUnselect:p=!1})=>{let[g,v]=Jr(o??null),C=Math.min(c,d),M=Math.max(c,d),I=l==="MM/yyyy",z=(N,re)=>{if(re===0){v(void 0),t?.(void 0);return}let Q=g?.getFullYear()||new Date().getFullYear(),da=g?.getMonth()??0,Wt=g?.getDate()??1;N==="month"&&re!==null&&(da=re-1),N==="year"&&re!==null&&(Q=re),I?Wt=1:N==="day"&&re!==null&&(Wt=re);let hr=wi(Q,da+1).daysInMonth;Wt>hr&&(Wt=1);let Do=new Date(Q,da,Wt);sd(Do)&&(v(Do),t?.(Do))},[$,A]=Jr(!1),Vt=N=>{A(N)};return id(()=>{v(o??null)},[o]),tt("div",{className:r("relative",s&&"cursor-no-drop"),children:[tt("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",$&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",g?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&te("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),tt("div",{className:"flex h-full flex-row divide-x",children:[!I&&tt(Vo,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:N=>z("day",parseInt(N,10)),onOpenChange:Vt,className:"w-[30%]",children:[te(ho,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Wo,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),te(bo,{onCloseAutoFocus:N=>N.preventDefault(),children:tt(Go,{children:[!p&&te(Dt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:wi(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(N,re)=>(re+1).toString().padStart(2,"0")).map(N=>te(Dt,{value:N,children:N},N))]})})]}),tt(Vo,{value:g?(g.getMonth()+1).toString():"",onValueChange:N=>z("month",parseInt(N,10)),onOpenChange:Vt,className:r(I?"w-1/2":"w-2/5"),children:[te(ho,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Wo,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),te(bo,{onCloseAutoFocus:N=>N.preventDefault(),children:tt(Go,{children:[!p&&te(Dt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(N,re)=>re+1).map(N=>te(Dt,{value:N.toString(),children:m==="vi"?Yr[N-1]:Zr[N-1]},N))]})})]}),tt(Vo,{value:g?g.getFullYear().toString():"",onValueChange:N=>z("year",parseInt(N,10)),onOpenChange:Vt,className:r(I?"w-1/2":"w-[30%]"),children:[te(ho,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:te(Wo,{placeholder:m==="vi"?"N\u0103m":"Year"})}),te(bo,{onCloseAutoFocus:N=>N.preventDefault(),children:tt(Go,{children:[!p&&te(Dt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Kr(C,M).map(N=>te(Dt,{value:N.toString(),children:N},N))]})})]})]})]}),i&&tt("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?te(nd,{width:16,height:16,className:"text-red-500"}):te(rd,{width:16,height:16,className:"text-gray-500"}),te("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};import*as jt from"react";import*as F from"@radix-ui/react-alert-dialog";import{jsx as Nt,jsxs as dd}from"react/jsx-runtime";var md=F.Root,cd=F.Trigger,en=F.Portal,Ni=jt.forwardRef(({className:e,...o},t)=>Nt(F.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));Ni.displayName=F.Overlay.displayName;var tn=jt.forwardRef(({className:e,...o},t)=>dd(en,{children:[Nt(Ni,{}),Nt(F.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));tn.displayName=F.Content.displayName;var on=({className:e,...o})=>Nt("div",{className:r("flex flex-col space-y-2 text-left",e),...o});on.displayName="AlertDialogHeader";var an=({className:e,...o})=>Nt("div",{className:r("flex flex-row justify-end space-x-4",e),...o});an.displayName="AlertDialogFooter";var rn=jt.forwardRef(({className:e,...o},t)=>Nt(F.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));rn.displayName=F.Title.displayName;var nn=jt.forwardRef(({className:e,...o},t)=>Nt(F.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));nn.displayName=F.Description.displayName;var sn=jt.forwardRef(({className:e,...o},t)=>Nt(F.Action,{ref:t,className:r(Ue({variant:"primary"}),"",e),...o}));sn.displayName=F.Action.displayName;var ln=jt.forwardRef(({className:e,...o},t)=>Nt(F.Cancel,{ref:t,className:r(Ue({variant:"secondary"}),e),...o}));ln.displayName=F.Cancel.displayName;import{memo as yd,useState as wd}from"react";import{useEffect as pd,useState as cn}from"react";import dn from"html-react-parser";import{motion as fd}from"motion/react";import*as mn from"@radix-ui/react-aspect-ratio";var H=mn.Root;import{Fragment as pn,jsx as oe,jsxs as $o}from"react/jsx-runtime";var gd=({guideGroup:e,mockup:o})=>{let[t,a]=cn(),[i,n]=cn(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return pd(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),oe(pn,{children:e?.stepList&&e?.stepList?.length>0&&$o("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[oe("div",{className:"h-auto w-64 flex-none",children:$o("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"&&$o(pn,{children:[oe("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),oe("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),oe("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),oe("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),oe("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:$o(we,{setApi:a,children:[oe(Ne,{className:"ml-0",children:e?.stepList.map((l,m)=>oe(Pe,{className:"pl-0",children:oe(H,{ratio:o==="small"?540/960:540/1168,children:l?.image&&oe("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),oe(go,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),oe(uo,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),oe("div",{className:"flex flex-auto pl-12 pt-4",children:oe("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>$o("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",m+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[oe("div",{className:r("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),oe("div",{className:r(" text-sm font-medium",m+1===i?"text-pink-500":"text-gray-900"),children:dn(l.title)}),l.content&&oe(fd.div,{initial:"closed",animate:m+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:oe("div",{className:"mt-3 text-sm text-gray-700",children:dn(l.content)})})]},m))})})]})})},Pi=gd;import{useEffect as ud,useRef as vd,useState as Pa}from"react";import{ChevronRightIcon as fn}from"@heroicons/react/20/solid";import xd from"embla-carousel-autoplay";import Ca from"html-react-parser";import{Fragment as Ci,jsx as y,jsxs as xe}from"react/jsx-runtime";var hd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=Pa(0),[s,l]=Pa();return ud(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:y(_e,{open:e,onOpenChange:o,children:xe(Ie,{position:"bottom",height:"full",children:[y(co,{children:y(po,{className:"line-clamp-1",children:t?.title})}),xe(qe,{className:"grid overflow-hidden p-0 ",children:[y(we,{setApi:l,className:" grid overflow-hidden",children:y(Ne,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>y(Pe,{className:"h-full w-full pl-0",children:xe("div",{className:"flex h-full flex-col overflow-y-auto",children:[y("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:y("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:xe("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"&&xe(Ci,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:y(H,{ratio:a==="small"?540/960:540/1168,children:m?.image&&y("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),xe("div",{className:"p-5 pb-12",children:[y("div",{className:"font-semibold",children:Ca(m.title)}),m?.content&&y("div",{className:"mt-3 text-sm text-gray-800",children:Ca(m.content)})]})]})},c))})}),y("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((m,c)=>y("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},bd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=Pa(!1),[n,s]=Pa(null),l=vd(xd({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),i(!0)};return e?.length===0?null:xe(Ci,{children:[e?.length>1?y("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>xe("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[y("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(c?.avatar||c?.stepList?.[0]?.image)&&y("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),xe("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",d+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[xe("div",{className:"py-2",children:[t&&y("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),y("div",{className:"font-semibold",children:Ca(c.title)}),c?.description&&y("div",{className:"mt-1 text-sm text-gray-500",children:Ca(c.description)})]}),y("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:y(fn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&xe("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[y("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:y("div",{className:"mx-auto h-auto w-72",children:xe("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"&&xe(Ci,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:y(we,{plugins:[l.current],children:y(Ne,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>y(Pe,{className:"pl-0",onClick:()=>m(0),children:y(H,{ratio:o==="small"?540/960:540/1168,children:c?.image&&y("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),y("div",{className:"flex w-full flex-none justify-center",children:xe(pe,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",y(fn,{className:"ml-1 h-5 w-5"})]})})]}),a&&y(hd,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},gn=bd;import{Fragment as Nd,jsx as le,jsxs as Qo}from"react/jsx-runtime";var un=({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 le("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:le("path",{d:t.d,fill:"currentColor"})})},Ri=yd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=wd(t?.[0]?.title||"");return Qo(Nd,{children:[e&&le(h,{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&&Qo(so,{children:[le(je,{lessThan:"md",children:le(gn,{dataGuide:t,mockup:i,isStep:n})}),le(je,{greaterThan:"sm",children:t?.length>1?Qo(yt,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[Qo(vt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[le(xt,{className:"mb-6 text-center",children:le(Xe,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,g)=>{let v=g===t.length-1,C=c===p?.title||"";return Qo(Ye,{value:p.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",C&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&le(un,{direction:"left",className:r("right-full top-0",C?"text-pink-500":"text-pink-100")}),p.title,n&&!v&&le(un,{direction:"right",className:r("left-full top-0",C?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),le(ht,{}),le(bt,{})]}),t.map((p,g)=>le(Ze,{value:p.title,children:le(Pi,{guideGroup:p,mockup:i})},p.title+g))]}):t?.length===1&&t[0]&&le(Pi,{guideGroup:t[0],mockup:i})})]}),a&&le(b,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as Td,jsx as jo}from"react/jsx-runtime";var Pd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return jo(Ri,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return jo(Ri,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},Cd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>jo(Td,{children:Pd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),Rd=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:i,background:n,template:s=1,mockup:l="default",isStep:m=!1})=>jo(O,{className:r(i),background:n,children:jo(Cd,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:l,isStep:m})});import{ChevronLeft as kd,ChevronRight as Sd}from"lucide-react";import{Fragment as Dd,jsx as Le,jsxs as vn}from"react/jsx-runtime";function xn({current:e,total:o,onChange:t}){let a=i=>Le("li",{children:Le("button",{className:r(Qt({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return Le("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:vn("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Le("li",{children:Le("button",{className:r(Qt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Le(kd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):vn(Dd,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Le("li",{children:Le("button",{className:r(Qt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&Le("button",{className:r(Qt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Le("li",{children:Le("button",{className:r(Qt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Le(Sd,{className:"h-4 w-4"})})})]})})}import{forwardRef as Md}from"react";import{QuestionMarkCircleIcon as Id}from"@heroicons/react/24/outline";import{XCircleIcon as Ad}from"@heroicons/react/24/solid";import{jsx as yo,jsxs as hn}from"react/jsx-runtime";var Ld=Md(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...m},c)=>hn("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&yo("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}),yo("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,...m}),t&&hn("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?yo(Ad,{width:16,height:16,className:"text-red-500"}):yo(Id,{width:16,height:16,className:"text-gray-500"}),yo("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),yo("style",{children:`
|
|
70
|
+
`})]}),jt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>k(_e,{...m,children:k(Ie,{className:i("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:k(Xe,{className:"p-0",children:de("div",{className:"flex flex-row flex-wrap",children:[k("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||de("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[de("div",{className:"flex flex-nowrap items-center",children:[k("div",{className:"flex-none",children:k("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),de("div",{className:"flex-1 pl-4",children:[k("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),k("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"})]})]}),de("div",{className:"flex flex-nowrap items-center",children:[k("div",{className:"flex-none",children:k("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),de("div",{className:"flex-1 pl-4",children:[k("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),k("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),de("div",{className:"flex flex-nowrap items-center",children:[k("div",{className:"flex-none",children:k("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),de("div",{className:"flex-1 pl-4",children:[k("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),de("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"]})]})]})]})}),k("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:de("div",{className:"px-5 py-10 text-center",children:[t&&k("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),de("div",{className:"relative",children:[l&&k("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:k("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),k(Um,{img:r,isQrForAll:l,children:n&&k(Qm,{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 ec}from"react";import{useEffect as qm,useLayoutEffect as Xm,useState as Ym}from"react";import Zm from"ua-parser-js";var Km=()=>Zm().device.type==="mobile",Jm=typeof window<"u"?Xm:qm,vo=()=>{let[e,o]=Ym(!1);return Jm(()=>{o(Km())},[]),e};import{Fragment as tc,jsx as ba,jsxs as oc}from"react/jsx-runtime";var Be=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=ec(!1),c=vo(),d=!!a?.qrLink,p=()=>{let H=d?a?.qrLink:e;return typeof H=="string"?H.trim():""},g=()=>{let H=p();!H&&typeof e!="function"||(typeof e=="function"?e():window.open(H,o?"_blank":"_self"))},v=(H,G=0)=>{let A=document.querySelector(H);if(!A)return;let N=A.getBoundingClientRect().top+window.scrollY-G;window.scrollTo({top:N,behavior:"smooth"})},T=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):g()},D=()=>oc(tc,{children:[ba(Me,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),ba(jt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?D():ba(Me,{...s,className:r,onClick:g,"data-name":"button-action-with-qr",children:n}):D():ba(Me,{...s,onClick:T,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as xo from"react";import{ChevronRightIcon as ac,DotsHorizontalIcon as rc}from"@radix-ui/react-icons";import{Slot as ic}from"@radix-ui/react-slot";import{jsx as vt,jsxs as nc}from"react/jsx-runtime";var zi=xo.forwardRef(({className:e,...o},t)=>vt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));zi.displayName="Breadcrumb";var Ei=xo.forwardRef(({className:e,...o},t)=>vt("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Ei.displayName="BreadcrumbList";var Hi=xo.forwardRef(({className:e,...o},t)=>vt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Hi.displayName="BreadcrumbItem";var Fi=xo.forwardRef(({asChild:e,className:o,...t},a)=>vt(e?ic:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Fi.displayName="BreadcrumbLink";var _i=xo.forwardRef(({className:e,...o},t)=>vt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));_i.displayName="BreadcrumbPage";var Bi=({children:e,className:o,...t})=>vt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??vt(ac,{className:"w-2 h-2"})});Bi.displayName="BreadcrumbSeparator";var Oi=({className:e,...o})=>nc("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[vt(rc,{className:"w-4 h-4 text-gray-900"}),vt("span",{className:"sr-only",children:"More"})]});Oi.displayName="BreadcrumbElipssis";import hr from"html-react-parser";import{createContext as sc,useContext as Vi}from"react";import{jsx as Vo}from"react/jsx-runtime";var fr=sc({align:"center"}),gr=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return Vo("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},ur=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:c}=Vi(fr);return Vo(s,{className:i("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",r),children:n})},vr=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:c}=Vi(fr);return Vo("div",{className:i(c==="center"?"mx-auto max-w-2xl":c==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",r),children:n})},xr=({className:e,align:o="center",children:t})=>Vo("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Vo(fr.Provider,{value:{align:o},children:t})});import{jsx as Qt,jsxs as lc}from"react/jsx-runtime";var B=({idSection:e,className:o,background:t,children:a})=>Qt("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Qt("div",{className:"wrapper relative",children:a})}),x=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",c=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:lc(xr,{align:e,className:l,children:[o&&Qt(gr,{color:m,children:o}),t&&Qt(ur,{tagHeading:r,color:c,size:s,children:hr(t)}),a&&Qt(vr,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:hr(a)})]})},b=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Qt("div",{className:i("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((r,n)=>{if(!r)return null;let{btnName:s,...l}=r;return Qt(Be,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:hr(s)},n)})});import Pc,{memo as Cc}from"react";import{ArrowDownIcon as Rc}from"@heroicons/react/20/solid";import Tc from"html-react-parser";import{createContext as pc,useCallback as fc,useContext as br,useEffect as gc,useRef as uc,useState as vc}from"react";import{ChevronLeft as xc,ChevronRight as hc}from"lucide-react";import*as Wi from"react";import{Slot as mc}from"@radix-ui/react-slot";import{cva as cc}from"class-variance-authority";import{jsx as dc}from"react/jsx-runtime";var Ut=cc("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),ie=Wi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?mc:"button",m=i(Ut({variant:o,size:t,className:e}));return dc(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ie.displayName="IconButton";import{Fragment as bc,jsx as Dt,jsxs as Gi}from"react/jsx-runtime";var ya=pc(void 0),xt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=uc(null),[n,s]=vc({left:!1,right:!1}),l=fc(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);gc(()=>{let c=r.current;if(c)return l(),window.addEventListener("resize",l),c.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),c.removeEventListener("scroll",l)}},[l]);let m=c=>{let d=r.current;if(d){let{scrollLeft:p,clientWidth:g,scrollWidth:v}=d,T=g*.7*(c==="left"?-1:1),D=p+T;D<0?D=0:D>v-g&&(D=v-g),d.scrollTo({left:D,behavior:"smooth"})}};return Dt(ya.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:Gi("div",{className:i("relative w-full",t),children:[e&&Gi(bc,{children:[n.left&&Dt("div",{className:"pointer-events-none absolute left-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&Dt("div",{className:"pointer-events-none absolute right-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},ht=({className:e,children:o})=>{let t=br(ya);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Dt("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},bt=({className:e,children:o,...t})=>{let a=br(ya);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Dt(ie,{className:i("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Dt(xc,{className:"h-4 w-4"})}):null},yt=({className:e,children:o,...t})=>{let a=br(ya);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Dt(ie,{className:i("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||Dt(hc,{className:"h-4 w-4"})}):null};import*as wa from"react";import*as Oe from"@radix-ui/react-tabs";import{jsx as yr}from"react/jsx-runtime";var wt=Oe.Root,Ye=wa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>yr(Oe.List,{ref:r,className:i("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Ye.displayName=Oe.List.displayName;var Ze=wa.forwardRef(({className:e,...o},t)=>yr(Oe.Trigger,{ref:t,className:i("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));Ze.displayName=Oe.Trigger.displayName;var Ke=wa.forwardRef(({className:e,...o},t)=>yr(Oe.Content,{ref:t,className:i("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Ke.displayName=Oe.Content.displayName;import*as $i from"react";import{Slot as yc}from"@radix-ui/react-slot";import{cva as wc}from"class-variance-authority";import{jsx as Nc}from"react/jsx-runtime";var ji=wc("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"}}),pe=$i.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?yc:"button",m=i(ji({variant:o,size:t,className:e}));return Nc(l,{className:m,disabled:r,ref:s,...n,children:n.children})});pe.displayName="TextButton";import{Fragment as Qi,jsx as O,jsxs as Je}from"react/jsx-runtime";var kc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Je(Qi,{children:[O("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:O("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Je("picture",{children:[O("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),O("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Je("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&O(pe,{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}),O("div",{className:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),Je("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&Je(Qi,{children:[O(pe,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&O("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&O("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Na=Cc(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>Je("div",{children:[O("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((g,v)=>O("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:O("div",{onClick:T=>m(T,g?.id,g?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:O(kc,{blog:g})},g?.id)},v))}),d?.isShowBtn&&O("div",{className:"flex items-center justify-center w-full mt-8",children:Je(Be,{action:r?()=>r?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[Tc(d.btnName||"Xem th\xEAm"),d?.isLoading?O(fo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&O(Rc,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||p);return Je(Pc.Fragment,{children:[e&&O(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?Je(wt,{defaultValue:t[0]?.title,children:[Je(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[O(ht,{className:"mb-6 text-center",children:O(Ye,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,p)=>O(Ze,{value:d.title,children:d.title},d.title+p))})}),O(bt,{}),O(yt,{})]}),t.map((d,p)=>O(Ke,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import Ac,{memo as Lc,useEffect as zc,useState as Xi}from"react";import{ChevronLeftIcon as Ec,ChevronRightIcon as Hc}from"@heroicons/react/20/solid";import Yi from"html-react-parser";import*as z from"react";import{ChevronLeftIcon as Sc,ChevronRightIcon as Dc}from"@heroicons/react/20/solid";import Mc from"embla-carousel-react";import{Fragment as Ic,jsx as Ae,jsxs as qi}from"react/jsx-runtime";var Ui=z.createContext(null);function Wo(){let e=z.useContext(Ui);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var fe=z.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=Mc({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=z.useState(!1),[g,v]=z.useState(!1),T=z.useCallback(G=>{G&&(p(G.canScrollPrev()),v(G.canScrollNext()))},[]),D=z.useCallback(()=>{c?.scrollPrev()},[c]),I=z.useCallback(()=>{c?.scrollNext()},[c]),H=z.useCallback(G=>{G.key==="ArrowLeft"?(G.preventDefault(),D()):G.key==="ArrowRight"&&(G.preventDefault(),I())},[D,I]);return z.useEffect(()=>{!c||!t||t(c)},[c,t]),z.useEffect(()=>{if(c)return T(c),c.on("reInit",T),c.on("select",T),()=>{c?.off("select",T)}},[c,T]),Ae(Ui.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:I,canScrollPrev:d,canScrollNext:g},children:Ae("div",{ref:l,onKeyDownCapture:H,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});fe.displayName="Carousel";var ge=z.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Wo();return Ae("div",{ref:r,className:i("overflow-hidden",o),children:Ae("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ge.displayName="CarouselContent";var se=z.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Wo();return Ae("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});se.displayName="CarouselItem";var ho=z.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Wo();return qi(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ae(Sc,{className:"h-6 w-6"}),Ae("span",{className:"sr-only",children:"Previous slide"})]})});ho.displayName="CarouselPrevious";var bo=z.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Wo();return qi(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ae(Dc,{className:"h-6 w-6"}),Ae("span",{className:"sr-only",children:"Next slide"})]})});bo.displayName="CarouselNext";var yo=z.forwardRef((e,o)=>{let{api:t}=Wo(),[,a]=z.useState(!1),r=z.useCallback(()=>a(l=>!l),[]);z.useEffect(()=>{if(t)return t.on("select",r),t.on("reInit",r),()=>{t.off("select",r),t.off("reInit",r)}},[t,r]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Ae("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Ae(ie,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):Ae(Ic,{})});yo.displayName="CarouselDots";import{Fragment as Pa,jsx as V,jsxs as Ve}from"react/jsx-runtime";var Fc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ve(Pa,{children:[V("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:V("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Ve("div",{className:"mt-4 md:pr-3",children:[V("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&V("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:Yi(e?.description??"")}),Ve("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Ve(Pa,{children:[V(pe,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&V("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&V("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},_c=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return zc(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Ve(Pa,{children:[V(fe,{opts:{dragFree:!1},setApi:o,className:"w-full",children:V(ge,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>V(se,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:V("div",{onClick:g=>r(g,p?.id,p?.url),className:i("group cursor-pointer",d),children:V(Fc,{blog:p})},p?.id)},p?.id))})}),s&&V("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Ve(Be,{action:m&&m,newTab:c,variant:"outline",children:[Yi(l||"Xem th\xEAm")," "]})})]})},Bc=({carouselRef:e})=>Ve(ie,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[V(Ec,{className:"h-6 w-6"}),V("span",{className:"sr-only",children:"Previous slide"})]}),Oc=({carouselRef:e})=>Ve(ie,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[V(Hc,{className:"h-6 w-6"}),V("span",{className:"sr-only",children:"Next slide"})]}),wr=Lc(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(c,d,p)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(p,"_blank")},[n,s]=Xi(null),[,l]=Xi(0),m=()=>n?Ve("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[V(Bc,{carouselRef:n}),V(Oc,{carouselRef:n})]}):V(Pa,{});return Ve(Ac.Fragment,{children:[Ve("div",{className:" flex items-center justify-between",children:[e&&V(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),V(m,{})]}),V(_c,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as $c,jsx as wo}from"react/jsx-runtime";var Vc=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return wo(Na,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return wo(wr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return wo(Na,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Wc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>wo($c,{children:Vc({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),Gc=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>wo(B,{className:i("overflow-hidden",r),idSection:a,background:n,children:wo(Wc,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as Ra from"react";import{enUS as qc,vi as Xc}from"date-fns/locale";import{ChevronLeft as Yc,ChevronRight as Zc}from"lucide-react";import Kc from"lunisolar";import{DayPicker as Jc}from"react-day-picker";import*as Zi from"react";import*as Go from"@radix-ui/react-checkbox";import{CheckIcon as jc}from"@heroicons/react/16/solid";import{cva as Ki}from"class-variance-authority";import{jsx as Nr}from"react/jsx-runtime";var Qc=Ki("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"}}),Uc=Ki("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ca=Zi.forwardRef(({className:e,size:o,...t},a)=>Nr(Go.Root,{ref:a,className:i(Qc({size:o}),e),...t,children:Nr(Go.Indicator,{className:i("flex items-center justify-center text-current"),children:Nr(jc,{className:i(Uc({size:o}))})})}));Ca.displayName=Go.Root.displayName;import{Fragment as rd,jsx as et,jsxs as Pr}from"react/jsx-runtime";var ed=({date:e,cusContent:o})=>{let t=null;return t=Kc(e).lunar,Pr(rd,{children:[o?o(e):e.getDate(),t&&et("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},td={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 od({isShow:e,setIsShow:o,lang:t}){let a=Ra.useId();return et("div",{className:"w-full p-3 pt-0",children:Pr("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[et(Ca,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),et("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var ad=e=>e.getDay()===0||e.getDay()===6;function Ta({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=Ra.useState(!0);return et(Jc,{locale:r==="vi"?Xc:qc,showOutsideDays:t,className:i("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:i(qe({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:i("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:i(qe({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:ad},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>et(Yc,{className:"h-6 w-6"}),IconRight:()=>et(Zc,{className:"h-6 w-6"}),DayContent:c=>et(ed,{date:c.date,cusContent:n}),Months:({children:c})=>Pr("div",{className:"w-full",children:[et("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&et(od,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?td:{},...s})}Ta.displayName="Calendar";import{QuestionMarkCircleIcon as id,XCircleIcon as nd}from"@heroicons/react/16/solid";import{format as ka}from"date-fns";import{Calendar as sd}from"lucide-react";import*as en from"react";import*as Nt from"@radix-ui/react-popover";import{jsx as Ji}from"react/jsx-runtime";var $o=Nt.Root,jo=Nt.Trigger,No=en.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>Ji(Nt.Portal,{children:Ji(Nt.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));No.displayName=Nt.Content.displayName;import{Fragment as tn,jsx as Pe,jsxs as Qo}from"react/jsx-runtime";var ld=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:c,popoverContentProps:d})=>{let p=c?.selected||null;return Qo("div",{children:[Qo($o,{...m,children:[Pe(jo,{asChild:!0,children:Qo(Me,{variant:"secondary",className:i("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!p||!(p instanceof Date)&&typeof p=="object"&&(!("from"in p)||!p.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Pe("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?ka(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?Pe(tn,{children:p.from?p.to?Qo(tn,{children:[Pe("span",{className:"date-from",children:ka(p.from,s)})," ",Pe("span",{className:"date-separator",children:"-"}),Pe("span",{className:"date-to",children:ka(p.to,s)})]}):ka(p.from,s):o}):o}),e&&Pe("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),Pe(sd,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Pe(No,{className:"w-auto border-none !p-0",...d,children:Pe(Ta,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&Qo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?Pe(nd,{width:16,height:16,className:"text-red-500"}):Pe(id,{width:16,height:16,className:"text-gray-500"}),Pe("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as fd,useState as mn}from"react";import{QuestionMarkCircleIcon as gd,XCircleIcon as ud}from"@heroicons/react/16/solid";import{isValid as vd}from"date-fns";import*as tt from"react";import{ChevronDownIcon as on,ChevronUpIcon as md,CheckIcon as cd,XCircleIcon as dd}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as pd}from"@heroicons/react/24/outline";import*as R from"@radix-ui/react-select";import{jsx as W,jsxs as Uo}from"react/jsx-runtime";var qo=tt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Uo("div",{ref:m,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&W("span",{className:i("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),W(R.Root,{disabled:s,...l,children:o}),a&&Uo("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?W(dd,{width:16,height:16}):W(pd,{width:16,height:16}),W("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Xo=R.Value,Po=tt.forwardRef(({className:e,children:o,...t},a)=>Uo(R.Trigger,{ref:a,className:i("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[W("div",{className:"line-clamp-1 text-left",children:o}),W(R.Icon,{asChild:!0,children:W(on,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Po.displayName=R.Trigger.displayName;var Cr=tt.forwardRef(({className:e,...o},t)=>W(R.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:W(md,{className:"h-5 w-5"})}));Cr.displayName=R.ScrollUpButton.displayName;var Rr=tt.forwardRef(({className:e,...o},t)=>W(R.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:W(on,{className:"h-5 w-5"})}));Rr.displayName=R.ScrollDownButton.displayName;var Co=tt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>W(R.Portal,{children:Uo(R.Content,{ref:r,className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[W(Cr,{}),W(R.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),W(Rr,{})]})}));Co.displayName=R.Content.displayName;var Yo=tt.forwardRef(({className:e,children:o,...t},a)=>W(R.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),an=tt.forwardRef(({className:e,...o},t)=>W(R.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));an.displayName=R.Label.displayName;var Mt=tt.forwardRef(({className:e,children:o,...t},a)=>Uo(R.Item,{ref:a,className:i("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[W("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:W(R.ItemIndicator,{children:W(cd,{className:"h-4 w-4 text-pink-500"})})}),W(R.ItemText,{children:o})]})),rn=tt.forwardRef(({className:e,...o},t)=>W(R.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));rn.displayName=R.Separator.displayName;var nn=["Th\xE1ng 01","Th\xE1ng 02","Th\xE1ng 03","Th\xE1ng 04","Th\xE1ng 05","Th\xE1ng 06","Th\xE1ng 07","Th\xE1ng 08","Th\xE1ng 09","Th\xE1ng 10","Th\xE1ng 11","Th\xE1ng 12"],sn=["January","February","March","April","May","June","July","August","September","October","November","December"],Tr=(e,o,t,a)=>{let r=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():r;return{daysInMonth:r,startDay:n,endDay:s}},ln=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};import{jsx as ee,jsxs as ot}from"react/jsx-runtime";var xd=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:c=1900,toYear:d=new Date().getFullYear(),disableUnselect:p=!1})=>{let[g,v]=mn(o??null),T=Math.min(c,d),D=Math.max(c,d),I=l==="MM/yyyy",H=(N,re)=>{if(re===0){v(void 0),t?.(void 0);return}let $=g?.getFullYear()||new Date().getFullYear(),ha=g?.getMonth()??0,$t=g?.getDate()??1;N==="month"&&re!==null&&(ha=re-1),N==="year"&&re!==null&&($=re),I?$t=1:N==="day"&&re!==null&&($t=re);let ki=Tr($,ha+1).daysInMonth;$t>ki&&($t=1);let Ho=new Date($,ha,$t);vd(Ho)&&(v(Ho),t?.(Ho))},[G,A]=mn(!1),Gt=N=>{A(N)};return fd(()=>{v(o??null)},[o]),ot("div",{className:i("relative",s&&"cursor-no-drop"),children:[ot("div",{className:i("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",G&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",g?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&ee("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),ot("div",{className:"flex h-full flex-row divide-x",children:[!I&&ot(qo,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:N=>H("day",parseInt(N,10)),onOpenChange:Gt,className:"w-[30%]",children:[ee(Po,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Xo,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),ee(Co,{onCloseAutoFocus:N=>N.preventDefault(),children:ot(Yo,{children:[!p&&ee(Mt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Tr(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(N,re)=>(re+1).toString().padStart(2,"0")).map(N=>ee(Mt,{value:N,children:N},N))]})})]}),ot(qo,{value:g?(g.getMonth()+1).toString():"",onValueChange:N=>H("month",parseInt(N,10)),onOpenChange:Gt,className:i(I?"w-1/2":"w-2/5"),children:[ee(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Xo,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),ee(Co,{onCloseAutoFocus:N=>N.preventDefault(),children:ot(Yo,{children:[!p&&ee(Mt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(N,re)=>re+1).map(N=>ee(Mt,{value:N.toString(),children:m==="vi"?nn[N-1]:sn[N-1]},N))]})})]}),ot(qo,{value:g?g.getFullYear().toString():"",onValueChange:N=>H("year",parseInt(N,10)),onOpenChange:Gt,className:i(I?"w-1/2":"w-[30%]"),children:[ee(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Xo,{placeholder:m==="vi"?"N\u0103m":"Year"})}),ee(Co,{onCloseAutoFocus:N=>N.preventDefault(),children:ot(Yo,{children:[!p&&ee(Mt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),ln(T,D).map(N=>ee(Mt,{value:N.toString(),children:N},N))]})})]})]})]}),r&&ot("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?ee(ud,{width:16,height:16,className:"text-red-500"}):ee(gd,{width:16,height:16,className:"text-gray-500"}),ee("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as qt from"react";import*as F from"@radix-ui/react-alert-dialog";import{jsx as Pt,jsxs as yd}from"react/jsx-runtime";var hd=F.Root,bd=F.Trigger,cn=F.Portal,kr=qt.forwardRef(({className:e,...o},t)=>Pt(F.Overlay,{className:i("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));kr.displayName=F.Overlay.displayName;var dn=qt.forwardRef(({className:e,...o},t)=>yd(cn,{children:[Pt(kr,{}),Pt(F.Content,{ref:t,className:i("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));dn.displayName=F.Content.displayName;var pn=({className:e,...o})=>Pt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});pn.displayName="AlertDialogHeader";var fn=({className:e,...o})=>Pt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});fn.displayName="AlertDialogFooter";var gn=qt.forwardRef(({className:e,...o},t)=>Pt(F.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));gn.displayName=F.Title.displayName;var un=qt.forwardRef(({className:e,...o},t)=>Pt(F.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));un.displayName=F.Description.displayName;var vn=qt.forwardRef(({className:e,...o},t)=>Pt(F.Action,{ref:t,className:i(qe({variant:"primary"}),"",e),...o}));vn.displayName=F.Action.displayName;var xn=qt.forwardRef(({className:e,...o},t)=>Pt(F.Cancel,{ref:t,className:i(qe({variant:"secondary"}),e),...o}));xn.displayName=F.Cancel.displayName;import{memo as Dd,useState as Md}from"react";import{useEffect as wd,useState as bn}from"react";import yn from"html-react-parser";import{motion as Nd}from"motion/react";import*as hn from"@radix-ui/react-aspect-ratio";var E=hn.Root;import{Fragment as wn,jsx as te,jsxs as Zo}from"react/jsx-runtime";var Pd=({guideGroup:e,mockup:o})=>{let[t,a]=bn(),[r,n]=bn(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return wd(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),te(wn,{children:e?.stepList&&e?.stepList?.length>0&&Zo("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[te("div",{className:"h-auto w-64 flex-none",children:Zo("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&Zo(wn,{children:[te("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),te("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:Zo(fe,{setApi:a,children:[te(ge,{className:"ml-0",children:e?.stepList.map((l,m)=>te(se,{className:"pl-0",children:te(E,{ratio:o==="small"?540/960:540/1168,children:l?.image&&te("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),te(ho,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),te(bo,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),te("div",{className:"flex flex-auto pl-12 pt-4",children:te("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>Zo("li",{className:i("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",m+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[te("div",{className:i("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),te("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:yn(l.title)}),l.content&&te(Nd.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:te("div",{className:"mt-3 text-sm text-gray-700",children:yn(l.content)})})]},m))})})]})})},Sr=Pd;import{useEffect as Cd,useRef as Rd,useState as Sa}from"react";import{ChevronRightIcon as Nn}from"@heroicons/react/20/solid";import Td from"embla-carousel-autoplay";import Da from"html-react-parser";import{Fragment as Dr,jsx as y,jsxs as be}from"react/jsx-runtime";var kd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=Sa(0),[s,l]=Sa();return Cd(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:y(_e,{open:e,onOpenChange:o,children:be(Ie,{position:"bottom",height:"full",children:[y(go,{children:y(uo,{className:"line-clamp-1",children:t?.title})}),be(Xe,{className:"grid overflow-hidden p-0 ",children:[y(fe,{setApi:l,className:" grid overflow-hidden",children:y(ge,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>y(se,{className:"h-full w-full pl-0",children:be("div",{className:"flex h-full flex-col overflow-y-auto",children:[y("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:y("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:be("div",{className:i("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&be(Dr,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:y(E,{ratio:a==="small"?540/960:540/1168,children:m?.image&&y("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),be("div",{className:"p-5 pb-12",children:[y("div",{className:"font-semibold",children:Da(m.title)}),m?.content&&y("div",{className:"mt-3 text-sm text-gray-800",children:Da(m.content)})]})]})},c))})}),y("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((m,c)=>y("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},Sd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=Sa(!1),[n,s]=Sa(null),l=Rd(Td({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:be(Dr,{children:[e?.length>1?y("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>be("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[y("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(c?.avatar||c?.stepList?.[0]?.image)&&y("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),be("div",{className:i("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",d+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[be("div",{className:"py-2",children:[t&&y("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),y("div",{className:"font-semibold",children:Da(c.title)}),c?.description&&y("div",{className:"mt-1 text-sm text-gray-500",children:Da(c.description)})]}),y("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:y(Nn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&be("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[y("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:y("div",{className:"mx-auto h-auto w-72",children:be("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&be(Dr,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:y(fe,{plugins:[l.current],children:y(ge,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>y(se,{className:"pl-0",onClick:()=>m(0),children:y(E,{ratio:o==="small"?540/960:540/1168,children:c?.image&&y("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),y("div",{className:"flex w-full flex-none justify-center",children:be(pe,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",y(Nn,{className:"ml-1 h-5 w-5"})]})})]}),a&&y(kd,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},Pn=Sd;import{Fragment as Id,jsx as le,jsxs as Ko}from"react/jsx-runtime";var Cn=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return le("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:le("path",{d:t.d,fill:"currentColor"})})},Mr=Dd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=Md(t?.[0]?.title||"");return Ko(Id,{children:[e&&le(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t&&t?.length>0&&Ko(co,{children:[le(Ue,{lessThan:"md",children:le(Pn,{dataGuide:t,mockup:r,isStep:n})}),le(Ue,{greaterThan:"sm",children:t?.length>1?Ko(wt,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[Ko(xt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[le(ht,{className:"mb-6 text-center",children:le(Ye,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,g)=>{let v=g===t.length-1,T=c===p?.title||"";return Ko(Ze,{value:p.title,className:i(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",T&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&le(Cn,{direction:"left",className:i("right-full top-0",T?"text-pink-500":"text-pink-100")}),p.title,n&&!v&&le(Cn,{direction:"right",className:i("left-full top-0",T?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),le(bt,{}),le(yt,{})]}),t.map((p,g)=>le(Ke,{value:p.title,children:le(Sr,{guideGroup:p,mockup:r})},p.title+g))]}):t?.length===1&&t[0]&&le(Sr,{guideGroup:t[0],mockup:r})})]}),a&&le(b,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as Ed,jsx as Jo}from"react/jsx-runtime";var Ad=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return Jo(Mr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return Jo(Mr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Ld=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>Jo(Ed,{children:Ad({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),zd=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>Jo(B,{className:i(n),background:s,idSection:e,children:Jo(Ld,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:m,isStep:c})});import{ChevronLeft as Hd,ChevronRight as Fd}from"lucide-react";import{Fragment as _d,jsx as Le,jsxs as Rn}from"react/jsx-runtime";function Tn({current:e,total:o,onChange:t}){let a=r=>Le("li",{children:Le("button",{className:i(Ut({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return Le("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:Rn("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Le("li",{children:Le("button",{className:i(Ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Le(Hd,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):Rn(_d,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Le("li",{children:Le("button",{className:i(Ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&Le("button",{className:i(Ut({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Le("li",{children:Le("button",{className:i(Ut({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Le(Fd,{className:"h-4 w-4"})})})]})})}import{forwardRef as Bd}from"react";import{QuestionMarkCircleIcon as Od}from"@heroicons/react/24/outline";import{XCircleIcon as Vd}from"@heroicons/react/24/solid";import{jsx as Ro,jsxs as kn}from"react/jsx-runtime";var Wd=Bd(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>kn("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&Ro("span",{className:i("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),Ro("textarea",{disabled:e,ref:c,className:i("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...m}),t&&kn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?Ro(Vd,{width:16,height:16,className:"text-red-500"}):Ro(Od,{width:16,height:16,className:"text-gray-500"}),Ro("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Ro("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 Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
94
94
|
color: rgb(var(--mobase-red-500) / 1);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
`})]}));import*as
|
|
97
|
+
`})]}));import*as Aa from"react";var Gd=1,$d=1e6;var Ir=0;function jd(){return Ir=(Ir+1)%Number.MAX_SAFE_INTEGER,Ir.toString()}var Ar=new Map,Sn=e=>{if(Ar.has(e))return;let o=setTimeout(()=>{Ar.delete(e),ea({type:"REMOVE_TOAST",toastId:e})},$d);Ar.set(e,o)},Qd=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Gd)};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?Sn(t):e.toasts.forEach(a=>{Sn(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}},Ma=[],Ia={toasts:[]};function ea(e){Ia=Qd(Ia,e),Ma.forEach(o=>{o(Ia)})}function Dn({...e}){let o=jd(),t=r=>ea({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>ea({type:"DISMISS_TOAST",toastId:o});return ea({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function Lr(){let[e,o]=Aa.useState(Ia);return Aa.useEffect(()=>(Ma.push(o),()=>{let t=Ma.indexOf(o);t>-1&&Ma.splice(t,1)}),[e]),{...e,toast:Dn,dismiss:t=>ea({type:"DISMISS_TOAST",toastId:t})}}import*as Xt from"react";import{CheckCircleIcon as Ud,ExclamationTriangleIcon as qd,InformationCircleIcon as Xd,XMarkIcon as Yd}from"@heroicons/react/20/solid";import*as Y from"@radix-ui/react-toast";import{cva as Zd}from"class-variance-authority";import{jsx as Ct,jsxs as Mn}from"react/jsx-runtime";var In=Y.Provider,zr=Xt.forwardRef(({className:e,...o},t)=>Ct(Y.Viewport,{ref:t,className:i("fixed bottom-0 left-0 z-[300] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));zr.displayName=Y.Viewport.displayName;var Kd=Zd("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),Er=Xt.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>Mn(Y.Root,{ref:r,className:i(Kd({variant:o}),e),...a,children:[Mn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&Ct(Ud,{className:"h-5 w-5 text-green-500"}),o==="warning"&&Ct(qd,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&Ct(Xd,{className:"h-5 w-5 text-red-500"})]}),t]}));Er.displayName=Y.Root.displayName;var An=Xt.forwardRef(({className:e,...o},t)=>Ct(Y.Action,{ref:t,className:i("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));An.displayName=Y.Action.displayName;var Hr=Xt.forwardRef(({className:e,...o},t)=>Ct(Y.Close,{ref:t,className:i("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:Ct(Yd,{className:"h-5 w-5"})}));Hr.displayName=Y.Close.displayName;var Fr=Xt.forwardRef(({className:e,...o},t)=>Ct(Y.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));Fr.displayName=Y.Title.displayName;var _r=Xt.forwardRef(({className:e,...o},t)=>Ct(Y.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));_r.displayName=Y.Description.displayName;import{jsx as La,jsxs as Br}from"react/jsx-runtime";function Jd(){let{toasts:e}=Lr();return Br(In,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return Br(Er,{...n,children:[Br("div",{className:"grid gap-2",children:[t&&La(Fr,{children:t}),a&&La(_r,{children:a})]}),r,La(Hr,{})]},o)}),La(zr,{})]})}import*as Or from"react";import*as ze from"@radix-ui/react-tooltip";import{jsx as En}from"react/jsx-runtime";var ep=ze.Provider,tp=ze.Root,op=ze.Trigger,Ln=Or.forwardRef((e,o)=>En(ze.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));Ln.displayName=ze.Arrow.displayName;var zn=Or.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>En(ze.Content,{ref:r,sideOffset:t,className:i("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));zn.displayName=ze.Content.displayName;import{forwardRef as ap,useEffect as rp,useRef as ip,useState as np}from"react";import{QuestionMarkCircleIcon as sp,XCircleIcon as lp,XCircleIcon as mp}from"@heroicons/react/16/solid";import{jsx as It,jsxs as Vr}from"react/jsx-runtime";var cp=ap(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:c,onClickClear:d,value:p,defaultValue:g,type:v="text",...T},D)=>{let[I,H]=np(!1),G=ip(null),A=$=>{$&&!I&&H(!0),!$&&I&&H(!1)},Gt=$=>{s&&A($.target.value),m?.($)},N=$=>{s&&A($.target.value),c?.($)},re=()=>{let $=G.current?.querySelector("input");$&&(d?.($.value),$.value="",$.focus(),H(!1))};return rp(()=>{A(g||p)},[p,g]),Vr("div",{className:i(r,o&&"mobase-text-input-error"),ref:G,children:[Vr("div",{className:"relative",children:[a&&It("span",{className:i("mobase-text-input-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),It("input",{disabled:e,type:v,ref:D,className:i("mobase-text-input-box block h-11 w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",l===2&&"h-12 text-base",n),onChange:Gt,onFocus:N,value:p,defaultValue:g,...T}),s&&I&&It("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 shrink-0 -translate-y-1/2 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:re,children:It(lp,{strokeWidth:2,width:20,height:20})})]}),t&&Vr("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?It(mp,{width:16,height:16,className:"text-red-500"}):It(sp,{width:16,height:16,className:"text-gray-500"}),It("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),It("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 Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
117
117
|
color: rgb(var(--mobase-red-500) / 1);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`})]})});import{MinusCircleIcon as op,PlusCircleIcon as ap}from"@heroicons/react/24/outline";import{forwardRef as ip,useState as rp}from"react";import{jsx as qo,jsxs as Fi}from"react/jsx-runtime";var kn=ip(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[p,g]=rp(i),v=()=>{let I=Math.min(p+a,t);g(I),n?.(I),l?.(I)},C=()=>{let I=Math.max(p-a,o);g(I),n?.(I),s?.(I)},M=I=>{let z=parseFloat(I.target.value);if(!isNaN(z)){let $=Math.max(Math.min(z,t),o);g($),n?.($)}};return Fi("div",{ref:d,className:r("flex items-center ",e),children:[Fi(ne,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:C,disabled:m||p<=o,children:[qo(op,{className:"w-7 h-7 "}),qo("span",{className:"sr-only",children:"Decrease value"})]}),qo("input",{type:"number",value:p,onChange:M,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:m,...c}),Fi(ne,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:v,disabled:m||p>=t,children:[qo(ap,{className:"w-7 h-7 "}),qo("span",{className:"sr-only",children:"Increase value"})]})]})});kn.displayName="Stepper";import*as We from"react";import*as j from"@radix-ui/react-navigation-menu";import{cva as np}from"class-variance-authority";import{ChevronDownIcon as sp}from"@heroicons/react/16/solid";import{jsx as ot,jsxs as pp}from"react/jsx-runtime";var Sn=We.createContext(null),lp=({value:e,children:o})=>ot(Sn.Provider,{value:e,children:o}),mp=()=>{let e=We.useContext(Sn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Da=We.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>ot(lp,{value:{alignDropdown:t},children:ot(j.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Da.displayName=j.Root.displayName;var Ma=We.forwardRef(({className:e,...o},t)=>ot(j.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ma.displayName=j.List.displayName;var Ia=j.Item,Aa=np(Ue({variant:"transparent",size:"sm"})),La=We.forwardRef(({className:e,children:o,...t},a)=>pp(j.Trigger,{ref:a,className:r(Aa(),"group px-2",e),...t,children:[o," ",ot(sp,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));La.displayName=j.Trigger.displayName;var Ea=We.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=mp();return ot(j.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Ea.displayName=j.Content.displayName;var Xo=j.Link,cp=We.forwardRef(({className:e,...o},t)=>ot("div",{className:r("absolute left-0 top-full flex justify-center"),children:ot(j.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})}));cp.displayName=j.Viewport.displayName;var dp=We.forwardRef(({className:e,...o},t)=>ot(j.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:ot("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));dp.displayName=j.Indicator.displayName;import*as Mn from"react";import*as Yo from"@radix-ui/react-switch";import{jsx as Dn}from"react/jsx-runtime";var In=Mn.forwardRef(({className:e,...o},t)=>Dn(Yo.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:Dn(Yo.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")})}));In.displayName=Yo.Root.displayName;import*as qt from"react";import*as It from"@radix-ui/react-radio-group";import{Circle as fp}from"lucide-react";import{cva as An}from"class-variance-authority";import{jsx as Zo}from"react/jsx-runtime";var gp=An("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"}}),up=An("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Ln=qt.createContext({size:"medium"});function vp(){let e=qt.useContext(Ln);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var En=qt.forwardRef(({className:e,size:o,...t},a)=>Zo(Ln.Provider,{value:{size:o},children:Zo(It.Root,{className:r("grid gap-2",e),...t,ref:a})}));En.displayName=It.Root.displayName;var Hn=qt.forwardRef(({className:e,...o},t)=>{let a=vp(),{size:i}=a??{};return Zo(It.Item,{ref:t,className:r(gp({size:i}),e),...o,children:Zo(It.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Zo(fp,{className:r(up({size:i}))})})})});Hn.displayName=It.Item.displayName;import{useState as Ap}from"react";import{ArrowDownTrayIcon as Lp}from"@heroicons/react/16/solid";import Ep from"html-react-parser";import{useEffect as Np,useState as Bn}from"react";import On from"next/router";import{AnimatePresence as Pp,domAnimation as Cp,LazyMotion as Rp,motion as _i}from"motion/react";import{useKey as Tp}from"react-use";var Ha=[.24,.25,.05,1];import{motion as hp}from"motion/react";import{jsx as Ko,jsxs as zn}from"react/jsx-runtime";var xp=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Ko("li",{className:"min-h-8",children:zn("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&Ko("div",{className:"w-6 h-6 shrink-0",children:Ko("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),zn("div",{className:" ",children:[Ko("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&Ko("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Fn=xp;import{jsx as Xt,jsxs as wp}from"react/jsx-runtime";var bp={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Ha}},exit:{opacity:0,transition:{duration:.05}}},yp=({data:e})=>Xt(ct,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return Xt(hp.div,{variants:bp,children:o.hasDropdown?wp(dt,{value:o.id,children:[Xt(pt,{className:"py-3",children:o.title}),Xt(ft,{children:Xt("ul",{className:r("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>Xt(Fn,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):Xt("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),_n=yp;import{jsx as S,jsxs as fe}from"react/jsx-runtime";var kp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Sp=({data:e,className:o})=>{let[t,a]=Bn(!1),[i,n]=Bn(!1);Tp("Escape",()=>a(!1)),Np(()=>{if(!t)return;let m=kp();function c(){a(!1)}function d(){a(!1),n(!0)}function p(g){let v=g.target;v.tagName==="A"&&v.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",On.events.on("routeChangeComplete",c),window.addEventListener("hashchange",d),window.addEventListener("click",p),()=>{i||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),On.events.off("routeChangeComplete",c),window.removeEventListener("hashchange",d),window.removeEventListener("click",p)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Ha}},exit:{opacity:0,transition:{duration:.15}}};return fe("div",{className:r(o),children:[fe("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[S("span",{className:"sr-only",children:"Navigation"}),S(_i.div,{animate:t?"hidden":"visible",variants:s,children:S("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:S("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),S(_i.div,{animate:t?"visible":"hidden",variants:s,children:S("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:S("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),S(Rp,{features:Cp,children:S(Pp,{mode:"wait",children:t&&fe(_i.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[S(_n,{data:e}),fe("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[S("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),fe("div",{className:"flex flex-nowrap",children:[S("div",{className:"flex-initial",children:S("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:S("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),S("div",{className:"ml-3 flex-initial",children:S("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:S("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),S("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),fe("ul",{className:"mb-2 text-sm text-gray-500",children:[fe("li",{className:"mb-1",children:["Hotline :\xA0",S("a",{href:`tel:${mt.Support.Hotline}`,className:"text-gray-600",children:mt.Support.Hotline_Format})]}),fe("li",{className:"mb-1",children:["Email :\xA0",S("a",{href:`mailto:${mt.Support.Email}`,className:"text-gray-600",children:mt.Support.Email})]})]}),S("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:fe("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:[S("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:S("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:fe("g",{children:[S("title",{children:"Asset 1"}),S("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 dp,PlusCircleIcon as pp}from"@heroicons/react/24/outline";import{forwardRef as fp,useState as gp}from"react";import{jsx as ta,jsxs as Wr}from"react/jsx-runtime";var Hn=fp(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[p,g]=gp(r),v=()=>{let I=Math.min(p+a,t);g(I),n?.(I),l?.(I)},T=()=>{let I=Math.max(p-a,o);g(I),n?.(I),s?.(I)},D=I=>{let H=parseFloat(I.target.value);if(!isNaN(H)){let G=Math.max(Math.min(H,t),o);g(G),n?.(G)}};return Wr("div",{ref:d,className:i("flex items-center ",e),children:[Wr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:T,disabled:m||p<=o,children:[ta(dp,{className:"w-7 h-7 "}),ta("span",{className:"sr-only",children:"Decrease value"})]}),ta("input",{type:"number",value:p,onChange:D,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:m,...c}),Wr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:v,disabled:m||p>=t,children:[ta(pp,{className:"w-7 h-7 "}),ta("span",{className:"sr-only",children:"Increase value"})]})]})});Hn.displayName="Stepper";import*as We from"react";import*as j from"@radix-ui/react-navigation-menu";import{cva as up}from"class-variance-authority";import{ChevronDownIcon as vp}from"@heroicons/react/16/solid";import{jsx as at,jsxs as wp}from"react/jsx-runtime";var Fn=We.createContext(null),xp=({value:e,children:o})=>at(Fn.Provider,{value:e,children:o}),hp=()=>{let e=We.useContext(Fn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},za=We.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>at(xp,{value:{alignDropdown:t},children:at(j.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));za.displayName=j.Root.displayName;var Ea=We.forwardRef(({className:e,...o},t)=>at(j.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ea.displayName=j.List.displayName;var Ha=j.Item,Fa=up(qe({variant:"transparent",size:"sm"})),_a=We.forwardRef(({className:e,children:o,...t},a)=>wp(j.Trigger,{ref:a,className:i(Fa(),"group px-2",e),...t,children:[o," ",at(vp,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));_a.displayName=j.Trigger.displayName;var Ba=We.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=hp();return at(j.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Ba.displayName=j.Content.displayName;var oa=j.Link,bp=We.forwardRef(({className:e,...o},t)=>at("div",{className:i("absolute left-0 top-full flex justify-center"),children:at(j.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));bp.displayName=j.Viewport.displayName;var yp=We.forwardRef(({className:e,...o},t)=>at(j.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:at("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));yp.displayName=j.Indicator.displayName;import*as Bn from"react";import*as aa from"@radix-ui/react-switch";import{jsx as _n}from"react/jsx-runtime";var On=Bn.forwardRef(({className:e,...o},t)=>_n(aa.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:_n(aa.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));On.displayName=aa.Root.displayName;import*as Yt from"react";import*as At from"@radix-ui/react-radio-group";import{Circle as Np}from"lucide-react";import{cva as Vn}from"class-variance-authority";import{jsx as ra}from"react/jsx-runtime";var Pp=Vn("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"}}),Cp=Vn("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Wn=Yt.createContext({size:"medium"});function Rp(){let e=Yt.useContext(Wn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Gn=Yt.forwardRef(({className:e,size:o,...t},a)=>ra(Wn.Provider,{value:{size:o},children:ra(At.Root,{className:i("grid gap-2",e),...t,ref:a})}));Gn.displayName=At.Root.displayName;var $n=Yt.forwardRef(({className:e,...o},t)=>{let a=Rp(),{size:r}=a??{};return ra(At.Item,{ref:t,className:i(Pp({size:r}),e),...o,children:ra(At.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:ra(Np,{className:i(Cp({size:r}))})})})});$n.displayName=At.Item.displayName;import{useState as Vp}from"react";import{ArrowDownTrayIcon as Wp}from"@heroicons/react/16/solid";import Gp from"html-react-parser";import{useEffect as Ip,useState as qn}from"react";import Xn from"next/router";import{AnimatePresence as Ap,domAnimation as Lp,LazyMotion as zp,motion as Gr}from"motion/react";import{useKey as Ep}from"react-use";var Oa=[.24,.25,.05,1];import{motion as kp}from"motion/react";import{jsx as ia,jsxs as jn}from"react/jsx-runtime";var Tp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return ia("li",{className:"min-h-8",children:jn("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&ia("div",{className:"w-6 h-6 shrink-0",children:ia("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),jn("div",{className:" ",children:[ia("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&ia("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Qn=Tp;import{jsx as Zt,jsxs as Mp}from"react/jsx-runtime";var Sp={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Oa}},exit:{opacity:0,transition:{duration:.05}}},Dp=({data:e})=>Zt(dt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return Zt(kp.div,{variants:Sp,children:o.hasDropdown?Mp(pt,{value:o.id,children:[Zt(ft,{className:"py-3",children:o.title}),Zt(gt,{children:Zt("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>Zt(Qn,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):Zt("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),Un=Dp;import{jsx as S,jsxs as ue}from"react/jsx-runtime";var Hp=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Fp=({data:e,className:o})=>{let[t,a]=qn(!1),[r,n]=qn(!1);Ep("Escape",()=>a(!1)),Ip(()=>{if(!t)return;let m=Hp();function c(){a(!1)}function d(){a(!1),n(!0)}function p(g){let v=g.target;v.tagName==="A"&&v.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",Xn.events.on("routeChangeComplete",c),window.addEventListener("hashchange",d),window.addEventListener("click",p),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),Xn.events.off("routeChangeComplete",c),window.removeEventListener("hashchange",d),window.removeEventListener("click",p)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Oa}},exit:{opacity:0,transition:{duration:.15}}};return ue("div",{className:i(o),children:[ue("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[S("span",{className:"sr-only",children:"Navigation"}),S(Gr.div,{animate:t?"hidden":"visible",variants:s,children:S("svg",{className:i("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:S("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),S(Gr.div,{animate:t?"visible":"hidden",variants:s,children:S("svg",{className:i("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:S("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),S(zp,{features:Lp,children:S(Ap,{mode:"wait",children:t&&ue(Gr.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[S(Un,{data:e}),ue("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[S("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),ue("div",{className:"flex flex-nowrap",children:[S("div",{className:"flex-initial",children:S("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:S("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),S("div",{className:"ml-3 flex-initial",children:S("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:S("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),S("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),ue("ul",{className:"mb-2 text-sm text-gray-500",children:[ue("li",{className:"mb-1",children:["Hotline :\xA0",S("a",{href:`tel:${ct.Support.Hotline}`,className:"text-gray-600",children:ct.Support.Hotline_Format})]}),ue("li",{className:"mb-1",children:["Email :\xA0",S("a",{href:`mailto:${ct.Support.Email}`,className:"text-gray-600",children:ct.Support.Email})]})]}),S("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:ue("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:[S("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:S("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:ue("g",{children:[S("title",{children:"Asset 1"}),S("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
121
121
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
122
122
|
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),S("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`})]})})}),S("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),S("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),S("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),
|
|
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`})]})})}),S("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),S("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),S("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),ue("ul",{className:"mb-2 text-sm text-gray-500",children:[ue("li",{className:"mb-1",children:["Hotline :\xA0",S("a",{className:"text-gray-600",href:`tel:${ct.Business.Phome}`,children:ct.Business.Phome_Format})]}),ue("li",{className:"mb-1",children:["Email :\xA0",ue("a",{href:`mailto:${ct.Business.Email}`,className:"text-gray-600",children:[" ",ct.Business.Email]})]})]}),S("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:ue("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:[S("div",{className:"absolute left-1 top-1 ",children:S("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),S("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),S("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},Yn=Fp;import{jsx as To,jsxs as Zn}from"react/jsx-runtime";var _p=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return To("li",{className:"",children:To(oa,{asChild:!0,children:Zn("a",{className:i(" 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:r,...s,children:[o&&To("div",{className:"w-7 h-7 shrink-0 mt-1",children:To("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),Zn("div",{className:" ",children:[To("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&To("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Kn=_p;import{jsx as Lt,jsxs as Op}from"react/jsx-runtime";var Bp=({data:e,alignDropdown:o})=>Lt(za,{alignDropdown:o,children:Lt(Ea,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Op(Ha,{className:"relative",children:[Lt(_a,{children:t.title}),Lt(Ba,{children:Lt("ul",{className:i("grid w-[300px] grid-cols-1 p-2",t.dropDownCompact===!1&&"w-[230px]",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(r=>Lt(Kn,{title:r.title,href:r.url,newTab:r.newTab,icon:t.dropDownCompact===!0?r.icon:"",children:t.dropDownCompact===!0?r.description:""},r.title))})})]},t.id):Lt(Ha,{className:"relative",children:Lt(oa,{href:t.url,className:Fa(),...a,children:t.title})},t.id)})})}),Jn=Bp;import{jsx as Ge,jsxs as Kt}from"react/jsx-runtime";var es=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:r,isSticky:n=!0,alignDropdown:s="left",isLogoVisible:l=!0})=>{let{logo:m,name:c,url:d}=t||{},[p,g]=Vp(!1);return Kt("div",{className:i(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[Ge("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Ge("nav",{className:i("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0 "),style:{minHeight:"var(--header-height-mobase)"},children:Kt("div",{className:"relative flex items-center ",children:[l&&Kt("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[Ge("span",{className:"sr-only",children:"MoMo home page"}),Ge("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&Kt("a",{href:d,title:c,className:i("relative flex flex-none items-center space-x-1 rounded-none hover:opacity-80",l&&"pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-['']"),children:[Ge("img",{src:m,className:"h-9 w-9",alt:"MoMo"}),Ge("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&Gp(c)})]}),Ge("div",{className:i("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!r&&!a&&" lg:ml-auto xl:ml-auto"),children:Ge(Jn,{data:o,alignDropdown:s})}),Kt("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&" lg:ml-0"),children:[r&&r,a&&Kt("div",{className:" hidden sm:flex",children:[Kt(Me,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",Ge(Wp,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Ge(jt,{open:p,onOpenChange:()=>g(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Ge(Yn,{data:o,className:"lg:hidden "})]})]})})]})};es.displayName="HeaderNavigation";import{useState as $p}from"react";import{Fragment as Qp,jsx as u,jsxs as P}from"react/jsx-runtime";var ts=({item:e})=>u("div",{className:"mt-3 flex w-full text-sm",children:P("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&&u("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:u("img",{src:e.icon,className:"absolute inset-0"})}),u("span",{className:"block ",children:e.title})]})}),jp=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=$p(null);return P(Qp,{children:[u("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:P("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:[P("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>u(ts,{item:r},n))]}),P("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),u("div",{className:"flex flex-wrap",children:o?.lists?.map((r,n)=>u(ts,{item:r},n))})]}),P("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[P("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),P("div",{className:"mt-2 text-sm md:mt-3",children:[u("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),u("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:Si.Address})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ce.Support.Hotline}`,children:ce.Support.Hotline_Format}),P("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${ce.Support.Email}`,children:ce.Support.Email})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ce.Support.Phone_Ext_1}`,children:ce.Support.Phone_Ext_1_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ce.Support.Phone_Ext_2}`,children:ce.Support.Phone_Ext_2_Format}),u("span",{className:"text-white text-opacity-60",children:" - "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ce.Support.Phone_Ext_3}`,children:ce.Support.Phone_Ext_3_Format}),u("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),u("div",{className:"mt-3 flex",children:u("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:P("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[u("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:u("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:P("g",{children:[u("title",{children:"Asset 1"}),u("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
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`}),u("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
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`})]})})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),u("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),R("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),R("div",{className:"mt-2 text-sm md:mt-3",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ce.Business.Phome}`,children:ce.Business.Phome_Format})]}),R("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${ce.Business.Email}`,children:ce.Business.Email})]}),R("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Website : "}),u("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"})]}),u("div",{className:"mt-3 flex",children:u("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:R("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[u("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:R("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"})]})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),u("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),R("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:[R("div",{className:"h-auto",children:[u("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"}),u("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Mo&&Mo.map((i,n)=>u("li",{className:"inline-block",children:u("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:u("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),R("div",{className:"h-auto",children:[u("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"}),R("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[u("div",{className:"relative hidden h-24 w-24 grow-0 overflow-hidden rounded-sm bg-white md:block lg:h-20 lg:w-20",children:u("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),u("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:oi&&oi.map((i,n)=>R("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[u(Me,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),u("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),u(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))}),u("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Mo&&Mo.map((i,n)=>u("li",{children:u("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:u("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),R("div",{className:"hidden h-auto md:block",children:[u("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),R("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[R("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),u("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:R("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[R("div",{className:" relative ",children:[u("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:" absolute left-0 top-0 mt-0.5 block h-9 w-9",alt:"MoMo"}),R("div",{className:" md:pl-12",children:[u("div",{className:"mb-1 h-10 pl-12 text-sm text-white text-opacity-80 md:h-auto md:pl-0 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),u("div",{className:"text-sm text-white text-opacity-50 lg:leading-normal",children:"Tr\u1EE5 s\u1EDF ch\xEDnh: T\u1EA7ng 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 \u0111\u01B0\u1EDDng Ho\xE0ng V\u0103n Th\xE1i, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),R("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",u("strong",{children:"MoMo"})]}),R("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),R("div",{className:"text-sm text-white text-opacity-50",children:[R("div",{children:["D\u1ECBch v\u1EE5 trung gian thanh to\xE1n do Ng\xE2n h\xE0ng Nh\xE0 n\u01B0\u1EDBc c\u1EA5p ph\xE9p \u0111\u01B0\u1EE3c cung \u1EE9ng th\xF4ng qua\xA0",u("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),R("ul",{className:" mt-0.5 ",children:[u("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),u("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),u("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),R("div",{className:" flex items-center justify-between md:hidden",children:[R("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),u("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`})]})})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),u("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),P("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),P("div",{className:"mt-2 text-sm md:mt-3",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ce.Business.Phome}`,children:ce.Business.Phome_Format})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${ce.Business.Email}`,children:ce.Business.Email})]}),P("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Website : "}),u("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"})]}),u("div",{className:"mt-3 flex",children:u("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:P("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[u("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:P("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"}),u("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"})]})}),u("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),u("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),P("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:[P("div",{className:"h-auto",children:[u("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"}),u("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Fo&&Fo.map((r,n)=>u("li",{className:"inline-block",children:u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:u("img",{src:r.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),P("div",{className:"h-auto",children:[u("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"}),P("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[u("div",{className:"relative hidden h-24 w-24 grow-0 overflow-hidden rounded-sm bg-white md:block lg:h-20 lg:w-20",children:u("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),u("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:sr&&sr.map((r,n)=>P("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${r.Image}) center center / contain no-repeat`},children:[u(Me,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:r.Name}),u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),u(jt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:r.Link})]},n))}),u("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:u("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Fo&&Fo.map((r,n)=>u("li",{children:u("a",{href:r.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:u("img",{alt:r.Name,src:r.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),P("div",{className:"hidden h-auto md:block",children:[u("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),P("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[P("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),u("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:P("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[P("div",{className:" relative ",children:[u("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:" absolute left-0 top-0 mt-0.5 block h-9 w-9",alt:"MoMo"}),P("div",{className:" md:pl-12",children:[u("div",{className:"mb-1 h-10 pl-12 text-sm text-white text-opacity-80 md:h-auto md:pl-0 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),u("div",{className:"text-sm text-white text-opacity-50 lg:leading-normal",children:"Tr\u1EE5 s\u1EDF ch\xEDnh: T\u1EA7ng 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 \u0111\u01B0\u1EDDng Ho\xE0ng V\u0103n Th\xE1i, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),P("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",u("strong",{children:"MoMo"})]}),P("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),P("div",{className:"text-sm text-white text-opacity-50",children:[P("div",{children:["D\u1ECBch v\u1EE5 trung gian thanh to\xE1n do Ng\xE2n h\xE0ng Nh\xE0 n\u01B0\u1EDBc c\u1EA5p ph\xE9p \u0111\u01B0\u1EE3c cung \u1EE9ng th\xF4ng qua\xA0",u("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),P("ul",{className:" mt-0.5 ",children:[u("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),u("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),u("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),P("div",{className:" flex items-center justify-between md:hidden",children:[P("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:u("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),u("style",{children:`
|
|
129
129
|
footer .button-download {
|
|
130
130
|
max-width: 150px;
|
|
131
131
|
}
|
|
132
|
-
`})]})},
|
|
132
|
+
`})]})},os=jp;import{jsx as as}from"react/jsx-runtime";var Up=({className:e,primaryMenu:o,secondaryMenu:t})=>as("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:as(os,{primaryMenu:o,secondaryMenu:t})});import*as Jt from"react";import{jsx as ko}from"react/jsx-runtime";var rs=Jt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));rs.displayName="Card";var is=Jt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));is.displayName="CardHeader";var ns=Jt.forwardRef(({className:e,...o},t)=>ko("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));ns.displayName="CardTitle";var ss=Jt.forwardRef(({className:e,...o},t)=>ko("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));ss.displayName="CardDescription";var ls=Jt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:i("p-6 pt-0",e),...o}));ls.displayName="CardContent";var ms=Jt.forwardRef(({className:e,...o},t)=>ko("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));ms.displayName="CardFooter";import*as Ee from"react";import{Command as ye}from"cmdk";import{XCircleIcon as qp,MagnifyingGlassIcon as Xp}from"@heroicons/react/16/solid";import{jsx as Ce,jsxs as Zp}from"react/jsx-runtime";var $r=Ee.forwardRef(({className:e,...o},t)=>Ce(ye,{ref:t,className:i("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));$r.displayName=ye.displayName;var Yp=({children:e,...o})=>Ce(_e,{...o,children:Ce(Ie,{className:"overflow-hidden p-0 shadow-lg",children:Ce($r,{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})})}),cs=Ee.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=Ee.useRef(null),[s,l]=Ee.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return Zp("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Ce(Xp,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Ce(ye.Input,{ref:r,className:i("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),Ce(qp,{onClick:m,className:i("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});cs.displayName=ye.Input.displayName;var ds=Ee.forwardRef(({className:e,...o},t)=>Ce(ye.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));ds.displayName=ye.List.displayName;var ps=Ee.forwardRef((e,o)=>Ce(ye.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));ps.displayName=ye.Empty.displayName;var fs=Ee.forwardRef(({className:e,...o},t)=>Ce(ye.Group,{ref:t,className:i("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));fs.displayName=ye.Group.displayName;var gs=Ee.forwardRef(({className:e,...o},t)=>Ce(ye.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));gs.displayName=ye.Separator.displayName;var us=Ee.forwardRef(({className:e,children:o,...t},a)=>Ce(ye.Item,{ref:a,className:i("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));us.displayName=ye.Item.displayName;var vs=({className:e,...o})=>Ce("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});vs.displayName="CommandShortcut";import{ChevronDownIcon as Kp}from"@heroicons/react/16/solid";import{jsx as Va,jsxs as xs}from"react/jsx-runtime";var Jp=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>xs("div",{className:"relative",children:[xs(jo,{className:i("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||r,Va(Kp,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&Va("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),ef=({children:e,className:o,...t})=>Va(No,{className:i("border-none !p-0",o),...t,children:e}),tf=({open:e,onOpenChange:o,children:t,...a})=>Va($o,{open:e,onOpenChange:o,...a,children:t});import{cva as bs}from"class-variance-authority";import{forwardRef as of}from"react";import{InformationCircleIcon as af}from"@heroicons/react/24/outline";import{jsx as jr,jsxs as hs}from"react/jsx-runtime";var rf=bs("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"}}),nf=bs("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"}}),na=of(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...m},c)=>hs("div",{ref:c,className:i("",r,rf({typeDiv:e,disabled:n})),...m,children:[hs("div",{className:"flex items-center space-x-2",children:[l||jr(af,{className:i(nf({typeIcon:e,disabled:n})),width:20,height:20}),o&&jr("div",{children:o})]}),t&&jr(pe,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));import{forwardRef as sf,useEffect as lf,useRef as mf,useState as cf}from"react";import{MagnifyingGlassIcon as df}from"@heroicons/react/20/solid";import{XCircleIcon as pf}from"@heroicons/react/24/outline";import{jsx as So,jsxs as ys}from"react/jsx-runtime";var ff=sf(({disabled:e,className:o,inputClassName:t,size:a,onChange:r,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:c="text",...d},p)=>{let[g,v]=cf(!1),T=mf(null),D=A=>{A&&!g&&v(!0),!A&&g&&v(!1)},I=A=>{D(A.target.value),r?.(A)},H=A=>{D(A.target.value),n?.(A)},G=()=>{let A=T.current?.querySelector("input");A&&(s?.(A.value),A.value="",A.focus(),v(!1))};return lf(()=>{D(m||l)},[l,m]),ys("div",{className:i(o),ref:T,children:[ys("div",{className:"relative flex items-center",children:[So("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:So(df,{className:"w-4 h-4 text-gray-500"})}),So("input",{disabled:e,type:c,ref:p,className:i("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:I,onFocus:H,value:l,defaultValue:m,...d}),g&&So("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:G,children:So(pf,{strokeWidth:2,width:20,height:20})})]}),So("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 Re from"@radix-ui/react-dialog";import Ns,{useContext as gf,useEffect as ws,useState as Qr}from"react";import{X as uf}from"lucide-react";import vf from"lodash";import{jsx as ae,jsxs as Rt}from"react/jsx-runtime";var Ps=Ns.createContext(void 0);function Cs(){let e=gf(Ps);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var Ur=({children:e,open:o,onOpenChange:t,className:a})=>ae(Ps.Provider,{value:{open:o,onOpenChange:t},children:ae(Re.Root,{open:o,onOpenChange:t,children:ae("div",{className:i("lightbox-gallery",a),children:e})})}),xf=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=Cs(),m=()=>{n?.(),l&&l(!0)};return Rt(Re.Trigger,{className:i("",a),onClick:m,children:[e,ae(E,{ratio:s,className:"rounded-lg cursor-pointer",children:ae("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},Rs=Ns.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=Cs(),n=()=>{r&&r(!1)};return Rt(Re.Portal,{children:[ae(Re.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),Rt(Re.Content,{ref:a,className:i("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,Rt(Re.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[ae(uf,{className:"h-4 w-4 mt-0.5"}),ae("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Rs.displayName=Re.Content.displayName;var qr=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=Qr(""),[l,m]=Qr(),[c,d]=Qr(0);ws(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=g=>{let v=vf.filter(e,(D,I)=>I===(g>0?g-1:g)),T=v.length>0?v[0]?.titleImage:"";s(T)};return ws(()=>{p(c)},[c]),Rt(Rs,{className:"flex py-0",children:[Rt("div",{className:" flex-1 relative",children:[Rt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),Rt(fe,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ae(ge,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,v)=>ae(se,{className:"pl-6 md:pl-4",children:Rt("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[ae("div",{className:"flex-1 relative",children:ae("img",{src:g.url,alt:"",className:"absolute h-full w-full object-contain"})}),ae("div",{className:"flex-0",children:ae("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:ae("div",{className:"line-clamp-3",children:n})})})]})},v))}),ae(ho,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ae(bo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ae("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};import*as zt from"react";import{CheckIcon as hf}from"@heroicons/react/16/solid";import*as sa from"@radix-ui/react-checkbox";import*as Et from"@radix-ui/react-radio-group";import{Circle as bf}from"lucide-react";import{jsx as rt,jsxs as Ss}from"react/jsx-runtime";var Ts=zt.createContext({hideIndicator:!1});function yf(){let e=zt.useContext(Ts);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Wa=zt.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>rt(Ts.Provider,{value:{hideIndicator:o},children:rt(Et.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Wa.displayName=Et.Root.displayName;var Ga=zt.forwardRef(({className:e,children:o,...t},a)=>{let r=yf(),{hideIndicator:n}=r??{};return Ss(Et.Item,{ref:a,className:i("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[rt("div",{className:"min-w-0 flex-1",children:o}),!n&&rt("div",{className:i("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:rt(Et.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:rt(bf,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Ga.displayName=Et.Item.displayName;var ks=zt.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>Ss(sa.Root,{ref:r,className:i("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[rt("div",{className:"min-w-0 flex-1",children:o}),!t&&rt("div",{className:"ring-offset-background h-4 w-4 shrink-0 rounded border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-300 group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:rt(sa.Indicator,{className:i("flex items-center justify-center text-current"),children:rt(hf,{className:"h-4 w-4"})})})]}));ks.displayName=sa.Root.displayName;import{cva as wf}from"class-variance-authority";import{jsx as Pf}from"react/jsx-runtime";var Ds=wf("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 Nf({className:e,variant:o,...t}){return Pf("div",{className:i(Ds({variant:o}),e),...t})}import*as Is from"react";import*as la from"@radix-ui/react-progress";import{cva as As}from"class-variance-authority";import{jsx as Ms}from"react/jsx-runtime";var Cf=As("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"}}),Rf=As("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"}}),Ls=Is.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>Ms(la.Root,{ref:s,className:i("",Rf({size:a}),e),...n,children:Ms(la.Indicator,{className:i("",Cf({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Ls.displayName=la.Root.displayName;import{jsx as Tf}from"react/jsx-runtime";function $a({className:e,...o}){return Tf("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as kf,jsx as eo,jsxs as zs}from"react/jsx-runtime";function Xr({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let r={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return eo("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return zs("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>eo("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),eo("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 Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
163
163
|
opacity: .2;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
`})]});case"default":default:return
|
|
166
|
+
`})]});case"default":default:return zs(kf,{children:[eo("div",{className:i("spinner_wrapper relative size-5 overflow-hidden",r[e],t),children:eo("div",{className:i("spinner relative left-1/2 top-1/2 size-5 ",r[e],t),children:[...Array(12)].map((l,m)=>eo("div",{className:i(`spinner_bar child-${m+1}`,o)},m))})}),eo("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 Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
243
243
|
opacity: 0.15;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
`})]})}})()})}import*as Ts from"react";import*as it from"@radix-ui/react-slider";import{jsx as Ht,jsxs as bf}from"react/jsx-runtime";var ks=Ts.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>bf(it.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Ht(it.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Ht(it.Range,{className:"absolute h-full bg-pink-500"})}),Ht(it.Thumb,{className:"group relative",children:Ht("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&Ht("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),Ht(it.Thumb,{className:"group relative",children:Ht("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&Ht("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));ks.displayName=it.Root.displayName;import{forwardRef as Ef}from"react";import{Fragment as Pf,jsx as ze,jsxs as Oa}from"react/jsx-runtime";var yf=({author:e=""})=>ze("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),wf=({author:e,avatar:o})=>ze("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?ze("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):ze(yf,{author:e})});function Nf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return ze(Pf,{children:Oa("div",{className:"flex relative items-center space-x-3",children:[ze(wf,{avatar:e,author:o}),Oa("div",{className:"flex flex-col",children:[o&&ze("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Oa("div",{className:"flex items-center space-x-2 text-xs",children:[t&&ze("div",{className:"text-gray-400",children:t}),a&&Oa("div",{className:"flex items-center space-x-2",children:[ze("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),ze("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&ze("div",{className:"absolute right-1 top-0",children:ze("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Ss=Nf;import{useState as Ls}from"react";import{StarIcon as Cf}from"@heroicons/react/20/solid";import{jsx as Ds,jsxs as Ms}from"react/jsx-runtime";var Rf={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!"},Tf={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 kf({point:e,max:o,className:t}){let a=o>5?Rf[e||10]:Tf[e||5];return Ms("div",{className:r("flex items-center space-x-1",t),children:[Ds(Cf,{className:"w-5 h-5 text-yellow-500"}),Ds("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Ms("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Is=kf;import{useState as Sf}from"react";import As from"html-react-parser";import{jsx as Df,jsxs as Mf}from"react/jsx-runtime";var Qi=({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]=Sf(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return Mf("div",{className:r(n),children:[s?As(c(e,o)):As(e),e.length>o&&Df("span",{onClick:m,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as Jt,jsxs as Es}from"react/jsx-runtime";function If({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=Ls(0),[m,c]=Ls(!1),d=p=>{c(!0),l(p)};return Es("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&Jt(Is,{className:"mb-0.5",point:i.point,max:i.max}),e&&Jt(Qi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&Jt("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>Jt("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:p}))}),o?.length>0&&Es(Wi,{open:m,onOpenChange:c,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((p,g)=>Jt(H,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:Jt("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),Jt(Gi,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Hs=If;import{jsx as Lf}from"react/jsx-runtime";function Af({actions:e=[]}){return Lf("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var zs=Af;import{jsx as Va,jsxs as zf}from"react/jsx-runtime";var Hf=Ef(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:p,isOutStanding:g,limitContent:v=260},C)=>zf("div",{ref:C,className:r("",c?"ml-4 py-4":"py-5"),children:[Va(Ss,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),Va(Hs,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&Va(zs,{actions:l.filter(Boolean)}),d&&Va("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:d})]}));import*as zt from"react";import{cva as Ff}from"class-variance-authority";import{CheckIcon as _f}from"@heroicons/react/16/solid";import{XIcon as Bf}from"lucide-react";import{jsx as be,jsxs as Wa}from"react/jsx-runtime";var Of=Ff("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"}}),Fs=zt.createContext("default");function Vf(){let e=zt.useContext(Fs);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Wf=zt.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?be(Bf,{className:s}):Wa("div",{children:[e==="iconStep"&&be("div",{className:s,children:o}),e==="numberStep"&&be("div",{children:t}),e==="default"&&(n==="completed"?be(_f,{className:s}):be("div",{children:t}))]})}),Gf=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=zt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return be("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},$f=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:m,icon:c,isError:d,onValueChangeStep:p,...g})=>{let v=Vf();return Wa("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[Wa("div",{className:"flex w-full items-center justify-center gap-2",children:[be("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),be("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Of({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",i),...g,children:be(Wf,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),be("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Wa("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&&be("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&be("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Qf=({children:e,className:o,type:t="numberStep",...a})=>be(Fs.Provider,{value:t,children:be("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as ye from"react";import{Slot as Xf}from"@radix-ui/react-slot";import{Controller as Yf,FormProvider as Zf,useFormContext as Kf}from"react-hook-form";import*as _s from"react";import*as ji from"@radix-ui/react-label";import{cva as jf}from"class-variance-authority";import{jsx as qf}from"react/jsx-runtime";var Uf=jf("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ga=_s.forwardRef(({className:e,...o},t)=>qf(ji.Root,{ref:t,className:r(Uf(),e),...o}));Ga.displayName=ji.Root.displayName;import{jsx as Ft}from"react/jsx-runtime";var Jf=Zf,Bs=ye.createContext({}),eg=({...e})=>Ft(Bs.Provider,{value:{name:e.name},children:Ft(Yf,{...e})}),oa=()=>{let e=ye.useContext(Bs),o=ye.useContext(Os),{getFieldState:t,formState:a}=Kf(),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}},Os=ye.createContext({}),Vs=ye.forwardRef(({className:e,...o},t)=>{let a=ye.useId();return Ft(Os.Provider,{value:{id:a},children:Ft("div",{ref:t,className:r("space-y-2",e),...o})})});Vs.displayName="FormItem";var Ws=ye.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=oa();return Ft(Ga,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});Ws.displayName="FormLabel";var Gs=ye.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=oa();return Ft(Xf,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});Gs.displayName="FormControl";var $s=ye.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=oa();return Ft("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});$s.displayName="FormDescription";var Qs=ye.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=oa(),s=i?String(i?.message):o;return s?Ft("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});Qs.displayName="FormMessage";import*as Rt from"react";import*as w from"@radix-ui/react-dropdown-menu";import{ChevronRight as tg,Check as og}from"lucide-react";import{jsx as ge,jsxs as aa}from"react/jsx-runtime";var ag=w.Root,ig=w.Trigger,rg=w.Group,ng=w.Portal,sg=w.Sub,lg=w.RadioGroup,js=Rt.forwardRef(({className:e,inset:o,children:t,...a},i)=>aa(w.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,ge(tg,{className:"ml-auto"})]}));js.displayName=w.SubTrigger.displayName;var Us=Rt.forwardRef(({className:e,...o},t)=>ge(w.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}));Us.displayName=w.SubContent.displayName;var qs=Rt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>ge(w.Portal,{children:ge(w.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})}));qs.displayName=w.Content.displayName;var Xs=Rt.forwardRef(({className:e,inset:o,...t},a)=>ge(w.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}));Xs.displayName=w.Item.displayName;var Ys=Rt.forwardRef(({className:e,children:o,checked:t,...a},i)=>aa(w.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:[aa("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&ge("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),ge(w.ItemIndicator,{children:ge("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:ge(og,{size:16,strokeWidth:3})})})]}),o]}));Ys.displayName=w.CheckboxItem.displayName;var Zs=Rt.forwardRef(({className:e,children:o,...t},a)=>aa(w.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:[aa("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[ge("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),ge(w.ItemIndicator,{children:ge("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));Zs.displayName=w.RadioItem.displayName;var Ks=Rt.forwardRef(({className:e,inset:o,...t},a)=>ge(w.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Ks.displayName=w.Label.displayName;var Js=Rt.forwardRef(({className:e,...o},t)=>ge(w.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));Js.displayName=w.Separator.displayName;var el=({className:e,...o})=>ge("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});el.displayName="DropdownMenuShortcut";import $a from"html-react-parser";import{Fragment as Ui,jsx as U,jsxs as eo}from"react/jsx-runtime";var tl=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>eo(Ui,{children:[e&&U(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&U("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>U("div",{className:"basis-full px-3.5 md:basis-1/3",children:eo("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[U("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),eo("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:$a(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:$a(a.description)})]})]})},i))}),t&&U(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),mg=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>eo(Ui,{children:[e&&U(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&U("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>eo("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[eo("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[U("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&U("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:U(H,{ratio:1,children:U("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),eo("div",{className:"mt-6 w-full",children:[U("div",{className:"w-full text-xl font-semibold",children:$a(a.title)}),a?.description&&U("div",{className:"mt-2 text-base text-gray-600",children:$a(a.description)})]})]},i))}),t&&U(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),cg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return U(tl,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return U(mg,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return U(tl,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},dg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>U(Ui,{children:cg({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),pg=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>U(O,{className:t,idSection:a,background:o,children:U(dg,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{cva as fg}from"class-variance-authority";import ol from"html-react-parser";import{CheckIcon as al}from"lucide-react";import{Fragment as qi,jsx as ue,jsxs as il}from"react/jsx-runtime";var gg=fg("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-1 gap-y-3 ",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),ug=({template:e,name:o,image:t,isFeatures:a})=>ue(qi,{children:(()=>{switch(e){case 1:case 2:return ue(qi,{children:il("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?ue("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:ue("img",{src:t,alt:"",className:"max-w-full"})}):ue("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:ue(al,{className:"h-4 w-4 text-pink-500"})}),o&&ue("div",{className:"ml-2 ",children:ol(o)})]})});case 3:return il("li",{className:"flex h-full space-x-4",children:[t?ue("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:ue("img",{src:t,alt:"",className:"max-w-full"})}):ue("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:ue(al,{className:"h-4 w-4 text-pink-500"})}),o&&ue("div",{className:"my-auto ml-2 md:my-0",children:ol(o)})]});default:return null}})()}),Qa=({dataFeatures:e,template:o=1})=>ue(qi,{children:(e?.length??0)>0&&ue("ul",{className:r("",gg({template:o})),children:e?.map((t,a)=>ue(ug,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as vg}from"lucide-react";import{jsx as K,jsxs as ia}from"react/jsx-runtime";var rl=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,xg=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>ia(so,{children:[K(je,{greaterThan:"sm",children:ia(H,{className:r(""),ratio:rl(o),children:[K("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&ia(_e,{children:[K(Lo,{onClick:i,children:K("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:K("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:ia("g",{fill:"none",fillRule:"evenodd",children:[K("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),K("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"})]})})})}),K(Ie,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:ia(qe,{className:"relative bg-transparent p-4 text-center",children:[K("div",{className:"aspect-[16/9] w-full p-0",children:K("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),K(ri,{asChild:!0,children:K(ne,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:K(vg,{className:"h-6 w-6"})})})]})})]})]})}),a&&K(je,{lessThan:"md",children:K("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:K("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"})})})]}),ja=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>K("div",{className:a,children:n?K(xg,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):K(H,{ratio:rl(t),children:K("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});import hg from"html-react-parser";import{Fragment as yg,jsx as Ua,jsxs as Xi}from"react/jsx-runtime";var bg=({value:e,suffix:o,unit:t,description:a,idx:i})=>Xi("div",{className:r(""),children:[e&&Xi("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Xi("span",{children:[o," ",t]})]}),a&&Ua("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:hg(a)})]}),qa=({dataStats:e})=>Ua(yg,{children:(e?.length??0)>0&&Ua("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>Ua(bg,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as nl,jsx as J,jsxs as ra}from"react/jsx-runtime";var Yi=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ra("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[ra("div",{className:"col-span-1 ",children:[J(h,{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)}),J(Qa,{dataFeatures:t,template:a}),o&&J(b,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),J(qa,{dataStats:i})]}),J("div",{className:"col-span-1 md:pl-10",children:s||J(ja,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),sl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ra("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[J("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||J(ja,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),ra("div",{className:"order-1 col-span-1 md:order-2",children:[J(h,{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)}),J(Qa,{dataFeatures:t,template:a}),o&&J("div",{className:"flex w-full items-center justify-center md:justify-start",children:J(b,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),J(qa,{dataStats:i})]})]}),ll=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ra(nl,{children:[J(h,{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&&J(b,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),J(Qa,{dataFeatures:t,template:a}),J("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:J(qa,{dataStats:i})}),s||J(nl,{children:n?.src&&J(ja,{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 Rg,jsx as to}from"react/jsx-runtime";var wg=`var(
|
|
246
|
+
`})]})}})()})}import*as Es from"react";import*as it from"@radix-ui/react-slider";import{jsx as Ht,jsxs as Sf}from"react/jsx-runtime";var Hs=Es.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>Sf(it.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Ht(it.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Ht(it.Range,{className:"absolute h-full bg-pink-500"})}),Ht(it.Thumb,{className:"group relative",children:Ht("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&Ht("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),Ht(it.Thumb,{className:"group relative",children:Ht("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&Ht("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));Hs.displayName=it.Root.displayName;import{forwardRef as Gf}from"react";import{Fragment as Af,jsx as He,jsxs as ja}from"react/jsx-runtime";var Df=({author:e=""})=>He("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Mf=({author:e,avatar:o})=>He("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?He("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):He(Df,{author:e})});function If({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return He(Af,{children:ja("div",{className:"flex relative items-center space-x-3",children:[He(Mf,{avatar:e,author:o}),ja("div",{className:"flex flex-col",children:[o&&He("div",{className:"font-semibold text-gray-900 text-sm",children:o}),ja("div",{className:"flex items-center space-x-2 text-xs",children:[t&&He("div",{className:"text-gray-400",children:t}),a&&ja("div",{className:"flex items-center space-x-2",children:[He("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),He("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&He("div",{className:"absolute right-1 top-0",children:He("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Fs=If;import{useState as Ws}from"react";import{StarIcon as Lf}from"@heroicons/react/20/solid";import{jsx as _s,jsxs as Bs}from"react/jsx-runtime";var zf={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!"},Ef={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 Hf({point:e,max:o,className:t}){let a=o>5?zf[e||10]:Ef[e||5];return Bs("div",{className:i("flex items-center space-x-1",t),children:[_s(Lf,{className:"w-5 h-5 text-yellow-500"}),_s("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Bs("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Os=Hf;import{useState as Ff}from"react";import Vs from"html-react-parser";import{jsx as _f,jsxs as Bf}from"react/jsx-runtime";var Yr=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,l]=Ff(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return Bf("div",{className:i(n),children:[s?Vs(c(e,o)):Vs(e),e.length>o&&_f("span",{onClick:m,className:i("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",r),children:s?t:a})]})};import{jsx as to,jsxs as Gs}from"react/jsx-runtime";function Of({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=Ws(0),[m,c]=Ws(!1),d=p=>{c(!0),l(p)};return Gs("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&to(Os,{className:"mb-0.5",point:r.point,max:r.max}),e&&to(Yr,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&to("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>to("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:p}))}),o?.length>0&&Gs(Ur,{open:m,onOpenChange:c,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((p,g)=>to(E,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:to("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),to(qr,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var $s=Of;import{jsx as Wf}from"react/jsx-runtime";function Vf({actions:e=[]}){return Wf("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var js=Vf;import{jsx as Qa,jsxs as jf}from"react/jsx-runtime";var $f=Gf(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:c,children:d,commentSideBar:p,isOutStanding:g,limitContent:v=260},T)=>jf("div",{ref:T,className:i("",c?"ml-4 py-4":"py-5"),children:[Qa(Fs,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),Qa($s,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&Qa(js,{actions:l.filter(Boolean)}),d&&Qa("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:d})]}));import*as Ft from"react";import{cva as Qf}from"class-variance-authority";import{CheckIcon as Uf}from"@heroicons/react/16/solid";import{XIcon as qf}from"lucide-react";import{jsx as we,jsxs as Ua}from"react/jsx-runtime";var Xf=Qf("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"}}),Qs=Ft.createContext("default");function Yf(){let e=Ft.useContext(Qs);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Zf=Ft.memo(({type:e,icon:o,stepNumber:t,size:a,isError:r,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return r?we(qf,{className:s}):Ua("div",{children:[e==="iconStep"&&we("div",{className:s,children:o}),e==="numberStep"&&we("div",{children:t}),e==="default"&&(n==="completed"?we(Uf,{className:s}):we("div",{children:t}))]})}),Kf=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=Ft.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return we("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Jf=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:l,fristStep:m,icon:c,isError:d,onValueChangeStep:p,...g})=>{let v=Yf();return Ua("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[Ua("div",{className:"flex w-full items-center justify-center gap-2",children:[we("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),we("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",Xf({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...g,children:we(Zf,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),we("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Ua("div",{className:i("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&we("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&we("div",{className:"text-xs text-gray-500 ",children:s})]})]})},eg=({children:e,className:o,type:t="numberStep",...a})=>we(Qs.Provider,{value:t,children:we("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as Ne from"react";import{Slot as rg}from"@radix-ui/react-slot";import{Controller as ig,FormProvider as ng,useFormContext as sg}from"react-hook-form";import*as Us from"react";import*as Zr from"@radix-ui/react-label";import{cva as tg}from"class-variance-authority";import{jsx as ag}from"react/jsx-runtime";var og=tg("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),qa=Us.forwardRef(({className:e,...o},t)=>ag(Zr.Root,{ref:t,className:i(og(),e),...o}));qa.displayName=Zr.Root.displayName;import{jsx as _t}from"react/jsx-runtime";var lg=ng,qs=Ne.createContext({}),mg=({...e})=>_t(qs.Provider,{value:{name:e.name},children:_t(ig,{...e})}),ma=()=>{let e=Ne.useContext(qs),o=Ne.useContext(Xs),{getFieldState:t,formState:a}=sg(),r=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...r}},Xs=Ne.createContext({}),Ys=Ne.forwardRef(({className:e,...o},t)=>{let a=Ne.useId();return _t(Xs.Provider,{value:{id:a},children:_t("div",{ref:t,className:i("space-y-2",e),...o})})});Ys.displayName="FormItem";var Zs=Ne.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=ma();return _t(qa,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});Zs.displayName="FormLabel";var Ks=Ne.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=ma();return _t(rg,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});Ks.displayName="FormControl";var Js=Ne.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=ma();return _t("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});Js.displayName="FormDescription";var el=Ne.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=ma(),s=r?String(r?.message):o;return s?_t("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});el.displayName="FormMessage";import*as Tt from"react";import*as w from"@radix-ui/react-dropdown-menu";import{ChevronRight as cg,Check as dg}from"lucide-react";import{jsx as ve,jsxs as ca}from"react/jsx-runtime";var pg=w.Root,fg=w.Trigger,gg=w.Group,ug=w.Portal,vg=w.Sub,xg=w.RadioGroup,tl=Tt.forwardRef(({className:e,inset:o,children:t,...a},r)=>ca(w.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,ve(cg,{className:"ml-auto"})]}));tl.displayName=w.SubTrigger.displayName;var ol=Tt.forwardRef(({className:e,...o},t)=>ve(w.SubContent,{ref:t,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));ol.displayName=w.SubContent.displayName;var al=Tt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>ve(w.Portal,{children:ve(w.Content,{ref:a,sideOffset:o,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));al.displayName=w.Content.displayName;var rl=Tt.forwardRef(({className:e,inset:o,...t},a)=>ve(w.Item,{ref:a,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));rl.displayName=w.Item.displayName;var il=Tt.forwardRef(({className:e,children:o,checked:t,...a},r)=>ca(w.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[ca("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&ve("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),ve(w.ItemIndicator,{children:ve("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:ve(dg,{size:16,strokeWidth:3})})})]}),o]}));il.displayName=w.CheckboxItem.displayName;var nl=Tt.forwardRef(({className:e,children:o,...t},a)=>ca(w.RadioItem,{ref:a,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[ca("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[ve("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),ve(w.ItemIndicator,{children:ve("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));nl.displayName=w.RadioItem.displayName;var sl=Tt.forwardRef(({className:e,inset:o,...t},a)=>ve(w.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));sl.displayName=w.Label.displayName;var ll=Tt.forwardRef(({className:e,...o},t)=>ve(w.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));ll.displayName=w.Separator.displayName;var ml=({className:e,...o})=>ve("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});ml.displayName="DropdownMenuShortcut";import Xa from"html-react-parser";import{Fragment as Kr,jsx as Q,jsxs as oo}from"react/jsx-runtime";var cl=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>oo(Kr,{children:[e&&Q(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&Q("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>Q("div",{className:"basis-full px-3.5 md:basis-1/3",children:oo("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:[Q("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:r+1}),oo("div",{className:"mt-6 w-full",children:[Q("div",{className:"w-full text-xl font-semibold",children:Xa(a.title)}),a?.description&&Q("div",{className:"mt-2 text-base text-gray-600",children:Xa(a.description)})]})]})},r))}),t&&Q(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),hg=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>oo(Kr,{children:[e&&Q(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&Q("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>oo("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[oo("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[Q("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:r+1}),a?.image&&Q("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:Q(E,{ratio:1,children:Q("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),oo("div",{className:"mt-6 w-full",children:[Q("div",{className:"w-full text-xl font-semibold",children:Xa(a.title)}),a?.description&&Q("div",{className:"mt-2 text-base text-gray-600",children:Xa(a.description)})]})]},r))}),t&&Q(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),bg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return Q(cl,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return Q(hg,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return Q(cl,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},yg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>Q(Kr,{children:bg({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),wg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>Q(B,{className:t,idSection:a,background:o,children:Q(yg,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as Ng}from"class-variance-authority";import dl from"html-react-parser";import{CheckIcon as pl}from"lucide-react";import{Fragment as Jr,jsx as xe,jsxs as fl}from"react/jsx-runtime";var Pg=Ng("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-1 gap-y-3 ",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),Cg=({template:e,name:o,image:t,isFeatures:a})=>xe(Jr,{children:(()=>{switch(e){case 1:case 2:return xe(Jr,{children:fl("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?xe("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:xe("img",{src:t,alt:"",className:"max-w-full"})}):xe("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:xe(pl,{className:"h-4 w-4 text-pink-500"})}),o&&xe("div",{className:"ml-2 ",children:dl(o)})]})});case 3:return fl("li",{className:"flex h-full space-x-4",children:[t?xe("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:xe("img",{src:t,alt:"",className:"max-w-full"})}):xe("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:xe(pl,{className:"h-4 w-4 text-pink-500"})}),o&&xe("div",{className:"my-auto ml-2 md:my-0",children:dl(o)})]});default:return null}})()}),Ya=({dataFeatures:e,template:o=1})=>xe(Jr,{children:(e?.length??0)>0&&xe("ul",{className:i("",Pg({template:o})),children:e?.map((t,a)=>xe(Cg,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as Rg}from"lucide-react";import{jsx as Z,jsxs as da}from"react/jsx-runtime";var gl=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Tg=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>da(co,{children:[Z(Ue,{greaterThan:"sm",children:da(E,{className:i(""),ratio:gl(o),children:[Z("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&da(_e,{children:[Z(Oo,{onClick:r,children:Z("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:Z("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:da("g",{fill:"none",fillRule:"evenodd",children:[Z("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),Z("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),Z(Ie,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:da(Xe,{className:"relative bg-transparent p-4 text-center",children:[Z("div",{className:"aspect-[16/9] w-full p-0",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),Z(cr,{asChild:!0,children:Z(ie,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:Z(Rg,{className:"h-6 w-6"})})})]})})]})]})}),a&&Z(Ue,{lessThan:"md",children:Z("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:Z("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),Za=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>Z("div",{className:a,children:n?Z(Tg,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):Z(E,{ratio:gl(t),children:Z("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});import kg from"html-react-parser";import{Fragment as Dg,jsx as Ka,jsxs as ei}from"react/jsx-runtime";var Sg=({value:e,suffix:o,unit:t,description:a,idx:r})=>ei("div",{className:i(""),children:[e&&ei("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&ei("span",{children:[o," ",t]})]}),a&&Ka("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:kg(a)})]}),Ja=({dataStats:e})=>Ka(Dg,{children:(e?.length??0)>0&&Ka("ul",{className:i("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>Ka(Sg,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as ul,jsx as K,jsxs as pa}from"react/jsx-runtime";var ti=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>pa("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[pa("div",{className:"col-span-1 ",children:[K(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),K(Ya,{dataFeatures:t,template:a}),o&&K(b,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),K(Ja,{dataStats:r})]}),K("div",{className:"col-span-1 md:pl-10",children:s||K(Za,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),vl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>pa("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[K("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||K(Za,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),pa("div",{className:"order-1 col-span-1 md:order-2",children:[K(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),K(Ya,{dataFeatures:t,template:a}),o&&K("div",{className:"flex w-full items-center justify-center md:justify-start",children:K(b,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),K(Ja,{dataStats:r})]})]}),xl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>pa(ul,{children:[K(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),o&&K(b,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),K(Ya,{dataFeatures:t,template:a}),K("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:K(Ja,{dataStats:r})}),s||K(ul,{children:n?.src&&K(Za,{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 zg,jsx as ao}from"react/jsx-runtime";var Mg=`var(
|
|
247
247
|
--gradient-pink-1,
|
|
248
248
|
linear-gradient(
|
|
249
249
|
38deg,
|
|
@@ -265,15 +265,32 @@ import*as Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
265
265
|
rgba(255, 255, 255, 0) 80%
|
|
266
266
|
),
|
|
267
267
|
#fff
|
|
268
|
-
)`,
|
|
268
|
+
)`,Ig=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return ao(ti,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return ao(vl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return ao(xl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return ao(ti,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},Ag=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ao(zg,{children:Ig({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),Lg=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>ao(B,{className:i(l),background:m??Mg,idSection:o,children:ao(Ag,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as Eg}from"react";import{Fragment as Hg,jsx as Do,jsxs as Fg}from"react/jsx-runtime";var er=Eg(({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:r})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9","40px":"md:gap-x-10","48px":"md:gap-x-12","56px":"md:gap-x-14","64px":"md:gap-x-16","80px":"md:gap-x-20"};return Fg(Hg,{children:[e&&Do(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&Do("div",{className:i("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],r?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"mx-auto max-w-xs flex-wrap justify-center md:max-w-full"),children:o?.map((s,l)=>{let m=s?.url?"a":"div",c=s?.url?{href:s.url,title:s.name,target:s.newTab?"_blank":"_self"}:{};return Do("div",{className:i("flex max-h-28 w-auto items-center justify-center md:max-w-36 md:basis-auto md:px-0",r?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-3"),children:Do(m,{...c,className:"group flex h-full w-full items-center justify-center",children:Do("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:i("max-h-full max-w-full object-contain",s?.url&&"transform transition group-hover:scale-105")})})},l)})}),t&&Do(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as _g}from"react";import{Fragment as Bg,jsx as ro,jsxs as Og}from"react/jsx-runtime";var oi=_g(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>Og(Bg,{children:[e&&ro(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&ro("div",{className:i("list-brands flex md:flex-wrap md:justify-center md:gap-y-6",a?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:space-x-0 md:px-0":"-mx-2.5 flex-wrap gap-y-5 md:-mx-3"),children:o.map((r,n)=>{let s=r?.url?"a":"div",l=r?.url?{href:r.url,title:r.name,target:r.newTab?"_blank":"_self"}:{};return ro("div",{className:i("flex items-center justify-center text-center md:basis-1/4 md:px-3",a?"shrink-0 basis-5/12 snap-center":"basis-1/2 px-2.5"),children:ro(s,{...l,className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3 duration-300 hover:border-pink-500",children:ro("div",{className:"flex w-full items-center justify-center",children:ro("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain"})})})},n)})}),t&&ro(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as Vg}from"react";import{Fragment as Wg,jsx as $e,jsxs as ri}from"react/jsx-runtime";var ai=(e,o)=>{if(!e)return $e("div",{className:i("h-full w-full",o)});let t=e.url?"a":"div";return $e("div",{className:i("h-full w-full",o),children:$e(t,{...e.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:i("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e.url&&"duration-300 hover:border-pink-500"),children:$e("div",{className:"flex h-full w-full items-center justify-center",children:$e("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},ii=Vg(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=vo(),r=[],n=[];if(o&&o.length>10){let s=Math.ceil(o.length/2);r.push(...o.slice(0,s)),n.push(...o.slice(s))}return ri(Wg,{children:[e&&$e(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o.length>0&&ri(fe,{opts:{align:a?"center":"start"},className:"w-full",children:[$e(ge,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?r.map((s,l)=>ri(se,{className:"flex shrink-0 basis-5/12 flex-col items-center justify-between gap-3 pl-3 md:basis-1/4 md:gap-4 md:pl-4 lg:basis-1/6",children:[ai(s,"min-h-0 flex-1"),n[l]?ai(n[l],"min-h-0 flex-1"):$e("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>$e(se,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:ai(s)},l))}),$e(yo,{className:"mt-5"})]}),t&&$e(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as Xg}from"react";import{useEffect as Gg,useState as ni}from"react";import{animate as hl,motion as $g,useMotionValue as jg}from"motion/react";import Qg from"react-use-measure";import{jsx as qg,jsxs as Ug}from"react/jsx-runtime";function Mo({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=ni(t),[d,{width:p,height:g}]=Qg(),v=jg(0),[T,D]=ni(!1),[I,H]=ni(0);Gg(()=>{let A,N=(r==="horizontal"?p:g)+o,re=n?-N/2:0,$=n?0:-N/2,$t=Math.abs($-re)/m;if(T){let Ho=Math.abs(v.get()-$)/m;A=hl(v,[v.get(),$],{ease:"linear",duration:Ho,onComplete:()=>{D(!1),H(Lm=>Lm+1)}})}else A=hl(v,[re,$],{ease:"linear",duration:$t,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(re)}});return A?.stop},[I,v,m,p,g,o,T,r,n]);let G=a?{onHoverStart:()=>{D(!0),c(a)},onHoverEnd:()=>{D(!0),c(t)},onTouchStart:()=>{D(!0),c(a)},onTouchEnd:()=>{D(!0),c(t)}}:{};return qg("div",{className:i("overflow-hidden",s),children:Ug($g.div,{className:i("flex w-max",l),style:{...r==="horizontal"?{x:v,paddingLeft:o}:{y:v},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:d,...G,children:[e,e]})})}import{Fragment as yl,jsx as Te,jsxs as Yg}from"react/jsx-runtime";var bl=(e,o)=>{let t=e?.url?"a":"div";return Te("div",{className:i("h-full w-full",o),children:Te(t,{...e?.url&&{href:e.url,title:e.name,target:e.newTab?"_blank":"_self"},className:i("flex h-full w-full items-center justify-center rounded-md border border-gray-200 bg-white p-3",e?.url&&"duration-300 hover:border-pink-500"),children:Te("div",{className:"flex h-full w-full items-center justify-center",children:Te("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},si=Xg(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,r=a>6;return Yg(yl,{children:[e&&Te(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),a>0&&Te(yl,{children:r?Te("div",{className:"mark-horizontal-slider relative overflow-hidden",children:Te(Mo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>Te("div",{className:"w-32 md:w-40",children:bl(n)},s))})}):Te("div",{className:i("list-brands -mx-5 flex snap-x snap-mandatory flex-nowrap space-x-3 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:flex-wrap md:justify-center md:gap-y-6 md:space-x-0 md:px-0"),children:o?.map((n,s)=>Te("div",{className:"flex shrink-0 basis-5/12 snap-center items-center justify-center md:basis-1/4 md:px-3 lg:basis-1/6",children:bl(n)},s))})}),t&&Te(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),Te("style",{children:`
|
|
269
|
+
.mark-horizontal-slider {
|
|
270
|
+
mask-image: linear-gradient(
|
|
271
|
+
to right,
|
|
272
|
+
transparent 0px,
|
|
273
|
+
black 32px,
|
|
274
|
+
black calc(100% - 32px),
|
|
275
|
+
transparent 100%
|
|
276
|
+
);
|
|
277
|
+
-webkit-mask-image: linear-gradient(
|
|
278
|
+
to right,
|
|
279
|
+
transparent 0px,
|
|
280
|
+
black 32px,
|
|
281
|
+
black calc(100% - 32px),
|
|
282
|
+
transparent 100%
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
`})]})});import{Fragment as eu,jsx as Bt}from"react/jsx-runtime";var Zg=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return Bt(er,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return Bt(oi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return Bt(ii,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return Bt(si,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return Bt(er,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},Kg=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>Bt(eu,{children:Zg({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),Jg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>Bt(B,{className:i(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:Bt(Kg,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as tu}from"react";import{ChevronRightIcon as ou}from"@heroicons/react/16/solid";import U from"html-react-parser";import{Fragment as kt,jsx as f,jsxs as h}from"react/jsx-runtime";var nt=({btnLink:e,btnName:o,newTab:t})=>f(pe,{variant:"primary",asChild:!0,children:h("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(ou,{className:"h-4 w-4"})]})}),li=({dataHeading:e,dataFeatures:o,dataButtons:t})=>h(kt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>h("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&f("div",{className:"mx-auto h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),h("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[h("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(nt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),wl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>h(kt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,r)=>h("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),h("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[h("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(nt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
|
|
269
286
|
.list-features-2 .feature-item {
|
|
270
287
|
background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
|
|
271
288
|
}
|
|
272
|
-
`})]}),pl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Tt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>x("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 w-full flex-1",children:[x("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(rt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),fl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[x("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),x("div",{className:"lg:col-span-6",children:[o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>x("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(rt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),gl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Tt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>x("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(rt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ul=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Tt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>x("div",{className:"feature-item relative w-full",children:[a?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(rt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),vl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,m=n[a]??-1,c=(d,p)=>{let g=d?.btnLink?"a":"div",v=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return f("div",{className:r("basis-1/2 px-2 lg:px-5",l,p===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:x(g,{...v,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&f("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:f("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy"})}),x("div",{className:"w-full flex-1 text-center",children:[d?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:q(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:q(d.description)})]})]})},p)};return x(Tt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,p)=>c(d,p))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},xl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(Tt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>x("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[x("div",{className:"flex w-full flex-1 flex-col p-5",children:[x("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:q(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(rt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&f("div",{className:"w-full",style:{aspectRatio:"347/220"},children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),hl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>x("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[f("div",{className:"flex items-center lg:col-span-6",children:x("div",{className:"w-full",children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>x("div",{className:"feature-item relative flex w-full flex-col",children:[i?.image&&f("div",{className:"h-10 w-10",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:q(i.name)}),i?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:q(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(rt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&f("div",{className:"flex items-center lg:col-span-4",children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:f(H,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),bl=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>x(Tt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),f("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&x("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>x("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[i?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:q(i.name)}),i?.description&&f("div",{className:"mt-2 text-gray-500",children:q(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(rt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&x("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[f("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),f("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:f("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&f(b,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),yl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=Mg(0),s=pa();return x(Tt,{children:[e&&f(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&x("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[f("div",{children:f("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:f(ct,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:i.toString(),children:o?.map((l,m)=>x(dt,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[f(pt,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:q(l.name||"")}),x(ft,{children:[l?.description&&f("div",{className:"text-muted-foreground mb-3",children:q(l.description||"")}),l?.btnLink&&f("div",{className:"mt-4",children:f(rt,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&f("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:f(H,{ratio:1,className:"w-full",children:f("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),f("div",{className:r(a?.src?"flex":"hidden md:flex"),children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?f(H,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):f("div",{className:"hidden md:flex",children:o?.[i]?.image?f(H,{ratio:1,className:"w-full",children:f("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):f("div",{className:"h-0 w-0"})})})})]}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as Hg,jsx as ve}from"react/jsx-runtime";var Ag=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return ve(Ki,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ve(dl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ve(pl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ve(fl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ve(gl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ve(ul,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ve(vl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ve(xl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ve(hl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return ve(bl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return ve(yl,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return ve(Ki,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Lg=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>ve(Hg,{children:Ag({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),Eg=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>ve(O,{className:t,idSection:a,background:o,children:ve(Lg,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as Wg}from"@heroicons/react/24/solid";import er from"html-react-parser";import Gg from"lodash";import{useEffect as zg,useState as Ji}from"react";import{animate as wl,motion as Fg,useMotionValue as _g}from"motion/react";import Bg from"react-use-measure";import{jsx as Vg,jsxs as Og}from"react/jsx-runtime";function Xa({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=Ji(t),[d,{width:p,height:g}]=Bg(),v=_g(0),[C,M]=Ji(!1),[I,z]=Ji(0);zg(()=>{let A,N=(i==="horizontal"?p:g)+o,re=n?-N/2:0,Q=n?0:-N/2,Wt=Math.abs(Q-re)/m;if(C){let Do=Math.abs(v.get()-Q)/m;A=wl(v,[v.get(),Q],{ease:"linear",duration:Do,onComplete:()=>{M(!1),z(Cm=>Cm+1)}})}else A=wl(v,[re,Q],{ease:"linear",duration:Wt,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(re)}});return A?.stop},[I,v,m,p,g,o,C,i,n]);let $=a?{onHoverStart:()=>{M(!0),c(a)},onHoverEnd:()=>{M(!0),c(t)},onTouchStart:()=>{M(!0),c(a)},onTouchEnd:()=>{M(!0),c(t)}}:{};return Vg("div",{className:r("overflow-hidden",s),children:Og(Fg.div,{className:r("flex w-max",l),style:{...i==="horizontal"?{x:v,paddingLeft:o}:{y:v},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:d,...$,children:[e,e]})})}var Ya=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Za=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},Ka=(e,o)=>o[e%o.length];import{Fragment as Pl,jsx as ee,jsxs as Co}from"react/jsx-runtime";var $g=({avatar:e="",name:o="",index:t=0})=>{if(Gg.isEmpty(e)){let a=Za({name:o})??"",i=Ka(t,Ya);return ee("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",i),children:a})}return ee("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:ee("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Nl=({testimonial:e,className:o,index:t})=>ee("div",{className:r("testimonial-item",o),children:Co("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[Co("div",{className:"flex flex-nowrap items-center space-x-2",children:[ee($g,{avatar:e.avatar,name:e.name,index:t}),Co("div",{className:"min-w-0 flex-1 pl-1",children:[ee("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&ee("div",{className:"text-xs font-normal text-pink-500",children:er(e.position)})]})]}),Co("div",{className:"mt-3",children:[e?.shortTitle&&ee("div",{className:"text-sm font-bold text-gray-700",children:er(e.shortTitle)}),e?.description&&ee("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:er(e.description)})]}),Co("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&ee("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&ee("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>ee(Wg,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),tr=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return Co(Pl,{children:[e&&ee(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&ee(Pl,{children:i?ee("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:ee(Xa,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>ee(Nl,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):ee("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>ee(Nl,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&ee(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as Cl}from"@heroicons/react/24/solid";import or from"html-react-parser";import{Fragment as Ug,jsx as L,jsxs as $e}from"react/jsx-runtime";var Qg=({className:e})=>L("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),jg=({testimonial:e,className:o})=>L("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:$e("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&L("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:L(H,{ratio:2/3,className:"w-full",children:L("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),$e("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[$e("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[$e("div",{className:"grow",children:[e?.name&&L("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&L("div",{className:"mt-1 text-xs font-normal text-gray-500",children:or(e.position)})]}),(e?.date||Number(e?.rating)>0)&&$e("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&L("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&L("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>L(Cl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&L("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:L(H,{ratio:2/3,className:"w-full",children:L("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),$e("div",{className:"flex flex-1 flex-col md:flex-none",children:[$e("div",{className:"flex-1",children:[$e("div",{className:"mb-1.5 flex flex-none space-x-3",children:[L(Qg,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&L("div",{className:"flex-none text-base font-medium md:text-lg",children:or(e.shortTitle)})]}),e?.description&&L("blockquote",{className:"relative flex-1 text-justify text-base",children:or(e.description)})]}),(e?.date||Number(e?.rating)>0)&&$e("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&L("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&L("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>L(Cl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),Rl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>$e(Ug,{children:[e&&L(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&$e(we,{className:"w-full",children:[L(Ne,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>L(Pe,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:L(jg,{testimonial:a})},i))}),(o??[]).length>1&&L(xa,{className:"mt-8"})]}),t&&L(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as qg}from"@heroicons/react/24/solid";import ar from"html-react-parser";import Xg from"lodash";import{Fragment as kl,jsx as B,jsxs as oo}from"react/jsx-runtime";var Yg=({avatar:e="",name:o="",index:t=0})=>{if(Xg.isEmpty(e)){let a=Za({name:o})??"",i=Ka(t,Ya);return B("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return B("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:B("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Tl=({testimonial:e,className:o,index:t})=>B("div",{className:r("testimonial-item",o),children:oo("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[oo("div",{className:"flex flex-nowrap items-center space-x-2",children:[B(Yg,{avatar:e.avatar,name:e.name,index:t}),oo("div",{className:"flex-1 pl-1",children:[B("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&B("div",{className:"text-xs font-normal text-pink-500",children:ar(e.position)})]})]}),oo("div",{className:"mt-3",children:[e?.shortTitle&&B("div",{className:"text-sm font-bold text-gray-700",children:ar(e.shortTitle)}),e?.description&&B("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:ar(e.description)})]}),oo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&B("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&B("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>B(qg,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),Sl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>B(kl,{children:l.map((m,c)=>B(Xa,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>B(Tl,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return oo(kl,{children:[e&&B(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&B(so,{children:i?oo("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[B(je,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),B(je,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),B(je,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):B("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>B(Tl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&B(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),B("style",{children:`
|
|
289
|
+
`})]}),Nl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>h(kt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>h("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),h("div",{className:"mt-4 w-full flex-1",children:[h("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(nt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Pl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>h("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[h("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),h("div",{className:"lg:col-span-6",children:[o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>h("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),h("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[h("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(nt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Cl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>h(kt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,r)=>h("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),h("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[h("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(nt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Rl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>h(kt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,r)=>h("div",{className:"feature-item relative w-full",children:[a?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),h("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[h("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(nt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Tl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,r={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?r.special:r.default,m=n[a]??-1,c=(d,p)=>{let g=d?.btnLink?"a":"div",v=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return f("div",{className:i("basis-1/2 px-2 lg:px-5",l,p===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:h(g,{...v,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&f("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:f("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy"})}),h("div",{className:"w-full flex-1 text-center",children:[d?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:U(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:U(d.description)})]})]})},p)};return h(kt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,p)=>c(d,p))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},kl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>h(kt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>h("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[h("div",{className:"flex w-full flex-1 flex-col p-5",children:[h("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:U(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(nt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&f("div",{className:"w-full",style:{aspectRatio:"347/220"},children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Sl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>h("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[f("div",{className:"flex items-center lg:col-span-6",children:h("div",{className:"w-full",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:text-left",e?.className)}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((r,n)=>h("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&f("div",{className:"h-10 w-10",children:f("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),h("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[h("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:U(r.name)}),r?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:U(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(nt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&f("div",{className:"flex items-center lg:col-span-4",children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:f(E,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),Dl=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>h(kt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),f("div",{className:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&h("div",{className:i("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((r,n)=>h("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&f("div",{className:"h-12 w-12",children:f("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),h("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[h("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:U(r.name)}),r?.description&&f("div",{className:"mt-2 text-gray-500",children:U(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(nt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&h("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[f("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),f("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:f("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&f(b,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),Ml=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=tu(0),s=vo();return h(kt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&h("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[f("div",{children:f("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:f(dt,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((l,m)=>h(pt,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[f(ft,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:U(l.name||"")}),h(gt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:U(l.description||"")}),l?.btnLink&&f("div",{className:"",children:f(nt,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a?.src&&f("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:f(E,{ratio:1,className:"w-full",children:f("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),f("div",{className:i(a?.src?"flex":"hidden md:flex"),children:f("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?f(E,{ratio:a?.ratio||1,className:"w-full",children:f("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):f("div",{className:"hidden md:flex",children:o?.[r]?.image?f(E,{ratio:1,className:"w-full",children:f("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):f("div",{className:"h-0 w-0"})})})})]}),t&&f(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as nu,jsx as he}from"react/jsx-runtime";var au=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return he(li,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return he(wl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return he(Nl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return he(Pl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return he(Cl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return he(Rl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return he(Tl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return he(kl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return he(Sl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return he(Dl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return he(Ml,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return he(li,{dataHeading:o,dataFeatures:t,dataButtons:a})}},ru=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>he(nu,{children:au({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),iu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>he(B,{className:t,idSection:a,background:o,children:he(ru,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as su}from"@heroicons/react/24/solid";import mi from"html-react-parser";import lu from"lodash";var tr=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],or=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},ar=(e,o)=>o[e%o.length];import{Fragment as Al,jsx as J,jsxs as Io}from"react/jsx-runtime";var mu=({avatar:e="",name:o="",index:t=0})=>{if(lu.isEmpty(e)){let a=or({name:o})??"",r=ar(t,tr);return J("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",r),children:a})}return J("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:J("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Il=({testimonial:e,className:o,index:t})=>J("div",{className:i("testimonial-item",o),children:Io("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[Io("div",{className:"flex flex-nowrap items-center space-x-2",children:[J(mu,{avatar:e.avatar,name:e.name,index:t}),Io("div",{className:"min-w-0 flex-1 pl-1",children:[J("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&J("div",{className:"text-xs font-normal text-pink-500",children:mi(e.position)})]})]}),Io("div",{className:"mt-3",children:[e?.shortTitle&&J("div",{className:"text-sm font-bold text-gray-700",children:mi(e.shortTitle)}),e?.description&&J("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:mi(e.description)})]}),Io("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&J("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&J("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>J(su,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),ci=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return Io(Al,{children:[e&&J(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&J(Al,{children:r?J("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:J(Mo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>J(Il,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):J("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>J(Il,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&J(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as Ll}from"@heroicons/react/24/solid";import di from"html-react-parser";import{Fragment as pu,jsx as L,jsxs as je}from"react/jsx-runtime";var cu=({className:e})=>L("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:L("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),du=({testimonial:e,className:o})=>L("div",{className:i("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:je("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&L("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:L(E,{ratio:2/3,className:"w-full",children:L("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),je("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[je("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[je("div",{className:"grow",children:[e?.name&&L("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&L("div",{className:"mt-1 text-xs font-normal text-gray-500",children:di(e.position)})]}),(e?.date||Number(e?.rating)>0)&&je("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&L("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&L("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>L(Ll,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&L("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:L(E,{ratio:2/3,className:"w-full",children:L("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),je("div",{className:"flex flex-1 flex-col md:flex-none",children:[je("div",{className:"flex-1",children:[je("div",{className:"mb-1.5 flex flex-none space-x-3",children:[L(cu,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&L("div",{className:"flex-none text-base font-medium md:text-lg",children:di(e.shortTitle)})]}),e?.description&&L("blockquote",{className:"relative flex-1 text-justify text-base",children:di(e.description)})]}),(e?.date||Number(e?.rating)>0)&&je("div",{className:i("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&L("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&L("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>L(Ll,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),zl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>je(pu,{children:[e&&L(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&je(fe,{className:"w-full",children:[L(ge,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>L(se,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:L(du,{testimonial:a})},r))}),(o??[]).length>1&&L(yo,{className:"mt-8"})]}),t&&L(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as fu}from"@heroicons/react/24/solid";import pi from"html-react-parser";import gu from"lodash";import{Fragment as Hl,jsx as _,jsxs as io}from"react/jsx-runtime";var uu=({avatar:e="",name:o="",index:t=0})=>{if(gu.isEmpty(e)){let a=or({name:o})??"",r=ar(t,tr);return _("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",r),children:a})}return _("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:_("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},El=({testimonial:e,className:o,index:t})=>_("div",{className:i("testimonial-item",o),children:io("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[io("div",{className:"flex flex-nowrap items-center space-x-2",children:[_(uu,{avatar:e.avatar,name:e.name,index:t}),io("div",{className:"flex-1 pl-1",children:[_("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&_("div",{className:"text-xs font-normal text-pink-500",children:pi(e.position)})]})]}),io("div",{className:"mt-3",children:[e?.shortTitle&&_("div",{className:"text-sm font-bold text-gray-700",children:pi(e.shortTitle)}),e?.description&&_("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:pi(e.description)})]}),io("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>_(fu,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Fl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>_(Hl,{children:l.map((m,c)=>_(Mo,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>_(El,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return io(Hl,{children:[e&&_(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&_(co,{children:r?io("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[_(Ue,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),_(Ue,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),_(Ue,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):_("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>_(El,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&_(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),_("style",{children:`
|
|
273
290
|
.mark-vertical-marquee {
|
|
274
291
|
mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
|
|
275
292
|
}
|
|
276
|
-
`})]})};import{Fragment as eu,jsx as ao}from"react/jsx-runtime";var Zg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return ao(tr,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return ao(Sl,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return ao(Rl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return ao(tr,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Kg=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>ao(eu,{children:Zg({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Jg=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>ao(O,{className:r(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:ao(Kg,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import Dl from"html-react-parser";import{Fragment as tu,jsx as ae,jsxs as io}from"react/jsx-runtime";var ir=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>ae(ct,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>io(dt,{value:n.title,className:"last:border-none",children:[ae(pt,{className:"md:text-lg",children:n.title}),ae(ft,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Dl(n.description)})]},s))});return io("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[ae("div",{className:"relative",children:io("div",{className:"md:sticky md:top-14",children:[o&&ae(h,{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&&ae(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&ae("div",{className:"col-span-2",children:a(e[0])}),t&&ae(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},Ml=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>ae(ct,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>io(dt,{value:c.title,className:"last:border-none",children:[ae(pt,{className:"md:text-lg",children:c.title}),ae(ft,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Dl(c.description)})]},d))});return io(tu,{children:[o&&ae(h,{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&&io(yt,{defaultValue:e[0]?.title,children:[e?.length>1&&io(vt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[ae(xt,{className:"mb-3 text-center",children:ae(Xe,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>ae(Ye,{value:m.title,children:m.title},m.title+c))})}),ae(ht,{}),ae(bt,{})]}),e.map((m,c)=>ae(Ze,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&ae(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};import{Fragment as ru,jsx as Ro}from"react/jsx-runtime";var ou=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return Ro(ir,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return Ro(Ml,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return Ro(ir,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},au=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>Ro(ru,{children:ou({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),iu=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Ro(O,{className:t,idSection:i,background:a,children:Ro(au,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import nu,{memo as su}from"react";import{ArrowDownIcon as lu}from"@heroicons/react/20/solid";import mu from"html-react-parser";import{Fragment as Il,jsx as Y,jsxs as nt}from"react/jsx-runtime";var cu=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return nt(Il,{children:[Y("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:nt("picture",{children:[Y("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),Y("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),nt("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[Y("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}),nt("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&nt(Il,{children:[Y(pe,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&Y("span",{className:"flex-none leading-none",children:"\xB7"})]}),Y("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},rr=su(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>nt("div",{children:[Y("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((g,v)=>Y("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:Y("div",{onClick:C=>m(C,g?.id,g?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:Y(cu,{news:g})},g?.id)},v))}),d?.isShowBtn&&Y("div",{className:"mt-8 flex w-full items-center justify-center",children:nt(Be,{action:d?.btnUrl||i&&(()=>i?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[mu(d.btnName||"Xem th\xEAm"),d?.isLoading?Y(mo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!d?.btnUrl&&Y(lu,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return nt(nu.Fragment,{children:[e&&Y(h,{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?nt(yt,{defaultValue:t[0]?.title,children:[nt(vt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[Y(xt,{className:"mb-6 text-center",children:Y(Xe,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>Y(Ye,{value:d.title,children:d.title},d.title+p))})}),Y(ht,{}),Y(bt,{})]}),t.map((d,p)=>Y(Ze,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as gu,jsx as na}from"react/jsx-runtime";var du=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return na(rr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return na(rr,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},pu=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>na(gu,{children:du({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),fu=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>na(O,{className:r(a),background:i,children:na(pu,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as bu,jsx as ke,jsxs as nr}from"react/jsx-runtime";var Al=({dataHeading:e,dataCTA:o,dataButtons:t})=>nr("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&&ke(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&ke(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),uu=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>nr("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:[nr("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&ke(h,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&ke(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),ke("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&ke(H,{ratio:4/3,children:ke("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),vu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return ke(Al,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return ke(uu,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return ke(Al,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},xu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>ke(bu,{children:vu({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),hu=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>ke(O,{className:t,idSection:a,background:o,children:ke(xu,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import Ll from"react";import sr from"html-react-parser";import{jsx as _t,jsxs as El}from"react/jsx-runtime";var yu=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return El("div",{className:" text-center",children:[_t("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:sr(t??"")}),_t("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:sr(o??"")}),a&&_t("div",{className:"mt-2 text-sm text-gray-500",children:sr(a??"")})]})},Ja=({dataMetrics:e,dataButtons:o,dataHeading:t})=>El(Ll.Fragment,{children:[t&&_t(h,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&_t("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,i)=>_t(Ll.Fragment,{children:_t(yu,{metric:a})},i))}),o&&_t(b,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import Hl from"react";import lr from"html-react-parser";import{jsx as Bt,jsxs as zl}from"react/jsx-runtime";var wu=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return zl("div",{className:" text-center md:text-left",children:[Bt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:lr(t??"")}),Bt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:lr(o??"")}),a&&Bt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:lr(a??"")})]})},mr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>zl(Hl.Fragment,{children:[t&&Bt(h,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Bt("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,i)=>Bt(Hl.Fragment,{children:Bt(wu,{metric:a})},i))}),o&&Bt(b,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as Ru,jsx as To}from"react/jsx-runtime";var Nu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return To(Ja,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return To(mr,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return To(Ja,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Pu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>To(Ru,{children:Nu({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Cu=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:i,template:n})=>To(O,{className:r(i),background:a,children:To(Pu,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});import{forwardRef as Tu}from"react";import{jsx as Fl,jsxs as Su}from"react/jsx-runtime";var ku=Tu(({className:e,title:o,children:t},a)=>Su("div",{className:e,ref:a,children:[Fl("div",{className:"font-semibold text-gray-800",children:o}),Fl("div",{style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-241105114139-638664036992710012.png)",backgroundSize:"30%",backgroundPosition:"53% 25%"},className:"mt-4 grid grid-cols-1 gap-4 rounded-lg border bg-no-repeat p-3 text-gray-800",children:t})]}));import{useCallback as Lu}from"react";import{Fragment as Au,jsx as ro,jsxs as Iu}from"react/jsx-runtime";var Du=()=>ro("div",{className:"p-3 border rounded-lg",children:Iu("div",{className:"flex items-center gap-3",children:[ro(Ba,{className:"rounded-md h-9 w-9 "}),ro("div",{className:"flex-1",children:ro(Ba,{className:"w-48 h-5 "})}),ro("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Mu(){return ro(Au,{children:Array.from({length:4}).map((e,o)=>ro(Du,{},o))})}var _l=Mu;import{Fragment as zu,jsx as kt,jsxs as cr}from"react/jsx-runtime";var Eu=({paymentMethod:e})=>kt(_a,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:cr("div",{className:"flex items-center space-x-3",children:[kt("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),cr("div",{className:"grid grid-cols-1 gap-1",children:[kt("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&kt("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&kt("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Hu=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=Lu(s=>a?.(s),[a]);return cr(zu,{children:[e&&kt("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?kt(_l,{}):kt(Fa,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>kt(Eu,{paymentMethod:s},s.id))})]})};import{forwardRef as Bl}from"react";import{jsx as Vl}from"react/jsx-runtime";var Fu=Bl(({children:e,className:o},t)=>Vl("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),Ol=Bl(({children:e,className:o,...t},a)=>Vl(Fu,{ref:a,className:o,...t,children:e}));Ol.displayName="Payment";import{forwardRef as _u}from"react";import{jsx as Wl,jsxs as Ou}from"react/jsx-runtime";var Bu=_u(({className:e,children:o},t)=>Ou("div",{className:r("",e),ref:t,children:[Wl("hr",{className:"mb-5 h-px w-full bg-gray-500"}),Wl("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as Vu}from"react";import{jsx as Gu}from"react/jsx-runtime";var Wu=Vu(({className:e,children:o},t)=>Gu("div",{className:r("pb-5",e),ref:t,children:o}));import{forwardRef as Xu}from"react";import{CheckBadgeIcon as $u,XCircleIcon as Qu}from"@heroicons/react/20/solid";import{jsx as se,jsxs as ko}from"react/jsx-runtime";var ju=({iconPaymentResult:e,message:o="",title:t=""})=>ko("div",{className:"grid grid-cols-1 gap-4",children:[ko("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&se("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&se("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&se(Jo,{message:o,type:"success",icon:se($u,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Uu=({iconPaymentResult:e,message:o="",title:t=""})=>ko("div",{className:"grid grid-cols-1 gap-4",children:[ko("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&se("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&se("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),se(Jo,{message:o,type:"error",icon:se(Qu,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),qu=({iconPaymentResult:e,message:o="",title:t=""})=>ko("div",{className:"grid grid-cols-1 gap-4",children:[ko("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&se("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&se("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&se(Jo,{message:o,type:"neutral"})]}),Gl=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return se(ju,{status:e,title:o,message:t,iconPaymentResult:a||se("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return se(Uu,{status:e,title:o,message:t,iconPaymentResult:a||se("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return se(qu,{status:e,title:o,message:t,iconPaymentResult:a||se("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as Zu,jsxs as Ku}from"react/jsx-runtime";var Yu=Xu(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>Ku("div",{ref:s,className:r("rounded-lg p-4",e),children:[Zu(Gl,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));import{forwardRef as e0,useEffect as t0}from"react";import{jsx as dr,jsxs as Ju}from"react/jsx-runtime";var ei=({content:e})=>Ju("picture",{children:[dr("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),dr("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),dr(Be,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as sa,jsxs as i0}from"react/jsx-runtime";var o0=({template:e,content:o})=>{switch(e){case 1:return sa(ei,{content:o});default:return sa(ei,{content:o})}},a0=e0(({template:e,content:o},t)=>(t0(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),i0("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[sa("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:sa("div",{className:"content",children:o0({template:e,content:o})})}),sa("style",{children:`
|
|
293
|
+
`})]})};import{Fragment as bu,jsx as no}from"react/jsx-runtime";var vu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return no(ci,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return no(Fl,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return no(zl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return no(ci,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},xu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>no(bu,{children:vu({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),hu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>no(B,{className:i(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:no(xu,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import _l from"html-react-parser";import{Fragment as yu,jsx as oe,jsxs as so}from"react/jsx-runtime";var fi=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>oe(dt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>so(pt,{value:n.title,className:"last:border-none",children:[oe(ft,{className:"md:text-lg",children:n.title}),oe(gt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:_l(n.description)})]},s))});return so("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[oe("div",{className:"relative",children:so("div",{className:"md:sticky md:top-16",children:[o&&oe(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),t&&oe(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&oe("div",{className:"col-span-2",children:a(e[0])}),t&&oe(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Bl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>oe(dt,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>so(pt,{value:c.title,className:"last:border-none",children:[oe(ft,{className:"md:text-lg",children:c.title}),oe(gt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:_l(c.description)})]},d))});return so(yu,{children:[o&&oe(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),e&&so(wt,{defaultValue:e[0]?.title,children:[e?.length>1&&so(xt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[oe(ht,{className:"mb-3 text-center",children:oe(Ye,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>oe(Ze,{value:m.title,children:m.title},m.title+c))})}),oe(bt,{}),oe(yt,{})]}),e.map((m,c)=>oe(Ke,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&oe(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as Cu,jsx as Ao}from"react/jsx-runtime";var wu=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return Ao(fi,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return Ao(Bl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return Ao(fi,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},Nu=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>Ao(Cu,{children:wu({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Pu=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Ao(B,{className:t,idSection:r,background:a,children:Ao(Nu,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import Ru,{memo as Tu}from"react";import{ArrowDownIcon as ku}from"@heroicons/react/20/solid";import Su from"html-react-parser";import{Fragment as Ol,jsx as X,jsxs as st}from"react/jsx-runtime";var Du=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return st(Ol,{children:[X("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:st("picture",{children:[X("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),X("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),st("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[X("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),st("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&st(Ol,{children:[X(pe,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&X("span",{className:"flex-none leading-none",children:"\xB7"})]}),X("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},gi=Tu(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),a?a(p):window.open(g,"_blank")},c=(d,p)=>st("div",{children:[X("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",d?.newsList?.length<4?"md:justify-center":""),children:d?.newsList?.map((g,v)=>X("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:X("div",{onClick:T=>m(T,g?.id,g?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",d?.classNameItem),children:X(Du,{news:g})},g?.id)},v))}),d?.isShowBtn&&X("div",{className:"mt-8 flex w-full items-center justify-center",children:st(Be,{action:d?.btnUrl||r&&(()=>r?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[Su(d.btnName||"Xem th\xEAm"),d?.isLoading?X(fo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&X(ku,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return st(Ru.Fragment,{children:[e&&X(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?st(wt,{defaultValue:t[0]?.title,children:[st(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[X(ht,{className:"mb-6 text-center",children:X(Ye,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>X(Ze,{value:d.title,children:d.title},d.title+p))})}),X(bt,{}),X(yt,{})]}),t.map((d,p)=>X(Ke,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as Lu,jsx as fa}from"react/jsx-runtime";var Mu=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return fa(gi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return fa(gi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Iu=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>fa(Lu,{children:Mu({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Au=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>fa(B,{className:i(r),background:n,idSection:e,children:fa(Iu,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as _u,jsx as ke,jsxs as ui}from"react/jsx-runtime";var Vl=({dataHeading:e,dataCTA:o,dataButtons:t})=>ui("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&&ke(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&ke(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),zu=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>ui("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:[ui("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&ke(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&ke(b,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),ke("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&ke(E,{ratio:4/3,children:ke("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Eu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return ke(Vl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return ke(zu,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return ke(Vl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},Hu=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>ke(_u,{children:Eu({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),Fu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>ke(B,{className:t,idSection:a,background:o,children:ke(Hu,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import Wl from"react";import vi from"html-react-parser";import{jsx as Ot,jsxs as Gl}from"react/jsx-runtime";var Bu=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Gl("div",{className:" text-center",children:[Ot("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:vi(t??"")}),Ot("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:vi(o??"")}),a&&Ot("div",{className:"mt-2 text-sm text-gray-500",children:vi(a??"")})]})},rr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Gl(Wl.Fragment,{children:[t&&Ot(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&Ot("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,r)=>Ot(Wl.Fragment,{children:Ot(Bu,{metric:a})},r))}),o&&Ot(b,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import $l from"react";import xi from"html-react-parser";import{jsx as Vt,jsxs as jl}from"react/jsx-runtime";var Ou=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return jl("div",{className:" text-center md:text-left",children:[Vt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:xi(t??"")}),Vt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:xi(o??"")}),a&&Vt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:xi(a??"")})]})},hi=({dataMetrics:e,dataButtons:o,dataHeading:t})=>jl($l.Fragment,{children:[t&&Vt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&Vt("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,r)=>Vt($l.Fragment,{children:Vt(Ou,{metric:a})},r))}),o&&Vt(b,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as $u,jsx as Lo}from"react/jsx-runtime";var Vu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return Lo(rr,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return Lo(hi,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return Lo(rr,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Wu=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>Lo($u,{children:Vu({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Gu=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>Lo(B,{className:i(n),background:r,idSection:e,children:Lo(Wu,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as ju}from"react";import{jsx as Ql,jsxs as Uu}from"react/jsx-runtime";var Qu=ju(({className:e,title:o,children:t},a)=>Uu("div",{className:e,ref:a,children:[Ql("div",{className:"font-semibold text-gray-800",children:o}),Ql("div",{style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-241105114139-638664036992710012.png)",backgroundSize:"30%",backgroundPosition:"53% 25%"},className:"mt-4 grid grid-cols-1 gap-4 rounded-lg border bg-no-repeat p-3 text-gray-800",children:t})]}));import{useCallback as Ku}from"react";import{Fragment as Zu,jsx as lo,jsxs as Yu}from"react/jsx-runtime";var qu=()=>lo("div",{className:"p-3 border rounded-lg",children:Yu("div",{className:"flex items-center gap-3",children:[lo($a,{className:"rounded-md h-9 w-9 "}),lo("div",{className:"flex-1",children:lo($a,{className:"w-48 h-5 "})}),lo("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Xu(){return lo(Zu,{children:Array.from({length:4}).map((e,o)=>lo(qu,{},o))})}var Ul=Xu;import{Fragment as t0,jsx as St,jsxs as bi}from"react/jsx-runtime";var Ju=({paymentMethod:e})=>St(Ga,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:bi("div",{className:"flex items-center space-x-3",children:[St("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),bi("div",{className:"grid grid-cols-1 gap-1",children:[St("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&St("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&St("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),e0=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=Ku(s=>a?.(s),[a]);return bi(t0,{children:[e&&St("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?St(Ul,{}):St(Wa,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>St(Ju,{paymentMethod:s},s.id))})]})};import{forwardRef as ql}from"react";import{jsx as Yl}from"react/jsx-runtime";var o0=ql(({children:e,className:o},t)=>Yl("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),Xl=ql(({children:e,className:o,...t},a)=>Yl(o0,{ref:a,className:o,...t,children:e}));Xl.displayName="Payment";import{forwardRef as a0}from"react";import{jsx as Zl,jsxs as i0}from"react/jsx-runtime";var r0=a0(({className:e,children:o},t)=>i0("div",{className:i("",e),ref:t,children:[Zl("hr",{className:"mb-5 h-px w-full bg-gray-500"}),Zl("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as n0}from"react";import{jsx as l0}from"react/jsx-runtime";var s0=n0(({className:e,children:o},t)=>l0("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as g0}from"react";import{CheckBadgeIcon as m0,XCircleIcon as c0}from"@heroicons/react/20/solid";import{jsx as ne,jsxs as zo}from"react/jsx-runtime";var d0=({iconPaymentResult:e,message:o="",title:t=""})=>zo("div",{className:"grid grid-cols-1 gap-4",children:[zo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(na,{message:o,type:"success",icon:ne(m0,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),p0=({iconPaymentResult:e,message:o="",title:t=""})=>zo("div",{className:"grid grid-cols-1 gap-4",children:[zo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),ne(na,{message:o,type:"error",icon:ne(c0,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),f0=({iconPaymentResult:e,message:o="",title:t=""})=>zo("div",{className:"grid grid-cols-1 gap-4",children:[zo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ne("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ne("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ne(na,{message:o,type:"neutral"})]}),Kl=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ne(d0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return ne(p0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return ne(f0,{status:e,title:o,message:t,iconPaymentResult:a||ne("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as v0,jsxs as x0}from"react/jsx-runtime";var u0=g0(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>x0("div",{ref:s,className:i("rounded-lg p-4",e),children:[v0(Kl,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as b0,useEffect as y0}from"react";import{jsx as yi,jsxs as h0}from"react/jsx-runtime";var ir=({content:e})=>h0("picture",{children:[yi("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),yi("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),yi(Be,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as ga,jsxs as P0}from"react/jsx-runtime";var w0=({template:e,content:o})=>{switch(e){case 1:return ga(ir,{content:o});default:return ga(ir,{content:o})}},N0=b0(({template:e,content:o},t)=>(y0(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),P0("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[ga("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:ga("div",{className:"content",children:w0({template:e,content:o})})}),ga("style",{children:`
|
|
277
294
|
.container-topbar .content {
|
|
278
295
|
width: 100%;
|
|
279
296
|
aspect-ratio: 1088/50;
|
|
@@ -291,7 +308,7 @@ import*as Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
291
308
|
aspect-ratio: 720/88;
|
|
292
309
|
}
|
|
293
310
|
}
|
|
294
|
-
`})]})));import*as
|
|
311
|
+
`})]})));import*as ua from"react";import{XIcon as C0}from"lucide-react";import{Drawer as Fe}from"vaul";import{jsx as lt,jsxs as wi}from"react/jsx-runtime";var Jl=({shouldScaleBackground:e=!0,...o})=>lt(Fe.Root,{shouldScaleBackground:e,...o});Jl.displayName="Drawer";var R0=Fe.Trigger,em=Fe.Portal,T0=Fe.Close,Ni=ua.forwardRef(({className:e,...o},t)=>lt(Fe.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));Ni.displayName=Fe.Overlay.displayName;var tm=ua.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>wi(em,{children:[lt(Ni,{}),wi(Fe.Content,{ref:r,className:i("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90dvh] flex-col rounded-t-xl border bg-white",e),...a,children:[!t&&wi(Fe.Close,{className:i("data-[state=open]:outline-focus absolute right-2 top-2 select-none appearance-none rounded-full p-2 text-gray-700 outline-none hover:bg-gray-100 active:bg-gray-200 data-[state=open]:z-10 data-[state=open]:outline-2 data-[state=open]:outline-offset-2"),title:"\u0110\xF3ng",children:[lt(C0,{className:"h-5 w-5"}),lt("span",{className:"sr-only",children:"Close"})]}),o]})]}));tm.displayName="DrawerContent";var om=({className:e,...o})=>lt("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});om.displayName="DrawerHeader";var am=({className:e,...o})=>lt("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});am.displayName="DrawerFooter";var rm=ua.forwardRef(({className:e,...o},t)=>lt(Fe.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));rm.displayName=Fe.Title.displayName;var im=ua.forwardRef(({className:e,...o},t)=>lt(Fe.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));im.displayName=Fe.Description.displayName;var nm=({children:e,className:o,...t})=>lt("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});nm.displayName="DrawerBody";import*as mo from"react";import{OTPInput as k0,OTPInputContext as S0}from"input-otp";import{Minus as D0}from"lucide-react";import{jsx as Eo,jsxs as sm}from"react/jsx-runtime";var lm=mo.forwardRef(({className:e,containerClassName:o,...t},a)=>Eo(k0,{ref:a,containerClassName:i("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:i("disabled:cursor-not-allowed",e),...t}));lm.displayName="InputOTP";var mm=mo.forwardRef(({className:e,...o},t)=>Eo("div",{ref:t,className:i("flex items-center",e),...o}));mm.displayName="InputOTPGroup";var cm=mo.forwardRef(({index:e,className:o,...t},a)=>{let r=mo.useContext(S0),{char:n,hasFakeCaret:s,isActive:l}=r.slots[e]??{};return sm("div",{ref:a,className:i("border-input relative flex h-9 w-9 items-center justify-center border-y border-r border-gray-400 text-sm text-gray-900 shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",l&&"ring-ring z-10 ring-1",o),...t,children:[n,s&&sm("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[Eo("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),Eo("style",{children:`
|
|
295
312
|
@keyframes caret-blink {
|
|
296
313
|
0%, 70%, 100% {
|
|
297
314
|
opacity: 1;
|
|
@@ -304,7 +321,7 @@ import*as Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
304
321
|
.animate-caret-blink {
|
|
305
322
|
animation: caret-blink 1.25s ease-out infinite;
|
|
306
323
|
}
|
|
307
|
-
`})]})]})});
|
|
324
|
+
`})]})]})});cm.displayName="InputOTPSlot";var dm=mo.forwardRef(({...e},o)=>Eo("div",{ref:o,role:"separator",...e,children:Eo(D0,{className:"text-gray-400"})}));dm.displayName="InputOTPSeparator";import{useEffect as um,useRef as F0,useState as vm}from"react";import{toPng as _0}from"html-to-image";import xa from"react";import{LucideMessageCircleQuestion as A0}from"lucide-react";import{QRCodeSVG as L0}from"qrcode.react";async function pm(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let r=document.createElement("canvas");r.width=a.width,r.height=a.height;let n=r.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=r.toDataURL("image/png");o(s)},a.onerror=function(r){t(r)},a.src=e})}import{jsx as Qe,jsxs as Wt}from"react/jsx-runtime";var M0=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>Wt("div",{className:`grid grid-cols-1 gap-y-6 py-8 text-sm ${t}`,children:[Wt("div",{className:"flex flex-nowrap items-center",children:[Qe("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:Qe("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Wt("div",{className:"flex-1 pl-4",children:[Qe("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 1 :"}),Qe("div",{className:"mt-1 text-gray-500",children:e?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),Wt("div",{className:"flex flex-nowrap items-center",children:[Qe("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:Qe("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Wt("div",{className:"flex-1 pl-4",children:[Qe("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 2 :"}),Qe("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Wt("div",{className:"flex flex-nowrap items-center",children:[Qe("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:Qe("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Wt("div",{className:"flex-1 pl-4",children:[Qe("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 3 :"}),Wt("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c ",o||"Truy c\u1EADp ngay"]})]})]})]}),Pi=M0;import{jsx as va,jsxs as fm}from"react/jsx-runtime";var I0=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:r,onOpenChange:n})=>fm(_e,{open:r,onOpenChange:n,children:[va(Oo,{asChild:!0,children:e}),fm(Ie,{position:"bottom",children:[va(go,{children:va(uo,{children:o})}),va(Xe,{children:va(Pi,{isQrForAll:t,shortTitle:a})})]})]}),Ci=I0;import{Fragment as nr,jsx as C,jsxs as me}from"react/jsx-runtime";var z0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n})=>me(nr,{children:[me("div",{className:"qrcode__scan__container relative select-none ",children:[me("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[C("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"select-none shrink-0"}),C("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),C("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"select-none shrink-0"})]}),me("div",{className:"qrcode__scan select-none",children:[C("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:C("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),C("div",{className:"invisible opacity-0 select-none qrcode__border md:visible md:opacity-100",children:C("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),C("div",{className:"p-4 select-none qrcode__image",children:e?C("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy",onLoad:a}):xa.Children.map(o,s=>(xa.isValidElement(s),s))})]}),n&&me("div",{className:"text-sm text-gray-900 md:hidden",children:[C("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),C("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),r&&me("div",{className:i("mt-3 text-sm text-gray-900 md:hidden"),children:[C("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),C("span",{className:"font-semibold",children:r})]}),C("div",{className:"hidden mt-4 text-sm font-semibold text-gray-900 md:block",children:t?me(nr,{children:[C("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250710143736-638877550567721225.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),C("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):me(nr,{children:[C("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:C("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",C("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),E0=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,className:s=""})=>me(nr,{children:[C("div",{className:i(s),children:C(z0,{dateExpired:r,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,children:o})}),C("style",{children:`
|
|
308
325
|
.qrcode__scan__container {
|
|
309
326
|
padding: 15px;
|
|
310
327
|
background-color: white;
|
|
@@ -372,7 +389,7 @@ import*as Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
372
389
|
transform: translate3d(0, 30%, 0);
|
|
373
390
|
}
|
|
374
391
|
}
|
|
375
|
-
`})]}),
|
|
392
|
+
`})]}),H0=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:r,loading:n,onQrLoaded:s,qrImageBase64:l,qrCodeRef:m,dateExpired:c,priceOrder:d,titleOrder:p})=>{let[g,v]=xa.useState(void 0);return xa.useEffect(()=>{a?pm(a).then(v).catch(()=>v(void 0)):v(void 0)},[a]),xa.useEffect(()=>{t&&g&&typeof s=="function"&&!o&&s()},[t,g,s,o]),me("div",{className:"relative z-[1] ",children:[me("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:m,children:[C("div",{className:i(" mb-2 hidden text-base font-bold text-gray-900 md:block",l&&"opacity-0 md:opacity-100"),children:p||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),l&&C("div",{className:"visible absolute left-0 right-0 top-0 z-20 cursor-pointer opacity-100 md:hidden md:select-none",children:C("img",{src:l,alt:"QR Code"})}),me(E0,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,children:[t&&g&&!o&&C(L0,{value:t,size:215,imageSettings:{src:`${g}`,height:40,width:40,excavate:!0},level:"H"}),r&&C("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:C("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&C("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:C(Xr,{size:"lg"})})]})]}),me("div",{className:"relative z-10 px-5 pb-5 text-center bg-pink-50 bg-repeat-y select-none qrcode__guide",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[me("div",{className:i("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[me("div",{className:"rounded-full ripple size-5",children:[C("div",{className:"ripple-1"}),C("div",{className:"ripple-2"})]}),C("img",{className:"object-contain relative z-10 -mt-1 drop-shadow-lg select-none qrcode__hand size-7",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),C("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),C(Ci,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:me("div",{className:"flex justify-center items-center space-x-1 text-sm font-semibold text-center text-pink-600 cursor-pointer",children:[C("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",C(A0,{className:"size-4"})," "]})}),C("style",{children:`
|
|
376
393
|
.ripple {
|
|
377
394
|
box-sizing: border-box;
|
|
378
395
|
position: relative;
|
|
@@ -428,7 +445,7 @@ import*as Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
428
445
|
transform: scale(1) translateY(0);
|
|
429
446
|
}
|
|
430
447
|
}
|
|
431
|
-
`})]})]})},rm=x0;import{Fragment as P0,jsx as vr}from"react/jsx-runtime";var y0=["qrcode__gradient","qrcode__guide","qrcode__title"],w0=e=>!y0.some(o=>e.classList?.contains(o)),N0=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:i,dateExpired:n,priceOrder:s,titleOrder:l,className:m})=>{let c=h0(null),[d,p]=sm(null),[g,v]=sm(!1);return nm(()=>{g&&c.current&&b0(c.current,{filter:w0}).then(C=>{console.log("QR Image generated:",C.substring(0,50)+"..."),p(C)}).catch(C=>{console.error("Error generating QR image:",C)})},[g,t]),nm(()=>{e&&v(!1)},[e]),vr(P0,{children:vr("div",{className:r("relative h-full md:col-span-7 md:rounded-lg",m),children:vr(rm,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:i,expired:o,loading:e,qrCodeRef:c,titleOrder:l,onQrLoaded:()=>{v(!0)},qrImageBase64:d,dateExpired:n,priceOrder:s})})})};import T0 from"color";import k0 from"tailwindcss/plugin.js";var lm={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 mm={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var cm={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var dm={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var pm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var fm={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var gm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var um={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var vm={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var xm={white:"#ffffff",black:"#000000",blue:mm,green:cm,pink:dm,purple:pm,red:fm,yellow:gm,gray:vm,orange:um};var xr={...xm};var hm={"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 lt="250ms",bm={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":lt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":lt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":lt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":lt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":lt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":lt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":lt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":lt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":lt},".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":lt}};var ym={".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 wm={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}};var Nm={...ym,...bm,...wm};import{flatten as C0}from"flat";function R0(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 Pm=e=>R0(C0(e,{safe:!0,delimiter:"-"}));var S0=e=>{let o={utilities:{},colors:{}},t=Pm(xr),a=hm,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=T0(s).rgb().array(),d=`--${e}-${n}`;o.utilities[i][d]=`${l} ${m} ${c}`,o.colors[n]=`rgb(var(${d}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([m,c])=>{let d=`${l}-${m}`;o.utilities[i][d]=c});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=m}}),o},D0=()=>{let e="mobase",o=S0(e);return k0(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Nm})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},extend:{fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"],mono:["SFMono-Regular","Consolas","Liberation Mono","Menlo","monospace"]},colors:{...xr,...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)`},...lm}}})};import{Fragment as I0,jsx as D,jsxs as A0}from"react/jsx-runtime";var M0=A0(I0,{children:[D("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"}),D("meta",{name:"distribution",content:"Global"}),D("meta",{name:"author",content:"V\xED MoMo"}),D("meta",{property:"fb:app_id",content:"320653355376196"}),D("meta",{property:"fb:pages",content:"138010322921640"}),D("link",{rel:"shortcut icon",href:"/favicon.ico"}),D("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),D("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),D("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),D("meta",{name:"language",content:"vietnamese"}),D("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),D("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),D("meta",{name:"RATING",content:"GENERAL"}),D("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),D("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),D("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),D("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),D("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),D("link",{rel:"dns-prefetch",href:"//facebook.com"}),D("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),D("link",{rel:"dns-prefetch",href:"//www.google.com"}),D("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),D("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),D("link",{rel:"preconnect",href:"//connect.facebook.net"}),D("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),D("link",{rel:"preconnect",href:"//www.google-analytics.com"}),D("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),D("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),D("link",{rel:"preconnect",href:"//www.google.com"}),D("link",{rel:"preconnect",href:"//www.google.com.vn"}),D("link",{rel:"preconnect",href:"//www.googleadservices.com"}),D("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
448
|
+
`})]})]})},gm=H0;import{Fragment as W0,jsx as Ri}from"react/jsx-runtime";var B0=["qrcode__gradient","qrcode__guide","qrcode__title"],O0=e=>!B0.some(o=>e.classList?.contains(o)),V0=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:m})=>{let c=F0(null),[d,p]=vm(null),[g,v]=vm(!1);return um(()=>{if(g&&c.current){let T=setTimeout(()=>{c.current&&_0(c.current,{filter:O0}).then(D=>{p(D)}).catch(D=>{console.error("Error generating QR image:",D)})},2e3);return()=>clearTimeout(T)}},[g,t]),um(()=>{e&&v(!1)},[e]),Ri(W0,{children:Ri("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",m),children:Ri(gm,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:r,expired:o,loading:e,qrCodeRef:c,titleOrder:l,onQrLoaded:()=>{v(!0)},qrImageBase64:d,dateExpired:n,priceOrder:s})})})};import j0 from"color";import Q0 from"tailwindcss/plugin.js";var xm={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 hm={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var bm={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var ym={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var wm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Nm={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Pm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Cm={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Rm={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var Tm={white:"#ffffff",black:"#000000",blue:hm,green:bm,pink:ym,purple:wm,red:Nm,yellow:Pm,gray:Rm,orange:Cm};var Ti={...Tm};var km={"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 mt="250ms",Sm={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":mt},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":mt},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":mt},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":mt},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":mt},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":mt},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":mt},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":mt},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":mt},".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":mt}};var Dm={".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 Mm={".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 Im={...Dm,...Sm,...Mm};import{flatten as G0}from"flat";function $0(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 Am=e=>$0(G0(e,{safe:!0,delimiter:"-"}));var U0=e=>{let o={utilities:{},colors:{}},t=Am(Ti),a=km,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=j0(s).rgb().array(),d=`--${e}-${n}`;o.utilities[r][d]=`${l} ${m} ${c}`,o.colors[n]=`rgb(var(${d}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([m,c])=>{let d=`${l}-${m}`;o.utilities[r][d]=c});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[r][l]=m}}),o},q0=()=>{let e="mobase",o=U0(e);return Q0(({addBase:t,addUtilities:a,addComponents:r})=>{r({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Im})},{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:{...Ti,...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)`},...xm}}})};import{Fragment as Y0,jsx as M,jsxs as Z0}from"react/jsx-runtime";var X0=Z0(Y0,{children:[M("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"}),M("meta",{name:"distribution",content:"Global"}),M("meta",{name:"author",content:"V\xED MoMo"}),M("meta",{property:"fb:app_id",content:"320653355376196"}),M("meta",{property:"fb:pages",content:"138010322921640"}),M("link",{rel:"shortcut icon",href:"/favicon.ico"}),M("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),M("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),M("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),M("meta",{name:"language",content:"vietnamese"}),M("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),M("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),M("meta",{name:"RATING",content:"GENERAL"}),M("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),M("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),M("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),M("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),M("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),M("link",{rel:"dns-prefetch",href:"//facebook.com"}),M("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),M("link",{rel:"dns-prefetch",href:"//www.google.com"}),M("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),M("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),M("link",{rel:"preconnect",href:"//connect.facebook.net"}),M("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),M("link",{rel:"preconnect",href:"//www.google-analytics.com"}),M("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),M("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),M("link",{rel:"preconnect",href:"//www.google.com"}),M("link",{rel:"preconnect",href:"//www.google.com.vn"}),M("link",{rel:"preconnect",href:"//www.googleadservices.com"}),M("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
432
449
|
"@context": "https://schema.org/",
|
|
433
450
|
"@type": "WebSite",
|
|
434
451
|
"@id":"https://www.momo.vn/#website",
|
|
@@ -438,7 +455,7 @@ import*as Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
438
455
|
"@type": "SearchAction",
|
|
439
456
|
"target": "https://www.momo.vn/tim-kiem?q={search_term_string}",
|
|
440
457
|
"query-input": "required name=search_term_string"
|
|
441
|
-
}}`}}),
|
|
458
|
+
}}`}}),M("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
442
459
|
"@context": "https://schema.org",
|
|
443
460
|
"@type": "Organization",
|
|
444
461
|
"name": "Si\xEAu \u1EE9ng d\u1EE5ng MoMo",
|
|
@@ -473,5 +490,5 @@ import*as Io from"react";import{ChevronDownIcon as Sm}from"@heroicons/react/20/s
|
|
|
473
490
|
"https://www.linkedin.com/company/momo-mservice/",
|
|
474
491
|
"https://github.com/momo-wallet"
|
|
475
492
|
]
|
|
476
|
-
}`}})]});export{
|
|
493
|
+
}`}})]});export{dt as Accordion,gt as AccordionContent,pt as AccordionItem,ft as AccordionTrigger,Be as ActionButton,hd as AlertDialog,vn as AlertDialogAction,xn as AlertDialogCancel,dn as AlertDialogContent,un as AlertDialogDescription,fn as AlertDialogFooter,pn as AlertDialogHeader,kr as AlertDialogOverlay,cn as AlertDialogPortal,gn as AlertDialogTitle,bd as AlertDialogTrigger,E as AspectRatio,Nf as Badge,Gc as BlogSection,zi as Breadcrumb,Oi as BreadcrumbEllipsis,Hi as BreadcrumbItem,Fi as BreadcrumbLink,Ei as BreadcrumbList,_i as BreadcrumbPage,Bi as BreadcrumbSeparator,Me as Button,b as ButtonsBlock,Fu as CTASection,Ta as Calendar,na as Callout,rs as Card,ls as CardContent,ss as CardDescription,ms as CardFooter,is as CardHeader,ns as CardTitle,fe as Carousel,ge as CarouselContent,yo as CarouselDots,se as CarouselItem,bo as CarouselNext,ho as CarouselPrevious,Ca as Checkbox,Wa as ChoiceboxGroup,Ga as ChoiceboxGroupItem,ks as ChoiceboxMultiItem,tf as Combobox,ef as ComboboxContent,Jp as ComboboxTrigger,$r as Command,Yp as CommandDialog,ps as CommandEmpty,fs as CommandGroup,cs as CommandInput,us as CommandItem,ds as CommandList,gs as CommandSeparator,vs as CommandShortcut,$f as Comment,ld as DatePicker,xd as DateSelect,_e as Dialog,Xe as DialogBody,cr as DialogClose,Ie as DialogContent,Li as DialogDescription,Ai as DialogFooter,go as DialogHeader,dr as DialogOverlay,Ii as DialogPortal,jt as DialogQr,uo as DialogTitle,Oo as DialogTrigger,Jl as Drawer,nm as DrawerBody,T0 as DrawerClose,tm as DrawerContent,im as DrawerDescription,am as DrawerFooter,om as DrawerHeader,Ni as DrawerOverlay,em as DrawerPortal,rm as DrawerTitle,R0 as DrawerTrigger,pg as DropdownMenu,il as DropdownMenuCheckboxItem,al as DropdownMenuContent,gg as DropdownMenuGroup,rl as DropdownMenuItem,sl as DropdownMenuLabel,ug as DropdownMenuPortal,xg as DropdownMenuRadioGroup,nl as DropdownMenuRadioItem,ll as DropdownMenuSeparator,ml as DropdownMenuShortcut,vg as DropdownMenuSub,ol as DropdownMenuSubContent,tl as DropdownMenuSubTrigger,fg as DropdownMenuTrigger,Pu as FAQSection,iu as FeatureSection,Up as Footer,lg as Form,Ks as FormControl,Js as FormDescription,mg as FormField,Ys as FormItem,Zs as FormLabel,el as FormMessage,zd as GuideSection,es as HeaderNavigation,ur as Heading,x as HeadingBlock,xr as HeadingGroup,vr as HeadingSub,gr as HeadingTagline,Lg as HeroSection,ht as HorizontalContent,yt as HorizontalNext,bt as HorizontalPrevious,xt as HorizontalScroll,wg as HowItWorksSection,ie as IconButton,lm as InputOTP,mm as InputOTPGroup,dm as InputOTPSeparator,cm as InputOTPSlot,qr as LightBoxGalleryContent,Ur as LightboxGallery,xf as LightboxThumbnail,Gu as MetricsSection,za as NavigationMenu,Ba as NavigationMenuContent,Ha as NavigationMenuItem,oa as NavigationMenuLink,Ea as NavigationMenuList,_a as NavigationMenuTrigger,Au as NewsSection,Tn as Pagination,Xl as Payment,Pi as PaymentGuide,Ci as PaymentGuideDialog,Qu as PaymentInvoice,e0 as PaymentMethods,u0 as PaymentResult,s0 as PaymentResultContent,r0 as PaymentResultFooter,$o as Popover,No as PopoverContent,jo as PopoverTrigger,eg as ProgressSteps,Jf as ProgressStepsItem,Kf as ProgressStepsItemTrigger,Ls as Progressbar,V0 as QRPayment,Gn as RadioGroup,$n as RadioGroupItem,Yr as ReadMoreLite,ff as SearchBar,B as SectionBlock,qo as Select,Co as SelectContent,Yo as SelectGroup,Mt as SelectItem,an as SelectLabel,Rr as SelectScrollDownButton,Cr as SelectScrollUpButton,rn as SelectSeparator,Po as SelectTrigger,Xo as SelectValue,X0 as SiteMeta,$a as Skeleton,Hs as Slider,Jg as SocialProofSection,Xr as Spinner,Hn as Stepper,On as Switch,wt as Tabs,Ke as TabsContent,Ye as TabsList,Ze as TabsTrigger,hu as TestimonialSection,Wd as TextArea,pe as TextButton,cp as TextInput,An as ToastAction,Jd as Toaster,tp as Tooltip,Ln as TooltipArrow,zn as TooltipContent,ep as TooltipProvider,op as TooltipTrigger,N0 as Topbar,Ds as badgeVariants,qe as buttonVariants,q0 as mobaseTW,Fa as navigationMenuTriggerStyle,ji as textButtonVariants,Dn as toast,ma as useFormField,Lr as useToast};
|
|
477
494
|
//# sourceMappingURL=index.js.map
|