{"version":3,"file":"shared-lib.CX0AOft2.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/wc2yUVD68wk4nq4PEOBW/fWy3jjwtIvQYameXyede/LedMatrix_Prod.js","https:/framerusercontent.com/modules/bjUTEQt5uFu8cIOVtWXD/CvR35MeeJnSdIYAAt4ht/FramerIcon.js","https:/framerusercontent.com/modules/vrWPKRbtHvU9lowytH3g/0Gd6iuNtR6W7K0PbQCPT/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerIntrinsicHeight 300\n * @framerIntrinsicWidth 300\n */export default function LedMatrix(props){const{shapeType,size,gap,primaryColor,secondaryColor,radius,probability,animSpeed}=props;const extractRGBColorFromString=str=>{const rgbRegex=/(rgba|rgb)\\(.*?\\)/g;const match=str.match(rgbRegex);return match?match[0]:\"#ffffff\";};const formattedPrimaryColor=extractRGBColorFromString(primaryColor);const formattedSecondaryColor=extractRGBColorFromString(secondaryColor);const canvasRef=useRef(null);const getColor=()=>Math.random()<probability/100?formattedPrimaryColor:formattedSecondaryColor;// Dynamically adjust canvas size and initialize\nconst adjustCanvasSize=()=>{const canvas=canvasRef.current;if(canvas){// Adjust canvas resolution based on its displayed size for sharp rendering\ncanvas.width=canvas.offsetWidth;canvas.height=canvas.offsetHeight;}};// Initialize with dynamic positioning, delay, and duration\nconst initialize=(ctx,width,height)=>{const shapes=[];for(let y=0;y<height;y+=size+gap){for(let x=0;x<width;x+=size+gap){shapes.push({x,y,delay:Math.random()*(-99.9*animSpeed+10099.9),duration:Math.random()*(-99.9*animSpeed+10099.9),startTime:performance.now()+Math.random()*5e3,color:getColor(),shapeType,radius:size/2});}}return shapes;};// Draw squares based on their state\nconst draw=(ctx,shapes,width,height)=>{const currentTime=performance.now();shapes.forEach(shape=>{let timeElapsed=currentTime-shape.startTime;if(timeElapsed>shape.delay+shape.duration){shape.startTime=currentTime+shape.delay;shape.color=getColor();}ctx.fillStyle=shape.color;if(shape.shapeType===\"Square\"){ctx.fillRect(shape.x,shape.y,size,size);}else{ctx.beginPath();ctx.arc(shape.x+shape.radius,shape.y+shape.radius,shape.radius,0,2*Math.PI);ctx.fill();}});};useEffect(()=>{const canvas=canvasRef.current;const ctx=canvas.getContext(\"2d\");let squares=[];const render=()=>{// Clear the canvas and redraw\nctx.clearRect(0,0,canvas.width,canvas.height);draw(ctx,squares,canvas.width,canvas.height);requestAnimationFrame(render);};const resizeObserver=new ResizeObserver(entries=>{adjustCanvasSize();for(let entry of entries){squares=initialize(ctx,entry.contentRect.width,entry.contentRect.height);}});resizeObserver.observe(canvas);requestAnimationFrame(render);return()=>{resizeObserver.unobserve(canvas);};},[props]);return /*#__PURE__*/_jsx(motion.div,{...props,style:{borderRadius:`${radius}px`,...props.style},children:/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,style:{width:\"100%\",height:\"100%\",borderRadius:\"inherit\"}})});}LedMatrix.displayName=\"LED Matrix\";addPropertyControls(LedMatrix,{shapeType:{title:\"Shape\",type:ControlType.Enum,options:[\"Square\",\"Circle\"],optionTitles:[\"Square\",\"Circle\"],defaultValue:\"Square\"},size:{title:\"Size\",type:ControlType.Number,description:\"Small sizes might impact performance in Framer, but they won't affect your live website. If you need a smaller size and Framer starts lagging, remember to hide the component by setting 'visible' to 'no', then reload the project. Set the component back to visible once you're done editing the website and ready to publish.\",defaultValue:10},gap:{title:\"Gap\",type:ControlType.Number,defaultValue:2},primaryColor:{title:\"Accent\",type:ControlType.Color,defaultValue:\"#059AFF\"},secondaryColor:{title:\"Secondary\",type:ControlType.Color,defaultValue:\"#1A1C1D\"},radius:{title:\"Radius\",type:ControlType.Number,defaultValue:0},probability:{title:\"Accent Amount\",type:ControlType.Number,description:\"The higher the number, the more accent color will be displayed.\",defaultValue:4,min:0,max:100},animSpeed:{title:\"Speed\",type:ControlType.Number,defaultValue:90,min:1,max:100,description:\"More components at [Framer University](https://frameruni.link/cc).\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LedMatrix\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"300\",\"framerDisableUnlink\":\"*\",\"framerIntrinsicWidth\":\"300\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LedMatrix_Prod.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const DEFAULT_COLOR=\"#1570EF\";const DEFAULT_SVG=`<svg viewBox=\"0 0 22 22\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"m13.076 12.21 3.098 3.098a1.25 1.25 0 0 0 1.768 0l3.424-3.424a1.25 1.25 0 0 0 0-1.768l-3.424-3.424a1.25 1.25 0 0 0-1.768 0L13.076 9.79l4.902.903c.341.063.341.552 0 .614l-4.902.903Zm-3.206.786-3.178 3.178a1.25 1.25 0 0 0 0 1.768l3.424 3.424a1.25 1.25 0 0 0 1.768 0l3.424-3.424a1.25 1.25 0 0 0 0-1.768l-3.043-3.043-.878 4.768c-.063.34-.552.34-.615 0l-.902-4.903ZM6.692 4.058a1.25 1.25 0 0 0 0 1.768l3.177 3.178.903-4.903c.063-.34.552-.34.615 0l.878 4.768 3.043-3.043a1.25 1.25 0 0 0 0-1.768L11.884.634a1.25 1.25 0 0 0-1.768 0L6.692 4.058ZM.634 10.116a1.25 1.25 0 0 0 0 1.768l3.424 3.424a1.25 1.25 0 0 0 1.768 0l3.123-3.122-4.768-.879c-.341-.063-.341-.552 0-.614l4.768-.879-3.123-3.122a1.25 1.25 0 0 0-1.768 0L.634 10.116Z\" fill=\"#1570EF\"/></svg>`;const DEFAULT_STROKE_WIDTH=1.5;/*\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n *\n * @framerIntrinsicHeight 24\n * @framerIntrinsicWidth 24\n */export default function FramerIcons(props){const customizedSvg=getCustomizedSVG(props.svg,props.color,props.strokeWidth);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",maxWidth:\"100%\",maxHeight:\"100%\",alignItems:\"center\",justifyContent:\"center\",...props.style},dangerouslySetInnerHTML:{__html:customizedSvg}});}addPropertyControls(FramerIcons,{svg:{title:\"SVG\",type:ControlType.String,defaultValue:DEFAULT_SVG},strokeWidth:{type:ControlType.Number,step:.25,min:.5,max:2,defaultValue:DEFAULT_STROKE_WIDTH,hidden:props=>hideStrokeWidth(props.svg)},color:{type:ControlType.Color,defaultValue:DEFAULT_COLOR,description:\"By [FramerIcons](https://www.framericons.com?utm=FramerIconComponent)\"}});// hide if no stroke-width or all stroke-widths are 0\nfunction hideStrokeWidth(svg){const strokeWidthMatch=svg.match(/stroke-width=\"([^\"]+)\"/g);return!strokeWidthMatch||strokeWidthMatch.every(match=>match===\"0\");}function getCustomizedSVG(svg,color=DEFAULT_COLOR,strokeWidth=DEFAULT_STROKE_WIDTH){let svgAttributes=svg.match(/<svg[^>]*>/)?.[0];if(!svgAttributes){svg=DEFAULT_SVG;svgAttributes=svg.match(/<svg[^>]*>/)?.[0];}const width=svgAttributes.match(/width=\"([^\"]*)\"/)?.[1];const height=svgAttributes.match(/height=\"([^\"]*)\"/)?.[1];const viewBox=svgAttributes.match(/viewBox=\"([^\"]*)\"/)?.[1]?.split(\" \");const viewBoxWidth=viewBox?.[2];const viewBoxHeight=viewBox?.[3];if(width&&height){svg=svg.replace(/width=\"([^\"]*)\"/,`width=\"100%\"`);svg=svg.replace(/height=\"([^\"]*)\"/,`height=\"100%\"`);}else{svg=svg.replace(/<svg/,`<svg width=\"100%\" height=\"100%\"`);}let hasElementsWithValidColors=false;if(svg.includes('fill=\"')||svg.includes('stroke=\"')){svg=svg.replace(/(fill|stroke)=\"([^\"]+)\"/g,(match,attr,value)=>{if(value===\"none\"||value===\"transparent\"){return match;}// For iconsax -> Crypto -> Bulk\nif(value===\"white\"){return\"\";}hasElementsWithValidColors=true;return`${attr}=\"${color}\"`;});}if(!hasElementsWithValidColors){svg=svg.replace(/<(path|circle|rect|line|polygon|polyline) /g,match=>`<${match.slice(1)} fill=\"${color}\" `);}svg=svg.replace(/stroke-width=\"([^\"]+)\"/g,(match,value)=>{if(value===\"0\"){return match;}return`stroke-width=\"${strokeWidth}\"`;});return svg;}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerIcons\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"24\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"24\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FramerIcon.map","// Generated by Framer (08999ac)\nexport default function metadata(params,activeLocale){return{description:\"I’m Priya Bhatt, a UX/UI designer with an engineering background and 3+ years of experience. I specialize in transforming complex problems into intuitive digital solutions, with a strong focus on user experience, product design, and design systems. \",favicon:\"https://framerusercontent.com/assets/Aiczg1VEtCCUx1b1UnL28cNklc.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/3x4gjLvrsBY1DAYP2UNPLn3yEWw.png\",title:\"Priya Bhatt | priyabhatt\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"kOAKG,SAAwB,EAAU,EAAM,CAAC,GAAK,CAAC,YAAU,OAAK,MAAI,eAAa,iBAAe,SAAO,cAAY,aAAW,EAAY,EAA0B,GAAK,CAAqC,IAAM,EAAM,EAAI,MAArC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