{"version":3,"file":"AuthorSchema.5Ttsk4ta.mjs","names":[],"sources":["https:/framerusercontent.com/modules/eR9ErWKEkTYnpsx5aDHY/0sf5ul1FnCT1wcmQgR5g/AuthorSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Fonction pour extraire le texte brut à partir du contenu RichText\nfunction extractPlainText(node){if(typeof node===\"string\")return node;if(Array.isArray(node))return node.map(extractPlainText).join(\" \");if(node?.props?.children)return extractPlainText(node.props.children);return\"\";}export function AuthorSchema(props){const{name,job,presentation,image,url}=props;React.useEffect(()=>{const description=extractPlainText(presentation);if(!name||!description)return;const script=document.createElement(\"script\");script.type=\"application/ld+json\";script.id=\"framer-schema-person\";script.innerHTML=JSON.stringify({\"@context\":\"https://schema.org\",\"@type\":\"Person\",name,jobTitle:job||undefined,description,image:image||undefined,url:url||undefined},null,2);document.head.appendChild(script);return()=>{const old=document.getElementById(\"framer-schema-person\");if(old)document.head.removeChild(old);};},[name,job,presentation,image,url]);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"}});}addPropertyControls(AuthorSchema,{name:{type:ControlType.String,title:\"Name\"},job:{type:ControlType.String,title:\"Job\"},presentation:{type:ControlType.RichText,title:\"Bio\"},image:{type:ControlType.Image,title:\"Image URL\"},url:{type:ControlType.String,title:\"URL\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"AuthorSchema\":{\"type\":\"reactComponent\",\"name\":\"AuthorSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AuthorSchema.map"],"mappings":"qKACA,SAAS,EAAiB,EAAK,CAAgL,OAA5K,OAAO,GAAO,SAAgB,EAAQ,MAAM,QAAQ,EAAK,CAAQ,EAAK,IAAI,EAAiB,CAAC,KAAK,IAAI,CAAI,GAAM,OAAO,SAAgB,EAAiB,EAAK,MAAM,SAAS,CAAO,G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