1import{_ as N}from"./CZh0O6Ny.js";import{_ as G}from"./BuZ2LM9s.js";import{d as I,e as n,w as V,c as o,h as g,o as t,z as m,a as u,i as p,X as f,W as C,b as e,M as x,F as z,x as B,_ as D,aC as F}from"./CYk2M48Q.js";import{_ as H}from"./BYOnEns-.js";import{u as U}from"./BDLbCtg6.js";import{u as $}from"./Bpwus1dm.js";import"./DZIRYOYE.js";import"./D68xoaa5.js";const j={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},A={key:1,class:"text-center py-16"},E={key:1,class:"text-center py-16"},M=I({__name:"BlockProductGrid",props:{block:{},index:{},headingLevel:{default:2}},async setup(s){let i,k;const l=s,_=n(()=>U(l.index??0)),v=n(()=>l.block.title?l.headingLevel+1:l.headingLevel),{getProducts:L}=$(),P={xs:"grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6",sm:"grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",md:"grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",lg:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",xl:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3"},r=n(()=>l.block.cardSize??"lg"),b=n(()=>P[r.value]),{data:a}=([i,k]=V(()=>L({displayCount:l.block.displayCount||100})),i=await i,k(),i);return(O,d)=>{const S=N,h=G,y=D,w=H;return s.headingLevel===1&&s.block.title?(t(),o("section",{key:0,class:x([e(_),"block-section"])},[m("div",j,[u(S,{level:s.headingLevel,class:"heading-page text-highlighted text-center mb-4"},{default:p(()=>[f(C(s.block.title),1)]),_:1},8,["level"]),e(a)?.length?(t(),o("div",{key:0,class:x(["grid gap-6 lg:gap-8",e(b)])},[(t(!0),o(z,null,B(e(a),c=>(t(),g(h,{key:c.documentId,product:c,size:e(r),"heading-level":e(v)},null,8,["product","size","heading-level"]))),128))],2)):(t(),o("div",A,[u(y,{name:"i-lucide-package-open",class:"size-16 text-muted mx-auto mb-4"}),d[0]||(d[0]=m("p",{class:"text-body text-muted"},"No products available.",-1))]))])],2)):(t(),g(w,{key:1,ui:{root:e(_)}},F({default:p(()=>[e(a)?.length?(t(),o("div",{key:0,class:x(["grid gap-6 lg:gap-8",e(b)])},[(t(!0),o(z,null,B(e(a),c=>(t(),g(h,{key:c.documentId,product:c,size:e(r),"heading-level":e(v)},null,8,["product","size","heading-level"]))),128))],2)):(t(),o("div",E,[u(y,{name:"i-lucide-package-open",class:"size-16 text-muted mx-auto mb-4"}),d[1]||(d[1]=m("p",{class:"text-body text-muted"},"No products available.",-1))]))]),_:2},[s.block.title?{name:"title",fn:p(()=>[f(C(s.block.title),1)]),key:"0"}:void 0]),1032,["ui"]))}}}),Y=Object.assign(M,{__name:"BlockProductGrid"});export{Y 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.