@momo-webplatform/mobase 0.2.86 → 0.2.88

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.
@@ -67,7 +67,7 @@
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),Kt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:m=!1,...c})=>(0,y.jsx)($e,{...c,children:(0,y.jsx)(ze,{className:r("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:(0,y.jsx)(tt,{className:"p-0",children:(0,y.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,y.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,y.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children:m?"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"})]})]}),(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,y.jsxs)("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"]})]})]})]})}),(0,y.jsx)("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,y.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,y.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,y.jsxs)("div",{className:"relative",children:[m&&(0,y.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,y.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,y.jsx)(Nd,{img:i,isQrForAll:m,children:n&&(0,y.jsx)(vs.QRCodeSVG,{value:n,size:215,imageSettings:{src:`${s||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});var hs=require("react");var Eo=require("react"),xs=v(require("ua-parser-js"),1),Pd=()=>(0,xs.default)().device.type==="mobile",Cd=typeof window<"u"?Eo.useLayoutEffect:Eo.useEffect,Ha=()=>{let[e,o]=(0,Eo.useState)(!1);return Cd(()=>{o(Pd())},[]),e};var Ft=require("react/jsx-runtime"),Qe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[m,c]=(0,hs.useState)(!1),d=Ha(),p=!!a?.qrLink,g=()=>{let Z=p?a?.qrLink:e;return typeof Z=="string"?Z.trim():""},u=()=>{let Z=g();!Z&&typeof e!="function"||(typeof e=="function"?e():window.open(Z,o?"_blank":"_self"))},b=(Z,ae=0)=>{let j=document.querySelector(Z);if(!j)return;let k=j.getBoundingClientRect().top+window.scrollY-ae;window.scrollTo({top:k,behavior:"smooth"})},S=()=>{typeof e=="string"&&e.startsWith("#")?b(e,t):u()},V=()=>(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)(He,{...s,className:i,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Ft.jsx)(Kt,{...a,open:m,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?V():(0,Ft.jsx)(He,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):V():(0,Ft.jsx)(He,{...s,onClick:S,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var Ho=v(require("react"),1),za=require("@radix-ui/react-icons"),bs=require("@radix-ui/react-slot");var je=require("react/jsx-runtime"),Yi=Ho.forwardRef(({className:e,...o},t)=>(0,je.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Yi.displayName="Breadcrumb";var Zi=Ho.forwardRef(({className:e,...o},t)=>(0,je.jsx)("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}));Zi.displayName="BreadcrumbList";var Ki=Ho.forwardRef(({className:e,...o},t)=>(0,je.jsx)("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Ki.displayName="BreadcrumbItem";var Ji=Ho.forwardRef(({asChild:e,className:o,...t},a)=>(0,je.jsx)(e?bs.Slot:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Ji.displayName="BreadcrumbLink";var er=Ho.forwardRef(({className:e,...o},t)=>(0,je.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));er.displayName="BreadcrumbPage";var tr=({children:e,className:o,...t})=>(0,je.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??(0,je.jsx)(za.ChevronRightIcon,{className:"w-2 h-2"})});tr.displayName="BreadcrumbSeparator";var or=({className:e,...o})=>(0,je.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,je.jsx)(za.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,je.jsx)("span",{className:"sr-only",children:"More"})]});or.displayName="BreadcrumbElipssis";var Va=v(require("html-react-parser"),1);var aa=require("react");var zo=require("react/jsx-runtime"),ar=(0,aa.createContext)({align:"center"}),Fa=({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(0,zo.jsx)("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},_a=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,m={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=(0,aa.useContext)(ar);return(0,zo.jsx)(s,{className:r("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",m[t],c[o],a&&"truncate",i),children:n})},Ba=({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"},m={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=(0,aa.useContext)(ar);return(0,zo.jsx)("div",{className:r(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],m[o],c[t],a&&"truncate",i),children:n})},Oa=({className:e,align:o="center",children:t})=>(0,zo.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,zo.jsx)(ar.Provider,{value:{align:o},children:t})});var vt=require("react/jsx-runtime"),K=({idSection:e,className:o,background:t,children:a})=>(0,vt.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,vt.jsx)("div",{className:"wrapper relative",children:a})}),N=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:m})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",p=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,vt.jsxs)(Oa,{align:e,className:m,children:[o&&(0,vt.jsx)(Fa,{color:c,children:o}),t&&(0,vt.jsx)(_a,{tagHeading:i,color:d,size:s,children:(0,Va.default)(t)}),a&&(0,vt.jsx)(Ba,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,Va.default)(a)})]})},P=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,vt.jsx)("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{if(!i)return null;let{btnName:s,...m}=i;return(0,vt.jsx)(Qe,{...m,className:r(o&&"w-full md:w-auto",i?.className),children:(0,Va.default)(s)},n)})});var ja=v(require("react"),1),Ss=require("@heroicons/react/20/solid"),Ds=v(require("html-react-parser"),1);var De=require("react"),Wa=require("lucide-react");var ys=v(require("react"),1),ws=require("@radix-ui/react-slot"),Ns=require("class-variance-authority");var Ps=require("react/jsx-runtime"),vo=(0,Ns.cva)("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"}}),ge=ys.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?ws.Slot:"button",c=r(vo({variant:o,size:t,className:e}));return(0,Ps.jsx)(m,{className:c,disabled:i,ref:s,...n,children:n.children})});ge.displayName="IconButton";var Se=require("react/jsx-runtime"),Ga=(0,De.createContext)(void 0),xt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=(0,De.useRef)(null),[n,s]=(0,De.useState)({left:!1,right:!1}),m=(0,De.useCallback)(()=>{let d=i.current;if(d){let{scrollLeft:p,scrollWidth:g,clientWidth:u}=d;s({left:p>0,right:Math.ceil(p+u)<g})}},[]);(0,De.useEffect)(()=>{let d=i.current;if(d)return m(),window.addEventListener("resize",m),d.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),d.removeEventListener("scroll",m)}},[m]);let c=d=>{let p=i.current;if(p){let{scrollLeft:g,clientWidth:u,scrollWidth:b}=p,S=u*.7*(d==="left"?-1:1),V=g+S;V<0?V=0:V>b-u&&(V=b-u),p.scrollTo({left:V,behavior:"smooth"})}};return(0,Se.jsx)(Ga.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Se.jsxs)("div",{className:r("relative w-full",t),children:[e&&(0,Se.jsxs)(Se.Fragment,{children:[n.left&&(0,Se.jsx)("div",{className:"pointer-events-none absolute left-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&(0,Se.jsx)("div",{className:"pointer-events-none absolute right-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},ht=({className:e,children:o})=>{let t=(0,De.useContext)(Ga);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Se.jsx)("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},bt=({className:e,children:o,...t})=>{let a=(0,De.useContext)(Ga);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Se.jsx)(ge,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Se.jsx)(Wa.ChevronLeft,{className:"h-4 w-4"})}):null},yt=({className:e,children:o,...t})=>{let a=(0,De.useContext)(Ga);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Se.jsx)(ge,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Se.jsx)(Wa.ChevronRight,{className:"h-4 w-4"})}):null};var $a=v(require("react"),1),ot=v(require("@radix-ui/react-tabs"),1);var Qa=require("react/jsx-runtime"),wt=ot.Root,at=$a.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>(0,Qa.jsx)(ot.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}));at.displayName=ot.List.displayName;var it=$a.forwardRef(({className:e,...o},t)=>(0,Qa.jsx)(ot.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}));it.displayName=ot.Trigger.displayName;var rt=$a.forwardRef(({className:e,...o},t)=>(0,Qa.jsx)(ot.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}));rt.displayName=ot.Content.displayName;var Cs=v(require("react"),1),Rs=require("@radix-ui/react-slot"),Ts=require("class-variance-authority");var ks=require("react/jsx-runtime"),ir=(0,Ts.cva)("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"}}),ye=Cs.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?Rs.Slot:"button",c=r(ir({variant:o,size:t,className:e}));return(0,ks.jsx)(m,{className:c,disabled:i,ref:s,...n,children:n.children})});ye.displayName="TextButton";var D=require("react/jsx-runtime"),Rd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,D.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,D.jsxs)("picture",{children:[(0,D.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,D.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,D.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,D.jsx)(ye,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),(0,D.jsx)("div",{className:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,D.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(ye,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,D.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,D.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Ua=(0,ja.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,g,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(g):window.open(u,"_blank")},d=(p,g)=>(0,D.jsxs)("div",{children:[(0,D.jsx)("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",p?.blogList?.length<3?"md:justify-center":""),children:p?.blogList?.map((u,b)=>(0,D.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,D.jsx)("div",{onClick:S=>c(S,u?.id,u?.url),className:r("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,D.jsx)(Rd,{blog:u})},u?.id)},b))}),p?.isShowBtn&&(0,D.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,D.jsxs)(Qe,{action:i?()=>i?.(g):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[(0,Ds.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,D.jsx)(Ao,{className:"w-5 h-5 ml-2 animate-spin-loading"}):i&&!p?.btnUrl&&(0,D.jsx)(Ss.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},p?.title||g);return(0,D.jsxs)(ja.default.Fragment,{children:[e&&(0,D.jsx)(N,{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?(0,D.jsxs)(wt,{defaultValue:t[0]?.title,children:[(0,D.jsxs)(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,D.jsx)(ht,{className:"mb-6 text-center",children:(0,D.jsx)(at,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((p,g)=>(0,D.jsx)(it,{value:p.title,children:p.title},p.title+g))})}),(0,D.jsx)(bt,{}),(0,D.jsx)(yt,{})]}),t.map((p,g)=>(0,D.jsx)(rt,{value:p.title,children:d(p,g)},p.title+g))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var _t=v(require("react"),1),Xa=require("@heroicons/react/20/solid"),rr=v(require("html-react-parser"),1);var q=v(require("react"),1),qa=require("@heroicons/react/20/solid"),Ms=v(require("embla-carousel-react"),1);var ue=require("react/jsx-runtime"),Is=q.createContext(null);function ia(){let e=q.useContext(Is);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Me=q.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},m)=>{let[c,d]=(0,Ms.default)({...o,axis:e==="horizontal"?"x":"y"},a),[p,g]=q.useState(!1),[u,b]=q.useState(!1),S=q.useCallback(ae=>{ae&&(g(ae.canScrollPrev()),b(ae.canScrollNext()))},[]),V=q.useCallback(()=>{d?.scrollPrev()},[d]),W=q.useCallback(()=>{d?.scrollNext()},[d]),Z=q.useCallback(ae=>{ae.key==="ArrowLeft"?(ae.preventDefault(),V()):ae.key==="ArrowRight"&&(ae.preventDefault(),W())},[V,W]);return q.useEffect(()=>{!d||!t||t(d)},[d,t]),q.useEffect(()=>{if(d)return S(d),d.on("reInit",S),d.on("select",S),()=>{d?.off("select",S)}},[d,S]),(0,ue.jsx)(Is.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:V,scrollNext:W,canScrollPrev:p,canScrollNext:u},children:(0,ue.jsx)("div",{ref:m,onKeyDownCapture:Z,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Me.displayName="Carousel";var Ie=q.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=ia();return(0,ue.jsx)("div",{ref:i,className:r(o,"overflow-hidden"),children:(0,ue.jsx)("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Ie.displayName="CarouselContent";var Ae=q.forwardRef(({className:e,...o},t)=>{let{orientation:a}=ia();return(0,ue.jsx)("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})});Ae.displayName="CarouselItem";var xo=q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:m}=ia();return(0,ue.jsxs)(ge,{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:!m,onClick:s,...a,children:[(0,ue.jsx)(qa.ChevronLeftIcon,{className:"w-6 h-6"}),(0,ue.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});xo.displayName="CarouselPrevious";var ho=q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:m}=ia();return(0,ue.jsxs)(ge,{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:!m,onClick:s,...a,children:[(0,ue.jsx)(qa.ChevronRightIcon,{className:"w-6 h-6"}),(0,ue.jsx)("span",{className:"sr-only",children:"Next slide"})]})});ho.displayName="CarouselNext";var ra=q.forwardRef((e,o)=>{let{api:t}=ia(),[,a]=q.useState(!1),i=q.useCallback(()=>a(m=>!m),[]);q.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?(0,ue.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(m,c)=>(0,ue.jsx)(ge,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${c===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${c+1}`,onClick:()=>t?.scrollTo(c)},c))}):(0,ue.jsx)(ue.Fragment,{})});ra.displayName="CarouselDots";var C=require("react/jsx-runtime"),Td=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,C.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,C.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,C.jsx)("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&(0,C.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,rr.default)(e?.description??"")}),(0,C.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(ye,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,C.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,C.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},kd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:m,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,_t.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Me,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,C.jsx)(Ie,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(g=>(0,C.jsx)(Ae,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,C.jsx)("div",{onClick:u=>i(u,g?.id,g?.url),className:r("group cursor-pointer",p),children:(0,C.jsx)(Td,{blog:g})},g?.id)},g?.id))})}),s&&(0,C.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,C.jsxs)(Qe,{action:c&&c,newTab:d,variant:"outline",children:[(0,rr.default)(m||"Xem th\xEAm")," "]})})]})},Sd=({carouselRef:e})=>(0,C.jsxs)(ge,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,C.jsx)(Xa.ChevronLeftIcon,{className:"h-6 w-6"}),(0,C.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),Dd=({carouselRef:e})=>(0,C.jsxs)(ge,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,C.jsx)(Xa.ChevronRightIcon,{className:"h-6 w-6"}),(0,C.jsx)("span",{className:"sr-only",children:"Next slide"})]}),nr=(0,_t.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(g,"_blank")},[n,s]=(0,_t.useState)(null),[,m]=(0,_t.useState)(0),c=()=>n?(0,C.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,C.jsx)(Sd,{carouselRef:n}),(0,C.jsx)(Dd,{carouselRef:n})]}):(0,C.jsx)(C.Fragment,{});return(0,C.jsxs)(_t.default.Fragment,{children:[(0,C.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,C.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),(0,C.jsx)(c,{})]}),(0,C.jsx)(kd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:m,handleOnClickItem:i})]})});var Bt=require("react/jsx-runtime"),Md=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Bt.jsx)(Ua,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return(0,Bt.jsx)(nr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Bt.jsx)(Ua,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Id=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Bt.jsx)(Bt.Fragment,{children:Md({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),As=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:m,onClickLoadMore:c})=>(0,Bt.jsx)(K,{className:r("overflow-hidden",i),idSection:a,background:n,children:(0,Bt.jsx)(Id,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:m,onClickLoadMore:c})});var Za=v(require("react"),1),Ka=require("date-fns/locale"),Ja=require("lucide-react"),Hs=v(require("lunisolar"),1),zs=require("react-day-picker");var Ls=v(require("react"),1),na=v(require("@radix-ui/react-checkbox"),1),Es=require("@heroicons/react/16/solid"),sr=require("class-variance-authority");var Ya=require("react/jsx-runtime"),Ad=(0,sr.cva)("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"}}),Ld=(0,sr.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),sa=Ls.forwardRef(({className:e,size:o,...t},a)=>(0,Ya.jsx)(na.Root,{ref:a,className:r(Ad({size:o}),e),...t,children:(0,Ya.jsx)(na.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Ya.jsx)(Es.CheckIcon,{className:r(Ld({size:o}))})})}));sa.displayName=na.Root.displayName;var be=require("react/jsx-runtime"),Ed=({date:e,cusContent:o})=>{let t=null;return t=(0,Hs.default)(e).lunar,(0,be.jsxs)(be.Fragment,{children:[o?o(e):e.getDate(),t&&(0,be.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Hd={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 zd({isShow:e,setIsShow:o,lang:t}){let a=Za.useId();return(0,be.jsx)("div",{className:"w-full p-3 pt-0",children:(0,be.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,be.jsx)(sa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),(0,be.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Fd=e=>e.getDay()===0||e.getDay()===6;function la({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[m,c]=Za.useState(!0);return(0,be.jsx)(zs.DayPicker,{locale:i==="vi"?Ka.vi:Ka.enUS,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(et({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(et({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&m&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Fd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,be.jsx)(Ja.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,be.jsx)(Ja.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,be.jsx)(Ed,{date:d.date,cusContent:n}),Months:({children:d})=>(0,be.jsxs)("div",{className:"w-full",children:[(0,be.jsx)("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,be.jsx)(zd,{isShow:m,setIsShow:c,lang:i})]})},formatters:i==="vi"?Hd:{},...s})}la.displayName="Calendar";var ei=require("@heroicons/react/16/solid"),ma=require("date-fns"),_s=require("lucide-react");var Fs=v(require("react"),1),Ot=v(require("@radix-ui/react-popover"),1);var lr=require("react/jsx-runtime"),Fo=Ot.Root,_o=Ot.Trigger,bo=Fs.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>(0,lr.jsx)(Ot.Portal,{children:(0,lr.jsx)(Ot.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})}));bo.displayName=Ot.Content.displayName;var ee=require("react/jsx-runtime"),Bs=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:m,popoverProps:c,calendarProps:d,popoverContentProps:p})=>{let g=d?.selected||null;return(0,ee.jsxs)("div",{children:[(0,ee.jsxs)(Fo,{...c,children:[(0,ee.jsx)(_o,{asChild:!0,children:(0,ee.jsxs)(He,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!g||!(g instanceof Date)&&typeof g=="object"&&(!("from"in g)||!g.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...m,children:[(0,ee.jsx)("div",{className:"line-clamp-1 flex-1",children:g instanceof Date?(0,ma.format)(g,s):g&&typeof g=="object"&&"from"in g&&"to"in g?(0,ee.jsx)(ee.Fragment,{children:g.from?g.to?(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)("span",{className:"date-from",children:(0,ma.format)(g.from,s)})," ",(0,ee.jsx)("span",{className:"date-separator",children:"-"}),(0,ee.jsx)("span",{className:"date-to",children:(0,ma.format)(g.to,s)})]}):(0,ma.format)(g.from,s):o}):o}),e&&(0,ee.jsx)("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),(0,ee.jsx)(_s.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,ee.jsx)(bo,{className:"w-auto border-none !p-0",...p,children:(0,ee.jsx)(la,{...d,defaultMonth:g&&typeof g=="object"&&"from"in g?g.from:g instanceof Date?g:void 0})})]}),a&&(0,ee.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?(0,ee.jsx)(ei.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ee.jsx)(ei.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ee.jsx)("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var ca=require("react"),ai=require("@heroicons/react/16/solid"),$s=require("date-fns");var Nt=v(require("react"),1),Vt=require("@heroicons/react/16/solid"),Os=require("@heroicons/react/24/outline"),I=v(require("@radix-ui/react-select"),1);var _=require("react/jsx-runtime"),Bo=Nt.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...m},c)=>(0,_.jsxs)("div",{ref:c,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&(0,_.jsx)("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}),(0,_.jsx)(I.Root,{disabled:s,...m,children:o}),a&&(0,_.jsxs)("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?(0,_.jsx)(Vt.XCircleIcon,{width:16,height:16}):(0,_.jsx)(Os.QuestionMarkCircleIcon,{width:16,height:16}),(0,_.jsx)("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Oo=I.Value,yo=Nt.forwardRef(({className:e,children:o,...t},a)=>(0,_.jsxs)(I.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:[(0,_.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,_.jsx)(I.Icon,{asChild:!0,children:(0,_.jsx)(Vt.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));yo.displayName=I.Trigger.displayName;var ti=Nt.forwardRef(({className:e,...o},t)=>(0,_.jsx)(I.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:(0,_.jsx)(Vt.ChevronUpIcon,{className:"h-5 w-5"})}));ti.displayName=I.ScrollUpButton.displayName;var oi=Nt.forwardRef(({className:e,...o},t)=>(0,_.jsx)(I.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:(0,_.jsx)(Vt.ChevronDownIcon,{className:"h-5 w-5"})}));oi.displayName=I.ScrollDownButton.displayName;var wo=Nt.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>(0,_.jsx)(I.Portal,{children:(0,_.jsxs)(I.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:[(0,_.jsx)(ti,{}),(0,_.jsx)(I.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,_.jsx)(oi,{})]})}));wo.displayName=I.Content.displayName;var Vo=Nt.forwardRef(({className:e,children:o,...t},a)=>(0,_.jsx)(I.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),mr=Nt.forwardRef(({className:e,...o},t)=>(0,_.jsx)(I.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));mr.displayName=I.Label.displayName;var Wt=Nt.forwardRef(({className:e,children:o,...t},a)=>(0,_.jsxs)(I.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:[(0,_.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,_.jsx)(I.ItemIndicator,{children:(0,_.jsx)(Vt.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,_.jsx)(I.ItemText,{children:o})]})),cr=Nt.forwardRef(({className:e,...o},t)=>(0,_.jsx)(I.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));cr.displayName=I.Separator.displayName;var Vs=["Th\xE1ng 01","Th\xE1ng 02","Th\xE1ng 03","Th\xE1ng 04","Th\xE1ng 05","Th\xE1ng 06","Th\xE1ng 07","Th\xE1ng 08","Th\xE1ng 09","Th\xE1ng 10","Th\xE1ng 11","Th\xE1ng 12"],Ws=["January","February","March","April","May","June","July","August","September","October","November","December"],dr=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},Gs=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,m)=>n-m)};var z=require("react/jsx-runtime"),Qs=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:m="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:g=!1})=>{let[u,b]=(0,ca.useState)(o??null),S=Math.min(d,p),V=Math.max(d,p),W=m==="MM/yyyy",Z=(k,he)=>{if(he===0){b(void 0),t?.(void 0);return}let ie=u?.getFullYear()||new Date().getFullYear(),Ia=u?.getMonth()??0,fo=u?.getDate()??1;k==="month"&&he!==null&&(Ia=he-1),k==="year"&&he!==null&&(ie=he),W?fo=1:k==="day"&&he!==null&&(fo=he);let rs=dr(ie,Ia+1).daysInMonth;fo>rs&&(fo=1);let Jo=new Date(ie,Ia,fo);(0,$s.isValid)(Jo)&&(b(Jo),t?.(Jo))},[ae,j]=(0,ca.useState)(!1),po=k=>{j(k)};return(0,ca.useEffect)(()=>{b(o??null)},[o]),(0,z.jsxs)("div",{className:r("relative",s&&"cursor-no-drop"),children:[(0,z.jsxs)("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",ae&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",u?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,z.jsx)("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,z.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!W&&(0,z.jsxs)(Bo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:k=>Z("day",parseInt(k,10)),onOpenChange:po,className:"w-[30%]",children:[(0,z.jsx)(yo,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,z.jsx)(Oo,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,z.jsx)(wo,{onCloseAutoFocus:k=>k.preventDefault(),children:(0,z.jsxs)(Vo,{children:[!g&&(0,z.jsx)(Wt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:dr(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(k,he)=>(he+1).toString().padStart(2,"0")).map(k=>(0,z.jsx)(Wt,{value:k,children:k},k))]})})]}),(0,z.jsxs)(Bo,{value:u?(u.getMonth()+1).toString():"",onValueChange:k=>Z("month",parseInt(k,10)),onOpenChange:po,className:r(W?"w-1/2":"w-2/5"),children:[(0,z.jsx)(yo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,z.jsx)(Oo,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,z.jsx)(wo,{onCloseAutoFocus:k=>k.preventDefault(),children:(0,z.jsxs)(Vo,{children:[!g&&(0,z.jsx)(Wt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(k,he)=>he+1).map(k=>(0,z.jsx)(Wt,{value:k.toString(),children:c==="vi"?Vs[k-1]:Ws[k-1]},k))]})})]}),(0,z.jsxs)(Bo,{value:u?u.getFullYear().toString():"",onValueChange:k=>Z("year",parseInt(k,10)),onOpenChange:po,className:r(W?"w-1/2":"w-[30%]"),children:[(0,z.jsx)(yo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,z.jsx)(Oo,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,z.jsx)(wo,{onCloseAutoFocus:k=>k.preventDefault(),children:(0,z.jsxs)(Vo,{children:[!g&&(0,z.jsx)(Wt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Gs(S,V).map(k=>(0,z.jsx)(Wt,{value:k.toString(),children:k},k))]})})]})]})]}),i&&(0,z.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,z.jsx)(ai.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,z.jsx)(ai.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,z.jsx)("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};var No=v(require("react"),1),J=v(require("@radix-ui/react-alert-dialog"),1);var Ue=require("react/jsx-runtime"),js=J.Root,Us=J.Trigger,pr=J.Portal,ii=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(J.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}));ii.displayName=J.Overlay.displayName;var fr=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsxs)(pr,{children:[(0,Ue.jsx)(ii,{}),(0,Ue.jsx)(J.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})]}));fr.displayName=J.Content.displayName;var gr=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...o});gr.displayName="AlertDialogHeader";var ur=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...o});ur.displayName="AlertDialogFooter";var vr=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(J.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));vr.displayName=J.Title.displayName;var xr=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(J.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));xr.displayName=J.Description.displayName;var hr=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(J.Action,{ref:t,className:r(et({variant:"primary"}),"",e),...o}));hr.displayName=J.Action.displayName;var br=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(J.Cancel,{ref:t,className:r(et({variant:"secondary"}),e),...o}));br.displayName=J.Cancel.displayName;var ri=require("react");var da=require("react"),yr=v(require("html-react-parser"),1),Xs=require("motion/react");var qs=v(require("@radix-ui/react-aspect-ratio"),1),U=qs.Root;var G=require("react/jsx-runtime"),_d=({guideGroup:e,mockup:o})=>{let[t,a]=(0,da.useState)(),[i,n]=(0,da.useState)(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return(0,da.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,G.jsx)(G.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,G.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,G.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,G.jsxs)("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,G.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,G.jsxs)(Me,{setApi:a,children:[(0,G.jsx)(Ie,{className:"ml-0",children:e?.stepList.map((m,c)=>(0,G.jsx)(Ae,{className:"pl-0",children:(0,G.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:m?.image&&(0,G.jsx)("img",{src:m.image,className:"size-full object-contain",alt:m.title})})},c))}),(0,G.jsx)(xo,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,G.jsx)(ho,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,G.jsx)("div",{className:"flex flex-auto pl-12 pt-4",children:(0,G.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((m,c)=>(0,G.jsxs)("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",c+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[(0,G.jsx)("div",{className:r("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),(0,G.jsx)("div",{className:r(" text-sm font-medium",c+1===i?"text-pink-500":"text-gray-900"),children:(0,yr.default)(m.title)}),m.content&&(0,G.jsx)(Xs.motion.div,{initial:"closed",animate:c+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,G.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,yr.default)(m.content)})})]},c))})})]})})},wr=_d;var Gt=require("react"),Nr=require("@heroicons/react/20/solid"),Ys=v(require("embla-carousel-autoplay"),1),pa=v(require("html-react-parser"),1);var x=require("react/jsx-runtime"),Bd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=(0,Gt.useState)(0),[s,m]=(0,Gt.useState)();return(0,Gt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,x.jsx)($e,{open:e,onOpenChange:o,children:(0,x.jsxs)(ze,{position:"bottom",height:"full",children:[(0,x.jsx)(go,{children:(0,x.jsx)(uo,{className:"line-clamp-1",children:t?.title})}),(0,x.jsxs)(tt,{className:"grid overflow-hidden p-0 ",children:[(0,x.jsx)(Me,{setApi:m,className:" grid overflow-hidden",children:(0,x.jsx)(Ie,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,x.jsx)(Ae,{className:"h-full w-full pl-0",children:(0,x.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,x.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,x.jsx)("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:(0,x.jsxs)("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,x.jsx)(U,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,x.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,x.jsxs)("div",{className:"p-5 pb-12",children:[(0,x.jsx)("div",{className:"font-semibold",children:(0,pa.default)(c.title)}),c?.content&&(0,x.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,pa.default)(c.content)})]})]})},d))})}),(0,x.jsx)("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((c,d)=>(0,x.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},Od=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=(0,Gt.useState)(!1),[n,s]=(0,Gt.useState)(null),m=(0,Gt.useRef)((0,Ys.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),i(!0)};return e?.length===0?null:(0,x.jsxs)(x.Fragment,{children:[e?.length>1?(0,x.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,p)=>(0,x.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(p),children:[(0,x.jsx)("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,x.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:d.title})}),(0,x.jsxs)("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",p+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[(0,x.jsxs)("div",{className:"py-2",children:[t&&(0,x.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,x.jsx)("div",{className:"font-semibold",children:(0,pa.default)(d.title)}),d?.description&&(0,x.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,pa.default)(d.description)})]}),(0,x.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,x.jsx)(Nr.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,x.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,x.jsx)("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:(0,x.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,x.jsxs)("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,x.jsx)(Me,{plugins:[m.current],children:(0,x.jsx)(Ie,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,x.jsx)(Ae,{className:"pl-0",onClick:()=>c(0),children:(0,x.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,x.jsx)("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},p))})})})]})})}),(0,x.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,x.jsxs)(ye,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,x.jsx)(Nr.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,x.jsx)(Bd,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},Zs=Od;var X=require("react/jsx-runtime"),Ks=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return(0,X.jsx)("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:(0,X.jsx)("path",{d:t.d,fill:"currentColor"})})},Pr=(0,ri.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:m,className:c}=o||{},[d,p]=(0,ri.useState)(t?.[0]?.title||"");return(0,X.jsxs)(X.Fragment,{children:[e&&(0,X.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&(0,X.jsxs)(Io,{children:[(0,X.jsx)(dt,{lessThan:"md",children:(0,X.jsx)(Zs,{dataGuide:t,mockup:i,isStep:n})}),(0,X.jsx)(dt,{greaterThan:"sm",children:t?.length>1?(0,X.jsxs)(wt,{defaultValue:t[0]?.title,onValueChange:g=>p(g),children:[(0,X.jsxs)(xt,{showGradientOverlay:s,gradientOverlayColor:m,className:c,children:[(0,X.jsx)(ht,{className:"mb-6 text-center",children:(0,X.jsx)(at,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((g,u)=>{let b=u===t.length-1,S=d===g?.title||"";return(0,X.jsxs)(it,{value:g.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",S&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&(0,X.jsx)(Ks,{direction:"left",className:r("right-full top-0",S?"text-pink-500":"text-pink-100")}),g.title,n&&!b&&(0,X.jsx)(Ks,{direction:"right",className:r("left-full top-0",S?"text-pink-500":"text-pink-100")})]},g.title+u)})})}),(0,X.jsx)(bt,{}),(0,X.jsx)(yt,{})]}),t.map((g,u)=>(0,X.jsx)(rt,{value:g.title,children:(0,X.jsx)(wr,{guideGroup:g,mockup:i})},g.title+u))]}):t?.length===1&&t[0]&&(0,X.jsx)(wr,{guideGroup:t[0],mockup:i})})]}),a&&(0,X.jsx)(P,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var Jt=require("react/jsx-runtime"),Vd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return(0,Jt.jsx)(Pr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return(0,Jt.jsx)(Pr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},Wd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>(0,Jt.jsx)(Jt.Fragment,{children:Vd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),Js=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:i,background:n,template:s=1,mockup:m="default",isStep:c=!1})=>(0,Jt.jsx)(K,{className:r(i),background:n,children:(0,Jt.jsx)(Wd,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:m,isStep:c})});var ni=require("lucide-react");var ve=require("react/jsx-runtime");function Cr({current:e,total:o,onChange:t}){let a=i=>(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(vo({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return(0,ve.jsx)("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:(0,ve.jsxs)("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(vo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ve.jsx)(ni.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):(0,ve.jsxs)(ve.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(vo({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&&(0,ve.jsx)("button",{className:r(vo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(vo({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ve.jsx)(ni.ChevronRight,{className:"h-4 w-4"})})})]})})}var el=require("react"),tl=require("@heroicons/react/24/outline"),ol=require("@heroicons/react/24/solid");var Pt=require("react/jsx-runtime"),al=(0,el.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:m=3,...c},d)=>(0,Pt.jsxs)("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&(0,Pt.jsx)("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}),(0,Pt.jsx)("textarea",{disabled:e,ref:d,className:r("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:m,...c}),t&&(0,Pt.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?(0,Pt.jsx)(ol.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Pt.jsx)(tl.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Pt.jsx)("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,Pt.jsx)("style",{children:`
70
+ `})]}),Kt=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:m=!1,...c})=>(0,y.jsx)($e,{...c,children:(0,y.jsx)(ze,{className:r("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:(0,y.jsx)(tt,{className:"p-0",children:(0,y.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,y.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,y.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children:m?"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"})]})]}),(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,y.jsxs)("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"]})]})]})]})}),(0,y.jsx)("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,y.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,y.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,y.jsxs)("div",{className:"relative",children:[m&&(0,y.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,y.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,y.jsx)(Nd,{img:i,isQrForAll:m,children:n&&(0,y.jsx)(vs.QRCodeSVG,{value:n,size:215,imageSettings:{src:`${s||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});var hs=require("react");var Eo=require("react"),xs=v(require("ua-parser-js"),1),Pd=()=>(0,xs.default)().device.type==="mobile",Cd=typeof window<"u"?Eo.useLayoutEffect:Eo.useEffect,Ha=()=>{let[e,o]=(0,Eo.useState)(!1);return Cd(()=>{o(Pd())},[]),e};var Ft=require("react/jsx-runtime"),Qe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[m,c]=(0,hs.useState)(!1),d=Ha(),p=!!a?.qrLink,g=()=>{let Z=p?a?.qrLink:e;return typeof Z=="string"?Z.trim():""},u=()=>{let Z=g();!Z&&typeof e!="function"||(typeof e=="function"?e():window.open(Z,o?"_blank":"_self"))},b=(Z,ae=0)=>{let j=document.querySelector(Z);if(!j)return;let k=j.getBoundingClientRect().top+window.scrollY-ae;window.scrollTo({top:k,behavior:"smooth"})},L=()=>{typeof e=="string"&&e.startsWith("#")?b(e,t):u()},H=()=>(0,Ft.jsxs)(Ft.Fragment,{children:[(0,Ft.jsx)(He,{...s,className:i,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Ft.jsx)(Kt,{...a,open:m,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?H():(0,Ft.jsx)(He,{...s,className:i,onClick:u,"data-name":"button-action-with-qr",children:n}):H():(0,Ft.jsx)(He,{...s,onClick:L,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var Ho=v(require("react"),1),za=require("@radix-ui/react-icons"),bs=require("@radix-ui/react-slot");var je=require("react/jsx-runtime"),Yi=Ho.forwardRef(({className:e,...o},t)=>(0,je.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Yi.displayName="Breadcrumb";var Zi=Ho.forwardRef(({className:e,...o},t)=>(0,je.jsx)("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}));Zi.displayName="BreadcrumbList";var Ki=Ho.forwardRef(({className:e,...o},t)=>(0,je.jsx)("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));Ki.displayName="BreadcrumbItem";var Ji=Ho.forwardRef(({asChild:e,className:o,...t},a)=>(0,je.jsx)(e?bs.Slot:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));Ji.displayName="BreadcrumbLink";var er=Ho.forwardRef(({className:e,...o},t)=>(0,je.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));er.displayName="BreadcrumbPage";var tr=({children:e,className:o,...t})=>(0,je.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??(0,je.jsx)(za.ChevronRightIcon,{className:"w-2 h-2"})});tr.displayName="BreadcrumbSeparator";var or=({className:e,...o})=>(0,je.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,je.jsx)(za.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,je.jsx)("span",{className:"sr-only",children:"More"})]});or.displayName="BreadcrumbElipssis";var Va=v(require("html-react-parser"),1);var aa=require("react");var zo=require("react/jsx-runtime"),ar=(0,aa.createContext)({align:"center"}),Fa=({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(0,zo.jsx)("div",{className:r("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:i})},_a=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:i,children:n})=>{let s=e,m={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=(0,aa.useContext)(ar);return(0,zo.jsx)(s,{className:r("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",m[t],c[o],a&&"truncate",i),children:n})},Ba=({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"},m={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=(0,aa.useContext)(ar);return(0,zo.jsx)("div",{className:r(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],m[o],c[t],a&&"truncate",i),children:n})},Oa=({className:e,align:o="center",children:t})=>(0,zo.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,zo.jsx)(ar.Provider,{value:{align:o},children:t})});var vt=require("react/jsx-runtime"),K=({idSection:e,className:o,background:t,children:a})=>(0,vt.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,vt.jsx)("div",{className:"wrapper relative",children:a})}),N=({align:e="center",tagline:o,title:t,description:a,tagHeading:i="h2",colorScheme:n="pink",sizeHeading:s="small",className:m})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",p=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,vt.jsxs)(Oa,{align:e,className:m,children:[o&&(0,vt.jsx)(Fa,{color:c,children:o}),t&&(0,vt.jsx)(_a,{tagHeading:i,color:d,size:s,children:(0,Va.default)(t)}),a&&(0,vt.jsx)(Ba,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,Va.default)(a)})]})},P=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,vt.jsx)("div",{className:r("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((i,n)=>{if(!i)return null;let{btnName:s,...m}=i;return(0,vt.jsx)(Qe,{...m,className:r(o&&"w-full md:w-auto",i?.className),children:(0,Va.default)(s)},n)})});var ja=v(require("react"),1),Ss=require("@heroicons/react/20/solid"),Ds=v(require("html-react-parser"),1);var De=require("react"),Wa=require("lucide-react");var ys=v(require("react"),1),ws=require("@radix-ui/react-slot"),Ns=require("class-variance-authority");var Ps=require("react/jsx-runtime"),vo=(0,Ns.cva)("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"}}),ge=ys.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?ws.Slot:"button",c=r(vo({variant:o,size:t,className:e}));return(0,Ps.jsx)(m,{className:c,disabled:i,ref:s,...n,children:n.children})});ge.displayName="IconButton";var Se=require("react/jsx-runtime"),Ga=(0,De.createContext)(void 0),xt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=(0,De.useRef)(null),[n,s]=(0,De.useState)({left:!1,right:!1}),m=(0,De.useCallback)(()=>{let d=i.current;if(d){let{scrollLeft:p,scrollWidth:g,clientWidth:u}=d;s({left:p>0,right:Math.ceil(p+u)<g})}},[]);(0,De.useEffect)(()=>{let d=i.current;if(d)return m(),window.addEventListener("resize",m),d.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),d.removeEventListener("scroll",m)}},[m]);let c=d=>{let p=i.current;if(p){let{scrollLeft:g,clientWidth:u,scrollWidth:b}=p,L=u*.7*(d==="left"?-1:1),H=g+L;H<0?H=0:H>b-u&&(H=b-u),p.scrollTo({left:H,behavior:"smooth"})}};return(0,Se.jsx)(Ga.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Se.jsxs)("div",{className:r("relative w-full",t),children:[e&&(0,Se.jsxs)(Se.Fragment,{children:[n.left&&(0,Se.jsx)("div",{className:"pointer-events-none absolute left-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient( to left, rgba(255, 255, 255, 0),rgb(${o}),rgb(${o}))`}}),n.right&&(0,Se.jsx)("div",{className:"pointer-events-none absolute right-0 top-1/2 z-10 flex h-full w-16 -translate-y-1/2 items-center",style:{background:`linear-gradient(to right, rgba(255, 255, 255, 0), rgb(${o}),rgb(${o}))`}})]}),a]})})},ht=({className:e,children:o})=>{let t=(0,De.useContext)(Ga);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Se.jsx)("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},bt=({className:e,children:o,...t})=>{let a=(0,De.useContext)(Ga);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Se.jsx)(ge,{className:r("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Se.jsx)(Wa.ChevronLeft,{className:"h-4 w-4"})}):null},yt=({className:e,children:o,...t})=>{let a=(0,De.useContext)(Ga);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Se.jsx)(ge,{className:r("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Se.jsx)(Wa.ChevronRight,{className:"h-4 w-4"})}):null};var $a=v(require("react"),1),ot=v(require("@radix-ui/react-tabs"),1);var Qa=require("react/jsx-runtime"),wt=ot.Root,at=$a.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>(0,Qa.jsx)(ot.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}));at.displayName=ot.List.displayName;var it=$a.forwardRef(({className:e,...o},t)=>(0,Qa.jsx)(ot.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}));it.displayName=ot.Trigger.displayName;var rt=$a.forwardRef(({className:e,...o},t)=>(0,Qa.jsx)(ot.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}));rt.displayName=ot.Content.displayName;var Cs=v(require("react"),1),Rs=require("@radix-ui/react-slot"),Ts=require("class-variance-authority");var ks=require("react/jsx-runtime"),ir=(0,Ts.cva)("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"}}),ye=Cs.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let m=a?Rs.Slot:"button",c=r(ir({variant:o,size:t,className:e}));return(0,ks.jsx)(m,{className:c,disabled:i,ref:s,...n,children:n.children})});ye.displayName="TextButton";var S=require("react/jsx-runtime"),Rd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,S.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,S.jsxs)("picture",{children:[(0,S.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,S.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,S.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,S.jsx)(ye,{variant:"default",className:"shink-0 mb-0.5 line-clamp-1 block justify-start whitespace-normal text-left text-xs md:hidden",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),(0,S.jsx)("div",{className:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,S.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(ye,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,S.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,S.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Ua=(0,ja.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,g,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(g):window.open(u,"_blank")},d=(p,g)=>(0,S.jsxs)("div",{children:[(0,S.jsx)("div",{className:r("-mx-3 flex flex-row flex-wrap gap-y-5",p?.blogList?.length<3?"md:justify-center":""),children:p?.blogList?.map((u,b)=>(0,S.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,S.jsx)("div",{onClick:L=>c(L,u?.id,u?.url),className:r("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,S.jsx)(Rd,{blog:u})},u?.id)},b))}),p?.isShowBtn&&(0,S.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,S.jsxs)(Qe,{action:i?()=>i?.(g):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[(0,Ds.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,S.jsx)(Ao,{className:"w-5 h-5 ml-2 animate-spin-loading"}):i&&!p?.btnUrl&&(0,S.jsx)(Ss.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},p?.title||g);return(0,S.jsxs)(ja.default.Fragment,{children:[e&&(0,S.jsx)(N,{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?(0,S.jsxs)(wt,{defaultValue:t[0]?.title,children:[(0,S.jsxs)(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,S.jsx)(ht,{className:"mb-6 text-center",children:(0,S.jsx)(at,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((p,g)=>(0,S.jsx)(it,{value:p.title,children:p.title},p.title+g))})}),(0,S.jsx)(bt,{}),(0,S.jsx)(yt,{})]}),t.map((p,g)=>(0,S.jsx)(rt,{value:p.title,children:d(p,g)},p.title+g))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var _t=v(require("react"),1),Xa=require("@heroicons/react/20/solid"),rr=v(require("html-react-parser"),1);var q=v(require("react"),1),qa=require("@heroicons/react/20/solid"),Ms=v(require("embla-carousel-react"),1);var ue=require("react/jsx-runtime"),Is=q.createContext(null);function ia(){let e=q.useContext(Is);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Me=q.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},m)=>{let[c,d]=(0,Ms.default)({...o,axis:e==="horizontal"?"x":"y"},a),[p,g]=q.useState(!1),[u,b]=q.useState(!1),L=q.useCallback(ae=>{ae&&(g(ae.canScrollPrev()),b(ae.canScrollNext()))},[]),H=q.useCallback(()=>{d?.scrollPrev()},[d]),W=q.useCallback(()=>{d?.scrollNext()},[d]),Z=q.useCallback(ae=>{ae.key==="ArrowLeft"?(ae.preventDefault(),H()):ae.key==="ArrowRight"&&(ae.preventDefault(),W())},[H,W]);return q.useEffect(()=>{!d||!t||t(d)},[d,t]),q.useEffect(()=>{if(d)return L(d),d.on("reInit",L),d.on("select",L),()=>{d?.off("select",L)}},[d,L]),(0,ue.jsx)(Is.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:H,scrollNext:W,canScrollPrev:p,canScrollNext:u},children:(0,ue.jsx)("div",{ref:m,onKeyDownCapture:Z,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Me.displayName="Carousel";var Ie=q.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=ia();return(0,ue.jsx)("div",{ref:i,className:r(o,"overflow-hidden"),children:(0,ue.jsx)("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Ie.displayName="CarouselContent";var Ae=q.forwardRef(({className:e,...o},t)=>{let{orientation:a}=ia();return(0,ue.jsx)("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})});Ae.displayName="CarouselItem";var xo=q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:m}=ia();return(0,ue.jsxs)(ge,{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:!m,onClick:s,...a,children:[(0,ue.jsx)(qa.ChevronLeftIcon,{className:"w-6 h-6"}),(0,ue.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});xo.displayName="CarouselPrevious";var ho=q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:m}=ia();return(0,ue.jsxs)(ge,{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:!m,onClick:s,...a,children:[(0,ue.jsx)(qa.ChevronRightIcon,{className:"w-6 h-6"}),(0,ue.jsx)("span",{className:"sr-only",children:"Next slide"})]})});ho.displayName="CarouselNext";var ra=q.forwardRef((e,o)=>{let{api:t}=ia(),[,a]=q.useState(!1),i=q.useCallback(()=>a(m=>!m),[]);q.useEffect(()=>{if(t)return t.on("select",i),t.on("reInit",i),()=>{t.off("select",i),t.off("reInit",i)}},[t,i]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?(0,ue.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(m,c)=>(0,ue.jsx)(ge,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${c===s?"navigation-item-active scale-125 transform bg-gray-500 hover:bg-gray-500/90":"bg-gray-200 hover:bg-gray-100"}`,"aria-label":`Go to slide ${c+1}`,onClick:()=>t?.scrollTo(c)},c))}):(0,ue.jsx)(ue.Fragment,{})});ra.displayName="CarouselDots";var C=require("react/jsx-runtime"),Td=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,C.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,C.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,C.jsx)("div",{className:"font-semibold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&(0,C.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,rr.default)(e?.description??"")}),(0,C.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(ye,{variant:"default",className:"shink-0 justify-start whitespace-normal text-left text-sm md:line-clamp-1 ",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,C.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,C.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},kd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:m,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,_t.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Me,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,C.jsx)(Ie,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(g=>(0,C.jsx)(Ae,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,C.jsx)("div",{onClick:u=>i(u,g?.id,g?.url),className:r("group cursor-pointer",p),children:(0,C.jsx)(Td,{blog:g})},g?.id)},g?.id))})}),s&&(0,C.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,C.jsxs)(Qe,{action:c&&c,newTab:d,variant:"outline",children:[(0,rr.default)(m||"Xem th\xEAm")," "]})})]})},Sd=({carouselRef:e})=>(0,C.jsxs)(ge,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,C.jsx)(Xa.ChevronLeftIcon,{className:"h-6 w-6"}),(0,C.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),Dd=({carouselRef:e})=>(0,C.jsxs)(ge,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,C.jsx)(Xa.ChevronRightIcon,{className:"h-6 w-6"}),(0,C.jsx)("span",{className:"sr-only",children:"Next slide"})]}),nr=(0,_t.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(g,"_blank")},[n,s]=(0,_t.useState)(null),[,m]=(0,_t.useState)(0),c=()=>n?(0,C.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,C.jsx)(Sd,{carouselRef:n}),(0,C.jsx)(Dd,{carouselRef:n})]}):(0,C.jsx)(C.Fragment,{});return(0,C.jsxs)(_t.default.Fragment,{children:[(0,C.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,C.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),(0,C.jsx)(c,{})]}),(0,C.jsx)(kd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:m,handleOnClickItem:i})]})});var Bt=require("react/jsx-runtime"),Md=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Bt.jsx)(Ua,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return(0,Bt.jsx)(nr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Bt.jsx)(Ua,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Id=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Bt.jsx)(Bt.Fragment,{children:Md({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),As=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:m,onClickLoadMore:c})=>(0,Bt.jsx)(K,{className:r("overflow-hidden",i),idSection:a,background:n,children:(0,Bt.jsx)(Id,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:m,onClickLoadMore:c})});var Za=v(require("react"),1),Ka=require("date-fns/locale"),Ja=require("lucide-react"),Hs=v(require("lunisolar"),1),zs=require("react-day-picker");var Ls=v(require("react"),1),na=v(require("@radix-ui/react-checkbox"),1),Es=require("@heroicons/react/16/solid"),sr=require("class-variance-authority");var Ya=require("react/jsx-runtime"),Ad=(0,sr.cva)("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"}}),Ld=(0,sr.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),sa=Ls.forwardRef(({className:e,size:o,...t},a)=>(0,Ya.jsx)(na.Root,{ref:a,className:r(Ad({size:o}),e),...t,children:(0,Ya.jsx)(na.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Ya.jsx)(Es.CheckIcon,{className:r(Ld({size:o}))})})}));sa.displayName=na.Root.displayName;var be=require("react/jsx-runtime"),Ed=({date:e,cusContent:o})=>{let t=null;return t=(0,Hs.default)(e).lunar,(0,be.jsxs)(be.Fragment,{children:[o?o(e):e.getDate(),t&&(0,be.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},Hd={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 zd({isShow:e,setIsShow:o,lang:t}){let a=Za.useId();return(0,be.jsx)("div",{className:"w-full p-3 pt-0",children:(0,be.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,be.jsx)(sa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),(0,be.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Fd=e=>e.getDay()===0||e.getDay()===6;function la({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[m,c]=Za.useState(!0);return(0,be.jsx)(zs.DayPicker,{locale:i==="vi"?Ka.vi:Ka.enUS,showOutsideDays:t,className:r("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:r(et({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:r("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:r(et({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&m&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:Fd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,be.jsx)(Ja.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,be.jsx)(Ja.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,be.jsx)(Ed,{date:d.date,cusContent:n}),Months:({children:d})=>(0,be.jsxs)("div",{className:"w-full",children:[(0,be.jsx)("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,be.jsx)(zd,{isShow:m,setIsShow:c,lang:i})]})},formatters:i==="vi"?Hd:{},...s})}la.displayName="Calendar";var ei=require("@heroicons/react/16/solid"),ma=require("date-fns"),_s=require("lucide-react");var Fs=v(require("react"),1),Ot=v(require("@radix-ui/react-popover"),1);var lr=require("react/jsx-runtime"),Fo=Ot.Root,_o=Ot.Trigger,bo=Fs.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>(0,lr.jsx)(Ot.Portal,{children:(0,lr.jsx)(Ot.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})}));bo.displayName=Ot.Content.displayName;var ee=require("react/jsx-runtime"),Bs=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:m,popoverProps:c,calendarProps:d,popoverContentProps:p})=>{let g=d?.selected||null;return(0,ee.jsxs)("div",{children:[(0,ee.jsxs)(Fo,{...c,children:[(0,ee.jsx)(_o,{asChild:!0,children:(0,ee.jsxs)(He,{variant:"secondary",className:r("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!g||!(g instanceof Date)&&typeof g=="object"&&(!("from"in g)||!g.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...m,children:[(0,ee.jsx)("div",{className:"line-clamp-1 flex-1",children:g instanceof Date?(0,ma.format)(g,s):g&&typeof g=="object"&&"from"in g&&"to"in g?(0,ee.jsx)(ee.Fragment,{children:g.from?g.to?(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsx)("span",{className:"date-from",children:(0,ma.format)(g.from,s)})," ",(0,ee.jsx)("span",{className:"date-separator",children:"-"}),(0,ee.jsx)("span",{className:"date-to",children:(0,ma.format)(g.to,s)})]}):(0,ma.format)(g.from,s):o}):o}),e&&(0,ee.jsx)("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),(0,ee.jsx)(_s.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,ee.jsx)(bo,{className:"w-auto border-none !p-0",...p,children:(0,ee.jsx)(la,{...d,defaultMonth:g&&typeof g=="object"&&"from"in g?g.from:g instanceof Date?g:void 0})})]}),a&&(0,ee.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?(0,ee.jsx)(ei.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ee.jsx)(ei.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ee.jsx)("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var ca=require("react"),ai=require("@heroicons/react/16/solid"),$s=require("date-fns");var Nt=v(require("react"),1),Vt=require("@heroicons/react/16/solid"),Os=require("@heroicons/react/24/outline"),M=v(require("@radix-ui/react-select"),1);var B=require("react/jsx-runtime"),Bo=Nt.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...m},c)=>(0,B.jsxs)("div",{ref:c,className:r("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",i===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&(0,B.jsx)("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}),(0,B.jsx)(M.Root,{disabled:s,...m,children:o}),a&&(0,B.jsxs)("div",{className:r("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?(0,B.jsx)(Vt.XCircleIcon,{width:16,height:16}):(0,B.jsx)(Os.QuestionMarkCircleIcon,{width:16,height:16}),(0,B.jsx)("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),Oo=M.Value,yo=Nt.forwardRef(({className:e,children:o,...t},a)=>(0,B.jsxs)(M.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:[(0,B.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,B.jsx)(M.Icon,{asChild:!0,children:(0,B.jsx)(Vt.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));yo.displayName=M.Trigger.displayName;var ti=Nt.forwardRef(({className:e,...o},t)=>(0,B.jsx)(M.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:(0,B.jsx)(Vt.ChevronUpIcon,{className:"h-5 w-5"})}));ti.displayName=M.ScrollUpButton.displayName;var oi=Nt.forwardRef(({className:e,...o},t)=>(0,B.jsx)(M.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:(0,B.jsx)(Vt.ChevronDownIcon,{className:"h-5 w-5"})}));oi.displayName=M.ScrollDownButton.displayName;var wo=Nt.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>(0,B.jsx)(M.Portal,{children:(0,B.jsxs)(M.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:[(0,B.jsx)(ti,{}),(0,B.jsx)(M.Viewport,{className:r("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,B.jsx)(oi,{})]})}));wo.displayName=M.Content.displayName;var Vo=Nt.forwardRef(({className:e,children:o,...t},a)=>(0,B.jsx)(M.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),mr=Nt.forwardRef(({className:e,...o},t)=>(0,B.jsx)(M.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));mr.displayName=M.Label.displayName;var Wt=Nt.forwardRef(({className:e,children:o,...t},a)=>(0,B.jsxs)(M.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:[(0,B.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,B.jsx)(M.ItemIndicator,{children:(0,B.jsx)(Vt.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,B.jsx)(M.ItemText,{children:o})]})),cr=Nt.forwardRef(({className:e,...o},t)=>(0,B.jsx)(M.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));cr.displayName=M.Separator.displayName;var Vs=["Th\xE1ng 01","Th\xE1ng 02","Th\xE1ng 03","Th\xE1ng 04","Th\xE1ng 05","Th\xE1ng 06","Th\xE1ng 07","Th\xE1ng 08","Th\xE1ng 09","Th\xE1ng 10","Th\xE1ng 11","Th\xE1ng 12"],Ws=["January","February","March","April","May","June","July","August","September","October","November","December"],dr=(e,o,t,a)=>{let i=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():i;return{daysInMonth:i,startDay:n,endDay:s}},Gs=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,m)=>n-m)};var F=require("react/jsx-runtime"),Qs=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:m="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:g=!1})=>{let[u,b]=(0,ca.useState)(o??null),L=Math.min(d,p),H=Math.max(d,p),W=m==="MM/yyyy",Z=(k,he)=>{if(he===0){b(void 0),t?.(void 0);return}let ie=u?.getFullYear()||new Date().getFullYear(),Ia=u?.getMonth()??0,fo=u?.getDate()??1;k==="month"&&he!==null&&(Ia=he-1),k==="year"&&he!==null&&(ie=he),W?fo=1:k==="day"&&he!==null&&(fo=he);let rs=dr(ie,Ia+1).daysInMonth;fo>rs&&(fo=1);let Jo=new Date(ie,Ia,fo);(0,$s.isValid)(Jo)&&(b(Jo),t?.(Jo))},[ae,j]=(0,ca.useState)(!1),po=k=>{j(k)};return(0,ca.useEffect)(()=>{b(o??null)},[o]),(0,F.jsxs)("div",{className:r("relative",s&&"cursor-no-drop"),children:[(0,F.jsxs)("div",{className:r("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",ae&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",u?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,F.jsx)("span",{className:r("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,F.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!W&&(0,F.jsxs)(Bo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:k=>Z("day",parseInt(k,10)),onOpenChange:po,className:"w-[30%]",children:[(0,F.jsx)(yo,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,F.jsx)(Oo,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,F.jsx)(wo,{onCloseAutoFocus:k=>k.preventDefault(),children:(0,F.jsxs)(Vo,{children:[!g&&(0,F.jsx)(Wt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:dr(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(k,he)=>(he+1).toString().padStart(2,"0")).map(k=>(0,F.jsx)(Wt,{value:k,children:k},k))]})})]}),(0,F.jsxs)(Bo,{value:u?(u.getMonth()+1).toString():"",onValueChange:k=>Z("month",parseInt(k,10)),onOpenChange:po,className:r(W?"w-1/2":"w-2/5"),children:[(0,F.jsx)(yo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,F.jsx)(Oo,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,F.jsx)(wo,{onCloseAutoFocus:k=>k.preventDefault(),children:(0,F.jsxs)(Vo,{children:[!g&&(0,F.jsx)(Wt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(k,he)=>he+1).map(k=>(0,F.jsx)(Wt,{value:k.toString(),children:c==="vi"?Vs[k-1]:Ws[k-1]},k))]})})]}),(0,F.jsxs)(Bo,{value:u?u.getFullYear().toString():"",onValueChange:k=>Z("year",parseInt(k,10)),onOpenChange:po,className:r(W?"w-1/2":"w-[30%]"),children:[(0,F.jsx)(yo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,F.jsx)(Oo,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,F.jsx)(wo,{onCloseAutoFocus:k=>k.preventDefault(),children:(0,F.jsxs)(Vo,{children:[!g&&(0,F.jsx)(Wt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Gs(L,H).map(k=>(0,F.jsx)(Wt,{value:k.toString(),children:k},k))]})})]})]})]}),i&&(0,F.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,F.jsx)(ai.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,F.jsx)(ai.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,F.jsx)("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};var No=v(require("react"),1),J=v(require("@radix-ui/react-alert-dialog"),1);var Ue=require("react/jsx-runtime"),js=J.Root,Us=J.Trigger,pr=J.Portal,ii=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(J.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}));ii.displayName=J.Overlay.displayName;var fr=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsxs)(pr,{children:[(0,Ue.jsx)(ii,{}),(0,Ue.jsx)(J.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})]}));fr.displayName=J.Content.displayName;var gr=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...o});gr.displayName="AlertDialogHeader";var ur=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...o});ur.displayName="AlertDialogFooter";var vr=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(J.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));vr.displayName=J.Title.displayName;var xr=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(J.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));xr.displayName=J.Description.displayName;var hr=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(J.Action,{ref:t,className:r(et({variant:"primary"}),"",e),...o}));hr.displayName=J.Action.displayName;var br=No.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(J.Cancel,{ref:t,className:r(et({variant:"secondary"}),e),...o}));br.displayName=J.Cancel.displayName;var ri=require("react");var da=require("react"),yr=v(require("html-react-parser"),1),Xs=require("motion/react");var qs=v(require("@radix-ui/react-aspect-ratio"),1),U=qs.Root;var G=require("react/jsx-runtime"),_d=({guideGroup:e,mockup:o})=>{let[t,a]=(0,da.useState)(),[i,n]=(0,da.useState)(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return(0,da.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,G.jsx)(G.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,G.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,G.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,G.jsxs)("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,G.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,G.jsxs)(Me,{setApi:a,children:[(0,G.jsx)(Ie,{className:"ml-0",children:e?.stepList.map((m,c)=>(0,G.jsx)(Ae,{className:"pl-0",children:(0,G.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:m?.image&&(0,G.jsx)("img",{src:m.image,className:"size-full object-contain",alt:m.title})})},c))}),(0,G.jsx)(xo,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,G.jsx)(ho,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,G.jsx)("div",{className:"flex flex-auto pl-12 pt-4",children:(0,G.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((m,c)=>(0,G.jsxs)("li",{className:r("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",c+1===i?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[(0,G.jsx)("div",{className:r("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===i?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),(0,G.jsx)("div",{className:r(" text-sm font-medium",c+1===i?"text-pink-500":"text-gray-900"),children:(0,yr.default)(m.title)}),m.content&&(0,G.jsx)(Xs.motion.div,{initial:"closed",animate:c+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,G.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,yr.default)(m.content)})})]},c))})})]})})},wr=_d;var Gt=require("react"),Nr=require("@heroicons/react/20/solid"),Ys=v(require("embla-carousel-autoplay"),1),pa=v(require("html-react-parser"),1);var x=require("react/jsx-runtime"),Bd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=(0,Gt.useState)(0),[s,m]=(0,Gt.useState)();return(0,Gt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,x.jsx)($e,{open:e,onOpenChange:o,children:(0,x.jsxs)(ze,{position:"bottom",height:"full",children:[(0,x.jsx)(go,{children:(0,x.jsx)(uo,{className:"line-clamp-1",children:t?.title})}),(0,x.jsxs)(tt,{className:"grid overflow-hidden p-0 ",children:[(0,x.jsx)(Me,{setApi:m,className:" grid overflow-hidden",children:(0,x.jsx)(Ie,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,x.jsx)(Ae,{className:"h-full w-full pl-0",children:(0,x.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,x.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,x.jsx)("div",{className:r("mx-auto",a==="small"?"w-56":"w-52"),children:(0,x.jsxs)("div",{className:r("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:r("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,x.jsx)(U,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,x.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,x.jsxs)("div",{className:"p-5 pb-12",children:[(0,x.jsx)("div",{className:"font-semibold",children:(0,pa.default)(c.title)}),c?.content&&(0,x.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,pa.default)(c.content)})]})]})},d))})}),(0,x.jsx)("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((c,d)=>(0,x.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===i?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},Od=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=(0,Gt.useState)(!1),[n,s]=(0,Gt.useState)(null),m=(0,Gt.useRef)((0,Ys.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),i(!0)};return e?.length===0?null:(0,x.jsxs)(x.Fragment,{children:[e?.length>1?(0,x.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,p)=>(0,x.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(p),children:[(0,x.jsx)("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,x.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:d.title})}),(0,x.jsxs)("div",{className:r("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",p+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[(0,x.jsxs)("div",{className:"py-2",children:[t&&(0,x.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,x.jsx)("div",{className:"font-semibold",children:(0,pa.default)(d.title)}),d?.description&&(0,x.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,pa.default)(d.description)})]}),(0,x.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,x.jsx)(Nr.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,x.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,x.jsx)("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:(0,x.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,x.jsxs)("div",{className:r("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,x.jsx)(Me,{plugins:[m.current],children:(0,x.jsx)(Ie,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,x.jsx)(Ae,{className:"pl-0",onClick:()=>c(0),children:(0,x.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,x.jsx)("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},p))})})})]})})}),(0,x.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,x.jsxs)(ye,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,x.jsx)(Nr.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,x.jsx)(Bd,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},Zs=Od;var X=require("react/jsx-runtime"),Ks=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return(0,X.jsx)("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:r("flex-0 absolute w-5 transition-all",o),children:(0,X.jsx)("path",{d:t.d,fill:"currentColor"})})},Pr=(0,ri.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:m,className:c}=o||{},[d,p]=(0,ri.useState)(t?.[0]?.title||"");return(0,X.jsxs)(X.Fragment,{children:[e&&(0,X.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r(e?.className)}),t&&t?.length>0&&(0,X.jsxs)(Io,{children:[(0,X.jsx)(dt,{lessThan:"md",children:(0,X.jsx)(Zs,{dataGuide:t,mockup:i,isStep:n})}),(0,X.jsx)(dt,{greaterThan:"sm",children:t?.length>1?(0,X.jsxs)(wt,{defaultValue:t[0]?.title,onValueChange:g=>p(g),children:[(0,X.jsxs)(xt,{showGradientOverlay:s,gradientOverlayColor:m,className:c,children:[(0,X.jsx)(ht,{className:"mb-6 text-center",children:(0,X.jsx)(at,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((g,u)=>{let b=u===t.length-1,L=d===g?.title||"";return(0,X.jsxs)(it,{value:g.title,className:r(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",L&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&(0,X.jsx)(Ks,{direction:"left",className:r("right-full top-0",L?"text-pink-500":"text-pink-100")}),g.title,n&&!b&&(0,X.jsx)(Ks,{direction:"right",className:r("left-full top-0",L?"text-pink-500":"text-pink-100")})]},g.title+u)})})}),(0,X.jsx)(bt,{}),(0,X.jsx)(yt,{})]}),t.map((g,u)=>(0,X.jsx)(rt,{value:g.title,children:(0,X.jsx)(wr,{guideGroup:g,mockup:i})},g.title+u))]}):t?.length===1&&t[0]&&(0,X.jsx)(wr,{guideGroup:t[0],mockup:i})})]}),a&&(0,X.jsx)(P,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var Jt=require("react/jsx-runtime"),Vd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return(0,Jt.jsx)(Pr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return(0,Jt.jsx)(Pr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s})}},Wd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})=>(0,Jt.jsx)(Jt.Fragment,{children:Vd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),Js=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:i,background:n,template:s=1,mockup:m="default",isStep:c=!1})=>(0,Jt.jsx)(K,{className:r(i),background:n,children:(0,Jt.jsx)(Wd,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:m,isStep:c})});var ni=require("lucide-react");var ve=require("react/jsx-runtime");function Cr({current:e,total:o,onChange:t}){let a=i=>(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(vo({variant:e===i?"outline":"secondary",size:"sm"})),onClick:()=>t(i),children:i})},i);return(0,ve.jsx)("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center"),children:(0,ve.jsxs)("ul",{className:r("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(vo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ve.jsx)(ni.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((i,n)=>a(n+1)):(0,ve.jsxs)(ve.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(vo({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&&(0,ve.jsx)("button",{className:r(vo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(vo({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ve.jsx)(ni.ChevronRight,{className:"h-4 w-4"})})})]})})}var el=require("react"),tl=require("@heroicons/react/24/outline"),ol=require("@heroicons/react/24/solid");var Pt=require("react/jsx-runtime"),al=(0,el.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:m=3,...c},d)=>(0,Pt.jsxs)("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&(0,Pt.jsx)("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}),(0,Pt.jsx)("textarea",{disabled:e,ref:d,className:r("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:m,...c}),t&&(0,Pt.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?(0,Pt.jsx)(ol.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Pt.jsx)(tl.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Pt.jsx)("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,Pt.jsx)("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 @@
94
94
  color: rgb(var(--mobase-red-500) / 1);
95
95
  }
96
96
  }
97
- `})]}));var mi=v(require("react"),1),Gd=1,$d=1e6;var Rr=0;function Qd(){return Rr=(Rr+1)%Number.MAX_SAFE_INTEGER,Rr.toString()}var Tr=new Map,il=e=>{if(Tr.has(e))return;let o=setTimeout(()=>{Tr.delete(e),fa({type:"REMOVE_TOAST",toastId:e})},$d);Tr.set(e,o)},jd=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Gd)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===o.toast.id?{...t,...o.toast}:t)};case"DISMISS_TOAST":{let{toastId:t}=o;return t?il(t):e.toasts.forEach(a=>{il(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}},si=[],li={toasts:[]};function fa(e){li=jd(li,e),si.forEach(o=>{o(li)})}function kr({...e}){let o=Qd(),t=i=>fa({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>fa({type:"DISMISS_TOAST",toastId:o});return fa({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function ci(){let[e,o]=mi.useState(li);return mi.useEffect(()=>(si.push(o),()=>{let t=si.indexOf(o);t>-1&&si.splice(t,1)}),[e]),{...e,toast:kr,dismiss:t=>fa({type:"DISMISS_TOAST",toastId:t})}}var Po=v(require("react"),1),eo=require("@heroicons/react/20/solid"),me=v(require("@radix-ui/react-toast"),1),rl=require("class-variance-authority");var Fe=require("react/jsx-runtime"),nl=me.Provider,Sr=Po.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(me.Viewport,{ref:t,className:r("fixed bottom-0 left-0 z-[300] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));Sr.displayName=me.Viewport.displayName;var Ud=(0,rl.cva)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),Dr=Po.forwardRef(({className:e,variant:o="success",children:t,...a},i)=>(0,Fe.jsxs)(me.Root,{ref:i,className:r(Ud({variant:o}),e),...a,children:[(0,Fe.jsxs)("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&(0,Fe.jsx)(eo.CheckCircleIcon,{className:"h-5 w-5 text-green-500"}),o==="warning"&&(0,Fe.jsx)(eo.ExclamationTriangleIcon,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&(0,Fe.jsx)(eo.InformationCircleIcon,{className:"h-5 w-5 text-red-500"})]}),t]}));Dr.displayName=me.Root.displayName;var Mr=Po.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(me.Action,{ref:t,className:r("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));Mr.displayName=me.Action.displayName;var Ir=Po.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(me.Close,{ref:t,className:r("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:(0,Fe.jsx)(eo.XMarkIcon,{className:"h-5 w-5"})}));Ir.displayName=me.Close.displayName;var Ar=Po.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(me.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));Ar.displayName=me.Title.displayName;var Lr=Po.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(me.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));Lr.displayName=me.Description.displayName;var $t=require("react/jsx-runtime");function sl(){let{toasts:e}=ci();return(0,$t.jsxs)(nl,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return(0,$t.jsxs)(Dr,{...n,children:[(0,$t.jsxs)("div",{className:"grid gap-2",children:[t&&(0,$t.jsx)(Ar,{children:t}),a&&(0,$t.jsx)(Lr,{children:a})]}),i,(0,$t.jsx)(Ir,{})]},o)}),(0,$t.jsx)(Sr,{})]})}var Er=v(require("react"),1),qe=v(require("@radix-ui/react-tooltip"),1);var Fr=require("react/jsx-runtime"),ll=qe.Provider,ml=qe.Root,cl=qe.Trigger,Hr=Er.forwardRef((e,o)=>(0,Fr.jsx)(qe.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));Hr.displayName=qe.Arrow.displayName;var zr=Er.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>(0,Fr.jsx)(qe.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}));zr.displayName=qe.Content.displayName;var to=require("react"),Wo=require("@heroicons/react/16/solid");var _e=require("react/jsx-runtime"),dl=(0,to.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:m,onChange:c,onFocus:d,onClickClear:p,value:g,defaultValue:u,type:b="text",...S},V)=>{let[W,Z]=(0,to.useState)(!1),ae=(0,to.useRef)(null),j=ie=>{ie&&!W&&Z(!0),!ie&&W&&Z(!1)},po=ie=>{s&&j(ie.target.value),c?.(ie)},k=ie=>{s&&j(ie.target.value),d?.(ie)},he=()=>{let ie=ae.current?.querySelector("input");ie&&(p?.(ie.value),ie.value="",ie.focus(),Z(!1))};return(0,to.useEffect)(()=>{j(u||g)},[g,u]),(0,_e.jsxs)("div",{className:r(i,o&&"mobase-text-input-error"),ref:ae,children:[(0,_e.jsxs)("div",{className:"relative",children:[a&&(0,_e.jsx)("span",{className:r("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",m===2&&" -top-2.5 text-sm"),children:a}),(0,_e.jsx)("input",{disabled:e,type:b,ref:V,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",m===2&&"h-12 text-base",n),onChange:po,onFocus:k,value:g,defaultValue:u,...S}),s&&W&&(0,_e.jsx)("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:he,children:(0,_e.jsx)(Wo.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,_e.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?(0,_e.jsx)(Wo.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,_e.jsx)(Wo.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,_e.jsx)("span",{className:r("text-gray-500 ",m===2?"text-sm":"text-xs"),children:t})]}),(0,_e.jsx)("style",{children:`
97
+ `})]}));var mi=v(require("react"),1),Gd=1,$d=1e6;var Rr=0;function Qd(){return Rr=(Rr+1)%Number.MAX_SAFE_INTEGER,Rr.toString()}var Tr=new Map,il=e=>{if(Tr.has(e))return;let o=setTimeout(()=>{Tr.delete(e),fa({type:"REMOVE_TOAST",toastId:e})},$d);Tr.set(e,o)},jd=(e,o)=>{switch(o.type){case"ADD_TOAST":return{...e,toasts:[o.toast,...e.toasts].slice(0,Gd)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(t=>t.id===o.toast.id?{...t,...o.toast}:t)};case"DISMISS_TOAST":{let{toastId:t}=o;return t?il(t):e.toasts.forEach(a=>{il(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}},si=[],li={toasts:[]};function fa(e){li=jd(li,e),si.forEach(o=>{o(li)})}function kr({...e}){let o=Qd(),t=i=>fa({type:"UPDATE_TOAST",toast:{...i,id:o}}),a=()=>fa({type:"DISMISS_TOAST",toastId:o});return fa({type:"ADD_TOAST",toast:{...e,id:o,open:!0,onOpenChange:i=>{i||a()}}}),{id:o,dismiss:a,update:t}}function ci(){let[e,o]=mi.useState(li);return mi.useEffect(()=>(si.push(o),()=>{let t=si.indexOf(o);t>-1&&si.splice(t,1)}),[e]),{...e,toast:kr,dismiss:t=>fa({type:"DISMISS_TOAST",toastId:t})}}var Po=v(require("react"),1),eo=require("@heroicons/react/20/solid"),me=v(require("@radix-ui/react-toast"),1),rl=require("class-variance-authority");var Fe=require("react/jsx-runtime"),nl=me.Provider,Sr=Po.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(me.Viewport,{ref:t,className:r("fixed bottom-0 left-0 z-[300] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-auto sm:left-auto sm:right-0 sm:top-0 sm:flex-col md:max-w-[420px]",e),...o}));Sr.displayName=me.Viewport.displayName;var Ud=(0,rl.cva)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-bottom-full data-[state=open]:sm:slide-in-from-top-full shadow-medium group pointer-events-auto relative w-full overflow-hidden rounded-md border-l-4 border-gray-200 bg-white py-4 pl-10 pr-10 text-gray-900 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none",{variants:{variant:{success:"border-l-green-500",warning:"border-l-yellow-500",error:"border-l-red-500"}},defaultVariants:{variant:"success"}}),Dr=Po.forwardRef(({className:e,variant:o="success",children:t,...a},i)=>(0,Fe.jsxs)(me.Root,{ref:i,className:r(Ud({variant:o}),e),...a,children:[(0,Fe.jsxs)("div",{className:"absolute left-3 top-4 flex h-5 w-5 items-center justify-center",children:[o==="success"&&(0,Fe.jsx)(eo.CheckCircleIcon,{className:"h-5 w-5 text-green-500"}),o==="warning"&&(0,Fe.jsx)(eo.ExclamationTriangleIcon,{className:"h-5 w-5 text-yellow-500"}),o==="error"&&(0,Fe.jsx)(eo.InformationCircleIcon,{className:"h-5 w-5 text-red-500"})]}),t]}));Dr.displayName=me.Root.displayName;var Mr=Po.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(me.Action,{ref:t,className:r("ring-offset-background hover:bg-secondary focus:ring-ring mt-2 inline-flex shrink-0 items-center justify-center bg-transparent text-sm font-medium text-blue-600 transition-colors hover:underline focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:pointer-events-none disabled:opacity-50",e),...o}));Mr.displayName=me.Action.displayName;var Ir=Po.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(me.Close,{ref:t,className:r("absolute right-2 top-2 flex h-8 w-8 items-center justify-center rounded-md text-gray-800 transition-opacity hover:opacity-70 focus:opacity-100 focus:outline-none focus:ring-2",e),"toast-close":"",...o,children:(0,Fe.jsx)(eo.XMarkIcon,{className:"h-5 w-5"})}));Ir.displayName=me.Close.displayName;var Ar=Po.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(me.Title,{ref:t,className:r("text-base font-semibold leading-tight",e),...o}));Ar.displayName=me.Title.displayName;var Lr=Po.forwardRef(({className:e,...o},t)=>(0,Fe.jsx)(me.Description,{ref:t,className:r("text-sm opacity-90",e),...o}));Lr.displayName=me.Description.displayName;var $t=require("react/jsx-runtime");function sl(){let{toasts:e}=ci();return(0,$t.jsxs)(nl,{children:[e.map(function({id:o,title:t,description:a,action:i,...n}){return(0,$t.jsxs)(Dr,{...n,children:[(0,$t.jsxs)("div",{className:"grid gap-2",children:[t&&(0,$t.jsx)(Ar,{children:t}),a&&(0,$t.jsx)(Lr,{children:a})]}),i,(0,$t.jsx)(Ir,{})]},o)}),(0,$t.jsx)(Sr,{})]})}var Er=v(require("react"),1),qe=v(require("@radix-ui/react-tooltip"),1);var Fr=require("react/jsx-runtime"),ll=qe.Provider,ml=qe.Root,cl=qe.Trigger,Hr=Er.forwardRef((e,o)=>(0,Fr.jsx)(qe.Arrow,{ref:o,className:r("drop-shadow-md",e.className),...e}));Hr.displayName=qe.Arrow.displayName;var zr=Er.forwardRef(({className:e,type:o="dark",sideOffset:t=4,...a},i)=>(0,Fr.jsx)(qe.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}));zr.displayName=qe.Content.displayName;var to=require("react"),Wo=require("@heroicons/react/16/solid");var _e=require("react/jsx-runtime"),dl=(0,to.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,withClearButton:s,size:m,onChange:c,onFocus:d,onClickClear:p,value:g,defaultValue:u,type:b="text",...L},H)=>{let[W,Z]=(0,to.useState)(!1),ae=(0,to.useRef)(null),j=ie=>{ie&&!W&&Z(!0),!ie&&W&&Z(!1)},po=ie=>{s&&j(ie.target.value),c?.(ie)},k=ie=>{s&&j(ie.target.value),d?.(ie)},he=()=>{let ie=ae.current?.querySelector("input");ie&&(p?.(ie.value),ie.value="",ie.focus(),Z(!1))};return(0,to.useEffect)(()=>{j(u||g)},[g,u]),(0,_e.jsxs)("div",{className:r(i,o&&"mobase-text-input-error"),ref:ae,children:[(0,_e.jsxs)("div",{className:"relative",children:[a&&(0,_e.jsx)("span",{className:r("mobase-text-input-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500",m===2&&" -top-2.5 text-sm"),children:a}),(0,_e.jsx)("input",{disabled:e,type:b,ref:H,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",m===2&&"h-12 text-base",n),onChange:po,onFocus:k,value:g,defaultValue:u,...L}),s&&W&&(0,_e.jsx)("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:he,children:(0,_e.jsx)(Wo.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),t&&(0,_e.jsxs)("div",{className:"mobase-text-input-message flex space-x-1 items-center mt-0.5",children:[o?(0,_e.jsx)(Wo.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,_e.jsx)(Wo.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,_e.jsx)("span",{className:r("text-gray-500 ",m===2?"text-sm":"text-xs"),children:t})]}),(0,_e.jsx)("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,7 +117,7 @@
117
117
  color: rgb(var(--mobase-red-500) / 1);
118
118
  }
119
119
  }
120
- `})]})});var di=require("@heroicons/react/24/outline");var pi=require("react");var Ct=require("react/jsx-runtime"),_r=(0,pi.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:m,disabled:c=!1,...d},p)=>{let[g,u]=(0,pi.useState)(i),b=()=>{let W=Math.min(g+a,t);u(W),n?.(W),m?.(W)},S=()=>{let W=Math.max(g-a,o);u(W),n?.(W),s?.(W)},V=W=>{let Z=parseFloat(W.target.value);if(!isNaN(Z)){let ae=Math.max(Math.min(Z,t),o);u(ae),n?.(ae)}};return(0,Ct.jsxs)("div",{ref:p,className:r("flex items-center ",e),children:[(0,Ct.jsxs)(ge,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:S,disabled:c||g<=o,children:[(0,Ct.jsx)(di.MinusCircleIcon,{className:"w-7 h-7 "}),(0,Ct.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,Ct.jsx)("input",{type:"number",value:g,onChange:V,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:c,...d}),(0,Ct.jsxs)(ge,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:b,disabled:c||g>=t,children:[(0,Ct.jsx)(di.PlusCircleIcon,{className:"w-7 h-7 "}),(0,Ct.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});_r.displayName="Stepper";var nt=v(require("react"),1),re=v(require("@radix-ui/react-navigation-menu"),1),pl=require("class-variance-authority"),fl=require("@heroicons/react/16/solid");var Be=require("react/jsx-runtime"),gl=nt.createContext(null),qd=({value:e,children:o})=>(0,Be.jsx)(gl.Provider,{value:e,children:o}),Xd=()=>{let e=nt.useContext(gl);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},ga=nt.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>(0,Be.jsx)(qd,{value:{alignDropdown:t},children:(0,Be.jsx)(re.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));ga.displayName=re.Root.displayName;var ua=nt.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(re.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));ua.displayName=re.List.displayName;var va=re.Item,xa=(0,pl.cva)(et({variant:"transparent",size:"sm"})),ha=nt.forwardRef(({className:e,children:o,...t},a)=>(0,Be.jsxs)(re.Trigger,{ref:a,className:r(xa(),"group px-2",e),...t,children:[o," ",(0,Be.jsx)(fl.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ha.displayName=re.Trigger.displayName;var ba=nt.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Xd();return(0,Be.jsx)(re.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})});ba.displayName=re.Content.displayName;var Go=re.Link,Yd=nt.forwardRef(({className:e,...o},t)=>(0,Be.jsx)("div",{className:r("absolute left-0 top-full flex justify-center"),children:(0,Be.jsx)(re.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})}));Yd.displayName=re.Viewport.displayName;var Zd=nt.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(re.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:(0,Be.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Zd.displayName=re.Indicator.displayName;var ul=v(require("react"),1),ya=v(require("@radix-ui/react-switch"),1);var Br=require("react/jsx-runtime"),Or=ul.forwardRef(({className:e,...o},t)=>(0,Br.jsx)(ya.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:(0,Br.jsx)(ya.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")})}));Or.displayName=ya.Root.displayName;var Co=v(require("react"),1),oo=v(require("@radix-ui/react-radio-group"),1),vl=require("lucide-react"),Vr=require("class-variance-authority");var $o=require("react/jsx-runtime"),Kd=(0,Vr.cva)("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"}}),Jd=(0,Vr.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),xl=Co.createContext({size:"medium"});function ep(){let e=Co.useContext(xl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Wr=Co.forwardRef(({className:e,size:o,...t},a)=>(0,$o.jsx)(xl.Provider,{value:{size:o},children:(0,$o.jsx)(oo.Root,{className:r("grid gap-2",e),...t,ref:a})}));Wr.displayName=oo.Root.displayName;var Gr=Co.forwardRef(({className:e,...o},t)=>{let a=ep(),{size:i}=a??{};return(0,$o.jsx)(oo.Item,{ref:t,className:r(Kd({size:i}),e),...o,children:(0,$o.jsx)(oo.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,$o.jsx)(vl.Circle,{className:r(Jd({size:i}))})})})});Gr.displayName=oo.Item.displayName;var Rl=require("react"),Tl=require("@heroicons/react/16/solid"),kl=v(require("html-react-parser"),1);var wa=require("react"),$r=v(require("next/router"),1),Tt=require("motion/react"),wl=require("react-use");var fi=[.24,.25,.05,1];var bl=require("motion/react");var Qt=require("react/jsx-runtime"),tp=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Qt.jsx)("li",{className:"min-h-8",children:(0,Qt.jsxs)("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&(0,Qt.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,Qt.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,Qt.jsxs)("div",{className:" ",children:[(0,Qt.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,Qt.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},hl=tp;var Rt=require("react/jsx-runtime"),op={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:fi}},exit:{opacity:0,transition:{duration:.05}}},ap=({data:e})=>(0,Rt.jsx)(pt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Rt.jsx)(bl.motion.div,{variants:op,children:o.hasDropdown?(0,Rt.jsxs)(ft,{value:o.id,children:[(0,Rt.jsx)(gt,{className:"py-3",children:o.title}),(0,Rt.jsx)(ut,{children:(0,Rt.jsx)("ul",{className:r("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,Rt.jsx)(hl,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,Rt.jsx)("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),yl=ap;var w=require("react/jsx-runtime"),ip=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,rp=({data:e,className:o})=>{let[t,a]=(0,wa.useState)(!1),[i,n]=(0,wa.useState)(!1);(0,wl.useKey)("Escape",()=>a(!1)),(0,wa.useEffect)(()=>{if(!t)return;let c=ip();function d(){a(!1)}function p(){a(!1),n(!0)}function g(u){let b=u.target;b.tagName==="A"&&b.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",$r.default.events.on("routeChangeComplete",d),window.addEventListener("hashchange",p),window.addEventListener("click",g),()=>{i||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:c||0,behavior:"instant"})),n(!1),$r.default.events.off("routeChangeComplete",d),window.removeEventListener("hashchange",p),window.removeEventListener("click",g)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},m={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:fi}},exit:{opacity:0,transition:{duration:.15}}};return(0,w.jsxs)("div",{className:r(o),children:[(0,w.jsxs)("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,w.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,w.jsx)(Tt.motion.div,{animate:t?"hidden":"visible",variants:s,children:(0,w.jsx)("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,w.jsx)(Tt.motion.div,{animate:t?"visible":"hidden",variants:s,children:(0,w.jsx)("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,w.jsx)(Tt.LazyMotion,{features:Tt.domAnimation,children:(0,w.jsx)(Tt.AnimatePresence,{mode:"wait",children:t&&(0,w.jsxs)(Tt.motion.nav,{variants:m,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[(0,w.jsx)(yl,{data:e}),(0,w.jsxs)("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[(0,w.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,w.jsxs)("div",{className:"flex flex-nowrap",children:[(0,w.jsx)("div",{className:"flex-initial",children:(0,w.jsx)("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:(0,w.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,w.jsx)("div",{className:"ml-3 flex-initial",children:(0,w.jsx)("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:(0,w.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,w.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,w.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,w.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,w.jsx)("a",{href:`tel:${Ht.Support.Hotline}`,className:"text-gray-600",children:Ht.Support.Hotline_Format})]}),(0,w.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,w.jsx)("a",{href:`mailto:${Ht.Support.Email}`,className:"text-gray-600",children:Ht.Support.Email})]})]}),(0,w.jsx)("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:(0,w.jsxs)("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:[(0,w.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,w.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,w.jsxs)("g",{children:[(0,w.jsx)("title",{children:"Asset 1"}),(0,w.jsx)("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
+ `})]})});var di=require("@heroicons/react/24/outline");var pi=require("react");var Ct=require("react/jsx-runtime"),_r=(0,pi.forwardRef)(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:i=0,onChangeValue:n,onDecrease:s,onIncrease:m,disabled:c=!1,...d},p)=>{let[g,u]=(0,pi.useState)(i),b=()=>{let W=Math.min(g+a,t);u(W),n?.(W),m?.(W)},L=()=>{let W=Math.max(g-a,o);u(W),n?.(W),s?.(W)},H=W=>{let Z=parseFloat(W.target.value);if(!isNaN(Z)){let ae=Math.max(Math.min(Z,t),o);u(ae),n?.(ae)}};return(0,Ct.jsxs)("div",{ref:p,className:r("flex items-center ",e),children:[(0,Ct.jsxs)(ge,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:L,disabled:c||g<=o,children:[(0,Ct.jsx)(di.MinusCircleIcon,{className:"w-7 h-7 "}),(0,Ct.jsx)("span",{className:"sr-only",children:"Decrease value"})]}),(0,Ct.jsx)("input",{type:"number",value:g,onChange:H,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:c,...d}),(0,Ct.jsxs)(ge,{className:r(" text-pink-500 cursor-pointer w-9 h-9",c&&"text-gray-400 cursor-default"),variant:"transparent",onClick:b,disabled:c||g>=t,children:[(0,Ct.jsx)(di.PlusCircleIcon,{className:"w-7 h-7 "}),(0,Ct.jsx)("span",{className:"sr-only",children:"Increase value"})]})]})});_r.displayName="Stepper";var nt=v(require("react"),1),re=v(require("@radix-ui/react-navigation-menu"),1),pl=require("class-variance-authority"),fl=require("@heroicons/react/16/solid");var Be=require("react/jsx-runtime"),gl=nt.createContext(null),qd=({value:e,children:o})=>(0,Be.jsx)(gl.Provider,{value:e,children:o}),Xd=()=>{let e=nt.useContext(gl);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},ga=nt.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},i)=>(0,Be.jsx)(qd,{value:{alignDropdown:t},children:(0,Be.jsx)(re.Root,{ref:i,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));ga.displayName=re.Root.displayName;var ua=nt.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(re.List,{ref:t,className:r("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));ua.displayName=re.List.displayName;var va=re.Item,xa=(0,pl.cva)(et({variant:"transparent",size:"sm"})),ha=nt.forwardRef(({className:e,children:o,...t},a)=>(0,Be.jsxs)(re.Trigger,{ref:a,className:r(xa(),"group px-2",e),...t,children:[o," ",(0,Be.jsx)(fl.ChevronDownIcon,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));ha.displayName=re.Trigger.displayName;var ba=nt.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=Xd();return(0,Be.jsx)(re.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})});ba.displayName=re.Content.displayName;var Go=re.Link,Yd=nt.forwardRef(({className:e,...o},t)=>(0,Be.jsx)("div",{className:r("absolute left-0 top-full flex justify-center"),children:(0,Be.jsx)(re.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})}));Yd.displayName=re.Viewport.displayName;var Zd=nt.forwardRef(({className:e,...o},t)=>(0,Be.jsx)(re.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:(0,Be.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Zd.displayName=re.Indicator.displayName;var ul=v(require("react"),1),ya=v(require("@radix-ui/react-switch"),1);var Br=require("react/jsx-runtime"),Or=ul.forwardRef(({className:e,...o},t)=>(0,Br.jsx)(ya.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:(0,Br.jsx)(ya.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")})}));Or.displayName=ya.Root.displayName;var Co=v(require("react"),1),oo=v(require("@radix-ui/react-radio-group"),1),vl=require("lucide-react"),Vr=require("class-variance-authority");var $o=require("react/jsx-runtime"),Kd=(0,Vr.cva)("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"}}),Jd=(0,Vr.cva)("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),xl=Co.createContext({size:"medium"});function ep(){let e=Co.useContext(xl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Wr=Co.forwardRef(({className:e,size:o,...t},a)=>(0,$o.jsx)(xl.Provider,{value:{size:o},children:(0,$o.jsx)(oo.Root,{className:r("grid gap-2",e),...t,ref:a})}));Wr.displayName=oo.Root.displayName;var Gr=Co.forwardRef(({className:e,...o},t)=>{let a=ep(),{size:i}=a??{};return(0,$o.jsx)(oo.Item,{ref:t,className:r(Kd({size:i}),e),...o,children:(0,$o.jsx)(oo.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:(0,$o.jsx)(vl.Circle,{className:r(Jd({size:i}))})})})});Gr.displayName=oo.Item.displayName;var Rl=require("react"),Tl=require("@heroicons/react/16/solid"),kl=v(require("html-react-parser"),1);var wa=require("react"),$r=v(require("next/router"),1),Tt=require("motion/react"),wl=require("react-use");var fi=[.24,.25,.05,1];var bl=require("motion/react");var Qt=require("react/jsx-runtime"),tp=({className:e="",icon:o="",title:t,children:a="",href:i="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Qt.jsx)("li",{className:"min-h-8",children:(0,Qt.jsxs)("a",{className:r(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:i,...s,children:[o&&(0,Qt.jsx)("div",{className:"w-6 h-6 shrink-0",children:(0,Qt.jsx)("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),(0,Qt.jsxs)("div",{className:" ",children:[(0,Qt.jsx)("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&(0,Qt.jsx)("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},hl=tp;var Rt=require("react/jsx-runtime"),op={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:fi}},exit:{opacity:0,transition:{duration:.05}}},ap=({data:e})=>(0,Rt.jsx)(pt,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return(0,Rt.jsx)(bl.motion.div,{variants:op,children:o.hasDropdown?(0,Rt.jsxs)(ft,{value:o.id,children:[(0,Rt.jsx)(gt,{className:"py-3",children:o.title}),(0,Rt.jsx)(ut,{children:(0,Rt.jsx)("ul",{className:r("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>(0,Rt.jsx)(hl,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):(0,Rt.jsx)("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),yl=ap;var w=require("react/jsx-runtime"),ip=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,rp=({data:e,className:o})=>{let[t,a]=(0,wa.useState)(!1),[i,n]=(0,wa.useState)(!1);(0,wl.useKey)("Escape",()=>a(!1)),(0,wa.useEffect)(()=>{if(!t)return;let c=ip();function d(){a(!1)}function p(){a(!1),n(!0)}function g(u){let b=u.target;b.tagName==="A"&&b.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",$r.default.events.on("routeChangeComplete",d),window.addEventListener("hashchange",p),window.addEventListener("click",g),()=>{i||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:c||0,behavior:"instant"})),n(!1),$r.default.events.off("routeChangeComplete",d),window.removeEventListener("hashchange",p),window.removeEventListener("click",g)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},m={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:fi}},exit:{opacity:0,transition:{duration:.15}}};return(0,w.jsxs)("div",{className:r(o),children:[(0,w.jsxs)("button",{type:"button",className:"mobase-header-hamburger flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[(0,w.jsx)("span",{className:"sr-only",children:"Navigation"}),(0,w.jsx)(Tt.motion.div,{animate:t?"hidden":"visible",variants:s,children:(0,w.jsx)("svg",{className:r("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),(0,w.jsx)(Tt.motion.div,{animate:t?"visible":"hidden",variants:s,children:(0,w.jsx)("svg",{className:r("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,w.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,w.jsx)(Tt.LazyMotion,{features:Tt.domAnimation,children:(0,w.jsx)(Tt.AnimatePresence,{mode:"wait",children:t&&(0,w.jsxs)(Tt.motion.nav,{variants:m,initial:"hidden",animate:"show",exit:"exit",className:r(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[(0,w.jsx)(yl,{data:e}),(0,w.jsxs)("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[(0,w.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),(0,w.jsxs)("div",{className:"flex flex-nowrap",children:[(0,w.jsx)("div",{className:"flex-initial",children:(0,w.jsx)("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:(0,w.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),(0,w.jsx)("div",{className:"ml-3 flex-initial",children:(0,w.jsx)("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:(0,w.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),(0,w.jsx)("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),(0,w.jsxs)("ul",{className:"mb-2 text-sm text-gray-500",children:[(0,w.jsxs)("li",{className:"mb-1",children:["Hotline :\xA0",(0,w.jsx)("a",{href:`tel:${Ht.Support.Hotline}`,className:"text-gray-600",children:Ht.Support.Hotline_Format})]}),(0,w.jsxs)("li",{className:"mb-1",children:["Email :\xA0",(0,w.jsx)("a",{href:`mailto:${Ht.Support.Email}`,className:"text-gray-600",children:Ht.Support.Email})]})]}),(0,w.jsx)("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:(0,w.jsxs)("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:[(0,w.jsx)("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:(0,w.jsx)("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:(0,w.jsxs)("g",{children:[(0,w.jsx)("title",{children:"Asset 1"}),(0,w.jsx)("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`}),(0,w.jsx)("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
@@ -129,14 +129,14 @@
129
129
  footer .button-download {
130
130
  max-width: 150px;
131
131
  }
132
- `})]})},Ml=lp;var jr=require("react/jsx-runtime"),Il=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,jr.jsx)("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,jr.jsx)(Ml,{primaryMenu:o,secondaryMenu:t})});var Ro=v(require("react"),1);var To=require("react/jsx-runtime"),Ur=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Ur.displayName="Card";var qr=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));qr.displayName="CardHeader";var Xr=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));Xr.displayName="CardTitle";var Yr=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Yr.displayName="CardDescription";var Zr=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("div",{ref:t,className:r("p-6 pt-0",e),...o}));Zr.displayName="CardContent";var Kr=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));Kr.displayName="CardFooter";var Xe=v(require("react"),1),Re=require("cmdk");var gi=require("@heroicons/react/16/solid"),we=require("react/jsx-runtime"),ui=Xe.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Re.Command,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ui.displayName=Re.Command.displayName;var Al=({children:e,...o})=>(0,we.jsx)($e,{...o,children:(0,we.jsx)(ze,{className:"overflow-hidden p-0 shadow-lg",children:(0,we.jsx)(ui,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Jr=Xe.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=Xe.useRef(null),[s,m]=Xe.useState(""),c=()=>{!s||s?.length<=0||(m(""),o?.(s))};return(0,we.jsxs)("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[(0,we.jsx)(gi.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,we.jsx)(Re.Command.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:m,...a}),(0,we.jsx)(gi.XCircleIcon,{onClick:c,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")})]})});Jr.displayName=Re.Command.Input.displayName;var en=Xe.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Re.Command.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));en.displayName=Re.Command.List.displayName;var tn=Xe.forwardRef((e,o)=>(0,we.jsx)(Re.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));tn.displayName=Re.Command.Empty.displayName;var on=Xe.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Re.Command.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}));on.displayName=Re.Command.Group.displayName;var an=Xe.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Re.Command.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));an.displayName=Re.Command.Separator.displayName;var rn=Xe.forwardRef(({className:e,children:o,...t},a)=>(0,we.jsx)(Re.Command.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}));rn.displayName=Re.Command.Item.displayName;var nn=({className:e,...o})=>(0,we.jsx)("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});nn.displayName="CommandShortcut";var Ll=require("@heroicons/react/16/solid");var ao=require("react/jsx-runtime"),El=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>(0,ao.jsxs)("div",{className:"relative",children:[(0,ao.jsxs)(_o,{className:r("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||i,(0,ao.jsx)(Ll.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&(0,ao.jsx)("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Hl=({children:e,className:o,...t})=>(0,ao.jsx)(bo,{className:r("border-none !p-0",o),...t,children:e}),zl=({open:e,onOpenChange:o,children:t,...a})=>(0,ao.jsx)(Fo,{open:e,onOpenChange:o,...a,children:t});var sn=require("class-variance-authority"),Fl=require("react");var _l=require("@heroicons/react/24/outline");var ko=require("react/jsx-runtime"),mp=(0,sn.cva)("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"}}),cp=(0,sn.cva)("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"}}),Qo=(0,Fl.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:m,...c},d)=>(0,ko.jsxs)("div",{ref:d,className:r("",i,mp({typeDiv:e,disabled:n})),...c,children:[(0,ko.jsxs)("div",{className:"flex items-center space-x-2",children:[m||(0,ko.jsx)(_l.InformationCircleIcon,{className:r(cp({typeIcon:e,disabled:n})),width:20,height:20}),o&&(0,ko.jsx)("div",{children:o})]}),t&&(0,ko.jsx)(ye,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));var io=require("react"),Bl=require("@heroicons/react/20/solid"),Ol=require("@heroicons/react/24/outline");var St=require("react/jsx-runtime"),Vl=(0,io.forwardRef)(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:m,defaultValue:c,type:d="text",...p},g)=>{let[u,b]=(0,io.useState)(!1),S=(0,io.useRef)(null),V=j=>{j&&!u&&b(!0),!j&&u&&b(!1)},W=j=>{V(j.target.value),i?.(j)},Z=j=>{V(j.target.value),n?.(j)},ae=()=>{let j=S.current?.querySelector("input");j&&(s?.(j.value),j.value="",j.focus(),b(!1))};return(0,io.useEffect)(()=>{V(c||m)},[m,c]),(0,St.jsxs)("div",{className:r(o),ref:S,children:[(0,St.jsxs)("div",{className:"relative flex items-center",children:[(0,St.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,St.jsx)(Bl.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,St.jsx)("input",{disabled:e,type:d,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:W,onFocus:Z,value:m,defaultValue:c,...p}),u&&(0,St.jsx)("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:ae,children:(0,St.jsx)(Ol.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,St.jsx)("style",{children:`
132
+ `})]})},Ml=lp;var jr=require("react/jsx-runtime"),Il=({className:e,primaryMenu:o,secondaryMenu:t})=>(0,jr.jsx)("footer",{className:r("grid grid-cols-1 flex-wrap bg-gray-900",e),children:(0,jr.jsx)(Ml,{primaryMenu:o,secondaryMenu:t})});var Ro=v(require("react"),1);var To=require("react/jsx-runtime"),Ur=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("div",{ref:t,className:r("rounded-xl border bg-card text-card-foreground shadow",e),...o}));Ur.displayName="Card";var qr=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("div",{ref:t,className:r("flex flex-col space-y-1.5 p-6",e),...o}));qr.displayName="CardHeader";var Xr=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("h3",{ref:t,className:r("font-semibold leading-none tracking-tight",e),...o}));Xr.displayName="CardTitle";var Yr=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("p",{ref:t,className:r("text-sm text-muted-foreground",e),...o}));Yr.displayName="CardDescription";var Zr=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("div",{ref:t,className:r("p-6 pt-0",e),...o}));Zr.displayName="CardContent";var Kr=Ro.forwardRef(({className:e,...o},t)=>(0,To.jsx)("div",{ref:t,className:r("flex items-center p-6 pt-0",e),...o}));Kr.displayName="CardFooter";var Xe=v(require("react"),1),Re=require("cmdk");var gi=require("@heroicons/react/16/solid"),we=require("react/jsx-runtime"),ui=Xe.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Re.Command,{ref:t,className:r("flex text-gray-900 border border-gray-300 shadow-lg bg-white h-full w-full flex-col overflow-hidden rounded-md",e),...o}));ui.displayName=Re.Command.displayName;var Al=({children:e,...o})=>(0,we.jsx)($e,{...o,children:(0,we.jsx)(ze,{className:"overflow-hidden p-0 shadow-lg",children:(0,we.jsx)(ui,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Jr=Xe.forwardRef(({className:e,onClickClear:o,classNameInput:t,...a},i)=>{let n=Xe.useRef(null),[s,m]=Xe.useState(""),c=()=>{!s||s?.length<=0||(m(""),o?.(s))};return(0,we.jsxs)("div",{ref:n,className:r("flex items-center border-b px-2",e),"cmdk-input-wrapper":"",children:[(0,we.jsx)(gi.MagnifyingGlassIcon,{className:"mr-2 h-4 w-4 shrink-0 text-gray-500"}),(0,we.jsx)(Re.Command.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:m,...a}),(0,we.jsx)(gi.XCircleIcon,{onClick:c,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")})]})});Jr.displayName=Re.Command.Input.displayName;var en=Xe.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Re.Command.List,{ref:t,className:r("max-h-[300px] text-gray-900 overflow-y-auto overflow-x-hidden",e),...o}));en.displayName=Re.Command.List.displayName;var tn=Xe.forwardRef((e,o)=>(0,we.jsx)(Re.Command.Empty,{ref:o,className:"py-6 text-gray-900 text-center text-sm",...e}));tn.displayName=Re.Command.Empty.displayName;var on=Xe.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Re.Command.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}));on.displayName=Re.Command.Group.displayName;var an=Xe.forwardRef(({className:e,...o},t)=>(0,we.jsx)(Re.Command.Separator,{ref:t,className:r("-mx-1 text-gray-900 h-px bg-border",e),...o}));an.displayName=Re.Command.Separator.displayName;var rn=Xe.forwardRef(({className:e,children:o,...t},a)=>(0,we.jsx)(Re.Command.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}));rn.displayName=Re.Command.Item.displayName;var nn=({className:e,...o})=>(0,we.jsx)("span",{className:r("ml-auto text-xs text-gray-900 tracking-widest text-muted-foreground",e),...o});nn.displayName="CommandShortcut";var Ll=require("@heroicons/react/16/solid");var ao=require("react/jsx-runtime"),El=({className:e,value:o,label:t,children:a,placeholder:i,size:n})=>(0,ao.jsxs)("div",{className:"relative",children:[(0,ao.jsxs)(_o,{className:r("select-mobase-button flex h-11 w-72 items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus:ring-0 focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",n===2&&"h-12 text-base",e),children:[o||a||i,(0,ao.jsx)(Ll.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-700"})]}),t&&(0,ao.jsx)("span",{className:"absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",children:t})]}),Hl=({children:e,className:o,...t})=>(0,ao.jsx)(bo,{className:r("border-none !p-0",o),...t,children:e}),zl=({open:e,onOpenChange:o,children:t,...a})=>(0,ao.jsx)(Fo,{open:e,onOpenChange:o,...a,children:t});var sn=require("class-variance-authority"),Fl=require("react");var _l=require("@heroicons/react/24/outline");var ko=require("react/jsx-runtime"),mp=(0,sn.cva)("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"}}),cp=(0,sn.cva)("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"}}),Qo=(0,Fl.forwardRef)(({type:e="neutral",message:o="",withAction:t=!1,onClickAction:a,className:i,disabled:n,actionClassName:s,icon:m,...c},d)=>(0,ko.jsxs)("div",{ref:d,className:r("",i,mp({typeDiv:e,disabled:n})),...c,children:[(0,ko.jsxs)("div",{className:"flex items-center space-x-2",children:[m||(0,ko.jsx)(_l.InformationCircleIcon,{className:r(cp({typeIcon:e,disabled:n})),width:20,height:20}),o&&(0,ko.jsx)("div",{children:o})]}),t&&(0,ko.jsx)(ye,{variant:"primary",onClick:()=>a?.(),className:r("",s),isDisabled:n,children:t})]}));var io=require("react"),Bl=require("@heroicons/react/20/solid"),Ol=require("@heroicons/react/24/outline");var St=require("react/jsx-runtime"),Vl=(0,io.forwardRef)(({disabled:e,className:o,inputClassName:t,size:a,onChange:i,onFocus:n,onClickClear:s,value:m,defaultValue:c,type:d="text",...p},g)=>{let[u,b]=(0,io.useState)(!1),L=(0,io.useRef)(null),H=j=>{j&&!u&&b(!0),!j&&u&&b(!1)},W=j=>{H(j.target.value),i?.(j)},Z=j=>{H(j.target.value),n?.(j)},ae=()=>{let j=L.current?.querySelector("input");j&&(s?.(j.value),j.value="",j.focus(),b(!1))};return(0,io.useEffect)(()=>{H(c||m)},[m,c]),(0,St.jsxs)("div",{className:r(o),ref:L,children:[(0,St.jsxs)("div",{className:"relative flex items-center",children:[(0,St.jsx)("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 shrink-0 text-gray-500 duration-200 ",children:(0,St.jsx)(Bl.MagnifyingGlassIcon,{className:"w-4 h-4 text-gray-500"})}),(0,St.jsx)("input",{disabled:e,type:d,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:W,onFocus:Z,value:m,defaultValue:c,...p}),u&&(0,St.jsx)("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:ae,children:(0,St.jsx)(Ol.XCircleIcon,{strokeWidth:2,width:20,height:20})})]}),(0,St.jsx)("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
- `})]})});var Oe=v(require("@radix-ui/react-dialog"),1),Ye=v(require("react"),1);var Wl=require("lucide-react"),Gl=v(require("lodash"),1);var $=require("react/jsx-runtime"),$l=Ye.default.createContext(void 0);function Ql(){let e=(0,Ye.useContext)($l);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var vi=({children:e,open:o,onOpenChange:t,className:a})=>(0,$.jsx)($l.Provider,{value:{open:o,onOpenChange:t},children:(0,$.jsx)(Oe.Root,{open:o,onOpenChange:t,children:(0,$.jsx)("div",{className:r("lightbox-gallery",a),children:e})})}),jl=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:m}=Ql(),c=()=>{n?.(),m&&m(!0)};return(0,$.jsxs)(Oe.Trigger,{className:r("",a),onClick:c,children:[e,(0,$.jsx)(U,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,$.jsx)("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},Ul=Ye.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=Ql(),n=()=>{i&&i(!1)};return(0,$.jsxs)(Oe.Portal,{children:[(0,$.jsx)(Oe.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,$.jsxs)(Oe.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,(0,$.jsxs)(Oe.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:[(0,$.jsx)(Wl.X,{className:"h-4 w-4 mt-0.5"}),(0,$.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Ul.displayName=Oe.Content.displayName;var xi=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=(0,Ye.useState)(""),[m,c]=(0,Ye.useState)(),[d,p]=(0,Ye.useState)(0);(0,Ye.useEffect)(()=>{m&&(p(m.selectedScrollSnap()+1),m.on("select",()=>{p(m.selectedScrollSnap()+1)}))},[m]);let g=u=>{let b=Gl.default.filter(e,(V,W)=>W===(u>0?u-1:u)),S=b.length>0?b[0]?.titleImage:"";s(S)};return(0,Ye.useEffect)(()=>{g(d)},[d]),(0,$.jsxs)(Ul,{className:"flex py-0",children:[(0,$.jsxs)("div",{className:" flex-1 relative",children:[(0,$.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[d||1," / ",e?.length]}),(0,$.jsxs)(Me,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[(0,$.jsx)(Ie,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,b)=>(0,$.jsx)(Ae,{className:"pl-6 md:pl-4",children:(0,$.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,$.jsx)("div",{className:"flex-1 relative",children:(0,$.jsx)("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,$.jsx)("div",{className:"flex-0",children:(0,$.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,$.jsx)("div",{className:"line-clamp-3",children:n})})})]})},b))}),(0,$.jsx)(xo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,$.jsx)(ho,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&(0,$.jsx)("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};var ro=v(require("react"),1),ql=require("@heroicons/react/16/solid"),Na=v(require("@radix-ui/react-checkbox"),1),no=v(require("@radix-ui/react-radio-group"),1),Xl=require("lucide-react");var Le=require("react/jsx-runtime"),Yl=ro.createContext({hideIndicator:!1});function dp(){let e=ro.useContext(Yl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Pa=ro.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,Le.jsx)(Yl.Provider,{value:{hideIndicator:o},children:(0,Le.jsx)(no.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Pa.displayName=no.Root.displayName;var Ca=ro.forwardRef(({className:e,children:o,...t},a)=>{let i=dp(),{hideIndicator:n}=i??{};return(0,Le.jsxs)(no.Item,{ref:a,className:r("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[(0,Le.jsx)("div",{className:"min-w-0 flex-1",children:o}),!n&&(0,Le.jsx)("div",{className:r("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:(0,Le.jsx)(no.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:(0,Le.jsx)(Xl.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Ca.displayName=no.Item.displayName;var ln=ro.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>(0,Le.jsxs)(Na.Root,{ref:i,className:r("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[(0,Le.jsx)("div",{className:"min-w-0 flex-1",children:o}),!t&&(0,Le.jsx)("div",{className:"ring-offset-background h-4 w-4 shrink-0 rounded border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-300 group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:(0,Le.jsx)(Na.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Le.jsx)(ql.CheckIcon,{className:"h-4 w-4"})})})]}));ln.displayName=Na.Root.displayName;var Zl=require("class-variance-authority");var Jl=require("react/jsx-runtime"),mn=(0,Zl.cva)("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 Kl({className:e,variant:o,...t}){return(0,Jl.jsx)("div",{className:r(mn({variant:o}),e),...t})}var em=v(require("react"),1),Ra=v(require("@radix-ui/react-progress"),1),dn=require("class-variance-authority");var cn=require("react/jsx-runtime"),pp=(0,dn.cva)("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"}}),fp=(0,dn.cva)("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"}}),pn=em.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>(0,cn.jsx)(Ra.Root,{ref:s,className:r("",fp({size:a}),e),...n,children:(0,cn.jsx)(Ra.Indicator,{className:r("",pp({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));pn.displayName=Ra.Root.displayName;var tm=require("react/jsx-runtime");function Ta({className:e,...o}){return(0,tm.jsx)("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}var Ve=require("react/jsx-runtime");function hi({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(0,Ve.jsx)("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return(0,Ve.jsxs)("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((m,c)=>(0,Ve.jsx)("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),(0,Ve.jsx)("style",{children:`
139
+ `})]})});var Oe=v(require("@radix-ui/react-dialog"),1),Ye=v(require("react"),1);var Wl=require("lucide-react"),Gl=v(require("lodash"),1);var $=require("react/jsx-runtime"),$l=Ye.default.createContext(void 0);function Ql(){let e=(0,Ye.useContext)($l);if(!e)throw new Error("useLightboxGalleryContext must be used within a LightboxGallery");return e}var vi=({children:e,open:o,onOpenChange:t,className:a})=>(0,$.jsx)($l.Provider,{value:{open:o,onOpenChange:t},children:(0,$.jsx)(Oe.Root,{open:o,onOpenChange:t,children:(0,$.jsx)("div",{className:r("lightbox-gallery",a),children:e})})}),jl=({children:e,src:o,alt:t,className:a,classNameImage:i,onClick:n,ratio:s=4/3})=>{let{onOpenChange:m}=Ql(),c=()=>{n?.(),m&&m(!0)};return(0,$.jsxs)(Oe.Trigger,{className:r("",a),onClick:c,children:[e,(0,$.jsx)(U,{ratio:s,className:"rounded-lg cursor-pointer",children:(0,$.jsx)("img",{src:o,alt:t,className:r("w-full h-full object-cover rounded-lg",i)})})]})},Ul=Ye.default.forwardRef(({className:e,children:o,...t},a)=>{let{onOpenChange:i}=Ql(),n=()=>{i&&i(!1)};return(0,$.jsxs)(Oe.Portal,{children:[(0,$.jsx)(Oe.Overlay,{className:"bg-black fixed inset-0 bg-black/80 z-50"}),(0,$.jsxs)(Oe.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,(0,$.jsxs)(Oe.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:[(0,$.jsx)(Wl.X,{className:"h-4 w-4 mt-0.5"}),(0,$.jsx)("div",{className:"",children:"\u0110\xF3ng c\u1EEDa s\u1ED5"})]})]})]})});Ul.displayName=Oe.Content.displayName;var xi=({images:e,activeSlideIndex:o=0,withSideBar:t,subHtmlSideBar:a,classNameSubHtmSideBar:i})=>{let[n,s]=(0,Ye.useState)(""),[m,c]=(0,Ye.useState)(),[d,p]=(0,Ye.useState)(0);(0,Ye.useEffect)(()=>{m&&(p(m.selectedScrollSnap()+1),m.on("select",()=>{p(m.selectedScrollSnap()+1)}))},[m]);let g=u=>{let b=Gl.default.filter(e,(H,W)=>W===(u>0?u-1:u)),L=b.length>0?b[0]?.titleImage:"";s(L)};return(0,Ye.useEffect)(()=>{g(d)},[d]),(0,$.jsxs)(Ul,{className:"flex py-0",children:[(0,$.jsxs)("div",{className:" flex-1 relative",children:[(0,$.jsxs)("div",{className:"flex items-center text-sm justify-center absolute top-8 md:top-10 w-full",children:[d||1," / ",e?.length]}),(0,$.jsxs)(Me,{opts:{startIndex:o},setApi:c,className:"w-full h-full relative",children:[(0,$.jsx)(Ie,{className:r("h-screen -ml-3 md:-ml-4",t?"sm:w-[calc(100vw-448px)] w-screen":"w-screen"),children:e.map((u,b)=>(0,$.jsx)(Ae,{className:"pl-6 md:pl-4",children:(0,$.jsxs)("div",{className:" w-full h-full relative pt-28 overflow-hidden flex flex-col",children:[(0,$.jsx)("div",{className:"flex-1 relative",children:(0,$.jsx)("img",{src:u.url,alt:"",className:"absolute h-full w-full object-contain"})}),(0,$.jsx)("div",{className:"flex-0",children:(0,$.jsx)("div",{className:"text-sm px-20 text-center text-white/80 my-4 flex items-center justify-center w-full",children:(0,$.jsx)("div",{className:"line-clamp-3",children:n})})})]})},b))}),(0,$.jsx)(xo,{className:"left-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"}),(0,$.jsx)(ho,{className:"right-10 top-[50%] w-10 h-10 sm:opacity-100 opacity-0"})]})]}),t&&(0,$.jsx)("div",{className:r("hidden md:block bg-white text-gray-900 p-6 w-full max-w-md",i),children:a})]})};var ro=v(require("react"),1),ql=require("@heroicons/react/16/solid"),Na=v(require("@radix-ui/react-checkbox"),1),no=v(require("@radix-ui/react-radio-group"),1),Xl=require("lucide-react");var Le=require("react/jsx-runtime"),Yl=ro.createContext({hideIndicator:!1});function dp(){let e=ro.useContext(Yl);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var Pa=ro.forwardRef(({className:e,hideIndicator:o=!1,...t},a)=>(0,Le.jsx)(Yl.Provider,{value:{hideIndicator:o},children:(0,Le.jsx)(no.Root,{className:r("grid gap-2",o&&"hide-indicator",e),...t,ref:a})}));Pa.displayName=no.Root.displayName;var Ca=ro.forwardRef(({className:e,children:o,...t},a)=>{let i=dp(),{hideIndicator:n}=i??{};return(0,Le.jsxs)(no.Item,{ref:a,className:r("group relative block flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...t,children:[(0,Le.jsx)("div",{className:"min-w-0 flex-1",children:o}),!n&&(0,Le.jsx)("div",{className:r("has aspect-square h-4 w-4 flex-none rounded-full border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-200 group-disabled:data-[state=checked]:bg-gray-100 group-disabled:data-[state=checked]:text-gray-300 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white"),children:(0,Le.jsx)(no.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full ",children:(0,Le.jsx)(Xl.Circle,{className:"h-1.5 w-1.5 fill-current text-current"})})})]})});Ca.displayName=no.Item.displayName;var ln=ro.forwardRef(({className:e,children:o,hideIndicator:t=!1,...a},i)=>(0,Le.jsxs)(Na.Root,{ref:i,className:r("group relative flex w-full cursor-pointer items-center space-x-2 rounded-md border border-gray-300 bg-white p-3 text-left text-gray-900 ring-inset ring-pink-500 hover:border-pink-500 disabled:pointer-events-none disabled:cursor-default disabled:border-gray-300 disabled:bg-gray-100 data-[state=checked]:border-pink-500 data-[state=checked]:ring-[1px] md:px-4 md:py-3",e),...a,children:[(0,Le.jsx)("div",{className:"min-w-0 flex-1",children:o}),!t&&(0,Le.jsx)("div",{className:"ring-offset-background h-4 w-4 shrink-0 rounded border-2 border-gray-300 group-disabled:cursor-default group-disabled:bg-gray-300 group-disabled:data-[state=checked]:bg-gray-400 group-disabled:data-[state=checked]:text-gray-100 group-data-[state=checked]:border-none group-data-[state=checked]:bg-pink-500 group-data-[state=checked]:text-white",children:(0,Le.jsx)(Na.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,Le.jsx)(ql.CheckIcon,{className:"h-4 w-4"})})})]}));ln.displayName=Na.Root.displayName;var Zl=require("class-variance-authority");var Jl=require("react/jsx-runtime"),mn=(0,Zl.cva)("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 Kl({className:e,variant:o,...t}){return(0,Jl.jsx)("div",{className:r(mn({variant:o}),e),...t})}var em=v(require("react"),1),Ra=v(require("@radix-ui/react-progress"),1),dn=require("class-variance-authority");var cn=require("react/jsx-runtime"),pp=(0,dn.cva)("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"}}),fp=(0,dn.cva)("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"}}),pn=em.forwardRef(({className:e,value:o,variant:t="progress",size:a="medium",disabled:i=!1,...n},s)=>(0,cn.jsx)(Ra.Root,{ref:s,className:r("",fp({size:a}),e),...n,children:(0,cn.jsx)(Ra.Indicator,{className:r("",pp({variant:t})),style:{transform:`translateX(-${100-(o||0)}%)`}})}));pn.displayName=Ra.Root.displayName;var tm=require("react/jsx-runtime");function Ta({className:e,...o}){return(0,tm.jsx)("div",{className:r("animate-pulse rounded-md bg-gray-200",e),...o})}var Ve=require("react/jsx-runtime");function hi({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(0,Ve.jsx)("div",{className:"flex justify-center items-center",role:"status",children:(()=>{switch(a){case"dots":return(0,Ve.jsxs)("div",{className:"spinner_dots inline-flex items-center ",children:[[...Array(3)].map((m,c)=>(0,Ve.jsx)("span",{className:r("size-2 rounded-full m-[1px] inline-block ",o,n[e],t)},c)),(0,Ve.jsx)("style",{children:`
140
140
  .spinner_dots span {
141
141
  animation-name: spinner-dots;
142
142
  animation-duration: 1.4s;
@@ -243,7 +243,7 @@
243
243
  opacity: 0.15;
244
244
  }
245
245
  }
246
- `})]})}})()})}var om=v(require("react"),1),Dt=v(require("@radix-ui/react-slider"),1);var lt=require("react/jsx-runtime"),fn=om.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>(0,lt.jsxs)(Dt.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,lt.jsx)(Dt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,lt.jsx)(Dt.Range,{className:"absolute h-full bg-pink-500"})}),(0,lt.jsx)(Dt.Thumb,{className:"group relative",children:(0,lt.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&(0,lt.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),(0,lt.jsx)(Dt.Thumb,{className:"group relative",children:(0,lt.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&(0,lt.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));fn.displayName=Dt.Root.displayName;var cm=require("react");var de=require("react/jsx-runtime"),gp=({author:e=""})=>(0,de.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),up=({author:e,avatar:o})=>(0,de.jsx)("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?(0,de.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,de.jsx)(gp,{author:e})});function vp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return(0,de.jsx)(de.Fragment,{children:(0,de.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,de.jsx)(up,{avatar:e,author:o}),(0,de.jsxs)("div",{className:"flex flex-col",children:[o&&(0,de.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,de.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,de.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,de.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,de.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,de.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&(0,de.jsx)("div",{className:"absolute right-1 top-0",children:(0,de.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var am=vp;var un=require("react");var im=require("@heroicons/react/20/solid"),jo=require("react/jsx-runtime"),xp={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!"},hp={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 bp({point:e,max:o,className:t}){let a=o>5?xp[e||10]:hp[e||5];return(0,jo.jsxs)("div",{className:r("flex items-center space-x-1",t),children:[(0,jo.jsx)(im.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,jo.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,jo.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var rm=bp;var nm=require("react"),gn=v(require("html-react-parser"),1);var yi=require("react/jsx-runtime"),bi=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,m]=(0,nm.useState)(!0),c=()=>{m(!s)},d=(p,g,u=" ")=>p.length<=g?p:p.substring(0,p.lastIndexOf(u,g));return(0,yi.jsxs)("div",{className:r(n),children:[s?(0,gn.default)(d(e,o)):(0,gn.default)(e),e.length>o&&(0,yi.jsx)("span",{onClick:c,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};var mt=require("react/jsx-runtime");function yp({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,m]=(0,un.useState)(0),[c,d]=(0,un.useState)(!1),p=g=>{d(!0),m(g)};return(0,mt.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&(0,mt.jsx)(rm,{className:"mb-0.5",point:i.point,max:i.max}),e&&(0,mt.jsx)(bi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,mt.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>(0,mt.jsx)("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&&(0,mt.jsxs)(vi,{open:c,onOpenChange:d,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((g,u)=>(0,mt.jsx)(U,{onClick:()=>p(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,mt.jsx)("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),(0,mt.jsx)(xi,{activeSlideIndex:s,images:o?.map((g,u)=>({url:g.url,titleImage:g.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var sm=yp;var mm=require("react/jsx-runtime");function wp({actions:e=[]}){return(0,mm.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var lm=wp;var So=require("react/jsx-runtime"),dm=(0,cm.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:m=[],statusMessage:c,isReply:d,children:p,commentSideBar:g,isOutStanding:u,limitContent:b=260},S)=>(0,So.jsxs)("div",{ref:S,className:r("",d?"ml-4 py-4":"py-5"),children:[(0,So.jsx)(am,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),(0,So.jsx)(sm,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:b}),m&&m?.filter(Boolean)?.length>0&&(0,So.jsx)(lm,{actions:m.filter(Boolean)}),p&&(0,So.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:p})]}));var so=v(require("react"),1),pm=require("class-variance-authority");var fm=require("@heroicons/react/16/solid"),gm=require("lucide-react"),pe=require("react/jsx-runtime"),Np=(0,pm.cva)("flex items-center shrink-0 justify-center rounded-full shrink-0",{variants:{state:{active:"bg-pink-500 text-white shadow-[0_0px_0px_3px_rgb(255,255,255),0_0px_0px_4px_rgb(var(--mobase-pink-500))]",disabled:"bg-gray-400 text-gray-200",default:"text-gray-500 bg-white shadow-[inset_0px_0px_0px_1px_rgb(var(--mobase-gray-300))]",completed:"bg-pink-300 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),um=so.createContext("default");function Pp(){let e=so.useContext(um);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Cp=so.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?(0,pe.jsx)(gm.XIcon,{className:s}):(0,pe.jsxs)("div",{children:[e==="iconStep"&&(0,pe.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,pe.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,pe.jsx)(fm.CheckIcon,{className:s}):(0,pe.jsx)("div",{children:t}))]})}),vm=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=so.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,pe.jsx)("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},xm=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:m,fristStep:c,icon:d,isError:p,onValueChangeStep:g,...u})=>{let b=Pp();return(0,pe.jsxs)("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[(0,pe.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,pe.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),(0,pe.jsx)("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Np({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",i),...u,children:(0,pe.jsx)(Cp,{type:b,icon:d,stepNumber:e,size:t,isError:p,state:o})}),(0,pe.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,pe.jsxs)("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&(0,pe.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,pe.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},hm=({children:e,className:o,type:t="numberStep",...a})=>(0,pe.jsx)(um.Provider,{value:t,children:(0,pe.jsx)("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});var Ee=v(require("react"),1),Nm=require("@radix-ui/react-slot"),Uo=require("react-hook-form");var bm=v(require("react"),1),vn=v(require("@radix-ui/react-label"),1),ym=require("class-variance-authority");var wm=require("react/jsx-runtime"),Rp=(0,ym.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),wi=bm.forwardRef(({className:e,...o},t)=>(0,wm.jsx)(vn.Root,{ref:t,className:r(Rp(),e),...o}));wi.displayName=vn.Root.displayName;var jt=require("react/jsx-runtime"),Pm=Uo.FormProvider,Cm=Ee.createContext({}),Rm=({...e})=>(0,jt.jsx)(Cm.Provider,{value:{name:e.name},children:(0,jt.jsx)(Uo.Controller,{...e})}),qo=()=>{let e=Ee.useContext(Cm),o=Ee.useContext(Tm),{getFieldState:t,formState:a}=(0,Uo.useFormContext)(),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}},Tm=Ee.createContext({}),xn=Ee.forwardRef(({className:e,...o},t)=>{let a=Ee.useId();return(0,jt.jsx)(Tm.Provider,{value:{id:a},children:(0,jt.jsx)("div",{ref:t,className:r("space-y-2",e),...o})})});xn.displayName="FormItem";var hn=Ee.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=qo();return(0,jt.jsx)(wi,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});hn.displayName="FormLabel";var bn=Ee.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=qo();return(0,jt.jsx)(Nm.Slot,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});bn.displayName="FormControl";var yn=Ee.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=qo();return(0,jt.jsx)("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});yn.displayName="FormDescription";var wn=Ee.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=qo(),s=i?String(i?.message):o;return s?(0,jt.jsx)("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});wn.displayName="FormMessage";var Ut=v(require("react"),1),T=v(require("@radix-ui/react-dropdown-menu"),1),Ni=require("lucide-react");var ne=require("react/jsx-runtime"),km=T.Root,Sm=T.Trigger,Dm=T.Group,Mm=T.Portal,Im=T.Sub,Am=T.RadioGroup,Nn=Ut.forwardRef(({className:e,inset:o,children:t,...a},i)=>(0,ne.jsxs)(T.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,(0,ne.jsx)(Ni.ChevronRight,{className:"ml-auto"})]}));Nn.displayName=T.SubTrigger.displayName;var Pn=Ut.forwardRef(({className:e,...o},t)=>(0,ne.jsx)(T.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}));Pn.displayName=T.SubContent.displayName;var Cn=Ut.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,ne.jsx)(T.Portal,{children:(0,ne.jsx)(T.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})}));Cn.displayName=T.Content.displayName;var Rn=Ut.forwardRef(({className:e,inset:o,...t},a)=>(0,ne.jsx)(T.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}));Rn.displayName=T.Item.displayName;var Tn=Ut.forwardRef(({className:e,children:o,checked:t,...a},i)=>(0,ne.jsxs)(T.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:[(0,ne.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,ne.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,ne.jsx)(T.ItemIndicator,{children:(0,ne.jsx)("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:(0,ne.jsx)(Ni.Check,{size:16,strokeWidth:3})})})]}),o]}));Tn.displayName=T.CheckboxItem.displayName;var kn=Ut.forwardRef(({className:e,children:o,...t},a)=>(0,ne.jsxs)(T.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:[(0,ne.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,ne.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,ne.jsx)(T.ItemIndicator,{children:(0,ne.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));kn.displayName=T.RadioItem.displayName;var Sn=Ut.forwardRef(({className:e,inset:o,...t},a)=>(0,ne.jsx)(T.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Sn.displayName=T.Label.displayName;var Dn=Ut.forwardRef(({className:e,...o},t)=>(0,ne.jsx)(T.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));Dn.displayName=T.Separator.displayName;var Mn=({className:e,...o})=>(0,ne.jsx)("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});Mn.displayName="DropdownMenuShortcut";var ka=v(require("html-react-parser"),1);var E=require("react/jsx-runtime"),Lm=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,E.jsxs)(E.Fragment,{children:[e&&(0,E.jsx)(N,{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&&(0,E.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>(0,E.jsx)("div",{className:"basis-full px-3.5 md:basis-1/3",children:(0,E.jsxs)("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[(0,E.jsx)("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),(0,E.jsxs)("div",{className:"mt-6 w-full",children:[(0,E.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ka.default)(a.title)}),a?.description&&(0,E.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ka.default)(a.description)})]})]})},i))}),t&&(0,E.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Tp=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,E.jsxs)(E.Fragment,{children:[e&&(0,E.jsx)(N,{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&&(0,E.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>(0,E.jsxs)("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[(0,E.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,E.jsx)("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&(0,E.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,E.jsx)(U,{ratio:1,children:(0,E.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,E.jsxs)("div",{className:"mt-6 w-full",children:[(0,E.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ka.default)(a.title)}),a?.description&&(0,E.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ka.default)(a.description)})]})]},i))}),t&&(0,E.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),kp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,E.jsx)(Lm,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,E.jsx)(Tp,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,E.jsx)(Lm,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Sp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,E.jsx)(E.Fragment,{children:kp({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Em=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>(0,E.jsx)(K,{className:t,idSection:a,background:o,children:(0,E.jsx)(Sp,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});var Hm=require("class-variance-authority"),In=v(require("html-react-parser"),1),An=require("lucide-react");var te=require("react/jsx-runtime"),Dp=(0,Hm.cva)("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-1 gap-y-3 ",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),Mp=({template:e,name:o,image:t,isFeatures:a})=>(0,te.jsx)(te.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,te.jsx)(te.Fragment,{children:(0,te.jsxs)("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?(0,te.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,te.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,te.jsx)("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:(0,te.jsx)(An.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,te.jsx)("div",{className:"ml-2 ",children:(0,In.default)(o)})]})});case 3:return(0,te.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,te.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,te.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,te.jsx)("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:(0,te.jsx)(An.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,te.jsx)("div",{className:"my-auto ml-2 md:my-0",children:(0,In.default)(o)})]});default:return null}})()}),Pi=({dataFeatures:e,template:o=1})=>(0,te.jsx)(te.Fragment,{children:(e?.length??0)>0&&(0,te.jsx)("ul",{className:r("",Dp({template:o})),children:e?.map((t,a)=>(0,te.jsx)(Mp,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var zm=require("lucide-react");var Q=require("react/jsx-runtime"),Fm=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,Ip=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>(0,Q.jsxs)(Io,{children:[(0,Q.jsx)(dt,{greaterThan:"sm",children:(0,Q.jsxs)(U,{className:r(""),ratio:Fm(o),children:[(0,Q.jsx)("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,Q.jsxs)($e,{children:[(0,Q.jsx)(Lo,{onClick:i,children:(0,Q.jsx)("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:(0,Q.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,Q.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Q.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,Q.jsx)("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"})]})})})}),(0,Q.jsx)(ze,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:(0,Q.jsxs)(tt,{className:"relative bg-transparent p-4 text-center",children:[(0,Q.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,Q.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),(0,Q.jsx)(La,{asChild:!0,children:(0,Q.jsx)(ge,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,Q.jsx)(zm.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,Q.jsx)(dt,{lessThan:"md",children:(0,Q.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,Q.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),Ci=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>(0,Q.jsx)("div",{className:a,children:n?(0,Q.jsx)(Ip,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,Q.jsx)(U,{ratio:Fm(t),children:(0,Q.jsx)("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});var _m=v(require("html-react-parser"),1);var ct=require("react/jsx-runtime"),Ap=({value:e,suffix:o,unit:t,description:a,idx:i})=>(0,ct.jsxs)("div",{className:r(""),children:[e&&(0,ct.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,ct.jsxs)("span",{children:[o," ",t]})]}),a&&(0,ct.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,_m.default)(a)})]}),Ri=({dataStats:e})=>(0,ct.jsx)(ct.Fragment,{children:(e?.length??0)>0&&(0,ct.jsx)("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>(0,ct.jsx)(Ap,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var B=require("react/jsx-runtime"),Ln=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,B.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,B.jsxs)("div",{className:"col-span-1 ",children:[(0,B.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),(0,B.jsx)(Pi,{dataFeatures:t,template:a}),o&&(0,B.jsx)(P,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,B.jsx)(Ri,{dataStats:i})]}),(0,B.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,B.jsx)(Ci,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Bm=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,B.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,B.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,B.jsx)(Ci,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,B.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,B.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),(0,B.jsx)(Pi,{dataFeatures:t,template:a}),o&&(0,B.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,B.jsx)(P,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,B.jsx)(Ri,{dataStats:i})]})]}),Om=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&(0,B.jsx)(P,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),(0,B.jsx)(Pi,{dataFeatures:t,template:a}),(0,B.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,B.jsx)(Ri,{dataStats:i})}),s||(0,B.jsx)(B.Fragment,{children:n?.src&&(0,B.jsx)(Ci,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var Mt=require("react/jsx-runtime"),Lp=`var(
246
+ `})]})}})()})}var om=v(require("react"),1),Dt=v(require("@radix-ui/react-slider"),1);var lt=require("react/jsx-runtime"),fn=om.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},i)=>(0,lt.jsxs)(Dt.Root,{ref:i,className:r("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,lt.jsx)(Dt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,lt.jsx)(Dt.Range,{className:"absolute h-full bg-pink-500"})}),(0,lt.jsx)(Dt.Thumb,{className:"group relative",children:(0,lt.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&(0,lt.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),(0,lt.jsx)(Dt.Thumb,{className:"group relative",children:(0,lt.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&(0,lt.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));fn.displayName=Dt.Root.displayName;var cm=require("react");var de=require("react/jsx-runtime"),gp=({author:e=""})=>(0,de.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),up=({author:e,avatar:o})=>(0,de.jsx)("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?(0,de.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,de.jsx)(gp,{author:e})});function vp({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:i}){return(0,de.jsx)(de.Fragment,{children:(0,de.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,de.jsx)(up,{avatar:e,author:o}),(0,de.jsxs)("div",{className:"flex flex-col",children:[o&&(0,de.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,de.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,de.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,de.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,de.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,de.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),i&&(0,de.jsx)("div",{className:"absolute right-1 top-0",children:(0,de.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var am=vp;var un=require("react");var im=require("@heroicons/react/20/solid"),jo=require("react/jsx-runtime"),xp={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!"},hp={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 bp({point:e,max:o,className:t}){let a=o>5?xp[e||10]:hp[e||5];return(0,jo.jsxs)("div",{className:r("flex items-center space-x-1",t),children:[(0,jo.jsx)(im.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,jo.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,jo.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var rm=bp;var nm=require("react"),gn=v(require("html-react-parser"),1);var yi=require("react/jsx-runtime"),bi=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:i="text-blue-500",className:n=""})=>{let[s,m]=(0,nm.useState)(!0),c=()=>{m(!s)},d=(p,g,u=" ")=>p.length<=g?p:p.substring(0,p.lastIndexOf(u,g));return(0,yi.jsxs)("div",{className:r(n),children:[s?(0,gn.default)(d(e,o)):(0,gn.default)(e),e.length>o&&(0,yi.jsx)("span",{onClick:c,className:r("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",i),children:s?t:a})]})};var mt=require("react/jsx-runtime");function yp({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:i={point:10,max:10},limitContent:n=260}){let[s,m]=(0,un.useState)(0),[c,d]=(0,un.useState)(!1),p=g=>{d(!0),m(g)};return(0,mt.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[i.point>0&&(0,mt.jsx)(rm,{className:"mb-0.5",point:i.point,max:i.max}),e&&(0,mt.jsx)(bi,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,mt.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>(0,mt.jsx)("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&&(0,mt.jsxs)(vi,{open:c,onOpenChange:d,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((g,u)=>(0,mt.jsx)(U,{onClick:()=>p(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,mt.jsx)("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),(0,mt.jsx)(xi,{activeSlideIndex:s,images:o?.map((g,u)=>({url:g.url,titleImage:g.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var sm=yp;var mm=require("react/jsx-runtime");function wp({actions:e=[]}){return(0,mm.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var lm=wp;var So=require("react/jsx-runtime"),dm=(0,cm.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:i,tags:n,thumbnails:s,actions:m=[],statusMessage:c,isReply:d,children:p,commentSideBar:g,isOutStanding:u,limitContent:b=260},L)=>(0,So.jsxs)("div",{ref:L,className:r("",d?"ml-4 py-4":"py-5"),children:[(0,So.jsx)(am,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),(0,So.jsx)(sm,{content:i,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:b}),m&&m?.filter(Boolean)?.length>0&&(0,So.jsx)(lm,{actions:m.filter(Boolean)}),p&&(0,So.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:p})]}));var so=v(require("react"),1),pm=require("class-variance-authority");var fm=require("@heroicons/react/16/solid"),gm=require("lucide-react"),pe=require("react/jsx-runtime"),Np=(0,pm.cva)("flex items-center shrink-0 justify-center rounded-full shrink-0",{variants:{state:{active:"bg-pink-500 text-white shadow-[0_0px_0px_3px_rgb(255,255,255),0_0px_0px_4px_rgb(var(--mobase-pink-500))]",disabled:"bg-gray-400 text-gray-200",default:"text-gray-500 bg-white shadow-[inset_0px_0px_0px_1px_rgb(var(--mobase-gray-300))]",completed:"bg-pink-300 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),um=so.createContext("default");function Pp(){let e=so.useContext(um);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var Cp=so.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?(0,pe.jsx)(gm.XIcon,{className:s}):(0,pe.jsxs)("div",{children:[e==="iconStep"&&(0,pe.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,pe.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,pe.jsx)(fm.CheckIcon,{className:s}):(0,pe.jsx)("div",{children:t}))]})}),vm=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let i=so.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,pe.jsx)("div",{onClick:i,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},xm=({step:e,state:o="default",size:t="default",placement:a="default",className:i,title:n,description:s,lastStep:m,fristStep:c,icon:d,isError:p,onValueChangeStep:g,...u})=>{let b=Pp();return(0,pe.jsxs)("div",{className:r("flex w-full flex-col items-center justify-center gap-1"),children:[(0,pe.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,pe.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),(0,pe.jsx)("div",{className:r("flex h-7 w-7 items-center justify-center rounded-full",Np({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",i),...u,children:(0,pe.jsx)(Cp,{type:b,icon:d,stepNumber:e,size:t,isError:p,state:o})}),(0,pe.jsx)("div",{className:r("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,pe.jsxs)("div",{className:r("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&(0,pe.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,pe.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},hm=({children:e,className:o,type:t="numberStep",...a})=>(0,pe.jsx)(um.Provider,{value:t,children:(0,pe.jsx)("div",{className:r("flex items-start justify-between w-full",o),...a,children:e})});var Ee=v(require("react"),1),Nm=require("@radix-ui/react-slot"),Uo=require("react-hook-form");var bm=v(require("react"),1),vn=v(require("@radix-ui/react-label"),1),ym=require("class-variance-authority");var wm=require("react/jsx-runtime"),Rp=(0,ym.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),wi=bm.forwardRef(({className:e,...o},t)=>(0,wm.jsx)(vn.Root,{ref:t,className:r(Rp(),e),...o}));wi.displayName=vn.Root.displayName;var jt=require("react/jsx-runtime"),Pm=Uo.FormProvider,Cm=Ee.createContext({}),Rm=({...e})=>(0,jt.jsx)(Cm.Provider,{value:{name:e.name},children:(0,jt.jsx)(Uo.Controller,{...e})}),qo=()=>{let e=Ee.useContext(Cm),o=Ee.useContext(Tm),{getFieldState:t,formState:a}=(0,Uo.useFormContext)(),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}},Tm=Ee.createContext({}),xn=Ee.forwardRef(({className:e,...o},t)=>{let a=Ee.useId();return(0,jt.jsx)(Tm.Provider,{value:{id:a},children:(0,jt.jsx)("div",{ref:t,className:r("space-y-2",e),...o})})});xn.displayName="FormItem";var hn=Ee.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:i}=qo();return(0,jt.jsx)(wi,{ref:t,className:r(a&&"text-red-500","text-gray-700 ",e),htmlFor:i,...o})});hn.displayName="FormLabel";var bn=Ee.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:i,formMessageId:n}=qo();return(0,jt.jsx)(Nm.Slot,{ref:o,id:a,"aria-describedby":t?`${i} ${n}`:`${i}`,"aria-invalid":!!t,...e})});bn.displayName="FormControl";var yn=Ee.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=qo();return(0,jt.jsx)("p",{ref:t,id:a,className:r("text-[0.8rem] text-gray-500",e),...o})});yn.displayName="FormDescription";var wn=Ee.forwardRef(({className:e,children:o,...t},a)=>{let{error:i,formMessageId:n}=qo(),s=i?String(i?.message):o;return s?(0,jt.jsx)("p",{ref:a,id:n,className:r("text-xs font-medium text-red-500",e),...t,children:s}):null});wn.displayName="FormMessage";var Ut=v(require("react"),1),T=v(require("@radix-ui/react-dropdown-menu"),1),Ni=require("lucide-react");var ne=require("react/jsx-runtime"),km=T.Root,Sm=T.Trigger,Dm=T.Group,Mm=T.Portal,Im=T.Sub,Am=T.RadioGroup,Nn=Ut.forwardRef(({className:e,inset:o,children:t,...a},i)=>(0,ne.jsxs)(T.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,(0,ne.jsx)(Ni.ChevronRight,{className:"ml-auto"})]}));Nn.displayName=T.SubTrigger.displayName;var Pn=Ut.forwardRef(({className:e,...o},t)=>(0,ne.jsx)(T.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}));Pn.displayName=T.SubContent.displayName;var Cn=Ut.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,ne.jsx)(T.Portal,{children:(0,ne.jsx)(T.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})}));Cn.displayName=T.Content.displayName;var Rn=Ut.forwardRef(({className:e,inset:o,...t},a)=>(0,ne.jsx)(T.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}));Rn.displayName=T.Item.displayName;var Tn=Ut.forwardRef(({className:e,children:o,checked:t,...a},i)=>(0,ne.jsxs)(T.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:[(0,ne.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,ne.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,ne.jsx)(T.ItemIndicator,{children:(0,ne.jsx)("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:(0,ne.jsx)(Ni.Check,{size:16,strokeWidth:3})})})]}),o]}));Tn.displayName=T.CheckboxItem.displayName;var kn=Ut.forwardRef(({className:e,children:o,...t},a)=>(0,ne.jsxs)(T.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:[(0,ne.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,ne.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,ne.jsx)(T.ItemIndicator,{children:(0,ne.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));kn.displayName=T.RadioItem.displayName;var Sn=Ut.forwardRef(({className:e,inset:o,...t},a)=>(0,ne.jsx)(T.Label,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));Sn.displayName=T.Label.displayName;var Dn=Ut.forwardRef(({className:e,...o},t)=>(0,ne.jsx)(T.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-gray-100",e),...o}));Dn.displayName=T.Separator.displayName;var Mn=({className:e,...o})=>(0,ne.jsx)("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...o});Mn.displayName="DropdownMenuShortcut";var ka=v(require("html-react-parser"),1);var E=require("react/jsx-runtime"),Lm=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,E.jsxs)(E.Fragment,{children:[e&&(0,E.jsx)(N,{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&&(0,E.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,i)=>(0,E.jsx)("div",{className:"basis-full px-3.5 md:basis-1/3",children:(0,E.jsxs)("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[(0,E.jsx)("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:i+1}),(0,E.jsxs)("div",{className:"mt-6 w-full",children:[(0,E.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ka.default)(a.title)}),a?.description&&(0,E.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ka.default)(a.description)})]})]})},i))}),t&&(0,E.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Tp=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,E.jsxs)(E.Fragment,{children:[e&&(0,E.jsx)(N,{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&&(0,E.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,i)=>(0,E.jsxs)("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[(0,E.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,E.jsx)("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:i+1}),a?.image&&(0,E.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,E.jsx)(U,{ratio:1,children:(0,E.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,E.jsxs)("div",{className:"mt-6 w-full",children:[(0,E.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ka.default)(a.title)}),a?.description&&(0,E.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ka.default)(a.description)})]})]},i))}),t&&(0,E.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),kp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,E.jsx)(Lm,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,E.jsx)(Tp,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,E.jsx)(Lm,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},Sp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,E.jsx)(E.Fragment,{children:kp({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Em=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataHowItWorks:n,dataButtons:s})=>(0,E.jsx)(K,{className:t,idSection:a,background:o,children:(0,E.jsx)(Sp,{template:e,dataHeading:i,dataHowItWorks:n,dataButtons:s})});var Hm=require("class-variance-authority"),In=v(require("html-react-parser"),1),An=require("lucide-react");var te=require("react/jsx-runtime"),Dp=(0,Hm.cva)("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-1 gap-y-3 ",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),Mp=({template:e,name:o,image:t,isFeatures:a})=>(0,te.jsx)(te.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,te.jsx)(te.Fragment,{children:(0,te.jsxs)("li",{className:r("flex space-x-4",!a&&"hidden"),children:[t?(0,te.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,te.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,te.jsx)("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:(0,te.jsx)(An.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,te.jsx)("div",{className:"ml-2 ",children:(0,In.default)(o)})]})});case 3:return(0,te.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,te.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,te.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,te.jsx)("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:(0,te.jsx)(An.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,te.jsx)("div",{className:"my-auto ml-2 md:my-0",children:(0,In.default)(o)})]});default:return null}})()}),Pi=({dataFeatures:e,template:o=1})=>(0,te.jsx)(te.Fragment,{children:(e?.length??0)>0&&(0,te.jsx)("ul",{className:r("",Dp({template:o})),children:e?.map((t,a)=>(0,te.jsx)(Mp,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var zm=require("lucide-react");var Q=require("react/jsx-runtime"),Fm=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,i)=>a/i):e,Ip=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:i=()=>{}})=>(0,Q.jsxs)(Io,{children:[(0,Q.jsx)(dt,{greaterThan:"sm",children:(0,Q.jsxs)(U,{className:r(""),ratio:Fm(o),children:[(0,Q.jsx)("img",{src:e,className:r("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,Q.jsxs)($e,{children:[(0,Q.jsx)(Lo,{onClick:i,children:(0,Q.jsx)("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:(0,Q.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,Q.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Q.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,Q.jsx)("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"})]})})})}),(0,Q.jsx)(ze,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:(0,Q.jsxs)(tt,{className:"relative bg-transparent p-4 text-center",children:[(0,Q.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,Q.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),(0,Q.jsx)(La,{asChild:!0,children:(0,Q.jsx)(ge,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,Q.jsx)(zm.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,Q.jsx)(dt,{lessThan:"md",children:(0,Q.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,Q.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),Ci=({type:e=1,src:o,ratio:t,className:a,classNameMedia:i,youtubeId:n,onClickFC:s=()=>{}})=>(0,Q.jsx)("div",{className:a,children:n?(0,Q.jsx)(Ip,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,Q.jsx)(U,{ratio:Fm(t),children:(0,Q.jsx)("img",{src:o,className:r("h-full w-full object-cover",i,o?"":"bg-gray-200"),alt:""})})});var _m=v(require("html-react-parser"),1);var ct=require("react/jsx-runtime"),Ap=({value:e,suffix:o,unit:t,description:a,idx:i})=>(0,ct.jsxs)("div",{className:r(""),children:[e&&(0,ct.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,ct.jsxs)("span",{children:[o," ",t]})]}),a&&(0,ct.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,_m.default)(a)})]}),Ri=({dataStats:e})=>(0,ct.jsx)(ct.Fragment,{children:(e?.length??0)>0&&(0,ct.jsx)("ul",{className:r("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>(0,ct.jsx)(Ap,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var O=require("react/jsx-runtime"),Ln=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,O.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,O.jsxs)("div",{className:"col-span-1 ",children:[(0,O.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),(0,O.jsx)(Pi,{dataFeatures:t,template:a}),o&&(0,O.jsx)(P,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,O.jsx)(Ri,{dataStats:i})]}),(0,O.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,O.jsx)(Ci,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Bm=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,O.jsxs)("div",{className:r("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,O.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,O.jsx)(Ci,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,O.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,O.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),(0,O.jsx)(Pi,{dataFeatures:t,template:a}),o&&(0,O.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,O.jsx)(P,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,O.jsx)(Ri,{dataStats:i})]})]}),Om=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:r("mb-0 md:mb-0",e?.className)}),o&&(0,O.jsx)(P,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),(0,O.jsx)(Pi,{dataFeatures:t,template:a}),(0,O.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,O.jsx)(Ri,{dataStats:i})}),s||(0,O.jsx)(O.Fragment,{children:n?.src&&(0,O.jsx)(Ci,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var Mt=require("react/jsx-runtime"),Lp=`var(
247
247
  --gradient-pink-1,
248
248
  linear-gradient(
249
249
  38deg,
@@ -265,15 +265,15 @@
265
265
  rgba(255, 255, 255, 0) 80%
266
266
  ),
267
267
  #fff
268
- )`,Ep=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,Mt.jsx)(Ln,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return(0,Mt.jsx)(Bm,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return(0,Mt.jsx)(Om,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return(0,Mt.jsx)(Ln,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},Hp=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,Mt.jsx)(Mt.Fragment,{children:Ep({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),Vm=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:m,background:c,advancedComponent:d=null})=>(0,Mt.jsx)(K,{className:r(m),background:c??Lp,idSection:o,children:(0,Mt.jsx)(Hp,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:d})});var H=require("react/jsx-runtime"),Wm=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return(0,H.jsxs)(H.Fragment,{children:[e&&(0,H.jsx)(N,{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&&(0,H.jsx)("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,m)=>(0,H.jsx)("div",{className:r("flex items-center justify-center md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:(0,H.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?(0,H.jsx)("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:(0,H.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):(0,H.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},m))}),t&&(0,H.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},zp=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>(0,H.jsxs)(H.Fragment,{children:[e&&(0,H.jsx)(N,{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&&(0,H.jsx)("div",{className:r("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((i,n)=>(0,H.jsx)("div",{className:r("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:i?.url?(0,H.jsx)("a",{href:i?.url,title:i?.name,target:i?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:(0,H.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,H.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):(0,H.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:(0,H.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,H.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&(0,H.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Fp=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return(0,H.jsx)(Wm,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return(0,H.jsx)(zp,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return(0,H.jsx)(Wm,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},_p=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>(0,H.jsx)(H.Fragment,{children:Fp({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),Gm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m="20px",isScrollSnap:c})=>(0,H.jsx)(K,{className:t,idSection:a,background:o,children:(0,H.jsx)(_p,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m,isScrollSnap:c})});var $m=require("react"),Qm=require("@heroicons/react/16/solid"),oe=v(require("html-react-parser"),1);var l=require("react/jsx-runtime"),It=({btnLink:e,btnName:o,newTab:t})=>(0,l.jsx)(ye,{variant:"primary",asChild:!0,children:(0,l.jsxs)("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",(0,l.jsx)(Qm.ChevronRightIcon,{className:"h-4 w-4"})]})}),En=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&(0,l.jsx)("div",{className:"mx-auto h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),jm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,l.jsx)("style",{children:`
268
+ )`,Ep=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>{switch(e){case 1:return(0,Mt.jsx)(Ln,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 2:return(0,Mt.jsx)(Bm,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});case 3:return(0,Mt.jsx)(Om,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s});default:return(0,Mt.jsx)(Ln,{dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,template:e,dataMedia:n,advancedComponent:s})}},Hp=({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})=>(0,Mt.jsx)(Mt.Fragment,{children:Ep({template:e,dataHeading:o,dataButtons:t,dataFeatures:a,dataStats:i,dataMedia:n,advancedComponent:s})}),Vm=({template:e=1,idSection:o,dataHeading:t,dataButtons:a,dataFeatures:i,dataStats:n,dataMedia:s,className:m,background:c,advancedComponent:d=null})=>(0,Mt.jsx)(K,{className:r(m),background:c??Lp,idSection:o,children:(0,Mt.jsx)(Hp,{dataButtons:a,template:e,dataHeading:t,dataFeatures:i,dataStats:n,dataMedia:s,advancedComponent:d})});var z=require("react/jsx-runtime"),Wm=({dataHeading:e,dataBrands:o,dataButtons:t,spaceX:a,isScrollSnap:i})=>{let n={"20px":"md:gap-x-5","28px":"md:gap-x-7","36px":"md:gap-x-9"};return(0,z.jsxs)(z.Fragment,{children:[e&&(0,z.jsx)(N,{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&&(0,z.jsx)("div",{className:r("list-brands flex flex-row gap-y-6 overflow-hidden overflow-x-auto py-2 md:flex-wrap md:justify-center",n[a||"20px"],i?"-mx-5 snap-x snap-mandatory flex-nowrap space-x-5 px-5 pb-3 md:space-x-0 md:px-0":"flex-wrap justify-center"),children:o?.map((s,m)=>(0,z.jsx)("div",{className:r("flex items-center justify-center md:basis-auto md:px-0",i?"shrink-0 basis-1/3 snap-center":"basis-1/2 px-2.5"),children:(0,z.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:s?.url?(0,z.jsx)("a",{href:s?.url,title:s?.name,target:s?.newTab?"_blank":"_self",className:"group",children:(0,z.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"transform object-contain transition group-hover:scale-105"})}):(0,z.jsx)("img",{src:s?.logo,loading:"lazy",alt:s?.name,className:"object-contain"})})},m))}),t&&(0,z.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},zp=({dataHeading:e,dataBrands:o,dataButtons:t,isScrollSnap:a})=>(0,z.jsxs)(z.Fragment,{children:[e&&(0,z.jsx)(N,{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&&(0,z.jsx)("div",{className:r("list-brands md:grid-cols-4 md:gap-x-7 md:gap-y-6",a?"-mx-5 flex snap-x snap-mandatory flex-nowrap space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:mx-0 md:grid md:space-x-0 md:px-0":"grid grid-cols-2 gap-x-4 gap-y-6"),children:o?.map((i,n)=>(0,z.jsx)("div",{className:r("flex items-center justify-center text-center",a?"shrink-0 basis-5/12 snap-center":""),children:i?.url?(0,z.jsx)("a",{href:i?.url,title:i?.name,target:i?.newTab?"_blank":"_self",className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3 duration-300 hover:border-pink-500",children:(0,z.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,z.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})}):(0,z.jsx)("div",{className:"flex h-full w-full items-center justify-center rounded-md border border-gray-200 p-3",children:(0,z.jsx)("div",{className:"flex w-auto max-w-36 items-center justify-center",children:(0,z.jsx)("img",{src:i?.logo,loading:"lazy",alt:i?.name,className:"object-contain"})})})},n))}),t&&(0,z.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Fp=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>{switch(e){case 1:return(0,z.jsx)(Wm,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n});case 2:return(0,z.jsx)(zp,{dataHeading:o,dataBrands:t,dataButtons:a,isScrollSnap:n});default:return(0,z.jsx)(Wm,{dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}},_p=({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})=>(0,z.jsx)(z.Fragment,{children:Fp({template:e,dataHeading:o,dataBrands:t,dataButtons:a,spaceX:i,isScrollSnap:n})}),Gm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m="20px",isScrollSnap:c})=>(0,z.jsx)(K,{className:t,idSection:a,background:o,children:(0,z.jsx)(_p,{template:e,dataHeading:i,dataBrands:n,dataButtons:s,spaceX:m,isScrollSnap:c})});var $m=require("react"),Qm=require("@heroicons/react/16/solid"),oe=v(require("html-react-parser"),1);var l=require("react/jsx-runtime"),It=({btnLink:e,btnName:o,newTab:t})=>(0,l.jsx)(ye,{variant:"primary",asChild:!0,children:(0,l.jsxs)("a",{href:e,target:t?"_blank":"_self",rel:"noreferrer",children:[o||"Xem chi ti\u1EBFt",(0,l.jsx)(Qm.ChevronRightIcon,{className:"h-4 w-4"})]})}),En=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col text-center",children:[a?.image&&(0,l.jsx)("div",{className:"mx-auto h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mx-auto mt-4 w-full max-w-xs flex-1 md:max-w-full",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),jm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features list-features-2 grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-4",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-md border border-gray-200 p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,l.jsx)("style",{children:`
269
269
  .list-features-2 .feature-item {
270
270
  background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
271
271
  }
272
- `})]}),Um=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 w-full flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),qm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[(0,l.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,l.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Xm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ym=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full",children:[a?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},m=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,c=n[a]??-1,d=(p,g)=>{let u=p?.btnLink?"a":"div",b=p?.btnLink?{href:p.btnLink,target:p?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:p?.btnName}:{};return(0,l.jsx)("div",{className:r("basis-1/2 px-2 lg:px-5",m,g===c&&"md:break-after-row",p?.btnLink&&"group cursor-pointer"),children:(0,l.jsxs)(u,{...b,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[p?.image&&(0,l.jsx)("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:(0,l.jsx)("img",{src:p?.image,alt:p?.name,className:"h-full w-full object-contain",loading:"lazy"})}),(0,l.jsxs)("div",{className:"w-full flex-1 text-center",children:[p?.name&&(0,l.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:(0,oe.default)(p.name)}),p?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,oe.default)(p.description)})]})]})},g)};return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((p,g)=>d(p,g))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Km=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[(0,l.jsxs)("div",{className:"flex w-full flex-1 flex-col p-5",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&(0,l.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Jm=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[(0,l.jsx)("div",{className:"flex items-center lg:col-span-6",children:(0,l.jsxs)("div",{className:"w-full",children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[i?.image&&(0,l.jsx)("div",{className:"h-10 w-10",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&(0,l.jsx)("div",{className:"flex items-center lg:col-span-4",children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:(0,l.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),ec=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,l.jsx)("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,l.jsxs)("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>(0,l.jsxs)("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[i?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-gray-500",children:(0,oe.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&(0,l.jsxs)("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[(0,l.jsx)("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),(0,l.jsx)("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:(0,l.jsx)("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&(0,l.jsx)(P,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),tc=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=(0,$m.useState)(0),s=Ha();return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:(0,l.jsx)(pt,{type:"single",collapsible:s,onValueChange:m=>{let c=parseInt(m);isNaN(c)||n(c)},defaultValue:i.toString(),children:o?.map((m,c)=>(0,l.jsxs)(ft,{value:c.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[(0,l.jsx)(gt,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:(0,oe.default)(m.name||"")}),(0,l.jsxs)(ut,{children:[m?.description&&(0,l.jsx)("div",{className:"text-muted-foreground mb-3",children:(0,oe.default)(m.description||"")}),m?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:m.btnLink,btnName:m?.btnName,newTab:m?.newTab})}),m?.image&&!a?.src&&(0,l.jsx)("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:(0,l.jsx)(U,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:m?.image,alt:m?.name,className:"h-full w-full object-contain"})})})]})]},c))})})}),(0,l.jsx)("div",{className:r(a?.src?"flex":"hidden md:flex"),children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?(0,l.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):(0,l.jsx)("div",{className:"hidden md:flex",children:o?.[i]?.image?(0,l.jsx)(U,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):(0,l.jsx)("div",{className:"h-0 w-0"})})})})]}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var xe=require("react/jsx-runtime"),Bp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return(0,xe.jsx)(En,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,xe.jsx)(jm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,xe.jsx)(Um,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,xe.jsx)(qm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,xe.jsx)(Xm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,xe.jsx)(Ym,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,xe.jsx)(Zm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,xe.jsx)(Km,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,xe.jsx)(Jm,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return(0,xe.jsx)(ec,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return(0,xe.jsx)(tc,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return(0,xe.jsx)(En,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Op=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>(0,xe.jsx)(xe.Fragment,{children:Bp({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),oc=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})=>(0,xe.jsx)(K,{className:t,idSection:a,background:o,children:(0,xe.jsx)(Op,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})});var rc=require("@heroicons/react/24/solid"),Ii=v(require("html-react-parser"),1),nc=v(require("lodash"),1);var Xo=require("react"),Do=require("motion/react"),ac=v(require("react-use-measure"),1);var ki=require("react/jsx-runtime");function Ti({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:m}){let[c,d]=(0,Xo.useState)(t),[p,{width:g,height:u}]=(0,ac.default)(),b=(0,Do.useMotionValue)(0),[S,V]=(0,Xo.useState)(!1),[W,Z]=(0,Xo.useState)(0);(0,Xo.useEffect)(()=>{let j,k=(i==="horizontal"?g:u)+o,he=n?-k/2:0,ie=n?0:-k/2,fo=Math.abs(ie-he)/c;if(S){let Jo=Math.abs(b.get()-ie)/c;j=(0,Do.animate)(b,[b.get(),ie],{ease:"linear",duration:Jo,onComplete:()=>{V(!1),Z(pd=>pd+1)}})}else j=(0,Do.animate)(b,[he,ie],{ease:"linear",duration:fo,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{b.set(he)}});return j?.stop},[W,b,c,g,u,o,S,i,n]);let ae=a?{onHoverStart:()=>{V(!0),d(a)},onHoverEnd:()=>{V(!0),d(t)},onTouchStart:()=>{V(!0),d(a)},onTouchEnd:()=>{V(!0),d(t)}}:{};return(0,ki.jsx)("div",{className:r("overflow-hidden",s),children:(0,ki.jsxs)(Do.motion.div,{className:r("flex w-max",m),style:{...i==="horizontal"?{x:b,paddingLeft:o}:{y:b},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:p,...ae,children:[e,e]})})}var Si=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Di=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},Mi=(e,o)=>o[e%o.length];var F=require("react/jsx-runtime"),Vp=({avatar:e="",name:o="",index:t=0})=>{if(nc.default.isEmpty(e)){let a=Di({name:o})??"",i=Mi(t,Si);return(0,F.jsx)("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",i),children:a})}return(0,F.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,F.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},ic=({testimonial:e,className:o,index:t})=>(0,F.jsx)("div",{className:r("testimonial-item",o),children:(0,F.jsxs)("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[(0,F.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,F.jsx)(Vp,{avatar:e.avatar,name:e.name,index:t}),(0,F.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,F.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,F.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Ii.default)(e.position)})]})]}),(0,F.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,F.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Ii.default)(e.shortTitle)}),e?.description&&(0,F.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,Ii.default)(e.description)})]}),(0,F.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&(0,F.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,F.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,F.jsx)(rc.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),Hn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return(0,F.jsxs)(F.Fragment,{children:[e&&(0,F.jsx)(N,{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&&(0,F.jsx)(F.Fragment,{children:i?(0,F.jsx)("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:(0,F.jsx)(Ti,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,F.jsx)(ic,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,F.jsx)("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>(0,F.jsx)(ic,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,F.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var zn=require("@heroicons/react/24/solid"),Ai=v(require("html-react-parser"),1);var R=require("react/jsx-runtime"),Wp=({className:e})=>(0,R.jsx)("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,R.jsx)("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),Gp=({testimonial:e,className:o})=>(0,R.jsx)("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:(0,R.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,R.jsx)("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:(0,R.jsx)(U,{ratio:2/3,className:"w-full",children:(0,R.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),(0,R.jsxs)("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[(0,R.jsxs)("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[(0,R.jsxs)("div",{className:"grow",children:[e?.name&&(0,R.jsx)("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&(0,R.jsx)("div",{className:"mt-1 text-xs font-normal text-gray-500",children:(0,Ai.default)(e.position)})]}),(e?.date||Number(e?.rating)>0)&&(0,R.jsxs)("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&(0,R.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,R.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,R.jsx)(zn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&(0,R.jsx)("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:(0,R.jsx)(U,{ratio:2/3,className:"w-full",children:(0,R.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),(0,R.jsxs)("div",{className:"flex flex-1 flex-col md:flex-none",children:[(0,R.jsxs)("div",{className:"flex-1",children:[(0,R.jsxs)("div",{className:"mb-1.5 flex flex-none space-x-3",children:[(0,R.jsx)(Wp,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&(0,R.jsx)("div",{className:"flex-none text-base font-medium md:text-lg",children:(0,Ai.default)(e.shortTitle)})]}),e?.description&&(0,R.jsx)("blockquote",{className:"relative flex-1 text-justify text-base",children:(0,Ai.default)(e.description)})]}),(e?.date||Number(e?.rating)>0)&&(0,R.jsxs)("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&(0,R.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,R.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,R.jsx)(zn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),sc=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>(0,R.jsxs)(R.Fragment,{children:[e&&(0,R.jsx)(N,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&(0,R.jsxs)(Me,{className:"w-full",children:[(0,R.jsx)(Ie,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>(0,R.jsx)(Ae,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:(0,R.jsx)(Gp,{testimonial:a})},i))}),(o??[]).length>1&&(0,R.jsx)(ra,{className:"mt-8"})]}),t&&(0,R.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var mc=require("@heroicons/react/24/solid"),Li=v(require("html-react-parser"),1),cc=v(require("lodash"),1);var A=require("react/jsx-runtime"),$p=({avatar:e="",name:o="",index:t=0})=>{if(cc.default.isEmpty(e)){let a=Di({name:o})??"",i=Mi(t,Si);return(0,A.jsx)("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return(0,A.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,A.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},lc=({testimonial:e,className:o,index:t})=>(0,A.jsx)("div",{className:r("testimonial-item",o),children:(0,A.jsxs)("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[(0,A.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,A.jsx)($p,{avatar:e.avatar,name:e.name,index:t}),(0,A.jsxs)("div",{className:"flex-1 pl-1",children:[(0,A.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,A.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Li.default)(e.position)})]})]}),(0,A.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,A.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Li.default)(e.shortTitle)}),e?.description&&(0,A.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,Li.default)(e.description)})]}),(0,A.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&(0,A.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,A.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,A.jsx)(mc.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),dc=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=m=>(0,A.jsx)(A.Fragment,{children:m.map((c,d)=>(0,A.jsx)(Ti,{direction:"vertical",reverse:c.reverse,speed:c.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((p,g)=>(0,A.jsx)(lc,{testimonial:p,index:g,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${d}-${g}`))},`slider-${d}`))});return(0,A.jsxs)(A.Fragment,{children:[e&&(0,A.jsx)(N,{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&&(0,A.jsx)(Io,{children:i?(0,A.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,A.jsx)(dt,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,A.jsx)(dt,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,A.jsx)(dt,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):(0,A.jsx)("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((m,c)=>(0,A.jsx)(lc,{testimonial:m,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,A.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,A.jsx)("style",{children:`
272
+ `})]}),Um=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 w-full flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),qm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[(0,l.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,l.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Xm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ym=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full",children:[a?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},m=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,c=n[a]??-1,d=(p,g)=>{let u=p?.btnLink?"a":"div",b=p?.btnLink?{href:p.btnLink,target:p?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:p?.btnName}:{};return(0,l.jsx)("div",{className:r("basis-1/2 px-2 lg:px-5",m,g===c&&"md:break-after-row",p?.btnLink&&"group cursor-pointer"),children:(0,l.jsxs)(u,{...b,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[p?.image&&(0,l.jsx)("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:(0,l.jsx)("img",{src:p?.image,alt:p?.name,className:"h-full w-full object-contain",loading:"lazy"})}),(0,l.jsxs)("div",{className:"w-full flex-1 text-center",children:[p?.name&&(0,l.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:(0,oe.default)(p.name)}),p?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,oe.default)(p.description)})]})]})},g)};return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((p,g)=>d(p,g))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Km=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[(0,l.jsxs)("div",{className:"flex w-full flex-1 flex-col p-5",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&(0,l.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Jm=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[(0,l.jsx)("div",{className:"flex items-center lg:col-span-6",children:(0,l.jsxs)("div",{className:"w-full",children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[i?.image&&(0,l.jsx)("div",{className:"h-10 w-10",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&(0,l.jsx)("div",{className:"flex items-center lg:col-span-4",children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:(0,l.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),ec=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,l.jsx)("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,l.jsxs)("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>(0,l.jsxs)("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[i?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-gray-500",children:(0,oe.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&(0,l.jsxs)("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[(0,l.jsx)("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),(0,l.jsx)("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:(0,l.jsx)("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&(0,l.jsx)(P,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),tc=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=(0,$m.useState)(0),s=Ha();return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{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&&(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:(0,l.jsx)(pt,{type:"single",collapsible:s,onValueChange:m=>{let c=parseInt(m);isNaN(c)||n(c)},defaultValue:i.toString(),children:o?.map((m,c)=>(0,l.jsxs)(ft,{value:c.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[(0,l.jsx)(gt,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:(0,oe.default)(m.name||"")}),(0,l.jsxs)(ut,{children:[m?.description&&(0,l.jsx)("div",{className:"text-muted-foreground mb-3",children:(0,oe.default)(m.description||"")}),m?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:m.btnLink,btnName:m?.btnName,newTab:m?.newTab})}),m?.image&&!a?.src&&(0,l.jsx)("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:(0,l.jsx)(U,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:m?.image,alt:m?.name,className:"h-full w-full object-contain"})})})]})]},c))})})}),(0,l.jsx)("div",{className:r(a?.src?"flex":"hidden md:flex"),children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?(0,l.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):(0,l.jsx)("div",{className:"hidden md:flex",children:o?.[i]?.image?(0,l.jsx)(U,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):(0,l.jsx)("div",{className:"h-0 w-0"})})})})]}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var xe=require("react/jsx-runtime"),Bp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return(0,xe.jsx)(En,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,xe.jsx)(jm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,xe.jsx)(Um,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,xe.jsx)(qm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,xe.jsx)(Xm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,xe.jsx)(Ym,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,xe.jsx)(Zm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,xe.jsx)(Km,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,xe.jsx)(Jm,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return(0,xe.jsx)(ec,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return(0,xe.jsx)(tc,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return(0,xe.jsx)(En,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Op=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>(0,xe.jsx)(xe.Fragment,{children:Bp({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),oc=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})=>(0,xe.jsx)(K,{className:t,idSection:a,background:o,children:(0,xe.jsx)(Op,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})});var rc=require("@heroicons/react/24/solid"),Ii=v(require("html-react-parser"),1),nc=v(require("lodash"),1);var Xo=require("react"),Do=require("motion/react"),ac=v(require("react-use-measure"),1);var ki=require("react/jsx-runtime");function Ti({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:m}){let[c,d]=(0,Xo.useState)(t),[p,{width:g,height:u}]=(0,ac.default)(),b=(0,Do.useMotionValue)(0),[L,H]=(0,Xo.useState)(!1),[W,Z]=(0,Xo.useState)(0);(0,Xo.useEffect)(()=>{let j,k=(i==="horizontal"?g:u)+o,he=n?-k/2:0,ie=n?0:-k/2,fo=Math.abs(ie-he)/c;if(L){let Jo=Math.abs(b.get()-ie)/c;j=(0,Do.animate)(b,[b.get(),ie],{ease:"linear",duration:Jo,onComplete:()=>{H(!1),Z(pd=>pd+1)}})}else j=(0,Do.animate)(b,[he,ie],{ease:"linear",duration:fo,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{b.set(he)}});return j?.stop},[W,b,c,g,u,o,L,i,n]);let ae=a?{onHoverStart:()=>{H(!0),d(a)},onHoverEnd:()=>{H(!0),d(t)},onTouchStart:()=>{H(!0),d(a)},onTouchEnd:()=>{H(!0),d(t)}}:{};return(0,ki.jsx)("div",{className:r("overflow-hidden",s),children:(0,ki.jsxs)(Do.motion.div,{className:r("flex w-max",m),style:{...i==="horizontal"?{x:b,paddingLeft:o}:{y:b},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:p,...ae,children:[e,e]})})}var Si=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Di=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},Mi=(e,o)=>o[e%o.length];var _=require("react/jsx-runtime"),Vp=({avatar:e="",name:o="",index:t=0})=>{if(nc.default.isEmpty(e)){let a=Di({name:o})??"",i=Mi(t,Si);return(0,_.jsx)("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",i),children:a})}return(0,_.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,_.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},ic=({testimonial:e,className:o,index:t})=>(0,_.jsx)("div",{className:r("testimonial-item",o),children:(0,_.jsxs)("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[(0,_.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,_.jsx)(Vp,{avatar:e.avatar,name:e.name,index:t}),(0,_.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,_.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,_.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Ii.default)(e.position)})]})]}),(0,_.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,_.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Ii.default)(e.shortTitle)}),e?.description&&(0,_.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,Ii.default)(e.description)})]}),(0,_.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&(0,_.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,_.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,_.jsx)(rc.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),Hn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return(0,_.jsxs)(_.Fragment,{children:[e&&(0,_.jsx)(N,{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&&(0,_.jsx)(_.Fragment,{children:i?(0,_.jsx)("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:(0,_.jsx)(Ti,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,_.jsx)(ic,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,_.jsx)("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>(0,_.jsx)(ic,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,_.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var zn=require("@heroicons/react/24/solid"),Ai=v(require("html-react-parser"),1);var R=require("react/jsx-runtime"),Wp=({className:e})=>(0,R.jsx)("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,R.jsx)("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),Gp=({testimonial:e,className:o})=>(0,R.jsx)("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:(0,R.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,R.jsx)("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:(0,R.jsx)(U,{ratio:2/3,className:"w-full",children:(0,R.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),(0,R.jsxs)("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[(0,R.jsxs)("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[(0,R.jsxs)("div",{className:"grow",children:[e?.name&&(0,R.jsx)("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&(0,R.jsx)("div",{className:"mt-1 text-xs font-normal text-gray-500",children:(0,Ai.default)(e.position)})]}),(e?.date||Number(e?.rating)>0)&&(0,R.jsxs)("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&(0,R.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,R.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,R.jsx)(zn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&(0,R.jsx)("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:(0,R.jsx)(U,{ratio:2/3,className:"w-full",children:(0,R.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),(0,R.jsxs)("div",{className:"flex flex-1 flex-col md:flex-none",children:[(0,R.jsxs)("div",{className:"flex-1",children:[(0,R.jsxs)("div",{className:"mb-1.5 flex flex-none space-x-3",children:[(0,R.jsx)(Wp,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&(0,R.jsx)("div",{className:"flex-none text-base font-medium md:text-lg",children:(0,Ai.default)(e.shortTitle)})]}),e?.description&&(0,R.jsx)("blockquote",{className:"relative flex-1 text-justify text-base",children:(0,Ai.default)(e.description)})]}),(e?.date||Number(e?.rating)>0)&&(0,R.jsxs)("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&(0,R.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,R.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,R.jsx)(zn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),sc=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>(0,R.jsxs)(R.Fragment,{children:[e&&(0,R.jsx)(N,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&(0,R.jsxs)(Me,{className:"w-full",children:[(0,R.jsx)(Ie,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>(0,R.jsx)(Ae,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:(0,R.jsx)(Gp,{testimonial:a})},i))}),(o??[]).length>1&&(0,R.jsx)(ra,{className:"mt-8"})]}),t&&(0,R.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var mc=require("@heroicons/react/24/solid"),Li=v(require("html-react-parser"),1),cc=v(require("lodash"),1);var I=require("react/jsx-runtime"),$p=({avatar:e="",name:o="",index:t=0})=>{if(cc.default.isEmpty(e)){let a=Di({name:o})??"",i=Mi(t,Si);return(0,I.jsx)("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return(0,I.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,I.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},lc=({testimonial:e,className:o,index:t})=>(0,I.jsx)("div",{className:r("testimonial-item",o),children:(0,I.jsxs)("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[(0,I.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,I.jsx)($p,{avatar:e.avatar,name:e.name,index:t}),(0,I.jsxs)("div",{className:"flex-1 pl-1",children:[(0,I.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,I.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Li.default)(e.position)})]})]}),(0,I.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,I.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Li.default)(e.shortTitle)}),e?.description&&(0,I.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,Li.default)(e.description)})]}),(0,I.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&(0,I.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,I.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,I.jsx)(mc.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),dc=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=m=>(0,I.jsx)(I.Fragment,{children:m.map((c,d)=>(0,I.jsx)(Ti,{direction:"vertical",reverse:c.reverse,speed:c.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((p,g)=>(0,I.jsx)(lc,{testimonial:p,index:g,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${d}-${g}`))},`slider-${d}`))});return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(N,{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&&(0,I.jsx)(Io,{children:i?(0,I.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,I.jsx)(dt,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,I.jsx)(dt,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,I.jsx)(dt,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):(0,I.jsx)("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((m,c)=>(0,I.jsx)(lc,{testimonial:m,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,I.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,I.jsx)("style",{children:`
273
273
  .mark-vertical-marquee {
274
274
  mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
275
275
  }
276
- `})]})};var At=require("react/jsx-runtime"),Qp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,At.jsx)(Hn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,At.jsx)(dc,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,At.jsx)(sc,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,At.jsx)(Hn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},jp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,At.jsx)(At.Fragment,{children:Qp({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),pc=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>(0,At.jsx)(K,{className:r(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:(0,At.jsx)(jp,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});var Fn=v(require("html-react-parser"),1);var O=require("react/jsx-runtime"),_n=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>(0,O.jsx)(pt,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>(0,O.jsxs)(ft,{value:n.title,className:"last:border-none",children:[(0,O.jsx)(gt,{className:"md:text-lg",children:n.title}),(0,O.jsx)(ut,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,Fn.default)(n.description)})]},s))});return(0,O.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,O.jsx)("div",{className:"relative",children:(0,O.jsxs)("div",{className:"md:sticky md:top-14",children:[o&&(0,O.jsx)(N,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&(0,O.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&(0,O.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,O.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},fc=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},m=c=>(0,O.jsx)(pt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((d,p)=>(0,O.jsxs)(ft,{value:d.title,className:"last:border-none",children:[(0,O.jsx)(gt,{className:"md:text-lg",children:d.title}),(0,O.jsx)(ut,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,Fn.default)(d.description)})]},p))});return(0,O.jsxs)(O.Fragment,{children:[o&&(0,O.jsx)(N,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&(0,O.jsxs)(wt,{defaultValue:e[0]?.title,children:[e?.length>1&&(0,O.jsxs)(xt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[(0,O.jsx)(ht,{className:"mb-3 text-center",children:(0,O.jsx)(at,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,d)=>(0,O.jsx)(it,{value:c.title,children:c.title},c.title+d))})}),(0,O.jsx)(bt,{}),(0,O.jsx)(yt,{})]}),e.map((c,d)=>(0,O.jsx)(rt,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:m(c)},c.title+d))]}),t&&(0,O.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};var qt=require("react/jsx-runtime"),Up=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return(0,qt.jsx)(_n,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return(0,qt.jsx)(fc,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return(0,qt.jsx)(_n,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},qp=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>(0,qt.jsx)(qt.Fragment,{children:Up({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),gc=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:m=1})=>(0,qt.jsx)(K,{className:t,idSection:i,background:a,children:(0,qt.jsx)(qp,{dataHeading:e,dataFAQ:o,template:m,dataHorizontalScroll:s,dataButtons:n})});var Ei=v(require("react"),1),uc=require("@heroicons/react/20/solid"),vc=v(require("html-react-parser"),1);var L=require("react/jsx-runtime"),Xp=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,L.jsxs)("picture",{children:[(0,L.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,L.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,L.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,L.jsx)("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),(0,L.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ye,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&(0,L.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,L.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Bn=(0,Ei.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,g,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(g):window.open(u,"_blank")},d=(p,g)=>(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",p?.newsList?.length<4?"md:justify-center":""),children:p?.newsList?.map((u,b)=>(0,L.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,L.jsx)("div",{onClick:S=>c(S,u?.id,u?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",p?.classNameItem),children:(0,L.jsx)(Xp,{news:u})},u?.id)},b))}),p?.isShowBtn&&(0,L.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,L.jsxs)(Qe,{action:p?.btnUrl||i&&(()=>i?.(g)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[(0,vc.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,L.jsx)(Ao,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,L.jsx)(uc.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||g);return(0,L.jsxs)(Ei.default.Fragment,{children:[e&&(0,L.jsx)(N,{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?(0,L.jsxs)(wt,{defaultValue:t[0]?.title,children:[(0,L.jsxs)(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,L.jsx)(ht,{className:"mb-6 text-center",children:(0,L.jsx)(at,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,g)=>(0,L.jsx)(it,{value:p.title,children:p.title},p.title+g))})}),(0,L.jsx)(bt,{}),(0,L.jsx)(yt,{})]}),t.map((p,g)=>(0,L.jsx)(rt,{value:p.title,children:d(p,g)},p.title+g))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var lo=require("react/jsx-runtime"),Yp=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,lo.jsx)(Bn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,lo.jsx)(Bn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Zp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,lo.jsx)(lo.Fragment,{children:Yp({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),xc=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,lo.jsx)(K,{className:r(a),background:i,children:(0,lo.jsx)(Zp,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:m})});var fe=require("react/jsx-runtime"),hc=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,fe.jsxs)("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&&(0,fe.jsx)(N,{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&&(0,fe.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Kp=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,fe.jsxs)("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:[(0,fe.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,fe.jsx)(N,{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&&(0,fe.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,fe.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,fe.jsx)(U,{ratio:4/3,children:(0,fe.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Jp=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return(0,fe.jsx)(hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return(0,fe.jsx)(Kp,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return(0,fe.jsx)(hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},ef=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>(0,fe.jsx)(fe.Fragment,{children:Jp({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),bc=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})=>(0,fe.jsx)(K,{className:t,idSection:a,background:o,children:(0,fe.jsx)(ef,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})});var On=v(require("react"),1),Hi=v(require("html-react-parser"),1);var Ze=require("react/jsx-runtime"),tf=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ze.jsxs)("div",{className:" text-center",children:[(0,Ze.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,Hi.default)(t??"")}),(0,Ze.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,Hi.default)(o??"")}),a&&(0,Ze.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,Hi.default)(a??"")})]})},zi=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ze.jsxs)(On.default.Fragment,{children:[t&&(0,Ze.jsx)(N,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&(0,Ze.jsx)("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,i)=>(0,Ze.jsx)(On.default.Fragment,{children:(0,Ze.jsx)(tf,{metric:a})},i))}),o&&(0,Ze.jsx)(P,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Vn=v(require("react"),1),Fi=v(require("html-react-parser"),1);var Ke=require("react/jsx-runtime"),of=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ke.jsxs)("div",{className:" text-center md:text-left",children:[(0,Ke.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:(0,Fi.default)(t??"")}),(0,Ke.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,Fi.default)(o??"")}),a&&(0,Ke.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,Fi.default)(a??"")})]})},Wn=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ke.jsxs)(Vn.default.Fragment,{children:[t&&(0,Ke.jsx)(N,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,i)=>(0,Ke.jsx)(Vn.default.Fragment,{children:(0,Ke.jsx)(of,{metric:a})},i))}),o&&(0,Ke.jsx)(P,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Xt=require("react/jsx-runtime"),af=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,Xt.jsx)(zi,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,Xt.jsx)(Wn,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,Xt.jsx)(zi,{dataMetrics:o,dataButtons:a,dataHeading:e})}},rf=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,Xt.jsx)(Xt.Fragment,{children:af({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),yc=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:i,template:n})=>(0,Xt.jsx)(K,{className:r(i),background:a,children:(0,Xt.jsx)(rf,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});var wc=require("react"),Sa=require("react/jsx-runtime"),Nc=(0,wc.forwardRef)(({className:e,title:o,children:t},a)=>(0,Sa.jsxs)("div",{className:e,ref:a,children:[(0,Sa.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,Sa.jsx)("div",{style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-241105114139-638664036992710012.png)",backgroundSize:"30%",backgroundPosition:"53% 25%"},className:"mt-4 grid grid-cols-1 gap-4 rounded-lg border bg-no-repeat p-3 text-gray-800",children:t})]}));var Cc=require("react");var Je=require("react/jsx-runtime"),nf=()=>(0,Je.jsx)("div",{className:"p-3 border rounded-lg",children:(0,Je.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Je.jsx)(Ta,{className:"rounded-md h-9 w-9 "}),(0,Je.jsx)("div",{className:"flex-1",children:(0,Je.jsx)(Ta,{className:"w-48 h-5 "})}),(0,Je.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function sf(){return(0,Je.jsx)(Je.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,Je.jsx)(nf,{},o))})}var Pc=sf;var Ne=require("react/jsx-runtime"),lf=({paymentMethod:e})=>(0,Ne.jsx)(Ca,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,Ne.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ne.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,Ne.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,Ne.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,Ne.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,Ne.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Rc=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=(0,Cc.useCallback)(s=>a?.(s),[a]);return(0,Ne.jsxs)(Ne.Fragment,{children:[e&&(0,Ne.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,Ne.jsx)(Pc,{}):(0,Ne.jsx)(Pa,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,Ne.jsx)(lf,{paymentMethod:s},s.id))})]})};var Gn=require("react");var Qn=require("react/jsx-runtime"),mf=(0,Gn.forwardRef)(({children:e,className:o},t)=>(0,Qn.jsx)("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),$n=(0,Gn.forwardRef)(({children:e,className:o,...t},a)=>(0,Qn.jsx)(mf,{ref:a,className:o,...t,children:e}));$n.displayName="Payment";var Tc=require("react");var Da=require("react/jsx-runtime"),kc=(0,Tc.forwardRef)(({className:e,children:o},t)=>(0,Da.jsxs)("div",{className:r("",e),ref:t,children:[(0,Da.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,Da.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var Sc=require("react");var Mc=require("react/jsx-runtime"),Dc=(0,Sc.forwardRef)(({className:e,children:o},t)=>(0,Mc.jsx)("div",{className:r("pb-5",e),ref:t,children:o}));var Ac=require("react");var _i=require("@heroicons/react/20/solid");var Y=require("react/jsx-runtime"),cf=({iconPaymentResult:e,message:o="",title:t=""})=>(0,Y.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,Y.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,Y.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,Y.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,Y.jsx)(Qo,{message:o,type:"success",icon:(0,Y.jsx)(_i.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),df=({iconPaymentResult:e,message:o="",title:t=""})=>(0,Y.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,Y.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,Y.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,Y.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,Y.jsx)(Qo,{message:o,type:"error",icon:(0,Y.jsx)(_i.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),pf=({iconPaymentResult:e,message:o="",title:t=""})=>(0,Y.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,Y.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,Y.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,Y.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,Y.jsx)(Qo,{message:o,type:"neutral"})]}),Ic=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,Y.jsx)(cf,{status:e,title:o,message:t,iconPaymentResult:a||(0,Y.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,Y.jsx)(df,{status:e,title:o,message:t,iconPaymentResult:a||(0,Y.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,Y.jsx)(pf,{status:e,title:o,message:t,iconPaymentResult:a||(0,Y.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var Bi=require("react/jsx-runtime"),Lc=(0,Ac.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>(0,Bi.jsxs)("div",{ref:s,className:r("rounded-lg p-4",e),children:[(0,Bi.jsx)(Ic,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));var Vi=require("react");var Yo=require("react/jsx-runtime"),Oi=({content:e})=>(0,Yo.jsxs)("picture",{children:[(0,Yo.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,Yo.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,Yo.jsx)(Qe,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var mo=require("react/jsx-runtime"),ff=({template:e,content:o})=>{switch(e){case 1:return(0,mo.jsx)(Oi,{content:o});default:return(0,mo.jsx)(Oi,{content:o})}},Ec=(0,Vi.forwardRef)(({template:e,content:o},t)=>((0,Vi.useEffect)(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),(0,mo.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,mo.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,mo.jsx)("div",{className:"content",children:ff({template:e,content:o})})}),(0,mo.jsx)("style",{children:`
276
+ `})]})};var At=require("react/jsx-runtime"),Qp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,At.jsx)(Hn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,At.jsx)(dc,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,At.jsx)(sc,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,At.jsx)(Hn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},jp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,At.jsx)(At.Fragment,{children:Qp({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),pc=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>(0,At.jsx)(K,{className:r(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:(0,At.jsx)(jp,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});var Fn=v(require("html-react-parser"),1);var V=require("react/jsx-runtime"),_n=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>(0,V.jsx)(pt,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>(0,V.jsxs)(ft,{value:n.title,className:"last:border-none",children:[(0,V.jsx)(gt,{className:"md:text-lg",children:n.title}),(0,V.jsx)(ut,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,Fn.default)(n.description)})]},s))});return(0,V.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,V.jsx)("div",{className:"relative",children:(0,V.jsxs)("div",{className:"md:sticky md:top-14",children:[o&&(0,V.jsx)(N,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),t&&(0,V.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&(0,V.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,V.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},fc=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},m=c=>(0,V.jsx)(pt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((d,p)=>(0,V.jsxs)(ft,{value:d.title,className:"last:border-none",children:[(0,V.jsx)(gt,{className:"md:text-lg",children:d.title}),(0,V.jsx)(ut,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,Fn.default)(d.description)})]},p))});return(0,V.jsxs)(V.Fragment,{children:[o&&(0,V.jsx)(N,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:r(o.className)}),e&&(0,V.jsxs)(wt,{defaultValue:e[0]?.title,children:[e?.length>1&&(0,V.jsxs)(xt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[(0,V.jsx)(ht,{className:"mb-3 text-center",children:(0,V.jsx)(at,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,d)=>(0,V.jsx)(it,{value:c.title,children:c.title},c.title+d))})}),(0,V.jsx)(bt,{}),(0,V.jsx)(yt,{})]}),e.map((c,d)=>(0,V.jsx)(rt,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:m(c)},c.title+d))]}),t&&(0,V.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};var qt=require("react/jsx-runtime"),Up=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return(0,qt.jsx)(_n,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return(0,qt.jsx)(fc,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return(0,qt.jsx)(_n,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},qp=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>(0,qt.jsx)(qt.Fragment,{children:Up({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),gc=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:m=1})=>(0,qt.jsx)(K,{className:t,idSection:i,background:a,children:(0,qt.jsx)(qp,{dataHeading:e,dataFAQ:o,template:m,dataHorizontalScroll:s,dataButtons:n})});var Ei=v(require("react"),1),uc=require("@heroicons/react/20/solid"),vc=v(require("html-react-parser"),1);var A=require("react/jsx-runtime"),Xp=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,A.jsxs)("picture",{children:[(0,A.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,A.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,A.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,A.jsx)("div",{className:"line-clamp-2 flex-1 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none",children:e?.title}),(0,A.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(ye,{variant:"default",className:"shink-0 line-clamp-1 justify-start whitespace-normal text-left text-xs",onClick:t=>o(t,e?.categoryUrl||""),title:e?.category,children:e?.category}),e?.category&&e?.dateTime&&(0,A.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,A.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Bn=(0,Ei.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,g,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(g):window.open(u,"_blank")},d=(p,g)=>(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{className:r("-mx-2 flex flex-row flex-wrap gap-y-5",p?.newsList?.length<4?"md:justify-center":""),children:p?.newsList?.map((u,b)=>(0,A.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,A.jsx)("div",{onClick:L=>c(L,u?.id,u?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",p?.classNameItem),children:(0,A.jsx)(Xp,{news:u})},u?.id)},b))}),p?.isShowBtn&&(0,A.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,A.jsxs)(Qe,{action:p?.btnUrl||i&&(()=>i?.(g)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[(0,vc.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,A.jsx)(Ao,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,A.jsx)(uc.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||g);return(0,A.jsxs)(Ei.default.Fragment,{children:[e&&(0,A.jsx)(N,{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?(0,A.jsxs)(wt,{defaultValue:t[0]?.title,children:[(0,A.jsxs)(xt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,A.jsx)(ht,{className:"mb-6 text-center",children:(0,A.jsx)(at,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,g)=>(0,A.jsx)(it,{value:p.title,children:p.title},p.title+g))})}),(0,A.jsx)(bt,{}),(0,A.jsx)(yt,{})]}),t.map((p,g)=>(0,A.jsx)(rt,{value:p.title,children:d(p,g)},p.title+g))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var lo=require("react/jsx-runtime"),Yp=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,lo.jsx)(Bn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,lo.jsx)(Bn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Zp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,lo.jsx)(lo.Fragment,{children:Yp({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),xc=({dataHeading:e,dataHorizontalScroll:o,dataNews:t=[],className:a,background:i,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,lo.jsx)(K,{className:r(a),background:i,children:(0,lo.jsx)(Zp,{dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:n,onClickModal:s,onClickLoadMore:m})});var fe=require("react/jsx-runtime"),hc=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,fe.jsxs)("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&&(0,fe.jsx)(N,{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&&(0,fe.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Kp=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,fe.jsxs)("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:[(0,fe.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,fe.jsx)(N,{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&&(0,fe.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,fe.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,fe.jsx)(U,{ratio:4/3,children:(0,fe.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Jp=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return(0,fe.jsx)(hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return(0,fe.jsx)(Kp,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return(0,fe.jsx)(hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},ef=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>(0,fe.jsx)(fe.Fragment,{children:Jp({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),bc=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})=>(0,fe.jsx)(K,{className:t,idSection:a,background:o,children:(0,fe.jsx)(ef,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:m})});var On=v(require("react"),1),Hi=v(require("html-react-parser"),1);var Ze=require("react/jsx-runtime"),tf=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ze.jsxs)("div",{className:" text-center",children:[(0,Ze.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,Hi.default)(t??"")}),(0,Ze.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,Hi.default)(o??"")}),a&&(0,Ze.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,Hi.default)(a??"")})]})},zi=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ze.jsxs)(On.default.Fragment,{children:[t&&(0,Ze.jsx)(N,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&(0,Ze.jsx)("div",{className:"grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,i)=>(0,Ze.jsx)(On.default.Fragment,{children:(0,Ze.jsx)(tf,{metric:a})},i))}),o&&(0,Ze.jsx)(P,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Vn=v(require("react"),1),Fi=v(require("html-react-parser"),1);var Ke=require("react/jsx-runtime"),of=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ke.jsxs)("div",{className:" text-center md:text-left",children:[(0,Ke.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:(0,Fi.default)(t??"")}),(0,Ke.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,Fi.default)(o??"")}),a&&(0,Ke.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,Fi.default)(a??"")})]})},Wn=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ke.jsxs)(Vn.default.Fragment,{children:[t&&(0,Ke.jsx)(N,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:r(t?.className)}),e&&e?.length>0&&(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-10 py-4 md:grid-cols-4 md:gap-4 md:py-0",children:e?.map((a,i)=>(0,Ke.jsx)(Vn.default.Fragment,{children:(0,Ke.jsx)(of,{metric:a})},i))}),o&&(0,Ke.jsx)(P,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Xt=require("react/jsx-runtime"),af=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,Xt.jsx)(zi,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,Xt.jsx)(Wn,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,Xt.jsx)(zi,{dataMetrics:o,dataButtons:a,dataHeading:e})}},rf=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,Xt.jsx)(Xt.Fragment,{children:af({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),yc=({dataHeading:e,dataMetrics:o=[],dataButtons:t,background:a,className:i,template:n})=>(0,Xt.jsx)(K,{className:r(i),background:a,children:(0,Xt.jsx)(rf,{dataHeading:e,dataMetrics:o,dataButtons:t,template:n})});var wc=require("react"),Sa=require("react/jsx-runtime"),Nc=(0,wc.forwardRef)(({className:e,title:o,children:t},a)=>(0,Sa.jsxs)("div",{className:e,ref:a,children:[(0,Sa.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,Sa.jsx)("div",{style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-241105114139-638664036992710012.png)",backgroundSize:"30%",backgroundPosition:"53% 25%"},className:"mt-4 grid grid-cols-1 gap-4 rounded-lg border bg-no-repeat p-3 text-gray-800",children:t})]}));var Cc=require("react");var Je=require("react/jsx-runtime"),nf=()=>(0,Je.jsx)("div",{className:"p-3 border rounded-lg",children:(0,Je.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Je.jsx)(Ta,{className:"rounded-md h-9 w-9 "}),(0,Je.jsx)("div",{className:"flex-1",children:(0,Je.jsx)(Ta,{className:"w-48 h-5 "})}),(0,Je.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function sf(){return(0,Je.jsx)(Je.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,Je.jsx)(nf,{},o))})}var Pc=sf;var Ne=require("react/jsx-runtime"),lf=({paymentMethod:e})=>(0,Ne.jsx)(Ca,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,Ne.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Ne.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,Ne.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,Ne.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,Ne.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,Ne.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Rc=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:i=""})=>{let n=(0,Cc.useCallback)(s=>a?.(s),[a]);return(0,Ne.jsxs)(Ne.Fragment,{children:[e&&(0,Ne.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,Ne.jsx)(Pc,{}):(0,Ne.jsx)(Pa,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,Ne.jsx)(lf,{paymentMethod:s},s.id))})]})};var Gn=require("react");var Qn=require("react/jsx-runtime"),mf=(0,Gn.forwardRef)(({children:e,className:o},t)=>(0,Qn.jsx)("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),$n=(0,Gn.forwardRef)(({children:e,className:o,...t},a)=>(0,Qn.jsx)(mf,{ref:a,className:o,...t,children:e}));$n.displayName="Payment";var Tc=require("react");var Da=require("react/jsx-runtime"),kc=(0,Tc.forwardRef)(({className:e,children:o},t)=>(0,Da.jsxs)("div",{className:r("",e),ref:t,children:[(0,Da.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,Da.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var Sc=require("react");var Mc=require("react/jsx-runtime"),Dc=(0,Sc.forwardRef)(({className:e,children:o},t)=>(0,Mc.jsx)("div",{className:r("pb-5",e),ref:t,children:o}));var Ac=require("react");var _i=require("@heroicons/react/20/solid");var Y=require("react/jsx-runtime"),cf=({iconPaymentResult:e,message:o="",title:t=""})=>(0,Y.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,Y.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,Y.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,Y.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,Y.jsx)(Qo,{message:o,type:"success",icon:(0,Y.jsx)(_i.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),df=({iconPaymentResult:e,message:o="",title:t=""})=>(0,Y.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,Y.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,Y.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,Y.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,Y.jsx)(Qo,{message:o,type:"error",icon:(0,Y.jsx)(_i.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),pf=({iconPaymentResult:e,message:o="",title:t=""})=>(0,Y.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,Y.jsxs)("div",{className:"flex flex-col items-center space-y-3 md:flex-row md:space-x-3 md:space-y-0",children:[e&&(0,Y.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,Y.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,Y.jsx)(Qo,{message:o,type:"neutral"})]}),Ic=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,Y.jsx)(cf,{status:e,title:o,message:t,iconPaymentResult:a||(0,Y.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,Y.jsx)(df,{status:e,title:o,message:t,iconPaymentResult:a||(0,Y.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,Y.jsx)(pf,{status:e,title:o,message:t,iconPaymentResult:a||(0,Y.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var Bi=require("react/jsx-runtime"),Lc=(0,Ac.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>(0,Bi.jsxs)("div",{ref:s,className:r("rounded-lg p-4",e),children:[(0,Bi.jsx)(Ic,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));var Vi=require("react");var Yo=require("react/jsx-runtime"),Oi=({content:e})=>(0,Yo.jsxs)("picture",{children:[(0,Yo.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,Yo.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,Yo.jsx)(Qe,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var mo=require("react/jsx-runtime"),ff=({template:e,content:o})=>{switch(e){case 1:return(0,mo.jsx)(Oi,{content:o});default:return(0,mo.jsx)(Oi,{content:o})}},Ec=(0,Vi.forwardRef)(({template:e,content:o},t)=>((0,Vi.useEffect)(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let i=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${i}px`)}},[o]),(0,mo.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,mo.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,mo.jsx)("div",{className:"content",children:ff({template:e,content:o})})}),(0,mo.jsx)("style",{children:`
277
277
  .container-topbar .content {
278
278
  width: 100%;
279
279
  aspect-ratio: 1088/50;
@@ -304,12 +304,11 @@
304
304
  .animate-caret-blink {
305
305
  animation: caret-blink 1.25s ease-out infinite;
306
306
  }
307
- `})]})]})});os.displayName="InputOTPSlot";var as=Mo.forwardRef(({...e},o)=>(0,Lt.jsx)("div",{ref:o,role:"separator",...e,children:(0,Lt.jsx)(_c.Minus,{className:"text-gray-400"})}));as.displayName="InputOTPSeparator";var co=require("react"),Gc=require("html-to-image");var Zo=v(require("react"),1),Oc=require("lucide-react"),Vc=require("qrcode.react");async function Bc(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let n=i.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=i.toDataURL("image/png");o(s)},a.onerror=function(i){t(i)},a.src=e})}var le=require("react/jsx-runtime"),gf=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>(0,le.jsxs)("div",{className:`grid grid-cols-1 gap-y-6 py-8 text-sm ${t}`,children:[(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 1 :"}),(0,le.jsx)("div",{className:"mt-1 text-gray-500",children:e?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 2 :"}),(0,le.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 3 :"}),(0,le.jsxs)("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c ",o||"Truy c\u1EADp ngay"]})]})]})]}),$i=gf;var Yt=require("react/jsx-runtime"),uf=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:i,onOpenChange:n})=>(0,Yt.jsxs)($e,{open:i,onOpenChange:n,children:[(0,Yt.jsx)(Lo,{asChild:!0,children:e}),(0,Yt.jsxs)(ze,{position:"bottom",children:[(0,Yt.jsx)(go,{children:(0,Yt.jsx)(uo,{children:o})}),(0,Yt.jsx)(tt,{children:(0,Yt.jsx)($i,{isQrForAll:t,shortTitle:a})})]})]}),Qi=uf;var h=require("react/jsx-runtime"),vf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"qrcode__scan__container relative h-auto select-none md:h-[280px]",children:[(0,h.jsxs)("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[(0,h.jsx)("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"shrink-0 select-none"}),(0,h.jsx)("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:56,alt:"QR all",className:"shrink-0 select-none"})]}),(0,h.jsxs)("div",{className:"qrcode__scan",children:[(0,h.jsx)("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:(0,h.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,h.jsx)("div",{className:"qrcode__border invisible select-none opacity-0 md:visible md:opacity-100",children:(0,h.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,h.jsx)("div",{className:"qrcode__image select-none p-4",children:e?(0,h.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy",onLoad:a}):Zo.default.Children.map(o,s=>(Zo.default.isValidElement(s),s))})]}),n&&(0,h.jsxs)("div",{className:"text-sm text-gray-900 md:hidden",children:[(0,h.jsx)("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),(0,h.jsx)("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),i&&(0,h.jsxs)("div",{className:r("mt-3 text-sm text-gray-900 md:hidden"),children:[(0,h.jsx)("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),(0,h.jsx)("span",{className:"font-semibold",children:i})]}),(0,h.jsx)("div",{className:"mt-4 hidden text-sm font-semibold text-gray-900 md:block",children:t?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250710143736-638877550567721225.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),(0,h.jsx)("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"})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("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:(0,h.jsx)("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",(0,h.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),xf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,qrImageBase64:i,dateExpired:n,priceOrder:s})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:r(i&&"opacity-0 md:opacity-100"),children:(0,h.jsx)(vf,{dateExpired:n,priceOrder:s,img:e,isQrForAll:t,onQrLoaded:a,children:o})}),(0,h.jsx)("style",{children:`
307
+ `})]})]})});os.displayName="InputOTPSlot";var as=Mo.forwardRef(({...e},o)=>(0,Lt.jsx)("div",{ref:o,role:"separator",...e,children:(0,Lt.jsx)(_c.Minus,{className:"text-gray-400"})}));as.displayName="InputOTPSeparator";var co=require("react"),Gc=require("html-to-image");var Zo=v(require("react"),1),Oc=require("lucide-react"),Vc=require("qrcode.react");async function Bc(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let n=i.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=i.toDataURL("image/png");o(s)},a.onerror=function(i){t(i)},a.src=e})}var le=require("react/jsx-runtime"),gf=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>(0,le.jsxs)("div",{className:`grid grid-cols-1 gap-y-6 py-8 text-sm ${t}`,children:[(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 1 :"}),(0,le.jsx)("div",{className:"mt-1 text-gray-500",children:e?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 2 :"}),(0,le.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 3 :"}),(0,le.jsxs)("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c ",o||"Truy c\u1EADp ngay"]})]})]})]}),$i=gf;var Yt=require("react/jsx-runtime"),uf=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:i,onOpenChange:n})=>(0,Yt.jsxs)($e,{open:i,onOpenChange:n,children:[(0,Yt.jsx)(Lo,{asChild:!0,children:e}),(0,Yt.jsxs)(ze,{position:"bottom",children:[(0,Yt.jsx)(go,{children:(0,Yt.jsx)(uo,{children:o})}),(0,Yt.jsx)(tt,{children:(0,Yt.jsx)($i,{isQrForAll:t,shortTitle:a})})]})]}),Qi=uf;var h=require("react/jsx-runtime"),vf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"qrcode__scan__container relative select-none ",children:[(0,h.jsxs)("div",{className:"flex w-full items-center justify-center space-x-2 md:hidden",children:[(0,h.jsx)("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"shrink-0 select-none"}),(0,h.jsx)("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:25,alt:"QR all",className:"shrink-0 select-none"})]}),(0,h.jsxs)("div",{className:"qrcode__scan select-none",children:[(0,h.jsx)("div",{className:"qrcode__gradient invisible select-none opacity-0 md:visible md:opacity-100",children:(0,h.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,h.jsx)("div",{className:"qrcode__border invisible select-none opacity-0 md:visible md:opacity-100",children:(0,h.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,h.jsx)("div",{className:"qrcode__image select-none p-4",children:e?(0,h.jsx)("img",{alt:"step 3",className:"img-fluid d-block mx-auto",src:e,loading:"lazy",onLoad:a}):Zo.default.Children.map(o,s=>(Zo.default.isValidElement(s),s))})]}),n&&(0,h.jsxs)("div",{className:"text-sm text-gray-900 md:hidden",children:[(0,h.jsx)("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),(0,h.jsx)("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),i&&(0,h.jsxs)("div",{className:r("mt-3 text-sm text-gray-900 md:hidden"),children:[(0,h.jsx)("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),(0,h.jsx)("span",{className:"font-semibold",children:i})]}),(0,h.jsx)("div",{className:"mt-4 hidden text-sm font-semibold text-gray-900 md:block",children:t?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250710143736-638877550567721225.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),(0,h.jsx)("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"})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("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:(0,h.jsx)("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",(0,h.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),xf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n,className:s=""})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:r(s),children:(0,h.jsx)(vf,{dateExpired:i,priceOrder:n,img:e,isQrForAll:t,onQrLoaded:a,children:o})}),(0,h.jsx)("style",{children:`
308
308
  .qrcode__scan__container {
309
309
  padding: 15px;
310
310
  background-color: white;
311
311
  width: 280px;
312
- height: 280px;
313
312
  border-radius: 20px;
314
313
  border-radius: 15px;
315
314
  margin: 0 auto;
@@ -373,7 +372,7 @@
373
372
  transform: translate3d(0, 30%, 0);
374
373
  }
375
374
  }
