@momo-webplatform/mobase 0.2.68 → 0.2.70
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 +15 -15
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +4 -4
- package/dist/esm/index.d.ts +4 -4
- package/dist/esm/index.js +15 -15
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as go from"react";import*as we from"@radix-ui/react-accordion";import{ChevronDownIcon as Nl}from"@heroicons/react/20/solid";import*as hl from"react";import{twMerge as yl}from"tailwind-merge";var Ze={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 _i={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var fo=[{Name:"Facebook",Image:"https://homepage.momocdn.net/styles/desktop/images/social/facebook.svg",Link:"https://www.facebook.com/vimomo"},{Name:"Linkedin",Image:"https://homepage.momocdn.net/styles/desktop/images/social/linkedin.svg",Link:"https://www.linkedin.com/company/momo-mservice/"},{Name:"Youtube",Image:"https://homepage.momocdn.net/styles/desktop/images/social/youtube.svg",Link:"https://www.youtube.com/channel/UCKHHW-qL2JoZqcSNm1jPlqw"}],Ia=[{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 ne={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 wl}from"@artsy/fresnel";function r(...e){return yl(e)}var Bi=wl({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),iu=Bi.createMediaStyle(),{Media:Ke,MediaContextProvider:$t}=Bi;import{jsx as Gt,jsxs as Pl}from"react/jsx-runtime";var jt=go.forwardRef(({className:e,...o},t)=>Gt(we.Root,{ref:t,...o}));jt.displayName="AccordionRoot";var Ut=go.forwardRef(({className:e,...o},t)=>Gt(we.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));Ut.displayName="AccordionItem";var Qt=go.forwardRef(({className:e,children:o,...t},a)=>Gt(we.Header,{className:"flex",children:Pl(we.Trigger,{ref:a,className:r("flex flex-1 items-center text-left py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 justify-between text-gray-900",e),...t,children:[o,Gt(Nl,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));Qt.displayName=we.Trigger.displayName;var qt=go.forwardRef(({className:e,children:o,...t},a)=>Gt(we.Content,{ref:a,className:" text-sm overflow-hidden transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...t,children:Gt("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));qt.displayName=we.Content.displayName;import*as Oi from"react";import{Slot as Tl}from"@radix-ui/react-slot";import{cva as kl}from"class-variance-authority";import{jsx as Ne,jsxs as Rl}from"react/jsx-runtime";var Cl=({className:e})=>Rl("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"})]}),Xt=Cl;import{Fragment as Dl,jsx as Aa,jsxs as Sl}from"react/jsx-runtime";var ze=kl("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Pe=Oi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let c=a?Tl:"button",d=r(ze({variant:o,size:t,className:e}),{"cursor-wait":i});return Aa(Dl,{children:a?Aa(c,{className:d,type:"button",disabled:n,ref:l,...s,children:s.children}):Sl(c,{className:d,type:"button",disabled:n,ref:l,...s,children:[i&&Aa(Xt,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Pe.displayName="Button";import*as uo from"react";import{XMarkIcon as Ml}from"@heroicons/react/16/solid";import*as W from"@radix-ui/react-dialog";import{jsx as Je,jsxs as La}from"react/jsx-runtime";var et=W.Root,Ea=W.Trigger,Vi=W.Portal,Ha=W.Close,Fa=uo.forwardRef(({className:e,...o},t)=>Je(W.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));Fa.displayName=W.Overlay.displayName;var _e=uo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...c},d)=>{let m={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},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]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},P=[m.base,m[i],p[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return La(Vi,{children:[Je(Fa,{}),La(W.Content,{ref:d,className:r(...P),...c,children:[l,!t&&La(W.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[Je(Ml,{className:"h-5 w-5 text-gray-700"}),Je("span",{className:"sr-only",children:"Close"})]})]})]})});_e.displayName=W.Content.displayName;var jo=({className:e,...o})=>Je("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});jo.displayName="DialogHeader";var gt=({className:e,isCondensed:o=!1,...t})=>Je("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});gt.displayName="DialogBody";var Wi=({className:e,isDivider:o=!0,...t})=>Je("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});Wi.displayName="DialogFooter";var Uo=uo.forwardRef(({className:e,...o},t)=>Je(W.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Uo.displayName=W.Title.displayName;var $i=uo.forwardRef(({className:e,...o},t)=>Je(W.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));$i.displayName=W.Description.displayName;import{QRCodeSVG as Il}from"qrcode.react";import{Fragment as za,jsx as R,jsxs as se}from"react/jsx-runtime";var Al=({img:e="",children:o,isQrForAll:t})=>se(za,{children:[R("div",{className:"qrcode__scan__container",children:se("div",{className:"qrcode__scan",children:[R("div",{className:"qrcode__gradient",children:R("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),R("div",{className:"qrcode__border",children:R("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),R("div",{className:"qrcode__image p-4",children:e?R("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),R("div",{className:"mt-4 text-sm text-white",children:t?se(za,{children:[R("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),R("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):se(za,{children:[R("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:R("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",R("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),R("style",{children:`
|
|
1
|
+
import*as go from"react";import{ChevronDownIcon as Cl}from"@heroicons/react/20/solid";import*as we from"@radix-ui/react-accordion";import*as wl from"react";import{twMerge as Nl}from"tailwind-merge";var Ze={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 _i={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var fo=[{Name:"Facebook",Image:"https://homepage.momocdn.net/styles/desktop/images/social/facebook.svg",Link:"https://www.facebook.com/vimomo"},{Name:"Linkedin",Image:"https://homepage.momocdn.net/styles/desktop/images/social/linkedin.svg",Link:"https://www.linkedin.com/company/momo-mservice/"},{Name:"Youtube",Image:"https://homepage.momocdn.net/styles/desktop/images/social/youtube.svg",Link:"https://www.youtube.com/channel/UCKHHW-qL2JoZqcSNm1jPlqw"}],Ia=[{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 ne={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 Pl}from"@artsy/fresnel";function r(...e){return Nl(e)}var Bi=Pl({breakpoints:{xs:0,sm:640,md:768,lg:1024,xl:1280}}),iu=Bi.createMediaStyle(),{Media:Qt,MediaContextProvider:Go}=Bi;import{jsx as Xt,jsxs as Rl}from"react/jsx-runtime";var kt=go.forwardRef(({className:e,...o},t)=>Xt(we.Root,{ref:t,...o}));kt.displayName="AccordionRoot";var St=go.forwardRef(({className:e,...o},t)=>Xt(we.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));St.displayName="AccordionItem";var Dt=go.forwardRef(({className:e,children:o,...t},a)=>Xt(we.Header,{className:"flex",children:Rl(we.Trigger,{ref:a,className:r("flex flex-1 items-center justify-between py-4 text-left font-medium text-gray-900 transition-all hover:text-pink-600 hover:underline [&[data-state=open]>svg]:rotate-180 [&[data-state=open]]:text-pink-600",e),...t,children:[o,Xt(Cl,{className:" ml-1 h-5 w-5 shrink-0 transition-transform duration-200"})]})}));Dt.displayName=we.Trigger.displayName;var Mt=go.forwardRef(({className:e,children:o,...t},a)=>Xt(we.Content,{ref:a,className:" data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-left transition-all ",...t,children:Xt("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));Mt.displayName=we.Content.displayName;import*as Vi from"react";import{Slot as Sl}from"@radix-ui/react-slot";import{cva as Dl}from"class-variance-authority";import{jsx as Ne,jsxs as kl}from"react/jsx-runtime";var Tl=({className:e})=>kl("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"}),Ne("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"})]}),qt=Tl;import{Fragment as Il,jsx as Aa,jsxs as Ml}from"react/jsx-runtime";var ze=Dl("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),Pe=Vi.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let m=a?Sl:"button",p=r(ze({variant:o,size:t,className:e}),{"cursor-wait":i});return Aa(Il,{children:a?Aa(m,{className:p,type:"button",disabled:n,ref:l,...s,children:s.children}):Ml(m,{className:p,type:"button",disabled:n,ref:l,...s,children:[i&&Aa(qt,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});Pe.displayName="Button";import*as uo from"react";import{XMarkIcon as Al}from"@heroicons/react/16/solid";import*as W from"@radix-ui/react-dialog";import{jsx as Ke,jsxs as La}from"react/jsx-runtime";var Je=W.Root,Ea=W.Trigger,Oi=W.Portal,Ha=W.Close,Fa=uo.forwardRef(({className:e,...o},t)=>Ke(W.Overlay,{ref:t,className:r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 !duration-300",e),...o}));Fa.displayName=W.Overlay.displayName;var _e=uo.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...m},p)=>{let c={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(100%_-_calc(32px_+_env(safe-area-inset-top,0)))] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},d={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:w-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},P=[c.base,c[i],d[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return La(Oi,{children:[Ke(Fa,{}),La(W.Content,{ref:p,className:r(...P),...m,children:[l,!t&&La(W.Close,{className:r("absolute left-3 top-2 flex h-8 w-8 items-center justify-center rounded-full text-gray-900 before:absolute before:inset-0 before:left-0 before:top-0 before:z-[-1] before:select-none before:rounded-full before:bg-gray-200 before:opacity-0 before:transition-opacity before:content-[''] hover:before:opacity-100 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 md:left-auto md:right-4 md:top-3",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[Ke(Al,{className:"h-5 w-5 text-gray-700"}),Ke("span",{className:"sr-only",children:"Close"})]})]})]})});_e.displayName=W.Content.displayName;var jo=({className:e,...o})=>Ke("div",{className:r("dialog-header flex h-12 w-full shrink-0 items-center justify-center border-b border-gray-200 px-10 py-2 md:h-14 md:px-12 md:py-3",e),...o});jo.displayName="DialogHeader";var ft=({className:e,isCondensed:o=!1,...t})=>Ke("div",{className:r("dialog-body flex-1 overflow-y-auto p-6",o&&"p-5",e),...t});ft.displayName="DialogBody";var Wi=({className:e,isDivider:o=!0,...t})=>Ke("div",{className:r("dialog-footer flex shrink-0 justify-center space-x-2 px-6 pb-4 sm:flex-row sm:justify-end [&>*]:basis-1/2 [&>*]:sm:basis-auto",o&&"border-t border-gray-200 py-3",e),...t});Wi.displayName="DialogFooter";var Uo=uo.forwardRef(({className:e,...o},t)=>Ke(W.Title,{ref:t,className:r("line-clamp-1 max-w-full text-base font-semibold",e),...o}));Uo.displayName=W.Title.displayName;var $i=uo.forwardRef(({className:e,...o},t)=>Ke(W.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));$i.displayName=W.Description.displayName;import{QRCodeSVG as Ll}from"qrcode.react";import{Fragment as za,jsx as R,jsxs as se}from"react/jsx-runtime";var El=({img:e="",children:o,isQrForAll:t})=>se(za,{children:[R("div",{className:"qrcode__scan__container",children:se("div",{className:"qrcode__scan",children:[R("div",{className:"qrcode__gradient",children:R("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),R("div",{className:"qrcode__border",children:R("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),R("div",{className:"qrcode__image p-4",children:e?R("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),R("div",{className:"mt-4 text-sm text-white",children:t?se(za,{children:[R("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),R("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):se(za,{children:[R("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:R("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",R("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),R("style",{children:`
|
|
2
2
|
.qrcode__scan__container {
|
|
3
3
|
padding: 15px;
|
|
4
4
|
background-color: white;
|
|
@@ -67,7 +67,7 @@ import*as go from"react";import*as we from"@radix-ui/react-accordion";import{Che
|
|
|
67
67
|
transform: translate3d(0, 30%, 0);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
`})]}),St=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...c})=>R(et,{...c,children:R(_e,{className:r("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:R(gt,{className:"p-0",children:se("div",{className:"flex flex-row flex-wrap",children:[R("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||se("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[se("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),se("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),R("div",{className:"mt-1 text-gray-500 ",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),se("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),se("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),R("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),se("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),se("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),se("div",{className:"mt-1 text-gray-500 ",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),R("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:se("div",{className:"px-5 py-10 text-center",children:[t&&R("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),se("div",{className:"relative",children:[l&&R("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:R("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),R(Al,{img:i,isQrForAll:l,children:n&&R(Il,{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 Bl}from"react";import{useEffect as Ll,useLayoutEffect as El,useState as Hl}from"react";import Fl from"ua-parser-js";var zl=()=>Fl().device.type==="mobile",_l=typeof window<"u"?El:Ll,Gi=()=>{let[e,o]=Hl(!1);return _l(()=>{o(zl())},[]),e};import{Fragment as Ol,jsx as Qo,jsxs as Vl}from"react/jsx-runtime";var De=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,c]=Bl(!1),d=Gi(),m=!!a?.qrLink,p=()=>{let G=m?a?.qrLink:e;return typeof G=="string"?G.trim():""},u=()=>{let G=p();!G&&typeof e!="function"||(typeof e=="function"?e():window.open(G,o?"_blank":"_self"))},P=(G,j=0)=>{let A=document.querySelector(G);if(!A)return;let re=A.getBoundingClientRect().top+window.scrollY-j;window.scrollTo({top:re,behavior:"smooth"})},S=()=>{typeof e=="string"&&e.startsWith("#")?P(e,t):u()},D=()=>Vl(Ol,{children:[Qo(Pe,{...s,className:i,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),Qo(St,{...a,open:l,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return m?d?a?.isQrForAll?D():Qo(Pe,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):D():Qo(Pe,{...s,onClick:S,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as Yt from"react";import{ChevronRightIcon as Wl,DotsHorizontalIcon as $l}from"@radix-ui/react-icons";import{Slot as Gl}from"@radix-ui/react-slot";import{jsx as tt,jsxs as jl}from"react/jsx-runtime";var ji=Yt.forwardRef(({className:e,...o},t)=>tt("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));ji.displayName="Breadcrumb";var Ui=Yt.forwardRef(({className:e,...o},t)=>tt("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Ui.displayName="BreadcrumbList";var Qi=Yt.forwardRef(({className:e,...o},t)=>tt("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Qi.displayName="BreadcrumbItem";var qi=Yt.forwardRef(({asChild:e,className:o,...t},a)=>tt(e?Gl:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));qi.displayName="BreadcrumbLink";var Xi=Yt.forwardRef(({className:e,...o},t)=>tt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Xi.displayName="BreadcrumbPage";var Yi=({children:e,className:o,...t})=>tt("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??tt(Wl,{className:"w-2 h-2"})});Yi.displayName="BreadcrumbSeparator";var Zi=({className:e,...o})=>jl("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[tt($l,{className:"w-4 h-4 text-gray-900"}),tt("span",{className:"sr-only",children:"More"})]});Zi.displayName="BreadcrumbElipssis";import $a from"html-react-parser";import{createContext as Ul,useContext as Ki}from"react";import{jsx as vo}from"react/jsx-runtime";var _a=Ul({align:"center"}),Ba=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return vo("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},Oa=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=Ki(_a);return vo(s,{className:r("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",l[t],c[o],a&&"truncate",i),children:n})},Va=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=Ki(_a);return vo("div",{className:r(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],c[t],a&&"truncate",i),children:n})},Wa=({className:e,align:o="center",children:t})=>vo("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:vo(_a.Provider,{value:{align:o},children:t})});import{jsx as Dt,jsxs as Ql}from"react/jsx-runtime";var B=({idSection:e,className:o,background:t,children:a})=>Dt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:Dt("div",{className:"wrapper relative",children:a})}),x=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",m=n==="white"?"white":"regular";return!t&&!a&&!o?null:Ql(Wa,{align:e,className:l,children:[o&&Dt(Ba,{color:c,children:o}),t&&Dt(Oa,{tagHeading:i,color:d,size:s,children:$a(t)}),a&&Dt(Va,{color:m,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:$a(a)})]})},w=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:Dt("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{let{btnName:s,...l}=i;return Dt(De,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:$a(s)},n)})});import lm,{memo as mm}from"react";import{ArrowDownIcon as cm}from"@heroicons/react/20/solid";import dm from"html-react-parser";import{createContext as Zl,useCallback as Kl,useContext as Ga,useEffect as Jl,useRef as em,useState as tm}from"react";import{ChevronLeft as om,ChevronRight as am}from"lucide-react";import*as Ji from"react";import{Slot as ql}from"@radix-ui/react-slot";import{cva as Xl}from"class-variance-authority";import{jsx as Yl}from"react/jsx-runtime";var Mt=Xl("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"}}),oe=Ji.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?ql:"button",c=r(Mt({variant:o,size:t,className:e}));return Yl(l,{className:c,disabled:i,ref:s,...n,children:n.children})});oe.displayName="IconButton";import{Fragment as im,jsx as ut,jsxs as er}from"react/jsx-runtime";var qo=Zl(void 0),ot=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=em(null),[n,s]=tm({left:!1,right:!1}),l=Kl(()=>{let d=i.current;if(d){let{scrollLeft:m,scrollWidth:p,clientWidth:u}=d;s({left:m>0,right:Math.ceil(m+u)<p})}},[]);Jl(()=>{let d=i.current;if(d)return l(),window.addEventListener("resize",l),d.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),d.removeEventListener("scroll",l)}},[l]);let c=d=>{let m=i.current;if(m){let{scrollLeft:p,clientWidth:u,scrollWidth:P}=m,S=u*.7*(d==="left"?-1:1),D=p+S;D<0?D=0:D>P-u&&(D=P-u),m.scrollTo({left:D,behavior:"smooth"})}};return ut(qo.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:c,gradientOverlayColor:o},children:er("div",{className:r("relative w-full",t),children:[e&&er(im,{children:[n.left&&ut("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&&ut("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]})})},at=({className:e,children:o})=>{let t=Ga(qo);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return ut("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},it=({className:e,children:o,...t})=>{let a=Ga(qo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?ut(oe,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||ut(om,{className:"h-4 w-4"})}):null},rt=({className:e,children:o,...t})=>{let a=Ga(qo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?ut(oe,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||ut(am,{className:"h-4 w-4"})}):null};import*as Xo from"react";import*as Me from"@radix-ui/react-tabs";import{jsx as ja}from"react/jsx-runtime";var nt=Me.Root,Be=Xo.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>ja(Me.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Be.displayName=Me.List.displayName;var Oe=Xo.forwardRef(({className:e,...o},t)=>ja(Me.Trigger,{ref:t,className:r("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));Oe.displayName=Me.Trigger.displayName;var Ve=Xo.forwardRef(({className:e,...o},t)=>ja(Me.Content,{ref:t,className:r("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Ve.displayName=Me.Content.displayName;import*as tr from"react";import{Slot as rm}from"@radix-ui/react-slot";import{cva as nm}from"class-variance-authority";import{jsx as sm}from"react/jsx-runtime";var or=nm("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"}}),le=tr.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?rm:"button",c=r(or({variant:o,size:t,className:e}));return sm(l,{className:c,disabled:i,ref:s,...n,children:n.children})});le.displayName="TextButton";import{Fragment as ar,jsx as F,jsxs as We}from"react/jsx-runtime";var pm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return We(ar,{children:[F("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:F("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:We("picture",{children:[F("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),F("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),We("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&F(le,{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}),F("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}),We("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&We(ar,{children:[F(le,{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&&F("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&F("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Yo=mm(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(m,p,u)=>{m?.preventDefault(),m?.stopPropagation(),a?a(p):window.open(u,"_blank")},d=(m,p)=>We("div",{children:[F("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",m?.blogList?.length<3?"md:justify-center":""),children:m?.blogList?.map((u,P)=>F("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:F("div",{onClick:S=>c(S,u?.id,u?.url),className:r("group flex cursor-pointer flex-row md:flex-col",m?.classNameItem),children:F(pm,{blog:u})},u?.id)},P))}),m?.isShowBtn&&F("div",{className:"flex items-center justify-center w-full mt-8",children:We(De,{action:i?()=>i?.(p):m?.btnUrl,newTab:m?.isNewTab,variant:"outline",children:[dm(m.btnName||"Xem th\xEAm"),m?.isLoading?F(Xt,{className:"w-5 h-5 ml-2 animate-spin-loading"}):i&&!m?.btnUrl&&F(cm,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},m?.title||p);return We(lm.Fragment,{children:[e&&F(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?We(nt,{defaultValue:t[0]?.title,children:[We(ot,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[F(at,{className:"mb-6 text-center",children:F(Be,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((m,p)=>F(Oe,{value:m.title,children:m.title},m.title+p))})}),F(it,{}),F(rt,{})]}),t.map((m,p)=>F(Ve,{value:m.title,children:d(m,p)},m.title+p))]}):t?.length===1&&t[0]&&d(t[0],0)]})});import bm,{memo as xm,useEffect as hm,useState as sr}from"react";import{ChevronLeftIcon as ym,ChevronRightIcon as wm}from"@heroicons/react/20/solid";import lr from"html-react-parser";import*as I from"react";import{ChevronLeftIcon as fm,ChevronRightIcon as gm}from"@heroicons/react/20/solid";import um from"embla-carousel-react";import{Fragment as vm,jsx as Ce,jsxs as nr}from"react/jsx-runtime";var ir=I.createContext(null);function bo(){let e=I.useContext(ir);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Ie=I.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[c,d]=um({...o,axis:e==="horizontal"?"x":"y"},a),[m,p]=I.useState(!1),[u,P]=I.useState(!1),S=I.useCallback(j=>{j&&(p(j.canScrollPrev()),P(j.canScrollNext()))},[]),D=I.useCallback(()=>{d?.scrollPrev()},[d]),M=I.useCallback(()=>{d?.scrollNext()},[d]),G=I.useCallback(j=>{j.key==="ArrowLeft"?(j.preventDefault(),D()):j.key==="ArrowRight"&&(j.preventDefault(),M())},[D,M]);return I.useEffect(()=>{!d||!t||t(d)},[d,t]),I.useEffect(()=>{if(d)return S(d),d.on("reInit",S),d.on("select",S),()=>{d?.off("select",S)}},[d,S]),Ce(ir.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:M,canScrollPrev:m,canScrollNext:u},children:Ce("div",{ref:l,onKeyDownCapture:G,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Ie.displayName="Carousel";var Ae=I.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=bo();return Ce("div",{ref:i,className:r(o,"overflow-hidden"),children:Ce("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Ae.displayName="CarouselContent";var Le=I.forwardRef(({className:e,...o},t)=>{let{orientation:a}=bo();return Ce("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});Le.displayName="CarouselItem";var Zt=I.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=bo();return nr(oe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ce(fm,{className:"w-6 h-6"}),Ce("span",{className:"sr-only",children:"Previous slide"})]})});Zt.displayName="CarouselPrevious";var Kt=I.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=bo();return nr(oe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ce(gm,{className:"w-6 h-6"}),Ce("span",{className:"sr-only",children:"Next slide"})]})});Kt.displayName="CarouselNext";var rr=I.forwardRef((e,o)=>{let{api:t}=bo(),[,a]=I.useState(!1),i=I.useCallback(()=>a(l=>!l),[]);I.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Ce("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,c)=>Ce(oe,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${c===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 ${c+1}`,onClick:()=>t?.scrollTo(c)},c))}):Ce(vm,{})});rr.displayName="CarouselDots";import{Fragment as Zo,jsx as z,jsxs as Ee}from"react/jsx-runtime";var Nm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ee(Zo,{children:[z("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:z("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Ee("div",{className:"mt-4 md:pr-3",children:[z("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&z("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:lr(e?.description??"")}),Ee("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Ee(Zo,{children:[z(le,{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&&z("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&z("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Pm=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:c="#",isNewTab:d,classNameItem:m}=e??{};return hm(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Ee(Zo,{children:[z(Ie,{opts:{dragFree:!1},setApi:o,className:"w-full",children:z(Ae,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(p=>z(Le,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:z("div",{onClick:u=>i(u,p?.id,p?.url),className:r("group cursor-pointer",m),children:z(Nm,{blog:p})},p?.id)},p?.id))})}),s&&z("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Ee(De,{action:c&&c,newTab:d,variant:"outline",children:[lr(l||"Xem th\xEAm")," "]})})]})},Cm=({carouselRef:e})=>Ee(oe,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[z(ym,{className:"h-6 w-6"}),z("span",{className:"sr-only",children:"Previous slide"})]}),Rm=({carouselRef:e})=>Ee(oe,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[z(wm,{className:"h-6 w-6"}),z("span",{className:"sr-only",children:"Next slide"})]}),Ua=xm(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(d,m,p)=>{d?.preventDefault(),d?.stopPropagation(),t?t(m):window.open(p,"_blank")},[n,s]=sr(null),[,l]=sr(0),c=()=>n?Ee("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[z(Cm,{carouselRef:n}),z(Rm,{carouselRef:n})]}):z(Zo,{});return Ee(bm.Fragment,{children:[Ee("div",{className:" flex items-center justify-between",children:[e&&z(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),z(c,{})]}),z(Pm,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});import{Fragment as Dm,jsx as Jt}from"react/jsx-runtime";var Tm=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return Jt(Yo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return Jt(Ua,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return Jt(Yo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},km=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>Jt(Dm,{children:Tm({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Sm=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>Jt(B,{className:r("overflow-hidden",a),background:i,children:Jt(km,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as Jo from"react";import{enUS as Lm,vi as Em}from"date-fns/locale";import{ChevronLeft as Hm,ChevronRight as Fm}from"lucide-react";import zm from"lunisolar";import{DayPicker as _m}from"react-day-picker";import*as mr from"react";import*as xo from"@radix-ui/react-checkbox";import{CheckIcon as Mm}from"@heroicons/react/16/solid";import{cva as cr}from"class-variance-authority";import{jsx as Qa}from"react/jsx-runtime";var Im=cr("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"}}),Am=cr("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ko=mr.forwardRef(({className:e,size:o,...t},a)=>Qa(xo.Root,{ref:a,className:r(Im({size:o}),e),...t,children:Qa(xo.Indicator,{className:r("flex items-center justify-center text-current"),children:Qa(Mm,{className:r(Am({size:o}))})})}));Ko.displayName=xo.Root.displayName;import{Fragment as $m,jsx as $e,jsxs as qa}from"react/jsx-runtime";var Bm=({date:e,cusContent:o})=>{let t=null;return t=zm(e).lunar,qa($m,{children:[o?o(e):e.getDate(),t&&$e("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Om={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 Vm({isShow:e,setIsShow:o,lang:t}){let a=Jo.useId();return $e("div",{className:"w-full p-3 pt-0",children:qa("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[$e(Ko,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),$e("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Wm=e=>e.getDay()===0||e.getDay()===6;function ea({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,c]=Jo.useState(!0);return $e(_m,{locale:i==="vi"?Em:Lm,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(ze({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(ze({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Wm},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>$e(Hm,{className:"h-6 w-6"}),IconRight:()=>$e(Fm,{className:"h-6 w-6"}),DayContent:d=>$e(Bm,{date:d.date,cusContent:n}),Months:({children:d})=>qa("div",{className:"w-full",children:[$e("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&$e(Vm,{isShow:l,setIsShow:c,lang:i})]})},formatters:i==="vi"?Om:{},...s})}ea.displayName="Calendar";import{QuestionMarkCircleIcon as Gm,XCircleIcon as jm}from"@heroicons/react/16/solid";import{format as ta}from"date-fns";import{Calendar as Um}from"lucide-react";import*as pr from"react";import*as st from"@radix-ui/react-popover";import{jsx as dr}from"react/jsx-runtime";var ho=st.Root,yo=st.Trigger,eo=pr.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>dr(st.Portal,{children:dr(st.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));eo.displayName=st.Content.displayName;import{Fragment as fr,jsx as be,jsxs as wo}from"react/jsx-runtime";var Qm=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:c,calendarProps:d,popoverContentProps:m})=>{let p=d?.selected||null;return wo("div",{children:[wo(ho,{...c,children:[be(yo,{asChild:!0,children:wo(Pe,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!p||!(p instanceof Date)&&typeof p=="object"&&(!("from"in p)||!p.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[be("div",{className:"line-clamp-1 flex-1",children:p instanceof Date?ta(p,s):p&&typeof p=="object"&&"from"in p&&"to"in p?be(fr,{children:p.from?p.to?wo(fr,{children:[be("span",{className:"date-from",children:ta(p.from,s)})," ",be("span",{className:"date-separator",children:"-"}),be("span",{className:"date-to",children:ta(p.to,s)})]}):ta(p.from,s):o}):o}),e&&be("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),be(Um,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),be(eo,{className:"w-auto border-none !p-0",...m,children:be(ea,{...d,defaultMonth:p&&typeof p=="object"&&"from"in p?p.from:p instanceof Date?p:void 0})})]}),a&&wo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?be(jm,{width:16,height:16,className:"text-red-500"}):be(Gm,{width:16,height:16,className:"text-gray-500"}),be("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Km,useState as yr}from"react";import{QuestionMarkCircleIcon as Jm,XCircleIcon as ec}from"@heroicons/react/16/solid";import{isValid as tc}from"date-fns";import*as Ge from"react";import{ChevronDownIcon as gr,ChevronUpIcon as qm,CheckIcon as Xm,XCircleIcon as Ym}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Zm}from"@heroicons/react/24/outline";import*as N from"@radix-ui/react-select";import{jsx as _,jsxs as No}from"react/jsx-runtime";var Po=Ge.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},c)=>No("div",{ref:c,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&_("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),_(N.Root,{disabled:s,...l,children:o}),a&&No("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?_(Ym,{width:16,height:16}):_(Zm,{width:16,height:16}),_("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Co=N.Value,to=Ge.forwardRef(({className:e,children:o,...t},a)=>No(N.Trigger,{ref:a,className:r("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[_("div",{className:"line-clamp-1 text-left",children:o}),_(N.Icon,{asChild:!0,children:_(gr,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));to.displayName=N.Trigger.displayName;var Xa=Ge.forwardRef(({className:e,...o},t)=>_(N.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:_(qm,{className:"h-5 w-5"})}));Xa.displayName=N.ScrollUpButton.displayName;var Ya=Ge.forwardRef(({className:e,...o},t)=>_(N.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:_(gr,{className:"h-5 w-5"})}));Ya.displayName=N.ScrollDownButton.displayName;var oo=Ge.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>_(N.Portal,{children:No(N.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[_(Xa,{}),_(N.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),_(Ya,{})]})}));oo.displayName=N.Content.displayName;var Ro=Ge.forwardRef(({className:e,children:o,...t},a)=>_(N.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),ur=Ge.forwardRef(({className:e,...o},t)=>_(N.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));ur.displayName=N.Label.displayName;var vt=Ge.forwardRef(({className:e,children:o,...t},a)=>No(N.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[_("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:_(N.ItemIndicator,{children:_(Xm,{className:"h-4 w-4 text-pink-500"})})}),_(N.ItemText,{children:o})]})),vr=Ge.forwardRef(({className:e,...o},t)=>_(N.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));vr.displayName=N.Separator.displayName;var br=["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"],xr=["January","February","March","April","May","June","July","August","September","October","November","December"],Za=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},hr=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,l)=>n-l)};import{jsx as Z,jsxs as je}from"react/jsx-runtime";var oc=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:m=new Date().getFullYear()})=>{let[p,u]=yr(o??null),P=Math.min(d,m),S=Math.max(d,m),D=l==="MM/yyyy",M=(C,re)=>{if(re===0){u(void 0),t?.(void 0);return}let co=p?.getFullYear()||new Date().getFullYear(),te=p?.getMonth()??0,po=p?.getDate()??1;C==="month"&&re!==null&&(te=re-1),C==="year"&&re!==null&&(co=re),D?po=1:C==="day"&&re!==null&&(po=re);let xl=Za(co,te+1).daysInMonth;po>xl&&(po=1);let Ma=new Date(co,te,po);tc(Ma)&&(u(Ma),t?.(Ma))},[G,j]=yr(!1),A=C=>{j(C)};return Km(()=>{u(o??null)},[o]),je("div",{className:r("relative",s&&"cursor-no-drop"),children:[je("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",G&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",p?"":"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&&Z("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),je("div",{className:"flex h-full flex-row divide-x",children:[!D&&je(Po,{value:p?p.getDate().toString().padStart(2,"0"):"",onValueChange:C=>M("day",parseInt(C,10)),onOpenChange:A,className:"w-[30%]",children:[Z(to,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:Z(Co,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),Z(oo,{onCloseAutoFocus:C=>C.preventDefault(),children:je(Ro,{children:[Z(vt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Za(p?.getFullYear()||new Date().getFullYear(),(p?.getMonth()??0)+1).daysInMonth},(C,re)=>(re+1).toString().padStart(2,"0")).map(C=>Z(vt,{value:C,children:C},C))]})})]}),je(Po,{value:p?(p.getMonth()+1).toString():"",onValueChange:C=>M("month",parseInt(C,10)),onOpenChange:A,className:r(D?"w-1/2":"w-2/5"),children:[Z(to,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:Z(Co,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),Z(oo,{onCloseAutoFocus:C=>C.preventDefault(),children:je(Ro,{children:[Z(vt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(C,re)=>re+1).map(C=>Z(vt,{value:C.toString(),children:c==="vi"?br[C-1]:xr[C-1]},C))]})})]}),je(Po,{value:p?p.getFullYear().toString():"",onValueChange:C=>M("year",parseInt(C,10)),onOpenChange:A,className:r(D?"w-1/2":"w-[30%]"),children:[Z(to,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:Z(Co,{placeholder:c==="vi"?"N\u0103m":"Year"})}),Z(oo,{onCloseAutoFocus:C=>C.preventDefault(),children:je(Ro,{children:[Z(vt,{value:"0",className:"text-gray-500",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),hr(P,S).map(C=>Z(vt,{value:C.toString(),children:C},C))]})})]})]})]}),i&&je("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?Z(ec,{width:16,height:16,className:"text-red-500"}):Z(Jm,{width:16,height:16,className:"text-gray-500"}),Z("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};import*as It from"react";import*as L from"@radix-ui/react-alert-dialog";import{jsx as lt,jsxs as rc}from"react/jsx-runtime";var ac=L.Root,ic=L.Trigger,wr=L.Portal,Ka=It.forwardRef(({className:e,...o},t)=>lt(L.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));Ka.displayName=L.Overlay.displayName;var Nr=It.forwardRef(({className:e,...o},t)=>rc(wr,{children:[lt(Ka,{}),lt(L.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));Nr.displayName=L.Content.displayName;var Pr=({className:e,...o})=>lt("div",{className:r("flex flex-col space-y-2 text-left",e),...o});Pr.displayName="AlertDialogHeader";var Cr=({className:e,...o})=>lt("div",{className:r("flex flex-row justify-end space-x-4",e),...o});Cr.displayName="AlertDialogFooter";var Rr=It.forwardRef(({className:e,...o},t)=>lt(L.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));Rr.displayName=L.Title.displayName;var Tr=It.forwardRef(({className:e,...o},t)=>lt(L.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Tr.displayName=L.Description.displayName;var kr=It.forwardRef(({className:e,...o},t)=>lt(L.Action,{ref:t,className:r(ze({variant:"primary"}),"",e),...o}));kr.displayName=L.Action.displayName;var Sr=It.forwardRef(({className:e,...o},t)=>lt(L.Cancel,{ref:t,className:r(ze({variant:"secondary"}),e),...o}));Sr.displayName=L.Cancel.displayName;import{memo as gc,useState as uc}from"react";import{useEffect as nc,useState as Mr}from"react";import{motion as sc}from"framer-motion";import Ir from"html-react-parser";import*as Dr from"@radix-ui/react-aspect-ratio";var U=Dr.Root;import{Fragment as Ar,jsx as K,jsxs as To}from"react/jsx-runtime";var lc=({guideGroup:e,mockup:o})=>{let[t,a]=Mr(),[i,n]=Mr(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return nc(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),K(Ar,{children:e?.stepList&&e?.stepList?.length>0&&To("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[K("div",{className:"h-auto w-64 flex-none",children:To("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&To(Ar,{children:[K("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),K("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),K("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),K("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),K("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:To(Ie,{setApi:a,children:[K(Ae,{className:"ml-0",children:e?.stepList.map((l,c)=>K(Le,{className:"pl-0",children:K(U,{ratio:o==="small"?540/960:540/1168,children:K("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},c))}),K(Zt,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),K(Kt,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),K("div",{className:"flex flex-auto py-4 pl-12",children:K("ul",{className:"flex flex-col",children:e?.stepList.map((l,c)=>To("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",c+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[K("div",{className:r("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),K("div",{className:r(" text-sm font-medium",c+1===i?"text-pink-500":"text-gray-900"),children:Ir(l.title)}),l.content&&K(sc.div,{initial:"closed",animate:c+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:K("div",{className:"mt-3 text-sm text-gray-700",children:Ir(l.content)})})]},c))})})]})})},Ja=lc;import{useEffect as mc,useRef as cc,useState as oa}from"react";import{ChevronRightIcon as Lr}from"@heroicons/react/20/solid";import dc from"embla-carousel-autoplay";import aa from"html-react-parser";import{Fragment as ei,jsx as b,jsxs as pe}from"react/jsx-runtime";var pc=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=oa(0),[s,l]=oa();return mc(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:b(et,{open:e,onOpenChange:o,children:pe(_e,{position:"bottom",height:"full",children:[b(jo,{children:b(Uo,{className:"line-clamp-1",children:t?.title})}),pe(gt,{className:"grid overflow-hidden p-0 ",children:[b(Ie,{setApi:l,className:" grid overflow-hidden",children:b(Ae,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>b(Le,{className:"h-full w-full pl-0",children:pe("div",{className:"flex h-full flex-col overflow-y-auto",children:[b("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:b("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:pe("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&pe(ei,{children:[b("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),b("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:b(U,{ratio:a==="small"?540/960:540/1168,children:b("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),pe("div",{className:"p-5 pb-12",children:[b("div",{className:"font-semibold",children:aa(c.title)}),c?.content&&b("div",{className:"mt-3 text-sm text-gray-800",children:aa(c.content)})]})]})},d))})}),b("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((c,d)=>b("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},fc=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=oa(!1),[n,s]=oa(null),l=cc(dc({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),i(!0)};return e?.length===0?null:pe(ei,{children:[e?.length>1?b("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,m)=>pe("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(m),children:[b("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:b(U,{ratio:1,children:b("img",{src:d.avatar,className:"object-cover",alt:d.title})})}),pe("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",m+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[pe("div",{className:"py-2",children:[t&&b("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${m+1}`}),b("div",{className:"font-semibold",children:aa(d.title)}),d?.description&&b("div",{className:"mt-1 text-sm text-gray-500",children:aa(d.description)})]}),b("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:b(Lr,{className:"h-6 w-6"})})]})]},m))}):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:[b("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:b("div",{className:"mx-auto h-auto w-72",children:pe("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&pe(ei,{children:[b("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),b("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:b(Ie,{plugins:[l.current],children:b(Ae,{className:"ml-0",children:e[0]?.stepList.map((d,m)=>b(Le,{className:"pl-0",onClick:()=>c(0),children:b(U,{ratio:o==="small"?540/960:540/1168,children:b("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},m))})})})]})})}),b("div",{className:"flex w-full flex-none justify-center",children:pe(le,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",b(Lr,{className:"ml-1 h-5 w-5"})]})})]}),a&&b(pc,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},Er=fc;import{Fragment as vc,jsx as ie,jsxs as ko}from"react/jsx-runtime";var Hr=({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 ie("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:ie("path",{d:t.d,fill:"currentColor"})})},ti=gc(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:c}=o||{},[d,m]=uc(t?.[0]?.title||"");return ko(vc,{children:[e&&ie(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&ko($t,{children:[ie(Ke,{lessThan:"md",children:ie(Er,{dataGuide:t,mockup:i,isStep:n})}),ie(Ke,{greaterThan:"sm",children:t?.length>1?ko(nt,{defaultValue:t[0]?.title,onValueChange:p=>m(p),children:[ko(ot,{showGradientOverlay:s,gradientOverlayColor:l,className:c,children:[ie(at,{className:"mb-6 text-center",children:ie(Be,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((p,u)=>{let P=u===t.length-1,S=d===p?.title||"";return ko(Oe,{value:p.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",S&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&ie(Hr,{direction:"left",className:r("right-full top-0",S?"text-pink-500":"text-pink-100")}),p.title,n&&!P&&ie(Hr,{direction:"right",className:r("left-full top-0",S?"text-pink-500":"text-pink-100")})]},p.title+u)})})}),ie(it,{}),ie(rt,{})]}),t.map((p,u)=>ie(Ve,{value:p.title,children:ie(Ja,{guideGroup:p,mockup:i})},p.title+u))]}):t?.length===1&&t[0]&&ie(Ja,{guideGroup:t[0],mockup:i})})]}),a&&ie(w,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as yc,jsx as So}from"react/jsx-runtime";var bc=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return So(ti,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return So(ti,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},xc=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>So(yc,{children:bc({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),hc=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:i,background:n,template:s=1,mockup:l="default",isStep:c=!1})=>So(B,{className:r(i),background:n,children:So(xc,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:l,isStep:c})});import{ChevronLeft as wc,ChevronRight as Nc}from"lucide-react";import{Fragment as Pc,jsx as Re,jsxs as Fr}from"react/jsx-runtime";function zr({current:e,total:o,onChange:t}){let a=i=>Re("li",{children:Re("button",{className:r(Mt({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return Re("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:Fr("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Re("li",{children:Re("button",{className:r(Mt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Re(wc,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):Fr(Pc,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Re("li",{children:Re("button",{className:r(Mt({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&&Re("button",{className:r(Mt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Re("li",{children:Re("button",{className:r(Mt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Re(Nc,{className:"h-4 w-4"})})})]})})}import{forwardRef as Cc}from"react";import{QuestionMarkCircleIcon as Rc}from"@heroicons/react/24/outline";import{XCircleIcon as Tc}from"@heroicons/react/24/solid";import{jsx as ao,jsxs as _r}from"react/jsx-runtime";var kc=Cc(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...c},d)=>_r("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&ao("span",{className:r("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),ao("textarea",{disabled:e,ref:d,className:r("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:l,...c}),t&&_r("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?ao(Tc,{width:16,height:16,className:"text-red-500"}):ao(Rc,{width:16,height:16,className:"text-gray-500"}),ao("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),ao("style",{children:`
|
|
70
|
+
`})]}),It=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>R(Je,{...m,children:R(_e,{className:r("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:R(ft,{className:"p-0",children:se("div",{className:"flex flex-row flex-wrap",children:[R("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||se("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[se("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),se("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),R("div",{className:"mt-1 text-gray-500 ",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),se("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),se("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),R("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),se("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),se("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),se("div",{className:"mt-1 text-gray-500 ",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),R("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:se("div",{className:"px-5 py-10 text-center",children:[t&&R("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),se("div",{className:"relative",children:[l&&R("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:R("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),R(El,{img:i,isQrForAll:l,children:n&&R(Ll,{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 Ol}from"react";import{useEffect as Hl,useLayoutEffect as Fl,useState as zl}from"react";import _l from"ua-parser-js";var Bl=()=>_l().device.type==="mobile",Vl=typeof window<"u"?Fl:Hl,Gi=()=>{let[e,o]=zl(!1);return Vl(()=>{o(Bl())},[]),e};import{Fragment as Wl,jsx as Qo,jsxs as $l}from"react/jsx-runtime";var De=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,m]=Ol(!1),p=Gi(),c=!!a?.qrLink,d=()=>{let G=c?a?.qrLink:e;return typeof G=="string"?G.trim():""},u=()=>{let G=d();!G&&typeof e!="function"||(typeof e=="function"?e():window.open(G,o?"_blank":"_self"))},P=(G,j=0)=>{let A=document.querySelector(G);if(!A)return;let re=A.getBoundingClientRect().top+window.scrollY-j;window.scrollTo({top:re,behavior:"smooth"})},S=()=>{typeof e=="string"&&e.startsWith("#")?P(e,t):u()},D=()=>$l(Wl,{children:[Qo(Pe,{...s,className:i,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),Qo(It,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return c?p?a?.isQrForAll?D():Qo(Pe,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):D():Qo(Pe,{...s,onClick:S,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as Yt from"react";import{ChevronRightIcon as Gl,DotsHorizontalIcon as jl}from"@radix-ui/react-icons";import{Slot as Ul}from"@radix-ui/react-slot";import{jsx as et,jsxs as Ql}from"react/jsx-runtime";var ji=Yt.forwardRef(({className:e,...o},t)=>et("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));ji.displayName="Breadcrumb";var Ui=Yt.forwardRef(({className:e,...o},t)=>et("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Ui.displayName="BreadcrumbList";var Qi=Yt.forwardRef(({className:e,...o},t)=>et("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Qi.displayName="BreadcrumbItem";var Xi=Yt.forwardRef(({asChild:e,className:o,...t},a)=>et(e?Ul:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Xi.displayName="BreadcrumbLink";var qi=Yt.forwardRef(({className:e,...o},t)=>et("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));qi.displayName="BreadcrumbPage";var Yi=({children:e,className:o,...t})=>et("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??et(Gl,{className:"w-2 h-2"})});Yi.displayName="BreadcrumbSeparator";var Zi=({className:e,...o})=>Ql("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[et(jl,{className:"w-4 h-4 text-gray-900"}),et("span",{className:"sr-only",children:"More"})]});Zi.displayName="BreadcrumbElipssis";import $a from"html-react-parser";import{createContext as Xl,useContext as Ki}from"react";import{jsx as vo}from"react/jsx-runtime";var _a=Xl({align:"center"}),Ba=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return vo("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},Va=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:p}=Ki(_a);return vo(s,{className:r("max-w-4xl font-bold",p==="center"?"mx-auto":p==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",i),children:n})},Oa=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:p}=Ki(_a);return vo("div",{className:r(p==="center"?"mx-auto max-w-2xl":p==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",i),children:n})},Wa=({className:e,align:o="center",children:t})=>vo("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:vo(_a.Provider,{value:{align:o},children:t})});import{jsx as At,jsxs as ql}from"react/jsx-runtime";var B=({idSection:e,className:o,background:t,children:a})=>At("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:At("div",{className:"wrapper relative",children:a})}),x=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",p=n==="pink"?"pink":n==="white"?"white":"regular",c=n==="white"?"white":"regular";return!t&&!a&&!o?null:ql(Wa,{align:e,className:l,children:[o&&At(Ba,{color:m,children:o}),t&&At(Va,{tagHeading:i,color:p,size:s,children:$a(t)}),a&&At(Oa,{color:c,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:$a(a)})]})},w=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:At("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{let{btnName:s,...l}=i;return At(De,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:$a(s)},n)})});import cm,{memo as dm}from"react";import{ArrowDownIcon as pm}from"@heroicons/react/20/solid";import fm from"html-react-parser";import{createContext as Jl,useCallback as em,useContext as Ga,useEffect as tm,useRef as om,useState as am}from"react";import{ChevronLeft as im,ChevronRight as rm}from"lucide-react";import*as Ji from"react";import{Slot as Yl}from"@radix-ui/react-slot";import{cva as Zl}from"class-variance-authority";import{jsx as Kl}from"react/jsx-runtime";var Lt=Zl("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"}}),oe=Ji.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Yl:"button",m=r(Lt({variant:o,size:t,className:e}));return Kl(l,{className:m,disabled:i,ref:s,...n,children:n.children})});oe.displayName="IconButton";import{Fragment as nm,jsx as gt,jsxs as er}from"react/jsx-runtime";var Xo=Jl(void 0),tt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=om(null),[n,s]=am({left:!1,right:!1}),l=em(()=>{let p=i.current;if(p){let{scrollLeft:c,scrollWidth:d,clientWidth:u}=p;s({left:c>0,right:Math.ceil(c+u)<d})}},[]);tm(()=>{let p=i.current;if(p)return l(),window.addEventListener("resize",l),p.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),p.removeEventListener("scroll",l)}},[l]);let m=p=>{let c=i.current;if(c){let{scrollLeft:d,clientWidth:u,scrollWidth:P}=c,S=u*.7*(p==="left"?-1:1),D=d+S;D<0?D=0:D>P-u&&(D=P-u),c.scrollTo({left:D,behavior:"smooth"})}};return gt(Xo.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:m,gradientOverlayColor:o},children:er("div",{className:r("relative w-full",t),children:[e&&er(nm,{children:[n.left&>("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&>("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]})})},ot=({className:e,children:o})=>{let t=Ga(Xo);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return gt("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},at=({className:e,children:o,...t})=>{let a=Ga(Xo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?gt(oe,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||gt(im,{className:"h-4 w-4"})}):null},it=({className:e,children:o,...t})=>{let a=Ga(Xo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?gt(oe,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||gt(rm,{className:"h-4 w-4"})}):null};import*as qo from"react";import*as Me from"@radix-ui/react-tabs";import{jsx as ja}from"react/jsx-runtime";var rt=Me.Root,Be=qo.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>ja(Me.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));Be.displayName=Me.List.displayName;var Ve=qo.forwardRef(({className:e,...o},t)=>ja(Me.Trigger,{ref:t,className:r("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));Ve.displayName=Me.Trigger.displayName;var Oe=qo.forwardRef(({className:e,...o},t)=>ja(Me.Content,{ref:t,className:r("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Oe.displayName=Me.Content.displayName;import*as tr from"react";import{Slot as sm}from"@radix-ui/react-slot";import{cva as lm}from"class-variance-authority";import{jsx as mm}from"react/jsx-runtime";var or=lm("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"}}),le=tr.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?sm:"button",m=r(or({variant:o,size:t,className:e}));return mm(l,{className:m,disabled:i,ref:s,...n,children:n.children})});le.displayName="TextButton";import{Fragment as ar,jsx as F,jsxs as We}from"react/jsx-runtime";var gm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return We(ar,{children:[F("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:F("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:We("picture",{children:[F("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),F("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),We("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&F(le,{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}),F("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}),We("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&We(ar,{children:[F(le,{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&&F("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&F("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Yo=dm(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(c,d,u)=>{c?.preventDefault(),c?.stopPropagation(),a?a(d):window.open(u,"_blank")},p=(c,d)=>We("div",{children:[F("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",c?.blogList?.length<3?"md:justify-center":""),children:c?.blogList?.map((u,P)=>F("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:F("div",{onClick:S=>m(S,u?.id,u?.url),className:r("group flex cursor-pointer flex-row md:flex-col",c?.classNameItem),children:F(gm,{blog:u})},u?.id)},P))}),c?.isShowBtn&&F("div",{className:"flex items-center justify-center w-full mt-8",children:We(De,{action:i?()=>i?.(d):c?.btnUrl,newTab:c?.isNewTab,variant:"outline",children:[fm(c.btnName||"Xem th\xEAm"),c?.isLoading?F(qt,{className:"w-5 h-5 ml-2 animate-spin-loading"}):i&&!c?.btnUrl&&F(pm,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},c?.title||d);return We(cm.Fragment,{children:[e&&F(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?We(rt,{defaultValue:t[0]?.title,children:[We(tt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[F(ot,{className:"mb-6 text-center",children:F(Be,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((c,d)=>F(Ve,{value:c.title,children:c.title},c.title+d))})}),F(at,{}),F(it,{})]}),t.map((c,d)=>F(Oe,{value:c.title,children:p(c,d)},c.title+d))]}):t?.length===1&&t[0]&&p(t[0],0)]})});import hm,{memo as ym,useEffect as wm,useState as sr}from"react";import{ChevronLeftIcon as Nm,ChevronRightIcon as Pm}from"@heroicons/react/20/solid";import lr from"html-react-parser";import*as I from"react";import{ChevronLeftIcon as um,ChevronRightIcon as vm}from"@heroicons/react/20/solid";import bm from"embla-carousel-react";import{Fragment as xm,jsx as Ce,jsxs as nr}from"react/jsx-runtime";var ir=I.createContext(null);function bo(){let e=I.useContext(ir);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Ie=I.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[m,p]=bm({...o,axis:e==="horizontal"?"x":"y"},a),[c,d]=I.useState(!1),[u,P]=I.useState(!1),S=I.useCallback(j=>{j&&(d(j.canScrollPrev()),P(j.canScrollNext()))},[]),D=I.useCallback(()=>{p?.scrollPrev()},[p]),M=I.useCallback(()=>{p?.scrollNext()},[p]),G=I.useCallback(j=>{j.key==="ArrowLeft"?(j.preventDefault(),D()):j.key==="ArrowRight"&&(j.preventDefault(),M())},[D,M]);return I.useEffect(()=>{!p||!t||t(p)},[p,t]),I.useEffect(()=>{if(p)return S(p),p.on("reInit",S),p.on("select",S),()=>{p?.off("select",S)}},[p,S]),Ce(ir.Provider,{value:{carouselRef:m,api:p,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:M,canScrollPrev:c,canScrollNext:u},children:Ce("div",{ref:l,onKeyDownCapture:G,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Ie.displayName="Carousel";var Ae=I.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=bo();return Ce("div",{ref:i,className:r(o,"overflow-hidden"),children:Ce("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Ae.displayName="CarouselContent";var Le=I.forwardRef(({className:e,...o},t)=>{let{orientation:a}=bo();return Ce("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});Le.displayName="CarouselItem";var Zt=I.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=bo();return nr(oe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ce(um,{className:"w-6 h-6"}),Ce("span",{className:"sr-only",children:"Previous slide"})]})});Zt.displayName="CarouselPrevious";var Kt=I.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=bo();return nr(oe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ce(vm,{className:"w-6 h-6"}),Ce("span",{className:"sr-only",children:"Next slide"})]})});Kt.displayName="CarouselNext";var rr=I.forwardRef((e,o)=>{let{api:t}=bo(),[,a]=I.useState(!1),i=I.useCallback(()=>a(l=>!l),[]);I.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?Ce("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>Ce(oe,{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))}):Ce(xm,{})});rr.displayName="CarouselDots";import{Fragment as Zo,jsx as z,jsxs as Ee}from"react/jsx-runtime";var Cm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ee(Zo,{children:[z("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:z("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Ee("div",{className:"mt-4 md:pr-3",children:[z("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&z("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:lr(e?.description??"")}),Ee("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Ee(Zo,{children:[z(le,{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&&z("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&z("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Rm=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:p,classNameItem:c}=e??{};return wm(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Ee(Zo,{children:[z(Ie,{opts:{dragFree:!1},setApi:o,className:"w-full",children:z(Ae,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(d=>z(Le,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:z("div",{onClick:u=>i(u,d?.id,d?.url),className:r("group cursor-pointer",c),children:z(Cm,{blog:d})},d?.id)},d?.id))})}),s&&z("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Ee(De,{action:m&&m,newTab:p,variant:"outline",children:[lr(l||"Xem th\xEAm")," "]})})]})},Tm=({carouselRef:e})=>Ee(oe,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[z(Nm,{className:"h-6 w-6"}),z("span",{className:"sr-only",children:"Previous slide"})]}),km=({carouselRef:e})=>Ee(oe,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[z(Pm,{className:"h-6 w-6"}),z("span",{className:"sr-only",children:"Next slide"})]}),Ua=ym(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(p,c,d)=>{p?.preventDefault(),p?.stopPropagation(),t?t(c):window.open(d,"_blank")},[n,s]=sr(null),[,l]=sr(0),m=()=>n?Ee("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[z(Tm,{carouselRef:n}),z(km,{carouselRef:n})]}):z(Zo,{});return Ee(hm.Fragment,{children:[Ee("div",{className:" flex items-center justify-between",children:[e&&z(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),z(m,{})]}),z(Rm,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});import{Fragment as Im,jsx as Jt}from"react/jsx-runtime";var Sm=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return Jt(Yo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return Jt(Ua,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return Jt(Yo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Dm=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>Jt(Im,{children:Sm({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Mm=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>Jt(B,{className:r("overflow-hidden",a),background:i,children:Jt(Dm,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as Jo from"react";import{enUS as Hm,vi as Fm}from"date-fns/locale";import{ChevronLeft as zm,ChevronRight as _m}from"lucide-react";import Bm from"lunisolar";import{DayPicker as Vm}from"react-day-picker";import*as mr from"react";import*as xo from"@radix-ui/react-checkbox";import{CheckIcon as Am}from"@heroicons/react/16/solid";import{cva as cr}from"class-variance-authority";import{jsx as Qa}from"react/jsx-runtime";var Lm=cr("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"}}),Em=cr("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ko=mr.forwardRef(({className:e,size:o,...t},a)=>Qa(xo.Root,{ref:a,className:r(Lm({size:o}),e),...t,children:Qa(xo.Indicator,{className:r("flex items-center justify-center text-current"),children:Qa(Am,{className:r(Em({size:o}))})})}));Ko.displayName=xo.Root.displayName;import{Fragment as jm,jsx as $e,jsxs as Xa}from"react/jsx-runtime";var Om=({date:e,cusContent:o})=>{let t=null;return t=Bm(e).lunar,Xa(jm,{children:[o?o(e):e.getDate(),t&&$e("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Wm={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 $m({isShow:e,setIsShow:o,lang:t}){let a=Jo.useId();return $e("div",{className:"w-full p-3 pt-0",children:Xa("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[$e(Ko,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),$e("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Gm=e=>e.getDay()===0||e.getDay()===6;function ea({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,m]=Jo.useState(!0);return $e(Vm,{locale:i==="vi"?Fm:Hm,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(ze({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(ze({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Gm},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>$e(zm,{className:"h-6 w-6"}),IconRight:()=>$e(_m,{className:"h-6 w-6"}),DayContent:p=>$e(Om,{date:p.date,cusContent:n}),Months:({children:p})=>Xa("div",{className:"w-full",children:[$e("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:p}),a&&$e($m,{isShow:l,setIsShow:m,lang:i})]})},formatters:i==="vi"?Wm:{},...s})}ea.displayName="Calendar";import{QuestionMarkCircleIcon as Um,XCircleIcon as Qm}from"@heroicons/react/16/solid";import{format as ta}from"date-fns";import{Calendar as Xm}from"lucide-react";import*as pr from"react";import*as nt from"@radix-ui/react-popover";import{jsx as dr}from"react/jsx-runtime";var ho=nt.Root,yo=nt.Trigger,eo=pr.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>dr(nt.Portal,{children:dr(nt.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));eo.displayName=nt.Content.displayName;import{Fragment as fr,jsx as be,jsxs as wo}from"react/jsx-runtime";var qm=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:p,popoverContentProps:c})=>{let d=p?.selected||null;return wo("div",{children:[wo(ho,{...m,children:[be(yo,{asChild:!0,children:wo(Pe,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!d||!(d instanceof Date)&&typeof d=="object"&&(!("from"in d)||!d.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[be("div",{className:"line-clamp-1 flex-1",children:d instanceof Date?ta(d,s):d&&typeof d=="object"&&"from"in d&&"to"in d?be(fr,{children:d.from?d.to?wo(fr,{children:[be("span",{className:"date-from",children:ta(d.from,s)})," ",be("span",{className:"date-separator",children:"-"}),be("span",{className:"date-to",children:ta(d.to,s)})]}):ta(d.from,s):o}):o}),e&&be("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),be(Xm,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),be(eo,{className:"w-auto border-none !p-0",...c,children:be(ea,{...p,defaultMonth:d&&typeof d=="object"&&"from"in d?d.from:d instanceof Date?d:void 0})})]}),a&&wo("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?be(Qm,{width:16,height:16,className:"text-red-500"}):be(Um,{width:16,height:16,className:"text-gray-500"}),be("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as ec,useState as yr}from"react";import{QuestionMarkCircleIcon as tc,XCircleIcon as oc}from"@heroicons/react/16/solid";import{isValid as ac}from"date-fns";import*as Ge from"react";import{ChevronDownIcon as gr,ChevronUpIcon as Ym,CheckIcon as Zm,XCircleIcon as Km}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Jm}from"@heroicons/react/24/outline";import*as N from"@radix-ui/react-select";import{jsx as _,jsxs as No}from"react/jsx-runtime";var Po=Ge.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},m)=>No("div",{ref:m,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&_("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),_(N.Root,{disabled:s,...l,children:o}),a&&No("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?_(Km,{width:16,height:16}):_(Jm,{width:16,height:16}),_("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Co=N.Value,to=Ge.forwardRef(({className:e,children:o,...t},a)=>No(N.Trigger,{ref:a,className:r("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[_("div",{className:"line-clamp-1 text-left",children:o}),_(N.Icon,{asChild:!0,children:_(gr,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));to.displayName=N.Trigger.displayName;var qa=Ge.forwardRef(({className:e,...o},t)=>_(N.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:_(Ym,{className:"h-5 w-5"})}));qa.displayName=N.ScrollUpButton.displayName;var Ya=Ge.forwardRef(({className:e,...o},t)=>_(N.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:_(gr,{className:"h-5 w-5"})}));Ya.displayName=N.ScrollDownButton.displayName;var oo=Ge.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>_(N.Portal,{children:No(N.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[_(qa,{}),_(N.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),_(Ya,{})]})}));oo.displayName=N.Content.displayName;var Ro=Ge.forwardRef(({className:e,children:o,...t},a)=>_(N.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),ur=Ge.forwardRef(({className:e,...o},t)=>_(N.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));ur.displayName=N.Label.displayName;var ut=Ge.forwardRef(({className:e,children:o,...t},a)=>No(N.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[_("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:_(N.ItemIndicator,{children:_(Zm,{className:"h-4 w-4 text-pink-500"})})}),_(N.ItemText,{children:o})]})),vr=Ge.forwardRef(({className:e,...o},t)=>_(N.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));vr.displayName=N.Separator.displayName;var br=["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"],xr=["January","February","March","April","May","June","July","August","September","October","November","December"],Za=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},hr=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,l)=>n-l)};import{jsx as Z,jsxs as je}from"react/jsx-runtime";var ic=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:p=1900,toYear:c=new Date().getFullYear()})=>{let[d,u]=yr(o??null),P=Math.min(p,c),S=Math.max(p,c),D=l==="MM/yyyy",M=(C,re)=>{if(re===0){u(void 0),t?.(void 0);return}let co=d?.getFullYear()||new Date().getFullYear(),te=d?.getMonth()??0,po=d?.getDate()??1;C==="month"&&re!==null&&(te=re-1),C==="year"&&re!==null&&(co=re),D?po=1:C==="day"&&re!==null&&(po=re);let yl=Za(co,te+1).daysInMonth;po>yl&&(po=1);let Ma=new Date(co,te,po);ac(Ma)&&(u(Ma),t?.(Ma))},[G,j]=yr(!1),A=C=>{j(C)};return ec(()=>{u(o??null)},[o]),je("div",{className:r("relative",s&&"cursor-no-drop"),children:[je("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",G&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",d?"":"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&&Z("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),je("div",{className:"flex h-full flex-row divide-x",children:[!D&&je(Po,{value:d?d.getDate().toString().padStart(2,"0"):"",onValueChange:C=>M("day",parseInt(C,10)),onOpenChange:A,className:"w-[30%]",children:[Z(to,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:Z(Co,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),Z(oo,{onCloseAutoFocus:C=>C.preventDefault(),children:je(Ro,{children:[Z(ut,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Za(d?.getFullYear()||new Date().getFullYear(),(d?.getMonth()??0)+1).daysInMonth},(C,re)=>(re+1).toString().padStart(2,"0")).map(C=>Z(ut,{value:C,children:C},C))]})})]}),je(Po,{value:d?(d.getMonth()+1).toString():"",onValueChange:C=>M("month",parseInt(C,10)),onOpenChange:A,className:r(D?"w-1/2":"w-2/5"),children:[Z(to,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:Z(Co,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),Z(oo,{onCloseAutoFocus:C=>C.preventDefault(),children:je(Ro,{children:[Z(ut,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(C,re)=>re+1).map(C=>Z(ut,{value:C.toString(),children:m==="vi"?br[C-1]:xr[C-1]},C))]})})]}),je(Po,{value:d?d.getFullYear().toString():"",onValueChange:C=>M("year",parseInt(C,10)),onOpenChange:A,className:r(D?"w-1/2":"w-[30%]"),children:[Z(to,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:Z(Co,{placeholder:m==="vi"?"N\u0103m":"Year"})}),Z(oo,{onCloseAutoFocus:C=>C.preventDefault(),children:je(Ro,{children:[Z(ut,{value:"0",className:"text-gray-500",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),hr(P,S).map(C=>Z(ut,{value:C.toString(),children:C},C))]})})]})]})]}),i&&je("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?Z(oc,{width:16,height:16,className:"text-red-500"}):Z(tc,{width:16,height:16,className:"text-gray-500"}),Z("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};import*as Et from"react";import*as L from"@radix-ui/react-alert-dialog";import{jsx as st,jsxs as sc}from"react/jsx-runtime";var rc=L.Root,nc=L.Trigger,wr=L.Portal,Ka=Et.forwardRef(({className:e,...o},t)=>st(L.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));Ka.displayName=L.Overlay.displayName;var Nr=Et.forwardRef(({className:e,...o},t)=>sc(wr,{children:[st(Ka,{}),st(L.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));Nr.displayName=L.Content.displayName;var Pr=({className:e,...o})=>st("div",{className:r("flex flex-col space-y-2 text-left",e),...o});Pr.displayName="AlertDialogHeader";var Cr=({className:e,...o})=>st("div",{className:r("flex flex-row justify-end space-x-4",e),...o});Cr.displayName="AlertDialogFooter";var Rr=Et.forwardRef(({className:e,...o},t)=>st(L.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));Rr.displayName=L.Title.displayName;var Tr=Et.forwardRef(({className:e,...o},t)=>st(L.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Tr.displayName=L.Description.displayName;var kr=Et.forwardRef(({className:e,...o},t)=>st(L.Action,{ref:t,className:r(ze({variant:"primary"}),"",e),...o}));kr.displayName=L.Action.displayName;var Sr=Et.forwardRef(({className:e,...o},t)=>st(L.Cancel,{ref:t,className:r(ze({variant:"secondary"}),e),...o}));Sr.displayName=L.Cancel.displayName;import{memo as vc,useState as bc}from"react";import{useEffect as lc,useState as Mr}from"react";import{motion as mc}from"framer-motion";import Ir from"html-react-parser";import*as Dr from"@radix-ui/react-aspect-ratio";var U=Dr.Root;import{Fragment as Ar,jsx as K,jsxs as To}from"react/jsx-runtime";var cc=({guideGroup:e,mockup:o})=>{let[t,a]=Mr(),[i,n]=Mr(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return lc(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),K(Ar,{children:e?.stepList&&e?.stepList?.length>0&&To("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[K("div",{className:"h-auto w-64 flex-none",children:To("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&To(Ar,{children:[K("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),K("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),K("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),K("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),K("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:To(Ie,{setApi:a,children:[K(Ae,{className:"ml-0",children:e?.stepList.map((l,m)=>K(Le,{className:"pl-0",children:K(U,{ratio:o==="small"?540/960:540/1168,children:K("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),K(Zt,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),K(Kt,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),K("div",{className:"flex flex-auto py-4 pl-12",children:K("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>To("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:pb-0 last:after:hidden",m+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[K("div",{className:r("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),K("div",{className:r(" text-sm font-medium",m+1===i?"text-pink-500":"text-gray-900"),children:Ir(l.title)}),l.content&&K(mc.div,{initial:"closed",animate:m+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:K("div",{className:"mt-3 text-sm text-gray-700",children:Ir(l.content)})})]},m))})})]})})},Ja=cc;import{useEffect as dc,useRef as pc,useState as oa}from"react";import{ChevronRightIcon as Lr}from"@heroicons/react/20/solid";import fc from"embla-carousel-autoplay";import aa from"html-react-parser";import{Fragment as ei,jsx as b,jsxs as pe}from"react/jsx-runtime";var gc=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=oa(0),[s,l]=oa();return dc(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:b(Je,{open:e,onOpenChange:o,children:pe(_e,{position:"bottom",height:"full",children:[b(jo,{children:b(Uo,{className:"line-clamp-1",children:t?.title})}),pe(ft,{className:"grid overflow-hidden p-0 ",children:[b(Ie,{setApi:l,className:" grid overflow-hidden",children:b(Ae,{className:"ml-0 h-full",children:t.stepList.map((m,p)=>b(Le,{className:"h-full w-full pl-0",children:pe("div",{className:"flex h-full flex-col overflow-y-auto",children:[b("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:b("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:pe("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&pe(ei,{children:[b("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),b("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:b(U,{ratio:a==="small"?540/960:540/1168,children:b("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),pe("div",{className:"p-5 pb-12",children:[b("div",{className:"font-semibold",children:aa(m.title)}),m?.content&&b("div",{className:"mt-3 text-sm text-gray-800",children:aa(m.content)})]})]})},p))})}),b("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((m,p)=>b("div",{className:`h-2 w-2 cursor-pointer rounded-full ${p+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(p)},p))})]})]})})},uc=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=oa(!1),[n,s]=oa(null),l=pc(fc({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=p=>{s(e?.[p]||null),i(!0)};return e?.length===0?null:pe(ei,{children:[e?.length>1?b("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((p,c)=>pe("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(c),children:[b("div",{className:"flex h-28 w-20 justify-center overflow-hidden rounded-md bg-gray-100 p-2 ",children:b(U,{ratio:1,children:b("img",{src:p.avatar,className:"object-cover",alt:p.title})})}),pe("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",c+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[pe("div",{className:"py-2",children:[t&&b("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${c+1}`}),b("div",{className:"font-semibold",children:aa(p.title)}),p?.description&&b("div",{className:"mt-1 text-sm text-gray-500",children:aa(p.description)})]}),b("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:b(Lr,{className:"h-6 w-6"})})]})]},c))}):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:[b("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:b("div",{className:"mx-auto h-auto w-72",children:pe("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&pe(ei,{children:[b("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),b("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),b("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:b(Ie,{plugins:[l.current],children:b(Ae,{className:"ml-0",children:e[0]?.stepList.map((p,c)=>b(Le,{className:"pl-0",onClick:()=>m(0),children:b(U,{ratio:o==="small"?540/960:540/1168,children:b("img",{src:p.image,className:"size-full object-contain",alt:p.title})})},c))})})})]})})}),b("div",{className:"flex w-full flex-none justify-center",children:pe(le,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",b(Lr,{className:"ml-1 h-5 w-5"})]})})]}),a&&b(gc,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},Er=uc;import{Fragment as xc,jsx as ie,jsxs as ko}from"react/jsx-runtime";var Hr=({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 ie("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:ie("path",{d:t.d,fill:"currentColor"})})},ti=vc(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[p,c]=bc(t?.[0]?.title||"");return ko(xc,{children:[e&&ie(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&ko(Go,{children:[ie(Qt,{lessThan:"md",children:ie(Er,{dataGuide:t,mockup:i,isStep:n})}),ie(Qt,{greaterThan:"sm",children:t?.length>1?ko(rt,{defaultValue:t[0]?.title,onValueChange:d=>c(d),children:[ko(tt,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[ie(ot,{className:"mb-6 text-center",children:ie(Be,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((d,u)=>{let P=u===t.length-1,S=p===d?.title||"";return ko(Ve,{value:d.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",S&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&ie(Hr,{direction:"left",className:r("right-full top-0",S?"text-pink-500":"text-pink-100")}),d.title,n&&!P&&ie(Hr,{direction:"right",className:r("left-full top-0",S?"text-pink-500":"text-pink-100")})]},d.title+u)})})}),ie(at,{}),ie(it,{})]}),t.map((d,u)=>ie(Oe,{value:d.title,children:ie(Ja,{guideGroup:d,mockup:i})},d.title+u))]}):t?.length===1&&t[0]&&ie(Ja,{guideGroup:t[0],mockup:i})})]}),a&&ie(w,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as Nc,jsx as So}from"react/jsx-runtime";var hc=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return So(ti,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return So(ti,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},yc=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>So(Nc,{children:hc({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),wc=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:i,background:n,template:s=1,mockup:l="default",isStep:m=!1})=>So(B,{className:r(i),background:n,children:So(yc,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:l,isStep:m})});import{ChevronLeft as Pc,ChevronRight as Cc}from"lucide-react";import{Fragment as Rc,jsx as Re,jsxs as Fr}from"react/jsx-runtime";function zr({current:e,total:o,onChange:t}){let a=i=>Re("li",{children:Re("button",{className:r(Lt({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return Re("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:Fr("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Re("li",{children:Re("button",{className:r(Lt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Re(Pc,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):Fr(Rc,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Re("li",{children:Re("button",{className:r(Lt({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&&Re("button",{className:r(Lt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Re("li",{children:Re("button",{className:r(Lt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Re(Cc,{className:"h-4 w-4"})})})]})})}import{forwardRef as Tc}from"react";import{QuestionMarkCircleIcon as kc}from"@heroicons/react/24/outline";import{XCircleIcon as Sc}from"@heroicons/react/24/solid";import{jsx as ao,jsxs as _r}from"react/jsx-runtime";var Dc=Tc(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...m},p)=>_r("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&ao("span",{className:r("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),ao("textarea",{disabled:e,ref:p,className:r("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:l,...m}),t&&_r("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?ao(Sc,{width:16,height:16,className:"text-red-500"}):ao(kc,{width:16,height:16,className:"text-gray-500"}),ao("span",{className:r("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*as we from"@radix-ui/react-accordion";import{Che
|
|
|
94
94
|
color: rgb(var(--mobase-red-500) / 1);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
`})]}));import*as na from"react";var
|
|
97
|
+
`})]}));import*as na from"react";var Mc=1,Ic=1e6;var oi=0;function Ac(){return oi=(oi+1)%Number.MAX_SAFE_INTEGER,oi.toString()}var ai=new Map,Br=e=>{if(ai.has(e))return;let o=setTimeout(()=>{ai.delete(e),Do({type:"REMOVE_TOAST",toastId:e})},Ic);ai.set(e,o)},Lc=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Mc)};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?Br(t):e.toasts.forEach(a=>{Br(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}},ia=[],ra={toasts:[]};function Do(e){ra=Lc(ra,e),ia.forEach(o=>{o(ra)})}function Vr({...e}){let o=Ac(),t=i=>Do({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>Do({type:"DISMISS_TOAST",toastId:o});return Do({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function ii(){let[e,o]=na.useState(ra);return na.useEffect(()=>(ia.push(o),()=>{let t=ia.indexOf(o);t>-1&&ia.splice(t,1)}),[e]),{...e,toast:Vr,dismiss:t=>Do({type:"DISMISS_TOAST",toastId:t})}}import*as Ht from"react";import{CheckCircleIcon as Ec,ExclamationTriangleIcon as Hc,InformationCircleIcon as Fc,XMarkIcon as zc}from"@heroicons/react/20/solid";import*as Q from"@radix-ui/react-toast";import{cva as _c}from"class-variance-authority";import{jsx as lt,jsxs as Or}from"react/jsx-runtime";var Wr=Q.Provider,ri=Ht.forwardRef(({className:e,...o},t)=>lt(Q.Viewport,{ref:t,className:r("fixed bottom-0 left-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));ri.displayName=Q.Viewport.displayName;var Bc=_c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full group pointer-events-auto relative w-full overflow-hidden rounded-md border border border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),ni=Ht.forwardRef(({className:e,variant:o="success",children:t,...a},i)=>Or(Q.Root,{ref:i,className:r(Bc({variant:o}),e),...a,children:[Or("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&<(Ec,{className:"h-5 w-5 text-green-500"}),o==="warning"&<(Hc,{className:"h-5 w-5 text-yellow-500"}),o==="error"&<(Fc,{className:"h-5 w-5 text-red-500"})]}),t]}));ni.displayName=Q.Root.displayName;var $r=Ht.forwardRef(({className:e,...o},t)=>lt(Q.Action,{ref:t,className:r("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}));$r.displayName=Q.Action.displayName;var si=Ht.forwardRef(({className:e,...o},t)=>lt(Q.Close,{ref:t,className:r("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(zc,{className:"h-5 w-5"})}));si.displayName=Q.Close.displayName;var li=Ht.forwardRef(({className:e,...o},t)=>lt(Q.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));li.displayName=Q.Title.displayName;var mi=Ht.forwardRef(({className:e,...o},t)=>lt(Q.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));mi.displayName=Q.Description.displayName;import{jsx as sa,jsxs as ci}from"react/jsx-runtime";function Vc(){let{toasts:e}=ii();return ci(Wr,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return ci(ni,{...n,children:[ci("div",{className:"grid gap-2",children:[t&&sa(li,{children:t}),a&&sa(mi,{children:a})]}),i,sa(si,{})]},o)}),sa(ri,{})]})}import*as di from"react";import*as Te from"@radix-ui/react-tooltip";import{jsx as Ur}from"react/jsx-runtime";var Oc=Te.Provider,Wc=Te.Root,$c=Te.Trigger,Gr=di.forwardRef((e,o)=>Ur(Te.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));Gr.displayName=Te.Arrow.displayName;var jr=di.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>Ur(Te.Content,{ref:i,sideOffset:t,className:r("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));jr.displayName=Te.Content.displayName;import{forwardRef as Gc,useEffect as jc,useRef as Uc,useState as Qc}from"react";import{QuestionMarkCircleIcon as Xc,XCircleIcon as qc,XCircleIcon as Yc}from"@heroicons/react/16/solid";import{jsx as vt,jsxs as pi}from"react/jsx-runtime";var Zc=Gc(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:m,onFocus:p,onClickClear:c,value:d,defaultValue:u,type:P="text",...S},D)=>{let[M,G]=Qc(!1),j=Uc(null),A=te=>{te&&!M&&G(!0),!te&&M&&G(!1)},C=te=>{s&&A(te.target.value),m?.(te)},re=te=>{s&&A(te.target.value),p?.(te)},co=()=>{let te=j.current?.querySelector("input");te&&(c?.(te.value),te.value="",te.focus(),G(!1))};return jc(()=>{A(u||d)},[d,u]),pi("div",{className:r(i,o&&"mobase-text-input-error"),ref:j,children:[pi("div",{className:"relative",children:[a&&vt("span",{className:r("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),vt("input",{disabled:e,type:P,ref:D,className:r("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",l===2&&"h-12 text-base",n),onChange:C,onFocus:re,value:d,defaultValue:u,...S}),s&&M&&vt("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:co,children:vt(qc,{strokeWidth:2,width:20,height:20})})]}),t&&pi("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?vt(Yc,{width:16,height:16,className:"text-red-500"}):vt(Xc,{width:16,height:16,className:"text-gray-500"}),vt("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),vt("style",{children:`
|
|
98
98
|
.mobase-text-input-box:hover {
|
|
99
99
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
100
100
|
}
|
|
@@ -117,26 +117,26 @@ import*as go from"react";import*as we from"@radix-ui/react-accordion";import{Che
|
|
|
117
117
|
color: rgb(var(--mobase-red-500) / 1);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`})]})});import{MinusCircleIcon as Yc,PlusCircleIcon as Zc}from"@heroicons/react/24/outline";import{forwardRef as Kc,useState as Jc}from"react";import{jsx as Mo,jsxs as fi}from"react/jsx-runtime";var Qr=Kc(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:c=!1,...d},m)=>{let[p,u]=Jc(i),P=()=>{let M=Math.min(p+a,t);u(M),n?.(M),l?.(M)},S=()=>{let M=Math.max(p-a,o);u(M),n?.(M),s?.(M)},D=M=>{let G=parseFloat(M.target.value);if(!isNaN(G)){let j=Math.max(Math.min(G,t),o);u(j),n?.(j)}};return fi("div",{ref:m,className:r("flex items-center ",e),children:[fi(oe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:S,disabled:c||p<=o,children:[Mo(Yc,{className:"w-7 h-7 "}),Mo("span",{className:"sr-only",children:"Decrease value"})]}),Mo("input",{type:"number",value:p,onChange:D,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:c,...d}),fi(oe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:P,disabled:c||p>=t,children:[Mo(Zc,{className:"w-7 h-7 "}),Mo("span",{className:"sr-only",children:"Increase value"})]})]})});Qr.displayName="Stepper";import*as He from"react";import*as O from"@radix-ui/react-navigation-menu";import{cva as ed}from"class-variance-authority";import{ChevronDownIcon as td}from"@heroicons/react/16/solid";import{jsx as Ue,jsxs as nd}from"react/jsx-runtime";var qr=He.createContext(null),od=({value:e,children:o})=>Ue(qr.Provider,{value:e,children:o}),ad=()=>{let e=He.useContext(qr);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},la=He.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>Ue(od,{value:{alignDropdown:t},children:Ue(O.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));la.displayName=O.Root.displayName;var ma=He.forwardRef(({className:e,...o},t)=>Ue(O.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));ma.displayName=O.List.displayName;var ca=O.Item,da=ed(ze({variant:"transparent",size:"sm"})),pa=He.forwardRef(({className:e,children:o,...t},a)=>nd(O.Trigger,{ref:a,className:r(da(),"group px-2",e),...t,children:[o," ",Ue(td,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));pa.displayName=O.Trigger.displayName;var fa=He.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=ad();return Ue(O.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});fa.displayName=O.Content.displayName;var Io=O.Link,id=He.forwardRef(({className:e,...o},t)=>Ue("div",{className:r("absolute left-0 top-full flex justify-center"),children:Ue(O.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));id.displayName=O.Viewport.displayName;var rd=He.forwardRef(({className:e,...o},t)=>Ue(O.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:Ue("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));rd.displayName=O.Indicator.displayName;import*as Yr from"react";import*as Ao from"@radix-ui/react-switch";import{jsx as Xr}from"react/jsx-runtime";var Zr=Yr.forwardRef(({className:e,...o},t)=>Xr(Ao.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Xr(Ao.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Zr.displayName=Ao.Root.displayName;import*as Lt from"react";import*as xt from"@radix-ui/react-radio-group";import{Circle as sd}from"lucide-react";import{cva as Kr}from"class-variance-authority";import{jsx as Lo}from"react/jsx-runtime";var ld=Kr("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"}}),md=Kr("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Jr=Lt.createContext({size:"medium"});function cd(){let e=Lt.useContext(Jr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var en=Lt.forwardRef(({className:e,size:o,...t},a)=>Lo(Jr.Provider,{value:{size:o},children:Lo(xt.Root,{className:r("grid gap-2",e),...t,ref:a})}));en.displayName=xt.Root.displayName;var tn=Lt.forwardRef(({className:e,...o},t)=>{let a=cd(),{size:i}=a??{};return Lo(xt.Item,{ref:t,className:r(ld({size:i}),e),...o,children:Lo(xt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Lo(sd,{className:r(md({size:i}))})})})});tn.displayName=xt.Item.displayName;import{useState as kd}from"react";import{ArrowDownTrayIcon as Sd}from"@heroicons/react/16/solid";import Dd from"html-react-parser";import{useEffect as vd,useState as bd}from"react";import nn from"next/router";import{AnimatePresence as xd,domAnimation as hd,LazyMotion as yd,motion as gi}from"framer-motion";import{useKey as wd}from"react-use";var ga=[.24,.25,.05,1];import{jsx as Eo,jsxs as on}from"react/jsx-runtime";var dd=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Eo("li",{className:"min-h-8",children:on("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&Eo("div",{className:"w-6 h-6 shrink-0",children:Eo("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),on("div",{className:" ",children:[Eo("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&Eo("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},an=dd;import{motion as pd}from"framer-motion";import{jsx as Et,jsxs as ud}from"react/jsx-runtime";var fd={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:ga}},exit:{opacity:0,transition:{duration:.05}}},gd=({data:e})=>Et(jt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return Et(pd.div,{variants:fd,children:o.hasDropdown?ud(Ut,{value:o.id,children:[Et(Qt,{className:"py-3",children:o.title}),Et(qt,{children:Et("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>Et(an,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):Et("a",{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:o.url,...t,children:o.title})},o.id)})}),rn=gd;import{jsx as T,jsxs as me}from"react/jsx-runtime";var Nd=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Pd=({data:e,className:o})=>{let[t,a]=bd(!1);wd("Escape",()=>a(!1)),vd(()=>{if(!t)return;let s=Nd();function l(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",nn.events.on("routeChangeComplete",l),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),nn.events.off("routeChangeComplete",l)}},[t]);let i={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:ga}},exit:{opacity:0,transition:{duration:.15}}};return me("div",{className:r(o),children:[me("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[T("span",{className:"sr-only",children:"Navigation"}),T(gi.div,{animate:t?"hidden":"visible",variants:i,children:T("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),T(gi.div,{animate:t?"visible":"hidden",variants:i,children:T("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),T(yd,{features:hd,children:T(xd,{mode:"wait",children:t&&me(gi.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[T(rn,{data:e}),me("div",{className:"animate-fade-in py-4 text-sm delay-300 duration-500",children:[T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),me("div",{className:"flex flex-nowrap",children:[T("div",{className:"flex-initial",children:T("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),T("div",{className:"ml-3 flex-initial",children:T("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),me("ul",{className:"mb-2 text-sm text-gray-500",children:[me("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{href:`tel:${Ze.Support.Hotline}`,className:"text-gray-600",children:Ze.Support.Hotline_Format})]}),me("li",{className:"mb-1",children:["Email :\xA0",T("a",{href:`mailto:${Ze.Support.Email}`,className:"text-gray-600",children:Ze.Support.Email})]})]}),T("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:me("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[T("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:T("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:me("g",{children:[T("title",{children:"Asset 1"}),T("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
120
|
+
`})]})});import{MinusCircleIcon as Kc,PlusCircleIcon as Jc}from"@heroicons/react/24/outline";import{forwardRef as ed,useState as td}from"react";import{jsx as Mo,jsxs as fi}from"react/jsx-runtime";var Qr=ed(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...p},c)=>{let[d,u]=td(i),P=()=>{let M=Math.min(d+a,t);u(M),n?.(M),l?.(M)},S=()=>{let M=Math.max(d-a,o);u(M),n?.(M),s?.(M)},D=M=>{let G=parseFloat(M.target.value);if(!isNaN(G)){let j=Math.max(Math.min(G,t),o);u(j),n?.(j)}};return fi("div",{ref:c,className:r("flex items-center ",e),children:[fi(oe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:S,disabled:m||d<=o,children:[Mo(Kc,{className:"w-7 h-7 "}),Mo("span",{className:"sr-only",children:"Decrease value"})]}),Mo("input",{type:"number",value:d,onChange:D,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:m,...p}),fi(oe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:P,disabled:m||d>=t,children:[Mo(Jc,{className:"w-7 h-7 "}),Mo("span",{className:"sr-only",children:"Increase value"})]})]})});Qr.displayName="Stepper";import*as He from"react";import*as V from"@radix-ui/react-navigation-menu";import{cva as od}from"class-variance-authority";import{ChevronDownIcon as ad}from"@heroicons/react/16/solid";import{jsx as Ue,jsxs as ld}from"react/jsx-runtime";var Xr=He.createContext(null),id=({value:e,children:o})=>Ue(Xr.Provider,{value:e,children:o}),rd=()=>{let e=He.useContext(Xr);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},la=He.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>Ue(id,{value:{alignDropdown:t},children:Ue(V.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));la.displayName=V.Root.displayName;var ma=He.forwardRef(({className:e,...o},t)=>Ue(V.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));ma.displayName=V.List.displayName;var ca=V.Item,da=od(ze({variant:"transparent",size:"sm"})),pa=He.forwardRef(({className:e,children:o,...t},a)=>ld(V.Trigger,{ref:a,className:r(da(),"group px-2",e),...t,children:[o," ",Ue(ad,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));pa.displayName=V.Trigger.displayName;var fa=He.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=rd();return Ue(V.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});fa.displayName=V.Content.displayName;var Io=V.Link,nd=He.forwardRef(({className:e,...o},t)=>Ue("div",{className:r("absolute left-0 top-full flex justify-center"),children:Ue(V.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));nd.displayName=V.Viewport.displayName;var sd=He.forwardRef(({className:e,...o},t)=>Ue(V.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:Ue("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));sd.displayName=V.Indicator.displayName;import*as Yr from"react";import*as Ao from"@radix-ui/react-switch";import{jsx as qr}from"react/jsx-runtime";var Zr=Yr.forwardRef(({className:e,...o},t)=>qr(Ao.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:qr(Ao.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Zr.displayName=Ao.Root.displayName;import*as Ft from"react";import*as bt from"@radix-ui/react-radio-group";import{Circle as md}from"lucide-react";import{cva as Kr}from"class-variance-authority";import{jsx as Lo}from"react/jsx-runtime";var cd=Kr("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"}}),dd=Kr("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Jr=Ft.createContext({size:"medium"});function pd(){let e=Ft.useContext(Jr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var en=Ft.forwardRef(({className:e,size:o,...t},a)=>Lo(Jr.Provider,{value:{size:o},children:Lo(bt.Root,{className:r("grid gap-2",e),...t,ref:a})}));en.displayName=bt.Root.displayName;var tn=Ft.forwardRef(({className:e,...o},t)=>{let a=pd(),{size:i}=a??{};return Lo(bt.Item,{ref:t,className:r(cd({size:i}),e),...o,children:Lo(bt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Lo(md,{className:r(dd({size:i}))})})})});tn.displayName=bt.Item.displayName;import{useState as Dd}from"react";import{ArrowDownTrayIcon as Md}from"@heroicons/react/16/solid";import Id from"html-react-parser";import{useEffect as xd,useState as hd}from"react";import nn from"next/router";import{AnimatePresence as yd,domAnimation as wd,LazyMotion as Nd,motion as gi}from"framer-motion";import{useKey as Pd}from"react-use";var ga=[.24,.25,.05,1];import{jsx as Eo,jsxs as on}from"react/jsx-runtime";var fd=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Eo("li",{className:"min-h-8",children:on("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&Eo("div",{className:"w-6 h-6 shrink-0",children:Eo("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),on("div",{className:" ",children:[Eo("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&Eo("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},an=fd;import{motion as gd}from"framer-motion";import{jsx as zt,jsxs as bd}from"react/jsx-runtime";var ud={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:ga}},exit:{opacity:0,transition:{duration:.05}}},vd=({data:e})=>zt(kt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return zt(gd.div,{variants:ud,children:o.hasDropdown?bd(St,{value:o.id,children:[zt(Dt,{className:"py-3",children:o.title}),zt(Mt,{children:zt("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>zt(an,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):zt("a",{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:o.url,...t,children:o.title})},o.id)})}),rn=vd;import{jsx as T,jsxs as me}from"react/jsx-runtime";var Cd=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Rd=({data:e,className:o})=>{let[t,a]=hd(!1);Pd("Escape",()=>a(!1)),xd(()=>{if(!t)return;let s=Cd();function l(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",nn.events.on("routeChangeComplete",l),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),nn.events.off("routeChangeComplete",l)}},[t]);let i={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:ga}},exit:{opacity:0,transition:{duration:.15}}};return me("div",{className:r(o),children:[me("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[T("span",{className:"sr-only",children:"Navigation"}),T(gi.div,{animate:t?"hidden":"visible",variants:i,children:T("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),T(gi.div,{animate:t?"visible":"hidden",variants:i,children:T("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),T(Nd,{features:wd,children:T(yd,{mode:"wait",children:t&&me(gi.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[T(rn,{data:e}),me("div",{className:"animate-fade-in py-4 text-sm delay-300 duration-500",children:[T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),me("div",{className:"flex flex-nowrap",children:[T("div",{className:"flex-initial",children:T("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),T("div",{className:"ml-3 flex-initial",children:T("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),me("ul",{className:"mb-2 text-sm text-gray-500",children:[me("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{href:`tel:${Ze.Support.Hotline}`,className:"text-gray-600",children:Ze.Support.Hotline_Format})]}),me("li",{className:"mb-1",children:["Email :\xA0",T("a",{href:`mailto:${Ze.Support.Email}`,className:"text-gray-600",children:Ze.Support.Email})]})]}),T("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:me("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[T("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:T("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:me("g",{children:[T("title",{children:"Asset 1"}),T("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
121
121
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
122
122
|
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),T("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
123
123
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
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`})]})})}),T("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),T("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),me("ul",{className:"mb-2 text-sm text-gray-500",children:[me("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{className:"text-gray-600",href:`tel:${Ze.Business.Phome}`,children:Ze.Business.Phome_Format})]}),me("li",{className:"mb-1",children:["Email :\xA0",me("a",{href:`mailto:${Ze.Business.Email}`,className:"text-gray-600",children:[" ",Ze.Business.Email]})]})]}),T("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:me("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:[T("div",{className:"absolute left-1 top-1 ",children:T("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),T("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),T("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},sn=
|
|
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`})]})})}),T("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),T("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),me("ul",{className:"mb-2 text-sm text-gray-500",children:[me("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{className:"text-gray-600",href:`tel:${Ze.Business.Phome}`,children:Ze.Business.Phome_Format})]}),me("li",{className:"mb-1",children:["Email :\xA0",me("a",{href:`mailto:${Ze.Business.Email}`,className:"text-gray-600",children:[" ",Ze.Business.Email]})]})]}),T("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:me("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:[T("div",{className:"absolute left-1 top-1 ",children:T("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),T("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),T("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},sn=Rd;import{jsx as io,jsxs as ln}from"react/jsx-runtime";var Td=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return io("li",{className:"",children:io(Io,{asChild:!0,children:ln("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&io("div",{className:"w-7 h-7 shrink-0 mt-1",children:io("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),ln("div",{className:" ",children:[io("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&io("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},mn=Td;import{jsx as xt,jsxs as Sd}from"react/jsx-runtime";var kd=({data:e,alignDropdown:o})=>xt(la,{alignDropdown:o,children:xt(ma,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Sd(ca,{className:"relative",children:[xt(pa,{children:t.title}),xt(fa,{children:xt("ul",{className:r("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(i=>xt(mn,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):xt(ca,{className:"relative",children:xt(Io,{href:t.url,className:da(),...a,children:t.title})},t.id)})})}),cn=kd;import{jsx as Fe,jsxs as _t}from"react/jsx-runtime";var dn=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left"})=>{let{logo:l,name:m,url:p}=t||{},[c,d]=Dd(!1);return _t("div",{className:r(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[Fe("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),Fe("nav",{className:r("wrapper grid grid-cols-1 items-center [--header-height-mobase:64px] lg:border-0 "),style:{minHeight:"var(--header-height-mobase)"},children:_t("div",{className:"relative flex items-center ",children:[_t("a",{href:"/",title:"MoMo",className:"mr-3 h-9 w-9 flex-none overflow-hidden rounded-none hover:opacity-80",children:[Fe("span",{className:"sr-only",children:"MoMo home page"}),Fe("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"h-9 w-9",alt:"MoMo"})]}),t&&_t("a",{href:p,title:m,className:" relative flex flex-none items-center space-x-1 rounded-none pl-2 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] hover:opacity-80 ",children:[Fe("img",{src:l,className:"h-9 w-9",alt:"MoMo"}),Fe("div",{className:"line-clamp-2 text-sm font-semibold leading-[1.1] text-pink-500",children:m&&Id(m)})]}),Fe("div",{className:r("relative hidden items-center lg:ml-2 lg:flex xl:ml-4 ",!i&&!a&&" lg:ml-auto xl:ml-auto"),children:Fe(cn,{data:o,alignDropdown:s})}),_t("div",{className:r("ml-auto flex flex-nowrap items-center space-x-3",!i&&!a&&" lg:ml-0"),children:[i&&i,a&&_t("div",{className:" hidden sm:flex",children:[_t(Pe,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>d(!0),children:[" ",Fe(Md,{className:"mr-1 h-4 w-4"})," T\u1EA3i V\xED MoMo"]}),Fe(It,{open:c,onOpenChange:()=>d(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),Fe(sn,{data:o,className:"lg:hidden "})]})]})})]})};dn.displayName="HeaderNavigation";import{useState as Ad}from"react";import{Fragment as Ed,jsx as g,jsxs as y}from"react/jsx-runtime";var pn=({item:e})=>g("div",{className:"mt-3 flex w-full text-sm",children:y("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&&g("span",{className:"relative h-5 w-5 flex-none md:h-6 md:w-6",children:g("img",{src:e.icon,className:"absolute inset-0"})}),g("span",{className:"block ",children:e.title})]})}),Ld=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=Ad(null);return y(Ed,{children:[g("div",{className:"footer-main order-1 py-7 text-sm text-white md:order-1",children:y("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:[y("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[g("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((i,n)=>g(pn,{item:i},n))]}),y("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[g("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),g("div",{className:"flex flex-wrap",children:o?.lists?.map((i,n)=>g(pn,{item:i},n))})]}),y("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[y("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[g("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),y("div",{className:"mt-2 text-sm md:mt-3",children:[g("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),g("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:_i.Address})]}),y("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Hotline : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ne.Support.Hotline}`,children:ne.Support.Hotline_Format}),y("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),y("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Email : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${ne.Support.Email}`,children:ne.Support.Email})]}),y("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"T\u1ED5ng \u0111\xE0i g\u1ECDi ra : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ne.Support.Phone_Ext_1}`,children:ne.Support.Phone_Ext_1_Format}),g("span",{className:"text-white text-opacity-60",children:" - "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ne.Support.Phone_Ext_2}`,children:ne.Support.Phone_Ext_2_Format}),g("span",{className:"text-white text-opacity-60",children:" - "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ne.Support.Phone_Ext_3}`,children:ne.Support.Phone_Ext_3_Format}),g("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),g("div",{className:"mt-3 flex",children:g("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:y("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[g("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:g("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:y("g",{children:[g("title",{children:"Asset 1"}),g("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
125
125
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
126
126
|
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),g("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
127
127
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
128
|
-
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),g("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),g("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),y("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[g("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),y("div",{className:"mt-2 text-sm md:mt-3",children:[g("span",{className:"text-white text-opacity-50",children:"Hotline : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ne.Business.Phome}`,children:ne.Business.Phome_Format})]}),y("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Email : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${ne.Business.Email}`,children:ne.Business.Email})]}),y("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Website : "}),g("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"})]}),g("div",{className:"mt-3 flex",children:g("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:y("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[g("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:y("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"})]})}),g("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),g("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),y("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:[y("div",{className:"h-auto",children:[g("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"}),g("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:g("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:fo&&fo.map((i,n)=>g("li",{className:"inline-block",children:g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:g("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),y("div",{className:"h-auto",children:[g("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"}),y("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[g("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:g("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),g("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:Ia&&Ia.map((i,n)=>y("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[g(Pe,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),g(St,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),g("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:g("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:fo&&fo.map((i,n)=>g("li",{children:g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:g("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),y("div",{className:"hidden h-auto md:block",children:[g("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),y("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[y("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),g("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:g("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),g("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:y("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[y("div",{className:" relative ",children:[g("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"}),y("div",{className:" md:pl-12",children:[g("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"}),g("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"}),y("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",g("strong",{children:"MoMo"})]}),y("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),y("div",{className:"text-sm text-white text-opacity-50",children:[y("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",g("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),y("ul",{className:" mt-0.5 ",children:[g("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),g("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),g("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),y("div",{className:" flex items-center justify-between md:hidden",children:[y("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),g("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:g("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),g("style",{children:`
|
|
128
|
+
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),g("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),g("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),y("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[g("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),y("div",{className:"mt-2 text-sm md:mt-3",children:[g("span",{className:"text-white text-opacity-50",children:"Hotline : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${ne.Business.Phome}`,children:ne.Business.Phome_Format})]}),y("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Email : "}),g("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${ne.Business.Email}`,children:ne.Business.Email})]}),y("div",{className:"mt-1 text-sm",children:[g("span",{className:"text-white text-opacity-50",children:"Website : "}),g("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"})]}),g("div",{className:"mt-3 flex",children:g("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:y("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[g("div",{className:"aspect-1 absolute left-1 top-1 flex items-center justify-center",children:y("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"}),g("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"})]})}),g("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),g("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),y("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:[y("div",{className:"h-auto",children:[g("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"}),g("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:g("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:fo&&fo.map((i,n)=>g("li",{className:"inline-block",children:g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:g("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),y("div",{className:"h-auto",children:[g("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"}),y("div",{className:"flex flex-wrap items-center md:mt-3 md:space-x-1.5",children:[g("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:g("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),g("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:Ia&&Ia.map((i,n)=>y("div",{className:"button-download w-full md:flex md:items-center",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[g(Pe,{onClick:()=>a(n),className:"hidden w-full rounded-none !bg-transparent sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),g(It,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),g("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:g("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:fo&&fo.map((i,n)=>g("li",{children:g("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:g("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),y("div",{className:"hidden h-auto md:block",children:[g("div",{className:" whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 ",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),y("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[y("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),g("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:g("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),g("div",{className:" footer-bottom order-2 bg-gray-800 py-3.5 md:order-2 md:py-5",children:y("div",{className:"wrapper grid gap-2 md:grid-cols-2 md:gap-5",children:[y("div",{className:" relative ",children:[g("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"}),y("div",{className:" md:pl-12",children:[g("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"}),g("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"}),y("div",{className:" mt-0.5 text-sm text-white text-opacity-50",children:["T\xEAn th\u01B0\u01A1ng hi\u1EC7u: ",g("strong",{children:"MoMo"})]}),y("div",{className:" mt-0.5 hidden text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})]}),y("div",{className:"text-sm text-white text-opacity-50",children:[y("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",g("strong",{children:"\u1EE8ng d\u1EE5ng MoMo - Tr\u1EE3 th\u1EE7 t\xE0i ch\xEDnh v\u1EDBi AI:"})]}),y("ul",{className:" mt-0.5 ",children:[g("li",{children:"- D\u1ECBch v\u1EE5 V\xED \u0111i\u1EC7n t\u1EED"}),g("li",{children:"- D\u1ECBch v\u1EE5 h\u1ED7 tr\u1EE3 thu h\u1ED9, chi h\u1ED9"}),g("li",{children:"- D\u1ECBch v\u1EE5 c\u1ED5ng thanh to\xE1n \u0111i\u1EC7n t\u1EED"})]})]}),y("div",{className:" flex items-center justify-between md:hidden",children:[y("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),g("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:g("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})}),g("style",{children:`
|
|
129
129
|
footer .button-download {
|
|
130
130
|
max-width: 150px;
|
|
131
131
|
}
|
|
132
|
-
`})]})},fn=
|
|
132
|
+
`})]})},fn=Ld;import{jsx as gn}from"react/jsx-runtime";var Hd=({className:e,primaryMenu:o,secondaryMenu:t})=>gn("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:gn(fn,{primaryMenu:o,secondaryMenu:t})});import*as Bt from"react";import{jsx as ro}from"react/jsx-runtime";var un=Bt.forwardRef(({className:e,...o},t)=>ro("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));un.displayName="Card";var vn=Bt.forwardRef(({className:e,...o},t)=>ro("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));vn.displayName="CardHeader";var bn=Bt.forwardRef(({className:e,...o},t)=>ro("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));bn.displayName="CardTitle";var xn=Bt.forwardRef(({className:e,...o},t)=>ro("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));xn.displayName="CardDescription";var hn=Bt.forwardRef(({className:e,...o},t)=>ro("div",{ref:t,className:r("p-6 pt-0",e),...o}));hn.displayName="CardContent";var yn=Bt.forwardRef(({className:e,...o},t)=>ro("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));yn.displayName="CardFooter";import*as ke from"react";import{Command as fe}from"cmdk";import{XCircleIcon as Fd,MagnifyingGlassIcon as zd}from"@heroicons/react/16/solid";import{jsx as xe,jsxs as Bd}from"react/jsx-runtime";var ui=ke.forwardRef(({className:e,...o},t)=>xe(fe,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ui.displayName=fe.displayName;var _d=({children:e,...o})=>xe(Je,{...o,children:xe(_e,{className:"overflow-hidden p-0 shadow-lg",children:xe(ui,{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})})}),wn=ke.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=ke.useRef(null),[s,l]=ke.useState(""),m=()=>{!s||s?.length<=0||(l(""),o?.(s))};return Bd("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[xe(zd,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),xe(fe.Input,{ref:i,className:r("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),xe(Fd,{onClick:m,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});wn.displayName=fe.Input.displayName;var Nn=ke.forwardRef(({className:e,...o},t)=>xe(fe.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));Nn.displayName=fe.List.displayName;var Pn=ke.forwardRef((e,o)=>xe(fe.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));Pn.displayName=fe.Empty.displayName;var Cn=ke.forwardRef(({className:e,...o},t)=>xe(fe.Group,{ref:t,className:r("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));Cn.displayName=fe.Group.displayName;var Rn=ke.forwardRef(({className:e,...o},t)=>xe(fe.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));Rn.displayName=fe.Separator.displayName;var Tn=ke.forwardRef(({className:e,children:o,...t},a)=>xe(fe.Item,{ref:a,className:r("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));Tn.displayName=fe.Item.displayName;var kn=({className:e,...o})=>xe("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});kn.displayName="CommandShortcut";import{ChevronDownIcon as Vd}from"@heroicons/react/16/solid";import{jsx as ua,jsxs as Sn}from"react/jsx-runtime";var Od=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>Sn("div",{className:"relative",children:[Sn(yo,{className:r("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||i,ua(Vd,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&ua("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Wd=({children:e,className:o,...t})=>ua(eo,{className:r("border-none !p-0",o),...t,children:e}),$d=({open:e,onOpenChange:o,children:t,...a})=>ua(ho,{open:e,onOpenChange:o,...a,children:t});import{cva as Mn}from"class-variance-authority";import{forwardRef as Gd}from"react";import{InformationCircleIcon as jd}from"@heroicons/react/24/outline";import{jsx as vi,jsxs as Dn}from"react/jsx-runtime";var Ud=Mn("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ",{variants:{typeDiv:{neutral:"bg-gray-50 border-gray-300 ",error:"bg-red-50 border-red-300",success:"bg-green-50 border-green-300",warning:"bg-yellow-50 border-yellow-300",info:"bg-blue-50 border-blue-300"},disabled:{true:"text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300"}},defaultVariants:{typeDiv:"neutral"}}),Qd=Mn("w-5 h-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),Ho=Gd(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...m},p)=>Dn("div",{ref:p,className:r("",i,Ud({typeDiv:e,disabled:n})),...m,children:[Dn("div",{className:"flex items-center space-x-2",children:[l||vi(jd,{className:r(Qd({typeIcon:e,disabled:n})),width:20,height:20}),o&&vi("div",{children:o})]}),t&&vi(le,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as Xd,useEffect as qd,useRef as Yd,useState as Zd}from"react";import{MagnifyingGlassIcon as Kd}from"@heroicons/react/20/solid";import{XCircleIcon as Jd}from"@heroicons/react/24/outline";import{jsx as no,jsxs as In}from"react/jsx-runtime";var ep=Xd(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:m,type:p="text",...c},d)=>{let[u,P]=Zd(!1),S=Yd(null),D=A=>{A&&!u&&P(!0),!A&&u&&P(!1)},M=A=>{D(A.target.value),i?.(A)},G=A=>{D(A.target.value),n?.(A)},j=()=>{let A=S.current?.querySelector("input");A&&(s?.(A.value),A.value="",A.focus(),P(!1))};return qd(()=>{D(m||l)},[l,m]),In("div",{className:r(o),ref:S,children:[In("div",{className:"relative flex items-center",children:[no("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:no(Kd,{className:"w-4 h-4 text-gray-500"})}),no("input",{disabled:e,type:p,ref:d,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:M,onFocus:G,value:l,defaultValue:m,...c}),u&&no("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:j,children:no(Jd,{strokeWidth:2,width:20,height:20})})]}),no("style",{children:`
|
|
133
133
|
.mobase-text-input-box:hover {
|
|
134
134
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-gray-400) / 1) inset;
|
|
135
135
|
}
|
|
136
136
|
.mobase-text-input-box:focus {
|
|
137
137
|
box-shadow: 0px 0px 0px 1px rgb(var(--mobase-pink-500) / 1) inset;
|
|
138
138
|
}
|
|
139
|
-
`})]})});import*as he from"@radix-ui/react-dialog";import Ln,{useContext as
|
|
139
|
+
`})]})});import*as he from"@radix-ui/react-dialog";import Ln,{useContext as tp,useEffect as An,useState as bi}from"react";import{X as op}from"lucide-react";import ap from"lodash";import{jsx as ee,jsxs as mt}from"react/jsx-runtime";var En=Ln.createContext(void 0);function Hn(){let e=tp(En);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var xi=({children:e,open:o,onOpenChange:t,className:a})=>ee(En.Provider,{value:{open:o,onOpenChange:t},children:ee(he.Root,{open:o,onOpenChange:t,children:ee("div",{className:r("lightbox-gallery",a),children:e})})}),ip=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=Hn(),m=()=>{n?.(),l&&l(!0)};return mt(he.Trigger,{className:r("",a),onClick:m,children:[e,ee(U,{ratio:s,className:"rounded-lg cursor-pointer",children:ee("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},Fn=Ln.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=Hn(),n=()=>{i&&i(!1)};return mt(he.Portal,{children:[ee(he.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),mt(he.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,mt(he.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:[ee(op,{className:"h-4 w-4 mt-0.5"}),ee("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Fn.displayName=he.Content.displayName;var hi=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=bi(""),[l,m]=bi(),[p,c]=bi(0);An(()=>{l&&(c(l.selectedScrollSnap()+1),l.on("select",()=>{c(l.selectedScrollSnap()+1)}))},[l]);let d=u=>{let P=ap.filter(e,(D,M)=>M===(u>0?u-1:u)),S=P.length>0?P[0]?.titleImage:"";s(S)};return An(()=>{d(p)},[p]),mt(Fn,{className:"flex py-0",children:[mt("div",{className:" flex-1 relative",children:[mt("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[p||1," / ",e?.length]}),mt(Ie,{opts:{startIndex:o},setApi:m,className:"w-full h-full relative",children:[ee(Ae,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,P)=>ee(Le,{className:"pl-6 md:pl-4",children:mt("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[ee("div",{className:"flex-1 relative",children:ee("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),ee("div",{className:"flex-0",children:ee("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:ee("div",{className:"line-clamp-3",children:n})})})]})},P))}),ee(Zt,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),ee(Kt,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&ee("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as ht from"react";import{CheckIcon as rp}from"@heroicons/react/16/solid";import*as Fo from"@radix-ui/react-checkbox";import*as yt from"@radix-ui/react-radio-group";import{Circle as np}from"lucide-react";import{jsx as Qe,jsxs as Bn}from"react/jsx-runtime";var zn=ht.createContext({hideIndicator:!1});function sp(){let e=ht.useContext(zn);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var va=ht.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>Qe(zn.Provider,{value:{hideIndicator:o},children:Qe(yt.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));va.displayName=yt.Root.displayName;var ba=ht.forwardRef(({className:e,children:o,...t},a)=>{let i=sp(),{hideIndicator:n}=i??{};return Bn(yt.Item,{ref:a,className:r("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:[Qe("div",{className:"min-w-0 flex-1",children:o}),!n&&Qe("div",{className:r("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:Qe(yt.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:Qe(np,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});ba.displayName=yt.Item.displayName;var _n=ht.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>Bn(Fo.Root,{ref:i,className:r("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:[Qe("div",{className:"min-w-0 flex-1",children:o}),!t&&Qe("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:Qe(Fo.Indicator,{className:r("flex items-center justify-center text-current"),children:Qe(rp,{className:"h-4 w-4"})})})]}));_n.displayName=Fo.Root.displayName;import{cva as lp}from"class-variance-authority";import{jsx as cp}from"react/jsx-runtime";var Vn=lp("inline-flex items-center rounded-md border border-gray-300 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-semibold",{variants:{variant:{default:"border-transparent bg-pink-500 text-white/90 shadow hover:bg-pink-500/80",secondary:"border-transparent bg-gray-200 text-gray-900 hover:bg-gray-200/80",outline:"text-gray-900",danger:"border-transparent bg-red-500 text-white/90 shadow hover:bg-red-500/80"}},defaultVariants:{variant:"default"}});function mp({className:e,variant:o,...t}){return cp("div",{className:r(Vn({variant:o}),e),...t})}import*as Wn from"react";import*as zo from"@radix-ui/react-progress";import{cva as $n}from"class-variance-authority";import{jsx as On}from"react/jsx-runtime";var dp=$n("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"}}),pp=$n("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"}}),Gn=Wn.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>On(zo.Root,{ref:s,className:r("",pp({size:a}),e),...n,children:On(zo.Indicator,{className:r("",dp({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Gn.displayName=zo.Root.displayName;import{jsx as fp}from"react/jsx-runtime";function xa({className:e,...o}){return fp("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as up,jsx as Vt,jsxs as jn}from"react/jsx-runtime";function gp({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return Vt("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return jn("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,m)=>Vt("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},m)),Vt("style",{children:`
|
|
140
140
|
.spinner_dots span {
|
|
141
141
|
animation-name: spinner-dots;
|
|
142
142
|
animation-duration: 1.4s;
|
|
@@ -163,7 +163,7 @@ import*as go from"react";import*as we from"@radix-ui/react-accordion";import{Che
|
|
|
163
163
|
opacity: .2;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
`})]});case"default":default:return jn(
|
|
166
|
+
`})]});case"default":default:return jn(up,{children:[Vt("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:Vt("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e],t),children:[...Array(12)].map((l,m)=>Vt("div",{className:r(`spinner_bar child-${m+1}`,o)},m))})}),Vt("style",{children:`
|
|
167
167
|
.spinner_bar {
|
|
168
168
|
animation: spinner_spin 1.2s linear infinite;
|
|
169
169
|
border-radius: 20px;
|
|
@@ -243,7 +243,7 @@ import*as go from"react";import*as we from"@radix-ui/react-accordion";import{Che
|
|
|
243
243
|
opacity: 0.15;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
`})]})}})()})}import*as Un from"react";import*as qe from"@radix-ui/react-slider";import{jsx as Nt,jsxs as gp}from"react/jsx-runtime";var Qn=Un.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>gp(qe.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Nt(qe.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Nt(qe.Range,{className:"absolute h-full bg-pink-500"})}),Nt(qe.Thumb,{className:"group relative",children:Nt("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&&Nt("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})})}),Nt(qe.Thumb,{className:"group relative",children:Nt("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&&Nt("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})})})]}));Qn.displayName=qe.Root.displayName;import{forwardRef as Dp}from"react";import{Fragment as xp,jsx as Se,jsxs as ha}from"react/jsx-runtime";var up=({author:e=""})=>Se("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),vp=({author:e,avatar:o})=>Se("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Se("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Se(up,{author:e})});function bp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return Se(xp,{children:ha("div",{className:"flex relative items-center space-x-3",children:[Se(vp,{avatar:e,author:o}),ha("div",{className:"flex flex-col",children:[o&&Se("div",{className:"font-semibold text-gray-900 text-sm",children:o}),ha("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Se("div",{className:"text-gray-400",children:t}),a&&ha("div",{className:"flex items-center space-x-2",children:[Se("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Se("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&Se("div",{className:"absolute right-1 top-0",children:Se("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var qn=bp;import{useState as Jn}from"react";import{StarIcon as hp}from"@heroicons/react/20/solid";import{jsx as Xn,jsxs as Yn}from"react/jsx-runtime";var yp={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!"},wp={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 Np({point:e,max:o,className:t}){let a=o>5?yp[e||10]:wp[e||5];return Yn("div",{className:r("flex items-center space-x-1",t),children:[Xn(hp,{className:"w-5 h-5 text-yellow-500"}),Xn("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Yn("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Zn=Np;import{useState as Pp}from"react";import Kn from"html-react-parser";import{jsx as Cp,jsxs as Rp}from"react/jsx-runtime";var yi=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=Pp(!0),c=()=>{l(!s)},d=(m,p,u=" ")=>m.length<=p?m:m.substring(0,m.lastIndexOf(u,p));return Rp("div",{className:r(n),children:[s?Kn(d(e,o)):Kn(e),e.length>o&&Cp("span",{onClick:c,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as _t,jsxs as es}from"react/jsx-runtime";function Tp({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=Jn(0),[c,d]=Jn(!1),m=p=>{d(!0),l(p)};return es("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&_t(Zn,{className:"mb-0.5",point:i.point,max:i.max}),e&&_t(yi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&_t("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(p=>_t("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:p}))}),o?.length>0&&es(xi,{open:c,onOpenChange:d,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((p,u)=>_t(U,{onClick:()=>m(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:_t("img",{src:p.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),_t(hi,{activeSlideIndex:s,images:o?.map((p,u)=>({url:p.url,titleImage:p.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var ts=Tp;import{jsx as Sp}from"react/jsx-runtime";function kp({actions:e=[]}){return Sp("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var os=kp;import{jsx as ya,jsxs as Ip}from"react/jsx-runtime";var Mp=Dp(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:c,isReply:d,children:m,commentSideBar:p,isOutStanding:u,limitContent:P=260},S)=>Ip("div",{ref:S,className:r("",d?"ml-4 py-4":"py-5"),children:[ya(qn,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),ya(ts,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:p,limitContent:P}),l&&l?.filter(Boolean)?.length>0&&ya(os,{actions:l.filter(Boolean)}),m&&ya("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:m})]}));import*as Pt from"react";import{cva as Ap}from"class-variance-authority";import{CheckIcon as Lp}from"@heroicons/react/16/solid";import{XIcon as Ep}from"lucide-react";import{jsx as ge,jsxs as wa}from"react/jsx-runtime";var Hp=Ap("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"}}),as=Pt.createContext("default");function Fp(){let e=Pt.useContext(as);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var zp=Pt.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?ge(Ep,{className:s}):wa("div",{children:[e==="iconStep"&&ge("div",{className:s,children:o}),e==="numberStep"&&ge("div",{children:t}),e==="default"&&(n==="completed"?ge(Lp,{className:s}):ge("div",{children:t}))]})}),_p=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Pt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return ge("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Bp=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:c,icon:d,isError:m,onValueChangeStep:p,...u})=>{let P=Fp();return wa("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[wa("div",{className:"flex w-full items-center justify-center gap-2",children:[ge("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),ge("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Hp({state:o,size:t}),m&&"bg-red-500 text-white shadow-none",i),...u,children:ge(zp,{type:P,icon:d,stepNumber:e,size:t,isError:m,state:o})}),ge("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),wa("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&ge("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&ge("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Op=({children:e,className:o,type:t="numberStep",...a})=>ge(as.Provider,{value:t,children:ge("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as ue from"react";import{Slot as Gp}from"@radix-ui/react-slot";import{Controller as jp,FormProvider as Up,useFormContext as Qp}from"react-hook-form";import*as is from"react";import*as wi from"@radix-ui/react-label";import{cva as Vp}from"class-variance-authority";import{jsx as $p}from"react/jsx-runtime";var Wp=Vp("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Na=is.forwardRef(({className:e,...o},t)=>$p(wi.Root,{ref:t,className:r(Wp(),e),...o}));Na.displayName=wi.Root.displayName;import{jsx as Ct}from"react/jsx-runtime";var qp=Up,rs=ue.createContext({}),Xp=({...e})=>Ct(rs.Provider,{value:{name:e.name},children:Ct(jp,{...e})}),_o=()=>{let e=ue.useContext(rs),o=ue.useContext(ns),{getFieldState:t,formState:a}=Qp(),i=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},ns=ue.createContext({}),ss=ue.forwardRef(({className:e,...o},t)=>{let a=ue.useId();return Ct(ns.Provider,{value:{id:a},children:Ct("div",{ref:t,className:r("space-y-2",e),...o})})});ss.displayName="FormItem";var ls=ue.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=_o();return Ct(Na,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});ls.displayName="FormLabel";var ms=ue.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=_o();return Ct(Gp,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});ms.displayName="FormControl";var cs=ue.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=_o();return Ct("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});cs.displayName="FormDescription";var ds=ue.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=_o(),s=i?String(i?.message):o;return s?Ct("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});ds.displayName="FormMessage";import*as dt from"react";import*as h from"@radix-ui/react-dropdown-menu";import{ChevronRight as Yp,Check as Zp}from"lucide-react";import{jsx as ce,jsxs as Bo}from"react/jsx-runtime";var Kp=h.Root,Jp=h.Trigger,ef=h.Group,tf=h.Portal,of=h.Sub,af=h.RadioGroup,ps=dt.forwardRef(({className:e,inset:o,children:t,...a},i)=>Bo(h.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,ce(Yp,{className:"ml-auto"})]}));ps.displayName=h.SubTrigger.displayName;var fs=dt.forwardRef(({className:e,...o},t)=>ce(h.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));fs.displayName=h.SubContent.displayName;var gs=dt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>ce(h.Portal,{children:ce(h.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));gs.displayName=h.Content.displayName;var us=dt.forwardRef(({className:e,inset:o,...t},a)=>ce(h.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));us.displayName=h.Item.displayName;var vs=dt.forwardRef(({className:e,children:o,checked:t,...a},i)=>Bo(h.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[Bo("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&ce("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),ce(h.ItemIndicator,{children:ce("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:ce(Zp,{size:16,strokeWidth:3})})})]}),o]}));vs.displayName=h.CheckboxItem.displayName;var bs=dt.forwardRef(({className:e,children:o,...t},a)=>Bo(h.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[Bo("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[ce("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),ce(h.ItemIndicator,{children:ce("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));bs.displayName=h.RadioItem.displayName;var xs=dt.forwardRef(({className:e,inset:o,...t},a)=>ce(h.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));xs.displayName=h.Label.displayName;var hs=dt.forwardRef(({className:e,...o},t)=>ce(h.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));hs.displayName=h.Separator.displayName;var ys=({className:e,...o})=>ce("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});ys.displayName="DropdownMenuShortcut";import Pa from"html-react-parser";import{Fragment as Ni,jsx as V,jsxs as Bt}from"react/jsx-runtime";var ws=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Bt(Ni,{children:[e&&V(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&V("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>V("div",{className:"basis-full px-3.5 md:basis-1/3",children:Bt("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:[V("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),Bt("div",{className:"mt-6 w-full",children:[V("div",{className:"w-full text-xl font-semibold",children:Pa(a.title)}),a?.description&&V("div",{className:"mt-2 text-base text-gray-600",children:Pa(a.description)})]})]})},i))}),t&&V(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),rf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Bt(Ni,{children:[e&&V(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&V("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>Bt("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[Bt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[V("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&V("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:V(U,{ratio:1,children:V("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),Bt("div",{className:"mt-6 w-full",children:[V("div",{className:"w-full text-xl font-semibold",children:Pa(a.title)}),a?.description&&V("div",{className:"mt-2 text-base text-gray-600",children:Pa(a.description)})]})]},i))}),t&&V(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),nf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return V(ws,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return V(rf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return V(ws,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},sf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>V(Ni,{children:nf({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),lf=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>V(B,{className:t,idSection:a,background:o,children:V(sf,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{cva as mf}from"class-variance-authority";import Ns from"html-react-parser";import{CheckIcon as Ps}from"lucide-react";import{Fragment as Pi,jsx as de,jsxs as Cs}from"react/jsx-runtime";var cf=mf("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}}),df=({template:e,name:o,image:t,isFeatures:a})=>de(Pi,{children:(()=>{switch(e){case 1:case 2:return de(Pi,{children:Cs("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?de("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:de("img",{src:t,alt:"",className:"max-w-full"})}):de("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:de(Ps,{className:"h-4 w-4 text-pink-500"})}),o&&de("div",{className:"ml-2 leading-tight",children:Ns(o)})]})});case 3:return Cs("li",{className:"flex h-full space-x-4",children:[t?de("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:de("img",{src:t,alt:"",className:"max-w-full"})}):de("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:de(Ps,{className:"h-4 w-4 text-pink-500"})}),o&&de("div",{className:"my-auto ml-2 leading-tight md:my-0",children:Ns(o)})]});default:return null}})()}),Ca=({dataFeatures:e,template:o=1})=>de(Pi,{children:(e?.length??0)>0&&de("ul",{className:r("",cf({template:o})),children:e?.map((t,a)=>de(df,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as pf}from"lucide-react";import{jsx as q,jsxs as Oo}from"react/jsx-runtime";var Rs=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,ff=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>Oo($t,{children:[q(Ke,{greaterThan:"sm",children:Oo(U,{className:r(""),ratio:Rs(o),children:[q("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&Oo(et,{children:[q(Ea,{onClick:i,children:q("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:q("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:Oo("g",{fill:"none",fillRule:"evenodd",children:[q("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),q("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"})]})})})}),q(_e,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:Oo(gt,{className:"relative bg-transparent p-4 text-center",children:[q("div",{className:"aspect-[16/9] w-full p-0",children:q("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"})}),q(Ha,{asChild:!0,children:q(oe,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:q(pf,{className:"h-6 w-6"})})})]})})]})]})}),a&&q(Ke,{lessThan:"md",children:q("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:q("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"})})})]}),Ra=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>q("div",{className:a,children:n?q(ff,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):q(U,{ratio:Rs(t),children:q("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});import gf from"html-react-parser";import{Fragment as vf,jsx as Ta,jsxs as Ci}from"react/jsx-runtime";var uf=({value:e,suffix:o,unit:t,description:a,idx:i})=>Ci("div",{className:r(""),children:[e&&Ci("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Ci("span",{children:[o," ",t]})]}),a&&Ta("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:gf(a)})]}),ka=({dataStats:e})=>Ta(vf,{children:(e?.length??0)>0&&Ta("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>Ta(uf,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Ts,jsx as X,jsxs as Vo}from"react/jsx-runtime";var Ri=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Vo("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[Vo("div",{className:"col-span-1 ",children:[X(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),X(Ca,{dataFeatures:t,template:a}),o&&X(w,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),X(ka,{dataStats:i})]}),X("div",{className:"col-span-1 md:pl-10",children:s||X(Ra,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),ks=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Vo("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[X("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||X(Ra,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),Vo("div",{className:"order-1 col-span-1 md:order-2",children:[X(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),X(Ca,{dataFeatures:t,template:a}),o&&X("div",{className:"flex w-full items-center justify-center md:justify-start",children:X(w,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),X(ka,{dataStats:i})]})]}),Ss=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Vo(Ts,{children:[X(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&X(w,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),X(Ca,{dataFeatures:t,template:a}),X("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:X(ka,{dataStats:i})}),s||X(Ts,{children:n?.src&&X(Ra,{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 wf,jsx as Ot}from"react/jsx-runtime";var bf=`var(
|
|
246
|
+
`})]})}})()})}import*as Un from"react";import*as Xe from"@radix-ui/react-slider";import{jsx as wt,jsxs as vp}from"react/jsx-runtime";var Qn=Un.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>vp(Xe.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[wt(Xe.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:wt(Xe.Range,{className:"absolute h-full bg-pink-500"})}),wt(Xe.Thumb,{className:"group relative",children:wt("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&&wt("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})})}),wt(Xe.Thumb,{className:"group relative",children:wt("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&&wt("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})})})]}));Qn.displayName=Xe.Root.displayName;import{forwardRef as Ip}from"react";import{Fragment as yp,jsx as Se,jsxs as ha}from"react/jsx-runtime";var bp=({author:e=""})=>Se("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),xp=({author:e,avatar:o})=>Se("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?Se("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):Se(bp,{author:e})});function hp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return Se(yp,{children:ha("div",{className:"flex relative items-center space-x-3",children:[Se(xp,{avatar:e,author:o}),ha("div",{className:"flex flex-col",children:[o&&Se("div",{className:"font-semibold text-gray-900 text-sm",children:o}),ha("div",{className:"flex items-center space-x-2 text-xs",children:[t&&Se("div",{className:"text-gray-400",children:t}),a&&ha("div",{className:"flex items-center space-x-2",children:[Se("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),Se("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&Se("div",{className:"absolute right-1 top-0",children:Se("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Xn=hp;import{useState as Jn}from"react";import{StarIcon as wp}from"@heroicons/react/20/solid";import{jsx as qn,jsxs as Yn}from"react/jsx-runtime";var Np={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!"},Pp={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 Cp({point:e,max:o,className:t}){let a=o>5?Np[e||10]:Pp[e||5];return Yn("div",{className:r("flex items-center space-x-1",t),children:[qn(wp,{className:"w-5 h-5 text-yellow-500"}),qn("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),Yn("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Zn=Cp;import{useState as Rp}from"react";import Kn from"html-react-parser";import{jsx as Tp,jsxs as kp}from"react/jsx-runtime";var yi=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=Rp(!0),m=()=>{l(!s)},p=(c,d,u=" ")=>c.length<=d?c:c.substring(0,c.lastIndexOf(u,d));return kp("div",{className:r(n),children:[s?Kn(p(e,o)):Kn(e),e.length>o&&Tp("span",{onClick:m,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as Ot,jsxs as es}from"react/jsx-runtime";function Sp({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=Jn(0),[m,p]=Jn(!1),c=d=>{p(!0),l(d)};return es("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&Ot(Zn,{className:"mb-0.5",point:i.point,max:i.max}),e&&Ot(yi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&Ot("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(d=>Ot("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:d}))}),o?.length>0&&es(xi,{open:m,onOpenChange:p,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((d,u)=>Ot(U,{onClick:()=>c(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:Ot("img",{src:d.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),Ot(hi,{activeSlideIndex:s,images:o?.map((d,u)=>({url:d.url,titleImage:d.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var ts=Sp;import{jsx as Mp}from"react/jsx-runtime";function Dp({actions:e=[]}){return Mp("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var os=Dp;import{jsx as ya,jsxs as Lp}from"react/jsx-runtime";var Ap=Ip(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:m,isReply:p,children:c,commentSideBar:d,isOutStanding:u,limitContent:P=260},S)=>Lp("div",{ref:S,className:r("",p?"ml-4 py-4":"py-5"),children:[ya(Xn,{avatar:e,author:o,time:t,statusMessage:m,isOutStanding:u}),ya(ts,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:d,limitContent:P}),l&&l?.filter(Boolean)?.length>0&&ya(os,{actions:l.filter(Boolean)}),c&&ya("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:c})]}));import*as Nt from"react";import{cva as Ep}from"class-variance-authority";import{CheckIcon as Hp}from"@heroicons/react/16/solid";import{XIcon as Fp}from"lucide-react";import{jsx as ge,jsxs as wa}from"react/jsx-runtime";var zp=Ep("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"}}),as=Nt.createContext("default");function _p(){let e=Nt.useContext(as);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Bp=Nt.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?ge(Fp,{className:s}):wa("div",{children:[e==="iconStep"&&ge("div",{className:s,children:o}),e==="numberStep"&&ge("div",{children:t}),e==="default"&&(n==="completed"?ge(Hp,{className:s}):ge("div",{children:t}))]})}),Vp=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Nt.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return ge("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Op=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:l,fristStep:m,icon:p,isError:c,onValueChangeStep:d,...u})=>{let P=_p();return wa("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[wa("div",{className:"flex w-full items-center justify-center gap-2",children:[ge("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),ge("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",zp({state:o,size:t}),c&&"bg-red-500 text-white shadow-none",i),...u,children:ge(Bp,{type:P,icon:p,stepNumber:e,size:t,isError:c,state:o})}),ge("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),wa("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&ge("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&ge("div",{className:"text-xs text-gray-500 ",children:s})]})]})},Wp=({children:e,className:o,type:t="numberStep",...a})=>ge(as.Provider,{value:t,children:ge("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as ue from"react";import{Slot as Up}from"@radix-ui/react-slot";import{Controller as Qp,FormProvider as Xp,useFormContext as qp}from"react-hook-form";import*as is from"react";import*as wi from"@radix-ui/react-label";import{cva as $p}from"class-variance-authority";import{jsx as jp}from"react/jsx-runtime";var Gp=$p("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Na=is.forwardRef(({className:e,...o},t)=>jp(wi.Root,{ref:t,className:r(Gp(),e),...o}));Na.displayName=wi.Root.displayName;import{jsx as Pt}from"react/jsx-runtime";var Yp=Xp,rs=ue.createContext({}),Zp=({...e})=>Pt(rs.Provider,{value:{name:e.name},children:Pt(Qp,{...e})}),_o=()=>{let e=ue.useContext(rs),o=ue.useContext(ns),{getFieldState:t,formState:a}=qp(),i=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},ns=ue.createContext({}),ss=ue.forwardRef(({className:e,...o},t)=>{let a=ue.useId();return Pt(ns.Provider,{value:{id:a},children:Pt("div",{ref:t,className:r("space-y-2",e),...o})})});ss.displayName="FormItem";var ls=ue.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=_o();return Pt(Na,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});ls.displayName="FormLabel";var ms=ue.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=_o();return Pt(Up,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});ms.displayName="FormControl";var cs=ue.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=_o();return Pt("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});cs.displayName="FormDescription";var ds=ue.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=_o(),s=i?String(i?.message):o;return s?Pt("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});ds.displayName="FormMessage";import*as ct from"react";import*as h from"@radix-ui/react-dropdown-menu";import{ChevronRight as Kp,Check as Jp}from"lucide-react";import{jsx as ce,jsxs as Bo}from"react/jsx-runtime";var ef=h.Root,tf=h.Trigger,of=h.Group,af=h.Portal,rf=h.Sub,nf=h.RadioGroup,ps=ct.forwardRef(({className:e,inset:o,children:t,...a},i)=>Bo(h.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,ce(Kp,{className:"ml-auto"})]}));ps.displayName=h.SubTrigger.displayName;var fs=ct.forwardRef(({className:e,...o},t)=>ce(h.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));fs.displayName=h.SubContent.displayName;var gs=ct.forwardRef(({className:e,sideOffset:o=4,...t},a)=>ce(h.Portal,{children:ce(h.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));gs.displayName=h.Content.displayName;var us=ct.forwardRef(({className:e,inset:o,...t},a)=>ce(h.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));us.displayName=h.Item.displayName;var vs=ct.forwardRef(({className:e,children:o,checked:t,...a},i)=>Bo(h.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[Bo("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&ce("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),ce(h.ItemIndicator,{children:ce("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:ce(Jp,{size:16,strokeWidth:3})})})]}),o]}));vs.displayName=h.CheckboxItem.displayName;var bs=ct.forwardRef(({className:e,children:o,...t},a)=>Bo(h.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[Bo("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[ce("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),ce(h.ItemIndicator,{children:ce("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));bs.displayName=h.RadioItem.displayName;var xs=ct.forwardRef(({className:e,inset:o,...t},a)=>ce(h.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));xs.displayName=h.Label.displayName;var hs=ct.forwardRef(({className:e,...o},t)=>ce(h.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));hs.displayName=h.Separator.displayName;var ys=({className:e,...o})=>ce("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});ys.displayName="DropdownMenuShortcut";import Pa from"html-react-parser";import{Fragment as Ni,jsx as O,jsxs as Wt}from"react/jsx-runtime";var ws=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Wt(Ni,{children:[e&&O(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&O("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>O("div",{className:"basis-full px-3.5 md:basis-1/3",children:Wt("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:[O("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),Wt("div",{className:"mt-6 w-full",children:[O("div",{className:"w-full text-xl font-semibold",children:Pa(a.title)}),a?.description&&O("div",{className:"mt-2 text-base text-gray-600",children:Pa(a.description)})]})]})},i))}),t&&O(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),sf=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Wt(Ni,{children:[e&&O(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&O("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>Wt("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[Wt("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[O("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&O("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:O(U,{ratio:1,children:O("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),Wt("div",{className:"mt-6 w-full",children:[O("div",{className:"w-full text-xl font-semibold",children:Pa(a.title)}),a?.description&&O("div",{className:"mt-2 text-base text-gray-600",children:Pa(a.description)})]})]},i))}),t&&O(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),lf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return O(ws,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return O(sf,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return O(ws,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},mf=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>O(Ni,{children:lf({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),cf=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>O(B,{className:t,idSection:a,background:o,children:O(mf,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{cva as df}from"class-variance-authority";import Ns from"html-react-parser";import{CheckIcon as Ps}from"lucide-react";import{Fragment as Pi,jsx as de,jsxs as Cs}from"react/jsx-runtime";var pf=df("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}}),ff=({template:e,name:o,image:t,isFeatures:a})=>de(Pi,{children:(()=>{switch(e){case 1:case 2:return de(Pi,{children:Cs("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?de("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:de("img",{src:t,alt:"",className:"max-w-full"})}):de("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:de(Ps,{className:"h-4 w-4 text-pink-500"})}),o&&de("div",{className:"ml-2 ",children:Ns(o)})]})});case 3:return Cs("li",{className:"flex h-full space-x-4",children:[t?de("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:de("img",{src:t,alt:"",className:"max-w-full"})}):de("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:de(Ps,{className:"h-4 w-4 text-pink-500"})}),o&&de("div",{className:"my-auto ml-2 md:my-0",children:Ns(o)})]});default:return null}})()}),Ca=({dataFeatures:e,template:o=1})=>de(Pi,{children:(e?.length??0)>0&&de("ul",{className:r("",pf({template:o})),children:e?.map((t,a)=>de(ff,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});import{XIcon as gf}from"lucide-react";import{jsx as X,jsxs as Vo}from"react/jsx-runtime";var Rs=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,uf=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>Vo(Go,{children:[X(Qt,{greaterThan:"sm",children:Vo(U,{className:r(""),ratio:Rs(o),children:[X("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&Vo(Je,{children:[X(Ea,{onClick:i,children:X("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:X("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:Vo("g",{fill:"none",fillRule:"evenodd",children:[X("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),X("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"})]})})})}),X(_e,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:Vo(ft,{className:"relative bg-transparent p-4 text-center",children:[X("div",{className:"aspect-[16/9] w-full p-0",children:X("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"})}),X(Ha,{asChild:!0,children:X(oe,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:X(gf,{className:"h-6 w-6"})})})]})})]})]})}),a&&X(Qt,{lessThan:"md",children:X("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:X("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"})})})]}),Ra=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>X("div",{className:a,children:n?X(uf,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):X(U,{ratio:Rs(t),children:X("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});import vf from"html-react-parser";import{Fragment as xf,jsx as Ta,jsxs as Ci}from"react/jsx-runtime";var bf=({value:e,suffix:o,unit:t,description:a,idx:i})=>Ci("div",{className:r(""),children:[e&&Ci("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&Ci("span",{children:[o," ",t]})]}),a&&Ta("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:vf(a)})]}),ka=({dataStats:e})=>Ta(xf,{children:(e?.length??0)>0&&Ta("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>Ta(bf,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});import{Fragment as Ts,jsx as q,jsxs as Oo}from"react/jsx-runtime";var Ri=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Oo("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[Oo("div",{className:"col-span-1 ",children:[q(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),q(Ca,{dataFeatures:t,template:a}),o&&q(w,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),q(ka,{dataStats:i})]}),q("div",{className:"col-span-1 md:pl-10",children:s||q(Ra,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),ks=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Oo("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[q("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||q(Ra,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),Oo("div",{className:"order-1 col-span-1 md:order-2",children:[q(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),q(Ca,{dataFeatures:t,template:a}),o&&q("div",{className:"flex w-full items-center justify-center md:justify-start",children:q(w,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),q(ka,{dataStats:i})]})]}),Ss=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Oo(Ts,{children:[q(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&q(w,{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"}),q(Ca,{dataFeatures:t,template:a}),q("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:q(ka,{dataStats:i})}),s||q(Ts,{children:n?.src&&q(Ra,{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 Pf,jsx as $t}from"react/jsx-runtime";var hf=`var(
|
|
247
247
|
--gradient-pink-1,
|
|
248
248
|
linear-gradient(
|
|
249
249
|
38deg,
|
|
@@ -265,11 +265,11 @@ import*as go from"react";import*as we from"@radix-ui/react-accordion";import{Che
|
|
|
265
265
|
rgba(255, 255, 255, 0) 80%
|
|
266
266
|
),
|
|
267
267
|
#fff
|
|
268
|
-
)`,
|
|
268
|
+
)`,yf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return $t(Ri,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return $t(ks,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return $t(Ss,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return $t(Ri,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},wf=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>$t(Pf,{children:yf({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),Nf=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:l,background:m,advancedComponent:p=null})=>$t(B,{className:r(l),background:m??hf,idSection:o,children:$t(wf,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:p})});import{Fragment as Ti,jsx as E,jsxs as Ms}from"react/jsx-runtime";var Ds=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return Ms(Ti,{children:[e&&E(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&E("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,l)=>E("div",{className:r("flex items-center justify-center md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:E("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?E("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:E("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):E("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},l))}),t&&E(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Cf=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>Ms(Ti,{children:[e&&E(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&E("div",{className:r("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((i,n)=>E("div",{className:r("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:i?.url?E("a",{href:i?.url,title:i?.name,target:i?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:E("div",{className:"flex w-auto max-w-36 items-center justify-center",children:E("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):E("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:E("div",{className:"flex w-auto max-w-36 items-center justify-center",children:E("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&E(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Rf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return E(Ds,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return E(Cf,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return E(Ds,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},Tf=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>E(Ti,{children:Rf({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),kf=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="20px",isScrollSnap:m})=>E(B,{className:t,idSection:a,background:o,children:E(Tf,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:m})});import{ChevronRightIcon as Sf}from"@heroicons/react/16/solid";import Y from"html-react-parser";import{Fragment as Ct,jsx as f,jsxs as v}from"react/jsx-runtime";var dt=({btnLink:e,btnName:o,newTab:t})=>f(le,{variant:"primary",asChild:!0,children:v("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",f(Sf,{className:"h-4 w-4"})]})}),ki=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Ct,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col text-center",children:[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"})}),v("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Is=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Ct,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),f("style",{children:`
|
|
269
269
|
.list-features-2 .feature-item {
|
|
270
270
|
background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
|
|
271
271
|
}
|
|
272
|
-
`})]}),As=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Rt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 w-full flex-1",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ls=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[v("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),v("div",{className:"lg:col-span-6",children:[o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Es=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Rt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Hs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Rt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full",children:[f("div",{className:"h-12 w-12",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Fs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,c=n[a]??-1,d=(m,p)=>{let u=m?.btnLink?"a":"div",P=m?.btnLink?{href:m.btnLink,target:m?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:m?.btnName}:{};return f("div",{className:r("basis-1/2 px-2 lg:px-5",l,p===c&&"md:break-after-row",m?.btnLink&&"group cursor-pointer"),children:v(u,{...P,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[f("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:f("img",{src:m?.image,alt:m?.name,className:"h-full w-full object-contain",loading:"lazy"})}),v("div",{className:"w-full flex-1 text-center",children:[m?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:Y(m.name)}),m?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:Y(m.description)})]})]})},p)};return v(Rt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((m,p)=>d(m,p))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},zs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Rt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[v("div",{className:"flex w-full flex-1 flex-col p-5",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),f("div",{className:"w-full",style:{aspectRatio:"347/220"},children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),_s=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>v("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[f("div",{className:"flex items-center lg:col-span-6",children:v("div",{className:"w-full",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[f("div",{className:"h-10 w-10",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:Y(i.name)}),i?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&f(w,{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-md",children:f(U,{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"})})})})]}),Bs=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>v(Rt,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),f("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&v("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>v("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[f("div",{className:"h-12 w-12",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:Y(i.name)}),i?.description&&f("div",{className:"mt-2 text-gray-500",children:Y(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(pt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&v("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[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(w,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});import{Fragment as Mf,jsx as ve}from"react/jsx-runtime";var kf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return ve(ki,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ve(Is,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ve(As,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ve(Ls,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ve(Es,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ve(Hs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ve(Fs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ve(zs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ve(_s,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return ve(Bs,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return ve(ki,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Sf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>ve(Mf,{children:kf({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),Df=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>ve(B,{className:t,idSection:a,background:o,children:ve(Sf,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as If}from"@heroicons/react/24/solid";import Si from"html-react-parser";import Af from"lodash";import{Fragment as Ws,jsx as H,jsxs as Vt}from"react/jsx-runtime";var Lf=({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()||""},Ef=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Hf=(e,o)=>o[e%o.length],Ff=({avatar:e="",name:o="",index:t=0})=>{if(Af.isEmpty(e)){let a=Lf({name:o})??"",i=Hf(t,Ef);return H("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",i),children:a})}return H("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:H("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Os=({testimonial:e,isHiddenOnMobile:o=!1,index:t=0,itemCount:a})=>H("div",{className:r("testimonial-item shrink-0 grow basis-10/12 snap-center px-3 first:pl-5 sm:px-0 md:basis-0 md:first:pl-0",o?"hidden sm:block":"",t+1===a?"pr-5":""),children:H("div",{className:"relative h-full rounded-xl border border-gray-50 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:Vt("div",{className:"testimonial-item-width",children:[Vt("div",{className:"flex flex-nowrap items-center space-x-2",children:[H(Ff,{avatar:e.avatar,name:e.name,index:t}),Vt("div",{className:"min-w-0 flex-1 pl-1",children:[H("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&H("div",{className:"text-xs font-normal text-pink-500",children:Si(e.position)})]})]}),Vt("div",{className:"mt-3",children:[e?.shortTitle&&H("div",{className:"text-sm font-bold text-gray-700",children:Si(e.shortTitle)}),e?.description&&H("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Si(e.description)})]}),Vt("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[H("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&H("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>H(If,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),Vs=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return Vt(Ws,{children:[e&&H(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&H("div",{className:r("testimonials-mobase scroll-hidden relative -mx-5 -my-2 overflow-x-scroll py-2 sm:mx-0 md:overflow-hidden",i&&"run-animation"),children:Vt("div",{className:"testimonials-slider flex snap-x snap-mandatory flex-row overflow-hidden overflow-x-auto pb-3 sm:snap-none sm:space-x-6 sm:overflow-visible sm:pb-0 sm:pl-6 sm:pr-0",children:[o?.map((n,s)=>H(Os,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&o?.map((n,s)=>H(Os,{testimonial:n,isHiddenOnMobile:!0,index:s},`duplicate-${s}`))]})}),t&&H(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),i&&H("style",{children:`
|
|
272
|
+
`})]}),As=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Ct,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 w-full flex-1",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ls=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[v("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),v("div",{className:"lg:col-span-6",children:[o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Es=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Ct,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[f("div",{className:"h-16 w-16",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Hs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Ct,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full",children:[f("div",{className:"h-12 w-12",children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Fs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,m=n[a]??-1,p=(c,d)=>{let u=c?.btnLink?"a":"div",P=c?.btnLink?{href:c.btnLink,target:c?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:c?.btnName}:{};return f("div",{className:r("basis-1/2 px-2 lg:px-5",l,d===m&&"md:break-after-row",c?.btnLink&&"group cursor-pointer"),children:v(u,{...P,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[f("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:f("img",{src:c?.image,alt:c?.name,className:"h-full w-full object-contain",loading:"lazy"})}),v("div",{className:"w-full flex-1 text-center",children:[c?.name&&f("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:Y(c.name)}),c?.description&&f("div",{className:"mt-2 text-sm text-gray-500",children:Y(c.description)})]})]})},d)};return v(Ct,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((c,d)=>p(c,d))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},zs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(Ct,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>v("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[v("div",{className:"flex w-full flex-1 flex-col p-5",children:[v("div",{className:"flex-1",children:[a?.name&&f("h3",{className:"text-lg font-semibold",children:Y(a.name)}),a?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(a.description)})]}),a?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),f("div",{className:"w-full",style:{aspectRatio:"347/220"},children:f("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&f(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),_s=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>v("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[f("div",{className:"flex items-center lg:col-span-6",children:v("div",{className:"w-full",children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&f("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>v("div",{className:"feature-item relative flex w-full flex-col",children:[f("div",{className:"h-10 w-10",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:Y(i.name)}),i?.description&&f("div",{className:"mt-2 text-base text-gray-600",children:Y(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&f(w,{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-md",children:f(U,{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"})})})})]}),Bs=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>v(Ct,{children:[e&&f(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),f("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&v("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>v("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[f("div",{className:"h-12 w-12",children:f("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),v("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&f("h3",{className:"text-lg font-semibold",children:Y(i.name)}),i?.description&&f("div",{className:"mt-2 text-gray-500",children:Y(i.description)})]}),i?.btnLink&&f("div",{className:"mt-4",children:f(dt,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&v("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[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(w,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});import{Fragment as Af,jsx as ve}from"react/jsx-runtime";var Df=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return ve(ki,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ve(Is,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ve(As,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ve(Ls,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ve(Es,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ve(Hs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ve(Fs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ve(zs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ve(_s,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return ve(Bs,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return ve(ki,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Mf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>ve(Af,{children:Df({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),If=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>ve(B,{className:t,idSection:a,background:o,children:ve(Mf,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as Lf}from"@heroicons/react/24/solid";import Si from"html-react-parser";import Ef from"lodash";import{Fragment as Ws,jsx as H,jsxs as Gt}from"react/jsx-runtime";var Hf=({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()||""},Ff=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],zf=(e,o)=>o[e%o.length],_f=({avatar:e="",name:o="",index:t=0})=>{if(Ef.isEmpty(e)){let a=Hf({name:o})??"",i=zf(t,Ff);return H("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",i),children:a})}return H("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:H("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},Vs=({testimonial:e,isHiddenOnMobile:o=!1,index:t=0,itemCount:a})=>H("div",{className:r("testimonial-item shrink-0 grow basis-10/12 snap-center px-3 first:pl-5 sm:px-0 md:basis-0 md:first:pl-0",o?"hidden sm:block":"",t+1===a?"pr-5":""),children:H("div",{className:"relative h-full rounded-xl border border-gray-50 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:Gt("div",{className:"testimonial-item-width",children:[Gt("div",{className:"flex flex-nowrap items-center space-x-2",children:[H(_f,{avatar:e.avatar,name:e.name,index:t}),Gt("div",{className:"min-w-0 flex-1 pl-1",children:[H("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&H("div",{className:"text-xs font-normal text-pink-500",children:Si(e.position)})]})]}),Gt("div",{className:"mt-3",children:[e?.shortTitle&&H("div",{className:"text-sm font-bold text-gray-700",children:Si(e.shortTitle)}),e?.description&&H("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Si(e.description)})]}),Gt("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[H("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&H("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>H(Lf,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),Os=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return Gt(Ws,{children:[e&&H(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&H("div",{className:r("testimonials-mobase scroll-hidden relative -mx-5 -my-2 overflow-x-scroll py-2 sm:mx-0 md:overflow-hidden",i&&"run-animation"),children:Gt("div",{className:"testimonials-slider flex snap-x snap-mandatory flex-row overflow-hidden overflow-x-auto pb-3 sm:snap-none sm:space-x-6 sm:overflow-visible sm:pb-0 sm:pl-6 sm:pr-0",children:[o?.map((n,s)=>H(Vs,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&o?.map((n,s)=>H(Vs,{testimonial:n,isHiddenOnMobile:!0,index:s},`duplicate-${s}`))]})}),t&&H(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),i&&H("style",{children:`
|
|
273
273
|
@media screen and (min-width: 640px) {
|
|
274
274
|
.testimonials-mobase.run-animation {
|
|
275
275
|
--items-count: ${a};
|
|
@@ -293,7 +293,7 @@ import*as go from"react";import*as we from"@radix-ui/react-accordion";import{Che
|
|
|
293
293
|
transform: translateX(calc(${a===4?"-476px":"-386px"} * var(--items-count)));
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
`})]})},zf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return H(Vs,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return H(Vs,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},_f=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>H(Ws,{children:zf({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Bf=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>H(B,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${t||""}`,idSection:a,background:o,children:H(_f,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import{memo as Of}from"react";import Vf from"html-react-parser";import{Fragment as Wf,jsx as J,jsxs as so}from"react/jsx-runtime";var Di=Of(({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=e?.length>1,c=d=>J(jt,{type:"single",collapsible:!0,defaultValue:d?.isActiveFistQuestion&&d?.contents?.[0]?.title||"",className:"w-full",children:d?.contents?.map((m,p)=>so(Ut,{value:m.title,className:"last:border-none",children:[J(Qt,{className:"font-bold",children:m.title}),J(qt,{children:Vf(m.description)})]},p))});return J($t,{children:l?so(Wf,{children:[o&&J(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&so(nt,{defaultValue:e[0]?.title,children:[so(ot,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[J(at,{className:"mb-3 text-center",children:J(Be,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:e.map((d,m)=>J(Oe,{value:d.title,children:d.title},d.title+m))})}),J(it,{}),J(rt,{})]}),e.map((d,m)=>J(Ve,{className:"mx-auto mt-0 max-w-3xl",value:d.title,children:c(d)},d.title+m))]}),t&&J(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]}):so("div",{className:"grid grid-cols-1 gap-y-5 sm:grid-cols-3 md:gap-x-6",children:[J("div",{className:"relative",children:so("div",{className:"md:sticky md:top-20",children:[o&&J(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&J(Ke,{greaterThan:"sm",children:J(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("md:mt-6",t?.className),align:"left"})})]})}),e&&e.length>0&&e[0]&&J("div",{className:"col-span-2",children:c(e[0])}),t&&J(Ke,{lessThan:"md",children:J(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3",t?.className),align:"center"})})]})})});import{Fragment as Uf,jsx as Wo}from"react/jsx-runtime";var $f=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return Wo(Di,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return Wo(Di,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Gf=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>Wo(Uf,{children:$f({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),jf=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>Wo(B,{className:t,idSection:i,background:a,children:Wo(Gf,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import Qf,{memo as qf}from"react";import{ArrowDownIcon as Xf}from"@heroicons/react/20/solid";import Yf from"html-react-parser";import{Fragment as $s,jsx as $,jsxs as Xe}from"react/jsx-runtime";var Zf=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Xe($s,{children:[$("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:Xe("picture",{children:[$("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),$("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),Xe("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[$("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}),Xe("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Xe($s,{children:[$(le,{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&&$("span",{className:"flex-none leading-none",children:"\xB7"})]}),$("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Mi=qf(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(m,p,u)=>{m?.preventDefault(),m?.stopPropagation(),a?a(p):window.open(u,"_blank")},d=(m,p)=>Xe("div",{children:[$("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",m?.newsList?.length<4?"md:justify-center":""),children:m?.newsList?.map((u,P)=>$("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:$("div",{onClick:S=>c(S,u?.id,u?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",m?.classNameItem),children:$(Zf,{news:u})},u?.id)},P))}),m?.isShowBtn&&$("div",{className:"mt-8 flex w-full items-center justify-center",children:Xe(De,{action:m?.btnUrl||i&&(()=>i?.(p)),newTab:m?.isNewTab,variant:"outline",disabled:m?.isLoading,children:[Yf(m.btnName||"Xem th\xEAm"),m?.isLoading?$(Xt,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!m?.btnUrl&&$(Xf,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},m?.title||p);return Xe(Qf.Fragment,{children:[e&&$(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?Xe(nt,{defaultValue:t[0]?.title,children:[Xe(ot,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[$(at,{className:"mb-6 text-center",children:$(Be,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((m,p)=>$(Oe,{value:m.title,children:m.title},m.title+p))})}),$(it,{}),$(rt,{})]}),t.map((m,p)=>$(Ve,{value:m.title,children:d(m,p)},m.title+p))]}):t?.length===1&&t[0]&&d(t[0],0)]})});import{Fragment as tg,jsx as $o}from"react/jsx-runtime";var Kf=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return $o(Mi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return $o(Mi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Jf=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>$o(tg,{children:Kf({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),eg=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>$o(B,{className:r(a),background:i,children:$o(Jf,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as ng,jsx as ye,jsxs as Ii}from"react/jsx-runtime";var Gs=({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&&ye(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&ye(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),og=({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&&ye(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&ye(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),ye("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&ye(U,{ratio:4/3,children:ye("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),ag=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return ye(Gs,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return ye(og,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return ye(Gs,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},ig=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>ye(ng,{children:ag({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),rg=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>ye(B,{className:t,idSection:a,background:o,children:ye(ig,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import js from"react";import Ai from"html-react-parser";import{jsx as Tt,jsxs as Us}from"react/jsx-runtime";var sg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Us("div",{className:" text-center",children:[Tt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Ai(t??"")}),Tt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Ai(o??"")}),a&&Tt("div",{className:"mt-2 text-sm text-gray-500",children:Ai(a??"")})]})},Sa=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Us(js.Fragment,{children:[t&&Tt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Tt("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,i)=>Tt(js.Fragment,{children:Tt(sg,{metric:a})},i))}),o&&Tt(w,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import Qs from"react";import Li from"html-react-parser";import{jsx as kt,jsxs as qs}from"react/jsx-runtime";var lg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return qs("div",{className:" text-center md:text-left",children:[kt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:Li(t??"")}),kt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Li(o??"")}),a&&kt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:Li(a??"")})]})},Ei=({dataMetrics:e,dataButtons:o,dataHeading:t})=>qs(Qs.Fragment,{children:[t&&kt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&kt("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,i)=>kt(Qs.Fragment,{children:kt(lg,{metric:a})},i))}),o&&kt(w,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as pg,jsx as lo}from"react/jsx-runtime";var mg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return lo(Sa,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return lo(Ei,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return lo(Sa,{dataMetrics:o,dataButtons:a,dataHeading:e})}},cg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>lo(pg,{children:mg({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),dg=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:i,template:n})=>lo(B,{className:r(i),background:a,children:lo(cg,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});import{forwardRef as fg}from"react";import{jsx as Xs,jsxs as ug}from"react/jsx-runtime";var gg=fg(({className:e,title:o,children:t},a)=>ug("div",{className:e,ref:a,children:[Xs("div",{className:"font-semibold text-gray-800",children:o}),Xs("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 yg}from"react";import{Fragment as hg,jsx as Wt,jsxs as xg}from"react/jsx-runtime";var vg=()=>Wt("div",{className:"p-3 border rounded-lg",children:xg("div",{className:"flex items-center gap-3",children:[Wt(xa,{className:"rounded-md h-9 w-9 "}),Wt("div",{className:"flex-1",children:Wt(xa,{className:"w-48 h-5 "})}),Wt("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function bg(){return Wt(hg,{children:Array.from({length:4}).map((e,o)=>Wt(vg,{},o))})}var Ys=bg;import{Fragment as Pg,jsx as ft,jsxs as Hi}from"react/jsx-runtime";var wg=({paymentMethod:e})=>ft(ba,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:Hi("div",{className:"flex items-center space-x-3",children:[ft("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),Hi("div",{className:"grid grid-cols-1 gap-1",children:[ft("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&ft("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&ft("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Ng=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=yg(s=>a?.(s),[a]);return Hi(Pg,{children:[e&&ft("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?ft(Ys,{}):ft(va,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>ft(wg,{paymentMethod:s},s.id))})]})};import{forwardRef as Zs}from"react";import{jsx as Js}from"react/jsx-runtime";var Cg=Zs(({children:e,className:o},t)=>Js("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),Ks=Zs(({children:e,className:o,...t},a)=>Js(Cg,{ref:a,className:o,...t,children:e}));Ks.displayName="Payment";import{forwardRef as Rg}from"react";import{jsx as el,jsxs as kg}from"react/jsx-runtime";var Tg=Rg(({className:e,children:o},t)=>kg("div",{className:r("",e),ref:t,children:[el("hr",{className:"mb-5 h-px w-full bg-gray-500"}),el("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as Sg}from"react";import{jsx as Mg}from"react/jsx-runtime";var Dg=Sg(({className:e,children:o},t)=>Mg("div",{className:r("pb-5",e),ref:t,children:o}));import{forwardRef as Fg}from"react";import{CheckBadgeIcon as Ig,XCircleIcon as Ag}from"@heroicons/react/20/solid";import{jsx as ae,jsxs as mo}from"react/jsx-runtime";var Lg=({iconPaymentResult:e,message:o="",title:t=""})=>mo("div",{className:"grid grid-cols-1 gap-4",children:[mo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ae("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ae("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ae(Ho,{message:o,type:"success",icon:ae(Ig,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Eg=({iconPaymentResult:e,message:o="",title:t=""})=>mo("div",{className:"grid grid-cols-1 gap-4",children:[mo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ae("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ae("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),ae(Ho,{message:o,type:"error",icon:ae(Ag,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Hg=({iconPaymentResult:e,message:o="",title:t=""})=>mo("div",{className:"grid grid-cols-1 gap-4",children:[mo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ae("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ae("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ae(Ho,{message:o,type:"neutral"})]}),tl=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ae(Lg,{status:e,title:o,message:t,iconPaymentResult:a||ae("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return ae(Eg,{status:e,title:o,message:t,iconPaymentResult:a||ae("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return ae(Hg,{status:e,title:o,message:t,iconPaymentResult:a||ae("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as _g,jsxs as Bg}from"react/jsx-runtime";var zg=Fg(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>Bg("div",{ref:s,className:r("rounded-lg p-4",e),children:[_g(tl,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));import{forwardRef as Vg,useEffect as Wg}from"react";import{jsx as Fi,jsxs as Og}from"react/jsx-runtime";var Da=({content:e})=>Og("picture",{children:[Fi("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),Fi("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),Fi(De,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as Go,jsxs as jg}from"react/jsx-runtime";var $g=({template:e,content:o})=>{switch(e){case 1:return Go(Da,{content:o});default:return Go(Da,{content:o})}},Gg=Vg(({template:e,content:o},t)=>(Wg(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),jg("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[Go("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:Go("div",{className:"content",children:$g({template:e,content:o})})}),Go("style",{children:`
|
|
296
|
+
`})]})},Bf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return H(Os,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return H(Os,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Vf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>H(Ws,{children:Bf({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Of=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>H(B,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${t||""}`,idSection:a,background:o,children:H(Vf,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import $s from"html-react-parser";import{Fragment as Wf,jsx as J,jsxs as jt}from"react/jsx-runtime";var Di=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>J(kt,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>jt(St,{value:n.title,className:"last:border-none",children:[J(Dt,{className:"md:text-lg",children:n.title}),J(Mt,{className:"prose max-w-none",children:$s(n.description)})]},s))});return jt("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[J("div",{className:"relative",children:jt("div",{className:"md:sticky md:top-14",children:[o&&J(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&J(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&J("div",{className:"col-span-2",children:a(e[0])}),t&&J(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},Gs=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=m=>J(kt,{type:"single",collapsible:!0,defaultValue:m?.isActiveFistQuestion&&m?.contents?.[0]?.title||"",className:"w-full",children:m?.contents?.map((p,c)=>jt(St,{value:p.title,className:"last:border-none",children:[J(Dt,{className:"md:text-lg",children:p.title}),J(Mt,{className:"prose max-w-none",children:$s(p.description)})]},c))});return jt(Wf,{children:[o&&J(x,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&jt(rt,{defaultValue:e[0]?.title,children:[jt(tt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[J(ot,{className:"mb-3 text-center",children:J(Be,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((m,p)=>J(Ve,{value:m.title,children:m.title},m.title+p))})}),J(at,{}),J(it,{})]}),e.map((m,p)=>J(Oe,{className:"mx-auto mt-0 max-w-3xl",value:m.title,children:l(m)},m.title+p))]}),t&&J(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};import{Fragment as Uf,jsx as so}from"react/jsx-runtime";var $f=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return so(Di,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return so(Gs,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return so(Di,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Gf=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>so(Uf,{children:$f({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),jf=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>so(B,{className:t,idSection:i,background:a,children:so(Gf,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});import Qf,{memo as Xf}from"react";import{ArrowDownIcon as qf}from"@heroicons/react/20/solid";import Yf from"html-react-parser";import{Fragment as js,jsx as $,jsxs as qe}from"react/jsx-runtime";var Zf=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return qe(js,{children:[$("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:qe("picture",{children:[$("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),$("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),qe("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[$("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}),qe("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&qe(js,{children:[$(le,{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&&$("span",{className:"flex-none leading-none",children:"\xB7"})]}),$("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Mi=Xf(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(c,d,u)=>{c?.preventDefault(),c?.stopPropagation(),a?a(d):window.open(u,"_blank")},p=(c,d)=>qe("div",{children:[$("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",c?.newsList?.length<4?"md:justify-center":""),children:c?.newsList?.map((u,P)=>$("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:$("div",{onClick:S=>m(S,u?.id,u?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",c?.classNameItem),children:$(Zf,{news:u})},u?.id)},P))}),c?.isShowBtn&&$("div",{className:"mt-8 flex w-full items-center justify-center",children:qe(De,{action:c?.btnUrl||i&&(()=>i?.(d)),newTab:c?.isNewTab,variant:"outline",disabled:c?.isLoading,children:[Yf(c.btnName||"Xem th\xEAm"),c?.isLoading?$(qt,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!c?.btnUrl&&$(qf,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},c?.title||d);return qe(Qf.Fragment,{children:[e&&$(x,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?qe(rt,{defaultValue:t[0]?.title,children:[qe(tt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[$(ot,{className:"mb-6 text-center",children:$(Be,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((c,d)=>$(Ve,{value:c.title,children:c.title},c.title+d))})}),$(at,{}),$(it,{})]}),t.map((c,d)=>$(Oe,{value:c.title,children:p(c,d)},c.title+d))]}):t?.length===1&&t[0]&&p(t[0],0)]})});import{Fragment as tg,jsx as Wo}from"react/jsx-runtime";var Kf=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return Wo(Mi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return Wo(Mi,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Jf=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>Wo(tg,{children:Kf({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),eg=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>Wo(B,{className:r(a),background:i,children:Wo(Jf,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as ng,jsx as ye,jsxs as Ii}from"react/jsx-runtime";var Us=({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&&ye(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&ye(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),og=({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&&ye(x,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&ye(w,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),ye("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&ye(U,{ratio:4/3,children:ye("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),ag=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return ye(Us,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return ye(og,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return ye(Us,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},ig=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>ye(ng,{children:ag({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),rg=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>ye(B,{className:t,idSection:a,background:o,children:ye(ig,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import Qs from"react";import Ai from"html-react-parser";import{jsx as Rt,jsxs as Xs}from"react/jsx-runtime";var sg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Xs("div",{className:" text-center",children:[Rt("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:Ai(t??"")}),Rt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Ai(o??"")}),a&&Rt("div",{className:"mt-2 text-sm text-gray-500",children:Ai(a??"")})]})},Sa=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Xs(Qs.Fragment,{children:[t&&Rt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Rt("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,i)=>Rt(Qs.Fragment,{children:Rt(sg,{metric:a})},i))}),o&&Rt(w,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import qs from"react";import Li from"html-react-parser";import{jsx as Tt,jsxs as Ys}from"react/jsx-runtime";var lg=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return Ys("div",{className:" text-center md:text-left",children:[Tt("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:Li(t??"")}),Tt("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:Li(o??"")}),a&&Tt("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:Li(a??"")})]})},Ei=({dataMetrics:e,dataButtons:o,dataHeading:t})=>Ys(qs.Fragment,{children:[t&&Tt(x,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&Tt("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,i)=>Tt(qs.Fragment,{children:Tt(lg,{metric:a})},i))}),o&&Tt(w,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});import{Fragment as pg,jsx as lo}from"react/jsx-runtime";var mg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return lo(Sa,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return lo(Ei,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return lo(Sa,{dataMetrics:o,dataButtons:a,dataHeading:e})}},cg=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>lo(pg,{children:mg({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),dg=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:i,template:n})=>lo(B,{className:r(i),background:a,children:lo(cg,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});import{forwardRef as fg}from"react";import{jsx as Zs,jsxs as ug}from"react/jsx-runtime";var gg=fg(({className:e,title:o,children:t},a)=>ug("div",{className:e,ref:a,children:[Zs("div",{className:"font-semibold text-gray-800",children:o}),Zs("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 yg}from"react";import{Fragment as hg,jsx as Ut,jsxs as xg}from"react/jsx-runtime";var vg=()=>Ut("div",{className:"p-3 border rounded-lg",children:xg("div",{className:"flex items-center gap-3",children:[Ut(xa,{className:"rounded-md h-9 w-9 "}),Ut("div",{className:"flex-1",children:Ut(xa,{className:"w-48 h-5 "})}),Ut("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function bg(){return Ut(hg,{children:Array.from({length:4}).map((e,o)=>Ut(vg,{},o))})}var Ks=bg;import{Fragment as Pg,jsx as pt,jsxs as Hi}from"react/jsx-runtime";var wg=({paymentMethod:e})=>pt(ba,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:Hi("div",{className:"flex items-center space-x-3",children:[pt("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),Hi("div",{className:"grid grid-cols-1 gap-1",children:[pt("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&pt("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&pt("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Ng=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=yg(s=>a?.(s),[a]);return Hi(Pg,{children:[e&&pt("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?pt(Ks,{}):pt(va,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>pt(wg,{paymentMethod:s},s.id))})]})};import{forwardRef as Js}from"react";import{jsx as tl}from"react/jsx-runtime";var Cg=Js(({children:e,className:o},t)=>tl("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),el=Js(({children:e,className:o,...t},a)=>tl(Cg,{ref:a,className:o,...t,children:e}));el.displayName="Payment";import{forwardRef as Rg}from"react";import{jsx as ol,jsxs as kg}from"react/jsx-runtime";var Tg=Rg(({className:e,children:o},t)=>kg("div",{className:r("",e),ref:t,children:[ol("hr",{className:"mb-5 h-px w-full bg-gray-500"}),ol("div",{className:"flex w-full items-center space-x-3",children:o})]}));import{forwardRef as Sg}from"react";import{jsx as Mg}from"react/jsx-runtime";var Dg=Sg(({className:e,children:o},t)=>Mg("div",{className:r("pb-5",e),ref:t,children:o}));import{forwardRef as Fg}from"react";import{CheckBadgeIcon as Ig,XCircleIcon as Ag}from"@heroicons/react/20/solid";import{jsx as ae,jsxs as mo}from"react/jsx-runtime";var Lg=({iconPaymentResult:e,message:o="",title:t=""})=>mo("div",{className:"grid grid-cols-1 gap-4",children:[mo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ae("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ae("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ae(Ho,{message:o,type:"success",icon:ae(Ig,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Eg=({iconPaymentResult:e,message:o="",title:t=""})=>mo("div",{className:"grid grid-cols-1 gap-4",children:[mo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ae("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ae("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),ae(Ho,{message:o,type:"error",icon:ae(Ag,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Hg=({iconPaymentResult:e,message:o="",title:t=""})=>mo("div",{className:"grid grid-cols-1 gap-4",children:[mo("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&ae("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&ae("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&ae(Ho,{message:o,type:"neutral"})]}),al=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return ae(Lg,{status:e,title:o,message:t,iconPaymentResult:a||ae("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return ae(Eg,{status:e,title:o,message:t,iconPaymentResult:a||ae("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return ae(Hg,{status:e,title:o,message:t,iconPaymentResult:a||ae("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};import{jsx as _g,jsxs as Bg}from"react/jsx-runtime";var zg=Fg(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>Bg("div",{ref:s,className:r("rounded-lg p-4",e),children:[_g(al,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));import{forwardRef as Og,useEffect as Wg}from"react";import{jsx as Fi,jsxs as Vg}from"react/jsx-runtime";var Da=({content:e})=>Vg("picture",{children:[Fi("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),Fi("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),Fi(De,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});import{jsx as $o,jsxs as jg}from"react/jsx-runtime";var $g=({template:e,content:o})=>{switch(e){case 1:return $o(Da,{content:o});default:return $o(Da,{content:o})}},Gg=Og(({template:e,content:o},t)=>(Wg(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),jg("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[$o("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:$o("div",{className:"content",children:$g({template:e,content:o})})}),$o("style",{children:`
|
|
297
297
|
.container-topbar .content {
|
|
298
298
|
width: 100%;
|
|
299
299
|
aspect-ratio: 1088/50;
|
|
@@ -311,7 +311,7 @@ import*as go from"react";import*as we from"@radix-ui/react-accordion";import{Che
|
|
|
311
311
|
aspect-ratio: 720/88;
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
`})]})));import qg from"color";import Xg from"tailwindcss/plugin.js";var ol={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 al={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var il={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var rl={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var nl={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var sl={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var ll={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var ml={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var cl={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var dl={white:"#ffffff",black:"#000000",blue:al,green:il,pink:rl,purple:nl,red:sl,yellow:ll,gray:cl,orange:ml};var zi={...dl};var pl={"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 Ye="250ms",fl={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Ye},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Ye},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Ye},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Ye},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Ye},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Ye},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Ye},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Ye},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Ye},".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":Ye}};var gl={".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 ul={".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 vl={...gl,...fl,...ul};import{flatten as Ug}from"flat";function Qg(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 bl=e=>Qg(Ug(e,{safe:!0,delimiter:"-"}));var Yg=e=>{let o={utilities:{},colors:{}},t=bl(zi),a=pl,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,c,d]=qg(s).rgb().array(),m=`--${e}-${n}`;o.utilities[i][m]=`${l} ${c} ${d}`,o.colors[n]=`rgb(var(${m}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,d])=>{let m=`${l}-${c}`;o.utilities[i][m]=d});else{let c=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=c}}),o},Zg=()=>{let e="mobase",o=Yg(e);return Xg(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...vl})},{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:{...zi,...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)`},...ol}}})};import{Fragment as Jg,jsx as k,jsxs as eu}from"react/jsx-runtime";var Kg=eu(Jg,{children:[k("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"}),k("meta",{name:"distribution",content:"Global"}),k("meta",{name:"author",content:"V\xED MoMo"}),k("meta",{property:"fb:app_id",content:"320653355376196"}),k("meta",{property:"fb:pages",content:"138010322921640"}),k("link",{rel:"shortcut icon",href:"/favicon.ico"}),k("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),k("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),k("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),k("meta",{name:"language",content:"vietnamese"}),k("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),k("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),k("meta",{name:"RATING",content:"GENERAL"}),k("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),k("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),k("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),k("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),k("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),k("link",{rel:"dns-prefetch",href:"//facebook.com"}),k("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),k("link",{rel:"dns-prefetch",href:"//www.google.com"}),k("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),k("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),k("link",{rel:"preconnect",href:"//connect.facebook.net"}),k("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),k("link",{rel:"preconnect",href:"//www.google-analytics.com"}),k("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),k("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),k("link",{rel:"preconnect",href:"//www.google.com"}),k("link",{rel:"preconnect",href:"//www.google.com.vn"}),k("link",{rel:"preconnect",href:"//www.googleadservices.com"}),k("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
314
|
+
`})]})));import Xg from"color";import qg from"tailwindcss/plugin.js";var il={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 rl={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var nl={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var sl={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var ll={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var ml={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var cl={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var dl={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var pl={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var fl={white:"#ffffff",black:"#000000",blue:rl,green:nl,pink:sl,purple:ll,red:ml,yellow:cl,gray:pl,orange:dl};var zi={...fl};var gl={"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 Ye="250ms",ul={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Ye},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Ye},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Ye},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Ye},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Ye},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Ye},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Ye},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Ye},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Ye},".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":Ye}};var vl={".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 bl={".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 xl={...vl,...ul,...bl};import{flatten as Ug}from"flat";function Qg(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 hl=e=>Qg(Ug(e,{safe:!0,delimiter:"-"}));var Yg=e=>{let o={utilities:{},colors:{}},t=hl(zi),a=gl,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,m,p]=Xg(s).rgb().array(),c=`--${e}-${n}`;o.utilities[i][c]=`${l} ${m} ${p}`,o.colors[n]=`rgb(var(${c}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([m,p])=>{let c=`${l}-${m}`;o.utilities[i][c]=p});else{let m=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=m}}),o},Zg=()=>{let e="mobase",o=Yg(e);return qg(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...xl})},{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:{...zi,...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)`},...il}}})};import{Fragment as Jg,jsx as k,jsxs as eu}from"react/jsx-runtime";var Kg=eu(Jg,{children:[k("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"}),k("meta",{name:"distribution",content:"Global"}),k("meta",{name:"author",content:"V\xED MoMo"}),k("meta",{property:"fb:app_id",content:"320653355376196"}),k("meta",{property:"fb:pages",content:"138010322921640"}),k("link",{rel:"shortcut icon",href:"/favicon.ico"}),k("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),k("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),k("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),k("meta",{name:"language",content:"vietnamese"}),k("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),k("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),k("meta",{name:"RATING",content:"GENERAL"}),k("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),k("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),k("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),k("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),k("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),k("link",{rel:"dns-prefetch",href:"//facebook.com"}),k("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),k("link",{rel:"dns-prefetch",href:"//www.google.com"}),k("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),k("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),k("link",{rel:"preconnect",href:"//connect.facebook.net"}),k("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),k("link",{rel:"preconnect",href:"//www.google-analytics.com"}),k("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),k("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),k("link",{rel:"preconnect",href:"//www.google.com"}),k("link",{rel:"preconnect",href:"//www.google.com.vn"}),k("link",{rel:"preconnect",href:"//www.googleadservices.com"}),k("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
315
315
|
"@context": "https://schema.org/",
|
|
316
316
|
"@type": "WebSite",
|
|
317
317
|
"@id":"https://www.momo.vn/#website",
|
|
@@ -356,5 +356,5 @@ import*as go from"react";import*as we from"@radix-ui/react-accordion";import{Che
|
|
|
356
356
|
"https://www.linkedin.com/company/momo-mservice/",
|
|
357
357
|
"https://github.com/momo-wallet"
|
|
358
358
|
]
|
|
359
|
-
}`}})]});export{
|
|
359
|
+
}`}})]});export{kt as Accordion,Mt as AccordionContent,St as AccordionItem,Dt as AccordionTrigger,De as ActionButton,rc as AlertDialog,kr as AlertDialogAction,Sr as AlertDialogCancel,Nr as AlertDialogContent,Tr as AlertDialogDescription,Cr as AlertDialogFooter,Pr as AlertDialogHeader,Ka as AlertDialogOverlay,wr as AlertDialogPortal,Rr as AlertDialogTitle,nc as AlertDialogTrigger,U as AspectRatio,mp as Badge,Mm as BlogSection,ji as Breadcrumb,Zi as BreadcrumbEllipsis,Qi as BreadcrumbItem,Xi as BreadcrumbLink,Ui as BreadcrumbList,qi as BreadcrumbPage,Yi as BreadcrumbSeparator,Pe as Button,rg as CTASection,ea as Calendar,Ho as Callout,un as Card,hn as CardContent,xn as CardDescription,yn as CardFooter,vn as CardHeader,bn as CardTitle,Ie as Carousel,Ae as CarouselContent,rr as CarouselDots,Le as CarouselItem,Kt as CarouselNext,Zt as CarouselPrevious,Ko as Checkbox,va as ChoiceboxGroup,ba as ChoiceboxGroupItem,_n as ChoiceboxMultiItem,$d as Combobox,Wd as ComboboxContent,Od as ComboboxTrigger,ui as Command,_d as CommandDialog,Pn as CommandEmpty,Cn as CommandGroup,wn as CommandInput,Tn as CommandItem,Nn as CommandList,Rn as CommandSeparator,kn as CommandShortcut,Ap as Comment,qm as DatePicker,ic as DateSelect,Je as Dialog,ft as DialogBody,Ha as DialogClose,_e as DialogContent,$i as DialogDescription,Wi as DialogFooter,jo as DialogHeader,Fa as DialogOverlay,Oi as DialogPortal,It as DialogQr,Uo as DialogTitle,Ea as DialogTrigger,ef as DropdownMenu,vs as DropdownMenuCheckboxItem,gs as DropdownMenuContent,of as DropdownMenuGroup,us as DropdownMenuItem,xs as DropdownMenuLabel,af as DropdownMenuPortal,nf as DropdownMenuRadioGroup,bs as DropdownMenuRadioItem,hs as DropdownMenuSeparator,ys as DropdownMenuShortcut,rf as DropdownMenuSub,fs as DropdownMenuSubContent,ps as DropdownMenuSubTrigger,tf as DropdownMenuTrigger,jf as FAQSection,If as FeatureSection,Hd as Footer,Yp as Form,ms as FormControl,cs as FormDescription,Zp as FormField,ss as FormItem,ls as FormLabel,ds as FormMessage,wc as GuideSection,dn as HeaderNavigation,Va as Heading,Wa as HeadingGroup,Oa as HeadingSub,Ba as HeadingTagline,Nf as HeroSection,ot as HorizontalContent,it as HorizontalNext,at as HorizontalPrevious,tt as HorizontalScroll,cf as HowItWorksSection,oe as IconButton,hi as LightBoxGalleryContent,xi as LightboxGallery,ip as LightboxThumbnail,dg as MetricsSection,la as NavigationMenu,fa as NavigationMenuContent,ca as NavigationMenuItem,Io as NavigationMenuLink,ma as NavigationMenuList,pa as NavigationMenuTrigger,eg as NewsSection,zr as Pagination,el as Payment,gg as PaymentInvoice,Ng as PaymentMethods,zg as PaymentResult,Dg as PaymentResultContent,Tg as PaymentResultFooter,ho as Popover,eo as PopoverContent,yo as PopoverTrigger,Wp as ProgressSteps,Op as ProgressStepsItem,Vp as ProgressStepsItemTrigger,Gn as Progressbar,en as RadioGroup,tn as RadioGroupItem,yi as ReadMoreLite,ep as SearchBar,Po as Select,oo as SelectContent,Ro as SelectGroup,ut as SelectItem,ur as SelectLabel,Ya as SelectScrollDownButton,qa as SelectScrollUpButton,vr as SelectSeparator,to as SelectTrigger,Co as SelectValue,Kg as SiteMeta,xa as Skeleton,Qn as Slider,kf as SocialProofSection,gp as Spinner,Qr as Stepper,Zr as Switch,rt as Tabs,Oe as TabsContent,Be as TabsList,Ve as TabsTrigger,Of as TestimonialSection,Dc as TextArea,le as TextButton,Zc as TextInput,$r as ToastAction,Vc as Toaster,Wc as Tooltip,Gr as TooltipArrow,jr as TooltipContent,Oc as TooltipProvider,$c as TooltipTrigger,Gg as Topbar,Vn as badgeVariants,ze as buttonVariants,Zg as mobaseTW,da as navigationMenuTriggerStyle,or as textButtonVariants,Vr as toast,_o as useFormField,ii as useToast};
|
|
360
360
|
//# sourceMappingURL=index.js.map
|