{"version":3,"file":"AuthorSchema.CN3pFYBS.mjs","names":["__esmMin","init_npm_react_18_3_1","init_jsx_runtime","c","ce","addPropertyControls","init_framer_BWFVvmND","extractPlainText","node","AuthorSchema","props","description","presentation","name","script","job","image","url","old","init_AuthorSchema","ControlType"],"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":"A,qKACA,SAASO,EAAiB,EAAK,CAAgL,OAA5K,OAAOC,GAAO,SAAg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