376
- `})]}),hf=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:i,loading:n,onQrLoaded:s,qrImageBase64:m,qrCodeRef:c,dateExpired:d,priceOrder:p,titleOrder:g})=>{let[u,b]=Zo.default.useState(void 0);return Zo.default.useEffect(()=>{a?Bc(a).then(b).catch(()=>b(void 0)):b(void 0)},[a]),Zo.default.useEffect(()=>{t&&u&&typeof s=="function"&&!o&&s()},[t,u,s,o]),(0,h.jsxs)("div",{className:"relative z-[1] rounded-lg",children:[(0,h.jsxs)("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:c,children:[(0,h.jsx)("h2",{className:r(" mb-2 hidden select-all text-base font-bold text-gray-900 md:block",m&&"opacity-0 md:opacity-100"),children:g||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),m&&(0,h.jsx)("div",{className:"visible absolute left-0 right-0 top-0 z-20 cursor-pointer opacity-100 md:select-none md:opacity-0",children:(0,h.jsx)("img",{src:m,alt:"QR Code"})}),(0,h.jsx)("div",{className:"relative flex select-none flex-col items-center",children:(0,h.jsxs)(xf,{qrImageBase64:m,img:o,isQrForAll:e,onQrLoaded:s,dateExpired:d,priceOrder:p,children:[t&&u&&!o&&(0,h.jsx)(Vc.QRCodeSVG,{value:t,size:215,imageSettings:{src:`${u}`,height:40,width:40,excavate:!0},level:"H"}),i&&(0,h.jsx)("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:(0,h.jsx)("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&(0,h.jsx)("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:(0,h.jsx)(hi,{size:"lg"})})]})})]}),(0,h.jsxs)("div",{className:"qrcode__guide relative z-10 select-none bg-pink-50 bg-repeat-y px-5 pb-5 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[(0,h.jsxs)("div",{className:r("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",m&&"opacity-100 md:opacity-0"),children:[(0,h.jsxs)("div",{className:"ripple size-5 rounded-full",children:[(0,h.jsx)("div",{className:"ripple-1"}),(0,h.jsx)("div",{className:"ripple-2"})]}),(0,h.jsx)("img",{className:"qrcode__hand relative z-10 -mt-1 size-7 select-none object-contain drop-shadow-lg",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),(0,h.jsx)("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),(0,h.jsx)(Qi,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:(0,h.jsxs)("div",{className:"flex cursor-pointer items-center justify-center space-x-1 text-center text-sm font-semibold text-pink-600",children:[(0,h.jsx)("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",(0,h.jsx)(Oc.LucideMessageCircleQuestion,{className:"size-4"})," "]})}),(0,h.jsx)("style",{children:`
375
+ `})]}),hf=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:i,loading:n,onQrLoaded:s,qrImageBase64:m,qrCodeRef:c,dateExpired:d,priceOrder:p,titleOrder:g})=>{let[u,b]=Zo.default.useState(void 0);return Zo.default.useEffect(()=>{a?Bc(a).then(b).catch(()=>b(void 0)):b(void 0)},[a]),Zo.default.useEffect(()=>{t&&u&&typeof s=="function"&&!o&&s()},[t,u,s,o]),(0,h.jsxs)("div",{className:"relative z-[1] ",children:[(0,h.jsxs)("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:c,children:[(0,h.jsx)("div",{className:r(" mb-2 hidden text-base font-bold text-gray-900 md:block",m&&"opacity-0 md:opacity-100"),children:g||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),m&&(0,h.jsx)("div",{className:"visible absolute left-0 right-0 top-0 z-20 cursor-pointer opacity-100 md:hidden md:select-none",children:(0,h.jsx)("img",{src:m,alt:"QR Code"})}),(0,h.jsxs)(xf,{img:o,isQrForAll:e,onQrLoaded:s,dateExpired:d,priceOrder:p,children:[t&&u&&!o&&(0,h.jsx)(Vc.QRCodeSVG,{value:t,size:215,imageSettings:{src:`${u}`,height:40,width:40,excavate:!0},level:"H"}),i&&(0,h.jsx)("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:(0,h.jsx)("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&(0,h.jsx)("div",{className:"absolute inset-0 z-10 flex size-full flex-col items-center justify-center bg-white/90",children:(0,h.jsx)(hi,{size:"lg"})})]})]}),(0,h.jsxs)("div",{className:"qrcode__guide relative z-10 select-none bg-pink-50 bg-repeat-y px-5 pb-5 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[(0,h.jsxs)("div",{className:r("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",m&&"opacity-100 md:opacity-0"),children:[(0,h.jsxs)("div",{className:"ripple size-5 rounded-full",children:[(0,h.jsx)("div",{className:"ripple-1"}),(0,h.jsx)("div",{className:"ripple-2"})]}),(0,h.jsx)("img",{className:"qrcode__hand relative z-10 -mt-1 size-7 select-none object-contain drop-shadow-lg",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),(0,h.jsx)("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),(0,h.jsx)(Qi,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:(0,h.jsxs)("div",{className:"flex cursor-pointer items-center justify-center space-x-1 text-center text-sm font-semibold text-pink-600",children:[(0,h.jsx)("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",(0,h.jsx)(Oc.LucideMessageCircleQuestion,{className:"size-4"})," "]})}),(0,h.jsx)("style",{children:`
377
376
  .ripple {
378
377
  box-sizing: border-box;
379
378
  position: relative;
@@ -429,7 +428,7 @@
429
428
  transform: scale(1) translateY(0);
430
429
  }
