{"version":3,"file":"SchemaInjector.XiY4bJO_.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/LLveE5cEjHPjgMIMxhmh/AvzvkES1nDDaSAkODVr8/SchemaInjector.js"],"sourcesContent":["// Create a Framer code component called \"Schema Injector\" that injects JSON-LD structured data into the page head.\n// Requirements:\n// - Accept one property control: `schema` (string, textarea, title \"JSON-LD Schema\"), default empty string.\n// - Use useEffect to create a <script type=\"application/ld+json\">, set textContent to schema, append to document.head, and clean up on unmount/change.\n// - Render nothing visible (return null).\n// - Include `export const config = { supportsChildren: false }`.\n// - Only inject when schema is non-empty.\n// - Component name: SchemaInjector, exported as default.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export const config={supportsChildren:false};/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function SchemaInjector(props){const{schema}=props;const normalizedSchema=useMemo(()=>schema.trim(),[schema]);useEffect(()=>{if(typeof document===\"undefined\")return;if(!normalizedSchema)return;const script=document.createElement(\"script\");script.type=\"application/ld+json\";script.textContent=normalizedSchema;document.head.appendChild(script);return()=>{if(script.parentNode){script.parentNode.removeChild(script);}};},[normalizedSchema]);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"}});}addPropertyControls(SchemaInjector,{schema:{type:ControlType.String,title:\"JSON-LD Schema\",displayTextArea:true,defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SchemaInjector\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"config\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SchemaInjector.map"],"mappings":"iLAWG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,UAAQ,EAAY,EAAiBA,MAAY,EAAO,KAAK,EAAE,CAAC,CAAM,CAAC,EAA2U,OAAzU,MAAc,CAAyC,GAArC,OAAO,SAAW,KAAsB,CAAC,EAAiB,OAAO,IAAM,EAAO,SAAS,cAAc,QAAQ,EAA0G,MAAxG,GAAO,KAAK,sBAAsB,EAAO,YAAY,EAAiB,SAAS,KAAK,YAAY,CAAM,MAAY,CAAI,EAAO,YAAY,EAAO,WAAW,YAAY,CAAM,CAAG,CAAE,EAAE,CAAC,CAAgB,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAE,iBAHxd,IAAqC,IAAoD,EAGgY,EAAoB,EAAe,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,iBAAiB,gBAAgB,GAAK,aAAa,EAAE,CAAC,CAAC"}