@momo-webplatform/mobase 0.2.49 → 0.2.50
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 +120 -13
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +239 -122
- package/dist/esm/index.d.ts +248 -131
- package/dist/esm/index.js +120 -13
- 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 Rt from"react";import*as re from"@radix-ui/react-accordion";import{ChevronDownIcon as qn}from"@heroicons/react/20/solid";import*as Qn from"react";import{twMerge as Xn}from"tailwind-merge";var Se={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 Ma={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 Ct=[{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"}],Mo=[{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 j={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};function r(...e){return Xn(e)}import{jsx as ft,jsxs as Zn}from"react/jsx-runtime";var Ze=Rt.forwardRef(({className:e,...t},o)=>ft(re.Root,{ref:o,...t}));Ze.displayName="AccordionRoot";var Ke=Rt.forwardRef(({className:e,...t},o)=>ft(re.Item,{ref:o,className:r("border-b border-gray-200",e),...t}));Ke.displayName="AccordionItem";var Ye=Rt.forwardRef(({className:e,children:t,...o},a)=>ft(re.Header,{className:"flex",children:Zn(re.Trigger,{ref:a,className:r("flex flex-1 items-center text-left justify-between py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 text-gray-900",e),...o,children:[t,ft(qn,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));Ye.displayName=re.Trigger.displayName;var Je=Rt.forwardRef(({className:e,children:t,...o},a)=>ft(re.Content,{ref:a,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...o,children:ft("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:t})}));Je.displayName=re.Content.displayName;import*as Ia from"react";import{Slot as Jn}from"@radix-ui/react-slot";import{cva as es}from"class-variance-authority";import{jsx as ne,jsxs as Yn}from"react/jsx-runtime";var Kn=({className:e})=>Yn("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"})]}),Zt=Kn;import{Fragment as os,jsx as Io,jsxs as ts}from"react/jsx-runtime";var he=es("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"}}),se=Ia.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let f=a?Jn:"button",p=r(he({variant:t,size:o,className:e}),{"cursor-wait":i});return Io(os,{children:a?Io(f,{className:p,type:"button",disabled:n,ref:l,...s,children:s.children}):ts(f,{className:p,type:"button",disabled:n,ref:l,...s,children:[i&&Io(Zt,{className:`${o==="default"||o==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});se.displayName="Button";import*as Tt from"react";import*as A from"@radix-ui/react-dialog";import{XMarkIcon as as}from"@heroicons/react/16/solid";import{jsx as De,jsxs as Ao}from"react/jsx-runtime";var et=A.Root,Lo=A.Trigger,Aa=A.Portal,is=A.Close,Eo=Tt.forwardRef(({className:e,...t},o)=>De(A.Overlay,{ref:o,className:r("fixed inset-0 z-50 bg-black/60 !duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Eo.displayName=A.Overlay.displayName;var ze=Tt.forwardRef(({className:e,positionRightCloseBtn:t,hideCloseBtn:o=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...f},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(-32px_+_100vh)] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},g={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},v={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},S=[c.base,c[i],g[a],v[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 Ao(Aa,{children:[De(Eo,{}),Ao(A.Content,{ref:p,className:r(...S),...f,children:[l,!o&&Ao(A.Close,{className:r("absolute md:top-4 top-2 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 text-gray-900 w-8 h-8 flex justify-center items-center rounded-full before:opacity-0 hover:before:opacity-100 before:transition-opacity before:z-[-1] before:content-[''] before:absolute before:inset-0 before:rounded-full before:select-none before:left-0 before:top-0 before:bg-gray-200 left-3 md:left-auto md:right-4",t&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[De(as,{className:"h-5 w-5 text-gray-700"}),De("span",{className:"sr-only",children:"Close"})]})]})]})});ze.displayName=A.Content.displayName;var La=({className:e,...t})=>De("div",{className:r("dialog-header py-2 md:py-4 h-12 md:h-16 px-10 md:px-12 items-center justify-center flex border-b border-gray-200 w-full shrink-0",e),...t});La.displayName="DialogHeader";var Kt=({className:e,isCondensed:t=!1,...o})=>De("div",{className:r("dialog-body p-6 flex-1 overflow-y-auto",t&&"p-5",e),...o});Kt.displayName="DialogBody";var Ea=({className:e,isDivider:t=!0,...o})=>De("div",{className:r("dialog-footer flex sm:flex-row justify-center [&>*]:basis-1/2 [&>*]:sm:basis-auto sm:justify-end space-x-2 px-6 pb-4 shrink-0",t&&"border-gray-200 border-t py-4",e),...o});Ea.displayName="DialogFooter";var Ha=Tt.forwardRef(({className:e,...t},o)=>De(A.Title,{ref:o,className:r("text-base font-semibold line-clamp-1 max-w-full",e),...t}));Ha.displayName=A.Title.displayName;var Fa=Tt.forwardRef(({className:e,...t},o)=>De(A.Description,{ref:o,className:r("text-sm text-gray-700",e),...t}));Fa.displayName=A.Description.displayName;import{QRCodeSVG as rs}from"qrcode.react";import{Fragment as Ho,jsx as h,jsxs as U}from"react/jsx-runtime";var ns=({img:e="",children:t,isQrForAll:o})=>U(Ho,{children:[h("div",{className:"qrcode__scan__container",children:U("div",{className:"qrcode__scan",children:[h("div",{className:"qrcode__gradient",children:h("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),h("div",{className:"qrcode__border",children:h("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),h("div",{className:"qrcode__image p-4",children:e?h("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):t})]})}),h("div",{className:"mt-4 text-sm text-white",children:o?U(Ho,{children:[h("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),h("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):U(Ho,{children:[h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:h("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",h("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),h("style",{children:`
|
|
1
|
+
import*as It from"react";import*as ne from"@radix-ui/react-accordion";import{ChevronDownIcon as os}from"@heroicons/react/20/solid";import*as es from"react";import{twMerge as ts}from"tailwind-merge";var Ie={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Email:"hotro@momo.vn"}};var Ha={Address:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, Ph\u01B0\u1EDDng T\xE2n Ph\xFA, Qu\u1EADn 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"};var Mt=[{Name:"Facebook",Image:"https://homepage.momocdn.net/styles/desktop/images/social/facebook.svg",Link:"https://www.facebook.com/vimomo"},{Name:"Linkedin",Image:"https://homepage.momocdn.net/styles/desktop/images/social/linkedin.svg",Link:"https://www.linkedin.com/company/momo-mservice/"},{Name:"Youtube",Image:"https://homepage.momocdn.net/styles/desktop/images/social/youtube.svg",Link:"https://www.youtube.com/channel/UCKHHW-qL2JoZqcSNm1jPlqw"}],zo=[{Name:"App Store",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",Link:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"},{Name:"Google Play",Image:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",Link:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong"}];var U={Business:{Phome:"1900636652",Phome_Format:"1900 636 652 (Ph\xED 1.000\u0111/ph\xFAt)",Email:"merchant.care@momo.vn"},Support:{Hotline:"1900545441",Hotline_Format:"1900 5454 41",Phone_Ext_1:"02873065555",Phone_Ext_1_Format:"028.7306.5555",Phone_Ext_2:"02899995555",Phone_Ext_2_Format:"028.9999.5555",Phone_Ext_3:"02855555555",Phone_Ext_3_Format:"028.5555.5555",Email:"hotro@momo.vn"}};function r(...e){return ts(e)}import{jsx as wt,jsxs as as}from"react/jsx-runtime";var tt=It.forwardRef(({className:e,...o},t)=>wt(ne.Root,{ref:t,...o}));tt.displayName="AccordionRoot";var ot=It.forwardRef(({className:e,...o},t)=>wt(ne.Item,{ref:t,className:r("border-b border-gray-200",e),...o}));ot.displayName="AccordionItem";var at=It.forwardRef(({className:e,children:o,...t},a)=>wt(ne.Header,{className:"flex",children:as(ne.Trigger,{ref:a,className:r("flex flex-1 items-center text-left justify-between py-4 font-medium transition-all hover:underline hover:text-pink-600 [&[data-state=open]]:text-pink-600 [&[data-state=open]>svg]:rotate-180 text-gray-900",e),...t,children:[o,wt(os,{className:" h-5 w-5 shrink-0 transition-transform duration-200 ml-1"})]})}));at.displayName=ne.Trigger.displayName;var it=It.forwardRef(({className:e,children:o,...t},a)=>wt(ne.Content,{ref:a,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down text-left ",...t,children:wt("div",{className:r("pb-4 pt-0 text-gray-900 ",e),children:o})}));it.displayName=ne.Content.displayName;import*as _a from"react";import{Slot as ns}from"@radix-ui/react-slot";import{cva as ss}from"class-variance-authority";import{jsx as se,jsxs as rs}from"react/jsx-runtime";var is=({className:e})=>rs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",className:`${e}`,children:[se("path",{opacity:"0.9",fillRule:"evenodd",clipRule:"evenodd",d:"M15 9H19C19.55 9 20 9.45 20 10C20 10.55 19.55 11 19 11H15C14.45 11 14 10.55 14 10C14 9.45 14.45 9 15 9Z",fill:"currentColor"}),se("path",{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.8301 11.634L18.2942 13.634C18.7706 13.909 18.9353 14.5237 18.6603 15C18.3853 15.4763 17.7706 15.641 17.2942 15.366L13.8301 13.366C13.3538 13.091 13.1891 12.4763 13.4641 12C13.7391 11.5237 14.3538 11.359 14.8301 11.634Z",fill:"currentColor"}),se("path",{opacity:"0.25",fillRule:"evenodd",clipRule:"evenodd",d:"M13.366 13.8301L15.366 17.2942C15.641 17.7706 15.4763 18.3853 14.9999 18.6603C14.5236 18.9353 13.9089 18.7706 13.6339 18.2942L11.6339 14.8301C11.3589 14.3538 11.5236 13.7391 11.9999 13.4641C12.4763 13.1891 13.091 13.3538 13.366 13.8301Z",fill:"currentColor"}),se("path",{opacity:"0.3",fillRule:"evenodd",clipRule:"evenodd",d:"M11 15V19C11 19.55 10.55 20 10 20C9.45 20 9 19.55 9 19V15C9 14.45 9.45 14 10 14C10.55 14 11 14.45 11 15Z",fill:"currentColor"}),se("path",{opacity:"0.35",fillRule:"evenodd",clipRule:"evenodd",d:"M8.36597 14.8301L6.36597 18.2942C6.09097 18.7706 5.47626 18.9353 4.99994 18.6603C4.52363 18.3853 4.35892 17.7706 4.63392 17.2942L6.63392 13.8301C6.90892 13.3538 7.52363 13.1891 7.99994 13.4641C8.47626 13.7391 8.64097 14.3538 8.36597 14.8301Z",fill:"currentColor"}),se("path",{opacity:"0.4",fillRule:"evenodd",clipRule:"evenodd",d:"M6.16986 13.366L2.70576 15.366C2.22945 15.641 1.61474 15.4763 1.33974 15C1.06474 14.5237 1.22945 13.909 1.70576 13.634L5.16986 11.634C5.64618 11.359 6.26089 11.5237 6.53589 12C6.81089 12.4763 6.64618 13.091 6.16986 13.366Z",fill:"currentColor"}),se("path",{opacity:"0.45",fillRule:"evenodd",clipRule:"evenodd",d:"M5 11H1C0.45 11 0 10.55 0 10C0 9.45 0.45 9 1 9H5C5.55 9 6 9.45 6 10C6 10.55 5.55 11 5 11Z",fill:"currentColor"}),se("path",{opacity:"0.5",fillRule:"evenodd",clipRule:"evenodd",d:"M5.16986 8.36603L1.70576 6.36603C1.22945 6.09103 1.06474 5.47632 1.33974 5C1.61474 4.52369 2.22945 4.35898 2.70576 4.63398L6.16986 6.63398C6.64618 6.90898 6.81089 7.52369 6.53589 8C6.26089 8.47632 5.64618 8.64103 5.16986 8.36603Z",fill:"currentColor"}),se("path",{opacity:"0.55",fillRule:"evenodd",clipRule:"evenodd",d:"M6.63403 6.16986L4.63403 2.70576C4.35903 2.22945 4.52374 1.61474 5.00006 1.33974C5.47637 1.06474 6.09108 1.22945 6.36608 1.70576L8.36608 5.16986C8.64108 5.64618 8.47637 6.26089 8.00006 6.53589C7.52374 6.81089 6.90903 6.64618 6.63403 6.16986Z",fill:"currentColor"}),se("path",{opacity:"0.65",fillRule:"evenodd",clipRule:"evenodd",d:"M9 5L9 1C9 0.45 9.45 0 10 0C10.55 0 11 0.45 11 1V5C11 5.55 10.55 6 10 6C9.45 6 9 5.55 9 5Z",fill:"currentColor"}),se("path",{opacity:"0.75",fillRule:"evenodd",clipRule:"evenodd",d:"M11.634 5.16986L13.634 1.70576C13.909 1.22945 14.5237 1.06474 15.0001 1.33974C15.4764 1.61474 15.6411 2.22945 15.3661 2.70576L13.3661 6.16986C13.0911 6.64618 12.4764 6.81089 12.0001 6.53589C11.5237 6.26089 11.359 5.64618 11.634 5.16986Z",fill:"currentColor"}),se("path",{opacity:"0.85",fillRule:"evenodd",clipRule:"evenodd",d:"M13.8301 6.63397L17.2942 4.63397C17.7706 4.35897 18.3853 4.52368 18.6603 5C18.9353 5.47631 18.7706 6.09102 18.2942 6.36602L14.8301 8.36602C14.3538 8.64102 13.7391 8.47631 13.4641 8C13.1891 7.52368 13.3538 6.90897 13.8301 6.63397Z",fill:"currentColor"})]}),Nt=is;import{Fragment as ms,jsx as Bo,jsxs as ls}from"react/jsx-runtime";var we=ss("inline-flex items-center justify-center whitespace-nowrap rounded-lg text-sm font-bold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 px-4",sm:"h-8 px-3 text-sm rounded-md",lg:"h-12 px-4 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),le=_a.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isLoading:i=!1,isDisabled:n=!1,...s},l)=>{let d=a?ns:"button",p=r(we({variant:o,size:t,className:e}),{"cursor-wait":i});return Bo(ms,{children:a?Bo(d,{className:p,type:"button",disabled:n,ref:l,...s,children:s.children}):ls(d,{className:p,type:"button",disabled:n,ref:l,...s,children:[i&&Bo(Nt,{className:`${t==="default"||t==="sm"?"w-4 h-4":"w-5 h-5"} animate-spin-loading mr-2`}),s.children]})})});le.displayName="Button";import*as At from"react";import*as E from"@radix-ui/react-dialog";import{XMarkIcon as cs}from"@heroicons/react/16/solid";import{jsx as Ae,jsxs as Vo}from"react/jsx-runtime";var rt=E.Root,Oo=E.Trigger,Fa=E.Portal,ds=E.Close,Wo=At.forwardRef(({className:e,...o},t)=>Ae(E.Overlay,{ref:t,className:r("fixed inset-0 z-50 bg-black/60 !duration-300 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o}));Wo.displayName=E.Overlay.displayName;var Oe=At.forwardRef(({className:e,positionRightCloseBtn:o,hideCloseBtn:t=!1,size:a="md",position:i="center",height:n="auto",isFull:s=!1,children:l,...d},p)=>{let m={base:"fixed z-50 flex bg-white shadow-lg sm:rounded-xl bg-white text-gray-900 w-full max-w-[calc(-64px_+_100vw)] max-h-[calc(-64px_+_100vh)] flex-col",center:"left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",bottom:"!duration-300 bottom-0 sm:bottom-1/2 left-1/2 rounded-t-xl sm:translate-y-1/2 data-[state=closed]:animate-out -translate-x-1/2 data-[state=open]:animate-in data-[state=open]:slide-in-from-left-1/2 ease-in-out data-[state=open]:slide-in-from-bottom-2/3 data-[state=closed]:slide-out-to-bottom-2/3 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 max-w-full max-h-[calc(-32px_+_100vh)] sm:max-h-[calc(-64px_+_100vh)] sm:max-w-[calc(-64px_+_100vw)]",left:"!duration-300 max-h-screen !h-full rounded-r-xl sm:rounded-l-none top-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-left data-[state=closed]:animate-out data-[state=closed]:slide-out-to-left ease-in-out",right:"!duration-300 !h-full rounded-l-xl sm:rounded-r-none max-h-screen top-0 right-0 data-[state=open]:animate-in data-[state=open]:slide-in-from-right data-[state=closed]:animate-out data-[state=closed]:slide-out-to-right ease-in-out"},g={sm:"w-80 sm:w-80",md:"w-[512px] sm:w-[512px]",lg:"w-[672px] sm:w-[672px]",xl:"w-[1024px] sm:-[1024px]"},u={auto:"h-auto sm:h-auto",small:"h-[480px] sm:h-[480px]",large:"h-[640px] sm:h-[640px]",full:"h-full"},R=[m.base,m[i],g[a],u[n],s&&"h-full max-h-screen max-w-full w-full rounded-none sm:rounded-xl sm:max-h-[calc(-64px_+_100vh)]",e];return Vo(Fa,{children:[Ae(Wo,{}),Vo(E.Content,{ref:p,className:r(...R),...d,children:[l,!t&&Vo(E.Close,{className:r("absolute md:top-4 top-2 focus:outline-none focus:ring-0 disabled:pointer-events-none data-[state=open]:bg-gray-100 data-[state=open]:text-gray-700 text-gray-900 w-8 h-8 flex justify-center items-center rounded-full before:opacity-0 hover:before:opacity-100 before:transition-opacity before:z-[-1] before:content-[''] before:absolute before:inset-0 before:rounded-full before:select-none before:left-0 before:top-0 before:bg-gray-200 left-3 md:left-auto md:right-4",o&&"left-auto right-3 md:right-4"),title:"\u0110\xF3ng",children:[Ae(cs,{className:"h-5 w-5 text-gray-700"}),Ae("span",{className:"sr-only",children:"Close"})]})]})]})});Oe.displayName=E.Content.displayName;var za=({className:e,...o})=>Ae("div",{className:r("dialog-header py-2 md:py-4 h-12 md:h-16 px-10 md:px-12 items-center justify-center flex border-b border-gray-200 w-full shrink-0",e),...o});za.displayName="DialogHeader";var ro=({className:e,isCondensed:o=!1,...t})=>Ae("div",{className:r("dialog-body p-6 flex-1 overflow-y-auto",o&&"p-5",e),...t});ro.displayName="DialogBody";var Ba=({className:e,isDivider:o=!0,...t})=>Ae("div",{className:r("dialog-footer flex sm:flex-row justify-center [&>*]:basis-1/2 [&>*]:sm:basis-auto sm:justify-end space-x-2 px-6 pb-4 shrink-0",o&&"border-gray-200 border-t py-4",e),...t});Ba.displayName="DialogFooter";var Va=At.forwardRef(({className:e,...o},t)=>Ae(E.Title,{ref:t,className:r("text-base font-semibold line-clamp-1 max-w-full",e),...o}));Va.displayName=E.Title.displayName;var Oa=At.forwardRef(({className:e,...o},t)=>Ae(E.Description,{ref:t,className:r("text-sm text-gray-700",e),...o}));Oa.displayName=E.Description.displayName;import{QRCodeSVG as ps}from"qrcode.react";import{Fragment as $o,jsx as h,jsxs as Q}from"react/jsx-runtime";var fs=({img:e="",children:o,isQrForAll:t})=>Q($o,{children:[h("div",{className:"qrcode__scan__container",children:Q("div",{className:"qrcode__scan",children:[h("div",{className:"qrcode__gradient",children:h("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),h("div",{className:"qrcode__border",children:h("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),h("div",{className:"qrcode__image p-4",children:e?h("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy"}):o})]})}),h("div",{className:"mt-4 text-sm text-white",children:t?Q($o,{children:[h("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",width:255,height:32,className:"mx-auto",alt:"QR all"}),h("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):Q($o,{children:[h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"mr-1 inline h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:h("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",h("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})}),h("style",{children:`
|
|
2
2
|
.qrcode__scan__container {
|
|
3
3
|
padding: 15px;
|
|
4
4
|
background-color: white;
|
|
@@ -67,7 +67,7 @@ import*as Rt from"react";import*as re from"@radix-ui/react-accordion";import{Che
|
|
|
67
67
|
transform: translate3d(0, 30%, 0);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
`})]}),tt=({className:e,children:t,title:o,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...f})=>h(et,{...f,children:h(ze,{className:r("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:h(Kt,{className:"p-0",children:U("div",{className:"flex flex-row flex-wrap",children:[h("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:t||U("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[U("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),U("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),h("div",{className:"mt-1 text-gray-500 ",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),U("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),U("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),h("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),U("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),U("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),U("div",{className:"mt-1 text-gray-500 ",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),h("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:U("div",{className:"px-5 py-10 text-center",children:[o&&h("h4",{className:"mb-5 text-base font-semibold text-white",children:o}),U("div",{className:"relative",children:[l&&h("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:h("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),h(ns,{img:i,isQrForAll:l,children:n&&h(rs,{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 fs}from"react";import{useEffect as ss,useLayoutEffect as ls,useState as ms}from"react";import cs from"ua-parser-js";var ds=()=>cs().device.type==="mobile",ps=typeof window<"u"?ls:ss,_a=()=>{let[e,t]=ms(!1);return ps(()=>{t(ds())},[]),e};import{Fragment as gs,jsx as Yt,jsxs as us}from"react/jsx-runtime";var kt=({action:e,newTab:t,offset:o,dialogQrProps:a,className:i,children:n,...s})=>{let[l,f]=fs(!1),p=_a(),c=!!a?.qrLink,g=()=>{let B=c?a?.qrLink:e;return typeof B=="string"?B.trim():""},v=()=>{let B=g();!B&&typeof e!="function"||(typeof e=="function"?e():window.open(B,t?"_blank":"_self"))},S=(B,V=0)=>{let F=document.querySelector(B);if(!F)return;let Do=F.getBoundingClientRect().top+window.scrollY-V;window.scrollTo({top:Do,behavior:"smooth"})},H=()=>{typeof e=="string"&&e.startsWith("#")?S(e,o):v()},G=()=>us(gs,{children:[Yt(se,{...s,className:i,onClick:()=>f(!0),"data-name":"button-action-with-qr",children:n}),Yt(tt,{...a,open:l,onOpenChange:()=>f(!1),qrLink:a?.qrLink||""})]});return c?p?a?.isQrForAll?G():Yt(se,{...s,className:i,onClick:v,"data-name":"button-action-with-qr",children:n}):G():Yt(se,{...s,onClick:H,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as gt from"react";import{ChevronRightIcon as vs,DotsHorizontalIcon as bs}from"@radix-ui/react-icons";import{Slot as xs}from"@radix-ui/react-slot";import{jsx as Me,jsxs as hs}from"react/jsx-runtime";var za=gt.forwardRef(({className:e,...t},o)=>Me("nav",{ref:o,"aria-label":"breadcrumb",className:r("",e),...t}));za.displayName="Breadcrumb";var Ba=gt.forwardRef(({className:e,...t},o)=>Me("ol",{ref:o,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...t}));Ba.displayName="BreadcrumbList";var Va=gt.forwardRef(({className:e,...t},o)=>Me("li",{ref:o,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...t}));Va.displayName="BreadcrumbItem";var Oa=gt.forwardRef(({asChild:e,className:t,...o},a)=>Me(e?xs:"a",{ref:a,className:r("transition-colors hover:text-foreground",t),...o}));Oa.displayName="BreadcrumbLink";var Wa=gt.forwardRef(({className:e,...t},o)=>Me("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...t}));Wa.displayName="BreadcrumbPage";var $a=({children:e,className:t,...o})=>Me("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",t),...o,children:e??Me(vs,{className:"w-2 h-2"})});$a.displayName="BreadcrumbSeparator";var Ga=({className:e,...t})=>hs("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...t,children:[Me(bs,{className:"w-4 h-4 text-gray-900"}),Me("span",{className:"sr-only",children:"More"})]});Ga.displayName="BreadcrumbElipssis";import*as eo from"react";import{enUS as Ps,vi as Cs}from"date-fns/locale";import{DayPicker as Rs}from"react-day-picker";import{ChevronLeft as Ts,ChevronRight as ks}from"lucide-react";import Ss from"lunisolar";import*as ja from"react";import*as St from"@radix-ui/react-checkbox";import{CheckIcon as ys}from"@heroicons/react/16/solid";import{cva as Ua}from"class-variance-authority";import{jsx as Fo}from"react/jsx-runtime";var ws=Ua("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"}}),Ns=Ua("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Jt=ja.forwardRef(({className:e,size:t,...o},a)=>Fo(St.Root,{ref:a,className:r(ws({size:t}),e),...o,children:Fo(St.Indicator,{className:r("flex items-center justify-center text-current"),children:Fo(ys,{className:r(Ns({size:t}))})})}));Jt.displayName=St.Root.displayName;import{Fragment as Ls,jsx as ye,jsxs as _o}from"react/jsx-runtime";var Ds=({date:e,cusContent:t})=>{let o=null;return o=Ss(e).lunar,_o(Ls,{children:[t?t(e):e.getDate(),o&&ye("span",{className:"text-[8px] absolute top-1 right-0.5 leading-none luna-date hidden group-[.show-luna]:block",children:o.day})]})},Ms={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let t=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][t]}};function Is({isShow:e,setIsShow:t,lang:o}){let a=eo.useId();return ye("div",{className:"w-full p-3 pt-0",children:_o("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[ye(Jt,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&t(i)}}),ye("label",{htmlFor:`check-show-luna-${a}`,className:"text-sm text-gray-900 peer-disabled:text-gray-400 leading-none peer-disabled:cursor-default cursor-pointer",children:o==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var As=e=>e.getDay()===0||e.getDay()===6;function to({className:e,classNames:t,showOutsideDays:o=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,f]=eo.useState(!0);return ye(Rs,{locale:i==="vi"?Cs:Ps,showOutsideDays:o,className:r("border border-gray-200 rounded-b-md b bg-white shadow-md w-fit",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(he({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("font-medium rounded-md w-11 text-xs text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(he({variant:"transparent"}),"h-11 w-11 text-center text-sm p-0 aria-selected:opacity-100 aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white [&.day-range-end.day-range-start]:rounded-md focus-within:relative focus-within:z-20 font-semibold relative group",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("text-gray-900 !bg-pink-50 !rounded-none group/mid [&:nth-child(7)]:!text-red-600 day-range-middle",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...t},modifiers:{weekend:As},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>ye(Ts,{className:"h-6 w-6"}),IconRight:()=>ye(ks,{className:"h-6 w-6"}),DayContent:p=>ye(Ds,{date:p.date,cusContent:n}),Months:({children:p})=>_o("div",{className:"w-full",children:[ye("div",{className:r("flex flex-col sm:flex-row months-wrapper"),children:p}),a&&ye(Is,{isShow:l,setIsShow:f,lang:i})]})},formatters:i==="vi"?Ms:{},...s})}to.displayName="Calendar";import*as L from"react";import _s from"embla-carousel-react";import{ChevronLeftIcon as zs,ChevronRightIcon as Bs}from"@heroicons/react/16/solid";import*as Qa from"react";import{Slot as Es}from"@radix-ui/react-slot";import{cva as Hs}from"class-variance-authority";import{jsx as Fs}from"react/jsx-runtime";var ot=Hs("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"}}),ue=Qa.forwardRef(({className:e,variant:t="primary",size:o="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Es:"button",f=r(ot({variant:t,size:o,className:e}));return Fs(l,{className:f,disabled:i,ref:s,...n,children:n.children})});ue.displayName="IconButton";import{jsx as Ie,jsxs as qa}from"react/jsx-runtime";var Xa=L.createContext(null);function oo(){let e=L.useContext(Xa);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var ao=L.forwardRef(({orientation:e="horizontal",opts:t,setApi:o,plugins:a,className:i,children:n,...s},l)=>{let[f,p]=_s({...t,axis:e==="horizontal"?"x":"y"},a),[c,g]=L.useState(!1),[v,S]=L.useState(!1),H=L.useCallback(V=>{V&&(g(V.canScrollPrev()),S(V.canScrollNext()))},[]),G=L.useCallback(()=>{p?.scrollPrev()},[p]),D=L.useCallback(()=>{p?.scrollNext()},[p]),B=L.useCallback(V=>{V.key==="ArrowLeft"?(V.preventDefault(),G()):V.key==="ArrowRight"&&(V.preventDefault(),D())},[G,D]);return L.useEffect(()=>{!p||!o||o(p)},[p,o]),L.useEffect(()=>{if(p)return H(p),p.on("reInit",H),p.on("select",H),()=>{p?.off("select",H)}},[p,H]),Ie(Xa.Provider,{value:{carouselRef:f,api:p,opts:t,orientation:e||(t?.axis==="y"?"vertical":"horizontal"),scrollPrev:G,scrollNext:D,canScrollPrev:c,canScrollNext:v},children:Ie("div",{ref:l,onKeyDownCapture:B,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});ao.displayName="Carousel";var io=L.forwardRef(({className:e,...t},o)=>{let{carouselRef:a,orientation:i}=oo();return Ie("div",{ref:a,className:"overflow-hidden",children:Ie("div",{ref:o,className:r("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});io.displayName="CarouselContent";var ro=L.forwardRef(({className:e,...t},o)=>{let{orientation:a}=oo();return Ie("div",{ref:o,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...t})});ro.displayName="CarouselItem";var no=L.forwardRef(({className:e,variant:t="secondary",size:o="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=oo();return qa(ue,{ref:i,variant:t,size:o,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:[Ie(zs,{className:"h-6 w-6"}),Ie("span",{className:"sr-only",children:"Previous slide"})]})});no.displayName="CarouselPrevious";var so=L.forwardRef(({className:e,variant:t="secondary",size:o="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=oo();return qa(ue,{ref:i,variant:t,size:o,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:[Ie(Bs,{className:"h-6 w-6"}),Ie("span",{className:"sr-only",children:"Next slide"})]})});so.displayName="CarouselNext";import*as Ka from"react";import*as Ae from"@radix-ui/react-popover";import{jsx as Za}from"react/jsx-runtime";var Dt=Ae.Root,Mt=Ae.Trigger,ut=Ka.forwardRef(({className:e,align:t="center",sideOffset:o=4,...a},i)=>Za(Ae.Portal,{children:Za(Ae.Content,{ref:i,align:t,sideOffset:o,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})}));ut.displayName=Ae.Content.displayName;import{format as lo}from"date-fns";import{Calendar as Vs}from"lucide-react";import{QuestionMarkCircleIcon as Os,XCircleIcon as Ws}from"@heroicons/react/16/solid";import{Fragment as Ya,jsx as te,jsxs as It}from"react/jsx-runtime";var $s=({label:e,placeholder:t="Select a value",size:o=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:f,calendarProps:p})=>{let c=p?.selected||null;return It("div",{children:[It(Dt,{...f,children:[te(Mt,{asChild:!0,children:It(se,{variant:"secondary",className:r("w-full justify-between text-left text-sm font-normal h-11 text-gray-900 overflow-visible hover:ring-1 focus:ring-1 hover:ring-gray-400 focus:ring-gray-400 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-pink-500 [&[data-state=open]]:ring-1 relative disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none disabled:text-gray-500",o===2&&"h-12 text-base",(!c||!(c instanceof Date)&&typeof c=="object"&&(!("from"in c)||!c.from))&&"text-gray-500",i&&"border-red-500 ring-red-500 ring-1"),disabled:n,...l,children:[te("div",{className:"line-clamp-1 flex-1",children:c instanceof Date?lo(c,s):c&&typeof c=="object"&&"from"in c&&"to"in c?te(Ya,{children:c.from?c.to?It(Ya,{children:[te("span",{className:"date-from",children:lo(c.from,s)})," ",te("span",{className:"date-separator",children:"-"}),te("span",{className:"date-to",children:lo(c.to,s)})]}):lo(c.from,s):t}):t}),e&&te("span",{className:r("absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",o===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),te(Vs,{className:"ml-2 h-4 w-4 text-gray-500 flex-none"})]})}),te(ut,{className:"w-auto !p-0 border-none",children:te(to,{...p})})]}),a&&It("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[i?te(Ws,{width:16,height:16,className:"text-red-500"}):te(Os,{width:16,height:16,className:"text-gray-500"}),te("span",{className:r(i?"text-red-500":"text-gray-500",o===2?"text-sm":"text-xs"),children:a})]})]})};import*as at from"react";import*as R from"@radix-ui/react-alert-dialog";import{jsx as Le,jsxs as Us}from"react/jsx-runtime";var Gs=R.Root,js=R.Trigger,Ja=R.Portal,zo=at.forwardRef(({className:e,...t},o)=>Le(R.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),...t,ref:o}));zo.displayName=R.Overlay.displayName;var ei=at.forwardRef(({className:e,...t},o)=>Us(Ja,{children:[Le(zo,{}),Le(R.Content,{ref:o,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),...t})]}));ei.displayName=R.Content.displayName;var ti=({className:e,...t})=>Le("div",{className:r("flex flex-col space-y-2 text-left",e),...t});ti.displayName="AlertDialogHeader";var oi=({className:e,...t})=>Le("div",{className:r("flex flex-row justify-end space-x-4",e),...t});oi.displayName="AlertDialogFooter";var ai=at.forwardRef(({className:e,...t},o)=>Le(R.Title,{ref:o,className:r("text-lg text-gray-900 font-semibold",e),...t}));ai.displayName=R.Title.displayName;var ii=at.forwardRef(({className:e,...t},o)=>Le(R.Description,{ref:o,className:r("text-sm text-muted-foreground",e),...t}));ii.displayName=R.Description.displayName;var ri=at.forwardRef(({className:e,...t},o)=>Le(R.Action,{ref:o,className:r(he({variant:"primary"}),"",e),...t}));ri.displayName=R.Action.displayName;var ni=at.forwardRef(({className:e,...t},o)=>Le(R.Cancel,{ref:o,className:r(he({variant:"secondary"}),e),...t}));ni.displayName=R.Cancel.displayName;import{createContext as Qs,useContext as si}from"react";import{jsx as At}from"react/jsx-runtime";var Bo=Qs({align:"center"}),Vo=({color:e="pink",size:t="small",isTruncated:o=!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 At("div",{className:r("mb-1 font-semibold",n[e],s[t],o&&"truncate",a),children:i})},Oo=({tagHeading:e="h2",size:t="small",color:o="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},f={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:p}=si(Bo);return At(s,{className:r("font-bold max-w-4xl",p==="center"?"mx-auto":p==="right"?"ml-auto":"",l[o],f[t],a&&"truncate","text-balance md:text-wrap",i),children:n})},Wo=({color:e="regular",size:t="small",marginTop:o="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"md:text-base text-sm",large:"md:text-lg text-base"},f={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:p}=si(Bo);return At("div",{className:r(p==="center"?"mx-auto max-w-2xl":p==="right"?"max-w-4xl ml-auto":"max-w-4xl",s[e],l[t],f[o],a&&"truncate",i),children:n})},$o=({className:e,align:t="center",children:o})=>At("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[t],e),children:At(Bo.Provider,{value:{align:t},children:o})});import{ChevronLeft as Xs,ChevronRight as qs}from"lucide-react";import{Fragment as Zs,jsx as le,jsxs as li}from"react/jsx-runtime";function mi({current:e,total:t,onChange:o}){let a=i=>le("li",{children:le("button",{className:r(ot({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>o(i),children:i})},i);return le("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:li("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[t>1&&le("li",{children:le("button",{className:r(ot({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&o(e-1),children:le(Xs,{className:"h-4 w-4"})})}),t<=6?Array(t).fill(0).map((i,n)=>a(n+1)):li(Zs,{children:[a(1),e===1&&[a(2),a(3)],e>3&&le("li",{children:le("button",{className:r(ot({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>o(e-3),children:"..."})}),e>2&&e!==1&&e!==t&&a(e-1),e>1&&e<t&&a(e),e<t-1&&e!==1&&a(e+1),e===t&&[a(t-2),a(t-1)],e<t-2&&e!==t&&le("button",{className:r(ot({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>o(e+3),children:"..."}),a(t)]}),t>1&&le("li",{children:le("button",{className:r(ot({variant:"secondary",size:"sm"})),disabled:e===t,onClick:()=>e<t&&o(e+1),children:le(qs,{className:"h-4 w-4"})})})]})})}import*as mo from"react";import*as ve from"@radix-ui/react-tabs";import{jsx as Go}from"react/jsx-runtime";var Lt=ve.Root,vt=mo.forwardRef(({className:e,size:t="sm",isDivider:o=!1,...a},i)=>Go(ve.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${t}`,o&&"border-b border-gray-200",e),...a}));vt.displayName=ve.List.displayName;var bt=mo.forwardRef(({className:e,...t},o)=>Go(ve.Trigger,{ref:o,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),...t}));bt.displayName=ve.Trigger.displayName;var xt=mo.forwardRef(({className:e,...t},o)=>Go(ve.Content,{ref:o,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),...t}));xt.displayName=ve.Content.displayName;import{forwardRef as Ks}from"react";import{QuestionMarkCircleIcon as Ys}from"@heroicons/react/24/outline";import{XCircleIcon as Js}from"@heroicons/react/24/solid";import{jsx as ht,jsxs as ci}from"react/jsx-runtime";var el=Ks(({disabled:e,isError:t,message:o,label:a,className:i,inputClassName:n,size:s,rows:l=3,...f},p)=>ci("div",{className:r("relative",i,t&&"mobase-text-area-error"),children:[a&&ht("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}),ht("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,...f}),o&&ci("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[t?ht(Js,{width:16,height:16,className:"text-red-500"}):ht(Ys,{width:16,height:16,className:"text-gray-500"}),ht("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:o})]}),ht("style",{children:`
|
|
70
|
+
`})]}),nt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...d})=>h(rt,{...d,children:h(Oe,{className:r("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:h(ro,{className:"p-0",children:Q("div",{className:"flex flex-row flex-wrap",children:[h("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||Q("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[Q("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),Q("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),h("div",{className:"mt-1 text-gray-500 ",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),Q("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),Q("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),h("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),Q("div",{className:"flex flex-nowrap items-center",children:[h("div",{className:"flex-none",children:h("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),Q("div",{className:"flex-1 pl-4",children:[h("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),Q("div",{className:"mt-1 text-gray-500 ",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),h("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:Q("div",{className:"px-5 py-10 text-center",children:[t&&h("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),Q("div",{className:"relative",children:[l&&h("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:h("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),h(fs,{img:i,isQrForAll:l,children:n&&h(ps,{value:n,size:215,imageSettings:{src:`${s||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});import{useState as ys}from"react";import{useEffect as gs,useLayoutEffect as us,useState as vs}from"react";import bs from"ua-parser-js";var xs=()=>bs().device.type==="mobile",hs=typeof window<"u"?us:gs,Wa=()=>{let[e,o]=vs(!1);return hs(()=>{o(xs())},[]),e};import{Fragment as ws,jsx as no,jsxs as Ns}from"react/jsx-runtime";var st=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,d]=ys(!1),p=Wa(),m=!!a?.qrLink,g=()=>{let V=m?a?.qrLink:e;return typeof V=="string"?V.trim():""},u=()=>{let V=g();!V&&typeof e!="function"||(typeof e=="function"?e():window.open(V,o?"_blank":"_self"))},R=(V,O=0)=>{let F=document.querySelector(V);if(!F)return;let Fo=F.getBoundingClientRect().top+window.scrollY-O;window.scrollTo({top:Fo,behavior:"smooth"})},M=()=>{typeof e=="string"&&e.startsWith("#")?R(e,t):u()},j=()=>Ns(ws,{children:[no(le,{...s,className:i,onClick:()=>d(!0),"data-name":"button-action-with-qr",children:n}),no(nt,{...a,open:l,onOpenChange:()=>d(!1),qrLink:a?.qrLink||""})]});return m?p?a?.isQrForAll?j():no(le,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):j():no(le,{...s,onClick:M,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as Pt from"react";import{ChevronRightIcon as Ps,DotsHorizontalIcon as Cs}from"@radix-ui/react-icons";import{Slot as Rs}from"@radix-ui/react-slot";import{jsx as Le,jsxs as Ts}from"react/jsx-runtime";var $a=Pt.forwardRef(({className:e,...o},t)=>Le("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));$a.displayName="Breadcrumb";var Ga=Pt.forwardRef(({className:e,...o},t)=>Le("ol",{ref:t,className:r("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));Ga.displayName="BreadcrumbList";var ja=Pt.forwardRef(({className:e,...o},t)=>Le("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));ja.displayName="BreadcrumbItem";var Ua=Pt.forwardRef(({asChild:e,className:o,...t},a)=>Le(e?Rs:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Ua.displayName="BreadcrumbLink";var Qa=Pt.forwardRef(({className:e,...o},t)=>Le("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Qa.displayName="BreadcrumbPage";var Xa=({children:e,className:o,...t})=>Le("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??Le(Ps,{className:"w-2 h-2"})});Xa.displayName="BreadcrumbSeparator";var qa=({className:e,...o})=>Ts("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[Le(Cs,{className:"w-4 h-4 text-gray-900"}),Le("span",{className:"sr-only",children:"More"})]});qa.displayName="BreadcrumbElipssis";import{createContext as ks,useContext as Za}from"react";import{jsx as Lt}from"react/jsx-runtime";var Go=ks({align:"center"}),jo=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:i})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return Lt("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},Uo=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},d={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:p}=Za(Go);return Lt(s,{className:r("font-bold max-w-4xl",p==="center"?"mx-auto":p==="right"?"ml-auto":"",l[t],d[o],a&&"truncate","text-balance md:text-wrap",i),children:n})},Qo=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"md:text-base text-sm",large:"md:text-lg text-base"},d={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:p}=Za(Go);return Lt("div",{className:r(p==="center"?"mx-auto max-w-2xl":p==="right"?"max-w-4xl ml-auto":"max-w-4xl",s[e],l[o],d[t],a&&"truncate",i),children:n})},Xo=({className:e,align:o="center",children:t})=>Lt("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Lt(Go.Provider,{value:{align:o},children:t})});import qo from"html-react-parser";import{jsx as lt,jsxs as Ss}from"react/jsx-runtime";var W=({idSection:e,className:o,background:t,children:a})=>lt("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:lt("div",{className:"wrapper relative",children:a})}),P=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let d=n==="black"?"pink":n==="pink"?"regular":"white",p=n==="pink"?"pink":n==="white"?"white":"regular",m=n==="white"?"white":"regular";return Ss(Xo,{align:e,className:l,children:[o&<(jo,{color:d,children:o}),t&<(Uo,{tagHeading:i,color:p,size:s,children:qo(t)}),a&<(Qo,{color:m,marginTop:s==="large"?"spacing2Xl":"spacingX",children:qo(a)})]})},C=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:lt("div",{className:r("buttons-block mt-8 md:mt-10 flex gap-4 w-full",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{let{btnName:s,...l}=i;return lt(st,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:qo(s)},n)})});import $s,{memo as Gs}from"react";import*as so from"react";import*as ve from"@radix-ui/react-tabs";import{jsx as Zo}from"react/jsx-runtime";var mt=ve.Root,We=so.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>Zo(ve.List,{ref:i,className:r("inline-flex w-full flex-row items-center bg-muted text-muted-foreground space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));We.displayName=ve.List.displayName;var $e=so.forwardRef(({className:e,...o},t)=>Zo(ve.Trigger,{ref:t,className:r("inline-flex items-center justify-center whitespace-nowrap py-3 font-semibold ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-[state=active]:text-pink-500 data-[state=active]:border-pink-500 text-gray-900 hover:text-pink-500",e),...o}));$e.displayName=ve.Trigger.displayName;var Ge=so.forwardRef(({className:e,...o},t)=>Zo(ve.Content,{ref:t,className:r("mt-3 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-gray-900",e),...o}));Ge.displayName=ve.Content.displayName;import js from"html-react-parser";import*as Ka from"react";import{Slot as Ds}from"@radix-ui/react-slot";import{cva as Ms}from"class-variance-authority";import{jsx as Is}from"react/jsx-runtime";var Ya=Ms("inline-flex items-center justify-center whitespace-nowrap font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent flex-nowrap",{variants:{variant:{default:"text-blue-700 hover:underline hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",primary:"text-pink-500 hover:underline hover:bg-pink-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline",secondary:"text-gray-700 hover:underline hover:text-blue-700 hover:bg-blue-50 disabled:bg-transparent disabled:text-gray-400 disabled:no-underline"},size:{default:"text-sm",lg:"text-base"}},defaultVariants:{variant:"default",size:"default"}}),be=Ka.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?Ds:"button",d=r(Ya({variant:o,size:t,className:e}));return Is(l,{className:d,disabled:i,ref:s,...n,children:n.children})});be.displayName="TextButton";import{useRef as Hs,useState as _s,useEffect as Fs,useCallback as zs,createContext as Bs,useContext as Ko}from"react";import{ChevronLeft as Vs,ChevronRight as Os}from"lucide-react";import*as Ja from"react";import{Slot as As}from"@radix-ui/react-slot";import{cva as Ls}from"class-variance-authority";import{jsx as Es}from"react/jsx-runtime";var ct=Ls("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed border border-transparent",{variants:{variant:{primary:"bg-pink-500 text-white hover:bg-pink-600 disabled:bg-pink-300",secondary:"bg-white text-gray-900 hover:bg-gray-100 disabled:text-gray-400 disabled:bg-white border-gray-300",outline:"border-pink-500 text-pink-500 bg-white hover:bg-pink-50 disabled:bg-white disabled:border-pink-300 disabled:text-pink-300",tonal:"bg-pink-100 text-pink-500 hover:bg-pink-200 disabled:bg-gray-200 disabled:text-gray-400",danger:"bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",transparent:"text-gray-900 bg-transparent hover:bg-gray-100 disabled:text-gray-400 disabled:bg-transparent"},size:{default:"text-sm h-10 w-10",sm:"h-8 w-8 text-sm",lg:"h-12 w-12 text-base"}},defaultVariants:{variant:"primary",size:"default"}}),xe=Ja.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?As:"button",d=r(ct({variant:o,size:t,className:e}));return Es(l,{className:d,disabled:i,ref:s,...n,children:n.children})});xe.displayName="IconButton";import{Fragment as Ws,jsx as je,jsxs as ei}from"react/jsx-runtime";var lo=Bs(void 0),Et=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=Hs(null),[n,s]=_s({left:!1,right:!1}),l=zs(()=>{let p=i.current;if(p){let{scrollLeft:m,scrollWidth:g,clientWidth:u}=p;s({left:m>0,right:m+u<g})}},[]);Fs(()=>{let p=i.current;if(p)return l(),window.addEventListener("resize",l),p.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),p.removeEventListener("scroll",l)}},[l]);let d=p=>{let m=i.current;if(m){let g=m.clientWidth*.7*(p==="left"?-1:1);m.scrollBy({left:g,behavior:"smooth"})}};return je(lo.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:d,gradientOverlayColor:o},children:ei("div",{className:r("relative w-full",t),children:[e&&ei(Ws,{children:[n.left&&je("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&je("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},Ht=({className:e,children:o})=>{let t=Ko(lo);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return je("div",{ref:t.scrollContainerRef,className:r("overflow-x-auto scrollbar-hide scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},_t=({className:e,children:o,...t})=>{let a=Ko(lo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?je(xe,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute left-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||je(Vs,{className:"h-4 w-4"})}):null},Ft=({className:e,children:o,...t})=>{let a=Ko(lo);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?je(xe,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute right-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||je(Os,{className:"h-4 w-4"})}):null};import{ArrowDownIcon as Us}from"@heroicons/react/20/solid";import{Fragment as ti,jsx as S,jsxs as Ne}from"react/jsx-runtime";var Qs=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ne(ti,{children:[S("div",{className:"basis-1/2 md:basis-full flex-none pr-3 md:pr-0",children:S("div",{className:"rounded-md aspect-[16/9] w-full relative overflow-hidden block bg-gray-100",children:Ne("picture",{children:[S("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),S("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Ne("div",{className:"md:mt-3 basis-1/2 md:basis-full overflow-hidden",children:[e?.category&&e?.categoryUrl&&S(be,{variant:"default",className:"text-xs block md:hidden line-clamp-1 shink-0 justify-start text-left whitespace-normal mb-0.5",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),S("div",{className:"text-gray-900 font-medium text-sm md:text-base group-hover:text-pink-500 line-clamp-3 md:line-clamp-none",children:e?.title}),Ne("div",{className:"flex items-center md:space-x-1 mt-2",children:[e?.category&&e?.categoryUrl&&Ne(ti,{children:[S(be,{variant:"default",className:"text-xs hidden md:block md:line-clamp-1 shink-0 justify-start text-left whitespace-normal",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),S("span",{className:"flex-none leading-none hidden md:block",children:"\xB7"})]}),e?.totalViews&&S("div",{className:"text-gray-500 text-xs flex-none",children:e.totalViews})]})]})]})},Yo=Gs(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},d=(m,g,u)=>{m?.preventDefault(),m?.stopPropagation(),a?a(g):window.open(u,"_blank")},p=(m,g)=>Ne("div",{children:[S("div",{className:r("flex flex-row flex-wrap -mx-3 gap-y-5",m?.blogList?.length<3?"md:justify-center":""),children:m?.blogList?.map((u,R)=>S("div",{className:"px-3 basis-full md:basis-1/2 lg:basis-1/3 min-w-0",children:S("div",{onClick:M=>d(M,u?.id,u?.url),className:r("cursor-pointer group flex flex-row md:flex-col",m?.classNameItem),children:S(Qs,{news:u})},u?.id)},R))}),m?.isShowBtn&&S("div",{className:"w-full flex items-center justify-center mt-8",children:Ne(st,{action:i?()=>i?.(g):m?.btnUrl,newTab:m?.isNewTab,variant:"outline",children:[js(m.btnName||"Xem th\xEAm"),m?.isLoading?S(Nt,{className:"animate-spin-loading ml-2 w-5 h-5"}):i&&!m?.btnUrl&&S(Us,{className:"w-5 h-5 animate-bounce ml-2 -mb-1"})]})})]},m?.title||g);return Ne($s.Fragment,{children:[e&&S(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?Ne(mt,{defaultValue:t[0]?.title,children:[Ne(Et,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[S(Ht,{className:"mb-6 text-center",children:S(We,{className:"inline-flex mx-auto items-center mb-6 overflow-visible w-auto mb-0",children:t.map((m,g)=>S($e,{value:m.title,children:m.title},m.title+g))})}),S(_t,{}),S(Ft,{})]}),t.map((m,g)=>S(Ge,{value:m.title,children:p(m,g)},m.title+g))]}):t?.length===1&&t[0]&&p(t[0],0)]})});import{Fragment as Ks,jsx as zt}from"react/jsx-runtime";var Xs=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return zt(Yo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return zt(Yo,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},qs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>zt(Ks,{children:Xs({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),Zs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>zt(W,{className:r(a),background:i,children:zt(qs,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as co from"react";import{enUS as tl,vi as ol}from"date-fns/locale";import{DayPicker as al}from"react-day-picker";import{ChevronLeft as il,ChevronRight as rl}from"lucide-react";import nl from"lunisolar";import*as oi from"react";import*as Bt from"@radix-ui/react-checkbox";import{CheckIcon as Ys}from"@heroicons/react/16/solid";import{cva as ai}from"class-variance-authority";import{jsx as Jo}from"react/jsx-runtime";var Js=ai("peer shrink-0 rounded border-2 disabled:bg-gray-300 border-gray-300 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default disabled:bg-gray-100 data-[state=checked]:border-none disabled:data-[state=checked]:bg-gray-400 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:bg-pink-500 data-[state=checked]:text-white",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),el=ai("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),mo=oi.forwardRef(({className:e,size:o,...t},a)=>Jo(Bt.Root,{ref:a,className:r(Js({size:o}),e),...t,children:Jo(Bt.Indicator,{className:r("flex items-center justify-center text-current"),children:Jo(Ys,{className:r(el({size:o}))})})}));mo.displayName=Bt.Root.displayName;import{Fragment as dl,jsx as Pe,jsxs as ea}from"react/jsx-runtime";var sl=({date:e,cusContent:o})=>{let t=null;return t=nl(e).lunar,ea(dl,{children:[o?o(e):e.getDate(),t&&Pe("span",{className:"text-[8px] absolute top-1 right-0.5 leading-none luna-date hidden group-[.show-luna]:block",children:t.day})]})},ll={formatCaption:e=>`Th\xE1ng ${e.getMonth()+1}/${e.getFullYear()}`,formatWeekdayName:e=>{let o=e.getDay();return["CN","T2","T3","T4","T5","T6","T7"][o]}};function ml({isShow:e,setIsShow:o,lang:t}){let a=co.useId();return Pe("div",{className:"w-full p-3 pt-0",children:ea("div",{className:"flex items-center space-x-2 border-t border-gray-100 pt-3 cursor-pointer",children:[Pe(mo,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),Pe("label",{htmlFor:`check-show-luna-${a}`,className:"text-sm text-gray-900 peer-disabled:text-gray-400 leading-none peer-disabled:cursor-default cursor-pointer",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var cl=e=>e.getDay()===0||e.getDay()===6;function po({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,d]=co.useState(!0);return Pe(al,{locale:i==="vi"?ol:tl,showOutsideDays:t,className:r("border border-gray-200 rounded-b-md b bg-white shadow-md w-fit",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(we({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("font-medium rounded-md w-11 text-xs text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(we({variant:"transparent"}),"h-11 w-11 text-center text-sm p-0 aria-selected:opacity-100 aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white [&.day-range-end.day-range-start]:rounded-md focus-within:relative focus-within:z-20 font-semibold relative group",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("text-gray-900 !bg-pink-50 !rounded-none group/mid [&:nth-child(7)]:!text-red-600 day-range-middle",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:cl},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>Pe(il,{className:"h-6 w-6"}),IconRight:()=>Pe(rl,{className:"h-6 w-6"}),DayContent:p=>Pe(sl,{date:p.date,cusContent:n}),Months:({children:p})=>ea("div",{className:"w-full",children:[Pe("div",{className:r("flex flex-col sm:flex-row months-wrapper"),children:p}),a&&Pe(ml,{isShow:l,setIsShow:d,lang:i})]})},formatters:i==="vi"?ll:{},...s})}po.displayName="Calendar";import*as H from"react";import pl from"embla-carousel-react";import{ChevronLeftIcon as fl,ChevronRightIcon as gl}from"@heroicons/react/16/solid";import{jsx as Ee,jsxs as ri}from"react/jsx-runtime";var ii=H.createContext(null);function fo(){let e=H.useContext(ii);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var go=H.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[d,p]=pl({...o,axis:e==="horizontal"?"x":"y"},a),[m,g]=H.useState(!1),[u,R]=H.useState(!1),M=H.useCallback(O=>{O&&(g(O.canScrollPrev()),R(O.canScrollNext()))},[]),j=H.useCallback(()=>{p?.scrollPrev()},[p]),I=H.useCallback(()=>{p?.scrollNext()},[p]),V=H.useCallback(O=>{O.key==="ArrowLeft"?(O.preventDefault(),j()):O.key==="ArrowRight"&&(O.preventDefault(),I())},[j,I]);return H.useEffect(()=>{!p||!t||t(p)},[p,t]),H.useEffect(()=>{if(p)return M(p),p.on("reInit",M),p.on("select",M),()=>{p?.off("select",M)}},[p,M]),Ee(ii.Provider,{value:{carouselRef:d,api:p,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:j,scrollNext:I,canScrollPrev:m,canScrollNext:u},children:Ee("div",{ref:l,onKeyDownCapture:V,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});go.displayName="Carousel";var uo=H.forwardRef(({className:e,...o},t)=>{let{carouselRef:a,orientation:i}=fo();return Ee("div",{ref:a,className:"overflow-hidden",children:Ee("div",{ref:t,className:r("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...o})})});uo.displayName="CarouselContent";var vo=H.forwardRef(({className:e,...o},t)=>{let{orientation:a}=fo();return Ee("div",{ref:t,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});vo.displayName="CarouselItem";var bo=H.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=fo();return ri(xe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ee(fl,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Previous slide"})]})});bo.displayName="CarouselPrevious";var xo=H.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=fo();return ri(xe,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[Ee(gl,{className:"h-6 w-6"}),Ee("span",{className:"sr-only",children:"Next slide"})]})});xo.displayName="CarouselNext";import*as si from"react";import*as He from"@radix-ui/react-popover";import{jsx as ni}from"react/jsx-runtime";var Vt=He.Root,Ot=He.Trigger,Ct=si.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>ni(He.Portal,{children:ni(He.Content,{ref:i,align:o,sideOffset:t,className:r("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ct.displayName=He.Content.displayName;import{format as ho}from"date-fns";import{Calendar as ul}from"lucide-react";import{QuestionMarkCircleIcon as vl,XCircleIcon as bl}from"@heroicons/react/16/solid";import{Fragment as li,jsx as oe,jsxs as Wt}from"react/jsx-runtime";var xl=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:d,calendarProps:p})=>{let m=p?.selected||null;return Wt("div",{children:[Wt(Vt,{...d,children:[oe(Ot,{asChild:!0,children:Wt(le,{variant:"secondary",className:r("w-full justify-between text-left text-sm font-normal h-11 text-gray-900 overflow-visible hover:ring-1 focus:ring-1 hover:ring-gray-400 focus:ring-gray-400 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-pink-500 [&[data-state=open]]:ring-1 relative disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none disabled:text-gray-500",t===2&&"h-12 text-base",(!m||!(m instanceof Date)&&typeof m=="object"&&(!("from"in m)||!m.from))&&"text-gray-500",i&&"border-red-500 ring-red-500 ring-1"),disabled:n,...l,children:[oe("div",{className:"line-clamp-1 flex-1",children:m instanceof Date?ho(m,s):m&&typeof m=="object"&&"from"in m&&"to"in m?oe(li,{children:m.from?m.to?Wt(li,{children:[oe("span",{className:"date-from",children:ho(m.from,s)})," ",oe("span",{className:"date-separator",children:"-"}),oe("span",{className:"date-to",children:ho(m.to,s)})]}):ho(m.from,s):o}):o}),e&&oe("span",{className:r("absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),oe(ul,{className:"ml-2 h-4 w-4 text-gray-500 flex-none"})]})}),oe(Ct,{className:"w-auto !p-0 border-none",children:oe(po,{...p})})]}),a&&Wt("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[i?oe(bl,{width:16,height:16,className:"text-red-500"}):oe(vl,{width:16,height:16,className:"text-gray-500"}),oe("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import*as dt from"react";import*as T from"@radix-ui/react-alert-dialog";import{jsx as _e,jsxs as wl}from"react/jsx-runtime";var hl=T.Root,yl=T.Trigger,mi=T.Portal,ta=dt.forwardRef(({className:e,...o},t)=>_e(T.Overlay,{className:r("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));ta.displayName=T.Overlay.displayName;var ci=dt.forwardRef(({className:e,...o},t)=>wl(mi,{children:[_e(ta,{}),_e(T.Content,{ref:t,className:r("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));ci.displayName=T.Content.displayName;var di=({className:e,...o})=>_e("div",{className:r("flex flex-col space-y-2 text-left",e),...o});di.displayName="AlertDialogHeader";var pi=({className:e,...o})=>_e("div",{className:r("flex flex-row justify-end space-x-4",e),...o});pi.displayName="AlertDialogFooter";var fi=dt.forwardRef(({className:e,...o},t)=>_e(T.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));fi.displayName=T.Title.displayName;var gi=dt.forwardRef(({className:e,...o},t)=>_e(T.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));gi.displayName=T.Description.displayName;var ui=dt.forwardRef(({className:e,...o},t)=>_e(T.Action,{ref:t,className:r(we({variant:"primary"}),"",e),...o}));ui.displayName=T.Action.displayName;var vi=dt.forwardRef(({className:e,...o},t)=>_e(T.Cancel,{ref:t,className:r(we({variant:"secondary"}),e),...o}));vi.displayName=T.Cancel.displayName;import{ChevronLeft as Nl,ChevronRight as Pl}from"lucide-react";import{Fragment as Cl,jsx as me,jsxs as bi}from"react/jsx-runtime";function xi({current:e,total:o,onChange:t}){let a=i=>me("li",{children:me("button",{className:r(ct({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return me("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:bi("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&me("li",{children:me("button",{className:r(ct({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:me(Nl,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):bi(Cl,{children:[a(1),e===1&&[a(2),a(3)],e>3&&me("li",{children:me("button",{className:r(ct({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&me("button",{className:r(ct({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&me("li",{children:me("button",{className:r(ct({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:me(Pl,{className:"h-4 w-4"})})})]})})}import{forwardRef as Rl}from"react";import{QuestionMarkCircleIcon as Tl}from"@heroicons/react/24/outline";import{XCircleIcon as kl}from"@heroicons/react/24/solid";import{jsx as Rt,jsxs as hi}from"react/jsx-runtime";var Sl=Rl(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...d},p)=>hi("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&Rt("span",{className:r("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),Rt("textarea",{disabled:e,ref:p,className:r("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:l,...d}),t&&hi("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?Rt(kl,{width:16,height:16,className:"text-red-500"}):Rt(Tl,{width:16,height:16,className:"text-gray-500"}),Rt("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),Rt("style",{children:`
|
|
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 Rt from"react";import*as re from"@radix-ui/react-accordion";import{Che
|
|
|
94
94
|
color: rgb(var(--mobase-red-500) / 1);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
`})]}));import*as
|
|
97
|
+
`})]}));import*as No from"react";var Dl=1,Ml=1e6;var oa=0;function Il(){return oa=(oa+1)%Number.MAX_SAFE_INTEGER,oa.toString()}var aa=new Map,yi=e=>{if(aa.has(e))return;let o=setTimeout(()=>{aa.delete(e),$t({type:"REMOVE_TOAST",toastId:e})},Ml);aa.set(e,o)},Al=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Dl)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===o.toast.id?{...t,...o.toast}:t)};case"DISMISS_TOAST":{let{toastId:t}=o;return t?yi(t):e.toasts.forEach(a=>{yi(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===t||t===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return o.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(t=>t.id!==o.toastId)};default:return e}},yo=[],wo={toasts:[]};function $t(e){wo=Al(wo,e),yo.forEach(o=>{o(wo)})}function wi({...e}){let o=Il(),t=i=>$t({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>$t({type:"DISMISS_TOAST",toastId:o});return $t({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function ia(){let[e,o]=No.useState(wo);return No.useEffect(()=>(yo.push(o),()=>{let t=yo.indexOf(o);t>-1&&yo.splice(t,1)}),[e]),{...e,toast:wi,dismiss:t=>$t({type:"DISMISS_TOAST",toastId:t})}}import*as pt from"react";import*as z from"@radix-ui/react-toast";import{cva as Ll}from"class-variance-authority";import{XMarkIcon as El,CheckCircleIcon as Hl,ExclamationTriangleIcon as _l,InformationCircleIcon as Fl}from"@heroicons/react/20/solid";import{jsx as Fe,jsxs as Ni}from"react/jsx-runtime";var Pi=z.Provider,ra=pt.forwardRef(({className:e,...o},t)=>Fe(z.Viewport,{ref:t,className:r("fixed bottom-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 left-0 sm:right-0 sm:left-auto sm:top-0 sm:bottom-auto sm:flex-col md:max-w-[420px]",e),...o}));ra.displayName=z.Viewport.displayName;var zl=Ll("group pointer-events-auto relative w-full overflow-hidden rounded-md border py-4 pr-10 pl-10 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full bg-white text-gray-900 border border-gray-200 border-l-4",{variants:{variant:{sucess:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"sucess"}}),na=pt.forwardRef(({className:e,variant:o="sucess",children:t,...a},i)=>Ni(z.Root,{ref:i,className:r(zl({variant:o}),e),...a,children:[Ni("div",{className:"w-5 h-5 flex items-center justify-center absolute top-4 left-3",children:[o==="sucess"&&Fe(Hl,{className:"w-5 h-5 text-green-500"}),o==="warning"&&Fe(_l,{className:"w-5 h-5 text-yellow-500"}),o==="error"&&Fe(Fl,{className:"w-5 h-5 text-red-500"})]}),t]}));na.displayName=z.Root.displayName;var Ci=pt.forwardRef(({className:e,...o},t)=>Fe(z.Action,{ref:t,className:r("inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-0 focus:ring-ring focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 text-blue-600 hover:underline mt-2",e),...o}));Ci.displayName=z.Action.displayName;var sa=pt.forwardRef(({className:e,...o},t)=>Fe(z.Close,{ref:t,className:r("absolute right-2 top-2 rounded-md transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2 text-gray-800 w-8 h-8 flex items-center justify-center",e),"toast-close":"",...o,children:Fe(El,{className:"h-5 w-5"})}));sa.displayName=z.Close.displayName;var la=pt.forwardRef(({className:e,...o},t)=>Fe(z.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));la.displayName=z.Title.displayName;var ma=pt.forwardRef(({className:e,...o},t)=>Fe(z.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));ma.displayName=z.Description.displayName;import{jsx as Po,jsxs as ca}from"react/jsx-runtime";function Bl(){let{toasts:e}=ia();return ca(Pi,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return ca(na,{...n,children:[ca("div",{className:"grid gap-2",children:[t&&Po(la,{children:t}),a&&Po(ma,{children:a})]}),i,Po(sa,{})]},o)}),Po(ra,{})]})}import*as da from"react";import*as ce from"@radix-ui/react-tooltip";import{jsx as ki}from"react/jsx-runtime";var Vl=ce.Provider,Ol=ce.Root,Wl=ce.Trigger,Ri=da.forwardRef((e,o)=>ki(ce.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));Ri.displayName=ce.Arrow.displayName;var Ti=da.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>ki(ce.Content,{ref:i,sideOffset:t,className:r("z-50 overflow-hidden rounded-md text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 p-1.5 shadow-md",o==="light"?"bg-white text-gray-900 fill-white":"bg-gray-800 fill-gray-800 text-white",e),...a}));Ti.displayName=ce.Content.displayName;import{forwardRef as $l,useEffect as Gl,useRef as jl,useState as Ul}from"react";import{QuestionMarkCircleIcon as Ql,XCircleIcon as Xl,XCircleIcon as ql}from"@heroicons/react/16/solid";import{jsx as Ue,jsxs as pa}from"react/jsx-runtime";var Zl=$l(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:l,onChange:d,onFocus:p,onClickClear:m,value:g,defaultValue:u,type:R="text",...M},j)=>{let[I,V]=Ul(!1),O=jl(null),F=te=>{te&&!I&&V(!0),!te&&I&&V(!1)},Ea=te=>{s&&F(te.target.value),d?.(te)},Fo=te=>{s&&F(te.target.value),p?.(te)},Jn=()=>{let te=O.current?.querySelector("input");te&&(m?.(te.value),te.value="",te.focus(),V(!1))};return Gl(()=>{F(u||g)},[g,u]),pa("div",{className:r(i,o&&"mobase-text-input-error"),ref:O,children:[pa("div",{className:"relative",children:[a&&Ue("span",{className:r("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",l===2&&" -top-2.5 text-sm"),children:a}),Ue("input",{disabled:e,type:R,ref:j,className:r("mobase-text-input-box bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 h-11 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block outline-none",l===2&&"h-12 text-base",n),onChange:Ea,onFocus:Fo,value:g,defaultValue:u,...M}),s&&I&&Ue("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:Jn,children:Ue(Xl,{strokeWidth:2,width:20,height:20})})]}),t&&pa("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?Ue(ql,{width:16,height:16,className:"text-red-500"}):Ue(Ql,{width:16,height:16,className:"text-gray-500"}),Ue("span",{className:r("text-gray-500 ",l===2?"text-sm":"text-xs"),children:t})]}),Ue("style",{children:`
|
|
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,133 @@ import*as Rt from"react";import*as re from"@radix-ui/react-accordion";import{Che
|
|
|
117
117
|
color: rgb(var(--mobase-red-500) / 1);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`})]})});import{MinusCircleIcon as Tl,PlusCircleIcon as kl}from"@heroicons/react/24/outline";import{forwardRef as Sl,useState as Dl}from"react";import{jsx as Ht,jsxs as oa}from"react/jsx-runtime";var wi=Sl(({className:e,min:t=0,max:o=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:f=!1,...p},c)=>{let[g,v]=Dl(i),S=()=>{let D=Math.min(g+a,o);v(D),n?.(D),l?.(D)},H=()=>{let D=Math.max(g-a,t);v(D),n?.(D),s?.(D)},G=D=>{let B=parseFloat(D.target.value);if(!isNaN(B)){let V=Math.max(Math.min(B,o),t);v(V),n?.(V)}};return oa("div",{ref:c,className:r("flex items-center ",e),children:[oa(ue,{className:r(" text-pink-500 cursor-pointer w-9 h-9",f&&"text-gray-400 cursor-default"),variant:"transparent",onClick:H,disabled:f||g<=t,children:[Ht(Tl,{className:"w-7 h-7 "}),Ht("span",{className:"sr-only",children:"Decrease value"})]}),Ht("input",{type:"number",value:g,onChange:G,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:t,max:o,step:a,disabled:f,...p}),oa(ue,{className:r(" text-pink-500 cursor-pointer w-9 h-9",f&&"text-gray-400 cursor-default"),variant:"transparent",onClick:S,disabled:f||g>=o,children:[Ht(kl,{className:"w-7 h-7 "}),Ht("span",{className:"sr-only",children:"Increase value"})]})]})});wi.displayName="Stepper";import*as we from"react";import{ChevronDownIcon as Ni,ChevronUpIcon as Ml,CheckIcon as Il,XCircleIcon as Al}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as Ll}from"@heroicons/react/24/outline";import*as x from"@radix-ui/react-select";import{jsx as k,jsxs as Ft}from"react/jsx-runtime";var El=we.forwardRef(({className:e,children:t,label:o,message:a,size:i,isError:n,disabled:s,...l},f)=>Ft("div",{ref:f,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:[o&&k("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:o}),k(x.Root,{disabled:s,...l,children:t}),a&&Ft("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?k(Al,{width:16,height:16}):k(Ll,{width:16,height:16}),k("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Hl=x.Value,Pi=we.forwardRef(({className:e,children:t,...o},a)=>Ft(x.Trigger,{ref:a,className:r("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...o,children:[k("div",{className:"line-clamp-1 text-left",children:t}),k(x.Icon,{asChild:!0,children:k(Ni,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Pi.displayName=x.Trigger.displayName;var aa=we.forwardRef(({className:e,...t},o)=>k(x.ScrollUpButton,{ref:o,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:k(Ml,{className:"h-5 w-5"})}));aa.displayName=x.ScrollUpButton.displayName;var ia=we.forwardRef(({className:e,...t},o)=>k(x.ScrollDownButton,{ref:o,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...t,children:k(Ni,{className:"h-5 w-5"})}));ia.displayName=x.ScrollDownButton.displayName;var Ci=we.forwardRef(({className:e,children:t,position:o="popper",...a},i)=>k(x.Portal,{children:Ft(x.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="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:o,...a,children:[k(aa,{}),k(x.Viewport,{className:r("p-0",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),k(ia,{})]})}));Ci.displayName=x.Content.displayName;var Fl=we.forwardRef(({className:e,children:t,...o},a)=>k(x.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...o,children:t})),Ri=we.forwardRef(({className:e,...t},o)=>k(x.Label,{ref:o,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...t}));Ri.displayName=x.Label.displayName;var _l=we.forwardRef(({className:e,children:t,...o},a)=>Ft(x.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...o,children:[k("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:k(x.ItemIndicator,{children:k(Il,{className:"h-4 w-4 text-pink-500"})})}),k(x.ItemText,{children:t})]})),Ti=we.forwardRef(({className:e,...t},o)=>k(x.Separator,{ref:o,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));Ti.displayName=x.Separator.displayName;import*as be from"react";import*as M from"@radix-ui/react-navigation-menu";import{cva as zl}from"class-variance-authority";import{ChevronDownIcon as Bl}from"@heroicons/react/16/solid";import{jsx as Ne,jsxs as Gl}from"react/jsx-runtime";var ki=be.createContext(null),Vl=({value:e,children:t})=>Ne(ki.Provider,{value:e,children:t}),Ol=()=>{let e=be.useContext(ki);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},uo=be.forwardRef(({className:e,children:t,alignDropdown:o="left",...a},i)=>Ne(Vl,{value:{alignDropdown:o},children:Ne(M.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:t})}));uo.displayName=M.Root.displayName;var vo=be.forwardRef(({className:e,...t},o)=>Ne(M.List,{ref:o,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...t}));vo.displayName=M.List.displayName;var bo=M.Item,xo=zl(he({variant:"transparent",size:"sm"})),ho=be.forwardRef(({className:e,children:t,...o},a)=>Gl(M.Trigger,{ref:a,className:r(xo(),"group px-2",e),...o,children:[t," ",Ne(Bl,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ho.displayName=M.Trigger.displayName;var yo=be.forwardRef(({className:e,...t},o)=>{let{alignDropdown:a}=Ol();return Ne(M.Content,{ref:o,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 "),...t})});yo.displayName=M.Content.displayName;var _t=M.Link,Wl=be.forwardRef(({className:e,...t},o)=>Ne("div",{className:r("absolute left-0 top-full flex justify-center"),children:Ne(M.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:o,...t})}));Wl.displayName=M.Viewport.displayName;var $l=be.forwardRef(({className:e,...t},o)=>Ne(M.Indicator,{ref:o,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),...t,children:Ne("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));$l.displayName=M.Indicator.displayName;import*as Di from"react";import*as zt from"@radix-ui/react-switch";import{jsx as Si}from"react/jsx-runtime";var Mi=Di.forwardRef(({className:e,...t},o)=>Si(zt.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),...t,ref:o,children:Si(zt.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")})}));Mi.displayName=zt.Root.displayName;import*as rt from"react";import*as Oe from"@radix-ui/react-radio-group";import{Circle as jl}from"lucide-react";import{cva as Ii}from"class-variance-authority";import{jsx as Bt}from"react/jsx-runtime";var Ul=Ii("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"}}),Ql=Ii("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Ai=rt.createContext({size:"medium"});function Xl(){let e=rt.useContext(Ai);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Li=rt.forwardRef(({className:e,size:t,...o},a)=>Bt(Ai.Provider,{value:{size:t},children:Bt(Oe.Root,{className:r("grid gap-2",e),...o,ref:a})}));Li.displayName=Oe.Root.displayName;var Ei=rt.forwardRef(({className:e,...t},o)=>{let a=Xl(),{size:i}=a??{};return Bt(Oe.Item,{ref:o,className:r(Ul({size:i}),e),...t,children:Bt(Oe.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Bt(jl,{className:r(Ql({size:i}))})})})});Ei.displayName=Oe.Item.displayName;import{jsx as yt,jsxs as Hi}from"react/jsx-runtime";var ql=({className:e="",icon:t="",title:o,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return yt("li",{className:"",children:yt(_t,{asChild:!0,children:Hi("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,!t&&"items-center px-3"),href:i,...s,children:[t&&yt("div",{className:"w-7 h-7 shrink-0 mt-1",children:yt("img",{src:t,loading:"lazy",className:"w-7 h-7 object-cover",alt:o})}),Hi("div",{className:" ",children:[yt("div",{className:"text-sm font-medium text-gray-900 leading-none",children:o}),a&&yt("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},Fi=ql;import{jsx as We,jsxs as Kl}from"react/jsx-runtime";var Zl=({data:e,alignDropdown:t})=>We(uo,{alignDropdown:t,children:We(vo,{children:e.map(o=>{let a=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return o.hasDropdown?Kl(bo,{className:"relative",children:[We(ho,{children:o.title}),We(yo,{children:We("ul",{className:r("grid w-[300px] p-2 grid-cols-1",o.dropDownCompact===!0&&o.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",o.dropDownCompact===!0&&o.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:o.subMenu&&o.subMenu.map(i=>We(Fi,{title:i.title,href:i.url,newTab:i.newTab,icon:o.dropDownCompact===!0?i.icon:"",children:o.dropDownCompact===!0?i.description:""},i.title))})})]},o.id):We(bo,{className:"relative",children:We(_t,{href:o.url,className:xo(),...a,children:o.title})},o.id)})})}),_i=Zl;import{useEffect as am,useState as im}from"react";var wo=[.24,.25,.05,1];import{useKey as rm}from"react-use";import Oi from"next/router";import{jsx as Vt,jsxs as zi}from"react/jsx-runtime";var Yl=({className:e="",icon:t="",title:o,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Vt("li",{className:"min-h-8",children:zi("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[t&&Vt("div",{className:"w-6 h-6 shrink-0",children:Vt("img",{src:t,loading:"lazy",className:"w-6 h-6 object-cover",alt:o})}),zi("div",{className:" ",children:[Vt("div",{className:"text-sm text-gray-800 line-clamp-1",children:o}),a&&Vt("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Bi=Yl;import{motion as Jl}from"framer-motion";import{jsx as nt,jsxs as om}from"react/jsx-runtime";var em={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:wo}},exit:{opacity:0,transition:{duration:.05}}},tm=({data:e})=>nt(Ze,{type:"single",collapsible:!0,children:e.map(t=>{let o=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return nt(Jl.div,{variants:em,children:t.hasDropdown?om(Ke,{value:t.id,children:[nt(Ye,{className:"py-3",children:t.title}),nt(Je,{children:nt("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:t.subMenu&&t.subMenu.map(a=>nt(Bi,{title:a.title,href:a.url,newTab:a.newTab,icon:t.dropDownCompact===!0?a.icon:"",children:t.dropDownCompact===!0?a.description:""},a.title))})})]}):nt("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:t.url,...o,children:t.title})},t.id)})}),Vi=tm;import{motion as ra,AnimatePresence as nm,LazyMotion as sm,domAnimation as lm}from"framer-motion";import{jsx as y,jsxs as Q}from"react/jsx-runtime";var mm=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,cm=({data:e,className:t})=>{let[o,a]=im(!1);rm("Escape",()=>a(!1)),am(()=>{if(!o)return;let s=mm();function l(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Oi.events.on("routeChangeComplete",l),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),Oi.events.off("routeChangeComplete",l)}},[o]);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:wo}},exit:{opacity:0,transition:{duration:.15}}};return Q("div",{className:r(t),children:[Q("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>a(!o),children:[y("span",{className:"sr-only",children:"Navigation"}),y(ra.div,{animate:o?"hidden":"visible",variants:i,children:y("svg",{className:r("block w-7 h-7",o&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:y("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),y(ra.div,{animate:o?"visible":"hidden",variants:i,children:y("svg",{className:r("block w-7 h-7",!o&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:y("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),y(sm,{features:lm,children:y(nm,{mode:"wait",children:o&&Q(ra.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(t,"fixed block w-full max-w-full z-50 px-5 bg-white left-0 right-0 bottom-0 overflow-y-auto top-[calc(var(--header-height)+1px)] pb-24 "),children:[y(Vi,{data:e}),Q("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[y("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),Q("div",{className:"flex flex-nowrap",children:[y("div",{className:"flex-initial",children:y("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:y("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),y("div",{className:"ml-3 flex-initial",children:y("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:y("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),y("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),Q("ul",{className:"mb-2 text-sm text-gray-500",children:[Q("li",{className:"mb-1",children:["Hotline :\xA0",y("a",{href:`tel:${Se.Support.Hotline}`,className:"text-gray-600",children:Se.Support.Hotline_Format})]}),Q("li",{className:"mb-1",children:["Email :\xA0",y("a",{href:`mailto:${Se.Support.Email}`,className:"text-gray-600",children:Se.Support.Email})]})]}),y("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:Q("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[y("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:y("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:Q("g",{children:[y("title",{children:"Asset 1"}),y("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
120
|
+
`})]})});import{MinusCircleIcon as Kl,PlusCircleIcon as Yl}from"@heroicons/react/24/outline";import{forwardRef as Jl,useState as em}from"react";import{jsx as Gt,jsxs as fa}from"react/jsx-runtime";var Si=Jl(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:d=!1,...p},m)=>{let[g,u]=em(i),R=()=>{let I=Math.min(g+a,t);u(I),n?.(I),l?.(I)},M=()=>{let I=Math.max(g-a,o);u(I),n?.(I),s?.(I)},j=I=>{let V=parseFloat(I.target.value);if(!isNaN(V)){let O=Math.max(Math.min(V,t),o);u(O),n?.(O)}};return fa("div",{ref:m,className:r("flex items-center ",e),children:[fa(xe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",d&&"text-gray-400 cursor-default"),variant:"transparent",onClick:M,disabled:d||g<=o,children:[Gt(Kl,{className:"w-7 h-7 "}),Gt("span",{className:"sr-only",children:"Decrease value"})]}),Gt("input",{type:"number",value:g,onChange:j,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:d,...p}),fa(xe,{className:r(" text-pink-500 cursor-pointer w-9 h-9",d&&"text-gray-400 cursor-default"),variant:"transparent",onClick:R,disabled:d||g>=t,children:[Gt(Yl,{className:"w-7 h-7 "}),Gt("span",{className:"sr-only",children:"Increase value"})]})]})});Si.displayName="Stepper";import*as Ce from"react";import{ChevronDownIcon as Di,ChevronUpIcon as tm,CheckIcon as om,XCircleIcon as am}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as im}from"@heroicons/react/24/outline";import*as x from"@radix-ui/react-select";import{jsx as D,jsxs as jt}from"react/jsx-runtime";var rm=Ce.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},d)=>jt("div",{ref:d,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&D("span",{className:r("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",i===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),D(x.Root,{disabled:s,...l,children:o}),a&&jt("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?D(am,{width:16,height:16}):D(im,{width:16,height:16}),D("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),nm=x.Value,Mi=Ce.forwardRef(({className:e,children:o,...t},a)=>jt(x.Trigger,{ref:a,className:r("select-mobase-button bg-white w-full ring-0 transition-all focus-visible:border-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent focus-visible:ring-1 focus-visible:!ring-pink-500 rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",e),...t,children:[D("div",{className:"line-clamp-1 text-left",children:o}),D(x.Icon,{asChild:!0,children:D(Di,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Mi.displayName=x.Trigger.displayName;var ga=Ce.forwardRef(({className:e,...o},t)=>D(x.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:D(tm,{className:"h-5 w-5"})}));ga.displayName=x.ScrollUpButton.displayName;var ua=Ce.forwardRef(({className:e,...o},t)=>D(x.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:D(Di,{className:"h-5 w-5"})}));ua.displayName=x.ScrollDownButton.displayName;var Ii=Ce.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>D(x.Portal,{children:jt(x.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[D(ga,{}),D(x.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),D(ua,{})]})}));Ii.displayName=x.Content.displayName;var sm=Ce.forwardRef(({className:e,children:o,...t},a)=>D(x.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Ai=Ce.forwardRef(({className:e,...o},t)=>D(x.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Ai.displayName=x.Label.displayName;var lm=Ce.forwardRef(({className:e,children:o,...t},a)=>jt(x.Item,{ref:a,className:r("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[D("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:D(x.ItemIndicator,{children:D(om,{className:"h-4 w-4 text-pink-500"})})}),D(x.ItemText,{children:o})]})),Li=Ce.forwardRef(({className:e,...o},t)=>D(x.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));Li.displayName=x.Separator.displayName;import*as he from"react";import*as A from"@radix-ui/react-navigation-menu";import{cva as mm}from"class-variance-authority";import{ChevronDownIcon as cm}from"@heroicons/react/16/solid";import{jsx as Re,jsxs as um}from"react/jsx-runtime";var Ei=he.createContext(null),dm=({value:e,children:o})=>Re(Ei.Provider,{value:e,children:o}),pm=()=>{let e=he.useContext(Ei);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},Co=he.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>Re(dm,{value:{alignDropdown:t},children:Re(A.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));Co.displayName=A.Root.displayName;var Ro=he.forwardRef(({className:e,...o},t)=>Re(A.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));Ro.displayName=A.List.displayName;var To=A.Item,ko=mm(we({variant:"transparent",size:"sm"})),So=he.forwardRef(({className:e,children:o,...t},a)=>um(A.Trigger,{ref:a,className:r(ko(),"group px-2",e),...t,children:[o," ",Re(cm,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));So.displayName=A.Trigger.displayName;var Do=he.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=pm();return Re(A.Content,{ref:t,className:r("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Do.displayName=A.Content.displayName;var Ut=A.Link,fm=he.forwardRef(({className:e,...o},t)=>Re("div",{className:r("absolute left-0 top-full flex justify-center"),children:Re(A.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));fm.displayName=A.Viewport.displayName;var gm=he.forwardRef(({className:e,...o},t)=>Re(A.Indicator,{ref:t,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:Re("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));gm.displayName=A.Indicator.displayName;import*as _i from"react";import*as Qt from"@radix-ui/react-switch";import{jsx as Hi}from"react/jsx-runtime";var Fi=_i.forwardRef(({className:e,...o},t)=>Hi(Qt.Root,{className:r("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:Hi(Qt.Thumb,{className:r("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));Fi.displayName=Qt.Root.displayName;import*as ft from"react";import*as Qe from"@radix-ui/react-radio-group";import{Circle as vm}from"lucide-react";import{cva as zi}from"class-variance-authority";import{jsx as Xt}from"react/jsx-runtime";var bm=zi("aspect-square rounded-full border-2 border-gray-300 disabled:bg-gray-100 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-400 data-[state=checked]:bg-pink-500 data-[state=checked]:border-none ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default peer",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),xm=zi("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),Bi=ft.createContext({size:"medium"});function hm(){let e=ft.useContext(Bi);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Vi=ft.forwardRef(({className:e,size:o,...t},a)=>Xt(Bi.Provider,{value:{size:o},children:Xt(Qe.Root,{className:r("grid gap-2",e),...t,ref:a})}));Vi.displayName=Qe.Root.displayName;var Oi=ft.forwardRef(({className:e,...o},t)=>{let a=hm(),{size:i}=a??{};return Xt(Qe.Item,{ref:t,className:r(bm({size:i}),e),...o,children:Xt(Qe.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Xt(vm,{className:r(xm({size:i}))})})})});Oi.displayName=Qe.Item.displayName;import{jsx as Tt,jsxs as Wi}from"react/jsx-runtime";var ym=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Tt("li",{className:"",children:Tt(Ut,{asChild:!0,children:Wi("a",{className:r(" select-none space-y-1 rounded-md px-2 py-2 leading-none no-underline outline-none transition-colors hover:bg-pink-50 hover:text-pink-500 focus:bg-pink-50 focus:text-pink-500 flex flex-nowrap space-x-2 min-h-9 ",e,!o&&"items-center px-3"),href:i,...s,children:[o&&Tt("div",{className:"w-7 h-7 shrink-0 mt-1",children:Tt("img",{src:o,loading:"lazy",className:"w-7 h-7 object-cover",alt:t})}),Wi("div",{className:" ",children:[Tt("div",{className:"text-sm font-medium text-gray-900 leading-none",children:t}),a&&Tt("p",{className:"line-clamp-2 text-xs mt-1 text-gray-500",children:a})]})]})})})},$i=ym;import{jsx as Xe,jsxs as Nm}from"react/jsx-runtime";var wm=({data:e,alignDropdown:o})=>Xe(Co,{alignDropdown:o,children:Xe(Ro,{children:e.map(t=>{let a=t.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return t.hasDropdown?Nm(To,{className:"relative",children:[Xe(So,{children:t.title}),Xe(Do,{children:Xe("ul",{className:r("grid w-[300px] p-2 grid-cols-1",t.dropDownCompact===!1&&t.subMenu.length>10&&" w-[480px] md:grid-cols-2 ",t.dropDownCompact===!1&&t.subMenu.length>20&&" w-[700px] md:grid-cols-3 ",t.dropDownCompact===!0&&t.subMenu.length>6&&" w-[530px] md:grid-cols-2 ",t.dropDownCompact===!0&&t.subMenu.length>12&&" w-[800px] md:grid-cols-3 "),children:t.subMenu&&t.subMenu.map(i=>Xe($i,{title:i.title,href:i.url,newTab:i.newTab,icon:t.dropDownCompact===!0?i.icon:"",children:t.dropDownCompact===!0?i.description:""},i.title))})})]},t.id):Xe(To,{className:"relative",children:Xe(Ut,{href:t.url,className:ko(),...a,children:t.title})},t.id)})})}),Gi=wm;import{useEffect as Sm,useState as Dm}from"react";var Mo=[.24,.25,.05,1];import{useKey as Mm}from"react-use";import Xi from"next/router";import{jsx as qt,jsxs as ji}from"react/jsx-runtime";var Pm=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return qt("li",{className:"min-h-8",children:ji("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&qt("div",{className:"w-6 h-6 shrink-0",children:qt("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),ji("div",{className:" ",children:[qt("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&qt("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},Ui=Pm;import{motion as Cm}from"framer-motion";import{jsx as gt,jsxs as km}from"react/jsx-runtime";var Rm={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Mo}},exit:{opacity:0,transition:{duration:.05}}},Tm=({data:e})=>gt(tt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return gt(Cm.div,{variants:Rm,children:o.hasDropdown?km(ot,{value:o.id,children:[gt(at,{className:"py-3",children:o.title}),gt(it,{children:gt("ul",{className:r("grid gap-y-1 gap-x-2 grid-cols-2 "),children:o.subMenu&&o.subMenu.map(a=>gt(Ui,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):gt("a",{className:"py-3 flex flex-1 items-center text-left justify-between font-medium transition-all hover:underline text-gray-900 border-b border-gray-200",href:o.url,...t,children:o.title})},o.id)})}),Qi=Tm;import{motion as va,AnimatePresence as Im,LazyMotion as Am,domAnimation as Lm}from"framer-motion";import{jsx as y,jsxs as X}from"react/jsx-runtime";var Em=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Hm=({data:e,className:o})=>{let[t,a]=Dm(!1);Mm("Escape",()=>a(!1)),Sm(()=>{if(!t)return;let s=Em();function l(){a(!1)}return document.body.style.position="fixed",document.body.style.width="100%",Xi.events.on("routeChangeComplete",l),()=>{document.body.style.position="",document.body.style.width="",window.scrollTo({top:s||0,behavior:"instant"}),Xi.events.off("routeChangeComplete",l)}},[t]);let i={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},n={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Mo}},exit:{opacity:0,transition:{duration:.15}}};return X("div",{className:r(o),children:[X("button",{type:"button",className:"text-gray-800 w-10 h-10 flex items-center justify-center hover:text-gray-700 ",onClick:()=>a(!t),children:[y("span",{className:"sr-only",children:"Navigation"}),y(va.div,{animate:t?"hidden":"visible",variants:i,children:y("svg",{className:r("block w-7 h-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:y("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),y(va.div,{animate:t?"visible":"hidden",variants:i,children:y("svg",{className:r("block w-7 h-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:y("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),y(Am,{features:Lm,children:y(Im,{mode:"wait",children:t&&X(va.nav,{variants:n,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed block w-full max-w-full z-50 px-5 bg-white left-0 right-0 bottom-0 overflow-y-auto top-[calc(var(--header-height)+1px)] pb-24 "),children:[y(Qi,{data:e}),X("div",{className:"py-4 text-sm animate-fade-in duration-500 delay-300",children:[y("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),X("div",{className:"flex flex-nowrap",children:[y("div",{className:"flex-initial",children:y("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:y("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),y("div",{className:"ml-3 flex-initial",children:y("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:y("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),y("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),X("ul",{className:"mb-2 text-sm text-gray-500",children:[X("li",{className:"mb-1",children:["Hotline :\xA0",y("a",{href:`tel:${Ie.Support.Hotline}`,className:"text-gray-600",children:Ie.Support.Hotline_Format})]}),X("li",{className:"mb-1",children:["Email :\xA0",y("a",{href:`mailto:${Ie.Support.Email}`,className:"text-gray-600",children:Ie.Support.Email})]})]}),y("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:X("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[y("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:y("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:X("g",{children:[y("title",{children:"Asset 1"}),y("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
121
121
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
122
122
|
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),y("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
123
123
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
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`})]})})}),y("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),y("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),y("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),
|
|
124
|
+
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),y("div",{className:"text-xs text-gray-500 ",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),y("div",{className:"text-sm font-semibold text-gray-800",children:"\u1EE8ng d\u1EE5ng V\xED MoMo"})]})}),y("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1EE2P T\xC1C DOANH NGHI\u1EC6P"}),X("ul",{className:"mb-2 text-sm text-gray-500",children:[X("li",{className:"mb-1",children:["Hotline :\xA0",y("a",{className:"text-gray-600",href:`tel:${Ie.Business.Phome}`,children:Ie.Business.Phome_Format})]}),X("li",{className:"mb-1",children:["Email :\xA0",X("a",{href:`mailto:${Ie.Business.Email}`,className:"text-gray-600",children:[" ",Ie.Business.Email]})]})]}),y("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:X("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:[y("div",{className:"absolute left-1 top-1 ",children:y("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-210724114053.svg",className:"w-10",loading:"lazy",alt:""})}),y("div",{className:"text-xs text-gray-500 ",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),y("div",{className:"text-sm font-semibold text-gray-800",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})]})]})})})]})},qi=Hm;import _m from"html-react-parser";import{ArrowDownTrayIcon as Fm}from"@heroicons/react/16/solid";import{useState as zm}from"react";import{jsx as ye,jsxs as ut}from"react/jsx-runtime";var Zi=({className:e,dataMenu:o,serviceInfo:t,hasDownloadApp:a=!1,navigationRight:i,isSticky:n=!0,alignDropdown:s="left"})=>{let{logo:l,name:d,url:p}=t||{},[m,g]=zm(!1);return ut("div",{className:r(e,"z-40 w-full flex-none lg:z-50 ",n?"sticky top-0 ":"relative"),children:[ye("div",{className:r("absolute h-full w-full bg-white shadow-[inset_0px_-1px_0px_0px_rgba(0,0,0,0.08)]")}),ye("nav",{className:r("wrapper grid grid-cols-1 items-center lg:border-0 [--header-height:64px] "),style:{minHeight:"var(--header-height)"},children:ut("div",{className:"relative flex items-center ",children:[ut("a",{href:"/",title:"MoMo",className:"mr-3 flex-none w-9 h-9 overflow-hidden rounded-none hover:opacity-80",children:[ye("span",{className:"sr-only",children:"MoMo home page"}),ye("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"})]}),t&&ut("a",{href:p,title:d,className:" relative flex flex-none space-x-1 pl-2 items-center rounded-none hover:opacity-80 after:absolute after:left-0 after:h-8 after:w-[1px] after:bg-gray-300 after:content-[''] ",children:[ye("img",{src:l,className:"w-9 h-9",alt:"MoMo"}),ye("div",{className:"text-sm font-semibold leading-[1.1] text-pink-500 line-clamp-2",children:d&&_m(d)})]}),ye("div",{className:"relative lg:ml-2 xl:ml-4 hidden lg:flex items-center ",children:ye(Gi,{data:o,alignDropdown:s})}),ut("div",{className:"ml-auto flex space-x-3 flex-nowrap items-center",children:[i&&i,a&&ut("div",{className:" hidden sm:flex",children:[ut(le,{variant:"primary",size:"sm",className:"tracking-cta-header",onClick:()=>g(!0),children:[" ",ye(Fm,{className:"mr-1 w-4 h-4"})," T\u1EA3i V\xED MoMo"]}),ye(nt,{open:m,onOpenChange:()=>g(!1),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i V\xED MoMo",shortTitle:"T\u1EA3i ngay",qrLink:"http://momo.vn/download"})]}),ye(qi,{data:o,className:"lg:hidden "})]})]})})]})};Zi.displayName="HeaderNavigation";import{useState as Bm}from"react";import{Fragment as Om,jsx as f,jsxs as w}from"react/jsx-runtime";var Ki=({item:e})=>f("div",{className:"mt-3 flex w-full text-sm",children:w("a",{href:e.url,target:e.newTab?"_blank":"_self",rel:"noreferrer",className:"flex items-center space-x-2 text-white text-opacity-50 duration-300 hover:text-opacity-100",children:[e.icon&&f("span",{className:"relative flex-none h-5 w-5 md:h-6 md:w-6",children:f("img",{src:e.icon,className:"absolute inset-0"})}),f("span",{className:"block ",children:e.title})]})}),Vm=({primaryMenu:e,secondaryMenu:o})=>{let[t,a]=Bm(null);return w(Om,{children:[f("div",{className:"footer-main order-2 py-7 text-white md:order-1 text-sm",children:w("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:[w("div",{className:"block grow md:w-44 md:shrink-0 md:border-none md:pb-0",children:[f("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:e?.heading}),e?.lists?.map((i,n)=>f(Ki,{item:i},n))]}),w("div",{className:" md:order-none md:w-40 md:flex-none md:shrink-0 md:border-none md:pb-0",children:[f("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:o?.heading}),f("div",{className:"flex flex-wrap",children:o?.lists?.map((i,n)=>f(Ki,{item:i},n))})]}),w("div",{className:"col-span-2 grow border-t border-gray-700 pt-5 sm:col-span-1 md:border-none md:pt-0",children:[w("div",{className:"border-b border-gray-700 pb-5 md:border-0 md:pb-0",children:[f("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"Ch\u0103m s\xF3c kh\xE1ch h\xE0ng"}),w("div",{className:"mt-2 text-sm md:mt-3",children:[f("span",{className:"text-white text-opacity-50",children:"\u0110\u1ECBa ch\u1EC9 : "}),f("span",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",children:Ha.Address})]}),w("div",{className:"mt-1 text-sm",children:[f("span",{className:"text-white text-opacity-50",children:"Hotline : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Hotline}`,children:U.Support.Hotline_Format}),w("small",{className:"text-xs italic text-white text-opacity-60",children:[" ","(Ph\xED 1.000\u0111/ph\xFAt)"]})]}),w("div",{className:"mt-1 text-sm",children:[f("span",{className:"text-white text-opacity-50",children:"Email : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${U.Support.Email}`,children:U.Support.Email})]}),w("div",{className:"mt-1 text-sm",children:[w("span",{className:"text-white text-opacity-50",children:["T\u1ED5ng \u0111\xE0i g\u1ECDi ra :"," "]}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Phone_Ext_1}`,children:U.Support.Phone_Ext_1_Format}),f("span",{className:"text-white text-opacity-60",children:" - "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Phone_Ext_2}`,children:U.Support.Phone_Ext_2_Format}),f("span",{className:"text-white text-opacity-60",children:" - "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Support.Phone_Ext_3}`,children:U.Support.Phone_Ext_3_Format}),f("span",{className:"text-white text-opacity-60",children:", c\xE1c \u0111\u1EA7u s\u1ED1 di \u0111\u1ED9ng Brandname MoMo"})]}),f("div",{className:"mt-3 flex",children:f("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:w("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-10 pr-2",children:[f("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:f("svg",{className:"h-7 w-7 text-gray-100 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:w("g",{children:[f("title",{children:"Asset 1"}),f("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
125
125
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
126
|
-
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),
|
|
126
|
+
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),f("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
127
127
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
128
|
-
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),d("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),d("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),w("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[d("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),w("div",{className:"mt-2 text-sm md:mt-3",children:[d("span",{className:"text-white text-opacity-50",children:"Hotline : "}),d("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${j.Business.Phome}`,children:j.Business.Phome_Format})]}),w("div",{className:"mt-1 text-sm",children:[d("span",{className:"text-white text-opacity-50",children:"Email : "}),d("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${j.Business.Email}`,children:j.Business.Email})]}),w("div",{className:"mt-1 text-sm",children:[d("span",{className:"text-white text-opacity-50",children:"Website : "}),d("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"})]}),d("div",{className:"mt-3 flex",children:d("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:w("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[d("div",{className:"absolute left-1 top-1 flex aspect-1 items-center justify-center",children:w("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[d("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"}),d("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"}),d("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"}),d("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"}),d("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"}),d("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"}),d("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"}),d("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"}),d("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"})]})}),d("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),d("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),w("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[w("div",{className:"h-auto",children:[d("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"}),d("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:d("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Ct&&Ct.map((i,n)=>d("li",{className:"inline-block",children:d("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:d("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),w("div",{className:"h-auto",children:[d("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),w("div",{className:"flex items-center flex-wrap md:mt-3 md:space-x-1.5",children:[d("div",{className:"relative hidden h-24 w-24 lg:w-20 lg:h-20 grow-0 overflow-hidden rounded-sm bg-white md:block",children:d("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),d("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:Mo&&Mo.map((i,n)=>w("div",{className:"w-full md:flex md:items-center button-download",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[d(se,{onClick:()=>a(n),className:"!bg-transparent rounded-none w-full hidden sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),d("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),d(tt,{open:o===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),d("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:d("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Ct&&Ct.map((i,n)=>d("li",{children:d("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:d("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),w("div",{className:"h-auto",children:[d("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),w("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[w("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),d("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:d("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),d("div",{className:" footer-bottom order-1 bg-gray-800 py-3.5 md:order-2 md:py-5",children:w("div",{className:"wrapper flex flex-wrap items-end justify-between md:flex-nowrap md:space-x-3",children:[w("div",{className:"mb-2.5 flex justify-between md:mb-0",children:[d("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"}),w("div",{className:"shrink pl-3",children:[d("div",{className:"text-sm text-white text-opacity-80 md:mb-1.5 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),d("span",{className:"hidden text-xs text-white text-opacity-50 md:block lg:text-sm lg:leading-none",children:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"})]})]}),d("span",{className:"block text-sm text-white text-opacity-50 md:hidden",children:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),w("span",{className:"hidden w-48 flex-none text-right text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})}),d("style",{children:`
|
|
128
|
+
c-7.5,0.1-13,4.3-17.3,13c0-17.3-14.1-21.6-21.6-21.6c-8.3,0-17.9,5.2-21.6,13v-90.8C215.4,212.3,203.8,200.7,189.4,200.7z`})]})})}),f("div",{className:"text-xs text-white text-opacity-70",children:"H\u01B0\u1EDBng d\u1EABn tr\u1EE3 gi\xFAp tr\xEAn"}),f("div",{className:"text-xs font-bold uppercase text-white text-opacity-90",children:"\u1EE8ng d\u1EE5ng MoMo"})]})})})]}),w("div",{className:"mt-4 border-b border-gray-700 pb-5 md:mt-8 md:border-none md:pb-0",children:[f("div",{className:"whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),w("div",{className:"mt-2 text-sm md:mt-3",children:[f("span",{className:"text-white text-opacity-50",children:"Hotline : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`tel:${U.Business.Phome}`,children:U.Business.Phome_Format})]}),w("div",{className:"mt-1 text-sm",children:[f("span",{className:"text-white text-opacity-50",children:"Email : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:`mailto:${U.Business.Email}`,children:U.Business.Email})]}),w("div",{className:"mt-1 text-sm",children:[f("span",{className:"text-white text-opacity-50",children:"Website : "}),f("a",{className:"inline text-white text-opacity-70 duration-300 hover:text-opacity-100",href:"https://business.momo.vn/","aria-label":"MoMo Business",rel:"noreferrer",target:"_blank",children:"business.momo.vn"})]}),f("div",{className:"mt-3 flex",children:f("a",{href:"https://business.momo.vn/#menutop",rel:"noreferrer",target:"_blank",children:w("div",{className:"relative block overflow-hidden rounded border border-gray-400 bg-black py-1 pl-12 pr-2 ",children:[f("div",{className:"absolute left-1 top-1 flex aspect-1 items-center justify-center",children:w("svg",{width:"30",height:"20",viewBox:"0 0 30 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mt-2",children:[f("path",{d:"M9.5688 5.21563C8.63815 5.98097 9.08817 8.15453 11.2556 6.84427C11.2556 6.84427 13.9037 5.51871 15.4497 4.6401C15.7864 4.4503 16.0129 4.51152 16.2946 4.83297C16.6038 5.05644 23.6112 12.8813 23.6112 12.8813C23.6112 12.8813 25.7725 11.2404 26.6144 9.51683C26.6144 9.51683 24.6735 5.8677 22.8214 2.24612C22.2857 2.5492 21.8265 2.83696 21.2111 2.66247C20.5744 2.48185 20.0478 1.98285 19.4723 1.64916C18.8171 1.26649 18.26 0.92362 17.5283 0.819534C16.4446 0.663406 15.5935 1.15016 14.6598 1.6859C13.5975 2.29511 12.5689 2.97779 11.5617 3.69414C10.8821 4.17171 10.2178 4.6799 9.5688 5.21563Z",fill:"#fff"}),f("path",{d:"M10.9281 17.4029C10.5638 16.9008 10.6342 16.1538 11.0842 15.7344L13.3068 13.7109C13.7568 13.2884 14.415 13.3527 14.7793 13.8517C15.1436 14.3507 15.0731 15.0977 14.6231 15.5232L12.4006 17.5467C11.9536 17.9631 11.2924 17.9019 10.9281 17.4029Z",fill:"#fff"}),f("path",{d:"M8.87706 15.5385C8.51275 15.0364 8.58317 14.2895 9.03318 13.867L10.7873 12.272C11.2374 11.8496 11.8955 11.9139 12.2598 12.4129C12.6241 12.9149 12.5537 13.6619 12.1037 14.0844L10.3496 15.6824C9.90261 16.1018 9.24136 16.0375 8.87706 15.5385Z",fill:"#fff"}),f("path",{d:"M6.39426 14.014C6.05751 13.4905 6.1616 12.7496 6.62998 12.3547L7.02184 12.0486C7.49022 11.6537 8.14535 11.7608 8.48822 12.2812L8.51271 12.3118C8.85252 12.8353 8.72395 13.5456 8.2525 13.9405L7.86065 14.2466C7.39226 14.6415 6.73407 14.5374 6.39426 14.014Z",fill:"#fff"}),f("path",{d:"M16.2182 16.2671C15.8325 15.7895 15.1712 15.762 14.7396 16.2089L13.7814 17.2039C13.3497 17.6508 13.313 18.4009 13.6987 18.8815C14.0844 19.3621 14.7488 19.3866 15.1773 18.9397L16.1355 17.9447C16.5672 17.4978 16.6039 16.7477 16.2182 16.2671Z",fill:"#fff"}),f("path",{d:"M29.9207 7.86982C30.0799 8.1729 29.9911 8.53108 29.7278 8.66884L28.1145 9.51989C27.8512 9.65459 27.5084 9.51989 27.3522 9.21682L23.5255 1.81447C23.3694 1.5114 23.4551 1.15322 23.7184 1.01546L25.3317 0.167464C25.595 0.0297027 25.9379 0.167463 26.094 0.470537L29.9207 7.86982Z",fill:"#fff"}),f("path",{d:"M2.61348 9.14334C2.49409 9.46479 2.18489 9.6454 1.92467 9.54744L0.299097 8.98415C0.0388821 8.88619 -0.0713265 8.54638 0.0480662 8.228L2.9839 0.430738C3.10329 0.109296 3.41249 -0.0713245 3.67271 0.0266388L5.29828 0.592989C5.5585 0.690952 5.66871 1.03076 5.54931 1.34914L2.61348 9.14334Z",fill:"#fff"}),f("path",{d:"M23.5224 13.8395L23.5163 13.8333C23.4826 14.0109 23.4336 14.1609 23.2989 14.3109C23.0816 14.5528 22.7999 14.6721 22.5152 14.6721C22.2183 14.6721 21.9183 14.5405 21.6887 14.2772L18.9212 11.1393C18.8692 11.0781 18.8049 11.0506 18.7375 11.0506C18.4742 11.0506 18.1804 11.4853 18.4191 11.7363L20.6907 14.2466C21.1223 14.7426 21.1315 15.5079 20.7029 15.9855C20.5039 16.2059 20.259 16.313 20.011 16.313C19.7233 16.313 19.4294 16.1722 19.1967 15.9059L16.5946 13.0037C16.5364 12.9119 16.4629 12.8721 16.3864 12.8721C16.1415 12.8721 15.8843 13.2792 16.1415 13.5731L18.1436 15.8691C18.563 16.3498 18.5293 17.0967 18.1161 17.5621C17.9263 17.7733 17.6936 17.8743 17.4548 17.8743C17.3171 17.8743 17.1762 17.8406 17.0415 17.7733C16.9589 17.9937 16.8364 18.2019 16.6772 18.3856C16.9221 18.5203 17.1885 18.5968 17.4548 18.5968C17.8926 18.5968 18.3059 18.407 18.6181 18.058C18.9426 17.6968 19.111 17.2376 19.1294 16.7753C19.3988 16.9437 19.7049 17.0355 20.011 17.0355C20.4611 17.0355 20.8866 16.8396 21.208 16.4814C21.5295 16.1232 21.6948 15.6579 21.707 15.1895C21.955 15.3242 22.2336 15.3946 22.5152 15.3946C23.005 15.3946 23.4612 15.1834 23.801 14.8038C24.1255 14.4395 24.1837 14.0599 24.2235 13.7844C24.2449 13.6343 24.2173 13.4843 24.1561 13.3527C24.0765 13.417 24.0275 13.4537 24.0153 13.4629L23.5224 13.8395Z",fill:"#fff"}),f("path",{d:"M6.20135 11.7914L6.21053 11.7822L6.21972 11.7731L6.38503 11.6445C5.02579 10.2669 4.19616 9.2505 4.19616 9.2505C5.5003 5.92894 6.97587 1.88183 6.97587 1.88183C6.96363 2.11143 7.73509 2.52166 7.89122 2.58288C8.14837 2.68697 8.42695 2.73595 8.70553 2.73595C8.78513 2.73595 8.86166 2.73289 8.9382 2.7237C9.75252 2.64105 10.5179 2.17266 11.2342 1.7655C11.7179 1.49304 12.3179 1.21446 12.8843 1.21446C13.1537 1.21446 13.4139 1.28487 13.6557 1.441C13.8731 1.30936 14.0874 1.18078 14.2986 1.06139C14.2619 1.01547 14.2221 0.972612 14.1762 0.935876C13.8088 0.641986 13.3741 0.495041 12.8873 0.495041C12.1312 0.495041 11.3965 0.859342 10.9097 1.1318L10.723 1.23895C10.1107 1.58794 9.48006 1.94612 8.87391 2.00735C8.8188 2.01347 8.76064 2.01653 8.70553 2.01653C8.50349 2.01653 8.30756 1.9798 8.13918 1.91245C8.01673 1.8604 7.73815 1.69815 7.60651 1.59407C7.52079 1.38589 7.34323 1.22977 7.11976 1.17772C7.07077 1.16548 7.02179 1.16242 6.97587 1.16242C6.69729 1.16242 6.43707 1.34304 6.33299 1.62774C6.31768 1.66754 4.84517 5.70546 3.5594 8.97804C3.46144 9.22907 3.5043 9.51684 3.67267 9.72195C3.70941 9.76481 4.52985 10.7659 5.87991 12.1374C5.97175 12.0149 6.0789 11.8955 6.20135 11.7914Z",fill:"#fff"})]})}),f("div",{className:"text-xs text-white text-opacity-70",children:"H\u1EE3p t\xE1c doanh nghi\u1EC7p"}),f("div",{className:"text-xs font-semibold uppercase text-white text-opacity-90",children:"\u0110\u0103ng k\xFD h\u1EE3p t\xE1c"})]})})})]})]}),w("div",{className:"col-span-2 gap-8 sm:col-span-1 md:mt-0 md:flex md:flex-col md:flex-wrap md:justify-between ",children:[w("div",{className:"h-auto",children:[f("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"K\u1EBFt n\u1ED1i v\u1EDBi ch\xFAng t\xF4i"}),f("div",{className:"mt-3 hidden flex-row items-stretch md:flex",children:f("ul",{className:"item-center flex list-none flex-wrap space-x-4",children:Mt&&Mt.map((i,n)=>f("li",{className:"inline-block",children:f("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"duration-300 hover:brightness-125",children:f("img",{src:i.Image,loading:"lazy",width:"40",height:"40"})})},n))})})]}),w("div",{className:"h-auto",children:[f("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"T\u1EA3i \u1EE9ng d\u1EE5ng tr\xEAn \u0111i\u1EC7n tho\u1EA1i"}),w("div",{className:"flex items-center flex-wrap md:mt-3 md:space-x-1.5",children:[f("div",{className:"relative hidden h-24 w-24 lg:w-20 lg:h-20 grow-0 overflow-hidden rounded-sm bg-white md:block",children:f("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-230627140125-638234712853800898.jpg",alt:"Qr-Dowbnload MoMo",className:" absolute inset-0"})}),f("div",{className:"flex grow justify-center gap-2 md:grid md:grid-cols-1 md:gap-1.5",children:zo&&zo.map((i,n)=>w("div",{className:"w-full md:flex md:items-center button-download",style:{background:`url(${i.Image}) center center / contain no-repeat`},children:[f(le,{onClick:()=>a(n),className:"!bg-transparent rounded-none w-full hidden sm:block",style:{fontSize:"0px",padding:"0 0 30.23%0"},children:i.Name}),f("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"button-download block sm:hidden",style:{fontSize:"0px",padding:"0 0 30.23%0"}}),f(nt,{open:t===n,onOpenChange:()=>a(null),title:"Qu\xE9t m\xE3 \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng",shortTitle:"T\u1EA3i ngay",qrLink:i.Link})]},n))}),f("div",{className:"mt-4 flex w-full justify-center text-center md:hidden",children:f("ul",{className:"item-center flex list-none flex-wrap space-x-3.5",children:Mt&&Mt.map((i,n)=>f("li",{children:f("a",{href:i.Link,target:"_blank",rel:"noreferrer",className:"flex duration-300 hover:brightness-125",children:f("img",{alt:i.Name,src:i.Image,loading:"lazy",width:"36",height:"36"})})},n))})})]})]}),w("div",{className:"h-auto",children:[f("div",{className:"hidden whitespace-nowrap text-xs font-bold uppercase text-white text-opacity-80 md:block",children:"\u0110\u01B0\u1EE3c ch\u1EE9ng nh\u1EADn b\u1EDFi"}),w("div",{className:"mt-6 flex items-center justify-between md:mt-3 md:justify-normal",children:[w("span",{className:"block text-right text-xs text-white text-opacity-50 md:hidden",children:["\xA9Copyright M_Service ",new Date().getFullYear()]}),f("a",{rel:"noopener noreferrer",href:"http://online.gov.vn/Home/AppDetails/163",target:"_blank",className:" flex w-28 items-center md:w-auto",children:f("img",{alt:"ch\u1EE9ng nh\u1EADn",src:"https://homepage.momocdn.net/blogscontents/momo-upload-api-210629153623-637605777831780706.png",width:119,height:45})})]})]})]})]})}),f("div",{className:" footer-bottom order-1 bg-gray-800 py-3.5 md:order-2 md:py-5",children:w("div",{className:"wrapper flex flex-wrap items-end justify-between md:flex-nowrap md:space-x-3",children:[w("div",{className:"mb-2.5 flex justify-between md:mb-0",children:[f("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-240411162904.svg",className:"w-9 h-9",alt:"MoMo"}),w("div",{className:"shrink pl-3",children:[f("div",{className:"text-sm text-white text-opacity-80 md:mb-1.5 ",children:"C\xD4NG TY C\u1ED4 PH\u1EA6N D\u1ECACH V\u1EE4 DI \u0110\u1ED8NG TR\u1EF0C TUY\u1EBEN"}),f("span",{className:"hidden text-xs text-white text-opacity-50 md:block lg:text-sm lg:leading-none",children:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"})]})]}),f("span",{className:"block text-sm text-white text-opacity-50 md:hidden",children:"L\u1EA7u 6, To\xE0 nh\xE0 Ph\xFA M\u1EF9 H\u01B0ng, s\u1ED1 8 Ho\xE0ng V\u0103n Th\xE1i, khu ph\u1ED1 1, P. T\xE2n Ph\xFA, Q. 7, Th\xE0nh ph\u1ED1 H\u1ED3 Ch\xED Minh"}),w("span",{className:"hidden w-48 flex-none text-right text-sm text-white text-opacity-50 md:block",children:["\xA9Copyright M_Service ",new Date().getFullYear()]})]})}),f("style",{children:`
|
|
129
129
|
footer .button-download {
|
|
130
130
|
max-width: 150px;
|
|
131
131
|
}
|
|
132
|
-
`})]})},
|
|
132
|
+
`})]})},Yi=Vm;import{jsx as Ji}from"react/jsx-runtime";var Wm=({className:e,primaryMenu:o,secondaryMenu:t})=>Ji("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:Ji(Yi,{primaryMenu:o,secondaryMenu:t})});import*as vt from"react";import{jsx as kt}from"react/jsx-runtime";var er=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));er.displayName="Card";var tr=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));tr.displayName="CardHeader";var or=vt.forwardRef(({className:e,...o},t)=>kt("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));or.displayName="CardTitle";var ar=vt.forwardRef(({className:e,...o},t)=>kt("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));ar.displayName="CardDescription";var ir=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("p-6 pt-0",e),...o}));ir.displayName="CardContent";var rr=vt.forwardRef(({className:e,...o},t)=>kt("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));rr.displayName="CardFooter";import*as de from"react";import{Command as Z}from"cmdk";import{XCircleIcon as $m,MagnifyingGlassIcon as Gm}from"@heroicons/react/16/solid";import{jsx as ae,jsxs as Um}from"react/jsx-runtime";var ba=de.forwardRef(({className:e,...o},t)=>ae(Z,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ba.displayName=Z.displayName;var jm=({children:e,...o})=>ae(rt,{...o,children:ae(Oe,{className:"overflow-hidden p-0 shadow-lg",children:ae(ba,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),nr=de.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=de.useRef(null),[s,l]=de.useState(""),d=()=>{!s||s?.length<=0||(l(""),o?.(s))};return Um("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[ae(Gm,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),ae(Z.Input,{ref:i,className:r("flex h-10 text-gray-900 w-full rounded-md focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),value:s,onValueChange:l,...a}),ae($m,{onClick:d,className:r("ml-2 transition-all cursor-pointer h-4 w-4 duration-75 shrink-0 text-gray-500",s?.length>0?"opacity-100":"opacity-0")})]})});nr.displayName=Z.Input.displayName;var sr=de.forwardRef(({className:e,...o},t)=>ae(Z.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));sr.displayName=Z.List.displayName;var lr=de.forwardRef((e,o)=>ae(Z.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));lr.displayName=Z.Empty.displayName;var mr=de.forwardRef(({className:e,...o},t)=>ae(Z.Group,{ref:t,className:r("overflow-hidden text-gray-900 p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...o}));mr.displayName=Z.Group.displayName;var cr=de.forwardRef(({className:e,...o},t)=>ae(Z.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));cr.displayName=Z.Separator.displayName;var dr=de.forwardRef(({className:e,children:o,...t},a)=>ae(Z.Item,{ref:a,className:r("relative cursor-pointer text-gray-900 flex rounded-md select-none hover:bg-gray-100 aria-selected:bg-gray-100 aria-selected:text-gray-900 items-center px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:o}));dr.displayName=Z.Item.displayName;var pr=({className:e,...o})=>ae("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});pr.displayName="CommandShortcut";import{ChevronDownIcon as Qm}from"@heroicons/react/16/solid";import{jsx as Io,jsxs as fr}from"react/jsx-runtime";var Xm=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>fr("div",{className:"relative",children:[fr(Ot,{className:r("focus-visible:outline-none w-72 focus-visible:ring-0 focus-visible:ring-offset-0 focus:ring-0 select-mobase-button bg-white ring-0 transition-all rounded-md border border-gray-300 data-[placeholder]:text-gray-500 p-3 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none flex items-center justify-between data-[state=open]:border-pink-500 data-[state=open]:ring-1 hover:ring-1 hover:ring-gray-400 data-[state=open]:ring-pink-500 text-gray-900 h-11 ring-inset text-sm",n===2&&"h-12 text-base",e),children:[o||a||i,Io(Qm,{className:"h-4 w-4 text-gray-700 flex-none"})]}),t&&Io("span",{className:"absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",children:t})]}),qm=({children:e,className:o})=>Io(Ct,{className:r("!p-0 border-none",o),children:e}),Zm=({open:e,onOpenChange:o,children:t})=>Io(Vt,{open:e,onOpenChange:o,children:t});import{cva as ur}from"class-variance-authority";import{forwardRef as Km}from"react";import{InformationCircleIcon as Ym}from"@heroicons/react/24/outline";import{jsx as xa,jsxs as gr}from"react/jsx-runtime";var Jm=ur("px-3 py-2 rounded-md border flex items-center space-x-2 text-gray-700 text-sm ",{variants:{typeDiv:{neutral:"bg-gray-50 border-gray-300 ",error:"bg-red-50 border-red-300",success:"bg-green-50 border-green-300",warning:"bg-yellow-50 border-yellow-300",info:"bg-blue-50 border-blue-300"},disabled:{true:"text-gray-400 bg-gray-50 opacity-55 pointer-events-none border-gray-300"}},defaultVariants:{typeDiv:"neutral"}}),ec=ur("w-5 h-5 shrink-0 border-none p-0 ",{variants:{typeIcon:{neutral:"text-gray-700",error:"text-red-700",success:"text-green-700",warning:"text-yellow-700",info:"text-blue-700"},disabled:{true:"text-gray-400"}},defaultVariants:{typeIcon:"neutral"}}),tc=Km(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:l,...d},p)=>gr("div",{ref:p,className:r("",i,Jm({typeDiv:e,disabled:n})),...d,children:[gr("div",{className:"flex items-center space-x-2",children:[l||xa(Ym,{className:r(ec({typeIcon:e,disabled:n})),width:20,height:20}),o&&xa("div",{children:o})]}),t&&xa(be,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));import{forwardRef as oc,useEffect as ac,useRef as ic,useState as rc}from"react";import{MagnifyingGlassIcon as nc}from"@heroicons/react/20/solid";import{XCircleIcon as sc}from"@heroicons/react/24/outline";import{jsx as St,jsxs as vr}from"react/jsx-runtime";var lc=oc(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:l,defaultValue:d,type:p="text",...m},g)=>{let[u,R]=rc(!1),M=ic(null),j=F=>{F&&!u&&R(!0),!F&&u&&R(!1)},I=F=>{j(F.target.value),i?.(F)},V=F=>{j(F.target.value),n?.(F)},O=()=>{let F=M.current?.querySelector("input");F&&(s?.(F.value),F.value="",F.focus(),R(!1))};return ac(()=>{j(d||l)},[l,d]),vr("div",{className:r(o),ref:M,children:[vr("div",{className:"relative flex items-center",children:[St("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:St(nc,{className:"w-4 h-4 text-gray-500"})}),St("input",{disabled:e,type:p,ref:g,className:r("mobase-text-input-box text-gray-900 h-10 bg-white w-full transition-all text-sm rounded-md border border-gray-300 placeholder:text-gray-500 px-9 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 disabled:pointer-events-none block disabled:opacity-50",t),onChange:I,onFocus:V,value:l,defaultValue:d,...m}),u&&St("button",{"aria-label":"button",type:"button",className:"absolute right-3 top-1/2 -translate-y-1/2 shrink-0 cursor-pointer text-gray-500 duration-200 hover:opacity-70 disabled:pointer-events-none",disabled:e,onClick:O,children:St(sc,{strokeWidth:2,width:20,height:20})})]}),St("style",{children:`
|
|
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 ae from"@radix-ui/react-dialog";import pr,{useContext as zm,useEffect as dr,useState as la}from"react";import{X as Bm}from"lucide-react";import Vm from"lodash";import*as cr from"@radix-ui/react-aspect-ratio";var de=cr.Root;import{jsx as O,jsxs as He}from"react/jsx-runtime";var fr=pr.createContext(void 0);function gr(){let e=zm(fr);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var ma=({children:e,open:t,onOpenChange:o,className:a})=>O(fr.Provider,{value:{open:t,onOpenChange:o},children:O(ae.Root,{open:t,onOpenChange:o,children:O("div",{className:r("lightbox-gallery",a),children:e})})}),Om=({children:e,src:t,alt:o,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=gr(),f=()=>{n?.(),l&&l(!0)};return He(ae.Trigger,{className:r("",a),onClick:f,children:[e,O(de,{ratio:s,className:"rounded-lg cursor-pointer",children:O("img",{src:t,alt:o,className:r("w-full h-full object-cover rounded-lg",i)})})]})},ur=pr.forwardRef(({className:e,children:t,...o},a)=>{let{onOpenChange:i}=gr(),n=()=>{i&&i(!1)};return He(ae.Portal,{children:[O(ae.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),He(ae.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),...o,children:[t,He(ae.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:[O(Bm,{className:"h-4 w-4 mt-0.5"}),O("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});ur.displayName=ae.Content.displayName;var ca=({images:e,activeSlideIndex:t=0,withSideBar:o,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=la(""),[l,f]=la(),[p,c]=la(0);dr(()=>{l&&(c(l.selectedScrollSnap()+1),l.on("select",()=>{c(l.selectedScrollSnap()+1)}))},[l]);let g=v=>{let S=Vm.filter(e,(G,D)=>D===(v>0?v-1:v)),H=S.length>0?S[0]?.titleImage:"";s(H)};return dr(()=>{g(p)},[p]),He(ur,{className:"flex py-0",children:[He("div",{className:" flex-1 relative",children:[He("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[p||1," / ",e?.length]}),He(ao,{opts:{startIndex:t},setApi:f,className:"w-full h-full relative",children:[O(io,{className:r("h-screen -ml-3 md:-ml-4",o?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((v,S)=>O(ro,{className:"pl-6 md:pl-4",children:He("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[O("div",{className:"flex-1 relative",children:O("img",{src:v.url,alt:"",className:"absolute h-full w-full object-contain"})}),O("div",{className:"flex-0",children:O("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:O("div",{className:"line-clamp-3",children:n})})})]})},S))}),O(no,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),O(so,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),o&&O("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as $e from"react";import*as Ge from"@radix-ui/react-radio-group";import{Circle as Wm}from"lucide-react";import*as Ot from"@radix-ui/react-checkbox";import{CheckIcon as $m}from"@heroicons/react/16/solid";import{jsx as Pe,jsxs as yr}from"react/jsx-runtime";var vr=$e.createContext({hideIndicator:!1});function Gm(){let e=$e.useContext(vr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var br=$e.forwardRef(({className:e,hideIndicator:t=!1,...o},a)=>Pe(vr.Provider,{value:{hideIndicator:t},children:Pe(Ge.Root,{className:r("grid gap-2",t&&"hide-indicator",e),...o,ref:a})}));br.displayName=Ge.Root.displayName;var xr=$e.forwardRef(({className:e,children:t,...o},a)=>{let i=Gm(),{hideIndicator:n}=i??{};return yr(Ge.Item,{ref:a,className:r("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...o,children:[Pe("div",{className:"flex-1 min-w-0",children:t}),!n&&Pe("div",{className:r("flex-none aspect-square h-4 w-4 rounded-full border-2 border-gray-300 group-disabled:bg-gray-200 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:text-white group-disabled:data-[state=checked]:bg-gray-100 group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:border-none group-disabled:cursor-default has"),children:Pe(Ge.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Pe(Wm,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});xr.displayName=Ge.Item.displayName;var hr=$e.forwardRef(({className:e,children:t,...o},a)=>yr(Ot.Root,{ref:a,className:r("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...o,children:[Pe("div",{className:"flex-1 min-w-0",children:t}),Pe("div",{className:"h-4 w-4 shrink-0 rounded border-2 group-disabled:bg-gray-300 border-gray-300 ring-offset-background group-disabled:cursor-default group-disabled:bg-gray-100 group-data-[state=checked]:border-none group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:Pe(Ot.Indicator,{className:r("flex items-center justify-center text-current"),children:Pe($m,{className:"h-4 w-4"})})})]}));hr.displayName=Ot.Root.displayName;import{cva as jm}from"class-variance-authority";import{jsx as Qm}from"react/jsx-runtime";var wr=jm("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 Um({className:e,variant:t,...o}){return Qm("div",{className:r(wr({variant:t}),e),...o})}import*as Pr from"react";import*as Wt from"@radix-ui/react-progress";import{cva as Cr}from"class-variance-authority";import{jsx as Nr}from"react/jsx-runtime";var Xm=Cr("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"}}),qm=Cr("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"}}),Rr=Pr.forwardRef(({className:e,value:t,variant:o="progress",size:a="medium",disabled:i=!1,...n},s)=>Nr(Wt.Root,{ref:s,className:r("",qm({size:a}),e),...n,children:Nr(Wt.Indicator,{className:r("",Xm({variant:o})),style:{transform:`translateX(-${100-(t||0)}%)`}})}));Rr.displayName=Wt.Root.displayName;import{jsx as Km}from"react/jsx-runtime";function Zm({className:e,...t}){return Km("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...t})}import*as Tr from"react";import*as Ce from"@radix-ui/react-slider";import{jsx as je,jsxs as Ym}from"react/jsx-runtime";var kr=Tr.forwardRef(({className:e,showIndicatorValue1:t,showIndicatorValue2:o,...a},i)=>Ym(Ce.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[je(Ce.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:je(Ce.Range,{className:"absolute h-full bg-pink-500"})}),je(Ce.Thumb,{className:"group relative",children:je("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:t&&je("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-xs rounded px-2 py-1 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-1 whitespace-nowrap",children:t})})}),je(Ce.Thumb,{className:"group relative",children:je("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:o&&je("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-xs rounded px-2 py-1 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-1 whitespace-nowrap",children:o})})})]}));kr.displayName=Ce.Root.displayName;import{forwardRef as fc}from"react";import{Fragment as oc,jsx as pe,jsxs as Po}from"react/jsx-runtime";var Jm=({author:e=""})=>pe("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),ec=({author:e,avatar:t})=>pe("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:t?pe("img",{src:t,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):pe(Jm,{author:e})});function tc({avatar:e="",author:t="",time:o,statusMessage:a,isOutStanding:i}){return pe(oc,{children:Po("div",{className:"flex relative items-center space-x-3",children:[pe(ec,{avatar:e,author:t}),Po("div",{className:"flex flex-col",children:[t&&pe("div",{className:"font-semibold text-gray-900 text-sm",children:t}),Po("div",{className:"flex items-center space-x-2 text-xs",children:[o&&pe("div",{className:"text-gray-400",children:o}),a&&Po("div",{className:"flex items-center space-x-2",children:[pe("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),pe("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&pe("div",{className:"absolute right-1 top-0",children:pe("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Sr=tc;import{useState as Lr}from"react";import{StarIcon as ac}from"@heroicons/react/20/solid";import{jsx as Dr,jsxs as Mr}from"react/jsx-runtime";var ic={1:"K\xE9n ng\u01B0\u1EDDi m\xEA",2:"K\xE9n ng\u01B0\u1EDDi m\xEA",3:"Ch\u01B0a \u01B0ng l\u1EAFm",4:"Ch\u01B0a \u01B0ng l\u1EAFm",5:"T\u1EA1m \u1ED5n",6:"T\u1EA1m \u1ED5n",7:"\u0110\xE1ng xem",8:"\u0110\xE1ng xem",9:"C\u1EF1c ph\u1EA9m!",10:"C\u1EF1c ph\u1EA9m!"},rc={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 nc({point:e,max:t,className:o}){let a=t>5?ic[e||10]:rc[e||5];return Mr("div",{className:r("flex items-center space-x-1",o),children:[Dr(ac,{className:"w-5 h-5 text-yellow-500"}),Dr("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${t}`}),Mr("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Ir=nc;import{useState as sc}from"react";import Ar from"html-react-parser";import{jsx as lc,jsxs as mc}from"react/jsx-runtime";var da=({children:e,maxChar:t=260,textMore:o="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=sc(!0),f=()=>{l(!s)},p=(c,g,v=" ")=>c.length<=g?c:c.substring(0,c.lastIndexOf(v,g));return mc("div",{className:r(n),children:[s?Ar(p(e,t)):Ar(e),e.length>t&&lc("span",{onClick:f,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?o:a})]})};import{jsx as mt,jsxs as Er}from"react/jsx-runtime";function cc({content:e,thumbnails:t=[],tags:o=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=Lr(0),[f,p]=Lr(!1),c=g=>{p(!0),l(g)};return Er("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&mt(Ir,{className:"mb-0.5",point:i.point,max:i.max}),e&&mt(da,{className:"text-sm",maxChar:n,children:e}),o?.length>0&&mt("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:o?.map(g=>mt("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:g}))}),t?.length>0&&Er(ma,{open:f,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:[t?.map((g,v)=>mt(de,{onClick:()=>c(v),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:mt("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},v)),mt(ca,{activeSlideIndex:s,images:t?.map((g,v)=>({url:g.url,titleImage:g.titleImage,idx:v})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Hr=cc;import{jsx as pc}from"react/jsx-runtime";function dc({actions:e=[]}){return pc("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Fr=dc;import{jsx as Co,jsxs as uc}from"react/jsx-runtime";var gc=fc(({avatar:e,author:t,time:o,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:f,isReply:p,children:c,commentSideBar:g,isOutStanding:v,limitContent:S=260},H)=>uc("div",{ref:H,className:r("",p?"ml-4 py-4":"py-5"),children:[Co(Sr,{avatar:e,author:t,time:o,statusMessage:f,isOutStanding:v}),Co(Hr,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:S}),l&&l?.filter(Boolean)?.length>0&&Co(Fr,{actions:l.filter(Boolean)}),c&&Co("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 Ue from"react";import{cva as vc}from"class-variance-authority";import{CheckIcon as bc}from"@heroicons/react/16/solid";import{XIcon as xc}from"lucide-react";import{jsx as Z,jsxs as Ro}from"react/jsx-runtime";var hc=vc("flex items-center shrink-0 justify-center rounded-full shrink-0",{variants:{state:{active:"bg-pink-500 text-white shadow-[0_0px_0px_3px_rgb(255,255,255),0_0px_0px_4px_rgb(var(--mobase-pink-500))]",disabled:"bg-gray-400 text-gray-200",default:"text-gray-500 bg-white shadow-[inset_0px_0px_0px_1px_rgb(var(--mobase-gray-300))]",completed:"bg-pink-500 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),_r=Ue.createContext("default");function yc(){let e=Ue.useContext(_r);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var wc=Ue.memo(({type:e,icon:t,stepNumber:o,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?Z(xc,{className:s}):Ro("div",{children:[e==="iconStep"&&Z("div",{className:s,children:t}),e==="numberStep"&&Z("div",{children:o}),e==="default"&&(n==="completed"?Z(bc,{className:s}):Z("div",{children:o}))]})}),Nc=({step:e,currentStep:t,onValueChangeStep:o,children:a})=>{let i=Ue.useCallback(()=>{e!==t&&o(e)},[e,t,o]);return Z("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Pc=({step:e,state:t="default",size:o="default",className:a,title:i,description:n,lastStep:s,fristStep:l,icon:f,isError:p,onValueChangeStep:c,...g})=>{let v=yc();return Ro("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[Ro("div",{className:"flex w-full items-center justify-center gap-2",children:[Z("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",t==="active"&&"bg-pink-300",t==="completed"&&"bg-pink-300")}),Z("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",hc({state:t,size:o}),p&&"bg-red-500 text-white shadow-none",a),...g,children:Z(wc,{type:v,icon:f,stepNumber:e,size:o,isError:p,state:t})}),Z("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",s&&"opacity-0",t==="completed"&&"bg-pink-300")})]}),Ro("div",{className:"text-center w-full flex flex-col items-center mt-2 px-0.5",children:[i&&Z("div",{className:"text-xs font-bold text-slate-900 ",children:i}),n&&Z("div",{className:"text-xs text-gray-500 ",children:n})]})]})},Cc=({children:e,className:t,type:o="numberStep",...a})=>Z(_r.Provider,{value:o,children:Z("div",{className:r("flex items-start justify-between w-full",t),...a,children:e})});import*as K from"react";import{Slot as Sc}from"@radix-ui/react-slot";import{Controller as Dc,FormProvider as Mc,useFormContext as Ic}from"react-hook-form";import*as zr from"react";import*as pa from"@radix-ui/react-label";import{cva as Rc}from"class-variance-authority";import{jsx as kc}from"react/jsx-runtime";var Tc=Rc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),To=zr.forwardRef(({className:e,...t},o)=>kc(pa.Root,{ref:o,className:r(Tc(),e),...t}));To.displayName=pa.Root.displayName;import{jsx as Qe}from"react/jsx-runtime";var Ac=Mc,Br=K.createContext({}),Lc=({...e})=>Qe(Br.Provider,{value:{name:e.name},children:Qe(Dc,{...e})}),$t=()=>{let e=K.useContext(Br),t=K.useContext(Vr),{getFieldState:o,formState:a}=Ic(),i=o(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=t;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},Vr=K.createContext({}),Or=K.forwardRef(({className:e,...t},o)=>{let a=K.useId();return Qe(Vr.Provider,{value:{id:a},children:Qe("div",{ref:o,className:r("space-y-2",e),...t})})});Or.displayName="FormItem";var Wr=K.forwardRef(({className:e,...t},o)=>{let{error:a,formItemId:i}=$t();return Qe(To,{ref:o,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...t})});Wr.displayName="FormLabel";var $r=K.forwardRef(({...e},t)=>{let{error:o,formItemId:a,formDescriptionId:i,formMessageId:n}=$t();return Qe(Sc,{ref:t,id:a,"aria-describedby":o?`${i} ${n}`:`${i}`,"aria-invalid":!!o,...e})});$r.displayName="FormControl";var Gr=K.forwardRef(({className:e,...t},o)=>{let{formDescriptionId:a}=$t();return Qe("p",{ref:o,id:a,className:r("text-[0.8rem] text-gray-500",e),...t})});Gr.displayName="FormDescription";var jr=K.forwardRef(({className:e,children:t,...o},a)=>{let{error:i,formMessageId:n}=$t(),s=i?String(i?.message):t;return s?Qe("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...o,children:s}):null});jr.displayName="FormMessage";import*as Fe from"react";import*as b from"@radix-ui/react-dropdown-menu";import{ChevronRight as Ec,Check as Hc}from"lucide-react";import{jsx as X,jsxs as Gt}from"react/jsx-runtime";var Fc=b.Root,_c=b.Trigger,zc=b.Group,Bc=b.Portal,Vc=b.Sub,Oc=b.RadioGroup,Ur=Fe.forwardRef(({className:e,inset:t,children:o,...a},i)=>Gt(b.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a,children:[o,X(Ec,{className:"ml-auto"})]}));Ur.displayName=b.SubTrigger.displayName;var Qr=Fe.forwardRef(({className:e,...t},o)=>X(b.SubContent,{ref:o,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),...t}));Qr.displayName=b.SubContent.displayName;var Xr=Fe.forwardRef(({className:e,sideOffset:t=4,...o},a)=>X(b.Portal,{children:X(b.Content,{ref:a,sideOffset:t,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),...o})}));Xr.displayName=b.Content.displayName;var qr=Fe.forwardRef(({className:e,inset:t,...o},a)=>X(b.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",t&&"pl-8",e),...o}));qr.displayName=b.Item.displayName;var Zr=Fe.forwardRef(({className:e,children:t,checked:o,...a},i)=>Gt(b.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:o,...a,children:[Gt("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[o===!1&&X("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),X(b.ItemIndicator,{children:X("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:X(Hc,{size:16,strokeWidth:3})})})]}),t]}));Zr.displayName=b.CheckboxItem.displayName;var Kr=Fe.forwardRef(({className:e,children:t,...o},a)=>Gt(b.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...o,children:[Gt("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[X("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),X(b.ItemIndicator,{children:X("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),t]}));Kr.displayName=b.RadioItem.displayName;var Yr=Fe.forwardRef(({className:e,inset:t,...o},a)=>X(b.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));Yr.displayName=b.Label.displayName;var Jr=Fe.forwardRef(({className:e,...t},o)=>X(b.Separator,{ref:o,className:r("-mx-1 my-1 h-px bg-gray-100",e),...t}));Jr.displayName=b.Separator.displayName;var en=({className:e,...t})=>X("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...t});en.displayName="DropdownMenuShortcut";import{useRef as Wc,useState as $c,useEffect as Gc,useCallback as jc,createContext as Uc,useContext as fa}from"react";import{ChevronLeft as Qc,ChevronRight as Xc}from"lucide-react";import{Fragment as qc,jsx as Xe,jsxs as tn}from"react/jsx-runtime";var ko=Uc(void 0),ga=({showGradientOverlay:e=!0,gradientOverlayColor:t="255, 255, 255",className:o,children:a})=>{let i=Wc(null),[n,s]=$c({left:!1,right:!1}),l=jc(()=>{let p=i.current;if(p){let{scrollLeft:c,scrollWidth:g,clientWidth:v}=p;s({left:c>0,right:c+v<g})}},[]);Gc(()=>{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 f=p=>{let c=i.current;if(c){let g=c.clientWidth*.7*(p==="left"?-1:1);c.scrollBy({left:g,behavior:"smooth"})}};return Xe(ko.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:f,gradientOverlayColor:t},children:tn("div",{className:r("relative w-full",o),children:[e&&tn(qc,{children:[n.left&&Xe("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${t}),rgb(${t}))`}}),n.right&&Xe("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 pointer-events-none flex items-center w-16 h-full",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${t}),rgb(${t}))`}})]}),a]})})},ua=({className:e,children:t})=>{let o=fa(ko);if(!o)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Xe("div",{ref:o.scrollContainerRef,className:r("overflow-x-auto scrollbar-hide scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:t})},va=({className:e,children:t,...o})=>{let a=fa(ko);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Xe(ue,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute left-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:o.size||"sm",variant:o.variant||"secondary",...o,children:t||Xe(Qc,{className:"h-4 w-4"})}):null},ba=({className:e,children:t,...o})=>{let a=fa(ko);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Xe(ue,{className:r("pointer-events-auto rounded-full w-6 h-6 absolute right-0.5 top-1/2 -translate-y-1/2 z-10",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:o.size||"sm",variant:o.variant||"secondary",...o,children:t||Xe(Xc,{className:"h-4 w-4"})}):null};import xa from"html-react-parser";import{jsx as ct,jsxs as Zc}from"react/jsx-runtime";var $=({idSection:e,className:t,background:o,children:a})=>ct("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",t),style:{background:o},children:ct("div",{className:"wrapper relative",children:a})}),P=({align:e="center",tagline:t,title:o,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let f=n==="black"?"pink":n==="pink"?"regular":"white",p=n==="pink"?"pink":n==="white"?"white":"regular",c=n==="white"?"white":"regular";return Zc($o,{align:e,className:l,children:[t&&ct(Vo,{color:f,children:t}),o&&ct(Oo,{tagHeading:i,color:p,size:s,children:xa(o)}),a&&ct(Wo,{color:c,marginTop:s==="large"?"spacing2Xl":"spacingX",children:xa(a)})]})},C=({align:e,isFullInMobile:t=!1,buttons:o,className:a})=>o?.length===0?null:ct("div",{className:r("buttons-block mt-8 md:mt-10 flex gap-4 w-full",e==="center"&&"justify-center",e==="right"&&"justify-end",t&&"flex-wrap md:flex-nowrap",a),children:o?.slice(0,2).map((i,n)=>{let{btnName:s,...l}=i;return ct(kt,{...l,className:r(t&&"w-full md:w-auto",i?.className),children:xa(s)},n)})});import on from"html-react-parser";import{Fragment as rn,jsx as fe,jsxs as ha}from"react/jsx-runtime";var an=({dataHeading:e,dataHowItWorks:t,dataButtons:o})=>ha(rn,{children:[e&&fe(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&t?.length>0&&fe("div",{className:"flex flex-row flex-wrap -mx-3.5 gap-y-5",children:t.slice(0,3).map((a,i)=>fe("div",{className:"basis-full md:basis-1/3 px-3.5",children:ha("div",{className:"px-6 md:px-4 lg:px-6 py-8 rounded-lg shadow-lg bg-white text-center border border-gray-100 h-full",children:[fe("div",{className:"w-9 h-9 bg-pink-500 rounded-full flex justify-center items-center text-white text-xl font-bold mx-auto",children:i+1}),ha("div",{className:"w-full mt-6",children:[fe("div",{className:"w-full font-semibold text-xl",children:on(a.title)}),a?.description&&fe("div",{className:"text-base mt-2 text-gray-600",children:on(a.description)})]})]})},i))}),o&&fe(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),Kc=({template:e,dataHeading:t,dataHowItWorks:o,dataButtons:a})=>{switch(e){case 1:return fe(an,{dataHeading:t,dataHowItWorks:o,dataButtons:a});default:return fe(an,{dataHeading:t,dataHowItWorks:o,dataButtons:a})}},Yc=({template:e,dataHeading:t,dataHowItWorks:o,dataButtons:a})=>fe(rn,{children:Kc({template:e,dataHeading:t,dataHowItWorks:o,dataButtons:a})}),Jc=({template:e=1,background:t,className:o,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>fe($,{className:o,idSection:a,background:t,children:fe(Yc,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{forwardRef as sd}from"react";import{cva as ed}from"class-variance-authority";import nn from"html-react-parser";import{CheckIcon as td}from"lucide-react";import{Fragment as ad,jsx as _e,jsxs as jt}from"react/jsx-runtime";var od=ed("text-gray-800 list-inside mt-6",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-2 md:grid-cols-4 gap-2 w-full",3:"grid grid-cols-1 md:grid-cols-4 gap-4 md:gap-12 max-w-5xl mx-auto items-center py-8 md:py-12 text-left text-sm font-semibold space-y-1"}},defaultVariants:{template:1}}),sn=({template:e,name:t,description:o,image:a,idx:i,value:n,suffix:s,unit:l})=>_e(ad,{children:(()=>{switch(e){case 1:case 3:return jt("li",{className:"flex items-center space-x-4",children:[a?_e("div",{className:"w-10 h-10 flex justify-center items-center shrink-0",children:_e("img",{src:a,alt:"",className:"max-w-full"})}):_e("div",{className:"bg-pink-100 p-1 rounded-full w-5 h-5 flex items-center justify-center",children:_e(td,{className:"w-4 h-4 text-pink-500"})}),t&&_e("div",{className:"ml-2 leading-tight",children:nn(t)})]});case 2:return jt("div",{className:r("odd:border-0 odd:pr-4 even:pl-4 even:border-l border-gray-200 md:border-l md:odd:border-l md:odd:pr-0",i>0?"md:pl-4":"md:!border-0"),children:[n&&jt("div",{className:"font-bold text-gray-900 line-clamp-2",children:[n,(s||l)&&jt("span",{children:[s," ",l]})]}),o&&_e("div",{className:"text-sm mt-1 text-gray-500 leading-tight",children:nn(o)})]});default:return null}})()}),So=({dataFeatures:e,template:t=1,dataStats:o})=>jt("ul",{className:r("",od({template:t})),children:[(t===1||t===3)&&e?.map((a,i)=>_e(sn,{name:a?.name,template:t,image:a?.image,idx:i},i)),t===2&&o?.map((a,i)=>_e(sn,{value:a?.value,suffix:a?.suffix,unit:a?.unit,template:t,description:a?.description,idx:i},i))]});import{Fragment as rd,jsx as Y,jsxs as ya}from"react/jsx-runtime";var ln=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,id=({src:e,ratio:t,className:o,youtubeId:a,onClickFC:i=()=>{}})=>ya(de,{className:r(""),ratio:ln(t),children:[Y("img",{src:e,className:r("w-full h-full object-cover md:block hidden",o,e?"":"bg-gray-200"),alt:""}),a&&Y("div",{className:"aspect-[16/9] realtive overflow-hidden w-full md:hidden",children:Y("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"w-full h-full object-cover md:hidden"})}),a&&ya(et,{children:[Y(Lo,{onClick:i,children:Y("div",{className:"w-full hidden md:flex h-full cursor-pointer transition-transform group-hover:scale-105 top-0 absolute z-10 items-center justify-center",children:Y("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:ya("g",{fill:"none",fillRule:"evenodd",children:[Y("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),Y("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"})]})})})}),Y(ze,{hideCloseBtn:!0,className:"w-full h-full !shadow-none !bg-transparent flex items-center justify-center bg-gray-900 p-0",children:Y("iframe",{width:738,height:439,title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:""})})]})]}),Ut=({type:e=1,src:t,ratio:o,className:a,youtubeId:i,onClickFC:n=()=>{}})=>Y(rd,{children:i?Y(id,{type:e,src:t,ratio:o,youtubeId:i,onClickFC:n}):Y(de,{className:r(""),ratio:ln(o),children:Y("img",{src:t,className:r("w-full h-full object-cover",a,t?"":"bg-gray-200"),alt:""})})});import{Fragment as nd,jsx as W,jsxs as Qt}from"react/jsx-runtime";var wa=({dataHeading:e,dataButtons:t,dataFeatures:o,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Qt("div",{className:r("grid grid-cols-1 md:grid-cols-2 md:gap-6 gap-8 items-center"),children:[Qt("div",{className:"col-span-1 ",children:[W(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:`${e?.className} mb-0 md:mb-0`}),W(So,{dataFeatures:o,template:a,dataStats:i}),t&&W(C,{align:"left",isFullInMobile:t?.isFullInMobile,buttons:t?.buttons})]}),W("div",{className:"col-span-1 md:pl-10",children:s||W(Ut,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),mn=({dataHeading:e,dataButtons:t,dataFeatures:o,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Qt("div",{className:r("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[W("div",{className:"col-span-1 hidden md:block",children:s||W(Ut,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),Qt("div",{className:"col-span-1",children:[W(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:e?.className}),W(So,{dataFeatures:o,template:a,dataStats:i}),W("div",{className:"md:hidden mt-10",children:s||W(Ut,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),t&&W("div",{className:"w-full flex items-center justify-center md:justify-start",children:W(C,{align:"left",isFullInMobile:t?.isFullInMobile,buttons:t?.buttons})})]})]}),cn=({dataHeading:e,dataButtons:t,dataFeatures:o,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>Qt(nd,{children:[W(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:`${e?.className||""} mb-0 md:mb-0`}),t&&W(C,{align:"center",isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:"w-full md:w-full inline-flex items-center justify-center text-base font-semibold text-center"}),W(So,{dataFeatures:o,template:a,dataStats:i}),s||W(Ut,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"rounded-lg"})]});import{Fragment as pd,jsx as dt}from"react/jsx-runtime";var ld=`var(
|
|
139
|
+
`})]})});import*as ie from"@radix-ui/react-dialog";import hr,{useContext as mc,useEffect as xr,useState as ha}from"react";import{X as cc}from"lucide-react";import dc from"lodash";import*as br from"@radix-ui/react-aspect-ratio";var pe=br.Root;import{jsx as $,jsxs as ze}from"react/jsx-runtime";var yr=hr.createContext(void 0);function wr(){let e=mc(yr);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var ya=({children:e,open:o,onOpenChange:t,className:a})=>$(yr.Provider,{value:{open:o,onOpenChange:t},children:$(ie.Root,{open:o,onOpenChange:t,children:$("div",{className:r("lightbox-gallery",a),children:e})})}),pc=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:l}=wr(),d=()=>{n?.(),l&&l(!0)};return ze(ie.Trigger,{className:r("",a),onClick:d,children:[e,$(pe,{ratio:s,className:"rounded-lg cursor-pointer",children:$("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},Nr=hr.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=wr(),n=()=>{i&&i(!1)};return ze(ie.Portal,{children:[$(ie.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),ze(ie.Content,{ref:a,className:r("fixed z-[999] w-full h-full inset-0 grid w-full mx-auto bg-black duration-200","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",e),...t,children:[o,ze(ie.Close,{onClick:n,className:"flex transition-all z-10 text-sm items-center space-x-1 absolute left-3 top-6 md:left-6 hover:bg-white/20 text-white rounded-md px-4 py-2",children:[$(cc,{className:"h-4 w-4 mt-0.5"}),$("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Nr.displayName=ie.Content.displayName;var wa=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=ha(""),[l,d]=ha(),[p,m]=ha(0);xr(()=>{l&&(m(l.selectedScrollSnap()+1),l.on("select",()=>{m(l.selectedScrollSnap()+1)}))},[l]);let g=u=>{let R=dc.filter(e,(j,I)=>I===(u>0?u-1:u)),M=R.length>0?R[0]?.titleImage:"";s(M)};return xr(()=>{g(p)},[p]),ze(Nr,{className:"flex py-0",children:[ze("div",{className:" flex-1 relative",children:[ze("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[p||1," / ",e?.length]}),ze(go,{opts:{startIndex:o},setApi:d,className:"w-full h-full relative",children:[$(uo,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,R)=>$(vo,{className:"pl-6 md:pl-4",children:ze("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[$("div",{className:"flex-1 relative",children:$("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),$("div",{className:"flex-0",children:$("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:$("div",{className:"line-clamp-3",children:n})})})]})},R))}),$(bo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),$(xo,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&$("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};import*as qe from"react";import*as Ze from"@radix-ui/react-radio-group";import{Circle as fc}from"lucide-react";import*as Zt from"@radix-ui/react-checkbox";import{CheckIcon as gc}from"@heroicons/react/16/solid";import{jsx as Te,jsxs as kr}from"react/jsx-runtime";var Pr=qe.createContext({hideIndicator:!1});function uc(){let e=qe.useContext(Pr);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Cr=qe.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>Te(Pr.Provider,{value:{hideIndicator:o},children:Te(Ze.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Cr.displayName=Ze.Root.displayName;var Rr=qe.forwardRef(({className:e,children:o,...t},a)=>{let i=uc(),{hideIndicator:n}=i??{};return kr(Ze.Item,{ref:a,className:r("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[Te("div",{className:"flex-1 min-w-0",children:o}),!n&&Te("div",{className:r("flex-none aspect-square h-4 w-4 rounded-full border-2 border-gray-300 group-disabled:bg-gray-200 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:text-white group-disabled:data-[state=checked]:bg-gray-100 group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:border-none group-disabled:cursor-default has"),children:Te(Ze.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Te(fc,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Rr.displayName=Ze.Item.displayName;var Tr=qe.forwardRef(({className:e,children:o,...t},a)=>kr(Zt.Root,{ref:a,className:r("cursor-pointer relative block border border-gray-300 text-gray-900 p-3 md:px-4 md:py-3 rounded-md bg-white w-full hover:border-pink-500 disabled:bg-gray-100 disabled:border-gray-300 disabled:pointer-events-none disabled:cursor-default data-[state=checked]:border-pink-500 ring-inset ring-pink-500 data-[state=checked]:ring-[1px] group flex items-center space-x-2 text-left",e),...t,children:[Te("div",{className:"flex-1 min-w-0",children:o}),Te("div",{className:"h-4 w-4 shrink-0 rounded border-2 group-disabled:bg-gray-300 border-gray-300 ring-offset-background group-disabled:cursor-default group-disabled:bg-gray-100 group-data-[state=checked]:border-none group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:Te(Zt.Indicator,{className:r("flex items-center justify-center text-current"),children:Te(gc,{className:"h-4 w-4"})})})]}));Tr.displayName=Zt.Root.displayName;import{cva as vc}from"class-variance-authority";import{jsx as xc}from"react/jsx-runtime";var Sr=vc("inline-flex items-center rounded-md border border-gray-300 px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-semibold",{variants:{variant:{default:"border-transparent bg-pink-500 text-white/90 shadow hover:bg-pink-500/80",secondary:"border-transparent bg-gray-200 text-gray-900 hover:bg-gray-200/80",outline:"text-gray-900",danger:"border-transparent bg-red-500 text-white/90 shadow hover:bg-red-500/80"}},defaultVariants:{variant:"default"}});function bc({className:e,variant:o,...t}){return xc("div",{className:r(Sr({variant:o}),e),...t})}import*as Mr from"react";import*as Kt from"@radix-ui/react-progress";import{cva as Ir}from"class-variance-authority";import{jsx as Dr}from"react/jsx-runtime";var hc=Ir("h-full w-full rounded-full flex-1 transition-all",{variants:{variant:{progress:"bg-pink-500",success:"bg-green-600",disabled:"bg-gray-400",empty:"bg-gray-200"}},defaultVariants:{variant:"progress"}}),yc=Ir("relative h-4 w-full overflow-hidden rounded-full bg-gray-200",{variants:{size:{small:"h-[6px]",medium:"h-2",large:"h-[10px]"}},defaultVariants:{size:"medium"}}),Ar=Mr.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>Dr(Kt.Root,{ref:s,className:r("",yc({size:a}),e),...n,children:Dr(Kt.Indicator,{className:r("",hc({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));Ar.displayName=Kt.Root.displayName;import{jsx as Nc}from"react/jsx-runtime";function wc({className:e,...o}){return Nc("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}import{Fragment as Cc,jsx as bt,jsxs as Lr}from"react/jsx-runtime";function Pc({size:e="md",color:o="bg-pink-500",className:t,template:a="default"}){let i={xs:"size-4",sm:"size-5",md:"size-7",lg:"size-9"},n={xs:"size-1",sm:"size-1.5",md:"size-2",lg:"size-3"};return bt("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return Lr("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((l,d)=>bt("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e])},d)),bt("style",{children:`
|
|
140
|
+
.spinner_dots span {
|
|
141
|
+
animation-name: spinner-dots;
|
|
142
|
+
animation-duration: 1.4s;
|
|
143
|
+
animation-iteration-count: infinite;
|
|
144
|
+
animation-fill-mode: both;
|
|
145
|
+
}
|
|
146
|
+
.spinner_dots span:nth-child(2) {
|
|
147
|
+
animation-delay: .2s;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.spinner_dots span:nth-child(3) {
|
|
151
|
+
animation-delay: .4s;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@keyframes spinner-dots {
|
|
155
|
+
0% {
|
|
156
|
+
opacity: .2;
|
|
157
|
+
}
|
|
158
|
+
20% {
|
|
159
|
+
opacity: 1;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
100% {
|
|
163
|
+
opacity: .2;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
`})]});case"default":default:return Lr(Cc,{children:[bt("div",{className:r("spinner_wrapper relative size-5 overflow-hidden",i[e],t),children:bt("div",{className:r("spinner relative left-1/2 top-1/2 size-5 ",i[e]),children:[...Array(12)].map((l,d)=>bt("div",{className:r(`spinner_bar child-${d+1}`,o)},d))})}),bt("style",{children:`
|
|
167
|
+
.spinner_bar {
|
|
168
|
+
animation: spinner_spin 1.2s linear infinite;
|
|
169
|
+
border-radius: 20px;
|
|
170
|
+
height: 8%;
|
|
171
|
+
left: -10%;
|
|
172
|
+
position: absolute;
|
|
173
|
+
top: -3.9%;
|
|
174
|
+
width: 24%;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.spinner_bar.child-1 {
|
|
178
|
+
animation-delay: -1.2s;
|
|
179
|
+
transform: rotate(0.0001deg) translate(146%);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.spinner_bar.child-2 {
|
|
183
|
+
animation-delay: -1.1s;
|
|
184
|
+
transform: rotate(30deg) translate(146%);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.spinner_bar.child-3 {
|
|
188
|
+
animation-delay: -1s;
|
|
189
|
+
transform: rotate(60deg) translate(146%);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.spinner_bar.child-4 {
|
|
193
|
+
animation-delay: -0.9s;
|
|
194
|
+
transform: rotate(90deg) translate(146%);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.spinner_bar.child-5 {
|
|
198
|
+
animation-delay: -0.8s;
|
|
199
|
+
transform: rotate(120deg) translate(146%);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.spinner_bar.child-6 {
|
|
203
|
+
animation-delay: -0.7s;
|
|
204
|
+
transform: rotate(150deg) translate(146%);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.spinner_bar.child-7 {
|
|
208
|
+
animation-delay: -0.6s;
|
|
209
|
+
transform: rotate(180deg) translate(146%);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.spinner_bar.child-8 {
|
|
213
|
+
animation-delay: -0.5s;
|
|
214
|
+
transform: rotate(210deg) translate(146%);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.spinner_bar.child-9 {
|
|
218
|
+
animation-delay: -0.4s;
|
|
219
|
+
transform: rotate(240deg) translate(146%);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.spinner_bar.child-10 {
|
|
223
|
+
animation-delay: -0.3s;
|
|
224
|
+
transform: rotate(270deg) translate(146%);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.spinner_bar.child-11 {
|
|
228
|
+
animation-delay: -0.2s;
|
|
229
|
+
transform: rotate(300deg) translate(146%);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.spinner_bar.child-12 {
|
|
233
|
+
animation-delay: -0.1s;
|
|
234
|
+
transform: rotate(330deg) translate(146%);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@keyframes spinner_spin {
|
|
238
|
+
0% {
|
|
239
|
+
opacity: 1;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
to {
|
|
243
|
+
opacity: 0.15;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
`})]})}})()})}import*as Er from"react";import*as ke from"@radix-ui/react-slider";import{jsx as Ke,jsxs as Rc}from"react/jsx-runtime";var Hr=Er.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>Rc(ke.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[Ke(ke.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:Ke(ke.Range,{className:"absolute h-full bg-pink-500"})}),Ke(ke.Thumb,{className:"group relative",children:Ke("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:o&&Ke("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-sm rounded-lg px-2.5 py-1.5 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-2 whitespace-nowrap",children:o})})}),Ke(ke.Thumb,{className:"group relative",children:Ke("div",{className:"group-hover:cursor-grabbing block h-5 w-5 rounded-full border-2 border-pink-500 bg-white ring-offset-bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",children:t&&Ke("div",{className:" duration-300 bottom-3/4 group-hover:opacity-100 opacity-0 absolute bg-black/80 text-sm rounded-lg px-2.5 py-1.5 left-1/2 -translate-x-1/2 group-hover:bottom-full mb-2 whitespace-nowrap",children:t})})})]}));Hr.displayName=ke.Root.displayName;import{forwardRef as Vc}from"react";import{Fragment as Dc,jsx as fe,jsxs as Ao}from"react/jsx-runtime";var Tc=({author:e=""})=>fe("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),kc=({author:e,avatar:o})=>fe("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?fe("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):fe(Tc,{author:e})});function Sc({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return fe(Dc,{children:Ao("div",{className:"flex relative items-center space-x-3",children:[fe(kc,{avatar:e,author:o}),Ao("div",{className:"flex flex-col",children:[o&&fe("div",{className:"font-semibold text-gray-900 text-sm",children:o}),Ao("div",{className:"flex items-center space-x-2 text-xs",children:[t&&fe("div",{className:"text-gray-400",children:t}),a&&Ao("div",{className:"flex items-center space-x-2",children:[fe("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),fe("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&fe("div",{className:"absolute right-1 top-0",children:fe("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var _r=Sc;import{useState as Or}from"react";import{StarIcon as Mc}from"@heroicons/react/20/solid";import{jsx as Fr,jsxs as zr}from"react/jsx-runtime";var Ic={1:"K\xE9n ng\u01B0\u1EDDi m\xEA",2:"K\xE9n ng\u01B0\u1EDDi m\xEA",3:"Ch\u01B0a \u01B0ng l\u1EAFm",4:"Ch\u01B0a \u01B0ng l\u1EAFm",5:"T\u1EA1m \u1ED5n",6:"T\u1EA1m \u1ED5n",7:"\u0110\xE1ng xem",8:"\u0110\xE1ng xem",9:"C\u1EF1c ph\u1EA9m!",10:"C\u1EF1c ph\u1EA9m!"},Ac={1:"Kh\xF4ng h\xE0i l\xF2ng",2:"Ch\u01B0a \u01B0ng l\u1EAFm",3:"T\u1EA1m \u1ED5n",4:"H\xE0i l\xF2ng",5:"R\u1EA5t h\xE0i l\xF2ng"};function Lc({point:e,max:o,className:t}){let a=o>5?Ic[e||10]:Ac[e||5];return zr("div",{className:r("flex items-center space-x-1",t),children:[Fr(Mc,{className:"w-5 h-5 text-yellow-500"}),Fr("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),zr("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Br=Lc;import{useState as Ec}from"react";import Vr from"html-react-parser";import{jsx as Hc,jsxs as _c}from"react/jsx-runtime";var Na=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,l]=Ec(!0),d=()=>{l(!s)},p=(m,g,u=" ")=>m.length<=g?m:m.substring(0,m.lastIndexOf(u,g));return _c("div",{className:r(n),children:[s?Vr(p(e,o)):Vr(e),e.length>o&&Hc("span",{onClick:d,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};import{jsx as xt,jsxs as Wr}from"react/jsx-runtime";function Fc({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,l]=Or(0),[d,p]=Or(!1),m=g=>{p(!0),l(g)};return Wr("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&xt(Br,{className:"mb-0.5",point:i.point,max:i.max}),e&&xt(Na,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&xt("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>xt("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:g}))}),o?.length>0&&Wr(ya,{open:d,onOpenChange:p,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((g,u)=>xt(pe,{onClick:()=>m(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:xt("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),xt(wa,{activeSlideIndex:s,images:o?.map((g,u)=>({url:g.url,titleImage:g.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var $r=Fc;import{jsx as Bc}from"react/jsx-runtime";function zc({actions:e=[]}){return Bc("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var Gr=zc;import{jsx as Lo,jsxs as Wc}from"react/jsx-runtime";var Oc=Vc(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:l=[],statusMessage:d,isReply:p,children:m,commentSideBar:g,isOutStanding:u,limitContent:R=260},M)=>Wc("div",{ref:M,className:r("",p?"ml-4 py-4":"py-5"),children:[Lo(_r,{avatar:e,author:o,time:t,statusMessage:d,isOutStanding:u}),Lo($r,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:R}),l&&l?.filter(Boolean)?.length>0&&Lo(Gr,{actions:l.filter(Boolean)}),m&&Lo("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:m})]}));import*as Ye from"react";import{cva as $c}from"class-variance-authority";import{CheckIcon as Gc}from"@heroicons/react/16/solid";import{XIcon as jc}from"lucide-react";import{jsx as K,jsxs as Eo}from"react/jsx-runtime";var Uc=$c("flex items-center shrink-0 justify-center rounded-full shrink-0",{variants:{state:{active:"bg-pink-500 text-white shadow-[0_0px_0px_3px_rgb(255,255,255),0_0px_0px_4px_rgb(var(--mobase-pink-500))]",disabled:"bg-gray-400 text-gray-200",default:"text-gray-500 bg-white shadow-[inset_0px_0px_0px_1px_rgb(var(--mobase-gray-300))]",completed:"bg-pink-500 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),jr=Ye.createContext("default");function Qc(){let e=Ye.useContext(jr);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Xc=Ye.memo(({type:e,icon:o,stepNumber:t,size:a,isError:i,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return i?K(jc,{className:s}):Eo("div",{children:[e==="iconStep"&&K("div",{className:s,children:o}),e==="numberStep"&&K("div",{children:t}),e==="default"&&(n==="completed"?K(Gc,{className:s}):K("div",{children:t}))]})}),qc=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=Ye.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return K("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},Zc=({step:e,state:o="default",size:t="default",className:a,title:i,description:n,lastStep:s,fristStep:l,icon:d,isError:p,onValueChangeStep:m,...g})=>{let u=Qc();return Eo("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[Eo("div",{className:"flex w-full items-center justify-center gap-2",children:[K("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",l&&"opacity-0",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),K("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Uc({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",a),...g,children:K(Xc,{type:u,icon:d,stepNumber:e,size:t,isError:p,state:o})}),K("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",s&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),Eo("div",{className:"text-center w-full flex flex-col items-center mt-2 px-0.5",children:[i&&K("div",{className:"text-xs font-bold text-slate-900 ",children:i}),n&&K("div",{className:"text-xs text-gray-500 ",children:n})]})]})},Kc=({children:e,className:o,type:t="numberStep",...a})=>K(jr.Provider,{value:t,children:K("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});import*as Y from"react";import{Slot as td}from"@radix-ui/react-slot";import{Controller as od,FormProvider as ad,useFormContext as id}from"react-hook-form";import*as Ur from"react";import*as Pa from"@radix-ui/react-label";import{cva as Yc}from"class-variance-authority";import{jsx as ed}from"react/jsx-runtime";var Jc=Yc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ho=Ur.forwardRef(({className:e,...o},t)=>ed(Pa.Root,{ref:t,className:r(Jc(),e),...o}));Ho.displayName=Pa.Root.displayName;import{jsx as Je}from"react/jsx-runtime";var rd=ad,Qr=Y.createContext({}),nd=({...e})=>Je(Qr.Provider,{value:{name:e.name},children:Je(od,{...e})}),Yt=()=>{let e=Y.useContext(Qr),o=Y.useContext(Xr),{getFieldState:t,formState:a}=id(),i=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...i}},Xr=Y.createContext({}),qr=Y.forwardRef(({className:e,...o},t)=>{let a=Y.useId();return Je(Xr.Provider,{value:{id:a},children:Je("div",{ref:t,className:r("space-y-2",e),...o})})});qr.displayName="FormItem";var Zr=Y.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=Yt();return Je(Ho,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});Zr.displayName="FormLabel";var Kr=Y.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=Yt();return Je(td,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});Kr.displayName="FormControl";var Yr=Y.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=Yt();return Je("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});Yr.displayName="FormDescription";var Jr=Y.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=Yt(),s=i?String(i?.message):o;return s?Je("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});Jr.displayName="FormMessage";import*as Be from"react";import*as b from"@radix-ui/react-dropdown-menu";import{ChevronRight as sd,Check as ld}from"lucide-react";import{jsx as q,jsxs as Jt}from"react/jsx-runtime";var md=b.Root,cd=b.Trigger,dd=b.Group,pd=b.Portal,fd=b.Sub,gd=b.RadioGroup,en=Be.forwardRef(({className:e,inset:o,children:t,...a},i)=>Jt(b.SubTrigger,{ref:i,className:r("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,q(sd,{className:"ml-auto"})]}));en.displayName=b.SubTrigger.displayName;var tn=Be.forwardRef(({className:e,...o},t)=>q(b.SubContent,{ref:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));tn.displayName=b.SubContent.displayName;var on=Be.forwardRef(({className:e,sideOffset:o=4,...t},a)=>q(b.Portal,{children:q(b.Content,{ref:a,sideOffset:o,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));on.displayName=b.Content.displayName;var an=Be.forwardRef(({className:e,inset:o,...t},a)=>q(b.Item,{ref:a,className:r("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));an.displayName=b.Item.displayName;var rn=Be.forwardRef(({className:e,children:o,checked:t,...a},i)=>Jt(b.CheckboxItem,{ref:i,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[Jt("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&q("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),q(b.ItemIndicator,{children:q("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:q(ld,{size:16,strokeWidth:3})})})]}),o]}));rn.displayName=b.CheckboxItem.displayName;var nn=Be.forwardRef(({className:e,children:o,...t},a)=>Jt(b.RadioItem,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[Jt("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[q("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),q(b.ItemIndicator,{children:q("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));nn.displayName=b.RadioItem.displayName;var sn=Be.forwardRef(({className:e,inset:o,...t},a)=>q(b.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));sn.displayName=b.Label.displayName;var ln=Be.forwardRef(({className:e,...o},t)=>q(b.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));ln.displayName=b.Separator.displayName;var mn=({className:e,...o})=>q("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});mn.displayName="DropdownMenuShortcut";import cn from"html-react-parser";import{Fragment as pn,jsx as ge,jsxs as Ca}from"react/jsx-runtime";var dn=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>Ca(pn,{children:[e&&ge(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&ge("div",{className:"flex flex-row flex-wrap -mx-3.5 gap-y-5",children:o.slice(0,3).map((a,i)=>ge("div",{className:"basis-full md:basis-1/3 px-3.5",children:Ca("div",{className:"px-6 md:px-4 lg:px-6 py-8 rounded-lg shadow-lg bg-white text-center border border-gray-100 h-full",children:[ge("div",{className:"w-9 h-9 bg-pink-500 rounded-full flex justify-center items-center text-white text-xl font-bold mx-auto",children:i+1}),Ca("div",{className:"w-full mt-6",children:[ge("div",{className:"w-full font-semibold text-xl",children:cn(a.title)}),a?.description&&ge("div",{className:"text-base mt-2 text-gray-600",children:cn(a.description)})]})]})},i))}),t&&ge(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),ud=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return ge(dn,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return ge(dn,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},vd=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>ge(pn,{children:ud({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),bd=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>ge(W,{className:t,idSection:a,background:o,children:ge(vd,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});import{forwardRef as Rd}from"react";import{cva as xd}from"class-variance-authority";import fn from"html-react-parser";import{CheckIcon as hd}from"lucide-react";import{Fragment as wd,jsx as Ve,jsxs as eo}from"react/jsx-runtime";var yd=xd("text-gray-800 list-inside mt-6",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-2 md:grid-cols-4 gap-2 w-full",3:"grid grid-cols-1 md:grid-cols-4 gap-4 md:gap-12 max-w-5xl mx-auto items-center py-8 md:py-12 text-left text-sm font-semibold space-y-1"}},defaultVariants:{template:1}}),gn=({template:e,name:o,description:t,image:a,idx:i,value:n,suffix:s,unit:l})=>Ve(wd,{children:(()=>{switch(e){case 1:case 3:return eo("li",{className:"flex items-center space-x-4",children:[a?Ve("div",{className:"w-10 h-10 flex justify-center items-center shrink-0",children:Ve("img",{src:a,alt:"",className:"max-w-full"})}):Ve("div",{className:"bg-pink-100 p-1 rounded-full w-5 h-5 flex items-center justify-center",children:Ve(hd,{className:"w-4 h-4 text-pink-500"})}),o&&Ve("div",{className:"ml-2 leading-tight",children:fn(o)})]});case 2:return eo("div",{className:r("odd:border-0 odd:pr-4 even:pl-4 even:border-l border-gray-200 md:border-l md:odd:border-l md:odd:pr-0",i>0?"md:pl-4":"md:!border-0"),children:[n&&eo("div",{className:"font-bold text-gray-900 line-clamp-2",children:[n,(s||l)&&eo("span",{children:[s," ",l]})]}),t&&Ve("div",{className:"text-sm mt-1 text-gray-500 leading-tight",children:fn(t)})]});default:return null}})()}),_o=({dataFeatures:e,template:o=1,dataStats:t})=>eo("ul",{className:r("",yd({template:o})),children:[(o===1||o===3)&&e?.map((a,i)=>Ve(gn,{name:a?.name,template:o,image:a?.image,idx:i},i)),o===2&&t?.map((a,i)=>Ve(gn,{value:a?.value,suffix:a?.suffix,unit:a?.unit,template:o,description:a?.description,idx:i},i))]});import{Fragment as Pd,jsx as J,jsxs as Ra}from"react/jsx-runtime";var un=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,Nd=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>Ra(pe,{className:r(""),ratio:un(o),children:[J("img",{src:e,className:r("w-full h-full object-cover md:block hidden",t,e?"":"bg-gray-200"),alt:""}),a&&J("div",{className:"aspect-[16/9] realtive overflow-hidden w-full md:hidden",children:J("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"w-full h-full object-cover md:hidden"})}),a&&Ra(rt,{children:[J(Oo,{onClick:i,children:J("div",{className:"w-full hidden md:flex h-full cursor-pointer transition-transform group-hover:scale-105 top-0 absolute z-10 items-center justify-center",children:J("svg",{className:"w-14 h-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:Ra("g",{fill:"none",fillRule:"evenodd",children:[J("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),J("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),J(Oe,{hideCloseBtn:!0,className:"w-full h-full !shadow-none !bg-transparent flex items-center justify-center bg-gray-900 p-0",children:J("iframe",{width:738,height:439,title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:""})})]})]}),to=({type:e=1,src:o,ratio:t,className:a,youtubeId:i,onClickFC:n=()=>{}})=>J(Pd,{children:i?J(Nd,{type:e,src:o,ratio:t,youtubeId:i,onClickFC:n}):J(pe,{className:r(""),ratio:un(t),children:J("img",{src:o,className:r("w-full h-full object-cover",a,o?"":"bg-gray-200"),alt:""})})});import{Fragment as Cd,jsx as G,jsxs as oo}from"react/jsx-runtime";var Ta=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>oo("div",{className:r("grid grid-cols-1 md:grid-cols-2 md:gap-6 gap-8 items-center"),children:[oo("div",{className:"col-span-1 ",children:[G(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:`${e?.className} mb-0 md:mb-0`}),G(_o,{dataFeatures:t,template:a,dataStats:i}),o&&G(C,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})]}),G("div",{className:"col-span-1 md:pl-10",children:s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),vn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>oo("div",{className:r("grid grid-cols-1 md:grid-cols-2 gap-16 items-center"),children:[G("div",{className:"col-span-1 hidden md:block",children:s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),oo("div",{className:"col-span-1",children:[G(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:e?.className}),G(_o,{dataFeatures:t,template:a,dataStats:i}),G("div",{className:"md:hidden mt-10",children:s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),o&&G("div",{className:"w-full flex items-center justify-center md:justify-start",children:G(C,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})})]})]}),bn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>oo(Cd,{children:[G(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:`${e?.className||""} mb-0 md:mb-0`}),o&&G(C,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"w-full md:w-full inline-flex items-center justify-center text-base font-semibold text-center"}),G(_o,{dataFeatures:t,template:a,dataStats:i}),s||G(to,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"rounded-lg"})]});import{Fragment as Md,jsx as ht}from"react/jsx-runtime";var Td=`var(
|
|
140
247
|
--gradient-pink-1,
|
|
141
248
|
linear-gradient(
|
|
142
249
|
38deg,
|
|
@@ -158,11 +265,11 @@ import*as Rt from"react";import*as re from"@radix-ui/react-accordion";import{Che
|
|
|
158
265
|
rgba(255, 255, 255, 0) 80%
|
|
159
266
|
),
|
|
160
267
|
#fff
|
|
161
|
-
)`,
|
|
268
|
+
)`,kd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return ht(Ta,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return ht(vn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return ht(bn,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return ht(Ta,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},Sd=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>ht(Md,{children:kd({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),Dd=Rd(({template:e=1,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,className:s,background:l,advancedComponent:d=null})=>ht(W,{className:r(s),background:l??Td,children:ht(Sd,{dataButtons:t,template:e,dataHeading:o,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:d})}));import{Fragment as ka,jsx as k,jsxs as hn}from"react/jsx-runtime";var xn=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={spacingX:"md:gap-x-5",spacingM:"md:gap-x-6",spacingL:"md:gap-x-7",spacingXl:"md:gap-x-10",spacing2Xl:"md:gap-x-12"};return hn(ka,{children:[e&&k(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&k("div",{className:r("list-brands flex flex-row gap-y-6 md:flex-wrap md:justify-center overflow-hidden overflow-x-auto py-2",n[a||"spacingXl"],i?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3 space-x-5 md:space-x-0 px-5 md:px-0":"flex-wrap justify-center"),children:o?.map((s,l)=>k("div",{className:r("flex justify-center items-center md:px-0 md:basis-auto",i?"snap-center shrink-0 basis-1/3":"basis-1/2 px-2.5"),children:k("div",{className:"w-auto max-w-36 flex justify-center items-center",children:s?.url?k("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:k("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain transition transform group-hover:scale-105"})}):k("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},l))}),t&&k(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Id=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>hn(ka,{children:[e&&k(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&o?.length>0&&k("div",{className:r("list-brands md:grid-cols-4 md:gap-y-6 md:gap-x-7",a?"snap-x snap-mandatory flex-nowrap -mx-5 pb-3 flex md:grid overflow-hidden overflow-x-auto md:mx-0 md:px-0 px-5 space-x-5 md:space-x-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((i,n)=>k("div",{className:r("flex justify-center items-center text-center",a?"snap-center shrink-0 basis-5/12":""),children:i?.url?k("a",{href:i?.url,title:i?.name,target:i?.newTab?"_blank":"_self",className:"flex justify-center items-center rounded-md border border-gray-200 duration-300 hover:border-pink-500 w-full h-full p-3",children:k("div",{className:"w-auto max-w-36 flex justify-center items-center",children:k("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):k("div",{className:"flex justify-center items-center rounded-md border border-gray-200 w-full h-full p-3",children:k("div",{className:"w-auto max-w-36 flex justify-center items-center",children:k("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&k(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ad=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return k(xn,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return k(Id,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return k(xn,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},Ld=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>k(ka,{children:Ad({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),Ed=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l="spacingXl",isScrollSnap:d})=>k(W,{className:t,idSection:a,background:o,children:k(Ld,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:l,isScrollSnap:d})});import B from"html-react-parser";import{ChevronRightIcon as Hd}from"@heroicons/react/16/solid";import{Fragment as et,jsx as c,jsxs as v}from"react/jsx-runtime";var Se=({btnLink:e,btnName:o,newTab:t})=>c(be,{variant:"primary",asChild:!0,children:v("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",c(Hd,{className:"w-4 h-4"})]})}),Sa=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full text-center flex flex-col",children:[c("div",{className:"w-16 h-16 mx-auto",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex-1",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),yn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features list-features-2 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:o?.map((a,i)=>v("div",{className:"feature-item p-5 overflow-hidden border border-gray-200 rounded-md relative w-full flex flex-col",children:[c("div",{className:"w-16 h-16",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),c("style",{children:`
|
|
162
269
|
.list-features-2 .feature-item {
|
|
163
270
|
background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
|
|
164
271
|
}
|
|
165
|
-
`})]}),gn=({dataHeading:e,dataFeatures:t,dataButtons:o})=>u(qe,{children:[e&&m(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&m("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:t?.map((a,i)=>u("div",{className:"feature-item relative w-full flex flex-col",children:[m("div",{className:"w-16 h-16",children:m("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),u("div",{className:"w-full mt-4 flex-1",children:[u("div",{className:"flex-1",children:[a?.name&&m("h3",{className:"text-lg font-semibold",children:z(a.name)}),a?.description&&m("div",{className:"text-gray-600 mt-2 text-base",children:z(a.description)})]}),a?.btnLink&&m("div",{className:"mt-4",children:m(Re,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&m(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),un=({dataHeading:e,dataFeatures:t,dataButtons:o})=>u("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-0 lg:gap-12",children:[u("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&m(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("lg:mb-0",e?.className)}),o&&m(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:`hidden lg:flex ${o?.className}`,align:"left"})]}),u("div",{className:"lg:col-span-6",children:[t&&m("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-5",children:t?.map((a,i)=>u("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-5 bg-white",children:[m("div",{className:"w-16 h-16",children:m("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),u("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[u("div",{className:"flex-1",children:[a?.name&&m("h3",{className:"text-lg font-semibold",children:z(a.name)}),a?.description&&m("div",{className:"text-gray-600 mt-2 text-base",children:z(a.description)})]}),a?.btnLink&&m("div",{className:"mt-4",children:m(Re,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&m(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:`flex lg:hidden ${o?.className}`,align:"center"})]})]}),vn=({dataHeading:e,dataFeatures:t,dataButtons:o})=>u(qe,{children:[e&&m(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&m("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-5 max-w-4xl mx-auto",children:t?.map((a,i)=>u("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-7 bg-white",children:[m("div",{className:"w-12 h-12 ",children:m("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),u("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[u("div",{className:"flex-1",children:[a?.name&&m("h3",{className:"text-lg font-semibold",children:z(a.name)}),a?.description&&m("div",{className:"text-gray-600 mt-2 text-base",children:z(a.description)})]}),a?.btnLink&&m("div",{className:"mt-4",children:m(Re,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&m(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),bn=({dataHeading:e,dataFeatures:t,dataButtons:o})=>u(qe,{children:[e&&m(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&m("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-7 lg:gap-y-10",children:t?.map((a,i)=>u("div",{className:"feature-item relative w-full",children:[m("div",{className:"w-12 h-12",children:m("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),u("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[u("div",{className:"flex-1",children:[a?.name&&m("h3",{className:"text-lg font-semibold",children:z(a.name)}),a?.description&&m("div",{className:"text-gray-500 mt-2 text-sm",children:z(a.description)})]}),a?.btnLink&&m("div",{className:"mt-4",children:m(Re,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&m(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),xn=({dataHeading:e,dataFeatures:t,dataButtons:o})=>u(qe,{children:[e&&m(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&m("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-6 lg:gap-y-8",children:t?.map((a,i)=>u("div",{className:"feature-item relative w-full flex gap-3",children:[m("div",{className:"w-12 h-12",children:m("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),u("div",{className:"w-full flex-1",children:[a?.name&&m("h3",{className:"text-lg font-semibold",children:z(a.name)}),a?.description&&m("div",{className:"text-gray-500 mt-2 text-sm",children:z(a.description)}),a?.btnLink&&m("div",{className:"mt-4",children:m(Re,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),o&&m(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),hn=({dataHeading:e,dataFeatures:t,dataButtons:o})=>u(qe,{children:[e&&m(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&m("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-6",children:t?.map((a,i)=>u("div",{className:"feature-item relative w-full flex flex-col overflow-hidden bg-gray-100 rounded-xl",children:[u("div",{className:"w-full flex flex-1 flex-col p-5",children:[u("div",{className:"flex-1",children:[a?.name&&m("h3",{className:"text-lg font-semibold",children:z(a.name)}),a?.description&&m("div",{className:"text-gray-600 mt-2 text-base",children:z(a.description)})]}),a?.btnLink&&m("div",{className:"mt-4",children:m(Re,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),m("div",{className:"w-full",style:{aspectRatio:"347/220"},children:m("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})})]},i))}),o&&m(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"})]}),yn=({dataHeading:e,dataFeatures:t,dataButtons:o,dataBanner:a})=>u("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-10 lg:gap-14",children:[m("div",{className:"lg:col-span-6 flex items-center",children:u("div",{className:"w-full",children:[e&&m(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),t&&m("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:auto-cols-auto",children:t?.map((i,n)=>u("div",{className:"feature-item relative w-full flex flex-col",children:[m("div",{className:"w-10 h-10",children:m("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),u("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[u("div",{className:"flex-1",children:[i?.name&&m("h3",{className:"text-lg font-semibold",children:z(i.name)}),i?.description&&m("div",{className:"text-gray-600 mt-2 text-base",children:z(i.description)})]}),i?.btnLink&&m("div",{className:"mt-4",children:m(Re,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),o&&m(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"left"})]})}),a&&m("div",{className:"lg:col-span-4 flex items-center",children:m("div",{className:"max-w-md mx-auto w-full",children:m(de,{ratio:a?.ratio||1,className:"w-full",children:m("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),wn=({dataHeading:e,dataFeatures:t,dataBanner:o,dataButtons:a})=>u(qe,{children:[e&&m(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),m("div",{className:r("relative flex items-center",o&&"lg:min-h-[590px]"),children:t&&u("div",{className:r("list-features grid grid-cols-1 md:grid-cols-2 gap-8",o?"lg:gap-y-16 lg:gap-x-0 lg:flex-wrap lg:flex lg:flex-row":"max-w-4xl mx-auto"),children:[t?.map((i,n)=>u("div",{className:r("feature-item relative w-full",o&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[m("div",{className:"w-12 h-12",children:m("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),u("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[u("div",{className:"flex-1",children:[i?.name&&m("h3",{className:"text-lg font-semibold",children:z(i.name)}),i?.description&&m("div",{className:"text-gray-500 mt-2",children:z(i.description)})]}),i?.btnLink&&m("div",{className:"mt-4",children:m(Re,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),o&&u("div",{className:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 hidden lg:flex lg:justify-center lg:items-end xl:p-2 lg:p-1.5 w-72 mx-auto",style:{aspectRatio:"352/721"},children:[m("div",{className:"mockup-bg absolute inset-0 w-full h-full select-none pointer-events-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),m("div",{className:"w-full h-full bg-gray-100 overflow-hidden",style:{borderRadius:"30px"},children:m("img",{src:o?.src,alt:o?.alt,className:"w-full h-full object-contain"})})]})]})}),a&&m(C,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});import{Fragment as wd,jsx as J}from"react/jsx-runtime";var xd=({template:e,dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return J(Pa,{dataHeading:t,dataFeatures:o,dataButtons:a});case 2:return J(fn,{dataHeading:t,dataFeatures:o,dataButtons:a});case 3:return J(gn,{dataHeading:t,dataFeatures:o,dataButtons:a});case 4:return J(un,{dataHeading:t,dataFeatures:o,dataButtons:a});case 5:return J(vn,{dataHeading:t,dataFeatures:o,dataButtons:a});case 6:return J(bn,{dataHeading:t,dataFeatures:o,dataButtons:a});case 7:return J(xn,{dataHeading:t,dataFeatures:o,dataButtons:a});case 8:return J(hn,{dataHeading:t,dataFeatures:o,dataButtons:a});case 9:return J(yn,{dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i});case 10:return J(wn,{dataHeading:t,dataFeatures:o,dataBanner:i,dataButtons:a});default:return J(Pa,{dataHeading:t,dataFeatures:o,dataButtons:a})}},hd=({template:e,dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i})=>J(wd,{children:xd({template:e,dataHeading:t,dataFeatures:o,dataButtons:a,dataBanner:i})}),yd=({template:e=1,background:t,className:o,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>J($,{className:o,idSection:a,background:t,children:J(hd,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import Ca from"html-react-parser";import{StarIcon as Nd}from"@heroicons/react/24/solid";import{Fragment as Cn,jsx as I,jsxs as pt}from"react/jsx-runtime";var Nn=({testimonial:e,isHiddenOnMobile:t=!1,index:o=0,itemCount:a})=>I("div",{className:r("testimonial-item grow sm:px-0 basis-10/12 md:basis-0 px-3 snap-center shrink-0 first:pl-5 md:first:pl-0",t?"hidden sm:block":"",o+1===a?"pr-5":""),children:I("div",{className:"rounded-xl border border-gray-50 bg-white px-5 pt-4 sm:px-5 pb-10 shadow-md relative h-full",children:pt("div",{className:"testimonial-item-width",children:[pt("div",{className:"flex flex-nowrap items-center space-x-2",children:[I("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:I("img",{src:e?.avatar,loading:"lazy",className:"h-full w-full object-cover",alt:e.name})}),pt("div",{className:"min-w-0 flex-1 pl-1",children:[I("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&I("div",{className:"text-xs font-normal text-pink-500",children:Ca(e.position)})]})]}),pt("div",{className:"mt-3",children:[e?.shortTitle&&I("div",{className:"text-sm font-bold text-gray-700",children:Ca(e.shortTitle)}),e?.description&&I("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Ca(e.description)})]}),pt("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[I("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&I("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>I(Nd,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),Pn=({dataHeading:e,dataTestimonials:t,dataButtons:o})=>{let a=t?.length??0,i=a>3;return pt(Cn,{children:[e&&I(P,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&I("div",{className:r("testimonials-mobase scroll-hidden relative overflow-x-scroll py-2 md:overflow-hidden -my-2 -mx-5 sm:mx-0",i&&"run-animation"),children:pt("div",{className:"testimonials-slider sm:space-x-6 flex flex-row overflow-hidden overflow-x-auto sm:overflow-visible sm:pl-6 sm:pr-0 snap-x sm:snap-none snap-mandatory pb-3 sm:pb-0",children:[t?.map((n,s)=>I(Nn,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&t?.map((n,s)=>I(Nn,{testimonial:n,isHiddenOnMobile:!0},`duplicate-${s}`))]})}),o&&I(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:o?.className,align:"center"}),i&&I("style",{children:`
|
|
272
|
+
`})]}),wn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-8 lg:gap-12",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col",children:[c("div",{className:"w-16 h-16",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex-1",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Nn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-0 lg:gap-12",children:[v("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("lg:mb-0",e?.className)}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),v("div",{className:"lg:col-span-6",children:[o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-5",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-5 bg-white",children:[c("div",{className:"w-16 h-16",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Pn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-5 max-w-4xl mx-auto",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col border border-gray-200 rounded-lg p-7 bg-white",children:[c("div",{className:"w-12 h-12 ",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-4 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Cn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full",children:[c("div",{className:"w-12 h-12",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-500 mt-2 text-sm",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Rn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-x-6 lg:gap-y-8",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex gap-3",children:[c("div",{className:"w-12 h-12",children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-500 mt-2 text-sm",children:B(a.description)}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Tn=({dataHeading:e,dataFeatures:o,dataButtons:t})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-3 gap-6",children:o?.map((a,i)=>v("div",{className:"feature-item relative w-full flex flex-col overflow-hidden bg-gray-100 rounded-xl",children:[v("div",{className:"w-full flex flex-1 flex-col p-5",children:[v("div",{className:"flex-1",children:[a?.name&&c("h3",{className:"text-lg font-semibold",children:B(a.name)}),a?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(a.description)})]}),a?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),c("div",{className:"w-full",style:{aspectRatio:"347/220"},children:c("img",{src:a?.image,alt:a?.name,className:"w-full h-full object-contain"})})]},i))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),kn=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>v("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-10 lg:gap-14",children:[c("div",{className:"lg:col-span-6 flex items-center",children:v("div",{className:"w-full",children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&c("div",{className:"list-features grid grid-cols-1 md:grid-cols-2 gap-6 md:auto-cols-auto",children:o?.map((i,n)=>v("div",{className:"feature-item relative w-full flex flex-col",children:[c("div",{className:"w-10 h-10",children:c("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&c("h3",{className:"text-lg font-semibold",children:B(i.name)}),i?.description&&c("div",{className:"text-gray-600 mt-2 text-base",children:B(i.description)})]}),i?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&c(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&c("div",{className:"lg:col-span-4 flex items-center",children:c("div",{className:"max-w-md mx-auto w-full",children:c(pe,{ratio:a?.ratio||1,className:"w-full",children:c("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),Sn=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>v(et,{children:[e&&c(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),c("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&v("div",{className:r("list-features grid grid-cols-1 md:grid-cols-2 gap-8",t?"lg:gap-y-16 lg:gap-x-0 lg:flex-wrap lg:flex lg:flex-row":"max-w-4xl mx-auto"),children:[o?.map((i,n)=>v("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[c("div",{className:"w-12 h-12",children:c("img",{src:i?.image,alt:i?.name,className:"w-full h-full object-contain"})}),v("div",{className:"w-full mt-3 flex flex-1 flex-col",children:[v("div",{className:"flex-1",children:[i?.name&&c("h3",{className:"text-lg font-semibold",children:B(i.name)}),i?.description&&c("div",{className:"text-gray-500 mt-2",children:B(i.description)})]}),i?.btnLink&&c("div",{className:"mt-4",children:c(Se,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&v("div",{className:"absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 hidden lg:flex lg:justify-center lg:items-end xl:p-2 lg:p-1.5 w-72 mx-auto",style:{aspectRatio:"352/721"},children:[c("div",{className:"mockup-bg absolute inset-0 w-full h-full select-none pointer-events-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),c("div",{className:"w-full h-full bg-gray-100 overflow-hidden",style:{borderRadius:"30px"},children:c("img",{src:t?.src,alt:t?.alt,className:"w-full h-full object-contain"})})]})]})}),a&&c(C,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]});import{Fragment as Bd,jsx as ee}from"react/jsx-runtime";var _d=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return ee(Sa,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ee(yn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ee(wn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ee(Nn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ee(Pn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ee(Cn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ee(Rn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ee(Tn,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ee(kn,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return ee(Sn,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return ee(Sa,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Fd=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>ee(Bd,{children:_d({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),zd=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})=>ee(W,{className:t,idSection:a,background:o,children:ee(Fd,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:l})});import Da from"html-react-parser";import{StarIcon as Vd}from"@heroicons/react/24/solid";import{Fragment as In,jsx as L,jsxs as yt}from"react/jsx-runtime";var Dn=({testimonial:e,isHiddenOnMobile:o=!1,index:t=0,itemCount:a})=>L("div",{className:r("testimonial-item grow sm:px-0 basis-10/12 md:basis-0 px-3 snap-center shrink-0 first:pl-5 md:first:pl-0",o?"hidden sm:block":"",t+1===a?"pr-5":""),children:L("div",{className:"rounded-xl border border-gray-50 bg-white px-5 pt-4 sm:px-5 pb-10 shadow-md relative h-full",children:yt("div",{className:"testimonial-item-width",children:[yt("div",{className:"flex flex-nowrap items-center space-x-2",children:[L("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:L("img",{src:e?.avatar,loading:"lazy",className:"h-full w-full object-cover",alt:e.name})}),yt("div",{className:"min-w-0 flex-1 pl-1",children:[L("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&L("div",{className:"text-xs font-normal text-pink-500",children:Da(e.position)})]})]}),yt("div",{className:"mt-3",children:[e?.shortTitle&&L("div",{className:"text-sm font-bold text-gray-700",children:Da(e.shortTitle)}),e?.description&&L("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Da(e.description)})]}),yt("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[L("div",{className:"text-xs text-gray-400",children:e.date}),e?.rating&&e?.rating>0&&L("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(i,n)=>L(Vd,{className:`h-4 w-4 ${n<(e.rating??0)?"text-yellow-400":"text-gray-200"}`},n))})]})]})})}),Mn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return yt(In,{children:[e&&L(P,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&L("div",{className:r("testimonials-mobase scroll-hidden relative overflow-x-scroll py-2 md:overflow-hidden -my-2 -mx-5 sm:mx-0",i&&"run-animation"),children:yt("div",{className:"testimonials-slider sm:space-x-6 flex flex-row overflow-hidden overflow-x-auto sm:overflow-visible sm:pl-6 sm:pr-0 snap-x sm:snap-none snap-mandatory pb-3 sm:pb-0",children:[o?.map((n,s)=>L(Dn,{testimonial:n,index:s,itemCount:a},`main-${s}`)),i&&o?.map((n,s)=>L(Dn,{testimonial:n,isHiddenOnMobile:!0},`duplicate-${s}`))]})}),t&&L(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),i&&L("style",{children:`
|
|
166
273
|
@media screen and (min-width: 640px) {
|
|
167
274
|
.testimonials-mobase.run-animation {
|
|
168
275
|
--items-count: ${a};
|
|
@@ -186,7 +293,7 @@ import*as Rt from"react";import*as re from"@radix-ui/react-accordion";import{Che
|
|
|
186
293
|
transform: translateX(calc(${a===4?"-476px":"-386px"} * var(--items-count)));
|
|
187
294
|
}
|
|
188
295
|
}
|
|
189
|
-
`})]})},Pd=({template:e,dataHeading:t,dataTestimonials:o,dataButtons:a})=>{switch(e){case 1:return I(Pn,{dataHeading:t,dataTestimonials:o,dataButtons:a});default:return I(Pn,{dataHeading:t,dataTestimonials:o,dataButtons:a})}},Cd=({template:e,dataHeading:t,dataTestimonials:o,dataButtons:a})=>I(Cn,{children:Pd({template:e,dataHeading:t,dataTestimonials:o,dataButtons:a})}),Rd=({template:e=1,background:t,className:o,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>I($,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${o||""}`,idSection:a,background:t,children:I(Cd,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import Td,{memo as Rn}from"react";import Tn from"html-react-parser";import{jsx as ge,jsxs as Xt}from"react/jsx-runtime";var Ra=Rn(({dataFAQ:e,dataHeading:t})=>Xt("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[t&&ge(P,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading||"h2",align:"left",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r("md:mb-0 mb-0 mt-2 col-span-1 text-center md:text-left",t?.className)}),e&&ge("div",{className:"col-span-2",children:e[0]?.contents.map((o,a)=>ge(Ze,{type:"single",collapsible:!0,className:"w-full",children:Xt(Ke,{value:o.title,children:[ge(Ye,{className:"font-bold",children:o.title}),ge(Je,{children:Tn(o.description)})]})},o.title+a))})]})),kn=Rn(({dataFAQ:e,dataHeading:t})=>Xt(Td.Fragment,{children:[t&&ge(P,{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&&Xt(Lt,{defaultValue:e[0]?.title,children:[ge(vt,{className:"flex items-center sm:justify-center",children:e.map((o,a)=>ge(bt,{value:o.title,children:o.title},o.title+a))}),e.map((o,a)=>ge(xt,{className:"max-w-3xl mx-auto",value:o.title,children:o.contents.map((i,n)=>ge(Ze,{type:"single",collapsible:!0,className:"w-full",children:Xt(Ke,{value:i.title,children:[ge(Ye,{className:"font-bold",children:i.title}),ge(Je,{children:Tn(i.description)})]})},i.title+n))},o.title+a))]})]}));import{Fragment as Md,jsx as Pt}from"react/jsx-runtime";var kd=({template:e,dataFAQ:t,dataHeading:o})=>{switch(e){case 1:return Pt(Ra,{dataFAQ:t,dataHeading:o});case 2:return Pt(kn,{dataFAQ:t,dataHeading:o});default:return Pt(Ra,{dataFAQ:t,dataHeading:o})}},Sd=({dataHeading:e,dataFAQ:t,template:o})=>Pt(Md,{children:kd({dataHeading:e,dataFAQ:t,template:o})}),Dd=({dataHeading:e,dataFAQ:t=[],className:o="",background:a=""})=>{let i=t&&t?.length>1?2:1;return Pt($,{className:r(o),background:a,children:Pt(Sd,{dataHeading:e,dataFAQ:t,template:i})})};import Id,{memo as Ad}from"react";import Ld from"html-react-parser";import{ArrowDownIcon as Ed}from"@heroicons/react/20/solid";import{Fragment as Sn,jsx as E,jsxs as Te}from"react/jsx-runtime";var Hd=({news:e})=>{let t=(o,a)=>{o?.preventDefault(),o?.stopPropagation(),window.open(a,"_blank")};return Te(Sn,{children:[E("div",{className:"rounded-md md:rounded-none aspect-[1/1] md:aspect-[77/37] relative overflow-hidden block bg-gray-100",children:Te("picture",{children:[E("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),E("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})}),Te("div",{className:"flex flex-col flex-1 mt-3 md:mt-0 md:p-3",children:[E("div",{className:"text-gray-900 font-medium text-sm group-hover:text-pink-500 flex-1 line-clamp-2 md:line-clamp-none",children:e?.title}),Te("div",{className:"flex items-center space-x-1 mt-2",children:[e?.category&&e?.categoryUrl&&Te(Sn,{children:[E(Be,{variant:"primary",className:"text-xs",onClick:o=>t(o,e?.categoryUrl||""),children:e?.category}),E("span",{className:"flex-none",children:"\xB7"})]}),E("div",{className:"text-gray-500 text-xs flex-none",children:e?.dateTime})]})]})]})},Ta=Ad(({dataHeading:e,dataHorizontalScroll:t,dataNews:o,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=t||{},f=(c,g,v)=>{c?.preventDefault(),c?.stopPropagation(),a?a(g):window.open(v,"_blank")},p=(c,g)=>Te("div",{children:[E("div",{className:r("flex flex-row flex-wrap -mx-2 gap-y-5",c?.newsList?.length<4?"justify-center":""),children:c?.newsList?.map((v,S)=>E("div",{className:"px-2 basis-1/2 lg:basis-1/4",children:E("div",{onClick:H=>f(H,v?.id,v?.url),className:r("cursor-pointer group flex flex-col md:h-full md:rounded-md overflow-hidden md:shadow-md md:bg-white",c?.classNameItem),children:E(Hd,{news:v})})},S))}),c?.isShowBtn&&E("div",{className:"w-full flex items-center justify-center mt-8",children:Te(kt,{action:c?.btnUrl||i&&(()=>i?.(g)),newTab:c?.isNewTab,variant:"outline",disabled:c?.isLoading,children:[Ld(c.btnName||"Xem th\xEAm"),c?.isLoading?E(Zt,{className:"animate-spin-loading ml-2 w-5 h-5"}):i&&!c?.btnUrl&&E(Ed,{className:"w-5 h-5 animate-bounce ml-2 -mb-1"})]})})]},c?.title||g);return Te(Id.Fragment,{children:[e&&E(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),o?.length>1?Te(Lt,{defaultValue:o[0]?.title,children:[Te(ga,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[E(ua,{className:"mb-6 text-center",children:E(vt,{className:"inline-flex mx-auto items-center mb-6 overflow-visible w-auto mb-0",children:o.map((c,g)=>E(bt,{value:c.title,children:c.title},c.title+g))})}),E(va,{}),E(ba,{})]}),o.map((c,g)=>E(xt,{value:c.title,children:p(c,g)},c.title+g))]}):o?.length===1&&o[0]&&p(o[0],0)]})});import{Fragment as Bd,jsx as qt}from"react/jsx-runtime";var Fd=({template:e,dataNews:t,dataHeading:o,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return qt(Ta,{dataNews:t,dataHeading:o,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return qt(Ta,{dataNews:t,dataHeading:o,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},_d=({dataHeading:e,dataHorizontalScroll:t,dataNews:o,template:a,onClickModal:i,onClickLoadMore:n})=>qt(Bd,{children:Fd({dataHeading:e,dataHorizontalScroll:t,dataNews:o,template:a,onClickModal:i,onClickLoadMore:n})}),zd=({dataHeading:e,dataHorizontalScroll:t,dataNews:o=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>qt($,{className:r(a),background:i,children:qt(_d,{dataHeading:e,dataHorizontalScroll:t,dataNews:o,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as Gd,jsx as ie,jsxs as ka}from"react/jsx-runtime";var Dn=({dataHeading:e,dataCTA:t,dataButtons:o})=>ka("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:t?.background},children:[e&&ie(P,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),o&&ie(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-0 md:mt-0"),align:"center"})]}),Vd=({dataHeading:e,dataCTA:t,dataButtons:o,dataMedia:a})=>ka("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:t?.background?{background:t.background}:{},children:[ka("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&ie(P,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),o&&ie(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-0 md:mt-0"),align:"left"})]}),ie("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&ie(de,{ratio:4/3,children:ie("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Od=({template:e,dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return ie(Dn,{dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i});case 2:return ie(Vd,{dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i});default:return ie(Dn,{dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i})}},Wd=({template:e,dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i})=>ie(Gd,{children:Od({template:e,dataHeading:t,dataCTA:o,dataButtons:a,dataMedia:i})}),$d=({template:e=1,background:t,className:o,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>ie($,{className:o,idSection:a,background:t,children:ie(Wd,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import Qd from"color";import Xd from"tailwindcss/plugin.js";var ke="250ms",Mn={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ke},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ke},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ke},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ke},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ke},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ke},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":ke},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":ke},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ke},".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":ke}};var In={".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 An={".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 Ln={...In,...Mn,...An};import{flatten as jd}from"flat";function Ud(e){let t={};for(let o in e){if(o.endsWith("-DEFAULT")){t[o.replace("-DEFAULT","")]=e[o];continue}t[o]=e[o]}return t}var En=e=>Ud(jd(e,{safe:!0,delimiter:"-"}));var Hn={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Fn={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var _n={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var zn={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Bn={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Vn={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var On={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Wn={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var $n={white:"#ffffff",black:"#000000",blue:Hn,green:Fn,pink:_n,purple:zn,red:Bn,yellow:Vn,gray:Wn,orange:On};var Sa={...$n};var Gn={"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 jn={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 qd=e=>{let t={utilities:{},colors:{}},o=En(Sa),a=Gn,i=":root";return t.utilities[i]={},Object.entries(o).forEach(([n,s])=>{if(s)try{let[l,f,p]=Qd(s).rgb().array(),c=`--${e}-${n}`;t.utilities[i][c]=`${l} ${f} ${p}`,t.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(([f,p])=>{let c=`${l}-${f}`;t.utilities[i][c]=p});else{let f=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;t.utilities[i][l]=f}}),t},Zd=()=>{let e="mobase",t=qd(e);return Xd(({addBase:o,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"}}}),o({":root":{"font-smooth--webkit":"antialiased"},...t?.utilities}),a({...Ln})},{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:{...Sa,...t?.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)`},...jn}}})};import{Fragment as Yd,jsx as N,jsxs as Jd}from"react/jsx-runtime";var Kd=Jd(Yd,{children:[N("meta",{name:"abstract",content:"V\xED \u0111i\u1EC7n t\u1EED MoMo - Si\xEAu \u1EE9ng d\u1EE5ng thanh to\xE1n s\u1ED1 1 Vi\u1EC7t Nam"}),N("meta",{name:"distribution",content:"Global"}),N("meta",{name:"author",content:"V\xED MoMo"}),N("meta",{property:"fb:app_id",content:"320653355376196"}),N("meta",{property:"fb:pages",content:"138010322921640"}),N("link",{rel:"shortcut icon",href:"/favicon.ico"}),N("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),N("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),N("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),N("meta",{name:"language",content:"vietnamese"}),N("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),N("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),N("meta",{name:"RATING",content:"GENERAL"}),N("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),N("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),N("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),N("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),N("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),N("link",{rel:"dns-prefetch",href:"//facebook.com"}),N("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),N("link",{rel:"dns-prefetch",href:"//www.google.com"}),N("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),N("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),N("link",{rel:"preconnect",href:"//connect.facebook.net"}),N("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),N("link",{rel:"preconnect",href:"//www.google-analytics.com"}),N("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),N("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),N("link",{rel:"preconnect",href:"//www.google.com"}),N("link",{rel:"preconnect",href:"//www.google.com.vn"}),N("link",{rel:"preconnect",href:"//www.googleadservices.com"}),N("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
296
|
+
`})]})},Od=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return L(Mn,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return L(Mn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Wd=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>L(In,{children:Od({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),$d=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>L(W,{className:`${e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":""} ${t||""}`,idSection:a,background:o,children:L(Wd,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});import Gd,{memo as An}from"react";import Ln from"html-react-parser";import{jsx as ue,jsxs as ao}from"react/jsx-runtime";var Ma=An(({dataFAQ:e,dataHeading:o})=>ao("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-6",children:[o&&ue(P,{tagline:o?.tagline,title:o?.title,description:o?.description,tagHeading:o?.tagHeading||"h2",align:"left",colorScheme:o?.colorScheme||"pink",sizeHeading:o?.sizeHeading,className:r("md:mb-0 mb-0 mt-2 col-span-1 text-center md:text-left",o?.className)}),e&&ue("div",{className:"col-span-2",children:e[0]?.contents.map((t,a)=>ue(tt,{type:"single",collapsible:!0,className:"w-full",children:ao(ot,{value:t.title,children:[ue(at,{className:"font-bold",children:t.title}),ue(it,{children:Ln(t.description)})]})},t.title+a))})]})),En=An(({dataFAQ:e,dataHeading:o})=>ao(Gd.Fragment,{children:[o&&ue(P,{tagline:o?.tagline,title:o?.title,description:o?.description,tagHeading:o?.tagHeading,align:"center",colorScheme:o?.colorScheme||"pink",sizeHeading:o?.sizeHeading,className:r(o?.className)}),e&&ao(mt,{defaultValue:e[0]?.title,children:[ue(We,{className:"flex items-center sm:justify-center",children:e.map((t,a)=>ue($e,{value:t.title,children:t.title},t.title+a))}),e.map((t,a)=>ue(Ge,{className:"max-w-3xl mx-auto",value:t.title,children:t.contents.map((i,n)=>ue(tt,{type:"single",collapsible:!0,className:"w-full",children:ao(ot,{value:i.title,children:[ue(at,{className:"font-bold",children:i.title}),ue(it,{children:Ln(i.description)})]})},i.title+n))},t.title+a))]})]}));import{Fragment as Xd,jsx as Dt}from"react/jsx-runtime";var jd=({template:e,dataFAQ:o,dataHeading:t})=>{switch(e){case 1:return Dt(Ma,{dataFAQ:o,dataHeading:t});case 2:return Dt(En,{dataFAQ:o,dataHeading:t});default:return Dt(Ma,{dataFAQ:o,dataHeading:t})}},Ud=({dataHeading:e,dataFAQ:o,template:t})=>Dt(Xd,{children:jd({dataHeading:e,dataFAQ:o,template:t})}),Qd=({dataHeading:e,dataFAQ:o=[],className:t="",background:a=""})=>{let i=o&&o?.length>1?2:1;return Dt(W,{className:r(t),background:a,children:Dt(Ud,{dataHeading:e,dataFAQ:o,template:i})})};import qd,{memo as Zd}from"react";import Kd from"html-react-parser";import{ArrowDownIcon as Yd}from"@heroicons/react/20/solid";import{Fragment as Hn,jsx as _,jsxs as De}from"react/jsx-runtime";var Jd=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return De(Hn,{children:[_("div",{className:"rounded-md md:rounded-none aspect-[1/1] md:aspect-[77/37] relative overflow-hidden block bg-gray-100",children:De("picture",{children:[_("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),_("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})}),De("div",{className:"flex flex-col flex-1 mt-3 md:mt-0 md:p-3",children:[_("div",{className:"text-gray-900 font-medium text-sm group-hover:text-pink-500 flex-1 line-clamp-2 md:line-clamp-none",children:e?.title}),De("div",{className:"flex items-center space-x-1 mt-2",children:[e?.category&&e?.categoryUrl&&De(Hn,{children:[_(be,{variant:"default",className:"text-xs line-clamp-1 shink-0 justify-start text-left whitespace-normal",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),_("span",{className:"flex-none leading-none",children:"\xB7"})]}),_("div",{className:"text-gray-500 text-xs flex-none",children:e?.dateTime})]})]})]})},Ia=Zd(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},d=(m,g,u)=>{m?.preventDefault(),m?.stopPropagation(),a?a(g):window.open(u,"_blank")},p=(m,g)=>De("div",{children:[_("div",{className:r("flex flex-row flex-wrap -mx-2 gap-y-5",m?.newsList?.length<4?"md:justify-center":""),children:m?.newsList?.map((u,R)=>_("div",{className:"px-2 basis-1/2 lg:basis-1/4 min-w-0",children:_("div",{onClick:M=>d(M,u?.id,u?.url),className:r("cursor-pointer group flex flex-col md:h-full md:rounded-md overflow-hidden md:shadow-md md:bg-white",m?.classNameItem),children:_(Jd,{news:u})},u?.id)},R))}),m?.isShowBtn&&_("div",{className:"w-full flex items-center justify-center mt-8",children:De(st,{action:m?.btnUrl||i&&(()=>i?.(g)),newTab:m?.isNewTab,variant:"outline",disabled:m?.isLoading,children:[Kd(m.btnName||"Xem th\xEAm"),m?.isLoading?_(Nt,{className:"animate-spin-loading ml-2 w-5 h-5"}):i&&!m?.btnUrl&&_(Yd,{className:"w-5 h-5 animate-bounce ml-2 -mb-1"})]})})]},m?.title||g);return De(qd.Fragment,{children:[e&&_(P,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t?.length>1?De(mt,{defaultValue:t[0]?.title,children:[De(Et,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[_(Ht,{className:"mb-6 text-center",children:_(We,{className:"inline-flex mx-auto items-center mb-6 overflow-visible w-auto mb-0",children:t.map((m,g)=>_($e,{value:m.title,children:m.title},m.title+g))})}),_(_t,{}),_(Ft,{})]}),t.map((m,g)=>_(Ge,{value:m.title,children:p(m,g)},m.title+g))]}):t?.length===1&&t[0]&&p(t[0],0)]})});import{Fragment as ap,jsx as io}from"react/jsx-runtime";var ep=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return io(Ia,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return io(Ia,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},tp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>io(ap,{children:ep({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),op=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:l})=>io(W,{className:r(a),background:i,children:io(tp,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:l})});import{Fragment as lp,jsx as re,jsxs as Aa}from"react/jsx-runtime";var _n=({dataHeading:e,dataCTA:o,dataButtons:t})=>Aa("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:o?.background},children:[e&&re(P,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"black",sizeHeading:e.sizeHeading,className:e.className}),t&&re(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),ip=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>Aa("div",{className:"grid gap-6 grid-cols-1 md:grid-cols-2 rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 pb-0 md:px-10 bg-pink-700 md:pb-0 md:pt-0",style:o?.background?{background:o.background}:{},children:[Aa("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&re(P,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"left",colorScheme:e.colorScheme||"white",sizeHeading:e.sizeHeading,className:e.className}),t&&re(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),re("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&re(pe,{ratio:4/3,children:re("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),rp=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return re(_n,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return re(ip,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return re(_n,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},np=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>re(lp,{children:rp({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),sp=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>re(W,{className:t,idSection:a,background:o,children:re(np,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});import dp from"color";import pp from"tailwindcss/plugin.js";var Me="250ms",Fn={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Me},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Me},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Me},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Me},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Me},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Me},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Me},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Me},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Me},".transition-transform-colors-opacity":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Me}};var zn={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"}};var Bn={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}};var Vn={...zn,...Fn,...Bn};import{flatten as mp}from"flat";function cp(e){let o={};for(let t in e){if(t.endsWith("-DEFAULT")){o[t.replace("-DEFAULT","")]=e[t];continue}o[t]=e[t]}return o}var On=e=>cp(mp(e,{safe:!0,delimiter:"-"}));var Wn={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var $n={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var Gn={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var jn={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Un={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Qn={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Xn={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var qn={50:"#FAFAFA",100:"#F5F5F5",200:"#E5E5E5",300:"#D4D4D4",400:"#A3A3A3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",DEFAULT:"#737373"};var Zn={white:"#ffffff",black:"#000000",blue:Wn,green:$n,pink:Gn,purple:jn,red:Un,yellow:Qn,gray:qn,orange:Xn};var La={...Zn};var Kn={"disabled-opacity":.5,"box-shadow":{small:"0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",medium:"0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)",large:"0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)"},radius:{none:"0px",sm:"0.125rem",default:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},"z-index":{negative:"-1",workbench:"0",default:"1","workbench-header":"10",modal:"100","modal-content":"101",dropdown:"1000",tooltip:"10000",notification:"100000"},"font-size":{xxs:"0.625rem",xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},"line-height":{xxs:"1rem",xs:"1rem",sm:"1.25rem",base:"1.5rem",lg:"1.75rem",xl:"1.75rem","2xl":"2rem","3xl":"2.25rem","4xl":"2.5rem","5xl":"1","6xl":"1","7xl":"1","8xl":"1","9xl":"1"}};var Yn={animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out","spin-loading":"spin 1s steps(12, end) infinite","fade-in":"fade-in 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}},"fade-in":{"0%":{opacity:"0"},"100%":{opacity:"1"}}}};var fp=e=>{let o={utilities:{},colors:{}},t=On(La),a=Kn,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[l,d,p]=dp(s).rgb().array(),m=`--${e}-${n}`;o.utilities[i][m]=`${l} ${d} ${p}`,o.colors[n]=`rgb(var(${m}) / <alpha-value>)`}catch(l){console.log("error",l?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let l=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([d,p])=>{let m=`${l}-${d}`;o.utilities[i][m]=p});else{let d=l.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][l]=d}}),o},gp=()=>{let e="mobase",o=fp(e);return pp(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...Vn})},{theme:{container:{center:!0},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},extend:{fontFamily:{sans:["-apple-system","BlinkMacSystemFont","Segoe UI","Helvetica","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"],mono:["SFMono-Regular","Consolas","Liberation Mono","Menlo","monospace"]},colors:{...La,...o?.colors,border:"rgba(var(--border))"},boxShadow:{small:`var(--${e}-box-shadow-small)`,medium:`var(--${e}-box-shadow-medium)`,large:`var(--${e}-box-shadow-large)`},borderRadius:{none:`var(--${e}-radius-none)`,sm:`var(--${e}-radius-sm)`,DEFAULT:`var(--${e}-radius-default)`,md:`var(--${e}-radius-md)`,lg:`var(--${e}-radius-lg)`,xl:`var(--${e}-radius-xl)`,"2xl":`var(--${e}-radius-2xl)`,"3xl":`var(--${e}-radius-3xl)`,full:`var(--${e}-radius-full)`},fontSize:{xxs:[`var(--${e}-font-size-xxs)`,`var(--${e}-line-height-xxs)`],xs:[`var(--${e}-font-size-xs)`,`var(--${e}-line-height-xs)`],sm:[`var(--${e}-font-size-sm)`,`var(--${e}-line-height-sm)`],base:[`var(--${e}-font-size-base)`,`var(--${e}-line-height-base)`],lg:[`var(--${e}-font-size-lg)`,`var(--${e}-line-height-lg)`],xl:[`var(--${e}-font-size-xl)`,`var(--${e}-line-height-xl)`],"2xl":[`var(--${e}-font-size-2xl)`,`var(--${e}-line-height-2xl)`],"3xl":[`var(--${e}-font-size-3xl)`,`var(--${e}-line-height-3xl)`],"4xl":[`var(--${e}-font-size-4xl)`,`var(--${e}-line-height-4xl)`],"5xl":[`var(--${e}-font-size-5xl)`,`var(--${e}-line-height-5xl)`],"6xl":[`var(--${e}-font-size-6xl)`,`var(--${e}-line-height-6xl)`],"7xl":[`var(--${e}-font-size-7xl)`,`var(--${e}-line-height-7xl)`],"8xl":[`var(--${e}-font-size-8xl)`,`var(--${e}-line-height-8xl)`],"9xl":[`var(--${e}-font-size-9xl)`,`var(--${e}-line-height-9xl)`]},zIndex:{negative:`var(--${e}-z-index-negative)`,workbench:`var(--${e}-z-index-workbench)`,default:`var(--${e}-z-index-default)`,"workbench-header":`var(--${e}-z-index-workbench-header)`,modal:`var(--${e}-z-index-modal)`,"modal-content":`var(--${e}-z-index-modal-content)`,dropdown:`var(--${e}-z-index-dropdown)`,tooltip:`var(--${e}-z-index-tooltip)`,notification:`var(--${e}-z-index-notification)`},...Yn}}})};import{Fragment as vp,jsx as N,jsxs as bp}from"react/jsx-runtime";var up=bp(vp,{children:[N("meta",{name:"abstract",content:"V\xED \u0111i\u1EC7n t\u1EED MoMo - Si\xEAu \u1EE9ng d\u1EE5ng thanh to\xE1n s\u1ED1 1 Vi\u1EC7t Nam"}),N("meta",{name:"distribution",content:"Global"}),N("meta",{name:"author",content:"V\xED MoMo"}),N("meta",{property:"fb:app_id",content:"320653355376196"}),N("meta",{property:"fb:pages",content:"138010322921640"}),N("link",{rel:"shortcut icon",href:"/favicon.ico"}),N("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),N("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),N("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),N("meta",{name:"language",content:"vietnamese"}),N("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),N("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),N("meta",{name:"RATING",content:"GENERAL"}),N("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),N("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),N("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),N("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),N("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),N("link",{rel:"dns-prefetch",href:"//facebook.com"}),N("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),N("link",{rel:"dns-prefetch",href:"//www.google.com"}),N("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),N("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),N("link",{rel:"preconnect",href:"//connect.facebook.net"}),N("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),N("link",{rel:"preconnect",href:"//www.google-analytics.com"}),N("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),N("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),N("link",{rel:"preconnect",href:"//www.google.com"}),N("link",{rel:"preconnect",href:"//www.google.com.vn"}),N("link",{rel:"preconnect",href:"//www.googleadservices.com"}),N("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
|
|
190
297
|
"@context": "https://schema.org/",
|
|
191
298
|
"@type": "WebSite",
|
|
192
299
|
"@id":"https://www.momo.vn/#website",
|
|
@@ -231,5 +338,5 @@ import*as Rt from"react";import*as re from"@radix-ui/react-accordion";import{Che
|
|
|
231
338
|
"https://www.linkedin.com/company/momo-mservice/",
|
|
232
339
|
"https://github.com/momo-wallet"
|
|
233
340
|
]
|
|
234
|
-
}`}})]});export{
|
|
341
|
+
}`}})]});export{tt as Accordion,it as AccordionContent,ot as AccordionItem,at as AccordionTrigger,st as ActionButton,hl as AlertDialog,ui as AlertDialogAction,vi as AlertDialogCancel,ci as AlertDialogContent,gi as AlertDialogDescription,pi as AlertDialogFooter,di as AlertDialogHeader,ta as AlertDialogOverlay,mi as AlertDialogPortal,fi as AlertDialogTitle,yl as AlertDialogTrigger,pe as AspectRatio,bc as Badge,Zs as BlogSection,$a as Breadcrumb,qa as BreadcrumbEllipsis,ja as BreadcrumbItem,Ua as BreadcrumbLink,Ga as BreadcrumbList,Qa as BreadcrumbPage,Xa as BreadcrumbSeparator,le as Button,sp as CTASection,po as Calendar,tc as Callout,er as Card,ir as CardContent,ar as CardDescription,rr as CardFooter,tr as CardHeader,or as CardTitle,go as Carousel,uo as CarouselContent,vo as CarouselItem,xo as CarouselNext,bo as CarouselPrevious,mo as Checkbox,Cr as ChoiceboxGroup,Rr as ChoiceboxGroupItem,Tr as ChoiceboxMultiItem,Zm as Combobox,qm as ComboboxContent,Xm as ComboboxTrigger,ba as Command,jm as CommandDialog,lr as CommandEmpty,mr as CommandGroup,nr as CommandInput,dr as CommandItem,sr as CommandList,cr as CommandSeparator,pr as CommandShortcut,Oc as Comment,xl as DatePicker,rt as Dialog,ro as DialogBody,ds as DialogClose,Oe as DialogContent,Oa as DialogDescription,Ba as DialogFooter,za as DialogHeader,Wo as DialogOverlay,Fa as DialogPortal,nt as DialogQr,Va as DialogTitle,Oo as DialogTrigger,md as DropdownMenu,rn as DropdownMenuCheckboxItem,on as DropdownMenuContent,dd as DropdownMenuGroup,an as DropdownMenuItem,sn as DropdownMenuLabel,pd as DropdownMenuPortal,gd as DropdownMenuRadioGroup,nn as DropdownMenuRadioItem,ln as DropdownMenuSeparator,mn as DropdownMenuShortcut,fd as DropdownMenuSub,tn as DropdownMenuSubContent,en as DropdownMenuSubTrigger,cd as DropdownMenuTrigger,Qd as FAQSection,zd as FeatureSection,Wm as Footer,rd as Form,Kr as FormControl,Yr as FormDescription,nd as FormField,qr as FormItem,Zr as FormLabel,Jr as FormMessage,Zi as HeaderNavigation,Uo as Heading,Xo as HeadingGroup,Qo as HeadingSub,jo as HeadingTagline,Dd as HeroSection,Ht as HorizontalContent,Ft as HorizontalNext,_t as HorizontalPrevious,Et as HorizontalScroll,bd as HowItWorksSection,xe as IconButton,wa as LightBoxGalleryContent,ya as LightboxGallery,pc as LightboxThumbnail,Co as NavigationMenu,Do as NavigationMenuContent,To as NavigationMenuItem,Ut as NavigationMenuLink,Ro as NavigationMenuList,So as NavigationMenuTrigger,op as NewsSection,xi as Pagination,Vt as Popover,Ct as PopoverContent,Ot as PopoverTrigger,Kc as ProgressSteps,Zc as ProgressStepsItem,qc as ProgressStepsItemTrigger,Ar as Progressbar,Vi as RadioGroup,Oi as RadioGroupItem,Na as ReadMoreLite,lc as SearchBar,rm as Select,Ii as SelectContent,sm as SelectGroup,lm as SelectItem,Ai as SelectLabel,ua as SelectScrollDownButton,ga as SelectScrollUpButton,Li as SelectSeparator,Mi as SelectTrigger,nm as SelectValue,up as SiteMeta,wc as Skeleton,Hr as Slider,Ed as SocialProofSection,Pc as Spinner,Si as Stepper,Fi as Switch,mt as Tabs,Ge as TabsContent,We as TabsList,$e as TabsTrigger,$d as TestimonialSection,Sl as TextArea,be as TextButton,Zl as TextInput,Ci as ToastAction,Bl as Toaster,Ol as Tooltip,Ri as TooltipArrow,Ti as TooltipContent,Vl as TooltipProvider,Wl as TooltipTrigger,Sr as badgeVariants,we as buttonVariants,gp as mobaseTW,ko as navigationMenuTriggerStyle,Ya as textButtonVariants,wi as toast,Yt as useFormField,ia as useToast};
|
|
235
342
|
//# sourceMappingURL=index.js.map
|