{"version":3,"file":"PostFAQ.BfjFAebZ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/SqFedixqBf18Kp64NW1c/NmciOFJlQnLuVFIk7lec/PostFAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * FAQ do post em acordeão nativo (details/summary): o conteúdo existe no HTML\n * pré-renderizado, sem JavaScript — legível por crawler e por leitor de tela.\n * Recebe o campo \"FAQ (JSON)\" do CMS: [{\"q\":\"…\",\"a\":\"…\"}].\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function PostFAQ(props){const{faqJson,titulo,corTitulo,corTexto,corBorda,fonte}=props;let itens=[];try{const parsed=JSON.parse(faqJson||\"[]\");if(Array.isArray(parsed)){itens=parsed.filter(i=>i&&typeof i.q===\"string\"&&typeof i.a===\"string\");}}catch(e){itens=[];}if(itens.length===0)return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"}});return /*#__PURE__*/_jsxs(\"section\",{\"aria-label\":titulo,style:{position:\"relative\",width:\"100%\",fontFamily:fonte||\"Inter, sans-serif\"},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,marginBottom:16,fontSize:24,lineHeight:1.3,color:corTitulo},children:titulo}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:8},children:itens.map((i,n)=>/*#__PURE__*/_jsxs(\"details\",{style:{border:`1px solid ${corBorda}`,borderRadius:12,padding:\"14px 18px\",background:\"#ffffff\"},children:[/*#__PURE__*/_jsx(\"summary\",{style:{cursor:\"pointer\",fontWeight:600,fontSize:16,lineHeight:1.5,color:corTitulo,listStylePosition:\"outside\"},children:i.q}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,marginTop:10,fontSize:15,lineHeight:1.7,color:corTexto},children:i.a})]},n))})]});}addPropertyControls(PostFAQ,{faqJson:{type:ControlType.String,title:\"FAQ (JSON)\",displayTextArea:true},titulo:{type:ControlType.String,title:\"T\\xedtulo\",defaultValue:\"Perguntas frequentes\"},corTitulo:{type:ControlType.Color,title:\"Cor do t\\xedtulo\",defaultValue:\"#092938\"},corTexto:{type:ControlType.Color,title:\"Cor do texto\",defaultValue:\"#475569\"},corBorda:{type:ControlType.Color,title:\"Cor da borda\",defaultValue:\"#e2e8f0\"},fonte:{type:ControlType.String,title:\"Fonte\",defaultValue:\"Inter, sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PostFAQ\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PostFAQ.map"],"mappings":"8JAOG,SAAwB,EAAQ,EAAM,CAAC,GAAK,CAAC,UAAQ,SAAO,YAAU,WAAS,WAAS,SAAO,EAAU,EAAM,CAAC,EAAE,GAAG,CAAC,IAAM,EAAO,KAAK,MAAM,GAAS,IAAI,EAAK,MAAM,QAAQ,CAAM,IAAG,EAAM,EAAO,OAAO,GAAG,GAAG,OAAO,EAAE,GAAI,UAAU,OAAO,EAAE,GAAI,QAAQ,EAAG,MAAS,CAAC,EAAM,CAAC,CAAE,CAA8E,OAA1E,EAAM,SAAS,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,MAAM,CAAC,CAAC,EAAsB,EAAM,UAAU,CAAC,aAAa,EAAO,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,WAAW,GAAO,mBAAmB,EAAE,SAAS,CAAc,EAAK,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,SAAS,GAAG,WAAW,IAAI,MAAM,CAAS,EAAE,SAAS,CAAM,CAAC,EAAe,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,IAAI,CAAC,EAAE,SAAS,EAAM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