{"version":3,"file":"SVGDisplay.BeSLRBiT.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/HrZV9Y1WT6JMnZfWdYKY/ImkcvYBXB2ELbnHdqVfU/SVGDisplay.js"],"sourcesContent":["// SVG Upload and Fit/Stretch Component\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * SVG Upload and Fit/Stretch\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function SVGDisplay(props){const{svgFile=\"https://framerusercontent.com/images/GfGkADagM4KEibNcIiRUWlfrR0.jpg\",fitMode,background,alt,style}=props;// Only render if file is SVG\nconst isSVG=useMemo(()=>svgFile&&svgFile.endsWith(\".svg\"),[svgFile]);return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",background,overflow:\"hidden\",position:\"relative\"},children:isSVG?/*#__PURE__*/_jsx(\"img\",{src:svgFile,alt:alt||\"SVG Preview\",style:{width:\"100%\",height:\"100%\",objectFit:fitMode,display:\"block\"},draggable:false}):/*#__PURE__*/_jsx(\"span\",{style:{color:\"#888\",fontSize:14},children:\"Upload SVG file\"})});}addPropertyControls(SVGDisplay,{svgFile:{type:ControlType.File,allowedFileTypes:[\"svg\"]},fitMode:{type:ControlType.Enum,title:\"Fit Mode\",options:[\"contain\",\"cover\"],optionTitles:[\"Fit (Contain)\",\"Stretch (Cover)\"],defaultValue:\"contain\",displaySegmentedControl:true},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},alt:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"SVG Preview\",placeholder:\"Describe the SVG...\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SVGDisplay\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SVGDisplay.map"],"mappings":"qKAMG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,UAAQ,sEAAsE,UAAQ,aAAW,MAAI,SAAO,EACzJ,EAAMA,MAAY,GAAS,EAAQ,SAAS,MAAM,EAAE,CAAC,CAAO,CAAC,EAAE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,aAAW,SAAS,SAAS,SAAS,UAAU,EAAE,SAAS,EAAmB,EAAK,MAAM,CAAC,IAAI,EAAQ,IAAI,GAAK,cAAc,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,UAAU,EAAQ,QAAQ,OAAO,EAAE,UAAU,EAAK,CAAC,EAAe,EAAK,OAAO,CAAC,MAAM,CAAC,MAAM,OAAO,SAAS,EAAE,EAAE,SAAS,iBAAiB,CAAC,CAAC,CAAC,CAAE,iBAN/c,IAAoD,IAA2B,EAMiY,EAAoB,EAAW,CAAC,QAAQ,CAAC,KAAK,EAAY,KAAK,iBAAiB,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,EAAY,KAAK,MAAM,WAAW,QAAQ,CAAC,UAAU,OAAO,EAAE,aAAa,CAAC,gBAAgB,iBAAiB,EAAE,aAAa,UAAU,wBAAwB,EAAI,EAAE,WAAW,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,SAAS,EAAE,IAAI,CAAC,KAAK,EAAY,OAAO,MAAM,WAAW,aAAa,cAAc,YAAY,qBAAqB,CAAC,CAAC"}