{"version":3,"file":"JsonLDInjector.I932df1u.mjs","names":[],"sources":["https:/framerusercontent.com/modules/JfXwvVEabuEDqn1FkdQY/uZahHUnyUxpqNqfX8JSR/JsonLDInjector.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * JsonLDInjector — Renders a <script type=\"application/ld+json\"> element\n * with raw JSON content (no HTML escaping).\n *\n * Place this on a CMS template page and bind the `jsonld` prop to the\n * corresponding CMS field (e.g. the JsonLD field on the Comparisons collection)\n * to inject per-item structured data into the rendered page.\n *\n * Why this exists: Framer's built-in Embed component HTML-escapes its content,\n * which makes JSON-LD invisible to search engines. A Code Component using\n * `dangerouslySetInnerHTML` is the canonical way to inject trusted raw HTML.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n */export default function JsonLDInjector(props){const value=(props.jsonld||\"\").trim();if(!value)return null;return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:value}});}addPropertyControls(JsonLDInjector,{jsonld:{type:ControlType.String,title:\"JSON-LD\",defaultValue:\"\",displayTextArea:true,description:\"Bind to a CMS field containing JSON-LD (e.g. {{JsonLD}}). Do NOT include <script> tags — the component adds them.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"JsonLDInjector\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1\",\"framerIntrinsicHeight\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./JsonLDInjector.map"],"mappings":"4JAgBG,SAAwB,EAAe,EAAM,CAAC,IAAM,GAAO,EAAM,QAAQ,IAAI,MAAM,CAAuB,OAAlB,EAAsC,EAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAO,EAAM,CAAC,CAAC,CAA3G,sBAhB7D,IAAoD,CAgBsH,EAAoB,EAAe,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,GAAG,gBAAgB,GAAK,YAAY,oHAAoH,CAAC,CAAC"}