1import{K as g,a7 as a,aa as I,at as _,a3 as n,M as o,N as d,Q as f,ay as y,a6 as c,T as l,a4 as G,aX as B,R as v,a8 as u}from"./entry.nP9U-F0k.js";import{c as S}from"./componentBase.mdQ2P-1U.js";const D={name:"AllProducts",components:{Grid:a(()=>u(()=>import("./grid.ZLD41Dgy.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),ItemBackButton:a(()=>u(()=>import("./item-back-button.aB8iAJJi.js"),__vite__mapDeps([9,1,2,10,11]),import.meta.url))},mixins:[S],setup(){},data(){return{isFetching:!0}},computed:{...I({__:"config/__",themeConfig:"configuration/theme/theme",productGridByIdOrSlug:"content/productGrids/byIdOrSlug",productIdsById:"content/productGrids/productIdsById",hasProductIdsById:"content/productGrids/hasProductIdsById",productByIDs:"product/byIDs",productById:"product/byId",customerSegments:"user/index/customerSegments"}),themeFlavor(){return this.themeConfig.grid?.["content-grid"]?.flavor??"inline"},productGridId(){return this.productGrid?.id},productGrid(){return this.productGridByIdOrSlug(this.$route.params?.slugOrId)},itemIDs(){return this.productIdsById(this.productGridId)||[]},gridItems(){return this.productByIDs(this.itemIDs)},isLoading(){return!this.hasProductIdsById(this.productGridId)},allGridItems(){return this.productGrid?this.gridItems.filter(t=>this.nodeForTargetedUser(t)).map(t=>{let i=[];return t.coverImages&&t.coverImages.length>0?i=t.coverImages:t.images&&t.images.length>0&&(i=t.images),{id:t.id,contentType:"product",locale:t.locale||null,title:t.title||null,subtitle:t.subtitle||null,coverImages:i,excerpt:t.shortDescription||null,slug:t.seoSlug||null}}):[]},gridProps(){return this.productGrid?{items:this.allGridItems,layout:"MediumGrid",variant:"product",flavour:this.themeFlavor,rowCount:this.allGridItems.length,lazyRenderingEnabled:!0,showOverlay:this.productGrid.showFromPrice,isLoading:this.isFetching,imageAspectRatio:"4x3",showFlags:this.productGrid.showFlags||!1}:null}},async created(){await this.fetchData()},mounted(){this.productGridId&&this.$nextTick(()=>{this.$digitalDataLayer.pushPage({},!1,"",document.referrer,this.productGridId)})},methods:{nodeForTargetedUser(e){const r=e?.cSegments?e?.cSegments:[];return _(r,this.customerSegments,this.$store.getters["user/index/userCallWasCalled"])},async fetchData(){const e=Math.floor(Date.now()/1e3),r=this.productGrid;r&&(this.isFetching=!0,this.$store.commit("content/productGrids/setRecentFetch",{id:this.productGridId,time:e}),await this.$store.dispatch("content/productGrids/loadDynamicGridItems",{id:this.productGridId,time:e,settings:{storyCategories:[...new Set(r.storyCategories.map(t=>t.id))],regions:[...new Set(r.regions.map(t=>t.id))],limit:1e3},withFilter:!1}),this.isFetching=!1)}}},F={class:"container all-products page-base-spacing"},P={class:"all-products__header d-flex justify-content-left align-items-center"},w={key:0,class:"all-products__header__title"},b={key:0};function k(e,r,t,i,m,s){const h=n("ItemBackButton"),p=n("Grid");return o(),d("div",F,[f("div",P,[y(h,{class:"item-back-button",small:e.isMobileLayout},null,8,["small"]),s.productGrid&&s.productGrid.title?(o(),d("div",w,c(e.__(s.productGrid.title)),1)):l("",!0)]),s.gridItems.length===0&&!m.isFetching?(o(),d("div",b,c(e.__("Sorry, we couldn't find any items that matches your criteria.")),1)):s.productGrid?(o(),G(p,B(v({key:1},s.gridProps)),null,16)):l("",!0)])}const x=g(D,[["render",k],["__scopeId","data-v-811b3f30"]]);export{x as default}; 2function __vite__mapDeps(indexes) { 3 if (!__vite__mapDeps.viteFileDeps) { 4 __vite__mapDeps.viteFileDeps = ["./grid.ZLD41Dgy.js","./entry.nP9U-F0k.js","./entry.O9KOVcsn.css","./outdoor-tracking.A6ccQLYj.js","./link-btn.k0qM79oZ.js","./generic-link.9desWZgJ.js","./index.tsdXPcWo.js","./link-btn.jN2ZQscP.css","./grid.gNV_TnlI.css","./item-back-button.aB8iAJJi.js","./navigation-button.1tQKI9mv.js","./navigation-button.x2ayvC3n.css"] 5 } 6 return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) 7}
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.