@momo-webplatform/mobase 0.2.83 → 0.2.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,7 +67,7 @@
67
67
  transform: translate3d(0, 30%, 0);
68
68
  }
69
69
  }
70
- `})]}),Xt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:m=!1,...c})=>(0,b.jsx)(pt,{...c,children:(0,b.jsx)(Ze,{className:i("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:(0,b.jsx)(Et,{className:"p-0",children:(0,b.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,b.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||(0,b.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,b.jsx)("div",{className:"mt-1 text-gray-500 ",children:m?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,b.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,b.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,b.jsx)("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,b.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,b.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,b.jsxs)("div",{className:"relative",children:[m&&(0,b.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,b.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,b.jsx)(ld,{img:r,isQrForAll:m,children:n&&(0,b.jsx)(ss.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 ms=require("react");var ko=require("react"),ls=v(require("ua-parser-js"),1),md=()=>(0,ls.default)().device.type==="mobile",cd=typeof window<"u"?ko.useLayoutEffect:ko.useEffect,Da=()=>{let[e,o]=(0,ko.useState)(!1);return cd(()=>{o(md())},[]),e};var Ht=require("react/jsx-runtime"),Ve=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[m,c]=(0,ms.useState)(!1),d=Da(),p=!!a?.qrLink,g=()=>{let Y=p?a?.qrLink:e;return typeof Y=="string"?Y.trim():""},u=()=>{let Y=g();!Y&&typeof e!="function"||(typeof e=="function"?e():window.open(Y,o?"_blank":"_self"))},y=(Y,oe=0)=>{let j=document.querySelector(Y);if(!j)return;let T=j.getBoundingClientRect().top+window.scrollY-oe;window.scrollTo({top:T,behavior:"smooth"})},L=()=>{typeof e=="string"&&e.startsWith("#")?y(e,t):u()},O=()=>(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(Le,{...s,className:r,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Ht.jsx)(Xt,{...a,open:m,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?O():(0,Ht.jsx)(Le,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):O():(0,Ht.jsx)(Le,{...s,onClick:L,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var So=v(require("react"),1),Ma=require("@radix-ui/react-icons"),cs=require("@radix-ui/react-slot");var We=require("react/jsx-runtime"),Vr=So.forwardRef(({className:e,...o},t)=>(0,We.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Vr.displayName="Breadcrumb";var Wr=So.forwardRef(({className:e,...o},t)=>(0,We.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}));Wr.displayName="BreadcrumbList";var $r=So.forwardRef(({className:e,...o},t)=>(0,We.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));$r.displayName="BreadcrumbItem";var Gr=So.forwardRef(({asChild:e,className:o,...t},a)=>(0,We.jsx)(e?cs.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Gr.displayName="BreadcrumbLink";var jr=So.forwardRef(({className:e,...o},t)=>(0,We.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));jr.displayName="BreadcrumbPage";var Ur=({children:e,className:o,...t})=>(0,We.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,We.jsx)(Ma.ChevronRightIcon,{className:"w-2 h-2"})});Ur.displayName="BreadcrumbSeparator";var Qr=({className:e,...o})=>(0,We.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,We.jsx)(Ma.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,We.jsx)("span",{className:"sr-only",children:"More"})]});Qr.displayName="BreadcrumbElipssis";var Ha=v(require("html-react-parser"),1);var Yo=require("react");var Do=require("react/jsx-runtime"),qr=(0,Yo.createContext)({align:"center"}),Ia=({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,Do.jsx)("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Aa=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,m={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=(0,Yo.useContext)(qr);return(0,Do.jsx)(s,{className:i("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",m[t],c[o],a&&"truncate",r),children:n})},La=({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"},m={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=(0,Yo.useContext)(qr);return(0,Do.jsx)("div",{className:i(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],m[o],c[t],a&&"truncate",r),children:n})},Ea=({className:e,align:o="center",children:t})=>(0,Do.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Do.jsx)(qr.Provider,{value:{align:o},children:t})});var ft=require("react/jsx-runtime"),Z=({idSection:e,className:o,background:t,children:a})=>(0,ft.jsx)("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,ft.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:m})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",p=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,ft.jsxs)(Ea,{align:e,className:m,children:[o&&(0,ft.jsx)(Ia,{color:c,children:o}),t&&(0,ft.jsx)(Aa,{tagHeading:r,color:d,size:s,children:(0,Ha.default)(t)}),a&&(0,ft.jsx)(La,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,Ha.default)(a)})]})},N=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,ft.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,...m}=r;return(0,ft.jsx)(Ve,{...m,className:i(o&&"w-full md:w-auto",r?.className),children:(0,Ha.default)(s)},n)})});var Oa=v(require("react"),1),hs=require("@heroicons/react/20/solid"),ys=v(require("html-react-parser"),1);var ke=require("react"),Fa=require("lucide-react");var ds=v(require("react"),1),ps=require("@radix-ui/react-slot"),fs=require("class-variance-authority");var gs=require("react/jsx-runtime"),mo=(0,fs.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"}}),pe=ds.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let m=a?ps.Slot:"button",c=i(mo({variant:o,size:t,className:e}));return(0,gs.jsx)(m,{className:c,disabled:r,ref:s,...n,children:n.children})});pe.displayName="IconButton";var Te=require("react/jsx-runtime"),za=(0,ke.createContext)(void 0),gt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=(0,ke.useRef)(null),[n,s]=(0,ke.useState)({left:!1,right:!1}),m=(0,ke.useCallback)(()=>{let d=r.current;if(d){let{scrollLeft:p,scrollWidth:g,clientWidth:u}=d;s({left:p>0,right:Math.ceil(p+u)<g})}},[]);(0,ke.useEffect)(()=>{let d=r.current;if(d)return m(),window.addEventListener("resize",m),d.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),d.removeEventListener("scroll",m)}},[m]);let c=d=>{let p=r.current;if(p){let{scrollLeft:g,clientWidth:u,scrollWidth:y}=p,L=u*.7*(d==="left"?-1:1),O=g+L;O<0?O=0:O>y-u&&(O=y-u),p.scrollTo({left:O,behavior:"smooth"})}};return(0,Te.jsx)(za.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Te.jsxs)("div",{className:i("relative w-full",t),children:[e&&(0,Te.jsxs)(Te.Fragment,{children:[n.left&&(0,Te.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,Te.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]})})},ut=({className:e,children:o})=>{let t=(0,ke.useContext)(za);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Te.jsx)("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},vt=({className:e,children:o,...t})=>{let a=(0,ke.useContext)(za);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Te.jsx)(pe,{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,Te.jsx)(Fa.ChevronLeft,{className:"h-4 w-4"})}):null},xt=({className:e,children:o,...t})=>{let a=(0,ke.useContext)(za);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Te.jsx)(pe,{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,Te.jsx)(Fa.ChevronRight,{className:"h-4 w-4"})}):null};var _a=v(require("react"),1),Ke=v(require("@radix-ui/react-tabs"),1);var Ba=require("react/jsx-runtime"),bt=Ke.Root,Je=_a.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,Ba.jsx)(Ke.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}));Je.displayName=Ke.List.displayName;var et=_a.forwardRef(({className:e,...o},t)=>(0,Ba.jsx)(Ke.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}));et.displayName=Ke.Trigger.displayName;var tt=_a.forwardRef(({className:e,...o},t)=>(0,Ba.jsx)(Ke.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}));tt.displayName=Ke.Content.displayName;var us=v(require("react"),1),vs=require("@radix-ui/react-slot"),xs=require("class-variance-authority");var bs=require("react/jsx-runtime"),Xr=(0,xs.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"}}),be=us.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let m=a?vs.Slot:"button",c=i(Xr({variant:o,size:t,className:e}));return(0,bs.jsx)(m,{className:c,disabled:r,ref:s,...n,children:n.children})});be.displayName="TextButton";var k=require("react/jsx-runtime"),dd=({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:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,k.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,k.jsxs)("picture",{children:[(0,k.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,k.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,k.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,k.jsx)(be,{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,k.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,k.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(be,{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,k.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,k.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Va=(0,Oa.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,g,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(g):window.open(u,"_blank")},d=(p,g)=>(0,k.jsxs)("div",{children:[(0,k.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,y)=>(0,k.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,k.jsx)("div",{onClick:L=>c(L,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,k.jsx)(dd,{blog:u})},u?.id)},y))}),p?.isShowBtn&&(0,k.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,k.jsxs)(Ve,{action:r?()=>r?.(g):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[(0,ys.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,k.jsx)(To,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!p?.btnUrl&&(0,k.jsx)(hs.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},p?.title||g);return(0,k.jsxs)(Oa.default.Fragment,{children:[e&&(0,k.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,k.jsxs)(bt,{defaultValue:t[0]?.title,children:[(0,k.jsxs)(gt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,k.jsx)(ut,{className:"mb-6 text-center",children:(0,k.jsx)(Je,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((p,g)=>(0,k.jsx)(et,{value:p.title,children:p.title},p.title+g))})}),(0,k.jsx)(vt,{}),(0,k.jsx)(xt,{})]}),t.map((p,g)=>(0,k.jsx)(tt,{value:p.title,children:d(p,g)},p.title+g))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Ft=v(require("react"),1),$a=require("@heroicons/react/20/solid"),Yr=v(require("html-react-parser"),1);var Q=v(require("react"),1),Wa=require("@heroicons/react/20/solid"),ws=v(require("embla-carousel-react"),1);var fe=require("react/jsx-runtime"),Ns=Q.createContext(null);function Zo(){let e=Q.useContext(Ns);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Se=Q.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},m)=>{let[c,d]=(0,ws.default)({...o,axis:e==="horizontal"?"x":"y"},a),[p,g]=Q.useState(!1),[u,y]=Q.useState(!1),L=Q.useCallback(oe=>{oe&&(g(oe.canScrollPrev()),y(oe.canScrollNext()))},[]),O=Q.useCallback(()=>{d?.scrollPrev()},[d]),V=Q.useCallback(()=>{d?.scrollNext()},[d]),Y=Q.useCallback(oe=>{oe.key==="ArrowLeft"?(oe.preventDefault(),O()):oe.key==="ArrowRight"&&(oe.preventDefault(),V())},[O,V]);return Q.useEffect(()=>{!d||!t||t(d)},[d,t]),Q.useEffect(()=>{if(d)return L(d),d.on("reInit",L),d.on("select",L),()=>{d?.off("select",L)}},[d,L]),(0,fe.jsx)(Ns.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:O,scrollNext:V,canScrollPrev:p,canScrollNext:u},children:(0,fe.jsx)("div",{ref:m,onKeyDownCapture:Y,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});Se.displayName="Carousel";var De=Q.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Zo();return(0,fe.jsx)("div",{ref:r,className:i(o,"overflow-hidden"),children:(0,fe.jsx)("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});De.displayName="CarouselContent";var Me=Q.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Zo();return(0,fe.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})});Me.displayName="CarouselItem";var co=Q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:m}=Zo();return(0,fe.jsxs)(pe,{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:!m,onClick:s,...a,children:[(0,fe.jsx)(Wa.ChevronLeftIcon,{className:"w-6 h-6"}),(0,fe.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});co.displayName="CarouselPrevious";var po=Q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:m}=Zo();return(0,fe.jsxs)(pe,{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:!m,onClick:s,...a,children:[(0,fe.jsx)(Wa.ChevronRightIcon,{className:"w-6 h-6"}),(0,fe.jsx)("span",{className:"sr-only",children:"Next slide"})]})});po.displayName="CarouselNext";var Ko=Q.forwardRef((e,o)=>{let{api:t}=Zo(),[,a]=Q.useState(!1),r=Q.useCallback(()=>a(m=>!m),[]);Q.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,fe.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(m,c)=>(0,fe.jsx)(pe,{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,fe.jsx)(fe.Fragment,{})});Ko.displayName="CarouselDots";var P=require("react/jsx-runtime"),pd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,P.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,P.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,P.jsx)("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&(0,P.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Yr.default)(e?.description??"")}),(0,P.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(be,{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,P.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,P.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},fd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:m,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,Ft.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Se,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,P.jsx)(De,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(g=>(0,P.jsx)(Me,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,P.jsx)("div",{onClick:u=>r(u,g?.id,g?.url),className:i("group cursor-pointer",p),children:(0,P.jsx)(pd,{blog:g})},g?.id)},g?.id))})}),s&&(0,P.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,P.jsxs)(Ve,{action:c&&c,newTab:d,variant:"outline",children:[(0,Yr.default)(m||"Xem th\xEAm")," "]})})]})},gd=({carouselRef:e})=>(0,P.jsxs)(pe,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,P.jsx)($a.ChevronLeftIcon,{className:"h-6 w-6"}),(0,P.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),ud=({carouselRef:e})=>(0,P.jsxs)(pe,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,P.jsx)($a.ChevronRightIcon,{className:"h-6 w-6"}),(0,P.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Zr=(0,Ft.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(g,"_blank")},[n,s]=(0,Ft.useState)(null),[,m]=(0,Ft.useState)(0),c=()=>n?(0,P.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,P.jsx)(gd,{carouselRef:n}),(0,P.jsx)(ud,{carouselRef:n})]}):(0,P.jsx)(P.Fragment,{});return(0,P.jsxs)(Ft.default.Fragment,{children:[(0,P.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,P.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,P.jsx)(c,{})]}),(0,P.jsx)(fd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:m,handleOnClickItem:r})]})});var zt=require("react/jsx-runtime"),vd=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,zt.jsx)(Va,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return(0,zt.jsx)(Zr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,zt.jsx)(Va,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},xd=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,zt.jsx)(zt.Fragment,{children:vd({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ps=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:m})=>(0,zt.jsx)(Z,{className:i("overflow-hidden",a),background:r,children:(0,zt.jsx)(xd,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:m})});var ja=v(require("react"),1),Ua=require("date-fns/locale"),Qa=require("lucide-react"),Ts=v(require("lunisolar"),1),ks=require("react-day-picker");var Cs=v(require("react"),1),Jo=v(require("@radix-ui/react-checkbox"),1),Rs=require("@heroicons/react/16/solid"),Kr=require("class-variance-authority");var Ga=require("react/jsx-runtime"),bd=(0,Kr.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"}}),hd=(0,Kr.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),ea=Cs.forwardRef(({className:e,size:o,...t},a)=>(0,Ga.jsx)(Jo.Root,{ref:a,className:i(bd({size:o}),e),...t,children:(0,Ga.jsx)(Jo.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,Ga.jsx)(Rs.CheckIcon,{className:i(hd({size:o}))})})}));ea.displayName=Jo.Root.displayName;var xe=require("react/jsx-runtime"),yd=({date:e,cusContent:o})=>{let t=null;return t=(0,Ts.default)(e).lunar,(0,xe.jsxs)(xe.Fragment,{children:[o?o(e):e.getDate(),t&&(0,xe.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},wd={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 Nd({isShow:e,setIsShow:o,lang:t}){let a=ja.useId();return(0,xe.jsx)("div",{className:"w-full p-3 pt-0",children:(0,xe.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,xe.jsx)(ea,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,xe.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Pd=e=>e.getDay()===0||e.getDay()===6;function ta({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[m,c]=ja.useState(!0);return(0,xe.jsx)(ks.DayPicker,{locale:r==="vi"?Ua.vi:Ua.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(Ye({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(Ye({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&m&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle: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:Pd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,xe.jsx)(Qa.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,xe.jsx)(Qa.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,xe.jsx)(yd,{date:d.date,cusContent:n}),Months:({children:d})=>(0,xe.jsxs)("div",{className:"w-full",children:[(0,xe.jsx)("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,xe.jsx)(Nd,{isShow:m,setIsShow:c,lang:r})]})},formatters:r==="vi"?wd:{},...s})}ta.displayName="Calendar";var qa=require("@heroicons/react/16/solid"),oa=require("date-fns"),Ds=require("lucide-react");var Ss=v(require("react"),1),_t=v(require("@radix-ui/react-popover"),1);var Jr=require("react/jsx-runtime"),Mo=_t.Root,Io=_t.Trigger,fo=Ss.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,Jr.jsx)(_t.Portal,{children:(0,Jr.jsx)(_t.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})}));fo.displayName=_t.Content.displayName;var J=require("react/jsx-runtime"),Ms=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:m,popoverProps:c,calendarProps:d,popoverContentProps:p})=>{let g=d?.selected||null;return(0,J.jsxs)("div",{children:[(0,J.jsxs)(Mo,{...c,children:[(0,J.jsx)(Io,{asChild:!0,children:(0,J.jsxs)(Le,{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",(!g||!(g instanceof Date)&&typeof g=="object"&&(!("from"in g)||!g.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...m,children:[(0,J.jsx)("div",{className:"line-clamp-1 flex-1",children:g instanceof Date?(0,oa.format)(g,s):g&&typeof g=="object"&&"from"in g&&"to"in g?(0,J.jsx)(J.Fragment,{children:g.from?g.to?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("span",{className:"date-from",children:(0,oa.format)(g.from,s)})," ",(0,J.jsx)("span",{className:"date-separator",children:"-"}),(0,J.jsx)("span",{className:"date-to",children:(0,oa.format)(g.to,s)})]}):(0,oa.format)(g.from,s):o}):o}),e&&(0,J.jsx)("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),(0,J.jsx)(Ds.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,J.jsx)(fo,{className:"w-auto border-none !p-0",...p,children:(0,J.jsx)(ta,{...d,defaultMonth:g&&typeof g=="object"&&"from"in g?g.from:g instanceof Date?g:void 0})})]}),a&&(0,J.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?(0,J.jsx)(qa.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,J.jsx)(qa.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,J.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var aa=require("react"),Za=require("@heroicons/react/16/solid"),Hs=require("date-fns");var ht=v(require("react"),1),Bt=require("@heroicons/react/16/solid"),Is=require("@heroicons/react/24/outline"),D=v(require("@radix-ui/react-select"),1);var z=require("react/jsx-runtime"),Ao=ht.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...m},c)=>(0,z.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,z.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,z.jsx)(D.Root,{disabled:s,...m,children:o}),a&&(0,z.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,z.jsx)(Bt.XCircleIcon,{width:16,height:16}):(0,z.jsx)(Is.QuestionMarkCircleIcon,{width:16,height:16}),(0,z.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Lo=D.Value,go=ht.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsxs)(D.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,z.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,z.jsx)(D.Icon,{asChild:!0,children:(0,z.jsx)(Bt.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));go.displayName=D.Trigger.displayName;var Xa=ht.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,z.jsx)(Bt.ChevronUpIcon,{className:"h-5 w-5"})}));Xa.displayName=D.ScrollUpButton.displayName;var Ya=ht.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.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,z.jsx)(Bt.ChevronDownIcon,{className:"h-5 w-5"})}));Ya.displayName=D.ScrollDownButton.displayName;var uo=ht.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,z.jsx)(D.Portal,{children:(0,z.jsxs)(D.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,z.jsx)(Xa,{}),(0,z.jsx)(D.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,z.jsx)(Ya,{})]})}));uo.displayName=D.Content.displayName;var Eo=ht.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsx)(D.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),ei=ht.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));ei.displayName=D.Label.displayName;var Ot=ht.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsxs)(D.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,z.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,z.jsx)(D.ItemIndicator,{children:(0,z.jsx)(Bt.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,z.jsx)(D.ItemText,{children:o})]})),ti=ht.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));ti.displayName=D.Separator.displayName;var As=["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"],Ls=["January","February","March","April","May","June","July","August","September","October","November","December"],oi=(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}},Es=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,m)=>n-m)};var H=require("react/jsx-runtime"),Fs=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:m="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:g=!1})=>{let[u,y]=(0,aa.useState)(o??null),L=Math.min(d,p),O=Math.max(d,p),V=m==="MM/yyyy",Y=(T,ve)=>{if(ve===0){y(void 0),t?.(void 0);return}let ae=u?.getFullYear()||new Date().getFullYear(),Ca=u?.getMonth()??0,lo=u?.getDate()??1;T==="month"&&ve!==null&&(Ca=ve-1),T==="year"&&ve!==null&&(ae=ve),V?lo=1:T==="day"&&ve!==null&&(lo=ve);let Yn=oi(ae,Ca+1).daysInMonth;lo>Yn&&(lo=1);let Go=new Date(ae,Ca,lo);(0,Hs.isValid)(Go)&&(y(Go),t?.(Go))},[oe,j]=(0,aa.useState)(!1),so=T=>{j(T)};return(0,aa.useEffect)(()=>{y(o??null)},[o]),(0,H.jsxs)("div",{className:i("relative",s&&"cursor-no-drop"),children:[(0,H.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",oe&&"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,H.jsx)("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,H.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!V&&(0,H.jsxs)(Ao,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:T=>Y("day",parseInt(T,10)),onOpenChange:so,className:"w-[30%]",children:[(0,H.jsx)(go,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Lo,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,H.jsx)(uo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,H.jsxs)(Eo,{children:[!g&&(0,H.jsx)(Ot,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:oi(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(T,ve)=>(ve+1).toString().padStart(2,"0")).map(T=>(0,H.jsx)(Ot,{value:T,children:T},T))]})})]}),(0,H.jsxs)(Ao,{value:u?(u.getMonth()+1).toString():"",onValueChange:T=>Y("month",parseInt(T,10)),onOpenChange:so,className:i(V?"w-1/2":"w-2/5"),children:[(0,H.jsx)(go,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Lo,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,H.jsx)(uo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,H.jsxs)(Eo,{children:[!g&&(0,H.jsx)(Ot,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(T,ve)=>ve+1).map(T=>(0,H.jsx)(Ot,{value:T.toString(),children:c==="vi"?As[T-1]:Ls[T-1]},T))]})})]}),(0,H.jsxs)(Ao,{value:u?u.getFullYear().toString():"",onValueChange:T=>Y("year",parseInt(T,10)),onOpenChange:so,className:i(V?"w-1/2":"w-[30%]"),children:[(0,H.jsx)(go,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Lo,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,H.jsx)(uo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,H.jsxs)(Eo,{children:[!g&&(0,H.jsx)(Ot,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Es(L,O).map(T=>(0,H.jsx)(Ot,{value:T.toString(),children:T},T))]})})]})]})]}),r&&(0,H.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,H.jsx)(Za.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,H.jsx)(Za.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,H.jsx)("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};var vo=v(require("react"),1),K=v(require("@radix-ui/react-alert-dialog"),1);var $e=require("react/jsx-runtime"),zs=K.Root,_s=K.Trigger,ai=K.Portal,Ka=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsx)(K.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}));Ka.displayName=K.Overlay.displayName;var ri=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsxs)(ai,{children:[(0,$e.jsx)(Ka,{}),(0,$e.jsx)(K.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})]}));ri.displayName=K.Content.displayName;var ii=({className:e,...o})=>(0,$e.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});ii.displayName="AlertDialogHeader";var ni=({className:e,...o})=>(0,$e.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});ni.displayName="AlertDialogFooter";var si=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsx)(K.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));si.displayName=K.Title.displayName;var li=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsx)(K.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));li.displayName=K.Description.displayName;var mi=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsx)(K.Action,{ref:t,className:i(Ye({variant:"primary"}),"",e),...o}));mi.displayName=K.Action.displayName;var ci=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsx)(K.Cancel,{ref:t,className:i(Ye({variant:"secondary"}),e),...o}));ci.displayName=K.Cancel.displayName;var Ja=require("react");var ra=require("react"),di=v(require("html-react-parser"),1),Os=require("motion/react");var Bs=v(require("@radix-ui/react-aspect-ratio"),1),U=Bs.Root;var W=require("react/jsx-runtime"),Cd=({guideGroup:e,mockup:o})=>{let[t,a]=(0,ra.useState)(),[r,n]=(0,ra.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,ra.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,W.jsx)(W.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,W.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,W.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,W.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,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,W.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,W.jsxs)(Se,{setApi:a,children:[(0,W.jsx)(De,{className:"ml-0",children:e?.stepList.map((m,c)=>(0,W.jsx)(Me,{className:"pl-0",children:(0,W.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:m?.image&&(0,W.jsx)("img",{src:m.image,className:"size-full object-contain",alt:m.title})})},c))}),(0,W.jsx)(co,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,W.jsx)(po,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,W.jsx)("div",{className:"flex flex-auto pl-12 pt-4",children:(0,W.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((m,c)=>(0,W.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,W.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,W.jsx)("div",{className:i(" text-sm font-medium",c+1===r?"text-pink-500":"text-gray-900"),children:(0,di.default)(m.title)}),m.content&&(0,W.jsx)(Os.motion.div,{initial:"closed",animate:c+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,W.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,di.default)(m.content)})})]},c))})})]})})},pi=Cd;var Vt=require("react"),fi=require("@heroicons/react/20/solid"),Vs=v(require("embla-carousel-autoplay"),1),ia=v(require("html-react-parser"),1);var x=require("react/jsx-runtime"),Rd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=(0,Vt.useState)(0),[s,m]=(0,Vt.useState)();return(0,Vt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,x.jsx)(pt,{open:e,onOpenChange:o,children:(0,x.jsxs)(Ze,{position:"bottom",height:"full",children:[(0,x.jsx)(qo,{children:(0,x.jsx)(Xo,{className:"line-clamp-1",children:t?.title})}),(0,x.jsxs)(Et,{className:"grid overflow-hidden p-0 ",children:[(0,x.jsx)(Se,{setApi:m,className:" grid overflow-hidden",children:(0,x.jsx)(De,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,x.jsx)(Me,{className:"h-full w-full pl-0",children:(0,x.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,x.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,x.jsx)("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:(0,x.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,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,x.jsx)(U,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,x.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,x.jsxs)("div",{className:"p-5 pb-12",children:[(0,x.jsx)("div",{className:"font-semibold",children:(0,ia.default)(c.title)}),c?.content&&(0,x.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,ia.default)(c.content)})]})]})},d))})}),(0,x.jsx)("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((c,d)=>(0,x.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},Td=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=(0,Vt.useState)(!1),[n,s]=(0,Vt.useState)(null),m=(0,Vt.useRef)((0,Vs.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),r(!0)};return e?.length===0?null:(0,x.jsxs)(x.Fragment,{children:[e?.length>1?(0,x.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,p)=>(0,x.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(p),children:[(0,x.jsx)("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,x.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:d.title})}),(0,x.jsxs)("div",{className: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,x.jsxs)("div",{className:"py-2",children:[t&&(0,x.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,x.jsx)("div",{className:"font-semibold",children:(0,ia.default)(d.title)}),d?.description&&(0,x.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,ia.default)(d.description)})]}),(0,x.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,x.jsx)(fi.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,x.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,x.jsx)("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:(0,x.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,x.jsxs)("div",{className: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,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,x.jsx)(Se,{plugins:[m.current],children:(0,x.jsx)(De,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,x.jsx)(Me,{className:"pl-0",onClick:()=>c(0),children:(0,x.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,x.jsx)("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},p))})})})]})})}),(0,x.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,x.jsxs)(be,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,x.jsx)(fi.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,x.jsx)(Rd,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},Ws=Td;var q=require("react/jsx-runtime"),$s=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return(0,q.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,q.jsx)("path",{d:t.d,fill:"currentColor"})})},gi=(0,Ja.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:m,className:c}=o||{},[d,p]=(0,Ja.useState)(t?.[0]?.title||"");return(0,q.jsxs)(q.Fragment,{children:[e&&(0,q.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,q.jsxs)(Ro,{children:[(0,q.jsx)(st,{lessThan:"md",children:(0,q.jsx)(Ws,{dataGuide:t,mockup:r,isStep:n})}),(0,q.jsx)(st,{greaterThan:"sm",children:t?.length>1?(0,q.jsxs)(bt,{defaultValue:t[0]?.title,onValueChange:g=>p(g),children:[(0,q.jsxs)(gt,{showGradientOverlay:s,gradientOverlayColor:m,className:c,children:[(0,q.jsx)(ut,{className:"mb-6 text-center",children:(0,q.jsx)(Je,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((g,u)=>{let y=u===t.length-1,L=d===g?.title||"";return(0,q.jsxs)(et,{value:g.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":"",L&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&(0,q.jsx)($s,{direction:"left",className:i("right-full top-0",L?"text-pink-500":"text-pink-100")}),g.title,n&&!y&&(0,q.jsx)($s,{direction:"right",className:i("left-full top-0",L?"text-pink-500":"text-pink-100")})]},g.title+u)})})}),(0,q.jsx)(vt,{}),(0,q.jsx)(xt,{})]}),t.map((g,u)=>(0,q.jsx)(tt,{value:g.title,children:(0,q.jsx)(pi,{guideGroup:g,mockup:r})},g.title+u))]}):t?.length===1&&t[0]&&(0,q.jsx)(pi,{guideGroup:t[0],mockup:r})})]}),a&&(0,q.jsx)(N,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var Yt=require("react/jsx-runtime"),kd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return(0,Yt.jsx)(gi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return(0,Yt.jsx)(gi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Sd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>(0,Yt.jsx)(Yt.Fragment,{children:kd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Gs=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:r,background:n,template:s=1,mockup:m="default",isStep:c=!1})=>(0,Yt.jsx)(Z,{className:i(r),background:n,children:(0,Yt.jsx)(Sd,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:m,isStep:c})});var er=require("lucide-react");var ge=require("react/jsx-runtime");function ui({current:e,total:o,onChange:t}){let a=r=>(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(mo({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,ge.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,ge.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(mo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ge.jsx)(er.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):(0,ge.jsxs)(ge.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(mo({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,ge.jsx)("button",{className:i(mo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(mo({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ge.jsx)(er.ChevronRight,{className:"h-4 w-4"})})})]})})}var js=require("react"),Us=require("@heroicons/react/24/outline"),Qs=require("@heroicons/react/24/solid");var yt=require("react/jsx-runtime"),qs=(0,js.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:m=3,...c},d)=>(0,yt.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,yt.jsx)("span",{className:i("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,yt.jsx)("textarea",{disabled:e,ref:d,className:i("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:m,...c}),t&&(0,yt.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?(0,yt.jsx)(Qs.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,yt.jsx)(Us.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,yt.jsx)("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,yt.jsx)("style",{children:`
70
+ `})]}),Xt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:m=!1,...c})=>(0,b.jsx)(pt,{...c,children:(0,b.jsx)(Ze,{className:i("md:max-w-2xl lg:max-w-3xl h-auto md:max-h-screen max-h-screen overflow-hidden [&>button>svg]:text-white border-0",e),size:"xl",positionRightCloseBtn:!0,children:(0,b.jsx)(Et,{className:"p-0",children:(0,b.jsxs)("div",{className:"flex flex-row flex-wrap",children:[(0,b.jsx)("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||(0,b.jsxs)("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[(0,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),(0,b.jsx)("div",{className:"mt-1 text-gray-500 ",children:m?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),(0,b.jsx)("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,b.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,b.jsx)("div",{className:"flex-none",children:(0,b.jsx)("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,b.jsxs)("div",{className:"flex-1 pl-4",children:[(0,b.jsx)("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),(0,b.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,b.jsx)("div",{className:"flex w-full items-center justify-center md:w-7/12 h-auto",style:{background:"url(https://homepage.momocdn.net/jk/momo2020/img/intro/qrcode-pattern.png) 10px 10px no-repeat,linear-gradient(to top,#c1177c,#e11b90)"},children:(0,b.jsxs)("div",{className:"px-5 py-10 text-center",children:[t&&(0,b.jsx)("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),(0,b.jsxs)("div",{className:"relative",children:[m&&(0,b.jsx)("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:(0,b.jsx)("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),(0,b.jsx)(ld,{img:r,isQrForAll:m,children:n&&(0,b.jsx)(ss.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 ms=require("react");var ko=require("react"),ls=v(require("ua-parser-js"),1),md=()=>(0,ls.default)().device.type==="mobile",cd=typeof window<"u"?ko.useLayoutEffect:ko.useEffect,Da=()=>{let[e,o]=(0,ko.useState)(!1);return cd(()=>{o(md())},[]),e};var Ht=require("react/jsx-runtime"),Ve=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[m,c]=(0,ms.useState)(!1),d=Da(),p=!!a?.qrLink,g=()=>{let Y=p?a?.qrLink:e;return typeof Y=="string"?Y.trim():""},u=()=>{let Y=g();!Y&&typeof e!="function"||(typeof e=="function"?e():window.open(Y,o?"_blank":"_self"))},y=(Y,oe=0)=>{let j=document.querySelector(Y);if(!j)return;let T=j.getBoundingClientRect().top+window.scrollY-oe;window.scrollTo({top:T,behavior:"smooth"})},L=()=>{typeof e=="string"&&e.startsWith("#")?y(e,t):u()},O=()=>(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsx)(Le,{...s,className:r,onClick:()=>c(!0),"data-name":"button-action-with-qr",children:n}),(0,Ht.jsx)(Xt,{...a,open:m,onOpenChange:()=>c(!1),qrLink:a?.qrLink||""})]});return p?d?a?.isQrForAll?O():(0,Ht.jsx)(Le,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):O():(0,Ht.jsx)(Le,{...s,onClick:L,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};var So=v(require("react"),1),Ma=require("@radix-ui/react-icons"),cs=require("@radix-ui/react-slot");var We=require("react/jsx-runtime"),Vr=So.forwardRef(({className:e,...o},t)=>(0,We.jsx)("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));Vr.displayName="Breadcrumb";var Wr=So.forwardRef(({className:e,...o},t)=>(0,We.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}));Wr.displayName="BreadcrumbList";var $r=So.forwardRef(({className:e,...o},t)=>(0,We.jsx)("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));$r.displayName="BreadcrumbItem";var Gr=So.forwardRef(({asChild:e,className:o,...t},a)=>(0,We.jsx)(e?cs.Slot:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));Gr.displayName="BreadcrumbLink";var jr=So.forwardRef(({className:e,...o},t)=>(0,We.jsx)("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));jr.displayName="BreadcrumbPage";var Ur=({children:e,className:o,...t})=>(0,We.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??(0,We.jsx)(Ma.ChevronRightIcon,{className:"w-2 h-2"})});Ur.displayName="BreadcrumbSeparator";var Qr=({className:e,...o})=>(0,We.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[(0,We.jsx)(Ma.DotsHorizontalIcon,{className:"w-4 h-4 text-gray-900"}),(0,We.jsx)("span",{className:"sr-only",children:"More"})]});Qr.displayName="BreadcrumbElipssis";var Ha=v(require("html-react-parser"),1);var Yo=require("react");var Do=require("react/jsx-runtime"),qr=(0,Yo.createContext)({align:"center"}),Ia=({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,Do.jsx)("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Aa=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,m={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},c={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:d}=(0,Yo.useContext)(qr);return(0,Do.jsx)(s,{className:i("max-w-4xl font-bold",d==="center"?"mx-auto":d==="right"?"ml-auto":"",m[t],c[o],a&&"truncate",r),children:n})},La=({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"},m={small:"text-base",large:"md:text-lg text-base"},c={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:d}=(0,Yo.useContext)(qr);return(0,Do.jsx)("div",{className:i(d==="center"?"mx-auto max-w-2xl":d==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],m[o],c[t],a&&"truncate",r),children:n})},Ea=({className:e,align:o="center",children:t})=>(0,Do.jsx)("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:(0,Do.jsx)(qr.Provider,{value:{align:o},children:t})});var ft=require("react/jsx-runtime"),Z=({idSection:e,className:o,background:t,children:a})=>(0,ft.jsx)("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:(0,ft.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:m})=>{let c=n==="black"?"pink":n==="pink"?"regular":"white",d=n==="pink"?"pink":n==="white"?"white":"regular",p=n==="white"?"white":"regular";return!t&&!a&&!o?null:(0,ft.jsxs)(Ea,{align:e,className:m,children:[o&&(0,ft.jsx)(Ia,{color:c,children:o}),t&&(0,ft.jsx)(Aa,{tagHeading:r,color:d,size:s,children:(0,Ha.default)(t)}),a&&(0,ft.jsx)(La,{color:p,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:(0,Ha.default)(a)})]})},N=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:(0,ft.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,...m}=r;return(0,ft.jsx)(Ve,{...m,className:i(o&&"w-full md:w-auto",r?.className),children:(0,Ha.default)(s)},n)})});var Oa=v(require("react"),1),hs=require("@heroicons/react/20/solid"),ys=v(require("html-react-parser"),1);var ke=require("react"),Fa=require("lucide-react");var ds=v(require("react"),1),ps=require("@radix-ui/react-slot"),fs=require("class-variance-authority");var gs=require("react/jsx-runtime"),mo=(0,fs.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"}}),pe=ds.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let m=a?ps.Slot:"button",c=i(mo({variant:o,size:t,className:e}));return(0,gs.jsx)(m,{className:c,disabled:r,ref:s,...n,children:n.children})});pe.displayName="IconButton";var Te=require("react/jsx-runtime"),za=(0,ke.createContext)(void 0),gt=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=(0,ke.useRef)(null),[n,s]=(0,ke.useState)({left:!1,right:!1}),m=(0,ke.useCallback)(()=>{let d=r.current;if(d){let{scrollLeft:p,scrollWidth:g,clientWidth:u}=d;s({left:p>0,right:Math.ceil(p+u)<g})}},[]);(0,ke.useEffect)(()=>{let d=r.current;if(d)return m(),window.addEventListener("resize",m),d.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),d.removeEventListener("scroll",m)}},[m]);let c=d=>{let p=r.current;if(p){let{scrollLeft:g,clientWidth:u,scrollWidth:y}=p,L=u*.7*(d==="left"?-1:1),O=g+L;O<0?O=0:O>y-u&&(O=y-u),p.scrollTo({left:O,behavior:"smooth"})}};return(0,Te.jsx)(za.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:c,gradientOverlayColor:o},children:(0,Te.jsxs)("div",{className:i("relative w-full",t),children:[e&&(0,Te.jsxs)(Te.Fragment,{children:[n.left&&(0,Te.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,Te.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]})})},ut=({className:e,children:o})=>{let t=(0,ke.useContext)(za);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return(0,Te.jsx)("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},vt=({className:e,children:o,...t})=>{let a=(0,ke.useContext)(za);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?(0,Te.jsx)(pe,{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,Te.jsx)(Fa.ChevronLeft,{className:"h-4 w-4"})}):null},xt=({className:e,children:o,...t})=>{let a=(0,ke.useContext)(za);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?(0,Te.jsx)(pe,{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,Te.jsx)(Fa.ChevronRight,{className:"h-4 w-4"})}):null};var _a=v(require("react"),1),Ke=v(require("@radix-ui/react-tabs"),1);var Ba=require("react/jsx-runtime"),bt=Ke.Root,Je=_a.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>(0,Ba.jsx)(Ke.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}));Je.displayName=Ke.List.displayName;var et=_a.forwardRef(({className:e,...o},t)=>(0,Ba.jsx)(Ke.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}));et.displayName=Ke.Trigger.displayName;var tt=_a.forwardRef(({className:e,...o},t)=>(0,Ba.jsx)(Ke.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}));tt.displayName=Ke.Content.displayName;var us=v(require("react"),1),vs=require("@radix-ui/react-slot"),xs=require("class-variance-authority");var bs=require("react/jsx-runtime"),Xr=(0,xs.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"}}),be=us.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let m=a?vs.Slot:"button",c=i(Xr({variant:o,size:t,className:e}));return(0,bs.jsx)(m,{className:c,disabled:r,ref:s,...n,children:n.children})});be.displayName="TextButton";var k=require("react/jsx-runtime"),dd=({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:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:(0,k.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,k.jsxs)("picture",{children:[(0,k.jsx)("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),(0,k.jsx)("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),(0,k.jsxs)("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&(0,k.jsx)(be,{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,k.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,k.jsxs)("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(be,{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,k.jsx)("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&(0,k.jsx)("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},Va=(0,Oa.memo)(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:m}=o||{},c=(p,g,u)=>{p?.preventDefault(),p?.stopPropagation(),a?a(g):window.open(u,"_blank")},d=(p,g)=>(0,k.jsxs)("div",{children:[(0,k.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,y)=>(0,k.jsx)("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:(0,k.jsx)("div",{onClick:L=>c(L,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",p?.classNameItem),children:(0,k.jsx)(dd,{blog:u})},u?.id)},y))}),p?.isShowBtn&&(0,k.jsx)("div",{className:"flex items-center justify-center w-full mt-8",children:(0,k.jsxs)(Ve,{action:r?()=>r?.(g):p?.btnUrl,newTab:p?.isNewTab,variant:"outline",children:[(0,ys.default)(p.btnName||"Xem th\xEAm"),p?.isLoading?(0,k.jsx)(To,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!p?.btnUrl&&(0,k.jsx)(hs.ArrowDownIcon,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},p?.title||g);return(0,k.jsxs)(Oa.default.Fragment,{children:[e&&(0,k.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,k.jsxs)(bt,{defaultValue:t[0]?.title,children:[(0,k.jsxs)(gt,{showGradientOverlay:n,gradientOverlayColor:s,className:m,children:[(0,k.jsx)(ut,{className:"mb-6 text-center",children:(0,k.jsx)(Je,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((p,g)=>(0,k.jsx)(et,{value:p.title,children:p.title},p.title+g))})}),(0,k.jsx)(vt,{}),(0,k.jsx)(xt,{})]}),t.map((p,g)=>(0,k.jsx)(tt,{value:p.title,children:d(p,g)},p.title+g))]}):t?.length===1&&t[0]&&d(t[0],0)]})});var Ft=v(require("react"),1),$a=require("@heroicons/react/20/solid"),Yr=v(require("html-react-parser"),1);var Q=v(require("react"),1),Wa=require("@heroicons/react/20/solid"),ws=v(require("embla-carousel-react"),1);var fe=require("react/jsx-runtime"),Ns=Q.createContext(null);function Zo(){let e=Q.useContext(Ns);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var Se=Q.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},m)=>{let[c,d]=(0,ws.default)({...o,axis:e==="horizontal"?"x":"y"},a),[p,g]=Q.useState(!1),[u,y]=Q.useState(!1),L=Q.useCallback(oe=>{oe&&(g(oe.canScrollPrev()),y(oe.canScrollNext()))},[]),O=Q.useCallback(()=>{d?.scrollPrev()},[d]),V=Q.useCallback(()=>{d?.scrollNext()},[d]),Y=Q.useCallback(oe=>{oe.key==="ArrowLeft"?(oe.preventDefault(),O()):oe.key==="ArrowRight"&&(oe.preventDefault(),V())},[O,V]);return Q.useEffect(()=>{!d||!t||t(d)},[d,t]),Q.useEffect(()=>{if(d)return L(d),d.on("reInit",L),d.on("select",L),()=>{d?.off("select",L)}},[d,L]),(0,fe.jsx)(Ns.Provider,{value:{carouselRef:c,api:d,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:O,scrollNext:V,canScrollPrev:p,canScrollNext:u},children:(0,fe.jsx)("div",{ref:m,onKeyDownCapture:Y,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});Se.displayName="Carousel";var De=Q.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Zo();return(0,fe.jsx)("div",{ref:r,className:i(o,"overflow-hidden"),children:(0,fe.jsx)("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});De.displayName="CarouselContent";var Me=Q.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Zo();return(0,fe.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})});Me.displayName="CarouselItem";var co=Q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:m}=Zo();return(0,fe.jsxs)(pe,{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:!m,onClick:s,...a,children:[(0,fe.jsx)(Wa.ChevronLeftIcon,{className:"w-6 h-6"}),(0,fe.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});co.displayName="CarouselPrevious";var po=Q.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:m}=Zo();return(0,fe.jsxs)(pe,{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:!m,onClick:s,...a,children:[(0,fe.jsx)(Wa.ChevronRightIcon,{className:"w-6 h-6"}),(0,fe.jsx)("span",{className:"sr-only",children:"Next slide"})]})});po.displayName="CarouselNext";var Ko=Q.forwardRef((e,o)=>{let{api:t}=Zo(),[,a]=Q.useState(!1),r=Q.useCallback(()=>a(m=>!m),[]);Q.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,fe.jsx)("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(m,c)=>(0,fe.jsx)(pe,{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,fe.jsx)(fe.Fragment,{})});Ko.displayName="CarouselDots";var P=require("react/jsx-runtime"),pd=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:(0,P.jsx)("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),(0,P.jsxs)("div",{className:"mt-4 md:pr-3",children:[(0,P.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,P.jsx)("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:(0,Yr.default)(e?.description??"")}),(0,P.jsxs)("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(be,{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,P.jsx)("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&(0,P.jsx)("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},fd=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:m,btnUrl:c="#",isNewTab:d,classNameItem:p}=e??{};return(0,Ft.useEffect)(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Se,{opts:{dragFree:!1},setApi:o,className:"w-full",children:(0,P.jsx)(De,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(g=>(0,P.jsx)(Me,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:(0,P.jsx)("div",{onClick:u=>r(u,g?.id,g?.url),className:i("group cursor-pointer",p),children:(0,P.jsx)(pd,{blog:g})},g?.id)},g?.id))})}),s&&(0,P.jsx)("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:(0,P.jsxs)(Ve,{action:c&&c,newTab:d,variant:"outline",children:[(0,Yr.default)(m||"Xem th\xEAm")," "]})})]})},gd=({carouselRef:e})=>(0,P.jsxs)(pe,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,P.jsx)($a.ChevronLeftIcon,{className:"h-6 w-6"}),(0,P.jsx)("span",{className:"sr-only",children:"Previous slide"})]}),ud=({carouselRef:e})=>(0,P.jsxs)(pe,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[(0,P.jsx)($a.ChevronRightIcon,{className:"h-6 w-6"}),(0,P.jsx)("span",{className:"sr-only",children:"Next slide"})]}),Zr=(0,Ft.memo)(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(d,p,g)=>{d?.preventDefault(),d?.stopPropagation(),t?t(p):window.open(g,"_blank")},[n,s]=(0,Ft.useState)(null),[,m]=(0,Ft.useState)(0),c=()=>n?(0,P.jsxs)("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[(0,P.jsx)(gd,{carouselRef:n}),(0,P.jsx)(ud,{carouselRef:n})]}):(0,P.jsx)(P.Fragment,{});return(0,P.jsxs)(Ft.default.Fragment,{children:[(0,P.jsxs)("div",{className:" flex items-center justify-between",children:[e&&(0,P.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,P.jsx)(c,{})]}),(0,P.jsx)(fd,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:m,handleOnClickItem:r})]})});var zt=require("react/jsx-runtime"),vd=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return(0,zt.jsx)(Va,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return(0,zt.jsx)(Zr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return(0,zt.jsx)(Va,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},xd=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>(0,zt.jsx)(zt.Fragment,{children:vd({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),Ps=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],idSection:a,className:r,background:n,template:s=1,onClickModal:m,onClickLoadMore:c})=>(0,zt.jsx)(Z,{className:i("overflow-hidden",r),idSection:a,background:n,children:(0,zt.jsx)(xd,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:s,onClickModal:m,onClickLoadMore:c})});var ja=v(require("react"),1),Ua=require("date-fns/locale"),Qa=require("lucide-react"),Ts=v(require("lunisolar"),1),ks=require("react-day-picker");var Cs=v(require("react"),1),Jo=v(require("@radix-ui/react-checkbox"),1),Rs=require("@heroicons/react/16/solid"),Kr=require("class-variance-authority");var Ga=require("react/jsx-runtime"),bd=(0,Kr.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"}}),hd=(0,Kr.cva)("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),ea=Cs.forwardRef(({className:e,size:o,...t},a)=>(0,Ga.jsx)(Jo.Root,{ref:a,className:i(bd({size:o}),e),...t,children:(0,Ga.jsx)(Jo.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,Ga.jsx)(Rs.CheckIcon,{className:i(hd({size:o}))})})}));ea.displayName=Jo.Root.displayName;var xe=require("react/jsx-runtime"),yd=({date:e,cusContent:o})=>{let t=null;return t=(0,Ts.default)(e).lunar,(0,xe.jsxs)(xe.Fragment,{children:[o?o(e):e.getDate(),t&&(0,xe.jsx)("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},wd={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 Nd({isShow:e,setIsShow:o,lang:t}){let a=ja.useId();return(0,xe.jsx)("div",{className:"w-full p-3 pt-0",children:(0,xe.jsxs)("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[(0,xe.jsx)(ea,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),(0,xe.jsx)("label",{htmlFor:`check-show-luna-${a}`,className:"cursor-pointer text-sm leading-none text-gray-900 peer-disabled:cursor-default peer-disabled:text-gray-400",children:t==="vi"?"Hi\u1EC7n ng\xE0y \xE2m l\u1ECBch":"Show lunar date"})]})})}var Pd=e=>e.getDay()===0||e.getDay()===6;function ta({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[m,c]=ja.useState(!0);return(0,xe.jsx)(ks.DayPicker,{locale:r==="vi"?Ua.vi:Ua.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(Ye({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(Ye({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&m&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle: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:Pd},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>(0,xe.jsx)(Qa.ChevronLeft,{className:"h-6 w-6"}),IconRight:()=>(0,xe.jsx)(Qa.ChevronRight,{className:"h-6 w-6"}),DayContent:d=>(0,xe.jsx)(yd,{date:d.date,cusContent:n}),Months:({children:d})=>(0,xe.jsxs)("div",{className:"w-full",children:[(0,xe.jsx)("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:d}),a&&(0,xe.jsx)(Nd,{isShow:m,setIsShow:c,lang:r})]})},formatters:r==="vi"?wd:{},...s})}ta.displayName="Calendar";var qa=require("@heroicons/react/16/solid"),oa=require("date-fns"),Ds=require("lucide-react");var Ss=v(require("react"),1),_t=v(require("@radix-ui/react-popover"),1);var Jr=require("react/jsx-runtime"),Mo=_t.Root,Io=_t.Trigger,fo=Ss.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>(0,Jr.jsx)(_t.Portal,{children:(0,Jr.jsx)(_t.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})}));fo.displayName=_t.Content.displayName;var J=require("react/jsx-runtime"),Ms=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:m,popoverProps:c,calendarProps:d,popoverContentProps:p})=>{let g=d?.selected||null;return(0,J.jsxs)("div",{children:[(0,J.jsxs)(Mo,{...c,children:[(0,J.jsx)(Io,{asChild:!0,children:(0,J.jsxs)(Le,{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",(!g||!(g instanceof Date)&&typeof g=="object"&&(!("from"in g)||!g.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...m,children:[(0,J.jsx)("div",{className:"line-clamp-1 flex-1",children:g instanceof Date?(0,oa.format)(g,s):g&&typeof g=="object"&&"from"in g&&"to"in g?(0,J.jsx)(J.Fragment,{children:g.from?g.to?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("span",{className:"date-from",children:(0,oa.format)(g.from,s)})," ",(0,J.jsx)("span",{className:"date-separator",children:"-"}),(0,J.jsx)("span",{className:"date-to",children:(0,oa.format)(g.to,s)})]}):(0,oa.format)(g.from,s):o}):o}),e&&(0,J.jsx)("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",t===2&&" -top-2.5 text-sm",r&&"text-red-500"),children:e}),(0,J.jsx)(Ds.Calendar,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),(0,J.jsx)(fo,{className:"w-auto border-none !p-0",...p,children:(0,J.jsx)(ta,{...d,defaultMonth:g&&typeof g=="object"&&"from"in g?g.from:g instanceof Date?g:void 0})})]}),a&&(0,J.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?(0,J.jsx)(qa.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,J.jsx)(qa.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,J.jsx)("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};var aa=require("react"),Za=require("@heroicons/react/16/solid"),Hs=require("date-fns");var ht=v(require("react"),1),Bt=require("@heroicons/react/16/solid"),Is=require("@heroicons/react/24/outline"),D=v(require("@radix-ui/react-select"),1);var z=require("react/jsx-runtime"),Ao=ht.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...m},c)=>(0,z.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,z.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,z.jsx)(D.Root,{disabled:s,...m,children:o}),a&&(0,z.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,z.jsx)(Bt.XCircleIcon,{width:16,height:16}):(0,z.jsx)(Is.QuestionMarkCircleIcon,{width:16,height:16}),(0,z.jsx)("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Lo=D.Value,go=ht.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsxs)(D.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,z.jsx)("div",{className:"line-clamp-1 text-left",children:o}),(0,z.jsx)(D.Icon,{asChild:!0,children:(0,z.jsx)(Bt.ChevronDownIcon,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));go.displayName=D.Trigger.displayName;var Xa=ht.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:(0,z.jsx)(Bt.ChevronUpIcon,{className:"h-5 w-5"})}));Xa.displayName=D.ScrollUpButton.displayName;var Ya=ht.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.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,z.jsx)(Bt.ChevronDownIcon,{className:"h-5 w-5"})}));Ya.displayName=D.ScrollDownButton.displayName;var uo=ht.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>(0,z.jsx)(D.Portal,{children:(0,z.jsxs)(D.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,z.jsx)(Xa,{}),(0,z.jsx)(D.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,z.jsx)(Ya,{})]})}));uo.displayName=D.Content.displayName;var Eo=ht.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsx)(D.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),ei=ht.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));ei.displayName=D.Label.displayName;var Ot=ht.forwardRef(({className:e,children:o,...t},a)=>(0,z.jsxs)(D.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,z.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,z.jsx)(D.ItemIndicator,{children:(0,z.jsx)(Bt.CheckIcon,{className:"h-4 w-4 text-pink-500"})})}),(0,z.jsx)(D.ItemText,{children:o})]})),ti=ht.forwardRef(({className:e,...o},t)=>(0,z.jsx)(D.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));ti.displayName=D.Separator.displayName;var As=["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"],Ls=["January","February","March","April","May","June","July","August","September","October","November","December"],oi=(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}},Es=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,m)=>n-m)};var H=require("react/jsx-runtime"),Fs=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:m="dd/MM/yyyy",lang:c="vi",fromYear:d=1900,toYear:p=new Date().getFullYear(),disableUnselect:g=!1})=>{let[u,y]=(0,aa.useState)(o??null),L=Math.min(d,p),O=Math.max(d,p),V=m==="MM/yyyy",Y=(T,ve)=>{if(ve===0){y(void 0),t?.(void 0);return}let ae=u?.getFullYear()||new Date().getFullYear(),Ca=u?.getMonth()??0,lo=u?.getDate()??1;T==="month"&&ve!==null&&(Ca=ve-1),T==="year"&&ve!==null&&(ae=ve),V?lo=1:T==="day"&&ve!==null&&(lo=ve);let Yn=oi(ae,Ca+1).daysInMonth;lo>Yn&&(lo=1);let Go=new Date(ae,Ca,lo);(0,Hs.isValid)(Go)&&(y(Go),t?.(Go))},[oe,j]=(0,aa.useState)(!1),so=T=>{j(T)};return(0,aa.useEffect)(()=>{y(o??null)},[o]),(0,H.jsxs)("div",{className:i("relative",s&&"cursor-no-drop"),children:[(0,H.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",oe&&"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,H.jsx)("span",{className:i("absolute -top-2 left-2 bg-white px-1.5 text-xs text-gray-500",a===2&&" -top-2.5 text-sm",n&&"text-red-500"),children:e}),(0,H.jsxs)("div",{className:"flex h-full flex-row divide-x",children:[!V&&(0,H.jsxs)(Ao,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:T=>Y("day",parseInt(T,10)),onOpenChange:so,className:"w-[30%]",children:[(0,H.jsx)(go,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Lo,{placeholder:c==="vi"?"Ng\xE0y":"Day"})}),(0,H.jsx)(uo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,H.jsxs)(Eo,{children:[!g&&(0,H.jsx)(Ot,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:oi(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(T,ve)=>(ve+1).toString().padStart(2,"0")).map(T=>(0,H.jsx)(Ot,{value:T,children:T},T))]})})]}),(0,H.jsxs)(Ao,{value:u?(u.getMonth()+1).toString():"",onValueChange:T=>Y("month",parseInt(T,10)),onOpenChange:so,className:i(V?"w-1/2":"w-2/5"),children:[(0,H.jsx)(go,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Lo,{placeholder:c==="vi"?"Th\xE1ng":"Month"})}),(0,H.jsx)(uo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,H.jsxs)(Eo,{children:[!g&&(0,H.jsx)(Ot,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(T,ve)=>ve+1).map(T=>(0,H.jsx)(Ot,{value:T.toString(),children:c==="vi"?As[T-1]:Ls[T-1]},T))]})})]}),(0,H.jsxs)(Ao,{value:u?u.getFullYear().toString():"",onValueChange:T=>Y("year",parseInt(T,10)),onOpenChange:so,className:i(V?"w-1/2":"w-[30%]"),children:[(0,H.jsx)(go,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:(0,H.jsx)(Lo,{placeholder:c==="vi"?"N\u0103m":"Year"})}),(0,H.jsx)(uo,{onCloseAutoFocus:T=>T.preventDefault(),children:(0,H.jsxs)(Eo,{children:[!g&&(0,H.jsx)(Ot,{value:"0",className:"text-gray-600",children:c==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Es(L,O).map(T=>(0,H.jsx)(Ot,{value:T.toString(),children:T},T))]})})]})]})]}),r&&(0,H.jsxs)("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?(0,H.jsx)(Za.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,H.jsx)(Za.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,H.jsx)("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};var vo=v(require("react"),1),K=v(require("@radix-ui/react-alert-dialog"),1);var $e=require("react/jsx-runtime"),zs=K.Root,_s=K.Trigger,ai=K.Portal,Ka=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsx)(K.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}));Ka.displayName=K.Overlay.displayName;var ri=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsxs)(ai,{children:[(0,$e.jsx)(Ka,{}),(0,$e.jsx)(K.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})]}));ri.displayName=K.Content.displayName;var ii=({className:e,...o})=>(0,$e.jsx)("div",{className:i("flex flex-col space-y-2 text-left",e),...o});ii.displayName="AlertDialogHeader";var ni=({className:e,...o})=>(0,$e.jsx)("div",{className:i("flex flex-row justify-end space-x-4",e),...o});ni.displayName="AlertDialogFooter";var si=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsx)(K.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));si.displayName=K.Title.displayName;var li=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsx)(K.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));li.displayName=K.Description.displayName;var mi=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsx)(K.Action,{ref:t,className:i(Ye({variant:"primary"}),"",e),...o}));mi.displayName=K.Action.displayName;var ci=vo.forwardRef(({className:e,...o},t)=>(0,$e.jsx)(K.Cancel,{ref:t,className:i(Ye({variant:"secondary"}),e),...o}));ci.displayName=K.Cancel.displayName;var Ja=require("react");var ra=require("react"),di=v(require("html-react-parser"),1),Os=require("motion/react");var Bs=v(require("@radix-ui/react-aspect-ratio"),1),U=Bs.Root;var W=require("react/jsx-runtime"),Cd=({guideGroup:e,mockup:o})=>{let[t,a]=(0,ra.useState)(),[r,n]=(0,ra.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,ra.useEffect)(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),(0,W.jsx)(W.Fragment,{children:e?.stepList&&e?.stepList?.length>0&&(0,W.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[(0,W.jsx)("div",{className:"h-auto w-64 flex-none",children:(0,W.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,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,W.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,W.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,W.jsxs)(Se,{setApi:a,children:[(0,W.jsx)(De,{className:"ml-0",children:e?.stepList.map((m,c)=>(0,W.jsx)(Me,{className:"pl-0",children:(0,W.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:m?.image&&(0,W.jsx)("img",{src:m.image,className:"size-full object-contain",alt:m.title})})},c))}),(0,W.jsx)(co,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),(0,W.jsx)(po,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),(0,W.jsx)("div",{className:"flex flex-auto pl-12 pt-4",children:(0,W.jsx)("ul",{className:"flex flex-col",children:e?.stepList.map((m,c)=>(0,W.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,W.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,W.jsx)("div",{className:i(" text-sm font-medium",c+1===r?"text-pink-500":"text-gray-900"),children:(0,di.default)(m.title)}),m.content&&(0,W.jsx)(Os.motion.div,{initial:"closed",animate:c+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:(0,W.jsx)("div",{className:"mt-3 text-sm text-gray-700",children:(0,di.default)(m.content)})})]},c))})})]})})},pi=Cd;var Vt=require("react"),fi=require("@heroicons/react/20/solid"),Vs=v(require("embla-carousel-autoplay"),1),ia=v(require("html-react-parser"),1);var x=require("react/jsx-runtime"),Rd=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=(0,Vt.useState)(0),[s,m]=(0,Vt.useState)();return(0,Vt.useEffect)(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:(0,x.jsx)(pt,{open:e,onOpenChange:o,children:(0,x.jsxs)(Ze,{position:"bottom",height:"full",children:[(0,x.jsx)(qo,{children:(0,x.jsx)(Xo,{className:"line-clamp-1",children:t?.title})}),(0,x.jsxs)(Et,{className:"grid overflow-hidden p-0 ",children:[(0,x.jsx)(Se,{setApi:m,className:" grid overflow-hidden",children:(0,x.jsx)(De,{className:"ml-0 h-full",children:t.stepList.map((c,d)=>(0,x.jsx)(Me,{className:"h-full w-full pl-0",children:(0,x.jsxs)("div",{className:"flex h-full flex-col overflow-y-auto",children:[(0,x.jsx)("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:(0,x.jsx)("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:(0,x.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,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:(0,x.jsx)(U,{ratio:a==="small"?540/960:540/1168,children:c?.image&&(0,x.jsx)("img",{src:c.image,className:"size-full object-contain",alt:c.title})})})]})})}),(0,x.jsxs)("div",{className:"p-5 pb-12",children:[(0,x.jsx)("div",{className:"font-semibold",children:(0,ia.default)(c.title)}),c?.content&&(0,x.jsx)("div",{className:"mt-3 text-sm text-gray-800",children:(0,ia.default)(c.content)})]})]})},d))})}),(0,x.jsx)("div",{className:"text-muted-foreground fixed bottom-3 left-1/2 flex -translate-x-1/2 items-center justify-center gap-1.5 rounded-full bg-gray-900/50 px-3 py-1 py-2 text-center text-sm text-gray-700",children:t.stepList.map((c,d)=>(0,x.jsx)("div",{className:`h-2 w-2 cursor-pointer rounded-full ${d+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(d)},d))})]})]})})},Td=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=(0,Vt.useState)(!1),[n,s]=(0,Vt.useState)(null),m=(0,Vt.useRef)((0,Vs.default)({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),c=d=>{s(e?.[d]||null),r(!0)};return e?.length===0?null:(0,x.jsxs)(x.Fragment,{children:[e?.length>1?(0,x.jsx)("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((d,p)=>(0,x.jsxs)("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>c(p),children:[(0,x.jsx)("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(d?.avatar||d?.stepList?.[0]?.image)&&(0,x.jsx)("img",{src:d.avatar||d?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:d.title})}),(0,x.jsxs)("div",{className: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,x.jsxs)("div",{className:"py-2",children:[t&&(0,x.jsx)("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${p+1}`}),(0,x.jsx)("div",{className:"font-semibold",children:(0,ia.default)(d.title)}),d?.description&&(0,x.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:(0,ia.default)(d.description)})]}),(0,x.jsx)("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:(0,x.jsx)(fi.ChevronRightIcon,{className:"h-6 w-6"})})]})]},p))}):e?.[0]&&e[0].stepList?.length>0&&(0,x.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[(0,x.jsx)("div",{className:"relative max-h-96 w-full flex-none overflow-hidden",style:{WebkitMask:"linear-gradient(to bottom, rgba(0, 0, 0, 1.0) 95%, rgba(0, 0, 0, 0.3) 98%, transparent 100%)"},children:(0,x.jsx)("div",{className:"mx-auto h-auto w-72",children:(0,x.jsxs)("div",{className: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,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),(0,x.jsx)("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),(0,x.jsx)("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:(0,x.jsx)(Se,{plugins:[m.current],children:(0,x.jsx)(De,{className:"ml-0",children:e[0]?.stepList.map((d,p)=>(0,x.jsx)(Me,{className:"pl-0",onClick:()=>c(0),children:(0,x.jsx)(U,{ratio:o==="small"?540/960:540/1168,children:d?.image&&(0,x.jsx)("img",{src:d.image,className:"size-full object-contain",alt:d.title})})},p))})})})]})})}),(0,x.jsx)("div",{className:"flex w-full flex-none justify-center",children:(0,x.jsxs)(be,{size:"lg",variant:"primary",onClick:()=>c(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",(0,x.jsx)(fi.ChevronRightIcon,{className:"ml-1 h-5 w-5"})]})})]}),a&&(0,x.jsx)(Rd,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},Ws=Td;var q=require("react/jsx-runtime"),$s=({direction:e,className:o})=>{let t=e==="left"?{viewBox:"0 0 20 40",d:"M20 0H0L18 20L0 40H20V0Z",width:"20"}:{viewBox:"0 0 19 40",d:"M0.906128 0H0V40H0.906128L19 20L0.906128 0Z",width:"19"};return(0,q.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,q.jsx)("path",{d:t.d,fill:"currentColor"})})},gi=(0,Ja.memo)(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:m,className:c}=o||{},[d,p]=(0,Ja.useState)(t?.[0]?.title||"");return(0,q.jsxs)(q.Fragment,{children:[e&&(0,q.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,q.jsxs)(Ro,{children:[(0,q.jsx)(st,{lessThan:"md",children:(0,q.jsx)(Ws,{dataGuide:t,mockup:r,isStep:n})}),(0,q.jsx)(st,{greaterThan:"sm",children:t?.length>1?(0,q.jsxs)(bt,{defaultValue:t[0]?.title,onValueChange:g=>p(g),children:[(0,q.jsxs)(gt,{showGradientOverlay:s,gradientOverlayColor:m,className:c,children:[(0,q.jsx)(ut,{className:"mb-6 text-center",children:(0,q.jsx)(Je,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((g,u)=>{let y=u===t.length-1,L=d===g?.title||"";return(0,q.jsxs)(et,{value:g.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":"",L&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&(0,q.jsx)($s,{direction:"left",className:i("right-full top-0",L?"text-pink-500":"text-pink-100")}),g.title,n&&!y&&(0,q.jsx)($s,{direction:"right",className:i("left-full top-0",L?"text-pink-500":"text-pink-100")})]},g.title+u)})})}),(0,q.jsx)(vt,{}),(0,q.jsx)(xt,{})]}),t.map((g,u)=>(0,q.jsx)(tt,{value:g.title,children:(0,q.jsx)(pi,{guideGroup:g,mockup:r})},g.title+u))]}):t?.length===1&&t[0]&&(0,q.jsx)(pi,{guideGroup:t[0],mockup:r})})]}),a&&(0,q.jsx)(N,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});var Yt=require("react/jsx-runtime"),kd=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return(0,Yt.jsx)(gi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return(0,Yt.jsx)(gi,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Sd=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>(0,Yt.jsx)(Yt.Fragment,{children:kd({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),Gs=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:r,background:n,template:s=1,mockup:m="default",isStep:c=!1})=>(0,Yt.jsx)(Z,{className:i(r),background:n,children:(0,Yt.jsx)(Sd,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:m,isStep:c})});var er=require("lucide-react");var ge=require("react/jsx-runtime");function ui({current:e,total:o,onChange:t}){let a=r=>(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(mo({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return(0,ge.jsx)("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:(0,ge.jsxs)("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(mo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:(0,ge.jsx)(er.ChevronLeft,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):(0,ge.jsxs)(ge.Fragment,{children:[a(1),e===1&&[a(2),a(3)],e>3&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(mo({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,ge.jsx)("button",{className:i(mo({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&(0,ge.jsx)("li",{children:(0,ge.jsx)("button",{className:i(mo({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:(0,ge.jsx)(er.ChevronRight,{className:"h-4 w-4"})})})]})})}var js=require("react"),Us=require("@heroicons/react/24/outline"),Qs=require("@heroicons/react/24/solid");var yt=require("react/jsx-runtime"),qs=(0,js.forwardRef)(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:m=3,...c},d)=>(0,yt.jsxs)("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&(0,yt.jsx)("span",{className:i("mobase-text-area-label absolute bg-white -top-2.5 px-1.5 left-2 text-sm text-gray-500",s===2&&" -top-2.5 text-sm"),children:a}),(0,yt.jsx)("textarea",{disabled:e,ref:d,className:i("mobase-text-area-box bg-white w-full text-sm transition-all rounded-md border border-gray-300 placeholder:text-gray-500 p-3 text-gray-900 focus:border-pink-500 disabled:bg-gray-50 disabled:border-gray-200 outline-none block",s===2&&"text-base",n),rows:m,...c}),t&&(0,yt.jsxs)("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?(0,yt.jsx)(Qs.XCircleIcon,{width:16,height:16,className:"text-red-500"}):(0,yt.jsx)(Us.QuestionMarkCircleIcon,{width:16,height:16,className:"text-gray-500"}),(0,yt.jsx)("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),(0,yt.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
  }
@@ -243,7 +243,7 @@
243
243
  opacity: 0.15;
244
244
  }
245
245
  }
246
- `})]})}})()})}var ql=v(require("react"),1),Tt=v(require("@radix-ui/react-slider"),1);var rt=require("react/jsx-runtime"),an=ql.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>(0,rt.jsxs)(Tt.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,rt.jsx)(Tt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,rt.jsx)(Tt.Range,{className:"absolute h-full bg-pink-500"})}),(0,rt.jsx)(Tt.Thumb,{className:"group relative",children:(0,rt.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&(0,rt.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),(0,rt.jsx)(Tt.Thumb,{className:"group relative",children:(0,rt.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&(0,rt.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));an.displayName=Tt.Root.displayName;var om=require("react");var me=require("react/jsx-runtime"),ep=({author:e=""})=>(0,me.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),tp=({author:e,avatar:o})=>(0,me.jsx)("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?(0,me.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,me.jsx)(ep,{author:e})});function op({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return(0,me.jsx)(me.Fragment,{children:(0,me.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,me.jsx)(tp,{avatar:e,author:o}),(0,me.jsxs)("div",{className:"flex flex-col",children:[o&&(0,me.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,me.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,me.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,me.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,me.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,me.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&(0,me.jsx)("div",{className:"absolute right-1 top-0",children:(0,me.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Xl=op;var nn=require("react");var Yl=require("@heroicons/react/20/solid"),Bo=require("react/jsx-runtime"),ap={1:"K\xE9n ng\u01B0\u1EDDi m\xEA",2:"K\xE9n ng\u01B0\u1EDDi m\xEA",3:"Ch\u01B0a \u01B0ng l\u1EAFm",4:"Ch\u01B0a \u01B0ng l\u1EAFm",5:"T\u1EA1m \u1ED5n",6:"T\u1EA1m \u1ED5n",7:"\u0110\xE1ng xem",8:"\u0110\xE1ng xem",9:"C\u1EF1c ph\u1EA9m!",10:"C\u1EF1c ph\u1EA9m!"},rp={1:"Kh\xF4ng h\xE0i l\xF2ng",2:"Ch\u01B0a \u01B0ng l\u1EAFm",3:"T\u1EA1m \u1ED5n",4:"H\xE0i l\xF2ng",5:"R\u1EA5t h\xE0i l\xF2ng"};function ip({point:e,max:o,className:t}){let a=o>5?ap[e||10]:rp[e||5];return(0,Bo.jsxs)("div",{className:i("flex items-center space-x-1",t),children:[(0,Bo.jsx)(Yl.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,Bo.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,Bo.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Zl=ip;var Kl=require("react"),rn=v(require("html-react-parser"),1);var fr=require("react/jsx-runtime"),pr=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,m]=(0,Kl.useState)(!0),c=()=>{m(!s)},d=(p,g,u=" ")=>p.length<=g?p:p.substring(0,p.lastIndexOf(u,g));return(0,fr.jsxs)("div",{className:i(n),children:[s?(0,rn.default)(d(e,o)):(0,rn.default)(e),e.length>o&&(0,fr.jsx)("span",{onClick:c,className:i("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",r),children:s?t:a})]})};var it=require("react/jsx-runtime");function np({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,m]=(0,nn.useState)(0),[c,d]=(0,nn.useState)(!1),p=g=>{d(!0),m(g)};return(0,it.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&(0,it.jsx)(Zl,{className:"mb-0.5",point:r.point,max:r.max}),e&&(0,it.jsx)(pr,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,it.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>(0,it.jsx)("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:g}))}),o?.length>0&&(0,it.jsxs)(cr,{open:c,onOpenChange:d,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((g,u)=>(0,it.jsx)(U,{onClick:()=>p(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,it.jsx)("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),(0,it.jsx)(dr,{activeSlideIndex:s,images:o?.map((g,u)=>({url:g.url,titleImage:g.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Jl=np;var tm=require("react/jsx-runtime");function sp({actions:e=[]}){return(0,tm.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var em=sp;var No=require("react/jsx-runtime"),am=(0,om.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:m=[],statusMessage:c,isReply:d,children:p,commentSideBar:g,isOutStanding:u,limitContent:y=260},L)=>(0,No.jsxs)("div",{ref:L,className:i("",d?"ml-4 py-4":"py-5"),children:[(0,No.jsx)(Xl,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),(0,No.jsx)(Jl,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:y}),m&&m?.filter(Boolean)?.length>0&&(0,No.jsx)(em,{actions:m.filter(Boolean)}),p&&(0,No.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:p})]}));var ro=v(require("react"),1),rm=require("class-variance-authority");var im=require("@heroicons/react/16/solid"),nm=require("lucide-react"),ce=require("react/jsx-runtime"),lp=(0,rm.cva)("flex items-center shrink-0 justify-center rounded-full shrink-0",{variants:{state:{active:"bg-pink-500 text-white shadow-[0_0px_0px_3px_rgb(255,255,255),0_0px_0px_4px_rgb(var(--mobase-pink-500))]",disabled:"bg-gray-400 text-gray-200",default:"text-gray-500 bg-white shadow-[inset_0px_0px_0px_1px_rgb(var(--mobase-gray-300))]",completed:"bg-pink-300 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),sm=ro.createContext("default");function mp(){let e=ro.useContext(sm);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var cp=ro.memo(({type:e,icon:o,stepNumber:t,size:a,isError:r,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return r?(0,ce.jsx)(nm.XIcon,{className:s}):(0,ce.jsxs)("div",{children:[e==="iconStep"&&(0,ce.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,ce.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,ce.jsx)(im.CheckIcon,{className:s}):(0,ce.jsx)("div",{children:t}))]})}),lm=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=ro.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,ce.jsx)("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},mm=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:m,fristStep:c,icon:d,isError:p,onValueChangeStep:g,...u})=>{let y=mp();return(0,ce.jsxs)("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[(0,ce.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,ce.jsx)("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),(0,ce.jsx)("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",lp({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",r),...u,children:(0,ce.jsx)(cp,{type:y,icon:d,stepNumber:e,size:t,isError:p,state:o})}),(0,ce.jsx)("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,ce.jsxs)("div",{className:i("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&(0,ce.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,ce.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},cm=({children:e,className:o,type:t="numberStep",...a})=>(0,ce.jsx)(sm.Provider,{value:t,children:(0,ce.jsx)("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});var Ae=v(require("react"),1),gm=require("@radix-ui/react-slot"),Oo=require("react-hook-form");var dm=v(require("react"),1),sn=v(require("@radix-ui/react-label"),1),pm=require("class-variance-authority");var fm=require("react/jsx-runtime"),dp=(0,pm.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),gr=dm.forwardRef(({className:e,...o},t)=>(0,fm.jsx)(sn.Root,{ref:t,className:i(dp(),e),...o}));gr.displayName=sn.Root.displayName;var Gt=require("react/jsx-runtime"),um=Oo.FormProvider,vm=Ae.createContext({}),xm=({...e})=>(0,Gt.jsx)(vm.Provider,{value:{name:e.name},children:(0,Gt.jsx)(Oo.Controller,{...e})}),Vo=()=>{let e=Ae.useContext(vm),o=Ae.useContext(bm),{getFieldState:t,formState:a}=(0,Oo.useFormContext)(),r=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...r}},bm=Ae.createContext({}),ln=Ae.forwardRef(({className:e,...o},t)=>{let a=Ae.useId();return(0,Gt.jsx)(bm.Provider,{value:{id:a},children:(0,Gt.jsx)("div",{ref:t,className:i("space-y-2",e),...o})})});ln.displayName="FormItem";var mn=Ae.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=Vo();return(0,Gt.jsx)(gr,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});mn.displayName="FormLabel";var cn=Ae.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=Vo();return(0,Gt.jsx)(gm.Slot,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});cn.displayName="FormControl";var dn=Ae.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=Vo();return(0,Gt.jsx)("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});dn.displayName="FormDescription";var pn=Ae.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=Vo(),s=r?String(r?.message):o;return s?(0,Gt.jsx)("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});pn.displayName="FormMessage";var jt=v(require("react"),1),R=v(require("@radix-ui/react-dropdown-menu"),1),ur=require("lucide-react");var ie=require("react/jsx-runtime"),hm=R.Root,ym=R.Trigger,wm=R.Group,Nm=R.Portal,Pm=R.Sub,Cm=R.RadioGroup,fn=jt.forwardRef(({className:e,inset:o,children:t,...a},r)=>(0,ie.jsxs)(R.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,(0,ie.jsx)(ur.ChevronRight,{className:"ml-auto"})]}));fn.displayName=R.SubTrigger.displayName;var gn=jt.forwardRef(({className:e,...o},t)=>(0,ie.jsx)(R.SubContent,{ref:t,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));gn.displayName=R.SubContent.displayName;var un=jt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,ie.jsx)(R.Portal,{children:(0,ie.jsx)(R.Content,{ref:a,sideOffset:o,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));un.displayName=R.Content.displayName;var vn=jt.forwardRef(({className:e,inset:o,...t},a)=>(0,ie.jsx)(R.Item,{ref:a,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));vn.displayName=R.Item.displayName;var xn=jt.forwardRef(({className:e,children:o,checked:t,...a},r)=>(0,ie.jsxs)(R.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[(0,ie.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,ie.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,ie.jsx)(R.ItemIndicator,{children:(0,ie.jsx)("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:(0,ie.jsx)(ur.Check,{size:16,strokeWidth:3})})})]}),o]}));xn.displayName=R.CheckboxItem.displayName;var bn=jt.forwardRef(({className:e,children:o,...t},a)=>(0,ie.jsxs)(R.RadioItem,{ref:a,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[(0,ie.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,ie.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,ie.jsx)(R.ItemIndicator,{children:(0,ie.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));bn.displayName=R.RadioItem.displayName;var hn=jt.forwardRef(({className:e,inset:o,...t},a)=>(0,ie.jsx)(R.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));hn.displayName=R.Label.displayName;var yn=jt.forwardRef(({className:e,...o},t)=>(0,ie.jsx)(R.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));yn.displayName=R.Separator.displayName;var wn=({className:e,...o})=>(0,ie.jsx)("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});wn.displayName="DropdownMenuShortcut";var ya=v(require("html-react-parser"),1);var A=require("react/jsx-runtime"),Rm=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,A.jsxs)(A.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:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>(0,A.jsx)("div",{className:"basis-full px-3.5 md:basis-1/3",children:(0,A.jsxs)("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[(0,A.jsx)("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:r+1}),(0,A.jsxs)("div",{className:"mt-6 w-full",children:[(0,A.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ya.default)(a.title)}),a?.description&&(0,A.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ya.default)(a.description)})]})]})},r))}),t&&(0,A.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),pp=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,A.jsxs)(A.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:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>(0,A.jsxs)("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[(0,A.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,A.jsx)("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:r+1}),a?.image&&(0,A.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,A.jsx)(U,{ratio:1,children:(0,A.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,A.jsxs)("div",{className:"mt-6 w-full",children:[(0,A.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ya.default)(a.title)}),a?.description&&(0,A.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ya.default)(a.description)})]})]},r))}),t&&(0,A.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),fp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,A.jsx)(Rm,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,A.jsx)(pp,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,A.jsx)(Rm,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},gp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,A.jsx)(A.Fragment,{children:fp({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Tm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>(0,A.jsx)(Z,{className:t,idSection:a,background:o,children:(0,A.jsx)(gp,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});var km=require("class-variance-authority"),Nn=v(require("html-react-parser"),1),Pn=require("lucide-react");var ee=require("react/jsx-runtime"),up=(0,km.cva)("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-1 gap-y-3 ",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),vp=({template:e,name:o,image:t,isFeatures:a})=>(0,ee.jsx)(ee.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,ee.jsx)(ee.Fragment,{children:(0,ee.jsxs)("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?(0,ee.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,ee.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,ee.jsx)("div",{className:"mt-0.5 flex h-5 w-5 items-center justify-center rounded-full bg-pink-100",children:(0,ee.jsx)(Pn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,ee.jsx)("div",{className:"ml-2 ",children:(0,Nn.default)(o)})]})});case 3:return(0,ee.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,ee.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,ee.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,ee.jsx)("div",{className:"flex h-5 w-5 items-center justify-center rounded-full bg-pink-100 p-1",children:(0,ee.jsx)(Pn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,ee.jsx)("div",{className:"my-auto ml-2 md:my-0",children:(0,Nn.default)(o)})]});default:return null}})()}),vr=({dataFeatures:e,template:o=1})=>(0,ee.jsx)(ee.Fragment,{children:(e?.length??0)>0&&(0,ee.jsx)("ul",{className:i("",up({template:o})),children:e?.map((t,a)=>(0,ee.jsx)(vp,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var Sm=require("lucide-react");var G=require("react/jsx-runtime"),Dm=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,xp=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>(0,G.jsxs)(Ro,{children:[(0,G.jsx)(st,{greaterThan:"sm",children:(0,G.jsxs)(U,{className:i(""),ratio:Dm(o),children:[(0,G.jsx)("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,G.jsxs)(pt,{children:[(0,G.jsx)(Ta,{onClick:r,children:(0,G.jsx)("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:(0,G.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,G.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,G.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,G.jsx)("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),(0,G.jsx)(Ze,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:(0,G.jsxs)(Et,{className:"relative bg-transparent p-4 text-center",children:[(0,G.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,G.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),(0,G.jsx)(ka,{asChild:!0,children:(0,G.jsx)(pe,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,G.jsx)(Sm.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,G.jsx)(st,{lessThan:"md",children:(0,G.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,G.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),xr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>(0,G.jsx)("div",{className:a,children:n?(0,G.jsx)(xp,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,G.jsx)(U,{ratio:Dm(t),children:(0,G.jsx)("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});var Mm=v(require("html-react-parser"),1);var nt=require("react/jsx-runtime"),bp=({value:e,suffix:o,unit:t,description:a,idx:r})=>(0,nt.jsxs)("div",{className:i(""),children:[e&&(0,nt.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,nt.jsxs)("span",{children:[o," ",t]})]}),a&&(0,nt.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,Mm.default)(a)})]}),br=({dataStats:e})=>(0,nt.jsx)(nt.Fragment,{children:(e?.length??0)>0&&(0,nt.jsx)("ul",{className:i("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>(0,nt.jsx)(bp,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var _=require("react/jsx-runtime"),Cn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,_.jsxs)("div",{className:"col-span-1 ",children:[(0,_.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),(0,_.jsx)(vr,{dataFeatures:t,template:a}),o&&(0,_.jsx)(N,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,_.jsx)(br,{dataStats:r})]}),(0,_.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,_.jsx)(xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Im=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,_.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,_.jsx)(xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,_.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,_.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),(0,_.jsx)(vr,{dataFeatures:t,template:a}),o&&(0,_.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,_.jsx)(N,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,_.jsx)(br,{dataStats:r})]})]}),Am=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),o&&(0,_.jsx)(N,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),(0,_.jsx)(vr,{dataFeatures:t,template:a}),(0,_.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,_.jsx)(br,{dataStats:r})}),s||(0,_.jsx)(_.Fragment,{children:n?.src&&(0,_.jsx)(xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var kt=require("react/jsx-runtime"),hp=`var(
246
+ `})]})}})()})}var ql=v(require("react"),1),Tt=v(require("@radix-ui/react-slider"),1);var rt=require("react/jsx-runtime"),an=ql.forwardRef(({className:e,showIndicatorValue1:o,showIndicatorValue2:t,...a},r)=>(0,rt.jsxs)(Tt.Root,{ref:r,className:i("relative flex w-full touch-none select-none items-center",a?.disabled&&"opacity-40",e),...a,children:[(0,rt.jsx)(Tt.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,rt.jsx)(Tt.Range,{className:"absolute h-full bg-pink-500"})}),(0,rt.jsx)(Tt.Thumb,{className:"group relative",children:(0,rt.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:o&&(0,rt.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:o})})}),(0,rt.jsx)(Tt.Thumb,{className:"group relative",children:(0,rt.jsx)("div",{className:"ring-offset-bg-white focus-visible:ring-ring block h-5 w-5 rounded-full border-2 border-pink-500 bg-white transition-colors focus-visible:outline-none focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-hover:cursor-grabbing",children:t&&(0,rt.jsx)("div",{className:" absolute bottom-3/4 left-1/2 mb-2 -translate-x-1/2 whitespace-nowrap rounded-lg bg-black/90 px-2.5 py-1.5 text-sm opacity-0 duration-300 group-hover:bottom-full group-hover:opacity-100",children:t})})})]}));an.displayName=Tt.Root.displayName;var om=require("react");var me=require("react/jsx-runtime"),ep=({author:e=""})=>(0,me.jsx)("div",{className:"text-center shrink-0 text-lg font-semibold text-pink-600",children:e?.charAt(0)}),tp=({author:e,avatar:o})=>(0,me.jsx)("div",{className:"w-9 h-9 flex items-center mt-0.5 justify-center rounded-full bg-pink-200 relative overflow-hidden",children:o?(0,me.jsx)("img",{src:o,alt:e?.charAt(0),className:"shrink-0 object-cover",width:36,height:36}):(0,me.jsx)(ep,{author:e})});function op({avatar:e="",author:o="",time:t,statusMessage:a,isOutStanding:r}){return(0,me.jsx)(me.Fragment,{children:(0,me.jsxs)("div",{className:"flex relative items-center space-x-3",children:[(0,me.jsx)(tp,{avatar:e,author:o}),(0,me.jsxs)("div",{className:"flex flex-col",children:[o&&(0,me.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:o}),(0,me.jsxs)("div",{className:"flex items-center space-x-2 text-xs",children:[t&&(0,me.jsx)("div",{className:"text-gray-400",children:t}),a&&(0,me.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,me.jsx)("div",{className:"w-1 h-1 mt-0.5 bg-gray-400 rounded-full"}),(0,me.jsx)("div",{className:"ml-2 text-pink-500",children:a})]})]})]}),r&&(0,me.jsx)("div",{className:"absolute right-1 top-0",children:(0,me.jsx)("img",{alt:"",src:"https://homepage.momocdn.net/img/momo-upload-api-230629163313-638236531936463134.png",className:"w-5",loading:"lazy"})})]})})}var Xl=op;var nn=require("react");var Yl=require("@heroicons/react/20/solid"),Bo=require("react/jsx-runtime"),ap={1:"K\xE9n ng\u01B0\u1EDDi m\xEA",2:"K\xE9n ng\u01B0\u1EDDi m\xEA",3:"Ch\u01B0a \u01B0ng l\u1EAFm",4:"Ch\u01B0a \u01B0ng l\u1EAFm",5:"T\u1EA1m \u1ED5n",6:"T\u1EA1m \u1ED5n",7:"\u0110\xE1ng xem",8:"\u0110\xE1ng xem",9:"C\u1EF1c ph\u1EA9m!",10:"C\u1EF1c ph\u1EA9m!"},rp={1:"Kh\xF4ng h\xE0i l\xF2ng",2:"Ch\u01B0a \u01B0ng l\u1EAFm",3:"T\u1EA1m \u1ED5n",4:"H\xE0i l\xF2ng",5:"R\u1EA5t h\xE0i l\xF2ng"};function ip({point:e,max:o,className:t}){let a=o>5?ap[e||10]:rp[e||5];return(0,Bo.jsxs)("div",{className:i("flex items-center space-x-1",t),children:[(0,Bo.jsx)(Yl.StarIcon,{className:"w-5 h-5 text-yellow-500"}),(0,Bo.jsx)("div",{className:"font-semibold text-gray-900 text-sm",children:`${e}/${o}`}),(0,Bo.jsxs)("span",{className:"font-semibold text-gray-900 text-sm",children:[" ","\xA0\xB7 ",a]})," "]})}var Zl=ip;var Kl=require("react"),rn=v(require("html-react-parser"),1);var fr=require("react/jsx-runtime"),pr=({children:e,maxChar:o=260,textMore:t="...Xem th\xEAm",textLess:a="Thu g\u1ECDn",btnClass:r="text-blue-500",className:n=""})=>{let[s,m]=(0,Kl.useState)(!0),c=()=>{m(!s)},d=(p,g,u=" ")=>p.length<=g?p:p.substring(0,p.lastIndexOf(u,g));return(0,fr.jsxs)("div",{className:i(n),children:[s?(0,rn.default)(d(e,o)):(0,rn.default)(e),e.length>o&&(0,fr.jsx)("span",{onClick:c,className:i("read-or-hide cursor-pointer text-md w-fit pl-1 hover:underline",r),children:s?t:a})]})};var it=require("react/jsx-runtime");function np({content:e,thumbnails:o=[],tags:t=[],commentSideBar:a,rating:r={point:10,max:10},limitContent:n=260}){let[s,m]=(0,nn.useState)(0),[c,d]=(0,nn.useState)(!1),p=g=>{d(!0),m(g)};return(0,it.jsxs)("div",{className:"text-gray-700 mt-3 flex flex-col",children:[r.point>0&&(0,it.jsx)(Zl,{className:"mb-0.5",point:r.point,max:r.max}),e&&(0,it.jsx)(pr,{className:"text-sm",maxChar:n,children:e}),t?.length>0&&(0,it.jsx)("div",{className:"w-full oveflow-x-auto flex items-center space-x-2 mt-2.5",children:t?.map(g=>(0,it.jsx)("div",{className:"w-fit rounded-full shrink-0 bg-gray-100 text-gray-700 text-xs font-semibold py-1 px-2 text-center",children:g}))}),o?.length>0&&(0,it.jsxs)(cr,{open:c,onOpenChange:d,className:"grid gap-2 mt-4 overflow-hidden rounded-xl md:grid-cols-4 md:gap-2 md:rounded-none grid grid-cols-2 grid-rows-1 overflow-hidden ",children:[o?.map((g,u)=>(0,it.jsx)(U,{onClick:()=>p(u),className:"rounded-lg cursor-pointer object-cover",ratio:4/3,children:(0,it.jsx)("img",{src:g.url,alt:"",className:"w-full h-full rounded-lg object-cover"})},u)),(0,it.jsx)(dr,{activeSlideIndex:s,images:o?.map((g,u)=>({url:g.url,titleImage:g.titleImage,idx:u})),withSideBar:!!a,subHtmlSideBar:a})]})]})}var Jl=np;var tm=require("react/jsx-runtime");function sp({actions:e=[]}){return(0,tm.jsx)("div",{className:"flex items-center space-x-4 mt-4 text-gray-700",children:e})}var em=sp;var No=require("react/jsx-runtime"),am=(0,om.forwardRef)(({avatar:e,author:o,time:t,ratingPoint:a,content:r,tags:n,thumbnails:s,actions:m=[],statusMessage:c,isReply:d,children:p,commentSideBar:g,isOutStanding:u,limitContent:y=260},L)=>(0,No.jsxs)("div",{ref:L,className:i("",d?"ml-4 py-4":"py-5"),children:[(0,No.jsx)(Xl,{avatar:e,author:o,time:t,statusMessage:c,isOutStanding:u}),(0,No.jsx)(Jl,{content:r,thumbnails:s,tags:n,rating:a,commentSideBar:g,limitContent:y}),m&&m?.filter(Boolean)?.length>0&&(0,No.jsx)(em,{actions:m.filter(Boolean)}),p&&(0,No.jsx)("div",{className:"border-l grid grid-cols-1 divide-y divide-gray-200 ml-2 mt-3 border-l-gray-300 ",children:p})]}));var ro=v(require("react"),1),rm=require("class-variance-authority");var im=require("@heroicons/react/16/solid"),nm=require("lucide-react"),ce=require("react/jsx-runtime"),lp=(0,rm.cva)("flex items-center shrink-0 justify-center rounded-full shrink-0",{variants:{state:{active:"bg-pink-500 text-white shadow-[0_0px_0px_3px_rgb(255,255,255),0_0px_0px_4px_rgb(var(--mobase-pink-500))]",disabled:"bg-gray-400 text-gray-200",default:"text-gray-500 bg-white shadow-[inset_0px_0px_0px_1px_rgb(var(--mobase-gray-300))]",completed:"bg-pink-300 text-white"},size:{default:"h-7 w-7 text-sm",small:"h-6 w-6 text-xs"}},defaultVariants:{state:"default",size:"default"}}),sm=ro.createContext("default");function mp(){let e=ro.useContext(sm);if(!e)throw new Error("ProgressStepsItem must be used within a ProgressSteps");return e}var cp=ro.memo(({type:e,icon:o,stepNumber:t,size:a,isError:r,state:n})=>{let s=a==="small"?"w-3 h-3":"w-4 h-4";return r?(0,ce.jsx)(nm.XIcon,{className:s}):(0,ce.jsxs)("div",{children:[e==="iconStep"&&(0,ce.jsx)("div",{className:s,children:o}),e==="numberStep"&&(0,ce.jsx)("div",{children:t}),e==="default"&&(n==="completed"?(0,ce.jsx)(im.CheckIcon,{className:s}):(0,ce.jsx)("div",{children:t}))]})}),lm=({step:e,currentStep:o,onValueChangeStep:t,children:a})=>{let r=ro.useCallback(()=>{e!==o&&t(e)},[e,o,t]);return(0,ce.jsx)("div",{onClick:r,className:"flex w-full flex-col items-center justify-center gap-1 cursor-pointer",children:a})},mm=({step:e,state:o="default",size:t="default",placement:a="default",className:r,title:n,description:s,lastStep:m,fristStep:c,icon:d,isError:p,onValueChangeStep:g,...u})=>{let y=mp();return(0,ce.jsxs)("div",{className:i("flex w-full flex-col items-center justify-center gap-1"),children:[(0,ce.jsxs)("div",{className:"flex w-full items-center justify-center gap-2",children:[(0,ce.jsx)("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",c&&"opacity-0",a=="left"&&"hidden",o==="active"&&"bg-pink-300",o==="completed"&&"bg-pink-300")}),(0,ce.jsx)("div",{className:i("flex h-7 w-7 items-center justify-center rounded-full",lp({state:o,size:t}),p&&"bg-red-500 text-white shadow-none",r),...u,children:(0,ce.jsx)(cp,{type:y,icon:d,stepNumber:e,size:t,isError:p,state:o})}),(0,ce.jsx)("div",{className:i("flex h-px grow shrink-0 basis-0 bg-gray-200",m&&"opacity-0",o==="completed"&&"bg-pink-300")})]}),(0,ce.jsxs)("div",{className:i("text-center w-full flex flex-col items-center mt-2 px-0.5",a=="left"&&"text-left items-start"),children:[n&&(0,ce.jsx)("div",{className:"text-xs font-bold text-slate-900 ",children:n}),s&&(0,ce.jsx)("div",{className:"text-xs text-gray-500 ",children:s})]})]})},cm=({children:e,className:o,type:t="numberStep",...a})=>(0,ce.jsx)(sm.Provider,{value:t,children:(0,ce.jsx)("div",{className:i("flex items-start justify-between w-full",o),...a,children:e})});var Ae=v(require("react"),1),gm=require("@radix-ui/react-slot"),Oo=require("react-hook-form");var dm=v(require("react"),1),sn=v(require("@radix-ui/react-label"),1),pm=require("class-variance-authority");var fm=require("react/jsx-runtime"),dp=(0,pm.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),gr=dm.forwardRef(({className:e,...o},t)=>(0,fm.jsx)(sn.Root,{ref:t,className:i(dp(),e),...o}));gr.displayName=sn.Root.displayName;var Gt=require("react/jsx-runtime"),um=Oo.FormProvider,vm=Ae.createContext({}),xm=({...e})=>(0,Gt.jsx)(vm.Provider,{value:{name:e.name},children:(0,Gt.jsx)(Oo.Controller,{...e})}),Vo=()=>{let e=Ae.useContext(vm),o=Ae.useContext(bm),{getFieldState:t,formState:a}=(0,Oo.useFormContext)(),r=t(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");let{id:n}=o;return{id:n,name:e.name,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`,...r}},bm=Ae.createContext({}),ln=Ae.forwardRef(({className:e,...o},t)=>{let a=Ae.useId();return(0,Gt.jsx)(bm.Provider,{value:{id:a},children:(0,Gt.jsx)("div",{ref:t,className:i("space-y-2",e),...o})})});ln.displayName="FormItem";var mn=Ae.forwardRef(({className:e,...o},t)=>{let{error:a,formItemId:r}=Vo();return(0,Gt.jsx)(gr,{ref:t,className:i(a&&"text-red-500","text-gray-700 ",e),htmlFor:r,...o})});mn.displayName="FormLabel";var cn=Ae.forwardRef(({...e},o)=>{let{error:t,formItemId:a,formDescriptionId:r,formMessageId:n}=Vo();return(0,Gt.jsx)(gm.Slot,{ref:o,id:a,"aria-describedby":t?`${r} ${n}`:`${r}`,"aria-invalid":!!t,...e})});cn.displayName="FormControl";var dn=Ae.forwardRef(({className:e,...o},t)=>{let{formDescriptionId:a}=Vo();return(0,Gt.jsx)("p",{ref:t,id:a,className:i("text-[0.8rem] text-gray-500",e),...o})});dn.displayName="FormDescription";var pn=Ae.forwardRef(({className:e,children:o,...t},a)=>{let{error:r,formMessageId:n}=Vo(),s=r?String(r?.message):o;return s?(0,Gt.jsx)("p",{ref:a,id:n,className:i("text-xs font-medium text-red-500",e),...t,children:s}):null});pn.displayName="FormMessage";var jt=v(require("react"),1),R=v(require("@radix-ui/react-dropdown-menu"),1),ur=require("lucide-react");var ie=require("react/jsx-runtime"),hm=R.Root,ym=R.Trigger,wm=R.Group,Nm=R.Portal,Pm=R.Sub,Cm=R.RadioGroup,fn=jt.forwardRef(({className:e,inset:o,children:t,...a},r)=>(0,ie.jsxs)(R.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",o&&"pl-8",e),...a,children:[t,(0,ie.jsx)(ur.ChevronRight,{className:"ml-auto"})]}));fn.displayName=R.SubTrigger.displayName;var gn=jt.forwardRef(({className:e,...o},t)=>(0,ie.jsx)(R.SubContent,{ref:t,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-gray-900 shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-0",e),...o}));gn.displayName=R.SubContent.displayName;var un=jt.forwardRef(({className:e,sideOffset:o=4,...t},a)=>(0,ie.jsx)(R.Portal,{children:(0,ie.jsx)(R.Content,{ref:a,sideOffset:o,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-300 bg-white p-1 text-gray-900 shadow-small data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ",e),...t})}));un.displayName=R.Content.displayName;var vn=jt.forwardRef(({className:e,inset:o,...t},a)=>(0,ie.jsx)(R.Item,{ref:a,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 ",o&&"pl-8",e),...t}));vn.displayName=R.Item.displayName;var xn=jt.forwardRef(({className:e,children:o,checked:t,...a},r)=>(0,ie.jsxs)(R.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),checked:t,...a,children:[(0,ie.jsxs)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:[t===!1&&(0,ie.jsx)("div",{className:"size-3.5 rounded-sm border border-gray-400 absolute inset-0"}),(0,ie.jsx)(R.ItemIndicator,{children:(0,ie.jsx)("div",{className:"size-3.5 rounded-sm border border-pink-500 bg-pink-500 flex items-center justify-center text-white absolute inset-0",children:(0,ie.jsx)(ur.Check,{size:16,strokeWidth:3})})})]}),o]}));xn.displayName=R.CheckboxItem.displayName;var bn=jt.forwardRef(({className:e,children:o,...t},a)=>(0,ie.jsxs)(R.RadioItem,{ref:a,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-gray-100 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 ",e),...t,children:[(0,ie.jsxs)("span",{className:"absolute left-2 flex size-3.5 items-center justify-center",children:[(0,ie.jsx)("div",{className:"size-3.5 rounded-full border border-gray-400 absolute inset-0"}),(0,ie.jsx)(R.ItemIndicator,{children:(0,ie.jsx)("div",{className:"size-3.5 rounded-full border-4 border-pink-500 absolute inset-0"})})]}),o]}));bn.displayName=R.RadioItem.displayName;var hn=jt.forwardRef(({className:e,inset:o,...t},a)=>(0,ie.jsx)(R.Label,{ref:a,className:i("px-2 py-1.5 text-sm font-semibold",o&&"pl-8",e),...t}));hn.displayName=R.Label.displayName;var yn=jt.forwardRef(({className:e,...o},t)=>(0,ie.jsx)(R.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-gray-100",e),...o}));yn.displayName=R.Separator.displayName;var wn=({className:e,...o})=>(0,ie.jsx)("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...o});wn.displayName="DropdownMenuShortcut";var ya=v(require("html-react-parser"),1);var A=require("react/jsx-runtime"),Rm=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,A.jsxs)(A.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:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:"-mx-3.5 flex flex-row flex-wrap justify-center gap-y-5",children:o.map((a,r)=>(0,A.jsx)("div",{className:"basis-full px-3.5 md:basis-1/3",children:(0,A.jsxs)("div",{className:"h-full rounded-lg border border-gray-100 bg-white px-6 py-8 text-center shadow-lg md:px-4 lg:px-6",children:[(0,A.jsx)("div",{className:"mx-auto flex h-9 w-9 items-center justify-center rounded-full bg-pink-500 text-xl font-bold text-white",children:r+1}),(0,A.jsxs)("div",{className:"mt-6 w-full",children:[(0,A.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ya.default)(a.title)}),a?.description&&(0,A.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ya.default)(a.description)})]})]})},r))}),t&&(0,A.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),pp=({dataHeading:e,dataHowItWorks:o,dataButtons:t})=>(0,A.jsxs)(A.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:e?.className}),o&&o?.length>0&&(0,A.jsx)("div",{className:"-mx-3.5 mt-9 flex flex-row flex-wrap justify-center gap-y-9",children:o.map((a,r)=>(0,A.jsxs)("div",{className:"basis-full px-3.5 text-center md:basis-1/3",children:[(0,A.jsxs)("div",{className:"relative mx-auto flex h-52 w-52 items-center justify-center",children:[(0,A.jsx)("div",{className:"absolute -left-4 -top-4 z-10 flex h-12 w-12 items-center justify-center rounded-full border-4 border-white bg-pink-500 text-lg font-bold text-white",children:r+1}),a?.image&&(0,A.jsx)("div",{className:"aspect-1 w-full overflow-hidden rounded-lg bg-gray-100",children:(0,A.jsx)(U,{ratio:1,children:(0,A.jsx)("img",{src:a.image,alt:a.title,className:"h-full w-full object-cover"})})})]}),(0,A.jsxs)("div",{className:"mt-6 w-full",children:[(0,A.jsx)("div",{className:"w-full text-xl font-semibold",children:(0,ya.default)(a.title)}),a?.description&&(0,A.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,ya.default)(a.description)})]})]},r))}),t&&(0,A.jsx)(N,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),fp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>{switch(e){case 1:return(0,A.jsx)(Rm,{dataHeading:o,dataHowItWorks:t,dataButtons:a});case 2:return(0,A.jsx)(pp,{dataHeading:o,dataHowItWorks:t,dataButtons:a});default:return(0,A.jsx)(Rm,{dataHeading:o,dataHowItWorks:t,dataButtons:a})}},gp=({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})=>(0,A.jsx)(A.Fragment,{children:fp({template:e,dataHeading:o,dataHowItWorks:t,dataButtons:a})}),Tm=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataHowItWorks:n,dataButtons:s})=>(0,A.jsx)(Z,{className:t,idSection:a,background:o,children:(0,A.jsx)(gp,{template:e,dataHeading:r,dataHowItWorks:n,dataButtons:s})});var km=require("class-variance-authority"),Nn=v(require("html-react-parser"),1),Pn=require("lucide-react");var ee=require("react/jsx-runtime"),up=(0,km.cva)("mt-6 list-inside text-gray-800",{variants:{template:{1:"grid grid-cols-1 gap-y-3 ",2:"grid grid-cols-1 gap-y-3 ",3:"mx-auto mt-0 mt-8 grid max-w-5xl grid-cols-1 items-center gap-4 text-left text-sm font-semibold md:mt-12 md:grid-cols-4 md:gap-12"}},defaultVariants:{template:1}}),vp=({template:e,name:o,image:t,isFeatures:a})=>(0,ee.jsx)(ee.Fragment,{children:(()=>{switch(e){case 1:case 2:return(0,ee.jsx)(ee.Fragment,{children:(0,ee.jsxs)("li",{className:i("flex space-x-4",!a&&"hidden"),children:[t?(0,ee.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,ee.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,ee.jsx)("div",{className:"mt-0.5 flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100",children:(0,ee.jsx)(Pn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,ee.jsx)("div",{className:"ml-2 ",children:(0,Nn.default)(o)})]})});case 3:return(0,ee.jsxs)("li",{className:"flex h-full space-x-4",children:[t?(0,ee.jsx)("div",{className:"flex h-10 w-10 flex-none shrink-0 items-center justify-center",children:(0,ee.jsx)("img",{src:t,alt:"",className:"max-w-full"})}):(0,ee.jsx)("div",{className:"flex h-5 w-5 flex-none items-center justify-center rounded-full bg-pink-100 p-1",children:(0,ee.jsx)(Pn.CheckIcon,{className:"h-4 w-4 text-pink-500"})}),o&&(0,ee.jsx)("div",{className:"my-auto ml-2 md:my-0",children:(0,Nn.default)(o)})]});default:return null}})()}),vr=({dataFeatures:e,template:o=1})=>(0,ee.jsx)(ee.Fragment,{children:(e?.length??0)>0&&(0,ee.jsx)("ul",{className:i("",up({template:o})),children:e?.map((t,a)=>(0,ee.jsx)(vp,{name:t?.name,template:o,image:t?.image,idx:a,isFeatures:!0},a))})});var Sm=require("lucide-react");var G=require("react/jsx-runtime"),Dm=e=>typeof e=="string"?e?.split("/")?.map(Number)?.reduce((a,r)=>a/r):e,xp=({src:e,ratio:o,className:t,youtubeId:a,onClickFC:r=()=>{}})=>(0,G.jsxs)(Ro,{children:[(0,G.jsx)(st,{greaterThan:"sm",children:(0,G.jsxs)(U,{className:i(""),ratio:Dm(o),children:[(0,G.jsx)("img",{src:e,className:i("hidden h-full w-full object-cover md:block",t,e?"":"bg-gray-200"),alt:""}),a&&(0,G.jsxs)(pt,{children:[(0,G.jsx)(Ta,{onClick:r,children:(0,G.jsx)("div",{className:"absolute top-0 z-10 hidden h-full w-full cursor-pointer items-center justify-center transition-transform group-hover:scale-105 md:flex",children:(0,G.jsx)("svg",{className:"h-14 w-14",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,G.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,G.jsx)("circle",{stroke:"#FFF",strokeWidth:2,fillOpacity:".24",fill:"#000",cx:24,cy:24,r:23}),(0,G.jsx)("path",{d:"M34.667 24.335c0 .515-.529.885-.529.885l-14.84 9.133c-1.08.704-1.965.182-1.965-1.153V15.467c0-1.338.884-1.856 1.968-1.153L34.14 23.45c-.002 0 .527.37.527.885Z",fill:"#FFF",fillRule:"nonzero"})]})})})}),(0,G.jsx)(Ze,{hideCloseBtn:!0,size:"lg",position:"center",className:"bg-transparent shadow-none",children:(0,G.jsxs)(Et,{className:"relative bg-transparent p-4 text-center",children:[(0,G.jsx)("div",{className:"aspect-[16/9] w-full p-0",children:(0,G.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?autoplay=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full"})}),(0,G.jsx)(ka,{asChild:!0,children:(0,G.jsx)(pe,{variant:"secondary",className:"absolute right-0 top-0 rounded-full",size:"sm",children:(0,G.jsx)(Sm.XIcon,{className:"h-6 w-6"})})})]})})]})]})}),a&&(0,G.jsx)(st,{lessThan:"md",children:(0,G.jsx)("div",{className:"realtive aspect-[16/9] w-full overflow-hidden md:hidden",children:(0,G.jsx)("iframe",{title:a,src:`https://www.youtube.com/embed/${a}?controls=1`,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"h-full w-full object-cover md:hidden"})})})]}),xr=({type:e=1,src:o,ratio:t,className:a,classNameMedia:r,youtubeId:n,onClickFC:s=()=>{}})=>(0,G.jsx)("div",{className:a,children:n?(0,G.jsx)(xp,{type:e,src:o,ratio:t,youtubeId:n,onClickFC:s}):(0,G.jsx)(U,{ratio:Dm(t),children:(0,G.jsx)("img",{src:o,className:i("h-full w-full object-cover",r,o?"":"bg-gray-200"),alt:""})})});var Mm=v(require("html-react-parser"),1);var nt=require("react/jsx-runtime"),bp=({value:e,suffix:o,unit:t,description:a,idx:r})=>(0,nt.jsxs)("div",{className:i(""),children:[e&&(0,nt.jsxs)("div",{className:"line-clamp-2 font-bold text-pink-500",children:[e,(o||t)&&(0,nt.jsxs)("span",{children:[o," ",t]})]}),a&&(0,nt.jsx)("div",{className:"mt-1 text-sm leading-tight text-gray-500",children:(0,Mm.default)(a)})]}),br=({dataStats:e})=>(0,nt.jsx)(nt.Fragment,{children:(e?.length??0)>0&&(0,nt.jsx)("ul",{className:i("mt-8 grid w-full auto-cols-[minmax(0,150px)] grid-flow-col gap-3 md:mt-10"),children:e?.map((o,t)=>(0,nt.jsx)(bp,{value:o?.value,suffix:o?.suffix,unit:o?.unit,description:o?.description,idx:t},t))})});var _=require("react/jsx-runtime"),Cn=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6 "),children:[(0,_.jsxs)("div",{className:"col-span-1 ",children:[(0,_.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),(0,_.jsx)(vr,{dataFeatures:t,template:a}),o&&(0,_.jsx)(N,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons}),(0,_.jsx)(br,{dataStats:r})]}),(0,_.jsx)("div",{className:"col-span-1 md:pl-10",children:s||(0,_.jsx)(xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})})]}),Im=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)("div",{className:i("grid grid-cols-1 items-center gap-8 md:grid-cols-2 md:gap-6"),children:[(0,_.jsx)("div",{className:"order-2 col-span-1 md:order-1 md:pr-10",children:s||(0,_.jsx)(xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId})}),(0,_.jsxs)("div",{className:"order-1 col-span-1 md:order-2",children:[(0,_.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"left",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),(0,_.jsx)(vr,{dataFeatures:t,template:a}),o&&(0,_.jsx)("div",{className:"flex w-full items-center justify-center md:justify-start",children:(0,_.jsx)(N,{align:"left",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons})}),(0,_.jsx)(br,{dataStats:r})]})]}),Am=({dataHeading:e,dataButtons:o,dataFeatures:t,template:a,dataStats:r,dataMedia:n,advancedComponent:s})=>(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(w,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading||"h1",align:"center",sizeHeading:e?.sizeHeading,colorScheme:e?.colorScheme||"black",className:i("mb-0 md:mb-0",e?.className)}),o&&(0,_.jsx)(N,{align:"center",isFullInMobile:o?.isFullInMobile,buttons:o?.buttons,className:"inline-flex w-full items-center justify-center text-center text-base font-semibold md:w-full"}),(0,_.jsx)(vr,{dataFeatures:t,template:a}),(0,_.jsx)("div",{className:" mx-auto max-w-xl [&>ul]:justify-center",children:(0,_.jsx)(br,{dataStats:r})}),s||(0,_.jsx)(_.Fragment,{children:n?.src&&(0,_.jsx)(xr,{type:n?.type||1,src:n?.src||"",ratio:n?.ratio,youtubeId:n?.youtubeId,className:"mt-8 md:mt-12",classNameMedia:"rounded-lg"})})]});var kt=require("react/jsx-runtime"),hp=`var(
247
247
  --gradient-pink-1,
248
248
  linear-gradient(
249
249
  38deg,