431
430
  }
432
- `})]})]})},Wc=hf;var Ko=require("react/jsx-runtime"),bf=["qrcode__gradient","qrcode__guide","qrcode__title"],yf=e=>!bf.some(o=>e.classList?.contains(o)),$c=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:i,dateExpired:n,priceOrder:s,titleOrder:m,className:c})=>{let d=(0,co.useRef)(null),[p,g]=(0,co.useState)(null),[u,b]=(0,co.useState)(!1);return(0,co.useEffect)(()=>{u&&d.current&&(0,Gc.toPng)(d.current,{filter:yf}).then(S=>{console.log("QR Image generated:",S.substring(0,50)+"..."),g(S)}).catch(S=>{console.error("Error generating QR image:",S)})},[u,t]),(0,co.useEffect)(()=>{e&&b(!1)},[e]),(0,Ko.jsx)(Ko.Fragment,{children:(0,Ko.jsx)("div",{className:r("relative h-full md:col-span-7 md:rounded-lg",c),children:(0,Ko.jsx)(Wc,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:i,expired:o,loading:e,qrCodeRef:d,titleOrder:m,onQrLoaded:()=>{b(!0)},qrImageBase64:p,dateExpired:n,priceOrder:s})})})};var ld=v(require("color"),1),md=v(require("tailwindcss/plugin.js"),1);var Qc={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 jc={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Uc={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var qc={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Xc={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Yc={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Zc={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Kc={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Jc={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var ed={white:"#ffffff",black:"#000000",blue:jc,green:Uc,pink:qc,purple:Xc,red:Yc,yellow:Zc,gray:Jc,orange:Kc};var is={...ed};var td={"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 Et="250ms",od={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Et},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Et},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Et},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Et},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Et},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Et},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Et},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Et},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Et},".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":Et}};var ad={".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 id={".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 rd={...ad,...od,...id};var nd=require("flat");function wf(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 sd=e=>wf((0,nd.flatten)(e,{safe:!0,delimiter:"-"}));var Nf=e=>{let o={utilities:{},colors:{}},t=sd(is),a=td,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[m,c,d]=(0,ld.default)(s).rgb().array(),p=`--${e}-${n}`;o.utilities[i][p]=`${m} ${c} ${d}`,o.colors[n]=`rgb(var(${p}) / <alpha-value>)`}catch(m){console.log("error",m?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let m=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,d])=>{let p=`${m}-${c}`;o.utilities[i][p]=d});else{let c=m.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][m]=c}}),o},cd=()=>{let e="mobase",o=Nf(e);return(0,md.default)(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...rd})},{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:{...is,...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)`},...Qc}}})};var M=require("react/jsx-runtime"),dd=(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("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"}),(0,M.jsx)("meta",{name:"distribution",content:"Global"}),(0,M.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,M.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,M.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,M.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,M.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,M.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,M.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,M.jsx)("meta",{name:"language",content:"vietnamese"}),(0,M.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,M.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,M.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,M.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,M.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,M.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,M.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,M.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,M.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,M.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,M.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,M.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,M.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,M.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
431
+ `})]})]})},Wc=hf;var Ko=require("react/jsx-runtime"),bf=["qrcode__gradient","qrcode__guide","qrcode__title"],yf=e=>!bf.some(o=>e.classList?.contains(o)),$c=({loading:e=!1,isExpriedQR:o,qrLink:t,qrImage:a,logoQr:i,dateExpired:n,priceOrder:s,titleOrder:m,className:c})=>{let d=(0,co.useRef)(null),[p,g]=(0,co.useState)(null),[u,b]=(0,co.useState)(!1);return(0,co.useEffect)(()=>{if(u&&d.current){let L=setTimeout(()=>{d.current&&(0,Gc.toPng)(d.current,{filter:yf}).then(H=>{g(H)}).catch(H=>{console.error("Error generating QR image:",H)})},2e3);return()=>clearTimeout(L)}},[u,t]),(0,co.useEffect)(()=>{e&&b(!1)},[e]),(0,Ko.jsx)(Ko.Fragment,{children:(0,Ko.jsx)("div",{className:r("relative h-full md:col-span-7 md:rounded-lg",c),children:(0,Ko.jsx)(Wc,{isQrForAll:!0,qrImage:a,qrLink:t,logoQr:i,expired:o,loading:e,qrCodeRef:d,titleOrder:m,onQrLoaded:()=>{b(!0)},qrImageBase64:p,dateExpired:n,priceOrder:s})})})};var ld=v(require("color"),1),md=v(require("tailwindcss/plugin.js"),1);var Qc={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 jc={50:"#eef8ff",100:"#d9eeff",200:"#bce1ff",300:"#8ed0ff",400:"#59b4ff",500:"#429cff",600:"#1b74f5",700:"#145ee1",800:"#174bb6",900:"#19428f",DEFAULT:"#429cff"};var Uc={50:"#f1fcf3",100:"#dff9e5",200:"#c0f2cc",300:"#8fe6a4",400:"#57d175",500:"#34c759",600:"#22973f",700:"#1e7735",800:"#1d5e2e",900:"#194e28",DEFAULT:"#34c759"};var qc={50:"#fef1f9",100:"#fee5f6",200:"#fecced",300:"#ffa2df",400:"#fe68c6",500:"#EB2F96",600:"#D42A87",700:"#CB0B6F",800:"#A70D5B",900:"#8B104E",DEFAULT:"#EB2F96"};var Xc={50:"#faf5ff",100:"#f4e9fe",200:"#ead6fe",300:"#dab6fc",400:"#c487f9",500:"#ab55f3",600:"#9937e6",700:"#8326ca",800:"#6f24a5",900:"#5b1e85",DEFAULT:"#ab55f3"};var Yc={50:"#fff1f2",100:"#ffe1e3",200:"#ffc8cb",300:"#ffa1a6",400:"#fe6b73",500:"#f74e57",600:"#e41e29",700:"#c0151e",800:"#9e161d",900:"#83191f",DEFAULT:"#f74e57"};var Zc={50:"#fffee7",100:"#fffec1",200:"#fff886",300:"#ffec41",400:"#ffdb0d",500:"#ffcc00",600:"#d19500",700:"#a66a02",800:"#89530a",900:"#74430f",DEFAULT:"#ffcc00"};var Kc={50:"#fff4ed",100:"#ffe6d5",200:"#fecaaa",300:"#fea473",400:"#fc743b",500:"#fa541c",600:"#eb350b",700:"#c3240b",800:"#9b1e11",900:"#7c1c12",DEFAULT:"#fa541c"};var Jc={50:"#FAF9FA",100:"#F5F4F5",200:"#E7E4E6",300:"#D6D1D4",400:"#A69BA2",500:"#796B73",600:"#574D53",700:"#443B41",800:"#292427",900:"#1C171A",DEFAULT:"#1C171A"};var ed={white:"#ffffff",black:"#000000",blue:jc,green:Uc,pink:qc,purple:Xc,red:Yc,yellow:Zc,gray:Jc,orange:Kc};var is={...ed};var td={"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 Et="250ms",od={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":Et},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":Et},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":Et},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":Et},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":Et},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":Et},".transition-transform-opacity":{"transition-property":"transform, opacity","transition-timing-function":"ease","transition-duration":Et},".transition-transform-background":{"transition-property":"transform, background","transition-timing-function":"ease","transition-duration":Et},".transition-transform-colors":{"transition-property":"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":Et},".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":Et}};var ad={".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 id={".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 rd={...ad,...od,...id};var nd=require("flat");function wf(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 sd=e=>wf((0,nd.flatten)(e,{safe:!0,delimiter:"-"}));var Nf=e=>{let o={utilities:{},colors:{}},t=sd(is),a=td,i=":root";return o.utilities[i]={},Object.entries(t).forEach(([n,s])=>{if(s)try{let[m,c,d]=(0,ld.default)(s).rgb().array(),p=`--${e}-${n}`;o.utilities[i][p]=`${m} ${c} ${d}`,o.colors[n]=`rgb(var(${p}) / <alpha-value>)`}catch(m){console.log("error",m?.message)}}),Object.entries(a).forEach(([n,s])=>{if(!s)return;let m=`--${e}-${n}`;if(typeof s=="object")Object.entries(s).forEach(([c,d])=>{let p=`${m}-${c}`;o.utilities[i][p]=d});else{let c=m.includes("opacity")&&typeof s=="number"?s?.toString().replace(/^0\./,"."):s;o.utilities[i][m]=c}}),o},cd=()=>{let e="mobase",o=Nf(e);return(0,md.default)(({addBase:t,addUtilities:a,addComponents:i})=>{i({".wrapper":{maxWidth:"72rem",paddingLeft:"1.25rem",paddingRight:"1.25rem",marginLeft:"auto",marginRight:"auto","@media (min-width: 768px)":{paddingLeft:"2rem",paddingRight:"2rem"}},body:{color:"rgb(var(--mobase-gray-900))"}}),t({":root":{"font-smooth--webkit":"antialiased"},...o?.utilities}),a({...rd})},{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:{...is,...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)`},...Qc}}})};var D=require("react/jsx-runtime"),dd=(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("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"}),(0,D.jsx)("meta",{name:"distribution",content:"Global"}),(0,D.jsx)("meta",{name:"author",content:"V\xED MoMo"}),(0,D.jsx)("meta",{property:"fb:app_id",content:"320653355376196"}),(0,D.jsx)("meta",{property:"fb:pages",content:"138010322921640"}),(0,D.jsx)("link",{rel:"shortcut icon",href:"/favicon.ico"}),(0,D.jsx)("link",{href:"https://www.momo.vn/favicon-32x32.png",rel:"icon",sizes:"32x32",type:"image/png"}),(0,D.jsx)("link",{href:"https://www.momo.vn/favicon-16x16.png",rel:"icon",sizes:"16x16",type:"image/png"}),(0,D.jsx)("link",{href:"https://www.momo.vn/apple-touch-icon.png",rel:"apple-touch-icon",sizes:"180x180"}),(0,D.jsx)("meta",{name:"language",content:"vietnamese"}),(0,D.jsx)("meta",{name:"copyright",content:"Copyright \xA9 2019 by MOMO.VN"}),(0,D.jsx)("meta",{name:"REVISIT-AFTER",content:"1 DAYS"}),(0,D.jsx)("meta",{name:"RATING",content:"GENERAL"}),(0,D.jsx)("meta",{httpEquiv:"x-dns-prefetch-control",content:"on"}),(0,D.jsx)("link",{rel:"dns-prefetch",href:"//www.google-analytics.com"}),(0,D.jsx)("link",{rel:"dns-prefetch",href:"//connect.facebook.net"}),(0,D.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagservices.com"}),(0,D.jsx)("link",{rel:"dns-prefetch",href:"//www.googletagmanager.com"}),(0,D.jsx)("link",{rel:"dns-prefetch",href:"//facebook.com"}),(0,D.jsx)("link",{rel:"dns-prefetch",href:"//homepage.momocdn.net"}),(0,D.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com"}),(0,D.jsx)("link",{rel:"dns-prefetch",href:"//www.google.com.vn"}),(0,D.jsx)("link",{rel:"dns-prefetch",href:"//www.googleadservices.com"}),(0,D.jsx)("link",{rel:"preconnect",href:"//connect.facebook.net"}),(0,D.jsx)("link",{rel:"preconnect",href:"//www.googletagmanager.com"}),(0,D.jsx)("link",{rel:"preconnect",href:"//www.google-analytics.com"}),(0,D.jsx)("link",{rel:"preconnect",href:"//googleads.g.doubleclick.net"}),(0,D.jsx)("link",{rel:"preconnect",href:"//homepage.momocdn.net"}),(0,D.jsx)("link",{rel:"preconnect",href:"//www.google.com"}),(0,D.jsx)("link",{rel:"preconnect",href:"//www.google.com.vn"}),(0,D.jsx)("link",{rel:"preconnect",href:"//www.googleadservices.com"}),(0,D.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
433
432
  "@context": "https://schema.org/",
434
433
  "@type": "WebSite",
435
434
  "@id":"https://www.momo.vn/#website",
@@ -439,7 +438,7 @@
439
438
  "@type": "SearchAction",
440
439
  "target": "https://www.momo.vn/tim-kiem?q={search_term_string}",
441
440
  "query-input": "required name=search_term_string"
442
- }}`}}),(0,M.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
441
+ }}`}}),(0,D.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:`{
443
442
  "@context": "https://schema.org",
444
443
  "@type": "Organization",
445
444
  "name": "Si\xEAu \u1EE9ng d\u1EE5ng MoMo",