PageSourceSearch

https://www.secretbox.fr/_nuxt/Bje19_BR.js

js secretbox.fr collected 2026-10-03 21:28:15 UTC 2,363 bytes, 1 lines download raw bytes

1import{H as e,Ht as t,_ as n,b as r,f as i,l as a,p as o,r as s,tt as c,u as l,ut as u,v as d,vt as f,z as p,zt as m}from"./CgDnuvNn.js";import{c as h}from"./DIkiUomw.js";import{n as g}from"./BzTDrFb9.js";import{t as _}from"./BStq9B-M.js";var v=e=>e.replace(/<[^>]*>/g,` `).replace(/\s+/g,` `).trim(),y=(e,t)=>{let n=u([]),r=a(()=>t?(e?.categories||[]).find(e=>e?.identifier===t)?.id??null:null),i=a(()=>{let t=e?.questions||[];return r.value===null?t:t.filter(e=>(e?.category_ids||[]).includes(r.value))});return{questions:i,openQuestions:n,isOpen:e=>n.value.includes(e),toggleQuestion:e=>{let t=n.value.indexOf(e);if(t===-1){n.value.push(e);return}n.value.splice(t,1)},faqJsonLd:a(()=>JSON.stringify({"@context":`https://schema.org`,"@type":`FAQPage`,mainEntity:i.value.map(e=>({"@type":`Question`,name:e.title,acceptedAnswer:{"@type":`Answer`,text:v(e.body||``)}}))}))}},b={key:0,id:`faq`,class:`bg-white py-16 md:py-20`},x={class:`mx-auto max-w-3xl px-5`},S={class:`border-l-2 border-gold pl-4`},C=[`innerHTML`],w={key:1,class:`mt-2 text-sm font-light text-ink/60`},T={class:`mt-8 divide-y divide-sand border-y border-sand`},E=[`aria-expanded`,`onClick`],D=[`innerHTML`],O=Object.assign(r({__name:`faq`,props:{block:{}},setup(r){let u=a(()=>/(?:^|\s)faq-([\w-]+)/.exec(r.block.css_class||``)?.[1]),{questions:v,isOpen:O,toggleQuestion:k,faqJsonLd:A}=y(r.block.faq,u.value);return g({script:[{type:`application/ld+json`,innerHTML:A.value}]}),(a,u)=>f(v).length?(p(),o(`section`,b,[l(`div`,x,[l(`div`,S,[r.block.title?(p(),o(`h2`,{key:0,class:`font-display text-3xl font-normal md:text-4xl [&_em]:italic [&_em]:text-gold`,innerHTML:r.block.title},null,8,C)):i(``,!0),r.block.text?(p(),o(`p`,w,t(r.block.text),1)):i(``,!0)]),l(`div`,T,[(p(!0),o(s,null,e(f(v),e=>(p(),o(`div`,{key:e.id},[l(`button`,{type:`button`,class:`flex w-full cursor-pointer items-center justify-between gap-4 py-5 text-left font-display text-lg font-normal`,"aria-expanded":f(O)(e.id),onClick:t=>f(k)(e.id)},[n(t(e.title)+` `,1),d(f(_),{size:17,weight:`light`,class:m([`shrink-0 text-gold transition-transform`,{"rotate-180":f(O)(e.id)}]),"aria-hidden":`true`},null,8,[`class`])],8,E),c(l(`div`,{class:`user-content pb-6 text-sm font-light leading-relaxed text-ink/70`,innerHTML:e.body},null,8,D),[[h,f(O)(e.id)]])]))),128))])])])):i(``,!0)}}),{__name:`CmsBlockFaq`});export{O 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.