{"version":3,"file":"shared-lib.PuCJTd-w.mjs","names":["l","useState","useRef","_Fragment","p"],"sources":["https:/framerusercontent.com/modules/DYwoxXmZe6HrR9tonyDJ/zxUpmsA4GZPFzC8fzveO/CustomCursor.js","https:/framerusercontent.com/modules/dtRXDB7pmiYR2c07Ckz0/SG2d0tIrjl0oc7mSY92a/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/* ---------- GLOBAL HOVER STATE ---------- */let cursorHover=false;let listeners=[];export function setCursorHover(value){cursorHover=value;listeners.forEach(l=>l(cursorHover));}function subscribe(listener){listeners.push(listener);return()=>{listeners=listeners.filter(l=>l!==listener);};}/* ---------- COMPONENT ---------- */export default function CustomCursor(props){const{dotColor=\"#000000\",dotSize=12,trailColor=\"#000000\",trailLength=10,trailOpacity=.4,followSpeed=.22,buttonText=\"View\",buttonBackground=\"rgba(255,255,255,0.1)\",buttonTextColor=\"#ffffff\",buttonBlur=12,buttonBorder=\"rgba(255,255,255,0.2)\",buttonFont}=props;const isStatic=useIsStaticRenderer();const[isHovering,setIsHovering]=useState(false);const mouseX=useRef(0);const mouseY=useRef(0);const trail=useRef(Array.from({length:trailLength},()=>({x:0,y:0})));const[,forceRender]=useState(0);/* ---------- HIDE SYSTEM CURSOR ---------- */useEffect(()=>{if(isStatic)return;const style=document.createElement(\"style\");style.innerHTML=`\n        html, body, * {\n            cursor: none !important;\n        }\n    `;document.head.appendChild(style);return()=>{document.head.removeChild(style);};},[isStatic]);/* ---------- TRACK MOUSE ---------- */useEffect(()=>{const move=e=>{mouseX.current=e.clientX;mouseY.current=e.clientY;};window.addEventListener(\"mousemove\",move);return()=>window.removeEventListener(\"mousemove\",move);},[]);/* ---------- HOVER SUBSCRIPTION ---------- */useEffect(()=>{return subscribe(setIsHovering);},[]);/* ---------- SMOOTH TRAIL ---------- */useEffect(()=>{const animate=()=>{const first=trail.current[0];first.x+=(mouseX.current-first.x)*followSpeed;first.y+=(mouseY.current-first.y)*followSpeed;for(let i=1;i<trail.current.length;i++){const prev=trail.current[i-1];const curr=trail.current[i];curr.x+=(prev.x-curr.x)*followSpeed;curr.y+=(prev.y-curr.y)*followSpeed;}forceRender(v=>v+1);requestAnimationFrame(animate);};animate();},[followSpeed]);if(isStatic)return null;return /*#__PURE__*/_jsxs(_Fragment,{children:[!isHovering&&trail.current.map((p,i)=>{const opacity=1-i/trail.current.length;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",left:p.x,top:p.y,width:dotSize,height:dotSize,borderRadius:\"50%\",background:trailColor,opacity:opacity*trailOpacity,transform:\"translate(-50%, -50%)\",pointerEvents:\"none\",zIndex:9}},i);}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",left:trail.current[0].x,top:trail.current[0].y,transform:\"translate(-50%, -50%)\",pointerEvents:\"none\",zIndex:10},children:isHovering?/*#__PURE__*/_jsx(\"div\",{style:{padding:\"12px 24px\",borderRadius:999,background:buttonBackground,backdropFilter:`blur(${buttonBlur}px)`,border:`1px solid ${buttonBorder}`,color:buttonTextColor,whiteSpace:\"nowrap\",...buttonFont},children:buttonText}):/*#__PURE__*/_jsx(\"div\",{style:{width:dotSize,height:dotSize,borderRadius:\"50%\",background:dotColor}})})]});}/* ---------- PROPERTY CONTROLS ---------- */addPropertyControls(CustomCursor,{dotColor:{type:ControlType.Color,title:\"Dot Color\"},dotSize:{type:ControlType.Number,title:\"Dot Size\",min:4,max:40,defaultValue:12},trailColor:{type:ControlType.Color,title:\"Trail Color\"},trailLength:{type:ControlType.Number,title:\"Trail Length\",min:5,max:30,defaultValue:10},trailOpacity:{type:ControlType.Number,title:\"Trail Opacity\",min:0,max:1,defaultValue:.4},followSpeed:{type:ControlType.Number,title:\"Smoothness\",min:.1,max:.4,defaultValue:.22},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"View\"},buttonBackground:{type:ControlType.Color,title:\"Button Background\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text Color\"},buttonBlur:{type:ControlType.Number,title:\"Button Blur\",min:0,max:30,defaultValue:12},buttonBorder:{type:ControlType.Color,title:\"Button Border\"},buttonFont:{type:ControlType.Font,title:\"Button Font\",controls:\"extended\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"setCursorHover\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomCursor\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomCursor.map","// Generated by Framer (eda58b2)\nexport default function metadata(params,activeLocale){return{description:\"Di Concepts redefines creation — transforming ideas into tangible beauty through design that speaks with intention and passion.\",favicon:\"https://framerusercontent.com/assets/K3Mqn2kG0HMfOMGM4MO04VqFfrQ.png\",robots:\"max-image-preview:large\",title:\"D I Concepts\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"4NAAyR,SAAgB,EAAe,EAAM,CAAC,EAAY,EAAM,EAAU,QAAQ,GAAGA,EAAE,EAAY,CAAC,CAAE,SAAS,EAAU,EAAS,CAA0B,OAAzB,EAAU,KAAK,EAAS,KAAW,CAAC,EAAU,EAAU,OAAO,GAAGA,IAAI,EAAS,EAAyC,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,WAAS,UAAU,UAAQ,GAAG,aAAW,UAAU,cAAY,GAAG,eAAa,GAAG,cAAY,IAAI,aAAW,OAAO,mBAAiB,wBAAwB,kBAAgB,UAAU,aAAW,GAAG,eAAa,wBAAwB,cAAY,EAAY,EAAS,GAAqB,CAAM,C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