@momo-webplatform/mobase 0.2.106-link → 0.2.106
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 +20 -20
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +71 -16
- package/dist/esm/index.d.ts +71 -16
- package/dist/esm/index.js +22 -22
- 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 Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/solid";import*as Ie from"@radix-ui/react-accordion";import*as Ym from"react";import{twMerge as Zm}from"tailwind-merge";var ht={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 ji={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 $o=[{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"}],yr=[{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 pe={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 i(...e){return Zm(e)}var Qi=Km({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Av=Qi.createMediaStyle(),{Media:Ke,MediaContextProvider:ho}=Qi;import{jsx as xo,jsxs as ec}from"react/jsx-runtime";var xt=Go.forwardRef(({className:e,...o},t)=>xo(Ie.Root,{ref:t,...o}));xt.displayName="AccordionRoot";var bt=Go.forwardRef(({className:e,...o},t)=>xo(Ie.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));bt.displayName="AccordionItem";var yt=Go.forwardRef(({className:e,children:o,...t},a)=>xo(Ie.Header,{className:"flex",children:ec(Ie.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,xo(Jm,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));yt.displayName=Ie.Trigger.displayName;var wt=Go.forwardRef(({className:e,children:o,...t},a)=>xo(Ie.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:xo("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));wt.displayName=Ie.Content.displayName;import*as Ui from"react";import{Slot as ac}from"@radix-ui/react-slot";import{cva as rc}from"class-variance-authority";import{jsx as Le,jsxs as oc}from"react/jsx-runtime";var tc=({className:e})=>oc("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"}),Le("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"})]}),bo=tc;import{Fragment as nc,jsx as wr,jsxs as ic}from"react/jsx-runtime";var Je=rc("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"}}),Ae=Ui.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?ac:"button",c=i(Je({variant:o,size:t,className:e}),{"cursor-wait":r});return wr(nc,{children:a?wr(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):ic(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[r&&wr(bo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Ae.displayName="Button";import{QRCodeSVG as lc}from"qrcode.react";import*as jo from"react";import{XMarkIcon as sc}from"@heroicons/react/16/solid";import*as Y from"@radix-ui/react-dialog";import{jsx as Nt,jsxs as Nr}from"react/jsx-runtime";var Ge=Y.Root,Qo=Y.Trigger,qi=Y.Portal,Pr=Y.Close,Cr=jo.forwardRef(({className:e,...o},t)=>Nt(Y.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}));Cr.displayName=Y.Overlay.displayName;var Fe=jo.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 Nr(qi,{children:[Nt(Cr,{}),Nr(Y.Content,{ref:c,className:i(...v),...m,children:[l,!t&&Nr(Y.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:[Nt(sc,{className:"h-5 w-5 text-gray-700"}),Nt("span",{className:"sr-only",children:"Close"})]})]})]})});Fe.displayName=Y.Content.displayName;var yo=({className:e,...o})=>Nt("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});yo.displayName="DialogHeader";var et=({className:e,isCondensed:o=!1,...t})=>Nt("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});et.displayName="DialogBody";var Xi=({className:e,isDivider:o=!0,...t})=>Nt("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});Xi.displayName="DialogFooter";var wo=jo.forwardRef(({className:e,...o},t)=>Nt(Y.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));wo.displayName=Y.Title.displayName;var Yi=jo.forwardRef(({className:e,...o},t)=>Nt(Y.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));Yi.displayName=Y.Description.displayName;import{Fragment as Rr,jsx as M,jsxs as fe}from"react/jsx-runtime";var mc=({img:e="",children:o,isQrForAll:t})=>fe(Rr,{children:[M("div",{className:"qrcode__scan__container",children:fe("div",{className:"qrcode__scan",children:[M("div",{className:"qrcode__gradient",children:M("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),M("div",{className:"qrcode__border",children:M("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),M("div",{className:"p-4 qrcode__image",children:e?M("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),M("div",{className:"mt-4 text-sm text-white",children:t?fe(Rr,{children:[M("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),M("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):fe(Rr,{children:[M("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:M("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",M("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),M("style",{children:`
|
|
1
|
+
import*as jo from"react";import{ChevronDownIcon as ic}from"@heroicons/react/20/solid";import*as Fe from"@radix-ui/react-accordion";import*as oc from"react";import{twMerge as ac}from"tailwind-merge";var ht={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 Yi={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 $o=[{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"}],Pr=[{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 fe={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 rc}from"@artsy/fresnel";function i(...e){return ac(e)}var Zi=rc({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),Hv=Zi.createMediaStyle(),{Media:Je,MediaContextProvider:yo}=Zi;import{jsx as No,jsxs as nc}from"react/jsx-runtime";var xt=jo.forwardRef(({className:e,...o},t)=>No(Fe.Root,{ref:t,...o}));xt.displayName="AccordionRoot";var bt=jo.forwardRef(({className:e,...o},t)=>No(Fe.Item,{ref:t,className:i("border-b border-gray-200",e),...o}));bt.displayName="AccordionItem";var yt=jo.forwardRef(({className:e,children:o,...t},a)=>No(Fe.Header,{className:"flex",children:nc(Fe.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,No(ic,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));yt.displayName=Fe.Trigger.displayName;var Nt=jo.forwardRef(({className:e,children:o,...t},a)=>No(Fe.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:No("div",{className:i("pb-4 pt-0 text-gray-900 ",e),children:o})}));Nt.displayName=Fe.Content.displayName;import*as Ki from"react";import{Slot as mc}from"@radix-ui/react-slot";import{cva as cc}from"class-variance-authority";import{jsx as ze,jsxs as lc}from"react/jsx-runtime";var sc=({className:e})=>lc("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[ze("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"}),ze("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"}),ze("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"}),ze("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"}),ze("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"}),ze("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"}),ze("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"}),ze("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"}),ze("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"}),ze("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"}),ze("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"}),ze("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"})]}),wo=sc;import{Fragment as pc,jsx as Cr,jsxs as dc}from"react/jsx-runtime";var et=cc("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"}}),Ne=Ki.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:r=!1,isDisabled:n=!1,...s},l)=>{let m=a?mc:"button",c=i(et({variant:o,size:t,className:e}),{"cursor-wait":r});return Cr(pc,{children:a?Cr(m,{className:c,type:"button",disabled:n,ref:l,...s,children:s.children}):dc(m,{className:c,type:"button",disabled:n,ref:l,...s,children:[r&&Cr(wo,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Ne.displayName="Button";import{QRCodeSVG as gc}from"qrcode.react";import*as Qo from"react";import{XMarkIcon as fc}from"@heroicons/react/16/solid";import*as Y from"@radix-ui/react-dialog";import{jsx as wt,jsxs as Rr}from"react/jsx-runtime";var Se=Y.Root,Uo=Y.Trigger,Ji=Y.Portal,kr=Y.Close,Tr=Qo.forwardRef(({className:e,...o},t)=>wt(Y.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}));Tr.displayName=Y.Overlay.displayName;var we=Qo.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 Rr(Ji,{children:[wt(Tr,{}),Rr(Y.Content,{ref:c,className:i(...v),...m,children:[l,!t&&Rr(Y.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:[wt(fc,{className:"h-5 w-5 text-gray-700"}),wt("span",{className:"sr-only",children:"Close"})]})]})]})});we.displayName=Y.Content.displayName;var Bt=({className:e,...o})=>wt("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});Bt.displayName="DialogHeader";var Ee=({className:e,isCondensed:o=!1,...t})=>wt("div",{className:i("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});Ee.displayName="DialogBody";var Ta=({className:e,isDivider:o=!0,...t})=>wt("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});Ta.displayName="DialogFooter";var Ot=Qo.forwardRef(({className:e,...o},t)=>wt(Y.Title,{ref:t,className:i("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Ot.displayName=Y.Title.displayName;var en=Qo.forwardRef(({className:e,...o},t)=>wt(Y.Description,{ref:t,className:i("text-sm text-gray-700",e),...o}));en.displayName=Y.Description.displayName;import{Fragment as Sr,jsx as D,jsxs as ge}from"react/jsx-runtime";var uc=({img:e="",children:o,isQrForAll:t})=>ge(Sr,{children:[D("div",{className:"qrcode__scan__container",children:ge("div",{className:"qrcode__scan",children:[D("div",{className:"qrcode__gradient",children:D("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),D("div",{className:"qrcode__border",children:D("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),D("div",{className:"p-4 qrcode__image",children:e?D("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy"}):o})]})}),D("div",{className:"mt-4 text-sm text-white",children:t?ge(Sr,{children:[D("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),D("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"})]}):ge(Sr,{children:[D("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:D("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",D("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),D("style",{children:`
|
|
2
2
|
.qrcode__scan__container {
|
|
3
3
|
padding: 15px;
|
|
4
4
|
background-color: white;
|
|
@@ -67,7 +67,7 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
67
67
|
transform: translate3d(0, 30%, 0);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
`})]}),Zt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>M(Ge,{...m,children:M(Fe,{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:M(et,{className:"p-0",children:fe("div",{className:"flex flex-row flex-wrap",children:[M("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||fe("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[fe("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),fe("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),M("div",{className:"mt-1 text-gray-500",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),fe("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),fe("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),M("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),fe("div",{className:"flex flex-nowrap items-center",children:[M("div",{className:"flex-none",children:M("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),fe("div",{className:"flex-1 pl-4",children:[M("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),fe("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),M("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:fe("div",{className:"px-5 py-10 text-center",children:[t&&M("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),fe("div",{className:"relative",children:[l&&M("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:M("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),M(mc,{img:r,isQrForAll:l,children:n&&M(lc,{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 vc}from"react";import{useEffect as cc,useLayoutEffect as dc,useState as pc}from"react";import fc from"ua-parser-js";var gc=()=>fc().device.type==="mobile",uc=typeof window<"u"?dc:cc,No=()=>{let[e,o]=pc(!1);return uc(()=>{o(gc())},[]),e};import{Fragment as hc,jsx as ka,jsxs as xc}from"react/jsx-runtime";var je=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=vc(!1),c=No(),d=!!a?.qrLink,p=()=>{let A=d?a?.qrLink:e;return typeof A=="string"?A.trim():""},g=()=>{let A=p();!A&&typeof e!="function"||(typeof e=="function"?e():window.open(A,o?"_blank":"_self"))},v=(A,B=0)=>{let z=document.querySelector(A);if(!z)return;let P=z.getBoundingClientRect().top+window.scrollY-B;window.scrollTo({top:P,behavior:"smooth"})},y=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):g()},C=()=>xc(hc,{children:[ka(Ae,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),ka(Zt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?C():ka(Ae,{...s,className:r,onClick:g,"data-name":"button-action-with-qr",children:n}):C():ka(Ae,{...s,onClick:y,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as Po from"react";import{ChevronRightIcon as Nc,DotsHorizontalIcon as Pc}from"@radix-ui/react-icons";import{Slot as Cc}from"@radix-ui/react-slot";import{useRouter as Rc}from"next/router";import{useRouter as yc}from"next/router";var bc=({href:e,locale:o,defaultLocale:t,basePath:a=""})=>{if(!o||o===t||!e.startsWith("/")||/\.(pdf|docx|xlsx|doc|xls)$/i.test(e))return e;let r=`/${o}`,n=new RegExp(`^${a}(?=[/#?]|$)`);return a&&a!=="/"&&n.test(e)?e.replace(n,`${a}${r}`):`${r}${e}`},Kt=({href:e,locale:o,defaultLocale:t,basePath:a})=>e?bc({href:e,locale:o,defaultLocale:t,basePath:a}):void 0;import{jsx as wc}from"react/jsx-runtime";var T=({href:e,children:o,...t})=>{let a=yc(),{locale:r,basePath:n,defaultLocale:s}=a;return wc("a",{href:Kt({href:e,locale:r,basePath:n,defaultLocale:s}),...t,children:o})};import{jsx as Pt,jsxs as kc}from"react/jsx-runtime";var Zi=Po.forwardRef(({className:e,...o},t)=>Pt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Zi.displayName="Breadcrumb";var Ki=Po.forwardRef(({className:e,...o},t)=>Pt("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}));Ki.displayName="BreadcrumbList";var Ji=Po.forwardRef(({className:e,...o},t)=>Pt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Ji.displayName="BreadcrumbItem";var en=Po.forwardRef(({asChild:e,className:o,href:t,...a},r)=>{let n=Rc(),{locale:s,basePath:l,defaultLocale:m}=n;return Pt(e?Cc:"a",{ref:r,className:i("transition-colors hover:text-foreground",o),href:Kt({href:t,locale:s,basePath:l,defaultLocale:m}),...a})});en.displayName="BreadcrumbLink";var tn=Po.forwardRef(({className:e,...o},t)=>Pt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));tn.displayName="BreadcrumbPage";var on=({children:e,className:o,...t})=>Pt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??Pt(Nc,{className:"w-2 h-2"})});on.displayName="BreadcrumbSeparator";var an=({className:e,...o})=>kc("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[Pt(Pc,{className:"w-4 h-4 text-gray-900"}),Pt("span",{className:"sr-only",children:"More"})]});an.displayName="BreadcrumbElipssis";import Ir from"html-react-parser";import{createContext as Tc,useContext as rn}from"react";import{jsx as Uo}from"react/jsx-runtime";var kr=Tc({align:"center"}),Tr=({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 Uo("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Sr=({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}=rn(kr);return Uo(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})},Dr=({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}=rn(kr);return Uo("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})},Mr=({className:e,align:o="center",children:t})=>Uo("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Uo(kr.Provider,{value:{align:o},children:t})});import{jsx as Jt,jsxs as Sc}from"react/jsx-runtime";var V=({idSection:e,className:o,background:t,children:a})=>Jt("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Jt("div",{className:"wrapper relative",children:a})}),h=({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:Sc(Mr,{align:e,className:l,children:[o&&Jt(Tr,{color:m,children:o}),t&&Jt(Sr,{tagHeading:r,color:c,size:s,children:Ir(t)}),a&&Jt(Dr,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:Ir(a)})]})},x=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Jt("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 Jt(je,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:Ir(s)},n)})});import $c,{memo as Gc}from"react";import{ArrowDownIcon as jc}from"@heroicons/react/20/solid";import Qc from"html-react-parser";import{createContext as Lc,useCallback as Ac,useContext as Lr,useEffect as Fc,useRef as Ec,useState as zc}from"react";import{ChevronLeft as Hc,ChevronRight as _c}from"lucide-react";import*as nn from"react";import{Slot as Dc}from"@radix-ui/react-slot";import{cva as Mc}from"class-variance-authority";import{jsx as Ic}from"react/jsx-runtime";var eo=Mc("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=nn.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Dc:"button",m=i(eo({variant:o,size:t,className:e}));return Ic(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ne.displayName="IconButton";import{Fragment as Bc,jsx as Ht,jsxs as sn}from"react/jsx-runtime";var Ta=Lc(void 0),Ct=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=Ec(null),[n,s]=zc({left:!1,right:!1}),l=Ac(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);Fc(()=>{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,y=g*.7*(c==="left"?-1:1),C=p+y;C<0?C=0:C>v-g&&(C=v-g),d.scrollTo({left:C,behavior:"smooth"})}};return Ht(Ta.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:sn("div",{className:i("relative w-full",t),children:[e&&sn(Bc,{children:[n.left&&Ht("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&&Ht("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]})})},Rt=({className:e,children:o})=>{let t=Lr(Ta);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Ht("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},kt=({className:e,children:o,...t})=>{let a=Lr(Ta);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Ht(ne,{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||Ht(Hc,{className:"h-4 w-4"})}):null},Tt=({className:e,children:o,...t})=>{let a=Lr(Ta);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Ht(ne,{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||Ht(_c,{className:"h-4 w-4"})}):null};import*as Sa from"react";import*as Qe from"@radix-ui/react-tabs";import{jsx as Ar}from"react/jsx-runtime";var St=Qe.Root,tt=Sa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>Ar(Qe.List,{ref:r,className:i("inline-flex w-full flex-row items-center space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));tt.displayName=Qe.List.displayName;var ot=Sa.forwardRef(({className:e,...o},t)=>Ar(Qe.Trigger,{ref:t,className:i("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap border-b-2 border-transparent py-3 font-semibold text-gray-900 transition-all hover:text-pink-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-pink-500 data-[state=active]:text-pink-500",e),...o}));ot.displayName=Qe.Trigger.displayName;var at=Sa.forwardRef(({className:e,...o},t)=>Ar(Qe.Content,{ref:t,className:i("ring-offset-background focus-visible:ring-ring mt-3 text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e),...o}));at.displayName=Qe.Content.displayName;import*as ln from"react";import{Slot as Oc}from"@radix-ui/react-slot";import{cva as Vc}from"class-variance-authority";import{jsx as Wc}from"react/jsx-runtime";var mn=Vc("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"}}),ge=ln.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Oc:"button",m=i(mn({variant:o,size:t,className:e}));return Wc(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ge.displayName="TextButton";import{Fragment as cn,jsx as j,jsxs as rt}from"react/jsx-runtime";var Uc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return rt(cn,{children:[j("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:j("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:rt("picture",{children:[j("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),j("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),rt("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&j(ge,{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}),j("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}),rt("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&rt(cn,{children:[j(ge,{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&&j("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&j("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Da=Gc(({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)=>rt("div",{children:[j("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)=>j("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:j("div",{onClick:y=>m(y,g?.id,g?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:j(Uc,{blog:g})},g?.id)},v))}),d?.isShowBtn&&j("div",{className:"flex items-center justify-center w-full mt-8",children:rt(je,{action:r?()=>r?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[Qc(d.btnName||"Xem th\xEAm"),d?.isLoading?j(bo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&j(jc,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||p);return rt($c.Fragment,{children:[e&&j(h,{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?rt(St,{defaultValue:t[0]?.title,children:[rt(Ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[j(Rt,{className:"mb-6 text-center",children:j(tt,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,p)=>j(ot,{value:d.title,children:d.title},d.title+p))})}),j(kt,{}),j(Tt,{})]}),t.map((d,p)=>j(at,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import Kc,{memo as Jc,useEffect as ed,useState as fn}from"react";import{ChevronLeftIcon as td,ChevronRightIcon as od}from"@heroicons/react/20/solid";import gn from"html-react-parser";import*as W from"react";import{ChevronLeftIcon as qc,ChevronRightIcon as Xc}from"@heroicons/react/20/solid";import Yc from"embla-carousel-react";import{Fragment as Zc,jsx as Ee,jsxs as pn}from"react/jsx-runtime";var dn=W.createContext(null);function qo(){let e=W.useContext(dn);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ue=W.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=Yc({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=W.useState(!1),[g,v]=W.useState(!1),y=W.useCallback(B=>{B&&(p(B.canScrollPrev()),v(B.canScrollNext()))},[]),C=W.useCallback(()=>{c?.scrollPrev()},[c]),w=W.useCallback(()=>{c?.scrollNext()},[c]),A=W.useCallback(B=>{B.key==="ArrowLeft"?(B.preventDefault(),C()):B.key==="ArrowRight"&&(B.preventDefault(),w())},[C,w]);return W.useEffect(()=>{!c||!t||t(c)},[c,t]),W.useEffect(()=>{if(c)return y(c),c.on("reInit",y),c.on("select",y),()=>{c?.off("select",y)}},[c,y]),Ee(dn.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:C,scrollNext:w,canScrollPrev:d,canScrollNext:g},children:Ee("div",{ref:l,onKeyDownCapture:A,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});ue.displayName="Carousel";var ve=W.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=qo();return Ee("div",{ref:r,className:i("overflow-hidden",o),children:Ee("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ve.displayName="CarouselContent";var ce=W.forwardRef(({className:e,...o},t)=>{let{orientation:a}=qo();return Ee("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})});ce.displayName="CarouselItem";var Co=W.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=qo();return pn(ne,{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:[Ee(qc,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Previous slide"})]})});Co.displayName="CarouselPrevious";var Ro=W.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=qo();return pn(ne,{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:[Ee(Xc,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Next slide"})]})});Ro.displayName="CarouselNext";var ko=W.forwardRef((e,o)=>{let{api:t}=qo(),[,a]=W.useState(!1),r=W.useCallback(()=>a(l=>!l),[]);W.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?Ee("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Ee(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))}):Ee(Zc,{})});ko.displayName="CarouselDots";import{Fragment as Ma,jsx as Q,jsxs as Ue}from"react/jsx-runtime";var ad=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ue(Ma,{children:[Q("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Q("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Ue("div",{className:"mt-4 md:pr-3",children:[Q("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&Q("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:gn(e?.description??"")}),Ue("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Ue(Ma,{children:[Q(ge,{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&&Q("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&Q("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},rd=({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 ed(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Ue(Ma,{children:[Q(ue,{opts:{dragFree:!1},setApi:o,className:"w-full",children:Q(ve,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>Q(ce,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:Q("div",{onClick:g=>r(g,p?.id,p?.url),className:i("group cursor-pointer",d),children:Q(ad,{blog:p})},p?.id)},p?.id))})}),s&&Q("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Ue(je,{action:m&&m,newTab:c,variant:"outline",children:[gn(l||"Xem th\xEAm")," "]})})]})},id=({carouselRef:e})=>Ue(ne,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[Q(td,{className:"h-6 w-6"}),Q("span",{className:"sr-only",children:"Previous slide"})]}),nd=({carouselRef:e})=>Ue(ne,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[Q(od,{className:"h-6 w-6"}),Q("span",{className:"sr-only",children:"Next slide"})]}),Fr=Jc(({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]=fn(null),[,l]=fn(0),m=()=>n?Ue("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[Q(id,{carouselRef:n}),Q(nd,{carouselRef:n})]}):Q(Ma,{});return Ue(Kc.Fragment,{children:[Ue("div",{className:" flex items-center justify-between",children:[e&&Q(h,{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)}),Q(m,{})]}),Q(rd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as cd,jsx as To}from"react/jsx-runtime";var sd=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return To(Da,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return To(Fr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return To(Da,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},ld=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>To(cd,{children:sd({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),md=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>To(V,{className:i("overflow-hidden",r),idSection:a,background:n,children:To(ld,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as La from"react";import{enUS as gd,vi as ud}from"date-fns/locale";import{ChevronLeft as vd,ChevronRight as hd}from"lucide-react";import xd from"lunisolar";import{DayPicker as bd}from"react-day-picker";import*as un from"react";import*as Xo from"@radix-ui/react-checkbox";import{CheckIcon as dd}from"@heroicons/react/16/solid";import{cva as vn}from"class-variance-authority";import{jsx as Er}from"react/jsx-runtime";var pd=vn("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"}}),fd=vn("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ia=un.forwardRef(({className:e,size:o,...t},a)=>Er(Xo.Root,{ref:a,className:i(pd({size:o}),e),...t,children:Er(Xo.Indicator,{className:i("flex items-center justify-center text-current"),children:Er(dd,{className:i(fd({size:o}))})})}));Ia.displayName=Xo.Root.displayName;import{Fragment as Cd,jsx as it,jsxs as zr}from"react/jsx-runtime";var yd=({date:e,cusContent:o})=>{let t=null;return t=xd(e).lunar,zr(Cd,{children:[o?o(e):e.getDate(),t&&it("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},wd={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 Nd({isShow:e,setIsShow:o,lang:t}){let a=La.useId();return it("div",{className:"w-full p-3 pt-0",children:zr("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[it(Ia,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),it("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 Pd=e=>e.getDay()===0||e.getDay()===6;function Aa({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=La.useState(!0);return it(bd,{locale:r==="vi"?ud:gd,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(Je({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(Je({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:Pd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>it(vd,{className:"h-6 w-6"}),IconRight:()=>it(hd,{className:"h-6 w-6"}),DayContent:c=>it(yd,{date:c.date,cusContent:n}),Months:({children:c})=>zr("div",{className:"w-full",children:[it("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&it(Nd,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?wd:{},...s})}Aa.displayName="Calendar";import{QuestionMarkCircleIcon as Rd,XCircleIcon as kd}from"@heroicons/react/16/solid";import{format as Fa}from"date-fns";import{Calendar as Td}from"lucide-react";import*as xn from"react";import*as Dt from"@radix-ui/react-popover";import{jsx as hn}from"react/jsx-runtime";var Yo=Dt.Root,Zo=Dt.Trigger,So=xn.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>hn(Dt.Portal,{children:hn(Dt.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));So.displayName=Dt.Content.displayName;import{Fragment as bn,jsx as ke,jsxs as Ko}from"react/jsx-runtime";var Sd=({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 Ko("div",{children:[Ko(Yo,{...m,children:[ke(Zo,{asChild:!0,children:Ko(Ae,{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:[ke("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Fa(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?ke(bn,{children:p.from?p.to?Ko(bn,{children:[ke("span",{className:"date-from",children:Fa(p.from,s)})," ",ke("span",{className:"date-separator",children:"-"}),ke("span",{className:"date-to",children:Fa(p.to,s)})]}):Fa(p.from,s):o}):o}),e&&ke("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}),ke(Td,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),ke(So,{className:"w-auto border-none !p-0",...d,children:ke(Aa,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&Ko("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?ke(kd,{width:16,height:16,className:"text-red-500"}):ke(Rd,{width:16,height:16,className:"text-gray-500"}),ke("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Ad,useState as kn}from"react";import{QuestionMarkCircleIcon as Fd,XCircleIcon as Ed}from"@heroicons/react/16/solid";import{isValid as zd}from"date-fns";import*as nt from"react";import{CheckIcon as Dd,ChevronDownIcon as yn,ChevronUpIcon as Md,XCircleIcon as Id}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Ld}from"@heroicons/react/24/outline";import*as D from"@radix-ui/react-select";import{jsx as U,jsxs as Jo}from"react/jsx-runtime";var ea=nt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Jo("div",{ref:m,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-1 [&>.select-mobase-button]:ring-red-500":"",r===2?"[&>.select-mobase-button]:h-12 [&>.select-mobase-button]:text-base":""),children:[t&&U("span",{className:i("mobase-select-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",r===2&&"-top-2.5 text-sm",n&&"text-red-500"),children:t}),U(D.Root,{disabled:s,...l,children:o}),a&&Jo("div",{className:i("mobase-select-message mt-1 flex items-center space-x-1 text-gray-500",n&&"text-red-500"),children:[n?U(Id,{width:16,height:16}):U(Ld,{width:16,height:16}),U("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),ta=D.Value,Do=nt.forwardRef(({className:e,children:o,...t},a)=>Jo(D.Trigger,{ref:a,className:i("select-mobase-button flex h-11 w-full 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-visible:border-pink-500 focus-visible:ring-1 focus-visible:!ring-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent 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",e),...t,children:[U("div",{className:"line-clamp-1 text-left",children:o}),U(D.Icon,{asChild:!0,children:U(yn,{className:"h-4 w-4 flex-none text-gray-500"})})]}));Do.displayName=D.Trigger.displayName;var Hr=nt.forwardRef(({className:e,...o},t)=>U(D.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:U(Md,{className:"h-5 w-5"})}));Hr.displayName=D.ScrollUpButton.displayName;var _r=nt.forwardRef(({className:e,...o},t)=>U(D.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center bg-gradient-to-t from-white to-transparent py-1",e),...o,children:U(yn,{className:"h-5 w-5"})}));_r.displayName=D.ScrollDownButton.displayName;var Mo=nt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>U(D.Portal,{children:Jo(D.Content,{ref:r,className:i("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 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900",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:[U(Hr,{}),U(D.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),U(_r,{})]})}));Mo.displayName=D.Content.displayName;var oa=nt.forwardRef(({className:e,children:o,...t},a)=>U(D.Group,{ref:a,className:i("relative border-b border-gray-200 p-1 after:w-full last:border-0",e),...t,children:o})),wn=nt.forwardRef(({className:e,...o},t)=>U(D.Label,{ref:t,className:i("z-[1] py-1.5 pl-7 pr-2 text-sm font-semibold",e),...o}));wn.displayName=D.Label.displayName;var _t=nt.forwardRef(({className:e,children:o,...t},a)=>Jo(D.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:[U("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:U(D.ItemIndicator,{children:U(Dd,{className:"h-4 w-4 text-pink-500"})})}),U(D.ItemText,{children:o})]})),Nn=nt.forwardRef(({className:e,...o},t)=>U(D.Separator,{ref:t,className:i("-mx-1 my-1 h-px",e),...o}));Nn.displayName=D.Separator.displayName;var Pn=["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"],Cn=["January","February","March","April","May","June","July","August","September","October","November","December"],Br=(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}},Rn=(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 oe,jsxs as st}from"react/jsx-runtime";var Hd=({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]=kn(o??null),y=Math.min(c,d),C=Math.max(c,d),w=l==="MM/yyyy",A=(P,O)=>{if(O===0){v(void 0),t?.(void 0);return}let E=g?.getFullYear()||new Date().getFullYear(),We=g?.getMonth()??0,$e=g?.getDate()??1;P==="month"&&O!==null&&(We=O-1),P==="year"&&O!==null&&(E=O),w?$e=1:P==="day"&&O!==null&&($e=O);let Ra=Br(E,We+1).daysInMonth;$e>Ra&&($e=1);let Wo=new Date(E,We,$e);zd(Wo)&&(v(Wo),t?.(Wo))},[B,z]=kn(!1),vt=P=>{z(P)};return Ad(()=>{v(o??null)},[o]),st("div",{className:i("relative",s&&"cursor-no-drop"),children:[st("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",B&&"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&&oe("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}),st("div",{className:"flex h-full flex-row divide-x",children:[!w&&st(ea,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:P=>A("day",parseInt(P,10)),onOpenChange:vt,className:"w-[30%]",children:[oe(Do,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(ta,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),oe(Mo,{onCloseAutoFocus:P=>P.preventDefault(),children:st(oa,{children:[!p&&oe(_t,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Br(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(P,O)=>(O+1).toString().padStart(2,"0")).map(P=>oe(_t,{value:P,children:P},P))]})})]}),st(ea,{value:g?(g.getMonth()+1).toString():"",onValueChange:P=>A("month",parseInt(P,10)),onOpenChange:vt,className:i(w?"w-1/2":"w-2/5"),children:[oe(Do,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(ta,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),oe(Mo,{onCloseAutoFocus:P=>P.preventDefault(),children:st(oa,{children:[!p&&oe(_t,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(P,O)=>O+1).map(P=>oe(_t,{value:P.toString(),children:m==="vi"?Pn[P-1]:Cn[P-1]},P))]})})]}),st(ea,{value:g?g.getFullYear().toString():"",onValueChange:P=>A("year",parseInt(P,10)),onOpenChange:vt,className:i(w?"w-1/2":"w-[30%]"),children:[oe(Do,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(ta,{placeholder:m==="vi"?"N\u0103m":"Year"})}),oe(Mo,{onCloseAutoFocus:P=>P.preventDefault(),children:st(oa,{children:[!p&&oe(_t,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Rn(y,C).map(P=>oe(_t,{value:P.toString(),children:P},P))]})})]})]})]}),r&&st("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?oe(Ed,{width:16,height:16,className:"text-red-500"}):oe(Fd,{width:16,height:16,className:"text-gray-500"}),oe("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as to from"react";import*as $ from"@radix-ui/react-alert-dialog";import{jsx as Mt,jsxs as Od}from"react/jsx-runtime";var _d=$.Root,Bd=$.Trigger,Tn=$.Portal,Or=to.forwardRef(({className:e,...o},t)=>Mt($.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}));Or.displayName=$.Overlay.displayName;var Sn=to.forwardRef(({className:e,...o},t)=>Od(Tn,{children:[Mt(Or,{}),Mt($.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})]}));Sn.displayName=$.Content.displayName;var Dn=({className:e,...o})=>Mt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Dn.displayName="AlertDialogHeader";var Mn=({className:e,...o})=>Mt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Mn.displayName="AlertDialogFooter";var In=to.forwardRef(({className:e,...o},t)=>Mt($.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));In.displayName=$.Title.displayName;var Ln=to.forwardRef(({className:e,...o},t)=>Mt($.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ln.displayName=$.Description.displayName;var An=to.forwardRef(({className:e,...o},t)=>Mt($.Action,{ref:t,className:i(Je({variant:"primary"}),"",e),...o}));An.displayName=$.Action.displayName;var Fn=to.forwardRef(({className:e,...o},t)=>Mt($.Cancel,{ref:t,className:i(Je({variant:"secondary"}),e),...o}));Fn.displayName=$.Cancel.displayName;import{memo as Xd,useState as Yd}from"react";import{useEffect as Vd,useState as zn}from"react";import Hn from"html-react-parser";import{motion as Wd}from"motion/react";import*as En from"@radix-ui/react-aspect-ratio";var H=En.Root;import{Fragment as _n,jsx as ae,jsxs as aa}from"react/jsx-runtime";var $d=({guideGroup:e,mockup:o})=>{let[t,a]=zn(),[r,n]=zn(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Vd(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),ae(_n,{children:e?.stepList&&e?.stepList?.length>0&&aa("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[ae("div",{className:"h-auto w-64 flex-none",children:aa("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"&&aa(_n,{children:[ae("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),ae("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:aa(ue,{setApi:a,children:[ae(ve,{className:"ml-0",children:e?.stepList.map((l,m)=>ae(ce,{className:"pl-0",children:ae(H,{ratio:o==="small"?540/960:540/1168,children:l?.image&&ae("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),ae(Co,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),ae(Ro,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),ae("div",{className:"flex flex-auto pl-12 pt-4",children:ae("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>aa("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:[ae("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}),ae("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:Hn(l.title)}),l.content&&ae(Wd.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:ae("div",{className:"mt-3 text-sm text-gray-700",children:Hn(l.content)})})]},m))})})]})})},Vr=$d;import{useEffect as Gd,useRef as jd,useState as Ea}from"react";import{ChevronRightIcon as Bn}from"@heroicons/react/20/solid";import Qd from"embla-carousel-autoplay";import za from"html-react-parser";import{Fragment as Wr,jsx as N,jsxs as we}from"react/jsx-runtime";var Ud=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=Ea(0),[s,l]=Ea();return Gd(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:N(Ge,{open:e,onOpenChange:o,children:we(Fe,{position:"bottom",height:"full",children:[N(yo,{children:N(wo,{className:"line-clamp-1",children:t?.title})}),we(et,{className:"grid overflow-hidden p-0 ",children:[N(ue,{setApi:l,className:" grid overflow-hidden",children:N(ve,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>N(ce,{className:"h-full w-full pl-0",children:we("div",{className:"flex h-full flex-col overflow-y-auto",children:[N("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:N("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:we("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"&&we(Wr,{children:[N("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),N("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:N(H,{ratio:a==="small"?540/960:540/1168,children:m?.image&&N("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),we("div",{className:"p-5 pb-12",children:[N("div",{className:"font-semibold",children:za(m.title)}),m?.content&&N("div",{className:"mt-3 text-sm text-gray-800",children:za(m.content)})]})]})},c))})}),N("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)=>N("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},qd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=Ea(!1),[n,s]=Ea(null),l=jd(Qd({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:we(Wr,{children:[e?.length>1?N("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>we("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[N("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)&&N("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),we("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:[we("div",{className:"py-2",children:[t&&N("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),N("div",{className:"font-semibold",children:za(c.title)}),c?.description&&N("div",{className:"mt-1 text-sm text-gray-500",children:za(c.description)})]}),N("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:N(Bn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&we("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[N("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:N("div",{className:"mx-auto h-auto w-72",children:we("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"&&we(Wr,{children:[N("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),N("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),N("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:N(ue,{plugins:[l.current],children:N(ve,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>N(ce,{className:"pl-0",onClick:()=>m(0),children:N(H,{ratio:o==="small"?540/960:540/1168,children:c?.image&&N("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),N("div",{className:"flex w-full flex-none justify-center",children:we(ge,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",N(Bn,{className:"ml-1 h-5 w-5"})]})})]}),a&&N(Ud,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},On=qd;import{Fragment as Zd,jsx as de,jsxs as ra}from"react/jsx-runtime";var Vn=({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 de("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:de("path",{d:t.d,fill:"currentColor"})})},$r=Xd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=Yd(t?.[0]?.title||"");return ra(Zd,{children:[e&&de(h,{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&&ra(ho,{children:[de(Ke,{lessThan:"md",children:de(On,{dataGuide:t,mockup:r,isStep:n})}),de(Ke,{greaterThan:"sm",children:t?.length>1?ra(St,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[ra(Ct,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[de(Rt,{className:"mb-6 text-center",children:de(tt,{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,y=c===p?.title||"";return ra(ot,{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":"",y&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&de(Vn,{direction:"left",className:i("right-full top-0",y?"text-pink-500":"text-pink-100")}),p.title,n&&!v&&de(Vn,{direction:"right",className:i("left-full top-0",y?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),de(kt,{}),de(Tt,{})]}),t.map((p,g)=>de(at,{value:p.title,children:de(Vr,{guideGroup:p,mockup:r})},p.title+g))]}):t?.length===1&&t[0]&&de(Vr,{guideGroup:t[0],mockup:r})})]}),a&&de(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as tp,jsx as ia}from"react/jsx-runtime";var Kd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return ia($r,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return ia($r,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Jd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>ia(tp,{children:Kd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),ep=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>ia(V,{className:i(n),background:s,idSection:e,children:ia(Jd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:m,isStep:c})});import{ChevronLeft as op,ChevronRight as ap}from"lucide-react";import{Fragment as rp,jsx as ze,jsxs as Wn}from"react/jsx-runtime";function $n({current:e,total:o,onChange:t}){let a=r=>ze("li",{children:ze("button",{className:i(eo({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return ze("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:Wn("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&ze("li",{children:ze("button",{className:i(eo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:ze(op,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):Wn(rp,{children:[a(1),e===1&&[a(2),a(3)],e>3&&ze("li",{children:ze("button",{className:i(eo({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&&ze("button",{className:i(eo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&ze("li",{children:ze("button",{className:i(eo({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:ze(ap,{className:"h-4 w-4"})})})]})})}import{forwardRef as ip}from"react";import{QuestionMarkCircleIcon as np}from"@heroicons/react/24/outline";import{XCircleIcon as sp}from"@heroicons/react/24/solid";import{jsx as Io,jsxs as Gn}from"react/jsx-runtime";var Gr=ip(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>Gn("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&Io("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}),Io("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&&Gn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?Io(sp,{width:16,height:16,className:"text-red-500"}):Io(np,{width:16,height:16,className:"text-gray-500"}),Io("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Io("style",{children:`
|
|
70
|
+
`})]}),to=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>D(Se,{...m,children:D(we,{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:D(Ee,{className:"p-0",children:ge("div",{className:"flex flex-row flex-wrap",children:[D("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||ge("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[ge("div",{className:"flex flex-nowrap items-center",children:[D("div",{className:"flex-none",children:D("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),ge("div",{className:"flex-1 pl-4",children:[D("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),D("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"})]})]}),ge("div",{className:"flex flex-nowrap items-center",children:[D("div",{className:"flex-none",children:D("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),ge("div",{className:"flex-1 pl-4",children:[D("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),D("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),ge("div",{className:"flex flex-nowrap items-center",children:[D("div",{className:"flex-none",children:D("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),ge("div",{className:"flex-1 pl-4",children:[D("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),ge("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"]})]})]})]})}),D("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:ge("div",{className:"px-5 py-10 text-center",children:[t&&D("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),ge("div",{className:"relative",children:[l&&D("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:D("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),D(uc,{img:r,isQrForAll:l,children:n&&D(gc,{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 wc}from"react";import{useEffect as vc,useLayoutEffect as hc,useState as xc}from"react";import bc from"ua-parser-js";var yc=()=>bc().device.type==="mobile",Nc=typeof window<"u"?hc:vc,Po=()=>{let[e,o]=xc(!1);return Nc(()=>{o(yc())},[]),e};import{Fragment as Pc,jsx as Sa,jsxs as Cc}from"react/jsx-runtime";var Qe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=wc(!1),c=Po(),d=!!a?.qrLink,p=()=>{let A=d?a?.qrLink:e;return typeof A=="string"?A.trim():""},g=()=>{let A=p();!A&&typeof e!="function"||(typeof e=="function"?e():window.open(A,o?"_blank":"_self"))},v=(A,O=0)=>{let E=document.querySelector(A);if(!E)return;let P=E.getBoundingClientRect().top+window.scrollY-O;window.scrollTo({top:P,behavior:"smooth"})},y=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):g()},C=()=>Cc(Pc,{children:[Sa(Ne,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),Sa(to,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?C():Sa(Ne,{...s,className:r,onClick:g,"data-name":"button-action-with-qr",children:n}):C():Sa(Ne,{...s,onClick:y,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as Co from"react";import{ChevronRightIcon as Rc,DotsHorizontalIcon as kc}from"@radix-ui/react-icons";import{Slot as Tc}from"@radix-ui/react-slot";import{jsx as Pt,jsxs as Sc}from"react/jsx-runtime";var tn=Co.forwardRef(({className:e,...o},t)=>Pt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));tn.displayName="Breadcrumb";var on=Co.forwardRef(({className:e,...o},t)=>Pt("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}));on.displayName="BreadcrumbList";var an=Co.forwardRef(({className:e,...o},t)=>Pt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));an.displayName="BreadcrumbItem";var rn=Co.forwardRef(({asChild:e,className:o,...t},a)=>Pt(e?Tc:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));rn.displayName="BreadcrumbLink";var nn=Co.forwardRef(({className:e,...o},t)=>Pt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));nn.displayName="BreadcrumbPage";var sn=({children:e,className:o,...t})=>Pt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??Pt(Rc,{className:"w-2 h-2"})});sn.displayName="BreadcrumbSeparator";var ln=({className:e,...o})=>Sc("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[Pt(kc,{className:"w-4 h-4 text-gray-900"}),Pt("span",{className:"sr-only",children:"More"})]});ln.displayName="BreadcrumbElipssis";import Fr from"html-react-parser";import{createContext as Dc,useContext as mn}from"react";import{jsx as qo}from"react/jsx-runtime";var Dr=Dc({align:"center"}),Mr=({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 qo("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Ir=({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}=mn(Dr);return qo(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})},Ar=({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}=mn(Dr);return qo("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})},Lr=({className:e,align:o="center",children:t})=>qo("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:qo(Dr.Provider,{value:{align:o},children:t})});import{jsx as oo,jsxs as Mc}from"react/jsx-runtime";var _=({idSection:e,className:o,background:t,children:a})=>oo("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:oo("div",{className:"wrapper relative",children:a})}),h=({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:Mc(Lr,{align:e,className:l,children:[o&&oo(Mr,{color:m,children:o}),t&&oo(Ir,{tagHeading:r,color:c,size:s,children:Fr(t)}),a&&oo(Ar,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:Fr(a)})]})},x=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:oo("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 oo(Qe,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:Fr(s)},n)})});import jc,{memo as Qc}from"react";import{ArrowDownIcon as Uc}from"@heroicons/react/20/solid";import qc from"html-react-parser";import{createContext as Fc,useCallback as zc,useContext as zr,useEffect as Ec,useRef as Hc,useState as _c}from"react";import{ChevronLeft as Bc,ChevronRight as Oc}from"lucide-react";import*as cn from"react";import{Slot as Ic}from"@radix-ui/react-slot";import{cva as Ac}from"class-variance-authority";import{jsx as Lc}from"react/jsx-runtime";var ao=Ac("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"}}),se=cn.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Ic:"button",m=i(ao({variant:o,size:t,className:e}));return Lc(l,{className:m,disabled:r,ref:s,...n,children:n.children})});se.displayName="IconButton";import{Fragment as Vc,jsx as Vt,jsxs as dn}from"react/jsx-runtime";var Da=Fc(void 0),Ct=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=Hc(null),[n,s]=_c({left:!1,right:!1}),l=zc(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:p,clientWidth:g}=c;s({left:d>0,right:Math.ceil(d+g)<p})}},[]);Ec(()=>{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,y=g*.7*(c==="left"?-1:1),C=p+y;C<0?C=0:C>v-g&&(C=v-g),d.scrollTo({left:C,behavior:"smooth"})}};return Vt(Da.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:dn("div",{className:i("relative w-full",t),children:[e&&dn(Vc,{children:[n.left&&Vt("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&&Vt("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]})})},Rt=({className:e,children:o})=>{let t=zr(Da);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Vt("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},kt=({className:e,children:o,...t})=>{let a=zr(Da);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Vt(se,{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||Vt(Bc,{className:"h-4 w-4"})}):null},Tt=({className:e,children:o,...t})=>{let a=zr(Da);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Vt(se,{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||Vt(Oc,{className:"h-4 w-4"})}):null};import*as Ma from"react";import*as Ue from"@radix-ui/react-tabs";import{jsx as Er}from"react/jsx-runtime";var St=Ue.Root,tt=Ma.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>Er(Ue.List,{ref:r,className:i("inline-flex w-full flex-row items-center space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));tt.displayName=Ue.List.displayName;var ot=Ma.forwardRef(({className:e,...o},t)=>Er(Ue.Trigger,{ref:t,className:i("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap border-b-2 border-transparent py-3 font-semibold text-gray-900 transition-all hover:text-pink-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-pink-500 data-[state=active]:text-pink-500",e),...o}));ot.displayName=Ue.Trigger.displayName;var at=Ma.forwardRef(({className:e,...o},t)=>Er(Ue.Content,{ref:t,className:i("ring-offset-background focus-visible:ring-ring mt-3 text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e),...o}));at.displayName=Ue.Content.displayName;import*as pn from"react";import{Slot as Wc}from"@radix-ui/react-slot";import{cva as Gc}from"class-variance-authority";import{jsx as $c}from"react/jsx-runtime";var fn=Gc("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"}}),ie=pn.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Wc:"button",m=i(fn({variant:o,size:t,className:e}));return $c(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ie.displayName="TextButton";import{Fragment as gn,jsx as j,jsxs as rt}from"react/jsx-runtime";var Xc=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return rt(gn,{children:[j("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:j("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:rt("picture",{children:[j("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),j("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),rt("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&j(ie,{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}),j("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}),rt("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&rt(gn,{children:[j(ie,{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&&j("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&j("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Ia=Qc(({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)=>rt("div",{children:[j("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)=>j("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:j("div",{onClick:y=>m(y,g?.id,g?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:j(Xc,{blog:g})},g?.id)},v))}),d?.isShowBtn&&j("div",{className:"flex items-center justify-center w-full mt-8",children:rt(Qe,{action:r?()=>r?.(p):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[qc(d.btnName||"Xem th\xEAm"),d?.isLoading?j(wo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&j(Uc,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||p);return rt(jc.Fragment,{children:[e&&j(h,{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?rt(St,{defaultValue:t[0]?.title,children:[rt(Ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[j(Rt,{className:"mb-6 text-center",children:j(tt,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,p)=>j(ot,{value:d.title,children:d.title},d.title+p))})}),j(kt,{}),j(Tt,{})]}),t.map((d,p)=>j(at,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import ed,{memo as td,useEffect as od,useState as hn}from"react";import{ChevronLeftIcon as ad,ChevronRightIcon as rd}from"@heroicons/react/20/solid";import xn from"html-react-parser";import*as W from"react";import{ChevronLeftIcon as Yc,ChevronRightIcon as Zc}from"@heroicons/react/20/solid";import Kc from"embla-carousel-react";import{Fragment as Jc,jsx as He,jsxs as vn}from"react/jsx-runtime";var un=W.createContext(null);function Xo(){let e=W.useContext(un);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ue=W.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=Kc({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[d,p]=W.useState(!1),[g,v]=W.useState(!1),y=W.useCallback(O=>{O&&(p(O.canScrollPrev()),v(O.canScrollNext()))},[]),C=W.useCallback(()=>{c?.scrollPrev()},[c]),N=W.useCallback(()=>{c?.scrollNext()},[c]),A=W.useCallback(O=>{O.key==="ArrowLeft"?(O.preventDefault(),C()):O.key==="ArrowRight"&&(O.preventDefault(),N())},[C,N]);return W.useEffect(()=>{!c||!t||t(c)},[c,t]),W.useEffect(()=>{if(c)return y(c),c.on("reInit",y),c.on("select",y),()=>{c?.off("select",y)}},[c,y]),He(un.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:C,scrollNext:N,canScrollPrev:d,canScrollNext:g},children:He("div",{ref:l,onKeyDownCapture:A,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});ue.displayName="Carousel";var ve=W.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Xo();return He("div",{ref:r,className:i("overflow-hidden",o),children:He("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ve.displayName="CarouselContent";var de=W.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Xo();return He("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})});de.displayName="CarouselItem";var Ro=W.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Xo();return vn(se,{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:[He(Yc,{className:"h-6 w-6"}),He("span",{className:"sr-only",children:"Previous slide"})]})});Ro.displayName="CarouselPrevious";var ko=W.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Xo();return vn(se,{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:[He(Zc,{className:"h-6 w-6"}),He("span",{className:"sr-only",children:"Next slide"})]})});ko.displayName="CarouselNext";var To=W.forwardRef((e,o)=>{let{api:t}=Xo(),[,a]=W.useState(!1),r=W.useCallback(()=>a(l=>!l),[]);W.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?He("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>He(se,{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))}):He(Jc,{})});To.displayName="CarouselDots";import{Fragment as Aa,jsx as Q,jsxs as qe}from"react/jsx-runtime";var id=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return qe(Aa,{children:[Q("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Q("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),qe("div",{className:"mt-4 md:pr-3",children:[Q("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&Q("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:xn(e?.description??"")}),qe("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&qe(Aa,{children:[Q(ie,{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&&Q("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&Q("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},nd=({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 od(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),qe(Aa,{children:[Q(ue,{opts:{dragFree:!1},setApi:o,className:"w-full",children:Q(ve,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>Q(de,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:Q("div",{onClick:g=>r(g,p?.id,p?.url),className:i("group cursor-pointer",d),children:Q(id,{blog:p})},p?.id)},p?.id))})}),s&&Q("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:qe(Qe,{action:m&&m,newTab:c,variant:"outline",children:[xn(l||"Xem th\xEAm")," "]})})]})},sd=({carouselRef:e})=>qe(se,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[Q(ad,{className:"h-6 w-6"}),Q("span",{className:"sr-only",children:"Previous slide"})]}),ld=({carouselRef:e})=>qe(se,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[Q(rd,{className:"h-6 w-6"}),Q("span",{className:"sr-only",children:"Next slide"})]}),Hr=td(({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]=hn(null),[,l]=hn(0),m=()=>n?qe("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[Q(sd,{carouselRef:n}),Q(ld,{carouselRef:n})]}):Q(Aa,{});return qe(ed.Fragment,{children:[qe("div",{className:" flex items-center justify-between",children:[e&&Q(h,{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)}),Q(m,{})]}),Q(nd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as pd,jsx as So}from"react/jsx-runtime";var md=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return So(Ia,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return So(Hr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return So(Ia,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},cd=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>So(pd,{children:md({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),dd=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>So(_,{className:i("overflow-hidden",r),idSection:a,background:n,children:So(cd,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:m})});import*as Fa from"react";import{enUS as vd,vi as hd}from"date-fns/locale";import{ChevronLeft as xd,ChevronRight as bd}from"lucide-react";import yd from"lunisolar";import{DayPicker as Nd}from"react-day-picker";import*as bn from"react";import*as Yo from"@radix-ui/react-checkbox";import{CheckIcon as fd}from"@heroicons/react/16/solid";import{cva as yn}from"class-variance-authority";import{jsx as _r}from"react/jsx-runtime";var gd=yn("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"}}),ud=yn("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),La=bn.forwardRef(({className:e,size:o,...t},a)=>_r(Yo.Root,{ref:a,className:i(gd({size:o}),e),...t,children:_r(Yo.Indicator,{className:i("flex items-center justify-center text-current"),children:_r(fd,{className:i(ud({size:o}))})})}));La.displayName=Yo.Root.displayName;import{Fragment as kd,jsx as it,jsxs as Br}from"react/jsx-runtime";var wd=({date:e,cusContent:o})=>{let t=null;return t=yd(e).lunar,Br(kd,{children:[o?o(e):e.getDate(),t&&it("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Pd={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 Cd({isShow:e,setIsShow:o,lang:t}){let a=Fa.useId();return it("div",{className:"w-full p-3 pt-0",children:Br("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[it(La,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),it("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 Rd=e=>e.getDay()===0||e.getDay()===6;function za({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=Fa.useState(!0);return it(Nd,{locale:r==="vi"?hd:vd,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(et({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(et({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:Rd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>it(xd,{className:"h-6 w-6"}),IconRight:()=>it(bd,{className:"h-6 w-6"}),DayContent:c=>it(wd,{date:c.date,cusContent:n}),Months:({children:c})=>Br("div",{className:"w-full",children:[it("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&it(Cd,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?Pd:{},...s})}za.displayName="Calendar";import{QuestionMarkCircleIcon as Td,XCircleIcon as Sd}from"@heroicons/react/16/solid";import{format as Ea}from"date-fns";import{Calendar as Dd}from"lucide-react";import*as wn from"react";import*as Dt from"@radix-ui/react-popover";import{jsx as Nn}from"react/jsx-runtime";var Zo=Dt.Root,Ko=Dt.Trigger,Do=wn.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>Nn(Dt.Portal,{children:Nn(Dt.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})}));Do.displayName=Dt.Content.displayName;import{Fragment as Pn,jsx as De,jsxs as Jo}from"react/jsx-runtime";var Md=({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 Jo("div",{children:[Jo(Zo,{...m,children:[De(Ko,{asChild:!0,children:Jo(Ne,{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:[De("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?Ea(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?De(Pn,{children:p.from?p.to?Jo(Pn,{children:[De("span",{className:"date-from",children:Ea(p.from,s)})," ",De("span",{className:"date-separator",children:"-"}),De("span",{className:"date-to",children:Ea(p.to,s)})]}):Ea(p.from,s):o}):o}),e&&De("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}),De(Dd,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),De(Do,{className:"w-auto border-none !p-0",...d,children:De(za,{...c,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&Jo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?De(Sd,{width:16,height:16,className:"text-red-500"}):De(Td,{width:16,height:16,className:"text-gray-500"}),De("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as zd,useState as Mn}from"react";import{QuestionMarkCircleIcon as Ed,XCircleIcon as Hd}from"@heroicons/react/16/solid";import{isValid as _d}from"date-fns";import*as nt from"react";import{CheckIcon as Id,ChevronDownIcon as Cn,ChevronUpIcon as Ad,XCircleIcon as Ld}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Fd}from"@heroicons/react/24/outline";import*as S from"@radix-ui/react-select";import{jsx as U,jsxs as ea}from"react/jsx-runtime";var ta=nt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>ea("div",{ref:m,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-1 [&>.select-mobase-button]:ring-red-500":"",r===2?"[&>.select-mobase-button]:h-12 [&>.select-mobase-button]:text-base":""),children:[t&&U("span",{className:i("mobase-select-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",r===2&&"-top-2.5 text-sm",n&&"text-red-500"),children:t}),U(S.Root,{disabled:s,...l,children:o}),a&&ea("div",{className:i("mobase-select-message mt-1 flex items-center space-x-1 text-gray-500",n&&"text-red-500"),children:[n?U(Ld,{width:16,height:16}):U(Fd,{width:16,height:16}),U("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),oa=S.Value,Mo=nt.forwardRef(({className:e,children:o,...t},a)=>ea(S.Trigger,{ref:a,className:i("select-mobase-button flex h-11 w-full 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-visible:border-pink-500 focus-visible:ring-1 focus-visible:!ring-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent 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",e),...t,children:[U("div",{className:"line-clamp-1 text-left",children:o}),U(S.Icon,{asChild:!0,children:U(Cn,{className:"h-4 w-4 flex-none text-gray-500"})})]}));Mo.displayName=S.Trigger.displayName;var Or=nt.forwardRef(({className:e,...o},t)=>U(S.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:U(Ad,{className:"h-5 w-5"})}));Or.displayName=S.ScrollUpButton.displayName;var Vr=nt.forwardRef(({className:e,...o},t)=>U(S.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center bg-gradient-to-t from-white to-transparent py-1",e),...o,children:U(Cn,{className:"h-5 w-5"})}));Vr.displayName=S.ScrollDownButton.displayName;var Io=nt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>U(S.Portal,{children:ea(S.Content,{ref:r,className:i("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 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900",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:[U(Or,{}),U(S.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),U(Vr,{})]})}));Io.displayName=S.Content.displayName;var aa=nt.forwardRef(({className:e,children:o,...t},a)=>U(S.Group,{ref:a,className:i("relative border-b border-gray-200 p-1 after:w-full last:border-0",e),...t,children:o})),Rn=nt.forwardRef(({className:e,...o},t)=>U(S.Label,{ref:t,className:i("z-[1] py-1.5 pl-7 pr-2 text-sm font-semibold",e),...o}));Rn.displayName=S.Label.displayName;var Wt=nt.forwardRef(({className:e,children:o,...t},a)=>ea(S.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:[U("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:U(S.ItemIndicator,{children:U(Id,{className:"h-4 w-4 text-pink-500"})})}),U(S.ItemText,{children:o})]})),kn=nt.forwardRef(({className:e,...o},t)=>U(S.Separator,{ref:t,className:i("-mx-1 my-1 h-px",e),...o}));kn.displayName=S.Separator.displayName;var Tn=["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"],Wr=(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}},Dn=(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 oe,jsxs as st}from"react/jsx-runtime";var Bd=({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),y=Math.min(c,d),C=Math.max(c,d),N=l==="MM/yyyy",A=(P,V)=>{if(V===0){v(void 0),t?.(void 0);return}let F=g?.getFullYear()||new Date().getFullYear(),$e=g?.getMonth()??0,je=g?.getDate()??1;P==="month"&&V!==null&&($e=V-1),P==="year"&&V!==null&&(F=V),N?je=1:P==="day"&&V!==null&&(je=V);let ka=Wr(F,$e+1).daysInMonth;je>ka&&(je=1);let Go=new Date(F,$e,je);_d(Go)&&(v(Go),t?.(Go))},[O,E]=Mn(!1),vt=P=>{E(P)};return zd(()=>{v(o??null)},[o]),st("div",{className:i("relative",s&&"cursor-no-drop"),children:[st("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",O&&"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&&oe("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}),st("div",{className:"flex h-full flex-row divide-x",children:[!N&&st(ta,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:P=>A("day",parseInt(P,10)),onOpenChange:vt,className:"w-[30%]",children:[oe(Mo,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(oa,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),oe(Io,{onCloseAutoFocus:P=>P.preventDefault(),children:st(aa,{children:[!p&&oe(Wt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Wr(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(P,V)=>(V+1).toString().padStart(2,"0")).map(P=>oe(Wt,{value:P,children:P},P))]})})]}),st(ta,{value:g?(g.getMonth()+1).toString():"",onValueChange:P=>A("month",parseInt(P,10)),onOpenChange:vt,className:i(N?"w-1/2":"w-2/5"),children:[oe(Mo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(oa,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),oe(Io,{onCloseAutoFocus:P=>P.preventDefault(),children:st(aa,{children:[!p&&oe(Wt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(P,V)=>V+1).map(P=>oe(Wt,{value:P.toString(),children:m==="vi"?Tn[P-1]:Sn[P-1]},P))]})})]}),st(ta,{value:g?g.getFullYear().toString():"",onValueChange:P=>A("year",parseInt(P,10)),onOpenChange:vt,className:i(N?"w-1/2":"w-[30%]"),children:[oe(Mo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:oe(oa,{placeholder:m==="vi"?"N\u0103m":"Year"})}),oe(Io,{onCloseAutoFocus:P=>P.preventDefault(),children:st(aa,{children:[!p&&oe(Wt,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Dn(y,C).map(P=>oe(Wt,{value:P.toString(),children:P},P))]})})]})]})]}),r&&st("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?oe(Hd,{width:16,height:16,className:"text-red-500"}):oe(Ed,{width:16,height:16,className:"text-gray-500"}),oe("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as ro from"react";import*as G from"@radix-ui/react-alert-dialog";import{jsx as Mt,jsxs as Wd}from"react/jsx-runtime";var Od=G.Root,Vd=G.Trigger,In=G.Portal,Gr=ro.forwardRef(({className:e,...o},t)=>Mt(G.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}));Gr.displayName=G.Overlay.displayName;var An=ro.forwardRef(({className:e,...o},t)=>Wd(In,{children:[Mt(Gr,{}),Mt(G.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})]}));An.displayName=G.Content.displayName;var Ln=({className:e,...o})=>Mt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Ln.displayName="AlertDialogHeader";var Fn=({className:e,...o})=>Mt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Fn.displayName="AlertDialogFooter";var zn=ro.forwardRef(({className:e,...o},t)=>Mt(G.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));zn.displayName=G.Title.displayName;var En=ro.forwardRef(({className:e,...o},t)=>Mt(G.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));En.displayName=G.Description.displayName;var Hn=ro.forwardRef(({className:e,...o},t)=>Mt(G.Action,{ref:t,className:i(et({variant:"primary"}),"",e),...o}));Hn.displayName=G.Action.displayName;var _n=ro.forwardRef(({className:e,...o},t)=>Mt(G.Cancel,{ref:t,className:i(et({variant:"secondary"}),e),...o}));_n.displayName=G.Cancel.displayName;import{memo as Zd,useState as Kd}from"react";import{useEffect as Gd,useState as On}from"react";import Vn from"html-react-parser";import{motion as $d}from"motion/react";import*as Bn from"@radix-ui/react-aspect-ratio";var z=Bn.Root;import{Fragment as Wn,jsx as ae,jsxs as ra}from"react/jsx-runtime";var jd=({guideGroup:e,mockup:o})=>{let[t,a]=On(),[r,n]=On(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Gd(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),ae(Wn,{children:e?.stepList&&e?.stepList?.length>0&&ra("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[ae("div",{className:"h-auto w-64 flex-none",children:ra("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"&&ra(Wn,{children:[ae("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),ae("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),ae("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:ra(ue,{setApi:a,children:[ae(ve,{className:"ml-0",children:e?.stepList.map((l,m)=>ae(de,{className:"pl-0",children:ae(z,{ratio:o==="small"?540/960:540/1168,children:l?.image&&ae("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),ae(Ro,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),ae(ko,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),ae("div",{className:"flex flex-auto pl-12 pt-4",children:ae("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>ra("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:[ae("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}),ae("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:Vn(l.title)}),l.content&&ae($d.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:ae("div",{className:"mt-3 text-sm text-gray-700",children:Vn(l.content)})})]},m))})})]})})},$r=jd;import{useEffect as Qd,useRef as Ud,useState as Ha}from"react";import{ChevronRightIcon as Gn}from"@heroicons/react/20/solid";import qd from"embla-carousel-autoplay";import _a from"html-react-parser";import{Fragment as jr,jsx as w,jsxs as Pe}from"react/jsx-runtime";var Xd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=Ha(0),[s,l]=Ha();return Qd(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:w(Se,{open:e,onOpenChange:o,children:Pe(we,{position:"bottom",height:"full",children:[w(Bt,{children:w(Ot,{className:"line-clamp-1",children:t?.title})}),Pe(Ee,{className:"grid overflow-hidden p-0 ",children:[w(ue,{setApi:l,className:" grid overflow-hidden",children:w(ve,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>w(de,{className:"h-full w-full pl-0",children:Pe("div",{className:"flex h-full flex-col overflow-y-auto",children:[w("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:w("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:Pe("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"&&Pe(jr,{children:[w("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),w("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:w(z,{ratio:a==="small"?540/960:540/1168,children:m?.image&&w("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),Pe("div",{className:"p-5 pb-12",children:[w("div",{className:"font-semibold",children:_a(m.title)}),m?.content&&w("div",{className:"mt-3 text-sm text-gray-800",children:_a(m.content)})]})]})},c))})}),w("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((m,c)=>w("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},Yd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=Ha(!1),[n,s]=Ha(null),l=Ud(qd({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:Pe(jr,{children:[e?.length>1?w("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>Pe("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[w("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(c?.avatar||c?.stepList?.[0]?.image)&&w("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),Pe("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:[Pe("div",{className:"py-2",children:[t&&w("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),w("div",{className:"font-semibold",children:_a(c.title)}),c?.description&&w("div",{className:"mt-1 text-sm text-gray-500",children:_a(c.description)})]}),w("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:w(Gn,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&Pe("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[w("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:w("div",{className:"mx-auto h-auto w-72",children:Pe("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"&&Pe(jr,{children:[w("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),w("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),w("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:w(ue,{plugins:[l.current],children:w(ve,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>w(de,{className:"pl-0",onClick:()=>m(0),children:w(z,{ratio:o==="small"?540/960:540/1168,children:c?.image&&w("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),w("div",{className:"flex w-full flex-none justify-center",children:Pe(ie,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",w(Gn,{className:"ml-1 h-5 w-5"})]})})]}),a&&w(Xd,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},$n=Yd;import{Fragment as Jd,jsx as pe,jsxs as ia}from"react/jsx-runtime";var jn=({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 pe("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:pe("path",{d:t.d,fill:"currentColor"})})},Qr=Zd(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=Kd(t?.[0]?.title||"");return ia(Jd,{children:[e&&pe(h,{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&&ia(yo,{children:[pe(Je,{lessThan:"md",children:pe($n,{dataGuide:t,mockup:r,isStep:n})}),pe(Je,{greaterThan:"sm",children:t?.length>1?ia(St,{defaultValue:t[0]?.title,onValueChange:p=>d(p),children:[ia(Ct,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[pe(Rt,{className:"mb-6 text-center",children:pe(tt,{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,y=c===p?.title||"";return ia(ot,{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":"",y&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&pe(jn,{direction:"left",className:i("right-full top-0",y?"text-pink-500":"text-pink-100")}),p.title,n&&!v&&pe(jn,{direction:"right",className:i("left-full top-0",y?"text-pink-500":"text-pink-100")})]},p.title+g)})})}),pe(kt,{}),pe(Tt,{})]}),t.map((p,g)=>pe(at,{value:p.title,children:pe($r,{guideGroup:p,mockup:r})},p.title+g))]}):t?.length===1&&t[0]&&pe($r,{guideGroup:t[0],mockup:r})})]}),a&&pe(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as ap,jsx as na}from"react/jsx-runtime";var ep=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return na(Qr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return na(Qr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},tp=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>na(ap,{children:ep({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),op=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:m="default",isStep:c=!1})=>na(_,{className:i(n),background:s,idSection:e,children:na(tp,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:m,isStep:c})});import{useState as Qn}from"react";import It from"html-react-parser";import{Fragment as Ur,jsx as H,jsxs as At}from"react/jsx-runtime";var Un="text-xs font-medium md:text-sm",rp=({gift:e,onOpenModal:o})=>{let t=!!e.useModal,a=!!e.btnLink?.trim(),r=e.btnName?It(e.btnName||"Xem chi ti\u1EBFt"):null,n=s=>{s.stopPropagation(),o(e)};return H("div",{className:"w-full px-2.5 md:w-1/2 lg:w-1/3",children:At("div",{className:i("relative h-full rounded-xl border border-gray-200 bg-white p-2 transition-all duration-300",e.isFeatured&&"border-pink-500",t&&"cursor-pointer ring-inset hover:border-pink-500 hover:shadow-lg hover:shadow-pink-500/20 hover:ring-1 hover:ring-pink-500"),role:t?"button":void 0,tabIndex:t?0:void 0,onClick:()=>t&&o(e),children:[e.tag&&At("span",{className:"absolute -top-2 right-2 z-10 inline-flex",children:[H("span",{className:"rounded-bl-md rounded-br-md bg-red-600 px-2 py-0.5 text-xs font-semibold uppercase text-white shadow-sm",children:It(e.tag)}),H("span",{"aria-hidden":!0,className:"absolute right-full top-0 h-0 w-0 border-r-8 border-t-8 border-r-red-800 border-t-transparent"})]}),At("div",{className:"relative z-10 flex h-full flex-row items-stretch gap-3",children:[e.thumbnail&&H("div",{className:"w-28 flex-none shrink-0 md:w-32",children:H(z,{ratio:1,className:"w-full",children:H("img",{src:e.thumbnail,alt:e.title||"Gift image",className:"h-full w-full rounded-md object-contain"})})}),At("div",{className:"flex min-w-0 flex-1 flex-col",children:[At("div",{className:"flex-1",children:[e.serviceName?H("span",{className:"mb-1.5 mt-1 block text-xs font-medium text-gray-700 md:mb-2",children:It(e.serviceName)}):H(Ur,{}),H("h3",{className:"text-base font-semibold text-gray-900 md:text-lg",children:It(e.title)}),e.description&&H("p",{className:"line-clamp-2 text-sm text-gray-600",children:It(e.description)})]}),H("div",{className:"mt-auto flex flex-none justify-end pt-1 md:pt-2",children:r&&(a?H(ie,{variant:"primary",className:Un,asChild:!0,children:H("a",{href:e.btnLink,target:e.newTab?"_blank":"_self",rel:"noreferrer",onClick:s=>s.stopPropagation(),children:r})}):H(ie,{variant:"primary",size:"default",className:Un,type:"button",onClick:n,children:r}))})]})]})]})})},Ba=({dataHeading:e,dataButtons:o,dataGiftList:t})=>{let[a,r]=Qn(null),[n,s]=Qn(!1),l=m=>{r(m),s(!0)};return At(Ur,{children:[e&&H(h,{align:e.align||"center",tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),t&&t.length>0&&H("div",{className:"-mx-2.5 mt-8 flex flex-wrap justify-center gap-y-5 md:mt-10",children:t.map((m,c)=>H(rp,{gift:m,onOpenModal:l},c))}),o&&H(x,{isFullInMobile:o.isFullInMobile,buttons:o.buttons,className:o.className,align:o.align||"center"}),n&&H(Se,{open:n,onOpenChange:s,children:At(we,{size:"lg",position:"bottom",children:[H(Bt,{children:H(Ot,{children:"Th\xF4ng tin chi ti\u1EBFt th\u1EBB qu\xE0"})}),At(Ee,{children:[At("div",{className:"text-center",children:[a?.serviceName&&H("span",{className:"mb-1 block text-xs font-medium text-gray-500",children:It(a.serviceName)}),a?.title&&H("h3",{className:"text-xl font-bold md:text-2xl",children:It(a.title)}),a?.description&&H("p",{className:"mt-1 text-sm text-gray-700",children:It(a.description||"")})]}),a?.content?H("div",{className:"prose prose-sm mt-6 max-w-none",children:It(a.content)}):H(Ur,{})]}),H(Ta,{children:H(Ne,{variant:"primary",size:"default",onClick:()=>s(!1),children:"\u0110\xF3ng"})})]})})]})};import{jsx as qr}from"react/jsx-runtime";var ip=({template:e,dataHeading:o,dataButtons:t,dataGiftList:a})=>{switch(e){case 1:return qr(Ba,{dataHeading:o,dataButtons:t,dataGiftList:a});default:return qr(Ba,{dataHeading:o,dataButtons:t,dataGiftList:a})}},np=({template:e=1,className:o,idSection:t,background:a,dataHeading:r,dataButtons:n,dataGiftList:s})=>qr(_,{idSection:t,className:o,background:a,children:ip({template:e,dataHeading:r,dataButtons:n,dataGiftList:s})});import{ChevronLeft as sp,ChevronRight as lp}from"lucide-react";import{Fragment as mp,jsx as _e,jsxs as qn}from"react/jsx-runtime";function Xn({current:e,total:o,onChange:t}){let a=r=>_e("li",{children:_e("button",{className:i(ao({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return _e("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:qn("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&_e("li",{children:_e("button",{className:i(ao({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:_e(sp,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):qn(mp,{children:[a(1),e===1&&[a(2),a(3)],e>3&&_e("li",{children:_e("button",{className:i(ao({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&&_e("button",{className:i(ao({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&_e("li",{children:_e("button",{className:i(ao({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:_e(lp,{className:"h-4 w-4"})})})]})})}import{forwardRef as cp}from"react";import{QuestionMarkCircleIcon as dp}from"@heroicons/react/24/outline";import{XCircleIcon as pp}from"@heroicons/react/24/solid";import{jsx as Ao,jsxs as Yn}from"react/jsx-runtime";var Xr=cp(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>Yn("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&Ao("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}),Ao("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&&Yn("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?Ao(pp,{width:16,height:16,className:"text-red-500"}):Ao(dp,{width:16,height:16,className:"text-gray-500"}),Ao("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Ao("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 Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
94
94
|
color: rgb(var(--mobase-red-500) / 1);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
`})]}));import*as
|
|
97
|
+
`})]}));import*as Wa from"react";var fp=1,gp=1e6;var Yr=0;function up(){return Yr=(Yr+1)%Number.MAX_SAFE_INTEGER,Yr.toString()}var Zr=new Map,Zn=e=>{if(Zr.has(e))return;let o=setTimeout(()=>{Zr.delete(e),sa({type:"REMOVE_TOAST",toastId:e})},gp);Zr.set(e,o)},vp=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,fp)};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?Zn(t):e.toasts.forEach(a=>{Zn(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}},Oa=[],Va={toasts:[]};function sa(e){Va=vp(Va,e),Oa.forEach(o=>{o(Va)})}function Kn({...e}){let o=up(),t=r=>sa({type:"UPDATE_TOAST",toast:{...r,id:o}}),a=()=>sa({type:"DISMISS_TOAST",toastId:o});return sa({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:r=>{r||a()}}}),{id:o,dismiss:a,update:t}}function Kr(){let[e,o]=Wa.useState(Va);return Wa.useEffect(()=>(Oa.push(o),()=>{let t=Oa.indexOf(o);t>-1&&Oa.splice(t,1)}),[e]),{...e,toast:Kn,dismiss:t=>sa({type:"DISMISS_TOAST",toastId:t})}}import*as io from"react";import{CheckCircleIcon as hp,ExclamationTriangleIcon as xp,InformationCircleIcon as bp,XMarkIcon as yp}from"@heroicons/react/20/solid";import*as K from"@radix-ui/react-toast";import{cva as Np}from"class-variance-authority";import{jsx as Lt,jsxs as Jn}from"react/jsx-runtime";var es=K.Provider,Jr=io.forwardRef(({className:e,...o},t)=>Lt(K.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}));Jr.displayName=K.Viewport.displayName;var wp=Np("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"}}),ei=io.forwardRef(({className:e,variant:o="success",children:t,...a},r)=>Jn(K.Root,{ref:r,className:i(wp({variant:o}),e),...a,children:[Jn("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&Lt(hp,{className:"h-5 w-5 text-green-500"}),o==="warning"&&Lt(xp,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&Lt(bp,{className:"h-5 w-5 text-red-500"})]}),t]}));ei.displayName=K.Root.displayName;var ts=io.forwardRef(({className:e,...o},t)=>Lt(K.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}));ts.displayName=K.Action.displayName;var ti=io.forwardRef(({className:e,...o},t)=>Lt(K.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:Lt(yp,{className:"h-5 w-5"})}));ti.displayName=K.Close.displayName;var oi=io.forwardRef(({className:e,...o},t)=>Lt(K.Title,{ref:t,className:i("text-base font-semibold leading-tight",e),...o}));oi.displayName=K.Title.displayName;var ai=io.forwardRef(({className:e,...o},t)=>Lt(K.Description,{ref:t,className:i("text-sm opacity-90",e),...o}));ai.displayName=K.Description.displayName;import{jsx as Ga,jsxs as ri}from"react/jsx-runtime";function Pp(){let{toasts:e}=Kr();return ri(es,{children:[e.map(function({id:o,title:t,description:a,action:r,...n}){return ri(ei,{...n,children:[ri("div",{className:"grid gap-2",children:[t&&Ga(oi,{children:t}),a&&Ga(ai,{children:a})]}),r,Ga(ti,{})]},o)}),Ga(Jr,{})]})}import*as ii from"react";import*as Be from"@radix-ui/react-tooltip";import{jsx as rs}from"react/jsx-runtime";var Cp=Be.Provider,Rp=Be.Root,kp=Be.Trigger,os=ii.forwardRef((e,o)=>rs(Be.Arrow,{ref:o,className:i("drop-shadow-md",e.className),...e}));os.displayName=Be.Arrow.displayName;var as=ii.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},r)=>rs(Be.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}));as.displayName=Be.Content.displayName;import{forwardRef as Tp,useEffect as Sp,useRef as Dp,useState as Mp}from"react";import{QuestionMarkCircleIcon as Ip,XCircleIcon as Ap,XCircleIcon as Lp}from"@heroicons/react/16/solid";import{jsx as Gt,jsxs as ni}from"react/jsx-runtime";var si=Tp(({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",...y},C)=>{let[N,A]=Mp(!1),O=Dp(null),E=F=>{F&&!N&&A(!0),!F&&N&&A(!1)},vt=F=>{s&&E(F.target.value),m?.(F)},P=F=>{s&&E(F.target.value),c?.(F)},V=()=>{let F=O.current?.querySelector("input");F&&(d?.(F.value),F.value="",F.focus(),A(!1))};return Sp(()=>{E(g||p)},[p,g]),ni("div",{className:i(r,o&&"mobase-text-input-error"),ref:O,children:[ni("div",{className:"relative",children:[a&&Gt("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}),Gt("input",{disabled:e,type:v,ref:C,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:vt,onFocus:P,value:p,defaultValue:g,...y}),s&&N&&Gt("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:V,children:Gt(Ap,{strokeWidth:2,width:20,height:20})})]}),t&&ni("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[o?Gt(Lp,{width:16,height:16,className:"text-red-500"}):Gt(Ip,{width:16,height:16,className:"text-gray-500"}),Gt("span",{className:i("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),Gt("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,30 +117,30 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
117
117
|
color: rgb(var(--mobase-red-500) / 1);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`})]})});import{MinusCircleIcon as Dp,PlusCircleIcon as Mp}from"@heroicons/react/24/outline";import{forwardRef as Ip,useState as Lp}from"react";import{jsx as sa,jsxs as ai}from"react/jsx-runtime";var Jn=Ip(({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]=Lp(r),v=()=>{let w=Math.min(p+a,t);g(w),n?.(w),l?.(w)},y=()=>{let w=Math.max(p-a,o);g(w),n?.(w),s?.(w)},C=w=>{let A=parseFloat(w.target.value);if(!isNaN(A)){let B=Math.max(Math.min(A,t),o);g(B),n?.(B)}};return ai("div",{ref:d,className:i("flex items-center ",e),children:[ai(ne,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:y,disabled:m||p<=o,children:[sa(Dp,{className:"w-7 h-7 "}),sa("span",{className:"sr-only",children:"Decrease value"})]}),sa("input",{type:"number",value:p,onChange:C,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}),ai(ne,{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:[sa(Mp,{className:"w-7 h-7 "}),sa("span",{className:"sr-only",children:"Increase value"})]})]})});Jn.displayName="Stepper";import*as qe from"react";import*as q from"@radix-ui/react-navigation-menu";import{cva as Ap}from"class-variance-authority";import{ChevronDownIcon as Fp}from"@heroicons/react/16/solid";import{jsx as lt,jsxs as Bp}from"react/jsx-runtime";var es=qe.createContext(null),Ep=({value:e,children:o})=>lt(es.Provider,{value:e,children:o}),zp=()=>{let e=qe.useContext(es);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Va=qe.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>lt(Ep,{value:{alignDropdown:t},children:lt(q.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Va.displayName=q.Root.displayName;var Wa=qe.forwardRef(({className:e,...o},t)=>lt(q.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Wa.displayName=q.List.displayName;var $a=q.Item,Ga=Ap(Je({variant:"transparent",size:"sm"})),ja=qe.forwardRef(({className:e,children:o,...t},a)=>Bp(q.Trigger,{ref:a,className:i(Ga(),"group px-2",e),...t,children:[o," ",lt(Fp,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ja.displayName=q.Trigger.displayName;var Qa=qe.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=zp();return lt(q.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})});Qa.displayName=q.Content.displayName;var la=q.Link,Hp=qe.forwardRef(({className:e,...o},t)=>lt("div",{className:i("absolute left-0 top-full flex justify-center"),children:lt(q.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})}));Hp.displayName=q.Viewport.displayName;var _p=qe.forwardRef(({className:e,...o},t)=>lt(q.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:lt("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));_p.displayName=q.Indicator.displayName;import*as os from"react";import*as ma from"@radix-ui/react-switch";import{jsx as ts}from"react/jsx-runtime";var Ua=os.forwardRef(({className:e,...o},t)=>ts(ma.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:ts(ma.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")})}));Ua.displayName=ma.Root.displayName;import*as ao from"react";import*as Ot from"@radix-ui/react-radio-group";import{Circle as Op}from"lucide-react";import{cva as as}from"class-variance-authority";import{jsx as ca}from"react/jsx-runtime";var Vp=as("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"}}),Wp=as("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),rs=ao.createContext({size:"medium"});function $p(){let e=ao.useContext(rs);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var is=ao.forwardRef(({className:e,size:o,...t},a)=>ca(rs.Provider,{value:{size:o},children:ca(Ot.Root,{className:i("grid gap-2",e),...t,ref:a})}));is.displayName=Ot.Root.displayName;var ns=ao.forwardRef(({className:e,...o},t)=>{let a=$p(),{size:r}=a??{};return ca(Ot.Item,{ref:t,className:i(Vp({size:r}),e),...o,children:ca(Ot.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:ca(Op,{className:i(Wp({size:r}))})})})});ns.displayName=Ot.Item.displayName;import{useState as sf}from"react";import{ArrowDownTrayIcon as lf}from"@heroicons/react/16/solid";import mf from"html-react-parser";import{useEffect as Xp,useState as cs}from"react";import{AnimatePresence as Yp,domAnimation as Zp,LazyMotion as Kp,motion as ri}from"motion/react";import{useKey as Jp}from"react-use";var qa=[.24,.25,.05,1];import{motion as jp}from"motion/react";import{jsx as da,jsxs as ss}from"react/jsx-runtime";var Gp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return da("li",{className:"min-h-8",children:ss(T,{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&da("div",{className:"w-6 h-6 shrink-0",children:da("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),ss("div",{className:" ",children:[da("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&da("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},ls=Gp;import{jsx as ro,jsxs as qp}from"react/jsx-runtime";var Qp={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:qa}},exit:{opacity:0,transition:{duration:.05}}},Up=({data:e})=>ro(xt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return ro(jp.div,{variants:Qp,children:o.hasDropdown?qp(bt,{value:o.id,children:[ro(yt,{className:"py-3",children:o.title}),ro(wt,{children:ro("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>ro(ls,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):ro(T,{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)})}),ms=Up;import{jsx as I,jsxs as he}from"react/jsx-runtime";var ef=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,tf=({data:e,className:o})=>{let[t,a]=cs(!1),[r,n]=cs(!1);Jp("Escape",()=>a(!1)),Xp(()=>{if(!t)return;let m=ef();function c(){a(!1)}function d(){a(!1),n(!0)}function p(C){let w=C.target;((w.closest&&w.closest("a"))?.getAttribute("href")||w.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let g=()=>{c()},v=history.pushState,y=history.replaceState;return history.pushState=((...C)=>{let w=v.apply(history,C);return g(),w}),history.replaceState=((...C)=>{let w=y.apply(history,C);return g(),w}),window.addEventListener("popstate",g),window.addEventListener("hashchange",d),window.addEventListener("click",p,!0),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),history.pushState=v,history.replaceState=y,window.removeEventListener("popstate",g),window.removeEventListener("hashchange",d),window.removeEventListener("click",p,!0)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:qa}},exit:{opacity:0,transition:{duration:.15}}};return he("div",{className:i(o),children:[he("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[I("span",{className:"sr-only",children:"Navigation"}),I(ri.div,{animate:t?"hidden":"visible",variants:s,children:I("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:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),I(ri.div,{animate:t?"visible":"hidden",variants:s,children:I("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:I("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),I(Kp,{features:Zp,children:I(Yp,{mode:"wait",children:t&&he(ri.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:[I(ms,{data:e}),he("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),he("div",{className:"flex flex-nowrap",children:[I("div",{className:"flex-initial",children:I(T,{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:I("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),I("div",{className:"ml-3 flex-initial",children:I(T,{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:I("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),I("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),he("ul",{className:"mb-2 text-sm text-gray-500",children:[he("li",{className:"mb-1",children:["Hotline :\xA0",I(T,{href:`tel:${ht.Support.Hotline}`,className:"text-gray-600",children:ht.Support.Hotline_Format})]}),he("li",{className:"mb-1",children:["Email :\xA0",I(T,{href:`mailto:${ht.Support.Email}`,className:"text-gray-600",children:ht.Support.Email})]})]}),I(T,{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:he("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[I("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:I("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:he("g",{children:[I("title",{children:"Asset 1"}),I("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
120
|
+
`})]})});import{MinusCircleIcon as Fp,PlusCircleIcon as zp}from"@heroicons/react/24/outline";import{forwardRef as Ep,useState as Hp}from"react";import{jsx as la,jsxs as li}from"react/jsx-runtime";var is=Ep(({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]=Hp(r),v=()=>{let N=Math.min(p+a,t);g(N),n?.(N),l?.(N)},y=()=>{let N=Math.max(p-a,o);g(N),n?.(N),s?.(N)},C=N=>{let A=parseFloat(N.target.value);if(!isNaN(A)){let O=Math.max(Math.min(A,t),o);g(O),n?.(O)}};return li("div",{ref:d,className:i("flex items-center ",e),children:[li(se,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:y,disabled:m||p<=o,children:[la(Fp,{className:"w-7 h-7 "}),la("span",{className:"sr-only",children:"Decrease value"})]}),la("input",{type:"number",value:p,onChange:C,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}),li(se,{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:[la(zp,{className:"w-7 h-7 "}),la("span",{className:"sr-only",children:"Increase value"})]})]})});is.displayName="Stepper";import*as Xe from"react";import*as q from"@radix-ui/react-navigation-menu";import{cva as _p}from"class-variance-authority";import{ChevronDownIcon as Bp}from"@heroicons/react/16/solid";import{jsx as lt,jsxs as $p}from"react/jsx-runtime";var ns=Xe.createContext(null),Op=({value:e,children:o})=>lt(ns.Provider,{value:e,children:o}),Vp=()=>{let e=Xe.useContext(ns);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},$a=Xe.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>lt(Op,{value:{alignDropdown:t},children:lt(q.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));$a.displayName=q.Root.displayName;var ja=Xe.forwardRef(({className:e,...o},t)=>lt(q.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));ja.displayName=q.List.displayName;var Qa=q.Item,Ua=_p(et({variant:"transparent",size:"sm"})),qa=Xe.forwardRef(({className:e,children:o,...t},a)=>$p(q.Trigger,{ref:a,className:i(Ua(),"group px-2",e),...t,children:[o," ",lt(Bp,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));qa.displayName=q.Trigger.displayName;var Xa=Xe.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Vp();return lt(q.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})});Xa.displayName=q.Content.displayName;var ma=q.Link,Wp=Xe.forwardRef(({className:e,...o},t)=>lt("div",{className:i("absolute left-0 top-full flex justify-center"),children:lt(q.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})}));Wp.displayName=q.Viewport.displayName;var Gp=Xe.forwardRef(({className:e,...o},t)=>lt(q.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:lt("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Gp.displayName=q.Indicator.displayName;import*as ls from"react";import*as ca from"@radix-ui/react-switch";import{jsx as ss}from"react/jsx-runtime";var Ya=ls.forwardRef(({className:e,...o},t)=>ss(ca.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:ss(ca.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")})}));Ya.displayName=ca.Root.displayName;import*as no from"react";import*as $t from"@radix-ui/react-radio-group";import{Circle as jp}from"lucide-react";import{cva as ms}from"class-variance-authority";import{jsx as da}from"react/jsx-runtime";var Qp=ms("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=ms("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),cs=no.createContext({size:"medium"});function qp(){let e=no.useContext(cs);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var ds=no.forwardRef(({className:e,size:o,...t},a)=>da(cs.Provider,{value:{size:o},children:da($t.Root,{className:i("grid gap-2",e),...t,ref:a})}));ds.displayName=$t.Root.displayName;var ps=no.forwardRef(({className:e,...o},t)=>{let a=qp(),{size:r}=a??{};return da($t.Item,{ref:t,className:i(Qp({size:r}),e),...o,children:da($t.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:da(jp,{className:i(Up({size:r}))})})})});ps.displayName=$t.Item.displayName;import{useState as df}from"react";import{ArrowDownTrayIcon as pf}from"@heroicons/react/16/solid";import ff from"html-react-parser";import{useEffect as ef,useState as vs}from"react";import{AnimatePresence as tf,domAnimation as of,LazyMotion as af,motion as mi}from"motion/react";import{useKey as rf}from"react-use";var Za=[.24,.25,.05,1];import{motion as Yp}from"motion/react";import{jsx as pa,jsxs as fs}from"react/jsx-runtime";var Xp=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return pa("li",{className:"min-h-8",children:fs("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&pa("div",{className:"w-6 h-6 shrink-0",children:pa("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),fs("div",{className:" ",children:[pa("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&pa("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},gs=Xp;import{jsx as so,jsxs as Jp}from"react/jsx-runtime";var Zp={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Za}},exit:{opacity:0,transition:{duration:.05}}},Kp=({data:e})=>so(xt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return so(Yp.div,{variants:Zp,children:o.hasDropdown?Jp(bt,{value:o.id,children:[so(yt,{className:"py-3",children:o.title}),so(Nt,{children:so("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>so(gs,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):so("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)})}),us=Kp;import{jsx as M,jsxs as he}from"react/jsx-runtime";var nf=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,sf=({data:e,className:o})=>{let[t,a]=vs(!1),[r,n]=vs(!1);rf("Escape",()=>a(!1)),ef(()=>{if(!t)return;let m=nf();function c(){a(!1)}function d(){a(!1),n(!0)}function p(C){let N=C.target;((N.closest&&N.closest("a"))?.getAttribute("href")||N.getAttribute("href"))?.startsWith("#")&&(a(!1),n(!0))}document.body.style.position="fixed",document.body.style.width="100%";let g=()=>{c()},v=history.pushState,y=history.replaceState;return history.pushState=((...C)=>{let N=v.apply(history,C);return g(),N}),history.replaceState=((...C)=>{let N=y.apply(history,C);return g(),N}),window.addEventListener("popstate",g),window.addEventListener("hashchange",d),window.addEventListener("click",p,!0),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),history.pushState=v,history.replaceState=y,window.removeEventListener("popstate",g),window.removeEventListener("hashchange",d),window.removeEventListener("click",p,!0)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Za}},exit:{opacity:0,transition:{duration:.15}}};return he("div",{className:i(o),children:[he("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:[M("span",{className:"sr-only",children:"Navigation"}),M(mi.div,{animate:t?"hidden":"visible",variants:s,children:M("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:M("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),M(mi.div,{animate:t?"visible":"hidden",variants:s,children:M("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:M("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),M(af,{features:of,children:M(tf,{mode:"wait",children:t&&he(mi.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:[M(us,{data:e}),he("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[M("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),he("div",{className:"flex flex-nowrap",children:[M("div",{className:"flex-initial",children:M("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:M("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),M("div",{className:"ml-3 flex-initial",children:M("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:M("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),M("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),he("ul",{className:"mb-2 text-sm text-gray-500",children:[he("li",{className:"mb-1",children:["Hotline :\xA0",M("a",{href:`tel:${ht.Support.Hotline}`,className:"text-gray-600",children:ht.Support.Hotline_Format})]}),he("li",{className:"mb-1",children:["Email :\xA0",M("a",{href:`mailto:${ht.Support.Email}`,className:"text-gray-600",children:ht.Support.Email})]})]}),M("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:he("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:[M("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:M("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:he("g",{children:[M("title",{children:"Asset 1"}),M("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
121
121
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
122
|
-
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),
|
|
122
|
+
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),M("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
123
123
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
124
|
-
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),
|
|
124
|
+
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),M("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),M("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),M("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),he("ul",{className:"mb-2 text-sm text-gray-500",children:[he("li",{className:"mb-1",children:["Hotline :\xA0",M("a",{className:"text-gray-600",href:`tel:${ht.Business.Phome}`,children:ht.Business.Phome_Format})]}),he("li",{className:"mb-1",children:["Email :\xA0",he("a",{href:`mailto:${ht.Business.Email}`,className:"text-gray-600",children:[" ",ht.Business.Email]})]})]}),M("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:he("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:[M("div",{className:"absolute left-1 top-1 ",children:M("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),M("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),M("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},hs=sf;import{jsx as Lo,jsxs as xs}from"react/jsx-runtime";var lf=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Lo("li",{className:"",children:Lo(ma,{asChild:!0,children:xs("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&&Lo("div",{className:"w-7 h-7 shrink-0 mt-1",children:Lo("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),xs("div",{className:" ",children:[Lo("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&Lo("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},bs=lf;import{jsx as jt,jsxs as cf}from"react/jsx-runtime";var mf=({data:e,alignDropdown:o})=>jt($a,{alignDropdown:o,children:jt(ja,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?cf(Qa,{className:"relative",children:[jt(qa,{children:t.title}),jt(Xa,{children:jt("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=>jt(bs,{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):jt(Qa,{className:"relative",children:jt(ma,{href:t.url,className:Ua(),...a,children:t.title})},t.id)})})}),ys=mf;import{Fragment as gf,jsx as Oe,jsxs as Qt}from"react/jsx-runtime";var Ns=({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]=df(!1);return Qt(gf,{children:[Qt("div",{className:i(e,"z-40 w-full flex-none lg:z-50",n?"sticky top-0":"relative"),children:[Oe("div",{className:i("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Oe("nav",{className:i("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0"),style:{minHeight:"var(--header-height-mobase)"},children:Qt("div",{className:"relative flex items-center",children:[l&&Qt("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[Oe("span",{className:"sr-only",children:"MoMo - \u1EE8ng d\u1EE5ng t\xE0i ch\xEDnh"}),Oe("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&Qt("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:[Oe("img",{src:m,className:"h-9",alt:"MoMo"}),Oe("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:c&&ff(c)})]}),Oe("div",{className:i("relative hidden items-center lg:ml-2 lg:flex xl:ml-4",!r&&!a&&"lg:ml-auto xl:ml-auto"),children:Oe(ys,{data:o,alignDropdown:s})}),Qt("div",{className:i("ml-auto flex flex-nowrap items-center space-x-3",!r&&!a&&"lg:ml-0"),children:[r&&r,a&&Qt("div",{className:"hidden sm:flex",children:[Qt(Ne,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",Oe(pf,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Oe(to,{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"})]}),Oe(hs,{data:o,className:"lg:hidden"})]})]})})]}),Oe("style",{children:`
|
|
125
125
|
html {
|
|
126
126
|
scroll-behavior: smooth;
|
|
127
127
|
}
|
|
128
|
-
`})]})};
|
|
128
|
+
`})]})};Ns.displayName="HeaderNavigation";import{useState as uf}from"react";import{Fragment as hf,jsx as u,jsxs as T}from"react/jsx-runtime";var ws=({item:e})=>u("div",{className:"mt-3 flex w-full text-sm",children:T("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&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})]})}),vf=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=uf(null);return T(hf,{children:[u("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:T("div",{className:"wrapper grid grid-cols-2 gap-5 sm:gap-x-20 sm:gap-y-10 lg:flex lg:flex-nowrap lg:gap-14",children:[T("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((r,n)=>u(ws,{item:r},n))]}),T("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(ws,{item:r},n))})]}),T("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[T("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[u("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),T("div",{className:"mt-2 text-sm md:mt-3",children:[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:Yi.Address})]}),T("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:${fe.Support.Hotline}`,children:fe.Support.Hotline_Format}),T("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),T("div",{className:"mt-1 text-sm",children:[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:${fe.Support.Email}`,children:fe.Support.Email})]}),T("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:${fe.Support.Phone_Ext_1}`,children:fe.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:${fe.Support.Phone_Ext_2}`,children:fe.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:${fe.Support.Phone_Ext_3}`,children:fe.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:T("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:T("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
|
|
129
129
|
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
|
|
130
130
|
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
|
|
131
131
|
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
|
|
132
|
-
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"})]})})})]}),S("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"}),S("div",{className:"mt-2 text-sm md:mt-3",children:[u("span",{className:"text-white text-opacity-50",children:"Hotline : "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${pe.Business.Phome}`,children:pe.Business.Phome_Format})]}),S("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Email : "}),u(T,{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${pe.Business.Email}`,children:pe.Business.Email})]}),S("div",{className:"mt-1 text-sm",children:[u("span",{className:"text-white text-opacity-50",children:"Website : "}),u(T,{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(T,{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:S("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:S("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"})]})})})]})]}),S("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:[S("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:$o&&$o.map((r,n)=>u("li",{className:"inline-block",children:u(T,{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))})})]}),S("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"}),S("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:yr&&yr.map((r,n)=>S("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${r.Image}) center center / contain no-repeat`},children:[u(Ae,{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(T,{href:r.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),u(Zt,{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:$o&&$o.map((r,n)=>u("li",{children:u(T,{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))})})]})]}),S("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"}),S("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[S("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u(T,{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:S("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[S("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"}),S("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"}),S("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",u("strong",{children:"MoMo"})]}),S("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),S("div",{className:"text-sm text-white text-opacity-50",children:[S("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:"})]}),S("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"})]})]}),S("div",{className:" flex items-center justify-between md:hidden",children:[S("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),u(T,{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:`
|
|
132
|
+
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"})]})})})]}),T("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"}),T("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:${fe.Business.Phome}`,children:fe.Business.Phome_Format})]}),T("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:${fe.Business.Email}`,children:fe.Business.Email})]}),T("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:T("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:T("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"})]})})})]})]}),T("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:[T("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:$o&&$o.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))})})]}),T("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"}),T("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:Pr&&Pr.map((r,n)=>T("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${r.Image}) center center / contain no-repeat`},children:[u(Ne,{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(to,{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:$o&&$o.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))})})]})]}),T("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"}),T("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[T("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:T("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[T("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"}),T("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"}),T("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",u("strong",{children:"MoMo"})]}),T("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),T("div",{className:"text-sm text-white text-opacity-50",children:[T("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:"})]}),T("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"})]})]}),T("div",{className:" flex items-center justify-between md:hidden",children:[T("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:`
|
|
133
133
|
footer .button-download {
|
|
134
134
|
max-width: 150px;
|
|
135
135
|
}
|
|
136
|
-
`})]})},
|
|
136
|
+
`})]})},Ps=vf;import{jsx as Cs}from"react/jsx-runtime";var xf=({className:e,primaryMenu:o,secondaryMenu:t})=>Cs("footer",{className:i("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Cs(Ps,{primaryMenu:o,secondaryMenu:t})});import*as lo from"react";import{jsx as Fo}from"react/jsx-runtime";var Rs=lo.forwardRef(({className:e,...o},t)=>Fo("div",{ref:t,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Rs.displayName="Card";var ks=lo.forwardRef(({className:e,...o},t)=>Fo("div",{ref:t,className:i("flex flex-col space-y-1.5 p-6",e),...o}));ks.displayName="CardHeader";var Ts=lo.forwardRef(({className:e,...o},t)=>Fo("h3",{ref:t,className:i("font-semibold leading-none tracking-tight",e),...o}));Ts.displayName="CardTitle";var Ss=lo.forwardRef(({className:e,...o},t)=>Fo("p",{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ss.displayName="CardDescription";var Ds=lo.forwardRef(({className:e,...o},t)=>Fo("div",{ref:t,className:i("p-6 pt-0",e),...o}));Ds.displayName="CardContent";var Ms=lo.forwardRef(({className:e,...o},t)=>Fo("div",{ref:t,className:i("flex items-center p-6 pt-0",e),...o}));Ms.displayName="CardFooter";import*as Ve from"react";import{Command as Ce}from"cmdk";import{XCircleIcon as bf,MagnifyingGlassIcon as yf}from"@heroicons/react/16/solid";import{jsx as Me,jsxs as wf}from"react/jsx-runtime";var ci=Ve.forwardRef(({className:e,...o},t)=>Me(Ce,{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}));ci.displayName=Ce.displayName;var Nf=({children:e,...o})=>Me(Se,{...o,children:Me(we,{className:"overflow-hidden p-0 shadow-lg",children:Me(ci,{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})})}),Is=Ve.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},r)=>{let n=Ve.useRef(null),[s,l]=Ve.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return wf("div",{ref:n,className:i("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[Me(yf,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),Me(Ce.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}),Me(bf,{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")})]})});Is.displayName=Ce.Input.displayName;var As=Ve.forwardRef(({className:e,...o},t)=>Me(Ce.List,{ref:t,className:i("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));As.displayName=Ce.List.displayName;var Ls=Ve.forwardRef((e,o)=>Me(Ce.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Ls.displayName=Ce.Empty.displayName;var Fs=Ve.forwardRef(({className:e,...o},t)=>Me(Ce.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=Ce.Group.displayName;var zs=Ve.forwardRef(({className:e,...o},t)=>Me(Ce.Separator,{ref:t,className:i("-mx-1 text-gray-900 h-px bg-border",e),...o}));zs.displayName=Ce.Separator.displayName;var Es=Ve.forwardRef(({className:e,children:o,...t},a)=>Me(Ce.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}));Es.displayName=Ce.Item.displayName;var Hs=({className:e,...o})=>Me("span",{className:i("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});Hs.displayName="CommandShortcut";import{ChevronDownIcon as Pf}from"@heroicons/react/16/solid";import{jsx as Ka,jsxs as _s}from"react/jsx-runtime";var Cf=({className:e,value:o,label:t,children:a,placeholder:r,size:n})=>_s("div",{className:"relative",children:[_s(Ko,{className:i("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||r,Ka(Pf,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&Ka("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Rf=({children:e,className:o,...t})=>Ka(Do,{className:i("border-none !p-0",o),...t,children:e}),kf=({open:e,onOpenChange:o,children:t,...a})=>Ka(Zo,{open:e,onOpenChange:o,...a,children:t});import{forwardRef as Tf}from"react";import{InformationCircleIcon as Sf}from"@heroicons/react/24/outline";import{cva as Os}from"class-variance-authority";import Df from"html-react-parser";import{jsx as di,jsxs as Bs}from"react/jsx-runtime";var Mf=Os("flex items-center space-x-2 rounded-md border px-3 py-2 text-sm text-gray-700 ",{variants:{typeDiv:{neutral:"border-gray-300 bg-gray-50 ",error:"border-red-300 bg-red-50",success:"border-green-300 bg-green-50",warning:"border-yellow-300 bg-yellow-50",info:"border-blue-300 bg-blue-50"},disabled:{true:"pointer-events-none border-gray-300 bg-gray-50 text-gray-400 opacity-55"}},defaultVariants:{typeDiv:"neutral"}}),If=Os("h-5 w-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),fa=Tf(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:r,disabled:n,actionClassName:s,icon:l,...m},c)=>Bs("div",{ref:c,className:i("",r,Mf({typeDiv:e,disabled:n})),...m,children:[Bs("div",{className:"flex items-center space-x-2",children:[l||di(Sf,{className:i(If({typeIcon:e,disabled:n})),width:20,height:20}),o&&di("div",{children:Df(o)})]}),t&&di(ie,{variant:"primary",onClick:()=>a?.(),className:i("",s),isDisabled:n,children:t})]}));import{forwardRef as Af,useEffect as Lf,useRef as Ff,useState as zf}from"react";import{MagnifyingGlassIcon as Ef}from"@heroicons/react/20/solid";import{XCircleIcon as Hf}from"@heroicons/react/24/outline";import{jsx as zo,jsxs as Vs}from"react/jsx-runtime";var _f=Af(({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]=zf(!1),y=Ff(null),C=E=>{E&&!g&&v(!0),!E&&g&&v(!1)},N=E=>{C(E.target.value),r?.(E)},A=E=>{C(E.target.value),n?.(E)},O=()=>{let E=y.current?.querySelector("input");E&&(s?.(E.value),E.value="",E.focus(),v(!1))};return Lf(()=>{C(m||l)},[l,m]),Vs("div",{className:i(o),ref:y,children:[Vs("div",{className:"relative flex items-center",children:[zo("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:zo(Ef,{className:"w-4 h-4 text-gray-500"})}),zo("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:N,onFocus:A,value:l,defaultValue:m,...d}),g&&zo("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:O,children:zo(Hf,{strokeWidth:2,width:20,height:20})})]}),zo("style",{children:`
|
|
137
137
|
.mobase-text-input-box:hover {
|
|
138
138
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
139
139
|
}
|
|
140
140
|
.mobase-text-input-box:focus {
|
|
141
141
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
|
|
142
142
|
}
|
|
143
|
-
`})]})});import*as
|
|
143
|
+
`})]})});import*as Ie from"@radix-ui/react-dialog";import Gs,{useContext as Bf,useEffect as Ws,useState as pi}from"react";import{X as Of}from"lucide-react";import Vf from"lodash";import{jsx as ne,jsxs as Ft}from"react/jsx-runtime";var $s=Gs.createContext(void 0);function js(){let e=Bf($s);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var fi=({children:e,open:o,onOpenChange:t,className:a})=>ne($s.Provider,{value:{open:o,onOpenChange:t},children:ne(Ie.Root,{open:o,onOpenChange:t,children:ne("div",{className:i("lightbox-gallery",a),children:e})})}),Wf=({children:e,src:o,alt:t,className:a,classNameImage:r,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=js(),m=()=>{n?.(),l&&l(!0)};return Ft(Ie.Trigger,{className:i("",a),onClick:m,children:[e,ne(z,{ratio:s,className:"rounded-lg cursor-pointer",children:ne("img",{src:o,alt:t,className:i("w-full h-full object-cover rounded-lg",r)})})]})},Qs=Gs.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:r}=js(),n=()=>{r&&r(!1)};return Ft(Ie.Portal,{children:[ne(Ie.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),Ft(Ie.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,Ft(Ie.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[ne(Of,{className:"h-4 w-4 mt-0.5"}),ne("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Qs.displayName=Ie.Content.displayName;var gi=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:r})=>{let[n,s]=pi(""),[l,m]=pi(),[c,d]=pi(0);Ws(()=>{l&&(d(l.selectedScrollSnap()+1),l.on("select",()=>{d(l.selectedScrollSnap()+1)}))},[l]);let p=g=>{let v=Vf.filter(e,(C,N)=>N===(g>0?g-1:g)),y=v.length>0?v[0]?.titleImage:"";s(y)};return Ws(()=>{p(c)},[c]),Ft(Qs,{className:"flex py-0",children:[Ft("div",{className:" flex-1 relative",children:[Ft("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[c||1," / ",e?.length]}),Ft(ue,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ne(ve,{className:i("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((g,v)=>ne(de,{className:"pl-6 md:pl-4",children:Ft("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[ne("div",{className:"flex-1 relative",children:ne("img",{src:g.url,alt:"",className:"absolute h-full w-full object-contain"})}),ne("div",{className:"flex-0",children:ne("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:ne("div",{className:"line-clamp-3",children:n})})})]})},v))}),ne(Ro,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ne(ko,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ne("div",{className:i("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",r),children:a})]})};import*as Ut from"react";import{CheckIcon as Gf}from"@heroicons/react/16/solid";import*as ga from"@radix-ui/react-checkbox";import*as qt from"@radix-ui/react-radio-group";import{Circle as $f}from"lucide-react";import{jsx as mt,jsxs as Xs}from"react/jsx-runtime";var Us=Ut.createContext({hideIndicator:!1});function jf(){let e=Ut.useContext(Us);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Ja=Ut.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>mt(Us.Provider,{value:{hideIndicator:o},children:mt(qt.Root,{className:i("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Ja.displayName=qt.Root.displayName;var er=Ut.forwardRef(({className:e,children:o,...t},a)=>{let r=jf(),{hideIndicator:n}=r??{};return Xs(qt.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:[mt("div",{className:"min-w-0 flex-1",children:o}),!n&&mt("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:mt(qt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:mt($f,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});er.displayName=qt.Item.displayName;var qs=Ut.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},r)=>Xs(ga.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:[mt("div",{className:"min-w-0 flex-1",children:o}),!t&&mt("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:mt(ga.Indicator,{className:i("flex items-center justify-center text-current"),children:mt(Gf,{className:"h-4 w-4"})})})]}));qs.displayName=ga.Root.displayName;import{cva as Qf}from"class-variance-authority";import{jsx as qf}from"react/jsx-runtime";var Ys=Qf("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 Uf({className:e,variant:o,...t}){return qf("div",{className:i(Ys({variant:o}),e),...t})}import*as Ks from"react";import*as ua from"@radix-ui/react-progress";import{cva as Js}from"class-variance-authority";import{jsx as Zs}from"react/jsx-runtime";var Xf=Js("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"}}),Yf=Js("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"}}),el=Ks.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:r=!1,...n},s)=>Zs(ua.Root,{ref:s,className:i("",Yf({size:a}),e),...n,children:Zs(ua.Indicator,{className:i("",Xf({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));el.displayName=ua.Root.displayName;import{jsx as Zf}from"react/jsx-runtime";function tr({className:e,...o}){return Zf("div",{className:i("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Kf,jsx as mo,jsxs as tl}from"react/jsx-runtime";function ui({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 mo("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return tl("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>mo("span",{className:i("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),mo("style",{children:`
|
|
144
144
|
.spinner_dots span {
|
|
145
145
|
animation-name: spinner-dots;
|
|
146
146
|
animation-duration: 1.4s;
|
|
@@ -167,7 +167,7 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
167
167
|
opacity: .2;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
`})]});case"default":default:return
|
|
170
|
+
`})]});case"default":default:return tl(Kf,{children:[mo("div",{className:i("spinner_wrapper relative size-5 overflow-hidden",r[e],t),children:mo("div",{className:i("spinner relative left-1/2 top-1/2 size-5 ",r[e],t),children:[...Array(12)].map((l,m)=>mo("div",{className:i(`spinner_bar child-${m+1}`,o)},m))})}),mo("style",{children:`
|
|
171
171
|
.spinner_bar {
|
|
172
172
|
animation: spinner_spin 1.2s linear infinite;
|
|
173
173
|
border-radius: 20px;
|
|
@@ -247,7 +247,7 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
247
247
|
opacity: 0.15;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
`})]})}})()})}import*as Ys from"react";import*as ct from"@radix-ui/react-slider";import{jsx as jt,jsxs as Xf}from"react/jsx-runtime";var Zs=Ys.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>Xf(ct.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[jt(ct.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:jt(ct.Range,{className:"absolute h-full bg-pink-500"})}),jt(ct.Thumb,{className:"group relative",children:jt("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&&jt("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})})}),jt(ct.Thumb,{className:"group relative",children:jt("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&&jt("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})})})]}));Zs.displayName=ct.Root.displayName;import{forwardRef as cg}from"react";import{Fragment as Jf,jsx as Oe,jsxs as Ja}from"react/jsx-runtime";var Yf=({author:e=""})=>Oe("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),Zf=({author:e,avatar:o})=>Oe("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Oe("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Oe(Yf,{author:e})});function Kf({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return Oe(Jf,{children:Ja("div",{className:"flex relative items-center space-x-3",children:[Oe(Zf,{avatar:e,author:o}),Ja("div",{className:"flex flex-col",children:[o&&Oe("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Ja("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Oe("div",{className:"text-gray-400",children:t}),a&&Ja("div",{className:"flex items-center space-x-2",children:[Oe("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Oe("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&Oe("div",{className:"absolute right-1 top-0",children:Oe("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Ks=Kf;import{useState as al}from"react";import{StarIcon as eg}from"@heroicons/react/20/solid";import{jsx as Js,jsxs as el}from"react/jsx-runtime";var tg={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!"},og={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 ag({point:e,max:o,className:t}){let a=o>5?tg[e||10]:og[e||5];return el("div",{className:i("flex items-center space-x-1",t),children:[Js(eg,{className:"w-5 h-5 text-yellow-500"}),Js("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),el("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var tl=ag;import{useState as rg}from"react";import ol from"html-react-parser";import{jsx as ig,jsxs as ng}from"react/jsx-runtime";var di=({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]=rg(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return ng("div",{className:i(n),children:[s?ol(c(e,o)):ol(e),e.length>o&&ig("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 so,jsxs as rl}from"react/jsx-runtime";function sg({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=al(0),[m,c]=al(!1),d=p=>{c(!0),l(p)};return rl("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&so(tl,{className:"mb-0.5",point:r.point,max:r.max}),e&&so(di,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&so("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>so("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&&rl(li,{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)=>so(H,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:so("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),so(mi,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var il=sg;import{jsx as mg}from"react/jsx-runtime";function lg({actions:e=[]}){return mg("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var nl=lg;import{jsx as er,jsxs as pg}from"react/jsx-runtime";var dg=cg(({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},y)=>pg("div",{ref:y,className:i("",c?"ml-4 py-4":"py-5"),children:[er(Ks,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),er(il,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&er(nl,{actions:l.filter(Boolean)}),d&&er("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 Qt from"react";import{cva as fg}from"class-variance-authority";import{CheckIcon as gg}from"@heroicons/react/16/solid";import{XIcon as ug}from"lucide-react";import{jsx as Pe,jsxs as tr}from"react/jsx-runtime";var vg=fg("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"}}),sl=Qt.createContext("default");function hg(){let e=Qt.useContext(sl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var xg=Qt.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?Pe(ug,{className:s}):tr("div",{children:[e==="iconStep"&&Pe("div",{className:s,children:o}),e==="numberStep"&&Pe("div",{children:t}),e==="default"&&(n==="completed"?Pe(gg,{className:s}):Pe("div",{children:t}))]})}),bg=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=Qt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return Pe("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},yg=({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=hg();return tr("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[tr("div",{className:"flex w-full items-center justify-center gap-2",children:[Pe("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")}),Pe("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",vg({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...g,children:Pe(xg,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),Pe("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),tr("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&&Pe("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&Pe("div",{className:"text-xs text-gray-500 ",children:s})]})]})},wg=({children:e,className:o,type:t="numberStep",...a})=>Pe(sl.Provider,{value:t,children:Pe("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as Ce from"react";import{Slot as Rg}from"@radix-ui/react-slot";import{Controller as kg,FormProvider as Tg,useFormContext as Sg}from"react-hook-form";import*as ll from"react";import*as pi from"@radix-ui/react-label";import{cva as Ng}from"class-variance-authority";import{jsx as Cg}from"react/jsx-runtime";var Pg=Ng("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),or=ll.forwardRef(({className:e,...o},t)=>Cg(pi.Root,{ref:t,className:i(Pg(),e),...o}));or.displayName=pi.Root.displayName;import{jsx as Ut}from"react/jsx-runtime";var fi=Tg,ml=Ce.createContext({}),gi=({...e})=>Ut(ml.Provider,{value:{name:e.name},children:Ut(kg,{...e})}),ua=()=>{let e=Ce.useContext(ml),o=Ce.useContext(cl),{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}},cl=Ce.createContext({}),ar=Ce.forwardRef(({className:e,...o},t)=>{let a=Ce.useId();return Ut(cl.Provider,{value:{id:a},children:Ut("div",{ref:t,className:i("space-y-2",e),...o})})});ar.displayName="FormItem";var rr=Ce.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=ua();return Ut(or,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});rr.displayName="FormLabel";var ir=Ce.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=ua();return Ut(Rg,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});ir.displayName="FormControl";var nr=Ce.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=ua();return Ut("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});nr.displayName="FormDescription";var sr=Ce.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=ua(),s=r?String(r?.message):o;return s?Ut("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});sr.displayName="FormMessage";import*as At from"react";import*as R from"@radix-ui/react-dropdown-menu";import{ChevronRight as Dg,Check as Mg}from"lucide-react";import{jsx as xe,jsxs as va}from"react/jsx-runtime";var Ig=R.Root,Lg=R.Trigger,Ag=R.Group,Fg=R.Portal,Eg=R.Sub,zg=R.RadioGroup,dl=At.forwardRef(({className:e,inset:o,children:t,...a},r)=>va(R.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,xe(Dg,{className:"ml-auto"})]}));dl.displayName=R.SubTrigger.displayName;var pl=At.forwardRef(({className:e,...o},t)=>xe(R.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}));pl.displayName=R.SubContent.displayName;var fl=At.forwardRef(({className:e,sideOffset:o=4,...t},a)=>xe(R.Portal,{children:xe(R.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})}));fl.displayName=R.Content.displayName;var gl=At.forwardRef(({className:e,inset:o,...t},a)=>xe(R.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}));gl.displayName=R.Item.displayName;var ul=At.forwardRef(({className:e,children:o,checked:t,...a},r)=>va(R.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:[va("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&xe("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),xe(R.ItemIndicator,{children:xe("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:xe(Mg,{size:16,strokeWidth:3})})})]}),o]}));ul.displayName=R.CheckboxItem.displayName;var vl=At.forwardRef(({className:e,children:o,...t},a)=>va(R.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:[va("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[xe("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),xe(R.ItemIndicator,{children:xe("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));vl.displayName=R.RadioItem.displayName;var hl=At.forwardRef(({className:e,inset:o,...t},a)=>xe(R.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));hl.displayName=R.Label.displayName;var xl=At.forwardRef(({className:e,...o},t)=>xe(R.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));xl.displayName=R.Separator.displayName;var bl=({className:e,...o})=>xe("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});bl.displayName="DropdownMenuShortcut";import{Slot as Hg}from"@radix-ui/react-slot";import lo from"html-react-parser";var yl=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};import{Fragment as lr,jsx as F,jsxs as dt}from"react/jsx-runtime";var wl=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(lr,{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&&o?.length>0&&F("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>F("div",{className:i("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:dt("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:[F("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}),dt("div",{className:"mt-6 w-full",children:[F("div",{className:"w-full text-xl font-semibold",children:lo(a.title)}),a?.description&&F("div",{className:"mt-2 text-base text-gray-600",children:lo(a.description)})]})]})},r))}),t&&F(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),_g=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(lr,{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&&o?.length>0&&F("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>dt("div",{className:i("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[dt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[F("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&&F("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:F(H,{ratio:1,children:F("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),dt("div",{className:"mt-6 w-full",children:[F("div",{className:"w-full text-xl font-semibold",children:lo(a.title)}),a?.description&&F("div",{className:"mt-2 text-base text-gray-600",children:lo(a.description)})]})]},r))}),t&&F(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Bg=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(lr,{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&&o.length>0&&F("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4 ",children:o.map((a,r)=>dt("div",{className:i("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&F("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?yl(a.image)?F("img",{src:a.image,className:"block object-cover"}):F(Hg,{className:"h-6 w-6 stroke-white stroke-2",children:lo(a.image.replace(/\n|\r/g,""))}):a.image}),dt("div",{className:"mt-4 w-full md:mt-6",children:[F("div",{className:"w-full text-xl font-semibold",children:lo(a.title)}),a?.description&&F("div",{className:"mt-2 text-base text-gray-600",children:lo(a.description)})]})]},r))}),t&&F(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Og=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return F(wl,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return F(_g,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return F(Bg,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return F(wl,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Vg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>F(lr,{children:Og({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Wg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>F(V,{className:t,idSection:a,background:o,children:F(Vg,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as $g}from"class-variance-authority";import Nl from"html-react-parser";import{CheckIcon as Pl}from"lucide-react";import{Fragment as ui,jsx as be,jsxs as Cl}from"react/jsx-runtime";var Gg=$g("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}}),jg=({template:e,name:o,image:t,isFeatures:a})=>be(ui,{children:(()=>{switch(e){case 1:case 2:return be(ui,{children:Cl("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full"})}):be("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:be(Pl,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"ml-2 ",children:Nl(o)})]})});case 3:return Cl("li",{className:"flex h-full space-x-4",children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full"})}):be("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:be(Pl,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"my-auto ml-2 md:my-0",children:Nl(o)})]});default:return null}})()}),mr=({dataFeatures:e,template:o=1})=>be(ui,{children:(e?.length??0)>0&&be("ul",{className:i("",Gg({template:o})),children:e?.map((t,a)=>be(jg,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as Qg}from"lucide-react";import{jsx as J,jsxs as ha}from"react/jsx-runtime";var Rl=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Ug=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>ha(ho,{children:[J(Ke,{greaterThan:"sm",children:ha(H,{className:i(""),ratio:Rl(o),children:[J("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&ha(Ge,{children:[J(Qo,{onClick:r,children:J("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:J("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:ha("g",{fill:"none",fillRule:"evenodd",children:[J("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),J("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),J(Fe,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:ha(et,{className:"relative bg-transparent p-4 text-center",children:[J("div",{className:"aspect-[16/9] w-full p-0",children:J("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"})}),J(Pr,{asChild:!0,children:J(ne,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:J(Qg,{className:"h-6 w-6"})})})]})})]})]})}),a&&J(Ke,{lessThan:"md",children:J("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:J("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),cr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>J("div",{className:a,children:n?J(Ug,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):J(H,{ratio:Rl(t),children:J("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});import qg from"html-react-parser";import{Fragment as Yg,jsx as dr,jsxs as vi}from"react/jsx-runtime";var Xg=({value:e,suffix:o,unit:t,description:a,idx:r})=>vi("div",{className:i(""),children:[e&&vi("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&vi("span",{children:[o," ",t]})]}),a&&dr("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:qg(a)})]}),pr=({dataStats:e})=>dr(Yg,{children:(e?.length??0)>0&&dr("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)=>dr(Xg,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as kl,jsx as ee,jsxs as xa}from"react/jsx-runtime";var hi=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>xa("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[xa("div",{className:"col-span-1 ",children:[ee(h,{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)}),ee(mr,{dataFeatures:t,template:a}),o&&ee(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),ee(pr,{dataStats:r})]}),ee("div",{className:"col-span-1 md:pl-10",children:s||ee(cr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Tl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>xa("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[ee("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||ee(cr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),xa("div",{className:"order-1 col-span-1 md:order-2",children:[ee(h,{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)}),ee(mr,{dataFeatures:t,template:a}),o&&ee("div",{className:"flex w-full items-center justify-center md:justify-start",children:ee(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),ee(pr,{dataStats:r})]})]}),Sl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>xa(kl,{children:[ee(h,{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&&ee(x,{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"}),ee(mr,{dataFeatures:t,template:a}),ee("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:ee(pr,{dataStats:r})}),s||ee(kl,{children:n?.src&&ee(cr,{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 tu,jsx as mo}from"react/jsx-runtime";var Zg=`var(
|
|
250
|
+
`})]})}})()})}import*as ol from"react";import*as ct from"@radix-ui/react-slider";import{jsx as Xt,jsxs as Jf}from"react/jsx-runtime";var al=ol.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>Jf(ct.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Xt(ct.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Xt(ct.Range,{className:"absolute h-full bg-pink-500"})}),Xt(ct.Thumb,{className:"group relative",children:Xt("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&&Xt("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})})}),Xt(ct.Thumb,{className:"group relative",children:Xt("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&&Xt("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})})})]}));al.displayName=ct.Root.displayName;import{forwardRef as gg}from"react";import{Fragment as ag,jsx as We,jsxs as or}from"react/jsx-runtime";var eg=({author:e=""})=>We("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),tg=({author:e,avatar:o})=>We("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?We("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):We(eg,{author:e})});function og({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return We(ag,{children:or("div",{className:"flex relative items-center space-x-3",children:[We(tg,{avatar:e,author:o}),or("div",{className:"flex flex-col",children:[o&&We("div",{className:"font-semibold text-gray-900 text-sm",children:o}),or("div",{className:"flex items-center space-x-2 text-xs",children:[t&&We("div",{className:"text-gray-400",children:t}),a&&or("div",{className:"flex items-center space-x-2",children:[We("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),We("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&We("div",{className:"absolute right-1 top-0",children:We("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var rl=og;import{useState as ml}from"react";import{StarIcon as rg}from"@heroicons/react/20/solid";import{jsx as il,jsxs as nl}from"react/jsx-runtime";var ig={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!"},ng={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 sg({point:e,max:o,className:t}){let a=o>5?ig[e||10]:ng[e||5];return nl("div",{className:i("flex items-center space-x-1",t),children:[il(rg,{className:"w-5 h-5 text-yellow-500"}),il("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),nl("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var sl=sg;import{useState as lg}from"react";import ll from"html-react-parser";import{jsx as mg,jsxs as cg}from"react/jsx-runtime";var vi=({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]=lg(!0),m=()=>{l(!s)},c=(d,p,g=" ")=>d.length<=p?d:d.substring(0,d.lastIndexOf(g,p));return cg("div",{className:i(n),children:[s?ll(c(e,o)):ll(e),e.length>o&&mg("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 co,jsxs as cl}from"react/jsx-runtime";function dg({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,l]=ml(0),[m,c]=ml(!1),d=p=>{c(!0),l(p)};return cl("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&co(sl,{className:"mb-0.5",point:r.point,max:r.max}),e&&co(vi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&co("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>co("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&&cl(fi,{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)=>co(z,{onClick:()=>d(g),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:co("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},g)),co(gi,{activeSlideIndex:s,images:o?.map((p,g)=>({url:p.url,titleImage:p.titleImage,idx:g})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var dl=dg;import{jsx as fg}from"react/jsx-runtime";function pg({actions:e=[]}){return fg("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var pl=pg;import{jsx as ar,jsxs as vg}from"react/jsx-runtime";var ug=gg(({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},y)=>vg("div",{ref:y,className:i("",c?"ml-4 py-4":"py-5"),children:[ar(rl,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:g}),ar(dl,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:v}),l&&l?.filter(Boolean)?.length>0&&ar(pl,{actions:l.filter(Boolean)}),d&&ar("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 Yt from"react";import{cva as hg}from"class-variance-authority";import{CheckIcon as xg}from"@heroicons/react/16/solid";import{XIcon as bg}from"lucide-react";import{jsx as Re,jsxs as rr}from"react/jsx-runtime";var yg=hg("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"}}),fl=Yt.createContext("default");function Ng(){let e=Yt.useContext(fl);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var wg=Yt.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?Re(bg,{className:s}):rr("div",{children:[e==="iconStep"&&Re("div",{className:s,children:o}),e==="numberStep"&&Re("div",{children:t}),e==="default"&&(n==="completed"?Re(xg,{className:s}):Re("div",{children:t}))]})}),Pg=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=Yt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return Re("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Cg=({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=Ng();return rr("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[rr("div",{className:"flex w-full items-center justify-center gap-2",children:[Re("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")}),Re("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",yg({state:o,size:t}),d&&"bg-red-500 text-white shadow-none",r),...g,children:Re(wg,{type:v,icon:c,stepNumber:e,size:t,isError:d,state:o})}),Re("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),rr("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&&Re("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&Re("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Rg=({children:e,className:o,type:t="numberStep",...a})=>Re(fl.Provider,{value:t,children:Re("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});import*as ke from"react";import{Slot as Dg}from"@radix-ui/react-slot";import{Controller as Mg,FormProvider as Ig,useFormContext as Ag}from"react-hook-form";import*as gl from"react";import*as hi from"@radix-ui/react-label";import{cva as kg}from"class-variance-authority";import{jsx as Sg}from"react/jsx-runtime";var Tg=kg("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ir=gl.forwardRef(({className:e,...o},t)=>Sg(hi.Root,{ref:t,className:i(Tg(),e),...o}));ir.displayName=hi.Root.displayName;import{jsx as Zt}from"react/jsx-runtime";var xi=Ig,ul=ke.createContext({}),bi=({...e})=>Zt(ul.Provider,{value:{name:e.name},children:Zt(Mg,{...e})}),va=()=>{let e=ke.useContext(ul),o=ke.useContext(vl),{getFieldState:t,formState:a}=Ag(),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}},vl=ke.createContext({}),nr=ke.forwardRef(({className:e,...o},t)=>{let a=ke.useId();return Zt(vl.Provider,{value:{id:a},children:Zt("div",{ref:t,className:i("space-y-2",e),...o})})});nr.displayName="FormItem";var sr=ke.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=va();return Zt(ir,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});sr.displayName="FormLabel";var lr=ke.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=va();return Zt(Dg,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});lr.displayName="FormControl";var mr=ke.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=va();return Zt("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});mr.displayName="FormDescription";var cr=ke.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=va(),s=r?String(r?.message):o;return s?Zt("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});cr.displayName="FormMessage";import*as zt from"react";import*as R from"@radix-ui/react-dropdown-menu";import{ChevronRight as Lg,Check as Fg}from"lucide-react";import{jsx as xe,jsxs as ha}from"react/jsx-runtime";var zg=R.Root,Eg=R.Trigger,Hg=R.Group,_g=R.Portal,Bg=R.Sub,Og=R.RadioGroup,hl=zt.forwardRef(({className:e,inset:o,children:t,...a},r)=>ha(R.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,xe(Lg,{className:"ml-auto"})]}));hl.displayName=R.SubTrigger.displayName;var xl=zt.forwardRef(({className:e,...o},t)=>xe(R.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}));xl.displayName=R.SubContent.displayName;var bl=zt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>xe(R.Portal,{children:xe(R.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})}));bl.displayName=R.Content.displayName;var yl=zt.forwardRef(({className:e,inset:o,...t},a)=>xe(R.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}));yl.displayName=R.Item.displayName;var Nl=zt.forwardRef(({className:e,children:o,checked:t,...a},r)=>ha(R.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:[ha("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&xe("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),xe(R.ItemIndicator,{children:xe("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:xe(Fg,{size:16,strokeWidth:3})})})]}),o]}));Nl.displayName=R.CheckboxItem.displayName;var wl=zt.forwardRef(({className:e,children:o,...t},a)=>ha(R.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:[ha("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[xe("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),xe(R.ItemIndicator,{children:xe("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));wl.displayName=R.RadioItem.displayName;var Pl=zt.forwardRef(({className:e,inset:o,...t},a)=>xe(R.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Pl.displayName=R.Label.displayName;var Cl=zt.forwardRef(({className:e,...o},t)=>xe(R.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));Cl.displayName=R.Separator.displayName;var Rl=({className:e,...o})=>xe("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});Rl.displayName="DropdownMenuShortcut";import{Slot as Vg}from"@radix-ui/react-slot";import po from"html-react-parser";var kl=e=>{try{let o=new URL(e.trim());return o.protocol==="http:"||o.protocol==="https:"}catch{return!1}};import{Fragment as dr,jsx as L,jsxs as dt}from"react/jsx-runtime";var Tl=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(dr,{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&&o?.length>0&&L("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>L("div",{className:i("basis-full px-3.5 md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:dt("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[L("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:r+1}),dt("div",{className:"mt-6 w-full",children:[L("div",{className:"w-full text-xl font-semibold",children:po(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:po(a.description)})]})]})},r))}),t&&L(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Wg=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(dr,{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&&o?.length>0&&L("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>dt("div",{className:i("basis-full px-3.5 text-center md:basis-1/3",o.length===4&&"md:basis-1/2 lg:basis-1/4"),children:[dt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[L("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:r+1}),a?.image&&L("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:L(z,{ratio:1,children:L("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),dt("div",{className:"mt-6 w-full",children:[L("div",{className:"w-full text-xl font-semibold",children:po(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:po(a.description)})]})]},r))}),t&&L(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Gg=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>dt(dr,{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&&o.length>0&&L("div",{className:"flex flex-col justify-center gap-y-14 md:flex-row md:gap-x-4 ",children:o.map((a,r)=>dt("div",{className:i("basis-full text-center","relative","before:contents-['*'] before:absolute before:bg-gray-200 first:before:hidden","after:contents-['*'] after:absolute after:bg-gray-200 last:after:hidden","before:-top-10 before:start-1/2 before:h-6 before:w-[1px]","md:before:inset-auto md:before:-start-3.5 md:before:top-8 md:before:h-[1px] md:before:w-[calc(50%-2rem)]","after:-bottom-10 after:start-1/2 after:h-6 after:w-[1px]","md:after:inset-auto md:after:-end-3.5 md:after:top-8 md:after:h-[1px] md:after:w-[calc(50%-2rem)]"),children:[a?.image&&L("span",{className:"mx-auto flex size-12 items-center justify-center rounded-full bg-pink-500 md:size-14",children:typeof a.image=="string"?kl(a.image)?L("img",{src:a.image,className:"block object-cover"}):L(Vg,{className:"h-6 w-6 stroke-white stroke-2",children:po(a.image.replace(/\n|\r/g,""))}):a.image}),dt("div",{className:"mt-4 w-full md:mt-6",children:[L("div",{className:"w-full text-xl font-semibold",children:po(a.title)}),a?.description&&L("div",{className:"mt-2 text-base text-gray-600",children:po(a.description)})]})]},r))}),t&&L(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),$g=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return L(Tl,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return L(Wg,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 3:return L(Gg,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return L(Tl,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},jg=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>L(dr,{children:$g({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Qg=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>L(_,{className:t,idSection:a,background:o,children:L(jg,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});import{cva as Ug}from"class-variance-authority";import Sl from"html-react-parser";import{CheckIcon as Dl}from"lucide-react";import{Fragment as yi,jsx as be,jsxs as Ml}from"react/jsx-runtime";var qg=Ug("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}}),Xg=({template:e,name:o,image:t,isFeatures:a})=>be(yi,{children:(()=>{switch(e){case 1:case 2:return be(yi,{children:Ml("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full"})}):be("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:be(Dl,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"ml-2 ",children:Sl(o)})]})});case 3:return Ml("li",{className:"flex h-full space-x-4",children:[t?be("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:be("img",{src:t,alt:"",className:"max-w-full"})}):be("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:be(Dl,{className:"h-4 w-4 text-pink-500"})}),o&&be("div",{className:"my-auto ml-2 md:my-0",children:Sl(o)})]});default:return null}})()}),pr=({dataFeatures:e,template:o=1})=>be(yi,{children:(e?.length??0)>0&&be("ul",{className:i("",qg({template:o})),children:e?.map((t,a)=>be(Xg,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as Yg}from"lucide-react";import{jsx as J,jsxs as xa}from"react/jsx-runtime";var Il=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,Zg=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>xa(yo,{children:[J(Je,{greaterThan:"sm",children:xa(z,{className:i(""),ratio:Il(o),children:[J("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&xa(Se,{children:[J(Uo,{onClick:r,children:J("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:J("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:xa("g",{fill:"none",fillRule:"evenodd",children:[J("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),J("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),J(we,{hideCloseBtn:!0,size:"xl",position:"center",className:"bg-transparent shadow-none",children:xa(Ee,{className:"relative bg-transparent p-4 text-center",children:[J("div",{className:"aspect-[16/9] w-full p-0",children:J("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"})}),J(kr,{asChild:!0,children:J(se,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:J(Yg,{className:"h-6 w-6"})})})]})})]})]})}),a&&J(Je,{lessThan:"md",children:J("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:J("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),fr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>J("div",{className:a,children:n?J(Zg,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):J(z,{ratio:Il(t),children:J("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 eu,jsx as gr,jsxs as Ni}from"react/jsx-runtime";var Jg=({value:e,suffix:o,unit:t,description:a,idx:r})=>Ni("div",{className:i(""),children:[e&&Ni("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Ni("span",{children:[o," ",t]})]}),a&&gr("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:Kg(a)})]}),ur=({dataStats:e})=>gr(eu,{children:(e?.length??0)>0&&gr("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)=>gr(Jg,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Al,jsx as ee,jsxs as ba}from"react/jsx-runtime";var wi=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ba("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[ba("div",{className:"col-span-1 ",children:[ee(h,{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)}),ee(pr,{dataFeatures:t,template:a}),o&&ee(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),ee(ur,{dataStats:r})]}),ee("div",{className:"col-span-1 md:pl-10",children:s||ee(fr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Ll=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ba("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[ee("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||ee(fr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),ba("div",{className:"order-1 col-span-1 md:order-2",children:[ee(h,{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)}),ee(pr,{dataFeatures:t,template:a}),o&&ee("div",{className:"flex w-full items-center justify-center md:justify-start",children:ee(x,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),ee(ur,{dataStats:r})]})]}),Fl=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>ba(Al,{children:[ee(h,{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&&ee(x,{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"}),ee(pr,{dataFeatures:t,template:a}),ee("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:ee(ur,{dataStats:r})}),s||ee(Al,{children:n?.src&&ee(fr,{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 iu,jsx as fo}from"react/jsx-runtime";var tu=`var(
|
|
251
251
|
--gradient-pink-1,
|
|
252
252
|
linear-gradient(
|
|
253
253
|
38deg,
|
|
@@ -269,7 +269,7 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
269
269
|
rgba(255, 255, 255, 0) 80%
|
|
270
270
|
),
|
|
271
271
|
#fff
|
|
272
|
-
)`,
|
|
272
|
+
)`,ou=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return fo(wi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 2:return fo(Ll,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});case 3:return fo(Fl,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s});default:return fo(wi,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,template:e,dataMedia:n,advancedComponent:s})}},au=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})=>fo(iu,{children:ou({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:r,dataMedia:n,advancedComponent:s})}),ru=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:r,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:c=null})=>fo(_,{className:i(l),background:m??tu,idSection:o,children:fo(au,{dataButtons:a,template:e,dataHeading:t,dataFeatures:r,dataStats:n,dataMedia:s,advancedComponent:c})});import{memo as nu}from"react";import{Fragment as su,jsx as Eo,jsxs as lu}from"react/jsx-runtime";var vr=nu(({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 lu(su,{children:[e&&Eo(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&&Eo("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 Eo("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:Eo(m,{...c,className:"group flex h-full w-full items-center justify-center",children:Eo("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&&Eo(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as mu}from"react";import{Fragment as cu,jsx as go,jsxs as du}from"react/jsx-runtime";var Pi=mu(({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>du(cu,{children:[e&&go(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&&go("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 go("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:go(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:go("div",{className:"flex w-full items-center justify-center",children:go("img",{src:r?.logo,loading:"lazy",alt:r?.name,className:"h-auto max-h-28 w-auto max-w-full object-contain"})})})},n)})}),t&&go(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}));import{memo as pu}from"react";import{Fragment as fu,jsx as Ye,jsxs as Ri}from"react/jsx-runtime";var Ci=(e,o)=>{if(!e)return Ye("div",{className:i("h-full w-full",o)});let t=e.url?"a":"div";return Ye("div",{className:i("h-full w-full",o),children:Ye(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:Ye("div",{className:"flex h-full w-full items-center justify-center",children:Ye("img",{src:e.logo,alt:e.name,className:"h-auto max-h-full w-auto max-w-full object-contain"})})})})},ki=pu(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=Po(),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(fu,{children:[e&&Ye(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&&Ri(ue,{opts:{align:a?"center":"start"},className:"w-full",children:[Ye(ve,{classNameContent:"overflow-visible md:overflow-hidden",children:o.length>=12?r.map((s,l)=>Ri(de,{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:[Ci(s,"min-h-0 flex-1"),n[l]?Ci(n[l],"min-h-0 flex-1"):Ye("div",{className:"min-h-0 flex-1"})]},l)):o.map((s,l)=>Ye(de,{className:"flex basis-5/12 items-center justify-center pl-3 md:basis-1/4 md:pl-4 lg:basis-1/6",children:Ci(s)},l))}),Ye(To,{className:"mt-5"})]}),t&&Ye(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})});import{memo as yu}from"react";import{useEffect as gu,useState as Ti}from"react";import{animate as zl,motion as uu,useMotionValue as vu}from"motion/react";import hu from"react-use-measure";import{jsx as bu,jsxs as xu}from"react/jsx-runtime";function Ho({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=Ti(t),[d,{width:p,height:g}]=hu(),v=vu(0),[y,C]=Ti(!1),[N,A]=Ti(0);gu(()=>{let E,P=(r==="horizontal"?p:g)+o,V=n?-P/2:0,F=n?0:-P/2,je=Math.abs(F-V)/m;if(y){let Go=Math.abs(v.get()-F)/m;E=zl(v,[v.get(),F],{ease:"linear",duration:Go,onComplete:()=>{C(!1),A(tc=>tc+1)}})}else E=zl(v,[V,F],{ease:"linear",duration:je,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(V)}});return E?.stop},[N,v,m,p,g,o,y,r,n]);let O=a?{onHoverStart:()=>{C(!0),c(a)},onHoverEnd:()=>{C(!0),c(t)},onTouchStart:()=>{C(!0),c(a)},onTouchEnd:()=>{C(!0),c(t)}}:{};return bu("div",{className:i("overflow-hidden",s),children:xu(uu.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,...O,children:[e,e]})})}import{Fragment as Hl,jsx as Ae,jsxs as Nu}from"react/jsx-runtime";var El=(e,o)=>{let t=e?.url?"a":"div";return Ae("div",{className:i("h-full w-full",o),children:Ae(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:Ae("div",{className:"flex h-full w-full items-center justify-center",children:Ae("img",{src:e?.logo,alt:e?.name,className:"`h-auto max-h-full w-auto max-w-full object-contain"})})})})},Si=yu(({dataHeading:e,dataBrands:o,dataButtons:t})=>{let a=o?.length??0,r=a>6;return Nu(Hl,{children:[e&&Ae(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&&Ae(Hl,{children:r?Ae("div",{className:"mark-horizontal-slider relative overflow-hidden",children:Ae(Ho,{direction:"horizontal",speed:70,speedOnHover:.05,gap:20,className:"inline-flex flex-row",children:o?.map((n,s)=>Ae("div",{className:"w-32 md:w-40",children:El(n)},s))})}):Ae("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)=>Ae("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:El(n)},s))})}),t&&Ae(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),Ae("style",{children:`
|
|
273
273
|
.mark-horizontal-slider {
|
|
274
274
|
mask-image: linear-gradient(
|
|
275
275
|
to right,
|
|
@@ -286,15 +286,15 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
286
286
|
transparent 100%
|
|
287
287
|
);
|
|
288
288
|
}
|
|
289
|
-
`})]})});import{Fragment as
|
|
289
|
+
`})]})});import{Fragment as Ru,jsx as Kt}from"react/jsx-runtime";var wu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>{switch(e){case 1:return Kt(vr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n});case 2:return Kt(Pi,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 3:return Kt(ki,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});case 4:return Kt(Si,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return Kt(vr,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}},Pu=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})=>Kt(Ru,{children:wu({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:r,isScrollSnap:n})}),Cu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>Kt(_,{className:i(e===3&&"overflow-hidden md:overflow-visible",t),idSection:a,background:o,children:Kt(Pu,{template:e,dataHeading:r,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{useState as ku}from"react";import{ChevronRightIcon as Tu}from"@heroicons/react/16/solid";import X from"html-react-parser";import{Fragment as Et,jsx as f,jsxs as b}from"react/jsx-runtime";var pt=({btnLink:e,btnName:o,newTab:t})=>f(ie,{variant:"primary",asChild:!0,children:b("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(Tu,{className:"h-4 w-4"})]})}),Di=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Et,{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,r)=>b("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"})}),b("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),_l=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Et,{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 list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,r)=>b("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"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
|
|
290
290
|
.list-features-2 .feature-item {
|
|
291
291
|
background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
|
|
292
292
|
}
|
|
293
|
-
`})]}),Al=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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,r)=>b("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"})}),b("div",{className:"mt-4 w-full flex-1",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Fl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[b("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:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),b("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)=>b("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"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),El=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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,r)=>b("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"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),zl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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,r)=>b("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"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Hl=({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:b(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"})}),b("div",{className:"w-full flex-1 text-center",children:[d?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:X(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:X(d.description)})]})]})},p)};return b(Ft,{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(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},_l=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Ft,{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,r)=>b("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[b("div",{className:"flex w-full flex-1 flex-col p-5",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Bl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>b("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:b("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: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)=>b("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"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:X(r.name)}),r?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&f(x,{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"})})})})]}),Ol=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>b(Ft,{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:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&b("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)=>b("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"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:X(r.name)}),r?.description&&f("div",{className:"mt-2 text-gray-500",children:X(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&b("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(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),Vl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=Nu(0),s=No();return b(Ft,{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&&b("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(xt,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((l,m)=>b(bt,{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(yt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:X(l.name||"")}),b(wt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:X(l.description||"")}),l?.btnLink&&f("div",{className:"",children:f(pt,{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: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(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?.[r]?.image?f(H,{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(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as Tu,jsx as ye}from"react/jsx-runtime";var Cu=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return ye(Ci,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ye(Ll,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ye(Al,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ye(Fl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ye(El,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ye(zl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ye(Hl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ye(_l,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ye(Bl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return ye(Ol,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return ye(Vl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return ye(Ci,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Ru=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>ye(Tu,{children:Cu({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),ku=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>ye(V,{className:t,idSection:a,background:o,children:ye(Ru,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as Su}from"@heroicons/react/24/solid";import Ri from"html-react-parser";import Du from"lodash";var gr=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],ur=({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()||""},vr=(e,o)=>o[e%o.length];import{Fragment as $l,jsx as te,jsxs as Ho}from"react/jsx-runtime";var Mu=({avatar:e="",name:o="",index:t=0})=>{if(Du.isEmpty(e)){let a=ur({name:o})??"",r=vr(t,gr);return te("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 te("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:te("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Wl=({testimonial:e,className:o,index:t})=>te("div",{className:i("testimonial-item",o),children:Ho("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:[Ho("div",{className:"flex flex-nowrap items-center space-x-2",children:[te(Mu,{avatar:e.avatar,name:e.name,index:t}),Ho("div",{className:"min-w-0 flex-1 pl-1",children:[te("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&te("div",{className:"text-xs font-normal text-pink-500",children:Ri(e.position)})]})]}),Ho("div",{className:"mt-3",children:[e?.shortTitle&&te("div",{className:"text-sm font-bold text-gray-700",children:Ri(e.shortTitle)}),e?.description&&te("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Ri(e.description)})]}),Ho("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&&te("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&te("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>te(Su,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),ki=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return Ho($l,{children:[e&&te(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&&te($l,{children:r?te("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:te(zo,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>te(Wl,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):te("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)=>te(Wl,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&te(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as Gl}from"@heroicons/react/24/solid";import Ti from"html-react-parser";import{Fragment as Au,jsx as _,jsxs as Ye}from"react/jsx-runtime";var Iu=({className:e})=>_("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:_("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"})}),Lu=({testimonial:e,className:o})=>_("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:Ye("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&_("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:_(H,{ratio:2/3,className:"w-full",children:_("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Ye("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Ye("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Ye("div",{className:"grow",children:[e?.name&&_("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&_("div",{className:"mt-1 text-xs font-normal text-gray-500",children:Ti(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Ye("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",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},(t,a)=>_(Gl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&_("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:_(H,{ratio:2/3,className:"w-full",children:_("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Ye("div",{className:"flex flex-1 flex-col md:flex-none",children:[Ye("div",{className:"flex-1",children:[Ye("div",{className:"mb-1.5 flex flex-none space-x-3",children:[_(Iu,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&_("div",{className:"flex-none text-base font-medium md:text-lg",children:Ti(e.shortTitle)})]}),e?.description&&_("blockquote",{className:"relative flex-1 text-justify text-base",children:Ti(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Ye("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&&_("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},(t,a)=>_(Gl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),jl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Ye(Au,{children:[e&&_(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&&Ye(ue,{className:"w-full",children:[_(ve,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>_(ce,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:_(Lu,{testimonial:a})},r))}),(o??[]).length>1&&_(ko,{className:"mt-8"})]}),t&&_(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as Fu}from"@heroicons/react/24/solid";import Si from"html-react-parser";import Eu from"lodash";import{Fragment as Ul,jsx as G,jsxs as po}from"react/jsx-runtime";var zu=({avatar:e="",name:o="",index:t=0})=>{if(Eu.isEmpty(e)){let a=ur({name:o})??"",r=vr(t,gr);return G("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 G("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:G("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Ql=({testimonial:e,className:o,index:t})=>G("div",{className:i("testimonial-item",o),children:po("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:[po("div",{className:"flex flex-nowrap items-center space-x-2",children:[G(zu,{avatar:e.avatar,name:e.name,index:t}),po("div",{className:"flex-1 pl-1",children:[G("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&G("div",{className:"text-xs font-normal text-pink-500",children:Si(e.position)})]})]}),po("div",{className:"mt-3",children:[e?.shortTitle&&G("div",{className:"text-sm font-bold text-gray-700",children:Si(e.shortTitle)}),e?.description&&G("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Si(e.description)})]}),po("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&&G("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&G("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>G(Fu,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),ql=({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=>G(Ul,{children:l.map((m,c)=>G(zo,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>G(Ql,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return po(Ul,{children:[e&&G(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&&G(ho,{children:r?po("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[G(Ke,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),G(Ke,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),G(Ke,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):G("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>G(Ql,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&G(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),G("style",{children:`
|
|
293
|
+
`})]}),Bl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Et,{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,r)=>b("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"})}),b("div",{className:"mt-4 w-full flex-1",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ol=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[b("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:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),b("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)=>b("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"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Vl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Et,{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,r)=>b("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"})}),b("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Wl=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Et,{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,r)=>b("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"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&f(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Gl=({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:b(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"})}),b("div",{className:"w-full flex-1 text-center",children:[d?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:X(d.name)}),d?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:X(d.description)})]})]})},p)};return b(Et,{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(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},$l=({dataHeading:e,dataFeatures:o,dataButtons:t})=>b(Et,{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,r)=>b("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[b("div",{className:"flex w-full flex-1 flex-col p-5",children:[b("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:X(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{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(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),jl=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>b("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:b("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: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)=>b("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"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:X(r.name)}),r?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:X(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&f(x,{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(z,{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"})})})})]}),Ql=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>b(Et,{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:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&b("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)=>b("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"})}),b("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[b("div",{className:"flex-1",children:[r?.name&&f("h3",{className:"text-lg font-semibold",children:X(r.name)}),r?.description&&f("div",{className:"mt-2 text-gray-500",children:X(r.description)})]}),r?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&b("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(x,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),Ul=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=ku(0),s=Po();return b(Et,{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&&b("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(xt,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((l,m)=>b(bt,{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(yt,{className:"py-3 text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:X(l.name||"")}),b(Nt,{className:"grid grid-cols-1 gap-y-3 md:group-last:mt-3",children:[l?.description&&f("div",{className:"text-muted-foreground",children:X(l.description||"")}),l?.btnLink&&f("div",{className:"",children:f(pt,{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(z,{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(z,{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(z,{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(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as Iu,jsx as ye}from"react/jsx-runtime";var Su=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return ye(Di,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ye(_l,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ye(Bl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ye(Ol,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ye(Vl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ye(Wl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ye(Gl,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ye($l,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ye(jl,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return ye(Ql,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return ye(Ul,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return ye(Di,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Du=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>ye(Iu,{children:Su({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Mu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>ye(_,{className:t,idSection:a,background:o,children:ye(Du,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as Au}from"@heroicons/react/24/solid";import Mi from"html-react-parser";import Lu from"lodash";var hr=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],xr=({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()||""},br=(e,o)=>o[e%o.length];import{Fragment as Xl,jsx as te,jsxs as _o}from"react/jsx-runtime";var Fu=({avatar:e="",name:o="",index:t=0})=>{if(Lu.isEmpty(e)){let a=xr({name:o})??"",r=br(t,hr);return te("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 te("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:te("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},ql=({testimonial:e,className:o,index:t})=>te("div",{className:i("testimonial-item",o),children:_o("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:[_o("div",{className:"flex flex-nowrap items-center space-x-2",children:[te(Fu,{avatar:e.avatar,name:e.name,index:t}),_o("div",{className:"min-w-0 flex-1 pl-1",children:[te("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&te("div",{className:"text-xs font-normal text-pink-500",children:Mi(e.position)})]})]}),_o("div",{className:"mt-3",children:[e?.shortTitle&&te("div",{className:"text-sm font-bold text-gray-700",children:Mi(e.shortTitle)}),e?.description&&te("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Mi(e.description)})]}),_o("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&&te("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&te("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>te(Au,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Ii=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return _o(Xl,{children:[e&&te(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&&te(Xl,{children:r?te("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:te(Ho,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>te(ql,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):te("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)=>te(ql,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&te(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as Yl}from"@heroicons/react/24/solid";import Ai from"html-react-parser";import{Fragment as Hu,jsx as B,jsxs as Ze}from"react/jsx-runtime";var zu=({className:e})=>B("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:B("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"})}),Eu=({testimonial:e,className:o})=>B("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:Ze("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&B("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:B(z,{ratio:2/3,className:"w-full",children:B("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Ze("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Ze("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Ze("div",{className:"grow",children:[e?.name&&B("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&B("div",{className:"mt-1 text-xs font-normal text-gray-500",children:Ai(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Ze("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",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},(t,a)=>B(Yl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&B("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:B(z,{ratio:2/3,className:"w-full",children:B("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Ze("div",{className:"flex flex-1 flex-col md:flex-none",children:[Ze("div",{className:"flex-1",children:[Ze("div",{className:"mb-1.5 flex flex-none space-x-3",children:[B(zu,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&B("div",{className:"flex-none text-base font-medium md:text-lg",children:Ai(e.shortTitle)})]}),e?.description&&B("blockquote",{className:"relative flex-1 text-justify text-base",children:Ai(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Ze("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&&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},(t,a)=>B(Yl,{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})=>Ze(Hu,{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}),(o??[]).length>0&&Ze(ue,{className:"w-full",children:[B(ve,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>B(de,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:B(Eu,{testimonial:a})},r))}),(o??[]).length>1&&B(To,{className:"mt-8"})]}),t&&B(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as _u}from"@heroicons/react/24/solid";import Li from"html-react-parser";import Bu from"lodash";import{Fragment as Jl,jsx as $,jsxs as uo}from"react/jsx-runtime";var Ou=({avatar:e="",name:o="",index:t=0})=>{if(Bu.isEmpty(e)){let a=xr({name:o})??"",r=br(t,hr);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})})},Kl=({testimonial:e,className:o,index:t})=>$("div",{className:i("testimonial-item",o),children:uo("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[uo("div",{className:"flex flex-nowrap items-center space-x-2",children:[$(Ou,{avatar:e.avatar,name:e.name,index:t}),uo("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:Li(e.position)})]})]}),uo("div",{className:"mt-3",children:[e?.shortTitle&&$("div",{className:"text-sm font-bold text-gray-700",children:Li(e.shortTitle)}),e?.description&&$("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Li(e.description)})]}),uo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&$("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)=>$(_u,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),em=({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=>$(Jl,{children:l.map((m,c)=>$(Ho,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,p)=>$(Kl,{testimonial:d,index:p,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${p}`))},`slider-${c}`))});return uo(Jl,{children:[e&&$(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&&$(yo,{children:r?uo("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[$(Je,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),$(Je,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),$(Je,{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)=>$(Kl,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&$(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),$("style",{children:`
|
|
294
294
|
.mark-vertical-marquee {
|
|
295
295
|
mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
|
|
296
296
|
}
|
|
297
|
-
`})]})};import{Fragment as Ou,jsx as fo}from"react/jsx-runtime";var Hu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return fo(ki,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return fo(ql,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return fo(jl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return fo(ki,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},_u=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>fo(Ou,{children:Hu({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Bu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>fo(V,{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:fo(_u,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import Xl from"html-react-parser";import{Fragment as Vu,jsx as re,jsxs as go}from"react/jsx-runtime";var Di=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>re(xt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>go(bt,{value:n.title,className:"last:border-none",children:[re(yt,{className:"md:text-lg",children:n.title}),re(wt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Xl(n.description)})]},s))});return go("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[re("div",{className:"relative",children:go("div",{className:"md:sticky md:top-16",children:[o&&re(h,{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&&re(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&re("div",{className:"col-span-2",children:a(e[0])}),t&&re(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Yl=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>re(xt,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>go(bt,{value:c.title,className:"last:border-none",children:[re(yt,{className:"md:text-lg",children:c.title}),re(wt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:Xl(c.description)})]},d))});return go(Vu,{children:[o&&re(h,{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&&go(St,{defaultValue:e[0]?.title,children:[e?.length>=1&&go(Ct,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[re(Rt,{className:"mb-3 text-center",children:re(tt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>re(ot,{value:m.title,children:m.title},m.title+c))})}),re(kt,{}),re(Tt,{})]}),e.map((m,c)=>re(at,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&re(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as ju,jsx as _o}from"react/jsx-runtime";var Wu=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return _o(Di,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return _o(Yl,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return _o(Di,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},$u=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>_o(ju,{children:Wu({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Gu=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>_o(V,{className:t,idSection:r,background:a,children:_o($u,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import Qu,{memo as Uu}from"react";import{ArrowDownIcon as qu}from"@heroicons/react/20/solid";import Xu from"html-react-parser";import{Fragment as Zl,jsx as Z,jsxs as ft}from"react/jsx-runtime";var Yu=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return ft(Zl,{children:[Z("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:ft("picture",{children:[Z("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),Z("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),ft("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[Z("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}),ft("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&ft(Zl,{children:[Z(ge,{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&&Z("span",{className:"flex-none leading-none",children:"\xB7"})]}),Z("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Mi=Uu(({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)=>ft("div",{children:[Z("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)=>Z("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:Z("div",{onClick:y=>m(y,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:Z(Yu,{news:g})},g?.id)},v))}),d?.isShowBtn&&Z("div",{className:"mt-8 flex w-full items-center justify-center",children:ft(je,{action:d?.btnUrl||r&&(()=>r?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[Xu(d.btnName||"Xem th\xEAm"),d?.isLoading?Z(bo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&Z(qu,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return ft(Qu.Fragment,{children:[e&&Z(h,{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?ft(St,{defaultValue:t[0]?.title,children:[ft(Ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[Z(Rt,{className:"mb-6 text-center",children:Z(tt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>Z(ot,{value:d.title,children:d.title},d.title+p))})}),Z(kt,{}),Z(Tt,{})]}),t.map((d,p)=>Z(at,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as e0,jsx as ba}from"react/jsx-runtime";var Zu=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return ba(Mi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return ba(Mi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Ku=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>ba(e0,{children:Zu({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ju=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>ba(V,{className:i(r),background:n,idSection:e,children:ba(Ku,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as i0,jsx as Me,jsxs as Ii}from"react/jsx-runtime";var Kl=({dataHeading:e,dataCTA:o,dataButtons:t})=>Ii("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&&Me(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&&Me(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),t0=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Ii("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:[Ii("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&Me(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&&Me(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Me("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&Me(H,{ratio:4/3,children:Me("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),o0=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return Me(Kl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return Me(t0,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return Me(Kl,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},a0=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>Me(i0,{children:o0({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),r0=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>Me(V,{className:t,idSection:a,background:o,children:Me(a0,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import Jl from"react";import Li from"html-react-parser";import{jsx as Xt,jsxs as em}from"react/jsx-runtime";var n0=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return em("div",{className:"text-center",children:[Xt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Li(t??"")}),Xt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Li(o??"")}),a&&Xt("div",{className:"mt-2 text-sm text-gray-500",children:Li(a??"")})]})},hr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>em(Jl.Fragment,{children:[t&&Xt(h,{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&&Xt("div",{className:i("grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",e?.length===2&&"md:grid-cols-4 md:[&>*:first-child]:col-start-2",e?.length===4&&"md:grid-cols-4"),children:e?.map((a,r)=>Xt(Jl.Fragment,{children:Xt(n0,{metric:a})},r))}),o&&Xt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import tm from"react";import Ai from"html-react-parser";import{jsx as Yt,jsxs as om}from"react/jsx-runtime";var s0=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return om("div",{className:"bg-gray-100 p-4 text-center md:p-8",children:[Yt("div",{className:"text-2xl font-bold text-gray-900 md:text-3xl",children:Ai(t??"")}),Yt("div",{className:"mt-2 text-sm font-semibold text-gray-500",children:Ai(o??"")}),a&&Yt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:Ai(a??"")})]})},Fi=({dataMetrics:e,dataButtons:o,dataHeading:t})=>om(tm.Fragment,{children:[t&&Yt(h,{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&&Yt("div",{className:i("grid grid-cols-2 gap-px overflow-hidden rounded-lg md:rounded-xl md:py-0 lg:grid-cols-4",e?.length===2&&"lg:grid-cols-2",e?.length===3&&"lg:grid-cols-3"),children:e?.map((a,r)=>Yt(tm.Fragment,{children:Yt(s0,{metric:a})},r))}),o&&Yt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as d0,jsx as Bo}from"react/jsx-runtime";var l0=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return Bo(hr,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return Bo(Fi,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return Bo(hr,{dataMetrics:o,dataButtons:a,dataHeading:e})}},m0=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>Bo(d0,{children:l0({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),c0=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>Bo(V,{className:i(n),background:r,idSection:e,children:Bo(m0,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as p0}from"react";import{jsx as am,jsxs as g0}from"react/jsx-runtime";var f0=p0(({className:e,title:o,children:t},a)=>g0("div",{className:e,ref:a,children:[am("div",{className:"font-semibold text-gray-800",children:o}),am("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 b0}from"react";import{Fragment as x0,jsx as uo,jsxs as h0}from"react/jsx-runtime";var u0=()=>uo("div",{className:"p-3 border rounded-lg",children:h0("div",{className:"flex items-center gap-3",children:[uo(Ka,{className:"rounded-md h-9 w-9 "}),uo("div",{className:"flex-1",children:uo(Ka,{className:"w-48 h-5 "})}),uo("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function v0(){return uo(x0,{children:Array.from({length:4}).map((e,o)=>uo(u0,{},o))})}var rm=v0;import{Fragment as N0,jsx as Et,jsxs as Ei}from"react/jsx-runtime";var y0=({paymentMethod:e})=>Et(Za,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:Ei("div",{className:"flex items-center space-x-3",children:[Et("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),Ei("div",{className:"grid grid-cols-1 gap-1",children:[Et("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Et("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Et("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),w0=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=b0(s=>a?.(s),[a]);return Ei(N0,{children:[e&&Et("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Et(rm,{}):Et(Ya,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Et(y0,{paymentMethod:s},s.id))})]})};import{forwardRef as im}from"react";import{jsx as sm}from"react/jsx-runtime";var P0=im(({children:e,className:o},t)=>sm("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),nm=im(({children:e,className:o,...t},a)=>sm(P0,{ref:a,className:o,...t,children:e}));nm.displayName="Payment";import{forwardRef as C0}from"react";import{jsx as lm,jsxs as k0}from"react/jsx-runtime";var R0=C0(({className:e,children:o},t)=>k0("div",{className:i("",e),ref:t,children:[lm("hr",{className:"mb-5 h-px w-full bg-gray-500"}),lm("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as T0}from"react";import{jsx as D0}from"react/jsx-runtime";var S0=T0(({className:e,children:o},t)=>D0("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as E0}from"react";import{CheckBadgeIcon as M0,XCircleIcon as I0}from"@heroicons/react/20/solid";import{jsx as se,jsxs as Oo}from"react/jsx-runtime";var L0=({iconPaymentResult:e,message:o="",title:t=""})=>Oo("div",{className:"grid grid-cols-1 gap-4",children:[Oo("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(pa,{message:o,type:"success",icon:se(M0,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),A0=({iconPaymentResult:e,message:o="",title:t=""})=>Oo("div",{className:"grid grid-cols-1 gap-4",children:[Oo("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(pa,{message:o,type:"error",icon:se(I0,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),F0=({iconPaymentResult:e,message:o="",title:t=""})=>Oo("div",{className:"grid grid-cols-1 gap-4",children:[Oo("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(pa,{message:o,type:"neutral"})]}),mm=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return se(L0,{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(A0,{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(F0,{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 H0,jsxs as _0}from"react/jsx-runtime";var z0=E0(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>_0("div",{ref:s,className:i("rounded-lg p-4",e),children:[H0(mm,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as O0,useEffect as V0}from"react";import{jsx as zi,jsxs as B0}from"react/jsx-runtime";var xr=({content:e})=>B0("picture",{children:[zi("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),zi("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),zi(je,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as ya,jsxs as G0}from"react/jsx-runtime";var W0=({template:e,content:o})=>{switch(e){case 1:return ya(xr,{content:o});default:return ya(xr,{content:o})}},$0=O0(({template:e,content:o},t)=>(V0(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),G0("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[ya("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:ya("div",{className:"content",children:W0({template:e,content:o})})}),ya("style",{children:`
|
|
297
|
+
`})]})};import{Fragment as $u,jsx as vo}from"react/jsx-runtime";var Vu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return vo(Ii,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return vo(em,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return vo(Zl,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return vo(Ii,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Wu=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>vo($u,{children:Vu({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Gu=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>vo(_,{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:vo(Wu,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});import tm from"html-react-parser";import{Fragment as ju,jsx as re,jsxs as ho}from"react/jsx-runtime";var Fi=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>re(xt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>ho(bt,{value:n.title,className:"last:border-none",children:[re(yt,{className:"md:text-lg",children:n.title}),re(Nt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:tm(n.description)})]},s))});return ho("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[re("div",{className:"relative",children:ho("div",{className:"md:sticky md:top-16",children:[o&&re(h,{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&&re(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&re("div",{className:"col-span-2",children:a(e[0])}),t&&re(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},om=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>re(xt,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((c,d)=>ho(bt,{value:c.title,className:"last:border-none",children:[re(yt,{className:"md:text-lg",children:c.title}),re(Nt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:tm(c.description)})]},d))});return ho(ju,{children:[o&&re(h,{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&&ho(St,{defaultValue:e[0]?.title,children:[e?.length>=1&&ho(Ct,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[re(Rt,{className:"mb-3 text-center",children:re(tt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,c)=>re(ot,{value:m.title,children:m.title},m.title+c))})}),re(kt,{}),re(Tt,{})]}),e.map((m,c)=>re(at,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+c))]}),t&&re(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};import{Fragment as Xu,jsx as Bo}from"react/jsx-runtime";var Qu=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return Bo(Fi,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return Bo(om,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return Bo(Fi,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},Uu=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>Bo(Xu,{children:Qu({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),qu=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Bo(_,{className:t,idSection:r,background:a,children:Bo(Uu,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import Yu,{memo as Zu}from"react";import{ArrowDownIcon as Ku}from"@heroicons/react/20/solid";import Ju from"html-react-parser";import{Fragment as am,jsx as Z,jsxs as ft}from"react/jsx-runtime";var e0=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return ft(am,{children:[Z("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:ft("picture",{children:[Z("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),Z("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),ft("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[Z("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}),ft("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&ft(am,{children:[Z(ie,{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&&Z("span",{className:"flex-none leading-none",children:"\xB7"})]}),Z("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},zi=Zu(({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)=>ft("div",{children:[Z("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)=>Z("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:Z("div",{onClick:y=>m(y,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:Z(e0,{news:g})},g?.id)},v))}),d?.isShowBtn&&Z("div",{className:"mt-8 flex w-full items-center justify-center",children:ft(Qe,{action:d?.btnUrl||r&&(()=>r?.(p)),newTab:d?.isNewTab,variant:"outline",disabled:d?.isLoading,children:[Ju(d.btnName||"Xem th\xEAm"),d?.isLoading?Z(wo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!d?.btnUrl&&Z(Ku,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},d?.title||p);return ft(Yu.Fragment,{children:[e&&Z(h,{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?ft(St,{defaultValue:t[0]?.title,children:[ft(Ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[Z(Rt,{className:"mb-6 text-center",children:Z(tt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((d,p)=>Z(ot,{value:d.title,children:d.title},d.title+p))})}),Z(kt,{}),Z(Tt,{})]}),t.map((d,p)=>Z(at,{value:d.title,children:c(d,p)},d.title+p))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import{Fragment as r0,jsx as ya}from"react/jsx-runtime";var t0=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return ya(zi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return ya(zi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},o0=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>ya(r0,{children:t0({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),a0=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:m})=>ya(_,{className:i(r),background:n,idSection:e,children:ya(o0,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:m})});import{Fragment as m0,jsx as Le,jsxs as Ei}from"react/jsx-runtime";var rm=({dataHeading:e,dataCTA:o,dataButtons:t})=>Ei("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&&Le(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&&Le(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),i0=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Ei("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:[Ei("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&Le(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&&Le(x,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),Le("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&Le(z,{ratio:4/3,children:Le("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),n0=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return Le(rm,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return Le(i0,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return Le(rm,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},s0=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>Le(m0,{children:n0({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),l0=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>Le(_,{className:t,idSection:a,background:o,children:Le(s0,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});import im from"react";import Hi from"html-react-parser";import{jsx as Jt,jsxs as nm}from"react/jsx-runtime";var c0=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return nm("div",{className:"text-center",children:[Jt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Hi(t??"")}),Jt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Hi(o??"")}),a&&Jt("div",{className:"mt-2 text-sm text-gray-500",children:Hi(a??"")})]})},yr=({dataMetrics:e,dataButtons:o,dataHeading:t})=>nm(im.Fragment,{children:[t&&Jt(h,{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&&Jt("div",{className:i("grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",e?.length===2&&"md:grid-cols-4 md:[&>*:first-child]:col-start-2",e?.length===4&&"md:grid-cols-4"),children:e?.map((a,r)=>Jt(im.Fragment,{children:Jt(c0,{metric:a})},r))}),o&&Jt(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import sm from"react";import _i from"html-react-parser";import{jsx as eo,jsxs as lm}from"react/jsx-runtime";var d0=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return lm("div",{className:"bg-gray-100 p-4 text-center md:p-8",children:[eo("div",{className:"text-2xl font-bold text-gray-900 md:text-3xl",children:_i(t??"")}),eo("div",{className:"mt-2 text-sm font-semibold text-gray-500",children:_i(o??"")}),a&&eo("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:_i(a??"")})]})},Bi=({dataMetrics:e,dataButtons:o,dataHeading:t})=>lm(sm.Fragment,{children:[t&&eo(h,{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&&eo("div",{className:i("grid grid-cols-2 gap-px overflow-hidden rounded-lg md:rounded-xl md:py-0 lg:grid-cols-4",e?.length===2&&"lg:grid-cols-2",e?.length===3&&"lg:grid-cols-3"),children:e?.map((a,r)=>eo(sm.Fragment,{children:eo(d0,{metric:a})},r))}),o&&eo(x,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as u0,jsx as Oo}from"react/jsx-runtime";var p0=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return Oo(yr,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return Oo(Bi,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return Oo(yr,{dataMetrics:o,dataButtons:a,dataHeading:e})}},f0=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>Oo(u0,{children:p0({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),g0=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>Oo(_,{className:i(n),background:r,idSection:e,children:Oo(f0,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});import{forwardRef as v0}from"react";import{jsx as mm,jsxs as x0}from"react/jsx-runtime";var h0=v0(({className:e,title:o,children:t},a)=>x0("div",{className:e,ref:a,children:[mm("div",{className:"font-semibold text-gray-800",children:o}),mm("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 P0}from"react";import{Fragment as w0,jsx as xo,jsxs as N0}from"react/jsx-runtime";var b0=()=>xo("div",{className:"p-3 border rounded-lg",children:N0("div",{className:"flex items-center gap-3",children:[xo(tr,{className:"rounded-md h-9 w-9 "}),xo("div",{className:"flex-1",children:xo(tr,{className:"w-48 h-5 "})}),xo("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function y0(){return xo(w0,{children:Array.from({length:4}).map((e,o)=>xo(b0,{},o))})}var cm=y0;import{Fragment as k0,jsx as Ht,jsxs as Oi}from"react/jsx-runtime";var C0=({paymentMethod:e})=>Ht(er,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:Oi("div",{className:"flex items-center space-x-3",children:[Ht("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),Oi("div",{className:"grid grid-cols-1 gap-1",children:[Ht("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&Ht("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&Ht("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),R0=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=P0(s=>a?.(s),[a]);return Oi(k0,{children:[e&&Ht("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?Ht(cm,{}):Ht(Ja,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>Ht(C0,{paymentMethod:s},s.id))})]})};import{forwardRef as dm}from"react";import{jsx as fm}from"react/jsx-runtime";var T0=dm(({children:e,className:o},t)=>fm("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),pm=dm(({children:e,className:o,...t},a)=>fm(T0,{ref:a,className:o,...t,children:e}));pm.displayName="Payment";import{forwardRef as S0}from"react";import{jsx as gm,jsxs as M0}from"react/jsx-runtime";var D0=S0(({className:e,children:o},t)=>M0("div",{className:i("",e),ref:t,children:[gm("hr",{className:"mb-5 h-px w-full bg-gray-500"}),gm("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as I0}from"react";import{jsx as L0}from"react/jsx-runtime";var A0=I0(({className:e,children:o},t)=>L0("div",{className:i("pb-5",e),ref:t,children:o}));import{forwardRef as B0}from"react";import{CheckBadgeIcon as F0,XCircleIcon as z0}from"@heroicons/react/20/solid";import{jsx as le,jsxs as Vo}from"react/jsx-runtime";var E0=({iconPaymentResult:e,message:o="",title:t=""})=>Vo("div",{className:"grid grid-cols-1 gap-4",children:[Vo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&le("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&le("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&le(fa,{message:o,type:"success",icon:le(F0,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),H0=({iconPaymentResult:e,message:o="",title:t=""})=>Vo("div",{className:"grid grid-cols-1 gap-4",children:[Vo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&le("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&le("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),le(fa,{message:o,type:"error",icon:le(z0,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),_0=({iconPaymentResult:e,message:o="",title:t=""})=>Vo("div",{className:"grid grid-cols-1 gap-4",children:[Vo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&le("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&le("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&le(fa,{message:o,type:"neutral"})]}),um=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return le(E0,{status:e,title:o,message:t,iconPaymentResult:a||le("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return le(H0,{status:e,title:o,message:t,iconPaymentResult:a||le("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return le(_0,{status:e,title:o,message:t,iconPaymentResult:a||le("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as V0,jsxs as W0}from"react/jsx-runtime";var O0=B0(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>W0("div",{ref:s,className:i("rounded-lg p-4",e),children:[V0(um,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));import{forwardRef as $0,useEffect as j0}from"react";import{jsx as Vi,jsxs as G0}from"react/jsx-runtime";var Nr=({content:e})=>G0("picture",{children:[Vi("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),Vi("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),Vi(Qe,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as Na,jsxs as q0}from"react/jsx-runtime";var Q0=({template:e,content:o})=>{switch(e){case 1:return Na(Nr,{content:o});default:return Na(Nr,{content:o})}},U0=$0(({template:e,content:o},t)=>(j0(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),q0("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[Na("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:Na("div",{className:"content",children:Q0({template:e,content:o})})}),Na("style",{children:`
|
|
298
298
|
.container-topbar .content {
|
|
299
299
|
width: 100%;
|
|
300
300
|
aspect-ratio: 1088/50;
|
|
@@ -312,7 +312,7 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
312
312
|
aspect-ratio: 720/88;
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
`})]})));import*as wa from"react";import{XIcon as
|
|
315
|
+
`})]})));import*as wa from"react";import{XIcon as X0}from"lucide-react";import{Drawer as Ge}from"vaul";import{jsx as gt,jsxs as Wi}from"react/jsx-runtime";var vm=({shouldScaleBackground:e=!0,...o})=>gt(Ge.Root,{shouldScaleBackground:e,...o});vm.displayName="Drawer";var Y0=Ge.Trigger,hm=Ge.Portal,Z0=Ge.Close,Gi=wa.forwardRef(({className:e,...o},t)=>gt(Ge.Overlay,{ref:t,className:i("fixed inset-0 z-50 bg-black/50",e),...o}));Gi.displayName=Ge.Overlay.displayName;var xm=wa.forwardRef(({className:e,children:o,hideCloseButton:t=!1,...a},r)=>Wi(hm,{children:[gt(Gi,{}),Wi(Ge.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(Ge.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:[gt(X0,{className:"h-5 w-5"}),gt("span",{className:"sr-only",children:"Close"})]}),o]})]}));xm.displayName="DrawerContent";var bm=({className:e,...o})=>gt("div",{className:i("grid gap-1.5 p-5 text-left",e),...o});bm.displayName="DrawerHeader";var ym=({className:e,...o})=>gt("div",{className:i("mt-auto flex flex-col gap-2 p-4",e),...o});ym.displayName="DrawerFooter";var Nm=wa.forwardRef(({className:e,...o},t)=>gt(Ge.Title,{ref:t,className:i(" truncate text-lg font-semibold leading-none tracking-tight",e),...o}));Nm.displayName=Ge.Title.displayName;var wm=wa.forwardRef(({className:e,...o},t)=>gt(Ge.Description,{ref:t,className:i("truncate text-sm text-gray-500",e),...o}));wm.displayName=Ge.Description.displayName;var Pm=({children:e,className:o,...t})=>gt("div",{className:i("drawer-body flex-1 overflow-y-auto p-5",o),...t,children:e});Pm.displayName="DrawerBody";import*as bo from"react";import{OTPInput as K0,OTPInputContext as J0}from"input-otp";import{Minus as ev}from"lucide-react";import{jsx as Wo,jsxs as Cm}from"react/jsx-runtime";var Rm=bo.forwardRef(({className:e,containerClassName:o,...t},a)=>Wo(K0,{ref:a,containerClassName:i("flex items-center gap-2 has-[:disabled]:opacity-50",o),className:i("disabled:cursor-not-allowed",e),...t}));Rm.displayName="InputOTP";var km=bo.forwardRef(({className:e,...o},t)=>Wo("div",{ref:t,className:i("flex items-center",e),...o}));km.displayName="InputOTPGroup";var Tm=bo.forwardRef(({index:e,className:o,...t},a)=>{let r=bo.useContext(J0),{char:n,hasFakeCaret:s,isActive:l}=r.slots[e]??{};return Cm("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&&Cm("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:[Wo("div",{className:"animate-caret-blink h-4 w-px bg-gray-500 duration-1000"}),Wo("style",{children:`
|
|
316
316
|
@keyframes caret-blink {
|
|
317
317
|
0%, 70%, 100% {
|
|
318
318
|
opacity: 1;
|
|
@@ -325,7 +325,7 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
325
325
|
.animate-caret-blink {
|
|
326
326
|
animation: caret-blink 1.25s ease-out infinite;
|
|
327
327
|
}
|
|
328
|
-
`})]})]})});
|
|
328
|
+
`})]})]})});Tm.displayName="InputOTPSlot";var Sm=bo.forwardRef(({...e},o)=>Wo("div",{ref:o,role:"separator",...e,children:Wo(ev,{className:"text-gray-400"})}));Sm.displayName="InputOTPSeparator";import{useEffect as Am,useRef as pv,useState as Lm}from"react";import{toPng as fv}from"html-to-image";import Ca from"react";import{LucideMessageCircleQuestion as sv}from"lucide-react";import{QRCodeSVG as lv}from"qrcode.react";async function Dm(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 tv from"html-react-parser";import{Fragment as iv,jsx as me,jsxs as Ke}from"react/jsx-runtime";var ov=()=>{let e=[{text:"Ng\u01B0\u1EDDi d\xF9ng l\u01B0u m\xE3 QR v\u1EC1 m\xE1y (nh\u1EA5n gi\u1EEF \u1EA3nh ho\u1EB7c ch\u1EE5p m\xE0n h\xECnh)."},{text:"M\u1EDF \u1EE9ng d\u1EE5ng Ng\xE2n h\xE0ng ho\u1EB7c V\xED \u0111i\u1EC7n t\u1EED"},{text:'Trong app, ch\u1ECDn ch\u1EE9c n\u0103ng "Qu\xE9t QR" (th\u01B0\u1EDDng l\xE0 bi\u1EC3u t\u01B0\u1EE3ng camera/scan) \u0111\u1EC3 t\u1EA3i \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'},{text:'"Ch\u1ECDn \u1EA3nh t\u1EEB th\u01B0 vi\u1EC7n" / "T\u1EA3i \u1EA3nh QR" ch\u1ECDn \u1EA3nh QR \u0111\xE3 l\u01B0u v\u1EC1'}];return me("ul",{className:"grid grid-cols-1 gap-y-6 -ml-3 list-decimal md:hidden",children:e.map((o,t)=>Ke("li",{className:"flex relative gap-4 items-center",children:[me("div",{className:"flex relative z-20 flex-shrink-0 justify-center items-center w-8 h-8 text-sm font-semibold text-gray-700 bg-gray-100 rounded-full",children:t+1}),Ke("div",{className:"flex flex-1 gap-2 items-start",children:[me("p",{className:"text-sm leading-relaxed text-gray-700",children:tv(o.text)}),t<e.length-1&&me("div",{className:"absolute left-4 top-8 w-px h-12 bg-gray-400 transform -translate-x-1/2"})]})]},t))})},av=({isQrForAll:e,shortTitle:o,className:t})=>Ke("div",{className:`hidden grid-cols-1 gap-y-6 py-8 text-sm md:grid ${t}`,children:[Ke("div",{className:"flex flex-nowrap items-start",children:[me("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:me("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Ke("div",{className:"flex-1 pl-4",children:[me("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),me("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"})]})]}),Ke("div",{className:"flex flex-nowrap items-center",children:[me("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:me("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Ke("div",{className:"flex-1 pl-4",children:[me("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),me("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Ke("div",{className:"flex flex-nowrap items-center",children:[me("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:me("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Ke("div",{className:"flex-1 pl-4",children:[me("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),Ke("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"]})]})]})]}),rv=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>Ke(iv,{children:[me(av,{isQrForAll:e,shortTitle:o,className:t}),me(ov,{})]}),$i=rv;import{jsx as Pa,jsxs as Mm}from"react/jsx-runtime";var nv=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:r,onOpenChange:n})=>Mm(Se,{open:r,onOpenChange:n,children:[Pa(Uo,{asChild:!0,children:e}),Mm(we,{position:"bottom",children:[Pa(Bt,{children:Pa(Ot,{children:o})}),Pa(Ee,{children:Pa($i,{isQrForAll:t,shortTitle:a})})]})]}),ji=nv;import{Fragment as wr,jsx as k,jsxs as ce}from"react/jsx-runtime";var mv=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,isHideGuidePayment:s})=>ce(wr,{children:[ce("div",{className:"qrcode__scan__container relative select-none",children:[t&&ce("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[k("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"shrink-0 select-none"}),k("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),k("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"shrink-0 select-none"})]}),ce("div",{className:"qrcode__scan select-none",children:[k("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:k("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),k("div",{className:"qrcode__border invisible select-none opacity-0 md:visible md:opacity-100",children:k("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),k("div",{className:"qrcode__image select-none p-4",children:e?k("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy",onLoad:a}):Ca.Children.map(o,l=>(Ca.isValidElement(l),l))})]}),n&&ce("div",{className:"text-sm text-gray-900 md:hidden",children:[k("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),k("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),r&&ce("div",{className:i("mt-3 text-sm text-gray-900 md:hidden"),children:[k("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),k("span",{className:"font-semibold",children:r})]}),k("div",{className:"mt-4 hidden text-sm font-semibold text-gray-900 md:block",children:t?ce(wr,{children:[k("img",{src:"https://homepage.momocdn.net/img/frame-1-1-251120093929.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),k("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):!s&&ce("div",{className:"text-xs text-gray-700",children:[k("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-4 w-4",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."]})})]}),cv=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:r,priceOrder:n,className:s="",isHideGuidePayment:l})=>ce(wr,{children:[k("div",{className:i(s),children:k(mv,{dateExpired:r,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,isHideGuidePayment:l,children:o})}),k("style",{children:`
|
|
329
329
|
.qrcode__scan__container {
|
|
330
330
|
padding: 15px;
|
|
331
331
|
background-color: white;
|
|
@@ -393,7 +393,7 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
393
393
|
transform: translate3d(0, 30%, 0);
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
`})]}),
|
|
396
|
+
`})]}),dv=({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,isHideGuidePayment:g})=>{let[v,y]=Ca.useState(void 0);return Ca.useEffect(()=>{a?Dm(a).then(y).catch(()=>y(void 0)):y(void 0)},[a]),Ca.useEffect(()=>{t&&v&&typeof s=="function"&&!o&&s()},[t,v,s,o]),ce("div",{className:"relative z-[1]",children:[ce("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:m,children:[k("img",{className:"pointer-events-none absolute right-6 top-14 hidden select-none md:flex",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250821154232-638913877527374430.png",alt:"pattern-qr"}),k("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&&k("div",{className:"visible absolute left-0 right-0 top-0 z-20 h-full w-full cursor-pointer overflow-hidden opacity-100 md:hidden md:select-none",children:k("img",{src:l,alt:"QR Code",className:"absolute left-1/2 top-1/2 max-h-full max-w-none -translate-x-1/2 -translate-y-1/2"})}),ce(cv,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:c,priceOrder:d,isHideGuidePayment:g,children:[t&&v&&!o&&k(lv,{value:t,size:215,imageSettings:{src:`${v}`,height:40,width:40,excavate:!0},level:"H"}),r&&k("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:k("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&k("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:k(ui,{size:"lg"})})]})]}),ce("div",{className:"qrcode__guide relative z-10 select-none bg-pink-50 bg-repeat-y px-5 pb-5 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[ce("div",{className:i("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",l&&"opacity-100 md:opacity-0"),children:[ce("div",{className:"ripple size-5 rounded-full",children:[k("div",{className:"ripple-1"}),k("div",{className:"ripple-2"})]}),k("img",{className:"qrcode__hand relative z-10 -mt-1 size-7 select-none object-contain drop-shadow-lg",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),!g&&ce(wr,{children:[k("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),k(ji,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:ce("div",{className:"flex cursor-pointer items-center justify-center space-x-1 text-center text-sm font-semibold text-pink-600",children:[k("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",k(sv,{className:"size-4"})," "]})})]}),k("style",{children:`
|
|
397
397
|
.ripple {
|
|
398
398
|
box-sizing: border-box;
|
|
399
399
|
position: relative;
|
|
@@ -449,7 +449,7 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
449
449
|
transform: scale(1) translateY(0);
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
`})]})]})},Rm=sv;import{Fragment as gv,jsx as Vi}from"react/jsx-runtime";var cv="https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",dv=["qrcode__gradient","qrcode__guide","qrcode__title"],pv=e=>!dv.some(o=>e.classList?.contains(o)),fv=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:m,isAIOQR:c=!0,isHideGuidePayment:d=!1})=>{let p=lv(null),[g,v]=Tm(null),[y,C]=Tm(!1);return km(()=>{if(y&&p.current){let w=setTimeout(()=>{p.current&&mv(p.current,{filter:pv}).then(A=>{v(A)}).catch(A=>{console.error("Error generating QR image:",A)})},2e3);return()=>clearTimeout(w)}},[y,t]),km(()=>{e&&C(!1)},[e]),Vi(gv,{children:Vi("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",m),children:Vi(Rm,{isQrForAll:c,qrImage:a,qrLink:t,logoQr:c?r:cv,expired:o,loading:e,qrCodeRef:p,titleOrder:l,onQrLoaded:()=>{C(!0)},qrImageBase64:g,dateExpired:n,priceOrder:s,isHideGuidePayment:d})})})};import{jsx as zt,jsxs as Wi}from"react/jsx-runtime";var uv=e=>{switch(e){case"email":return{type:"email",inputMode:"email",autoComplete:"email"};case"phone":return{type:"tel",inputMode:"tel",pattern:"[0-9+\\-\\s\\(\\)]*",autoComplete:"tel"};case"number":return{type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off"};case"password":return{type:"password",autoComplete:"current-password"};case"text":default:return{type:"text",autoComplete:"off"}}},Sm=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return zt(Gr,{placeholder:e.placeholder,value:n||"",onChange:d=>s(d.target.value),onBlur:l,disabled:e.disabled,className:t,maxLength:e.maxLength,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"});case"boolean":let m=n!==void 0?!!n:!!e.defaultChecked;return Wi("div",{className:"flex items-center space-x-3",children:[zt(Ua,{checked:m,onCheckedChange:d=>{s(d)},disabled:e.disabled,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"}),e.switchLabel&&zt("span",{className:"text-sm text-gray-700",children:e.switchLabel})]});default:let c=uv(e.type);return zt(oi,{...c,placeholder:e.placeholder,value:n||"",isError:r.error,onChange:d=>{let p=d.target.value;e.type==="number"&&(p=p.replace(/[^0-9]/g,"")),e.type==="phone"&&(p=p.replace(/[^0-9+\-\s()]/g,"")),s(p)},onBlur:l,disabled:e.disabled,className:t,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false",maxLength:e.maxLength})}};return zt(gi,{control:o,name:e.name,render:({field:r,fieldState:n})=>Wi(ar,{className:e.className,children:[e.label&&Wi(rr,{htmlFor:e.name,children:[e.label,e.required&&zt("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),zt(ir,{children:a({...r,error:n.error})}),e.description&&zt(nr,{id:`${e.name}-description`,children:e.description}),zt(sr,{})]})})};import{useMemo as Mm}from"react";import{zodResolver as vv}from"@hookform/resolvers/zod";import{useForm as hv}from"react-hook-form";import{z as Ca}from"zod";var Dm=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=Ca.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=Ca.string().regex(/^[a-zA-ZÀ-ỹ0-9\s\-_.]*$/,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t`);break;case"boolean":a=Ca.boolean();break;case"phone":case"number":case"password":case"textarea":default:a=Ca.string()}t.type==="boolean"?t.required&&(a=a.refine(r=>r===!0,{message:`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`})):(t.required&&(a=a.min(1,`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`)),t.minLength&&t.minLength>0&&(a=a.min(t.minLength,`${t.label||t.name} ph\u1EA3i c\xF3 \xEDt nh\u1EA5t ${t.minLength} k\xFD t\u1EF1`)),t.maxLength&&t.maxLength>0&&(a=a.max(t.maxLength,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 ${t.maxLength} k\xFD t\u1EF1`)),t.type==="phone"&&t.required&&(a=a.min(10,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`).max(15,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.pattern&&(a=a.regex(t.pattern,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.customValidation&&(a=a.refine(t.customValidation,{message:"Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7"})),t.required||(a=a.optional())),o[t.name]=a}),Ca.object(o)};var Im=e=>{let o=Mm(()=>Dm(e),[e]),t=Mm(()=>{let r={};return e.forEach(n=>{switch(n.type){case"boolean":n.value!==void 0?r[n.name]=!!n.value:r[n.name]=!!n.defaultChecked;break;default:n.value!==void 0?r[n.name]=n.value:r[n.name]=""}}),r},[e]),a=hv({resolver:vv(o),defaultValues:t,mode:"onSubmit"});return{form:a,formData:a.watch(),errors:a.formState.errors,isValid:a.formState.isValid,isSubmitting:a.formState.isSubmitting,reset:a.reset,setValue:a.setValue,trigger:a.trigger}};import{Fragment as Lm,jsx as Re,jsxs as $i}from"react/jsx-runtime";var xv=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,bv=({dataHeading:e,dataMedia:o,captchaComponent:t,onSubmit:a,fieldsSchema:r,loading:n=!1,onFieldChange:s,onValidationError:l,dataButtons:m,classNameMedia:c,classNameFormLead:d,classNameWrapper:p,classNameCaptcha:g})=>{let{form:v,errors:y,reset:C}=Im(r),w=async O=>{try{s&&Object.entries(O).forEach(([E,We])=>{s(E,We)}),a&&await a(O,C)}catch(E){if(console.error("Form submission error:",E),l){let We={};Object.entries(y).forEach(([$e,Ra])=>{We[$e]={message:Ra?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l(We)}}},A=()=>{v?.handleSubmit(w)()},B=()=>{let O=(m?.buttons||[]).map((E,We)=>{let $e=E?.variant==="primary";return We===0||$e?{...E,action:A,isLoading:n,isDisabled:n}:E});return{...m,buttons:O}},z=()=>"space-y-4",vt=()=>Re(Lm,{children:o&&Re(H,{className:i("mb-6 shrink-0",c),ratio:xv(o?.ratio),children:Re("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})}),P=()=>$i("div",{className:i("shadow-small bg-white p-8",d),children:[e&&Re(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h2",align:e?.align||"center",sizeHeading:e?.sizeHeading||"small",colorScheme:e?.colorScheme||"black",className:"mb-6"}),r?.length>0&&r&&Re(fi,{...v,children:$i("form",{onSubmit:v.handleSubmit(w),className:"space-y-6",children:[Re("div",{className:z(),children:r?.map(O=>Re(Sm,{field:O,control:v.control},O.name))}),t&&Re("div",{className:i("flex",g),children:t}),m&&Re(x,{...B()})]})})]});return Re(Lm,{children:$i("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",p),children:[o&&Re("div",{className:"shrink-0",children:vt()}),Re("div",{className:"relative mx-auto max-w-xl overflow-hidden rounded-lg",children:P()})]})})},yv=({idSection:e,background:o,className:t,...a})=>Re(V,{className:t,idSection:e,background:o,children:Re(bv,{...a})});import Pv from"color";import Cv from"tailwindcss/plugin.js";var Am={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 Fm={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Em={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var zm={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Hm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var _m={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Bm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Om={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 Wm={white:"#ffffff",black:"#000000",blue:Fm,green:Em,pink:zm,purple:Hm,red:_m,yellow:Bm,gray:Vm,orange:Om};var Gi={...Wm};var $m={"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 ut="250ms",Gm={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ut},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ut},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ut},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ut},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ut},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ut},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":ut},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":ut},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ut},".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":ut}};var jm={".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 Qm={".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 Um={...jm,...Gm,...Qm};import{flatten as wv}from"flat";function Nv(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 qm=e=>Nv(wv(e,{safe:!0,delimiter:"-"}));var Rv=e=>{let o={utilities:{},colors:{}},t=qm(Gi),a=$m,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=Pv(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},kv=()=>{let e="mobase",o=Rv(e);return Cv(({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({...Um})},{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:{...Gi,...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)`},...Am}}})};import{Fragment as Sv,jsx as L,jsxs as Dv}from"react/jsx-runtime";var Tv=Dv(Sv,{children:[L("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"}),L("meta",{name:"distribution",content:"Global"}),L("meta",{name:"author",content:"V\xED MoMo"}),L("meta",{property:"fb:app_id",content:"320653355376196"}),L("meta",{property:"fb:pages",content:"138010322921640"}),L("link",{rel:"shortcut icon",href:"/favicon.ico"}),L("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),L("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),L("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),L("meta",{name:"language",content:"vietnamese"}),L("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),L("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),L("meta",{name:"RATING",content:"GENERAL"}),L("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),L("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),L("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),L("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),L("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),L("link",{rel:"dns-prefetch",href:"//facebook.com"}),L("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),L("link",{rel:"dns-prefetch",href:"//www.google.com"}),L("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),L("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),L("link",{rel:"preconnect",href:"//connect.facebook.net"}),L("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),L("link",{rel:"preconnect",href:"//www.google-analytics.com"}),L("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),L("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),L("link",{rel:"preconnect",href:"//www.google.com"}),L("link",{rel:"preconnect",href:"//www.google.com.vn"}),L("link",{rel:"preconnect",href:"//www.googleadservices.com"}),L("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
452
|
+
`})]})]})},Im=dv;import{Fragment as xv,jsx as Qi}from"react/jsx-runtime";var gv="https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",uv=["qrcode__gradient","qrcode__guide","qrcode__title"],vv=e=>!uv.some(o=>e.classList?.contains(o)),hv=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:r,dateExpired:n,priceOrder:s,titleOrder:l,className:m,isAIOQR:c=!0,isHideGuidePayment:d=!1})=>{let p=pv(null),[g,v]=Lm(null),[y,C]=Lm(!1);return Am(()=>{if(y&&p.current){let N=setTimeout(()=>{p.current&&fv(p.current,{filter:vv}).then(A=>{v(A)}).catch(A=>{console.error("Error generating QR image:",A)})},2e3);return()=>clearTimeout(N)}},[y,t]),Am(()=>{e&&C(!1)},[e]),Qi(xv,{children:Qi("div",{className:i("relative h-full md:col-span-7 md:rounded-lg",m),children:Qi(Im,{isQrForAll:c,qrImage:a,qrLink:t,logoQr:c?r:gv,expired:o,loading:e,qrCodeRef:p,titleOrder:l,onQrLoaded:()=>{C(!0)},qrImageBase64:g,dateExpired:n,priceOrder:s,isHideGuidePayment:d})})})};import{jsx as _t,jsxs as Ui}from"react/jsx-runtime";var bv=e=>{switch(e){case"email":return{type:"email",inputMode:"email",autoComplete:"email"};case"phone":return{type:"tel",inputMode:"tel",pattern:"[0-9+\\-\\s\\(\\)]*",autoComplete:"tel"};case"number":return{type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"off"};case"password":return{type:"password",autoComplete:"current-password"};case"text":default:return{type:"text",autoComplete:"off"}}},Fm=({field:e,control:o,className:t=""})=>{let a=r=>{let{value:n,onChange:s,onBlur:l}=r;switch(e.type){case"textarea":return _t(Xr,{placeholder:e.placeholder,value:n||"",onChange:d=>s(d.target.value),onBlur:l,disabled:e.disabled,className:t,maxLength:e.maxLength,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"});case"boolean":let m=n!==void 0?!!n:!!e.defaultChecked;return Ui("div",{className:"flex items-center space-x-3",children:[_t(Ya,{checked:m,onCheckedChange:d=>{s(d)},disabled:e.disabled,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false"}),e.switchLabel&&_t("span",{className:"text-sm text-gray-700",children:e.switchLabel})]});default:let c=bv(e.type);return _t(si,{...c,placeholder:e.placeholder,value:n||"",isError:r.error,onChange:d=>{let p=d.target.value;e.type==="number"&&(p=p.replace(/[^0-9]/g,"")),e.type==="phone"&&(p=p.replace(/[^0-9+\-\s()]/g,"")),s(p)},onBlur:l,disabled:e.disabled,className:t,"aria-describedby":e.description?`${e.name}-description`:void 0,"aria-invalid":r.error?"true":"false",maxLength:e.maxLength})}};return _t(bi,{control:o,name:e.name,render:({field:r,fieldState:n})=>Ui(nr,{className:e.className,children:[e.label&&Ui(sr,{htmlFor:e.name,children:[e.label,e.required&&_t("span",{className:"ml-1 text-red-500","aria-label":"required",children:"*"})]}),_t(lr,{children:a({...r,error:n.error})}),e.description&&_t(mr,{id:`${e.name}-description`,children:e.description}),_t(cr,{})]})})};import{useMemo as Em}from"react";import{zodResolver as yv}from"@hookform/resolvers/zod";import{useForm as Nv}from"react-hook-form";import{z as Ra}from"zod";var zm=e=>{let o={};return e.forEach(t=>{let a;switch(t.type){case"email":a=Ra.string().email("Email kh\xF4ng h\u1EE3p l\u1EC7");break;case"text":a=Ra.string().regex(/^[a-zA-ZÀ-ỹ0-9\s\-_.]*$/,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c ch\u1EE9a k\xFD t\u1EF1 \u0111\u1EB7c bi\u1EC7t`);break;case"boolean":a=Ra.boolean();break;case"phone":case"number":case"password":case"textarea":default:a=Ra.string()}t.type==="boolean"?t.required&&(a=a.refine(r=>r===!0,{message:`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`})):(t.required&&(a=a.min(1,`${t.label||t.name} l\xE0 b\u1EAFt bu\u1ED9c`)),t.minLength&&t.minLength>0&&(a=a.min(t.minLength,`${t.label||t.name} ph\u1EA3i c\xF3 \xEDt nh\u1EA5t ${t.minLength} k\xFD t\u1EF1`)),t.maxLength&&t.maxLength>0&&(a=a.max(t.maxLength,`${t.label||t.name} kh\xF4ng \u0111\u01B0\u1EE3c v\u01B0\u1EE3t qu\xE1 ${t.maxLength} k\xFD t\u1EF1`)),t.type==="phone"&&t.required&&(a=a.min(10,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`).max(15,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.pattern&&(a=a.regex(t.pattern,`${t.label||t.name} kh\xF4ng \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng`)),t.customValidation&&(a=a.refine(t.customValidation,{message:"Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7"})),t.required||(a=a.optional())),o[t.name]=a}),Ra.object(o)};var Hm=e=>{let o=Em(()=>zm(e),[e]),t=Em(()=>{let r={};return e.forEach(n=>{switch(n.type){case"boolean":n.value!==void 0?r[n.name]=!!n.value:r[n.name]=!!n.defaultChecked;break;default:n.value!==void 0?r[n.name]=n.value:r[n.name]=""}}),r},[e]),a=Nv({resolver:yv(o),defaultValues:t,mode:"onSubmit"});return{form:a,formData:a.watch(),errors:a.formState.errors,isValid:a.formState.isValid,isSubmitting:a.formState.isSubmitting,reset:a.reset,setValue:a.setValue,trigger:a.trigger}};import{Fragment as _m,jsx as Te,jsxs as qi}from"react/jsx-runtime";var wv=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r)||1:e||1,Pv=({dataHeading:e,dataMedia:o,captchaComponent:t,onSubmit:a,fieldsSchema:r,loading:n=!1,onFieldChange:s,onValidationError:l,dataButtons:m,classNameMedia:c,classNameFormLead:d,classNameWrapper:p,classNameCaptcha:g})=>{let{form:v,errors:y,reset:C}=Hm(r),N=async V=>{try{s&&Object.entries(V).forEach(([F,$e])=>{s(F,$e)}),a&&await a(V,C)}catch(F){if(console.error("Form submission error:",F),l){let $e={};Object.entries(y).forEach(([je,ka])=>{$e[je]={message:ka?.message||"C\xF3 l\u1ED7i x\u1EA3y ra"}}),l($e)}}},A=()=>{v?.handleSubmit(N)()},O=()=>{let V=(m?.buttons||[]).map((F,$e)=>{let je=F?.variant==="primary";return $e===0||je?{...F,action:A,isLoading:n,isDisabled:n}:F});return{...m,buttons:V}},E=()=>"space-y-4",vt=()=>Te(_m,{children:o&&Te(z,{className:i("mb-6 shrink-0",c),ratio:wv(o?.ratio),children:Te("img",{src:o?.src,alt:o?.alt||"Avatar",className:"h-full w-full shrink-0 object-cover"})})}),P=()=>qi("div",{className:i("shadow-small bg-white p-8",d),children:[e&&Te(h,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h2",align:e?.align||"center",sizeHeading:e?.sizeHeading||"small",colorScheme:e?.colorScheme||"black",className:"mb-6"}),r?.length>0&&r&&Te(xi,{...v,children:qi("form",{onSubmit:v.handleSubmit(N),className:"space-y-6",children:[Te("div",{className:E(),children:r?.map(V=>Te(Fm,{field:V,control:v.control},V.name))}),t&&Te("div",{className:i("flex",g),children:t}),m&&Te(x,{...O()})]})})]});return Te(_m,{children:qi("div",{className:i("grid items-center",o?"grid-cols-1 gap-6 md:grid-cols-2":"grid-cols-1",p),children:[o&&Te("div",{className:"shrink-0",children:vt()}),Te("div",{className:"relative mx-auto max-w-xl overflow-hidden rounded-lg",children:P()})]})})},Cv=({idSection:e,background:o,className:t,...a})=>Te(_,{className:t,idSection:e,background:o,children:Te(Pv,{...a})});import Tv from"color";import Sv from"tailwindcss/plugin.js";var Bm={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 Om={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Vm={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Wm={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Gm={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var $m={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var jm={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Qm={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Um={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var qm={white:"#ffffff",black:"#000000",blue:Om,green:Vm,pink:Wm,purple:Gm,red:$m,yellow:jm,gray:Um,orange:Qm};var Xi={...qm};var Xm={"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 ut="250ms",Ym={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ut},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ut},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ut},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ut},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ut},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ut},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":ut},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":ut},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ut},".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":ut}};var Zm={".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 Km={".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 Jm={...Zm,...Ym,...Km};import{flatten as Rv}from"flat";function kv(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 ec=e=>kv(Rv(e,{safe:!0,delimiter:"-"}));var Dv=e=>{let o={utilities:{},colors:{}},t=ec(Xi),a=Xm,r=":root";return o.utilities[r]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,c]=Tv(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},Mv=()=>{let e="mobase",o=Dv(e);return Sv(({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({...Jm})},{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:{...Xi,...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)`},...Bm}}})};import{Fragment as Av,jsx as I,jsxs as Lv}from"react/jsx-runtime";var Iv=Lv(Av,{children:[I("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"}),I("meta",{name:"distribution",content:"Global"}),I("meta",{name:"author",content:"V\xED MoMo"}),I("meta",{property:"fb:app_id",content:"320653355376196"}),I("meta",{property:"fb:pages",content:"138010322921640"}),I("link",{rel:"shortcut icon",href:"/favicon.ico"}),I("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),I("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),I("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),I("meta",{name:"language",content:"vietnamese"}),I("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),I("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),I("meta",{name:"RATING",content:"GENERAL"}),I("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),I("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),I("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),I("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),I("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),I("link",{rel:"dns-prefetch",href:"//facebook.com"}),I("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),I("link",{rel:"dns-prefetch",href:"//www.google.com"}),I("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),I("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),I("link",{rel:"preconnect",href:"//connect.facebook.net"}),I("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),I("link",{rel:"preconnect",href:"//www.google-analytics.com"}),I("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),I("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),I("link",{rel:"preconnect",href:"//www.google.com"}),I("link",{rel:"preconnect",href:"//www.google.com.vn"}),I("link",{rel:"preconnect",href:"//www.googleadservices.com"}),I("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
453
453
|
"@context": "https://schema.org/",
|
|
454
454
|
"@type": "WebSite",
|
|
455
455
|
"@id":"https://www.momo.vn/#website",
|
|
@@ -459,7 +459,7 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
459
459
|
"@type": "SearchAction",
|
|
460
460
|
"target": "https://www.momo.vn/tim-kiem?q={search_term_string}",
|
|
461
461
|
"query-input": "required name=search_term_string"
|
|
462
|
-
}}`}}),
|
|
462
|
+
}}`}}),I("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
463
463
|
"@context": "https://schema.org",
|
|
464
464
|
"@type": "Organization",
|
|
465
465
|
"name": "Si\xEAu \u1EE9ng d\u1EE5ng MoMo",
|
|
@@ -494,5 +494,5 @@ import*as Go from"react";import{ChevronDownIcon as Jm}from"@heroicons/react/20/s
|
|
|
494
494
|
"https://www.linkedin.com/company/momo-mservice/",
|
|
495
495
|
"https://github.com/momo-wallet"
|
|
496
496
|
]
|
|
497
|
-
}`}})]});export{xt as Accordion,
|
|
497
|
+
}`}})]});export{xt as Accordion,Nt as AccordionContent,bt as AccordionItem,yt as AccordionTrigger,Qe as ActionButton,Od as AlertDialog,Hn as AlertDialogAction,_n as AlertDialogCancel,An as AlertDialogContent,En as AlertDialogDescription,Fn as AlertDialogFooter,Ln as AlertDialogHeader,Gr as AlertDialogOverlay,In as AlertDialogPortal,zn as AlertDialogTitle,Vd as AlertDialogTrigger,z as AspectRatio,Uf as Badge,dd as BlogSection,tn as Breadcrumb,ln as BreadcrumbEllipsis,an as BreadcrumbItem,rn as BreadcrumbLink,on as BreadcrumbList,nn as BreadcrumbPage,sn as BreadcrumbSeparator,Ne as Button,x as ButtonsBlock,l0 as CTASection,za as Calendar,fa as Callout,Rs as Card,Ds as CardContent,Ss as CardDescription,Ms as CardFooter,ks as CardHeader,Ts as CardTitle,ue as Carousel,ve as CarouselContent,To as CarouselDots,de as CarouselItem,ko as CarouselNext,Ro as CarouselPrevious,La as Checkbox,Ja as ChoiceboxGroup,er as ChoiceboxGroupItem,qs as ChoiceboxMultiItem,kf as Combobox,Rf as ComboboxContent,Cf as ComboboxTrigger,ci as Command,Nf as CommandDialog,Ls as CommandEmpty,Fs as CommandGroup,Is as CommandInput,Es as CommandItem,As as CommandList,zs as CommandSeparator,Hs as CommandShortcut,ug as Comment,Md as DatePicker,Bd as DateSelect,Se as Dialog,Ee as DialogBody,kr as DialogClose,we as DialogContent,en as DialogDescription,Ta as DialogFooter,Bt as DialogHeader,Tr as DialogOverlay,Ji as DialogPortal,to as DialogQr,Ot as DialogTitle,Uo as DialogTrigger,vm as Drawer,Pm as DrawerBody,Z0 as DrawerClose,xm as DrawerContent,wm as DrawerDescription,ym as DrawerFooter,bm as DrawerHeader,Gi as DrawerOverlay,hm as DrawerPortal,Nm as DrawerTitle,Y0 as DrawerTrigger,zg as DropdownMenu,Nl as DropdownMenuCheckboxItem,bl as DropdownMenuContent,Hg as DropdownMenuGroup,yl as DropdownMenuItem,Pl as DropdownMenuLabel,_g as DropdownMenuPortal,Og as DropdownMenuRadioGroup,wl as DropdownMenuRadioItem,Cl as DropdownMenuSeparator,Rl as DropdownMenuShortcut,Bg as DropdownMenuSub,xl as DropdownMenuSubContent,hl as DropdownMenuSubTrigger,Eg as DropdownMenuTrigger,qu as FAQSection,Mu as FeatureSection,xf as Footer,xi as Form,lr as FormControl,mr as FormDescription,bi as FormField,nr as FormItem,sr as FormLabel,Cv as FormLeadSupport,cr as FormMessage,np as GiftListSection,op as GuideSection,Ns as HeaderNavigation,Ir as Heading,h as HeadingBlock,Lr as HeadingGroup,Ar as HeadingSub,Mr as HeadingTagline,ru as HeroSection,Rt as HorizontalContent,Tt as HorizontalNext,kt as HorizontalPrevious,Ct as HorizontalScroll,Qg as HowItWorksSection,se as IconButton,Rm as InputOTP,km as InputOTPGroup,Sm as InputOTPSeparator,Tm as InputOTPSlot,gi as LightBoxGalleryContent,fi as LightboxGallery,Wf as LightboxThumbnail,g0 as MetricsSection,$a as NavigationMenu,Xa as NavigationMenuContent,Qa as NavigationMenuItem,ma as NavigationMenuLink,ja as NavigationMenuList,qa as NavigationMenuTrigger,a0 as NewsSection,Xn as Pagination,pm as Payment,$i as PaymentGuide,ji as PaymentGuideDialog,h0 as PaymentInvoice,R0 as PaymentMethods,O0 as PaymentResult,A0 as PaymentResultContent,D0 as PaymentResultFooter,Zo as Popover,Do as PopoverContent,Ko as PopoverTrigger,Rg as ProgressSteps,Cg as ProgressStepsItem,Pg as ProgressStepsItemTrigger,el as Progressbar,hv as QRPayment,ds as RadioGroup,ps as RadioGroupItem,vi as ReadMoreLite,_f as SearchBar,_ as SectionBlock,ta as Select,Io as SelectContent,aa as SelectGroup,Wt as SelectItem,Rn as SelectLabel,Vr as SelectScrollDownButton,Or as SelectScrollUpButton,kn as SelectSeparator,Mo as SelectTrigger,oa as SelectValue,Iv as SiteMeta,tr as Skeleton,al as Slider,Cu as SocialProofSection,ui as Spinner,is as Stepper,Ya as Switch,St as Tabs,at as TabsContent,tt as TabsList,ot as TabsTrigger,Gu as TestimonialSection,Xr as TextArea,ie as TextButton,si as TextInput,ts as ToastAction,Pp as Toaster,Rp as Tooltip,os as TooltipArrow,as as TooltipContent,Cp as TooltipProvider,kp as TooltipTrigger,U0 as Topbar,Ys as badgeVariants,et as buttonVariants,Mv as mobaseTW,Ua as navigationMenuTriggerStyle,fn as textButtonVariants,Kn as toast,va as useFormField,Kr as useToast};
|
|
498
498
|
//# sourceMappingURL=index.js.map
|