import{c as R,j as r,r as c,e as Fe,aa as ve,a as P,X as Le,F as ge,p as Z,P as z,ab as O,ac as _e,ad as yt,n as bt,q as U,C as de,D as Ct,ae as wt,o as Nt,v as te,J as Et,K as jt,$ as St,d as kt,L as S}from"./index-D5aSL5Lk.js";import{I as Rt,B as T}from"./Footer-B625QnUy.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 pe=R("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @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 At=R("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
 * @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 Dt=R("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
 * @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 xe=R("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
 * @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 ye=R("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @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 Mt=R("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @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 Tt=R("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
 * @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 Pt=R("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @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 be=R("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @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 Ce=R("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
 * @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 we=R("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]),Ne=({className:e="h-8",showText:t=!0})=>r.jsxs("div",{className:`flex items-center gap-2 ${e}`,children:[r.jsxs("svg",{viewBox:"0 0 100 100",className:"h-full w-auto",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M50 5 L90 20 L90 50 Q90 80 50 95 Q10 80 10 50 L10 20 Z",fill:"white",stroke:"white",strokeWidth:"2"}),r.jsx("text",{x:"50",y:"58",fontFamily:"Arial, sans-serif",fontSize:"28",fontWeight:"bold",fill:"hsl(var(--primary))",textAnchor:"middle",children:"CSS"})]}),t&&r.jsx("span",{className:"text-2xl font-bold text-primary-foreground",children:"Clyper"})]}),ne="recent-searches",Ee=5,It=()=>{const[e,t]=c.useState([]);c.useEffect(()=>{try{const l=localStorage.getItem(ne);if(l){const o=JSON.parse(l);Array.isArray(o)&&t(o.slice(0,Ee))}}catch(l){console.error("Error loading recent searches:",l)}},[]);const n=c.useCallback(l=>{try{localStorage.setItem(ne,JSON.stringify(l))}catch(o){console.error("Error saving recent searches:",o)}},[]),a=c.useCallback(l=>{const o=l.trim().toLowerCase();o&&t(f=>{const h=f.filter(d=>d.toLowerCase()!==o),v=[l.trim(),...h].slice(0,Ee);return n(v),v})},[n]),s=c.useCallback(l=>{t(o=>{const f=o.filter(h=>h!==l);return n(f),f})},[n]),i=c.useCallback(()=>{t([]);try{localStorage.removeItem(ne)}catch(l){console.error("Error clearing recent searches:",l)}},[]);return{recentSearches:e,addSearch:a,removeSearch:s,clearAll:i}},V=[{name:"Telefoane",slug:"telefoane",icon:"📱"},{name:"Laptopuri",slug:"laptopuri",icon:"💻"},{name:"Electrocasnice",slug:"electrocasnice",icon:"🏠"},{name:"Gaming",slug:"gaming",icon:"🎮"}],je=({className:e,inputClassName:t,placeholder:n="Caută produse, branduri, categorii...",showButton:a=!0,onSearchSubmit:s})=>{const[i,l]=c.useState(""),[o,f]=c.useState(!1),[h,v]=c.useState(-1),d=Fe(),x=c.useRef(null),y=c.useRef(null),{recentSearches:N,addSearch:u,removeSearch:m,clearAll:p}=It();c.useEffect(()=>{const g=j=>{y.current&&!y.current.contains(j.target)&&f(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const C=g=>{g.preventDefault();const j=i.trim();j&&(ve(j),u(j),f(!1),d(`/products?search=${encodeURIComponent(j)}`),s==null||s())},b=c.useCallback(g=>{ve(g),f(!1),l(""),d(`/products?search=${encodeURIComponent(g)}`),s==null||s()},[d,s]),w=c.useCallback(g=>{f(!1),l(""),d(`/categorie/${g}`),s==null||s()},[d,s]),E=c.useCallback((g,j)=>{g.stopPropagation(),m(j)},[m]),M=N.length+V.length,D=g=>{var j;if(!o){g.key==="Escape"&&((j=x.current)==null||j.blur());return}switch(g.key){case"ArrowDown":g.preventDefault(),v(k=>k<M-1?k+1:0);break;case"ArrowUp":g.preventDefault(),v(k=>k>0?k-1:M-1);break;case"Enter":if(h>=0)if(g.preventDefault(),h<N.length)b(N[h]);else{const k=h-N.length;w(V[k].slug)}break;case"Escape":f(!1),v(-1);break}},F=N.length>0||V.length>0;return r.jsxs("div",{ref:y,className:P("relative",e),children:[r.jsx("form",{onSubmit:C,className:"w-full",children:r.jsxs("div",{className:"flex gap-2",children:[r.jsx("div",{className:"relative flex-1",children:r.jsx(Rt,{ref:x,type:"search",placeholder:n,value:i,onChange:g=>{l(g.target.value),v(-1)},onFocus:()=>{F&&f(!0)},onKeyDown:D,className:P("h-12 text-lg",t),autoComplete:"off"})}),a&&r.jsxs(T,{type:"submit",size:"lg",className:"px-8",children:[r.jsx(Pt,{className:"h-5 w-5 mr-2"}),"Caută"]})]})}),o&&F&&r.jsxs("div",{className:"absolute z-50 top-full left-0 right-0 mt-1 bg-popover border border-border rounded-lg shadow-lg max-h-96 overflow-y-auto",children:[N.length>0&&r.jsxs("div",{children:[r.jsxs("div",{className:"px-3 py-2 text-xs font-semibold text-muted-foreground uppercase bg-muted/50 flex items-center justify-between",children:[r.jsxs("span",{className:"flex items-center gap-1.5",children:[r.jsx(pe,{className:"h-3 w-3"}),"Căutări recente"]}),r.jsx("button",{type:"button",onClick:p,className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Șterge toate"})]}),N.map((g,j)=>r.jsxs("button",{type:"button",className:P("w-full flex items-center gap-3 px-3 py-2.5 text-left hover:bg-accent transition-colors group",h===j&&"bg-accent"),onClick:()=>b(g),onMouseEnter:()=>v(j),children:[r.jsx(pe,{className:"h-4 w-4 text-muted-foreground"}),r.jsx("span",{className:"flex-1 text-sm",children:g}),r.jsx("button",{type:"button",onClick:k=>E(k,g),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-muted rounded transition-all","aria-label":`Șterge "${g}"`,children:r.jsx(Le,{className:"h-3 w-3 text-muted-foreground"})})]},g))]}),V.length>0&&r.jsxs("div",{children:[r.jsxs("div",{className:"px-3 py-2 text-xs font-semibold text-muted-foreground uppercase bg-muted/50 flex items-center gap-1.5",children:[r.jsx(At,{className:"h-3 w-3"}),"Categorii populare"]}),V.map((g,j)=>{const k=N.length+j;return r.jsxs("button",{type:"button",className:P("w-full flex items-center gap-3 px-3 py-2.5 text-left hover:bg-accent transition-colors",h===k&&"bg-accent"),onClick:()=>w(g.slug),onMouseEnter:()=>v(k),children:[r.jsx("span",{className:"text-base",children:g.icon}),r.jsx("span",{className:"text-sm",children:g.name})]},g.slug)})]})]})]})};var re="focusScope.autoFocusOnMount",ae="focusScope.autoFocusOnUnmount",Se={bubbles:!1,cancelable:!0},Ot="FocusScope",We=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...l}=e,[o,f]=c.useState(null),h=ge(s),v=ge(i),d=c.useRef(null),x=Z(t,u=>f(u)),y=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(a){let u=function(b){if(y.paused||!o)return;const w=b.target;o.contains(w)?d.current=w:I(d.current,{select:!0})},m=function(b){if(y.paused||!o)return;const w=b.relatedTarget;w!==null&&(o.contains(w)||I(d.current,{select:!0}))},p=function(b){if(document.activeElement===document.body)for(const E of b)E.removedNodes.length>0&&I(o)};document.addEventListener("focusin",u),document.addEventListener("focusout",m);const C=new MutationObserver(p);return o&&C.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",m),C.disconnect()}}},[a,o,y.paused]),c.useEffect(()=>{if(o){Re.add(y);const u=document.activeElement;if(!o.contains(u)){const p=new CustomEvent(re,Se);o.addEventListener(re,h),o.dispatchEvent(p),p.defaultPrevented||(Ft(Ht(Be(o)),{select:!0}),document.activeElement===u&&I(o))}return()=>{o.removeEventListener(re,h),setTimeout(()=>{const p=new CustomEvent(ae,Se);o.addEventListener(ae,v),o.dispatchEvent(p),p.defaultPrevented||I(u??document.body,{select:!0}),o.removeEventListener(ae,v),Re.remove(y)},0)}}},[o,h,v,y]);const N=c.useCallback(u=>{if(!n&&!a||y.paused)return;const m=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,p=document.activeElement;if(m&&p){const C=u.currentTarget,[b,w]=Lt(C);b&&w?!u.shiftKey&&p===w?(u.preventDefault(),n&&I(b,{select:!0})):u.shiftKey&&p===b&&(u.preventDefault(),n&&I(w,{select:!0})):p===C&&u.preventDefault()}},[n,a,y.paused]);return r.jsx(z.div,{tabIndex:-1,...l,ref:x,onKeyDown:N})});We.displayName=Ot;function Ft(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(I(a,{select:t}),document.activeElement!==n)return}function Lt(e){const t=Be(e),n=ke(t,e),a=ke(t.reverse(),e);return[n,a]}function Be(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ke(e,t){for(const n of e)if(!_t(n,{upTo:t}))return n}function _t(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Wt(e){return e instanceof HTMLInputElement&&"select"in e}function I(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Wt(e)&&t&&e.select()}}var Re=Bt();function Bt(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ae(e,t),e.unshift(t)},remove(t){var n;e=Ae(e,t),(n=e[0])==null||n.resume()}}}function Ae(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}function Ht(e){return e.filter(t=>t.tagName!=="A")}var oe=0;function zt(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??De()),document.body.insertAdjacentElement("beforeend",e[1]??De()),oe++,()=>{oe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),oe--}},[])}function De(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Y="right-scroll-bar-position",q="width-before-scroll-bar",Vt="with-scroll-bars-hidden",Ut="--removed-body-scroll-bar-size";function se(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Gt(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var s=n.value;s!==a&&(n.value=a,n.callback(a,s))}}}})[0];return n.callback=t,n.facade}var Kt=typeof window<"u"?c.useLayoutEffect:c.useEffect,Me=new WeakMap;function $t(e,t){var n=Gt(null,function(a){return e.forEach(function(s){return se(s,a)})});return Kt(function(){var a=Me.get(n);if(a){var s=new Set(a),i=new Set(e),l=n.current;s.forEach(function(o){i.has(o)||se(o,null)}),i.forEach(function(o){s.has(o)||se(o,l)})}Me.set(n,e)},[e]),n}function Xt(e){return e}function Yt(e,t){t===void 0&&(t=Xt);var n=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,a);return n.push(l),function(){n=n.filter(function(o){return o!==l})}},assignSyncMedium:function(i){for(a=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(o){return i(o)},filter:function(){return n}}},assignMedium:function(i){a=!0;var l=[];if(n.length){var o=n;n=[],o.forEach(i),l=n}var f=function(){var v=l;l=[],v.forEach(i)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(v){l.push(v),h()},filter:function(v){return l=l.filter(v),n}}}};return s}function qt(e){e===void 0&&(e={});var t=Yt(null);return t.options=O({async:!0,ssr:!1},e),t}var He=function(e){var t=e.sideCar,n=_e(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return c.createElement(a,O({},n))};He.isSideCarExport=!0;function Qt(e,t){return e.useMedium(t),He}var ze=qt(),ce=function(){},J=c.forwardRef(function(e,t){var n=c.useRef(null),a=c.useState({onScrollCapture:ce,onWheelCapture:ce,onTouchMoveCapture:ce}),s=a[0],i=a[1],l=e.forwardProps,o=e.children,f=e.className,h=e.removeScrollBar,v=e.enabled,d=e.shards,x=e.sideCar,y=e.noRelative,N=e.noIsolation,u=e.inert,m=e.allowPinchZoom,p=e.as,C=p===void 0?"div":p,b=e.gapMode,w=_e(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=x,M=$t([n,t]),D=O(O({},w),s);return c.createElement(c.Fragment,null,v&&c.createElement(E,{sideCar:ze,removeScrollBar:h,shards:d,noRelative:y,noIsolation:N,inert:u,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:b}),l?c.cloneElement(c.Children.only(o),O(O({},D),{ref:M})):c.createElement(C,O({},D,{className:f,ref:M}),o))});J.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};J.classNames={fullWidth:q,zeroRight:Y};var Zt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Zt();return t&&e.setAttribute("nonce",t),e}function en(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tn(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nn=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Jt())&&(en(t,n),tn(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rn=function(){var e=nn();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ve=function(){var e=rn(),t=function(n){var a=n.styles,s=n.dynamic;return e(a,s),null};return t},an={left:0,top:0,right:0,gap:0},ie=function(e){return parseInt(e||"",10)||0},on=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[ie(n),ie(a),ie(s)]},sn=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return an;var t=on(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},cn=Ve(),H="data-scroll-locked",ln=function(e,t,n,a){var s=e.left,i=e.top,l=e.right,o=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(Vt,` {
   overflow: hidden `).concat(a,`;
   padding-right: `).concat(o,"px ").concat(a,`;
  }
  body[`).concat(H,`] {
    overflow: hidden `).concat(a,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&`
    padding-left: `.concat(s,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(l,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(o,"px ").concat(a,`;
    `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(a,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Y,` {
    right: `).concat(o,"px ").concat(a,`;
  }
  
  .`).concat(q,` {
    margin-right: `).concat(o,"px ").concat(a,`;
  }
  
  .`).concat(Y," .").concat(Y,` {
    right: 0 `).concat(a,`;
  }
  
  .`).concat(q," .").concat(q,` {
    margin-right: 0 `).concat(a,`;
  }
  
  body[`).concat(H,`] {
    `).concat(Ut,": ").concat(o,`px;
  }
`)},Te=function(){var e=parseInt(document.body.getAttribute(H)||"0",10);return isFinite(e)?e:0},un=function(){c.useEffect(function(){return document.body.setAttribute(H,(Te()+1).toString()),function(){var e=Te()-1;e<=0?document.body.removeAttribute(H):document.body.setAttribute(H,e.toString())}},[])},dn=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a;un();var i=c.useMemo(function(){return sn(s)},[s]);return c.createElement(cn,{styles:ln(i,!t,s,n?"":"!important")})},ue=!1;if(typeof window<"u")try{var G=Object.defineProperty({},"passive",{get:function(){return ue=!0,!0}});window.addEventListener("test",G,G),window.removeEventListener("test",G,G)}catch{ue=!1}var _=ue?{passive:!1}:!1,fn=function(e){return e.tagName==="TEXTAREA"},Ue=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!fn(e)&&n[t]==="visible")},hn=function(e){return Ue(e,"overflowY")},mn=function(e){return Ue(e,"overflowX")},Pe=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=Ge(e,a);if(s){var i=Ke(e,a),l=i[1],o=i[2];if(l>o)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},vn=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},gn=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},Ge=function(e,t){return e==="v"?hn(t):mn(t)},Ke=function(e,t){return e==="v"?vn(t):gn(t)},pn=function(e,t){return e==="h"&&t==="rtl"?-1:1},xn=function(e,t,n,a,s){var i=pn(e,window.getComputedStyle(t).direction),l=i*a,o=n.target,f=t.contains(o),h=!1,v=l>0,d=0,x=0;do{if(!o)break;var y=Ke(e,o),N=y[0],u=y[1],m=y[2],p=u-m-i*N;(N||p)&&Ge(e,o)&&(d+=p,x+=N);var C=o.parentNode;o=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!f&&o!==document.body||f&&(t.contains(o)||t===o));return(v&&(Math.abs(d)<1||!s)||!v&&(Math.abs(x)<1||!s))&&(h=!0),h},K=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ie=function(e){return[e.deltaX,e.deltaY]},Oe=function(e){return e&&"current"in e?e.current:e},yn=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bn=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},Cn=0,W=[];function wn(e){var t=c.useRef([]),n=c.useRef([0,0]),a=c.useRef(),s=c.useState(Cn++)[0],i=c.useState(Ve)[0],l=c.useRef(e);c.useEffect(function(){l.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var u=yt([e.lockRef.current],(e.shards||[]).map(Oe),!0).filter(Boolean);return u.forEach(function(m){return m.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),u.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var o=c.useCallback(function(u,m){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!l.current.allowPinchZoom;var p=K(u),C=n.current,b="deltaX"in u?u.deltaX:C[0]-p[0],w="deltaY"in u?u.deltaY:C[1]-p[1],E,M=u.target,D=Math.abs(b)>Math.abs(w)?"h":"v";if("touches"in u&&D==="h"&&M.type==="range")return!1;var F=Pe(D,M);if(!F)return!0;if(F?E=D:(E=D==="v"?"h":"v",F=Pe(D,M)),!F)return!1;if(!a.current&&"changedTouches"in u&&(b||w)&&(a.current=E),!E)return!0;var g=a.current||E;return xn(g,m,u,g==="h"?b:w,!0)},[]),f=c.useCallback(function(u){var m=u;if(!(!W.length||W[W.length-1]!==i)){var p="deltaY"in m?Ie(m):K(m),C=t.current.filter(function(E){return E.name===m.type&&(E.target===m.target||m.target===E.shadowParent)&&yn(E.delta,p)})[0];if(C&&C.should){m.cancelable&&m.preventDefault();return}if(!C){var b=(l.current.shards||[]).map(Oe).filter(Boolean).filter(function(E){return E.contains(m.target)}),w=b.length>0?o(m,b[0]):!l.current.noIsolation;w&&m.cancelable&&m.preventDefault()}}},[]),h=c.useCallback(function(u,m,p,C){var b={name:u,delta:m,target:p,should:C,shadowParent:Nn(p)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(w){return w!==b})},1)},[]),v=c.useCallback(function(u){n.current=K(u),a.current=void 0},[]),d=c.useCallback(function(u){h(u.type,Ie(u),u.target,o(u,e.lockRef.current))},[]),x=c.useCallback(function(u){h(u.type,K(u),u.target,o(u,e.lockRef.current))},[]);c.useEffect(function(){return W.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:x}),document.addEventListener("wheel",f,_),document.addEventListener("touchmove",f,_),document.addEventListener("touchstart",v,_),function(){W=W.filter(function(u){return u!==i}),document.removeEventListener("wheel",f,_),document.removeEventListener("touchmove",f,_),document.removeEventListener("touchstart",v,_)}},[]);var y=e.removeScrollBar,N=e.inert;return c.createElement(c.Fragment,null,N?c.createElement(i,{styles:bn(s)}):null,y?c.createElement(dn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Nn(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const En=Qt(ze,wn);var $e=c.forwardRef(function(e,t){return c.createElement(J,O({},e,{ref:t,sideCar:En}))});$e.classNames=J.classNames;var jn=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},B=new WeakMap,$=new WeakMap,X={},le=0,Xe=function(e){return e&&(e.host||Xe(e.parentNode))},Sn=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=Xe(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},kn=function(e,t,n,a){var s=Sn(t,Array.isArray(e)?e:[e]);X[n]||(X[n]=new WeakMap);var i=X[n],l=[],o=new Set,f=new Set(s),h=function(d){!d||o.has(d)||(o.add(d),h(d.parentNode))};s.forEach(h);var v=function(d){!d||f.has(d)||Array.prototype.forEach.call(d.children,function(x){if(o.has(x))v(x);else try{var y=x.getAttribute(a),N=y!==null&&y!=="false",u=(B.get(x)||0)+1,m=(i.get(x)||0)+1;B.set(x,u),i.set(x,m),l.push(x),u===1&&N&&$.set(x,!0),m===1&&x.setAttribute(n,"true"),N||x.setAttribute(a,"true")}catch(p){console.error("aria-hidden: cannot operate on ",x,p)}})};return v(t),o.clear(),le++,function(){l.forEach(function(d){var x=B.get(d)-1,y=i.get(d)-1;B.set(d,x),i.set(d,y),x||($.has(d)||d.removeAttribute(a),$.delete(d)),y||d.removeAttribute(n)}),le--,le||(B=new WeakMap,B=new WeakMap,$=new WeakMap,X={})}},Rn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=jn(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live]"))),kn(a,s,n,"aria-hidden")):function(){return null}},ee="Dialog",[Ye,Yn]=bt(ee),[An,A]=Ye(ee),qe=e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:s,onOpenChange:i,modal:l=!0}=e,o=c.useRef(null),f=c.useRef(null),[h,v]=Nt({prop:a,defaultProp:s??!1,onChange:i,caller:ee});return r.jsx(An,{scope:t,triggerRef:o,contentRef:f,contentId:te(),titleId:te(),descriptionId:te(),open:h,onOpenChange:v,onOpenToggle:c.useCallback(()=>v(d=>!d),[v]),modal:l,children:n})};qe.displayName=ee;var Qe="DialogTrigger",Ze=c.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=A(Qe,n),i=Z(t,s.triggerRef);return r.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":me(s.open),...a,ref:i,onClick:U(e.onClick,s.onOpenToggle)})});Ze.displayName=Qe;var fe="DialogPortal",[Dn,Je]=Ye(fe,{forceMount:void 0}),et=e=>{const{__scopeDialog:t,forceMount:n,children:a,container:s}=e,i=A(fe,t);return r.jsx(Dn,{scope:t,forceMount:n,children:c.Children.map(a,l=>r.jsx(de,{present:n||i.open,children:r.jsx(Et,{asChild:!0,container:s,children:l})}))})};et.displayName=fe;var Q="DialogOverlay",tt=c.forwardRef((e,t)=>{const n=Je(Q,e.__scopeDialog),{forceMount:a=n.forceMount,...s}=e,i=A(Q,e.__scopeDialog);return i.modal?r.jsx(de,{present:a||i.open,children:r.jsx(Tn,{...s,ref:t})}):null});tt.displayName=Q;var Mn=jt("DialogOverlay.RemoveScroll"),Tn=c.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=A(Q,n);return r.jsx($e,{as:Mn,allowPinchZoom:!0,shards:[s.contentRef],children:r.jsx(z.div,{"data-state":me(s.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),L="DialogContent",nt=c.forwardRef((e,t)=>{const n=Je(L,e.__scopeDialog),{forceMount:a=n.forceMount,...s}=e,i=A(L,e.__scopeDialog);return r.jsx(de,{present:a||i.open,children:i.modal?r.jsx(Pn,{...s,ref:t}):r.jsx(In,{...s,ref:t})})});nt.displayName=L;var Pn=c.forwardRef((e,t)=>{const n=A(L,e.__scopeDialog),a=c.useRef(null),s=Z(t,n.contentRef,a);return c.useEffect(()=>{const i=a.current;if(i)return Rn(i)},[]),r.jsx(rt,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,o=l.button===0&&l.ctrlKey===!0;(l.button===2||o)&&i.preventDefault()}),onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault())})}),In=c.forwardRef((e,t)=>{const n=A(L,e.__scopeDialog),a=c.useRef(!1),s=c.useRef(!1);return r.jsx(rt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,o;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(a.current||(o=n.triggerRef.current)==null||o.focus(),i.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:i=>{var f,h;(f=e.onInteractOutside)==null||f.call(e,i),i.defaultPrevented||(a.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=i.target;((h=n.triggerRef.current)==null?void 0:h.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),rt=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:i,...l}=e,o=A(L,n),f=c.useRef(null),h=Z(t,f);return zt(),r.jsxs(r.Fragment,{children:[r.jsx(We,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:i,children:r.jsx(Ct,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":me(o.open),...l,ref:h,onDismiss:()=>o.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(On,{titleId:o.titleId}),r.jsx(Ln,{contentRef:f,descriptionId:o.descriptionId})]})]})}),he="DialogTitle",at=c.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=A(he,n);return r.jsx(z.h2,{id:s.titleId,...a,ref:t})});at.displayName=he;var ot="DialogDescription",st=c.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=A(ot,n);return r.jsx(z.p,{id:s.descriptionId,...a,ref:t})});st.displayName=ot;var ct="DialogClose",it=c.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=A(ct,n);return r.jsx(z.button,{type:"button",...a,ref:t,onClick:U(e.onClick,()=>s.onOpenChange(!1))})});it.displayName=ct;function me(e){return e?"open":"closed"}var lt="DialogTitleWarning",[qn,ut]=wt(lt,{contentName:L,titleName:he,docsSlug:"dialog"}),On=({titleId:e})=>{const t=ut(lt),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Fn="DialogDescriptionWarning",Ln=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ut(Fn).contentName}}.`;return c.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},_n=qe,Wn=Ze,Bn=et,dt=tt,ft=nt,ht=at,mt=st,Hn=it;const zn=_n,Vn=Wn,Un=Bn,vt=c.forwardRef(({className:e,...t},n)=>r.jsx(dt,{className:P("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));vt.displayName=dt.displayName;const Gn=St("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4  border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),gt=c.forwardRef(({side:e="right",className:t,children:n,...a},s)=>r.jsxs(Un,{children:[r.jsx(vt,{}),r.jsxs(ft,{ref:s,className:P(Gn({side:e}),t),...a,children:[n,r.jsxs(Hn,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[r.jsx(Le,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));gt.displayName=ft.displayName;const pt=({className:e,...t})=>r.jsx("div",{className:P("flex flex-col space-y-2 text-center sm:text-left",e),...t});pt.displayName="SheetHeader";const xt=c.forwardRef(({className:e,...t},n)=>r.jsx(ht,{ref:n,className:P("text-lg font-semibold text-foreground",e),...t}));xt.displayName=ht.displayName;const Kn=c.forwardRef(({className:e,...t},n)=>r.jsx(mt,{ref:n,className:P("text-sm text-muted-foreground",e),...t}));Kn.displayName=mt.displayName;const Qn=()=>{const{user:e,isAdmin:t,signOut:n}=kt(),a=Fe(),[s,i]=c.useState(!1),l=async()=>{await n(),i(!1),a("/")},o=()=>{i(!1)};return r.jsx("header",{className:"bg-primary text-primary-foreground sticky top-0 z-50 shadow-md",children:r.jsx("div",{className:"container mx-auto px-4",children:r.jsxs("div",{className:"flex items-center justify-between h-16",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs(zn,{open:s,onOpenChange:i,children:[r.jsx(Vn,{asChild:!0,children:r.jsxs(T,{variant:"ghost",size:"icon",className:"lg:hidden text-primary-foreground hover:bg-primary/80",children:[r.jsx(Mt,{className:"h-5 w-5"}),r.jsx("span",{className:"sr-only",children:"Deschide meniul"})]})}),r.jsxs(gt,{side:"left",className:"w-[300px] sm:w-[350px]",children:[r.jsx(pt,{className:"mb-6",children:r.jsx(xt,{className:"flex items-center gap-2",children:r.jsx(Ne,{showText:!0,className:"h-8"})})}),r.jsx("div",{className:"mb-6",children:r.jsx(je,{placeholder:"Căutare produse...",showButton:!1,inputClassName:"h-11"})}),r.jsxs("nav",{className:"space-y-2",children:[r.jsxs(S,{to:"/",onClick:o,className:"flex items-center gap-3 px-3 py-3 rounded-lg hover:bg-muted transition-colors text-foreground",children:[r.jsx(Dt,{className:"h-5 w-5"}),r.jsx("span",{className:"font-medium",children:"Acasă"})]}),r.jsxs(S,{to:"/products",onClick:o,className:"flex items-center gap-3 px-3 py-3 rounded-lg hover:bg-muted transition-colors text-foreground",children:[r.jsx(Tt,{className:"h-5 w-5"}),r.jsx("span",{className:"font-medium",children:"Produse"})]}),r.jsxs(S,{to:"/categorii",onClick:o,className:"flex items-center gap-3 px-3 py-3 rounded-lg hover:bg-muted transition-colors text-foreground",children:[r.jsx(xe,{className:"h-5 w-5"}),r.jsx("span",{className:"font-medium",children:"Categorii"})]}),e&&t&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"border-t my-4"}),r.jsx("p",{className:"px-3 text-xs text-muted-foreground uppercase tracking-wide mb-2",children:"Admin"}),r.jsxs(S,{to:"/dashboard",onClick:o,className:"flex items-center gap-3 px-3 py-3 rounded-lg hover:bg-muted transition-colors text-foreground",children:[r.jsx(xe,{className:"h-5 w-5"}),r.jsx("span",{className:"font-medium",children:"Dashboard"})]}),r.jsxs(S,{to:"/security",onClick:o,className:"flex items-center gap-3 px-3 py-3 rounded-lg hover:bg-muted transition-colors text-foreground",children:[r.jsx(Ce,{className:"h-5 w-5"}),r.jsx("span",{className:"font-medium",children:"Securitate"})]}),r.jsxs(S,{to:"/advertisers",onClick:o,className:"flex items-center gap-3 px-3 py-3 rounded-lg hover:bg-muted transition-colors text-foreground",children:[r.jsx(we,{className:"h-5 w-5"}),r.jsx("span",{className:"font-medium",children:"Advertiseri"})]}),r.jsxs(S,{to:"/settings",onClick:o,className:"flex items-center gap-3 px-3 py-3 rounded-lg hover:bg-muted transition-colors text-foreground",children:[r.jsx(be,{className:"h-5 w-5"}),r.jsx("span",{className:"font-medium",children:"Setări"})]})]}),e&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"border-t my-4"}),r.jsxs("button",{onClick:l,className:"flex items-center gap-3 px-3 py-3 rounded-lg hover:bg-muted transition-colors text-foreground w-full text-left",children:[r.jsx(ye,{className:"h-5 w-5"}),r.jsx("span",{className:"font-medium",children:"Delogare"})]})]})]})]})]}),r.jsx(S,{to:"/",className:"flex items-center",children:r.jsx(Ne,{showText:!0,className:"h-8"})})]}),r.jsx("div",{className:"flex-1 max-w-2xl mx-4 hidden md:block",children:r.jsx(je,{placeholder:"Căutare produse",showButton:!1,inputClassName:"bg-primary-foreground text-foreground h-11"})}),r.jsx("div",{className:"flex items-center gap-2",children:e?r.jsxs(r.Fragment,{children:[t&&r.jsxs(r.Fragment,{children:[r.jsx(T,{variant:"ghost",className:"text-primary-foreground hover:bg-primary/80 hidden sm:inline-flex",asChild:!0,children:r.jsx(S,{to:"/dashboard",children:"Dashboard"})}),r.jsx(T,{variant:"ghost",size:"icon",className:"text-primary-foreground hover:bg-primary/80 hidden sm:inline-flex",asChild:!0,title:"Securitate",children:r.jsx(S,{to:"/security",children:r.jsx(Ce,{className:"h-5 w-5"})})}),r.jsx(T,{variant:"ghost",size:"icon",className:"text-primary-foreground hover:bg-primary/80 hidden sm:inline-flex",asChild:!0,title:"Advertiseri",children:r.jsx(S,{to:"/advertisers",children:r.jsx(we,{className:"h-5 w-5"})})}),r.jsx(T,{variant:"ghost",size:"icon",className:"text-primary-foreground hover:bg-primary/80 hidden sm:inline-flex",asChild:!0,title:"Setări",children:r.jsx(S,{to:"/settings",children:r.jsx(be,{className:"h-5 w-5"})})})]}),r.jsx(T,{variant:"ghost",className:"text-primary-foreground hover:bg-primary/80 hidden sm:inline-flex",asChild:!0,children:r.jsx(S,{to:"/products",children:"Produse"})}),r.jsx(T,{variant:"ghost",size:"icon",className:"text-primary-foreground hover:bg-primary/80 hidden sm:inline-flex",onClick:l,children:r.jsx(ye,{className:"h-5 w-5"})})]}):r.jsx(T,{variant:"ghost",className:"text-primary-foreground hover:bg-primary/80 hidden sm:inline-flex",asChild:!0,children:r.jsx(S,{to:"/products",children:"Produse"})})})]})})})};export{pe as C,mt as D,We as F,Qn as H,dt as O,Tt as P,$e as R,we as S,ht as T,qn as W,je as a,Pt as b,Dt as c,be as d,Ce as e,zn as f,Vn as g,Rn as h,gt as i,pt as j,xt as k,ft as l,Hn as m,_n as n,Wn as o,Bn as p,Yn as q,zt as u};