@momo-webplatform/mobase 0.2.99 → 0.2.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
transform: translate3d(0, 30%, 0);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
`})]}),so=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...c})=>(0,y.jsx)(Ue,{...c,children:(0,y.jsx)(Be,{className:i("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:(0,y.jsx)(st,{className:"p-0",children:(0,y.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,y.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,y.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children: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,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,y.jsxs)("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),(0,y.jsx)("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,y.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,y.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,y.jsxs)("div",{className:"relative",children:[l&&(0,y.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,y.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,y.jsx)(qd,{img:r,isQrForAll:l,children:n&&(0,y.jsx)(As.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 Fs=require("react");var $o=require("react"),Ls=v(require("ua-parser-js"),1),Xd=()=>(0,Ls.default)().device.type==="mobile",Yd=typeof window<"u"?$o.useLayoutEffect:$o.useEffect,Go=()=>{let[e,o]=(0,$o.useState)(!1);return Yd(()=>{o(Xd())},[]),e};var Qt=require("react/jsx-runtime"),qe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,c]=(0,Fs.useState)(!1),d=Go(),p=!!a?.qrLink,f=()=>{let q=p?a?.qrLink:e;return typeof q=="string"?q.trim():""},u=()=>{let q=f();!q&&typeof e!="function"||(typeof e=="function"?e():window.open(q,o?"_blank":"_self"))},b=(q,Z=0)=>{let Q=document.querySelector(q);if(!Q)return;let T=Q.getBoundingClientRect().top+window.scrollY-Z;window.scrollTo({top:T,behavior:"smooth"})},D=()=>{typeof e=="string"&&e.startsWith("#")?b(e,t):u()},R=()=>(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(_e,{...s,className:r,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Qt.jsx)(so,{...a,open:l,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?R():(0,Qt.jsx)(_e,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):R():(0,Qt.jsx)(_e,{...s,onClick:D,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var jo=v(require("react"),1),Za=require("@radix-ui/react-icons"),zs=require("@radix-ui/react-slot");var Xe=require("react/jsx-runtime"),ui=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));ui.displayName="Breadcrumb";var vi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));vi.displayName="BreadcrumbList";var hi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));hi.displayName="BreadcrumbItem";var xi=jo.forwardRef(({asChild:e,className:o,...t},a)=>(0,Xe.jsx)(e?zs.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));xi.displayName="BreadcrumbLink";var bi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));bi.displayName="BreadcrumbPage";var yi=({children:e,className:o,...t})=>(0,Xe.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,Xe.jsx)(Za.ChevronRightIcon,{className:"w-2 h-2"})});yi.displayName="BreadcrumbSeparator";var wi=({className:e,...o})=>(0,Xe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Xe.jsx)(Za.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Xe.jsx)("span",{className:"sr-only",children:"More"})]});wi.displayName="BreadcrumbElipssis";var or=v(require("html-react-parser"),1);var ua=require("react");var Qo=require("react/jsx-runtime"),Ni=(0,ua.createContext)({align:"center"}),Ka=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return(0,Qo.jsx)("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Ja=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=(0,ua.useContext)(Ni);return(0,Qo.jsx)(s,{className:i("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",l[t],c[o],a&&"truncate",r),children:n})},er=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=(0,ua.useContext)(Ni);return(0,Qo.jsx)("div",{className:i(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",r),children:n})},tr=({className:e,align:o="center",children:t})=>(0,Qo.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Qo.jsx)(Ni.Provider,{value:{align:o},children:t})});var Ct=require("react/jsx-runtime"),Y=({idSection:e,className:o,background:t,children:a})=>(0,Ct.jsx)("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,Ct.jsx)("div",{className:"wrapper relative",children:a})}),w=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="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,Ct.jsxs)(tr,{align:e,className:l,children:[o&&(0,Ct.jsx)(Ka,{color:c,children:o}),t&&(0,Ct.jsx)(Ja,{tagHeading:r,color:d,size:s,children:(0,or.default)(t)}),a&&(0,Ct.jsx)(er,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,or.default)(a)})]})},N=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,Ct.jsx)("div",{className:i("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((r,n)=>{if(!r)return null;let{btnName:s,...l}=r;return(0,Ct.jsx)(qe,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:(0,or.default)(s)},n)})});var sr=v(require("react"),1),Gs=require("@heroicons/react/20/solid"),js=v(require("html-react-parser"),1);var Fe=require("react"),ar=require("lucide-react");var Es=v(require("react"),1),Hs=require("@radix-ui/react-slot"),_s=require("class-variance-authority");var Bs=require("react/jsx-runtime"),Co=(0,_s.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"}}),ve=Es.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Hs.Slot:"button",c=i(Co({variant:o,size:t,className:e}));return(0,Bs.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});ve.displayName="IconButton";var Le=require("react/jsx-runtime"),rr=(0,Fe.createContext)(void 0),Rt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=(0,Fe.useRef)(null),[n,s]=(0,Fe.useState)({left:!1,right:!1}),l=(0,Fe.useCallback)(()=>{let d=r.current;if(d){let{scrollLeft:p,scrollWidth:f,clientWidth:u}=d;s({left:p>0,right:Math.ceil(p+u)<f})}},[]);(0,Fe.useEffect)(()=>{let d=r.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=r.current;if(p){let{scrollLeft:f,clientWidth:u,scrollWidth:b}=p,D=u*.7*(d==="left"?-1:1),R=f+D;R<0?R=0:R>b-u&&(R=b-u),p.scrollTo({left:R,behavior:"smooth"})}};return(0,Le.jsx)(rr.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Le.jsxs)("div",{className:i("relative w-full",t),children:[e&&(0,Le.jsxs)(Le.Fragment,{children:[n.left&&(0,Le.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,Le.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]})})},Tt=({className:e,children:o})=>{let t=(0,Fe.useContext)(rr);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Le.jsx)("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},kt=({className:e,children:o,...t})=>{let a=(0,Fe.useContext)(rr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Le.jsx)(ve,{className:i("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Le.jsx)(ar.ChevronLeft,{className:"h-4 w-4"})}):null},St=({className:e,children:o,...t})=>{let a=(0,Fe.useContext)(rr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Le.jsx)(ve,{className:i("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Le.jsx)(ar.ChevronRight,{className:"h-4 w-4"})}):null};var ir=v(require("react"),1),lt=v(require("@radix-ui/react-tabs"),1);var nr=require("react/jsx-runtime"),Dt=lt.Root,mt=ir.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,nr.jsx)(lt.List,{ref:r,className:i("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}));mt.displayName=lt.List.displayName;var ct=ir.forwardRef(({className:e,...o},t)=>(0,nr.jsx)(lt.Trigger,{ref:t,className:i("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}));ct.displayName=lt.Trigger.displayName;var dt=ir.forwardRef(({className:e,...o},t)=>(0,nr.jsx)(lt.Content,{ref:t,className:i("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}));dt.displayName=lt.Content.displayName;var Os=v(require("react"),1),Vs=require("@radix-ui/react-slot"),Ws=require("class-variance-authority");var $s=require("react/jsx-runtime"),Pi=(0,Ws.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"}}),Pe=Os.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Vs.Slot:"button",c=i(Pi({variant:o,size:t,className:e}));return(0,$s.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});Pe.displayName="TextButton";var A=require("react/jsx-runtime"),Zd=({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 pr-3 basis-1/2 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:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,A.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,A.jsx)(Pe,{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:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,A.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Pe,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,A.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,A.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},lr=(0,sr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,f,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(p,f)=>(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",p?.blogList?.length<3?"md:justify-center":""),children:p?.blogList?.map((u,b)=>(0,A.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,A.jsx)("div",{onClick:D=>c(D,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,A.jsx)(Zd,{blog:u})},u?.id)},b))}),p?.isShowBtn&&(0,A.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,A.jsxs)(qe,{action:r?()=>r?.(f):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[(0,js.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,A.jsx)(Vo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!p?.btnUrl&&(0,A.jsx)(Gs.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},p?.title||f);return(0,A.jsxs)(sr.default.Fragment,{children:[e&&(0,A.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?(0,A.jsxs)(Dt,{defaultValue:t[0]?.title,children:[(0,A.jsxs)(Rt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,A.jsx)(Tt,{className:"mb-6 text-center",children:(0,A.jsx)(mt,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((p,f)=>(0,A.jsx)(ct,{value:p.title,children:p.title},p.title+f))})}),(0,A.jsx)(kt,{}),(0,A.jsx)(St,{})]}),t.map((p,f)=>(0,A.jsx)(dt,{value:p.title,children:d(p,f)},p.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Ut=v(require("react"),1),cr=require("@heroicons/react/20/solid"),Ci=v(require("html-react-parser"),1);var J=v(require("react"),1),mr=require("@heroicons/react/20/solid"),Qs=v(require("embla-carousel-react"),1);var he=require("react/jsx-runtime"),Us=J.createContext(null);function va(){let e=J.useContext(Us);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Ce=J.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[c,d]=(0,Qs.default)({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[p,f]=J.useState(!1),[u,b]=J.useState(!1),D=J.useCallback(Z=>{Z&&(f(Z.canScrollPrev()),b(Z.canScrollNext()))},[]),R=J.useCallback(()=>{d?.scrollPrev()},[d]),M=J.useCallback(()=>{d?.scrollNext()},[d]),q=J.useCallback(Z=>{Z.key==="ArrowLeft"?(Z.preventDefault(),R()):Z.key==="ArrowRight"&&(Z.preventDefault(),M())},[R,M]);return J.useEffect(()=>{!d||!t||t(d)},[d,t]),J.useEffect(()=>{if(d)return D(d),d.on("reInit",D),d.on("select",D),()=>{d?.off("select",D)}},[d,D]),(0,he.jsx)(Us.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:R,scrollNext:M,canScrollPrev:p,canScrollNext:u},children:(0,he.jsx)("div",{ref:l,onKeyDownCapture:q,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});Ce.displayName="Carousel";var Re=J.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=va();return(0,he.jsx)("div",{ref:r,className:i("overflow-hidden",o),children:(0,he.jsx)("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Re.displayName="CarouselContent";var we=J.forwardRef(({className:e,...o},t)=>{let{orientation:a}=va();return(0,he.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});we.displayName="CarouselItem";var Ro=J.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=va();return(0,he.jsxs)(ve,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[(0,he.jsx)(mr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,he.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});Ro.displayName="CarouselPrevious";var To=J.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=va();return(0,he.jsxs)(ve,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[(0,he.jsx)(mr.ChevronRightIcon,{className:"h-6 w-6"}),(0,he.jsx)("span",{className:"sr-only",children:"Next slide"})]})});To.displayName="CarouselNext";var ko=J.forwardRef((e,o)=>{let{api:t}=va(),[,a]=J.useState(!1),r=J.useCallback(()=>a(l=>!l),[]);J.useEffect(()=>{if(t)return t.on("select",r),t.on("reInit",r),()=>{t.off("select",r),t.off("reInit",r)}},[t,r]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?(0,he.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,c)=>(0,he.jsx)(ve,{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,he.jsx)(he.Fragment,{})});ko.displayName="CarouselDots";var k=require("react/jsx-runtime"),Kd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,k.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,k.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,k.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,k.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Ci.default)(e?.description??"")}),(0,k.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Pe,{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,k.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,k.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Jd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,Ut.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Ce,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,k.jsx)(Re,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>(0,k.jsx)(we,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,k.jsx)("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",p),children:(0,k.jsx)(Kd,{blog:f})},f?.id)},f?.id))})}),s&&(0,k.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,k.jsxs)(qe,{action:c&&c,newTab:d,variant:"outline",children:[(0,Ci.default)(l||"Xem th\xEAm")," "]})})]})},ep=({carouselRef:e})=>(0,k.jsxs)(ve,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,k.jsx)(cr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,k.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),tp=({carouselRef:e})=>(0,k.jsxs)(ve,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,k.jsx)(cr.ChevronRightIcon,{className:"h-6 w-6"}),(0,k.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Ri=(0,Ut.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(d,p,f)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(f,"_blank")},[n,s]=(0,Ut.useState)(null),[,l]=(0,Ut.useState)(0),c=()=>n?(0,k.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,k.jsx)(ep,{carouselRef:n}),(0,k.jsx)(tp,{carouselRef:n})]}):(0,k.jsx)(k.Fragment,{});return(0,k.jsxs)(Ut.default.Fragment,{children:[(0,k.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,k.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),(0,k.jsx)(c,{})]}),(0,k.jsx)(Jd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});var qt=require("react/jsx-runtime"),op=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,qt.jsx)(lr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return(0,qt.jsx)(Ri,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,qt.jsx)(lr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},ap=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,qt.jsx)(qt.Fragment,{children:op({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),qs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,qt.jsx)(Y,{className:i("overflow-hidden",r),idSection:a,background:n,children:(0,qt.jsx)(ap,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:c})});var pr=v(require("react"),1),fr=require("date-fns/locale"),gr=require("lucide-react"),Zs=v(require("lunisolar"),1),Ks=require("react-day-picker");var Xs=v(require("react"),1),ha=v(require("@radix-ui/react-checkbox"),1),Ys=require("@heroicons/react/16/solid"),Ti=require("class-variance-authority");var dr=require("react/jsx-runtime"),rp=(0,Ti.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"}}),ip=(0,Ti.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),xa=Xs.forwardRef(({className:e,size:o,...t},a)=>(0,dr.jsx)(ha.Root,{ref:a,className:i(rp({size:o}),e),...t,children:(0,dr.jsx)(ha.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,dr.jsx)(Ys.CheckIcon,{className:i(ip({size:o}))})})}));xa.displayName=ha.Root.displayName;var Ne=require("react/jsx-runtime"),np=({date:e,cusContent:o})=>{let t=null;return t=(0,Zs.default)(e).lunar,(0,Ne.jsxs)(Ne.Fragment,{children:[o?o(e):e.getDate(),t&&(0,Ne.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},sp={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 lp({isShow:e,setIsShow:o,lang:t}){let a=pr.useId();return(0,Ne.jsx)("div",{className:"w-full p-3 pt-0",children:(0,Ne.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,Ne.jsx)(xa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,Ne.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 mp=e=>e.getDay()===0||e.getDay()===6;function ba({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,c]=pr.useState(!0);return(0,Ne.jsx)(Ks.DayPicker,{locale:r==="vi"?fr.vi:fr.enUS,showOutsideDays:t,className:i("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:i(nt({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:i("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:i(nt({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:mp},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,Ne.jsx)(gr.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,Ne.jsx)(gr.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,Ne.jsx)(np,{date:d.date,cusContent:n}),Months:({children:d})=>(0,Ne.jsxs)("div",{className:"w-full",children:[(0,Ne.jsx)("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,Ne.jsx)(lp,{isShow:l,setIsShow:c,lang:r})]})},formatters:r==="vi"?sp:{},...s})}ba.displayName="Calendar";var ur=require("@heroicons/react/16/solid"),ya=require("date-fns"),el=require("lucide-react");var Js=v(require("react"),1),Xt=v(require("@radix-ui/react-popover"),1);var ki=require("react/jsx-runtime"),Uo=Xt.Root,qo=Xt.Trigger,So=Js.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,ki.jsx)(Xt.Portal,{children:(0,ki.jsx)(Xt.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));So.displayName=Xt.Content.displayName;var re=require("react/jsx-runtime"),tl=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:c,calendarProps:d,popoverContentProps:p})=>{let f=d?.selected||null;return(0,re.jsxs)("div",{children:[(0,re.jsxs)(Uo,{...c,children:[(0,re.jsx)(qo,{asChild:!0,children:(0,re.jsxs)(_e,{variant:"secondary",className:i("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!f||!(f instanceof Date)&&typeof f=="object"&&(!("from"in f)||!f.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[(0,re.jsx)("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?(0,ya.format)(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?(0,re.jsx)(re.Fragment,{children:f.from?f.to?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("span",{className:"date-from",children:(0,ya.format)(f.from,s)})," ",(0,re.jsx)("span",{className:"date-separator",children:"-"}),(0,re.jsx)("span",{className:"date-to",children:(0,ya.format)(f.to,s)})]}):(0,ya.format)(f.from,s):o}):o}),e&&(0,re.jsx)("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),(0,re.jsx)(el.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,re.jsx)(So,{className:"w-auto border-none !p-0",...p,children:(0,re.jsx)(ba,{...d,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&(0,re.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?(0,re.jsx)(ur.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,re.jsx)(ur.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,re.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var wa=require("react"),xr=require("@heroicons/react/16/solid"),nl=require("date-fns");var Mt=v(require("react"),1),Yt=require("@heroicons/react/16/solid"),ol=require("@heroicons/react/24/outline"),F=v(require("@radix-ui/react-select"),1);var V=require("react/jsx-runtime"),Xo=Mt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},c)=>(0,V.jsxs)("div",{ref:c,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-red-500 [&>.select-mobase-button]:ring-1":"",r===2?"[&>.select-mobase-button]:text-base [&>.select-mobase-button]:h-12":""),children:[t&&(0,V.jsx)("span",{className:i("mobase-select-label absolute bg-white -top-2 px-1.5 left-2 text-xs text-gray-500 z-[1]",r===2&&"text-sm -top-2.5",n&&"text-red-500"),children:t}),(0,V.jsx)(F.Root,{disabled:s,...l,children:o}),a&&(0,V.jsxs)("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?(0,V.jsx)(Yt.XCircleIcon,{width:16,height:16}):(0,V.jsx)(ol.QuestionMarkCircleIcon,{width:16,height:16}),(0,V.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Yo=F.Value,Do=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(F.Trigger,{ref:a,className:i("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)(F.Icon,{asChild:!0,children:(0,V.jsx)(Yt.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));Do.displayName=F.Trigger.displayName;var vr=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,V.jsx)(Yt.ChevronUpIcon,{className:"h-5 w-5"})}));vr.displayName=F.ScrollUpButton.displayName;var hr=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1 bg-gradient-to-t from-white to-transparent",e),...o,children:(0,V.jsx)(Yt.ChevronDownIcon,{className:"h-5 w-5"})}));hr.displayName=F.ScrollDownButton.displayName;var Mo=Mt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,V.jsx)(F.Portal,{children:(0,V.jsxs)(F.Content,{ref:r,className:i("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)(vr,{}),(0,V.jsx)(F.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,V.jsx)(hr,{})]})}));Mo.displayName=F.Content.displayName;var Zo=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsx)(F.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Si=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Si.displayName=F.Label.displayName;var Zt=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(F.Item,{ref:a,className:i("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[(0,V.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,V.jsx)(F.ItemIndicator,{children:(0,V.jsx)(Yt.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,V.jsx)(F.ItemText,{children:o})]})),Di=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));Di.displayName=F.Separator.displayName;var al=["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"],rl=["January","February","March","April","May","June","July","August","September","October","November","December"],Mi=(e,o,t,a)=>{let r=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():r;return{daysInMonth:r,startDay:n,endDay:s}},il=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};var _=require("react/jsx-runtime"),sl=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:f=!1})=>{let[u,b]=(0,wa.useState)(o??null),D=Math.min(d,p),R=Math.max(d,p),M=l==="MM/yyyy",q=(T,K)=>{if(K===0){b(void 0),t?.(void 0);return}let O=u?.getFullYear()||new Date().getFullYear(),rt=u?.getMonth()??0,it=u?.getDate()??1;T==="month"&&K!==null&&(rt=K-1),T==="year"&&K!==null&&(O=K),M?it=1:T==="day"&&K!==null&&(it=K);let Ua=Mi(O,rt+1).daysInMonth;it>Ua&&(it=1);let da=new Date(O,rt,it);(0,nl.isValid)(da)&&(b(da),t?.(da))},[Z,Q]=(0,wa.useState)(!1),$t=T=>{Q(T)};return(0,wa.useEffect)(()=>{b(o??null)},[o]),(0,_.jsxs)("div",{className:i("relative",s&&"cursor-no-drop"),children:[(0,_.jsxs)("div",{className:i("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",Z&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",u?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,_.jsx)("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,_.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!M&&(0,_.jsxs)(Xo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:T=>q("day",parseInt(T,10)),onOpenChange:$t,className:"w-[30%]",children:[(0,_.jsx)(Do,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Mi(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(T,K)=>(K+1).toString().padStart(2,"0")).map(T=>(0,_.jsx)(Zt,{value:T,children:T},T))]})})]}),(0,_.jsxs)(Xo,{value:u?(u.getMonth()+1).toString():"",onValueChange:T=>q("month",parseInt(T,10)),onOpenChange:$t,className:i(M?"w-1/2":"w-2/5"),children:[(0,_.jsx)(Do,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(T,K)=>K+1).map(T=>(0,_.jsx)(Zt,{value:T.toString(),children:c==="vi"?al[T-1]:rl[T-1]},T))]})})]}),(0,_.jsxs)(Xo,{value:u?u.getFullYear().toString():"",onValueChange:T=>q("year",parseInt(T,10)),onOpenChange:$t,className:i(M?"w-1/2":"w-[30%]"),children:[(0,_.jsx)(Do,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),il(D,R).map(T=>(0,_.jsx)(Zt,{value:T.toString(),children:T},T))]})})]})]})]}),r&&(0,_.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,_.jsx)(xr.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,_.jsx)(xr.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,_.jsx)("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};var Io=v(require("react"),1),oe=v(require("@radix-ui/react-alert-dialog"),1);var Ye=require("react/jsx-runtime"),ll=oe.Root,ml=oe.Trigger,Ii=oe.Portal,br=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Overlay,{className:i("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));br.displayName=oe.Overlay.displayName;var Ai=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsxs)(Ii,{children:[(0,Ye.jsx)(br,{}),(0,Ye.jsx)(oe.Content,{ref:t,className:i("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));Ai.displayName=oe.Content.displayName;var Li=({className:e,...o})=>(0,Ye.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Li.displayName="AlertDialogHeader";var Fi=({className:e,...o})=>(0,Ye.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Fi.displayName="AlertDialogFooter";var zi=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));zi.displayName=oe.Title.displayName;var Ei=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ei.displayName=oe.Description.displayName;var Hi=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Action,{ref:t,className:i(nt({variant:"primary"}),"",e),...o}));Hi.displayName=oe.Action.displayName;var _i=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Cancel,{ref:t,className:i(nt({variant:"secondary"}),e),...o}));_i.displayName=oe.Cancel.displayName;var yr=require("react");var Na=require("react"),Bi=v(require("html-react-parser"),1),dl=require("motion/react");var cl=v(require("@radix-ui/react-aspect-ratio"),1),U=cl.Root;var G=require("react/jsx-runtime"),cp=({guideGroup:e,mockup:o})=>{let[t,a]=(0,Na.useState)(),[r,n]=(0,Na.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,Na.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,G.jsx)(G.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,G.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,G.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,G.jsxs)("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,G.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,G.jsxs)(Ce,{setApi:a,children:[(0,G.jsx)(Re,{className:"ml-0",children:e?.stepList.map((l,c)=>(0,G.jsx)(we,{className:"pl-0",children:(0,G.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:l?.image&&(0,G.jsx)("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},c))}),(0,G.jsx)(Ro,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,G.jsx)(To,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,G.jsx)("div",{className:"flex flex-auto pl-12 pt-4",children:(0,G.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((l,c)=>(0,G.jsxs)("li",{className:i("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",c+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[(0,G.jsx)("div",{className:i("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),(0,G.jsx)("div",{className:i(" text-sm font-medium",c+1===r?"text-pink-500":"text-gray-900"),children:(0,Bi.default)(l.title)}),l.content&&(0,G.jsx)(dl.motion.div,{initial:"closed",animate:c+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,G.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,Bi.default)(l.content)})})]},c))})})]})})},Oi=cp;var Kt=require("react"),Vi=require("@heroicons/react/20/solid"),pl=v(require("embla-carousel-autoplay"),1),Pa=v(require("html-react-parser"),1);var h=require("react/jsx-runtime"),dp=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=(0,Kt.useState)(0),[s,l]=(0,Kt.useState)();return(0,Kt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,h.jsx)(Ue,{open:e,onOpenChange:o,children:(0,h.jsxs)(Be,{position:"bottom",height:"full",children:[(0,h.jsx)(No,{children:(0,h.jsx)(Po,{className:"line-clamp-1",children:t?.title})}),(0,h.jsxs)(st,{className:"grid overflow-hidden p-0 ",children:[(0,h.jsx)(Ce,{setApi:l,className:" grid overflow-hidden",children:(0,h.jsx)(Re,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,h.jsx)(we,{className:"h-full w-full pl-0",children:(0,h.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,h.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,h.jsx)("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:(0,h.jsxs)("div",{className:i("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,h.jsx)("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,h.jsx)(U,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,h.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,h.jsxs)("div",{className:"p-5 pb-12",children:[(0,h.jsx)("div",{className:"font-semibold",children:(0,Pa.default)(c.title)}),c?.content&&(0,h.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,Pa.default)(c.content)})]})]})},d))})}),(0,h.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,h.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},pp=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=(0,Kt.useState)(!1),[n,s]=(0,Kt.useState)(null),l=(0,Kt.useRef)((0,pl.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),r(!0)};return e?.length===0?null:(0,h.jsxs)(h.Fragment,{children:[e?.length>1?(0,h.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,p)=>(0,h.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(p),children:[(0,h.jsx)("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,h.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:d.title})}),(0,h.jsxs)("div",{className:i("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,h.jsxs)("div",{className:"py-2",children:[t&&(0,h.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,h.jsx)("div",{className:"font-semibold",children:(0,Pa.default)(d.title)}),d?.description&&(0,h.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,Pa.default)(d.description)})]}),(0,h.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,h.jsx)(Vi.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,h.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,h.jsx)("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:(0,h.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,h.jsxs)("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,h.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,h.jsx)(Ce,{plugins:[l.current],children:(0,h.jsx)(Re,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,h.jsx)(we,{className:"pl-0",onClick:()=>c(0),children:(0,h.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,h.jsx)("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},p))})})})]})})}),(0,h.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,h.jsxs)(Pe,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,h.jsx)(Vi.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,h.jsx)(dp,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},fl=pp;var ee=require("react/jsx-runtime"),gl=({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,ee.jsx)("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:(0,ee.jsx)("path",{d:t.d,fill:"currentColor"})})},Wi=(0,yr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:c}=o||{},[d,p]=(0,yr.useState)(t?.[0]?.title||"");return(0,ee.jsxs)(ee.Fragment,{children:[e&&(0,ee.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t&&t?.length>0&&(0,ee.jsxs)(Oo,{children:[(0,ee.jsx)(bt,{lessThan:"md",children:(0,ee.jsx)(fl,{dataGuide:t,mockup:r,isStep:n})}),(0,ee.jsx)(bt,{greaterThan:"sm",children:t?.length>1?(0,ee.jsxs)(Dt,{defaultValue:t[0]?.title,onValueChange:f=>p(f),children:[(0,ee.jsxs)(Rt,{showGradientOverlay:s,gradientOverlayColor:l,className:c,children:[(0,ee.jsx)(Tt,{className:"mb-6 text-center",children:(0,ee.jsx)(mt,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let b=u===t.length-1,D=d===f?.title||"";return(0,ee.jsxs)(ct,{value:f.title,className:i(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",D&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&(0,ee.jsx)(gl,{direction:"left",className:i("right-full top-0",D?"text-pink-500":"text-pink-100")}),f.title,n&&!b&&(0,ee.jsx)(gl,{direction:"right",className:i("left-full top-0",D?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),(0,ee.jsx)(kt,{}),(0,ee.jsx)(St,{})]}),t.map((f,u)=>(0,ee.jsx)(dt,{value:f.title,children:(0,ee.jsx)(Oi,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&(0,ee.jsx)(Oi,{guideGroup:t[0],mockup:r})})]}),a&&(0,ee.jsx)(N,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var lo=require("react/jsx-runtime"),fp=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return(0,lo.jsx)(Wi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return(0,lo.jsx)(Wi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},gp=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>(0,lo.jsx)(lo.Fragment,{children:fp({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),ul=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:c="default",isStep:d=!1})=>(0,lo.jsx)(Y,{className:i(n),background:s,idSection:e,children:(0,lo.jsx)(gp,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:c,isStep:d})});var wr=require("lucide-react");var xe=require("react/jsx-runtime");function $i({current:e,total:o,onChange:t}){let a=r=>(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,xe.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,xe.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,xe.jsx)(wr.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):(0,xe.jsxs)(xe.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({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,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,xe.jsx)(wr.ChevronRight,{className:"h-4 w-4"})})})]})})}var vl=require("react"),hl=require("@heroicons/react/24/outline"),xl=require("@heroicons/react/24/solid");var It=require("react/jsx-runtime"),Nr=(0,vl.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...c},d)=>(0,It.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,It.jsx)("span",{className:i("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,It.jsx)("textarea",{disabled:e,ref:d,className:i("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...c}),t&&(0,It.jsxs)("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?(0,It.jsx)(xl.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,It.jsx)(hl.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,It.jsx)("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,It.jsx)("style",{children:`
|
|
70
|
+
`})]}),so=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...c})=>(0,y.jsx)(Ue,{...c,children:(0,y.jsx)(Be,{className:i("h-auto max-h-screen overflow-hidden border-0 md:max-h-screen md:max-w-2xl lg:max-w-3xl [&>button>svg]:text-white",e),size:"xl",positionRightCloseBtn:!0,children:(0,y.jsx)(st,{className:"p-0",children:(0,y.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,y.jsx)("div",{className:"hidden flex-none w-full sm:block md:w-5/12",children:o||(0,y.jsxs)("div",{className:"grid grid-cols-1 gap-y-6 px-5 py-8 text-sm",children:[(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 1 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children: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,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 2 :"}),(0,y.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,y.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,y.jsx)("div",{className:"flex-none",children:(0,y.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,y.jsxs)("div",{className:"flex-1 pl-4",children:[(0,y.jsx)("div",{className:"font-semibold text-gray-800 step",children:"B\u01B0\u1EDBc 3 :"}),(0,y.jsxs)("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c"," ",a||"Truy c\u1EADp ngay"]})]})]})]})}),(0,y.jsx)("div",{className:"flex justify-center items-center w-full h-auto md:w-7/12",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,y.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,y.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,y.jsxs)("div",{className:"relative",children:[l&&(0,y.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,y.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,y.jsx)(qd,{img:r,isQrForAll:l,children:n&&(0,y.jsx)(As.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 Fs=require("react");var $o=require("react"),Ls=v(require("ua-parser-js"),1),Xd=()=>(0,Ls.default)().device.type==="mobile",Yd=typeof window<"u"?$o.useLayoutEffect:$o.useEffect,Go=()=>{let[e,o]=(0,$o.useState)(!1);return Yd(()=>{o(Xd())},[]),e};var Qt=require("react/jsx-runtime"),qe=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,c]=(0,Fs.useState)(!1),d=Go(),p=!!a?.qrLink,f=()=>{let q=p?a?.qrLink:e;return typeof q=="string"?q.trim():""},u=()=>{let q=f();!q&&typeof e!="function"||(typeof e=="function"?e():window.open(q,o?"_blank":"_self"))},b=(q,Z=0)=>{let Q=document.querySelector(q);if(!Q)return;let T=Q.getBoundingClientRect().top+window.scrollY-Z;window.scrollTo({top:T,behavior:"smooth"})},D=()=>{typeof e=="string"&&e.startsWith("#")?b(e,t):u()},R=()=>(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(_e,{...s,className:r,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Qt.jsx)(so,{...a,open:l,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?R():(0,Qt.jsx)(_e,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):R():(0,Qt.jsx)(_e,{...s,onClick:D,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var jo=v(require("react"),1),Za=require("@radix-ui/react-icons"),zs=require("@radix-ui/react-slot");var Xe=require("react/jsx-runtime"),ui=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));ui.displayName="Breadcrumb";var vi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("ol",{ref:t,className:i("flex items-center gap-2 break-words text-sm overflow-x-auto snap-mandatory snap-x [&::-webkit-scrollbar]:hidden",e),...o}));vi.displayName="BreadcrumbList";var hi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));hi.displayName="BreadcrumbItem";var xi=jo.forwardRef(({asChild:e,className:o,...t},a)=>(0,Xe.jsx)(e?zs.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));xi.displayName="BreadcrumbLink";var bi=jo.forwardRef(({className:e,...o},t)=>(0,Xe.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));bi.displayName="BreadcrumbPage";var yi=({children:e,className:o,...t})=>(0,Xe.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,Xe.jsx)(Za.ChevronRightIcon,{className:"w-2 h-2"})});yi.displayName="BreadcrumbSeparator";var wi=({className:e,...o})=>(0,Xe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,Xe.jsx)(Za.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,Xe.jsx)("span",{className:"sr-only",children:"More"})]});wi.displayName="BreadcrumbElipssis";var or=v(require("html-react-parser"),1);var ua=require("react");var Qo=require("react/jsx-runtime"),Ni=(0,ua.createContext)({align:"center"}),Ka=({color:e="pink",size:o="small",isTruncated:t=!1,className:a,children:r})=>{let n={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},s={small:"text-sm",large:"text-lg"};return(0,Qo.jsx)("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Ja=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=(0,ua.useContext)(Ni);return(0,Qo.jsx)(s,{className:i("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",l[t],c[o],a&&"truncate",r),children:n})},er=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=(0,ua.useContext)(Ni);return(0,Qo.jsx)("div",{className:i(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",r),children:n})},tr=({className:e,align:o="center",children:t})=>(0,Qo.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Qo.jsx)(Ni.Provider,{value:{align:o},children:t})});var Ct=require("react/jsx-runtime"),Y=({idSection:e,className:o,background:t,children:a})=>(0,Ct.jsx)("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,Ct.jsx)("div",{className:"wrapper relative",children:a})}),w=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="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,Ct.jsxs)(tr,{align:e,className:l,children:[o&&(0,Ct.jsx)(Ka,{color:c,children:o}),t&&(0,Ct.jsx)(Ja,{tagHeading:r,color:d,size:s,children:(0,or.default)(t)}),a&&(0,Ct.jsx)(er,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,or.default)(a)})]})},N=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,Ct.jsx)("div",{className:i("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((r,n)=>{if(!r)return null;let{btnName:s,...l}=r;return(0,Ct.jsx)(qe,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:(0,or.default)(s)},n)})});var sr=v(require("react"),1),Gs=require("@heroicons/react/20/solid"),js=v(require("html-react-parser"),1);var Fe=require("react"),ar=require("lucide-react");var Es=v(require("react"),1),Hs=require("@radix-ui/react-slot"),_s=require("class-variance-authority");var Bs=require("react/jsx-runtime"),Co=(0,_s.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"}}),ve=Es.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Hs.Slot:"button",c=i(Co({variant:o,size:t,className:e}));return(0,Bs.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});ve.displayName="IconButton";var Le=require("react/jsx-runtime"),rr=(0,Fe.createContext)(void 0),Rt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=(0,Fe.useRef)(null),[n,s]=(0,Fe.useState)({left:!1,right:!1}),l=(0,Fe.useCallback)(()=>{let d=r.current;if(d){let{scrollLeft:p,scrollWidth:f,clientWidth:u}=d;s({left:p>0,right:Math.ceil(p+u)<f})}},[]);(0,Fe.useEffect)(()=>{let d=r.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=r.current;if(p){let{scrollLeft:f,clientWidth:u,scrollWidth:b}=p,D=u*.7*(d==="left"?-1:1),R=f+D;R<0?R=0:R>b-u&&(R=b-u),p.scrollTo({left:R,behavior:"smooth"})}};return(0,Le.jsx)(rr.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Le.jsxs)("div",{className:i("relative w-full",t),children:[e&&(0,Le.jsxs)(Le.Fragment,{children:[n.left&&(0,Le.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,Le.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]})})},Tt=({className:e,children:o})=>{let t=(0,Fe.useContext)(rr);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Le.jsx)("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},kt=({className:e,children:o,...t})=>{let a=(0,Fe.useContext)(rr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Le.jsx)(ve,{className:i("pointer-events-auto absolute left-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("left"),"aria-label":"Scroll left",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Le.jsx)(ar.ChevronLeft,{className:"h-4 w-4"})}):null},St=({className:e,children:o,...t})=>{let a=(0,Fe.useContext)(rr);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Le.jsx)(ve,{className:i("pointer-events-auto absolute right-0.5 top-1/2 z-10 h-6 w-6 -translate-y-1/2 rounded-full",e),onClick:()=>a.scroll("right"),"aria-label":"Scroll right",size:t.size||"sm",variant:t.variant||"secondary",...t,children:o||(0,Le.jsx)(ar.ChevronRight,{className:"h-4 w-4"})}):null};var ir=v(require("react"),1),lt=v(require("@radix-ui/react-tabs"),1);var nr=require("react/jsx-runtime"),Dt=lt.Root,mt=ir.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,nr.jsx)(lt.List,{ref:r,className:i("inline-flex w-full flex-row items-center space-x-5 overflow-x-auto [&::-webkit-scrollbar]:hidden",`text-${o}`,t&&"border-b border-gray-200",e),...a}));mt.displayName=lt.List.displayName;var ct=ir.forwardRef(({className:e,...o},t)=>(0,nr.jsx)(lt.Trigger,{ref:t,className:i("ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center whitespace-nowrap border-b-2 border-transparent py-3 font-semibold text-gray-900 transition-all hover:text-pink-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-pink-500 data-[state=active]:text-pink-500",e),...o}));ct.displayName=lt.Trigger.displayName;var dt=ir.forwardRef(({className:e,...o},t)=>(0,nr.jsx)(lt.Content,{ref:t,className:i("ring-offset-background focus-visible:ring-ring mt-3 text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",e),...o}));dt.displayName=lt.Content.displayName;var Os=v(require("react"),1),Vs=require("@radix-ui/react-slot"),Ws=require("class-variance-authority");var $s=require("react/jsx-runtime"),Pi=(0,Ws.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"}}),Pe=Os.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Vs.Slot:"button",c=i(Pi({variant:o,size:t,className:e}));return(0,$s.jsx)(l,{className:c,disabled:r,ref:s,...n,children:n.children})});Pe.displayName="TextButton";var A=require("react/jsx-runtime"),Zd=({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 pr-3 basis-1/2 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:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,A.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,A.jsx)(Pe,{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:"text-sm font-medium text-gray-900 line-clamp-3 group-hover:text-pink-500 md:line-clamp-none md:text-base",children:e?.title}),(0,A.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Pe,{variant:"default",className:"justify-start hidden text-xs text-left whitespace-normal shink-0 md:line-clamp-1 md:block",onClick:t=>o(t,e?.categoryUrl||""),children:e?.category}),e?.category&&e?.totalViews&&(0,A.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,A.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},lr=(0,sr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,f,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(p,f)=>(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",p?.blogList?.length<3?"md:justify-center":""),children:p?.blogList?.map((u,b)=>(0,A.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,A.jsx)("div",{onClick:D=>c(D,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,A.jsx)(Zd,{blog:u})},u?.id)},b))}),p?.isShowBtn&&(0,A.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,A.jsxs)(qe,{action:r?()=>r?.(f):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[(0,js.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,A.jsx)(Vo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!p?.btnUrl&&(0,A.jsx)(Gs.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},p?.title||f);return(0,A.jsxs)(sr.default.Fragment,{children:[e&&(0,A.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?(0,A.jsxs)(Dt,{defaultValue:t[0]?.title,children:[(0,A.jsxs)(Rt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,A.jsx)(Tt,{className:"mb-6 text-center",children:(0,A.jsx)(mt,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((p,f)=>(0,A.jsx)(ct,{value:p.title,children:p.title},p.title+f))})}),(0,A.jsx)(kt,{}),(0,A.jsx)(St,{})]}),t.map((p,f)=>(0,A.jsx)(dt,{value:p.title,children:d(p,f)},p.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Ut=v(require("react"),1),cr=require("@heroicons/react/20/solid"),Ci=v(require("html-react-parser"),1);var J=v(require("react"),1),mr=require("@heroicons/react/20/solid"),Qs=v(require("embla-carousel-react"),1);var he=require("react/jsx-runtime"),Us=J.createContext(null);function va(){let e=J.useContext(Us);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Ce=J.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[c,d]=(0,Qs.default)({align:"start",...o,axis:e==="horizontal"?"x":"y"},a),[p,f]=J.useState(!1),[u,b]=J.useState(!1),D=J.useCallback(Z=>{Z&&(f(Z.canScrollPrev()),b(Z.canScrollNext()))},[]),R=J.useCallback(()=>{d?.scrollPrev()},[d]),M=J.useCallback(()=>{d?.scrollNext()},[d]),q=J.useCallback(Z=>{Z.key==="ArrowLeft"?(Z.preventDefault(),R()):Z.key==="ArrowRight"&&(Z.preventDefault(),M())},[R,M]);return J.useEffect(()=>{!d||!t||t(d)},[d,t]),J.useEffect(()=>{if(d)return D(d),d.on("reInit",D),d.on("select",D),()=>{d?.off("select",D)}},[d,D]),(0,he.jsx)(Us.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:R,scrollNext:M,canScrollPrev:p,canScrollNext:u},children:(0,he.jsx)("div",{ref:l,onKeyDownCapture:q,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});Ce.displayName="Carousel";var Re=J.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=va();return(0,he.jsx)("div",{ref:r,className:i("overflow-hidden",o),children:(0,he.jsx)("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Re.displayName="CarouselContent";var we=J.forwardRef(({className:e,...o},t)=>{let{orientation:a}=va();return(0,he.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});we.displayName="CarouselItem";var Ro=J.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=va();return(0,he.jsxs)(ve,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[(0,he.jsx)(mr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,he.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});Ro.displayName="CarouselPrevious";var To=J.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=va();return(0,he.jsxs)(ve,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[(0,he.jsx)(mr.ChevronRightIcon,{className:"h-6 w-6"}),(0,he.jsx)("span",{className:"sr-only",children:"Next slide"})]})});To.displayName="CarouselNext";var ko=J.forwardRef((e,o)=>{let{api:t}=va(),[,a]=J.useState(!1),r=J.useCallback(()=>a(l=>!l),[]);J.useEffect(()=>{if(t)return t.on("select",r),t.on("reInit",r),()=>{t.off("select",r),t.off("reInit",r)}},[t,r]);let n=t?.scrollSnapList().length||0,s=t?.selectedScrollSnap()||0;return n>1?(0,he.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,c)=>(0,he.jsx)(ve,{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,he.jsx)(he.Fragment,{})});ko.displayName="CarouselDots";var k=require("react/jsx-runtime"),Kd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,k.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,k.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,k.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,k.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Ci.default)(e?.description??"")}),(0,k.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Pe,{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,k.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,k.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Jd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,Ut.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Ce,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,k.jsx)(Re,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>(0,k.jsx)(we,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,k.jsx)("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",p),children:(0,k.jsx)(Kd,{blog:f})},f?.id)},f?.id))})}),s&&(0,k.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,k.jsxs)(qe,{action:c&&c,newTab:d,variant:"outline",children:[(0,Ci.default)(l||"Xem th\xEAm")," "]})})]})},ep=({carouselRef:e})=>(0,k.jsxs)(ve,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,k.jsx)(cr.ChevronLeftIcon,{className:"h-6 w-6"}),(0,k.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),tp=({carouselRef:e})=>(0,k.jsxs)(ve,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,k.jsx)(cr.ChevronRightIcon,{className:"h-6 w-6"}),(0,k.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Ri=(0,Ut.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(d,p,f)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(f,"_blank")},[n,s]=(0,Ut.useState)(null),[,l]=(0,Ut.useState)(0),c=()=>n?(0,k.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,k.jsx)(ep,{carouselRef:n}),(0,k.jsx)(tp,{carouselRef:n})]}):(0,k.jsx)(k.Fragment,{});return(0,k.jsxs)(Ut.default.Fragment,{children:[(0,k.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,k.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),(0,k.jsx)(c,{})]}),(0,k.jsx)(Jd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});var qt=require("react/jsx-runtime"),op=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,qt.jsx)(lr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return(0,qt.jsx)(Ri,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,qt.jsx)(lr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},ap=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,qt.jsx)(qt.Fragment,{children:op({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),qs=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,qt.jsx)(Y,{className:i("overflow-hidden",r),idSection:a,background:n,children:(0,qt.jsx)(ap,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:l,onClickLoadMore:c})});var pr=v(require("react"),1),fr=require("date-fns/locale"),gr=require("lucide-react"),Zs=v(require("lunisolar"),1),Ks=require("react-day-picker");var Xs=v(require("react"),1),ha=v(require("@radix-ui/react-checkbox"),1),Ys=require("@heroicons/react/16/solid"),Ti=require("class-variance-authority");var dr=require("react/jsx-runtime"),rp=(0,Ti.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"}}),ip=(0,Ti.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),xa=Xs.forwardRef(({className:e,size:o,...t},a)=>(0,dr.jsx)(ha.Root,{ref:a,className:i(rp({size:o}),e),...t,children:(0,dr.jsx)(ha.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,dr.jsx)(Ys.CheckIcon,{className:i(ip({size:o}))})})}));xa.displayName=ha.Root.displayName;var Ne=require("react/jsx-runtime"),np=({date:e,cusContent:o})=>{let t=null;return t=(0,Zs.default)(e).lunar,(0,Ne.jsxs)(Ne.Fragment,{children:[o?o(e):e.getDate(),t&&(0,Ne.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},sp={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 lp({isShow:e,setIsShow:o,lang:t}){let a=pr.useId();return(0,Ne.jsx)("div",{className:"w-full p-3 pt-0",children:(0,Ne.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,Ne.jsx)(xa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,Ne.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 mp=e=>e.getDay()===0||e.getDay()===6;function ba({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,c]=pr.useState(!0);return(0,Ne.jsx)(Ks.DayPicker,{locale:r==="vi"?fr.vi:fr.enUS,showOutsideDays:t,className:i("b w-fit rounded-b-md border border-gray-200 bg-white shadow-md",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-y-0",month:"p-3 pt-0 w-full",caption:"flex justify-center p-3 bg-blue-50 relative items-center -mx-3 mb-3",caption_label:"text-sm font-medium text-gray-900",nav:"space-x-1 flex items-center",nav_button:i(nt({variant:"transparent"}),"h-7 w-7 p-0 text-gray-900 hover:bg-transparent hover:opacity-70"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse",head_row:"flex space-x-0.5",head_cell:i("w-11 rounded-md text-xs font-medium text-gray-500 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),row:"flex w-full mt-0.5 space-x-0.5",cell:"h-11 w-11 text-center text-sm p-0 relative border-none",day:i(nt({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:mp},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,Ne.jsx)(gr.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,Ne.jsx)(gr.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,Ne.jsx)(np,{date:d.date,cusContent:n}),Months:({children:d})=>(0,Ne.jsxs)("div",{className:"w-full",children:[(0,Ne.jsx)("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,Ne.jsx)(lp,{isShow:l,setIsShow:c,lang:r})]})},formatters:r==="vi"?sp:{},...s})}ba.displayName="Calendar";var ur=require("@heroicons/react/16/solid"),ya=require("date-fns"),el=require("lucide-react");var Js=v(require("react"),1),Xt=v(require("@radix-ui/react-popover"),1);var ki=require("react/jsx-runtime"),Uo=Xt.Root,qo=Xt.Trigger,So=Js.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,ki.jsx)(Xt.Portal,{children:(0,ki.jsx)(Xt.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));So.displayName=Xt.Content.displayName;var re=require("react/jsx-runtime"),tl=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:c,calendarProps:d,popoverContentProps:p})=>{let f=d?.selected||null;return(0,re.jsxs)("div",{children:[(0,re.jsxs)(Uo,{...c,children:[(0,re.jsx)(qo,{asChild:!0,children:(0,re.jsxs)(_e,{variant:"secondary",className:i("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!f||!(f instanceof Date)&&typeof f=="object"&&(!("from"in f)||!f.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[(0,re.jsx)("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?(0,ya.format)(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?(0,re.jsx)(re.Fragment,{children:f.from?f.to?(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)("span",{className:"date-from",children:(0,ya.format)(f.from,s)})," ",(0,re.jsx)("span",{className:"date-separator",children:"-"}),(0,re.jsx)("span",{className:"date-to",children:(0,ya.format)(f.to,s)})]}):(0,ya.format)(f.from,s):o}):o}),e&&(0,re.jsx)("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),(0,re.jsx)(el.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,re.jsx)(So,{className:"w-auto border-none !p-0",...p,children:(0,re.jsx)(ba,{...d,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&(0,re.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?(0,re.jsx)(ur.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,re.jsx)(ur.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,re.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var wa=require("react"),xr=require("@heroicons/react/16/solid"),nl=require("date-fns");var Mt=v(require("react"),1),Yt=require("@heroicons/react/16/solid"),ol=require("@heroicons/react/24/outline"),F=v(require("@radix-ui/react-select"),1);var V=require("react/jsx-runtime"),Xo=Mt.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},c)=>(0,V.jsxs)("div",{ref:c,className:i("select-mobase relative",e,s?"disabled":"",n?"[&>.select-mobase-button]:border-red-500 [&>.select-mobase-button]:ring-1 [&>.select-mobase-button]:ring-red-500":"",r===2?"[&>.select-mobase-button]:h-12 [&>.select-mobase-button]:text-base":""),children:[t&&(0,V.jsx)("span",{className:i("mobase-select-label absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",r===2&&"-top-2.5 text-sm",n&&"text-red-500"),children:t}),(0,V.jsx)(F.Root,{disabled:s,...l,children:o}),a&&(0,V.jsxs)("div",{className:i("mobase-select-message mt-1 flex items-center space-x-1 text-gray-500",n&&"text-red-500"),children:[n?(0,V.jsx)(Yt.XCircleIcon,{width:16,height:16}):(0,V.jsx)(ol.QuestionMarkCircleIcon,{width:16,height:16}),(0,V.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Yo=F.Value,Do=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(F.Trigger,{ref:a,className:i("select-mobase-button flex h-11 w-full items-center justify-between rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 ring-0 ring-inset transition-all hover:ring-1 hover:ring-gray-400 focus-visible:border-pink-500 focus-visible:ring-1 focus-visible:!ring-pink-500 focus-visible:ring-offset-0 focus-visible:ring-offset-transparent disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 data-[state=open]:border-pink-500 data-[placeholder]:text-gray-500 data-[state=open]:ring-1 data-[state=open]:ring-pink-500",e),...t,children:[(0,V.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,V.jsx)(F.Icon,{asChild:!0,children:(0,V.jsx)(Yt.ChevronDownIcon,{className:"h-4 w-4 flex-none text-gray-500"})})]}));Do.displayName=F.Trigger.displayName;var vr=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,V.jsx)(Yt.ChevronUpIcon,{className:"h-5 w-5"})}));vr.displayName=F.ScrollUpButton.displayName;var hr=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.ScrollDownButton,{ref:t,className:i("flex cursor-default items-center justify-center bg-gradient-to-t from-white to-transparent py-1",e),...o,children:(0,V.jsx)(Yt.ChevronDownIcon,{className:"h-5 w-5"})}));hr.displayName=F.ScrollDownButton.displayName;var Mo=Mt.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,V.jsx)(F.Portal,{children:(0,V.jsxs)(F.Content,{ref:r,className:i("shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white text-gray-900",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:t,...a,children:[(0,V.jsx)(vr,{}),(0,V.jsx)(F.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),(0,V.jsx)(hr,{})]})}));Mo.displayName=F.Content.displayName;var Zo=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsx)(F.Group,{ref:a,className:i("relative border-b border-gray-200 p-1 after:w-full last:border-0",e),...t,children:o})),Si=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.Label,{ref:t,className:i("z-[1] py-1.5 pl-7 pr-2 text-sm font-semibold",e),...o}));Si.displayName=F.Label.displayName;var Zt=Mt.forwardRef(({className:e,children:o,...t},a)=>(0,V.jsxs)(F.Item,{ref:a,className:i("relative flex w-full cursor-default select-none items-center rounded-md py-1.5 pl-7 pr-2 text-sm outline-none focus:bg-gray-100 focus:text-gray-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t,children:[(0,V.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,V.jsx)(F.ItemIndicator,{children:(0,V.jsx)(Yt.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,V.jsx)(F.ItemText,{children:o})]})),Di=Mt.forwardRef(({className:e,...o},t)=>(0,V.jsx)(F.Separator,{ref:t,className:i("-mx-1 my-1 h-px",e),...o}));Di.displayName=F.Separator.displayName;var al=["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"],rl=["January","February","March","April","May","June","July","August","September","October","November","December"],Mi=(e,o,t,a)=>{let r=new Date(e,o,0).getDate(),n=t&&e===t.getFullYear()&&o===t.getMonth()+1?t.getDate():1,s=a&&e===a.getFullYear()&&o===a.getMonth()+1?a.getDate():r;return{daysInMonth:r,startDay:n,endDay:s}},il=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};var _=require("react/jsx-runtime"),sl=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:f=!1})=>{let[u,b]=(0,wa.useState)(o??null),D=Math.min(d,p),R=Math.max(d,p),M=l==="MM/yyyy",q=(T,K)=>{if(K===0){b(void 0),t?.(void 0);return}let O=u?.getFullYear()||new Date().getFullYear(),rt=u?.getMonth()??0,it=u?.getDate()??1;T==="month"&&K!==null&&(rt=K-1),T==="year"&&K!==null&&(O=K),M?it=1:T==="day"&&K!==null&&(it=K);let Ua=Mi(O,rt+1).daysInMonth;it>Ua&&(it=1);let da=new Date(O,rt,it);(0,nl.isValid)(da)&&(b(da),t?.(da))},[Z,Q]=(0,wa.useState)(!1),$t=T=>{Q(T)};return(0,wa.useEffect)(()=>{b(o??null)},[o]),(0,_.jsxs)("div",{className:i("relative",s&&"cursor-no-drop"),children:[(0,_.jsxs)("div",{className:i("relative block h-11 w-full rounded-md border border-gray-300 bg-white px-1 py-3 text-sm text-gray-900 outline-none ring-inset transition-all placeholder:text-gray-500 hover:ring-1 hover:ring-gray-400 focus:border-pink-500 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50",Z&&"border-pink-500 ring-1 ring-pink-500",a===2&&"h-12 text-base",u?"":"text-gray-500",n&&"border-red-500 ring-1 ring-red-500",s&&"pointer-events-none select-none border-gray-200 bg-gray-50"),children:[e&&(0,_.jsx)("span",{className:i("absolute -top-2 left-2 z-[1] bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,_.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!M&&(0,_.jsxs)(Xo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:T=>q("day",parseInt(T,10)),onOpenChange:$t,className:"w-[30%]",children:[(0,_.jsx)(Do,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:Mi(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(T,K)=>(K+1).toString().padStart(2,"0")).map(T=>(0,_.jsx)(Zt,{value:T,children:T},T))]})})]}),(0,_.jsxs)(Xo,{value:u?(u.getMonth()+1).toString():"",onValueChange:T=>q("month",parseInt(T,10)),onOpenChange:$t,className:i(M?"w-1/2":"w-2/5"),children:[(0,_.jsx)(Do,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(T,K)=>K+1).map(T=>(0,_.jsx)(Zt,{value:T.toString(),children:c==="vi"?al[T-1]:rl[T-1]},T))]})})]}),(0,_.jsxs)(Xo,{value:u?u.getFullYear().toString():"",onValueChange:T=>q("year",parseInt(T,10)),onOpenChange:$t,className:i(M?"w-1/2":"w-[30%]"),children:[(0,_.jsx)(Do,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,_.jsx)(Yo,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,_.jsx)(Mo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,_.jsxs)(Zo,{children:[!f&&(0,_.jsx)(Zt,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),il(D,R).map(T=>(0,_.jsx)(Zt,{value:T.toString(),children:T},T))]})})]})]})]}),r&&(0,_.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,_.jsx)(xr.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,_.jsx)(xr.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,_.jsx)("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};var Io=v(require("react"),1),oe=v(require("@radix-ui/react-alert-dialog"),1);var Ye=require("react/jsx-runtime"),ll=oe.Root,ml=oe.Trigger,Ii=oe.Portal,br=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Overlay,{className:i("fixed inset-0 z-50 bg-black/70 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...o,ref:t}));br.displayName=oe.Overlay.displayName;var Ai=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsxs)(Ii,{children:[(0,Ye.jsx)(br,{}),(0,Ye.jsx)(oe.Content,{ref:t,className:i("fixed left-[50%] w-[90vw] bg-white text-gray-700 border border-gray-300 top-[50%] z-50 grid w- max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl",e),...o})]}));Ai.displayName=oe.Content.displayName;var Li=({className:e,...o})=>(0,Ye.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});Li.displayName="AlertDialogHeader";var Fi=({className:e,...o})=>(0,Ye.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Fi.displayName="AlertDialogFooter";var zi=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));zi.displayName=oe.Title.displayName;var Ei=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Ei.displayName=oe.Description.displayName;var Hi=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Action,{ref:t,className:i(nt({variant:"primary"}),"",e),...o}));Hi.displayName=oe.Action.displayName;var _i=Io.forwardRef(({className:e,...o},t)=>(0,Ye.jsx)(oe.Cancel,{ref:t,className:i(nt({variant:"secondary"}),e),...o}));_i.displayName=oe.Cancel.displayName;var yr=require("react");var Na=require("react"),Bi=v(require("html-react-parser"),1),dl=require("motion/react");var cl=v(require("@radix-ui/react-aspect-ratio"),1),U=cl.Root;var G=require("react/jsx-runtime"),cp=({guideGroup:e,mockup:o})=>{let[t,a]=(0,Na.useState)(),[r,n]=(0,Na.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,Na.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,G.jsx)(G.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,G.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,G.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,G.jsxs)("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,G.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,G.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,G.jsxs)(Ce,{setApi:a,children:[(0,G.jsx)(Re,{className:"ml-0",children:e?.stepList.map((l,c)=>(0,G.jsx)(we,{className:"pl-0",children:(0,G.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:l?.image&&(0,G.jsx)("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},c))}),(0,G.jsx)(Ro,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,G.jsx)(To,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,G.jsx)("div",{className:"flex flex-auto pl-12 pt-4",children:(0,G.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((l,c)=>(0,G.jsxs)("li",{className:i("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",c+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(c),children:[(0,G.jsx)("div",{className:i("absolute -top-1.5 left-0 z-10 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",c+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:c+1}),(0,G.jsx)("div",{className:i(" text-sm font-medium",c+1===r?"text-pink-500":"text-gray-900"),children:(0,Bi.default)(l.title)}),l.content&&(0,G.jsx)(dl.motion.div,{initial:"closed",animate:c+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,G.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,Bi.default)(l.content)})})]},c))})})]})})},Oi=cp;var Kt=require("react"),Vi=require("@heroicons/react/20/solid"),pl=v(require("embla-carousel-autoplay"),1),Pa=v(require("html-react-parser"),1);var h=require("react/jsx-runtime"),dp=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=(0,Kt.useState)(0),[s,l]=(0,Kt.useState)();return(0,Kt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,h.jsx)(Ue,{open:e,onOpenChange:o,children:(0,h.jsxs)(Be,{position:"bottom",height:"full",children:[(0,h.jsx)(No,{children:(0,h.jsx)(Po,{className:"line-clamp-1",children:t?.title})}),(0,h.jsxs)(st,{className:"grid overflow-hidden p-0 ",children:[(0,h.jsx)(Ce,{setApi:l,className:" grid overflow-hidden",children:(0,h.jsx)(Re,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,h.jsx)(we,{className:"h-full w-full pl-0",children:(0,h.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,h.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,h.jsx)("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:(0,h.jsxs)("div",{className:i("relative mx-auto w-full",a==="none"?"":"rounded-[2rem] border-8 border-gray-800 bg-gray-800 shadow-md",a==="small"?"px-0.5 py-3":""),children:[a!=="none"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,h.jsx)("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,h.jsx)(U,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,h.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,h.jsxs)("div",{className:"p-5 pb-12",children:[(0,h.jsx)("div",{className:"font-semibold",children:(0,Pa.default)(c.title)}),c?.content&&(0,h.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,Pa.default)(c.content)})]})]})},d))})}),(0,h.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,h.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},pp=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=(0,Kt.useState)(!1),[n,s]=(0,Kt.useState)(null),l=(0,Kt.useRef)((0,pl.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),r(!0)};return e?.length===0?null:(0,h.jsxs)(h.Fragment,{children:[e?.length>1?(0,h.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,p)=>(0,h.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(p),children:[(0,h.jsx)("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,h.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:d.title})}),(0,h.jsxs)("div",{className:i("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,h.jsxs)("div",{className:"py-2",children:[t&&(0,h.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,h.jsx)("div",{className:"font-semibold",children:(0,Pa.default)(d.title)}),d?.description&&(0,h.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,Pa.default)(d.description)})]}),(0,h.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,h.jsx)(Vi.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,h.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,h.jsx)("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:(0,h.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,h.jsxs)("div",{className:i("relative mx-auto w-full",o==="none"?"":"rounded-[2.5rem] border-8 border-gray-800 bg-gray-800 shadow-md",o==="small"?"px-1 py-5":""),children:[o!=="none"&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,h.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,h.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,h.jsx)(Ce,{plugins:[l.current],children:(0,h.jsx)(Re,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,h.jsx)(we,{className:"pl-0",onClick:()=>c(0),children:(0,h.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,h.jsx)("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},p))})})})]})})}),(0,h.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,h.jsxs)(Pe,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,h.jsx)(Vi.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,h.jsx)(dp,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},fl=pp;var ee=require("react/jsx-runtime"),gl=({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,ee.jsx)("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:(0,ee.jsx)("path",{d:t.d,fill:"currentColor"})})},Wi=(0,yr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:c}=o||{},[d,p]=(0,yr.useState)(t?.[0]?.title||"");return(0,ee.jsxs)(ee.Fragment,{children:[e&&(0,ee.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t&&t?.length>0&&(0,ee.jsxs)(Oo,{children:[(0,ee.jsx)(bt,{lessThan:"md",children:(0,ee.jsx)(fl,{dataGuide:t,mockup:r,isStep:n})}),(0,ee.jsx)(bt,{greaterThan:"sm",children:t?.length>1?(0,ee.jsxs)(Dt,{defaultValue:t[0]?.title,onValueChange:f=>p(f),children:[(0,ee.jsxs)(Rt,{showGradientOverlay:s,gradientOverlayColor:l,className:c,children:[(0,ee.jsx)(Tt,{className:"mb-6 text-center",children:(0,ee.jsx)(mt,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let b=u===t.length-1,D=d===f?.title||"";return(0,ee.jsxs)(ct,{value:f.title,className:i(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",D&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&(0,ee.jsx)(gl,{direction:"left",className:i("right-full top-0",D?"text-pink-500":"text-pink-100")}),f.title,n&&!b&&(0,ee.jsx)(gl,{direction:"right",className:i("left-full top-0",D?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),(0,ee.jsx)(kt,{}),(0,ee.jsx)(St,{})]}),t.map((f,u)=>(0,ee.jsx)(dt,{value:f.title,children:(0,ee.jsx)(Oi,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&(0,ee.jsx)(Oi,{guideGroup:t[0],mockup:r})})]}),a&&(0,ee.jsx)(N,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var lo=require("react/jsx-runtime"),fp=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return(0,lo.jsx)(Wi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return(0,lo.jsx)(Wi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},gp=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>(0,lo.jsx)(lo.Fragment,{children:fp({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),ul=({idSection:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,className:n,background:s,template:l=1,mockup:c="default",isStep:d=!1})=>(0,lo.jsx)(Y,{className:i(n),background:s,idSection:e,children:(0,lo.jsx)(gp,{dataHeading:o,template:l,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:c,isStep:d})});var wr=require("lucide-react");var xe=require("react/jsx-runtime");function $i({current:e,total:o,onChange:t}){let a=r=>(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,xe.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,xe.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,xe.jsx)(wr.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):(0,xe.jsxs)(xe.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({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,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,xe.jsx)("li",{children:(0,xe.jsx)("button",{className:i(Co({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,xe.jsx)(wr.ChevronRight,{className:"h-4 w-4"})})})]})})}var vl=require("react"),hl=require("@heroicons/react/24/outline"),xl=require("@heroicons/react/24/solid");var It=require("react/jsx-runtime"),Nr=(0,vl.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...c},d)=>(0,It.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,It.jsx)("span",{className:i("mobase-text-area-label absolute -top-2.5 left-2 z-[1] bg-white px-1.5 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,It.jsx)("textarea",{disabled:e,ref:d,className:i("mobase-text-area-box block w-full rounded-md border border-gray-300 bg-white p-3 text-sm text-gray-900 outline-none transition-all placeholder:text-gray-500 focus:border-pink-500 disabled:border-gray-200 disabled:bg-gray-50",s===2&&"text-base",n),rows:l,...c}),t&&(0,It.jsxs)("div",{className:"mobase-text-area-message mt-0.5 flex items-center space-x-1",children:[o?(0,It.jsx)(xl.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,It.jsx)(hl.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,It.jsx)("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,It.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 Ot=require("react/jsx-runtime"),xf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,Ot.jsx)(Zn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,Ot.jsx)(Mc,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,Ot.jsx)(Tc,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,Ot.jsx)(Zn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},bf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,Ot.jsx)(Ot.Fragment,{children:xf({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Ic=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>(0,Ot.jsx)(Y,{className:i(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:(0,Ot.jsx)(bf,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});var Jn=v(require("html-react-parser"),1);var $=require("react/jsx-runtime"),es=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>(0,$.jsx)(yt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>(0,$.jsxs)(wt,{value:n.title,className:"last:border-none",children:[(0,$.jsx)(Nt,{className:"md:text-lg",children:n.title}),(0,$.jsx)(Pt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,Jn.default)(n.description)})]},s))});return(0,$.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,$.jsx)("div",{className:"relative",children:(0,$.jsxs)("div",{className:"md:sticky md:top-16",children:[o&&(0,$.jsx)(w,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),t&&(0,$.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&(0,$.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,$.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Ac=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=c=>(0,$.jsx)(yt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((d,p)=>(0,$.jsxs)(wt,{value:d.title,className:"last:border-none",children:[(0,$.jsx)(Nt,{className:"md:text-lg",children:d.title}),(0,$.jsx)(Pt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,Jn.default)(d.description)})]},p))});return(0,$.jsxs)($.Fragment,{children:[o&&(0,$.jsx)(w,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),e&&(0,$.jsxs)(Dt,{defaultValue:e[0]?.title,children:[e?.length>1&&(0,$.jsxs)(Rt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[(0,$.jsx)(Tt,{className:"mb-3 text-center",children:(0,$.jsx)(mt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,d)=>(0,$.jsx)(ct,{value:c.title,children:c.title},c.title+d))})}),(0,$.jsx)(kt,{}),(0,$.jsx)(St,{})]}),e.map((c,d)=>(0,$.jsx)(dt,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:l(c)},c.title+d))]}),t&&(0,$.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};var ao=require("react/jsx-runtime"),yf=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return(0,ao.jsx)(es,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return(0,ao.jsx)(Ac,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return(0,ao.jsx)(es,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},wf=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>(0,ao.jsx)(ao.Fragment,{children:yf({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Lc=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>(0,ao.jsx)(Y,{className:t,idSection:r,background:a,children:(0,ao.jsx)(wf,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});var Jr=v(require("react"),1),Fc=require("@heroicons/react/20/solid"),zc=v(require("html-react-parser"),1);var E=require("react/jsx-runtime"),Nf=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,E.jsxs)("picture",{children:[(0,E.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,E.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,E.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,E.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,E.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Pe,{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,E.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,E.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},ts=(0,Jr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,f,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(p,f)=>(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",p?.newsList?.length<4?"md:justify-center":""),children:p?.newsList?.map((u,b)=>(0,E.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,E.jsx)("div",{onClick:D=>c(D,u?.id,u?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",p?.classNameItem),children:(0,E.jsx)(Nf,{news:u})},u?.id)},b))}),p?.isShowBtn&&(0,E.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,E.jsxs)(qe,{action:p?.btnUrl||r&&(()=>r?.(f)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[(0,zc.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,E.jsx)(Vo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!p?.btnUrl&&(0,E.jsx)(Fc.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||f);return(0,E.jsxs)(Jr.default.Fragment,{children:[e&&(0,E.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?(0,E.jsxs)(Dt,{defaultValue:t[0]?.title,children:[(0,E.jsxs)(Rt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,E.jsx)(Tt,{className:"mb-6 text-center",children:(0,E.jsx)(mt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,f)=>(0,E.jsx)(ct,{value:p.title,children:p.title},p.title+f))})}),(0,E.jsx)(kt,{}),(0,E.jsx)(St,{})]}),t.map((p,f)=>(0,E.jsx)(dt,{value:p.title,children:d(p,f)},p.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var bo=require("react/jsx-runtime"),Pf=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,bo.jsx)(ts,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,bo.jsx)(ts,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Cf=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,bo.jsx)(bo.Fragment,{children:Pf({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ec=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,bo.jsx)(Y,{className:i(r),background:n,idSection:e,children:(0,bo.jsx)(Cf,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:c})});var ge=require("react/jsx-runtime"),Hc=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,ge.jsxs)("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:o?.background},children:[e&&(0,ge.jsx)(w,{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,ge.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Rf=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,ge.jsxs)("div",{className:"grid gap-6 grid-cols-1 md:grid-cols-2 rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 pb-0 md:px-10 bg-pink-700 md:pb-0 md:pt-0",style:o?.background?{background:o.background}:{},children:[(0,ge.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,ge.jsx)(w,{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,ge.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,ge.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,ge.jsx)(U,{ratio:4/3,children:(0,ge.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Tf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return(0,ge.jsx)(Hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return(0,ge.jsx)(Rf,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return(0,ge.jsx)(Hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},kf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>(0,ge.jsx)(ge.Fragment,{children:Tf({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),_c=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>(0,ge.jsx)(Y,{className:t,idSection:a,background:o,children:(0,ge.jsx)(kf,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});var os=v(require("react"),1),ei=v(require("html-react-parser"),1);var tt=require("react/jsx-runtime"),Sf=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,tt.jsxs)("div",{className:" text-center",children:[(0,tt.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,ei.default)(t??"")}),(0,tt.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,ei.default)(o??"")}),a&&(0,tt.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ei.default)(a??"")})]})},ti=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,tt.jsxs)(os.default.Fragment,{children:[t&&(0,tt.jsx)(w,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&(0,tt.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,r)=>(0,tt.jsx)(os.default.Fragment,{children:(0,tt.jsx)(Sf,{metric:a})},r))}),o&&(0,tt.jsx)(N,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var as=v(require("react"),1),oi=v(require("html-react-parser"),1);var ot=require("react/jsx-runtime"),Df=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,ot.jsxs)("div",{className:" text-center md:text-left",children:[(0,ot.jsx)("div",{className:"mt-2 text-2xl font-bold text-pink-500 md:text-3xl",children:(0,oi.default)(t??"")}),(0,ot.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,oi.default)(o??"")}),a&&(0,ot.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,oi.default)(a??"")})]})},rs=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,ot.jsxs)(as.default.Fragment,{children:[t&&(0,ot.jsx)(w,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&(0,ot.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,r)=>(0,ot.jsx)(as.default.Fragment,{children:(0,ot.jsx)(Df,{metric:a})},r))}),o&&(0,ot.jsx)(N,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var ro=require("react/jsx-runtime"),Mf=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,ro.jsx)(ti,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,ro.jsx)(rs,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,ro.jsx)(ti,{dataMetrics:o,dataButtons:a,dataHeading:e})}},If=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,ro.jsx)(ro.Fragment,{children:Mf({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Bc=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>(0,ro.jsx)(Y,{className:i(n),background:r,idSection:e,children:(0,ro.jsx)(If,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});var Oc=require("react"),Ga=require("react/jsx-runtime"),Vc=(0,Oc.forwardRef)(({className:e,title:o,children:t},a)=>(0,Ga.jsxs)("div",{className:e,ref:a,children:[(0,Ga.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,Ga.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 $c=require("react");var at=require("react/jsx-runtime"),Af=()=>(0,at.jsx)("div",{className:"p-3 border rounded-lg",children:(0,at.jsxs)("div",{className:"flex items-center gap-3",children:[(0,at.jsx)(_a,{className:"rounded-md h-9 w-9 "}),(0,at.jsx)("div",{className:"flex-1",children:(0,at.jsx)(_a,{className:"w-48 h-5 "})}),(0,at.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Lf(){return(0,at.jsx)(at.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,at.jsx)(Af,{},o))})}var Wc=Lf;var ke=require("react/jsx-runtime"),Ff=({paymentMethod:e})=>(0,ke.jsx)(Ea,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,ke.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,ke.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,ke.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,ke.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,ke.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,ke.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Gc=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=(0,$c.useCallback)(s=>a?.(s),[a]);return(0,ke.jsxs)(ke.Fragment,{children:[e&&(0,ke.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,ke.jsx)(Wc,{}):(0,ke.jsx)(za,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,ke.jsx)(Ff,{paymentMethod:s},s.id))})]})};var is=require("react");var ss=require("react/jsx-runtime"),zf=(0,is.forwardRef)(({children:e,className:o},t)=>(0,ss.jsx)("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),ns=(0,is.forwardRef)(({children:e,className:o,...t},a)=>(0,ss.jsx)(zf,{ref:a,className:o,...t,children:e}));ns.displayName="Payment";var jc=require("react");var ja=require("react/jsx-runtime"),Qc=(0,jc.forwardRef)(({className:e,children:o},t)=>(0,ja.jsxs)("div",{className:i("",e),ref:t,children:[(0,ja.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,ja.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var Uc=require("react");var Xc=require("react/jsx-runtime"),qc=(0,Uc.forwardRef)(({className:e,children:o},t)=>(0,Xc.jsx)("div",{className:i("pb-5",e),ref:t,children:o}));var Zc=require("react");var ai=require("@heroicons/react/20/solid");var te=require("react/jsx-runtime"),Ef=({iconPaymentResult:e,message:o="",title:t=""})=>(0,te.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,te.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,te.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,te.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,te.jsx)(ta,{message:o,type:"success",icon:(0,te.jsx)(ai.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Hf=({iconPaymentResult:e,message:o="",title:t=""})=>(0,te.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,te.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,te.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,te.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,te.jsx)(ta,{message:o,type:"error",icon:(0,te.jsx)(ai.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),_f=({iconPaymentResult:e,message:o="",title:t=""})=>(0,te.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,te.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,te.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,te.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,te.jsx)(ta,{message:o,type:"neutral"})]}),Yc=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,te.jsx)(Ef,{status:e,title:o,message:t,iconPaymentResult:a||(0,te.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,te.jsx)(Hf,{status:e,title:o,message:t,iconPaymentResult:a||(0,te.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,te.jsx)(_f,{status:e,title:o,message:t,iconPaymentResult:a||(0,te.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var ri=require("react/jsx-runtime"),Kc=(0,Zc.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>(0,ri.jsxs)("div",{ref:s,className:i("rounded-lg p-4",e),children:[(0,ri.jsx)(Yc,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));var ni=require("react");var sa=require("react/jsx-runtime"),ii=({content:e})=>(0,sa.jsxs)("picture",{children:[(0,sa.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,sa.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,sa.jsx)(qe,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var yo=require("react/jsx-runtime"),Bf=({template:e,content:o})=>{switch(e){case 1:return(0,yo.jsx)(ii,{content:o});default:return(0,yo.jsx)(ii,{content:o})}},Jc=(0,ni.forwardRef)(({template:e,content:o},t)=>((0,ni.useEffect)(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),(0,yo.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,yo.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,yo.jsx)("div",{className:"content",children:Bf({template:e,content:o})})}),(0,yo.jsx)("style",{children:`
|
|
301
|
+
`})]})};var Ot=require("react/jsx-runtime"),xf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>{switch(e){case 1:return(0,Ot.jsx)(Zn,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 2:return(0,Ot.jsx)(Mc,{dataHeading:o,dataTestimonials:t,dataButtons:a});case 3:return(0,Ot.jsx)(Tc,{dataHeading:o,dataTestimonials:t,dataButtons:a});default:return(0,Ot.jsx)(Zn,{dataHeading:o,dataTestimonials:t,dataButtons:a})}},bf=({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})=>(0,Ot.jsx)(Ot.Fragment,{children:xf({template:e,dataHeading:o,dataTestimonials:t,dataButtons:a})}),Ic=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataTestimonials:n,dataButtons:s})=>(0,Ot.jsx)(Y,{className:i(e===1&&(n?.length??0)>3?"[&>.wrapper]:max-w-full [&>.wrapper]:md:px-0":"",e===3?"overflow-hidden":"",t),idSection:a,background:o,children:(0,Ot.jsx)(bf,{template:e,dataHeading:r,dataTestimonials:n,dataButtons:s})});var Jn=v(require("html-react-parser"),1);var $=require("react/jsx-runtime"),es=({dataFAQ:e,dataHeading:o,dataButtons:t})=>{let a=r=>(0,$.jsx)(yt,{type:"single",collapsible:!0,defaultValue:r?.isActiveFistQuestion&&r?.contents?.[0]?.title||"",className:"w-full",children:r?.contents?.map((n,s)=>(0,$.jsxs)(wt,{value:n.title,className:"last:border-none",children:[(0,$.jsx)(Nt,{className:"md:text-lg",children:n.title}),(0,$.jsx)(Pt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,Jn.default)(n.description)})]},s))});return(0,$.jsxs)("div",{className:"grid grid-cols-1 gap-y-0 md:grid-cols-3 md:gap-x-10",children:[(0,$.jsx)("div",{className:"relative",children:(0,$.jsxs)("div",{className:"md:sticky md:top-16",children:[o&&(0,$.jsx)(w,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"left",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),t&&(0,$.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("hidden md:mt-6 md:flex",t?.className),align:"left"})]})}),e&&e.length>0&&e[0]&&(0,$.jsx)("div",{className:"col-span-2",children:a(e[0])}),t&&(0,$.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i("mt-3 md:hidden",t?.className),align:"center"})]})},Ac=({dataFAQ:e,dataHeading:o,dataButtons:t,dataHorizontalScroll:a})=>{let{showGradientOverlay:r=!0,gradientOverlayColor:n,className:s}=a||{},l=c=>(0,$.jsx)(yt,{type:"single",collapsible:!0,defaultValue:c?.isActiveFistQuestion&&c?.contents?.[0]?.title||"",className:"w-full",children:c?.contents?.map((d,p)=>(0,$.jsxs)(wt,{value:d.title,className:"last:border-none",children:[(0,$.jsx)(Nt,{className:"md:text-lg",children:d.title}),(0,$.jsx)(Pt,{className:"prose prose-sm sm:prose-base prose-strong:text-gray-600 max-w-none text-gray-600",children:(0,Jn.default)(d.description)})]},p))});return(0,$.jsxs)($.Fragment,{children:[o&&(0,$.jsx)(w,{tagline:o.tagline,title:o.title,description:o.description,tagHeading:o.tagHeading||"h2",align:"center",colorScheme:o.colorScheme||"pink",sizeHeading:o.sizeHeading,className:i(o.className)}),e&&(0,$.jsxs)(Dt,{defaultValue:e[0]?.title,children:[e?.length>=1&&(0,$.jsxs)(Rt,{showGradientOverlay:r,gradientOverlayColor:n,className:s,children:[(0,$.jsx)(Tt,{className:"mb-3 text-center",children:(0,$.jsx)(mt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",size:"base",children:e.map((c,d)=>(0,$.jsx)(ct,{value:c.title,children:c.title},c.title+d))})}),(0,$.jsx)(kt,{}),(0,$.jsx)(St,{})]}),e.map((c,d)=>(0,$.jsx)(dt,{className:"mx-auto mt-0 max-w-3xl",value:c.title,children:l(c)},c.title+d))]}),t&&(0,$.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className),align:"center"})]})};var ao=require("react/jsx-runtime"),yf=({template:e,dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})=>{switch(e){case 1:return(0,ao.jsx)(es,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});case 2:return(0,ao.jsx)(Ac,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r});default:return(0,ao.jsx)(es,{dataFAQ:o,dataHeading:t,dataButtons:a,dataHorizontalScroll:r})}},wf=({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})=>(0,ao.jsx)(ao.Fragment,{children:yf({dataHeading:e,dataFAQ:o,template:t,dataButtons:a,dataHorizontalScroll:r})}),Lc=({dataHeading:e,dataFAQ:o=[],className:t,background:a,idSection:r,dataButtons:n,dataHorizontalScroll:s,template:l=1})=>(0,ao.jsx)(Y,{className:t,idSection:r,background:a,children:(0,ao.jsx)(wf,{dataHeading:e,dataFAQ:o,template:l,dataHorizontalScroll:s,dataButtons:n})});var Jr=v(require("react"),1),Fc=require("@heroicons/react/20/solid"),zc=v(require("html-react-parser"),1);var E=require("react/jsx-runtime"),Nf=({news:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("div",{className:"relative block aspect-[1/1] overflow-hidden rounded-md bg-gray-100 md:aspect-[77/37] md:rounded-none",children:(0,E.jsxs)("picture",{children:[(0,E.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,E.jsx)("img",{className:"h-full w-full object-cover",src:e?.thumbnailMobile,alt:e?.title})]})}),(0,E.jsxs)("div",{className:"mt-3 flex flex-1 flex-col md:mt-0 md:p-3",children:[(0,E.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,E.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Pe,{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,E.jsx)("span",{className:"flex-none leading-none",children:"\xB7"})]}),(0,E.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e?.dateTime})]})]})]})},ts=(0,Jr.memo)(({dataHeading:e,dataHorizontalScroll:o,dataNews:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},c=(p,f,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(f):window.open(u,"_blank")},d=(p,f)=>(0,E.jsxs)("div",{children:[(0,E.jsx)("div",{className:i("-mx-2 flex flex-row flex-wrap gap-y-5",p?.newsList?.length<4?"md:justify-center":""),children:p?.newsList?.map((u,b)=>(0,E.jsx)("div",{className:"min-w-0 basis-1/2 px-2 lg:basis-1/4",children:(0,E.jsx)("div",{onClick:D=>c(D,u?.id,u?.url),className:i("group flex cursor-pointer flex-col overflow-hidden md:h-full md:rounded-md md:bg-white md:shadow-md",p?.classNameItem),children:(0,E.jsx)(Nf,{news:u})},u?.id)},b))}),p?.isShowBtn&&(0,E.jsx)("div",{className:"mt-8 flex w-full items-center justify-center",children:(0,E.jsxs)(qe,{action:p?.btnUrl||r&&(()=>r?.(f)),newTab:p?.isNewTab,variant:"outline",disabled:p?.isLoading,children:[(0,zc.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,E.jsx)(Vo,{className:"animate-spin-loading ml-2 h-5 w-5"}):r&&!p?.btnUrl&&(0,E.jsx)(Fc.ArrowDownIcon,{className:"-mb-1 ml-2 h-5 w-5 animate-bounce"})]})})]},p?.title||f);return(0,E.jsxs)(Jr.default.Fragment,{children:[e&&(0,E.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i(e?.className)}),t?.length>1?(0,E.jsxs)(Dt,{defaultValue:t[0]?.title,children:[(0,E.jsxs)(Rt,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[(0,E.jsx)(Tt,{className:"mb-6 text-center",children:(0,E.jsx)(mt,{className:"mx-auto mb-0 inline-flex w-auto items-center overflow-visible",children:t.map((p,f)=>(0,E.jsx)(ct,{value:p.title,children:p.title},p.title+f))})}),(0,E.jsx)(kt,{}),(0,E.jsx)(St,{})]}),t.map((p,f)=>(0,E.jsx)(dt,{value:p.title,children:d(p,f)},p.title+f))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var bo=require("react/jsx-runtime"),Pf=({template:e,dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,bo.jsx)(ts,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,bo.jsx)(ts,{dataNews:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Cf=({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,bo.jsx)(bo.Fragment,{children:Pf({dataHeading:e,dataHorizontalScroll:o,dataNews:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ec=({idSection:e,dataHeading:o,dataHorizontalScroll:t,dataNews:a=[],className:r,background:n,template:s=1,onClickModal:l,onClickLoadMore:c})=>(0,bo.jsx)(Y,{className:i(r),background:n,idSection:e,children:(0,bo.jsx)(Cf,{dataHeading:o,dataHorizontalScroll:t,dataNews:a,template:s,onClickModal:l,onClickLoadMore:c})});var ge=require("react/jsx-runtime"),Hc=({dataHeading:e,dataCTA:o,dataButtons:t})=>(0,ge.jsxs)("div",{className:"rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 md:py-14 md:px-10 bg-pink-50",style:{background:o?.background},children:[e&&(0,ge.jsx)(w,{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,ge.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"center"})]}),Rf=({dataHeading:e,dataCTA:o,dataButtons:t,dataMedia:a})=>(0,ge.jsxs)("div",{className:"grid gap-6 grid-cols-1 md:grid-cols-2 rounded-2xl block relative overflow-hidden lg:overflow-visible p-6 pb-0 md:px-10 bg-pink-700 md:pb-0 md:pt-0",style:o?.background?{background:o.background}:{},children:[(0,ge.jsxs)("div",{className:"md:py-14 flex flex-col justify-center",children:[e&&(0,ge.jsx)(w,{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,ge.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:i(t?.className,"mt-0 md:mt-0"),align:"left"})]}),(0,ge.jsx)("div",{className:" max-w-sm mx-auto md:ml-auto md:mr-0 w-full md:pt-10 self-end",children:a&&(0,ge.jsx)(U,{ratio:4/3,children:(0,ge.jsx)("img",{src:a.src,alt:a.alt,className:"h-full w-full rounded-md object-contain"})})})]}),Tf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>{switch(e){case 1:return(0,ge.jsx)(Hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});case 2:return(0,ge.jsx)(Rf,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r});default:return(0,ge.jsx)(Hc,{dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}},kf=({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})=>(0,ge.jsx)(ge.Fragment,{children:Tf({template:e,dataHeading:o,dataCTA:t,dataButtons:a,dataMedia:r})}),_c=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})=>(0,ge.jsx)(Y,{className:t,idSection:a,background:o,children:(0,ge.jsx)(kf,{template:e,dataHeading:r,dataCTA:n,dataButtons:s,dataMedia:l})});var os=v(require("react"),1),ei=v(require("html-react-parser"),1);var tt=require("react/jsx-runtime"),Sf=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,tt.jsxs)("div",{className:"text-center",children:[(0,tt.jsx)("div",{className:"text-3xl font-bold text-pink-500 md:text-4xl",children:(0,ei.default)(t??"")}),(0,tt.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-900",children:(0,ei.default)(o??"")}),a&&(0,tt.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,ei.default)(a??"")})]})},ti=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,tt.jsxs)(os.default.Fragment,{children:[t&&(0,tt.jsx)(w,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&(0,tt.jsx)("div",{className:i("grid grid-cols-1 gap-10 py-4 md:grid-cols-3 md:gap-4 md:py-0",e?.length===2&&"md:grid-cols-4 md:[&>*:first-child]:col-start-2",e?.length===4&&"md:grid-cols-4"),children:e?.map((a,r)=>(0,tt.jsx)(os.default.Fragment,{children:(0,tt.jsx)(Sf,{metric:a})},r))}),o&&(0,tt.jsx)(N,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var as=v(require("react"),1),oi=v(require("html-react-parser"),1);var ot=require("react/jsx-runtime"),Df=({metric:e})=>{let{metricTitle:o="",metricValue:t="",metricDescription:a=""}=e??{};return(0,ot.jsxs)("div",{className:"bg-gray-100 p-4 text-center md:p-8",children:[(0,ot.jsx)("div",{className:"text-2xl font-bold text-gray-900 md:text-3xl",children:(0,oi.default)(t??"")}),(0,ot.jsx)("div",{className:"mt-2 text-sm font-semibold text-gray-500",children:(0,oi.default)(o??"")}),a&&(0,ot.jsx)("div",{className:"mt-2 hidden text-sm text-gray-500 md:block",children:(0,oi.default)(a??"")})]})},rs=({dataMetrics:e,dataButtons:o,dataHeading:t})=>(0,ot.jsxs)(as.default.Fragment,{children:[t&&(0,ot.jsx)(w,{tagline:t?.tagline,title:t?.title,description:t?.description,tagHeading:t?.tagHeading,align:"center",colorScheme:t?.colorScheme||"pink",sizeHeading:t?.sizeHeading,className:i(t?.className)}),e&&e?.length>0&&(0,ot.jsx)("div",{className:i("grid grid-cols-2 gap-px overflow-hidden rounded-lg md:rounded-xl md:py-0 lg:grid-cols-4",e?.length===2&&"lg:grid-cols-2",e?.length===3&&"lg:grid-cols-3"),children:e?.map((a,r)=>(0,ot.jsx)(as.default.Fragment,{children:(0,ot.jsx)(Df,{metric:a})},r))}),o&&(0,ot.jsx)(N,{isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:i(o?.className,"mt-8 md:mt-10"),align:"center"})]});var ro=require("react/jsx-runtime"),Mf=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>{switch(t){case 1:return(0,ro.jsx)(ti,{dataMetrics:o,dataButtons:a,dataHeading:e});case 2:return(0,ro.jsx)(rs,{dataMetrics:o,dataButtons:a,dataHeading:e});default:return(0,ro.jsx)(ti,{dataMetrics:o,dataButtons:a,dataHeading:e})}},If=({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})=>(0,ro.jsx)(ro.Fragment,{children:Mf({dataHeading:e,dataMetrics:o,template:t,dataButtons:a})}),Bc=({idSection:e,dataHeading:o,dataMetrics:t=[],dataButtons:a,background:r,className:n,template:s})=>(0,ro.jsx)(Y,{className:i(n),background:r,idSection:e,children:(0,ro.jsx)(If,{dataHeading:o,dataMetrics:t,dataButtons:a,template:s})});var Oc=require("react"),Ga=require("react/jsx-runtime"),Vc=(0,Oc.forwardRef)(({className:e,title:o,children:t},a)=>(0,Ga.jsxs)("div",{className:e,ref:a,children:[(0,Ga.jsx)("div",{className:"font-semibold text-gray-800",children:o}),(0,Ga.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 $c=require("react");var at=require("react/jsx-runtime"),Af=()=>(0,at.jsx)("div",{className:"p-3 border rounded-lg",children:(0,at.jsxs)("div",{className:"flex items-center gap-3",children:[(0,at.jsx)(_a,{className:"rounded-md h-9 w-9 "}),(0,at.jsx)("div",{className:"flex-1",children:(0,at.jsx)(_a,{className:"w-48 h-5 "})}),(0,at.jsx)("div",{className:"w-4 h-4 border-2 border-gray-200 rounded-full"})]})});function Lf(){return(0,at.jsx)(at.Fragment,{children:Array.from({length:4}).map((e,o)=>(0,at.jsx)(Af,{},o))})}var Wc=Lf;var ke=require("react/jsx-runtime"),Ff=({paymentMethod:e})=>(0,ke.jsx)(Ea,{disabled:e?.disabled,value:e?.paymentMethod,className:"data-[state=checked]:bg-pink-50/50",children:(0,ke.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,ke.jsx)("img",{className:"h-9 w-9 object-cover",src:e.logo,alt:e?.name}),(0,ke.jsxs)("div",{className:"grid grid-cols-1 gap-1",children:[(0,ke.jsx)("div",{className:"md:text-md line-clamp-2 text-sm font-medium text-gray-700",children:e?.name}),e?.label&&(0,ke.jsx)("div",{className:"text-xs font-semibold text-pink-500",children:e?.label}),e?.description&&(0,ke.jsx)("div",{className:"text-xs font-normal text-gray-500 ",children:e?.description})]})]})}),Gc=({title:e="Ch\u1ECDn ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",paymentMethods:o,isLoading:t,onSelectPaymentMethod:a,defaultPaymentMethod:r=""})=>{let n=(0,$c.useCallback)(s=>a?.(s),[a]);return(0,ke.jsxs)(ke.Fragment,{children:[e&&(0,ke.jsx)("div",{className:"text-base font-semibold text-gray-800 ",children:e}),t?(0,ke.jsx)(Wc,{}):(0,ke.jsx)(za,{defaultValue:r??"captureWallet",orientation:"vertical",className:"grid grid-cols-1 gap-4",onValueChange:n,children:o?.length>0&&o?.map(s=>(0,ke.jsx)(Ff,{paymentMethod:s},s.id))})]})};var is=require("react");var ss=require("react/jsx-runtime"),zf=(0,is.forwardRef)(({children:e,className:o},t)=>(0,ss.jsx)("div",{ref:t,className:i("grid grid-cols-1 gap-4 bg-white",o),children:e})),ns=(0,is.forwardRef)(({children:e,className:o,...t},a)=>(0,ss.jsx)(zf,{ref:a,className:o,...t,children:e}));ns.displayName="Payment";var jc=require("react");var ja=require("react/jsx-runtime"),Qc=(0,jc.forwardRef)(({className:e,children:o},t)=>(0,ja.jsxs)("div",{className:i("",e),ref:t,children:[(0,ja.jsx)("hr",{className:"mb-5 h-px w-full bg-gray-500"}),(0,ja.jsx)("div",{className:"flex w-full items-center space-x-3",children:o})]}));var Uc=require("react");var Xc=require("react/jsx-runtime"),qc=(0,Uc.forwardRef)(({className:e,children:o},t)=>(0,Xc.jsx)("div",{className:i("pb-5",e),ref:t,children:o}));var Zc=require("react");var ai=require("@heroicons/react/20/solid");var te=require("react/jsx-runtime"),Ef=({iconPaymentResult:e,message:o="",title:t=""})=>(0,te.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,te.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,te.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,te.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,te.jsx)(ta,{message:o,type:"success",icon:(0,te.jsx)(ai.CheckBadgeIcon,{className:"h-5 w-5 shrink-0 text-green-500"})})]}),Hf=({iconPaymentResult:e,message:o="",title:t=""})=>(0,te.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,te.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,te.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,te.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),(0,te.jsx)(ta,{message:o,type:"error",icon:(0,te.jsx)(ai.XCircleIcon,{className:"h-5 w-5 shrink-0 text-red-600"})})]}),_f=({iconPaymentResult:e,message:o="",title:t=""})=>(0,te.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,te.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,te.jsx)("div",{className:"relative h-12 w-12 shrink-0 overflow-hidden object-cover",children:e}),t&&(0,te.jsx)("div",{className:"text-center text-lg font-bold text-gray-800 md:text-left md:text-2xl",children:t})]}),o&&(0,te.jsx)(ta,{message:o,type:"neutral"})]}),Yc=({status:e,title:o,message:t,iconPaymentResult:a})=>{switch(e){case"success":return(0,te.jsx)(Ef,{status:e,title:o,message:t,iconPaymentResult:a||(0,te.jsx)("img",{className:"",width:48,height:48,src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161325-638664200053564141.svg"})});case"failed":return(0,te.jsx)(Hf,{status:e,title:o,message:t,iconPaymentResult:a||(0,te.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161658-638664202186984790.svg"})});case"pending":return(0,te.jsx)(_f,{status:e,title:o,message:t,iconPaymentResult:a||(0,te.jsx)("img",{className:"",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-241105161636-638664201963670899.svg"})});default:}};var ri=require("react/jsx-runtime"),Kc=(0,Zc.forwardRef)(({className:e,status:o,message:t,title:a,iconPaymentResult:r,children:n},s)=>(0,ri.jsxs)("div",{ref:s,className:i("rounded-lg p-4",e),children:[(0,ri.jsx)(Yc,{iconPaymentResult:r,title:a,message:t,status:o}),n]}));var ni=require("react");var sa=require("react/jsx-runtime"),ii=({content:e})=>(0,sa.jsxs)("picture",{children:[(0,sa.jsx)("source",{media:"(max-width: 639px)",srcSet:e?.imageMobile||e.imageDesktop}),(0,sa.jsx)("img",{alt:"main-banner-top",className:"w-full",src:e.imageDesktop}),(0,sa.jsx)(qe,{variant:"transparent",className:"absolute inset-0 h-full w-full opacity-0",...e?.button})]});var yo=require("react/jsx-runtime"),Bf=({template:e,content:o})=>{switch(e){case 1:return(0,yo.jsx)(ii,{content:o});default:return(0,yo.jsx)(ii,{content:o})}},Jc=(0,ni.forwardRef)(({template:e,content:o},t)=>((0,ni.useEffect)(()=>{let a=document.querySelector(".container-topbar");if(a instanceof HTMLElement){let r=a.offsetHeight;document.documentElement.style.setProperty("--container-topbar-height",`${r}px`)}},[o]),(0,yo.jsxs)("div",{ref:t,className:"container-topbar relative flex items-center justify-between",style:{background:o?.background||"#fafafa"},children:[(0,yo.jsx)("div",{className:"mx-auto w-full max-w-6xl px-0 md:px-8 lg:px-8",children:(0,yo.jsx)("div",{className:"content",children:Bf({template:e,content:o})})}),(0,yo.jsx)("style",{children:`
|
|
302
302
|
.container-topbar .content {
|
|
303
303
|
width: 100%;
|
|
304
304
|
aspect-ratio: 1088/50;
|