{"version":3,"file":"JSONLDSchema.D-RJwFTH.mjs","names":["useMemo","__esmMin","pe","c","init_jsx_runtime","init_npm_react_18_3_1","addPropertyControls","init_framer_D1IzEvwH","JSONLDSchema","props","json","parsed","init_JSONLDSchema","ControlType"],"sources":["https:/framerusercontent.com/modules/NfWrT8tGso9jOO4Pj6bV/By2Y8jAkyqYwCFT2ZSni/JSONLDSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function JSONLDSchema(props){const{json}=props;const isValidJsonLd=useMemo(()=>{if(!json||typeof json!==\"string\")return false;try{const parsed=JSON.parse(json);return typeof parsed===\"object\"&&parsed!==null;}catch(_error){return false;}},[json]);if(!isValidJsonLd)return null;return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:0,height:0,overflow:\"hidden\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}addPropertyControls(JSONLDSchema,{json:{type:ControlType.String,title:\"JSON\",displayTextArea:true,defaultValue:`{\n  \"@context\": \"https://schema.org\",\n  \"@type\": \"Organization\",\n  \"name\": \"Example Company\",\n  \"url\": \"https://example.com\",\n  \"logo\": \"https://example.com/logo.png\",\n  \"sameAs\": [\n    \"https://www.linkedin.com/company/example\",\n    \"https://x.com/example\"\n  ]\n}`}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"JSONLDSchema\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./JSONLDSchema.map"],"mappings":"A,qKAGG,SAAwBQ,EAAa,EAAM,CAAC,GAAK,CAAC,QAAMC,EAA2O,OAAjNT,MAAY,CAAC,GAAG,CAACU,GAAM,OAAOA,GAAO,SAAS,MAAO,GAAM,GAAG,CAAC,IAAMC,EAAO,KAAK,MAAMD,CAAI,EAAE,OAAO,OAAOC,GAAS,YAAUA,CAAc,MAAc,CAAC,MAAO,EAAM,CAAC,EAAE,CAACD,CAAI,CAAmB,EAAkC,gBAAK,MAAM,CAAC,cAAc,OAAO,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,SAAS,QAAQ,EAAE,SAAsB,gBAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAOA,CAAI,CAAC,CAAC,CAAC,CAAC,EAAjO,IAAmO,C,0CAACJ,EAAoBE,EAAa,CAAC,KAAK,CAAC,KAAKK,EAAY,OAAO,MAAM,OAAO,gBAAgB,GAAK,aAAa;;;;;;;;;;EAUlnB,CAAC,CAAC,C"}