@momo-webplatform/mobase 0.2.79 → 0.2.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +3 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -67,7 +67,7 @@ import*as wo from"react";import{ChevronDownIcon as Ul}from"@heroicons/react/20/s
|
|
|
67
67
|
transform: translate3d(0, 30%, 0);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
`})]}),zt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>R(lt,{...m,children:R(We,{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:R(Nt,{className:"p-0",children:me("div",{className:"flex flex-row flex-wrap",children:[R("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||me("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),R("div",{className:"mt-1 text-gray-500 ",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),R("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),me("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"]})]})]})]})}),R("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:me("div",{className:"px-5 py-10 text-center",children:[t&&R("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),me("div",{className:"relative",children:[l&&R("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:R("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),R(om,{img:r,isQrForAll:l,children:n&&R(tm,{value:n,size:215,imageSettings:{src:`${s||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});import{useState as mm}from"react";import{useEffect as am,useLayoutEffect as rm,useState as im}from"react";import nm from"ua-parser-js";var sm=()=>nm().device.type==="mobile",lm=typeof window<"u"?rm:am,ea=()=>{let[e,o]=im(!1);return lm(()=>{o(sm())},[]),e};import{Fragment as cm,jsx as ta,jsxs as dm}from"react/jsx-runtime";var Ee=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=mm(!1),c=ea(),d=!!a?.qrLink,f=()=>{let H=d?a?.qrLink:e;return typeof H=="string"?H.trim():""},u=()=>{let H=f();!H&&typeof e!="function"||(typeof e=="function"?e():window.open(H,o?"_blank":"_self"))},v=(H,$=0)=>{let I=document.querySelector(H);if(!I)return;let N=I.getBoundingClientRect().top+window.scrollY-$;window.scrollTo({top:N,behavior:"smooth"})},k=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):u()},D=()=>dm(cm,{children:[ta(Se,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),ta(zt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?D():ta(Se,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):D():ta(Se,{...s,onClick:k,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as ao from"react";import{ChevronRightIcon as pm,DotsHorizontalIcon as fm}from"@radix-ui/react-icons";import{Slot as gm}from"@radix-ui/react-slot";import{jsx as mt,jsxs as um}from"react/jsx-runtime";var si=ao.forwardRef(({className:e,...o},t)=>mt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));si.displayName="Breadcrumb";var li=ao.forwardRef(({className:e,...o},t)=>mt("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}));li.displayName="BreadcrumbList";var mi=ao.forwardRef(({className:e,...o},t)=>mt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));mi.displayName="BreadcrumbItem";var ci=ao.forwardRef(({asChild:e,className:o,...t},a)=>mt(e?gm:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));ci.displayName="BreadcrumbLink";var di=ao.forwardRef(({className:e,...o},t)=>mt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));di.displayName="BreadcrumbPage";var pi=({children:e,className:o,...t})=>mt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??mt(pm,{className:"w-2 h-2"})});pi.displayName="BreadcrumbSeparator";var fi=({className:e,...o})=>um("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[mt(fm,{className:"w-4 h-4 text-gray-900"}),mt("span",{className:"sr-only",children:"More"})]});fi.displayName="BreadcrumbElipssis";import tr from"html-react-parser";import{createContext as vm,useContext as gi}from"react";import{jsx as Po}from"react/jsx-runtime";var Ya=vm({align:"center"}),Za=({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 Po("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Ka=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:c}=gi(Ya);return Po(s,{className:i("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",r),children:n})},Ja=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:c}=gi(Ya);return Po("div",{className:i(c==="center"?"mx-auto max-w-2xl":c==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",r),children:n})},er=({className:e,align:o="center",children:t})=>Po("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Po(Ya.Provider,{value:{align:o},children:t})});import{jsx as _t,jsxs as xm}from"react/jsx-runtime";var B=({idSection:e,className:o,background:t,children:a})=>_t("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:_t("div",{className:"wrapper relative",children:a})}),b=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",c=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:xm(er,{align:e,className:l,children:[o&&_t(Za,{color:m,children:o}),t&&_t(Ka,{tagHeading:r,color:c,size:s,children:tr(t)}),a&&_t(Ja,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:tr(a)})]})},h=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:_t("div",{className:i("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((r,n)=>{if(!r)return null;let{btnName:s,...l}=r;return _t(Ee,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:tr(s)},n)})});import Am,{memo as Lm}from"react";import{ArrowDownIcon as Em}from"@heroicons/react/20/solid";import Hm from"html-react-parser";import{createContext as wm,useCallback as Nm,useContext as or,useEffect as Pm,useRef as Cm,useState as Rm}from"react";import{ChevronLeft as Tm,ChevronRight as km}from"lucide-react";import*as ui from"react";import{Slot as bm}from"@radix-ui/react-slot";import{cva as hm}from"class-variance-authority";import{jsx as ym}from"react/jsx-runtime";var Bt=hm("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"}}),ie=ui.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?bm:"button",m=i(Bt({variant:o,size:t,className:e}));return ym(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ie.displayName="IconButton";import{Fragment as Sm,jsx as Pt,jsxs as vi}from"react/jsx-runtime";var oa=wm(void 0),ct=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=Cm(null),[n,s]=Rm({left:!1,right:!1}),l=Nm(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:f,clientWidth:u}=c;s({left:d>0,right:Math.ceil(d+u)<f})}},[]);Pm(()=>{let c=r.current;if(c)return l(),window.addEventListener("resize",l),c.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),c.removeEventListener("scroll",l)}},[l]);let m=c=>{let d=r.current;if(d){let{scrollLeft:f,clientWidth:u,scrollWidth:v}=d,k=u*.7*(c==="left"?-1:1),D=f+k;D<0?D=0:D>v-u&&(D=v-u),d.scrollTo({left:D,behavior:"smooth"})}};return Pt(oa.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:vi("div",{className:i("relative w-full",t),children:[e&&vi(Sm,{children:[n.left&&Pt("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&&Pt("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]})})},dt=({className:e,children:o})=>{let t=or(oa);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Pt("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},pt=({className:e,children:o,...t})=>{let a=or(oa);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Pt(ie,{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||Pt(Tm,{className:"h-4 w-4"})}):null},ft=({className:e,children:o,...t})=>{let a=or(oa);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Pt(ie,{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||Pt(km,{className:"h-4 w-4"})}):null};import*as aa from"react";import*as He from"@radix-ui/react-tabs";import{jsx as ar}from"react/jsx-runtime";var gt=He.Root,$e=aa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>ar(He.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}));$e.displayName=He.List.displayName;var Ge=aa.forwardRef(({className:e,...o},t)=>ar(He.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}));Ge.displayName=He.Trigger.displayName;var je=aa.forwardRef(({className:e,...o},t)=>ar(He.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}));je.displayName=He.Content.displayName;import*as xi from"react";import{Slot as Dm}from"@radix-ui/react-slot";import{cva as Mm}from"class-variance-authority";import{jsx as Im}from"react/jsx-runtime";var bi=Mm("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"}}),ce=xi.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Dm:"button",m=i(bi({variant:o,size:t,className:e}));return Im(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ce.displayName="TextButton";import{Fragment as hi,jsx as V,jsxs as Ue}from"react/jsx-runtime";var Fm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ue(hi,{children:[V("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:V("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Ue("picture",{children:[V("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),V("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Ue("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&V(ce,{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}),V("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}),Ue("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&Ue(hi,{children:[V(ce,{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&&V("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&V("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},ra=Lm(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,f,u)=>{d?.preventDefault(),d?.stopPropagation(),a?a(f):window.open(u,"_blank")},c=(d,f)=>Ue("div",{children:[V("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((u,v)=>V("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:V("div",{onClick:k=>m(k,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:V(Fm,{blog:u})},u?.id)},v))}),d?.isShowBtn&&V("div",{className:"flex items-center justify-center w-full mt-8",children:Ue(Ee,{action:r?()=>r?.(f):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[Hm(d.btnName||"Xem th\xEAm"),d?.isLoading?V(oo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&V(Em,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||f);return Ue(Am.Fragment,{children:[e&&V(b,{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?Ue(gt,{defaultValue:t[0]?.title,children:[Ue(ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[V(dt,{className:"mb-6 text-center",children:V($e,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,f)=>V(Ge,{value:d.title,children:d.title},d.title+f))})}),V(pt,{}),V(ft,{})]}),t.map((d,f)=>V(je,{value:d.title,children:c(d,f)},d.title+f))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import Om,{memo as Wm,useEffect as $m,useState as Ni}from"react";import{ChevronLeftIcon as Gm,ChevronRightIcon as jm}from"@heroicons/react/20/solid";import Pi from"html-react-parser";import*as L from"react";import{ChevronLeftIcon as zm,ChevronRightIcon as _m}from"@heroicons/react/20/solid";import Bm from"embla-carousel-react";import{Fragment as Vm,jsx as De,jsxs as wi}from"react/jsx-runtime";var yi=L.createContext(null);function Co(){let e=L.useContext(yi);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var he=L.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=Bm({...o,axis:e==="horizontal"?"x":"y"},a),[d,f]=L.useState(!1),[u,v]=L.useState(!1),k=L.useCallback($=>{$&&(f($.canScrollPrev()),v($.canScrollNext()))},[]),D=L.useCallback(()=>{c?.scrollPrev()},[c]),M=L.useCallback(()=>{c?.scrollNext()},[c]),H=L.useCallback($=>{$.key==="ArrowLeft"?($.preventDefault(),D()):$.key==="ArrowRight"&&($.preventDefault(),M())},[D,M]);return L.useEffect(()=>{!c||!t||t(c)},[c,t]),L.useEffect(()=>{if(c)return k(c),c.on("reInit",k),c.on("select",k),()=>{c?.off("select",k)}},[c,k]),De(yi.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:M,canScrollPrev:d,canScrollNext:u},children:De("div",{ref:l,onKeyDownCapture:H,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});he.displayName="Carousel";var ye=L.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Co();return De("div",{ref:r,className:i(o,"overflow-hidden"),children:De("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ye.displayName="CarouselContent";var we=L.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Co();return De("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});we.displayName="CarouselItem";var ro=L.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Co();return wi(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[De(zm,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Previous slide"})]})});ro.displayName="CarouselPrevious";var io=L.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Co();return wi(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[De(_m,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Next slide"})]})});io.displayName="CarouselNext";var ia=L.forwardRef((e,o)=>{let{api:t}=Co(),[,a]=L.useState(!1),r=L.useCallback(()=>a(l=>!l),[]);L.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?De("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>De(ie,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===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 ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):De(Vm,{})});ia.displayName="CarouselDots";import{Fragment as na,jsx as O,jsxs as Fe}from"react/jsx-runtime";var Um=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Fe(na,{children:[O("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:O("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Fe("div",{className:"mt-4 md:pr-3",children:[O("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&O("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:Pi(e?.description??"")}),Fe("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Fe(na,{children:[O(ce,{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&&O("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&O("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Qm=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return $m(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Fe(na,{children:[O(he,{opts:{dragFree:!1},setApi:o,className:"w-full",children:O(ye,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>O(we,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:O("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",d),children:O(Um,{blog:f})},f?.id)},f?.id))})}),s&&O("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Fe(Ee,{action:m&&m,newTab:c,variant:"outline",children:[Pi(l||"Xem th\xEAm")," "]})})]})},qm=({carouselRef:e})=>Fe(ie,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[O(Gm,{className:"h-6 w-6"}),O("span",{className:"sr-only",children:"Previous slide"})]}),Xm=({carouselRef:e})=>Fe(ie,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[O(jm,{className:"h-6 w-6"}),O("span",{className:"sr-only",children:"Next slide"})]}),rr=Wm(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(c,d,f)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(f,"_blank")},[n,s]=Ni(null),[,l]=Ni(0),m=()=>n?Fe("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[O(qm,{carouselRef:n}),O(Xm,{carouselRef:n})]}):O(na,{});return Fe(Om.Fragment,{children:[Fe("div",{className:" flex items-center justify-between",children:[e&&O(b,{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)}),O(m,{})]}),O(Qm,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as Jm,jsx as no}from"react/jsx-runtime";var Ym=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return no(ra,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return no(rr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return no(ra,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Zm=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>no(Jm,{children:Ym({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),Km=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:l})=>no(B,{className:i("overflow-hidden",a),background:r,children:no(Zm,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as la from"react";import{enUS as ac,vi as rc}from"date-fns/locale";import{ChevronLeft as ic,ChevronRight as nc}from"lucide-react";import sc from"lunisolar";import{DayPicker as lc}from"react-day-picker";import*as Ci from"react";import*as Ro from"@radix-ui/react-checkbox";import{CheckIcon as ec}from"@heroicons/react/16/solid";import{cva as Ri}from"class-variance-authority";import{jsx as ir}from"react/jsx-runtime";var tc=Ri("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"}}),oc=Ri("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),sa=Ci.forwardRef(({className:e,size:o,...t},a)=>ir(Ro.Root,{ref:a,className:i(tc({size:o}),e),...t,children:ir(Ro.Indicator,{className:i("flex items-center justify-center text-current"),children:ir(ec,{className:i(oc({size:o}))})})}));sa.displayName=Ro.Root.displayName;import{Fragment as fc,jsx as Qe,jsxs as nr}from"react/jsx-runtime";var mc=({date:e,cusContent:o})=>{let t=null;return t=sc(e).lunar,nr(fc,{children:[o?o(e):e.getDate(),t&&Qe("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},cc={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 dc({isShow:e,setIsShow:o,lang:t}){let a=la.useId();return Qe("div",{className:"w-full p-3 pt-0",children:nr("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[Qe(sa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),Qe("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 pc=e=>e.getDay()===0||e.getDay()===6;function ma({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=la.useState(!0);return Qe(lc,{locale:r==="vi"?rc:ac,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(Oe({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(Oe({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:pc},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>Qe(ic,{className:"h-6 w-6"}),IconRight:()=>Qe(nc,{className:"h-6 w-6"}),DayContent:c=>Qe(mc,{date:c.date,cusContent:n}),Months:({children:c})=>nr("div",{className:"w-full",children:[Qe("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&Qe(dc,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?cc:{},...s})}ma.displayName="Calendar";import{QuestionMarkCircleIcon as gc,XCircleIcon as uc}from"@heroicons/react/16/solid";import{format as ca}from"date-fns";import{Calendar as vc}from"lucide-react";import*as ki from"react";import*as ut from"@radix-ui/react-popover";import{jsx as Ti}from"react/jsx-runtime";var To=ut.Root,ko=ut.Trigger,so=ki.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>Ti(ut.Portal,{children:Ti(ut.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));so.displayName=ut.Content.displayName;import{Fragment as Si,jsx as Ne,jsxs as So}from"react/jsx-runtime";var xc=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:c,popoverContentProps:d})=>{let f=c?.selected||null;return So("div",{children:[So(To,{...m,children:[Ne(ko,{asChild:!0,children:So(Se,{variant:"secondary",className:i("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!f||!(f instanceof Date)&&typeof f=="object"&&(!("from"in f)||!f.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Ne("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?ca(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?Ne(Si,{children:f.from?f.to?So(Si,{children:[Ne("span",{className:"date-from",children:ca(f.from,s)})," ",Ne("span",{className:"date-separator",children:"-"}),Ne("span",{className:"date-to",children:ca(f.to,s)})]}):ca(f.from,s):o}):o}),e&&Ne("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}),Ne(vc,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Ne(so,{className:"w-auto border-none !p-0",...d,children:Ne(ma,{...c,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&So("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?Ne(uc,{width:16,height:16,className:"text-red-500"}):Ne(gc,{width:16,height:16,className:"text-gray-500"}),Ne("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Nc,useState as Hi}from"react";import{QuestionMarkCircleIcon as Pc,XCircleIcon as Cc}from"@heroicons/react/16/solid";import{isValid as Rc}from"date-fns";import*as qe from"react";import{ChevronDownIcon as Di,ChevronUpIcon as bc,CheckIcon as hc,XCircleIcon as yc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as wc}from"@heroicons/react/24/outline";import*as C from"@radix-ui/react-select";import{jsx as W,jsxs as Do}from"react/jsx-runtime";var Mo=qe.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Do("div",{ref:m,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&&W("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}),W(C.Root,{disabled:s,...l,children:o}),a&&Do("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?W(yc,{width:16,height:16}):W(wc,{width:16,height:16}),W("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Io=C.Value,lo=qe.forwardRef(({className:e,children:o,...t},a)=>Do(C.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:[W("div",{className:"line-clamp-1 text-left",children:o}),W(C.Icon,{asChild:!0,children:W(Di,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));lo.displayName=C.Trigger.displayName;var sr=qe.forwardRef(({className:e,...o},t)=>W(C.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:W(bc,{className:"h-5 w-5"})}));sr.displayName=C.ScrollUpButton.displayName;var lr=qe.forwardRef(({className:e,...o},t)=>W(C.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:W(Di,{className:"h-5 w-5"})}));lr.displayName=C.ScrollDownButton.displayName;var mo=qe.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>W(C.Portal,{children:Do(C.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:[W(sr,{}),W(C.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),W(lr,{})]})}));mo.displayName=C.Content.displayName;var Ao=qe.forwardRef(({className:e,children:o,...t},a)=>W(C.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Mi=qe.forwardRef(({className:e,...o},t)=>W(C.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Mi.displayName=C.Label.displayName;var Ct=qe.forwardRef(({className:e,children:o,...t},a)=>Do(C.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:[W("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:W(C.ItemIndicator,{children:W(hc,{className:"h-4 w-4 text-pink-500"})})}),W(C.ItemText,{children:o})]})),Ii=qe.forwardRef(({className:e,...o},t)=>W(C.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));Ii.displayName=C.Separator.displayName;var Ai=["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"],Li=["January","February","March","April","May","June","July","August","September","October","November","December"],mr=(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}},Ei=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};import{jsx as ee,jsxs as Xe}from"react/jsx-runtime";var Tc=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:c=1900,toYear:d=new Date().getFullYear(),disableUnselect:f=!1})=>{let[u,v]=Hi(o??null),k=Math.min(c,d),D=Math.max(c,d),M=l==="MM/yyyy",H=(N,re)=>{if(re===0){v(void 0),t?.(void 0);return}let G=u?.getFullYear()||new Date().getFullYear(),Zo=u?.getMonth()??0,Ft=u?.getDate()??1;N==="month"&&re!==null&&(Zo=re-1),N==="year"&&re!==null&&(G=re),M?Ft=1:N==="day"&&re!==null&&(Ft=re);let ei=mr(G,Zo+1).daysInMonth;Ft>ei&&(Ft=1);let ho=new Date(G,Zo,Ft);Rc(ho)&&(v(ho),t?.(ho))},[$,I]=Hi(!1),Ht=N=>{I(N)};return Nc(()=>{v(o??null)},[o]),Xe("div",{className:i("relative",s&&"cursor-no-drop"),children:[Xe("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",$&&"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&&ee("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}),Xe("div",{className:"flex h-full flex-row divide-x",children:[!M&&Xe(Mo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:N=>H("day",parseInt(N,10)),onOpenChange:Ht,className:"w-[30%]",children:[ee(lo,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),ee(mo,{onCloseAutoFocus:N=>N.preventDefault(),children:Xe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:mr(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(N,re)=>(re+1).toString().padStart(2,"0")).map(N=>ee(Ct,{value:N,children:N},N))]})})]}),Xe(Mo,{value:u?(u.getMonth()+1).toString():"",onValueChange:N=>H("month",parseInt(N,10)),onOpenChange:Ht,className:i(M?"w-1/2":"w-2/5"),children:[ee(lo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),ee(mo,{onCloseAutoFocus:N=>N.preventDefault(),children:Xe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(N,re)=>re+1).map(N=>ee(Ct,{value:N.toString(),children:m==="vi"?Ai[N-1]:Li[N-1]},N))]})})]}),Xe(Mo,{value:u?u.getFullYear().toString():"",onValueChange:N=>H("year",parseInt(N,10)),onOpenChange:Ht,className:i(M?"w-1/2":"w-[30%]"),children:[ee(lo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"N\u0103m":"Year"})}),ee(mo,{onCloseAutoFocus:N=>N.preventDefault(),children:Xe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Ei(k,D).map(N=>ee(Ct,{value:N.toString(),children:N},N))]})})]})]})]}),r&&Xe("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?ee(Cc,{width:16,height:16,className:"text-red-500"}):ee(Pc,{width:16,height:16,className:"text-gray-500"}),ee("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as Vt from"react";import*as F from"@radix-ui/react-alert-dialog";import{jsx as vt,jsxs as Dc}from"react/jsx-runtime";var kc=F.Root,Sc=F.Trigger,Fi=F.Portal,cr=Vt.forwardRef(({className:e,...o},t)=>vt(F.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}));cr.displayName=F.Overlay.displayName;var zi=Vt.forwardRef(({className:e,...o},t)=>Dc(Fi,{children:[vt(cr,{}),vt(F.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})]}));zi.displayName=F.Content.displayName;var _i=({className:e,...o})=>vt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});_i.displayName="AlertDialogHeader";var Bi=({className:e,...o})=>vt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Bi.displayName="AlertDialogFooter";var Vi=Vt.forwardRef(({className:e,...o},t)=>vt(F.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Vi.displayName=F.Title.displayName;var Oi=Vt.forwardRef(({className:e,...o},t)=>vt(F.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Oi.displayName=F.Description.displayName;var Wi=Vt.forwardRef(({className:e,...o},t)=>vt(F.Action,{ref:t,className:i(Oe({variant:"primary"}),"",e),...o}));Wi.displayName=F.Action.displayName;var $i=Vt.forwardRef(({className:e,...o},t)=>vt(F.Cancel,{ref:t,className:i(Oe({variant:"secondary"}),e),...o}));$i.displayName=F.Cancel.displayName;import{memo as _c,useState as Bc}from"react";import{useEffect as Mc,useState as ji}from"react";import Ui from"html-react-parser";import{motion as Ic}from"motion/react";import*as Gi from"@radix-ui/react-aspect-ratio";var E=Gi.Root;import{Fragment as Qi,jsx as te,jsxs as Lo}from"react/jsx-runtime";var Ac=({guideGroup:e,mockup:o})=>{let[t,a]=ji(),[r,n]=ji(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Mc(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),te(Qi,{children:e?.stepList&&e?.stepList?.length>0&&Lo("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[te("div",{className:"h-auto w-64 flex-none",children:Lo("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"&&Lo(Qi,{children:[te("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),te("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:Lo(he,{setApi:a,children:[te(ye,{className:"ml-0",children:e?.stepList.map((l,m)=>te(we,{className:"pl-0",children:te(E,{ratio:o==="small"?540/960:540/1168,children:l?.image&&te("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),te(ro,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),te(io,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),te("div",{className:"flex flex-auto pl-12 pt-4",children:te("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>Lo("li",{className:i("relative min-h-20 pb-8 pl-14 after:absolute after:left-4 after:top-0 after:-z-10 after:h-full after:border-l after:border-dashed after:border-gray-200 last:min-h-0 last:pb-0 last:after:hidden",m+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[te("div",{className:i("absolute -top-1.5 left-0 flex h-8 w-8 items-center justify-center rounded-full text-sm font-bold",m+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),te("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:Ui(l.title)}),l.content&&te(Ic.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:te("div",{className:"mt-3 text-sm text-gray-700",children:Ui(l.content)})})]},m))})})]})})},dr=Ac;import{useEffect as Lc,useRef as Ec,useState as da}from"react";import{ChevronRightIcon as qi}from"@heroicons/react/20/solid";import Hc from"embla-carousel-autoplay";import pa from"html-react-parser";import{Fragment as pr,jsx as y,jsxs as ue}from"react/jsx-runtime";var Fc=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=da(0),[s,l]=da();return Lc(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:y(lt,{open:e,onOpenChange:o,children:ue(We,{position:"bottom",height:"full",children:[y(Ko,{children:y(Jo,{className:"line-clamp-1",children:t?.title})}),ue(Nt,{className:"grid overflow-hidden p-0 ",children:[y(he,{setApi:l,className:" grid overflow-hidden",children:y(ye,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>y(we,{className:"h-full w-full pl-0",children:ue("div",{className:"flex h-full flex-col overflow-y-auto",children:[y("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:y("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:ue("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"&&ue(pr,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:y(E,{ratio:a==="small"?540/960:540/1168,children:m?.image&&y("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),ue("div",{className:"p-5 pb-12",children:[y("div",{className:"font-semibold",children:pa(m.title)}),m?.content&&y("div",{className:"mt-3 text-sm text-gray-800",children:pa(m.content)})]})]})},c))})}),y("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((m,c)=>y("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},zc=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=da(!1),[n,s]=da(null),l=Ec(Hc({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:ue(pr,{children:[e?.length>1?y("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>ue("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[y("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(c?.avatar||c?.stepList?.[0]?.image)&&y("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),ue("div",{className:i("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",d+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[ue("div",{className:"py-2",children:[t&&y("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),y("div",{className:"font-semibold",children:pa(c.title)}),c?.description&&y("div",{className:"mt-1 text-sm text-gray-500",children:pa(c.description)})]}),y("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:y(qi,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&ue("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[y("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:y("div",{className:"mx-auto h-auto w-72",children:ue("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"&&ue(pr,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:y(he,{plugins:[l.current],children:y(ye,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>y(we,{className:"pl-0",onClick:()=>m(0),children:y(E,{ratio:o==="small"?540/960:540/1168,children:c?.image&&y("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),y("div",{className:"flex w-full flex-none justify-center",children:ue(ce,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",y(qi,{className:"ml-1 h-5 w-5"})]})})]}),a&&y(Fc,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},Xi=zc;import{Fragment as Vc,jsx as se,jsxs as Eo}from"react/jsx-runtime";var Yi=({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 se("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:se("path",{d:t.d,fill:"currentColor"})})},fr=_c(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=Bc(t?.[0]?.title||"");return Eo(Vc,{children:[e&&se(b,{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&&Eo(eo,{children:[se(Ve,{lessThan:"md",children:se(Xi,{dataGuide:t,mockup:r,isStep:n})}),se(Ve,{greaterThan:"sm",children:t?.length>1?Eo(gt,{defaultValue:t[0]?.title,onValueChange:f=>d(f),children:[Eo(ct,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[se(dt,{className:"mb-6 text-center",children:se($e,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let v=u===t.length-1,k=c===f?.title||"";return Eo(Ge,{value:f.title,className:i(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",k&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&se(Yi,{direction:"left",className:i("right-full top-0",k?"text-pink-500":"text-pink-100")}),f.title,n&&!v&&se(Yi,{direction:"right",className:i("left-full top-0",k?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),se(pt,{}),se(ft,{})]}),t.map((f,u)=>se(je,{value:f.title,children:se(dr,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&se(dr,{guideGroup:t[0],mockup:r})})]}),a&&se(h,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as Gc,jsx as Ho}from"react/jsx-runtime";var Oc=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return Ho(fr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return Ho(fr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Wc=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>Ho(Gc,{children:Oc({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),$c=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:r,background:n,template:s=1,mockup:l="default",isStep:m=!1})=>Ho(B,{className:i(r),background:n,children:Ho(Wc,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:l,isStep:m})});import{ChevronLeft as jc,ChevronRight as Uc}from"lucide-react";import{Fragment as Qc,jsx as Me,jsxs as Zi}from"react/jsx-runtime";function Ki({current:e,total:o,onChange:t}){let a=r=>Me("li",{children:Me("button",{className:i(Bt({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return Me("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:Zi("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Me(jc,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):Zi(Qc,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Me(Uc,{className:"h-4 w-4"})})})]})})}import{forwardRef as qc}from"react";import{QuestionMarkCircleIcon as Xc}from"@heroicons/react/24/outline";import{XCircleIcon as Yc}from"@heroicons/react/24/solid";import{jsx as co,jsxs as Ji}from"react/jsx-runtime";var Zc=qc(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>Ji("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&co("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}),co("textarea",{disabled:e,ref:c,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:l,...m}),t&&Ji("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?co(Yc,{width:16,height:16,className:"text-red-500"}):co(Xc,{width:16,height:16,className:"text-gray-500"}),co("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),co("style",{children:`
|
|
70
|
+
`})]}),zt=({className:e,children:o,title:t,shortTitle:a,qrImage:r,qrLink:n,logoQr:s,isQrForAll:l=!1,...m})=>R(lt,{...m,children:R(We,{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:R(Nt,{className:"p-0",children:me("div",{className:"flex flex-row flex-wrap",children:[R("div",{className:"w-full flex-none md:w-5/12 hidden sm:block",children:o||me("div",{className:"px-5 text-sm py-8 grid grid-cols-1 gap-y-6",children:[me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 1 :"}),R("div",{className:"mt-1 text-gray-500 ",children:l?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 2 :"}),R("div",{className:"mt-1 text-gray-500 ",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),me("div",{className:"flex flex-nowrap items-center",children:[R("div",{className:"flex-none",children:R("img",{className:"w-20 ",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),me("div",{className:"flex-1 pl-4",children:[R("div",{className:"step font-semibold text-gray-800 ",children:"B\u01B0\u1EDBc 3 :"}),me("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"]})]})]})]})}),R("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:me("div",{className:"px-5 py-10 text-center",children:[t&&R("h4",{className:"mb-5 text-base font-semibold text-white",children:t}),me("div",{className:"relative",children:[l&&R("div",{className:"absolute -top-2 left-1/2 z-[5] -translate-x-1/2",children:R("img",{src:"https://homepage.momocdn.net/fileuploads/svg/momo-file-231211170324.svg",alt:"Title QR all"})}),R(om,{img:r,isQrForAll:l,children:n&&R(tm,{value:n,size:215,imageSettings:{src:`${s||"https://homepage.momocdn.net/pwa/images/logoMomox50.png"}`,height:50,width:50,excavate:!0},level:"H"})})]})]})})]})})})});import{useState as mm}from"react";import{useEffect as am,useLayoutEffect as rm,useState as im}from"react";import nm from"ua-parser-js";var sm=()=>nm().device.type==="mobile",lm=typeof window<"u"?rm:am,ea=()=>{let[e,o]=im(!1);return lm(()=>{o(sm())},[]),e};import{Fragment as cm,jsx as ta,jsxs as dm}from"react/jsx-runtime";var Ee=({action:e,newTab:o,offset:t,dialogQrProps:a,className:r,children:n,...s})=>{let[l,m]=mm(!1),c=ea(),d=!!a?.qrLink,f=()=>{let H=d?a?.qrLink:e;return typeof H=="string"?H.trim():""},u=()=>{let H=f();!H&&typeof e!="function"||(typeof e=="function"?e():window.open(H,o?"_blank":"_self"))},v=(H,$=0)=>{let I=document.querySelector(H);if(!I)return;let N=I.getBoundingClientRect().top+window.scrollY-$;window.scrollTo({top:N,behavior:"smooth"})},k=()=>{typeof e=="string"&&e.startsWith("#")?v(e,t):u()},D=()=>dm(cm,{children:[ta(Se,{...s,className:r,onClick:()=>m(!0),"data-name":"button-action-with-qr",children:n}),ta(zt,{...a,open:l,onOpenChange:()=>m(!1),qrLink:a?.qrLink||""})]});return d?c?a?.isQrForAll?D():ta(Se,{...s,className:r,onClick:u,"data-name":"button-action-with-qr",children:n}):D():ta(Se,{...s,onClick:k,className:i("cursor-pointer",r),"data-name":"button-action-without-qr",rel:"noreferrer",children:n})};import*as ao from"react";import{ChevronRightIcon as pm,DotsHorizontalIcon as fm}from"@radix-ui/react-icons";import{Slot as gm}from"@radix-ui/react-slot";import{jsx as mt,jsxs as um}from"react/jsx-runtime";var si=ao.forwardRef(({className:e,...o},t)=>mt("nav",{ref:t,"aria-label":"breadcrumb",className:i("",e),...o}));si.displayName="Breadcrumb";var li=ao.forwardRef(({className:e,...o},t)=>mt("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}));li.displayName="BreadcrumbList";var mi=ao.forwardRef(({className:e,...o},t)=>mt("li",{ref:t,className:i("shrink-0 text-gray-900 hover:text-pink-500",e),...o}));mi.displayName="BreadcrumbItem";var ci=ao.forwardRef(({asChild:e,className:o,...t},a)=>mt(e?gm:"a",{ref:a,className:i("transition-colors hover:text-foreground",o),...t}));ci.displayName="BreadcrumbLink";var di=ao.forwardRef(({className:e,...o},t)=>mt("span",{ref:t,role:"link","aria-disabled":"true","aria-current":"page",className:i("text-sm text-gray-500",e),...o}));di.displayName="BreadcrumbPage";var pi=({children:e,className:o,...t})=>mt("li",{role:"presentation","aria-hidden":"true",className:i("text-gray-900",o),...t,children:e??mt(pm,{className:"w-2 h-2"})});pi.displayName="BreadcrumbSeparator";var fi=({className:e,...o})=>um("span",{role:"presentation","aria-hidden":"true",className:i("flex h-5 w-5 items-center justify-center",e),...o,children:[mt(fm,{className:"w-4 h-4 text-gray-900"}),mt("span",{className:"sr-only",children:"More"})]});fi.displayName="BreadcrumbElipssis";import tr from"html-react-parser";import{createContext as vm,useContext as gi}from"react";import{jsx as Po}from"react/jsx-runtime";var Ya=vm({align:"center"}),Za=({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 Po("div",{className:i("mb-1 font-semibold",n[e],s[o],t&&"truncate",a),children:r})},Ka=({tagHeading:e="h2",size:o="small",color:t="pink",isTruncated:a=!1,className:r,children:n})=>{let s=e,l={regular:"text-gray-900",pink:"text-pink-500",white:"text-white"},m={small:"lg:text-3xl text-2xl",large:"lg:text-4xl md:text-3xl text-2xl"},{align:c}=gi(Ya);return Po(s,{className:i("max-w-4xl font-bold",c==="center"?"mx-auto":c==="right"?"ml-auto":"",l[t],m[o],a&&"truncate",r),children:n})},Ja=({color:e="regular",size:o="small",marginTop:t="spacingX",isTruncated:a=!1,className:r,children:n})=>{let s={regular:"text-gray-500",white:"text-white/80"},l={small:"text-base",large:"md:text-lg text-base"},m={none:"",spacingX:"mt-2",spacingM:"mt-3",spacingL:"mt-4",spacingXl:"mt-5",spacing2Xl:"mt-6"},{align:c}=gi(Ya);return Po("div",{className:i(c==="center"?"mx-auto max-w-2xl":c==="right"?"ml-auto max-w-4xl":"max-w-4xl",s[e],l[o],m[t],a&&"truncate",r),children:n})},er=({className:e,align:o="center",children:t})=>Po("div",{className:i("mb-5 md:mb-8",{left:"text-left",center:"text-center",right:"text-right"}[o],e),children:Po(Ya.Provider,{value:{align:o},children:t})});import{jsx as _t,jsxs as xm}from"react/jsx-runtime";var B=({idSection:e,className:o,background:t,children:a})=>_t("section",{id:e,className:i("block-section py-8 md:py-10 lg:py-14",o),style:{background:t},children:_t("div",{className:"wrapper relative",children:a})}),b=({align:e="center",tagline:o,title:t,description:a,tagHeading:r="h2",colorScheme:n="pink",sizeHeading:s="small",className:l})=>{let m=n==="black"?"pink":n==="pink"?"regular":"white",c=n==="pink"?"pink":n==="white"?"white":"regular",d=n==="white"?"white":"regular";return!t&&!a&&!o?null:xm(er,{align:e,className:l,children:[o&&_t(Za,{color:m,children:o}),t&&_t(Ka,{tagHeading:r,color:c,size:s,children:tr(t)}),a&&_t(Ja,{color:d,size:"large",marginTop:s==="large"?"spacing2Xl":"spacingX",children:tr(a)})]})},h=({align:e,isFullInMobile:o=!1,buttons:t,className:a})=>t?.length===0?null:_t("div",{className:i("buttons-block mt-8 flex w-full gap-4 md:mt-10",e==="center"&&"justify-center",e==="right"&&"justify-end",o&&"flex-wrap md:flex-nowrap",a),children:t?.slice(0,2).map((r,n)=>{if(!r)return null;let{btnName:s,...l}=r;return _t(Ee,{...l,className:i(o&&"w-full md:w-auto",r?.className),children:tr(s)},n)})});import Am,{memo as Lm}from"react";import{ArrowDownIcon as Em}from"@heroicons/react/20/solid";import Hm from"html-react-parser";import{createContext as wm,useCallback as Nm,useContext as or,useEffect as Pm,useRef as Cm,useState as Rm}from"react";import{ChevronLeft as Tm,ChevronRight as km}from"lucide-react";import*as ui from"react";import{Slot as bm}from"@radix-ui/react-slot";import{cva as hm}from"class-variance-authority";import{jsx as ym}from"react/jsx-runtime";var Bt=hm("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"}}),ie=ui.forwardRef(({className:e,variant:o="primary",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?bm:"button",m=i(Bt({variant:o,size:t,className:e}));return ym(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ie.displayName="IconButton";import{Fragment as Sm,jsx as Pt,jsxs as vi}from"react/jsx-runtime";var oa=wm(void 0),ct=({showGradientOverlay:e=!0,gradientOverlayColor:o="255, 255, 255",className:t,children:a})=>{let r=Cm(null),[n,s]=Rm({left:!1,right:!1}),l=Nm(()=>{let c=r.current;if(c){let{scrollLeft:d,scrollWidth:f,clientWidth:u}=c;s({left:d>0,right:Math.ceil(d+u)<f})}},[]);Pm(()=>{let c=r.current;if(c)return l(),window.addEventListener("resize",l),c.addEventListener("scroll",l),()=>{window.removeEventListener("resize",l),c.removeEventListener("scroll",l)}},[l]);let m=c=>{let d=r.current;if(d){let{scrollLeft:f,clientWidth:u,scrollWidth:v}=d,k=u*.7*(c==="left"?-1:1),D=f+k;D<0?D=0:D>v-u&&(D=v-u),d.scrollTo({left:D,behavior:"smooth"})}};return Pt(oa.Provider,{value:{scrollContainerRef:r,showArrows:n,scroll:m,gradientOverlayColor:o},children:vi("div",{className:i("relative w-full",t),children:[e&&vi(Sm,{children:[n.left&&Pt("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&&Pt("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]})})},dt=({className:e,children:o})=>{let t=or(oa);if(!t)throw new Error("HorizontalContent must be used within a HorizontalScroll");return Pt("div",{ref:t.scrollContainerRef,className:i("scrollbar-hide overflow-x-auto scroll-smooth",e),role:"region","aria-label":"Scrollable content",children:o})},pt=({className:e,children:o,...t})=>{let a=or(oa);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.left?Pt(ie,{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||Pt(Tm,{className:"h-4 w-4"})}):null},ft=({className:e,children:o,...t})=>{let a=or(oa);if(!a)throw new Error("HorizontalNavigation must be used within a HorizontalScroll");return a.showArrows.right?Pt(ie,{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||Pt(km,{className:"h-4 w-4"})}):null};import*as aa from"react";import*as He from"@radix-ui/react-tabs";import{jsx as ar}from"react/jsx-runtime";var gt=He.Root,$e=aa.forwardRef(({className:e,size:o="sm",isDivider:t=!1,...a},r)=>ar(He.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}));$e.displayName=He.List.displayName;var Ge=aa.forwardRef(({className:e,...o},t)=>ar(He.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}));Ge.displayName=He.Trigger.displayName;var je=aa.forwardRef(({className:e,...o},t)=>ar(He.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}));je.displayName=He.Content.displayName;import*as xi from"react";import{Slot as Dm}from"@radix-ui/react-slot";import{cva as Mm}from"class-variance-authority";import{jsx as Im}from"react/jsx-runtime";var bi=Mm("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"}}),ce=xi.forwardRef(({className:e,variant:o="default",size:t="default",asChild:a=!1,isDisabled:r=!1,...n},s)=>{let l=a?Dm:"button",m=i(bi({variant:o,size:t,className:e}));return Im(l,{className:m,disabled:r,ref:s,...n,children:n.children})});ce.displayName="TextButton";import{Fragment as hi,jsx as V,jsxs as Ue}from"react/jsx-runtime";var Fm=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Ue(hi,{children:[V("div",{className:"flex-none pr-3 basis-1/2 md:basis-full md:pr-0",children:V("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:Ue("picture",{children:[V("source",{media:"(min-width: 640px)",srcSet:e?.thumbnailDesktop}),V("img",{className:"object-cover w-full h-full",src:e?.thumbnailMobile,alt:e?.title})]})})}),Ue("div",{className:"overflow-hidden basis-1/2 md:mt-3 md:basis-full",children:[e?.category&&e?.categoryUrl&&V(ce,{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}),V("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}),Ue("div",{className:"flex items-center mt-2 md:space-x-1",children:[e?.category&&e?.categoryUrl&&Ue(hi,{children:[V(ce,{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&&V("span",{className:"flex-none hidden leading-none md:block",children:"\xB7"})]}),e?.totalViews&&V("div",{className:"flex-none text-xs text-gray-500",children:e.totalViews})]})]})]})},ra=Lm(({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,onClickModal:a,onClickLoadMore:r})=>{let{showGradientOverlay:n=!0,gradientOverlayColor:s,className:l}=o||{},m=(d,f,u)=>{d?.preventDefault(),d?.stopPropagation(),a?a(f):window.open(u,"_blank")},c=(d,f)=>Ue("div",{children:[V("div",{className:i("-mx-3 flex flex-row flex-wrap gap-y-5",d?.blogList?.length<3?"md:justify-center":""),children:d?.blogList?.map((u,v)=>V("div",{className:"min-w-0 px-3 basis-full md:basis-1/2 lg:basis-1/3",children:V("div",{onClick:k=>m(k,u?.id,u?.url),className:i("group flex cursor-pointer flex-row md:flex-col",d?.classNameItem),children:V(Fm,{blog:u})},u?.id)},v))}),d?.isShowBtn&&V("div",{className:"flex items-center justify-center w-full mt-8",children:Ue(Ee,{action:r?()=>r?.(f):d?.btnUrl,newTab:d?.isNewTab,variant:"outline",children:[Hm(d.btnName||"Xem th\xEAm"),d?.isLoading?V(oo,{className:"w-5 h-5 ml-2 animate-spin-loading"}):r&&!d?.btnUrl&&V(Em,{className:"w-5 h-5 ml-2 -mb-1 animate-bounce"})]})})]},d?.title||f);return Ue(Am.Fragment,{children:[e&&V(b,{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?Ue(gt,{defaultValue:t[0]?.title,children:[Ue(ct,{showGradientOverlay:n,gradientOverlayColor:s,className:l,children:[V(dt,{className:"mb-6 text-center",children:V($e,{className:"inline-flex items-center w-auto mx-auto mb-0 overflow-visible",children:t.map((d,f)=>V(Ge,{value:d.title,children:d.title},d.title+f))})}),V(pt,{}),V(ft,{})]}),t.map((d,f)=>V(je,{value:d.title,children:c(d,f)},d.title+f))]}):t?.length===1&&t[0]&&c(t[0],0)]})});import Om,{memo as Wm,useEffect as $m,useState as Ni}from"react";import{ChevronLeftIcon as Gm,ChevronRightIcon as jm}from"@heroicons/react/20/solid";import Pi from"html-react-parser";import*as L from"react";import{ChevronLeftIcon as zm,ChevronRightIcon as _m}from"@heroicons/react/20/solid";import Bm from"embla-carousel-react";import{Fragment as Vm,jsx as De,jsxs as wi}from"react/jsx-runtime";var yi=L.createContext(null);function Co(){let e=L.useContext(yi);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}var he=L.forwardRef(({orientation:e="horizontal",opts:o,setApi:t,plugins:a,className:r,children:n,...s},l)=>{let[m,c]=Bm({...o,axis:e==="horizontal"?"x":"y"},a),[d,f]=L.useState(!1),[u,v]=L.useState(!1),k=L.useCallback($=>{$&&(f($.canScrollPrev()),v($.canScrollNext()))},[]),D=L.useCallback(()=>{c?.scrollPrev()},[c]),M=L.useCallback(()=>{c?.scrollNext()},[c]),H=L.useCallback($=>{$.key==="ArrowLeft"?($.preventDefault(),D()):$.key==="ArrowRight"&&($.preventDefault(),M())},[D,M]);return L.useEffect(()=>{!c||!t||t(c)},[c,t]),L.useEffect(()=>{if(c)return k(c),c.on("reInit",k),c.on("select",k),()=>{c?.off("select",k)}},[c,k]),De(yi.Provider,{value:{carouselRef:m,api:c,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:D,scrollNext:M,canScrollPrev:d,canScrollNext:u},children:De("div",{ref:l,onKeyDownCapture:H,className:i("relative",r),role:"region","aria-roledescription":"carousel",...s,children:n})})});he.displayName="Carousel";var ye=L.forwardRef(({className:e,classNameContent:o,...t},a)=>{let{carouselRef:r,orientation:n}=Co();return De("div",{ref:r,className:i(o,"overflow-hidden"),children:De("div",{ref:a,className:i("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});ye.displayName="CarouselContent";var we=L.forwardRef(({className:e,...o},t)=>{let{orientation:a}=Co();return De("div",{ref:t,role:"group","aria-roledescription":"slide",className:i("min-w-0 shrink-0 grow-0 basis-full",a==="horizontal"?"pl-4":"pt-4",e),...o})});we.displayName="CarouselItem";var ro=L.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollPrev:s,canScrollPrev:l}=Co();return wi(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[De(zm,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Previous slide"})]})});ro.displayName="CarouselPrevious";var io=L.forwardRef(({className:e,variant:o="secondary",size:t="default",...a},r)=>{let{orientation:n,scrollNext:s,canScrollNext:l}=Co();return wi(ie,{ref:r,variant:o,size:t,className:i("absolute h-8 w-8 rounded-full",n==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:s,...a,children:[De(_m,{className:"w-6 h-6"}),De("span",{className:"sr-only",children:"Next slide"})]})});io.displayName="CarouselNext";var ia=L.forwardRef((e,o)=>{let{api:t}=Co(),[,a]=L.useState(!1),r=L.useCallback(()=>a(l=>!l),[]);L.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?De("div",{ref:o,className:` flex justify-center ${e.className}`,children:Array.from({length:n},(l,m)=>De(ie,{className:`navigation-item mx-1 h-1.5 w-1.5 rounded-full p-0 ${m===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 ${m+1}`,onClick:()=>t?.scrollTo(m)},m))}):De(Vm,{})});ia.displayName="CarouselDots";import{Fragment as na,jsx as O,jsxs as Fe}from"react/jsx-runtime";var Um=({blog:e})=>{let o=(t,a)=>{t?.preventDefault(),t?.stopPropagation(),window.open(a,"_blank")};return Fe(na,{children:[O("div",{className:"relative block aspect-[16/9] w-full overflow-hidden rounded-md bg-gray-100",children:O("img",{className:"inset-0 h-full w-full object-cover",src:e?.thumbnailDesktop,alt:e?.title})}),Fe("div",{className:"mt-4 md:pr-3",children:[O("div",{className:"font-bold text-gray-900 group-hover:text-pink-500 md:text-lg md:leading-tight ",children:e?.title}),e?.description&&O("div",{className:"mt-2 line-clamp-2 text-sm text-gray-500 md:text-sm",children:Pi(e?.description??"")}),Fe("div",{className:"mt-2 flex items-center space-x-1",children:[e?.category&&e?.categoryUrl&&Fe(na,{children:[O(ce,{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&&O("span",{className:" flex-none leading-none text-gray-300 ",children:"\xB7"})]}),e?.totalViews&&O("div",{className:"flex-none text-sm text-gray-500",children:e.totalViews})]})]})]})},Qm=({dataBlog:e,setCarouselRef:o,carouselRef:t,setCurrent:a,handleOnClickItem:r})=>{let{blogList:n=[],isShowBtn:s,btnName:l,btnUrl:m="#",isNewTab:c,classNameItem:d}=e??{};return $m(()=>{!t||!a||(a(t.selectedScrollSnap()+1),t.on("select",()=>{a&&a(t.selectedScrollSnap()+1)}))},[t,a]),Fe(na,{children:[O(he,{opts:{dragFree:!1},setApi:o,className:"w-full",children:O(ye,{classNameContent:"!overflow-visible",className:"-ml-5",children:n?.map(f=>O(we,{className:"basis-11/12 pl-5 md:basis-1/2 lg:basis-4/12",children:O("div",{onClick:u=>r(u,f?.id,f?.url),className:i("group cursor-pointer",d),children:O(Um,{blog:f})},f?.id)},f?.id))})}),s&&O("div",{className:"mt-8 flex w-full items-center justify-center md:mt-10 ",children:Fe(Ee,{action:m&&m,newTab:c,variant:"outline",children:[Pi(l||"Xem th\xEAm")," "]})})]})},qm=({carouselRef:e})=>Fe(ie,{onClick:()=>e?.scrollPrev(),disabled:!e?.canScrollPrev(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[O(Gm,{className:"h-6 w-6"}),O("span",{className:"sr-only",children:"Previous slide"})]}),Xm=({carouselRef:e})=>Fe(ie,{onClick:()=>e?.scrollNext(),disabled:!e?.canScrollNext(),style:{borderRadius:"100%"},size:"sm",variant:"secondary",children:[O(jm,{className:"h-6 w-6"}),O("span",{className:"sr-only",children:"Next slide"})]}),rr=Wm(({dataHeading:e,dataBlog:o,onClickModal:t,onClickLoadMore:a})=>{let r=(c,d,f)=>{c?.preventDefault(),c?.stopPropagation(),t?t(d):window.open(f,"_blank")},[n,s]=Ni(null),[,l]=Ni(0),m=()=>n?Fe("div",{className:"ml-3 hidden items-center space-x-2 md:flex",children:[O(qm,{carouselRef:n}),O(Xm,{carouselRef:n})]}):O(na,{});return Fe(Om.Fragment,{children:[Fe("div",{className:" flex items-center justify-between",children:[e&&O(b,{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)}),O(m,{})]}),O(Qm,{dataBlog:o?.[0],onClickLoadMore:a,index:0,setCarouselRef:s,carouselRef:n,setCurrent:l,handleOnClickItem:r})]})});import{Fragment as Jm,jsx as no}from"react/jsx-runtime";var Ym=({template:e,dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})=>{switch(e){case 1:return no(ra,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});case 2:return no(rr,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n});default:return no(ra,{dataBlog:o,dataHeading:t,dataHorizontalScroll:a,onClickModal:r,onClickLoadMore:n})}},Zm=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})=>no(Jm,{children:Ym({dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:a,onClickModal:r,onClickLoadMore:n})}),Km=({dataHeading:e,dataHorizontalScroll:o,dataBlog:t=[],className:a,background:r,template:n=1,onClickModal:s,onClickLoadMore:l})=>no(B,{className:i("overflow-hidden",a),background:r,children:no(Zm,{dataHeading:e,dataHorizontalScroll:o,dataBlog:t,template:n,onClickModal:s,onClickLoadMore:l})});import*as la from"react";import{enUS as ac,vi as rc}from"date-fns/locale";import{ChevronLeft as ic,ChevronRight as nc}from"lucide-react";import sc from"lunisolar";import{DayPicker as lc}from"react-day-picker";import*as Ci from"react";import*as Ro from"@radix-ui/react-checkbox";import{CheckIcon as ec}from"@heroicons/react/16/solid";import{cva as Ri}from"class-variance-authority";import{jsx as ir}from"react/jsx-runtime";var tc=Ri("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"}}),oc=Ri("",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),sa=Ci.forwardRef(({className:e,size:o,...t},a)=>ir(Ro.Root,{ref:a,className:i(tc({size:o}),e),...t,children:ir(Ro.Indicator,{className:i("flex items-center justify-center text-current"),children:ir(ec,{className:i(oc({size:o}))})})}));sa.displayName=Ro.Root.displayName;import{Fragment as fc,jsx as Qe,jsxs as nr}from"react/jsx-runtime";var mc=({date:e,cusContent:o})=>{let t=null;return t=sc(e).lunar,nr(fc,{children:[o?o(e):e.getDate(),t&&Qe("span",{className:"luna-date absolute right-0.5 top-1 hidden text-[8px] leading-none group-[.show-luna]:block",children:t.day})]})},cc={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 dc({isShow:e,setIsShow:o,lang:t}){let a=la.useId();return Qe("div",{className:"w-full p-3 pt-0",children:nr("div",{className:"flex cursor-pointer items-center space-x-2 border-t border-gray-100 pt-3",children:[Qe(sa,{checked:e,id:`check-show-luna-${a}`,onCheckedChange:r=>{typeof r=="boolean"&&o(r)}}),Qe("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 pc=e=>e.getDay()===0||e.getDay()===6;function ma({className:e,classNames:o,showOutsideDays:t=!1,enableLunaDate:a=!1,lang:r="vi",cusContentDay:n,...s}){let[l,m]=la.useState(!0);return Qe(lc,{locale:r==="vi"?rc:ac,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(Oe({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(Oe({variant:"transparent"}),"group relative h-11 w-11 p-0 text-center text-sm font-semibold focus-within:relative focus-within:z-20 aria-selected:opacity-100 [&.day-range-end.day-range-start]:rounded-md aria-selected:[&:not(.day-range-middle)]:bg-pink-500 aria-selected:[&:not(.day-range-middle)]:text-white",a&&l&&"show-luna"),day_range_end:"day-range-end [&.day-range-end]:rounded-l-none",day_range_start:"day-range-start [&.day-range-start]:rounded-r-none",day_today:"day-today [&:not([aria-selected])]:text-pink-500 [&:not([aria-selected])]:border-gray-200",day_outside:"day-outside opacity-50 aria-selected:bg-accent/50 aria-selected:opacity-30",day_disabled:"opacity-50",day_range_middle:i("group/mid day-range-middle !rounded-none !bg-pink-50 text-gray-900 [&:nth-child(7)]:!text-red-600",r==="vi"?"[&:nth-child(6)]:!text-red-600":"[&:nth-child(1)]:!text-red-600"),day_hidden:"invisible",...o},modifiers:{weekend:pc},modifiersClassNames:{weekend:"text-red-600"},components:{IconLeft:()=>Qe(ic,{className:"h-6 w-6"}),IconRight:()=>Qe(nc,{className:"h-6 w-6"}),DayContent:c=>Qe(mc,{date:c.date,cusContent:n}),Months:({children:c})=>nr("div",{className:"w-full",children:[Qe("div",{className:i("months-wrapper flex flex-col sm:flex-row"),children:c}),a&&Qe(dc,{isShow:l,setIsShow:m,lang:r})]})},formatters:r==="vi"?cc:{},...s})}ma.displayName="Calendar";import{QuestionMarkCircleIcon as gc,XCircleIcon as uc}from"@heroicons/react/16/solid";import{format as ca}from"date-fns";import{Calendar as vc}from"lucide-react";import*as ki from"react";import*as ut from"@radix-ui/react-popover";import{jsx as Ti}from"react/jsx-runtime";var To=ut.Root,ko=ut.Trigger,so=ki.forwardRef(({className:e,align:o="center",sideOffset:t=4,...a},r)=>Ti(ut.Portal,{children:Ti(ut.Content,{ref:r,align:o,sideOffset:t,className:i("z-50 w-72 rounded-md border border-gray-200 bg-white p-4 sm:p-5 text-gray-900 shadow-small outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));so.displayName=ut.Content.displayName;import{Fragment as Si,jsx as Ne,jsxs as So}from"react/jsx-runtime";var xc=({label:e,placeholder:o="Select a value",size:t=1,message:a,isError:r,disabled:n,dateFormat:s="dd/MM/yyyy",buttonProps:l,popoverProps:m,calendarProps:c,popoverContentProps:d})=>{let f=c?.selected||null;return So("div",{children:[So(To,{...m,children:[Ne(ko,{asChild:!0,children:So(Se,{variant:"secondary",className:i("relative h-11 w-full justify-between overflow-visible text-left text-sm font-normal text-gray-900 ring-inset hover:ring-1 hover:ring-gray-400 focus:ring-1 focus:ring-gray-400 disabled:pointer-events-none disabled:border-gray-200 disabled:bg-gray-50 disabled:text-gray-500 [&[data-state=open]]:border-pink-500 [&[data-state=open]]:ring-1 [&[data-state=open]]:ring-pink-500",t===2&&"h-12 text-base",(!f||!(f instanceof Date)&&typeof f=="object"&&(!("from"in f)||!f.from))&&"text-gray-500",r&&"border-red-500 ring-1 ring-red-500"),disabled:n,...l,children:[Ne("div",{className:"line-clamp-1 flex-1",children:f instanceof Date?ca(f,s):f&&typeof f=="object"&&"from"in f&&"to"in f?Ne(Si,{children:f.from?f.to?So(Si,{children:[Ne("span",{className:"date-from",children:ca(f.from,s)})," ",Ne("span",{className:"date-separator",children:"-"}),Ne("span",{className:"date-to",children:ca(f.to,s)})]}):ca(f.from,s):o}):o}),e&&Ne("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}),Ne(vc,{className:"ml-2 h-4 w-4 flex-none text-gray-500"})]})}),Ne(so,{className:"w-auto border-none !p-0",...d,children:Ne(ma,{...c,defaultMonth:f&&typeof f=="object"&&"from"in f?f.from:f instanceof Date?f:void 0})})]}),a&&So("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[r?Ne(uc,{width:16,height:16,className:"text-red-500"}):Ne(gc,{width:16,height:16,className:"text-gray-500"}),Ne("span",{className:i(r?"text-red-500":"text-gray-500",t===2?"text-sm":"text-xs"),children:a})]})]})};import{useEffect as Nc,useState as Hi}from"react";import{QuestionMarkCircleIcon as Pc,XCircleIcon as Cc}from"@heroicons/react/16/solid";import{isValid as Rc}from"date-fns";import*as qe from"react";import{ChevronDownIcon as Di,ChevronUpIcon as bc,CheckIcon as hc,XCircleIcon as yc}from"@heroicons/react/16/solid";import{QuestionMarkCircleIcon as wc}from"@heroicons/react/24/outline";import*as C from"@radix-ui/react-select";import{jsx as W,jsxs as Do}from"react/jsx-runtime";var Mo=qe.forwardRef(({className:e,children:o,label:t,message:a,size:r,isError:n,disabled:s,...l},m)=>Do("div",{ref:m,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&&W("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}),W(C.Root,{disabled:s,...l,children:o}),a&&Do("div",{className:i("mobase-select-message flex space-x-1 items-center mt-1 text-gray-500",n&&"text-red-500"),children:[n?W(yc,{width:16,height:16}):W(wc,{width:16,height:16}),W("span",{className:i(r===2?"text-sm":"text-xs"),children:a})]})]})),Io=C.Value,lo=qe.forwardRef(({className:e,children:o,...t},a)=>Do(C.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:[W("div",{className:"line-clamp-1 text-left",children:o}),W(C.Icon,{asChild:!0,children:W(Di,{className:"h-4 w-4 text-gray-500 flex-none"})})]}));lo.displayName=C.Trigger.displayName;var sr=qe.forwardRef(({className:e,...o},t)=>W(C.ScrollUpButton,{ref:t,className:i("flex cursor-default items-center justify-center py-1",e),...o,children:W(bc,{className:"h-5 w-5"})}));sr.displayName=C.ScrollUpButton.displayName;var lr=qe.forwardRef(({className:e,...o},t)=>W(C.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:W(Di,{className:"h-5 w-5"})}));lr.displayName=C.ScrollDownButton.displayName;var mo=qe.forwardRef(({className:e,children:o,position:t="popper",...a},r)=>W(C.Portal,{children:Do(C.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:[W(sr,{}),W(C.Viewport,{className:i("p-0",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),W(lr,{})]})}));mo.displayName=C.Content.displayName;var Ao=qe.forwardRef(({className:e,children:o,...t},a)=>W(C.Group,{ref:a,className:i("relative p-1 after:w-full border-b border-gray-200 last:border-0",e),...t,children:o})),Mi=qe.forwardRef(({className:e,...o},t)=>W(C.Label,{ref:t,className:i("pr-2 pl-7 py-1.5 text-sm font-semibold z-[1]",e),...o}));Mi.displayName=C.Label.displayName;var Ct=qe.forwardRef(({className:e,children:o,...t},a)=>Do(C.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:[W("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:W(C.ItemIndicator,{children:W(hc,{className:"h-4 w-4 text-pink-500"})})}),W(C.ItemText,{children:o})]})),Ii=qe.forwardRef(({className:e,...o},t)=>W(C.Separator,{ref:t,className:i("-mx-1 my-1 h-px bg-muted",e),...o}));Ii.displayName=C.Separator.displayName;var Ai=["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"],Li=["January","February","March","April","May","June","July","August","September","October","November","December"],mr=(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}},Ei=(e,o,t,a)=>{let r=t?t.getFullYear():e,n=a?a.getFullYear():o;return Array.from({length:n-r+1},(s,l)=>n-l)};import{jsx as ee,jsxs as Xe}from"react/jsx-runtime";var Tc=({label:e,selected:o,onSelect:t,size:a=1,message:r,isError:n,disabled:s,dateFormat:l="dd/MM/yyyy",lang:m="vi",fromYear:c=1900,toYear:d=new Date().getFullYear(),disableUnselect:f=!1})=>{let[u,v]=Hi(o??null),k=Math.min(c,d),D=Math.max(c,d),M=l==="MM/yyyy",H=(N,re)=>{if(re===0){v(void 0),t?.(void 0);return}let G=u?.getFullYear()||new Date().getFullYear(),Zo=u?.getMonth()??0,Ft=u?.getDate()??1;N==="month"&&re!==null&&(Zo=re-1),N==="year"&&re!==null&&(G=re),M?Ft=1:N==="day"&&re!==null&&(Ft=re);let ei=mr(G,Zo+1).daysInMonth;Ft>ei&&(Ft=1);let ho=new Date(G,Zo,Ft);Rc(ho)&&(v(ho),t?.(ho))},[$,I]=Hi(!1),Ht=N=>{I(N)};return Nc(()=>{v(o??null)},[o]),Xe("div",{className:i("relative",s&&"cursor-no-drop"),children:[Xe("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",$&&"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&&ee("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}),Xe("div",{className:"flex h-full flex-row divide-x",children:[!M&&Xe(Mo,{value:u?u.getDate().toString().padStart(2,"0"):"",onValueChange:N=>H("day",parseInt(N,10)),onOpenChange:Ht,className:"w-[30%]",children:[ee(lo,{className:"h-full w-full rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"Ng\xE0y":"Day"})}),ee(mo,{onCloseAutoFocus:N=>N.preventDefault(),children:Xe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:mr(u?.getFullYear()||new Date().getFullYear(),(u?.getMonth()??0)+1).daysInMonth},(N,re)=>(re+1).toString().padStart(2,"0")).map(N=>ee(Ct,{value:N,children:N},N))]})})]}),Xe(Mo,{value:u?(u.getMonth()+1).toString():"",onValueChange:N=>H("month",parseInt(N,10)),onOpenChange:Ht,className:i(M?"w-1/2":"w-2/5"),children:[ee(lo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"Th\xE1ng":"Month"})}),ee(mo,{onCloseAutoFocus:N=>N.preventDefault(),children:Xe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Array.from({length:12},(N,re)=>re+1).map(N=>ee(Ct,{value:N.toString(),children:m==="vi"?Ai[N-1]:Li[N-1]},N))]})})]}),Xe(Mo,{value:u?u.getFullYear().toString():"",onValueChange:N=>H("year",parseInt(N,10)),onOpenChange:Ht,className:i(M?"w-1/2":"w-[30%]"),children:[ee(lo,{className:"h-full w-full !rounded-none border-none bg-transparent py-0 !ring-0 hover:!text-pink-500",children:ee(Io,{placeholder:m==="vi"?"N\u0103m":"Year"})}),ee(mo,{onCloseAutoFocus:N=>N.preventDefault(),children:Xe(Ao,{children:[!f&&ee(Ct,{value:"0",className:"text-gray-600",children:m==="vi"?"B\u1ECF ch\u1ECDn":"None"}),Ei(k,D).map(N=>ee(Ct,{value:N.toString(),children:N},N))]})})]})]})]}),r&&Xe("div",{className:"mobase-text-input-message mt-0.5 flex items-center space-x-1",children:[n?ee(Cc,{width:16,height:16,className:"text-red-500"}):ee(Pc,{width:16,height:16,className:"text-gray-500"}),ee("span",{className:i(n?"text-red-500":"text-gray-500",a===2?"text-sm":"text-xs"),children:r})]})]})};import*as Vt from"react";import*as F from"@radix-ui/react-alert-dialog";import{jsx as vt,jsxs as Dc}from"react/jsx-runtime";var kc=F.Root,Sc=F.Trigger,Fi=F.Portal,cr=Vt.forwardRef(({className:e,...o},t)=>vt(F.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}));cr.displayName=F.Overlay.displayName;var zi=Vt.forwardRef(({className:e,...o},t)=>Dc(Fi,{children:[vt(cr,{}),vt(F.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})]}));zi.displayName=F.Content.displayName;var _i=({className:e,...o})=>vt("div",{className:i("flex flex-col space-y-2 text-left",e),...o});_i.displayName="AlertDialogHeader";var Bi=({className:e,...o})=>vt("div",{className:i("flex flex-row justify-end space-x-4",e),...o});Bi.displayName="AlertDialogFooter";var Vi=Vt.forwardRef(({className:e,...o},t)=>vt(F.Title,{ref:t,className:i("text-lg text-gray-900 font-semibold",e),...o}));Vi.displayName=F.Title.displayName;var Oi=Vt.forwardRef(({className:e,...o},t)=>vt(F.Description,{ref:t,className:i("text-sm text-muted-foreground",e),...o}));Oi.displayName=F.Description.displayName;var Wi=Vt.forwardRef(({className:e,...o},t)=>vt(F.Action,{ref:t,className:i(Oe({variant:"primary"}),"",e),...o}));Wi.displayName=F.Action.displayName;var $i=Vt.forwardRef(({className:e,...o},t)=>vt(F.Cancel,{ref:t,className:i(Oe({variant:"secondary"}),e),...o}));$i.displayName=F.Cancel.displayName;import{memo as _c,useState as Bc}from"react";import{useEffect as Mc,useState as ji}from"react";import Ui from"html-react-parser";import{motion as Ic}from"motion/react";import*as Gi from"@radix-ui/react-aspect-ratio";var E=Gi.Root;import{Fragment as Qi,jsx as te,jsxs as Lo}from"react/jsx-runtime";var Ac=({guideGroup:e,mockup:o})=>{let[t,a]=ji(),[r,n]=ji(0),s={open:{height:"auto",opacity:1,transition:{duration:.3,ease:"easeInOut"}},closed:{height:0,opacity:0,transition:{duration:.3,ease:"easeInOut"}}};return Mc(()=>{t&&(n(t.selectedScrollSnap()+1),t.on("select",()=>{n(t.selectedScrollSnap()+1)}))},[t]),te(Qi,{children:e?.stepList&&e?.stepList?.length>0&&Lo("div",{className:"mx-auto flex max-w-3xl flex-nowrap justify-center",children:[te("div",{className:"h-auto w-64 flex-none",children:Lo("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"&&Lo(Qi,{children:[te("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),te("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),te("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:Lo(he,{setApi:a,children:[te(ye,{className:"ml-0",children:e?.stepList.map((l,m)=>te(we,{className:"pl-0",children:te(E,{ratio:o==="small"?540/960:540/1168,children:l?.image&&te("img",{src:l.image,className:"size-full object-contain",alt:l.title})})},m))}),te(ro,{className:"left-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"}),te(io,{className:"right-1 border-none bg-gray-900/30 text-white hover:bg-gray-900/40 disabled:hidden"})]})})]})}),te("div",{className:"flex flex-auto pl-12 pt-4",children:te("ul",{className:"flex flex-col",children:e?.stepList.map((l,m)=>Lo("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",m+1===r?"":"cursor-pointer"),onClick:()=>t&&t.scrollTo(m),children:[te("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",m+1===r?"bg-pink-500 text-white":"bg-pink-100 text-pink-500"),children:m+1}),te("div",{className:i(" text-sm font-medium",m+1===r?"text-pink-500":"text-gray-900"),children:Ui(l.title)}),l.content&&te(Ic.div,{initial:"closed",animate:m+1===r?"open":"closed",variants:s,style:{overflow:"hidden"},children:te("div",{className:"mt-3 text-sm text-gray-700",children:Ui(l.content)})})]},m))})})]})})},dr=Ac;import{useEffect as Lc,useRef as Ec,useState as da}from"react";import{ChevronRightIcon as qi}from"@heroicons/react/20/solid";import Hc from"embla-carousel-autoplay";import pa from"html-react-parser";import{Fragment as pr,jsx as y,jsxs as ue}from"react/jsx-runtime";var Fc=({open:e,setOpenDialog:o,dataStep:t,mockup:a})=>{let[r,n]=da(0),[s,l]=da();return Lc(()=>{s&&(n(s.selectedScrollSnap()+1),s.on("select",()=>{n(s.selectedScrollSnap()+1)}))},[s]),!t||!t?.stepList?.length?null:y(lt,{open:e,onOpenChange:o,children:ue(We,{position:"bottom",height:"full",children:[y(Ko,{children:y(Jo,{className:"line-clamp-1",children:t?.title})}),ue(Nt,{className:"grid overflow-hidden p-0 ",children:[y(he,{setApi:l,className:" grid overflow-hidden",children:y(ye,{className:"ml-0 h-full",children:t.stepList.map((m,c)=>y(we,{className:"h-full w-full pl-0",children:ue("div",{className:"flex h-full flex-col overflow-y-auto",children:[y("div",{className:" relative flex w-full flex-none justify-center bg-gray-100 p-5",children:y("div",{className:i("mx-auto",a==="small"?"w-56":"w-52"),children:ue("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"&&ue(pr,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",a==="none"?"":"rounded-[1.5rem] bg-gray-200",a==="small"?"rounded-xl":""),children:y(E,{ratio:a==="small"?540/960:540/1168,children:m?.image&&y("img",{src:m.image,className:"size-full object-contain",alt:m.title})})})]})})}),ue("div",{className:"p-5 pb-12",children:[y("div",{className:"font-semibold",children:pa(m.title)}),m?.content&&y("div",{className:"mt-3 text-sm text-gray-800",children:pa(m.content)})]})]})},c))})}),y("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((m,c)=>y("div",{className:`h-2 w-2 cursor-pointer rounded-full ${c+1===r?"bg-white":"bg-white/40"}`,onClick:()=>s&&s.scrollTo(c)},c))})]})]})})},zc=({dataGuide:e,mockup:o,isStep:t})=>{let[a,r]=da(!1),[n,s]=da(null),l=Ec(Hc({delay:3500,stopOnInteraction:!1,stopOnMouseEnter:!1})),m=c=>{s(e?.[c]||null),r(!0)};return e?.length===0?null:ue(pr,{children:[e?.length>1?y("div",{className:"-mx-5 grid grid-cols-1 md:mx-0",children:e.map((c,d)=>ue("div",{className:"relative flex cursor-pointer flex-nowrap items-center space-x-4 pl-5 ",onClick:()=>m(d),children:[y("div",{className:"borde flex h-28 w-20 justify-center overflow-hidden rounded-t-lg bg-gray-100 p-2 pb-0",children:(c?.avatar||c?.stepList?.[0]?.image)&&y("img",{src:c.avatar||c?.stepList?.[0]?.image,className:"h-full w-full object-cover object-top",alt:c.title})}),ue("div",{className:i("relative grid min-h-32 flex-1 grid-cols-1 items-center pr-8 ",d+1!=e.length&&"after:absolute after:bottom-0 after:left-0 after:right-0 after:h-px after:bg-gray-200"),children:[ue("div",{className:"py-2",children:[t&&y("span",{className:"text-sm font-medium text-pink-500",children:`B\u01B0\u1EDBc ${d+1}`}),y("div",{className:"font-semibold",children:pa(c.title)}),c?.description&&y("div",{className:"mt-1 text-sm text-gray-500",children:pa(c.description)})]}),y("div",{className:" absolute right-4 top-1/2 -translate-y-1/2 text-gray-500",children:y(qi,{className:"h-6 w-6"})})]})]},d))}):e?.[0]&&e[0].stepList?.length>0&&ue("div",{className:"mx-auto flex max-w-3xl flex-col flex-wrap justify-center gap-y-6",children:[y("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:y("div",{className:"mx-auto h-auto w-72",children:ue("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"&&ue(pr,{children:[y("div",{className:"absolute -start-2.5 top-16 h-8 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-32 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -start-2.5 top-48 h-12 w-1.5 rounded-s-lg bg-gray-800"}),y("div",{className:"absolute -end-2.5 top-40 h-16 w-1 rounded-e-lg bg-gray-800"})]}),y("div",{className:i("relative h-full w-full overflow-hidden",o==="none"?"":"rounded-[2rem] bg-gray-200",o==="small"?"rounded-xl":""),children:y(he,{plugins:[l.current],children:y(ye,{className:"ml-0",children:e[0]?.stepList.map((c,d)=>y(we,{className:"pl-0",onClick:()=>m(0),children:y(E,{ratio:o==="small"?540/960:540/1168,children:c?.image&&y("img",{src:c.image,className:"size-full object-contain",alt:c.title})})},d))})})})]})})}),y("div",{className:"flex w-full flex-none justify-center",children:ue(ce,{size:"lg",variant:"primary",onClick:()=>m(0),children:["Xem chi ti\u1EBFt h\u01B0\u1EDBng d\u1EABn ",y(qi,{className:"ml-1 h-5 w-5"})]})})]}),a&&y(Fc,{open:a,setOpenDialog:r,dataStep:n,mockup:o})]})},Xi=zc;import{Fragment as Vc,jsx as se,jsxs as Eo}from"react/jsx-runtime";var Yi=({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 se("svg",{fill:"none",viewBox:t.viewBox,xmlns:"http://www.w3.org/2000/svg",className:i("flex-0 absolute w-5 transition-all",o),children:se("path",{d:t.d,fill:"currentColor"})})},fr=_c(({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,mockup:r,isStep:n})=>{let{showGradientOverlay:s=!0,gradientOverlayColor:l,className:m}=o||{},[c,d]=Bc(t?.[0]?.title||"");return Eo(Vc,{children:[e&&se(b,{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&&Eo(eo,{children:[se(Ve,{lessThan:"md",children:se(Xi,{dataGuide:t,mockup:r,isStep:n})}),se(Ve,{greaterThan:"sm",children:t?.length>1?Eo(gt,{defaultValue:t[0]?.title,onValueChange:f=>d(f),children:[Eo(ct,{showGradientOverlay:s,gradientOverlayColor:l,className:m,children:[se(dt,{className:"mb-6 text-center",children:se($e,{className:i("mx-auto mb-0 inline-flex w-auto items-center overflow-visible",n?"space-x-10":""),children:t.map((f,u)=>{let v=u===t.length-1,k=c===f?.title||"";return Eo(Ge,{value:f.title,className:i(n?"relative h-10 border-0 bg-pink-100 px-3 first:rounded-l-md first:pl-5 last:rounded-r-md last:pl-3 last:pr-5":"",k&&n?"data-[state=active]:bg-pink-500 data-[state=active]:text-white":""),children:[n&&u!==0&&se(Yi,{direction:"left",className:i("right-full top-0",k?"text-pink-500":"text-pink-100")}),f.title,n&&!v&&se(Yi,{direction:"right",className:i("left-full top-0",k?"text-pink-500":"text-pink-100")})]},f.title+u)})})}),se(pt,{}),se(ft,{})]}),t.map((f,u)=>se(je,{value:f.title,children:se(dr,{guideGroup:f,mockup:r})},f.title+u))]}):t?.length===1&&t[0]&&se(dr,{guideGroup:t[0],mockup:r})})]}),a&&se(h,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]})});import{Fragment as Gc,jsx as Ho}from"react/jsx-runtime";var Oc=({template:e,dataHeading:o,dataGuide:t,dataHorizontalScroll:a,dataButtons:r,mockup:n,isStep:s})=>{switch(e){case 1:return Ho(fr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s});default:return Ho(fr,{dataHeading:o,dataHorizontalScroll:a,dataGuide:t,dataButtons:r,mockup:n,isStep:s})}},Wc=({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})=>Ho(Gc,{children:Oc({dataHeading:e,dataHorizontalScroll:o,dataGuide:t,dataButtons:a,template:r,mockup:n,isStep:s})}),$c=({dataHeading:e,dataGuide:o,dataHorizontalScroll:t,dataButtons:a,className:r,background:n,template:s=1,mockup:l="default",isStep:m=!1})=>Ho(B,{className:i(r),background:n,children:Ho(Wc,{dataHeading:e,template:s,dataHorizontalScroll:t,dataGuide:o,dataButtons:a,mockup:l,isStep:m})});import{ChevronLeft as jc,ChevronRight as Uc}from"lucide-react";import{Fragment as Qc,jsx as Me,jsxs as Zi}from"react/jsx-runtime";function Ki({current:e,total:o,onChange:t}){let a=r=>Me("li",{children:Me("button",{className:i(Bt({variant:e===r?"outline":"secondary",size:"sm"})),onClick:()=>t(r),children:r})},r);return Me("nav",{role:"navigation","aria-label":"pagination",className:i("mx-auto flex w-full justify-center"),children:Zi("ul",{className:i("flex flex-row flex-wrap items-center gap-2"),children:[o>1&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>e>1&&t(e-1),children:Me(jc,{className:"h-4 w-4"})})}),o<=6?Array(o).fill(0).map((r,n)=>a(n+1)):Zi(Qc,{children:[a(1),e===1&&[a(2),a(3)],e>3&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e-3),children:"..."})}),e>2&&e!==1&&e!==o&&a(e-1),e>1&&e<o&&a(e),e<o-1&&e!==1&&a(e+1),e===o&&[a(o-2),a(o-1)],e<o-2&&e!==o&&Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===1,onClick:()=>t(e+3),children:"..."}),a(o)]}),o>1&&Me("li",{children:Me("button",{className:i(Bt({variant:"secondary",size:"sm"})),disabled:e===o,onClick:()=>e<o&&t(e+1),children:Me(Uc,{className:"h-4 w-4"})})})]})})}import{forwardRef as qc}from"react";import{QuestionMarkCircleIcon as Xc}from"@heroicons/react/24/outline";import{XCircleIcon as Yc}from"@heroicons/react/24/solid";import{jsx as co,jsxs as Ji}from"react/jsx-runtime";var Zc=qc(({disabled:e,isError:o,message:t,label:a,className:r,inputClassName:n,size:s,rows:l=3,...m},c)=>Ji("div",{className:i("relative",r,o&&"mobase-text-area-error"),children:[a&&co("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}),co("textarea",{disabled:e,ref:c,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:l,...m}),t&&Ji("div",{className:"mobase-text-area-message flex space-x-1 items-center mt-0.5",children:[o?co(Yc,{width:16,height:16,className:"text-red-500"}):co(Xc,{width:16,height:16,className:"text-gray-500"}),co("span",{className:i("text-gray-500 ",s===2?"text-sm":"text-xs"),children:t})]}),co("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
|
}
|
|
@@ -117,7 +117,7 @@ import*as wo from"react";import{ChevronDownIcon as Ul}from"@heroicons/react/20/s
|
|
|
117
117
|
color: rgb(var(--mobase-red-500) / 1);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
`})]})});import{MinusCircleIcon as yd,PlusCircleIcon as wd}from"@heroicons/react/24/outline";import{forwardRef as Nd,useState as Pd}from"react";import{jsx as zo,jsxs as Rr}from"react/jsx-runtime";var mn=Nd(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[f,u]=Pd(r),v=()=>{let M=Math.min(f+a,t);u(M),n?.(M),l?.(M)},k=()=>{let M=Math.max(f-a,o);u(M),n?.(M),s?.(M)},D=M=>{let H=parseFloat(M.target.value);if(!isNaN(H)){let $=Math.max(Math.min(H,t),o);u($),n?.($)}};return Rr("div",{ref:d,className:i("flex items-center ",e),children:[Rr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:k,disabled:m||f<=o,children:[zo(yd,{className:"w-7 h-7 "}),zo("span",{className:"sr-only",children:"Decrease value"})]}),zo("input",{type:"number",value:f,onChange:D,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:m,...c}),Rr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:v,disabled:m||f>=t,children:[zo(wd,{className:"w-7 h-7 "}),zo("span",{className:"sr-only",children:"Increase value"})]})]})});mn.displayName="Stepper";import*as ze from"react";import*as j from"@radix-ui/react-navigation-menu";import{cva as Cd}from"class-variance-authority";import{ChevronDownIcon as Rd}from"@heroicons/react/16/solid";import{jsx as Ye,jsxs as Md}from"react/jsx-runtime";var cn=ze.createContext(null),Td=({value:e,children:o})=>Ye(cn.Provider,{value:e,children:o}),kd=()=>{let e=ze.useContext(cn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},xa=ze.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>Ye(Td,{value:{alignDropdown:t},children:Ye(j.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));xa.displayName=j.Root.displayName;var ba=ze.forwardRef(({className:e,...o},t)=>Ye(j.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));ba.displayName=j.List.displayName;var ha=j.Item,ya=Cd(Oe({variant:"transparent",size:"sm"})),wa=ze.forwardRef(({className:e,children:o,...t},a)=>Md(j.Trigger,{ref:a,className:i(ya(),"group px-2",e),...t,children:[o," ",Ye(Rd,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));wa.displayName=j.Trigger.displayName;var Na=ze.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=kd();return Ye(j.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Na.displayName=j.Content.displayName;var _o=j.Link,Sd=ze.forwardRef(({className:e,...o},t)=>Ye("div",{className:i("absolute left-0 top-full flex justify-center"),children:Ye(j.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Sd.displayName=j.Viewport.displayName;var Dd=ze.forwardRef(({className:e,...o},t)=>Ye(j.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:Ye("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Dd.displayName=j.Indicator.displayName;import*as pn from"react";import*as Bo from"@radix-ui/react-switch";import{jsx as dn}from"react/jsx-runtime";var fn=pn.forwardRef(({className:e,...o},t)=>dn(Bo.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:dn(Bo.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));fn.displayName=Bo.Root.displayName;import*as Wt from"react";import*as Tt from"@radix-ui/react-radio-group";import{Circle as Id}from"lucide-react";import{cva as gn}from"class-variance-authority";import{jsx as Vo}from"react/jsx-runtime";var Ad=gn("aspect-square rounded-full border-2 border-gray-300 disabled:bg-gray-100 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-400 data-[state=checked]:bg-pink-500 data-[state=checked]:border-none ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default peer",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ld=gn("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),un=Wt.createContext({size:"medium"});function Ed(){let e=Wt.useContext(un);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var vn=Wt.forwardRef(({className:e,size:o,...t},a)=>Vo(un.Provider,{value:{size:o},children:Vo(Tt.Root,{className:i("grid gap-2",e),...t,ref:a})}));vn.displayName=Tt.Root.displayName;var xn=Wt.forwardRef(({className:e,...o},t)=>{let a=Ed(),{size:r}=a??{};return Vo(Tt.Item,{ref:t,className:i(Ad({size:r}),e),...o,children:Vo(Tt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Vo(Id,{className:i(Ld({size:r}))})})})});xn.displayName=Tt.Item.displayName;import{useState as Yd}from"react";import{ArrowDownTrayIcon as Zd}from"@heroicons/react/16/solid";import Kd from"html-react-parser";import{useEffect as Vd,useState as wn}from"react";import Nn from"next/router";import{AnimatePresence as Od,domAnimation as Wd,LazyMotion as $d,motion as Tr}from"motion/react";import{useKey as Gd}from"react-use";var Pa=[.24,.25,.05,1];import{motion as Fd}from"motion/react";import{jsx as Oo,jsxs as bn}from"react/jsx-runtime";var Hd=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Oo("li",{className:"min-h-8",children:bn("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&Oo("div",{className:"w-6 h-6 shrink-0",children:Oo("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),bn("div",{className:" ",children:[Oo("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&Oo("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},hn=Hd;import{jsx as $t,jsxs as Bd}from"react/jsx-runtime";var zd={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Pa}},exit:{opacity:0,transition:{duration:.05}}},_d=({data:e})=>$t(at,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return $t(Fd.div,{variants:zd,children:o.hasDropdown?Bd(rt,{value:o.id,children:[$t(it,{className:"py-3",children:o.title}),$t(nt,{children:$t("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>$t(hn,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):$t("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),yn=_d;import{jsx as T,jsxs as de}from"react/jsx-runtime";var jd=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Ud=({data:e,className:o})=>{let[t,a]=wn(!1),[r,n]=wn(!1);Gd("Escape",()=>a(!1)),Vd(()=>{if(!t)return;let m=jd();function c(){a(!1)}function d(){a(!1),n(!0)}function f(u){let v=u.target;v.tagName==="A"&&v.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",Nn.events.on("routeChangeComplete",c),window.addEventListener("hashchange",d),window.addEventListener("click",f),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),Nn.events.off("routeChangeComplete",c),window.removeEventListener("hashchange",d),window.removeEventListener("click",f)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Pa}},exit:{opacity:0,transition:{duration:.15}}};return de("div",{className:i(o),children:[de("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[T("span",{className:"sr-only",children:"Navigation"}),T(Tr.div,{animate:t?"hidden":"visible",variants:s,children:T("svg",{className:i("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),T(Tr.div,{animate:t?"visible":"hidden",variants:s,children:T("svg",{className:i("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),T($d,{features:Wd,children:T(Od,{mode:"wait",children:t&&de(Tr.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[T(yn,{data:e}),de("div",{className:"animate-fade-in py-4 text-sm delay-300 duration-500",children:[T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),de("div",{className:"flex flex-nowrap",children:[T("div",{className:"flex-initial",children:T("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),T("div",{className:"ml-3 flex-initial",children:T("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),de("ul",{className:"mb-2 text-sm text-gray-500",children:[de("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{href:`tel:${ot.Support.Hotline}`,className:"text-gray-600",children:ot.Support.Hotline_Format})]}),de("li",{className:"mb-1",children:["Email :\xA0",T("a",{href:`mailto:${ot.Support.Email}`,className:"text-gray-600",children:ot.Support.Email})]})]}),T("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:de("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[T("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:T("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:de("g",{children:[T("title",{children:"Asset 1"}),T("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
120
|
+
`})]})});import{MinusCircleIcon as yd,PlusCircleIcon as wd}from"@heroicons/react/24/outline";import{forwardRef as Nd,useState as Pd}from"react";import{jsx as zo,jsxs as Rr}from"react/jsx-runtime";var mn=Nd(({className:e,min:o=0,max:t=10,step:a=1,defaultValue:r=0,onChangeValue:n,onDecrease:s,onIncrease:l,disabled:m=!1,...c},d)=>{let[f,u]=Pd(r),v=()=>{let M=Math.min(f+a,t);u(M),n?.(M),l?.(M)},k=()=>{let M=Math.max(f-a,o);u(M),n?.(M),s?.(M)},D=M=>{let H=parseFloat(M.target.value);if(!isNaN(H)){let $=Math.max(Math.min(H,t),o);u($),n?.($)}};return Rr("div",{ref:d,className:i("flex items-center ",e),children:[Rr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:k,disabled:m||f<=o,children:[zo(yd,{className:"w-7 h-7 "}),zo("span",{className:"sr-only",children:"Decrease value"})]}),zo("input",{type:"number",value:f,onChange:D,className:"flex text-center min-w-8 w-8 h-8 border-0 bg-white text-base text-gray-900 ring-offset-none placeholder:text-gray-500 font-medium focus-visible:outline-none focus-visible:ring-0 focus:ring-0 shadow-none focus-visible:ring-offset-0 shadow-none disabled:cursor-not-allowed disabled:opacity-50 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none",min:o,max:t,step:a,disabled:m,...c}),Rr(ie,{className:i(" text-pink-500 cursor-pointer w-9 h-9",m&&"text-gray-400 cursor-default"),variant:"transparent",onClick:v,disabled:m||f>=t,children:[zo(wd,{className:"w-7 h-7 "}),zo("span",{className:"sr-only",children:"Increase value"})]})]})});mn.displayName="Stepper";import*as ze from"react";import*as j from"@radix-ui/react-navigation-menu";import{cva as Cd}from"class-variance-authority";import{ChevronDownIcon as Rd}from"@heroicons/react/16/solid";import{jsx as Ye,jsxs as Md}from"react/jsx-runtime";var cn=ze.createContext(null),Td=({value:e,children:o})=>Ye(cn.Provider,{value:e,children:o}),kd=()=>{let e=ze.useContext(cn);if(!e)throw new Error("useNavigationMenu must be used within a NavigationMenuProvider");return e},xa=ze.forwardRef(({className:e,children:o,alignDropdown:t="left",...a},r)=>Ye(Td,{value:{alignDropdown:t},children:Ye(j.Root,{ref:r,className:i("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:o})}));xa.displayName=j.Root.displayName;var ba=ze.forwardRef(({className:e,...o},t)=>Ye(j.List,{ref:t,className:i("group flex flex-1 list-none items-center justify-center space-x-0",e),...o}));ba.displayName=j.List.displayName;var ha=j.Item,ya=Cd(Oe({variant:"transparent",size:"sm"})),wa=ze.forwardRef(({className:e,children:o,...t},a)=>Md(j.Trigger,{ref:a,className:i(ya(),"group px-2",e),...t,children:[o," ",Ye(Rd,{className:"relative ml-1 h-4 w-4 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));wa.displayName=j.Trigger.displayName;var Na=ze.forwardRef(({className:e,...o},t)=>{let{alignDropdown:a}=kd();return Ye(j.Content,{ref:t,className:i("absolute top-full mt-3 rounded-lg bg-white text-gray-900 ring-1 ring-gray-900/5 shadow-[0_10px_32px_rgba(34,42,53,0.15),0_1px_1px_rgba(0,0,0,0.05),0_4px_6px_rgba(34,42,53,0.08),0_1px_1px_rgba(34,42,53,0.1),0_24px_68px_rgba(47,48,55,0.1)]",e,"before:content-[''] before:absolute before:-top-3 before:left-0 before:right-0 before:w-full before:bg-transparent before:opacity-0 before:h-3",a!=="center"&&"data-[state=open]:animate-in data-[state=open]:fade-in data-[state=open]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out ",a==="left"&&"left-0",a==="right"&&"right-0",a==="center"&&" left-1/2 -translate-x-1/2 "),...o})});Na.displayName=j.Content.displayName;var _o=j.Link,Sd=ze.forwardRef(({className:e,...o},t)=>Ye("div",{className:i("absolute left-0 top-full flex justify-center"),children:Ye(j.Viewport,{className:i("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...o})}));Sd.displayName=j.Viewport.displayName;var Dd=ze.forwardRef(({className:e,...o},t)=>Ye(j.Indicator,{ref:t,className:i("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...o,children:Ye("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));Dd.displayName=j.Indicator.displayName;import*as pn from"react";import*as Bo from"@radix-ui/react-switch";import{jsx as dn}from"react/jsx-runtime";var fn=pn.forwardRef(({className:e,...o},t)=>dn(Bo.Root,{className:i("peer inline-flex h-5 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-default disabled:opacity-20 data-[state=checked]:bg-pink-500 data-[state=unchecked]:bg-gray-400",e),...o,ref:t,children:dn(Bo.Thumb,{className:i("pointer-events-none relative cik before:content-[''] before:absolute before:w-1.5 before:h-1.5 before:rounded-full before:bg-pink-600 before:-translate-x-1/2 before:translate-y-1 disabled:opacity-20 before:data-[state=unchecked]:bg-gray-400 block h-3.5 w-3.5 bg-white rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0.5")})}));fn.displayName=Bo.Root.displayName;import*as Wt from"react";import*as Tt from"@radix-ui/react-radio-group";import{Circle as Id}from"lucide-react";import{cva as gn}from"class-variance-authority";import{jsx as Vo}from"react/jsx-runtime";var Ad=gn("aspect-square rounded-full border-2 border-gray-300 disabled:bg-gray-100 disabled:data-[state=checked]:text-gray-100 data-[state=checked]:text-white disabled:data-[state=checked]:bg-gray-400 data-[state=checked]:bg-pink-500 data-[state=checked]:border-none ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-default peer",{variants:{size:{medium:"h-4 w-4",large:"w-5 h-5"}},defaultVariants:{size:"medium"}}),Ld=gn("fill-current text-current",{variants:{size:{medium:"h-2 w-2 ",large:"w-2.5 h-2.5"}},defaultVariants:{size:"medium"}}),un=Wt.createContext({size:"medium"});function Ed(){let e=Wt.useContext(un);if(!e)throw new Error("ChoiceboxGroup.Item must be used within a ChoiceboxGroup ");return e}var vn=Wt.forwardRef(({className:e,size:o,...t},a)=>Vo(un.Provider,{value:{size:o},children:Vo(Tt.Root,{className:i("grid gap-2",e),...t,ref:a})}));vn.displayName=Tt.Root.displayName;var xn=Wt.forwardRef(({className:e,...o},t)=>{let a=Ed(),{size:r}=a??{};return Vo(Tt.Item,{ref:t,className:i(Ad({size:r}),e),...o,children:Vo(Tt.Indicator,{className:"flex items-center justify-center w-full h-full rounded-full ",children:Vo(Id,{className:i(Ld({size:r}))})})})});xn.displayName=Tt.Item.displayName;import{useState as Yd}from"react";import{ArrowDownTrayIcon as Zd}from"@heroicons/react/16/solid";import Kd from"html-react-parser";import{useEffect as Vd,useState as wn}from"react";import Nn from"next/router";import{AnimatePresence as Od,domAnimation as Wd,LazyMotion as $d,motion as Tr}from"motion/react";import{useKey as Gd}from"react-use";var Pa=[.24,.25,.05,1];import{motion as Fd}from"motion/react";import{jsx as Oo,jsxs as bn}from"react/jsx-runtime";var Hd=({className:e="",icon:o="",title:t,children:a="",href:r="",newTab:n=!1})=>{let s=n?{target:"_blank",rel:"noopener noreferrer"}:{};return Oo("li",{className:"min-h-8",children:bn("a",{className:i(" select-none py-2 flex flex-nowrap space-x-1 items-center text",e),href:r,...s,children:[o&&Oo("div",{className:"w-6 h-6 shrink-0",children:Oo("img",{src:o,loading:"lazy",className:"w-6 h-6 object-cover",alt:t})}),bn("div",{className:" ",children:[Oo("div",{className:"text-sm text-gray-800 line-clamp-1",children:t}),a&&Oo("p",{className:"line-clamp-1 text-xs mt-0 text-gray-500",children:a})]})]})})},hn=Hd;import{jsx as $t,jsxs as Bd}from"react/jsx-runtime";var zd={hidden:{opacity:0,y:10},show:{opacity:1,y:0,transition:{duration:.25,ease:Pa}},exit:{opacity:0,transition:{duration:.05}}},_d=({data:e})=>$t(at,{type:"single",collapsible:!0,children:e.map(o=>{let t=o.newTab?{target:"_blank",rel:"noopener noreferrer"}:{};return $t(Fd.div,{variants:zd,children:o.hasDropdown?Bd(rt,{value:o.id,children:[$t(it,{className:"py-3",children:o.title}),$t(nt,{children:$t("ul",{className:i("grid grid-cols-2 gap-x-2 gap-y-1 "),children:o.subMenu&&o.subMenu.map(a=>$t(hn,{title:a.title,href:a.url,newTab:a.newTab,icon:o.dropDownCompact===!0?a.icon:"",children:o.dropDownCompact===!0?a.description:""},a.title))})})]}):$t("a",{className:"flex flex-1 items-center justify-between border-b border-gray-200 py-3 text-left font-medium text-gray-900 transition-all hover:underline",href:o.url,...t,children:o.title})},o.id)})}),yn=_d;import{jsx as T,jsxs as de}from"react/jsx-runtime";var jd=()=>typeof window<"u"&&window.pageYOffset!==void 0?window.pageYOffset:0,Ud=({data:e,className:o})=>{let[t,a]=wn(!1),[r,n]=wn(!1);Gd("Escape",()=>a(!1)),Vd(()=>{if(!t)return;let m=jd();function c(){a(!1)}function d(){a(!1),n(!0)}function f(u){let v=u.target;v.tagName==="A"&&v.getAttribute("href")?.startsWith("#")&&(a(!1),n(!0))}return document.body.style.position="fixed",document.body.style.width="100%",Nn.events.on("routeChangeComplete",c),window.addEventListener("hashchange",d),window.addEventListener("click",f),()=>{r||(document.body.style.position="",document.body.style.width="",window.scrollTo({top:m||0,behavior:"instant"})),n(!1),Nn.events.off("routeChangeComplete",c),window.removeEventListener("hashchange",d),window.removeEventListener("click",f)}},[t]);let s={visible:{opacity:1,transition:{duration:.2}},hidden:{opacity:0,transition:{duration:.2}}},l={hidden:{opacity:0},show:{opacity:1,transition:{duration:.15,staggerChildren:.05,ease:Pa}},exit:{opacity:0,transition:{duration:.15}}};return de("div",{className:i(o),children:[de("button",{type:"button",className:"flex h-10 w-10 items-center justify-center text-gray-800 hover:text-gray-700 ",onClick:()=>a(!t),children:[T("span",{className:"sr-only",children:"Navigation"}),T(Tr.div,{animate:t?"hidden":"visible",variants:s,children:T("svg",{className:i("block h-7 w-7",t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"})})}),T(Tr.div,{animate:t?"visible":"hidden",variants:s,children:T("svg",{className:i("block h-7 w-7",!t&&"hidden"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:T("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})})]}),T($d,{features:Wd,children:T(Od,{mode:"wait",children:t&&de(Tr.nav,{variants:l,initial:"hidden",animate:"show",exit:"exit",className:i(o,"fixed bottom-0 left-0 right-0 top-[calc(var(--header-height-mobase)+1px)] z-50 block w-full max-w-full overflow-y-auto bg-white px-5 pb-24 "),children:[T(yn,{data:e}),de("div",{className:"animate-fade-in mobase-header-mobile-support py-4 text-sm delay-300 duration-500",children:[T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700 ",children:"T\u1EA2I V\xC0 \u0110\u0102NG K\xDD"}),de("div",{className:"flex flex-nowrap",children:[T("div",{className:"flex-initial",children:T("a",{className:"link-white",target:"_blank",href:"https://itunes.apple.com/vn/app/id918751511?utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113855-637627235353131497.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})}),T("div",{className:"ml-3 flex-initial",children:T("a",{href:"https://play.google.com/store/apps/details?id=com.mservice.momotransfer&utm_source=website-momo&utm_medium=download&utm_campaign=momo-1dong",className:"link-white",target:"_blank",children:T("img",{src:"https://homepage.momocdn.net/img/momo-upload-api-210724113959-637627235994410679.jpg",width:130,loading:"lazy",className:"img-fluid",alt:""})})})]}),T("h4",{className:"mb-2 mt-5 text-sm font-semibold text-gray-700",children:"H\u1ED6 TR\u1EE2 KH\xC1CH H\xC0NG"}),de("ul",{className:"mb-2 text-sm text-gray-500",children:[de("li",{className:"mb-1",children:["Hotline :\xA0",T("a",{href:`tel:${ot.Support.Hotline}`,className:"text-gray-600",children:ot.Support.Hotline_Format})]}),de("li",{className:"mb-1",children:["Email :\xA0",T("a",{href:`mailto:${ot.Support.Email}`,className:"text-gray-600",children:ot.Support.Email})]})]}),T("a",{href:"https://www.momo.vn/huong-dan/huong-dan-gui-yeu-cau-ho-tro-bang-tinh-nang-tro-giup",rel:"noreferrer",target:"_blank",children:de("div",{className:"relative inline-block overflow-hidden rounded border border-gray-300 bg-white py-1 pl-10 pr-2 hover:bg-gray-100",children:[T("div",{className:"absolute left-1 top-1 ",style:{paddingTop:"3px"},children:T("svg",{className:"h-7 w-7 text-pink-700 ",fill:"currentColor",stroke:"currentColor",viewBox:"0 0 345.1 512",children:de("g",{children:[T("title",{children:"Asset 1"}),T("path",{d:`M279.4,23.7H30.8C14.5,23.7,0,38.2,0,56.3v401.8c0,16.3,14.5,30.8,30.8,30.8H76h23.8L76,449.4H34.5V96.2h243.1v152l34.5,22
|
|
121
121
|
V56.3C312,38.2,297.5,23.7,279.4,23.7z M226.8,77.1H86.1c-8.1,0-13.5-5.4-13.5-13.5c0-8.1,5.4-13.5,13.5-13.5h140.8
|
|
122
122
|
c5.4,0,10.8,5.4,10.8,13.5C237.7,71.7,232.3,77.1,226.8,77.1z`}),T("path",{d:`M189.4,200.7c-14.4,0-25.9,11.6-25.9,25.9v155.7l-17.3-34.6c-14.2-26.3-28.1-23.6-38.9-17.3c-12.5,8.3-17.2,17-8.6,38.9
|
|
123
123
|
c19.6,48.2,49.8,105.6,82.2,142.7h116.7c41-30.4,74-175,17.3-181.6c-5.2,0-13.5,0.8-17.3,4.3c0-17.3-15.1-21.7-21.6-21.6
|
|
@@ -269,7 +269,7 @@ import*as wo from"react";import{ChevronDownIcon as Ul}from"@heroicons/react/20/s
|
|
|
269
269
|
.list-features-2 .feature-item {
|
|
270
270
|
background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
|
|
271
271
|
}
|
|
272
|
-
`})]}),qs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(yt,{children:[e&&p(b,{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&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 w-full flex-1",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Xs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[x("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),x("div",{className:"lg:col-span-6",children:[o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Ys=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(yt,{children:[e&&p(b,{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&&p("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(yt,{children:[e&&p(b,{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&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,r)=>x("div",{className:"feature-item relative w-full",children:[a?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ks=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,r={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?r.special:r.default,m=n[a]??-1,c=(d,f)=>{let u=d?.btnLink?"a":"div",v=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return p("div",{className:i("basis-1/2 px-2 lg:px-5",l,f===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:x(u,{...v,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&p("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:p("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy"})}),x("div",{className:"w-full flex-1 text-center",children:[d?.name&&p("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:Q(d.name)}),d?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(d.description)})]})]})},f)};return x(yt,{children:[e&&p(b,{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&&p("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,f)=>c(d,f))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Js=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(yt,{children:[e&&p(b,{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&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[x("div",{className:"flex w-full flex-1 flex-col p-5",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&p("div",{className:"w-full",style:{aspectRatio:"347/220"},children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),el=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>x("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[p("div",{className:"flex items-center lg:col-span-6",children:x("div",{className:"w-full",children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:text-left",e?.className)}),o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((r,n)=>x("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&p("div",{className:"h-10 w-10",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&p("div",{className:"flex items-center lg:col-span-4",children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:p(E,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),tl=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>x(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),p("div",{className:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&x("div",{className:i("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((r,n)=>x("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-gray-500",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&x("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[p("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),p("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:p("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&p(h,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),ol=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=Xf(0),s=ea();return x(yt,{children:[e&&p(b,{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&&x("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[p("div",{children:o&&p("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:p(at,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((l,m)=>x(rt,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[p(it,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:Q(l.name||"")}),x(nt,{children:[l?.description&&p("div",{className:"text-muted-foreground mb-3",children:Q(l.description||"")}),l?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a&&p("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:p(E,{ratio:1,className:"w-full",children:p("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),p("div",{className:i(a?"flex":"hidden md:flex"),children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?p(E,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):p("div",{className:"hidden md:flex",children:o?.[r]?.image?p(E,{ratio:1,className:"w-full",children:p("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):p("div",{className:"h-0 w-0"})})})})]}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as eg,jsx as ge}from"react/jsx-runtime";var Zf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return ge(Br,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ge(Qs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ge(qs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ge(Xs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ge(Ys,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ge(Zs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ge(Ks,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ge(Js,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ge(el,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return ge(tl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return ge(ol,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return ge(Br,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Kf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>ge(eg,{children:Zf({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Jf=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>ge(B,{className:t,idSection:a,background:o,children:ge(Kf,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as sg}from"@heroicons/react/24/solid";import Or from"html-react-parser";import lg from"lodash";import{useEffect as tg,useState as Vr}from"react";import{animate as al,motion as og,useMotionValue as ag}from"motion/react";import rg from"react-use-measure";import{jsx as ng,jsxs as ig}from"react/jsx-runtime";function za({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=Vr(t),[d,{width:f,height:u}]=rg(),v=ag(0),[k,D]=Vr(!1),[M,H]=Vr(0);tg(()=>{let I,N=(r==="horizontal"?f:u)+o,re=n?-N/2:0,G=n?0:-N/2,Ft=Math.abs(G-re)/m;if(k){let ho=Math.abs(v.get()-G)/m;I=al(v,[v.get(),G],{ease:"linear",duration:ho,onComplete:()=>{D(!1),H(Wl=>Wl+1)}})}else I=al(v,[re,G],{ease:"linear",duration:Ft,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(re)}});return I?.stop},[M,v,m,f,u,o,k,r,n]);let $=a?{onHoverStart:()=>{D(!0),c(a)},onHoverEnd:()=>{D(!0),c(t)},onTouchStart:()=>{D(!0),c(a)},onTouchEnd:()=>{D(!0),c(t)}}:{};return ng("div",{className:i("overflow-hidden",s),children:ig(og.div,{className:i("flex w-max",l),style:{...r==="horizontal"?{x:v,paddingLeft:o}:{y:v},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:d,...$,children:[e,e]})})}var _a=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Ba=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},Va=(e,o)=>o[e%o.length];import{Fragment as il,jsx as J,jsxs as uo}from"react/jsx-runtime";var mg=({avatar:e="",name:o="",index:t=0})=>{if(lg.isEmpty(e)){let a=Ba({name:o})??"",r=Va(t,_a);return J("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",r),children:a})}return J("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:J("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},rl=({testimonial:e,className:o,index:t})=>J("div",{className:i("testimonial-item",o),children:uo("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[uo("div",{className:"flex flex-nowrap items-center space-x-2",children:[J(mg,{avatar:e.avatar,name:e.name,index:t}),uo("div",{className:"min-w-0 flex-1 pl-1",children:[J("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&J("div",{className:"text-xs font-normal text-pink-500",children:Or(e.position)})]})]}),uo("div",{className:"mt-3",children:[e?.shortTitle&&J("div",{className:"text-sm font-bold text-gray-700",children:Or(e.shortTitle)}),e?.description&&J("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Or(e.description)})]}),uo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&J("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&J("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>J(sg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Wr=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return uo(il,{children:[e&&J(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&J(il,{children:r?J("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:J(za,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>J(rl,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):J("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>J(rl,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&J(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as nl}from"@heroicons/react/24/solid";import $r from"html-react-parser";import{Fragment as pg,jsx as A,jsxs as Be}from"react/jsx-runtime";var cg=({className:e})=>A("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),dg=({testimonial:e,className:o})=>A("div",{className:i("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:Be("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&A("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:A(E,{ratio:2/3,className:"w-full",children:A("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Be("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Be("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Be("div",{className:"grow",children:[e?.name&&A("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&A("div",{className:"mt-1 text-xs font-normal text-gray-500",children:$r(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Be("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&A("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&A("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>A(nl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&A("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:A(E,{ratio:2/3,className:"w-full",children:A("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Be("div",{className:"flex flex-1 flex-col md:flex-none",children:[Be("div",{className:"flex-1",children:[Be("div",{className:"mb-1.5 flex flex-none space-x-3",children:[A(cg,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&A("div",{className:"flex-none text-base font-medium md:text-lg",children:$r(e.shortTitle)})]}),e?.description&&A("blockquote",{className:"relative flex-1 text-justify text-base",children:$r(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Be("div",{className:i("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&A("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&A("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>A(nl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),sl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Be(pg,{children:[e&&A(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&Be(he,{className:"w-full",children:[A(ye,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>A(we,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:A(dg,{testimonial:a})},r))}),(o??[]).length>1&&A(ia,{className:"mt-8"})]}),t&&A(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as fg}from"@heroicons/react/24/solid";import Gr from"html-react-parser";import gg from"lodash";import{Fragment as ml,jsx as _,jsxs as Yt}from"react/jsx-runtime";var ug=({avatar:e="",name:o="",index:t=0})=>{if(gg.isEmpty(e)){let a=Ba({name:o})??"",r=Va(t,_a);return _("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",r),children:a})}return _("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:_("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},ll=({testimonial:e,className:o,index:t})=>_("div",{className:i("testimonial-item",o),children:Yt("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[Yt("div",{className:"flex flex-nowrap items-center space-x-2",children:[_(ug,{avatar:e.avatar,name:e.name,index:t}),Yt("div",{className:"flex-1 pl-1",children:[_("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&_("div",{className:"text-xs font-normal text-pink-500",children:Gr(e.position)})]})]}),Yt("div",{className:"mt-3",children:[e?.shortTitle&&_("div",{className:"text-sm font-bold text-gray-700",children:Gr(e.shortTitle)}),e?.description&&_("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Gr(e.description)})]}),Yt("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>_(fg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),cl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>_(ml,{children:l.map((m,c)=>_(za,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,f)=>_(ll,{testimonial:d,index:f,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${f}`))},`slider-${c}`))});return Yt(ml,{children:[e&&_(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&_(eo,{children:r?Yt("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[_(Ve,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),_(Ve,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),_(Ve,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):_("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>_(ll,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&_(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),_("style",{children:`
|
|
272
|
+
`})]}),qs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(yt,{children:[e&&p(b,{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&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 w-full flex-1",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Xs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[x("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:mb-0 lg:text-left",e?.className)}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),x("div",{className:"lg:col-span-6",children:[o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Ys=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(yt,{children:[e&&p(b,{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&&p("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&p("div",{className:"h-16 w-16",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zs=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(yt,{children:[e&&p(b,{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&&p("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,r)=>x("div",{className:"feature-item relative w-full",children:[a?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ks=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,r={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},l=a>=1&&a<=4||[6,7,8].includes(a)?r.special:r.default,m=n[a]??-1,c=(d,f)=>{let u=d?.btnLink?"a":"div",v=d?.btnLink?{href:d.btnLink,target:d?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:d?.btnName}:{};return p("div",{className:i("basis-1/2 px-2 lg:px-5",l,f===m&&"md:break-after-row",d?.btnLink&&"group cursor-pointer"),children:x(u,{...v,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[d?.image&&p("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:p("img",{src:d?.image,alt:d?.name,className:"h-full w-full object-contain",loading:"lazy"})}),x("div",{className:"w-full flex-1 text-center",children:[d?.name&&p("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:Q(d.name)}),d?.description&&p("div",{className:"mt-2 text-sm text-gray-500",children:Q(d.description)})]})]})},f)};return x(yt,{children:[e&&p(b,{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&&p("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((d,f)=>c(d,f))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Js=({dataHeading:e,dataFeatures:o,dataButtons:t})=>x(yt,{children:[e&&p(b,{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&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,r)=>x("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[x("div",{className:"flex w-full flex-1 flex-col p-5",children:[x("div",{className:"flex-1",children:[a?.name&&p("h3",{className:"text-lg font-semibold",children:Q(a.name)}),a?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(a.description)})]}),a?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&p("div",{className:"w-full",style:{aspectRatio:"347/220"},children:p("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},r))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),el=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>x("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[p("div",{className:"flex items-center lg:col-span-6",children:x("div",{className:"w-full",children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:i("text-center lg:text-left",e?.className)}),o&&p("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((r,n)=>x("div",{className:"feature-item relative flex w-full flex-col",children:[r?.image&&p("div",{className:"h-10 w-10",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-base text-gray-600",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n))}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&p("div",{className:"flex items-center lg:col-span-4",children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:p(E,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),tl=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>x(yt,{children:[e&&p(b,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),p("div",{className:i("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&x("div",{className:i("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((r,n)=>x("div",{className:i("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[r?.image&&p("div",{className:"h-12 w-12",children:p("img",{src:r?.image,alt:r?.name,className:"h-full w-full object-contain"})}),x("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[x("div",{className:"flex-1",children:[r?.name&&p("h3",{className:"text-lg font-semibold",children:Q(r.name)}),r?.description&&p("div",{className:"mt-2 text-gray-500",children:Q(r.description)})]}),r?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:r.btnLink,btnName:r?.btnName,newTab:r?.newTab})})]})]},n)),t&&x("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[p("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),p("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:p("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&p(h,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),ol=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[r,n]=Xf(0),s=ea();return x(yt,{children:[e&&p(b,{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&&x("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[p("div",{children:o&&p("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:p(at,{type:"single",collapsible:s,onValueChange:l=>{let m=parseInt(l);isNaN(m)||n(m)},defaultValue:r.toString(),children:o?.map((l,m)=>x(rt,{value:m.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[p(it,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:Q(l.name||"")}),x(nt,{children:[l?.description&&p("div",{className:"text-muted-foreground mb-3",children:Q(l.description||"")}),l?.btnLink&&p("div",{className:"mt-4",children:p(Je,{btnLink:l.btnLink,btnName:l?.btnName,newTab:l?.newTab})}),l?.image&&!a&&p("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:p(E,{ratio:1,className:"w-full",children:p("img",{src:l?.image,alt:l?.name,className:"h-full w-full object-contain"})})})]})]},m))})})}),p("div",{className:i(a?"flex":"hidden md:flex"),children:p("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?p(E,{ratio:a?.ratio||1,className:"w-full",children:p("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):p("div",{className:"hidden md:flex",children:o?.[r]?.image?p(E,{ratio:1,className:"w-full",children:p("img",{src:o?.[r]?.image,alt:o?.[r]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):p("div",{className:"h-0 w-0"})})})})]}),t&&p(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{Fragment as eg,jsx as ge}from"react/jsx-runtime";var Zf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>{switch(e){case 1:return ge(Br,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return ge(Qs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return ge(qs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return ge(Xs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return ge(Ys,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return ge(Zs,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return ge(Ks,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return ge(Js,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return ge(el,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r});case 10:return ge(tl,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});case 11:return ge(ol,{dataHeading:o,dataFeatures:t,dataBanner:r,dataButtons:a});default:return ge(Br,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Kf=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})=>ge(eg,{children:Zf({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:r})}),Jf=({template:e=1,background:o,className:t,idSection:a,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})=>ge(B,{className:t,idSection:a,background:o,children:ge(Kf,{template:e,dataHeading:r,dataFeatures:n,dataButtons:s,dataBanner:l})});import{StarIcon as sg}from"@heroicons/react/24/solid";import Or from"html-react-parser";import lg from"lodash";import{useEffect as tg,useState as Vr}from"react";import{animate as al,motion as og,useMotionValue as ag}from"motion/react";import rg from"react-use-measure";import{jsx as ng,jsxs as ig}from"react/jsx-runtime";function za({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:r="horizontal",reverse:n=!1,className:s,classNameMotion:l}){let[m,c]=Vr(t),[d,{width:f,height:u}]=rg(),v=ag(0),[k,D]=Vr(!1),[M,H]=Vr(0);tg(()=>{let I,N=(r==="horizontal"?f:u)+o,re=n?-N/2:0,G=n?0:-N/2,Ft=Math.abs(G-re)/m;if(k){let ho=Math.abs(v.get()-G)/m;I=al(v,[v.get(),G],{ease:"linear",duration:ho,onComplete:()=>{D(!1),H(Wl=>Wl+1)}})}else I=al(v,[re,G],{ease:"linear",duration:Ft,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{v.set(re)}});return I?.stop},[M,v,m,f,u,o,k,r,n]);let $=a?{onHoverStart:()=>{D(!0),c(a)},onHoverEnd:()=>{D(!0),c(t)},onTouchStart:()=>{D(!0),c(a)},onTouchEnd:()=>{D(!0),c(t)}}:{};return ng("div",{className:i("overflow-hidden",s),children:ig(og.div,{className:i("flex w-max",l),style:{...r==="horizontal"?{x:v,paddingLeft:o}:{y:v},gap:`${o}px`,flexDirection:r==="horizontal"?"row":"column"},ref:d,...$,children:[e,e]})})}var _a=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Ba=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},Va=(e,o)=>o[e%o.length];import{Fragment as il,jsx as J,jsxs as uo}from"react/jsx-runtime";var mg=({avatar:e="",name:o="",index:t=0})=>{if(lg.isEmpty(e)){let a=Ba({name:o})??"",r=Va(t,_a);return J("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",r),children:a})}return J("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:J("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},rl=({testimonial:e,className:o,index:t})=>J("div",{className:i("testimonial-item",o),children:uo("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[uo("div",{className:"flex flex-nowrap items-center space-x-2",children:[J(mg,{avatar:e.avatar,name:e.name,index:t}),uo("div",{className:"min-w-0 flex-1 pl-1",children:[J("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&J("div",{className:"text-xs font-normal text-pink-500",children:Or(e.position)})]})]}),uo("div",{className:"mt-3",children:[e?.shortTitle&&J("div",{className:"text-sm font-bold text-gray-700",children:Or(e.shortTitle)}),e?.description&&J("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Or(e.description)})]}),uo("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&J("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&J("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>J(sg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),Wr=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3;return uo(il,{children:[e&&J(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&J(il,{children:r?J("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:J(za,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>J(rl,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):J("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>J(rl,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&J(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};import{StarIcon as nl}from"@heroicons/react/24/solid";import $r from"html-react-parser";import{Fragment as pg,jsx as A,jsxs as Be}from"react/jsx-runtime";var cg=({className:e})=>A("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:A("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),dg=({testimonial:e,className:o})=>A("div",{className:i("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:Be("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&A("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:A(E,{ratio:2/3,className:"w-full",children:A("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),Be("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[Be("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[Be("div",{className:"grow",children:[e?.name&&A("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&A("div",{className:"mt-1 text-xs font-normal text-gray-500",children:$r(e.position)})]}),(e?.date||Number(e?.rating)>0)&&Be("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&A("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&A("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>A(nl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&A("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:A(E,{ratio:2/3,className:"w-full",children:A("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),Be("div",{className:"flex flex-1 flex-col md:flex-none",children:[Be("div",{className:"flex-1",children:[Be("div",{className:"mb-1.5 flex flex-none space-x-3",children:[A(cg,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&A("div",{className:"flex-none text-base font-medium md:text-lg",children:$r(e.shortTitle)})]}),e?.description&&A("blockquote",{className:"relative flex-1 text-justify text-base",children:$r(e.description)})]}),(e?.date||Number(e?.rating)>0)&&Be("div",{className:i("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&A("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&A("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>A(nl,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),sl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>Be(pg,{children:[e&&A(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&Be(he,{className:"w-full",children:[A(ye,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,r)=>A(we,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:A(dg,{testimonial:a})},r))}),(o??[]).length>1&&A(ia,{className:"mt-8"})]}),t&&A(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});import{StarIcon as fg}from"@heroicons/react/24/solid";import Gr from"html-react-parser";import gg from"lodash";import{Fragment as ml,jsx as _,jsxs as Yt}from"react/jsx-runtime";var ug=({avatar:e="",name:o="",index:t=0})=>{if(gg.isEmpty(e)){let a=Ba({name:o})??"",r=Va(t,_a);return _("div",{className:i("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",r),children:a})}return _("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:_("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},ll=({testimonial:e,className:o,index:t})=>_("div",{className:i("testimonial-item",o),children:Yt("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[Yt("div",{className:"flex flex-nowrap items-center space-x-2",children:[_(ug,{avatar:e.avatar,name:e.name,index:t}),Yt("div",{className:"flex-1 pl-1",children:[_("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&_("div",{className:"text-xs font-normal text-pink-500",children:Gr(e.position)})]})]}),Yt("div",{className:"mt-3",children:[e?.shortTitle&&_("div",{className:"text-sm font-bold text-gray-700",children:Gr(e.shortTitle)}),e?.description&&_("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:Gr(e.description)})]}),Yt("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&_("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&_("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,r)=>_(fg,{className:`h-4 w-4 ${r<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},r))})]})]})}),cl=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,r=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=l=>_(ml,{children:l.map((m,c)=>_(za,{direction:"vertical",reverse:m.reverse,speed:m.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((d,f)=>_(ll,{testimonial:d,index:f,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${c}-${f}`))},`slider-${c}`))});return Yt(ml,{children:[e&&_(b,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&_(eo,{children:r?Yt("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[_(Ve,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),_(Ve,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),_(Ve,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):_("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((l,m)=>_(ll,{testimonial:l,index:m,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${m}`))})}),t&&_(h,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),_("style",{children:`
|
|
273
273
|
.mark-vertical-marquee {
|
|
274
274
|
mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
|
|
275
275
|
}
|