{"version":3,"file":"JsonLdBlock.DUXF705d.mjs","names":["__esmMin","init_jsx_runtime","c","p","RenderTarget","addPropertyControls","init_framer_CaDWdxiz","JsonLdBlock","props","output","error","parsed","json","isCanvas","label","init_JsonLdBlock","ControlType"],"sources":["https:/framerusercontent.com/modules/TxrWPkjGwDlB0zsYerOF/udQ6fKO1DQyyZPfKFvMp/JsonLdBlock.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * JSON-LD Block\n *\n * Emits a static schema.org JSON-LD script for the page it sits on.\n * Paste valid JSON into the \"JSON\" field. Invisible on the live site.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function JsonLdBlock(props){const{label=\"Schema\",json=\"\"}=props;let output=\"\";let error=\"\";try{const parsed=JSON.parse(json||\"{}\");output=JSON.stringify(parsed).replace(/</g,\"\\\\u003c\");}catch(e){error=\"Invalid JSON\";}const isCanvas=RenderTarget.current()===RenderTarget.canvas;return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:isCanvas?\"100%\":0,height:isCanvas?\"auto\":0,overflow:\"hidden\",fontSize:11,fontFamily:\"Inter, sans-serif\",color:error?\"#f26d67\":\"#8e9093\",padding:isCanvas?\"4px 0\":0},\"aria-hidden\":\"true\",children:[isCanvas?`Schema: ${label}${error?\" (\"+error+\")\":\"\"} (invisible on the live site)`:null,output&&!error?/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:output}}):null]});}addPropertyControls(JsonLdBlock,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Schema\"},json:{type:ControlType.String,title:\"JSON\",defaultValue:\"{}\",displayTextArea:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"JsonLdBlock\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./JsonLdBlock.map"],"mappings":"A,sKAQG,SAAwBO,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,SAAS,OAAK,IAAIC,EAAUC,EAAO,GAAOC,EAAM,GAAG,GAAG,CAAC,IAAMC,EAAO,KAAK,MAAMC,GAAM,IAAI,EAAE,EAAO,KAAK,UAAUD,CAAM,CAAC,CAAC,QAAQ,KAAK,SAAS,CAAE,MAAS,CAAC,EAAM,cAAe,CAAC,IAAME,EAAST,EAAa,QAAQ,IAAIA,EAAa,OAAO,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAMS,EAAS,OAAO,EAAE,OAAOA,EAAS,OAAO,EAAE,SAAS,SAAS,SAAS,GAAG,WAAW,oBAAoB,MAAMH,EAAM,UAAU,UAAU,QAAQG,EAAS,QAAQ,CAAC,EAAE,cAAc,OAAO,SAAS,CAACA,EAAS,WAAWC,IAAQJ,EAAM,KAAKA,EAAM,IAAI,GAAG,+BAA+B,KAAKD,GAAQ,CAACC,EAAmB,gBAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAOD,CAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAE,C,sCAACJ,EAAoBE,EAAY,CAAC,MAAM,CAAC,KAAKS,EAAY,OAAO,MAAM,QAAQ,aAAa,QAAQ,EAAE,KAAK,CAAC,KAAKA,EAAY,OAAO,MAAM,OAAO,aAAa,KAAK,gBAAgB,EAAI,CAAC,CAAC,C"}