1import{c as k,r as c,j as e,L as p}from"./index-DlPgDPMS.js";import{u as y}from"./useReglages-CvyXtOnL.js";import{f as N}from"./faq-ex4zjJTm.js";import"./settings.service-BllWUg7M.js";const o=[{key:"compte",label:"Mon compte",sub:"Inscription, profilâ¦",grad:"linear-gradient(135deg,#7A4BA3,#5A3580)",icon:e.jsxs(e.Fragment,{children:[e.jsx("circle",{cx:"12",cy:"8",r:"4"}),e.jsx("path",{d:"M4 21v-1a6 6 0 0 1 12 0v1",strokeLinecap:"round"})]})},{key:"avis",label:"Avis & Crédibilité",sub:"Notes, badgesâ¦",grad:"linear-gradient(135deg,#F0A830,#E0552B)",icon:e.jsx("path",{d:"M12 2l2.4 7.4H22l-6 4.5 2.3 7.1L12 16.7 5.7 21 8 13.9 2 9.4h7.6L12 2Z",fill:"currentColor",stroke:"none"})},{key:"emploi",label:"Emploi & CV",sub:"Postuler, recruterâ¦",grad:"linear-gradient(135deg,#E0552B,#b13f1e)",icon:e.jsxs(e.Fragment,{children:[e.jsx("rect",{x:"2",y:"7",width:"20",height:"14",rx:"2"}),e.jsx("path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"})]})},{key:"pro",label:"Espace pro",sub:"Fiche, abonnementâ¦",grad:"linear-gradient(135deg,#1F4E63,#0F2E3D)",icon:e.jsx("path",{d:"M3 9l1-5h16l1 5M5 9v11h14V9"})},{key:"securite",label:"Sécurité & RGPD",sub:"Données, vie privéeâ¦",grad:"linear-gradient(135deg,#3A9D8A,#2C8A76)",icon:e.jsx("path",{d:"M12 22s-8-4-8-12V5l8-3 8 3v5c0 8-8 12-8 12z"})}],l=Object.fromEntries(o.map(a=>[a.key,[]]));var j;for(const a of N)(l[j=a.cat]??(l[j]=[])).push({q:a.q,a:a.a});const b=()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:e.jsx("path",{d:"M6 9l6 6 6-6",strokeLinecap:"round"})});function B(){const a=y("contact_email");k({title:"Centre d'aide",description:"Centre d'aide Coeur2Ville : réponses à vos questions sur l'utilisation de la plateforme.",path:"/faq"});const[i,d]=c.useState("all"),[x,m]=c.useState(""),[v,f]=c.useState(new Set),g=s=>f(r=>{const t=new Set(r);return t.has(s)?t.delete(s):t.add(s),t}),n=x.trim().toLowerCase(),h=c.useMemo(()=>o.filter(s=>i==="all"||s.key===i).map(s=>({cat:s,items:l[s.key].filter(r=>!n||(r.q+" "+r.a).toLowerCase().includes(n))})).filter(s=>s.items.length>0),[i,n]),q=h.reduce((s,r)=>s+r.items.length,0);return e.jsxs("div",{className:"faqx-page",children:[e.jsx("section",{className:"faqx-hero",children:e.jsxs("div",{className:"faqx-hero-wrap",children:[e.jsx("div",{className:"faqx-hero-ic",children:e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3M12 17h.01",strokeLinecap:"round",strokeLinejoin:"round"})]})}),e.jsxs("h1",{children:["Centre d'",e.jsx("em",{children:"aide"})]}),e.jsx("p",{className:"faqx-lead",children:"Trouvez rapidement les réponses aux questions les plus fréquentes sur Coeur2Ville. Notre équipe est aussi là pour vous accompagner."}),e.jsxs("div",{className:"faqx-search",children:[e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("path",{d:"M21 21l-4.35-4.35",strokeLinecap:"round"})]}),e.jsx("input",{type:"text",placeholder:"Rechercher dans l'aide⦠(ex. créer un compte, supprimer un avisâ¦)",value:x,onChange:s=>m(s.target.value)})]})]})}),e.jsx("section",{className:"faqx-cats",children:e.jsxs("div",{className:"faqx-cats-grid",children:[e.jsxs("button",{className:`faqx-cat${i==="all"?" active":""}`,onClick:()=>d("all"),children:[e.jsx("div",{className:"faqx-cat-ic",style:{background:"linear-gradient(135deg,#7A4BA3,#5A3580)"},children:e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("rect",{x:"3",y:"3",width:"7",height:"7"}),e.jsx("rect",{x:"14",y:"3",width:"7",height:"7"}),e.jsx("rect",{x:"3",y:"14",width:"7",height:"7"}),e.jsx("rect",{x:"14",y:"14",width:"7",height:"7"})]})}),e.jsx("h3",{children:"Tout"}),e.jsx("p",{children:"Voir toutes les FAQ"})]}),o.map(s=>e.jsxs("button",{className:`faqx-cat${i===s.key?" active":""}`,onClick:()=>d(s.key),children:[e.jsx("div",{className:"faqx-cat-ic",style:{background:s.grad},children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.icon})}),e.jsx("h3",{children:s.label}),e.jsx("p",{children:s.sub})]},s.key))]})}),e.jsxs("main",{className:"faqx-main",children:[h.map(s=>e.jsxs("div",{className:"faqx-sec",children:[e.jsxs("div",{className:"faqx-sec-h",children:[e.jsx("div",{className:"faqx-sec-ic",style:{background:s.
1cat.grad},children:e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:s.cat.icon})}),e.jsx("h2",{children:s.cat.label}),e.jsxs("span",{className:"faqx-count",children:[s.items.length," question",s.items.length>1?"s":""]})]}),e.jsx("div",{className:"faqx-list",children:s.items.map(r=>{const t=s.cat.key+r.q,u=v.has(t);return e.jsxs("div",{className:`faqx-item${u?" open":""}`,children:[e.jsxs("button",{className:"faqx-q",onClick:()=>g(t),children:[r.q,e.jsx("span",{className:"faqx-arrow",children:e.jsx(b,{})})]}),e.jsx("div",{className:"faqx-a",style:{maxHeight:u?600:0},children:e.jsx("div",{className:"faqx-a-inner",dangerouslySetInnerHTML:{__html:r.a}})})]},t)})})]},s.cat.key)),n&&q===0&&e.jsxs("div",{className:"faqx-none",children:[e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("path",{d:"M21 21l-4.35-4.35"})]}),e.jsx("p",{children:"Aucune réponse trouvée pour votre recherche."}),e.jsx("p",{style:{marginTop:10,fontWeight:500},children:e.jsx(p,{to:"/contact",className:"faqx-link",children:"Contactez notre équipe â"})})]}),e.jsxs("div",{className:"faqx-cta",children:[e.jsxs("h2",{children:["Vous n'avez pas trouvé votre ",e.jsx("em",{children:"réponse"})," ?"]}),e.jsx("p",{children:"Notre équipe est là pour vous aider du lundi au vendredi, de 9h à 18h, et vous répond par e-mail."}),e.jsxs("div",{className:"faqx-cta-btns",children:[e.jsxs(p,{to:"/contact",className:"faqx-cta-btn primary",children:["Nous contacter",e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M5 12h14M13 5l7 7-7 7",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})})]}),e.jsxs("a",{href:`mailto:${a}`,className:"faqx-cta-btn secondary",children:[e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),e.jsx("polyline",{points:"22 6 12 13 2 6"})]}),a]})]})]})]})]})}export{B 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.