{"version":3,"file":"ServiceFAQ.DSee0vPg.mjs","names":["React.useState","React.useId"],"sources":["https:/framerusercontent.com/modules/7bElhmTJGdyj9PkCBTj2/ZI2cGN2jDnhhqvU14GYy/ServiceFAQ.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function ServiceFAQ({question=\"Domanda\",answer=\"Risposta\",ink=\"#111\",line=\"#ddd\",style}){const[open,setOpen]=React.useState(false);const id=React.useId();React.useEffect(()=>{const closeOther=e=>{if(e.detail!==id)setOpen(false);};window.addEventListener(\"silvia-service-faq-open\",closeOther);return()=>window.removeEventListener(\"silvia-service-faq-open\",closeOther);},[id]);function toggle(){if(!open)window.dispatchEvent(new CustomEvent(\"silvia-service-faq-open\",{detail:id}));setOpen(!open);}return /*#__PURE__*/_jsxs(\"div\",{style:{...style,position:\"relative\",width:\"100%\",background:\"var(--token-2ce87079-7051-4bab-8066-ab6fe0e58a4b)\",color:ink,borderBottom:`1px solid ${line}`},children:[/*#__PURE__*/_jsx(\"style\",{children:`.service-faq-question{font-size:28px}.service-faq-question:focus-visible{outline:2px solid currentColor;outline-offset:-2px}@media(max-width:1199px){.service-faq-question{font-size:24px}}`}),/*#__PURE__*/_jsx(\"h3\",{style:{margin:0},children:/*#__PURE__*/_jsxs(\"button\",{className:\"service-faq-question\",onClick:toggle,\"aria-expanded\":open,\"aria-controls\":id,style:{display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",gap:24,padding:\"24px 0\",width:\"100%\",border:0,background:\"transparent\",color:\"inherit\",textAlign:\"left\",fontFamily:'\"Clash Display\",sans-serif',fontWeight:500,lineHeight:1,cursor:\"pointer\"},children:[/*#__PURE__*/_jsx(\"span\",{children:question}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{fontFamily:\"Inter,sans-serif\",fontSize:24,fontWeight:400},children:open?\"−\":\"+\"})]})}),/*#__PURE__*/_jsx(\"div\",{id:id,hidden:!open,style:{paddingBottom:24},children:/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontFamily:\"Inter,sans-serif\",fontSize:18,fontWeight:400,lineHeight:1.6},children:answer})})]});}addPropertyControls(ServiceFAQ,{question:{type:ControlType.String,title:\"Question\",defaultValue:\"Domanda\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"Risposta\",displayTextArea:true},ink:{type:ControlType.Color,title:\"Testo\",defaultValue:\"#111\"},line:{type:ControlType.Color,title:\"Linea\",defaultValue:\"#ddd\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ServiceFAQ\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ServiceFAQ.map"],"mappings":"6MAGG,SAAwB,EAAW,CAAC,WAAS,UAAU,SAAO,WAAW,MAAI,OAAO,OAAK,OAAO,SAAO,CAAC,GAAK,CAAC,EAAK,GAASA,EAAe,EAAK,EAAQ,EAAGC,EAAY,EAAE,MAAoB,CAAC,IAAM,EAAW,GAAG,CAAI,EAAE,SAAS,GAAG,EAAQ,EAAK,CAAE,EAAgE,OAA9D,EAAO,iBAAiB,0BAA0B,CAAU,MAAY,EAAO,oBAAoB,0BAA0B,CAAU,CAAE,EAAE,CAAC,CAAE,CAAC,EAAE,SAAS,GAAQ,CAAK,GAAK,EAAO,cAAc,IAAI,YAAY,0BAA0B,CAAC,OAAO,CAAE,CAAC,CAAC,EAAE,EAAQ,CAAC,CAAI,CAAE,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,SAAS,WAAW,MAAM,OAAO,WAAW,oDAAoD,MAAM,EAAI,aAAa,aAAa,GAA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