{"version":3,"file":"Display2.CnsAqKxJ.mjs","names":["React.useRef"],"sources":["https:/framerusercontent.com/modules/lF47hRfcEO8kXCTGsnLU/HwSn6xTjejgsbgMYmGDu/Display2.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerIntrinsicWidth 48\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 48\n */export default function SVGIcon(props){const{color,svg,overrideStroke,strokeWidth,padding,...rest}=props;const svgRef=React.useRef(null);React.useEffect(()=>{if(svgRef.current&&svg){const parser=new DOMParser;const doc=parser.parseFromString(svg,\"image/svg+xml\");const svgElement=doc.querySelector(\"svg\");if(svgElement){svgElement.removeAttribute(\"width\");svgElement.removeAttribute(\"height\");if(!svgElement.getAttribute(\"viewBox\")){svgElement.setAttribute(\"viewBox\",\"0 0 24 24\");}const applyColor=el=>{// Check for inline styles\nconst inlineFill=el.style.fill;const inlineStroke=el.style.stroke;// Check for fill and stroke attributes\nconst attrFill=el.getAttribute(\"fill\");const attrStroke=el.getAttribute(\"stroke\");// Apply fill color if it was originally present\nif(inlineFill&&inlineFill!==\"none\"){el.style.fill=\"currentColor\";}else if(attrFill&&attrFill!==\"none\"){el.setAttribute(\"fill\",\"currentColor\");}// Apply stroke color if it was originally present\nif(inlineStroke&&inlineStroke!==\"none\"){el.style.stroke=\"currentColor\";}else if(attrStroke&&attrStroke!==\"none\"){el.setAttribute(\"stroke\",\"currentColor\");}if(overrideStroke){el.setAttribute(\"stroke-width\",strokeWidth);}};applyColor(svgElement);svgElement.querySelectorAll(\"*\").forEach(applyColor);// Set the color on the SVG element\nsvgElement.style.color=color;svgElement.style.width=\"100%\";svgElement.style.height=\"100%\";svgElement.style.padding=`${padding}px`;svgRef.current.innerHTML=svgElement.outerHTML;}}},[svg,color,overrideStroke,strokeWidth,padding]);return /*#__PURE__*/_jsx(\"div\",{ref:svgRef,style:{width:\"100%\",height:\"100%\"},...rest});}SVGIcon.defaultProps={svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 15 15\" fill=\"none\"><path d=\"M7.5 5.5H12.5V0.5H2.5L7.5 5.5ZM7.5 5.5H2.5V9.5L7.5 14.5V10.5H12.5L7.5 5.5Z\" stroke=\"#000000\" stroke-linejoin=\"round\"/></svg>',color:\"#09244B\",overrideStroke:false,strokeWidth:1,padding:0};addPropertyControls(SVGIcon,{svg:{type:ControlType.String,title:\"SVG\"},color:{type:ControlType.Color,title:\"Color\"},overrideStroke:{type:ControlType.Boolean,title:\"Override Stroke\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",min:0,max:10,step:.1,displayStepper:true,description:\"This property will only work if the icon supports changing stroke width\",hidden:props=>!props.overrideStroke},padding:{type:ControlType.Number,title:\"Padding\",min:0,max:100,step:1,displayStepper:true,description:\"v1.0 \\n[via SegmentUI](https://www.segmentUI.com)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SVGIcon\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"*\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"48\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Display2.map"],"mappings":"iLAOG,SAAwB,EAAQ,EAAM,CAAC,GAAK,CAAC,QAAM,MAAI,iBAAe,cAAY,UAAQ,GAAG,GAAM,EAAY,EAAOA,EAAa,IAAI,EAK0F,OALxF,MAAoB,CAAC,GAAG,EAAO,SAAS,EAAI,CAAkF,IAAM,EAAlD,IAApB,UAAyB,CAAC,CAAC,gBAAgB,EAAI,eAAoC,CAAC,CAAC,cAAc,KAAK,EAAE,GAAG,EAAW,CAAC,EAAW,gBAAgB,OAAO,EA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