1import{a as e}from"./ANLCaoUj.js";import{D as t,G as n,It as r,M as i,Ot as a,S as o,T as s,b as c,ot as l,p as u,pt as d,tn as f,v as p,w as m,x as h,y as g}from"./uRKtOFy3.js";import{p as _}from"./DASy60cI.js";import{r as v}from"./D197E4kr.js";import{i as y}from"./BS0FC60i.js";import{o as b}from"./BDx_V35Q.js";import{t as x}from"./CWVj3mkt.js";import{t as S}from"./DWuY-liN.js";import{t as C}from"./Cpm8T6oD2.js";import{t as w}from"./BVhqJSc9.js";i(),d(),r();var T={class:`container`},E={class:`h2 mb-4`},D={class:`container`},O={class:`h2 mb-4`},k=t({__name:`products`,async setup(t){let r,i,{$t:d}=e(),k=_(),A=b();S(!1,!0),y({robots:`noindex, nofollow`,titleTemplate:()=>`${F.value} ${A.titleSuffix}`});let j=p(()=>String(k.query.prd_query||k.query.q)),{data:M,pending:N}=([r,i]=l(()=>x(k.fullPath,()=>v(`/nuxt-api/search`,{method:`POST`,body:{mode:`products`,lang:A.lang,q:j.value,type:k.query.type===`wine`?`wine`:`product`,hitsPerPage:48,appCategory:A.appCategory}}),`$SLPUs78a2i`)),r=await r,i(),r),P=p(()=>M.value?.items??[]),F=p(()=>{let e=`${d(`search.heading.category.products${P.value.length===1?`.singular`:``}`)}`;return j.value&&(e+=` ${d(`search.for`)} â${j.value}â`),e}),I=p(()=>!Object.keys(k.query).length||!N.value&&P.value.length===0);return(e,t)=>{let r=C,i=w;return n(),o(`div`,null,[a(I)?(n(),o(u,{key:0},[s(r,{"auto-generate":!0}),g(`div`,T,[g(`h1`,E,f(a(d)(`search.heading.no-results`)),1),m(` `+f(a(d)(`search.no-results`)),1)])],64)):(n(),o(u,{key:1},[a(j)?(n(),c(r,{key:0,"back-link":`/${a(k).params.locale}/search?q=${a(j)}`},null,8,[`back-link`])):h(``,!0),g(`div`,D,[g(`h1`,O,f(a(F)),1),s(i,{items:a(P)},null,8,[`items`])])],64))])}}});export{k 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.