1import{r as c,u as X,j as h,t as Y}from"./main-CRDFvX7c.js";const _={hex:"#a78bfa",rgb:"167,139,250"},A=[{match:e=>e.startsWith("/servicii/social-media/productie-video"),accent:{hex:"#ff5f96",rgb:"255,95,150"}},{match:e=>e.startsWith("/servicii/social-media/sm-management"),accent:{hex:"#a78bfa",rgb:"167,139,250"}},{match:e=>e.startsWith("/servicii/social-media/tiktok-organic"),accent:{hex:"#00d4ff",rgb:"0,212,255"}},{match:e=>e.startsWith("/servicii/social-media/community-building"),accent:{hex:"#ffb547",rgb:"255,181,71"}},{match:e=>e.startsWith("/servicii/performance-marketing/google-ads"),accent:{hex:"#ff8c42",rgb:"255,140,66"}},{match:e=>e.startsWith("/servicii/performance-marketing/meta-ads"),accent:{hex:"#0866ff",rgb:"8,102,255"}},{match:e=>e.startsWith("/servicii/performance-marketing/tiktok-ads"),accent:{hex:"#00d4ff",rgb:"0,212,255"}},{match:e=>e.startsWith("/servicii/performance-marketing/linkedin-ads"),accent:{hex:"#0a66c2",rgb:"10,102,194"}},{match:e=>e.startsWith("/servicii/seo-geo/seo-tehnic"),accent:{hex:"#00d4ff",rgb:"0,212,255"}},{match:e=>e.startsWith("/servicii/seo-geo/content-strategy"),accent:{hex:"#34d399",rgb:"52,211,153"}},{match:e=>e.startsWith("/servicii/seo-geo/aeo"),accent:{hex:"#a78bfa",rgb:"167,139,250"}},{match:e=>e.startsWith("/servicii/seo-geo/link-building"),accent:{hex:"#ff8c42",rgb:"255,140,66"}},{match:e=>e.startsWith("/servicii/seo-geo/seo-local"),accent:{hex:"#34d399",rgb:"52,211,153"}},{match:e=>e.startsWith("/servicii/dezvoltare-web/landing-pages"),accent:{hex:"#a78bfa",rgb:"167,139,250"}},{match:e=>e.startsWith("/servicii/dezvoltare-web/site-corporate"),accent:{hex:"#ff5f96",rgb:"255,95,150"}},{match:e=>e.startsWith("/servicii/dezvoltare-web/ecommerce"),accent:{hex:"#34d399",rgb:"52,211,153"}},{match:e=>e.startsWith("/servicii/dezvoltare-web/aplicatii-web"),accent:{hex:"#00d4ff",rgb:"0,212,255"}},{match:e=>e.startsWith("/servicii/solutii-ai/agenti-ai"),accent:{hex:"#34d399",rgb:"52,211,153"}},{match:e=>e.startsWith("/servicii/solutii-ai/automatizari-ai"),accent:{hex:"#00d4ff",rgb:"0,212,255"}},{match:e=>e.startsWith("/servicii/solutii-ai/analiza-predictiva"),accent:{hex:"#a78bfa",rgb:"167,139,250"}},{match:e=>e.startsWith("/servicii/solutii-ai/integrare-ai-personalizata"),accent:{hex:"#ff8c42",rgb:"255,140,66"}},{match:e=>e.startsWith("/servicii/social-media"),accent:{hex:"#ff5f96",rgb:"255,95,150"}},{match:e=>e.startsWith("/servicii/performance-marketing"),accent:{hex:"#a78bfa",rgb:"167,139,250"}},{match:e=>e.startsWith("/servicii/seo-geo"),accent:{hex:"#00d4ff",rgb:"0,212,255"}},{match:e=>e.startsWith("/servicii/dezvoltare-web"),accent:{hex:"#a78bfa",rgb:"167,139,250"}},{match:e=>e.startsWith("/servicii/solutii-ai"),accent:{hex:"#34d399",rgb:"52,211,153"}},{match:e=>e.startsWith("/agentie-social-media"),accent:{hex:"#ff5f96",rgb:"255,95,150"}},{match:e=>e.startsWith("/agentie-seo"),accent:{hex:"#00d4ff",rgb:"0,212,255"}},{match:e=>e.startsWith("/agentie-ppc"),accent:{hex:"#ff8c42",rgb:"255,140,66"}},{match:e=>e.startsWith("/agentie-web-design"),accent:{hex:"#a78bfa",rgb:"167,139,250"}}];function F(e){const n=e==="/en"?"/":e.startsWith("/en/")?Y(e.slice(3)):e;return A.find(m=>m.match(n))?.accent??_}const T=10,f=650,$=28,M=322,D=()=>{const e=c.useRef(null),n=c.useRef(null),m=c.useRef(null),g=X({select:a=>a.location.pathname}),j=c.useMemo(()=>F(g),[g]),[N,w]=c.useState(null);c.useEffect(()=>{const a=u=>{const o=u.detail;w(o&&o.hex&&o.rgb?o:null)};return window.addEventListener("cursor-accent",a),()=>window.removeEventListener("cursor-accent",a)},[]),c.useEffect(()=>{w(null)},[g]);const r=N??j;c.useEffect(()=>{const a=document.documentElement;a.style.setProperty("--cursor-accent",r.hex),a.style.setProperty("--cursor-accent-rgb",r.rgb)},[r]);const E=c.useRef(r);return c.useEffect(()=>{E.current=r},[r]),c.useEffect(()=>{if(typeof window>"u"||window.matchMedia("(pointer: coarse)").matches||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let a=null;const u=()=>{const l=e.current;if(!l)return;const x=[];for(let t=0;t<T;t++){const s=document.createElement("div");s.style.position="fixed",s.style.left="0",s.style.top="0",s.style.width=M+"px",s.style.height=M+"px",s.style.borderRadius="9999px",s.style.pointerEvents="none",s.style.opacity="0",s.style.transform="translate(-50%,-50%) scale(1)",s.style.willChange="transform, opacity",s.style.transition=`opacity ${f}ms ease-out, transform ${f}ms ease-out`,l.appendChild(s),x.push(s)}let y=0,W=-9999,k=-9999;const P=(t,s)=>{const i=x[y];y=(y+1)%T;const d=E.current;i.style.transition="none",i.style.background=`radial-gradient(circle, rgba(${d.rgb},0.16) 0%, rgba(${d.rgb},0.07) 35%, transparent 70%)`,i.style.left=t+"px",i.style.top=s+"px",i.style.opacity="0.55",i.style.transform="translate(-50%,-50%) scale(1)",i.offsetWidth,i.style.transition=`opacity ${f}ms ease-out, transform ${f}ms ease-out`,i.style.opacity="0",i.style.transform="translate(-50%,-50%) scale(0.7)"},L=t=>{const s=n.current,i=m.current;s&&(s.style.left=t.clientX+"px",s.style.top=t.clientY+"px"),i&&(i.style.left=t.clientX+"px",i.style.top=t.clientY+"px");const d=t.clientX-W,S=t.clientY-k;d*d+S*S<$*$||(W=t.clientX,k=t.clientY,P(t.clientX,t.clientY))},I=()=>{const t=n.current;t&&(t.style.width="6px",t.style.height="6px")},z=()=>{const t=n.current;t&&(t.style.width="10px",t.style.height="10px")},R=t=>{const s=t.target,i=n.current;i&&s&&s.closest&&s.closest("a,button")&&(i.style.width="18px",i.style.height="18px",i.style.opacity="0.6")},C=t=>{const s=t.target,i=n.current;i&&s&&s.closest&&s.closest("a,button")&&(i.style.width="10px",i.style.height="10px",i.style.opacity="1")};document.addEventListener("mousemove",L,{passive:!0}),document.addEventListener("mousedown",I,{passive:!0}),document.addEventListener("mouseup",z,{passive:!0}),document.addEventListener("mouseover",R,{passive:!0}),document.addEventListener("mouseout",C,{passive:!0}),a=()=>{document.removeEventListener("mousemove",L),document.removeEventListener("mousedown",I),document.removeEventListener("mouseup",z),document.removeEventListener("mouseover",R),document.removeEventListener("mouseout",C),x.forEach(t=>t.remove())}},o=window.requestIdleCallback;let v=null,b=null;const p=()=>{o?v=o(u,{timeout:2e3}):b=window.setTimeout(u,600)};return document.readyState==="complete"?p():window.addEventListener("load",p,{once:!0}),()=>{window.removeEventListener("load",p);const l=window.cancelIdleCallback;v!=null&&l&&l(v),b!=null&&clearTimeout(b),a&&a()}},[]),h.jsxs(h.Fragment,{children:[h.jsx("div",{ref:e,"aria-hidden":!0,
1className:"hidden md:block fixed inset-0 pointer-events-none",style:{zIndex:9997}}),h.jsx("div",{ref:m,"aria-hidden":!0,className:"hidden md:block fixed pointer-events-none rounded-full",style:{width:322,height:322,background:`radial-gradient(circle, rgba(${r.rgb},0.16) 0%, rgba(${r.rgb},0.07) 35%, transparent 70%)`,zIndex:9998,transform:"translate(-50%,-50%)",transition:"transform .5s cubic-bezier(.23,1,.32,1), background .6s ease"}}),h.jsx("div",{ref:n,"aria-hidden":!0,className:"hidden md:block fixed pointer-events-none rounded-full",style:{width:10,height:10,background:r.hex,zIndex:9999,transform:"translate(-50%,-50%)",transition:"width .25s, height .25s, opacity .25s, background-color .6s ease",mixBlendMode:"screen"}})]})};export{D as CursorFx};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.