{"version":3,"file":"LucideIcon._M66FQLm.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/ko8bwCWAbaZWcACjhw7g/Q7oghrpcO6y0345nwgCL/LucideIcon.js"],"sourcesContent":["// LucideIcon — Framer Code Component\n// Renders Lucide icons dynamically from a CMS string field.\n// Paste this entire file into Framer: Assets > Code > New Component\n//\n// Props (all bindable to CMS / Variables):\n//   iconName  — Lucide icon slug, e.g. \"arrow-right\", \"shield-check\"\n//   color     — Stroke color (connect to your component's color variable)\n//   size      — Icon size in px\n//   strokeWidth — SVG stroke width\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const CDN=\"https://unpkg.com/lucide-static@0.577.0/icons/\";const cache=new Map;export default function LucideIcon({iconName=\"arrow-right\",color=\"#000000\",size=24,strokeWidth=2}){const[svg,setSvg]=useState(\"\");useEffect(()=>{if(!iconName){setSvg(\"\");return;}const name=iconName.trim().toLowerCase().replace(/\\s+/g,\"-\");if(cache.has(name)){setSvg(cache.get(name));return;}let cancelled=false;fetch(`${CDN}${name}.svg`).then(r=>r.ok?r.text():\"\").then(raw=>{if(!cancelled&&raw){cache.set(name,raw);setSvg(raw);}}).catch(()=>{});return()=>{cancelled=true;};},[iconName]);if(!svg){return /*#__PURE__*/_jsx(\"div\",{style:{width:size,height:size,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",opacity:.2},children:/*#__PURE__*/_jsxs(\"svg\",{width:size*.6,height:size*.6,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"10\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"8\",x2:\"12\",y2:\"12\"}),/*#__PURE__*/_jsx(\"line\",{x1:\"12\",y1:\"16\",x2:\"12.01\",y2:\"16\"})]})});}const styled=svg.replace(/stroke=\"[^\"]*\"/g,`stroke=\"${color}\"`).replace(/width=\"\\d+\"/,`width=\"${size}\"`).replace(/height=\"\\d+\"/,`height=\"${size}\"`).replace(/stroke-width=\"[^\"]*\"/g,`stroke-width=\"${strokeWidth}\"`);return /*#__PURE__*/_jsx(\"div\",{style:{width:size,height:size,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",lineHeight:0},dangerouslySetInnerHTML:{__html:styled}});}addPropertyControls(LucideIcon,{iconName:{type:ControlType.String,title:\"Icon Name\",defaultValue:\"arrow-right\",description:\"Lucide icon slug (e.g. arrow-right, shield-check). Bind to CMS field.\"},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\",description:\"Stroke color. Connect to your color variable.\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:24,min:8,max:128,step:1,displayStepper:true},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:2,min:.5,max:4,step:.5,displayStepper:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LucideIcon\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LucideIcon.map"],"mappings":"oLASkO,SAAwB,EAAW,CAAC,WAAS,cAAc,QAAM,UAAU,OAAK,GAAG,cAAY,GAAG,CAAC,GAAK,CAAC,EAAI,GAAQA,EAAS,GAAG,CAAsW,GAArW,MAAc,CAAC,GAAG,CAAC,EAAS,CAAC,EAAO,GAAG,CAAC,OAAQ,IAAM,EAAK,EAAS,MAAM,CAAC,aAAa,CAAC,QAAQ,OAAO,IAAI,CAAC,GAAG,EAAM,IAAI,EAAK,CAAC,CAAC,EAAO,EAAM,IAAI,EAAK,CAAC,CAAC,OAAQ,IAAI,EAAU,GAA4I,OAAtI,MAAM,GAAG,IAAM,EAAK,MAAM,CAAC,KAAK,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,GAAK,CAAI,CAAC,GA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