(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return s(50205)}])},23335:function(e,t,s){"use strict";s.d(t,{E:function(){return a}});var i=s(85893),r=s(55625),n=s(86654);function a(e){let{preview:t,loading:s,draftMode:a,className:l,children:o,loginButtonLabel:c,showLinks:d,footer:p,navbarVariant:x}=e;return(0,i.jsxs)("div",{className:"min-h-screen p-0 m-0",children:[a&&(0,i.jsx)("div",{className:"w-full bg-primaryBlue text-center border border-secondaryBlue",children:"Draft Mode"}),(0,i.jsx)(n.w,{loginButtonLabel:c,showLinks:d,variant:x}),(0,i.jsx)(r.Z,{preview:t,loading:s}),(0,i.jsx)("main",{className:l,children:o}),p]})}},20402:function(e,t,s){"use strict";s.d(t,{Z:function(){return l},a:function(){return a}});var i=s(85893),r=s(80224),n=s(14640);function a(e){let{posts:t,size:s="sm"}=e;return(0,i.jsx)("div",{className:"flex gap-5 px-8 pb-1 scrollable-container justify-start laptop:justify-center",children:t.map((e,t)=>(0,i.jsx)(r.Z,{post:e,size:s},e._id))})}function l(e){let{posts:t}=e,s=(0,n.useTranslations)("Post");return(0,i.jsxs)("section",{className:"flex flex-col py-[50px] bg-[#FFF5E1] space-y-[50px]",children:[(0,i.jsx)("h2",{className:"text-[#1F1C1E] text-[38px]/[48px] text-center",children:s("recommended-posts")}),(0,i.jsx)(a,{posts:t})]})}},80224:function(e,t,s){"use strict";s.d(t,{Z:function(){return p}});var i=s(85893),r=s(92863),n=s(9521),a=s(14640),l=s(25675),o=s.n(l),c=s(41664),d=s.n(c);function p(e){var t,s,l,c;let{post:p,size:x="lg"}=e,u=(null!==(c=null===(t=p.category)||void 0===t?void 0:t.type)&&void 0!==c?c:"")==="image"&&(null===(l=p.coverImage)||void 0===l?void 0:null===(s=l.asset)||void 0===s?void 0:s._ref),m=(0,a.useTranslations)("PostGroup");return(0,i.jsx)(d(),{href:"/blog/".concat(p.category.slug,"/").concat(p.slug),className:"group hover:no-underline active:scale-95 transition-all duration-200","aria-label":p.title,children:(0,i.jsxs)("div",{className:(0,n.cn)("relative shadow-postPreview hover:shadow-md flex flex-col gap-0 bg-white w-[329px]","lg"===x&&"h-[350px]","md"===x&&"h-[318px]","sm"===x&&"h-[268px]"),children:[(0,i.jsx)("div",{className:"h-[118px] relative",children:(0,i.jsx)(o(),{src:u?(0,r.i)(p.coverImage).height(118).width(329).url():"https://storage.googleapis.com/dondo-ai-assets/blog/post-preview-header.png",alt:p.title||"Post cover image",fill:!0,sizes:"329px",className:"object-cover",draggable:!1})}),(0,i.jsx)("div",{className:(0,n.cn)("h-[232px] p-5 overflow-hidden","sm"===x?"h-[150px]":"h-[200px]"),children:(0,i.jsxs)("div",{className:"h-full flex flex-col",children:[(0,i.jsxs)("div",{className:"grow",children:[(0,i.jsx)("div",{className:"text-sm leading-[28px] tracking-[0.2px] text-[#676E7A] uppercase truncate",children:p.category.title}),"lg"===x&&(0,i.jsx)("h3",{className:"text-[28px] leading-8 font-bold line-clamp-4 text-pretty",children:p.title}),"md"===x&&(0,i.jsx)("h4",{className:"text-[22px]/[32px] font-bold line-clamp-3 text-pretty",children:p.title}),"sm"===x&&(0,i.jsx)("h6",{className:"text-[18px]/[23px] font-semibold line-clamp-2 text-pretty",children:p.title})]}),(0,i.jsx)("div",{className:"text-[#FE8057] group-hover:underline",children:m("read-more")})]})})]})})}},76865:function(e,t,s){"use strict";s.d(t,{E:function(){return d},P:function(){return c}});var i=s(85893),r=s(9521),n=s(14640),a=s(41664),l=s.n(a),o=s(11163);function c(e){let{variant:t="light",alternativeDescription:s=!1}=e,a=(0,n.useTranslations)("BannerFreeTrial");return(0,i.jsxs)("div",{className:(0,r.cn)("w-full rounded-[40px] gap-y-[50px] flex flex-col justify-center items-center","light"===t?"bg-[#5AADFF] h-[386px] p-10":"bg-[#004386] p-[50px]"),children:[(0,i.jsxs)("div",{className:"text-center space-y-5 text-white",children:[(0,i.jsx)("h2",{className:"text-[38px]/[48px] font-semibold",children:a("title")}),(0,i.jsx)("div",{className:"text-[18px]/[28px]",children:a(s?"alternative-description":"description")})]}),(0,i.jsx)(d,{variant:"light"===t?"dark":"light",children:a("button")})]})}function d(e){let{variant:t="light",children:s,href:n,className:a,size:c="md",mobileCentered:d=!1}=e,{locale:p,defaultLocale:x}=(0,o.useRouter)();return(0,i.jsx)("div",{className:(0,r.cn)(d&&"w-fit mx-auto md:w-auto md:mx-0"),children:(0,i.jsx)(l(),{className:"hover:no-underline",href:n||(p===x?"/ai/login":"/ai/".concat(p,"/login")),locale:!1,children:(0,i.jsx)("button",{className:(0,r.cn)(" text-white text-base leading-[26px] font-semibold px-[68px] py-[17px] rounded-[5px] active:scale-90  transition-all duration-100 select-none hover:no-underline","dark"===t?"bg-[#004386] hover:bg-[#004386]/80 active:bg-[#004386]/90":"bg-[#5AADFF] hover:bg-[#5AADFF]/80 active:bg-[#5AADFF]/90","lg"===c&&"min-w-[290px] bricolage-grotesque",a),children:s})})})}},32581:function(e,t,s){"use strict";s.d(t,{p:function(){return d}});var i=s(85893),r=s(14640),n=s(25675),a=s.n(n),l=s(67294),o=s(76865),c=s(61193);function d(e){let{variant:t,options:s}=e,n=(0,r.useTranslations)(t),[d,p]=(0,l.useState)(1);return(0,i.jsxs)("div",{className:"".concat(s?"space-y-2 md:space-y-[80px]":"space-y-[80px]"," text-[#334155]"),children:[(0,i.jsxs)("div",{className:"space-y-[30px] text-center",children:[(0,i.jsx)("h2",{className:"text-[38px]/[48px] font-semibold max-w-[548px] mx-auto text-[#343A40]",children:n("title")}),(0,i.jsx)("p",{className:"text-[18px]/[28px] font-medium max-w-[803px] mx-auto",children:n("description")}),s&&(0,i.jsx)("div",{className:"flex flex-wrap justify-center gap-x-10 text-[#0F172A] font-semibold border-b border-[#F1F5F9]",children:Array.from({length:s}).map((e,t)=>(0,i.jsx)("button",{"data-selected":d===t+1,className:"pt-[14px] pb-[16px] grow md:grow-0 px-[10px] border-b-2 border-transparent data-[selected=true]:border-[#FE5E30] select-none transition-colors duration-300",onClick:()=>p(t+1),children:n("explainer-".concat(t+1,".option-name"))},t))})]}),(0,i.jsxs)("div",{className:"flex flex-col md:flex-row gap-10 items-center",children:[(0,i.jsx)("div",{className:"bg-[#FFF5E1] rounded-[20px] w-full aspect-[2] md:w-[561px] md:aspect-[561/557] overflow-hidden relative",children:(0,i.jsx)(a(),{src:["https://storage.googleapis.com/dondo-ai-assets/landing/explainer/all-platforms.webp","https://storage.googleapis.com/dondo-ai-assets/landing/explainer/ecommerce-stores.webp","https://storage.googleapis.com/dondo-ai-assets/landing/explainer/all-platforms.webp","https://storage.googleapis.com/dondo-ai-assets/landing/explainer/all-platforms.webp"][d-1],alt:"Dondo",fill:!0,sizes:"561px",quality:100,draggable:!1,className:"object-contain md:object-cover bg-center",priority:!0})}),(0,i.jsxs)("div",{className:"max-w-auto md:max-w-[690px] grow space-y-[50px]",children:[(0,i.jsxs)("p",{children:[n("explainer-".concat(d,".title-line-1")),n("explainer-".concat(d,".title-line-2"))&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("br",{}),n("explainer-".concat(d,".title-line-2"))]})]}),(0,i.jsx)("ul",{className:"space-y-[20px] [&_li]:flex [&_li]:items-start [&_li]:gap-x-[10px] [&_li]:text-pretty",children:[1,2,3,4].map(e=>{let t=n("explainer-".concat(d,".bullet-points.bullet-").concat(e));return t?(0,i.jsxs)("li",{children:[(0,i.jsx)(c.P.RoundedCheckmark,{}),t]},e):null})}),(0,i.jsx)(o.E,{variant:"dark",size:"lg",mobileCentered:!0,children:n("button")})]})]})]})}},55539:function(e,t,s){"use strict";s.d(t,{V:function(){return r}});var i=s(85893);function r(e){let{className:t}=e;return(0,i.jsx)("svg",{width:"64",height:"27",viewBox:"0 0 64 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,i.jsx)("path",{d:"M0.0371822 14.0022C-0.0677504 16.5686 0.037187 18.1925 0.509383 18.2606C0.98158 18.3288 1.5587 16.8185 2.24076 14.3316C2.57655 13.0938 2.92282 11.6062 3.29009 9.93688C3.43699 9.17605 3.5944 8.3698 3.75179 7.52947C4.2539 8.81585 4.86144 10.051 5.56713 11.2201C7.79735 14.8737 10.6757 18.0118 14.0352 20.4523C19.5243 24.5091 25.9838 26.7538 32.6292 26.9137C39.8683 27.0618 46.9806 24.8457 53.0386 20.5545C58.6 16.5573 62.2622 11.3109 63.4584 7.0071C63.9726 5.33313 64.1234 3.55344 63.8991 1.80618C63.6997 0.579766 63.3849 -0.0220921 63.28 0.000619399C62.9547 0.000619399 63.6053 2.71464 62.0313 6.51881C60.4573 10.323 56.7847 14.8993 51.5381 18.2947C45.8722 21.9001 39.3637 23.6551 32.7971 23.348C29.6699 23.1847 26.5826 22.5188 23.6365 21.3721C17.6278 19.0187 12.3814 14.8246 8.53671 9.30096C7.66577 8.02912 7.04667 7.02982 6.56399 6.23492L7.90712 6.48474L12.2513 7.3932C14.7382 7.90421 16.3437 8.15403 16.5011 7.74523C16.6585 7.33642 15.3363 6.35983 12.9439 5.26968C11.5329 4.64842 10.0893 4.11757 8.62066 3.67988C7.7812 3.43006 6.89977 3.19158 5.98685 2.98718C5.50416 2.87362 5.08444 2.78277 4.53879 2.68057C4.09506 2.54467 3.62916 2.51592 3.17404 2.59638C2.71891 2.67683 2.28568 2.86452 1.90498 3.14616C1.5536 3.43661 1.28753 3.83105 1.13898 4.28173C1.06709 4.50777 1.01096 4.73932 0.971081 4.97443L0.897628 5.50815L0.70875 6.89355C0.593324 7.81336 0.488396 8.69911 0.393957 9.53943C0.215572 11.2201 0.0896484 12.7417 0.0371822 14.0817",fill:"#FE5E30"})})}},67395:function(e,t,s){"use strict";s.d(t,{o:function(){return r}});var i=s(85893);function r(e){let{className:t}=e;return(0,i.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,i.jsx)("g",{id:"Arrows/Right",children:(0,i.jsx)("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M10.2442 4.41058C10.5697 4.08514 11.0973 4.08514 11.4228 4.41058L16.4227 9.41058C16.7482 9.73602 16.7482 10.2637 16.4227 10.5891L11.4228 15.5891C11.0973 15.9145 10.5697 15.9145 10.2442 15.5891C9.9188 15.2637 9.9188 14.736 10.2442 14.4106L13.8216 10.8332H4.16683C3.70659 10.8332 3.3335 10.4601 3.3335 9.99984C3.3335 9.5396 3.70659 9.1665 4.16683 9.1665H13.8216L10.2442 5.58909C9.9188 5.26366 9.9188 4.73602 10.2442 4.41058Z"})})})}},97147:function(e,t,s){"use strict";s.d(t,{h:function(){return x}});var i=s(85893),r=s(9521),n=s(14640),a=s(11163),l=s(67294),o=s(76865),c=s(55539),d=s(49697),p=s(17337);function x(e){let{pricing:t}=e,s=(0,n.useTranslations)("MiniPricingDisplay"),{locale:x}=(0,a.useRouter)(),[u,m]=(0,l.useState)("year");return(0,i.jsxs)("div",{className:"space-y-10",children:[(0,i.jsx)("h2",{className:"text-center text-[38px]/[48px] font-semibold",children:s("title")}),(0,i.jsxs)("div",{className:"w-full flex flex-col sm:flex-row justify-center items-center",children:[(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(p.m,{period:u,setPeriod:m}),(0,i.jsx)("div",{className:(0,r.cn)("absolute hidden sm:block top-1/2 transform -translate-y-1/2","es"===x?"-right-48":"-right-40"),children:(0,i.jsxs)("div",{className:"relative text-[22px]/[32px]",children:[s("save-desktop",{discount:20}),(0,i.jsx)(c.V,{className:"absolute -bottom-8 -left-14"})]})})]}),(0,i.jsx)("div",{className:"block sm:hidden mt-3 text-lg text-center bg-secondaryBlue px-3 py-2 rounded-[20px]",children:s("save-mobile",{discount:20})})]}),(0,i.jsx)("div",{className:"grid grid-cols-1 laptop:grid-cols-2 desktop:grid-cols-3 gap-x-8 gap-y-8 w-full pb-10 pt-9",children:t.slice(0,3).map((e,t)=>(0,i.jsx)(d.w,{pricing:e,period:u,variant:"homepage"},t))}),(0,i.jsxs)("div",{className:"flex flex-col gap-y-5 items-center",children:[(0,i.jsx)("h3",{className:"text-[28px]/[32px] font-bold",children:s("need-a-different-plan")}),(0,i.jsx)(o.E,{variant:"dark",href:"/pricing",size:"lg",children:s("button-explore-plans")})]})]})}},1042:function(e,t,s){"use strict";s.d(t,{x:function(){return o}});var i=s(85893),r=s(14640),n=s(25675),a=s.n(n),l=s(61193);function o(e){let{variant:t,withShopify:s}=e,n=(0,r.useTranslations)("ReviewTestimonial");return(0,i.jsx)("div",{className:"bg-[#EBF5FF] rounded-[30px] p-[30px]",children:(0,i.jsxs)("div",{className:"min-h-[274px] flex flex-col items-center justify-center gap-y-[30px]",children:["stars"===t&&(0,i.jsxs)("div",{className:"flex items-center gap-x-[10px]",children:[s&&(0,i.jsx)(a(),{src:"https://storage.googleapis.com/dondo-media-production/DONDO_AI/shopify-logo.webp",alt:"shopify",width:141,height:40,draggable:!1}),(0,i.jsxs)("div",{className:"flex items-center [&_svg]:text-primaryGold [&_svg]:size-5",children:[[void 0,void 0,void 0,void 0,void 0].map((e,t)=>(0,i.jsx)(l.P.star,{},t)),(0,i.jsx)("p",{className:"ml-[10px] font-semibold text-primaryBlack text-[22px] leading-[34px]",children:"5.0"})]})]}),"image"===t&&(0,i.jsx)(a(),{src:"https://storage.googleapis.com/dondo-media-production/LANDING_PAGE/SOLUTIONS_PAGE/shopify.jpg",width:100,height:100,className:"rounded-full",alt:"Shopify",draggable:!1}),(0,i.jsxs)("div",{className:"text-center space-y-4",children:[(0,i.jsx)("p",{className:"text-[27px]/[38px] font-medium max-w-3xl",children:n("title")}),(0,i.jsx)("p",{className:"text-[18px]/[28px]",children:n("author")})]})]})})}},50205:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return ed},default:function(){return ep}});var i=s(85893),r=s(67603),n=s(1617),a=s(76865),l=s(32581),o=s(7396),c=s(92694),d=s(11163),p=s(98388),x=s(57777),u=s(78720);function m(e){let{className:t}=e,s=(0,n.useTranslations)("WhyDondo"),{locale:r,defaultLocale:a}=(0,d.useRouter)();return(0,i.jsx)("section",{className:(0,p.m6)(t),children:(0,i.jsxs)("div",{className:"grid lg:grid-cols-2 max-w-[1440px] mx-auto py-[50px] px-5 md:py-16 md:px-12 gap-14 items-center",children:[(0,i.jsx)("div",{className:"w-full aspect-video rounded-[10px] overflow-hidden",children:(0,i.jsxs)("video",{autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full h-full object-cover",children:[(0,i.jsx)("source",{src:"https://storage.googleapis.com/dondo-media-production/DONDO_AI/video.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]})}),(0,i.jsxs)("div",{className:"flex flex-col gap-[30px] text-primaryBlack",children:[(0,i.jsx)(x.QE,{children:s("title")}),(0,i.jsx)(x.dk,{children:s("description")}),(0,i.jsx)(u.h,{href:r===a?"/ai/login":"/ai/".concat(r,"/login"),locale:!1,className:"mt-0 text-white border-white border block w-full h-14 lg:w-64",children:(0,i.jsx)("span",{className:"[&_strong]:font-medium",dangerouslySetInnerHTML:{__html:s.raw("button")}})})]})]})})}var h=s(86645),f=s(62182),g=s(60246),v=s(61193);let j=e=>{let{label:t,icon:s}=e;return(0,i.jsxs)("div",{className:"px-5 py-3 border border-[#5AADFF] rounded-3xl bg-white flex items-center gap-2 text-primaryBlack text-[14px] md:text-[16px] md:leading-6 font-medium shrink-0 [&_svg]:w-[57px] [&_svg]:h-[32px]",children:[s,t]})};function y(e){let{className:t}=e,s=(0,n.useTranslations)("HowItWorks"),{locale:r,defaultLocale:a}=(0,d.useRouter)();return(0,i.jsx)("section",{className:(0,p.m6)(t),children:(0,i.jsx)("div",{className:"mx-auto max-w-[1440px] py-[50px] px-5 md:py-16 md:px-12",children:(0,i.jsxs)("div",{className:"space-y-[30px] text-primaryBlack",children:[(0,i.jsx)(x.QE,{centered:!0,children:s("title")}),(0,i.jsxs)("div",{className:"w-full flex flex-wrap gap-[10px] justify-center items-center",children:[(0,i.jsx)(j,{label:s("badge-1"),icon:(0,i.jsx)(v.P.figure1,{})}),(0,i.jsx)(j,{label:s("badge-2"),icon:(0,i.jsx)(v.P.figure2,{})}),(0,i.jsx)(j,{label:s("badge-3"),icon:(0,i.jsx)(v.P.figure3,{})})]}),(0,i.jsx)("p",{className:"mx-auto max-w-[820px] text-[16px]/[26px] text-center",children:s("description")})]})})})}var b=s(31493);function w(e){let{headerContent:t}=e,{locale:s,defaultLocale:r}=(0,d.useRouter)(),n=s===r?"/ai/login":"/ai/".concat(s,"/login"),a=e=>{let{title:s}=e;return(0,i.jsxs)(i.Fragment,{children:[s?(0,i.jsx)("h1",{className:"text-balance",children:t.description}):(0,i.jsx)("h2",{className:"text-balance",children:t.description}),(null==t?void 0:t.ctaText)&&(0,i.jsx)(u.h,{href:n,locale:!1,children:t.ctaText})]})};return(0,i.jsx)("header",{className:"bg-primaryBlue min-h-[364px] w-full",children:(0,i.jsx)("div",{className:"dondo-container mx-auto py-12 px-6 laptop:py-20 laptop:px-18",children:(null==t?void 0:t.title)?(0,i.jsxs)("div",{className:"grid grid-flow-row grid-row-2 laptop:grid-flow-col laptop:grid-cols-2 gap-6",children:[(0,i.jsx)("div",{className:"text-[40px]/[38px] laptop:text-[64px]/[64px] text-pretty flex flex-col laptop:justify-center laptop:h-full",children:(0,i.jsx)("h1",{children:t.title})}),(0,i.jsx)("div",{className:"text-[24px]/[26px] laptop:text-[32px]/[34px] text-pretty",children:(0,i.jsx)(a,{})})]}):(0,i.jsx)("div",{className:"text-[40px]/[38px] laptop:text-[64px]/[64px] text-pretty flex flex-col laptop:justify-center laptop:h-full",children:(0,i.jsx)(a,{title:!0})})})})}var N=s(23335),C=s(14640),E=s(20402);function L(e){let{posts:t}=e,s=(0,C.useTranslations)("DondoResources");return(0,i.jsxs)("div",{className:"flex flex-col space-y-[50px] py-[100px] bg-gradient-to-b from-[#EBF5FF] to-white to-50% mt-[100px]",children:[(0,i.jsx)("h2",{className:"text-[#1F1C1E] text-[38px]/[48px] text-center font-semibold",children:s("title")}),(0,i.jsxs)("p",{className:"text-center text-[#334155] text-[18px]/[28px] font-medium",children:[s("description-line-1"),(0,i.jsx)("br",{}),s("description-line-2"),(0,i.jsx)("br",{}),s("description-line-3")]}),(0,i.jsx)(E.a,{posts:t,size:"md"}),(0,i.jsx)("div",{className:"text-center",children:(0,i.jsx)(a.E,{href:"/blog",variant:"dark",size:"lg",children:s("button")})})]})}var k=s(40168),S=s(25675),F=s.n(S),_=s(41664),O=s.n(_);let B=e=>{let{title:t,description:s,button:r,href:n="/",children:a}=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"bg-white w-[290px] h-[157px] shrink-0 rounded-[14px] select-none overflow-hidden",children:a}),(0,i.jsx)("h3",{className:"text-[#1F1C1E] text-[24px]/[28px] md:text-[28px]/[32px] font-bold line-clamp-2",children:t}),(0,i.jsx)("p",{className:"text-[#1F1C1E] text-[14px]/[22px] md:text-[18px]/[28px] font-medium grow",children:s}),(0,i.jsx)(O(),{href:n,className:"text-[#0F172A] bg-white py-[17px] w-full text-[16px]/[26px] font-semibold rounded-[5px] bricolage-grotesque text-center",children:r})]})};function A(){let e=(0,C.useTranslations)("FeatureCards"),{locale:t,defaultLocale:s}=(0,d.useRouter)(),r=t===s?"/ai/login":"/ai/".concat(t,"/login");return(0,i.jsxs)("div",{className:"-mx-6 px-6 pb-2 desktop:mx-0 desktop:pb-0 desktop:px-0 scrollable-container flex gap-5 h-[493px] [&>div]:bg-[#EBF5FF] [&>div]:rounded-[24px] [&>div]:w-[329px] [&>div]:shrink-0 [&>div]:space-y-5 [&>div]:p-5 [&>div]:flex [&>div]:flex-col [&>div]:justify-center",children:[(0,i.jsx)(B,{title:e("card-1.title"),description:e("card-1.description"),button:e("card-1.button"),href:r,children:(0,i.jsxs)("div",{className:"py-[25px] px-[15px] flex gap-x-[11px] items-center",children:[(0,i.jsx)(F(),{src:"https://storage.googleapis.com/dondo-ai-assets/landing/feature-cards/graph.png",alt:e("card-1.title"),width:142,height:106,quality:100,className:"w-[142px] h-[106px]",draggable:!1}),(0,i.jsxs)("div",{className:"text-center w-[110px]",children:[(0,i.jsx)("p",{className:"text-[34px] leading-[38px] font-semibold",children:"56"}),(0,i.jsx)("p",{className:"text-[12px]/[15px]",children:e("card-1.image-label")})]})]})}),(0,i.jsx)(B,{title:e("card-2.title"),description:e("card-2.description"),button:e("card-2.button"),href:r,children:(0,i.jsxs)("div",{className:"flex h-full justify-center items-center relative",children:[(0,i.jsx)(F(),{src:"https://storage.googleapis.com/dondo-ai-assets/landing/feature-cards/visibility.png",alt:e("card-2.title"),width:257,height:136,quality:100,className:"w-[257px] h-[136px]",draggable:!1}),(0,i.jsxs)("p",{className:"absolute bottom-[14px] right-[26px] text-[#9CFBA2] z-10 text-[12px]/[18.52px] flex items-center gap-x-[4px]",children:[e("card-2.image-label"),(0,i.jsx)(k.s7Z,{className:"size-5"})]})]})}),(0,i.jsx)(B,{title:e("card-3.title"),description:e("card-3.description"),button:e("card-3.button"),href:r,children:(0,i.jsxs)("div",{className:"flex h-full gap-x-[28px] items-center justify-center",children:[(0,i.jsx)(F(),{src:"https://storage.googleapis.com/dondo-ai-assets/landing/feature-cards/product.png",alt:e("card-3.title"),width:120,height:118,quality:100,className:"w-[120px] h-[118px]",draggable:!1}),(0,i.jsxs)("div",{className:"bg-[#F8F8F8] w-[110px] h-[128px] rounded-[10px] py-4 flex flex-col items-center gap-y-[7px]",children:[(0,i.jsx)(F(),{src:"https://storage.googleapis.com/dondo-ai-assets/landing/feature-cards/product-sm.png",alt:e("card-3.title"),width:87,height:50,className:"w-[87px] h-[50px]",draggable:!1}),(0,i.jsxs)("div",{className:"flex flex-col gap-y-[5px] text-[7px] leading-[12px] text-[#1F1C1E]",children:[(0,i.jsx)("p",{className:"font-semibold bricolage-grotesque text-[8px]",children:e("card-3.image-label-1")}),(0,i.jsx)("p",{children:e("card-3.image-label-2")}),(0,i.jsx)("p",{children:e("card-3.image-label-3")})]})]})]})}),(0,i.jsx)(B,{title:e("card-4.title"),description:e("card-4.description"),button:e("card-4.button"),href:r,children:(0,i.jsx)(F(),{src:"https://storage.googleapis.com/dondo-ai-assets/landing/feature-cards/social-media.png",alt:e("card-4.title"),width:290,height:157,quality:100,className:"w-[290px] h-[157px]",draggable:!1})})]})}var T=s(92863),P=s(67294);function D(e){let{className:t}=e;return(0,i.jsx)("svg",{viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99999 0.646564C6.46023 0.646564 6.83332 1.01966 6.83332 1.4799V11.1347L10.4107 7.55731C10.7362 7.23187 11.2638 7.23187 11.5892 7.55731C11.9147 7.88275 11.9147 8.41038 11.5892 8.73582L6.58924 13.7358C6.26381 14.0613 5.73617 14.0613 5.41073 13.7358L0.410734 8.73582C0.0852973 8.41038 0.0852973 7.88275 0.410734 7.55731C0.736171 7.23187 1.26381 7.23187 1.58925 7.55731L5.16666 11.1347V1.4799C5.16666 1.01966 5.53975 0.646564 5.99999 0.646564Z"})})}var R=s(67395);function M(e){let{className:t}=e;return(0,i.jsx)("svg",{viewBox:"0 0 13 14",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.7442 0.637712C6.06964 0.312276 6.59727 0.312276 6.92271 0.637712L11.9227 5.63771C12.2481 5.96315 12.2481 6.49079 11.9227 6.81622C11.5973 7.14166 11.0696 7.14166 10.7442 6.81622L7.16679 3.23881V12.8936C7.16679 13.3539 6.79369 13.727 6.33345 13.727C5.87322 13.727 5.50012 13.3539 5.50012 12.8936V3.23881L1.92271 6.81622C1.59727 7.14166 1.06964 7.14166 0.7442 6.81622C0.418763 6.49079 0.418763 5.96315 0.7442 5.63771L5.7442 0.637712Z"})})}function I(e){let{className:t}=e;return(0,i.jsxs)("svg",{viewBox:"0 0 292 81",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_1125_1117)",children:[(0,i.jsx)("rect",{y:"0.373535",width:"292",height:"80",rx:"4",fill:"#1F1C1E",fillOpacity:"0.03"}),(0,i.jsx)("path",{d:"M46.2158 19.0258L0 14.3132V80.2133L292 80.3735L291.5 79.3132L275.5 73.3132L236.59 63.3485C235.199 62.9921 233.783 62.7362 232.355 62.5826L189.796 58.0064C188.601 57.8779 187.42 57.6419 186.267 57.3014L122 38.3132L82.5738 32.8132L46.2158 19.0258Z",fill:"url(#paint0_linear_1125_1117)"})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"paint0_linear_1125_1117",x1:"134.446",y1:"5.79623",x2:"133.144",y2:"88.4946",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#FE5E30",stopOpacity:"0.6"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#FE5E30",stopOpacity:"0"})]}),(0,i.jsx)("clipPath",{id:"clip0_1125_1117",children:(0,i.jsx)("rect",{y:"0.373535",width:"292",height:"80",rx:"4",fill:"white"})})]})]})}function z(e){let{className:t}=e;return(0,i.jsxs)("svg",{viewBox:"0 0 292 81",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_1125_1178)",children:[(0,i.jsx)("rect",{y:"0.373535",width:"292",height:"80",rx:"4",fill:"#1F1C1E",fillOpacity:"0.03"}),(0,i.jsx)("path",{d:"M245.784 19.0258L292 14.3132V80.2133L0 80.3735L0.5 79.3132L16.5 73.3132L55.4099 63.3485C56.8015 62.9921 58.2169 62.7362 59.6452 62.5826L102.204 58.0064C103.399 57.8779 104.58 57.6419 105.733 57.3014L170 38.3132L209.426 32.8132L245.784 19.0258Z",fill:"url(#paint0_linear_1125_1178)"})]}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"paint0_linear_1125_1178",x1:"157.554",y1:"5.79623",x2:"158.856",y2:"88.4946",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{stopColor:"#8C8E00",stopOpacity:"0.6"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#8C8E00",stopOpacity:"0"})]}),(0,i.jsx)("clipPath",{id:"clip0_1125_1178",children:(0,i.jsx)("rect",{y:"0.373535",width:"292",height:"80",rx:"4",fill:"white"})})]})]})}var q=s(41560);let V=e=>{let{title:t,improvements:s}=e,{locale:r,defaultLocale:n,query:a}=(0,d.useRouter)(),[l,o]=(0,P.useState)(void 0),c=a.q;(0,P.useEffect)(()=>{let e=setTimeout(()=>{let e=c?s.filter(e=>e.slug===c):[],t=e.length>0?e:s;o(t[Math.floor(Math.random()*t.length)])},50);return()=>{clearTimeout(e)}},[c]);let p=r===n?"/ai/login":"/ai/".concat(r,"/login"),x=()=>(0,i.jsxs)(u.h,{href:p,locale:!1,className:"my-0 flex items-center gap-2 shadow-button",ariaLabel:"Go to dondo",children:[(0,i.jsx)(q.Z,{className:"w-24 fill-white"}),(0,i.jsx)(R.o,{className:"w-6 h-6 fill-white"})]});return(0,i.jsxs)("div",{className:"px-6 laptop:px-0 py-16",children:[t&&(0,i.jsx)("div",{className:"mb-10 laptop:mb-14 text-[28px]/[28px]",children:t}),(0,i.jsxs)("div",{className:"relative grid grid-cols-1 laptop:grid-cols-2 gap-x-14 gap-y-4",children:[(0,i.jsx)(Z,{data:null==l?void 0:l.before}),(0,i.jsx)("div",{className:"block laptop:hidden place-self-center transition-opacity duration-1000 ".concat(l?"opacity-100":"opacity-0"),children:(0,i.jsx)(x,{})}),(0,i.jsx)(Z,{data:null==l?void 0:l.after,improved:!0}),(0,i.jsx)("div",{className:"hidden laptop:block absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 transition-opacity duration-1000 ".concat(l?"opacity-100":"opacity-0"),children:(0,i.jsx)(x,{})})]})]})},U=e=>{var t;return(0,i.jsxs)("div",{className:"mb-2",children:[(0,i.jsxs)("div",{className:"flex gap-x-1 mb-1 items-center",children:[e.icon,(0,i.jsx)("span",{children:e.name})]}),(0,i.jsx)("div",{className:"w-full rounded-full bg-[#F8F8F8] h-2",children:(0,i.jsx)("div",{className:"h-full rounded-full transition-all duration-1000 ease-out ".concat(e.improved?"bg-improvementLightGreen":"bg-primaryOrange/[.2]"),style:{width:"".concat(null!==(t=e.width)&&void 0!==t?t:0,"%")}})})]})},Z=e=>{var t,s,r,n,a,l,o,c,d,p,x,u,m,h,f,g,v;let{improved:j,data:y}=e,b=(0,C.useTranslations)("Improvements");return(0,i.jsxs)("div",{className:"w-full p-4 laptop:p-10 grid grid-cols-3 tablet:grid-cols-5 gap-4 ".concat(j?"bg-[#EBF5FF]":"bg-primaryOrange/[.1]"),children:[(0,i.jsxs)("div",{className:"col-span-3 tablet:col-span-2 bg-white rounded-[4px] flex flex-col",children:[(0,i.jsx)("div",{className:"relative aspect-[1.55] tablet:aspect-square w-full rounded-[4px] overflow-hidden ".concat((null==y?void 0:null===(s=y.coverImage)||void 0===s?void 0:null===(t=s.asset)||void 0===t?void 0:t._ref)?"tablet:shadow-item":"bg-white"),children:y&&(0,i.jsx)(F(),{fill:!0,alt:"".concat(null==y?void 0:y.title.replace(/\s+/g,"-").toLocaleLowerCase(),"-ai-ecommerce-optimization"),src:(null==y?void 0:null===(n=y.coverImage)||void 0===n?void 0:null===(r=n.asset)||void 0===r?void 0:r._ref)?(0,T.i)(y.coverImage).height(350).width(350).fit("crop").url():"",className:"object-cover",sizes:"(max-width: 640px) 350px, (max-width: 1080px) 25vw, 256px",loading:e.improved?"lazy":"eager",priority:!e.improved,draggable:!1,blurDataURL:"https://storage.googleapis.com/dondo-ai-assets/output.webp"})}),(0,i.jsx)("div",{className:"flex flex-col justify-center grow p-3 pt-8 tablet:pt-3 gap-y-1.5 transition-opacity duration-1000 ".concat(y?"opacity-100":"opacity-0"),children:e.improved?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"text-[20px]/[18px] font-medium truncate",children:null==y?void 0:y.title}),(0,i.jsx)("div",{className:"text-[12px]/[18px] line-clamp-2 text-pretty",children:null==y?void 0:y.description}),(null!==(f=null==y?void 0:y.variants)&&void 0!==f?f:[]).map((e,t)=>{var s;return(0,i.jsxs)("div",{className:"flex ".concat("text"===e.type?"gap-x-1":"gap-x-2"),children:[(0,i.jsx)("div",{className:"text-[12px]/[18px] opacity-80 flex gap-x-2 items-center",children:e.name}),(0,i.jsx)("div",{className:"flex gap-2 text-[12px]/[18px] overflow-x-auto no-scrollbar",children:(null!==(s=e.descriptions)&&void 0!==s?s:[]).map((s,r)=>(0,i.jsx)("div",{className:"text"===e.type?"font-medium":"circle"===e.type?"text-[10px]/[18px] flex items-center justify-center aspect-square w-6 rounded-full opacity-80 font-medium bg-[#D9D9D9]/[.5] even:bg-improvementLightYellow":"text-[10px]/[18px] shrink-0 w-fit px-2 py-1 rounded-full opacity-80 font-medium bg-improvementLightYellow",children:s},"".concat(t).concat(r)))})]},t)}),(0,i.jsx)("div",{className:"text-[10px]/[14px] mt-1 flex gap-1 overflow-x-auto no-scrollbar",children:(null!==(g=null==y?void 0:y.tags)&&void 0!==g?g:[]).map((e,t)=>(0,i.jsx)("div",{className:"shrink-0 w-fit px-2 py-[5px] rounded-full opacity-80 font-medium bg-improvementLightYellow",children:e},t))})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"text-[20px]/[18px] font-medium",children:null==y?void 0:y.title}),(0,i.jsx)("div",{className:"flex flex-wrap gap-x-6",children:(null!==(v=null==y?void 0:y.variants)&&void 0!==v?v:[]).map((e,t)=>{var s;return(0,i.jsxs)("div",{className:"flex gap-x-1",children:[(0,i.jsxs)("div",{className:"text-[12px]/[18px] opacity-80 flex gap-x-2 items-center",children:[e.name,":"]}),(0,i.jsx)("div",{className:"flex gap-x-2 text-[12px]/[18px]",children:(null!==(s=e.descriptions)&&void 0!==s?s:[]).map((e,s)=>(0,i.jsx)("div",{className:"font-medium",children:e},"".concat(t).concat(s)))})]},t)})})]})})]}),(0,i.jsxs)("div",{className:"col-span-3 bg-white rounded-[4px] p-4 pt-9 flex flex-col gap-y-14",children:[(0,i.jsx)("div",{className:"transition-opacity duration-1000 ".concat(y?"opacity-100":"opacity-0"),children:[{name:b("pictures"),width:null===(l=e.data)||void 0===l?void 0:null===(a=l.bars)||void 0===a?void 0:a.pictures,icon:(0,i.jsx)(k.XBm,{})},{name:b("features"),width:null===(c=e.data)||void 0===c?void 0:null===(o=c.bars)||void 0===o?void 0:o.features,icon:(0,i.jsx)(k.NvX,{})},{name:b("price-and-stock"),width:null===(p=e.data)||void 0===p?void 0:null===(d=p.bars)||void 0===d?void 0:d.priceAndStock,icon:(0,i.jsx)(k.nbg,{})},{name:b("title-and-description"),width:null===(u=e.data)||void 0===u?void 0:null===(x=u.bars)||void 0===x?void 0:x.titleAndDescription,icon:(0,i.jsx)(k.aI,{})},{name:b("call-to-action"),width:null===(h=e.data)||void 0===h?void 0:null===(m=h.bars)||void 0===m?void 0:m.callToAction,icon:(0,i.jsx)(k.WCv,{})}].map((t,s)=>(0,i.jsx)(U,{width:t.width,name:t.name,icon:t.icon,improved:e.improved},s))}),(0,i.jsxs)("div",{className:"relative transition-opacity duration-1000 ".concat(y?"opacity-100":"opacity-0"),children:[e.improved?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z,{className:"w-full h-full"}),(null==y?void 0:y.sales)&&(0,i.jsxs)("div",{className:"absolute top-2 right-2 text-[24px]/[32px] text-improvementGreen flex gap-3 items-center",children:[(0,i.jsxs)("div",{children:[y.sales,"%"]}),(0,i.jsx)(M,{className:"fill-improvementGreen h-[18px] w-[18px]"})]})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(I,{className:"w-full"}),(null==y?void 0:y.sales)&&(0,i.jsxs)("div",{className:"absolute top-2 right-2 text-[24px]/[32px] text-primaryOrange flex gap-3 items-center",children:[(0,i.jsxs)("div",{children:[y.sales,"%"]}),(0,i.jsx)(D,{className:"fill-primaryOrange h-[18px] w-[18px]"})]})]}),(0,i.jsx)("div",{className:"absolute left-2 bottom-2 text-[16px]/[18px]",children:b("sales")})]})]})]})};var G=s(46857),W=s(26211),H=s(23232),J=s(97147);function X(e){let{className:t}=e;return(0,i.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,i.jsx)("g",{id:"Arrows/Chevron Left",children:(0,i.jsx)("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M20.9402 7.06948C21.4609 7.59018 21.4609 8.4344 20.9402 8.9551L13.883 16.0123L20.9402 23.0695C21.4609 23.5902 21.4609 24.4344 20.9402 24.9551C20.4195 25.4758 19.5753 25.4758 19.0546 24.9551L11.0546 16.9551C10.5339 16.4344 10.5339 15.5902 11.0546 15.0695L19.0546 7.06948C19.5753 6.54878 20.4195 6.54878 20.9402 7.06948Z",fill:"white"})})})}function $(e){let{className:t}=e;return(0,i.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:(0,i.jsx)("g",{id:"Arrows/Chevron Right",children:(0,i.jsx)("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M11.723 7.06948C12.2437 6.54878 13.0878 6.54878 13.6085 7.06948L21.6079 15.0695C22.1285 15.5902 22.1285 16.4344 21.6079 16.9551L13.6085 24.9551C13.0878 25.4758 12.2437 25.4758 11.723 24.9551C11.2024 24.4344 11.2024 23.5902 11.723 23.0695L18.7796 16.0123L11.723 8.9551C11.2024 8.4344 11.2024 7.59018 11.723 7.06948Z",fill:"white"})})})}let Y=["","rounded-l-full","rounded-full","rounded-r-full","","rounded-t-full","rounded-b-full","rounded-full"],K=["bg-secondaryBlue","bg-improvementGreen","bg-[#FCF]","bg-secondaryBlue","bg-primaryOrange"],Q=e=>{var t,s,r,n;let{post:a,isOddNumber:l=!1,autoSize:o=!1}=e,c=a.date?Math.round(new Date(a.date).getTime()/1e3):0,d=c+(null!==(t=a.title)&&void 0!==t?t:"").length+(null!==(s=a.excerpt)&&void 0!==s?s:"").length,x=c-(null!==(r=a.title)&&void 0!==r?r:"").length-(null!==(n=a.excerpt)&&void 0!==n?n:"").length,u=d%K.length,m=d%Y.length,h=x%Y.length;return(0,i.jsxs)("div",{className:(0,p.m6)("flex",!o&&"mb-8"),children:[(0,i.jsx)("div",{className:(0,p.m6)("aspect-square",o?"grow":"h-20",Y[m],l?"".concat(K[u]," mix-blend-multiply"):"border-primaryBlack border")}),(0,i.jsx)("div",{className:(0,p.m6)("aspect-square",o?"grow -ml-[10%]":"h-20 -ml-2",Y[h],l?"border-primaryBlack border":"".concat(K[u]," mix-blend-multiply"))})]})};function ee(e){let{category:t,posts:s}=e,[r,n]=(0,P.useState)(!1),[a,l]=(0,P.useState)(!1),[o,c]=(0,P.useState)(!1),d=(0,P.useRef)(null),x=(0,C.useTranslations)("PostGroup"),m=()=>{if(d.current){let{scrollLeft:e,scrollWidth:t,clientWidth:s}=d.current;l(e>0),c(e<t-s),n(t>s)}};(0,P.useEffect)(()=>(m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)),[]);let h=(e,t)=>{if(d.current){let s="shapes"===t?360:420,i="left"===e?-s:s;"left"===e?(d.current.scrollLeft+i<s&&(i=-d.current.scrollLeft,l(!1)),c(!0)):(d.current.scrollWidth-(d.current.scrollLeft+i+d.current.clientWidth)<s&&(i=d.current.scrollWidth,c(!1)),l(!0)),d.current.scrollBy({left:i,behavior:"smooth"})}};return(0,i.jsxs)("div",{className:"relative",children:[r&&(0,i.jsxs)("div",{className:"absolute z-10 right-0 -top-20 hidden laptop:block",children:[(0,i.jsx)("button",{onClick:()=>h("left",t.type),disabled:!a,className:"rounded-full w-[38px] h-[38px] mr-2 ".concat(a?"bg-primaryBlack hover:bg-primaryBlackHover  active:bg-primaryBlackActive":"bg-primaryBlack/[.3]"),"aria-label":"Previous post",children:(0,i.jsx)(X,{className:"w-8 h-8 ml-0.5"})}),(0,i.jsx)("button",{onClick:()=>h("right",t.type),disabled:!o,className:"rounded-full w-[38px] h-[38px] ".concat(o?"bg-primaryBlack hover:bg-primaryBlackHover active:bg-primaryBlackActive":"bg-primaryBlack/[.3]"),"aria-label":"Next post",children:(0,i.jsx)($,{className:"w-8 h-8 ml-1"})})]}),(0,i.jsx)("div",{ref:d,className:(0,p.m6)("flex w-full text-primaryBlack scrollable-container laptop:overflow-x-hidden","shapes"===t.type?"divide-x divide-solid divide-primaryBlack gap-8":"gap-4"),children:s.map((e,s)=>{var r,n,a;let l=(null!==(a=null==t?void 0:t.type)&&void 0!==a?a:"")==="image"&&(null===(n=e.coverImage)||void 0===n?void 0:null===(r=n.asset)||void 0===r?void 0:r._ref);return(0,i.jsx)("div",{className:(0,p.m6)("snap-center","solid-color"===t.type&&"first:ml-6 laptop:first:pl-18 last:mr-4 laptop:last:mr-0","image"===t.type&&"first:ml-6 laptop:first:ml-18 last:mr-2 laptop:last:mr-0 ".concat(l?"bg-cover bg-center":"border border-primaryBlack")),style:l?{backgroundImage:'url("'.concat((0,T.i)(e.coverImage).url(),'")')}:void 0,children:(0,i.jsxs)("div",{className:(0,p.m6)("shapes"===t.type&&"bg-white py-10 px-6 laptop:first:pl-18 laptop:pl-18 laptop:pr-12","solid-color"===t.type&&"flex gap-x-8 bg-primaryBlue p-10","image"===t.type&&"p-6 ".concat(l?"h-[380px] w-[320px] laptop:h-[421px] laptop:w-[421px] bg-white/[.6]":"h-[378px] w-[318px] laptop:h-[419px] laptop:w-[419px]"," ")),children:["solid-color"===t.type&&(0,i.jsx)("div",{className:"text-[16px]/[16px]",children:s<9?"0".concat(s+1):s+1}),(0,i.jsxs)("div",{className:(0,p.m6)("flex flex-col","shapes"===t.type&&"w-[292px] h-[418px] laptop:w-[360px] laptop:h-[390px]","solid-color"===t.type&&"w-[232px] h-[332px] laptop:w-[293px] laptop:h-[341px]","image"===t.type&&"w-full h-full"),children:["shapes"===t.type&&(0,i.jsx)(Q,{post:e,isOddNumber:s%2==1}),(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:"text-[28px]/[28px] laptop:text-[32px]/[32px] mb-4 line-clamp-3 min-h-14 laptop:min-h-16",children:(0,i.jsx)("span",{children:e.title})}),(0,i.jsx)("p",{className:"text-[16px]/[18px] self-stretch line-clamp-6 min-h-[108px]",children:(0,i.jsx)("span",{children:e.excerpt})})]}),(0,i.jsx)("div",{className:"grow"}),(0,i.jsx)(u.h,{size:"sm",href:"/blog/".concat(e.category.slug,"/").concat(e.slug),children:e.ctaText||x("read-more")})]})]})},e._id)})})]})}function et(e){let{posts:t,categoryOrder:s}=e,r=(null!=s?s:[]).map(e=>{var s;return{category:null===(s=t.find(t=>{var s;return(null===(s=t.category)||void 0===s?void 0:s._id)===e}))||void 0===s?void 0:s.category,posts:t.filter(t=>{var s;return(null===(s=t.category)||void 0===s?void 0:s._id)===e})}}).filter(e=>e.category);return(0,i.jsx)("section",{className:"py-[50px] laptop:py-20 flex flex-col gap-[130px]",children:r.map(e=>{let{category:t,posts:s}=e;return(0,i.jsxs)("div",{className:"",children:[(0,i.jsx)("h2",{className:"text-[38px]/[48px] mb-[30px] px-6 laptop:px-18 font-medium",children:1===r.length?"Blog":t.title}),(0,i.jsx)(ee,{category:t,posts:s})]},t._id)})})}var es=s(1042);let ei=()=>{let e=(0,C.useTranslations)("Stats"),[t,s]=(0,P.useState)(null),{push:r}=(0,d.useRouter)();return(0,P.useEffect)(()=>{(async()=>{try{let e=await fetch("".concat("https://api.dondo.com","/graphql"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"\n  query getLastSalesStats {\n    getLastSalesStats {\n      listingsScored\n      listingsOptimized\n      listingsCreated\n      socialPostsCreated\n    }\n  }\n"})});400===e.status&&r("/400");let t=await e.json();s(t.data.getLastSalesStats)}catch(e){console.error("Error fetching stats:",e)}})()},[]),(0,i.jsxs)("div",{className:"px-6 laptop:px-0 pb-16 tablet:pb-20",children:[(0,i.jsx)("div",{className:"mb-10 tablet:mb-14 text-[28px]/[28px] text-center",children:e("title")}),(0,i.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-10",children:[(0,i.jsx)(en,{order:1,value:null==t?void 0:t.listingsScored,name:e("listings-scored")}),(0,i.jsx)(en,{order:2,value:null==t?void 0:t.listingsOptimized,name:e("listings-optimized")}),(0,i.jsx)(en,{order:3,value:null==t?void 0:t.listingsCreated,name:e("listings-created")}),(0,i.jsx)(en,{order:4,value:null==t?void 0:t.socialPostsCreated,name:e("social-posts-created")})]})]})},er=()=>(0,i.jsxs)("div",{className:"flex items-end gap-2 pt-4 pb-[10px] [&_div]:h-[84px] [&_div]:w-10 [&_div]:bg-gray-200 [&_div]:animate-pulse [&_div]:rounded",children:[(0,i.jsx)("div",{}),(0,i.jsx)("div",{}),(0,i.jsx)("div",{}),(0,i.jsx)("div",{})]}),en=e=>{let t=(0,C.useLocale)(),{value:s,name:r}=e;return(0,i.jsxs)("div",{className:"w-full border-t border-primaryBlack relative",children:[void 0!==s?(0,i.jsx)("div",{className:"text-[70px]/[84px] mt-4 mb-[10px]",children:new Intl.NumberFormat("es"===t?"es-CO":"en-US",{maximumFractionDigits:0}).format(s)}):(0,i.jsx)(er,{}),(0,i.jsx)("div",{className:"text-[20px]/[28px]",children:r})]})};function ea(e){let{preview:t,loading:s,groupedPosts:d,categoryOrder:p,settings:x,improvements:u,heroPictures:v,faqSections:j,draftMode:C,pricing:E,posts:k}=e,S=(0,n.useTranslations)("Landing");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.Z,{settings:x,metaTitle:S("meta-title"),metaDescription:S("meta-description"),metaImageUrl:"https://storage.googleapis.com/dondo-ai-assets/og/Homepage.png",metaImageAlt:S("meta-image-alt"),noTrailing:!0}),(0,i.jsx)(N.E,{preview:t,loading:s,draftMode:C,className:"max-w-[1424px] mx-auto space-y-[80px] px-6",footer:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(L,{posts:k}),(0,i.jsx)(H.$,{className:"bg-primaryBlue",withWhy:!1,otherLocaleHref:"/"})]}),children:null==x?void 0:x.componentsOrder.map((e,t)=>{switch(e){case"reviewTestimonial":return(0,i.jsx)(es.x,{variant:"stars",withShopify:!0},t);case"miniPricingDisplay":return(0,i.jsx)(J.h,{pricing:E},t);case"bannerComponent":return(0,i.jsx)(a.P,{variant:"light"},t);case"smallBoxes":return(0,i.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 relative z-20",children:[1,2,3].map(e=>(0,i.jsx)(G.e,{index:e,title:S("small-boxes.box-".concat(e,".title")),description:S("small-boxes.box-".concat(e,".description"))},"small-box-".concat(e)))},t);case"bigExplainer":return(0,i.jsx)(l.p,{variant:"LandingExplainer",options:4},t);case"featureCards":return(0,i.jsx)(A,{},t);case"headerComponentV2":return(0,i.jsxs)("div",{className:"py-[50px] px-4 rounded-[40px] bg-gradient-to-b from-[#EBF5FF] to-white to-80% text-center space-y-[30px]",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-[14px]/[26px] font-semibold text-[#1F2937] bricolage-grotesque",children:S("banner.subtitle")}),(0,i.jsx)("h1",{className:"text-[38px]/[48px] font-semibold text-[#343A40] max-w-[800px] mx-auto text-balance mt-[10px]",children:S("banner.title")}),(0,i.jsx)("p",{className:"text-[16px]/[28px] md:text-[18px]/[28px] font-medium text-[#1F2937] max-w-[833px] mx-auto text-pretty mt-[10px]",children:S("banner.description")})]}),(0,i.jsx)(a.E,{variant:"light",className:"bricolage-grotesque",children:S("banner.button")})]},t);case"headerComponent":return(0,i.jsx)(w,{headerContent:x.headerContent},t);case"improvementsComponent":return(0,i.jsx)(b.Z,{className:"px-0",children:(0,i.jsx)(V,{improvements:u})},t);case"statsComponent":return(0,i.jsx)("div",{className:"px-5 lg:px-18 max-w-[1440px] mx-auto pt-[50px] lg:pt-20",children:(0,i.jsx)(ei,{})},t);case"abstractComponent":return(0,i.jsx)(W.z,{},t);case"categoryOrderComponent":return(0,i.jsx)(b.Z,{className:"px-0",children:(0,i.jsx)(et,{posts:d,categoryOrder:p})},t);case"heroPicture":return(0,i.jsx)(f.Z,{translation:"HeroLanding",className:"bg-primaryBlue",pictures:v},t);case"howDoesDondoWork":return(0,i.jsx)(g.Z,{},t);case"howDoesDondoWorkMini":return(0,i.jsx)(y,{},t);case"pitchBox":return(0,i.jsx)(o.u,{className:"px-5 laptop:px-12",type:"landing"},t);case"blueBanner":return(0,i.jsx)(c.X,{},t);case"videoBox":return(0,i.jsx)(m,{},t);case"faqBox":return(0,i.jsx)(h.Z,{faqSections:j},t);default:return null}})})]})}var el=s(76899),eo=s(74356);function ec(e){let[t,s]=(0,eo.yR)(e.posts,el.wR),[r,n]=(0,eo.yR)(e.settings,el.GL);return(0,i.jsx)(ea,{preview:!0,loading:s||n,posts:t||[],settings:r||{},categoryOrder:e.categoryOrder,improvements:e.improvements,heroPictures:e.heroPictures,faqSections:e.faqSections,groupedPosts:e.groupedPosts||[],pricing:e.pricing||[],draftMode:e.draftMode})}var ed=!0;function ep(e){let{groupedPosts:t,categoryOrder:s,settings:r,draftMode:n,improvements:a,heroPictures:l,faqSections:o,pricing:c,posts:d}=e;return n?(0,i.jsx)(ec,{groupedPosts:t,categoryOrder:s,settings:r,improvements:a,heroPictures:l,faqSections:o,pricing:c,posts:d,draftMode:n}):(0,i.jsx)(ea,{groupedPosts:t,categoryOrder:s,settings:r,improvements:a,heroPictures:l,faqSections:o,pricing:c,draftMode:n,posts:d})}},40275:function(e,t,s){"use strict";let i;s.d(t,{Kx:function(){return m},T:function(){return u},o_:function(){return h}});var r=s(67294);let n=new Uint8Array(16),a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));var l={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o=["channel/disconnect","channel/response","channel/heartbeat"],c=["handshake/syn","handshake/syn-ack","handshake/ack"],d=e=>o.some(t=>t===e),p=e=>c.some(t=>t===e),x=({data:e={}})=>"object"==typeof e&&null!==e&&!Array.isArray(e)&&!("domain"in e)&&["id","type","from","to"].every(t=>t in e)&&e.type.startsWith("handshake/");function u(e,t,s){let[o,c]=(0,r.useState)(),[u,m]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(window.self===window.top&&!window.opener)return;let e=function(e){let t=window.self!==window.top||window.opener,s={buffer:[],id:null,origin:null,source:null,status:"connecting"};function r(t,r){if(p(t)||d(t)||"connecting"!==s.status&&"reconnecting"!==s.status){if(s.id&&s.origin&&s.source){let o={connectionId:s.id,data:r,domain:"sanity/channels",from:e.id,id:function(e,t,s){if(l.randomUUID&&!e)return l.randomUUID();let r=(e=e||{}).random||(e.rng||function(){if(!i&&!(i="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(n)})();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}(r)}(),to:e.connectTo,type:t};try{s.source.postMessage(o,{targetOrigin:s.origin})}catch{throw Error(`Failed to postMessage '${o.id}' on '${e.id}'`)}}}else s.buffer.push({type:t,data:r})}function o(t){if(x(t))console.error("Visual editing package mismatch detected! Please ensure you are using the latest version of Sanity Studio and any packages listed here:\nhttps://github.com/sanity-io/visual-editing");else if(function(t){let{data:s}=t;return"sanity/channels"===s.domain&&s.to===e.id&&s.from===e.connectTo&&"channel/response"!==s.type}(t)){let{data:e}=t;if(s.origin&&t.origin!==s.origin)return;if(t.source&&s.source!==t.source&&(s.source=t.source),p(e.type)&&e.data){if("handshake/syn"===e.type)return s.origin=t.origin,s.id=e.data.id,m("connecting"),void r("handshake/syn-ack",{id:s.id});if("handshake/ack"===e.type&&e.data.id===s.id)return void m("connected")}else if(e.connectionId===s.id&&t.origin===s.origin){if("channel/disconnect"===e.type)return void m("disconnected");{let t=[e.type,e.data];c.forEach(e=>{e(...t)}),r("channel/response",{responseTo:e.id})}return}}}let c=new Set,u=new Set;function m(e){s.status=e,u.forEach(t=>{t(e)}),"connected"===e&&function(){let e=[...s.buffer];s.buffer.splice(0,s.buffer.length),e.forEach(({type:e,data:t})=>{r(e,t)})}()}return window.addEventListener("message",o,!1),m("connecting"),{destroy:function(){["disconnected"].includes(s.status)||m("disconnected"),c.clear(),u.clear(),window.removeEventListener("message",o,!1)},inFrame:t,send:function(e,t){r(e,t)},subscribe:function(e){return c.add(e),()=>c.delete(e)},onStatusUpdate:function(e){return u.add(e),()=>u.delete(e)}}}({id:"preview-kit",connectTo:"presentation"});e.onStatusUpdate(e=>{"connected"===e?m(!0):"disconnected"===e&&m(!1)});let t=setTimeout(()=>c(e),0);return()=>{clearTimeout(t),e.destroy(),c(void 0)}},[s,t]);let h=JSON.stringify(Array.from(e.keys()));(0,r.useEffect)(()=>{"[]"!==h&&o&&u&&o.send("preview-kit/documents",{projectId:t,dataset:s,perspective:"previewDrafts",documents:Array.from(e.values())})},[h,o,u,s,e,t])}function m(e){let t=(0,r.useMemo)(()=>JSON.stringify(e||{}),[e]);return(0,r.useMemo)(()=>JSON.parse(t),[t])}function h(e){let{refreshInterval:t}=e,s=function(){let[e,t]=(0,r.useState)(!1);(0,r.useEffect)(()=>{t(navigator.onLine);let e=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",e),window.addEventListener("offline",s),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",s)}},[]);let s=(0,r.useSyncExternalStore)(f,()=>document.visibilityState,()=>"hidden");return!e||"hidden"===s}(),[i,n]=(0,r.useState)("hit"),a=(0,r.useCallback)(()=>(n("inflight"),()=>n("hit")),[]);return(0,r.useEffect)(()=>{if(!t||"hit"!==i)return;let e=setTimeout(()=>n("stale"),t);return()=>clearTimeout(e)},[t,i]),(0,r.useEffect)(()=>{if("hit"!==i)return;let e=()=>n("stale");return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[t,i]),(0,r.useEffect)(()=>{s&&"hit"===i&&n("stale"),s||"stale"!==i||n("refresh")},[s,i]),[i,a]}function f(e){return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)}},80684:function(e,t,s){"use strict";s.d(t,{d:function(){return i}});let i=(0,s(67294).createContext)(null)},74356:function(e,t,s){"use strict";s.d(t,{Ji:function(){return g},yR:function(){return f}});var i,r,n=s(40275),a=s(67294),l=s(80684),o="u">typeof Element,c="function"==typeof Map,d="function"==typeof Set,p="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView,x=(i=function(e,t){try{return function e(t,s){if(t===s)return!0;if(t&&s&&"object"==typeof t&&"object"==typeof s){var i,r,n,a;if(t.constructor!==s.constructor)return!1;if(Array.isArray(t)){if((i=t.length)!=s.length)return!1;for(r=i;0!=r--;)if(!e(t[r],s[r]))return!1;return!0}if(c&&t instanceof Map&&s instanceof Map){if(t.size!==s.size)return!1;for(a=t.entries();!(r=a.next()).done;)if(!s.has(r.value[0]))return!1;for(a=t.entries();!(r=a.next()).done;)if(!e(r.value[1],s.get(r.value[0])))return!1;return!0}if(d&&t instanceof Set&&s instanceof Set){if(t.size!==s.size)return!1;for(a=t.entries();!(r=a.next()).done;)if(!s.has(r.value[0]))return!1;return!0}if(p&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(s)){if((i=t.length)!=s.length)return!1;for(r=i;0!=r--;)if(t[r]!==s[r])return!1;return!0}if(t.constructor===RegExp)return t.source===s.source&&t.flags===s.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof s.valueOf)return t.valueOf()===s.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof s.toString)return t.toString()===s.toString();if((i=(n=Object.keys(t)).length)!==Object.keys(s).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(s,n[r]))return!1;if(o&&t instanceof Element)return!1;for(r=i;0!=r--;)if(("_owner"!==n[r]&&"__v"!==n[r]&&"__o"!==n[r]||!t.$$typeof)&&!e(t[n[r]],s[n[r]]))return!1;return!0}return t!=t&&s!=s}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}).__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i,u={exports:{}},m={};u.exports=function(){if(r)return m;r=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=a.useSyncExternalStore,s=a.useRef,i=a.useEffect,n=a.useMemo,l=a.useDebugValue;return m.useSyncExternalStoreWithSelector=function(r,a,o,c,d){var p=s(null);if(null===p.current){var x={hasValue:!1,value:null};p.current=x}else x=p.current;var u=t(r,(p=n(function(){function t(t){if(!r){if(r=!0,s=t,t=c(t),void 0!==d&&x.hasValue){var n=x.value;if(d(n,t))return i=n}return i=t}if(n=i,e(s,t))return n;var a=c(t);return void 0!==d&&d(n,a)?n:(s=t,i=a)}var s,i,r=!1,n=void 0===o?null:o;return[function(){return t(a())},null===n?void 0:function(){return t(n())}]},[a,o,c,d]))[0],p[1]);return i(function(){x.hasValue=!0,x.value=u},[u]),l(u),u},m}();var h=u.exports;function f(e,t,s,i){let{isEqual:r=x}=i||{},o=(0,a.useContext)(l.d),c=(0,n.Kx)(s),d=(0,a.useMemo)(()=>({subscribe:()=>()=>{},getSnapshot:()=>e}),[e]),p=(0,a.useMemo)(()=>(null==o?void 0:o(e,t,c))||{subscribe:()=>()=>{},getSnapshot:()=>e},[o,e,c,t]),[u]=(0,a.useState)(()=>{if(void 0===e)throw Error("initialSnapshot can't be undefined, if you don't want an initial value use null instead");try{return JSON.parse(JSON.stringify(e))}catch(t){return console.warn("Failed to deep clone initialSnapshot, this is likely an error and an indication that the snapshot isn't JSON serializable",{initialSnapshot:e,error:t}),e}}),m=(0,a.useCallback)(()=>u,[u]),f=(0,a.useCallback)(e=>e,[]),g=h.useSyncExternalStoreWithSelector((null==p?void 0:p.subscribe)||d.subscribe,(null==p?void 0:p.getSnapshot)||d.getSnapshot,m,f,r),v=null!==o;return[g,v&&u===g,v]}let g=(0,a.lazy)(()=>s.e(5390).then(s.bind(s,55390)))}},function(e){e.O(0,[115,862,2950,6803,3155,9381,9147,7515,5639,4736,9865,2888,9774,179],function(){return e(e.s=48312)}),_N_E=e.O()}]);