PageSourceSearch

https://www.article.com/assets/Collections.53d444e3.js

js article.com collected 2026-09-24 08:51:18 UTC 3,988 bytes, 2 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},o=(new e.Error).stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="0a31ed8c-351e-4c86-a736-af71ac8dc1a9",e._sentryDebugIdIdentifier="sentry-dbid-0a31ed8c-351e-4c86-a736-af71ac8dc1a9")}catch($){}import{a as e}from"./useProduct.bdc14900.js";import{P as o}from"./PreserveRatio.95a52bd2.js";import t from"./ProductCarousel.46034838.js";import{c7 as l,cY as c,dn as r,cl as i,c9 as s,ca as d,cs as n,cx as a,d1 as u,ct as p,cy as m,cf as f,ce as h,d0 as v}from"./index.061e774e.js";import"./EventAnalytics.7c2eca63.js";import"./BundleProduct.da5ee774.js";import"./ProductBadgeV2.8a0c29d4.js";import"./Product.35fc4e5d.js";import"./mediaUtils.018d7373.js";import"./AddToCartButton.7aa082a0.js";import"./useAddToCart.5a80e920.js";import"./DeviceUtils.44556013.js";import"./Swipe.0435a3f8.js";import"./ContentfulHeading.326f5d3e.js";import"./slugify.a1a5eaaf.js";const g={name:"Collections",components:{ProductCarousel:t,ResponsiveImage:c,PreserveRatio:o},props:{mini:{type:Boolean,default:!1},product:{type:Object,default:()=>({})}},emits:["carouselClicked"],setup(){const{currentCountry:e}=r(),{mounted:o}=i();return{currentCountry:e,mounted:o}},computed:{collectionProducts(){var o,t;return(null==(t=null==(o=this.product)?void 0:o.collection)?void 0:t.productThumbnail)?this.product.collection.productThumbnail.map((o=>{const t=e(o,this.currentCountry);return{...o,price:t.finalFormatted,productPrice:t.price,originalPrice:t.priceFormatted,salePrice:t.salePrice,imageUrl:`${o.imageUrl}?fit=max&w={width}`}})):[]},collectionTitle(){return this.product&&this.product.collection?`${this.product.collection.name} collection`:""}},methods:{onCarouselClicked(e){this.$emit("carouselClicked",{id:e,carousel:"collections"})}}},y={key:0,class:"collections"},C={class:"light title"},b={class:"product-collection-section desktop"},P={class:"flex-grid"},j=["href"],k=["href"],T={key:1,class:"collected-products"},w={class:"subtitle"},x=["href"];var I=l(g,[["render",function(e,o,t,l,c,r){var i,g,I,$,_,D;const R=s("ResponsiveImage"),U=s("PreserveRatio"),B=s("ProductCarousel");return d(),n("div",null,[t.mini?(d(),n("div",y,[a("h2",C,u(null==(i=t.product.collection)?void 0:i.name)+" collection",1),a("div",b,[a("div",P,[(d(!0),n(p,null,m(null==(g=t.product.collection)?void 0:g.productThumbnail.slice(0,3),(o=>(d(),n("a",{key:o.hashKey,href:e.$router.resolve({name:"product",params:{id:o.hashKey,slug:o.slug}}).href,class:"flex-col-4-xs"},[f(U,{width:2890,height:1500},{default:h((()=>[f(R,{lazy:!1,url:`${o.imageUrl}?fit=max&w={width}`,widths:[130,245,310,190],breakpoints:[320,425,768,970]},null,8,["url"])])),_:2},1024)],8,j)))),128))]),a("p",null,[v(" There's more! The "+u(null==(I=t.product.collection)?void 0:I.name)+" collection consists of "+u(null==($=t.product.collection)?void 0:$.productCount)+" different pieces. ",1),a("a",{href:e.$router.resolve({name:"collection",params:{id:null==(_=t.product.collection)?void 0:_.id,slug:null==(D=t.product.collection)?void 0:D.slug}}).href},"Check out the full collection",8,k),o[0]||(o[0]=v(". ",-1))])])])):(d(),n("div",T,[f(B,{class:"collected-products-carousel",title:r.collectionTitle,products:r.collectionProducts,"to-send-event":!0,onCarouselClicked:r.onCarouselClicked},{subtitle:h((()=>{var l,c,r,i;return[a("h2",w,[v(" There's more! The "+u(null==(l=t.product.collection)?void 0:l.name)+" collection consists of "+u(null==(c=t.product.collection)?void 0:c.productCount)+" different pieces. ",1),a("a",{class:"link",href:e.$router.resolve({name:"collection",params:{id:null==(r=t.product.collection)?void 0:r.id,slug:null==(i=t.product.collection)?void 0:i.slug}}).href},"Check out the full collection",8,x),o[1]||(o[1]=v(". ",-1))])]})),_:1},8,["title","products","onCarouselClicked"])]))])}]]);export{I as default};
2//# sourceMappingURL=Collections.53d444e3.js.map

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.