{"version":3,"file":"Collection_Schema.Cffeomy2.mjs","names":[],"sources":["https:/framerusercontent.com/modules/TlT6SG0zjog6eHN1GxwK/SRA6Wzu0msgN6QxGQMoc/Collection_Schema.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Collection_Schema\n *\n * Declara a identidade de uma pagina de listagem (/blog, /cases).\n * Hoje essas paginas so herdam o bloco global de Organization/Person/WebSite\n * e nao dizem ao Google o que elas sao.\n *\n * @framerIntrinsicWidth 0\n * @framerIntrinsicHeight 0\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */const BASE=\"https://wama.com.br\";function limpar(valor){if(Array.isArray(valor)){const a=valor.map(limpar).filter(v=>v!==undefined);return a.length?a:undefined;}if(valor&&typeof valor===\"object\"){const saida={};for(const[k,v]of Object.entries(valor)){const c=limpar(v);if(c!==undefined&&c!==null&&c!==\"\")saida[k]=c;}return Object.keys(saida).length?saida:undefined;}return valor;}export default function Collection_Schema(props){const{tipo=\"CollectionPage\",nome=\"\",descricao=\"\",slug=\"\",ancora=\"\"}=props;const limpo=String(slug).replace(/^\\/+|\\/+$/g,\"\");const url=`${BASE}/${limpo}`;const chave=(ancora||limpo||\"pagina\").replace(/[^a-z0-9-]/gi,\"\");const ehBlog=tipo===\"Blog\";const pagina={\"@context\":\"https://schema.org\",\"@type\":ehBlog?[\"CollectionPage\",\"Blog\"]:\"CollectionPage\",\"@id\":`${url}#${chave}`,name:nome,description:descricao,url:url,inLanguage:\"pt-BR\",isPartOf:{\"@id\":`${BASE}/#website`},publisher:{\"@id\":`${BASE}/#organization`},about:{\"@id\":`${BASE}/#organization`},breadcrumb:{\"@id\":`${url}#breadcrumb`}};const trilha={\"@context\":\"https://schema.org\",\"@type\":\"BreadcrumbList\",\"@id\":`${url}#breadcrumb`,itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Wama\",item:`${BASE}/`},{\"@type\":\"ListItem\",position:2,name:nome||chave,item:url}]};return /*#__PURE__*/_jsxs(\"div\",{style:{width:0,height:0,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(limpar(pagina))}}),/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(limpar(trilha))}})]});}addPropertyControls(Collection_Schema,{tipo:{type:ControlType.Enum,title:\"Tipo\",options:[\"CollectionPage\",\"Blog\"],optionTitles:[\"Listagem\",\"Blog\"],defaultValue:\"CollectionPage\"},nome:{type:ControlType.String,title:\"Nome\",defaultValue:\"\"},descricao:{type:ControlType.String,title:\"Descricao\",defaultValue:\"\",displayTextArea:true},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\"},ancora:{type:ControlType.String,title:\"Ancora\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Collection_Schema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Collection_Schema.map"],"mappings":"mKAWoC,SAAS,EAAO,EAAM,CAAC,GAAG,MAAM,QAAQ,CAAK,EAAE,CAAC,IAAM,EAAE,EAAM,IAAI,CAAM,CAAC,CAAC,OAAO,GAAG,IAAI,IAAA,EAAS,EAAE,OAAO,EAAE,OAAO,EAAE,IAAA,EAAU,CAAC,GAAG,GAAO,OAAO,GAAQ,SAAS,CAAC,IAAM,EAAM,CAAC,EAAE,IAAI,GAAK,CAAC,EAAE,KAAK,OAAO,QAAQ,CAAK,EAAE,CAAC,IAAM,EAAE,EAAO,CAAC,EAAK,GAAmB,MAAM,IAAI,KAAG,EAAM,GAAG,EAAE,CAAC,OAAO,OAAO,KAAK,CAAK,CAAC,CAAC,OAAO,EAAM,IAAA,EAAU,CAAC,OAAO,CAAM,CAAC,SAAwB,EAAkB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