"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4311,5165],{3642:(e,t,a)=>{a.d(t,{BrandCarouselPreview:()=>y,CategoryCarouselPreview:()=>b,FeaturedBlogPostsPreview:()=>f,ProductRailPreview:()=>x});var r=a(95155),l=a(12115),i=a(52987),o=a(52619),s=a.n(o),n=a(2821),d=a(4562),c=a(97094),m=a(18867),u=a(62391),p=a(97003),g=a(92531),h=a(30655);function x({data:e,locale:t,className:a,paddingClass:o="",sectionOrder:d}){let[m,g]=(0,l.useState)(null),[x,f]=(0,l.useState)(!0),[b,y]=(0,l.useState)(!1),v=e.filterBy?.productCount||e.filterBy?.productIds?.length||8,w="carousel"===e.layout,j=e.columns||4,N=w?"flex gap-3 md:gap-4 overflow-x-auto snap-x snap-mandatory scrollbar-hide pb-4":`${(e=>{let t={2:"grid grid-cols-2 md:grid-cols-2 gap-2 sm:gap-3",3:"grid grid-cols-2 md:grid-cols-3 gap-2 sm:gap-3",4:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-2 sm:gap-3",5:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-2 sm:gap-3",6:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-2 sm:gap-3"};return t[e]||t[4]})(j)} gap-3 md:gap-4`,k=o.includes("p-0")||o.includes("px-0");(0,l.useEffect)(()=>{let t="https://api.komero.ge/Product",a=window.location.hostname;!async function(){try{let r=[];if(e.filterBy?.productIds&&e.filterBy.productIds.length>0){let l=new URLSearchParams;e.filterBy.productIds.forEach(e=>l.append("ids",e));let i=await fetch(`${t}/get-products-by-ids?${l.toString()}`,{headers:{"X-Client-Domain":a}});i.ok?r=await i.json():(console.warn("[ProductRailPreview] get-products-by-ids failed:",i.status),y(!0))}else{let l={};e.filterBy?.categoryIds?.length&&(l.categoryIds=e.filterBy.categoryIds),e.filterBy?.brandIds?.length&&(l.brandIds=e.filterBy.brandIds),e.filterBy?.isRandom!==void 0&&(l.isRandom=e.filterBy.isRandom),e.filterBy?.isNewArrival&&(l.isNewArrival=e.filterBy.isNewArrival),e.filterBy?.hasDiscount&&(l.isDiscounted=e.filterBy.hasDiscount);let i=new URLSearchParams({page:"1",pageSize:String(v),sortColumn:"name",sortOrder:"asc"}),o=await fetch(`${t}/get-products-by-filtering?${i.toString()}`,{method:"POST",headers:{"Content-Type":"application/json","X-Client-Domain":a},body:JSON.stringify(l)});o.ok?r=((await o.json()).items||[]).slice(0,v):(console.warn("[ProductRailPreview] get-products-by-filtering failed:",o.status),y(!0))}g(r)}catch(e){console.warn("[ProductRailPreview] fetch error:",e),y(!0),g(null)}finally{f(!1)}}()},[JSON.stringify(e.filterBy),v]);let C="ka"===t?"ყველას ნახვა":"View All",S="ka"===t?"ყველა":"All",A=(0,r.jsxs)("div",{className:(0,n.A)("flex mb-6 md:mb-10 gap-2 items-center",k&&"px-4","center"===e.titlePosition&&"flex-col justify-center text-center","right"===e.titlePosition&&"flex-row-reverse justify-between text-right",(!e.titlePosition||"left"===e.titlePosition)&&"flex-row justify-between text-left"),children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0 w-full",children:[(0,r.jsx)("h2",{className:"font-heading text-lg md:text-3xl lg:text-4xl font-bold text-foreground",children:(0,u.t)(e.title,t)}),e.subtitle&&(0,r.jsx)("p",{className:"font-primary hidden md:block text-muted-foreground mt-2 md:mt-3 text-sm md:text-lg",children:(0,u.G)(e.subtitle,t)})]}),(0,r.jsx)("div",{className:(0,n.A)("flex-shrink-0","center"===e.titlePosition&&"mt-3"),children:(0,r.jsx)(p.$,{asChild:!0,className:"group",size:"sm",variant:"ghost",children:(0,r.jsxs)(s(),{className:"font-primary flex items-center gap-1 text-sm font-semibold",href:e.viewAllHref,children:[(0,r.jsx)("span",{className:"font-primary hidden sm:inline",children:C}),(0,r.jsx)("span",{className:"font-primary sm:hidden",children:S}),(0,r.jsx)(i.A,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4 group-hover:translate-x-1 transition-transform"})]})})})]}),I=(0,r.jsx)("div",{className:N,children:Array.from({length:v}).map((e,t)=>(0,r.jsx)(c.ProductCardSkeleton,{},t))});return(0,r.jsx)("section",{"data-section-order":d,"data-section-type":"ProductRail",children:(0,r.jsxs)("div",{className:o,children:[A,x&&(0,r.jsx)("div",{className:"invisible",children:I}),!x&&b&&(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,r.jsx)("span",{className:"bg-black/60 text-white text-xs px-2 py-1 rounded-full",children:"Preview — no data loaded"})}),(0,r.jsx)("div",{className:"opacity-40 pointer-events-none",children:I})]}),!x&&!b&&m&&m.length>0&&(w?(0,r.jsx)(h.default,{carouselVariant:e.carouselVariant,columns:j,products:m}):(0,r.jsx)("div",{className:N,children:m.map((e,t)=>(0,r.jsx)("div",{className:"h-full",children:(0,r.jsx)(c.default,{priority:t<4,product:e})},e.id))})),!x&&!b&&m&&0===m.length&&(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,r.jsx)("span",{className:"bg-black/60 text-white text-xs px-2 py-1 rounded-full",children:"No products match this filter"})}),(0,r.jsx)("div",{className:"opacity-40 pointer-events-none",children:I})]})]})})}function f({data:e,locale:t,className:a,paddingClass:o="",sectionOrder:n}){let[d,c]=(0,l.useState)(null),[g,h]=(0,l.useState)(!0),[x,f]=(0,l.useState)(!1),b=e.limit||("carousel"===e.layout?6:3);(0,l.useEffect)(()=>{!async function(){try{let e=window.location.hostname,t=new URLSearchParams({page:"1",pageSize:String(b),sortBy:"date",sortOrder:"desc"}),a=await fetch(`https://api.komero.ge/api/blog/posts?${t.toString()}`,{headers:{"X-Client-Domain":e}});if(a.ok){let e=await a.json();c(e.items||[])}else console.warn("[FeaturedBlogPostsPreview] listPosts failed:",a.status),f(!0),c(null)}catch(e){console.warn("[FeaturedBlogPostsPreview] fetch error:",e),f(!0),c(null)}finally{h(!1)}}()},[b]);let y=(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:Array.from({length:b}).map((e,t)=>(0,r.jsx)("div",{className:"h-64 bg-muted animate-pulse rounded-2xl"},t))}),v=(0,r.jsxs)("div",{className:"flex flex-col md:flex-row md:items-end justify-between mb-12 gap-8",children:[(0,r.jsxs)("div",{className:"max-w-3xl",children:[(0,r.jsx)("h2",{className:"font-heading text-4xl md:text-5xl font-black text-foreground dark:text-foreground",children:(0,u.t)(e.title||{en:"Blog Posts",ka:"ბლოგები"},t)}),e.subtitle&&(0,r.jsx)("p",{className:"font-primary text-muted-foreground mt-4 text-lg",children:(0,u.G)(e.subtitle,t)})]}),e.viewAllHref&&(0,r.jsx)(p.$,{asChild:!0,variant:"outline",children:(0,r.jsxs)(s(),{className:"flex items-center gap-2",href:e.viewAllHref,children:["ka"===t?"ყველას ნახვა":"View All",(0,r.jsx)(i.A,{className:"h-4 w-4"})]})})]});return(0,r.jsx)("section",{className:a||"bg-slate-50/50 dark:bg-slate-950/50 py-16","data-section-order":n,"data-section-type":"FeaturedBlogPosts",children:(0,r.jsxs)("div",{className:o,children:[v,g&&y,!g&&x&&(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,r.jsx)("span",{className:"bg-black/60 text-white text-xs px-2 py-1 rounded-full",children:"Preview — no data loaded"})}),(0,r.jsx)("div",{className:"opacity-40 pointer-events-none",children:y})]}),!g&&!x&&d&&d.length>0&&(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:d.map(e=>(0,r.jsx)(m.default,{locale:t,post:e},e.id))}),!g&&!x&&d&&0===d.length&&(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,r.jsx)("span",{className:"bg-black/60 text-white text-xs px-2 py-1 rounded-full",children:"No blog posts yet"})}),(0,r.jsx)("div",{className:"opacity-40 pointer-events-none",children:y})]})]})})}function b({data:e,locale:t,paddingClass:a="",sectionOrder:i}){let[o,s]=(0,l.useState)(null),[n,d]=(0,l.useState)(!0),[c,m]=(0,l.useState)(!1),u=e.slidesPerView||6;(0,l.useEffect)(()=>{!async function(){try{let e=window.location.hostname,t=await fetch("https://api.komero.ge/Category/get-all-categories",{headers:{"X-Client-Domain":e}});if(t.ok){let e=await t.json();s(e)}else console.warn("[CategoryCarouselPreview] get-all-categories failed:",t.status),m(!0)}catch(e){console.warn("[CategoryCarouselPreview] fetch error:",e),m(!0)}finally{d(!1)}}()},[]);let p=(0,r.jsx)("div",{className:"flex gap-3 overflow-hidden",children:Array.from({length:u}).map((e,t)=>(0,r.jsxs)("div",{className:"flex-shrink-0 flex flex-col items-center gap-2",children:[(0,r.jsx)("div",{className:"w-16 h-16 rounded-full bg-muted animate-pulse"}),(0,r.jsx)("div",{className:"w-14 h-3 rounded bg-muted animate-pulse"})]},t))}),h=c||!n&&(!o||0===o.length);return(0,r.jsx)("div",{"data-section-order":i,"data-section-type":"CategoryCarousel",children:n?(0,r.jsx)("div",{className:`${a} invisible`,children:p}):h?(0,r.jsx)("div",{className:a,children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,r.jsx)("span",{className:"bg-black/60 text-white text-xs px-2 py-1 rounded-full",children:c?"Preview — no data loaded":"No categories yet"})}),(0,r.jsx)("div",{className:"opacity-40 pointer-events-none",children:p})]})}):(0,r.jsx)(g.default,{categories:o,data:e,locale:t,paddingClass:a})})}function y({data:e,locale:t,paddingClass:a="",sectionOrder:i}){let[o,s]=(0,l.useState)(null),[n,c]=(0,l.useState)(!0),[m,u]=(0,l.useState)(!1),p=e.slidesPerView||6;(0,l.useEffect)(()=>{!async function(){try{let e=window.location.hostname,t=await fetch("https://api.komero.ge/Brand/get-all-brands",{headers:{"X-Client-Domain":e}});if(t.ok){let e=await t.json();s(e)}else console.warn("[BrandCarouselPreview] get-all-brands failed:",t.status),u(!0)}catch(e){console.warn("[BrandCarouselPreview] fetch error:",e),u(!0)}finally{c(!1)}}()},[]);let g=(0,r.jsx)("div",{className:"flex gap-4 overflow-hidden",children:Array.from({length:p}).map((e,t)=>(0,r.jsx)("div",{className:"flex-shrink-0 w-24 h-14 rounded-lg bg-muted animate-pulse"},t))}),h=o??[];e.brandIds?.length&&(h=h.filter(t=>e.brandIds.includes(t.id))),e.maxBrands&&(h=h.slice(0,e.maxBrands));let x=m||!n&&0===h.length;return(0,r.jsx)("div",{"data-section-order":i,"data-section-type":"BrandCarousel",children:n?(0,r.jsx)("div",{className:`${a} invisible`,children:g}):x?(0,r.jsx)("div",{className:a,children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,r.jsx)("span",{className:"bg-black/60 text-white text-xs px-2 py-1 rounded-full",children:m?"Preview — no data loaded":"No brands yet"})}),(0,r.jsx)("div",{className:"opacity-40 pointer-events-none",children:g})]})}):(0,r.jsx)(d.default,{brands:h,data:e,locale:t,paddingClass:a})})}},4562:(e,t,a)=>{a.d(t,{default:()=>u});var r=a(95155),l=a(12115),i=a(52619),o=a.n(i),s=a(15239),n=a(38858),d=a(58010),c=a(56654),m=a(62391);function u({data:e,locale:t,brands:a,paddingClass:i=""}){let u=(0,l.useRef)(null),p=(0,l.useRef)(null),[g,h]=(0,l.useState)(new Set),x=Math.max(1,Math.min(e.slidesPerView||6,Math.max(1,a.length-1))),f=(e.autoplay??!1)&&a.length>x,b=f&&void 0!==e.autoScrollSpeed&&e.autoScrollSpeed>0,y=e.autoScrollSpeed??.8,v=e.showHeader??!!(e.title||e.subtitle);return((0,l.useEffect)(()=>{if(!u.current||0===a.length)return;let t={type:"loop",perPage:x,gap:"1rem",pagination:e.showPagination??!1,arrows:e.showArrows??!0,autoplay:f&&!b,interval:e.autoplayInterval||3e3,pauseOnHover:!0,drag:"free",flickPower:300,trimSpace:!0,focus:0,accessibility:!0,waitForTransition:!0,breakpoints:{640:{perPage:Math.min(x,2),gap:"0.5rem",arrows:!1},768:{perPage:Math.min(x,3),gap:"0.75rem",arrows:!1},1024:{perPage:Math.min(x,4),gap:"0.875rem"},1280:{perPage:Math.min(x,5),gap:"0.875rem"}}};b&&(t.autoScroll={speed:y,pauseOnHover:!0,pauseOnFocus:!1}),p.current=new n.Ay(u.current,t);let r=f?{AutoScroll:d.Z}:void 0;return p.current.mount(r),()=>{p.current?.destroy(),p.current=null}},[a,x,e.showPagination,e.showArrows,f,e.autoplayInterval,y,b]),a.length)?(0,r.jsx)("section",{className:"",children:(0,r.jsxs)("div",{className:`${i}`,children:[v&&(0,r.jsxs)("div",{className:"mb-8 space-y-2",children:[e.title&&(0,r.jsx)("h2",{className:"font-heading text-2xl md:text-3xl font-bold text-foreground text-balance",children:(0,m.t)(e.title,t)}),e.subtitle&&(0,r.jsx)("p",{className:"font-primary text-muted-foreground text-sm md:text-base",children:(0,m.t)(e.subtitle,t)})]}),(0,r.jsx)("div",{ref:u,className:"splide",children:(0,r.jsx)("div",{className:"splide__track",children:(0,r.jsx)("ul",{className:"splide__list",children:a.map(e=>{let a=(0,c.t)(e.images),l=!!e.id&&g.has(e.id);return(0,r.jsx)("li",{className:"splide__slide bg-transparent",children:(0,r.jsx)(o(),{"aria-label":e.name||"Brand",className:"group block h-full bg-transparent",href:`/${t}/brand/${e.slug||e.id}`,children:(0,r.jsx)("div",{className:"relative flex h-24 w-full items-center justify-center px-6 py-4 sm:h-28 md:h-32 bg-transparent",children:a&&!l?(0,r.jsx)(s.default,{fill:!0,alt:"",className:"object-contain opacity-70 transition-opacity duration-200 hover:opacity-100",sizes:"(max-width: 640px) 180px, (max-width: 768px) 220px, (max-width: 1024px) 240px, 280px",src:a,onError:()=>{var t;return t=e.id,void h(e=>new Set(e).add(t))}}):(0,r.jsx)("span",{className:"font-heading text-sm md:text-base font-semibold text-muted-foreground",children:e.name||"Brand"})})})},e.id)})})})})]})}):null}},15777:(e,t,a)=>{a.d(t,{U:()=>r});function r(e){if(e&&0!==e.length)return e[0]}},18867:(e,t,a)=>{a.d(t,{default:()=>o});var r=a(95155),l=a(12115);let i={1:(0,l.lazy)(()=>Promise.all([a.e(4909),a.e(1138)]).then(a.bind(a,1138))),2:(0,l.lazy)(()=>Promise.all([a.e(4909),a.e(3873)]).then(a.bind(a,43873))),3:(0,l.lazy)(()=>Promise.all([a.e(4909),a.e(9900)]).then(a.bind(a,99900)))};function o({post:e,locale:t,variant:a=1,showDate:o=!0,showAuthor:s=!0,showExcerpt:n=!0,className:d}){let c=i[a]||i[1];return(0,r.jsx)(l.Suspense,{fallback:(0,r.jsx)("div",{className:"w-full aspect-[16/10] animate-pulse bg-slate-100 dark:bg-slate-800 rounded-3xl"}),children:(0,r.jsx)(c,{className:d,locale:t,post:e,showAuthor:s,showDate:o,showExcerpt:n})})}},21333:(e,t,a)=>{a.d(t,{default:()=>s});var r=a(95155),l=a(12115),i=a(46980),o=a.n(i);function s({data:e,locale:t,sectionOrder:a,paddingClass:i}){let s=(0,l.useRef)(null),n=(0,l.useId)().replace(/:/g,"-"),d=(0,l.useMemo)(()=>{var a;return a=e.html,a?"string"==typeof a?a:a[t]?a[t]:a.en?a.en:Object.values(a).find(e=>e&&e.trim())??"":""},[e.html,t]),c=(0,l.useMemo)(()=>{let e=o().sanitize(d,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","width","height","loading","style"],ALLOW_DATA_ATTR:!0});e=e.replace(/]*)>/gi,(e,t)=>t.includes("allow=")?e.replace(/allow="([^"]*)"/i,(e,t)=>{let a=t.split(";").map(e=>e.trim());return a.includes("xr-spatial-tracking")||a.push("xr-spatial-tracking"),`allow="${a.join("; ")}"`}):``);let t=0;return(e=e.replace(/]*)>/gi,(e,a)=>{if(t++,!a.includes("loading=")){let e=1===t?"eager":"lazy";return``}return e})).replace(/]*?)(?:width="(\d+)")?(?:[^>]*?)(?:height="(\d+)")?([^>]*)>/gi,(e,t,a,r,l)=>a&&r?e:`
`)},[d]);(0,l.useEffect)(()=>{let t=s.current;if(!t)return;let a=`[data-custom-html="${n}"]`,r=[];if(e.css&&r.push(m(e.css,a)),e.cssDark&&r.push(m(e.cssDark,`html.dark ${a}`)),0===r.length)return;let l=document.createElement("style");return l.textContent=r.join("\n"),t.appendChild(l),()=>{l.remove()}},[e.css,e.cssDark,n]);let m=(e,t)=>{try{return e.replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g,(e,a,r)=>{let l=a.trim();if(l.startsWith("@"))return e;let i=l.match(/^(?:html|:root)?\.dark(?=[\s>+~,{]|$)\s*(.*)$/);if(i){let e=i[1].trim();return e?`html.dark ${t} ${e}${r}`:`html.dark ${t}${r}`}return l.startsWith(":root")||"html"===l||"body"===l?e:`${t} ${l}${r}`})}catch(t){return console.error("Error scoping CSS:",t),e}},u=["custom-html-section",i,e.containerClass||""].filter(Boolean).join(" ");return(0,r.jsxs)("section",{ref:s,className:u,"data-custom-html":n,"data-section-order":a,"data-section-type":"CustomHTML",children:[(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:c.replace(//gi,"
​")},className:"custom-html-content",style:{minHeight:"auto"}}),(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:` ${e.rawImages?`[data-custom-html="${n}"] .custom-html-content img:not([width]):not([height]) { max-width: 100%; height: auto; display: block; }`:`[data-custom-html="${n}"] .custom-html-content img:not([width]):not([height]) { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }`} [data-custom-html="${n}"] .custom-html-content img[width][height] { max-width: 100%; height: auto; display: block; } [data-custom-html="${n}"] .custom-html-content img:first-of-type { content-visibility: auto; } [data-custom-html="${n}"] .custom-html-content iframe { max-width: 100%; border: 0; } [data-custom-html="${n}"] .custom-html-content * { max-width: 100%; } `}})]})}},28986:(e,t,a)=>{a.d(t,{AdminPreviewWrapper:()=>s});var r=a(95155),l=a(67909),i=a(52467);let o=(0,l.default)(()=>Promise.all([a.e(9027),a.e(7403)]).then(a.bind(a,97403)).then(e=>e.AdminPreviewEditorWrapper),{loadableGenerated:{webpack:()=>[97403]},ssr:!1,loading:e=>(0,r.jsx)(r.Fragment,{children:e.children})});function s({children:e,...t}){let{isEditorMode:a,isBrowseMode:l}=(0,i.a)();return!a||l?(0,r.jsx)(r.Fragment,{children:e}):(0,r.jsx)(o,{...t,children:e})}},30655:(e,t,a)=>{a.d(t,{default:()=>x});var r=a(95155),l=a(12115),i=a(37270),o=a(90368),s=a(27937),n=a(97094),d=a(12976);let c={type:"slide",perPage:5,gap:"0.75rem",pagination:!1,arrows:!1,drag:"free",trimSpace:!0,snap:!0,omitEnd:!1,focus:0,perMove:1,flickPower:300,breakpoints:{2e3:{perPage:5,gap:"0.75rem"},1536:{perPage:6,gap:"0.75rem"},1280:{perPage:5,gap:"0.75rem"},1024:{perPage:4,gap:"0.75rem"},768:{perPage:4,gap:"0.5rem"},640:{perPage:3,gap:"0.5rem"},480:{perPage:2,gap:"0.5rem",padding:{right:"2.5rem"}}}},m={type:"slide",perPage:4,gap:"1rem",pagination:!0,arrows:!1,drag:"free",trimSpace:!0,snap:!0,focus:0,perMove:1,flickPower:350,padding:{left:0,right:"3.5rem"},breakpoints:{1536:{perPage:5,padding:{right:"3.5rem"}},1280:{perPage:4,padding:{right:"3.5rem"}},1024:{perPage:3,padding:{right:"3rem"}},768:{perPage:2,padding:{right:"3rem"}},640:{perPage:2,padding:{right:"2.5rem"}},480:{perPage:1,padding:{right:"3.5rem"}}}},u={type:"loop",perPage:3,focus:"center",gap:"1.25rem",pagination:!0,arrows:!1,drag:!0,trimSpace:!1,perMove:1,flickPower:400,breakpoints:{1280:{perPage:3,gap:"1.25rem"},1024:{perPage:3,gap:"1rem"},768:{perPage:1,gap:"0.75rem",padding:{left:"3.5rem",right:"3.5rem"}},480:{perPage:1,gap:"0.5rem",padding:{left:"2.5rem",right:"2.5rem"}}}},p={1:function({products:e}){let{t}=(0,d.k)(),a=(0,l.useRef)(null),m=(0,l.useRef)(null),[u,p]=(0,l.useState)(2),g=(0,l.useCallback)(()=>a.current?.go("<"),[]),h=(0,l.useCallback)(()=>a.current?.go(">"),[]),x=(0,l.useMemo)(()=>e.map((e,t)=>(0,r.jsx)(i.SplideSlide,{children:(0,r.jsx)(n.default,{priority:t<6,product:e})},`${e.id}-${t}`)),[e]);return(0,r.jsxs)("div",{ref:m,className:"relative group/cv1",children:[(0,r.jsx)("button",{"aria-label":t("common.carousel.previous","Previous"),className:" absolute left-2 top-1/2 -translate-y-1/2 z-20 h-8 w-8 rounded-full bg-background/90 border shadow flex items-center justify-center opacity-0 group-hover/cv1:opacity-100 pointer-events-none group-hover/cv1:pointer-events-auto transition-opacity duration-200 hover:bg-muted ",type:"button",onClick:g,children:(0,r.jsx)(o.A,{className:"h-4 w-4"})}),(0,r.jsx)("button",{"aria-label":t("common.carousel.next","Next"),className:" absolute right-2 top-1/2 -translate-y-1/2 z-20 h-8 w-8 rounded-full bg-background/90 border shadow flex items-center justify-center opacity-0 group-hover/cv1:opacity-100 pointer-events-none group-hover/cv1:pointer-events-auto transition-opacity duration-200 hover:bg-muted ",type:"button",onClick:h,children:(0,r.jsx)(s.A,{className:"h-4 w-4"})}),(0,r.jsx)(i.Splide,{ref:a,"aria-label":t("common.carousel.products","Products"),hasTrack:!1,options:c,onMoved:(t,a)=>p(Math.max(2,Math.round(a/Math.max(1,e.length-1)*100))),children:(0,r.jsx)(i.SplideTrack,{children:x})}),(0,r.jsx)("div",{className:"mt-3 h-[2px] bg-border/40 rounded-full overflow-hidden",children:(0,r.jsx)("div",{className:"h-full bg-foreground/20 rounded-full transition-[width] duration-300 ease-out",style:{width:`${u}%`}})})]})},2:function({products:e}){let{t}=(0,d.k)(),a=(0,l.useRef)(null),c=(0,l.useRef)(null),[u,p]=(0,l.useState)(!0),[g,h]=(0,l.useState)(!1),x=(0,l.useCallback)(()=>a.current?.go("<"),[]),f=(0,l.useCallback)(()=>a.current?.go(">"),[]),b=(0,l.useCallback)((t,a)=>{p(0===a),h(a>=e.length-1)},[e.length]),y=(0,l.useMemo)(()=>e.map((e,t)=>(0,r.jsx)(i.SplideSlide,{children:(0,r.jsx)(n.default,{priority:t<5,product:e})},`${e.id}-${t}`)),[e]);return(0,r.jsx)("div",{ref:c,children:(0,r.jsxs)("div",{className:"cv2 pb-8",children:[(0,r.jsxs)("div",{className:"flex items-center justify-end gap-1.5 mb-3",children:[(0,r.jsx)("button",{"aria-label":t("common.carousel.previous","Previous"),className:" h-8 w-8 rounded-full border flex items-center justify-center text-muted-foreground hover:text-foreground hover:border-foreground/40 disabled:opacity-30 transition-[color,border-color,opacity] duration-150 ",disabled:u,type:"button",onClick:x,children:(0,r.jsx)(o.A,{className:"h-4 w-4"})}),(0,r.jsx)("button",{"aria-label":t("common.carousel.next","Next"),className:" h-8 w-8 rounded-full border flex items-center justify-center text-muted-foreground hover:text-foreground hover:border-foreground/40 disabled:opacity-30 transition-[color,border-color,opacity] duration-150 ",disabled:g,type:"button",onClick:f,children:(0,r.jsx)(s.A,{className:"h-4 w-4"})})]}),(0,r.jsx)(i.Splide,{ref:a,"aria-label":t("common.carousel.products","Products"),hasTrack:!1,options:m,onMoved:b,children:(0,r.jsx)(i.SplideTrack,{children:y})})]})})},3:function({products:e}){let{t}=(0,d.k)(),a=(0,l.useRef)(null),c=(0,l.useRef)(null),m=(0,l.useCallback)(()=>a.current?.go("<"),[]),p=(0,l.useCallback)(()=>a.current?.go(">"),[]),g=(0,l.useMemo)(()=>e.map((e,t)=>(0,r.jsx)(i.SplideSlide,{children:(0,r.jsx)(n.default,{priority:t<4,product:e})},`${e.id}-${t}`)),[e]);return(0,r.jsx)("div",{ref:c,children:(0,r.jsxs)("div",{className:"cv3 relative pb-8 px-10 sm:px-12 md:px-14",children:[(0,r.jsx)("button",{"aria-label":t("common.carousel.previous","Previous"),className:" absolute left-0 top-1/2 -translate-y-1/2 z-20 h-8 w-8 sm:h-9 sm:w-9 md:h-11 md:w-11 rounded-full bg-background border shadow-lg flex items-center justify-center hover:bg-muted transition-colors ",type:"button",onClick:m,children:(0,r.jsx)(o.A,{className:"h-4 w-4 md:h-5 md:w-5"})}),(0,r.jsx)("button",{"aria-label":t("common.carousel.next","Next"),className:" absolute right-0 top-1/2 -translate-y-1/2 z-20 h-8 w-8 sm:h-9 sm:w-9 md:h-11 md:w-11 rounded-full bg-background border shadow-lg flex items-center justify-center hover:bg-muted transition-colors ",type:"button",onClick:p,children:(0,r.jsx)(s.A,{className:"h-4 w-4 md:h-5 md:w-5"})}),(0,r.jsx)(i.Splide,{ref:a,"aria-label":t("common.carousel.products","Products"),hasTrack:!1,options:u,children:(0,r.jsx)(i.SplideTrack,{children:g})})]})})}};var g=a(22660);let h=(0,l.memo)(function({products:e,columns:t=4,carouselVariant:a}){let{config:i}=(0,g.Ku)(),o=p[a??i?.ui?.carousel?.variant??1]??p[1],s=(0,l.useMemo)(()=>e.map((e,t)=>(0,r.jsx)("div",{className:"h-full",children:(0,r.jsx)(n.default,{priority:t<4,product:e})},`${e.id}-${t}`)),[e]);return e.length<=5?(0,r.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3 md:gap-4",children:s}):(0,r.jsx)(o,{columns:t,products:e})},(e,t)=>{if(e.carouselVariant!==t.carouselVariant)return!1;if(e.products===t.products)return!0;if(e.products.length!==t.products.length)return!1;for(let a=0;a{a.d(t,{Hc:()=>u,wM:()=>g,xQ:()=>m});var r=a(95155),l=a(12115),i=a(76908),o=a(154),s=a(3538),n=a(80430),d=a(61283),c=a(71360);function m(e){let t=e.trim();if(!t.toLowerCase().startsWith("{e.preventDefault(),e.stopPropagation();let a="touches"in e?e.touches[0].clientX:e.clientX,r=b.current?.offsetWidth??u??560,l=e=>{t({width:Math.max(200,Math.round(r+(("touches"in e?e.touches[0].clientX:e.clientX)-a)))})},i=()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",i),window.removeEventListener("touchmove",l),window.removeEventListener("touchend",i)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",i),window.addEventListener("touchmove",l,{passive:!1}),window.addEventListener("touchend",i)},[u,t]),v=(0,l.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let a="touches"in e?e.touches[0].clientY:e.clientY,r=p??400,l=e=>{t({height:Math.max(120,Math.round(r+(("touches"in e?e.touches[0].clientY:e.clientY)-a)))})},i=()=>{window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",i),window.removeEventListener("touchmove",l),window.removeEventListener("touchend",i)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",i),window.addEventListener("touchmove",l,{passive:!1}),window.addEventListener("touchend",i)},[p,t]);return(0,r.jsxs)(o.VR,{className:"relative my-4",style:{userSelect:"none"},children:[a&&i.isEditable&&(0,r.jsxs)("div",{className:"absolute left-1/2 -translate-x-1/2 z-30 flex items-center gap-0.5 rounded-xl border bg-popover shadow-lg px-1.5 py-1 text-popover-foreground",role:"toolbar",style:{bottom:"calc(100% + 8px)",whiteSpace:"nowrap"},onMouseDown:e=>e.stopPropagation(),children:[(0,r.jsx)(h,{active:"left"===f,title:"Align left",onClick:()=>t({align:"left"}),children:(0,r.jsx)(s.A,{className:"w-3.5 h-3.5"})}),(0,r.jsx)(h,{active:"center"===f,title:"Align center",onClick:()=>t({align:"center"}),children:(0,r.jsx)(n.A,{className:"w-3.5 h-3.5"})}),(0,r.jsx)(h,{active:"right"===f,title:"Align right",onClick:()=>t({align:"right"}),children:(0,r.jsx)(d.A,{className:"w-3.5 h-3.5"})}),(0,r.jsx)("span",{className:"w-px h-4 bg-border mx-1"}),(0,r.jsxs)("div",{className:"flex items-center gap-1",title:"Width (px, empty = full)",children:[(0,r.jsx)("span",{className:"text-[10px] text-muted-foreground font-mono",children:"W"}),(0,r.jsx)("input",{className:"w-16 h-6 text-xs px-1.5 border rounded-md bg-background text-center",min:200,placeholder:"full",type:"number",value:u??"",onChange:e=>{let a=parseInt(e.target.value);t({width:isNaN(a)?null:a})}})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1",title:"Height (px)",children:[(0,r.jsx)("span",{className:"text-[10px] text-muted-foreground font-mono",children:"H"}),(0,r.jsx)("input",{className:"w-16 h-6 text-xs px-1.5 border rounded-md bg-background text-center",min:120,type:"number",value:p??400,onChange:e=>{let a=parseInt(e.target.value);isNaN(a)||t({height:a})}})]}),(0,r.jsx)("span",{className:"w-px h-4 bg-border mx-1"}),(0,r.jsx)(h,{title:"Remove embed",onClick:()=>i.chain().focus().deleteNode("iframe").run(),children:(0,r.jsx)(c.A,{className:"w-3.5 h-3.5 text-rose-500"})})]}),(0,r.jsx)("div",{style:{display:"flex",justifyContent:"left"===f?"flex-start":"right"===f?"flex-end":"center"},children:(0,r.jsxs)("div",{ref:b,style:{position:"relative",display:"inline-block",width:u?`${u}px`:"100%",maxWidth:"100%"},children:[(0,r.jsx)("iframe",{allow:g||void 0,allowFullScreen:"true"===x||!0===x,frameBorder:"0",height:p??400,scrolling:"no",src:m,style:{border:"none",overflow:"hidden",display:"block",width:"100%"},title:"Embedded content"}),a&&(0,r.jsx)("div",{className:"absolute inset-0 ring-2 ring-blue-500 ring-offset-2 pointer-events-none rounded-sm"}),a&&i.isEditable&&(0,r.jsx)("div",{"aria-label":"Drag to resize width","aria-valuenow":u??560,className:"absolute top-1/2 -translate-y-1/2 w-3 flex flex-col items-center justify-center gap-[3px] cursor-ew-resize z-20",role:"slider",style:{right:-10},tabIndex:0,title:"Drag to resize width",onMouseDown:y,onTouchStart:y,children:(0,r.jsx)("span",{className:"w-1 h-5 rounded-full bg-blue-500 opacity-80"})}),a&&i.isEditable&&(0,r.jsx)("div",{"aria-label":"Drag to resize height","aria-valuenow":p??400,className:"absolute left-1/2 -translate-x-1/2 h-3 flex flex-row items-center justify-center gap-[3px] cursor-ns-resize z-20",role:"slider",style:{bottom:-10},tabIndex:0,title:"Drag to resize height",onMouseDown:v,onTouchStart:v,children:(0,r.jsx)("span",{className:"h-1 w-5 rounded-full bg-blue-500 opacity-80"})})]})})]})}let g=i.bP.create({name:"iframe",group:"block",atom:!0,draggable:!0,addAttributes:()=>({src:{default:null},width:{default:null},height:{default:400},allow:{default:null},allowfullscreen:{default:!0},align:{default:"center"}}),parseHTML:()=>[{tag:"div[data-iframe-wrapper] iframe[src]",getAttrs:e=>{let t=e.closest("[data-iframe-wrapper]"),a=e.getAttribute("width")||e.style.width?.replace("px",""),r=e.getAttribute("height")||e.style.height?.replace("px",""),l=t?.style.justifyContent;return{src:e.getAttribute("src"),width:a&&parseInt(a)||null,height:r&&parseInt(r)||400,allow:e.getAttribute("allow"),allowfullscreen:e.hasAttribute("allowfullscreen")||e.hasAttribute("allowFullScreen")?"true":"false",align:"flex-start"===l?"left":"flex-end"===l?"right":"center"}}},{tag:"iframe[src]",getAttrs:e=>{let t=e.getAttribute("width"),a=e.getAttribute("height");return{src:e.getAttribute("src"),width:t&&parseInt(t)||null,height:a&&parseInt(a)||400,allow:e.getAttribute("allow"),allowfullscreen:e.hasAttribute("allowfullscreen")||e.hasAttribute("allowFullScreen")?"true":"false",align:"center"}}}],renderHTML({HTMLAttributes:e}){let{align:t,width:a,height:r,src:l,allow:o,allowfullscreen:s}=e,n=["border:none;overflow:hidden;display:block;width:100%",r?`height:${r}px`:"height:400px"].join(";");return["div",{"data-iframe-wrapper":"true",style:`display:flex;justify-content:${"left"===t?"flex-start":"right"===t?"flex-end":"center"}`},["div",{style:`position:relative;display:inline-block;width:${a?a+"px":"100%"};max-width:100%`},["iframe",(0,i.KV)({src:l,allow:o||void 0,allowfullscreen:s||void 0},{frameborder:"0",scrolling:"no",style:n})]]]},addNodeView:()=>(0,o.gu)(p)});function h({active:e,title:t,onClick:a,children:l}){return(0,r.jsx)("button",{className:["flex items-center justify-center w-7 h-7 rounded-lg transition-colors touch-manipulation",e?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"].join(" "),title:t,type:"button",onClick:a,children:l})}},52467:(e,t,a)=>{a.d(t,{LiveTenantProvider:()=>u,a:()=>m});var r=a(95155),l=a(12115),i=a(20063);let o=new Map;"undefined"!=typeof setInterval&&setInterval(()=>{let e=Date.now();for(let[t,a]of o.entries())a.expires{e&&(Array.isArray(e)?e:[e]).forEach(e=>{if(!e||document.querySelector(`link[data-font-loader="${CSS.escape(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.setAttribute("data-font-loader",e),t.href=e,document.head.appendChild(t)})},[e]),null}var d=a(20973);let c=(0,l.createContext)(null);function m(){let e=(0,l.useContext)(c);return e||{tenant:{},isEditorMode:!1,isTranslationMode:!1,isBrowseMode:!1}}function u({initialTenant:e,children:t}){let{tenant:a,isEditorMode:o,isTranslationMode:m,isBrowseMode:u}=function(e){let t=(0,l.useMemo)(()=>window.self!==window.top,[]),[a,r]=(0,l.useState)(e),[o,s]=(0,l.useState)(!1),[n,d]=(0,l.useState)(!1),[c,m]=(0,l.useState)(!1),[u,p]=(0,l.useState)(!1),g=(0,i.useRouter)(),h=(0,l.useRef)(null),x=(0,l.useRef)(null),f=(0,l.useRef)(null);(0,l.useEffect)(()=>{t&&s(!0)},[t]),(0,l.useEffect)(()=>{if(!t)return void r(e);(null===f.current||JSON.stringify(e)===JSON.stringify(f.current))&&r(e)},[e,t]),(0,l.useEffect)(()=>{if(!t||!u)return;let e=null,r=t=>{let a=t.target.closest("[data-section-type]");a&&a!==e?(e&&(e.style.outline="",e.style.cursor=""),e=a,a.style.outline="3px solid #3b82f6",a.style.outlineOffset="-3px",a.style.cursor="crosshair"):!a&&e&&(e.style.outline="",e.style.cursor="",e=null)},l=e=>{e.preventDefault(),e.stopPropagation();let t=e.target.closest("[data-section-type]");if(t){let e=t.getAttribute("data-section-type"),r=t.getAttribute("data-section-order"),l=t.getAttribute("data-section-id"),i=r?parseInt(r):null,o="",s=window.location.pathname;if(s.includes("/info/")){let e=s.split("/info/")[1]?.split("?")[0],t=a.infoPages?.pages.findIndex(t=>t.slug===e);o=-1!==t?`infoPages.pages.${t}.config.sections.${i}`:`infoPages.pages.?.config.sections.${i}`}else if(s.split("/").length>2){let e=s.split("/").slice(2).join("/"),t=a.dynamicPages?.pages.findIndex(t=>t.slug===e);o=-1!==t?`dynamicPages.pages.${t}.sections.${i}`:`dynamicPages.pages.?.sections.${i}`}else o=`homepage.sections.${i}`;window.parent.postMessage({type:"STOREFRONT_AI_ELEMENT_SELECTED",path:o,label:`${e} Section`,value:e,order:i,sectionId:l},"*"),t.style.backgroundColor="rgba(59, 130, 246, 0.2)",setTimeout(()=>{t.style.backgroundColor=""},200)}};return window.addEventListener("mouseover",r),window.addEventListener("click",l,!0),()=>{window.removeEventListener("mouseover",r),window.removeEventListener("click",l,!0),e&&(e.style.outline="",e.style.cursor="")}},[t,u]);let b=(0,l.useCallback)(e=>{x.current=e,f.current=e,h.current&&clearTimeout(h.current),h.current=setTimeout(async()=>{let e=x.current;if(e)try{let t=await fetch("/api/preview-config",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({config:e})});if(t.ok){let e=await t.json();e.id&&(document.cookie=`komero_preview_id=${e.id}; path=/; max-age=3600; SameSite=Lax`),g.refresh()}}catch(e){console.error("Failed to update preview config:",e)}},400)},[g]);return(0,l.useEffect)(()=>{if(!t)return;let e=e=>{if(e.data?.type==="UPDATE_TENANT_CONFIG"&&e.data.config&&(r(e.data.config),e.data.syncOnly||b(e.data.config)),e.data?.type==="PUBLISH_TENANT_CONFIG"&&fetch("/api/revalidate",{method:"POST",headers:{"content-type":"application/json"},credentials:"include",body:JSON.stringify({paths:e.data.paths})}).then(e=>e.json().catch(()=>({}))).then(e=>{window.parent.postMessage({type:"STOREFRONT_REVALIDATED",ok:!!e?.ok,tag:e?.tag},"*")}).catch(e=>{console.error("Failed to revalidate live storefront:",e),window.parent.postMessage({type:"STOREFRONT_REVALIDATED",ok:!1},"*")}),e.data?.type==="ENABLE_TRANSLATION_INSPECT"||e.data?.type==="SET_INSPECT_MODE"&&e.data.enabled?d(!0):(e.data?.type==="DISABLE_TRANSLATION_INSPECT"||e.data?.type==="SET_INSPECT_MODE"&&!1===e.data.enabled)&&d(!1),e.data?.type==="SET_BROWSE_MODE"&&m(!!e.data.enabled),e.data?.type==="SET_AI_TARGETING_MODE"&&p(!!e.data.enabled),e.data?.type==="ADMIN_SCROLL_TO_SECTION"){let{id:t,sectionType:a,sectionOrder:r,block:l}=e.data,i=t?`[data-section-id="${t}"]`:null!=r?`[data-section-type="${a}"][data-section-order="${r}"]`:`[data-section-type="${a}"]`,o=document.querySelector(i);if(!o)return;o.scrollIntoView({behavior:"smooth",block:l??"start"});let s=a??o.getAttribute("data-section-type")??void 0;setTimeout(()=>{let t=o.getBoundingClientRect();e.source?.postMessage({type:"STOREFRONT_ACTIVE_SECTION",sectionType:s,sectionOrder:r,viewportTop:t.top,viewportHeight:t.height,viewportTotal:window.innerHeight},"*")},400)}};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e),h.current&&clearTimeout(h.current)}},[t,b]),(0,l.useEffect)(()=>{if(!t)return;let e=e=>{0===e.button&&window.parent.postMessage({type:"ADMIN_PREVIEW_POINTER_DOWN"},"*")};return window.addEventListener("mousedown",e,!0),()=>window.removeEventListener("mousedown",e,!0)},[t]),{tenant:a,isEditorMode:o,isTranslationMode:n,isBrowseMode:c,isAiTargetingMode:u}}(e),p=(0,i.usePathname)();(0,l.useEffect)(()=>{o&&a?.theme&&(0,s.s)(a.theme)},[a,o]),(0,l.useEffect)(()=>{if(!o)return;let e=p?.replace(/^\/[a-z]{2,3}(?=\/|$)/,"")||"";window.parent.postMessage({type:"STOREFRONT_PATH_CHANGE",path:e||"/"},"*")},[p,o]);let g=(0,l.useMemo)(()=>{if(!o||!a?.theme?.fonts)return[];let e=[],t=new Set;if(a.theme.fonts.family&&(e=>{if(!e||e.includes("://")||e.startsWith("//")||e.includes(".css"))return;let a=e.split(",")[0].trim().replace(/['"]/g,"");a&&t.add(a)})(a.theme.fonts.family),t.size>0){let a=Array.from(t).map(e=>`family=${e.replace(/ /g,"+")}:wght@300;400;500;600;700`).join("&");e.push(`https://fonts.googleapis.com/css2?${a}&display=swap`)}return a.theme.fonts.url&&(Array.isArray(a.theme.fonts.url)?e.push(...a.theme.fonts.url.filter(Boolean)):e.push(a.theme.fonts.url)),e},[a,o]);return(0,r.jsxs)(c.Provider,{value:{tenant:a,isEditorMode:o,isTranslationMode:m,isBrowseMode:u},children:[o&&(0,r.jsx)(n,{url:g}),o&&(0,r.jsx)(d.S,{isBrowseMode:u}),t]})}},52865:(e,t,a)=>{a.d(t,{default:()=>s});var r=a(95155),l=a(12115),i=a(15239);function o({rating:e}){return(0,r.jsx)("div",{"aria-label":`${e} out of 5 stars`,className:"flex gap-0.5",children:[1,2,3,4,5].map(t=>(0,r.jsx)("svg",{className:`w-4 h-4 ${t<=e?"text-yellow-400":"text-gray-300 dark:text-gray-600"}`,fill:"currentColor",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"})},t))})}function s({data:e,locale:t,paddingClass:a="",sectionOrder:s}){let n=e.testimonials??[],d="grid"!==e.layout,c=e.columns??3,m=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!d||!e.autoplay||n.length<=1)return;let t=setInterval(()=>{let e=m.current;if(!e)return;let t=e.firstElementChild?.clientWidth??320;e.scrollLeft+e.clientWidth>=e.scrollWidth-10?e.scrollTo({left:0,behavior:"smooth"}):e.scrollBy({left:t+16,behavior:"smooth"})},e.autoplayInterval??4e3);return()=>clearInterval(t)},[d,e.autoplay,e.autoplayInterval,n.length]);let u=(a,l)=>(0,r.jsxs)("div",{className:`flex flex-col gap-4 bg-white dark:bg-gray-800 rounded-2xl p-6 shadow-sm border border-gray-100 dark:border-gray-700 ${d?"flex-shrink-0 w-80 snap-start":""}`,children:[!1!==e.showRating&&a.rating&&(0,r.jsx)(o,{rating:a.rating}),(0,r.jsxs)("p",{className:"text-muted-foreground dark:text-muted-foreground text-sm leading-relaxed flex-1",children:["“",a.text[t]??a.text.en,"”"]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 mt-2",children:[!1!==e.showAvatar&&(0,r.jsx)("div",{className:"flex-shrink-0 w-10 h-10 rounded-full overflow-hidden bg-brand-primary/20 flex items-center justify-center",children:a.avatarUrl?(0,r.jsx)(i.default,{alt:a.name,className:"object-cover w-full h-full",height:40,src:a.avatarUrl,width:40}):(0,r.jsx)("span",{className:"text-sm font-bold text-brand-primary",children:a.name.charAt(0).toUpperCase()})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-foreground dark:text-foreground",children:a.name}),(a.role||a.company)&&(0,r.jsxs)("p",{className:"text-xs text-muted-foreground dark:text-muted-foreground",children:[a.role?a.role[t]??a.role.en:"",a.role&&a.company?" \xb7 ":"",a.company??""]})]})]})]},l);return(0,r.jsxs)("div",{className:a,"data-section-order":s,"data-section-type":"Testimonials",children:[(e.title||e.subtitle)&&(0,r.jsxs)("div",{className:"text-center mb-10",children:[e.title&&(0,r.jsx)("h2",{className:"font-heading text-3xl font-bold text-foreground dark:text-foreground",children:e.title[t]??e.title.en}),e.subtitle&&(0,r.jsx)("p",{className:"mt-3 text-muted-foreground dark:text-muted-foreground",children:e.subtitle[t]??e.subtitle.en})]}),d?(0,r.jsx)("div",{ref:m,className:"flex gap-4 overflow-x-auto snap-x snap-mandatory pb-4 scrollbar-hide",children:n.map(u)}):(0,r.jsx)("div",{className:`grid grid-cols-1 ${{2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4"}[c]??"md:grid-cols-3"} gap-6`,children:n.map(u)})]})}},56654:(e,t,a)=>{a.d(t,{t:()=>r});function r(e){if(e&&0!==e.length)return e[0]}},62391:(e,t,a)=>{function r(e,t){if(null!=e[t])return e[t];if(null!=e.en)return e.en;let a=Object.keys(e)[0];return a?e[a]:""}function l(e,t){if(e)return r(e,t)||void 0}a.d(t,{G:()=>l,t:()=>r})},63118:(e,t,a)=>{a.d(t,{CN:()=>g,De:()=>h,EI:()=>j,H1:()=>N,K7:()=>y,U4:()=>c,Ur:()=>x,VZ:()=>v,_R:()=>w,cB:()=>s,cC:()=>n,d4:()=>o,gg:()=>u,pD:()=>m,st:()=>b,v8:()=>d,y0:()=>i,ys:()=>p,zZ:()=>f});var r=a(25177);function l(e){let t=new URLSearchParams;for(let[a,r]of Object.entries(e))null!=r&&""!==r&&t.append(a,String(r));let a=t.toString();return a?`?${a}`:""}async function i(e={}){let t=`https://api.komero.ge/api/blog/posts${l(e)}`;return(0,r.nr)(t,{requireAuth:!1,cache:"no-store"})}async function o(){return(0,r.nr)("https://api.komero.ge/api/blog/categories",{requireAuth:!1})}async function s(){return(0,r.nr)("https://api.komero.ge/api/blog/tags",{requireAuth:!1})}async function n(e,t){return(0,r.nr)(`https://api.komero.ge/api/blog/posts/${e}/comments`,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"},requireAuth:!1})}async function d(e={}){return(0,r.nr)(`https://api.komero.ge/api/blog/admin/posts${l(e)}`,{adminAuth:!0,cache:"no-store",requireAuth:!0})}async function c(e){return(0,r.nr)(`https://api.komero.ge/api/blog/admin/posts/${e}`,{adminAuth:!0,cache:"no-store",requireAuth:!0})}async function m(e){return(0,r.nr)("https://api.komero.ge/api/blog/posts",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"},adminAuth:!0,requireAuth:!0})}async function u(e,t){return(0,r.nr)(`https://api.komero.ge/api/blog/posts/${e}`,{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json"},adminAuth:!0})}async function p(e){return(0,r.nr)(`https://api.komero.ge/api/blog/posts/${e}`,{method:"DELETE",adminAuth:!0})}async function g(e){return(0,r.nr)(`https://api.komero.ge/api/blog/posts/${e}/publish`,{method:"POST",adminAuth:!0,requireAuth:!0})}async function h(e){return(0,r.nr)(`https://api.komero.ge/api/blog/posts/${e}/archive`,{method:"POST",adminAuth:!0,requireAuth:!0})}async function x(e,t){let a=new FormData;return a.append("id",e),a.append("files",t,t.name),(0,r.nr)("https://api.komero.ge/api/blog/images",{method:"POST",body:a,adminAuth:!0,requireAuth:!0})}async function f(e){return(0,r.nr)("https://api.komero.ge/api/blog/categories",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"},adminAuth:!0,requireAuth:!0})}async function b(e,t){return(0,r.nr)(`https://api.komero.ge/api/blog/categories/${e}`,{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json"},adminAuth:!0,requireAuth:!0})}async function y(e){return(0,r.nr)(`https://api.komero.ge/api/blog/categories/${e}`,{method:"DELETE",adminAuth:!0,requireAuth:!0})}async function v(e){return(0,r.nr)("https://api.komero.ge/api/blog/tags",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"},adminAuth:!0,requireAuth:!0})}async function w(e){return(0,r.nr)(`https://api.komero.ge/api/blog/tags/${e}`,{method:"DELETE",adminAuth:!0,requireAuth:!0})}async function j(e={}){return(0,r.nr)(`https://api.komero.ge/api/blog/admin/comments${l(e)}`,{adminAuth:!0,requireAuth:!0,cache:"no-store"})}async function N(e,t){return(0,r.nr)(`https://api.komero.ge/api/blog/comments/${e}/moderate`,{method:"PUT",body:JSON.stringify(t),headers:{"Content-Type":"application/json"},adminAuth:!0,requireAuth:!0})}},69357:(e,t,a)=>{a.d(t,{J0:()=>U,qP:()=>B,Qr:()=>em});var r=a(55653),l=a(77637),i=a(52865),o=a(95155),s=a(15239),n=a(52619),d=a.n(n),c=a(83908),m=a(97901),u=a(84462),p=a(52987),g=a(2821),h=a(6132);function x({children:e,className:t="",paddingClass:a="",isLoading:r,error:l,isEmpty:i,emptyMessage:s="No items found",loadingSkeleton:n}){return l?(0,o.jsx)("section",{className:t,children:(0,o.jsx)("div",{className:a,children:(0,o.jsxs)("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[(0,o.jsx)(h.A,{className:"h-12 w-12 text-destructive mb-4"}),(0,o.jsx)("h3",{className:"font-heading text-lg font-semibold text-foreground mb-2",children:"Something went wrong"}),(0,o.jsx)("p",{className:"font-primary text-muted-foreground text-sm max-w-md",children:l.message||"Failed to load content"})]})})}):r&&n?(0,o.jsx)("section",{className:t,children:n}):i?(0,o.jsx)("section",{className:t,children:(0,o.jsx)("div",{className:a,children:(0,o.jsx)("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:(0,o.jsx)("p",{className:"font-primary text-muted-foreground",children:s})})})}):(0,o.jsx)("section",{className:t,children:e})}var f=a(97094),b=a(97003),y=a(88873),v=a(62391),w=a(30655);async function j({data:e,locale:t,className:a,paddingClass:r="",sectionOrder:l}){let i=e.filterBy?.productCount||e.filterBy?.productIds?.length||12,s=null,n=null;try{if(e.filterBy?.productIds&&e.filterBy.productIds.length>0)s=(await (0,y.ob)(e.filterBy.productIds)).slice(0,i);else{let t={};e.filterBy?.categoryIds?.length&&(t.categoryIds=e.filterBy.categoryIds),e.filterBy?.brandIds?.length&&(t.brandIds=e.filterBy.brandIds),e.filterBy?.condition?.length&&(t.condition=e.filterBy.condition),e.filterBy?.stockStatus&&(t.stockStatus=e.filterBy.stockStatus),e.filterBy?.minPrice!==void 0&&(t.minPrice=e.filterBy.minPrice),e.filterBy?.maxPrice!==void 0&&(t.maxPrice=e.filterBy.maxPrice),e.filterBy?.isRandom!==void 0&&(t.isRandom=e.filterBy.isRandom),e.filterBy?.isNewArrival&&(t.isNewArrival=e.filterBy.isNewArrival),e.filterBy?.isLiquidated&&(t.isLiquidated=e.filterBy.isLiquidated),e.filterBy?.isComingSoon&&(t.isCommingSoon=e.filterBy.isComingSoon),e.filterBy?.hasDiscount&&(t.isDiscounted=e.filterBy.hasDiscount),s=((await (0,y.i1)({filter:t,pageSize:i,page:1,sortBy:e.sortBy||"featured"})).items||[]).slice(0,i)}}catch(e){n=e,console.error("Failed to load products:",e)}let c="carousel"===e.layout,m=e.columns||4,u=c?"flex gap-3 md:gap-4 overflow-x-auto snap-x snap-mandatory scrollbar-hide pb-4":`${(e=>{let t={2:"grid grid-cols-2 md:grid-cols-2 gap-2 sm:gap-3",3:"grid grid-cols-2 md:grid-cols-3 gap-2 sm:gap-3",4:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-2 sm:gap-3",5:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-5 gap-2 sm:gap-3",6:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 gap-2 sm:gap-3"};return t[e]||t[4]})(m)} gap-3 md:gap-4`,h=(0,o.jsx)("div",{className:a||"",children:(0,o.jsxs)("div",{className:`container mx-auto ${r}`,children:[(0,o.jsx)("div",{className:"h-12 bg-muted rounded-lg w-64 mb-10 animate-pulse"}),(0,o.jsx)("div",{className:u,children:Array.from({length:i}).map((e,t)=>(0,o.jsx)(f.ProductCardSkeleton,{},t))})]})}),j=r.includes("p-0")||r.includes("px-0"),N="ka"===t?"ყველას ნახვა":"View All",k="ka"===t?"ყველა":"All";return(0,o.jsx)("div",{className:"min-h-[400px] md:min-h-[600px]","data-section-order":l,"data-section-type":"ProductRail",children:(0,o.jsx)(x,{className:a||"",emptyMessage:e.filterBy?.isNewArrival?"No new arrivals at the moment":e.filterBy?.isLiquidated?"No liquidated items available":e.filterBy?.isComingSoon?"No coming soon items":e.filterBy?.hasDiscount?"No discounted items available":e.filterBy?.categoryIds?.length?"No products found in selected categories":e.filterBy?.brandIds?.length?"No products found from selected brands":"No products available",error:n,isEmpty:!s||0===s.length,loadingSkeleton:h,paddingClass:r,children:(0,o.jsxs)("div",{className:`${r}`,children:[(0,o.jsxs)("div",{className:(0,g.A)("flex mb-6 md:mb-10 gap-2 items-center",j&&"px-4","center"===e.titlePosition&&"flex-col justify-center text-center","right"===e.titlePosition&&"flex-row-reverse justify-between text-right",(!e.titlePosition||"left"===e.titlePosition)&&"flex-row justify-between text-left"),children:[(0,o.jsxs)("div",{className:"flex-1 min-w-0 w-full",children:[(0,o.jsx)("h2",{className:"font-heading text-lg md:text-3xl lg:text-4xl font-bold text-foreground",children:(0,v.t)(e.title,t)}),e.subtitle&&(0,o.jsx)("p",{className:"font-primary hidden md:block text-muted-foreground mt-2 md:mt-3 text-sm md:text-lg",children:(0,v.G)(e.subtitle,t)})]}),(0,o.jsx)("div",{className:(0,g.A)("flex-shrink-0","center"===e.titlePosition&&"mt-3"),children:(0,o.jsx)(b.$,{asChild:!0,className:"group",size:"sm",variant:"ghost",children:(0,o.jsxs)(d(),{className:"font-primary flex items-center gap-1 text-sm font-semibold",href:e.viewAllHref,children:[(0,o.jsx)("span",{className:"font-primary hidden sm:inline",children:N}),(0,o.jsx)("span",{className:"font-primary sm:hidden",children:k}),(0,o.jsx)(p.A,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4 group-hover:translate-x-1 transition-transform"})]})})})]}),c?(0,o.jsx)(w.default,{carouselVariant:e.carouselVariant,columns:m,products:s||[]}):(0,o.jsx)("div",{className:u,children:s?.map((e,t)=>(0,o.jsx)("div",{className:"h-full",children:(0,o.jsx)(f.default,{priority:t<4,product:e})},e.id))})]})})})}var N=a(96117),k=a(21333),C=a(92531),S=a(99274);async function A({data:e,locale:t,sectionOrder:a,paddingClass:r}){let l=[];try{l=await (0,S.QU)()}catch(e){return null}return l&&0!==l.length?(0,o.jsx)("div",{"data-section-order":a,"data-section-type":"CategoryCarousel",children:(0,o.jsx)(C.default,{categories:l,data:e,locale:t,paddingClass:r})}):null}var I=a(4562),P=a(5327);async function E({data:e,locale:t,sectionOrder:a,paddingClass:r}){let l=[];try{l=await (0,P.E1)()}catch(e){return null}if(!l||0===l.length)return null;let i=l;e.brandIds&&e.brandIds.length>0&&(i=l.filter(t=>e.brandIds.includes(t.id)));let s=e.maxBrands?i.slice(0,e.maxBrands):i;return(0,o.jsx)("div",{"data-section-order":a,"data-section-type":"BrandCarousel",children:(0,o.jsx)(I.default,{brands:s,data:e,locale:t,paddingClass:r})})}var M=a(63118),_=a(18867),z=a(73637);async function T({data:e,locale:t,className:a,paddingClass:r="",sectionOrder:l}){let i=null,s=null;try{i=(await (0,M.y0)({page:1,pageSize:e.limit||("carousel"===e.layout?6:3),sortBy:"date",sortOrder:"desc"})).items||[]}catch(e){s=e,console.error("Failed to load blog posts:",e)}let n=e.columns||3,c=e.cardVariant??1,m=e.showDate??!0,u=e.showAuthor??!0,g=e.showExcerpt??!0,h=e.layout||"grid";return(0,o.jsx)("div",{"data-section-order":l,"data-section-type":"FeaturedBlogPosts",children:(0,o.jsx)(x,{className:a||"bg-slate-50/50 dark:bg-slate-950/50 py-16 md:py-24",emptyMessage:"No blog posts available",error:s,isEmpty:!i||0===i.length,paddingClass:r,children:(0,o.jsxs)("div",{className:`${r}`,children:[(0,o.jsxs)("div",{className:"flex flex-col md:flex-row md:items-end justify-between mb-12 md:mb-16 gap-8",children:[(0,o.jsxs)("div",{className:"max-w-3xl",children:[e.title&&(0,o.jsx)("h2",{className:"font-heading text-4xl md:text-5xl lg:text-7xl font-black text-foreground dark:text-foreground mb-6 tracking-tight leading-[0.9]",children:(0,v.t)(e.title,t)}),e.subtitle&&(0,o.jsx)("p",{className:"font-primary text-muted-foreground dark:text-muted-foreground text-lg md:text-xl leading-relaxed max-w-2xl",children:(0,v.G)(e.subtitle,t)})]}),e.viewAllHref&&(0,o.jsx)(b.$,{asChild:!0,className:"rounded-full h-12 px-8 text-sm font-bold group transition-all hover:shadow-lg shrink-0",variant:"default",children:(0,o.jsxs)(d(),{href:e.viewAllHref,children:[e.viewAllText?(0,v.t)(e.viewAllText,t):"Explore Our Blog",(0,o.jsx)(p.A,{className:"ml-2 w-4 h-4 transition-transform group-hover:translate-x-1"})]})})]}),"carousel"===h?(0,o.jsxs)(z.Carousel,{className:"w-full relative group/carousel",opts:{align:"start",loop:!0},children:[(0,o.jsx)(z.CarouselContent,{className:"-ml-4 md:-ml-6",children:i?.map(e=>(0,o.jsx)(z.CarouselItem,{className:`pl-4 md:pl-6 ${(e=>{let t={1:"basis-full",2:"basis-full md:basis-1/2",3:"basis-full sm:basis-1/2 lg:basis-1/3",4:"basis-full sm:basis-1/2 lg:basis-1/4"};return t[e]||t[3]})(n)}`,children:(0,o.jsx)(_.default,{locale:t,post:e,showAuthor:u,showDate:m,showExcerpt:g,variant:c})},e.id))}),(0,o.jsxs)("div",{className:"flex justify-end gap-3 mt-8",children:[(0,o.jsx)(z.CarouselPrevious,{className:"static translate-y-0 h-10 w-10 rounded-full border-slate-200 dark:border-slate-800"}),(0,o.jsx)(z.CarouselNext,{className:"static translate-y-0 h-10 w-10 rounded-full border-slate-200 dark:border-slate-800"})]})]}):(0,o.jsx)("div",{className:"list"===h?"flex flex-col gap-12 max-w-5xl mx-auto":(e=>{let t={1:"grid grid-cols-1 gap-8",2:"grid grid-cols-1 md:grid-cols-2 gap-8",3:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",4:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8"};return t[e]||t[3]})(n),children:i?.map(e=>(0,o.jsx)("div",{className:"h-full",children:(0,o.jsx)(_.default,{locale:t,post:e,showAuthor:u,showDate:m,showExcerpt:g,variant:c})},e.id))})]})})})}var Y=a(3642);let $={animation:l.f3.optional()},B={none:"w-full",compact:"max-w-5xl mx-auto px-4 md:px-8 lg:px-12",default:"max-w-7xl mx-auto px-4 md:px-6 lg:px-8",wide:"max-w-[1600px] mx-auto px-4 md:px-8 lg:px-12",full:"w-full px-0"},U="py-6 md:py-16 lg:py-20",O=r.Ik({en:r.Yj()}).catchall(r.Yj()).refine(e=>"string"==typeof e.en,{message:"English (en) translation is required"}),D=r.Ik({layout:r.k5(["carousel","grid"]),columns:r.KC([r.eu(1),r.eu(2),r.eu(3),r.eu(4),r.eu(5)]).optional(),carouselStyle:r.k5(["full-width","grid"]).optional(),scrollDirection:r.k5(["horizontal","vertical"]).optional(),showArrows:r.zM().optional(),autoScroll:r.zM().optional(),autoScrollInterval:r.ai().optional(),rounded:r.zM().optional(),bannerHeight:r.Yj().optional(),bannerHeightTablet:r.Yj().optional(),bannerHeightMobile:r.Yj().optional(),banners:r.YO(r.Ik({imageUrl:r.Yj(),laptopImageUrl:r.Yj().optional(),tabletImageUrl:r.Yj().optional(),mobileImageUrl:r.Yj().optional(),href:r.Yj(),alt:O,badge:O.optional(),title:O.optional(),description:O.optional()}))}),R=r.g1(r.Yj(),r.Yj()),L=r.Ik({html:r.KC([r.Yj(),R]),css:r.Yj().optional(),padding:r.k5(["none","small","medium","large"]).optional(),fullWidth:r.zM().optional(),containerClass:r.Yj().optional()}),H=r.Ik({customName:r.Yj().optional(),title:O,subtitle:O.optional(),titlePosition:r.k5(["left","center","right"]).optional(),layout:r.k5(["carousel","grid"]),columns:r.KC([r.eu(2),r.eu(3),r.eu(4),r.eu(5),r.eu(6)]).optional(),viewAllHref:r.Yj(),filterBy:r.Ik({categoryIds:r.YO(r.Yj()).optional(),brandIds:r.YO(r.Yj()).optional(),productIds:r.YO(r.Yj()).optional(),condition:r.YO(r.ai()).optional(),stockStatus:r.ai().optional(),isNewArrival:r.zM().optional(),isLiquidated:r.zM().optional(),isComingSoon:r.zM().optional(),hasDiscount:r.zM().optional(),minPrice:r.ai().optional(),maxPrice:r.ai().optional(),isRandom:r.zM().optional(),productCount:r.ai().optional(),facetFilters:r.YO(r.bz()).optional()}).optional(),sortBy:r.k5(["featured","newest","price-low","price-high","rating","name"]).optional(),carouselVariant:r.KC([r.eu(1),r.eu(2),r.eu(3)]).optional()}),F=r.Ik({title:O.optional(),subtitle:O.optional(),showHeader:r.zM().optional(),showAllCard:r.zM().optional(),allCardText:O.optional(),allCardSubtext:O.optional(),allCategoriesHref:r.Yj().optional(),categoryIds:r.YO(r.Yj()).optional(),limit:r.ai().optional(),slidesPerView:r.ai().optional(),showArrows:r.zM().optional(),showPagination:r.zM().optional(),autoplay:r.zM().optional(),autoplayInterval:r.ai().optional(),cardHeight:r.Yj().optional(),cardWidth:r.Yj().optional()}),V=r.Ik({title:O.optional(),subtitle:O.optional(),showHeader:r.zM().optional(),brandIds:r.YO(r.Yj()).optional(),slidesPerView:r.ai().optional(),showArrows:r.zM().optional(),showPagination:r.zM().optional(),autoplay:r.zM().optional(),autoplayInterval:r.ai().optional(),cardHeight:r.Yj().optional(),cardWidth:r.Yj().optional(),maxBrands:r.ai().optional(),autoScrollSpeed:r.ai().optional()}),q=r.Ik({title:O.optional(),subtitle:O.optional(),layout:r.k5(["grid","carousel","list"]),columns:r.KC([r.eu(1),r.eu(2),r.eu(3),r.eu(4)]).optional(),limit:r.ai().optional(),showDate:r.zM().optional(),showAuthor:r.zM().optional(),showExcerpt:r.zM().optional(),viewAllHref:r.Yj().optional(),viewAllText:O.optional(),cardVariant:r.KC([r.eu(1),r.eu(2),r.eu(3)]).optional()}),W=r.Ik({title:O.optional(),subtitle:O.optional(),layout:r.k5(["carousel","grid"]).optional(),columns:r.KC([r.eu(2),r.eu(3),r.eu(4)]).optional(),autoplay:r.zM().optional(),autoplayInterval:r.ai().optional(),showRating:r.zM().optional(),showAvatar:r.zM().optional(),cardVariant:r.KC([r.eu(1),r.eu(2)]).optional(),testimonials:r.YO(r.Ik({name:r.Yj(),role:O.optional(),company:r.Yj().optional(),text:O,rating:r.ai().optional(),avatarUrl:r.Yj().optional()}))}),G=r.Ik({layout:r.k5(["image-left","image-right","centered","background"]).optional(),imageUrl:r.Yj().optional(),mobileImageUrl:r.Yj().optional(),badge:O.optional(),title:O,subtitle:O.optional(),body:O,ctaLabel:O.optional(),ctaHref:r.Yj().optional(),stats:r.YO(r.Ik({value:O,label:O})).optional()}),J=r.Ik({title:O,subtitle:O.optional(),endsAt:r.Yj(),imageUrl:r.Yj().optional(),mobileImageUrl:r.Yj().optional(),ctaLabel:O.optional(),ctaHref:r.Yj().optional(),showAfterExpiry:r.zM().optional(),expiryMessage:O.optional()}),K=r.Ik({title:O,subtitle:O.optional(),placeholder:O.optional(),buttonText:O.optional(),successMessage:O.optional(),layout:r.k5(["horizontal","centered","card"]).optional(),backgroundImageUrl:r.Yj().optional(),disclaimer:O.optional()}),X=r.Ik({videoUrl:r.Yj(),posterImageUrl:r.Yj().optional(),objectFit:r.k5(["cover","contain"]).optional(),title:O.optional(),subtitle:O.optional(),ctaLabel:O.optional(),ctaHref:r.Yj().optional(),overlayOpacity:r.ai().optional(),autoplay:r.zM().optional(),loop:r.zM().optional(),muted:r.zM().optional(),minHeight:r.Yj().optional()}),Q=r.k5(["none","compact","default","wide","full"]).optional(),Z=[r.Ik({id:r.Yj().optional(),type:r.eu("CommercialBanner"),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),data:D,...$}),r.Ik({id:r.Yj().optional(),type:r.eu("ProductRail"),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),data:H,...$}),r.Ik({id:r.Yj().optional(),type:r.eu("CustomHTML"),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),data:L,...$}),r.Ik({id:r.Yj().optional(),type:r.eu("CategoryCarousel"),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),data:F,...$}),r.Ik({id:r.Yj().optional(),type:r.eu("BrandCarousel"),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),data:V,...$}),r.Ik({id:r.Yj().optional(),type:r.eu("FeaturedBlogPosts"),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),data:q,...$}),r.Ik({id:r.Yj().optional(),type:r.eu("Testimonials"),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),data:W,...$}),r.Ik({id:r.Yj().optional(),type:r.eu("AboutSection"),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),data:G,...$}),r.Ik({id:r.Yj().optional(),type:r.eu("CountdownBanner"),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),data:J,...$}),r.Ik({id:r.Yj().optional(),type:r.eu("NewsletterSection"),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),data:K,...$}),r.Ik({id:r.Yj().optional(),type:r.eu("VideoHero"),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),data:X,...$})],ee=r.gM("type",[...Z]),et=r.Ik({templateId:r.ai().int().min(1).optional(),sections:r.YO(ee)}),ea=r.Ik({messages:r.YO(r.Ik({text:O,href:r.Yj().optional()})),mode:r.k5(["static","scrolling"]).optional(),scrollSpeed:r.ai().optional(),dismissible:r.zM().optional(),backgroundColor:r.Yj().optional(),textColor:r.Yj().optional()}),er=r.Ik({showLanguageSwitcher:r.zM().optional(),showCurrencySwitcher:r.zM().optional(),showPaymentIcons:r.zM().optional(),paymentMethods:r.YO(r.Yj()).optional(),alignment:r.k5(["left","center","right"]).optional()}),el=r.Ik({}).passthrough(),ei={id:r.Yj().optional(),enabled:r.zM(),order:r.ai(),padding:Q,backgroundColor:r.Yj().optional(),backgroundColorDark:r.Yj().optional(),...$},eo=r.gM("type",[r.Ik({...ei,type:r.eu("AnnouncementBar"),data:ea}),r.Ik({...ei,type:r.eu("Header"),data:el}),r.Ik({...ei,type:r.eu("Utilities"),data:er})]),es=r.gM("type",[r.Ik({...ei,type:r.eu("Footer"),data:el}),r.Ik({...ei,type:r.eu("Utilities"),data:er}),r.Ik({...ei,type:r.eu("CustomHTML"),data:L})]);r.Ik({sections:r.YO(eo)}),r.Ik({sections:r.YO(es)});let en={CommercialBanner:N.default,ProductRail:j,CustomHTML:k.default,CategoryCarousel:A,BrandCarousel:E,FeaturedBlogPosts:T,Testimonials:i.default,AboutSection:function({data:e,locale:t,paddingClass:a="",sectionOrder:r}){let l=e.layout??"image-left",i=e=>e?e[t]??e.en:"",n=(0,o.jsxs)("div",{className:"flex flex-col justify-center py-8 md:py-0",children:[e.badge&&(0,o.jsx)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold bg-brand-primary/10 text-brand-primary mb-4 w-fit",children:i(e.badge)}),(0,o.jsx)("h2",{className:"font-heading text-3xl md:text-4xl font-bold text-foreground dark:text-foreground leading-tight",children:i(e.title)}),e.subtitle&&(0,o.jsx)("p",{className:"mt-3 text-lg font-medium text-foreground dark:text-muted-foreground",children:i(e.subtitle)}),(0,o.jsx)("p",{className:"mt-5 text-muted-foreground dark:text-muted-foreground leading-relaxed whitespace-pre-line",children:i(e.body)}),e.ctaHref&&e.ctaLabel&&(0,o.jsx)(d(),{className:"mt-6 inline-flex items-center px-6 py-3 bg-brand-primary text-white font-semibold rounded-lg hover:opacity-90 transition-opacity w-fit",href:e.ctaHref,children:i(e.ctaLabel)}),e.stats&&e.stats.length>0&&(0,o.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-6 mt-8 pt-8 border-t border-gray-200 dark:border-gray-700",children:e.stats.map((e,t)=>(0,o.jsxs)("div",{className:"text-center md:text-left",children:[(0,o.jsx)("p",{className:"text-2xl font-bold text-brand-primary",children:i(e.value)}),(0,o.jsx)("p",{className:"text-sm text-muted-foreground dark:text-muted-foreground mt-1",children:i(e.label)})]},t))})]});if("centered"===l)return(0,o.jsx)("div",{className:a,"data-section-order":r,"data-section-type":"AboutSection",children:(0,o.jsxs)("div",{className:"max-w-3xl mx-auto text-center",children:[e.imageUrl&&(0,o.jsx)("div",{className:"relative w-full h-64 rounded-2xl overflow-hidden mb-8",children:(0,o.jsx)(s.default,{fill:!0,alt:i(e.title),className:"object-cover",src:e.imageUrl})}),n]})});if("background"===l)return(0,o.jsxs)("div",{className:`relative ${a}`,"data-section-order":r,"data-section-type":"AboutSection",children:[e.imageUrl&&(0,o.jsx)(s.default,{fill:!0,alt:i(e.title),className:"object-cover",src:e.imageUrl}),(0,o.jsx)("div",{className: