@momo-webplatform/mobase 1.0.4 → 1.0.5

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
- `})]}),eo=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...c})=>(0,w.jsx)($e,{...c,children:(0,w.jsx)(He,{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,w.jsx)(ot,{className:"p-0",children:(0,w.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,w.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,w.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,w.jsx)("div",{className:"mt-1 text-gray-500",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,w.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,w.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,w.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,w.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,w.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,w.jsxs)("div",{className:"relative",children:[l&&(0,w.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,w.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,w.jsx)(td,{img:i,isQrForAll:l,children:n&&(0,w.jsx)(os.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 is=require("react");var _o=require("react"),as=h(require("ua-parser-js"),1),od=()=>(0,as.default)().device.type==="mobile",ad=typeof window<"u"?_o.useLayoutEffect:_o.useEffect,Fo=()=>{let[e,o]=(0,_o.useState)(!1);return ad(()=>{o(od())},[]),e};var Ot=require("react/jsx-runtime"),je=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,c]=(0,is.useState)(!1),d=Fo(),p=!!a?.qrLink,u=()=>{let X=p?a?.qrLink:e;return typeof X=="string"?X.trim():""},g=()=>{let X=u();!X&&typeof e!="function"||(typeof e=="function"?e():window.open(X,o?"_blank":"_self"))},y=(X,oe=0)=>{let U=document.querySelector(X);if(!U)return;let M=U.getBoundingClientRect().top+window.scrollY-oe;window.scrollTo({top:M,behavior:"smooth"})},I=()=>{typeof e=="string"&&e.startsWith("#")?y(e,t):g()},D=()=>(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Ee,{...s,className:i,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Ot.jsx)(eo,{...a,open:l,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?D():(0,Ot.jsx)(Ee,{...s,className:i,onClick:g,"data-name":"button-action-with-qr",children:n}):D():(0,Ot.jsx)(Ee,{...s,onClick:I,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var Bo=h(require("react"),1),Ea=require("@radix-ui/react-icons"),rs=require("@radix-ui/react-slot");var Qe=require("react/jsx-runtime"),Wi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Wi.displayName="Breadcrumb";var Gi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.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}));Gi.displayName="BreadcrumbList";var $i=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));$i.displayName="BreadcrumbItem";var ji=Bo.forwardRef(({asChild:e,className:o,...t},a)=>(0,Qe.jsx)(e?rs.Slot:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));ji.displayName="BreadcrumbLink";var Qi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Qi.displayName="BreadcrumbPage";var Ui=({children:e,className:o,...t})=>(0,Qe.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??(0,Qe.jsx)(Ea.ChevronRightIcon,{className:"w-2 h-2"})});Ui.displayName="BreadcrumbSeparator";var qi=({className:e,...o})=>(0,Qe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Qe.jsx)(Ea.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Qe.jsx)("span",{className:"sr-only",children:"More"})]});qi.displayName="BreadcrumbElipssis";var na=require("react");var Oo=require("react/jsx-runtime"),Xi=(0,na.createContext)({align:"center"}),Ha=({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,Oo.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,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=(0,na.useContext)(Xi);return(0,Oo.jsx)(s,{className:r("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",l[t],c[o],a&&"truncate",i),children:n})},Fa=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=(0,na.useContext)(Xi);return(0,Oo.jsx)("div",{className:r(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],c[t],a&&"truncate",i),children:n})},Ba=({className:e,align:o="center",children:t})=>(0,Oo.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Oo.jsx)(Xi.Provider,{value:{align:o},children:t})});var bt=require("react/jsx-runtime"),J=({idSection:e,className:o,background:t,children:a})=>(0,bt.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,bt.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:l})=>{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,bt.jsxs)(Ba,{align:e,className:l,children:[o&&(0,bt.jsx)(Ha,{color:c,children:o}),t&&(0,bt.jsx)(_a,{tagHeading:i,color:d,size:s,children:v(t)}),a&&(0,bt.jsx)(Fa,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:v(a)})]})},C=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,bt.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,...l}=i;return(0,bt.jsx)(je,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:v(s)},n)})});var $a=h(require("react"),1),us=require("@heroicons/react/20/solid");var Le=require("react"),Oa=require("lucide-react");var ns=h(require("react"),1),ss=require("@radix-ui/react-slot"),ls=require("class-variance-authority");var ms=require("react/jsx-runtime"),xo=(0,ls.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"}}),ue=ns.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?ss.Slot:"button",c=r(xo({variant:o,size:t,className:e}));return(0,ms.jsx)(l,{className:c,disabled:i,ref:s,...n,children:n.children})});ue.displayName="IconButton";var Ae=require("react/jsx-runtime"),Va=(0,Le.createContext)(void 0),yt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=(0,Le.useRef)(null),[n,s]=(0,Le.useState)({left:!1,right:!1}),l=(0,Le.useCallback)(()=>{let d=i.current;if(d){let{scrollLeft:p,scrollWidth:u,clientWidth:g}=d;s({left:p>0,right:Math.ceil(p+g)<u})}},[]);(0,Le.useEffect)(()=>{let d=i.current;if(d)return l(),window.addEventListener("resize",l),d.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),d.removeEventListener("scroll",l)}},[l]);let c=d=>{let p=i.current;if(p){let{scrollLeft:u,clientWidth:g,scrollWidth:y}=p,I=g*.7*(d==="left"?-1:1),D=u+I;D<0?D=0:D>y-g&&(D=y-g),p.scrollTo({left:D,behavior:"smooth"})}};return(0,Ae.jsx)(Va.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Ae.jsxs)("div",{className:r("relative w-full",t),children:[e&&(0,Ae.jsxs)(Ae.Fragment,{children:[n.left&&(0,Ae.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,Ae.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]})})},wt=({className:e,children:o})=>{let t=(0,Le.useContext)(Va);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Ae.jsx)("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},Nt=({className:e,children:o,...t})=>{let a=(0,Le.useContext)(Va);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Ae.jsx)(ue,{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,Ae.jsx)(Oa.ChevronLeft,{className:"h-4 w-4"})}):null},Pt=({className:e,children:o,...t})=>{let a=(0,Le.useContext)(Va);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Ae.jsx)(ue,{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,Ae.jsx)(Oa.ChevronRight,{className:"h-4 w-4"})}):null};var Wa=h(require("react"),1),at=h(require("@radix-ui/react-tabs"),1);var Ga=require("react/jsx-runtime"),Ct=at.Root,it=Wa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>(0,Ga.jsx)(at.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}));it.displayName=at.List.displayName;var rt=Wa.forwardRef(({className:e,...o},t)=>(0,Ga.jsx)(at.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}));rt.displayName=at.Trigger.displayName;var nt=Wa.forwardRef(({className:e,...o},t)=>(0,Ga.jsx)(at.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}));nt.displayName=at.Content.displayName;var cs=h(require("react"),1),ds=require("@radix-ui/react-slot"),ps=require("class-variance-authority");var fs=require("react/jsx-runtime"),Yi=(0,ps.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"}}),Ne=cs.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?ds.Slot:"button",c=r(Yi({variant:o,size:t,className:e}));return(0,fs.jsx)(l,{className:c,disabled:i,ref:s,...n,children:n.children})});Ne.displayName="TextButton";var A=require("react/jsx-runtime"),id=({blog: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:"flex-none basis-1/2 pr-3 md:basis-full md:pr-0",children:(0,A.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",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:"basis-1/2 overflow-hidden md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,A.jsx)(Ne,{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,A.jsx)("div",{className:"line-clamp-3 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,A.jsxs)("div",{className:"mt-2 flex items-center md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Ne,{variant:"default",className:"shink-0 hidden justify-start whitespace-normal text-left text-xs md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,A.jsx)("span",{className:"hidden flex-none leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,A.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},ja=(0,$a.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,u,g)=>{p?.preventDefault(),p?.stopPropagation(),a?a(u):window.open(g,"_blank")},d=(p,u)=>(0,A.jsxs)("div",{children:[(0,A.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((g,y)=>(0,A.jsx)("div",{className:"min-w-0 basis-full px-3 md:basis-1/2 lg:basis-1/3",children:(0,A.jsx)("div",{onClick:I=>c(I,g?.id,g?.url),className:r("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,A.jsx)(id,{blog:g})},g?.id)},y))}),p?.isShowBtn&&(0,A.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,A.jsxs)(je,{action:i?()=>i?.(u):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[v(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,A.jsx)(Eo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,A.jsx)(us.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||u);return(0,A.jsxs)($a.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)(Ct,{defaultValue:t[0]?.title,children:[(0,A.jsxs)(yt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,A.jsx)(wt,{className:"mb-6 text-center",children:(0,A.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,u)=>(0,A.jsx)(rt,{value:p.title,children:p.title},p.title+u))})}),(0,A.jsx)(Nt,{}),(0,A.jsx)(Pt,{})]}),t.map((p,u)=>(0,A.jsx)(nt,{value:p.title,children:d(p,u)},p.title+u))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Vt=h(require("react"),1),Ua=require("@heroicons/react/20/solid");var Y=h(require("react"),1),Qa=require("@heroicons/react/20/solid"),gs=h(require("embla-carousel-react"),1);var ge=require("react/jsx-runtime"),vs=Y.createContext(null);function sa(){let e=Y.useContext(vs);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Pe=Y.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[c,d]=(0,gs.default)({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[p,u]=Y.useState(!1),[g,y]=Y.useState(!1),I=Y.useCallback(oe=>{oe&&(u(oe.canScrollPrev()),y(oe.canScrollNext()))},[]),D=Y.useCallback(()=>{d?.scrollPrev()},[d]),z=Y.useCallback(()=>{d?.scrollNext()},[d]),X=Y.useCallback(oe=>{oe.key==="ArrowLeft"?(oe.preventDefault(),D()):oe.key==="ArrowRight"&&(oe.preventDefault(),z())},[D,z]);return Y.useEffect(()=>{!d||!t||t(d)},[d,t]),Y.useEffect(()=>{if(d)return I(d),d.on("reInit",I),d.on("select",I),()=>{d?.off("select",I)}},[d,I]),(0,ge.jsx)(vs.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:z,canScrollPrev:p,canScrollNext:g},children:(0,ge.jsx)("div",{ref:l,onKeyDownCapture:X,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Pe.displayName="Carousel";var Ce=Y.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=sa();return(0,ge.jsx)("div",{ref:i,className:r("overflow-hidden",o),children:(0,ge.jsx)("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Ce.displayName="CarouselContent";var ye=Y.forwardRef(({className:e,...o},t)=>{let{orientation:a}=sa();return(0,ge.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})});ye.displayName="CarouselItem";var bo=Y.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=sa();return(0,ge.jsxs)(ue,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[(0,ge.jsx)(Qa.ChevronLeftIcon,{className:"h-6 w-6"}),(0,ge.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});bo.displayName="CarouselPrevious";var yo=Y.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=sa();return(0,ge.jsxs)(ue,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[(0,ge.jsx)(Qa.ChevronRightIcon,{className:"h-6 w-6"}),(0,ge.jsx)("span",{className:"sr-only",children:"Next slide"})]})});yo.displayName="CarouselNext";var wo=Y.forwardRef((e,o)=>{let{api:t}=sa(),[,a]=Y.useState(!1),i=Y.useCallback(()=>a(l=>!l),[]);Y.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,ge.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,c)=>(0,ge.jsx)(ue,{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,ge.jsx)(ge.Fragment,{})});wo.displayName="CarouselDots";var R=require("react/jsx-runtime"),rd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,R.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,R.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,R.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,R.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:v(e?.description??"")}),(0,R.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Ne,{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,R.jsx)("span",{className:"flex-none leading-none text-gray-300",children:"\xB7"})]}),e?.totalViews&&(0,R.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},nd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,Vt.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Pe,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,R.jsx)(Ce,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(u=>(0,R.jsx)(ye,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,R.jsx)("div",{onClick:g=>i(g,u?.id,u?.url),className:r("group cursor-pointer",p),children:(0,R.jsx)(rd,{blog:u})},u?.id)},u?.id))})}),s&&(0,R.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10",children:(0,R.jsxs)(je,{action:c&&c,newTab:d,variant:"outline",children:[v(l||"Xem th\xEAm")," "]})})]})},sd=({carouselRef:e})=>(0,R.jsxs)(ue,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,R.jsx)(Ua.ChevronLeftIcon,{className:"h-6 w-6"}),(0,R.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),ld=({carouselRef:e})=>(0,R.jsxs)(ue,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,R.jsx)(Ua.ChevronRightIcon,{className:"h-6 w-6"}),(0,R.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Zi=(0,Vt.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(d,p,u)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(u,"_blank")},[n,s]=(0,Vt.useState)(null),[,l]=(0,Vt.useState)(0),c=()=>n?(0,R.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,R.jsx)(sd,{carouselRef:n}),(0,R.jsx)(ld,{carouselRef:n})]}):(0,R.jsx)(R.Fragment,{});return(0,R.jsxs)(Vt.default.Fragment,{children:[(0,R.jsxs)("div",{className:"flex items-center justify-between",children:[e&&(0,R.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,R.jsx)(c,{})]}),(0,R.jsx)(nd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});var Wt=require("react/jsx-runtime"),md=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Wt.jsx)(ja,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return(0,Wt.jsx)(Zi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Wt.jsx)(ja,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},cd=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Wt.jsx)(Wt.Fragment,{children:md({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),hs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,Wt.jsx)(J,{className:r("overflow-hidden",i),idSection:a,background:n,children:(0,Wt.jsx)(cd,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:c})});var Xa=h(require("react"),1),Ya=require("date-fns/locale"),Za=require("lucide-react"),ys=h(require("lunisolar"),1),ws=require("react-day-picker");var xs=h(require("react"),1),la=h(require("@radix-ui/react-checkbox"),1),bs=require("@heroicons/react/16/solid"),Ki=require("class-variance-authority");var qa=require("react/jsx-runtime"),dd=(0,Ki.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"}}),pd=(0,Ki.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),ma=xs.forwardRef(({className:e,size:o,...t},a)=>(0,qa.jsx)(la.Root,{ref:a,className:r(dd({size:o}),e),...t,children:(0,qa.jsx)(la.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,qa.jsx)(bs.CheckIcon,{className:r(pd({size:o}))})})}));ma.displayName=la.Root.displayName;var we=require("react/jsx-runtime"),fd=({date:e,cusContent:o})=>{let t=null;return t=(0,ys.default)(e).lunar,(0,we.jsxs)(we.Fragment,{children:[o?o(e):e.getDate(),t&&(0,we.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},ud={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 gd({isShow:e,setIsShow:o,lang:t}){let a=Xa.useId();return(0,we.jsx)("div",{className:"w-full p-3 pt-0",children:(0,we.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,we.jsx)(ma,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),(0,we.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var vd=e=>e.getDay()===0||e.getDay()===6;function ca({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,c]=Xa.useState(!0);return(0,we.jsx)(ws.DayPicker,{locale:i==="vi"?Ya.vi:Ya.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(tt({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(tt({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:vd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,we.jsx)(Za.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,we.jsx)(Za.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,we.jsx)(fd,{date:d.date,cusContent:n}),Months:({children:d})=>(0,we.jsxs)("div",{className:"w-full",children:[(0,we.jsx)("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,we.jsx)(gd,{isShow:l,setIsShow:c,lang:i})]})},formatters:i==="vi"?ud:{},...s})}ca.displayName="Calendar";var Ka=require("@heroicons/react/16/solid"),da=require("date-fns"),Ps=require("lucide-react");var Ns=h(require("react"),1),Gt=h(require("@radix-ui/react-popover"),1);var Ji=require("react/jsx-runtime"),Vo=Gt.Root,Wo=Gt.Trigger,No=Ns.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>(0,Ji.jsx)(Gt.Portal,{children:(0,Ji.jsx)(Gt.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})}));No.displayName=Gt.Content.displayName;var ae=require("react/jsx-runtime"),Cs=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:c,calendarProps:d,popoverContentProps:p})=>{let u=d?.selected||null;return(0,ae.jsxs)("div",{children:[(0,ae.jsxs)(Vo,{...c,children:[(0,ae.jsx)(Wo,{asChild:!0,children:(0,ae.jsxs)(Ee,{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",(!u||!(u instanceof Date)&&typeof u=="object"&&(!("from"in u)||!u.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[(0,ae.jsx)("div",{className:"line-clamp-1 flex-1",children:u instanceof Date?(0,da.format)(u,s):u&&typeof u=="object"&&"from"in u&&"to"in u?(0,ae.jsx)(ae.Fragment,{children:u.from?u.to?(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)("span",{className:"date-from",children:(0,da.format)(u.from,s)})," ",(0,ae.jsx)("span",{className:"date-separator",children:"-"}),(0,ae.jsx)("span",{className:"date-to",children:(0,da.format)(u.to,s)})]}):(0,da.format)(u.from,s):o}):o}),e&&(0,ae.jsx)("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),(0,ae.jsx)(Ps.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,ae.jsx)(No,{className:"w-auto border-none !p-0",...p,children:(0,ae.jsx)(ca,{...d,defaultMonth:u&&typeof u=="object"&&"from"in u?u.from:u instanceof Date?u:void 0})})]}),a&&(0,ae.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?(0,ae.jsx)(Ka.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ae.jsx)(Ka.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ae.jsx)("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var pa=require("react"),ti=require("@heroicons/react/16/solid"),Ds=require("date-fns");var kt=h(require("react"),1),$t=require("@heroicons/react/16/solid"),ks=require("@heroicons/react/24/outline"),E=h(require("@radix-ui/react-select"),1);var V=require("react/jsx-runtime"),Go=kt.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},c)=>(0,V.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,V.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,V.jsx)(E.Root,{disabled:s,...l,children:o}),a&&(0,V.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,V.jsx)($t.XCircleIcon,{width:16,height:16}):(0,V.jsx)(ks.QuestionMarkCircleIcon,{width:16,height:16}),(0,V.jsx)("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),$o=E.Value,Po=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(E.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,V.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,V.jsx)(E.Icon,{asChild:!0,children:(0,V.jsx)($t.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Po.displayName=E.Trigger.displayName;var Ja=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:(0,V.jsx)($t.ChevronUpIcon,{className:"h-5 w-5"})}));Ja.displayName=E.ScrollUpButton.displayName;var ei=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.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,V.jsx)($t.ChevronDownIcon,{className:"h-5 w-5"})}));ei.displayName=E.ScrollDownButton.displayName;var Co=kt.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>(0,V.jsx)(E.Portal,{children:(0,V.jsxs)(E.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,V.jsx)(Ja,{}),(0,V.jsx)(E.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,V.jsx)(ei,{})]})}));Co.displayName=E.Content.displayName;var jo=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsx)(E.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),er=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));er.displayName=E.Label.displayName;var jt=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(E.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,V.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,V.jsx)(E.ItemIndicator,{children:(0,V.jsx)($t.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,V.jsx)(E.ItemText,{children:o})]})),tr=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));tr.displayName=E.Separator.displayName;var Rs=["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"],Ts=["January","February","March","April","May","June","July","August","September","October","November","December"],or=(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}},Ss=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,l)=>n-l)};var B=require("react/jsx-runtime"),Ms=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:u=!1})=>{let[g,y]=(0,pa.useState)(o??null),I=Math.min(d,p),D=Math.max(d,p),z=l==="MM/yyyy",X=(M,be)=>{if(be===0){y(void 0),t?.(void 0);return}let re=g?.getFullYear()||new Date().getFullYear(),Ia=g?.getMonth()??0,go=g?.getDate()??1;M==="month"&&be!==null&&(Ia=be-1),M==="year"&&be!==null&&(re=be),z?go=1:M==="day"&&be!==null&&(go=be);let Gn=or(re,Ia+1).daysInMonth;go>Gn&&(go=1);let oa=new Date(re,Ia,go);(0,Ds.isValid)(oa)&&(y(oa),t?.(oa))},[oe,U]=(0,pa.useState)(!1),uo=M=>{U(M)};return(0,pa.useEffect)(()=>{y(o??null)},[o]),(0,B.jsxs)("div",{className:r("relative",s&&"cursor-no-drop"),children:[(0,B.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",oe&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",g?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,B.jsx)("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,B.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!z&&(0,B.jsxs)(Go,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:M=>X("day",parseInt(M,10)),onOpenChange:uo,className:"w-[30%]",children:[(0,B.jsx)(Po,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!u&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:or(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(M,be)=>(be+1).toString().padStart(2,"0")).map(M=>(0,B.jsx)(jt,{value:M,children:M},M))]})})]}),(0,B.jsxs)(Go,{value:g?(g.getMonth()+1).toString():"",onValueChange:M=>X("month",parseInt(M,10)),onOpenChange:uo,className:r(z?"w-1/2":"w-2/5"),children:[(0,B.jsx)(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!u&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(M,be)=>be+1).map(M=>(0,B.jsx)(jt,{value:M.toString(),children:c==="vi"?Rs[M-1]:Ts[M-1]},M))]})})]}),(0,B.jsxs)(Go,{value:g?g.getFullYear().toString():"",onValueChange:M=>X("year",parseInt(M,10)),onOpenChange:uo,className:r(z?"w-1/2":"w-[30%]"),children:[(0,B.jsx)(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!u&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Ss(I,D).map(M=>(0,B.jsx)(jt,{value:M.toString(),children:M},M))]})})]})]})]}),i&&(0,B.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,B.jsx)(ti.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,B.jsx)(ti.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,B.jsx)("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};var ko=h(require("react"),1),ee=h(require("@radix-ui/react-alert-dialog"),1);var Ue=require("react/jsx-runtime"),Is=ee.Root,As=ee.Trigger,ar=ee.Portal,oi=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.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}));oi.displayName=ee.Overlay.displayName;var ir=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsxs)(ar,{children:[(0,Ue.jsx)(oi,{}),(0,Ue.jsx)(ee.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})]}));ir.displayName=ee.Content.displayName;var rr=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...o});rr.displayName="AlertDialogHeader";var nr=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...o});nr.displayName="AlertDialogFooter";var sr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));sr.displayName=ee.Title.displayName;var lr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));lr.displayName=ee.Description.displayName;var mr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Action,{ref:t,className:r(tt({variant:"primary"}),"",e),...o}));mr.displayName=ee.Action.displayName;var cr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Cancel,{ref:t,className:r(tt({variant:"secondary"}),e),...o}));cr.displayName=ee.Cancel.displayName;var ai=require("react");var fa=require("react"),zs=require("motion/react");var Ls=h(require("@radix-ui/react-aspect-ratio"),1),q=Ls.Root;var $=require("react/jsx-runtime"),hd=({guideGroup:e,mockup:o})=>{let[t,a]=(0,fa.useState)(),[i,n]=(0,fa.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,fa.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,$.jsx)($.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,$.jsxs)("div",{className:"flex flex-nowrap justify-center mx-auto max-w-3xl",children:[(0,$.jsx)("div",{className:"flex-none w-64 h-auto",children:(0,$.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,$.jsxs)($.Fragment,{children:[(0,$.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,$.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,$.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,$.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,$.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,$.jsxs)(Pe,{setApi:a,children:[(0,$.jsx)(Ce,{className:"ml-0",children:e?.stepList.map((l,c)=>(0,$.jsx)(ye,{className:"pl-0",children:(0,$.jsx)(q,{ratio:o==="small"?540/960:540/1168,children:l?.image&&(0,$.jsx)("img",{src:l.image,className:"object-contain size-full",alt:l.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":"0","data-puck-array-field":"stepList","data-puck-array-index-nested":c?.toString()??"","data-puck-nested-field":"image"})})},c))}),(0,$.jsx)(bo,{className:"left-1 text-white border-none bg-gray-900/30 hover:bg-gray-900/40 disabled:hidden"}),(0,$.jsx)(yo,{className:"right-1 text-white border-none bg-gray-900/30 hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,$.jsx)("div",{className:"flex flex-auto pt-4 pl-12",children:(0,$.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((l,c)=>(0,$.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,$.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,$.jsx)("div",{className:r("text-sm font-medium",c+1===i?"text-pink-500":"text-gray-900"),children:v(l.title)}),l.content&&(0,$.jsx)(zs.motion.div,{initial:"closed",animate:c+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,$.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:v(l.content)})})]},c))})})]})})},dr=hd;var Qt=require("react"),pr=require("@heroicons/react/20/solid"),Es=h(require("embla-carousel-autoplay"),1);var x=require("react/jsx-runtime"),xd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=(0,Qt.useState)(0),[s,l]=(0,Qt.useState)();return(0,Qt.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)(He,{position:"bottom",height:"full",children:[(0,x.jsx)(vo,{children:(0,x.jsx)(ho,{className:"line-clamp-1",children:t?.title})}),(0,x.jsxs)(ot,{className:"grid overflow-hidden p-0",children:[(0,x.jsx)(Pe,{setApi:l,className:"grid overflow-hidden",children:(0,x.jsx)(Ce,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,x.jsx)(ye,{className:"pl-0 w-full h-full",children:(0,x.jsxs)("div",{className:"flex overflow-y-auto flex-col h-full",children:[(0,x.jsx)("div",{className:"flex relative flex-none justify-center p-5 w-full bg-gray-100",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)(q,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,x.jsx)("img",{src:c.image,className:"object-contain size-full",alt:c.title})})})]})})}),(0,x.jsxs)("div",{className:"p-5 pb-12",children:[(0,x.jsx)("div",{className:"font-semibold",children:v(c.title)}),c?.content&&(0,x.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:v(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))})]})]})})},bd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=(0,Qt.useState)(!1),[n,s]=(0,Qt.useState)(null),l=(0,Qt.useRef)((0,Es.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:"grid grid-cols-1 -mx-5 md:mx-0",children:e.map((d,p)=>(0,x.jsxs)("div",{className:"flex relative flex-nowrap items-center pl-5 space-x-4 cursor-pointer",onClick:()=>c(p),children:[(0,x.jsx)("div",{className:"flex overflow-hidden justify-center p-2 pb-0 w-20 h-28 bg-gray-100 rounded-t-lg borde",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,x.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"object-cover object-top w-full h-full",alt:d.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":p,"data-puck-nested-field":"avatar"})}),(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:v(d.title)}),d?.description&&(0,x.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:v(d.description)})]}),(0,x.jsx)("div",{className:"absolute right-4 top-1/2 text-gray-500 -translate-y-1/2",children:(0,x.jsx)(pr.ChevronRightIcon,{className:"w-6 h-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,x.jsxs)("div",{className:"flex flex-col flex-wrap gap-y-6 justify-center mx-auto max-w-3xl",children:[(0,x.jsx)("div",{className:"overflow-hidden relative flex-none w-full max-h-96",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 w-72 h-auto",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)(Pe,{plugins:[l.current],children:(0,x.jsx)(Ce,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,x.jsx)(ye,{className:"pl-0",onClick:()=>c(0),children:(0,x.jsx)(q,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,x.jsx)("img",{src:d.image,className:"object-contain size-full",alt:d.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":0,"data-puck-array-field":"stepList","data-puck-array-index-nested":p?p?.toString():"","data-puck-nested-field":"image"})})},p))})})})]})})}),(0,x.jsx)("div",{className:"flex flex-none justify-center w-full",children:(0,x.jsxs)(Ne,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,x.jsx)(pr.ChevronRightIcon,{className:"ml-1 w-5 h-5"})]})})]}),a&&(0,x.jsx)(xd,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},Hs=bd;var Z=require("react/jsx-runtime"),_s=({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,Z.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,Z.jsx)("path",{d:t.d,fill:"currentColor"})})},fr=(0,ai.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:c}=o||{},[d,p]=(0,ai.useState)(t?.[0]?.title||"");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:r(e?.className)}),t&&t?.length>0&&(0,Z.jsxs)(zo,{children:[(0,Z.jsx)(ut,{lessThan:"md",children:(0,Z.jsx)(Hs,{dataGuide:t,mockup:i,isStep:n})}),(0,Z.jsx)(ut,{greaterThan:"sm",children:t?.length>1?(0,Z.jsxs)(Ct,{defaultValue:t[0]?.title,onValueChange:u=>p(u),children:[(0,Z.jsxs)(yt,{showGradientOverlay:s,gradientOverlayColor:l,className:c,children:[(0,Z.jsx)(wt,{className:"mb-6 text-center",children:(0,Z.jsx)(it,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((u,g)=>{let y=g===t.length-1,I=d===u?.title||"";return(0,Z.jsxs)(rt,{value:u.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":"",I&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&(0,Z.jsx)(_s,{direction:"left",className:r("right-full top-0",I?"text-pink-500":"text-pink-100")}),u.title,n&&!y&&(0,Z.jsx)(_s,{direction:"right",className:r("left-full top-0",I?"text-pink-500":"text-pink-100")})]},u.title+g)})})}),(0,Z.jsx)(Nt,{}),(0,Z.jsx)(Pt,{})]}),t.map((u,g)=>(0,Z.jsx)(nt,{value:u.title,children:(0,Z.jsx)(dr,{guideGroup:u,mockup:i})},u.title+g))]}):t?.length===1&&t[0]&&(0,Z.jsx)(dr,{guideGroup:t[0],mockup:i})})]}),a&&(0,Z.jsx)(C,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var to=require("react/jsx-runtime"),yd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return(0,to.jsx)(fr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return(0,to.jsx)(fr,{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,to.jsx)(to.Fragment,{children:yd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),Fs=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,className:n,background:s,template:l=1,mockup:c="default",isStep:d=!1})=>(0,to.jsx)(J,{className:r(n),background:s,idSection:e,children:(0,to.jsx)(wd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:c,isStep:d})});var ii=require("lucide-react");var ve=require("react/jsx-runtime");function ur({current:e,total:o,onChange:t}){let a=i=>(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(xo({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(xo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ve.jsx)(ii.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(xo({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(xo({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(xo({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ve.jsx)(ii.ChevronRight,{className:"h-4 w-4"})})})]})})}var Bs=require("react"),Os=require("@heroicons/react/24/outline"),Vs=require("@heroicons/react/24/solid");var Rt=require("react/jsx-runtime"),Ws=(0,Bs.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...c},d)=>(0,Rt.jsxs)("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&(0,Rt.jsx)("span",{className:r("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,Rt.jsx)("textarea",{disabled:e,ref:d,className:r("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...c}),t&&(0,Rt.jsxs)("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?(0,Rt.jsx)(Vs.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Rt.jsx)(Os.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Rt.jsx)("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,Rt.jsx)("style",{children:`
70
+ `})]}),eo=({className:e,children:o,title:t,shortTitle:a,qrImage:i,qrLink:n,logoQr:s,isQrForAll:l=!1,...c})=>(0,w.jsx)($e,{...c,children:(0,w.jsx)(He,{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,w.jsx)(ot,{className:"p-0",children:(0,w.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,w.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,w.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,w.jsx)("div",{className:"mt-1 text-gray-500",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,w.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,w.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,w.jsx)("div",{className:"flex-none",children:(0,w.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,w.jsxs)("div",{className:"flex-1 pl-4",children:[(0,w.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,w.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,w.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,w.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,w.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,w.jsxs)("div",{className:"relative",children:[l&&(0,w.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,w.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,w.jsx)(td,{img:i,isQrForAll:l,children:n&&(0,w.jsx)(os.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 is=require("react");var _o=require("react"),as=h(require("ua-parser-js"),1),od=()=>(0,as.default)().device.type==="mobile",ad=typeof window<"u"?_o.useLayoutEffect:_o.useEffect,Fo=()=>{let[e,o]=(0,_o.useState)(!1);return ad(()=>{o(od())},[]),e};var Ot=require("react/jsx-runtime"),je=({action:e,newTab:o,offset:t,dialogQrProps:a,className:i,children:n,...s})=>{let[l,c]=(0,is.useState)(!1),d=Fo(),p=!!a?.qrLink,u=()=>{let X=p?a?.qrLink:e;return typeof X=="string"?X.trim():""},g=()=>{let X=u();!X&&typeof e!="function"||(typeof e=="function"?e():window.open(X,o?"_blank":"_self"))},y=(X,oe=0)=>{let U=document.querySelector(X);if(!U)return;let M=U.getBoundingClientRect().top+window.scrollY-oe;window.scrollTo({top:M,behavior:"smooth"})},I=()=>{typeof e=="string"&&e.startsWith("#")?y(e,t):g()},D=()=>(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Ee,{...s,className:i,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Ot.jsx)(eo,{...a,open:l,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?D():(0,Ot.jsx)(Ee,{...s,className:i,onClick:g,"data-name":"button-action-with-qr",children:n}):D():(0,Ot.jsx)(Ee,{...s,onClick:I,className:r("cursor-pointer",i),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var Bo=h(require("react"),1),Ea=require("@radix-ui/react-icons"),rs=require("@radix-ui/react-slot");var Qe=require("react/jsx-runtime"),Wi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:r("",e),...o}));Wi.displayName="Breadcrumb";var Gi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.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}));Gi.displayName="BreadcrumbList";var $i=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("li",{ref:t,className:r("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));$i.displayName="BreadcrumbItem";var ji=Bo.forwardRef(({asChild:e,className:o,...t},a)=>(0,Qe.jsx)(e?rs.Slot:"a",{ref:a,className:r("transition-colors hover:text-foreground",o),...t}));ji.displayName="BreadcrumbLink";var Qi=Bo.forwardRef(({className:e,...o},t)=>(0,Qe.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:r("text-sm text-gray-500",e),...o}));Qi.displayName="BreadcrumbPage";var Ui=({children:e,className:o,...t})=>(0,Qe.jsx)("li",{role:"presentation","aria-hidden":"true",className:r("text-gray-900",o),...t,children:e??(0,Qe.jsx)(Ea.ChevronRightIcon,{className:"w-2 h-2"})});Ui.displayName="BreadcrumbSeparator";var qi=({className:e,...o})=>(0,Qe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:r("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Qe.jsx)(Ea.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Qe.jsx)("span",{className:"sr-only",children:"More"})]});qi.displayName="BreadcrumbElipssis";var na=require("react");var Oo=require("react/jsx-runtime"),Xi=(0,na.createContext)({align:"center"}),Ha=({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,Oo.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,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=(0,na.useContext)(Xi);return(0,Oo.jsx)(s,{className:r("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",l[t],c[o],a&&"truncate",i),children:n})},Fa=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:i,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=(0,na.useContext)(Xi);return(0,Oo.jsx)("div",{className:r(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],c[t],a&&"truncate",i),children:n})},Ba=({className:e,align:o="center",children:t})=>(0,Oo.jsx)("div",{className:r("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Oo.jsx)(Xi.Provider,{value:{align:o},children:t})});var bt=require("react/jsx-runtime"),J=({idSection:e,className:o,background:t,children:a})=>(0,bt.jsx)("section",{id:e,className:r("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,bt.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:l})=>{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,bt.jsxs)(Ba,{align:e,className:l,children:[o&&(0,bt.jsx)(Ha,{color:c,children:o}),t&&(0,bt.jsx)(_a,{tagHeading:i,color:d,size:s,children:v(t)}),a&&(0,bt.jsx)(Fa,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:v(a)})]})},C=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,bt.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,...l}=i;return(0,bt.jsx)(je,{...l,className:r(o&&"w-full md:w-auto",i?.className),children:v(s)},n)})});var $a=h(require("react"),1),us=require("@heroicons/react/20/solid");var Le=require("react"),Oa=require("lucide-react");var ns=h(require("react"),1),ss=require("@radix-ui/react-slot"),ls=require("class-variance-authority");var ms=require("react/jsx-runtime"),xo=(0,ls.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"}}),ue=ns.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?ss.Slot:"button",c=r(xo({variant:o,size:t,className:e}));return(0,ms.jsx)(l,{className:c,disabled:i,ref:s,...n,children:n.children})});ue.displayName="IconButton";var Ae=require("react/jsx-runtime"),Va=(0,Le.createContext)(void 0),yt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let i=(0,Le.useRef)(null),[n,s]=(0,Le.useState)({left:!1,right:!1}),l=(0,Le.useCallback)(()=>{let d=i.current;if(d){let{scrollLeft:p,scrollWidth:u,clientWidth:g}=d;s({left:p>0,right:Math.ceil(p+g)<u})}},[]);(0,Le.useEffect)(()=>{let d=i.current;if(d)return l(),window.addEventListener("resize",l),d.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),d.removeEventListener("scroll",l)}},[l]);let c=d=>{let p=i.current;if(p){let{scrollLeft:u,clientWidth:g,scrollWidth:y}=p,I=g*.7*(d==="left"?-1:1),D=u+I;D<0?D=0:D>y-g&&(D=y-g),p.scrollTo({left:D,behavior:"smooth"})}};return(0,Ae.jsx)(Va.Provider,{value:{scrollContainerRef:i,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Ae.jsxs)("div",{className:r("relative w-full",t),children:[e&&(0,Ae.jsxs)(Ae.Fragment,{children:[n.left&&(0,Ae.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,Ae.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]})})},wt=({className:e,children:o})=>{let t=(0,Le.useContext)(Va);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Ae.jsx)("div",{ref:t.scrollContainerRef,className:r("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},Nt=({className:e,children:o,...t})=>{let a=(0,Le.useContext)(Va);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Ae.jsx)(ue,{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,Ae.jsx)(Oa.ChevronLeft,{className:"h-4 w-4"})}):null},Pt=({className:e,children:o,...t})=>{let a=(0,Le.useContext)(Va);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Ae.jsx)(ue,{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,Ae.jsx)(Oa.ChevronRight,{className:"h-4 w-4"})}):null};var Wa=h(require("react"),1),at=h(require("@radix-ui/react-tabs"),1);var Ga=require("react/jsx-runtime"),Ct=at.Root,it=Wa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},i)=>(0,Ga.jsx)(at.List,{ref:i,className:r("inline-flex w-full flex-row items-center space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));it.displayName=at.List.displayName;var rt=Wa.forwardRef(({className:e,...o},t)=>(0,Ga.jsx)(at.Trigger,{ref:t,className:r("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap border-b-2 border-transparent py-3 font-semibold text-gray-900 transition-all hover:text-pink-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-pink-500 data-[state=active]:text-pink-500",e),...o}));rt.displayName=at.Trigger.displayName;var nt=Wa.forwardRef(({className:e,...o},t)=>(0,Ga.jsx)(at.Content,{ref:t,className:r("ring-offset-background focus-visible:ring-ring mt-3 text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e),...o}));nt.displayName=at.Content.displayName;var cs=h(require("react"),1),ds=require("@radix-ui/react-slot"),ps=require("class-variance-authority");var fs=require("react/jsx-runtime"),Yi=(0,ps.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"}}),Ne=cs.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:i=!1,...n},s)=>{let l=a?ds.Slot:"button",c=r(Yi({variant:o,size:t,className:e}));return(0,fs.jsx)(l,{className:c,disabled:i,ref:s,...n,children:n.children})});Ne.displayName="TextButton";var A=require("react/jsx-runtime"),id=({blog: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:"flex-none basis-1/2 pr-3 md:basis-full md:pr-0",children:(0,A.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",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:"basis-1/2 overflow-hidden md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,A.jsx)(Ne,{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,A.jsx)("div",{className:"line-clamp-3 text-sm font-medium text-gray-900 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,A.jsxs)("div",{className:"mt-2 flex items-center md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Ne,{variant:"default",className:"shink-0 hidden justify-start whitespace-normal text-left text-xs md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,A.jsx)("span",{className:"hidden flex-none leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,A.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},ja=(0,$a.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,u,g)=>{p?.preventDefault(),p?.stopPropagation(),a?a(u):window.open(g,"_blank")},d=(p,u)=>(0,A.jsxs)("div",{children:[(0,A.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((g,y)=>(0,A.jsx)("div",{className:"min-w-0 basis-full px-3 md:basis-1/2 lg:basis-1/3",children:(0,A.jsx)("div",{onClick:I=>c(I,g?.id,g?.url),className:r("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,A.jsx)(id,{blog:g})},g?.id)},y))}),p?.isShowBtn&&(0,A.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,A.jsxs)(je,{action:i?()=>i?.(u):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[v(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,A.jsx)(Eo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,A.jsx)(us.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||u);return(0,A.jsxs)($a.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)(Ct,{defaultValue:t[0]?.title,children:[(0,A.jsxs)(yt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,A.jsx)(wt,{className:"mb-6 text-center",children:(0,A.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,u)=>(0,A.jsx)(rt,{value:p.title,children:p.title},p.title+u))})}),(0,A.jsx)(Nt,{}),(0,A.jsx)(Pt,{})]}),t.map((p,u)=>(0,A.jsx)(nt,{value:p.title,children:d(p,u)},p.title+u))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Vt=h(require("react"),1),Ua=require("@heroicons/react/20/solid");var Y=h(require("react"),1),Qa=require("@heroicons/react/20/solid"),gs=h(require("embla-carousel-react"),1);var ge=require("react/jsx-runtime"),vs=Y.createContext(null);function sa(){let e=Y.useContext(vs);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Pe=Y.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:i,children:n,...s},l)=>{let[c,d]=(0,gs.default)({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[p,u]=Y.useState(!1),[g,y]=Y.useState(!1),I=Y.useCallback(oe=>{oe&&(u(oe.canScrollPrev()),y(oe.canScrollNext()))},[]),D=Y.useCallback(()=>{d?.scrollPrev()},[d]),z=Y.useCallback(()=>{d?.scrollNext()},[d]),X=Y.useCallback(oe=>{oe.key==="ArrowLeft"?(oe.preventDefault(),D()):oe.key==="ArrowRight"&&(oe.preventDefault(),z())},[D,z]);return Y.useEffect(()=>{!d||!t||t(d)},[d,t]),Y.useEffect(()=>{if(d)return I(d),d.on("reInit",I),d.on("select",I),()=>{d?.off("select",I)}},[d,I]),(0,ge.jsx)(vs.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:z,canScrollPrev:p,canScrollNext:g},children:(0,ge.jsx)("div",{ref:l,onKeyDownCapture:X,className:r("relative",i),role:"region","aria-roledescription":"carousel",...s,children:n})})});Pe.displayName="Carousel";var Ce=Y.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:i,orientation:n}=sa();return(0,ge.jsx)("div",{ref:i,className:r("overflow-hidden",o),children:(0,ge.jsx)("div",{ref:a,className:r("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Ce.displayName="CarouselContent";var ye=Y.forwardRef(({className:e,...o},t)=>{let{orientation:a}=sa();return(0,ge.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})});ye.displayName="CarouselItem";var bo=Y.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=sa();return(0,ge.jsxs)(ue,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[(0,ge.jsx)(Qa.ChevronLeftIcon,{className:"h-6 w-6"}),(0,ge.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});bo.displayName="CarouselPrevious";var yo=Y.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},i)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=sa();return(0,ge.jsxs)(ue,{ref:i,variant:o,size:t,className:r("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[(0,ge.jsx)(Qa.ChevronRightIcon,{className:"h-6 w-6"}),(0,ge.jsx)("span",{className:"sr-only",children:"Next slide"})]})});yo.displayName="CarouselNext";var wo=Y.forwardRef((e,o)=>{let{api:t}=sa(),[,a]=Y.useState(!1),i=Y.useCallback(()=>a(l=>!l),[]);Y.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,ge.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,c)=>(0,ge.jsx)(ue,{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,ge.jsx)(ge.Fragment,{})});wo.displayName="CarouselDots";var R=require("react/jsx-runtime"),rd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,R.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,R.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,R.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,R.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:v(e?.description??"")}),(0,R.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Ne,{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,R.jsx)("span",{className:"flex-none leading-none text-gray-300",children:"\xB7"})]}),e?.totalViews&&(0,R.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},nd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:i})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,Vt.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Pe,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,R.jsx)(Ce,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(u=>(0,R.jsx)(ye,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,R.jsx)("div",{onClick:g=>i(g,u?.id,u?.url),className:r("group cursor-pointer",p),children:(0,R.jsx)(rd,{blog:u})},u?.id)},u?.id))})}),s&&(0,R.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10",children:(0,R.jsxs)(je,{action:c&&c,newTab:d,variant:"outline",children:[v(l||"Xem th\xEAm")," "]})})]})},sd=({carouselRef:e})=>(0,R.jsxs)(ue,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,R.jsx)(Ua.ChevronLeftIcon,{className:"h-6 w-6"}),(0,R.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),ld=({carouselRef:e})=>(0,R.jsxs)(ue,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,R.jsx)(Ua.ChevronRightIcon,{className:"h-6 w-6"}),(0,R.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Zi=(0,Vt.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let i=(d,p,u)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(u,"_blank")},[n,s]=(0,Vt.useState)(null),[,l]=(0,Vt.useState)(0),c=()=>n?(0,R.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,R.jsx)(sd,{carouselRef:n}),(0,R.jsx)(ld,{carouselRef:n})]}):(0,R.jsx)(R.Fragment,{});return(0,R.jsxs)(Vt.default.Fragment,{children:[(0,R.jsxs)("div",{className:"flex items-center justify-between",children:[e&&(0,R.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,R.jsx)(c,{})]}),(0,R.jsx)(nd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:i})]})});var Wt=require("react/jsx-runtime"),md=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,Wt.jsx)(ja,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});case 2:return(0,Wt.jsx)(Zi,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,Wt.jsx)(ja,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},cd=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,Wt.jsx)(Wt.Fragment,{children:md({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:i,onClickLoadMore:n})}),hs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,Wt.jsx)(J,{className:r("overflow-hidden",i),idSection:a,background:n,children:(0,Wt.jsx)(cd,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:c})});var Xa=h(require("react"),1),Ya=require("date-fns/locale"),Za=require("lucide-react"),ys=h(require("lunisolar"),1),ws=require("react-day-picker");var xs=h(require("react"),1),la=h(require("@radix-ui/react-checkbox"),1),bs=require("@heroicons/react/16/solid"),Ki=require("class-variance-authority");var qa=require("react/jsx-runtime"),dd=(0,Ki.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"}}),pd=(0,Ki.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),ma=xs.forwardRef(({className:e,size:o,...t},a)=>(0,qa.jsx)(la.Root,{ref:a,className:r(dd({size:o}),e),...t,children:(0,qa.jsx)(la.Indicator,{className:r("flex items-center justify-center text-current"),children:(0,qa.jsx)(bs.CheckIcon,{className:r(pd({size:o}))})})}));ma.displayName=la.Root.displayName;var we=require("react/jsx-runtime"),fd=({date:e,cusContent:o})=>{let t=null;return t=(0,ys.default)(e).lunar,(0,we.jsxs)(we.Fragment,{children:[o?o(e):e.getDate(),t&&(0,we.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},ud={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 gd({isShow:e,setIsShow:o,lang:t}){let a=Xa.useId();return(0,we.jsx)("div",{className:"w-full p-3 pt-0",children:(0,we.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,we.jsx)(ma,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:i=>{typeof i=="boolean"&&o(i)}}),(0,we.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"z-[1] cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var vd=e=>e.getDay()===0||e.getDay()===6;function ca({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:i="vi",cusContentDay:n,...s}){let[l,c]=Xa.useState(!0);return(0,we.jsx)(ws.DayPicker,{locale:i==="vi"?Ya.vi:Ya.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(tt({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(tt({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:r("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",i==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:vd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,we.jsx)(Za.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,we.jsx)(Za.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,we.jsx)(fd,{date:d.date,cusContent:n}),Months:({children:d})=>(0,we.jsxs)("div",{className:"w-full",children:[(0,we.jsx)("div",{className:r("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,we.jsx)(gd,{isShow:l,setIsShow:c,lang:i})]})},formatters:i==="vi"?ud:{},...s})}ca.displayName="Calendar";var Ka=require("@heroicons/react/16/solid"),da=require("date-fns"),Ps=require("lucide-react");var Ns=h(require("react"),1),Gt=h(require("@radix-ui/react-popover"),1);var Ji=require("react/jsx-runtime"),Vo=Gt.Root,Wo=Gt.Trigger,No=Ns.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},i)=>(0,Ji.jsx)(Gt.Portal,{children:(0,Ji.jsx)(Gt.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})}));No.displayName=Gt.Content.displayName;var ae=require("react/jsx-runtime"),Cs=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:i,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:c,calendarProps:d,popoverContentProps:p})=>{let u=d?.selected||null;return(0,ae.jsxs)("div",{children:[(0,ae.jsxs)(Vo,{...c,children:[(0,ae.jsx)(Wo,{asChild:!0,children:(0,ae.jsxs)(Ee,{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",(!u||!(u instanceof Date)&&typeof u=="object"&&(!("from"in u)||!u.from))&&"text-gray-500",i&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[(0,ae.jsx)("div",{className:"line-clamp-1 flex-1",children:u instanceof Date?(0,da.format)(u,s):u&&typeof u=="object"&&"from"in u&&"to"in u?(0,ae.jsx)(ae.Fragment,{children:u.from?u.to?(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)("span",{className:"date-from",children:(0,da.format)(u.from,s)})," ",(0,ae.jsx)("span",{className:"date-separator",children:"-"}),(0,ae.jsx)("span",{className:"date-to",children:(0,da.format)(u.to,s)})]}):(0,da.format)(u.from,s):o}):o}),e&&(0,ae.jsx)("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",i&&"text-red-500"),children:e}),(0,ae.jsx)(Ps.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,ae.jsx)(No,{className:"w-auto border-none !p-0",...p,children:(0,ae.jsx)(ca,{...d,defaultMonth:u&&typeof u=="object"&&"from"in u?u.from:u instanceof Date?u:void 0})})]}),a&&(0,ae.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[i?(0,ae.jsx)(Ka.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,ae.jsx)(Ka.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,ae.jsx)("span",{className:r(i?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var pa=require("react"),ti=require("@heroicons/react/16/solid"),Ds=require("date-fns");var kt=h(require("react"),1),$t=require("@heroicons/react/16/solid"),ks=require("@heroicons/react/24/outline"),E=h(require("@radix-ui/react-select"),1);var V=require("react/jsx-runtime"),Go=kt.forwardRef(({className:e,children:o,label:t,message:a,size:i,isError:n,disabled:s,...l},c)=>(0,V.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,V.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,V.jsx)(E.Root,{disabled:s,...l,children:o}),a&&(0,V.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,V.jsx)($t.XCircleIcon,{width:16,height:16}):(0,V.jsx)(ks.QuestionMarkCircleIcon,{width:16,height:16}),(0,V.jsx)("span",{className:r(i===2?"text-sm":"text-xs"),children:a})]})]})),$o=E.Value,Po=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(E.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,V.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,V.jsx)(E.Icon,{asChild:!0,children:(0,V.jsx)($t.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Po.displayName=E.Trigger.displayName;var Ja=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",e),...o,children:(0,V.jsx)($t.ChevronUpIcon,{className:"h-5 w-5"})}));Ja.displayName=E.ScrollUpButton.displayName;var ei=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.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,V.jsx)($t.ChevronDownIcon,{className:"h-5 w-5"})}));ei.displayName=E.ScrollDownButton.displayName;var Co=kt.forwardRef(({className:e,children:o,position:t="popper",...a},i)=>(0,V.jsx)(E.Portal,{children:(0,V.jsxs)(E.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,V.jsx)(Ja,{}),(0,V.jsx)(E.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,V.jsx)(ei,{})]})}));Co.displayName=E.Content.displayName;var jo=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsx)(E.Group,{ref:a,className:r("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),er=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.Label,{ref:t,className:r("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));er.displayName=E.Label.displayName;var jt=kt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(E.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,V.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,V.jsx)(E.ItemIndicator,{children:(0,V.jsx)($t.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,V.jsx)(E.ItemText,{children:o})]})),tr=kt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(E.Separator,{ref:t,className:r("-mx-1 my-1 h-px bg-muted",e),...o}));tr.displayName=E.Separator.displayName;var Rs=["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"],Ts=["January","February","March","April","May","June","July","August","September","October","November","December"],or=(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}},Ss=(e,o,t,a)=>{let i=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-i+1},(s,l)=>n-l)};var B=require("react/jsx-runtime"),Ms=({label:e,selected:o,onSelect:t,size:a=1,message:i,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:u=!1})=>{let[g,y]=(0,pa.useState)(o??null),I=Math.min(d,p),D=Math.max(d,p),z=l==="MM/yyyy",X=(M,be)=>{if(be===0){y(void 0),t?.(void 0);return}let re=g?.getFullYear()||new Date().getFullYear(),Ia=g?.getMonth()??0,go=g?.getDate()??1;M==="month"&&be!==null&&(Ia=be-1),M==="year"&&be!==null&&(re=be),z?go=1:M==="day"&&be!==null&&(go=be);let Gn=or(re,Ia+1).daysInMonth;go>Gn&&(go=1);let oa=new Date(re,Ia,go);(0,Ds.isValid)(oa)&&(y(oa),t?.(oa))},[oe,U]=(0,pa.useState)(!1),uo=M=>{U(M)};return(0,pa.useEffect)(()=>{y(o??null)},[o]),(0,B.jsxs)("div",{className:r("relative",s&&"cursor-no-drop"),children:[(0,B.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",oe&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",g?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,B.jsx)("span",{className:r("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,B.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!z&&(0,B.jsxs)(Go,{value:g?g.getDate().toString().padStart(2,"0"):"",onValueChange:M=>X("day",parseInt(M,10)),onOpenChange:uo,className:"w-[30%]",children:[(0,B.jsx)(Po,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!u&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:or(g?.getFullYear()||new Date().getFullYear(),(g?.getMonth()??0)+1).daysInMonth},(M,be)=>(be+1).toString().padStart(2,"0")).map(M=>(0,B.jsx)(jt,{value:M,children:M},M))]})})]}),(0,B.jsxs)(Go,{value:g?(g.getMonth()+1).toString():"",onValueChange:M=>X("month",parseInt(M,10)),onOpenChange:uo,className:r(z?"w-1/2":"w-2/5"),children:[(0,B.jsx)(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!u&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(M,be)=>be+1).map(M=>(0,B.jsx)(jt,{value:M.toString(),children:c==="vi"?Rs[M-1]:Ts[M-1]},M))]})})]}),(0,B.jsxs)(Go,{value:g?g.getFullYear().toString():"",onValueChange:M=>X("year",parseInt(M,10)),onOpenChange:uo,className:r(z?"w-1/2":"w-[30%]"),children:[(0,B.jsx)(Po,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,B.jsx)($o,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,B.jsx)(Co,{onCloseAutoFocus:M=>M.preventDefault(),children:(0,B.jsxs)(jo,{children:[!u&&(0,B.jsx)(jt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Ss(I,D).map(M=>(0,B.jsx)(jt,{value:M.toString(),children:M},M))]})})]})]})]}),i&&(0,B.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,B.jsx)(ti.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,B.jsx)(ti.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,B.jsx)("span",{className:r(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:i})]})]})};var ko=h(require("react"),1),ee=h(require("@radix-ui/react-alert-dialog"),1);var Ue=require("react/jsx-runtime"),Is=ee.Root,As=ee.Trigger,ar=ee.Portal,oi=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.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}));oi.displayName=ee.Overlay.displayName;var ir=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsxs)(ar,{children:[(0,Ue.jsx)(oi,{}),(0,Ue.jsx)(ee.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})]}));ir.displayName=ee.Content.displayName;var rr=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-col space-y-2 text-left",e),...o});rr.displayName="AlertDialogHeader";var nr=({className:e,...o})=>(0,Ue.jsx)("div",{className:r("flex flex-row justify-end space-x-4",e),...o});nr.displayName="AlertDialogFooter";var sr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Title,{ref:t,className:r("text-lg text-gray-900 font-semibold",e),...o}));sr.displayName=ee.Title.displayName;var lr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Description,{ref:t,className:r("text-sm text-muted-foreground",e),...o}));lr.displayName=ee.Description.displayName;var mr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Action,{ref:t,className:r(tt({variant:"primary"}),"",e),...o}));mr.displayName=ee.Action.displayName;var cr=ko.forwardRef(({className:e,...o},t)=>(0,Ue.jsx)(ee.Cancel,{ref:t,className:r(tt({variant:"secondary"}),e),...o}));cr.displayName=ee.Cancel.displayName;var ai=require("react");var fa=require("react"),zs=require("motion/react");var Ls=h(require("@radix-ui/react-aspect-ratio"),1),q=Ls.Root;var $=require("react/jsx-runtime"),hd=({guideGroup:e,mockup:o})=>{let[t,a]=(0,fa.useState)(),[i,n]=(0,fa.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,fa.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,$.jsx)($.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,$.jsxs)("div",{className:"flex flex-nowrap justify-center mx-auto max-w-3xl",children:[(0,$.jsx)("div",{className:"flex-none w-64 h-auto",children:(0,$.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,$.jsxs)($.Fragment,{children:[(0,$.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,$.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,$.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,$.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,$.jsx)("div",{className:r("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,$.jsxs)(Pe,{setApi:a,children:[(0,$.jsx)(Ce,{className:"ml-0",children:e?.stepList.map((l,c)=>(0,$.jsx)(ye,{className:"pl-0",children:(0,$.jsx)(q,{ratio:o==="small"?540/960:540/1168,children:l?.image&&(0,$.jsx)("img",{src:l.image,className:"object-contain size-full",alt:l.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":"0","data-puck-array-field":"stepList","data-puck-array-index-nested":c?.toString()??"","data-puck-nested-field":"image"})})},c))}),(0,$.jsx)(bo,{className:"left-1 text-white border-none bg-gray-900/30 hover:bg-gray-900/40 disabled:hidden"}),(0,$.jsx)(yo,{className:"right-1 text-white border-none bg-gray-900/30 hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,$.jsx)("div",{className:"flex flex-auto pt-4 pl-12",children:(0,$.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((l,c)=>(0,$.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,$.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,$.jsx)("div",{className:r("text-sm font-medium",c+1===i?"text-pink-500":"text-gray-900"),children:v(l.title)}),l.content&&(0,$.jsx)(zs.motion.div,{initial:"closed",animate:c+1===i?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,$.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:v(l.content)})})]},c))})})]})})},dr=hd;var Qt=require("react"),pr=require("@heroicons/react/20/solid"),Es=h(require("embla-carousel-autoplay"),1);var x=require("react/jsx-runtime"),xd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[i,n]=(0,Qt.useState)(0),[s,l]=(0,Qt.useState)();return(0,Qt.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)(He,{position:"bottom",height:"full",children:[(0,x.jsx)(vo,{children:(0,x.jsx)(ho,{className:"line-clamp-1",children:t?.title})}),(0,x.jsxs)(ot,{className:"grid overflow-hidden p-0",children:[(0,x.jsx)(Pe,{setApi:l,className:"grid overflow-hidden",children:(0,x.jsx)(Ce,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,x.jsx)(ye,{className:"pl-0 w-full h-full",children:(0,x.jsxs)("div",{className:"flex overflow-y-auto flex-col h-full",children:[(0,x.jsx)("div",{className:"flex relative flex-none justify-center p-5 w-full bg-gray-100",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)(q,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,x.jsx)("img",{src:c.image,className:"object-contain size-full",alt:c.title})})})]})})}),(0,x.jsxs)("div",{className:"p-5 pb-12",children:[(0,x.jsx)("div",{className:"font-semibold",children:v(c.title)}),c?.content&&(0,x.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:v(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))})]})]})})},bd=({dataGuide:e,mockup:o,isStep:t})=>{let[a,i]=(0,Qt.useState)(!1),[n,s]=(0,Qt.useState)(null),l=(0,Qt.useRef)((0,Es.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:"grid grid-cols-1 -mx-5 md:mx-0",children:e.map((d,p)=>(0,x.jsxs)("div",{className:"flex relative flex-nowrap items-center pl-5 space-x-4 cursor-pointer",onClick:()=>c(p),children:[(0,x.jsx)("div",{className:"flex overflow-hidden justify-center p-2 pb-0 w-20 h-28 bg-gray-100 rounded-t-lg borde",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,x.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"object-cover object-top w-full h-full",alt:d.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":p,"data-puck-nested-field":"avatar"})}),(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:v(d.title)}),d?.description&&(0,x.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:v(d.description)})]}),(0,x.jsx)("div",{className:"absolute right-4 top-1/2 text-gray-500 -translate-y-1/2",children:(0,x.jsx)(pr.ChevronRightIcon,{className:"w-6 h-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,x.jsxs)("div",{className:"flex flex-col flex-wrap gap-y-6 justify-center mx-auto max-w-3xl",children:[(0,x.jsx)("div",{className:"overflow-hidden relative flex-none w-full max-h-96",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 w-72 h-auto",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)(Pe,{plugins:[l.current],children:(0,x.jsx)(Ce,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,x.jsx)(ye,{className:"pl-0",onClick:()=>c(0),children:(0,x.jsx)(q,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,x.jsx)("img",{src:d.image,className:"object-contain size-full",alt:d.title,"data-puck-editable":"true","data-puck-component":"GuideSection","data-puck-field":"dataGuide","data-puck-array-index":0,"data-puck-array-field":"stepList","data-puck-array-index-nested":p?p?.toString():"","data-puck-nested-field":"image"})})},p))})})})]})})}),(0,x.jsx)("div",{className:"flex flex-none justify-center w-full",children:(0,x.jsxs)(Ne,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,x.jsx)(pr.ChevronRightIcon,{className:"ml-1 w-5 h-5"})]})})]}),a&&(0,x.jsx)(xd,{open:a,setOpenDialog:i,dataStep:n,mockup:o})]})},Hs=bd;var Z=require("react/jsx-runtime"),_s=({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,Z.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,Z.jsx)("path",{d:t.d,fill:"currentColor"})})},fr=(0,ai.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:i,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:c}=o||{},[d,p]=(0,ai.useState)(t?.[0]?.title||"");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:r(e?.className)}),t&&t?.length>0&&(0,Z.jsxs)(zo,{children:[(0,Z.jsx)(ut,{lessThan:"md",children:(0,Z.jsx)(Hs,{dataGuide:t,mockup:i,isStep:n})}),(0,Z.jsx)(ut,{greaterThan:"sm",children:t?.length>1?(0,Z.jsxs)(Ct,{defaultValue:t[0]?.title,onValueChange:u=>p(u),children:[(0,Z.jsxs)(yt,{showGradientOverlay:s,gradientOverlayColor:l,className:c,children:[(0,Z.jsx)(wt,{className:"mb-6 text-center",children:(0,Z.jsx)(it,{className:r("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((u,g)=>{let y=g===t.length-1,I=d===u?.title||"";return(0,Z.jsxs)(rt,{value:u.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":"",I&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&g!==0&&(0,Z.jsx)(_s,{direction:"left",className:r("right-full top-0",I?"text-pink-500":"text-pink-100")}),u.title,n&&!y&&(0,Z.jsx)(_s,{direction:"right",className:r("left-full top-0",I?"text-pink-500":"text-pink-100")})]},u.title+g)})})}),(0,Z.jsx)(Nt,{}),(0,Z.jsx)(Pt,{})]}),t.map((u,g)=>(0,Z.jsx)(nt,{value:u.title,children:(0,Z.jsx)(dr,{guideGroup:u,mockup:i})},u.title+g))]}):t?.length===1&&t[0]&&(0,Z.jsx)(dr,{guideGroup:t[0],mockup:i})})]}),a&&(0,Z.jsx)(C,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var to=require("react/jsx-runtime"),yd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,mockup:n,isStep:s})=>{switch(e){case 1:return(0,to.jsx)(fr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:n,isStep:s});default:return(0,to.jsx)(fr,{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,to.jsx)(to.Fragment,{children:yd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:i,mockup:n,isStep:s})}),Fs=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:i,className:n,background:s,template:l=1,mockup:c="default",isStep:d=!1})=>(0,to.jsx)(J,{className:r(n),background:s,idSection:e,children:(0,to.jsx)(wd,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:i,mockup:c,isStep:d})});var ii=require("lucide-react");var ve=require("react/jsx-runtime");function ur({current:e,total:o,onChange:t}){let a=i=>(0,ve.jsx)("li",{children:(0,ve.jsx)("button",{className:r(xo({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(xo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ve.jsx)(ii.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(xo({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(xo({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(xo({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ve.jsx)(ii.ChevronRight,{className:"h-4 w-4"})})})]})})}var Bs=require("react"),Os=require("@heroicons/react/24/outline"),Vs=require("@heroicons/react/24/solid");var Rt=require("react/jsx-runtime"),Ws=(0,Bs.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:i,inputClassName:n,size:s,rows:l=3,...c},d)=>(0,Rt.jsxs)("div",{className:r("relative",i,o&&"mobase-text-area-error"),children:[a&&(0,Rt.jsx)("span",{className:r("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,Rt.jsx)("textarea",{disabled:e,ref:d,className:r("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...c}),t&&(0,Rt.jsxs)("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?(0,Rt.jsx)(Vs.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,Rt.jsx)(Os.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,Rt.jsx)("span",{className:r("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,Rt.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
  }
@@ -298,7 +298,7 @@
298
298
  .mark-vertical-marquee {
299
299
  mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
300
300
  }
301
- `})]})};var Et=require("react/jsx-runtime"),Pp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,Et.jsx)(yn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,Et.jsx)(Qm,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,Et.jsx)(Wm,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,Et.jsx)(yn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Cp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,Et.jsx)(Et.Fragment,{children:Pp({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Um=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>(0,Et.jsx)(J,{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,Et.jsx)(Cp,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});var G=require("react/jsx-runtime"),Nn=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>(0,G.jsx)(gt,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>(0,G.jsxs)(vt,{value:n.title,className:"last:border-none",children:[(0,G.jsx)(ht,{className:"md:text-lg",children:n.title}),(0,G.jsx)(xt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:v(n.description)})]},s))});return(0,G.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,G.jsx)("div",{className:"relative",children:(0,G.jsxs)("div",{className:"md:sticky md:top-16",children:[o&&(0,G.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,G.jsx)(C,{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,G.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,G.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},qm=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=c=>(0,G.jsx)(gt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((d,p)=>(0,G.jsxs)(vt,{value:d.title,className:"last:border-none",children:[(0,G.jsx)(ht,{className:"md:text-lg",children:d.title}),(0,G.jsx)(xt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:v(d.description)})]},p))});return(0,G.jsxs)(G.Fragment,{children:[o&&(0,G.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,G.jsxs)(Ct,{defaultValue:e[0]?.title,children:[e?.length>1&&(0,G.jsxs)(yt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[(0,G.jsx)(wt,{className:"mb-3 text-center",children:(0,G.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,d)=>(0,G.jsx)(rt,{value:c.title,children:c.title},c.title+d))})}),(0,G.jsx)(Nt,{}),(0,G.jsx)(Pt,{})]}),e.map((c,d)=>(0,G.jsx)(nt,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:l(c)},c.title+d))]}),t&&(0,G.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};var Yt=require("react/jsx-runtime"),kp=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return(0,Yt.jsx)(Nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return(0,Yt.jsx)(qm,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return(0,Yt.jsx)(Nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Rp=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>(0,Yt.jsx)(Yt.Fragment,{children:kp({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),Xm=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>(0,Yt.jsx)(J,{className:t,idSection:i,background:a,children:(0,Yt.jsx)(Rp,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});var Si=h(require("react"),1),Ym=require("@heroicons/react/20/solid");var _=require("react/jsx-runtime"),Tp=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,_.jsxs)("picture",{children:[(0,_.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,_.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,_.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,_.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,_.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Ne,{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,_.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,_.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Pn=(0,Si.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,u,g)=>{p?.preventDefault(),p?.stopPropagation(),a?a(u):window.open(g,"_blank")},d=(p,u)=>(0,_.jsxs)("div",{children:[(0,_.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((g,y)=>(0,_.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,_.jsx)("div",{onClick:I=>c(I,g?.id,g?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",p?.classNameItem),children:(0,_.jsx)(Tp,{news:g})},g?.id)},y))}),p?.isShowBtn&&(0,_.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,_.jsxs)(je,{action:p?.btnUrl||i&&(()=>i?.(u)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[v(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,_.jsx)(Eo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,_.jsx)(Ym.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||u);return(0,_.jsxs)(Si.default.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:r(e?.className)}),t?.length>1?(0,_.jsxs)(Ct,{defaultValue:t[0]?.title,children:[(0,_.jsxs)(yt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,_.jsx)(wt,{className:"mb-6 text-center",children:(0,_.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,u)=>(0,_.jsx)(rt,{value:p.title,children:p.title},p.title+u))})}),(0,_.jsx)(Nt,{}),(0,_.jsx)(Pt,{})]}),t.map((p,u)=>(0,_.jsx)(nt,{value:p.title,children:d(p,u)},p.title+u))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var co=require("react/jsx-runtime"),Sp=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,co.jsx)(Pn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,co.jsx)(Pn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Dp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,co.jsx)(co.Fragment,{children:Sp({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),Zm=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,co.jsx)(J,{className:r(i),background:n,idSection:e,children:(0,co.jsx)(Dp,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:c})});var pe=require("react/jsx-runtime"),Km=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,pe.jsxs)("div",{className:"block overflow-hidden relative p-6 bg-pink-50 rounded-2xl md:px-10 md:py-14 lg:overflow-visible",style:{background:o?.background},children:[e&&(0,pe.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,pe.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Mp=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,pe.jsxs)("div",{className:"block grid overflow-hidden relative grid-cols-1 gap-6 p-6 pb-0 bg-pink-700 rounded-2xl md:grid-cols-2 md:px-10 md:pb-0 md:pt-0 lg:overflow-visible",style:o?.background?{background:o.background}:{},children:[(0,pe.jsxs)("div",{className:"flex flex-col justify-center md:py-14",children:[e&&(0,pe.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,pe.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,pe.jsx)("div",{className:"self-end mx-auto w-full max-w-sm md:ml-auto md:mr-0 md:pt-10",children:a&&(0,pe.jsx)(q,{ratio:4/3,children:(0,pe.jsx)("img",{src:a.src,alt:a.alt,className:"object-contain w-full h-full rounded-md","data-puck-editable":"true","data-puck-component":"CTASection","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})})]}),Ip=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return(0,pe.jsx)(Km,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return(0,pe.jsx)(Mp,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return(0,pe.jsx)(Km,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},Ap=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>(0,pe.jsx)(pe.Fragment,{children:Ip({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),Jm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>(0,pe.jsx)(J,{className:t,idSection:a,background:o,children:(0,pe.jsx)(Ap,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});var Cn=h(require("react"),1);var Ke=require("react/jsx-runtime"),Lp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ke.jsxs)("div",{className:"text-center",children:[(0,Ke.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:v(t??"")}),(0,Ke.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:v(o??"")}),a&&(0,Ke.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:v(a??"")})]})},Di=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ke.jsxs)(Cn.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-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",children:e?.map((a,i)=>(0,Ke.jsx)(Cn.default.Fragment,{children:(0,Ke.jsx)(Lp,{metric:a})},i))}),o&&(0,Ke.jsx)(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var kn=h(require("react"),1);var Je=require("react/jsx-runtime"),zp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Je.jsxs)("div",{className:"text-center md:text-left",children:[(0,Je.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:v(t??"")}),(0,Je.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:v(o??"")}),a&&(0,Je.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:v(a??"")})]})},Rn=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Je.jsxs)(kn.default.Fragment,{children:[t&&(0,Je.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,Je.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,Je.jsx)(kn.default.Fragment,{children:(0,Je.jsx)(zp,{metric:a})},i))}),o&&(0,Je.jsx)(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Zt=require("react/jsx-runtime"),Ep=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,Zt.jsx)(Di,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,Zt.jsx)(Rn,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,Zt.jsx)(Di,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Hp=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,Zt.jsx)(Zt.Fragment,{children:Ep({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),ec=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:i,className:n,template:s})=>(0,Zt.jsx)(J,{className:r(n),background:i,idSection:e,children:(0,Zt.jsx)(Hp,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});var tc=require("react"),Sa=require("react/jsx-runtime"),oc=(0,tc.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 ic=require("react");var et=require("react/jsx-runtime"),_p=()=>(0,et.jsx)("div",{className:"p-3 border rounded-lg",children:(0,et.jsxs)("div",{className:"flex items-center gap-3",children:[(0,et.jsx)(Ta,{className:"rounded-md h-9 w-9 "}),(0,et.jsx)("div",{className:"flex-1",children:(0,et.jsx)(Ta,{className:"w-48 h-5 "})}),(0,et.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Fp(){return(0,et.jsx)(et.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,et.jsx)(_p,{},o))})}var ac=Fp;var Re=require("react/jsx-runtime"),Bp=({paymentMethod:e})=>(0,Re.jsx)(ka,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,Re.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Re.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,Re.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,Re.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,Re.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,Re.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,ic.useCallback)(s=>a?.(s),[a]);return(0,Re.jsxs)(Re.Fragment,{children:[e&&(0,Re.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,Re.jsx)(ac,{}):(0,Re.jsx)(Ca,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,Re.jsx)(Bp,{paymentMethod:s},s.id))})]})};var Tn=require("react");var Dn=require("react/jsx-runtime"),Op=(0,Tn.forwardRef)(({children:e,className:o},t)=>(0,Dn.jsx)("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),Sn=(0,Tn.forwardRef)(({children:e,className:o,...t},a)=>(0,Dn.jsx)(Op,{ref:a,className:o,...t,children:e}));Sn.displayName="Payment";var nc=require("react");var Da=require("react/jsx-runtime"),sc=(0,nc.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 lc=require("react");var cc=require("react/jsx-runtime"),mc=(0,lc.forwardRef)(({className:e,children:o},t)=>(0,cc.jsx)("div",{className:r("pb-5",e),ref:t,children:o}));var pc=require("react");var Mi=require("@heroicons/react/20/solid");var K=require("react/jsx-runtime"),Vp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,K.jsx)(Xo,{message:o,type:"success",icon:(0,K.jsx)(Mi.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Wp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,K.jsx)(Xo,{message:o,type:"error",icon:(0,K.jsx)(Mi.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Gp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,K.jsx)(Xo,{message:o,type:"neutral"})]}),dc=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,K.jsx)(Vp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,K.jsx)(Wp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,K.jsx)(Gp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var Ii=require("react/jsx-runtime"),fc=(0,pc.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>(0,Ii.jsxs)("div",{ref:s,className:r("rounded-lg p-4",e),children:[(0,Ii.jsx)(dc,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));var Li=require("react");var Jo=require("react/jsx-runtime"),Ai=({content:e})=>(0,Jo.jsxs)("picture",{children:[(0,Jo.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,Jo.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,Jo.jsx)(je,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var po=require("react/jsx-runtime"),$p=({template:e,content:o})=>{switch(e){case 1:return(0,po.jsx)(Ai,{content:o});default:return(0,po.jsx)(Ai,{content:o})}},uc=(0,Li.forwardRef)(({template:e,content:o},t)=>((0,Li.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,po.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,po.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,po.jsx)("div",{className:"content",children:$p({template:e,content:o})})}),(0,po.jsx)("style",{children:`
301
+ `})]})};var Et=require("react/jsx-runtime"),Pp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,Et.jsx)(yn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,Et.jsx)(Qm,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,Et.jsx)(Wm,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,Et.jsx)(yn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},Cp=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,Et.jsx)(Et.Fragment,{children:Pp({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Um=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataTestimonials:n,dataButtons:s})=>(0,Et.jsx)(J,{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,Et.jsx)(Cp,{template:e,dataHeading:i,dataTestimonials:n,dataButtons:s})});var G=require("react/jsx-runtime"),Nn=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=i=>(0,G.jsx)(gt,{type:"single",collapsible:!0,defaultValue:i?.isActiveFistQuestion&&i?.contents?.[0]?.title||"",className:"w-full",children:i?.contents?.map((n,s)=>(0,G.jsxs)(vt,{value:n.title,className:"last:border-none",children:[(0,G.jsx)(ht,{className:"md:text-lg",children:n.title}),(0,G.jsx)(xt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:v(n.description)})]},s))});return(0,G.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,G.jsx)("div",{className:"relative",children:(0,G.jsxs)("div",{className:"md:sticky md:top-16",children:[o&&(0,G.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,G.jsx)(C,{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,G.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,G.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r("mt-3 md:hidden",t?.className),align:"center"})]})},qm=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:i=!0,gradientOverlayColor:n,className:s}=a||{},l=c=>(0,G.jsx)(gt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((d,p)=>(0,G.jsxs)(vt,{value:d.title,className:"last:border-none",children:[(0,G.jsx)(ht,{className:"md:text-lg",children:d.title}),(0,G.jsx)(xt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:v(d.description)})]},p))});return(0,G.jsxs)(G.Fragment,{children:[o&&(0,G.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,G.jsxs)(Ct,{defaultValue:e[0]?.title,children:[e?.length>=1&&(0,G.jsxs)(yt,{showGradientOverlay:i,gradientOverlayColor:n,className:s,children:[(0,G.jsx)(wt,{className:"mb-3 text-center",children:(0,G.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,d)=>(0,G.jsx)(rt,{value:c.title,children:c.title},c.title+d))})}),(0,G.jsx)(Nt,{}),(0,G.jsx)(Pt,{})]}),e.map((c,d)=>(0,G.jsx)(nt,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:l(c)},c.title+d))]}),t&&(0,G.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className),align:"center"})]})};var Yt=require("react/jsx-runtime"),kp=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})=>{switch(e){case 1:return(0,Yt.jsx)(Nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});case 2:return(0,Yt.jsx)(qm,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i});default:return(0,Yt.jsx)(Nn,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:i})}},Rp=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})=>(0,Yt.jsx)(Yt.Fragment,{children:kp({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:i})}),Xm=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:i,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>(0,Yt.jsx)(J,{className:t,idSection:i,background:a,children:(0,Yt.jsx)(Rp,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});var Si=h(require("react"),1),Ym=require("@heroicons/react/20/solid");var _=require("react/jsx-runtime"),Tp=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,_.jsxs)("picture",{children:[(0,_.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,_.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,_.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,_.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,_.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Ne,{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,_.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,_.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},Pn=(0,Si.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:i})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,u,g)=>{p?.preventDefault(),p?.stopPropagation(),a?a(u):window.open(g,"_blank")},d=(p,u)=>(0,_.jsxs)("div",{children:[(0,_.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((g,y)=>(0,_.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,_.jsx)("div",{onClick:I=>c(I,g?.id,g?.url),className:r("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",p?.classNameItem),children:(0,_.jsx)(Tp,{news:g})},g?.id)},y))}),p?.isShowBtn&&(0,_.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,_.jsxs)(je,{action:p?.btnUrl||i&&(()=>i?.(u)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[v(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,_.jsx)(Eo,{className:"animate-spin-loading ml-2 h-5 w-5"}):i&&!p?.btnUrl&&(0,_.jsx)(Ym.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||u);return(0,_.jsxs)(Si.default.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:r(e?.className)}),t?.length>1?(0,_.jsxs)(Ct,{defaultValue:t[0]?.title,children:[(0,_.jsxs)(yt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,_.jsx)(wt,{className:"mb-6 text-center",children:(0,_.jsx)(it,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,u)=>(0,_.jsx)(rt,{value:p.title,children:p.title},p.title+u))})}),(0,_.jsx)(Nt,{}),(0,_.jsx)(Pt,{})]}),t.map((p,u)=>(0,_.jsx)(nt,{value:p.title,children:d(p,u)},p.title+u))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var co=require("react/jsx-runtime"),Sp=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})=>{switch(e){case 1:return(0,co.jsx)(Pn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n});default:return(0,co.jsx)(Pn,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:i,onClickLoadMore:n})}},Dp=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})=>(0,co.jsx)(co.Fragment,{children:Sp({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:i,onClickLoadMore:n})}),Zm=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:i,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,co.jsx)(J,{className:r(i),background:n,idSection:e,children:(0,co.jsx)(Dp,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:c})});var pe=require("react/jsx-runtime"),Km=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,pe.jsxs)("div",{className:"block overflow-hidden relative p-6 bg-pink-50 rounded-2xl md:px-10 md:py-14 lg:overflow-visible",style:{background:o?.background},children:[e&&(0,pe.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,pe.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Mp=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,pe.jsxs)("div",{className:"block grid overflow-hidden relative grid-cols-1 gap-6 p-6 pb-0 bg-pink-700 rounded-2xl md:grid-cols-2 md:px-10 md:pb-0 md:pt-0 lg:overflow-visible",style:o?.background?{background:o.background}:{},children:[(0,pe.jsxs)("div",{className:"flex flex-col justify-center md:py-14",children:[e&&(0,pe.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,pe.jsx)(C,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:r(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,pe.jsx)("div",{className:"self-end mx-auto w-full max-w-sm md:ml-auto md:mr-0 md:pt-10",children:a&&(0,pe.jsx)(q,{ratio:4/3,children:(0,pe.jsx)("img",{src:a.src,alt:a.alt,className:"object-contain w-full h-full rounded-md","data-puck-editable":"true","data-puck-component":"CTASection","data-puck-field":"dataMedia","data-puck-nested-field":"src"})})})]}),Ip=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>{switch(e){case 1:return(0,pe.jsx)(Km,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});case 2:return(0,pe.jsx)(Mp,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i});default:return(0,pe.jsx)(Km,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}},Ap=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})=>(0,pe.jsx)(pe.Fragment,{children:Ip({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:i})}),Jm=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})=>(0,pe.jsx)(J,{className:t,idSection:a,background:o,children:(0,pe.jsx)(Ap,{template:e,dataHeading:i,dataCTA:n,dataButtons:s,dataMedia:l})});var Cn=h(require("react"),1);var Ke=require("react/jsx-runtime"),Lp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Ke.jsxs)("div",{className:"text-center",children:[(0,Ke.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:v(t??"")}),(0,Ke.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:v(o??"")}),a&&(0,Ke.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:v(a??"")})]})},Di=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Ke.jsxs)(Cn.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:r("grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",e?.length===2&&"md:grid-cols-4 md:[&>*:first-child]:col-start-2",e?.length===4&&"md:grid-cols-4"),children:e?.map((a,i)=>(0,Ke.jsx)(Cn.default.Fragment,{children:(0,Ke.jsx)(Lp,{metric:a})},i))}),o&&(0,Ke.jsx)(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var kn=h(require("react"),1);var Je=require("react/jsx-runtime"),zp=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,Je.jsxs)("div",{className:"bg-gray-100 p-4 text-center md:p-8",children:[(0,Je.jsx)("div",{className:"text-2xl font-bold text-gray-900 md:text-3xl",children:v(t??"")}),(0,Je.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-500",children:v(o??"")}),a&&(0,Je.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:v(a??"")})]})},Rn=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,Je.jsxs)(kn.default.Fragment,{children:[t&&(0,Je.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,Je.jsx)("div",{className:r("grid grid-cols-2 gap-px overflow-hidden rounded-lg md:rounded-xl md:py-0 lg:grid-cols-4",e?.length===2&&"lg:grid-cols-2",e?.length===3&&"lg:grid-cols-3"),children:e?.map((a,i)=>(0,Je.jsx)(kn.default.Fragment,{children:(0,Je.jsx)(zp,{metric:a})},i))}),o&&(0,Je.jsx)(C,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:r(o?.className,"mt-8 md:mt-10"),align:"center"})]});var Zt=require("react/jsx-runtime"),Ep=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,Zt.jsx)(Di,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,Zt.jsx)(Rn,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,Zt.jsx)(Di,{dataMetrics:o,dataButtons:a,dataHeading:e})}},Hp=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,Zt.jsx)(Zt.Fragment,{children:Ep({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),ec=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:i,className:n,template:s})=>(0,Zt.jsx)(J,{className:r(n),background:i,idSection:e,children:(0,Zt.jsx)(Hp,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});var tc=require("react"),Sa=require("react/jsx-runtime"),oc=(0,tc.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 ic=require("react");var et=require("react/jsx-runtime"),_p=()=>(0,et.jsx)("div",{className:"p-3 border rounded-lg",children:(0,et.jsxs)("div",{className:"flex items-center gap-3",children:[(0,et.jsx)(Ta,{className:"rounded-md h-9 w-9 "}),(0,et.jsx)("div",{className:"flex-1",children:(0,et.jsx)(Ta,{className:"w-48 h-5 "})}),(0,et.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Fp(){return(0,et.jsx)(et.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,et.jsx)(_p,{},o))})}var ac=Fp;var Re=require("react/jsx-runtime"),Bp=({paymentMethod:e})=>(0,Re.jsx)(ka,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,Re.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Re.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,Re.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,Re.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,Re.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,Re.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,ic.useCallback)(s=>a?.(s),[a]);return(0,Re.jsxs)(Re.Fragment,{children:[e&&(0,Re.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,Re.jsx)(ac,{}):(0,Re.jsx)(Ca,{defaultValue:i??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,Re.jsx)(Bp,{paymentMethod:s},s.id))})]})};var Tn=require("react");var Dn=require("react/jsx-runtime"),Op=(0,Tn.forwardRef)(({children:e,className:o},t)=>(0,Dn.jsx)("div",{ref:t,className:r("grid grid-cols-1 gap-4 bg-white",o),children:e})),Sn=(0,Tn.forwardRef)(({children:e,className:o,...t},a)=>(0,Dn.jsx)(Op,{ref:a,className:o,...t,children:e}));Sn.displayName="Payment";var nc=require("react");var Da=require("react/jsx-runtime"),sc=(0,nc.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 lc=require("react");var cc=require("react/jsx-runtime"),mc=(0,lc.forwardRef)(({className:e,children:o},t)=>(0,cc.jsx)("div",{className:r("pb-5",e),ref:t,children:o}));var pc=require("react");var Mi=require("@heroicons/react/20/solid");var K=require("react/jsx-runtime"),Vp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,K.jsx)(Xo,{message:o,type:"success",icon:(0,K.jsx)(Mi.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Wp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,K.jsx)(Xo,{message:o,type:"error",icon:(0,K.jsx)(Mi.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),Gp=({iconPaymentResult:e,message:o="",title:t=""})=>(0,K.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,K.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,K.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,K.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,K.jsx)(Xo,{message:o,type:"neutral"})]}),dc=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,K.jsx)(Vp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,K.jsx)(Wp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,K.jsx)(Gp,{status:e,title:o,message:t,iconPaymentResult:a||(0,K.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var Ii=require("react/jsx-runtime"),fc=(0,pc.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:i,children:n},s)=>(0,Ii.jsxs)("div",{ref:s,className:r("rounded-lg p-4",e),children:[(0,Ii.jsx)(dc,{iconPaymentResult:i,title:a,message:t,status:o}),n]}));var Li=require("react");var Jo=require("react/jsx-runtime"),Ai=({content:e})=>(0,Jo.jsxs)("picture",{children:[(0,Jo.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,Jo.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,Jo.jsx)(je,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var po=require("react/jsx-runtime"),$p=({template:e,content:o})=>{switch(e){case 1:return(0,po.jsx)(Ai,{content:o});default:return(0,po.jsx)(Ai,{content:o})}},uc=(0,Li.forwardRef)(({template:e,content:o},t)=>((0,Li.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,po.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,po.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,po.jsx)("div",{className:"content",children:$p({template:e,content:o})})}),(0,po.jsx)("style",{children:`
302
302
  .container-topbar .content {
303
303
  width: 100%;
304
304
  aspect-ratio: 1088/50;