import{c as wt,r as O,j as d,t as kt,a as ge,u as $e,L as Ke,b as Je,s as Qe}from"./index-D5aSL5Lk.js";import{S as tt,H as Nt,a as jt,C as Lt,P as Ct}from"./Header-CQ-hRMFy.js";import{B as ve,F as _t}from"./Footer-B625QnUy.js";import{A as At,C as Et}from"./ComparisonBar-VklzV7nq.js";import{P as Xe}from"./ProductCard-5OM8mCzQ.js";import{C as ye,a as be}from"./card-Xe3d9dhi.js";import{O as Ot}from"./OptimizedImage-BDiwQDT8.js";import{A as It}from"./arrow-left-PTJHM8zM.js";import{u as Tt,a as Pt}from"./useMetaDescription-Dr9AdqMY.js";import{u as Mt}from"./useDocumentTitle-B-SBpz7s.js";import{u as Dt}from"./useOpenGraph-BJUJ8GJb.js";import{T as qt}from"./trending-up-DwS3N9Bd.js";import"./checkbox-CzTzIcmO.js";import"./index-DVk-hwER.js";import"./check-DCNsCDBV.js";import"./index-CeP29QIk.js";import"./index-CL0xAu-I.js";import"./chevron-right-Dnq_A__P.js";import"./seoHelpers-DphZaCAd.js";import"./external-link-RH3nu8XI.js";/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zt=wt("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),nt=({name:e,logoUrl:t,affiliateLink:n})=>{const r=()=>{kt("store_click",{store_name:e,source_page:"homepage",affiliate_link:n})};return d.jsx("a",{href:n,onClick:r,target:"_blank",rel:"noopener noreferrer nofollow",className:"block h-full",children:d.jsx(ye,{className:"hover:shadow-xl transition-all duration-300 hover:scale-105 cursor-pointer h-full border-2 hover:border-primary/50",children:d.jsx(be,{className:"p-6 flex items-center justify-center h-full min-h-[140px]",children:t?d.jsx(Ot,{src:t,alt:`Logo ${e}`,className:"max-w-full max-h-[80px] w-auto h-auto object-contain",width:200,height:80}):d.jsxs("div",{className:"flex flex-col items-center gap-3 text-muted-foreground",children:[d.jsx(tt,{className:"h-12 w-12"}),d.jsx("span",{className:"font-semibold text-sm",children:e})]})})})})};nt.displayName="StoreCard";const Ft=O.memo(nt);function Ut(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ye(e){return Ut(e)||Array.isArray(e)}function Rt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Oe(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const a=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return a!==s?!1:n.every(o=>{const l=e[o],c=t[o];return typeof l=="function"?`${l}`==`${c}`:!Ye(l)||!Ye(c)?l===c:Oe(l,c)})}function We(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Bt(e,t){if(e.length!==t.length)return!1;const n=We(e),r=We(t);return n.every((a,s)=>{const o=r[s];return Oe(a,o)})}function Ie(e){return typeof e=="number"}function Ae(e){return typeof e=="string"}function we(e){return typeof e=="boolean"}function Ze(e){return Object.prototype.toString.call(e)==="[object Object]"}function T(e){return Math.abs(e)}function Te(e){return Math.sign(e)}function fe(e,t){return T(e-t)}function Vt(e,t){if(e===0||t===0||T(e)<=T(t))return 0;const n=fe(T(e),T(t));return T(n/e)}function Ht(e){return Math.round(e*100)/100}function de(e){return pe(e).map(Number)}function J(e){return e[he(e)]}function he(e){return Math.max(0,e.length-1)}function Pe(e,t){return t===he(e)}function et(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function pe(e){return Object.keys(e)}function ot(e,t){return[e,t].reduce((n,r)=>(pe(r).forEach(a=>{const s=n[a],o=r[a],l=Ze(s)&&Ze(o);n[a]=l?ot(s,o):o}),n),{})}function Ee(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Gt(e,t){const n={start:r,center:a,end:s};function r(){return 0}function a(c){return s(c)/2}function s(c){return t-c}function o(c,i){return Ae(e)?n[e](c):e(t,c,i)}return{measure:o}}function me(){let e=[];function t(a,s,o,l={passive:!0}){let c;if("addEventListener"in a)a.addEventListener(s,o,l),c=()=>a.removeEventListener(s,o,l);else{const i=a;i.addListener(o),c=()=>i.removeListener(o)}return e.push(c),r}function n(){e=e.filter(a=>a())}const r={add:t,clear:n};return r}function $t(e,t,n,r){const a=me(),s=1e3/60;let o=null,l=0,c=0;function i(){a.add(e,"visibilitychange",()=>{e.hidden&&f()})}function y(){b(),a.clear()}function g(h){if(!c)return;o||(o=h,n(),n());const p=h-o;for(o=h,l+=p;l>=s;)n(),l-=s;const x=l/s;r(x),c&&(c=t.requestAnimationFrame(g))}function u(){c||(c=t.requestAnimationFrame(g))}function b(){t.cancelAnimationFrame(c),o=null,l=0,c=0}function f(){o=null,l=0}return{init:i,destroy:y,start:u,stop:b,update:n,render:r}}function Kt(e,t){const n=t==="rtl",r=e==="y",a=r?"y":"x",s=r?"x":"y",o=!r&&n?-1:1,l=y(),c=g();function i(f){const{height:m,width:h}=f;return r?m:h}function y(){return r?"top":n?"right":"left"}function g(){return r?"bottom":n?"left":"right"}function u(f){return f*o}return{scroll:a,cross:s,startEdge:l,endEdge:c,measureSize:i,direction:u}}function se(e=0,t=0){const n=T(e-t);function r(i){return i<e}function a(i){return i>t}function s(i){return r(i)||a(i)}function o(i){return s(i)?r(i)?e:t:i}function l(i){return n?i-n*Math.ceil((i-t)/n):i}return{length:n,max:t,min:e,constrain:o,reachedAny:s,reachedMax:a,reachedMin:r,removeOffset:l}}function rt(e,t,n){const{constrain:r}=se(0,e),a=e+1;let s=o(t);function o(u){return n?T((a+u)%a):r(u)}function l(){return s}function c(u){return s=o(u),g}function i(u){return y().set(l()+u)}function y(){return rt(e,l(),n)}const g={get:l,set:c,add:i,clone:y};return g}function Jt(e,t,n,r,a,s,o,l,c,i,y,g,u,b,f,m,h,p,x){const{cross:S,direction:N}=e,_=["INPUT","SELECT","TEXTAREA"],j={passive:!1},w=me(),k=me(),L=se(50,225).constrain(b.measure(20)),P={mouse:300,touch:400},C={mouse:500,touch:600},D=f?43:25;let G=!1,A=0,q=0,R=!1,B=!1,$=!1,K=!1;function Q(v){if(!x)return;function E(F){(we(x)||x(v,F))&&ae(F)}const M=t;w.add(M,"dragstart",F=>F.preventDefault(),j).add(M,"touchmove",()=>{},j).add(M,"touchend",()=>{}).add(M,"touchstart",E).add(M,"mousedown",E).add(M,"touchcancel",z).add(M,"contextmenu",z).add(M,"click",ee,!0)}function V(){w.clear(),k.clear()}function Y(){const v=K?n:t;k.add(v,"touchmove",U,j).add(v,"touchend",z).add(v,"mousemove",U,j).add(v,"mouseup",z)}function W(v){const E=v.nodeName||"";return _.includes(E)}function Z(){return(f?C:P)[K?"mouse":"touch"]}function ce(v,E){const M=g.add(Te(v)*-1),F=y.byDistance(v,!f).distance;return f||T(v)<L?F:h&&E?F*.5:y.byIndex(M.get(),0).distance}function ae(v){const E=Ee(v,r);K=E,$=f&&E&&!v.buttons&&G,G=fe(a.get(),o.get())>=2,!(E&&v.button!==0)&&(W(v.target)||(R=!0,s.pointerDown(v),i.useFriction(0).useDuration(0),a.set(o),Y(),A=s.readPoint(v),q=s.readPoint(v,S),u.emit("pointerDown")))}function U(v){if(!Ee(v,r)&&v.touches.length>=2)return z(v);const M=s.readPoint(v),F=s.readPoint(v,S),X=fe(M,A),te=fe(F,q);if(!B&&!K&&(!v.cancelable||(B=X>te,!B)))return z(v);const oe=s.pointerMove(v);X>m&&($=!0),i.useFriction(.3).useDuration(.75),l.start(),a.add(N(oe)),v.preventDefault()}function z(v){const M=y.byDistance(0,!1).index!==g.get(),F=s.pointerUp(v)*Z(),X=ce(N(F),M),te=Vt(F,X),oe=D-10*te,ne=p+te/50;B=!1,R=!1,k.clear(),i.useDuration(oe).useFriction(ne),c.distance(X,!f),K=!1,u.emit("pointerUp")}function ee(v){$&&(v.stopPropagation(),v.preventDefault(),$=!1)}function H(){return R}return{init:Q,destroy:V,pointerDown:H}}function Qt(e,t){let r,a;function s(g){return g.timeStamp}function o(g,u){const f=`client${(u||e.scroll)==="x"?"X":"Y"}`;return(Ee(g,t)?g:g.touches[0])[f]}function l(g){return r=g,a=g,o(g)}function c(g){const u=o(g)-o(a),b=s(g)-s(r)>170;return a=g,b&&(r=g),u}function i(g){if(!r||!a)return 0;const u=o(a)-o(r),b=s(g)-s(r),f=s(g)-s(a)>170,m=u/b;return b&&!f&&T(m)>.1?m:0}return{pointerDown:l,pointerMove:c,pointerUp:i,readPoint:o}}function Xt(){function e(n){const{offsetTop:r,offsetLeft:a,offsetWidth:s,offsetHeight:o}=n;return{top:r,right:a+s,bottom:r+o,left:a,width:s,height:o}}return{measure:e}}function Yt(e){function t(r){return e*(r/100)}return{measure:t}}function Wt(e,t,n,r,a,s,o){const l=[e].concat(r);let c,i,y=[],g=!1;function u(h){return a.measureSize(o.measure(h))}function b(h){if(!s)return;i=u(e),y=r.map(u);function p(x){for(const S of x){if(g)return;const N=S.target===e,_=r.indexOf(S.target),j=N?i:y[_],w=u(N?e:r[_]);if(T(w-j)>=.5){h.reInit(),t.emit("resize");break}}}c=new ResizeObserver(x=>{(we(s)||s(h,x))&&p(x)}),n.requestAnimationFrame(()=>{l.forEach(x=>c.observe(x))})}function f(){g=!0,c&&c.disconnect()}return{init:b,destroy:f}}function Zt(e,t,n,r,a,s){let o=0,l=0,c=a,i=s,y=e.get(),g=0;function u(){const j=r.get()-e.get(),w=!c;let k=0;return w?(o=0,n.set(r),e.set(r),k=j):(n.set(e),o+=j/c,o*=i,y+=o,e.add(o),k=y-g),l=Te(k),g=y,_}function b(){const j=r.get()-t.get();return T(j)<.001}function f(){return c}function m(){return l}function h(){return o}function p(){return S(a)}function x(){return N(s)}function S(j){return c=j,_}function N(j){return i=j,_}const _={direction:m,duration:f,velocity:h,seek:u,settled:b,useBaseFriction:x,useBaseDuration:p,useFriction:N,useDuration:S};return _}function en(e,t,n,r,a){const s=a.measure(10),o=a.measure(50),l=se(.1,.99);let c=!1;function i(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function y(b){if(!i())return;const f=e.reachedMin(t.get())?"min":"max",m=T(e[f]-t.get()),h=n.get()-t.get(),p=l.constrain(m/o);n.subtract(h*p),!b&&T(h)<s&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function g(b){c=!b}return{shouldConstrain:i,constrain:y,toggleActive:g}}function tn(e,t,n,r,a){const s=se(-t+e,0),o=g(),l=y(),c=u();function i(f,m){return fe(f,m)<=1}function y(){const f=o[0],m=J(o),h=o.lastIndexOf(f),p=o.indexOf(m)+1;return se(h,p)}function g(){return n.map((f,m)=>{const{min:h,max:p}=s,x=s.constrain(f),S=!m,N=Pe(n,m);return S?p:N||i(h,x)?h:i(p,x)?p:x}).map(f=>parseFloat(f.toFixed(3)))}function u(){if(t<=e+a)return[s.max];if(r==="keepSnaps")return o;const{min:f,max:m}=l;return o.slice(f,m)}return{snapsContained:c,scrollContainLimit:l}}function nn(e,t,n){const r=t[0],a=n?r-e:J(t);return{limit:se(a,r)}}function on(e,t,n,r){const s=t.min+.1,o=t.max+.1,{reachedMin:l,reachedMax:c}=se(s,o);function i(u){return u===1?c(n.get()):u===-1?l(n.get()):!1}function y(u){if(!i(u))return;const b=e*(u*-1);r.forEach(f=>f.add(b))}return{loop:y}}function rn(e){const{max:t,length:n}=e;function r(s){const o=s-t;return n?o/-n:0}return{get:r}}function sn(e,t,n,r,a){const{startEdge:s,endEdge:o}=e,{groupSlides:l}=a,c=g().map(t.measure),i=u(),y=b();function g(){return l(r).map(m=>J(m)[o]-m[0][s]).map(T)}function u(){return r.map(m=>n[s]-m[s]).map(m=>-T(m))}function b(){return l(i).map(m=>m[0]).map((m,h)=>m+c[h])}return{snaps:i,snapsAligned:y}}function cn(e,t,n,r,a,s){const{groupSlides:o}=a,{min:l,max:c}=r,i=y();function y(){const u=o(s),b=!e||t==="keepSnaps";return n.length===1?[s]:b?u:u.slice(l,c).map((f,m,h)=>{const p=!m,x=Pe(h,m);if(p){const S=J(h[0])+1;return et(S)}if(x){const S=he(s)-J(h)[0]+1;return et(S,J(h)[0])}return f})}return{slideRegistry:i}}function an(e,t,n,r,a){const{reachedAny:s,removeOffset:o,constrain:l}=r;function c(f){return f.concat().sort((m,h)=>T(m)-T(h))[0]}function i(f){const m=e?o(f):l(f),h=t.map((x,S)=>({diff:y(x-m,0),index:S})).sort((x,S)=>T(x.diff)-T(S.diff)),{index:p}=h[0];return{index:p,distance:m}}function y(f,m){const h=[f,f+n,f-n];if(!e)return f;if(!m)return c(h);const p=h.filter(x=>Te(x)===m);return p.length?c(p):J(h)-n}function g(f,m){const h=t[f]-a.get(),p=y(h,m);return{index:f,distance:p}}function u(f,m){const h=a.get()+f,{index:p,distance:x}=i(h),S=!e&&s(h);if(!m||S)return{index:p,distance:f};const N=t[p]-x,_=f+y(N,0);return{index:p,distance:_}}return{byDistance:u,byIndex:g,shortcut:y}}function ln(e,t,n,r,a,s,o){function l(g){const u=g.distance,b=g.index!==t.get();s.add(u),u&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),b&&(n.set(t.get()),t.set(g.index),o.emit("select"))}function c(g,u){const b=a.byDistance(g,u);l(b)}function i(g,u){const b=t.clone().set(g),f=a.byIndex(b.get(),u);l(f)}return{distance:c,index:i}}function un(e,t,n,r,a,s,o,l){const c={passive:!0,capture:!0};let i=0;function y(b){if(!l)return;function f(m){if(new Date().getTime()-i>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const x=n.findIndex(S=>S.includes(m));Ie(x)&&(a.useDuration(0),r.index(x,0),o.emit("slideFocus"))}s.add(document,"keydown",g,!1),t.forEach((m,h)=>{s.add(m,"focus",p=>{(we(l)||l(b,p))&&f(h)},c)})}function g(b){b.code==="Tab"&&(i=new Date().getTime())}return{init:y}}function ue(e){let t=e;function n(){return t}function r(c){t=o(c)}function a(c){t+=o(c)}function s(c){t-=o(c)}function o(c){return Ie(c)?c:c.get()}return{get:n,set:r,add:a,subtract:s}}function st(e,t){const n=e.scroll==="x"?o:l,r=t.style;let a=null,s=!1;function o(u){return`translate3d(${u}px,0px,0px)`}function l(u){return`translate3d(0px,${u}px,0px)`}function c(u){if(s)return;const b=Ht(e.direction(u));b!==a&&(r.transform=n(b),a=b)}function i(u){s=!u}function y(){s||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:y,to:c,toggleActive:i}}function fn(e,t,n,r,a,s,o,l,c){const y=de(a),g=de(a).reverse(),u=p().concat(x());function b(w,k){return w.reduce((L,P)=>L-a[P],k)}function f(w,k){return w.reduce((L,P)=>b(L,k)>0?L.concat([P]):L,[])}function m(w){return s.map((k,L)=>({start:k-r[L]+.5+w,end:k+t-.5+w}))}function h(w,k,L){const P=m(k);return w.map(C=>{const D=L?0:-n,G=L?n:0,A=L?"end":"start",q=P[C][A];return{index:C,loopPoint:q,slideLocation:ue(-1),translate:st(e,c[C]),target:()=>l.get()>q?D:G}})}function p(){const w=o[0],k=f(g,w);return h(k,n,!1)}function x(){const w=t-o[0]-1,k=f(y,w);return h(k,-n,!0)}function S(){return u.every(({index:w})=>{const k=y.filter(L=>L!==w);return b(k,t)<=.1})}function N(){u.forEach(w=>{const{target:k,translate:L,slideLocation:P}=w,C=k();C!==P.get()&&(L.to(C),P.set(C))})}function _(){u.forEach(w=>w.translate.clear())}return{canLoop:S,clear:_,loop:N,loopPoints:u}}function dn(e,t,n){let r,a=!1;function s(c){if(!n)return;function i(y){for(const g of y)if(g.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(y=>{a||(we(n)||n(c,y))&&i(y)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),a=!0}return{init:s,destroy:o}}function pn(e,t,n,r){const a={};let s=null,o=null,l,c=!1;function i(){l=new IntersectionObserver(f=>{c||(f.forEach(m=>{const h=t.indexOf(m.target);a[h]=m}),s=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(f=>l.observe(f))}function y(){l&&l.disconnect(),c=!0}function g(f){return pe(a).reduce((m,h)=>{const p=parseInt(h),{isIntersecting:x}=a[p];return(f&&x||!f&&!x)&&m.push(p),m},[])}function u(f=!0){if(f&&s)return s;if(!f&&o)return o;const m=g(f);return f&&(s=m),f||(o=m),m}return{init:i,destroy:y,get:u}}function mn(e,t,n,r,a,s){const{measureSize:o,startEdge:l,endEdge:c}=e,i=n[0]&&a,y=f(),g=m(),u=n.map(o),b=h();function f(){if(!i)return 0;const x=n[0];return T(t[l]-x[l])}function m(){if(!i)return 0;const x=s.getComputedStyle(J(r));return parseFloat(x.getPropertyValue(`margin-${c}`))}function h(){return n.map((x,S,N)=>{const _=!S,j=Pe(N,S);return _?u[S]+y:j?u[S]+g:N[S+1][l]-x[l]}).map(T)}return{slideSizes:u,slideSizesWithGaps:b,startGap:y,endGap:g}}function gn(e,t,n,r,a,s,o,l,c){const{startEdge:i,endEdge:y,direction:g}=e,u=Ie(n);function b(p,x){return de(p).filter(S=>S%x===0).map(S=>p.slice(S,S+x))}function f(p){return p.length?de(p).reduce((x,S,N)=>{const _=J(x)||0,j=_===0,w=S===he(p),k=a[i]-s[_][i],L=a[i]-s[S][y],P=!r&&j?g(o):0,C=!r&&w?g(l):0,D=T(L-C-(k+P));return N&&D>t+c&&x.push(S),w&&x.push(p.length),x},[]).map((x,S,N)=>{const _=Math.max(N[S-1]||0);return p.slice(_,x)}):[]}function m(p){return u?b(p,n):f(p)}return{groupSlides:m}}function hn(e,t,n,r,a,s,o){const{align:l,axis:c,direction:i,startIndex:y,loop:g,duration:u,dragFree:b,dragThreshold:f,inViewThreshold:m,slidesToScroll:h,skipSnaps:p,containScroll:x,watchResize:S,watchSlides:N,watchDrag:_,watchFocus:j}=s,w=2,k=Xt(),L=k.measure(t),P=n.map(k.measure),C=Kt(c,i),D=C.measureSize(L),G=Yt(D),A=Gt(l,D),q=!g&&!!x,R=g||!!x,{slideSizes:B,slideSizesWithGaps:$,startGap:K,endGap:Q}=mn(C,L,P,n,R,a),V=gn(C,D,h,g,L,P,K,Q,w),{snaps:Y,snapsAligned:W}=sn(C,A,L,P,V),Z=-J(Y)+J($),{snapsContained:ce,scrollContainLimit:ae}=tn(D,Z,W,x,w),U=q?ce:W,{limit:z}=nn(Z,U,g),ee=rt(he(U),y,g),H=ee.clone(),I=de(n),v=({dragHandler:ie,scrollBody:Ce,scrollBounds:_e,options:{loop:xe}})=>{xe||_e.constrain(ie.pointerDown()),Ce.seek()},E=({scrollBody:ie,translate:Ce,location:_e,offsetLocation:xe,previousLocation:mt,scrollLooper:gt,slideLooper:ht,dragHandler:xt,animation:yt,eventHandler:Ue,scrollBounds:bt,options:{loop:Re}},Be)=>{const Ve=ie.settled(),vt=!bt.shouldConstrain(),He=Re?Ve:Ve&&vt,Ge=He&&!xt.pointerDown();Ge&&yt.stop();const St=_e.get()*Be+mt.get()*(1-Be);xe.set(St),Re&&(gt.loop(ie.direction()),ht.loop()),Ce.to(xe.get()),Ge&&Ue.emit("settle"),He||Ue.emit("scroll")},M=$t(r,a,()=>v(Le),ie=>E(Le,ie)),F=.68,X=U[ee.get()],te=ue(X),oe=ue(X),ne=ue(X),re=ue(X),le=Zt(te,ne,oe,re,u,F),Ne=an(g,U,Z,z,re),je=ln(M,ee,H,le,Ne,re,o),qe=rn(z),ze=me(),dt=pn(t,n,o,m),{slideRegistry:Fe}=cn(q,x,U,ae,V,I),pt=un(e,n,Fe,je,le,ze,o,j),Le={ownerDocument:r,ownerWindow:a,eventHandler:o,containerRect:L,slideRects:P,animation:M,axis:C,dragHandler:Jt(C,e,r,a,re,Qt(C,a),te,M,je,le,Ne,ee,o,G,b,f,p,F,_),eventStore:ze,percentOfView:G,index:ee,indexPrevious:H,limit:z,location:te,offsetLocation:ne,previousLocation:oe,options:s,resizeHandler:Wt(t,o,a,n,C,S,k),scrollBody:le,scrollBounds:en(z,ne,re,le,G),scrollLooper:on(Z,z,ne,[te,ne,oe,re]),scrollProgress:qe,scrollSnapList:U.map(qe.get),scrollSnaps:U,scrollTarget:Ne,scrollTo:je,slideLooper:fn(C,D,Z,B,$,Y,U,ne,n),slideFocus:pt,slidesHandler:dn(t,o,N),slidesInView:dt,slideIndexes:I,slideRegistry:Fe,slidesToScroll:V,target:re,translate:st(C,t)};return Le}function xn(){let e={},t;function n(i){t=i}function r(i){return e[i]||[]}function a(i){return r(i).forEach(y=>y(t,i)),c}function s(i,y){return e[i]=r(i).concat([y]),c}function o(i,y){return e[i]=r(i).filter(g=>g!==y),c}function l(){e={}}const c={init:n,emit:a,off:o,on:s,clear:l};return c}const yn={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function bn(e){function t(s,o){return ot(s,o||{})}function n(s){const o=s.breakpoints||{},l=pe(o).filter(c=>e.matchMedia(c).matches).map(c=>o[c]).reduce((c,i)=>t(c,i),{});return t(s,l)}function r(s){return s.map(o=>pe(o.breakpoints||{})).reduce((o,l)=>o.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function vn(e){let t=[];function n(s,o){return t=o.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(s,e)),o.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function r(){t=t.filter(s=>s.destroy())}return{init:n,destroy:r}}function Se(e,t,n){const r=e.ownerDocument,a=r.defaultView,s=bn(a),o=vn(s),l=me(),c=xn(),{mergeOptions:i,optionsAtMedia:y,optionsMediaQueries:g}=s,{on:u,off:b,emit:f}=c,m=C;let h=!1,p,x=i(yn,Se.globalOptions),S=i(x),N=[],_,j,w;function k(){const{container:I,slides:v}=S;j=(Ae(I)?e.querySelector(I):I)||e.children[0];const M=Ae(v)?j.querySelectorAll(v):v;w=[].slice.call(M||j.children)}function L(I){const v=hn(e,j,w,r,a,I,c);if(I.loop&&!v.slideLooper.canLoop()){const E=Object.assign({},I,{loop:!1});return L(E)}return v}function P(I,v){h||(x=i(x,I),S=y(x),N=v||N,k(),p=L(S),g([x,...N.map(({options:E})=>E)]).forEach(E=>l.add(E,"change",C)),S.active&&(p.translate.to(p.location.get()),p.animation.init(),p.slidesInView.init(),p.slideFocus.init(H),p.eventHandler.init(H),p.resizeHandler.init(H),p.slidesHandler.init(H),p.options.loop&&p.slideLooper.loop(),j.offsetParent&&w.length&&p.dragHandler.init(H),_=o.init(H,N)))}function C(I,v){const E=V();D(),P(i({startIndex:E},I),v),c.emit("reInit")}function D(){p.dragHandler.destroy(),p.eventStore.clear(),p.translate.clear(),p.slideLooper.clear(),p.resizeHandler.destroy(),p.slidesHandler.destroy(),p.slidesInView.destroy(),p.animation.destroy(),o.destroy(),l.clear()}function G(){h||(h=!0,l.clear(),D(),c.emit("destroy"),c.clear())}function A(I,v,E){!S.active||h||(p.scrollBody.useBaseFriction().useDuration(v===!0?0:S.duration),p.scrollTo.index(I,E||0))}function q(I){const v=p.index.add(1).get();A(v,I,-1)}function R(I){const v=p.index.add(-1).get();A(v,I,1)}function B(){return p.index.add(1).get()!==V()}function $(){return p.index.add(-1).get()!==V()}function K(){return p.scrollSnapList}function Q(){return p.scrollProgress.get(p.offsetLocation.get())}function V(){return p.index.get()}function Y(){return p.indexPrevious.get()}function W(){return p.slidesInView.get()}function Z(){return p.slidesInView.get(!1)}function ce(){return _}function ae(){return p}function U(){return e}function z(){return j}function ee(){return w}const H={canScrollNext:B,canScrollPrev:$,containerNode:z,internalEngine:ae,destroy:G,off:b,on:u,emit:f,plugins:ce,previousScrollSnap:Y,reInit:m,rootNode:U,scrollNext:q,scrollPrev:R,scrollProgress:Q,scrollSnapList:K,scrollTo:A,selectedScrollSnap:V,slideNodes:ee,slidesInView:W,slidesNotInView:Z};return P(t,n),setTimeout(()=>c.emit("init"),0),H}Se.globalOptions=void 0;function Me(e={},t=[]){const n=O.useRef(e),r=O.useRef(t),[a,s]=O.useState(),[o,l]=O.useState(),c=O.useCallback(()=>{a&&a.reInit(n.current,r.current)},[a]);return O.useEffect(()=>{Oe(n.current,e)||(n.current=e,c())},[e,c]),O.useEffect(()=>{Bt(r.current,t)||(r.current=t,c())},[t,c]),O.useEffect(()=>{if(Rt()&&o){Se.globalOptions=Me.globalOptions;const i=Se(o,n.current,r.current);return s(i),()=>i.destroy()}else s(void 0)},[o,s]),[l,a]}Me.globalOptions=void 0;const it=O.createContext(null);function ke(){const e=O.useContext(it);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const ct=O.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:a,children:s,...o},l)=>{const[c,i]=Me({...t,axis:e==="horizontal"?"x":"y"},r),[y,g]=O.useState(!1),[u,b]=O.useState(!1),f=O.useCallback(x=>{x&&(g(x.canScrollPrev()),b(x.canScrollNext()))},[]),m=O.useCallback(()=>{i==null||i.scrollPrev()},[i]),h=O.useCallback(()=>{i==null||i.scrollNext()},[i]),p=O.useCallback(x=>{x.key==="ArrowLeft"?(x.preventDefault(),m()):x.key==="ArrowRight"&&(x.preventDefault(),h())},[m,h]);return O.useEffect(()=>{!i||!n||n(i)},[i,n]),O.useEffect(()=>{if(i)return f(i),i.on("reInit",f),i.on("select",f),()=>{i==null||i.off("select",f)}},[i,f]),d.jsx(it.Provider,{value:{carouselRef:c,api:i,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:h,canScrollPrev:y,canScrollNext:u},children:d.jsx("div",{ref:l,onKeyDownCapture:p,className:ge("relative",a),role:"region","aria-roledescription":"carousel",...o,children:s})})});ct.displayName="Carousel";const at=O.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:a}=ke();return d.jsx("div",{ref:r,className:"overflow-hidden",children:d.jsx("div",{ref:n,className:ge("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});at.displayName="CarouselContent";const lt=O.forwardRef(({className:e,...t},n)=>{const{orientation:r}=ke();return d.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:ge("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});lt.displayName="CarouselItem";const ut=O.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},a)=>{const{orientation:s,scrollPrev:o,canScrollPrev:l}=ke();return d.jsxs(ve,{ref:a,variant:t,size:n,className:ge("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...r,children:[d.jsx(It,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Previous slide"})]})});ut.displayName="CarouselPrevious";const ft=O.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},a)=>{const{orientation:s,scrollNext:o,canScrollNext:l}=ke();return d.jsxs(ve,{ref:a,variant:t,size:n,className:ge("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:o,...r,children:[d.jsx(At,{className:"h-4 w-4"}),d.jsx("span",{className:"sr-only",children:"Next slide"})]})});ft.displayName="CarouselNext";const Sn={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function wn(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function kn(e,t){const n=e.rootNode();return t&&t(n)||n}function De(e={}){let t,n,r,a,s=null,o=0,l=!1,c=!1,i=!1,y=!1;function g(A,q){n=A;const{mergeOptions:R,optionsAtMedia:B}=q,$=R(Sn,De.globalOptions),K=R($,e);if(t=B(K),n.scrollSnapList().length<=1)return;y=t.jump,r=!1,a=wn(n,t.delay);const{eventStore:Q,ownerDocument:V}=n.internalEngine(),Y=!!n.internalEngine().options.watchDrag,W=kn(n,t.rootNode);Q.add(V,"visibilitychange",p),Y&&n.on("pointerDown",S),Y&&!t.stopOnInteraction&&n.on("pointerUp",N),t.stopOnMouseEnter&&Q.add(W,"mouseenter",_),t.stopOnMouseEnter&&!t.stopOnInteraction&&Q.add(W,"mouseleave",j),t.stopOnFocusIn&&n.on("slideFocusStart",h),t.stopOnFocusIn&&!t.stopOnInteraction&&Q.add(n.containerNode(),"focusout",m),t.playOnInit&&m()}function u(){n.off("pointerDown",S).off("pointerUp",N).off("slideFocusStart",h),h(),r=!0,l=!1}function b(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(o),o=A.setTimeout(C,a[n.selectedScrollSnap()]),s=new Date().getTime(),n.emit("autoplay:timerset")}function f(){const{ownerWindow:A}=n.internalEngine();A.clearTimeout(o),o=0,s=null,n.emit("autoplay:timerstopped")}function m(){if(!r){if(x()){i=!0;return}l||n.emit("autoplay:play"),b(),l=!0}}function h(){r||(l&&n.emit("autoplay:stop"),f(),l=!1)}function p(){if(x())return i=l,h();i&&m()}function x(){const{ownerDocument:A}=n.internalEngine();return A.visibilityState==="hidden"}function S(){c||h()}function N(){c||m()}function _(){c=!0,h()}function j(){c=!1,m()}function w(A){typeof A<"u"&&(y=A),m()}function k(){l&&h()}function L(){l&&m()}function P(){return l}function C(){const{index:A}=n.internalEngine(),q=A.clone().add(1).get(),R=n.scrollSnapList().length-1,B=t.stopOnLastSnap&&q===R;if(n.canScrollNext()?n.scrollNext(y):n.scrollTo(0,y),n.emit("autoplay:select"),B)return h();m()}function D(){if(!s)return null;const A=a[n.selectedScrollSnap()],q=new Date().getTime()-s;return A-q}return{name:"autoplay",options:e,init:g,destroy:u,play:w,stop:k,reset:L,isPlaying:P,timeUntilNext:D}}De.globalOptions=void 0;const Hn=()=>{var c,i,y,g;Tt();const{data:e}=$e({queryKey:["homepage-stats"],queryFn:async()=>{var f,m,h;const{data:u,error:b}=await Qe.rpc("get_homepage_stats");if(b)throw b;return{productCount:Number(((f=u==null?void 0:u[0])==null?void 0:f.product_count)||0),storeCount:Number(((m=u==null?void 0:u[0])==null?void 0:m.store_count)||0),categoryCount:Number(((h=u==null?void 0:u[0])==null?void 0:h.category_count)||0)}},staleTime:60*60*1e3,gcTime:2*60*60*1e3,refetchOnMount:!1,refetchOnWindowFocus:!1});Mt(`Clyper - Comparare Prețuri România | ${((c=e==null?void 0:e.productCount)==null?void 0:c.toLocaleString())||"---"} Produse`),Pt("Compară prețuri și găsește cele mai bune oferte pentru produse din toate categoriile. Mii de produse actualizate zilnic de la magazine partenere."),Dt({title:"Clyper - Comparare Prețuri România",description:`Compară prețuri și găsește cele mai bune oferte din ${((i=e==null?void 0:e.productCount)==null?void 0:i.toLocaleString())||"mii de"} produse. Actualizat zilnic de la ${(e==null?void 0:e.storeCount)||"numeroase"} magazine partenere.`,image:"https://clyper.ro/android-chrome-512x512.png",type:"website",siteName:"Clyper"});const{data:t=[],isLoading:n}=$e({queryKey:["featured-products"],queryFn:async()=>{const{data:u,error:b}=await Qe.from("products").select("id, name, price, image_url, store_name, affiliate_link, category, created_at, slug").eq("is_active",!0).order("created_at",{ascending:!1}).limit(8);if(b)throw b;return u},staleTime:5*60*1e3,gcTime:15*60*1e3,refetchOnMount:!1,refetchOnWindowFocus:!1}),r=t.slice(0,6),a=n,s=[{name:"Animax",logoUrl:"https://animax.ro/cdn/shop/files/logo_1_760x.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=75488ec7b&redirect_to=https%3A//animax.ro"},{name:"Otter",logoUrl:"https://cdn.otter.ro/media/logo/stores/1/otter-logo-340.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=7e537fc0d&redirect_to=https%3A//otter.ro"},{name:"KitchenShop",logoUrl:"https://www.kitchenshop.ro/Themes/Pentrugatit/Content/images/logo.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=ee120ed49&redirect_to=https%3A//www.kitchenshop.ro"},{name:"Cartepedia",logoUrl:"",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=6f33f2a39&redirect_to=https%3A//cartepedia.ro"},{name:"LibHumanitas",logoUrl:"https://www.libhumanitas.ro/media/logo/stores/1/libH-logo-large.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=9aab15f10&redirect_to=https%3A//libhumanitas.ro"},{name:"Micul Meserias",logoUrl:"https://micul-meserias.ro/image/catalog/Logo_bannere/Logo/micul-meserias-ro-logo.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=75667dd72&redirect_to=https%3A//micul-meserias.ro/"},{name:"Fera",logoUrl:"https://fera.ro/design/themes/energot_regional/media/images/addons/fera-logo-with-white.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=94045f09d&redirect_to=https%3A//fera.ro/"},{name:"Shop4Pet",logoUrl:"https://www.shop4pet.ro/image/cache/catalog/logoshop4pet-3000x2323.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=bfc4c2dce&redirect_to=https%3A//www.shop4pet.ro/"},{name:"PetMax",logoUrl:"https://gomagcdn.ro/domains/petmax.ro/files/company/logo6793.jpg",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=07e65acfe&redirect_to=https%3A//petmax.ro/"},{name:"BestValue",logoUrl:"/store-logos/bestvalue-logo.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=087e21d9f&redirect_to=https%3A//bestvalue.eu/"},{name:"JocuriNoi",logoUrl:"https://www.jocurinoi.ro/image/cache/wp/lp/logo2021-optimized.webp",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=0ea3346dd&redirect_to=https%3A//www.jocurinoi.ro/"},{name:"ManukaShop",logoUrl:"https://manukashop.ro/cdn/shop/files/MIERE_DE_MANUKA_originala_AUTENTICA_720x.webp?v=1749047284",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=9659b7651&redirect_to=https%3A//manukashop.ro/"},{name:"Fara Daunatori",logoUrl:"/store-logos/fara-daunatori-logo.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=46f8cd5eb&redirect_to=https%3A//fara-daunatori.ro"},{name:"Aosom",logoUrl:"https://cdn.aosomcdn.com/template2/public/common_images/logo-aosomro-white.svg",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=573b44539&redirect_to=https%3A//www.aosom.ro/"},{name:"Librarie.net",logoUrl:"https://www.librarie.net/images/logo-200x58.jpg",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=da1148931&redirect_to=https%3A//www.librarie.net/"},{name:"Librex",logoUrl:"https://www.librex.ro/images/carti-librarie-online.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=3085d2457&redirect_to=https%3A//www.librex.ro/"},{name:"NavigatiiAndroid",logoUrl:"https://c.cdnmp.net/104096996/logo.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=bb7f88924&redirect_to=https%3A//www.navigatiiandroid.ro/"},{name:"BabyNeeds",logoUrl:"https://www.babyneeds.ro/images/logo/logo_new.svg?20251108",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=0e0a9347f&redirect_to=https%3A//www.babyneeds.ro/"},{name:"Cupio",logoUrl:"https://cdn.cupio.ro/static/version1762457320/frontend/Oak3/theme-blank/ro_RO/images/logo.svg",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=be42df24f&redirect_to=https%3A//cupio.ro/"},{name:"Farmec",logoUrl:"/store-logos/farmec-logo.png",affiliateLink:"https://event.2performant.com/events/click?ad_type=quicklink&aff_code=d69b5489d&unique=1dfbc028f&redirect_to=https%3A//www.farmec.ro/"}],o={"@context":"https://schema.org","@type":"Organization",name:"Clyper",url:"https://clyper.ro",logo:"https://clyper.ro/android-chrome-512x512.png",contactPoint:{"@type":"ContactPoint",telephone:"+40740382951",contactType:"customer service",email:"contact@clyper.ro"},address:{"@type":"PostalAddress",streetAddress:"Str. Orizont 19, Nr. 30",addressLocality:"Alba-Iulia",addressRegion:"Alba",postalCode:"510406",addressCountry:"RO"}},l={"@context":"https://schema.org","@type":"WebSite",name:"Clyper",url:"https://clyper.ro",potentialAction:{"@type":"SearchAction",target:"https://clyper.ro/products?search={search_term_string}","query-input":"required name=search_term_string"}};return d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}}),d.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(l)}}),d.jsx(Nt,{}),d.jsx("section",{className:"bg-gradient-to-br from-primary/10 via-background to-secondary/10 py-16 md:py-24",children:d.jsxs("div",{className:"container mx-auto px-4 text-center",children:[d.jsxs("h1",{className:"text-4xl md:text-6xl font-bold mb-6",children:["Compară Prețuri și Găsește",d.jsx("br",{}),d.jsx("span",{className:"text-primary",children:"Cele Mai Bune Oferte"})]}),d.jsxs("p",{className:"text-xl text-muted-foreground mb-8 max-w-2xl mx-auto",children:[((y=e==null?void 0:e.productCount)==null?void 0:y.toLocaleString())||"---"," produse de la ",(e==null?void 0:e.storeCount)||"---"," magazine, actualizate zilnic"]}),d.jsx(jt,{className:"max-w-2xl mx-auto"})]})}),d.jsx("section",{className:"py-16 bg-muted/30",children:d.jsxs("div",{className:"container mx-auto px-4",children:[d.jsxs("div",{className:"text-center mb-12",children:[d.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Magazine Populare"}),d.jsx("p",{className:"text-muted-foreground",children:"Descoperă oferte de la magazinele noastre partenere"})]}),d.jsx("div",{className:"relative px-12",children:d.jsxs(ct,{opts:{align:"start",loop:!0},plugins:[De({delay:3e3,stopOnInteraction:!0,stopOnMouseEnter:!0})],className:"w-full",children:[d.jsx(at,{className:"-ml-4",children:s.map(u=>d.jsx(lt,{className:"pl-4 basis-1/2 md:basis-1/3 lg:basis-1/5",children:d.jsx(Ft,{name:u.name,logoUrl:u.logoUrl,affiliateLink:u.affiliateLink})},u.name))}),d.jsx(ut,{className:"left-0"}),d.jsx(ft,{className:"right-0"})]})})]})}),d.jsx("section",{className:"py-16",children:d.jsxs("div",{className:"container mx-auto px-4",children:[d.jsxs("div",{className:"flex items-center justify-between mb-8",children:[d.jsxs("div",{children:[d.jsxs("h2",{className:"text-3xl font-bold mb-2 flex items-center gap-2",children:[d.jsx(zt,{className:"h-8 w-8 text-primary"}),"Produse Recomandate"]}),d.jsx("p",{className:"text-muted-foreground",children:"Cele mai bune oferte pentru tine"})]}),d.jsx(ve,{asChild:!0,variant:"outline",children:d.jsx(Ke,{to:"/products",children:"Vezi toate produsele →"})})]}),n?d.jsx("div",{className:"flex justify-center py-12",children:d.jsx(Je,{className:"h-8 w-8 animate-spin text-primary"})}):t.length>0?d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:t.slice(0,8).map((u,b)=>d.jsx(Xe,{product:u,compact:!0,priority:b<4},u.id))}):d.jsx("p",{className:"text-center text-muted-foreground py-12",children:"Nu există produse disponibile momentan."})]})}),d.jsx("section",{className:"py-16 bg-muted/30",children:d.jsxs("div",{className:"container mx-auto px-4",children:[d.jsxs("div",{className:"mb-8",children:[d.jsxs("h2",{className:"text-3xl font-bold mb-2 flex items-center gap-2",children:[d.jsx(Lt,{className:"h-8 w-8 text-primary"}),"Nou Adăugate"]}),d.jsx("p",{className:"text-muted-foreground",children:"Ultimele produse adăugate în platformă"})]}),a?d.jsx("div",{className:"flex justify-center py-12",children:d.jsx(Je,{className:"h-8 w-8 animate-spin text-primary"})}):r.length>0?d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-6",children:r.map(u=>d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"absolute top-2 left-2 z-10 bg-primary text-primary-foreground px-2 py-1 rounded text-xs font-bold",children:"NOU"}),d.jsx(Xe,{product:u,compact:!0})]},u.id))}):null]})}),d.jsx("section",{className:"py-16",children:d.jsx("div",{className:"container mx-auto px-4",children:d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[d.jsx(ye,{className:"text-center",children:d.jsxs(be,{className:"p-8",children:[d.jsx(Ct,{className:"h-12 w-12 text-primary mx-auto mb-4"}),d.jsx("p",{className:"text-4xl font-bold mb-2",children:((g=e==null?void 0:e.productCount)==null?void 0:g.toLocaleString())||"---"}),d.jsx("p",{className:"text-muted-foreground",children:"Produse disponibile"})]})}),d.jsx(ye,{className:"text-center",children:d.jsxs(be,{className:"p-8",children:[d.jsx(tt,{className:"h-12 w-12 text-primary mx-auto mb-4"}),d.jsx("p",{className:"text-4xl font-bold mb-2",children:(e==null?void 0:e.storeCount)||"---"}),d.jsx("p",{className:"text-muted-foreground",children:"Magazine partenere"})]})}),d.jsx(ye,{className:"text-center",children:d.jsxs(be,{className:"p-8",children:[d.jsx(qt,{className:"h-12 w-12 text-primary mx-auto mb-4"}),d.jsx("p",{className:"text-4xl font-bold mb-2",children:(e==null?void 0:e.categoryCount)||"---"}),d.jsx("p",{className:"text-muted-foreground",children:"Categorii de produse"})]})})]})})}),d.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:d.jsxs("div",{className:"container mx-auto px-4 text-center",children:[d.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Gata să descoperi oferte incredibile?"}),d.jsx("p",{className:"text-xl mb-8 opacity-90",children:"Explorează mii de produse și compară prețurile pentru a obține cea mai bună ofertă"}),d.jsx(ve,{asChild:!0,size:"lg",variant:"secondary",children:d.jsx(Ke,{to:"/products",children:"Descoperă toate produsele →"})})]})}),d.jsx(Et,{}),d.jsx(_t,{})]})};export{Hn as default};