{"version":3,"file":"SchemaScript.DtFOXD8t.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_DS5RHCUB","RenderTarget","ControlType","addPropertyControls","SchemaScript","props","json","schema","script","label","init_SchemaScript"],"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":"A,2KAcG,SAAwBQ,EAAa,EAAM,CAAC,GAAK,CAAC,SAAO,SAAOC,EAC/DC,EAAKC,EAAO,GAAG,CAAC,EAAK,KAAK,UAAU,KAAK,MAAMA,CAAM,CAAC,CAAE,MAAS,CACrE,CAAC,IAAMC,EAAoB,gBAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAOF,CAAI,CAAC,CAAC,EACb,OAD8BL,EAAa,QAAQ,IAAIA,EAAa,OAChD,gBAAM,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,CAACO,EAAoB,gBAAK,OAAO,CAAC,cAAc,GAAK,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,aAAa,IAAI,WAAW,UAAU,KAAK,UAAU,CAAC,CAAC,EAAe,gBAAK,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,WAAW,IAAI,MAAM,SAAS,EAAE,SAASC,CAAK,CAAC,CAAC,CAAC,CAAC,EAA1mB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,QAAQ,EAAE,SAASD,CAAM,CAAC,CAAqiB,C,sCAACL,EAAoBC,EAAa,CAAC,OAAO,CAAC,KAAKF,EAAY,OAAO,MAAM,UAAU,gBAAgB,GAAK,aAAa,uJAAuJ,EAAE,MAAM,CAAC,KAAKA,EAAY,OAAO,MAAM,eAAe,aAAa,gBAAgB,CAAC,CAAC,C"}