import{w as r,b3 as S,g as n,b4 as b,b5 as P,r as x,j as i,I as l,b as I,c3 as w,bq as C,au as D,c4 as F,H,c5 as $,bn as M,i as k}from"./index-Csef3-wA.js";import{P as T,S as z,a as B}from"./StaticPage-j6tNNe9Q.js";import{d as R}from"./Add-BgR3Rmtz.js";import{d as E}from"./Remove-B5FcLRYX.js";import{u as v,f as L}from"./price-C365nHLE.js";import"./index-CQxAId2n.js";import"./index-C99wF7dD.js";import"./Box-TxHQja0b.js";import"./language-DKIuA-OH.js";import"./reviews-CoLGA8Lj.js";import"./Icon-o1TUwOIX.js";import"./hooks-DWQDL114.js";const Q=r((t,m,f)=>({root:{boxShadow:"none",marginTop:0,marginBottom:12,"&:before":{display:"none"},[`&.${f.expanded}`]:{marginTop:0},"&:last-child":{marginBottom:0},[t.breakpoints.up("md")]:{marginBottom:24}},rounded:{borderRadius:8,"&:first-child":{borderRadius:8},"&:last-child":{borderRadius:8}},expanded:{}}),"Accordion")(S),W=r({root:{paddingLeft:16,paddingRight:16,minHeight:68,fontSize:14,lineHeight:"21px",fontWeight:600},expandIconWrapper:{color:n.black}},"AccordionSummary")(b),_=r(t=>({root:{padding:"0 40px 32px 16px",lineHeight:"24px",color:n.gray.darkest,fontSize:13,[t.breakpoints.up("md")]:{fontSize:16,lineHeight:"30px"}}}),"AccordionDetails")(P),u=x.createContext(!1);function N({expanded:t,...m}){return i.jsx(u.Provider,{value:t,children:i.jsx(Q,{expanded:t,square:!1,...m})})}function O(t){const m=x.useContext(u);return i.jsx(W,{expandIcon:m?i.jsx(E,{}):i.jsx(R,{}),...t})}const p={Item:l(T)({padding:"48px 44px 52px",marginBottom:16,"&:last-child":{marginBottom:0}},"Faq-Item"),ItemTitle:l("h2")(({theme:t})=>({fontWeight:600,fontSize:14,[t.breakpoints.up("md")]:{fontSize:22,lineHeight:"32px",marginBottom:0}}),"Faq-ItemTitle"),ItemText:l("p")({fontSize:16,lineHeight:"30px",color:n.gray.darkest},"Faq-Text"),AccordionDetails:r({root:{display:"block"}})(_)},{siteName:U,trialDays:V,refundDays:G}=k;function ft(){const t=I(),{prices:m}=v(),[f,h]=x.useState(!1),g=w(),d=m.find(a=>a.isTrial);function j(a,s){h(s?a:!1)}const e={siteName:U,trialDays:V,refundDays:G,trialPrice:d?L({amount:d.baseAmount,currency:d.currency}):""},o=[{title:t.formatMessage({id:"faq.items.item1.title"},e),text:t.formatMessage({id:"faq.items.item1.text"},e)},{title:t.formatMessage({id:"faq.items.item2.title"},e),text:t.formatMessage({id:"faq.items.item2.text"},e)},{title:t.formatMessage({id:"faq.items.item3.title"},e),text:t.formatMessage({id:"faq.items.item3.text"},e)},{title:t.formatMessage({id:"faq.items.item4.title"},e),text:t.formatMessage({id:"faq.items.item4.text"},e)},{title:t.formatMessage({id:"faq.items.item5.title"},e),text:t.formatMessage({id:"faq.items.item5.text"},e)},{title:t.formatMessage({id:"faq.items.item6.title"},e),text:t.formatMessage({id:"faq.items.item6.text"},e)},{title:t.formatMessage({id:"faq.items.item7.title"},e),text:t.formatMessage({id:"faq.items.item7.text"},e)},{title:t.formatMessage({id:"faq.items.item8.title"},e),text:t.formatMessage({id:"faq.items.item8.text"},e)},{title:t.formatMessage({id:"faq.items.item9.title"},e),text:t.formatMessage({id:"faq.items.item9.text"},e)},{title:t.formatMessage({id:"faq.items.item10.title"},e),text:t.formatMessage({id:"faq.items.item10.text"},e)},{title:t.formatMessage({id:"faq.items.item11.title"},e),text:t.formatMessage({id:"faq.items.item11.text"},e)},{title:t.formatMessage({id:"faq.items.item12.title"},e),text:t.formatMessage({id:"faq.items.item12.text"},e)},{title:t.formatMessage({id:"faq.items.item13.title"},e),text:t.formatMessage({id:"faq.items.item13.text"},e)},{title:t.formatMessage({id:"faq.items.item14.title"},e),text:t.formatMessage({id:"faq.items.item14.text"},e)},{title:t.formatMessage({id:"faq.items.item15.title"},e),text:t.formatMessage({id:"faq.items.item15.text"},e)},{title:t.formatMessage({id:"faq.items.item16.title"},e),text:t.formatMessage({id:"faq.items.item16.text"},e)},{title:t.formatMessage({id:"faq.items.item17.title"},e),text:t.formatMessage({id:"faq.items.item17.text"},e)},{title:t.formatMessage({id:"faq.items.item18.title"},e),text:t.formatMessage({id:"faq.items.item18.text"},e)},{title:t.formatMessage({id:"faq.items.item19.title"},e),text:t.formatMessage({id:"faq.items.item19.text"},e)},{title:t.formatMessage({id:"faq.items.item20.title"},e),text:t.formatMessage({id:"faq.items.item20.text"},e)},{title:t.formatMessage({id:"faq.items.item21.title"},e),text:t.formatMessage({id:"faq.items.item21.text"},e)},{title:t.formatMessage({id:"faq.items.item22.title"},e),text:t.formatMessage({id:"faq.items.item22.text"},e)},{title:t.formatMessage({id:"faq.items.item23.title"},e),text:t.formatMessage({id:"faq.items.item23.text"},e)},{disabled:!0,title:t.formatMessage({id:"faq.items.item24.title"},e),text:t.formatMessage({id:"faq.items.item24.text"},e)},{disabled:!0,title:t.formatMessage({id:"faq.items.item25.title"},e),text:t.formatMessage({id:"faq.items.item25.text"},e)},{title:t.formatMessage({id:"faq.items.item26.title"},e),text:t.formatMessage({id:"faq.items.item26.text"},e)},{title:t.formatMessage({id:"faq.items.item27.title"},e),text:t.formatMessage({id:"faq.items.item27.text"},e)},{title:t.formatMessage({id:"faq.items.item28.title"},e),text:t.formatMessage({id:"faq.items.item28.text"},e)},{title:t.formatMessage({id:"faq.items.item29.title"},e),text:t.formatMessage({id:"faq.items.item29.text"},{...e,a:(...a)=>i.jsx(C,{to:D("plansAndPayments"),children:a})})},{title:t.formatMessage({id:"faq.items.item30.title"},e),text:t.formatMessage({id:"faq.items.item30.text"},e)},{title:t.formatMessage({id:"faq.items.item33.title"},e),text:t.formatMessage({id:"faq.items.item33.text"},e)},{title:t.formatMessage({id:"faq.items.item34.title"},e),text:t.formatMessage({id:"faq.items.item34.text"},e)},{title:t.formatMessage({id:"faq.items.item35.title"},e),text:t.formatMessage({id:"faq.items.item35.text"},e)},{title:t.formatMessage({id:"faq.items.item36.title"},e),text:t.formatMessage({id:"faq.items.item36.text"},e)},{title:t.formatMessage({id:"faq.items.item37.title"},e),text:t.formatMessage({id:"faq.items.item37.text"},e)},{title:t.formatMessage({id:"faq.items.item38.title"},e),text:t.formatMessage({id:"faq.items.item38.text"},e)},{title:t.formatMessage({id:"faq.items.item39.title"},e),text:t.formatMessage({id:"faq.items.item39.text"},e)}],c=o.filter(a=>!a.disabled),y=F("FAQPage",{mainEntity:c.map(a=>{var s;return{"@type":"Question",name:a.title,acceptedAnswer:{"@type":"Answer",text:Array.isArray(a.text)?(s=a.text)==null?void 0:s.join():a.text}}})}),q=c.map((a,s)=>i.jsxs(N,{expanded:f===s||g,onChange:(J,A)=>{g||j(s,A)},children:[i.jsx(O,{children:i.jsx(p.ItemTitle,{children:a.title})}),i.jsx(p.AccordionDetails,{children:a.text})]},`Faq-itemsFiltred--${s.toString()}`));return i.jsxs(z,{footerProps:{prefooter:!1},title:t.formatMessage({id:"faq.title"}),description:t.formatMessage({id:"faq.description"}),showCreateQR:!0,children:[i.jsx(H,{defer:!1,children:i.jsx("meta",{name:"description",content:t.formatMessage({id:"faq.metaDescription"})})}),!!(o!=null&&o.length)&&i.jsx($,{data:y}),i.jsx(B,{children:i.jsxs("div",{children:[i.jsx(M,{mdDown:!0,children:q}),i.jsx(M,{mdUp:!0,children:q})]})})]})}export{ft as default};