{"version":3,"file":"StructuredData.D7ALtvac.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ZPn71USskG3TyvLEUldX/4kDy8KOwmucGZkddphSL/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Escapes a value for use inside a JSON string literal.\nconst jsonText=value=>JSON.stringify(value??\"\").slice(1,-1);/**\n * Writes schema.org JSON-LD into the page HTML. The JSON may contain\n * {{title}}, {{description}}, {{slug}}, {{date}}, {{image}}, {{author}} and\n * {{keywords}}, filled from the properties (bind them to CMS fields on a\n * detail page). Renders nothing visible.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{json=\"\",title,description,slug,date,image,author,keywords}=props;const iso=date?new Date(date).toISOString():\"\";const filled=json.replace(/\\{\\{title\\}\\}/g,jsonText(title)).replace(/\\{\\{description\\}\\}/g,jsonText(description)).replace(/\\{\\{slug\\}\\}/g,jsonText(slug)).replace(/\\{\\{date\\}\\}/g,jsonText(iso)).replace(/\\{\\{image\\}\\}/g,jsonText(image?.src??\"\")).replace(/\\{\\{author\\}\\}/g,jsonText(author)).replace(/\\{\\{keywords\\}\\}/g,jsonText(keywords))// A literal \"</script>\" inside the JSON would end the tag early.\n.replace(/<\\//g,\"<\\\\/\");return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:1,height:1,overflow:\"hidden\",pointerEvents:\"none\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:filled}})});}addPropertyControls(StructuredData,{json:{type:ControlType.String,title:\"JSON-LD\",displayTextArea:true,defaultValue:\"{}\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\"},date:{type:ControlType.Date,title:\"Date\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},author:{type:ControlType.String,title:\"Author\",defaultValue:\"\"},keywords:{type:ControlType.String,title:\"Keywords\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"4JASG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,GAAG,QAAM,cAAY,OAAK,OAAK,QAAM,SAAO,YAAU,EAAY,EAAI,EAAK,IAAI,KAAK,CAAI,CAAC,CAAC,YAAY,EAAE,GAC5I,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,SAAS,SAAS,cAAc,MAAM,EAAE,cAAc,OAAO,SAAsB,EAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OADtE,EAAK,QAAQ,iBAAiB,EAAS,CAAK,CAAC,CAAC,CAAC,QAAQ,uBAAuB,EAAS,CAAW,CAAC,CAAC,CAAC,QAAQ,gBAAgB,EAAS,CAAI,CAAC,CAAC,CAAC,QAAQ,gBAAgB,EAAS,CAAG,CAAC,CAAC,CAAC,QAAQ,iBAAiB,EAAS,GAAO,KAAK,EAAE,CAAC,CAAC,CAAC,QAAQ,kBAAkB,EAAS,CAAM,CAAC,CAAC,CAAC,QAAQ,oBAAoB,EAAS,CAAQ,CAAC,CAAC,CACrf,QAAQ,OAAO,MAAsP,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,mBAVnO,IAAoD,EACxF,EAAS,GAAO,KAAK,UAAU,GAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,EASoN,EAAoB,EAAe,CAAC,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,gBAAgB,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