1import{r as c,j as e}from"./react-vendor-BEafpyAm.js";import{u as q,c as o}from"./index-o6Y4MR8m.js";import{aY as b,ap as v,N as j}from"./icons-vendor-DBipXAa1.js";import"./crypto-vendor-DdVgyv-Y.js";import"./react-query-vendor-BhLAuXR4.js";import"./recharts-vendor-C3BwgIm8.js";import"./supabase-vendor-DUUDoC-1.js";import"./date-fns-core-p4ULazqZ.js";import"./date-fns-locales-Csbs7Iu2.js";const N=[{id:"gs1",category:"gettingStarted",questionKey:"faq.gettingStarted.q1",answerKey:"faq.gettingStarted.a1"},{id:"gs2",category:"gettingStarted",questionKey:"faq.gettingStarted.q3",answerKey:"faq.gettingStarted.a3"},{id:"gs3",category:"gettingStarted",questionKey:"faq.gettingStarted.q4",answerKey:"faq.gettingStarted.a4"},{id:"gs4",category:"gettingStarted",questionKey:"faq.gettingStarted.q6",answerKey:"faq.gettingStarted.a6"},{id:"gs5",category:"gettingStarted",questionKey:"faq.gettingStarted.q8",answerKey:"faq.gettingStarted.a8"},{id:"ac1",category:"account",questionKey:"faq.account.q1",answerKey:"faq.account.a1"},{id:"ac2",category:"account",questionKey:"faq.account.q3",answerKey:"faq.account.a3"},{id:"ac3",category:"account",questionKey:"faq.account.q5",answerKey:"faq.account.a5"},{id:"ac4",category:"account",questionKey:"faq.account.q4",answerKey:"faq.account.a4"},{id:"pr1",category:"privacy",questionKey:"faq.privacy.q1",answerKey:"faq.privacy.a1"},{id:"pr2",category:"privacy",questionKey:"faq.privacy.q2",answerKey:"faq.privacy.a2"},{id:"pr3",category:"privacy",questionKey:"faq.privacy.q3",answerKey:"faq.privacy.a3"},{id:"pr4",category:"privacy",questionKey:"faq.privacy.q4",answerKey:"faq.privacy.a4"},{id:"pr5",category:"privacy",questionKey:"faq.privacy.q6",answerKey:"faq.privacy.a6"},{id:"fe1",category:"features",questionKey:"faq.features.q1",answerKey:"faq.features.a1"},{id:"fe2",category:"features",questionKey:"faq.features.q2",answerKey:"faq.features.a2"},{id:"fe3",category:"features",questionKey:"faq.features.q3",answerKey:"faq.features.a3"},{id:"fe4",category:"features",questionKey:"faq.features.q6",answerKey:"faq.features.a6"},{id:"te1",category:"technical",questionKey:"faq.technical.q1",answerKey:"faq.technical.a1"},{id:"te2",category:"technical",questionKey:"faq.technical.q2",answerKey:"faq.technical.a2"},{id:"te3",category:"technical",questionKey:"faq.technical.q4",answerKey:"faq.technical.a4"}],S={gettingStarted:"bg-blue-100 text-blue-800",account:"bg-green-100 text-green-800",privacy:"bg-purple-100 text-purple-800",features:"bg-orange-100 text-orange-800",technical:"bg-gray-100 text-gray-800"},x=c.memo(({item:a,isOpen:n,onToggle:i})=>{const{t:r}=q();return e.jsxs("div",{className:"border-b border-gray-200 last:border-0",children:[e.jsxs("button",{onClick:i,className:"w-full py-5 px-4 flex items-start justify-between text-left hover:bg-gray-50 transition-colors","aria-expanded":n,children:[e.jsxs("div",{className:"flex-1 pr-4",children:[e.jsx("div",{className:"flex items-center gap-2 mb-1",children:e.jsx("span",{className:o("text-xs px-2 py-0.5 rounded-full font-medium",S[a.category]),children:r(`faq.category.${a.category}`)})}),e.jsx("span",{className:"font-medium text-gray-900",children:r(a.questionKey)})]}),e.jsx(j,{className:o("h-5 w-5 text-gray-500 flex-shrink-0 transition-transform duration-200",n&&"rotate-180")})]}),e.jsx("div",{className:o("overflow-hidden transition-all duration-200",n?"max-h-96 opacity-100":"max-h-0 opacity-0"),children:e.jsx("div",{className:"px-4 pb-5 text-gray-600 leading-relaxed",children:r(a.answerKey)})})]})});x.displayName="FAQAccordionItem";const C=c.memo(()=>{const{t:a}=q(),[n,i]=c.useState(new Set),[r,l]=c.useState(""),[d,p]=c.useState("gettingStarted"),m=t=>{i(g=>{const s=new Set(g);return s.has(t)?s.delete(t):s.add(t),s})},y=N.filter(t=>{if(!(t.category===d))return!1;if(!r.trim())return!0;const s=a(t.questionKey),u=a(t.answerKey),w=(typeof s=="string"?s:t.questionKey).toLowerCase(),K=(typeof u=="string"?u:t.answerKey).toLowerCase(),f=r.toLowerCase();return w.includes(f)||K.includes(f)}),h=["gettingStarted","account","privacy","features","technical"];return e.jsx("section",{className:"py-20 bg-gray-50",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-6",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsxs("div",{className:"flex items-center justify-center gap-3 mb-4",children:[e.jsx(b,{className:"h-10 w-10 text-[hsl(205,100%,21%)]"}),e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[hsl(205,100%,21%)]",children:a("faq.title")})]}),e.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:a("faq.subtitle")})]}),e.jsxs("div",{className:"relative mb-6",children:[e.jsx(v,{className:"absolute left-4 top-1/2 -translate-y-1/2 h-5 w-5 text-gray-400"}),e.jsx("input",{type:"text",placeholder:a("faq.searchPlaceholder"),value:r,onChange:t=>l(t.target.value),className:"w-full pl-12 pr-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[hsl(205,100%,21%)] focus:border-transparent outline-none"})]}),e.jsx("div",{className:"flex flex-wrap gap-2 mb-8 justify-center",children:h.map(t=>e.jsx("button",{onClick:()=>p(t),className:o("px-4 py-2 rounded-full text-sm font-medium transition-colors",d===t?"bg-[hsl(205,100%,21%)] text-white":"bg-white text-gray-700 border border-gray-300 hover:border-gray-400"),children:a(`faq.category.${t}`)},t))}),e.jsx("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 overflow-hidden",children:y.length>0?y.map(t=>e.jsx(x,{item:t,isOpen:n.has(t.id),onToggle:()=>m(t.id)},t.id)):e.jsxs("div",{className:"py-12 text-center text-gray-500",children:[e.jsx("p",{children:a("faq.noResults")}),e.jsx("button",{onClick:()=>{l("")},className:"mt-2 text-[hsl(205,100%,21%)] hover:underline",children:a("faq.clearSearch")})]})}),e.jsxs("div",{className:"mt-12 text-center bg-white rounded-xl p-8 shadow-sm border border-gray-200",children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:a("faq.contactSupport")}),e.jsx("p",{className:"text-gray-600 mb-4",children:a("faq.contactSupportDesc")}),e.jsx("a",{href:"/support",className:"inline-flex items-center gap-2 px-6 py-3 bg-[hsl(205,100%,21%)] text-white rounded-lg hover:bg-[hsl(205,100%,25%)] transition-colors font-medium",children:a("faq.contactButton")})]})]})})});C.displayName="FAQ";export{C as FAQ,C as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.