{"version":3,"file":"ArticleSchema.C0G4s-Rc.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/UeoAgetovMWmt4E8oAck/aKtbrlcft5ri0EwdE01b/ArticleSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function ArticleSchema({title=\"\",description=\"\",datePublished=\"\",category=\"eCommerce\"}){const[url,setUrl]=useState(\"\");const[image,setImage]=useState(\"\");useEffect(()=>{setUrl(window.location.href.split(\"?\")[0].split(\"#\")[0]);const og=document.querySelector('meta[property=\"og:image\"]');if(og)setImage(og.getAttribute(\"content\"));},[]);if(!title)return /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1,position:\"absolute\",opacity:0}});const schema={\"@context\":\"https://schema.org\",\"@type\":\"Article\",headline:title,description:description,image:image||undefined,datePublished:datePublished||undefined,dateModified:datePublished||undefined,articleSection:category,author:{\"@type\":\"Organization\",name:\"Instant\"},publisher:{\"@type\":\"Organization\",name:\"Instant\",logo:{\"@type\":\"ImageObject\",url:\"https://framerusercontent.com/images/5lWvWnF8q3Jx0cEPAJ2YJHbNGRg.svg\"}},mainEntityOfPage:url?{\"@type\":\"WebPage\",\"@id\":url}:undefined};const clean=JSON.parse(JSON.stringify(schema));return /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1,position:\"absolute\",opacity:0,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(clean)}})});}addPropertyControls(ArticleSchema,{title:{type:ControlType.String,title:\"Title\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\"},datePublished:{type:ControlType.String,title:\"Date Published\",defaultValue:\"\"},category:{type:ControlType.String,title:\"Category\",defaultValue:\"eCommerce\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArticleSchema\",\"slots\":[],\"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