{"version":3,"file":"Display2.BmLIcC9b.mjs","names":["React.useRef","__esmMin","init_npm_react_18_3_1","ce","init_jsx_runtime","c","de","addPropertyControls","init_framer_Bf4_tcb2","ControlType","SVGIcon","rest","props","svgRef","svg","svgElement","applyColor","inlineFill","el","inlineStroke","attrFill","attrStroke","overrideStroke","strokeWidth","color","padding","init_Display2"],"sources":["https:/framerusercontent.com/modules/lF47hRfcEO8kXCTGsnLU/OTUxgEMX2nkT9ElUMcNe/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\":{\"framerIntrinsicWidth\":\"48\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerDisableUnlink\":\"*\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Display2.map"],"mappings":"A,iLAOG,SAAwBU,EAAQ,EAAM,CAAC,GAAK,CAAC,QAAM,MAAI,iBAAe,cAAY,UAAQ,GAAGC,GAAMC,EAAYC,EAAOb,EAAa,IAAI,EAK0F,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