1System.register(["react/jsx-runtime","@vp/swan","@vp/ubik-context","@vp/mcs-react-tools","./ContentfulDebugWrapper-1MiXZP70.js","@vp/campaign-callouts","react","./categoryRowTrackOnClick-C5khYnab.js","./trackingConfig-sYxD1j1E.js","./main_npm-DBthRmQo.js","@vp/price-platform","./trackingContext-BrnkoIu2.js"],(function(D){"use strict";var i,d,c,C,u,m,f,T,v,S,x,_,A,h,w,b,K,k;return{setters:[function(t){i=t.jsx},function(t){d=t.BoundedContent,c=t.SWAN_STYLE_KEY_MAP,C=t.ScreenClassProvider},function(t){u=t.useLogger,m=t.useStyles,f=t.useUserContext,T=t.useSwanStyleKeys,v=t.useUserContextTracker},function(t){S=t.MCS_REACT_TOOLS_SWAN_STYLES},function(t){x=t.i,_=t.C},function(t){A=t.CampaignProvider},null,function(t){h=t.s,w=t.C,b=t.c,K=t.a},null,null,null,function(t){k=t.T}],execute:(function(){const t=/(\/images\/)/,y="c_fill,ar_4:5,g_auto",R=e=>!e||e.includes(y)?e:e.includes("c_scale")?e.replace(/\bc_scale\b/,y):e.replace(t,`$1${y},`),L=e=>e.map(n=>{const a=n.template?.tileDetails,r=a?.image?.cloudinaryImage??[],o=r[0],l={src:R(o?.src??""),altTextOverride:a?.image?.altTextOverride??""};return r.length>1&&(l.srcSet=r.map(s=>`${R(s.src)} ${s.breakpoint}w`).join(", ")),{categoryId:n.template?.category?.selectedCategory?.mpvId??n.contentful_id??"",categoryTileTitle:a?.header?.value??"",categoryTileImage:l,categoryTileUrl:a?.link?.href??""}}),E=({data:e,locale:n,tenant:a})=>{const r=u();m(h);const{pageData:o}=e,l=o.categories,g=L(l),s=b(r,g);return i(d,{mb:"between-sections",children:i(w,{categoryDestinationLevel:K.UNIVERSAL,tiles:g,trackOnClick:s,locale:n??e.locale,tenant:a??"",title:o.productCategoriesTitle})})},O=D("H",e=>{const n=f();T([c.core,c.grid,c.adaptiveCarousel,c.standardTile,c.baseTile,c.utility,...x(n)?S:[]]);const a=u(),r=v();a.setContext({...e,name:"category-row-fragment"}),a.info("Rendering Category Row Fragment");const o={pageData:e.pageData,merchandisingCampaign:e.merchandisingCampaign,carouselA11yText:e.carouselA11yText,locale:e.locale,tenant:e.tenant,debugData:{experimentKey:e.experimentKey,variationKey:e.variationKey,decision:e.decision,contentfulMetadata:e.contentfulMetadata}},l=typeof window<"u"?window.location.search:"";I(e,r);const g={merchandisingCampaign:e.merchandisingCampaign,experimentKey:e.experimentKey,variationKey:e.variationKey,decision:e.decision},s=Array.isArray(e.pageData?.categories)&&e.pageData.categories.length>0;return i(_,{contentfulMetadata:e.contentfulMetadata,availability:g,search:l,explanation:e.explanation,children:i(k,{canonicalUrl:"https://www.vistaprint.com/",children:i(A,{tenant:e.tenant,locale:e.locale,children:i(C,{children:s&&i(E,{data:o,imageLoadingStrategy:"eager",locale:e.locale,tenant:e.tenant})})})})})});function I(e,n){e.experimentKey&&e.variationKey&&n({type:"experiment",name:e.experimentKey,variation:e.variationKey}),e.decision&&n({type:"treatment",name:e.decision}),e.merchandisingCampaign&&n({type:"campaign",name:e.merchandisingCampaign})}})}})); 2//# sourceMappingURL=homepage-categories-DJMrGt6c.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.