1import{q as w,r as x,n as k}from"./BXpr5Bs0.js";import{_ as v}from"./CtTPxd-E.js";import{p as T}from"./DRVmTXZX.js";import{z as b,a as N,w as V,bs as S,j as i,k as a,m as c,l as $,t as u,x as n,f as l,O as q,v as d,F as B,y as j}from"./_TN_iw76.js";import"./BKPbwrKY.js";import"./D-wsvYvM.js";import"./DooT6sqi.js";import"./CGhpPfPL.js";import"./BFRRyzs1.js";import"./BXmFHSyk.js";import"./ZhWAdK_X.js";import"./CFY7WyfB.js";import"./jMLvFB17.js";import"./BOODdn5J.js";import"./BkyJ_cI_.js";import"./BcwYxDnT.js";import"./BTILk0PQ.js";import"./BJjVN4kF.js";import"./D9kiU-_t.js";import"./CyR9WWxQ.js";import"./GtjqSw-1.js";import"./B5YFRgN5.js";import"./Bai7GCYS.js";import"./C-JlYRR_.js";import"./CaGYCMds.js";import"./BQMcNvh6.js";import"./Cc-8QxYe.js";import"./D3nqZ9LW.js";import"./BhmuO0PS.js";import"./CFyE3y5C.js";import"./BROUw0fv.js";import"./CWb3iWSh.js";import"./r6NkN6G6.js";import"./SE34auJp.js";import"./TN4wxhGq.js";import"./DcX6sCry.js";import"./CJ_IVJo1.js";import"./Cds9mDpB.js";import"./BnCGYE6B.js";import"./fL15k2ph.js";import"./B1kAe7go.js";import"./BGxgfn6_.js";import"./BkRgjltG.js";import"./DSFG7oDP.js";import"./91fBOnFP.js";import"./DWPDfvex.js";import"./DuCIFoNU.js";import"./CEangrfx.js";import"./BnlyUCVD.js";const A={class:"text-center mb-5"},L={key:0,class:"d-flex justify-content-center justify-content-lg-end pt-3"},Bt=b({__name:"selection",props:{selectionType:{type:String,required:!0},selectionTitle:{type:String,default:""},pagelink:{type:String,default:""},columnCount:{type:Number,required:!0},productCount:{type:Number,required:!0}},async setup(o){let r,p;const t=o,y=w(),{locale:m}=N(),{data:e}=([r,p]=V(()=>S(`${t.selectionTitle}-${t.selectionType}-${m.value}`,()=>t.selectionType==="myviews"?y.getMyViews(t.productCount,""):T(t.selectionType,t.productCount).then(s=>s.products),{watch:[m]})),r=await r,p(),r),_=j(()=>e.value&&e.value?.length>0&&t.pagelink!="");return(s,P)=>{const f=x,g=k,C=v;return i(e)&&i(e)?.length>0?(a(),c(B,{key:0},[$("h2",A,u(o.selectionTitle),1),n(g,{items:i(e),options:{sliderType:"slide",visibleCount:o.columnCount}},{default:l(h=>[n(f,{product:h.item},null,8,["product"])]),_:1},8,["items","options"]),i(_)?(a(),c("div",L,[n(C,{to:o.pagelink,class:"btn btn-secondary px-5"},{default:l(()=>[q(u(s.$t("v1.views.frontpage.seeAllProducts")),1)]),_:1},8,["to"])])):d("",!0)],64)):d("",!0)}}});export{Bt 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.