1import{_ as t}from"./BjHFEXQE.js";import{s as e}from"./C7d_RyQm.js";import{u as s}from"./CYOAu7za.js";import{j as r,m as i}from"./B7ccFUPv.js";import{aE as o,aK as a}from"./aLQnx8Zs.js";import{w as p,c as l,r as m,q as u,x as n,P as c,u as j}from"./DWaT-nfm.js";import"./BrI5xG7B.js";import"./wDwXB9H6.js";import"./BtIwJyXL.js";import"./BPKidK6_.js";import"./CAfoXNGp.js";import"./CW7FFFHJ.js";import"./ROFPpMqi.js";import"./Bb-PJ1yP.js";import"./CupDLjz9.js";import"./1AlgqXAd.js";import"./CDqQaYiP.js";import"./BVTd7Q6p.js";import"./C3Uec8EK.js";import"./BPmsOgbk.js";import"./CNAHBxWn.js";import"./SB_aEqEL.js";import"./CF9103r0.js";import"./CkiEBX65.js";import"./BOm3Z_Tf.js";import"./BQTGlgzh.js";import"./DbwAV2AD.js";import"./DbQKa3zV.js";import"./DOJK5LbE.js";const d={__name:"ListProducts",props:{type:{type:String,default:""},page:{type:Number,default:1},limit:{type:Number,default:10},title:{type:String,default:""},listLink:{type:[Object,String],default:()=>""},showCategories:{type:Boolean,default:!1}},setup(d){const{t:y}=o(),{categoriesList:g}=e(r()),f=d,w=l(()=>{if(f.title)return f.title;switch(f.type){case"ordered":return y("СкоÑо в пÑодажÑ");case"promotion":return y("ÐкÑÑÐ¹Ð½Ñ ÑоваÑи");case"new":return y("Ðовинки");case"outlet":return y("РозпÑодаж");default:return""}}),h=m(0);p(g,t=>{t?.length&&0===h.value&&(h.value=t[0]?.code)},{immediate:!0});const v=t=>{h.value=t},b=l(()=>0!==h.value?{taxon:h.value}:{}),x=s(),k=l(()=>`product-slider-${f.type}-category-${h.value}`),{data:C}=a(k,async()=>{const t=await x.fetchProductsByTag(b.value,f.type);return t?.["hydra:member"]||[]},{watch:[h]}),L=l(()=>C.value?.map(t=>new i(t))||[]),B=l(()=>f.showCategories?"!-translate-y-[110px]":"");return(e,s)=>{const r=t;return n(),u("div",null,[c(r,{"select-category-code":v,title:j(w),"product-list":j(L),"list-link":d.listLink,"show-categories":d.showCategories,"navigation-class":j(B),"is-image-path":"","is-watched-product":"","is-outlet-categories":"outlet"===d.type,"list-type":d.type},null,8,["title","product-list","list-link","show-categories","navigation-class","is-outlet-categories","list-type"])])}}};export{d 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.