PageSourceSearch

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

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

1import{H as e,Ht as t,I as n,N as r,_ as i,b as a,d as o,et as s,f as c,l,p as u,r as d,u as f,ut as p,v as m,vt as h,z as g}from"./CgDnuvNn.js";import{t as _}from"./C8FudJIn.js";import{t as v}from"./BF54hvle.js";import{t as y}from"./B65RteAa.js";import{t as b}from"./7z4HVtDv.js";import{t as x}from"./BDNMzG2s2.js";import{t as S}from"./DYYGyL54.js";import{t as C}from"./CffetNxK.js";var w={class:`flex flex-wrap items-end justify-between gap-4 border-l-2 border-gold pl-4`},T={key:0,class:`text-[11px] uppercase tracking-[0.25em] text-gold`},E=[`innerHTML`],D={key:0,class:`mt-10`},O={key:0,class:`category-rail mt-10 flex gap-5 overflow-x-auto pb-4 [scrollbar-width:none]`},k=[`src`,`alt`],A={class:`absolute inset-x-0 bottom-0 p-5 text-center text-white`},j={class:`font-display text-xl font-normal`},M={class:`mt-1 text-[10px] uppercase tracking-[0.18em] text-white/70`},N=Object.assign(x(a({__name:`category`,props:{block:{}},setup(a){let{localePath:x}=b(),{apiUrl:N}=y(),P=p(null),F=p(null),I=p(!0),L=null,R=null,z=async()=>{if(!a.block.category_id){F.value=null,I.value=!1;return}let e=new AbortController;R=e;try{F.value=await _(N(`/api/category/${a.block.category_id}`),{signal:e.signal})}catch(t){e.signal.aborted||(console.error(`Unable to load category block`,t),F.value=null)}finally{e.signal.aborted||(I.value=!1)}},B=l(()=>(F.value?.category.children||[]).filter(e=>!!(e?.name&&e.include_in_menu!==0))),V=l(()=>{let e=a.block.category_path;return e?x(`/${e.replace(/^\//,``)}.html`):null}),H=e=>x(e.canonical_path||`/${e.url_key}.html`),U=e=>{let t=e;return t.optimized_images?.[0]?.large||t.optimized_images?.[0]?.thumbnail||t.image||``};return n(()=>{if(!(`IntersectionObserver`in window)){z();return}L=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(L?.disconnect(),L=null,z())},{rootMargin:`300px`}),P.value&&L.observe(P.value)}),r(()=>{L?.disconnect(),R?.abort()}),(n,r)=>{let l=v,p=S,_=C;return g(),u(`section`,{ref_key:`sectionRef`,ref:P,class:`bg-ivory py-16 md:py-24`},[m(_,{class:`px-5 md:px-6`},{default:s(()=>[f(`div`,w,[f(`div`,null,[a.block.subtitle?(g(),u(`p`,T,t(a.block.subtitle),1)):c(``,!0),f(`h2`,{class:`font-display text-3xl font-normal md:text-4xl`,innerHTML:a.block.title},null,8,E)]),h(V)?(g(),o(l,{key:0,to:h(V),class:`hidden text-[11px] uppercase tracking-[0.18em] !text-ink/45 transition-colors hover:!text-gold md:block`},{default:s(()=>[i(t(n.$t(`catalog.explore`))+` → `,1)]),_:1},8,[`to`])):c(``,!0)]),h(I)?(g(),u(`div`,D,[m(p,{count:4})])):c(``,!0)]),_:1}),!h(I)&&h(B).length?(g(),u(`div`,O,[(g(!0),u(d,null,e(h(B),e=>(g(),o(l,{key:e.uid,to:H(e),class:`group relative block aspect-[3/4] w-60 shrink-0 overflow-hidden`},{default:s(()=>[f(`img`,{src:U(e),alt:e.name||``,class:`h-full w-full object-cover transition duration-700 group-hover:scale-105`,loading:`lazy`},null,8,k),r[0]||=f(`div`,{class:`absolute inset-0 bg-gradient-to-t from-ink/80 via-transparent to-transparent`},null,-1),f(`div`,A,[f(`h3`,j,t(e.name),1),f(`p`,M,t(e.product_count)+` `+t(n.$t(`catalog.products`)),1)])]),_:2},1032,[`to`]))),128))])):c(``,!0)],512)}}}),[[`__scopeId`,`data-v-74c92588`]]),{__name:`CmsBlockCategory`});export{N 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.