{"version":3,"file":"StructuredData.FSfKA_dA.mjs","names":[],"sources":["https:/framerusercontent.com/modules/22YA3syKqQ9mkchP566L/86llIFwgv9ZgrVxKNqHh/StructuredData.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Structured Data\n *\n * Renders a JSON-LD script tag (server-rendered) from the JSON provided in the\n * properties panel. Invisible on the published page.\n *\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{json=\"\"}=props;let parsed=null;let error=\"\";if(json.trim()){try{parsed=JSON.parse(json);}catch(e){error=e instanceof Error?e.message:\"Invalid JSON\";}}const isCanvas=RenderTarget.current()===RenderTarget.canvas;const safe=parsed?JSON.stringify(parsed).replace(/</g,\"\\\\u003c\"):\"\";return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:1,height:1,overflow:\"visible\"},\"aria-hidden\":\"true\",children:[isCanvas&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:0,whiteSpace:\"nowrap\",fontFamily:\"Inter, sans-serif\",fontSize:11,padding:\"2px 6px\",borderRadius:4,background:error?\"#FEF2F2\":\"#ECFDF5\",color:error?\"#B91C1C\":\"#047857\",border:error?\"1px solid #FECACA\":\"1px solid #A7F3D0\"},children:error?`Structured data: ${error}`:\"Structured data (invisible when published)\"}),safe?/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:safe}}):null]});}addPropertyControls(StructuredData,{json:{type:ControlType.String,title:\"JSON-LD\",displayTextArea:true,defaultValue:\"\",preventLocalization:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"2KAWG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,IAAI,EAAU,EAAO,KAAS,EAAM,GAAG,GAAG,EAAK,KAAK,EAAG,GAAG,CAAC,EAAO,KAAK,MAAM,CAAI,CAAE,OAAO,EAAE,CAAC,EAAM,aAAa,MAAM,EAAE,QAAQ,cAAe,CAAE,IAAM,EAAS,EAAa,QAAQ,IAAI,EAAa,OAAa,EAAK,EAAO,KAAK,UAAU,CAAM,CAAC,CAAC,QAAQ,KAAK,SAAS,EAAE,GAAG,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,SAAS,SAAS,EAAE,cAAc,OAAO,SAAS,CAAC,GAAuB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,WAAW,SAAS,WAAW,oBAAoB,SAAS,GAAG,QAAQ,UAAU,aAAa,EAAE,WAAW,EAAM,UAAU,UAAU,MAAM,EAAM,UAAU,UAAU,OAAO,EAAM,oBAAoB,mBAAmB,EAAE,SAAS,EAAM,oBAAoB,IAAQ,4CAA4C,CAAC,EAAE,EAAkB,EAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAO,CAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAE,iBAXj4B,IAAiE,EAWi0B,EAAoB,EAAe,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,gBAAgB,GAAK,aAAa,GAAG,oBAAoB,EAAI,CAAC,CAAC"}