1import r from"./dist.UpWmTEgx.js";import{S as o,a}from"./dist.BT90cHP7.js";import{p as l}from"./dist.DKTgyc8l.js";import{b as n}from"./dist.Dde8I8dO.js";import{n as d}from"./dist.C9HKE5mr.js";import"./dist.Btq2GwAW.js";import"./dist.WjOueLbB.js";import"./dist.Ccbsi62A.js";import"./dist.B8_nURbH.js";import"./dist.DrF9kJ2r.js";import"./dist.DKG6Y7vp.js";import"./dist.D0jbFWrF.js";import"./dist.DMvSWryL.js";import"./dist.CG2sRT4b.js";import"./dist.Cpj98o6Y.js";const c={components:{ProductTile:r,Swiper:a,SwiperSlide:o},props:{handles:{type:Array,default:()=>[]},title:{type:String,default:""},titleAlignment:{type:String,default:"center"},blockId:{type:String,default:void 0},context:{type:Object,default:()=>{}},settings:{type:Object,default:()=>{}}},data(){return{loaded:!1,products:[],titleMutable:this.title}},async created(){if(this.handles.length){const s=await Promise.all(this.handles.map(t=>l.load({},{handle:t}).catch(e=>(window.console.warn(e),null))));this.loaded=!0,this.products=s}else this.loadRecommendations()},methods:{async loadRecommendations(){const s={blockId:this.blockId,context:this.context},{products:t,recTitle:e}=await n.load({},s);this.loaded=!0,this.titleMutable=e,this.products=t}}};var p=function(){var t=this,e=t._self._c;return t.loaded?e("div",{staticClass:"recommendations__wrapper"},[t.products.length>0?[t.titleMutable?e("h2",{staticClass:"recommendations__heading heading-lg",style:{"text-align":t.titleAlignment}},[t._v(" "+t._s(t.titleMutable)+" ")]):t._e(),e("swiper",{staticClass:"recommendations__slider",attrs:{settings:t.settings},scopedSlots:t._u([{key:"slides",fn:function(){return t._l(t.products,function(i){return e("swiper-slide",{key:i.title},[e("product-tile",{attrs:{product:i,"show-secondary-image":!1}})],1)})},proxy:!0},{key:"scrollbar",fn:function(){return[e("div",{staticClass:"recommendations__slider__scrollbar swiper-scrollbar"})]},proxy:!0}],null,!1,1234958050)})]:t._e()],2):e("div",[t._m(0)])},m=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"placeholder-grid"},[t("div",{staticClass:"product-tile product-tile--loading"}),t("div",{staticClass:"product-tile product-tile--loading"}),t("div",{staticClass:"product-tile product-tile--loading"}),t("div",{staticClass:"product-tile product-tile--loading"})])}],u=d(c,p,m,!1,null,null);const F=u.exports;export{F 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.