@momo-webplatform/mobase 0.2.85 → 0.2.87
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 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +3 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
.list-features-2 .feature-item {
|
|
270
270
|
background: linear-gradient(180deg, #FAFAFA 0%, rgba(255, 255, 255, 1) 91%);
|
|
271
271
|
}
|
|
272
|
-
`})]}),Um=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 w-full flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),qm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[(0,l.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,l.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Xm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ym=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full",children:[a?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},m=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,c=n[a]??-1,d=(p,g)=>{let u=p?.btnLink?"a":"div",b=p?.btnLink?{href:p.btnLink,target:p?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:p?.btnName}:{};return(0,l.jsx)("div",{className:r("basis-1/2 px-2 lg:px-5",m,g===c&&"md:break-after-row",p?.btnLink&&"group cursor-pointer"),children:(0,l.jsxs)(u,{...b,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[p?.image&&(0,l.jsx)("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:(0,l.jsx)("img",{src:p?.image,alt:p?.name,className:"h-full w-full object-contain",loading:"lazy"})}),(0,l.jsxs)("div",{className:"w-full flex-1 text-center",children:[p?.name&&(0,l.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:(0,oe.default)(p.name)}),p?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,oe.default)(p.description)})]})]})},g)};return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((p,g)=>d(p,g))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Km=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[(0,l.jsxs)("div",{className:"flex w-full flex-1 flex-col p-5",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&(0,l.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Jm=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[(0,l.jsx)("div",{className:"flex items-center lg:col-span-6",children:(0,l.jsxs)("div",{className:"w-full",children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[i?.image&&(0,l.jsx)("div",{className:"h-10 w-10",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&(0,l.jsx)("div",{className:"flex items-center lg:col-span-4",children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:(0,l.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),ec=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,l.jsx)("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,l.jsxs)("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>(0,l.jsxs)("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[i?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-gray-500",children:(0,oe.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&(0,l.jsxs)("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[(0,l.jsx)("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),(0,l.jsx)("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:(0,l.jsx)("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&(0,l.jsx)(P,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),tc=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=(0,$m.useState)(0),s=Ha();return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[(0,l.jsx)("div",{children:o&&(0,l.jsx)("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:(0,l.jsx)(pt,{type:"single",collapsible:s,onValueChange:m=>{let c=parseInt(m);isNaN(c)||n(c)},defaultValue:i.toString(),children:o?.map((m,c)=>(0,l.jsxs)(ft,{value:c.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[(0,l.jsx)(gt,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:(0,oe.default)(m.name||"")}),(0,l.jsxs)(ut,{children:[m?.description&&(0,l.jsx)("div",{className:"text-muted-foreground mb-3",children:(0,oe.default)(m.description||"")}),m?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:m.btnLink,btnName:m?.btnName,newTab:m?.newTab})}),m?.image&&!a&&(0,l.jsx)("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:(0,l.jsx)(U,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:m?.image,alt:m?.name,className:"h-full w-full object-contain"})})})]})]},c))})})}),(0,l.jsx)("div",{className:r(a?"flex":"hidden md:flex"),children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?(0,l.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):(0,l.jsx)("div",{className:"hidden md:flex",children:o?.[i]?.image?(0,l.jsx)(U,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):(0,l.jsx)("div",{className:"h-0 w-0"})})})})]}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var xe=require("react/jsx-runtime"),Bp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return(0,xe.jsx)(En,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,xe.jsx)(jm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,xe.jsx)(Um,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,xe.jsx)(qm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,xe.jsx)(Xm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,xe.jsx)(Ym,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,xe.jsx)(Zm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,xe.jsx)(Km,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,xe.jsx)(Jm,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return(0,xe.jsx)(ec,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return(0,xe.jsx)(tc,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return(0,xe.jsx)(En,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Op=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>(0,xe.jsx)(xe.Fragment,{children:Bp({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),oc=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})=>(0,xe.jsx)(K,{className:t,idSection:a,background:o,children:(0,xe.jsx)(Op,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})});var rc=require("@heroicons/react/24/solid"),Ii=v(require("html-react-parser"),1),nc=v(require("lodash"),1);var Xo=require("react"),Do=require("motion/react"),ac=v(require("react-use-measure"),1);var ki=require("react/jsx-runtime");function Ti({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:m}){let[c,d]=(0,Xo.useState)(t),[p,{width:g,height:u}]=(0,ac.default)(),b=(0,Do.useMotionValue)(0),[S,V]=(0,Xo.useState)(!1),[W,Z]=(0,Xo.useState)(0);(0,Xo.useEffect)(()=>{let j,k=(i==="horizontal"?g:u)+o,he=n?-k/2:0,ie=n?0:-k/2,fo=Math.abs(ie-he)/c;if(S){let Jo=Math.abs(b.get()-ie)/c;j=(0,Do.animate)(b,[b.get(),ie],{ease:"linear",duration:Jo,onComplete:()=>{V(!1),Z(pd=>pd+1)}})}else j=(0,Do.animate)(b,[he,ie],{ease:"linear",duration:fo,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{b.set(he)}});return j?.stop},[W,b,c,g,u,o,S,i,n]);let ae=a?{onHoverStart:()=>{V(!0),d(a)},onHoverEnd:()=>{V(!0),d(t)},onTouchStart:()=>{V(!0),d(a)},onTouchEnd:()=>{V(!0),d(t)}}:{};return(0,ki.jsx)("div",{className:r("overflow-hidden",s),children:(0,ki.jsxs)(Do.motion.div,{className:r("flex w-max",m),style:{...i==="horizontal"?{x:b,paddingLeft:o}:{y:b},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:p,...ae,children:[e,e]})})}var Si=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Di=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},Mi=(e,o)=>o[e%o.length];var F=require("react/jsx-runtime"),Vp=({avatar:e="",name:o="",index:t=0})=>{if(nc.default.isEmpty(e)){let a=Di({name:o})??"",i=Mi(t,Si);return(0,F.jsx)("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",i),children:a})}return(0,F.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,F.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},ic=({testimonial:e,className:o,index:t})=>(0,F.jsx)("div",{className:r("testimonial-item",o),children:(0,F.jsxs)("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[(0,F.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,F.jsx)(Vp,{avatar:e.avatar,name:e.name,index:t}),(0,F.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,F.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,F.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Ii.default)(e.position)})]})]}),(0,F.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,F.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Ii.default)(e.shortTitle)}),e?.description&&(0,F.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,Ii.default)(e.description)})]}),(0,F.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&(0,F.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,F.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,F.jsx)(rc.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),Hn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return(0,F.jsxs)(F.Fragment,{children:[e&&(0,F.jsx)(N,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&(0,F.jsx)(F.Fragment,{children:i?(0,F.jsx)("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:(0,F.jsx)(Ti,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,F.jsx)(ic,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,F.jsx)("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>(0,F.jsx)(ic,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,F.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var zn=require("@heroicons/react/24/solid"),Ai=v(require("html-react-parser"),1);var R=require("react/jsx-runtime"),Wp=({className:e})=>(0,R.jsx)("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,R.jsx)("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),Gp=({testimonial:e,className:o})=>(0,R.jsx)("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:(0,R.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,R.jsx)("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:(0,R.jsx)(U,{ratio:2/3,className:"w-full",children:(0,R.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),(0,R.jsxs)("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[(0,R.jsxs)("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[(0,R.jsxs)("div",{className:"grow",children:[e?.name&&(0,R.jsx)("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&(0,R.jsx)("div",{className:"mt-1 text-xs font-normal text-gray-500",children:(0,Ai.default)(e.position)})]}),(e?.date||Number(e?.rating)>0)&&(0,R.jsxs)("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&(0,R.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,R.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,R.jsx)(zn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&(0,R.jsx)("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:(0,R.jsx)(U,{ratio:2/3,className:"w-full",children:(0,R.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),(0,R.jsxs)("div",{className:"flex flex-1 flex-col md:flex-none",children:[(0,R.jsxs)("div",{className:"flex-1",children:[(0,R.jsxs)("div",{className:"mb-1.5 flex flex-none space-x-3",children:[(0,R.jsx)(Wp,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&(0,R.jsx)("div",{className:"flex-none text-base font-medium md:text-lg",children:(0,Ai.default)(e.shortTitle)})]}),e?.description&&(0,R.jsx)("blockquote",{className:"relative flex-1 text-justify text-base",children:(0,Ai.default)(e.description)})]}),(e?.date||Number(e?.rating)>0)&&(0,R.jsxs)("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&(0,R.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,R.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,R.jsx)(zn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),sc=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>(0,R.jsxs)(R.Fragment,{children:[e&&(0,R.jsx)(N,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&(0,R.jsxs)(Me,{className:"w-full",children:[(0,R.jsx)(Ie,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>(0,R.jsx)(Ae,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:(0,R.jsx)(Gp,{testimonial:a})},i))}),(o??[]).length>1&&(0,R.jsx)(ra,{className:"mt-8"})]}),t&&(0,R.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var mc=require("@heroicons/react/24/solid"),Li=v(require("html-react-parser"),1),cc=v(require("lodash"),1);var A=require("react/jsx-runtime"),$p=({avatar:e="",name:o="",index:t=0})=>{if(cc.default.isEmpty(e)){let a=Di({name:o})??"",i=Mi(t,Si);return(0,A.jsx)("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return(0,A.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,A.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},lc=({testimonial:e,className:o,index:t})=>(0,A.jsx)("div",{className:r("testimonial-item",o),children:(0,A.jsxs)("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[(0,A.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,A.jsx)($p,{avatar:e.avatar,name:e.name,index:t}),(0,A.jsxs)("div",{className:"flex-1 pl-1",children:[(0,A.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,A.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Li.default)(e.position)})]})]}),(0,A.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,A.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Li.default)(e.shortTitle)}),e?.description&&(0,A.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,Li.default)(e.description)})]}),(0,A.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&(0,A.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,A.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,A.jsx)(mc.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),dc=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=m=>(0,A.jsx)(A.Fragment,{children:m.map((c,d)=>(0,A.jsx)(Ti,{direction:"vertical",reverse:c.reverse,speed:c.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((p,g)=>(0,A.jsx)(lc,{testimonial:p,index:g,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${d}-${g}`))},`slider-${d}`))});return(0,A.jsxs)(A.Fragment,{children:[e&&(0,A.jsx)(N,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&(0,A.jsx)(Io,{children:i?(0,A.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,A.jsx)(dt,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,A.jsx)(dt,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,A.jsx)(dt,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):(0,A.jsx)("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((m,c)=>(0,A.jsx)(lc,{testimonial:m,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,A.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,A.jsx)("style",{children:`
|
|
272
|
+
`})]}),Um=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-3 lg:gap-12",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 w-full flex-1",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),qm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-10 lg:gap-12",children:[(0,l.jsxs)("div",{className:"lg:col-span-4 lg:flex lg:flex-col lg:justify-center",children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:mb-0 lg:text-left",e?.className)}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`hidden lg:flex ${t?.className}`,align:"left"})]}),(0,l.jsxs)("div",{className:"lg:col-span-6",children:[o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-5",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-5",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:`flex lg:hidden ${t?.className}`,align:"center"})]})]}),Xm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features mx-auto grid max-w-4xl grid-cols-1 gap-5 md:grid-cols-2",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col rounded-lg border border-gray-200 bg-white p-7",children:[a?.image&&(0,l.jsx)("div",{className:"h-16 w-16",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-4 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Ym=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3 lg:gap-x-7 lg:gap-y-10",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative w-full",children:[a?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Zm=({dataHeading:e,dataFeatures:o,dataButtons:t})=>{let a=o?.length||0,i={default:"md:basis-1/5",special:"md:basis-1/4"},n={6:3,7:4,8:4},m=a>=1&&a<=4||[6,7,8].includes(a)?i.special:i.default,c=n[a]??-1,d=(p,g)=>{let u=p?.btnLink?"a":"div",b=p?.btnLink?{href:p.btnLink,target:p?.newTab?"_blank":"_self",rel:"noopener noreferrer",title:p?.btnName}:{};return(0,l.jsx)("div",{className:r("basis-1/2 px-2 lg:px-5",m,g===c&&"md:break-after-row",p?.btnLink&&"group cursor-pointer"),children:(0,l.jsxs)(u,{...b,className:"feature-item relative flex w-full flex-col items-center gap-3",children:[p?.image&&(0,l.jsx)("div",{className:"h-16 w-16 transition-transform duration-300 group-hover:scale-105",children:(0,l.jsx)("img",{src:p?.image,alt:p?.name,className:"h-full w-full object-contain",loading:"lazy"})}),(0,l.jsxs)("div",{className:"w-full flex-1 text-center",children:[p?.name&&(0,l.jsx)("h3",{className:"text-base duration-300 group-hover:text-pink-500",children:(0,oe.default)(p.name)}),p?.description&&(0,l.jsx)("div",{className:"mt-2 text-sm text-gray-500",children:(0,oe.default)(p.description)})]})]})},g)};return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features -mx-2 flex flex-wrap justify-center gap-y-10 lg:-mx-5",children:o.map((p,g)=>d(p,g))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})},Km=({dataHeading:e,dataFeatures:o,dataButtons:t})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:grid-cols-3",children:o?.map((a,i)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col overflow-hidden rounded-xl bg-gray-100",children:[(0,l.jsxs)("div",{className:"flex w-full flex-1 flex-col p-5",children:[(0,l.jsxs)("div",{className:"flex-1",children:[a?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(a.name)}),a?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(a.description)})]}),a?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:a.btnLink,btnName:a?.btnName,newTab:a?.newTab})})]}),a?.image&&(0,l.jsx)("div",{className:"w-full",style:{aspectRatio:"347/220"},children:(0,l.jsx)("img",{src:a?.image,alt:a?.name,className:"h-full w-full object-contain"})})]},i))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]}),Jm=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-10 lg:grid-cols-10 lg:gap-14",children:[(0,l.jsx)("div",{className:"flex items-center lg:col-span-6",children:(0,l.jsxs)("div",{className:"w-full",children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"left",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:r("text-center lg:text-left",e?.className)}),o&&(0,l.jsx)("div",{className:"list-features grid grid-cols-1 gap-6 md:auto-cols-auto md:grid-cols-2",children:o?.map((i,n)=>(0,l.jsxs)("div",{className:"feature-item relative flex w-full flex-col",children:[i?.image&&(0,l.jsx)("div",{className:"h-10 w-10",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-base text-gray-600",children:(0,oe.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n))}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"left"})]})}),a&&(0,l.jsx)("div",{className:"flex items-center lg:col-span-4",children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:(0,l.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})})})})]}),ec=({dataHeading:e,dataFeatures:o,dataBanner:t,dataButtons:a})=>(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),(0,l.jsx)("div",{className:r("relative flex items-center",t&&"lg:min-h-[590px]"),children:o&&(0,l.jsxs)("div",{className:r("list-features grid grid-cols-1 gap-8 md:grid-cols-2",t?"lg:flex lg:flex-row lg:flex-wrap lg:gap-x-0 lg:gap-y-16":"mx-auto max-w-4xl"),children:[o?.map((i,n)=>(0,l.jsxs)("div",{className:r("feature-item relative w-full",t&&"lg:basis-1/2 odd:lg:pr-48 even:lg:pl-48"),children:[i?.image&&(0,l.jsx)("div",{className:"h-12 w-12",children:(0,l.jsx)("img",{src:i?.image,alt:i?.name,className:"h-full w-full object-contain"})}),(0,l.jsxs)("div",{className:"mt-3 flex w-full flex-1 flex-col",children:[(0,l.jsxs)("div",{className:"flex-1",children:[i?.name&&(0,l.jsx)("h3",{className:"text-lg font-semibold",children:(0,oe.default)(i.name)}),i?.description&&(0,l.jsx)("div",{className:"mt-2 text-gray-500",children:(0,oe.default)(i.description)})]}),i?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:i.btnLink,btnName:i?.btnName,newTab:i?.newTab})})]})]},n)),t&&(0,l.jsxs)("div",{className:"absolute left-1/2 top-1/2 mx-auto hidden w-72 -translate-x-1/2 -translate-y-1/2 lg:flex lg:items-end lg:justify-center lg:p-1.5 xl:p-2",style:{aspectRatio:"352/721"},children:[(0,l.jsx)("div",{className:"mockup-bg pointer-events-none absolute inset-0 h-full w-full select-none",style:{background:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-240809173159-638588215193226459.png) no-repeat bottom center/contain"}}),(0,l.jsx)("div",{className:"h-full w-full overflow-hidden bg-gray-100",style:{borderRadius:"30px"},children:(0,l.jsx)("img",{src:t?.src,alt:t?.alt,className:"h-full w-full object-contain"})})]})]})}),a&&(0,l.jsx)(P,{isFullInMobile:a?.isFullInMobile,buttons:a?.buttons,className:a?.className,align:"center"})]}),tc=({dataHeading:e,dataFeatures:o,dataButtons:t,dataBanner:a})=>{let[i,n]=(0,$m.useState)(0),s=Ha();return(0,l.jsxs)(l.Fragment,{children:[e&&(0,l.jsx)(N,{tagline:e?.tagline,title:e?.title,description:e?.description,tagHeading:e?.tagHeading,align:"center",colorScheme:e?.colorScheme||"pink",sizeHeading:e?.sizeHeading,className:e?.className}),o&&(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 lg:gap-14",children:[(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"list-features w-full md:border-l-2 md:border-gray-200",children:(0,l.jsx)(pt,{type:"single",collapsible:s,onValueChange:m=>{let c=parseInt(m);isNaN(c)||n(c)},defaultValue:i.toString(),children:o?.map((m,c)=>(0,l.jsxs)(ft,{value:c.toString(),className:"feature-item group relative flex w-full flex-col border-y-0 border-b last:border-b-0 md:-ml-0.5 md:border-b-0 md:border-l-2 md:border-gray-200 md:pl-5 md:[&[data-state=open]]:border-pink-500",children:[(0,l.jsx)(gt,{className:"text-left text-lg font-semibold md:group-first:pt-0 md:group-last:pb-0 [&>svg]:md:hidden",children:(0,oe.default)(m.name||"")}),(0,l.jsxs)(ut,{children:[m?.description&&(0,l.jsx)("div",{className:"text-muted-foreground mb-3",children:(0,oe.default)(m.description||"")}),m?.btnLink&&(0,l.jsx)("div",{className:"mt-4",children:(0,l.jsx)(It,{btnLink:m.btnLink,btnName:m?.btnName,newTab:m?.newTab})}),m?.image&&!a?.src&&(0,l.jsx)("div",{className:"mx-auto mt-5 w-full max-w-xs md:hidden",children:(0,l.jsx)(U,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:m?.image,alt:m?.name,className:"h-full w-full object-contain"})})})]})]},c))})})}),(0,l.jsx)("div",{className:r(a?.src?"flex":"hidden md:flex"),children:(0,l.jsx)("div",{className:"mx-auto w-full max-w-xs md:max-w-md",children:a?.src?(0,l.jsx)(U,{ratio:a?.ratio||1,className:"w-full",children:(0,l.jsx)("img",{src:a?.src,alt:a?.alt,loading:"lazy",className:"h-full w-full object-cover"})}):(0,l.jsx)("div",{className:"hidden md:flex",children:o?.[i]?.image?(0,l.jsx)(U,{ratio:1,className:"w-full",children:(0,l.jsx)("img",{src:o?.[i]?.image,alt:o?.[i]?.name,className:"h-full w-full object-contain",loading:"lazy"})}):(0,l.jsx)("div",{className:"h-0 w-0"})})})})]}),t&&(0,l.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var xe=require("react/jsx-runtime"),Bp=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>{switch(e){case 1:return(0,xe.jsx)(En,{dataHeading:o,dataFeatures:t,dataButtons:a});case 2:return(0,xe.jsx)(jm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 3:return(0,xe.jsx)(Um,{dataHeading:o,dataFeatures:t,dataButtons:a});case 4:return(0,xe.jsx)(qm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 5:return(0,xe.jsx)(Xm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 6:return(0,xe.jsx)(Ym,{dataHeading:o,dataFeatures:t,dataButtons:a});case 7:return(0,xe.jsx)(Zm,{dataHeading:o,dataFeatures:t,dataButtons:a});case 8:return(0,xe.jsx)(Km,{dataHeading:o,dataFeatures:t,dataButtons:a});case 9:return(0,xe.jsx)(Jm,{dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i});case 10:return(0,xe.jsx)(ec,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});case 11:return(0,xe.jsx)(tc,{dataHeading:o,dataFeatures:t,dataBanner:i,dataButtons:a});default:return(0,xe.jsx)(En,{dataHeading:o,dataFeatures:t,dataButtons:a})}},Op=({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})=>(0,xe.jsx)(xe.Fragment,{children:Bp({template:e,dataHeading:o,dataFeatures:t,dataButtons:a,dataBanner:i})}),oc=({template:e=1,background:o,className:t,idSection:a,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})=>(0,xe.jsx)(K,{className:t,idSection:a,background:o,children:(0,xe.jsx)(Op,{template:e,dataHeading:i,dataFeatures:n,dataButtons:s,dataBanner:m})});var rc=require("@heroicons/react/24/solid"),Ii=v(require("html-react-parser"),1),nc=v(require("lodash"),1);var Xo=require("react"),Do=require("motion/react"),ac=v(require("react-use-measure"),1);var ki=require("react/jsx-runtime");function Ti({children:e,gap:o=16,speed:t=100,speedOnHover:a,direction:i="horizontal",reverse:n=!1,className:s,classNameMotion:m}){let[c,d]=(0,Xo.useState)(t),[p,{width:g,height:u}]=(0,ac.default)(),b=(0,Do.useMotionValue)(0),[S,V]=(0,Xo.useState)(!1),[W,Z]=(0,Xo.useState)(0);(0,Xo.useEffect)(()=>{let j,k=(i==="horizontal"?g:u)+o,he=n?-k/2:0,ie=n?0:-k/2,fo=Math.abs(ie-he)/c;if(S){let Jo=Math.abs(b.get()-ie)/c;j=(0,Do.animate)(b,[b.get(),ie],{ease:"linear",duration:Jo,onComplete:()=>{V(!1),Z(pd=>pd+1)}})}else j=(0,Do.animate)(b,[he,ie],{ease:"linear",duration:fo,repeat:1/0,repeatType:"loop",repeatDelay:0,onRepeat:()=>{b.set(he)}});return j?.stop},[W,b,c,g,u,o,S,i,n]);let ae=a?{onHoverStart:()=>{V(!0),d(a)},onHoverEnd:()=>{V(!0),d(t)},onTouchStart:()=>{V(!0),d(a)},onTouchEnd:()=>{V(!0),d(t)}}:{};return(0,ki.jsx)("div",{className:r("overflow-hidden",s),children:(0,ki.jsxs)(Do.motion.div,{className:r("flex w-max",m),style:{...i==="horizontal"?{x:b,paddingLeft:o}:{y:b},gap:`${o}px`,flexDirection:i==="horizontal"?"row":"column"},ref:p,...ae,children:[e,e]})})}var Si=["bg-red-500","bg-blue-500","bg-green-500","bg-yellow-500","bg-purple-500","bg-pink-500","bg-orange-500","bg-green-700"],Di=({name:e=""})=>{let o=e?.trim()?.split(/\s+/)||[];return o?.length>1?`${o?.[o?.length-2]?.[0]?.toUpperCase()}${o?.[o?.length-1]?.[0]?.toUpperCase()}`:o?.[0]?.[0]?.toUpperCase()||""},Mi=(e,o)=>o[e%o.length];var F=require("react/jsx-runtime"),Vp=({avatar:e="",name:o="",index:t=0})=>{if(nc.default.isEmpty(e)){let a=Di({name:o})??"",i=Mi(t,Si);return(0,F.jsx)("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white ",i),children:a})}return(0,F.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,F.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},ic=({testimonial:e,className:o,index:t})=>(0,F.jsx)("div",{className:r("testimonial-item",o),children:(0,F.jsxs)("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[(0,F.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,F.jsx)(Vp,{avatar:e.avatar,name:e.name,index:t}),(0,F.jsxs)("div",{className:"min-w-0 flex-1 pl-1",children:[(0,F.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,F.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Ii.default)(e.position)})]})]}),(0,F.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,F.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Ii.default)(e.shortTitle)}),e?.description&&(0,F.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,Ii.default)(e.description)})]}),(0,F.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&(0,F.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,F.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,F.jsx)(rc.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),Hn=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3;return(0,F.jsxs)(F.Fragment,{children:[e&&(0,F.jsx)(N,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&(0,F.jsx)(F.Fragment,{children:i?(0,F.jsx)("div",{className:"relative -mx-5 overflow-hidden md:mx-0",children:(0,F.jsx)(Ti,{direction:"horizontal",speed:70,speedOnHover:.05,gap:24,className:"pb-1.5",children:o?.map((n,s)=>(0,F.jsx)(ic,{testimonial:n,index:s,className:"mb-2 w-64 md:w-96"},`testimonial-${s}`))})}):(0,F.jsx)("div",{className:"-mx-5 flex snap-x snap-mandatory flex-nowrap gap-y-6 space-x-5 overflow-hidden overflow-x-auto px-5 pb-3 md:-mx-3 md:w-full md:flex-wrap md:justify-center md:space-x-0",children:o?.map((n,s)=>(0,F.jsx)(ic,{testimonial:n,index:s,className:"shrink-0 basis-10/12 snap-center md:px-3 lg:basis-1/3"},`testimonial-${s}`))})}),t&&(0,F.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]})};var zn=require("@heroicons/react/24/solid"),Ai=v(require("html-react-parser"),1);var R=require("react/jsx-runtime"),Wp=({className:e})=>(0,R.jsx)("svg",{width:"42",height:"36",className:e,viewBox:"0 0 42 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,R.jsx)("path",{d:"M23.8986 36V25.1748C23.8986 18.3776 25.3972 12.8392 28.3944 8.55944C31.4704 4.1958 36.0056 1.34266 42 0V8.18182C39.3183 8.85315 37.1887 10.1119 35.6113 11.958C34.0338 13.7203 33.0084 15.8601 32.5352 18.3776H39.6338V36H23.8986ZM0 36V25.1748C0 18.3776 1.49859 12.8392 4.49577 8.55944C7.57183 4.1958 12.0676 1.34266 17.9831 0V8.18182C15.3014 8.85315 13.1718 10.1119 11.5944 11.958C10.0169 13.7203 8.99155 15.8601 8.51831 18.3776H15.6169V36H0Z",fill:"#F95396"})}),Gp=({testimonial:e,className:o})=>(0,R.jsx)("div",{className:r("testimonial-item shadow-small relative h-full w-full cursor-grab select-none overflow-hidden rounded-xl bg-white p-5 md:p-10",o),children:(0,R.jsxs)("div",{className:"flex h-full md:space-x-10",children:[e?.avatar&&(0,R.jsx)("div",{className:"relative hidden w-52 flex-none grow-0 items-start md:flex",children:(0,R.jsx)(U,{ratio:2/3,className:"w-full",children:(0,R.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})}),(0,R.jsxs)("div",{className:"flex grow flex-col justify-between gap-y-5 md:gap-y-6",children:[(0,R.jsxs)("div",{className:"flex flex-none items-end space-x-2 md:order-2 lg:space-x-6",children:[(0,R.jsxs)("div",{className:"grow",children:[e?.name&&(0,R.jsx)("div",{className:"text-sm font-bold md:text-base",children:e.name}),e?.position&&(0,R.jsx)("div",{className:"mt-1 text-xs font-normal text-gray-500",children:(0,Ai.default)(e.position)})]}),(e?.date||Number(e?.rating)>0)&&(0,R.jsxs)("div",{className:"hidden flex-none grow-0 text-right md:grid md:grid-cols-1 md:gap-1",children:[e?.date&&(0,R.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,R.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,R.jsx)(zn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]}),e?.avatar&&(0,R.jsx)("div",{className:"relative w-28 flex-none grow-0 md:hidden",children:(0,R.jsx)(U,{ratio:2/3,className:"w-full",children:(0,R.jsx)("img",{src:e?.avatar,alt:e?.name,loading:"lazy",className:"h-full w-full object-contain"})})})]}),(0,R.jsxs)("div",{className:"flex flex-1 flex-col md:flex-none",children:[(0,R.jsxs)("div",{className:"flex-1",children:[(0,R.jsxs)("div",{className:"mb-1.5 flex flex-none space-x-3",children:[(0,R.jsx)(Wp,{className:"h-5 w-5 md:h-6 md:w-6"}),e?.shortTitle&&(0,R.jsx)("div",{className:"flex-none text-base font-medium md:text-lg",children:(0,Ai.default)(e.shortTitle)})]}),e?.description&&(0,R.jsx)("blockquote",{className:"relative flex-1 text-justify text-base",children:(0,Ai.default)(e.description)})]}),(e?.date||Number(e?.rating)>0)&&(0,R.jsxs)("div",{className:r("mt-2 flex flex-none items-center space-x-2 md:hidden",e?.date&&e?.rating?"justify-between":"justify-end"),children:[e?.date&&(0,R.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,R.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(t,a)=>(0,R.jsx)(zn.StarIcon,{className:`h-4 w-4 flex-none ${a<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},a))})]})]})]})]})}),sc=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>(0,R.jsxs)(R.Fragment,{children:[e&&(0,R.jsx)(N,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),(o??[]).length>0&&(0,R.jsxs)(Me,{className:"w-full",children:[(0,R.jsx)(Ie,{classNameContent:"!overflow-visible",className:"-ml-5 md:-ml-6",children:o?.map((a,i)=>(0,R.jsx)(Ae,{className:"basis-full pl-5 md:pl-6 lg:basis-10/12 xl:basis-9/12",children:(0,R.jsx)(Gp,{testimonial:a})},i))}),(o??[]).length>1&&(0,R.jsx)(ra,{className:"mt-8"})]}),t&&(0,R.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"})]});var mc=require("@heroicons/react/24/solid"),Li=v(require("html-react-parser"),1),cc=v(require("lodash"),1);var A=require("react/jsx-runtime"),$p=({avatar:e="",name:o="",index:t=0})=>{if(cc.default.isEmpty(e)){let a=Di({name:o})??"",i=Mi(t,Si);return(0,A.jsx)("div",{className:r("flex h-9 w-9 shrink-0 items-center justify-center overflow-hidden rounded-full font-semibold text-white",i),children:a})}return(0,A.jsx)("div",{className:"h-9 w-9 shrink-0 overflow-hidden rounded-full",children:(0,A.jsx)("img",{src:e,loading:"lazy",className:"h-full w-full object-cover",alt:o})})},lc=({testimonial:e,className:o,index:t})=>(0,A.jsx)("div",{className:r("testimonial-item",o),children:(0,A.jsxs)("div",{className:"relative h-full rounded-xl border border-gray-100 bg-white px-5 pb-10 pt-4 shadow-md sm:px-5",children:[(0,A.jsxs)("div",{className:"flex flex-nowrap items-center space-x-2",children:[(0,A.jsx)($p,{avatar:e.avatar,name:e.name,index:t}),(0,A.jsxs)("div",{className:"flex-1 pl-1",children:[(0,A.jsx)("div",{className:"overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-gray-700",children:e.name}),e?.position&&(0,A.jsx)("div",{className:"text-xs font-normal text-pink-500",children:(0,Li.default)(e.position)})]})]}),(0,A.jsxs)("div",{className:"mt-3",children:[e?.shortTitle&&(0,A.jsx)("div",{className:"text-sm font-bold text-gray-700",children:(0,Li.default)(e.shortTitle)}),e?.description&&(0,A.jsx)("div",{className:"relative mt-1 max-h-full overflow-hidden text-sm leading-normal text-gray-600",children:(0,Li.default)(e.description)})]}),(0,A.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 flex items-center justify-between space-x-2 p-4 md:px-5",children:[e?.date&&(0,A.jsx)("div",{className:"text-xs text-gray-400",children:e.date}),Number(e?.rating)>0&&(0,A.jsx)("div",{className:"flex flex-nowrap space-x-0.5 text-sm",children:Array.from({length:5},(a,i)=>(0,A.jsx)(mc.StarIcon,{className:`h-4 w-4 ${i<Number(e.rating)?"text-yellow-400":"text-gray-200"}`},i))})]})]})}),dc=({dataHeading:e,dataTestimonials:o,dataButtons:t})=>{let a=o?.length??0,i=a>3,n={lg:[{reverse:!1,speed:40},{reverse:!0,speed:50},{reverse:!1,speed:30}],md:[{reverse:!1,speed:30},{reverse:!0,speed:40}],sm:[{reverse:!1,speed:30}]},s=m=>(0,A.jsx)(A.Fragment,{children:m.map((c,d)=>(0,A.jsx)(Ti,{direction:"vertical",reverse:c.reverse,speed:c.speed,speedOnHover:.05,gap:24,className:"px-0.5",classNameMotion:"w-full",children:o?.map((p,g)=>(0,A.jsx)(lc,{testimonial:p,index:g,className:"px-0 first:pl-0 last:pr-0"},`testimonial-${d}-${g}`))},`slider-${d}`))});return(0,A.jsxs)(A.Fragment,{children:[e&&(0,A.jsx)(N,{tagline:e.tagline,title:e.title,description:e.description,tagHeading:e.tagHeading,align:"center",colorScheme:e.colorScheme||"pink",sizeHeading:e.sizeHeading,className:e.className}),a>0&&(0,A.jsx)(Io,{children:i?(0,A.jsxs)("div",{className:"mark-vertical-marquee relative h-[600px] overflow-hidden",children:[(0,A.jsx)(dt,{greaterThanOrEqual:"lg",className:"grid w-full grid-cols-3 gap-6",children:s(n.lg)}),(0,A.jsx)(dt,{between:["sm","lg"],className:"grid w-full grid-cols-2 gap-6",children:s(n.md)}),(0,A.jsx)(dt,{between:["xs","sm"],className:"grid w-full grid-cols-1 gap-6",children:s(n.sm)})]}):(0,A.jsx)("div",{className:"flex w-full flex-wrap justify-center gap-y-6 md:-mx-3",children:o?.map((m,c)=>(0,A.jsx)(lc,{testimonial:m,index:c,className:"basis-full md:basis-1/2 md:px-3 lg:basis-1/3"},`testimonial-${c}`))})}),t&&(0,A.jsx)(P,{isFullInMobile:t?.isFullInMobile,buttons:t?.buttons,className:t?.className,align:"center"}),(0,A.jsx)("style",{children:`
|
|
273
273
|
.mark-vertical-marquee {
|
|
274
274
|
mask: linear-gradient(transparent, black 16px, black calc(100% - 16px), transparent);
|
|
275
275
|
}
|
|
@@ -304,12 +304,11 @@
|
|
|
304
304
|
.animate-caret-blink {
|
|
305
305
|
animation: caret-blink 1.25s ease-out infinite;
|
|
306
306
|
}
|
|
307
|
-
`})]})]})});os.displayName="InputOTPSlot";var as=Mo.forwardRef(({...e},o)=>(0,Lt.jsx)("div",{ref:o,role:"separator",...e,children:(0,Lt.jsx)(_c.Minus,{className:"text-gray-400"})}));as.displayName="InputOTPSeparator";var co=require("react"),Gc=require("html-to-image");var Zo=v(require("react"),1),Oc=require("lucide-react"),Vc=require("qrcode.react");async function Bc(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let n=i.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=i.toDataURL("image/png");o(s)},a.onerror=function(i){t(i)},a.src=e})}var le=require("react/jsx-runtime"),gf=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>(0,le.jsxs)("div",{className:`grid grid-cols-1 gap-y-6 py-8 text-sm ${t}`,children:[(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 1 :"}),(0,le.jsx)("div",{className:"mt-1 text-gray-500",children:e?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 2 :"}),(0,le.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 3 :"}),(0,le.jsxs)("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c ",o||"Truy c\u1EADp ngay"]})]})]})]}),$i=gf;var Yt=require("react/jsx-runtime"),uf=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:i,onOpenChange:n})=>(0,Yt.jsxs)($e,{open:i,onOpenChange:n,children:[(0,Yt.jsx)(Lo,{asChild:!0,children:e}),(0,Yt.jsxs)(ze,{position:"bottom",children:[(0,Yt.jsx)(go,{children:(0,Yt.jsx)(uo,{children:o})}),(0,Yt.jsx)(tt,{children:(0,Yt.jsx)($i,{isQrForAll:t,shortTitle:a})})]})]}),Qi=uf;var h=require("react/jsx-runtime"),vf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"qrcode__scan__container relative h-
|
|
307
|
+
`})]})]})});os.displayName="InputOTPSlot";var as=Mo.forwardRef(({...e},o)=>(0,Lt.jsx)("div",{ref:o,role:"separator",...e,children:(0,Lt.jsx)(_c.Minus,{className:"text-gray-400"})}));as.displayName="InputOTPSeparator";var co=require("react"),Gc=require("html-to-image");var Zo=v(require("react"),1),Oc=require("lucide-react"),Vc=require("qrcode.react");async function Bc(e){return new Promise((o,t)=>{let a=new window.Image;a.crossOrigin="Anonymous",a.onload=function(){let i=document.createElement("canvas");i.width=a.width,i.height=a.height;let n=i.getContext("2d");if(!n){t("Kh\xF4ng l\u1EA5y \u0111\u01B0\u1EE3c context c\u1EE7a canvas");return}n.drawImage(a,0,0);let s=i.toDataURL("image/png");o(s)},a.onerror=function(i){t(i)},a.src=e})}var le=require("react/jsx-runtime"),gf=({isQrForAll:e=!1,shortTitle:o,className:t=""})=>(0,le.jsxs)("div",{className:`grid grid-cols-1 gap-y-6 py-8 text-sm ${t}`,children:[(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091602-637359309621891617.png",alt:"Step 1"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 1 :"}),(0,le.jsx)("div",{className:"mt-1 text-gray-500",children:e?"M\u1EDF app MoMo ho\u1EB7c \u1EE9ng d\u1EE5ng ng\xE2n h\xE0ng/v\xED \u0111i\u1EC7n t\u1EED ch\u1EA5p nh\u1EADn m\xE3 v\u1EA1ch t\u1EEB QR \u0110a N\u0103ng":"M\u1EDF \u1EE9ng d\u1EE5ng camera m\u1EB7c \u0111\u1ECBnh ho\u1EB7c \u1EE9ng d\u1EE5ng h\u1ED7 tr\u1EE3 QR code c\u1EE7a b\u1EA1n"})]})]}),(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917091443-637359308837905996.png",alt:"Step 2"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 2 :"}),(0,le.jsx)("div",{className:"mt-1 text-gray-500",children:"Qu\xE9t m\xE3 QR Code theo h\xECnh b\xEAn ph\u1EA3i"})]})]}),(0,le.jsxs)("div",{className:"flex flex-nowrap items-center",children:[(0,le.jsx)("div",{className:"relative aspect-[2/3] flex-none overflow-hidden",children:(0,le.jsx)("img",{className:"w-20",loading:"lazy",src:"https://homepage.momocdn.net/images/s/momo-upload-api-200917090146-637359301062519803.png",alt:"Step 3"})}),(0,le.jsxs)("div",{className:"flex-1 pl-4",children:[(0,le.jsx)("div",{className:"step font-semibold text-gray-800",children:"B\u01B0\u1EDBc 3 :"}),(0,le.jsxs)("div",{className:"mt-1 text-gray-500",children:["B\u1EA5m v\xE0o th\xF4ng b\xE1o hi\u1EC3n th\u1ECB \u0111\u1EC3 t\u1EA3i \u1EE9ng d\u1EE5ng ho\u1EB7c ",o||"Truy c\u1EADp ngay"]})]})]})]}),$i=gf;var Yt=require("react/jsx-runtime"),uf=({children:e,title:o="H\u01B0\u1EDBng d\u1EABn thanh to\xE1n",isQrForAll:t=!1,shortTitle:a,open:i,onOpenChange:n})=>(0,Yt.jsxs)($e,{open:i,onOpenChange:n,children:[(0,Yt.jsx)(Lo,{asChild:!0,children:e}),(0,Yt.jsxs)(ze,{position:"bottom",children:[(0,Yt.jsx)(go,{children:(0,Yt.jsx)(uo,{children:o})}),(0,Yt.jsx)(tt,{children:(0,Yt.jsx)($i,{isQrForAll:t,shortTitle:a})})]})]}),Qi=uf;var h=require("react/jsx-runtime"),vf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,dateExpired:i,priceOrder:n})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"qrcode__scan__container relative h-auto select-none md:h-[280px]",children:[(0,h.jsxs)("div",{className:"flex justify-center items-center space-x-2 w-full md:hidden",children:[(0,h.jsx)("img",{src:"https://homepage.momocdn.net/pwa/images/logoMomox50.png",width:28,height:28,alt:"QR all",className:"select-none shrink-0"}),(0,h.jsx)("div",{className:"h-[14px] w-[2px] shrink-0 select-none bg-gray-200"}),(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250711102030-638878260300337990.png",width:56,height:56,alt:"QR all",className:"select-none shrink-0"})]}),(0,h.jsxs)("div",{className:"qrcode__scan",children:[(0,h.jsx)("div",{className:"invisible opacity-0 select-none qrcode__gradient md:visible md:opacity-100",children:(0,h.jsx)("img",{alt:"step 1",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/qrcode-gradient.png"})}),(0,h.jsx)("div",{className:"invisible opacity-0 select-none qrcode__border md:visible md:opacity-100",children:(0,h.jsx)("img",{alt:"step 2",className:"img-fluid",src:"https://homepage.momocdn.net/jk/momo2020/img/qrcode/border-qrcode.svg"})}),(0,h.jsx)("div",{className:"p-4 select-none qrcode__image",children:e?(0,h.jsx)("img",{alt:"step 3",className:"mx-auto img-fluid d-block",src:e,loading:"lazy",onLoad:a}):Zo.default.Children.map(o,s=>(Zo.default.isValidElement(s),s))})]}),n&&(0,h.jsxs)("div",{className:"text-sm text-gray-900 md:hidden",children:[(0,h.jsx)("div",{className:"",children:"Th\xF4ng tin thanh to\xE1n"}),(0,h.jsx)("div",{className:"text-base font-bold text-gray-900",children:n})]})]}),i&&(0,h.jsxs)("div",{className:r("mt-3 text-sm text-gray-900 md:hidden"),children:[(0,h.jsx)("span",{children:"M\xE3 h\u1EBFt h\u1EA1n v\xE0o: "}),(0,h.jsx)("span",{className:"font-semibold",children:i})]}),(0,h.jsx)("div",{className:"hidden mt-4 text-sm font-semibold text-gray-900 md:block",children:t?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("img",{src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250710143736-638877550567721225.png",width:220,height:28,className:"mx-auto",alt:"QR all"}),(0,h.jsx)("div",{className:"mt-3",children:"Nh\u1EADn ti\u1EC1n t\u1EEB m\u1ECDi V\xED \u0110i\u1EC7n T\u1EED v\xE0 Ng\xE2n H\xE0ng"})]}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"inline mr-1 w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,h.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v1m6 11h2m-6 0h-2v4m0-11v3m0 0h.01M12 12h4.01M16 20h4M4 12h4m12 0h.01M5 8h2a1 1 0 001-1V5a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1zm12 0h2a1 1 0 001-1V5a1 1 0 00-1-1h-2a1 1 0 00-1 1v2a1 1 0 001 1zM5 20h2a1 1 0 001-1v-2a1 1 0 00-1-1H5a1 1 0 00-1 1v2a1 1 0 001 1z"})}),"S\u1EED d\u1EE5ng App MoMo ho\u1EB7c",(0,h.jsx)("br",{}),"\u1EE9ng d\u1EE5ng Camera h\u1ED7 tr\u1EE3 QR code \u0111\u1EC3 qu\xE9t m\xE3."]})})]}),xf=({img:e="",children:o,isQrForAll:t,onQrLoaded:a,qrImageBase64:i,dateExpired:n,priceOrder:s})=>(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:r(i&&"opacity-0 md:opacity-100"),children:(0,h.jsx)(vf,{dateExpired:n,priceOrder:s,img:e,isQrForAll:t,onQrLoaded:a,children:o})}),(0,h.jsx)("style",{children:`
|
|
308
308
|
.qrcode__scan__container {
|
|
309
309
|
padding: 15px;
|
|
310
310
|
background-color: white;
|
|
311
311
|
width: 280px;
|
|
312
|
-
height: 280px;
|
|
313
312
|
border-radius: 20px;
|
|
314
313
|
border-radius: 15px;
|
|
315
314
|
margin: 0 auto;
|
|
@@ -373,7 +372,7 @@
|
|
|
373
372
|
transform: translate3d(0, 30%, 0);
|
|
374
373
|
}
|
|
375
374
|
}
|
|
376
|
-
`})]}),hf=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:i,loading:n,onQrLoaded:s,qrImageBase64:m,qrCodeRef:c,dateExpired:d,priceOrder:p,titleOrder:g})=>{let[u,b]=Zo.default.useState(void 0);return Zo.default.useEffect(()=>{a?Bc(a).then(b).catch(()=>b(void 0)):b(void 0)},[a]),Zo.default.useEffect(()=>{t&&u&&typeof s=="function"&&!o&&s()},[t,u,s,o]),(0,h.jsxs)("div",{className:"relative z-[1]
|
|
375
|
+
`})]}),hf=({isQrForAll:e,qrImage:o,qrLink:t,logoQr:a="https://homepage.momocdn.net/img/momo-upload-api-231211171009-638379114093056419.png",expired:i,loading:n,onQrLoaded:s,qrImageBase64:m,qrCodeRef:c,dateExpired:d,priceOrder:p,titleOrder:g})=>{let[u,b]=Zo.default.useState(void 0);return Zo.default.useEffect(()=>{a?Bc(a).then(b).catch(()=>b(void 0)):b(void 0)},[a]),Zo.default.useEffect(()=>{t&&u&&typeof s=="function"&&!o&&s()},[t,u,s,o]),(0,h.jsxs)("div",{className:"relative z-[1] rounded-lg",children:[(0,h.jsxs)("div",{className:"relative z-[1] bg-pink-50 bg-repeat-y px-5 py-6 text-center",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right bottom",backgroundSize:"auto 30px"},ref:c,children:[(0,h.jsx)("h2",{className:r(" mb-2 hidden select-all text-base font-bold text-gray-900 md:block",m&&"opacity-0 md:opacity-100"),children:g||"Qu\xE9t QR \u0111\u1EC3 thanh to\xE1n"}),m&&(0,h.jsx)("div",{className:"absolute top-0 right-0 left-0 visible z-20 opacity-100 cursor-pointer md:select-none md:opacity-0",children:(0,h.jsx)("img",{src:m,alt:"QR Code"})}),(0,h.jsx)("div",{className:"flex relative flex-col items-center select-none",children:(0,h.jsxs)(xf,{qrImageBase64:m,img:o,isQrForAll:e,onQrLoaded:s,dateExpired:d,priceOrder:p,children:[t&&u&&!o&&(0,h.jsx)(Vc.QRCodeSVG,{value:t,size:215,imageSettings:{src:`${u}`,height:40,width:40,excavate:!0},level:"H"}),i&&(0,h.jsx)("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:(0,h.jsx)("span",{className:"text-lg font-bold text-pink-600",children:"QR Code \u0111\xE3 h\u1EBFt h\u1EA1n"})}),n&&(0,h.jsx)("div",{className:"flex absolute inset-0 z-10 flex-col justify-center items-center size-full bg-white/90",children:(0,h.jsx)(hi,{size:"lg"})})]})})]}),(0,h.jsxs)("div",{className:"relative z-10 px-5 pb-5 text-center bg-pink-50 bg-repeat-y select-none qrcode__guide",style:{backgroundImage:"url(https://homepage.momocdn.net/img/momo-amazone-s3-api-250714113823-638880899039487085.png) ",backgroundPosition:"right top",backgroundSize:"auto 30px"},children:[(0,h.jsxs)("div",{className:r("qrcode__guide absolute -top-24 right-20 z-50 cursor-pointer select-none md:opacity-0",m&&"opacity-100 md:opacity-0"),children:[(0,h.jsxs)("div",{className:"rounded-full ripple size-5",children:[(0,h.jsx)("div",{className:"ripple-1"}),(0,h.jsx)("div",{className:"ripple-2"})]}),(0,h.jsx)("img",{className:"object-contain relative z-10 -mt-1 drop-shadow-lg select-none qrcode__hand size-7",src:"https://homepage.momocdn.net/img/momo-amazone-s3-api-250714154408-638881046482607959.png",alt:"Momo Hand Icon"})]}),(0,h.jsx)("div",{className:"mb-2 text-sm font-semibold text-pink-600 md:hidden",children:"Nh\u1EA5n gi\u1EEF QR \u0111\u1EC3 l\u01B0u"}),(0,h.jsx)(Qi,{isQrForAll:!0,shortTitle:"Thanh to\xE1n ngay",title:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n QR",children:(0,h.jsxs)("div",{className:"flex justify-center items-center space-x-1 text-sm font-semibold text-center text-pink-600 cursor-pointer",children:[(0,h.jsx)("div",{children:"H\u01B0\u1EDBng d\u1EABn thanh to\xE1n"})," ",(0,h.jsx)(Oc.LucideMessageCircleQuestion,{className:"size-4"})," "]})}),(0,h.jsx)("style",{children:`
|
|
377
376
|
.ripple {
|
|
378
377
|
box-sizing: border-box;
|
|
379
378
|
position: relative;
|