{"version":3,"file":"StructuredData.DJSOof1o.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","ControlType","RenderTarget","init_framer_DcxuU94H","StructuredData","props","parsed","error","json","isCanvas","safe","init_StructuredData"],"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":"A,4KAWG,SAAwBQ,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,IAAIC,EAAUC,EAAO,KAASC,EAAM,GAAG,GAAGC,EAAK,KAAK,EAAG,GAAG,CAAC,EAAO,KAAK,MAAMA,CAAI,CAAE,OAAO,EAAE,CAAC,EAAM,aAAa,MAAM,EAAE,QAAQ,cAAe,CAAE,IAAMC,EAASP,EAAa,QAAQ,IAAIA,EAAa,OAAaQ,EAAKJ,EAAO,KAAK,UAAUA,CAAM,CAAC,CAAC,QAAQ,KAAK,SAAS,EAAE,GAAG,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,SAAS,SAAS,EAAE,cAAc,OAAO,SAAS,CAACG,GAAuB,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,WAAW,SAAS,WAAW,oBAAoB,SAAS,GAAG,QAAQ,UAAU,aAAa,EAAE,WAAWF,EAAM,UAAU,UAAU,MAAMA,EAAM,UAAU,UAAU,OAAOA,EAAM,oBAAoB,mBAAmB,EAAE,SAASA,EAAM,oBAAoBA,IAAQ,4CAA4C,CAAC,EAAEG,EAAkB,gBAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAOA,CAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAE,C,sCAACV,EAAoBI,EAAe,CAAC,KAAK,CAAC,KAAKH,EAAY,OAAO,MAAM,UAAU,gBAAgB,GAAK,aAAa,GAAG,oBAAoB,EAAI,CAAC,CAAC,C"}