{"version":3,"file":"SchemaScript.Dy7BFpS7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/pqunnibkEDV0sYXamj4D/GHfBOWpi1SGlYyaSM3J8/SchemaScript.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * SchemaScript\n *\n * Renders a JSON-LD <script type=\"application/ld+json\"> block into the page.\n * Framer server-renders code components, so the emitted JSON-LD lands in the\n * static HTML and is readable by AI crawlers that do not execute JavaScript.\n * On the Framer canvas it shows a small selectable badge; on the published\n * site it renders only the invisible script tag.\n *\n * @framerIntrinsicWidth 220\n * @framerIntrinsicHeight 36\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function SchemaScript(props){const{schema,label}=props;// Minify when valid JSON; otherwise emit the raw string so the editor can fix it.\nlet json=schema;try{json=JSON.stringify(JSON.parse(schema));}catch(e){// leave as-is\n}const script=/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}});const onCanvas=RenderTarget.current()===RenderTarget.canvas;if(!onCanvas){// Published / export / preview: render only the script (kept in a zero-size wrapper for a valid root).\nreturn /*#__PURE__*/_jsx(\"div\",{style:{width:0,height:0,overflow:\"hidden\"},children:script});}return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"inline-flex\",alignItems:\"center\",gap:8,padding:\"6px 12px\",borderRadius:8,background:\"#F6F3EC\",border:\"1px solid #E3E3E1\",whiteSpace:\"nowrap\",minWidth:\"max-content\",fontFamily:\"'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif\"},children:[script,/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,style:{width:8,height:8,borderRadius:999,background:\"#38b6ff\",flex:\"0 0 auto\"}}),/*#__PURE__*/_jsx(\"span\",{style:{fontSize:12,fontWeight:600,color:\"#0D0D0D\"},children:label})]});}addPropertyControls(SchemaScript,{schema:{type:ControlType.String,title:\"JSON-LD\",displayTextArea:true,defaultValue:'{\"@context\":\"https://schema.org\",\"@type\":\"Service\",\"name\":\"AI en automation voor B2B-dienstverleners\",\"provider\":{\"@id\":\"https://winsphere.ai/#org\"}}'},label:{type:ControlType.String,title:\"Canvas label\",defaultValue:\"JSON-LD schema\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SchemaScript\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"36\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerIntrinsicWidth\":\"220\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SchemaScript.map"],"mappings":"0KAcG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,SAAO,SAAO,EAC/D,EAAK,EAAO,GAAG,CAAC,EAAK,KAAK,UAAU,KAAK,MAAM,CAAM,CAAC,CAAE,MAAS,CACrE,CAAC,IAAM,EAAoB,EAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAO,CAAI,CAAC,CAAC,EACb,OAD8B,EAAa,QAAQ,IAAI,EAAa,OAChD,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,cAAc,WAAW,SAAS,IAAI,EAAE,QAAQ,WAAW,aAAa,EAAE,WAAW,UAAU,OAAO,oBAAoB,WAAW,SAAS,SAAS,cAAc,WAAW,gFAAgF,EAAE,SAAS,CAAC,EAAoB,EAAK,OAAO,CAAC,cAAc,GAAK,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,IAAI,WAAW,UAAU,KAAK,UAAU,CAAC,CAAC,EAAe,EAAK,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,WAAW,IAAI,MAAM,SAAS,EAAE,SAAS,CAAK,CAAC,CAAC,CAAC,CAAC,EAA1mB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,QAAQ,EAAE,SAAS,CAAM,CAAC,CAAqiB,iBAjBxkB,IAAiE,EAiBwgB,EAAoB,EAAa,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,gBAAgB,GAAK,aAAa,uJAAuJ,EAAE,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,eAAe,aAAa,gBAAgB,CAAC,CAAC"}