PageSourceSearch

https://abby.fr/_nuxt/X5fuJquZ.js

js abby.fr collected 2026-09-24 11:54:56 UTC 2,325 bytes, 1 lines download raw bytes

1import w from"./B0BEKM7Q.js";import{s as L}from"./C0xmhWY3.js";import{u as S}from"./Cyo4zJ3Y.js";import{u as F}from"./BkWwbx_c.js";import{d as T,u as B,D as I,c as u,m,e as s,b as n,t as h,F as x,f as g,r as M,a as Q,h as z,o as r}from"./DHgdJ_3n.js";import{_ as D}from"./DlAUqK2U.js";const E={class:"container py-10"},H={class:"text-title-2 text-center font-bold mb-10"},N={class:"flex flex-col gap-4 sm-and-up:flex-row"},V=["onClick"],O={class:"text-body-1 font-medium"},$=["innerHTML"],A={class:"self-start"},G=T({__name:"FaqList",props:{questions:{},title:{},surface:{default:"muted"}},emits:["open"],setup(a,{emit:v}){const{t:y}=B(),b=v;S(a.questions);const _=z(()=>[a.questions.slice(0,a.questions.length/2),a.questions.slice(a.questions.length/2)]),i=(t,l)=>t===0?l:_.value[0].length+l,e=M([]),p=t=>{if(e.value.includes(t)){e.value=e.value.filter(l=>l!==t);return}e.value=[...e.value,t]},q=(t,l)=>{const f=!e.value.includes(t);p(t),f&&b("open",{question:l.question,index:t})};I(()=>{p(0)});const{transformText:k}=F();return(t,l)=>{const f=w;return r(),u("section",{class:m(("sectionSurfaceClass"in t?t.sectionSurfaceClass:s(L))(a.surface))},[n("div",E,[n("h2",H,h(a.title??s(y)("faq")),1),n("div",N,[(r(!0),u(x,null,g(s(_),(C,o)=>(r(),u("div",{key:o,class:"flex flex-1 flex-col gap-4"},[(r(!0),u(x,null,g(C,(d,c)=>(r(),u("div",{key:d.question,class:"card-item flex flex-row gap-2 justify-between cursor-pointer items-center",onClick:J=>q(i(o,c),d)},[n("div",null,[n("h3",O,h(d.question),1),n("div",null,[n("div",{class:m(["text-body-2 overflow-hidden !leading-7 transition-all duration-300 ease-in-out text-gray-500",{"max-h-[800px] pt-4 opacity-100":s(e).includes(i(o,c)),"max-h-0 opacity-0":!s(e).includes(i(o,c))}]),innerHTML:s(k)(d.answer)},null,10,$)])]),n("div",A,[n("div",{class:m(["bg-background w-fit transition-all h-fit rounded flex items-center justify-center",{"bg-primary":s(e).includes(i(o,c))}])},[Q(f,{name:s(e).includes(i(o,c))?"lucide:minus":"lucide:plus",size:"28",class:m(["transform transition-all duration-300 ease-in-out",{"rotate-180 bg-white":s(e).includes(i(o,c)),"bg-gray-500":!s(e).includes(i(o,c))}]),"aria-hidden":"true"},null,8,["name","class"])],2)])],8,V))),128))]))),128))])])],2)}}}),Y=Object.assign(D(G,[["__scopeId","data-v-f8623e49"]]),{__name:"SectionFaqList"});export{Y as _};

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.