1import{D as e,G as t,M as n,Ot as r,b as i,ot as a,pt as o,v as s}from"./uRKtOFy3.js";import{r as c}from"./D197E4kr.js";import{o as l}from"./BDx_V35Q.js";import{t as u}from"./CWVj3mkt.js";import{i as d}from"./D-qWwJjM.js";import{t as f}from"./y3woChN1.js";n(),o();var p=Object.assign(e({__name:`ProductTeaser`,props:{data:{}},async setup(e){let n,o,p=e,{source:m,criteria:h,remoteIds:g,itemsLimit:_,isSlider:v,detailLink:y,detailLinkLabel:b,useProductDatesAsSubtitle:x}=p.data,S=l(),C=(h?.length??0)>0||(g?.length??0)>0,{data:w}=([n,o]=a(()=>u(`product-teaser-${m}-${JSON.stringify(h??[])}-${(g??[]).join(`,`)}-${_}-${S.lang}`,()=>C?c(`/nuxt-api/product-teaser`,{method:`POST`,body:{lang:S.lang,source:m,criteria:h??[],remoteIds:g??[],itemsLimit:_||4}}):Promise.resolve(null))),n=await n,o(),n),T=s(()=>w.value?.items??[]),E=s(()=>p.data.title||``),D=s(()=>x&&T.value[0]?d(T.value[0],`promotionLabelPublication`):null),O=s(()=>D.value||p.data.subtitle);return(e,n)=>{let a=f;return t(),i(a,{items:r(T),title:r(E),subtitle:r(O),"detail-link":r(y),"detail-link-label":r(b),"is-slider":r(v)},null,8,[`items`,`title`,`subtitle`,`detail-link`,`detail-link-label`,`is-slider`])}}}),{__name:`AreasProductTeaser`});export{p 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.