1System.register(["react/jsx-runtime","@vp/ubik-fragment-react","@vp/ubik-context","@vp/swan","@vp/mcs-react-tools","./ContentfulDebugWrapper-1MiXZP70.js","react","@vp/banner-wrapper","./trackingContext-BrnkoIu2.js","./trackingUtils-2BuBiGlP.js","./trackingSchemas-0N-__QE1.js","@vp/tracking","./constants-CyaWClOw.js"],(function(W){"use strict";var i,v,C,d,y,x,k,r,S,M,h,T,E,_,w,A,P,K,H,N,j,B,l;return{setters:[function(e){i=e.jsx,v=e.jsxs},function(e){C=e.clientMount},function(e){d=e.useLogger,y=e.useUserContext,x=e.useSwanStyleKeys,k=e.useUserContextTracker},function(e){r=e.SWAN_STYLE_KEY_MAP,S=e.VisuallyHidden,M=e.H1,h=e.BoundedContent},function(e){T=e.MCS_REACT_TOOLS_SWAN_STYLES},function(e){E=e.i,_=e.C},function(e){w=e.default},function(e){A=e.BannerWrapper},function(e){P=e.u,K=e.T},function(e){H=e.t,N=e.c,j=e.r},function(e){B=e.B,l=e.a},null,null],execute:(function(){const e=n=>{const{bannerProps:t,imageLoadingStrategy:a,locale:s,pageZone:c,usesMap:o}=n,{sourcePagePath:m}=P(),g=d();w.useEffect(()=>{if(o&&n.mapMetadata){const{pageZone:b,placementVariantId:u,placementDefinitionId:f}=n.mapMetadata;H(b,u,f,"view",g,l)}},[]);function O(b,{destinationUrl:u,linkIdentifier:f,ctaPosition:Y,openInNewTab:p}){const D=$({destinationUrl:u??"",linkIdentifier:f,ctaPosition:Y,sourcePagePath:m,pageZone:c});if(!D)return;const Z=n?.ubikTracking?.clickTriggerId,L=N(D,g,B,u,p,void 0,o?n.mapMetadata:void 0,o?l:void 0,Z);L&&L(b)}return t&&i(A,{bannerProps:t,extraProps:{imageOverrideProps:{loading:a}},trackingHandler:O,locale:s})},$=({destinationUrl:n,linkIdentifier:t,ctaPosition:a,sourcePagePath:s,pageZone:c})=>{const o="Navigation Clicked",m=j(n),g=`${s};${m};${c};${t}`;return{eventName:o,properties:{category:"Home Page",label:`Content:${c}`,eventDetail:g,navigationDetail:a&&(typeof a=="number"&&a>0||typeof a=="string")?`${t}:${a}`:t},linkAttributes:{"data-section":`Content:${c}`,"data-position":a??0,"data-translation":t}}},R=n=>{const t=y();x([r.core,r.button,r.hidden,r.visible,r.utility,r.banner,...E(t)?T:[]]);const a=d();a.setContext({...n,name:"banner-fragment"}),a.info("Rendering Banner Fragment");const s=k();U(n,s);const c={merchandisingCampaign:n.merchandisingCampaign,experimentKey:n.experimentKey,variationKey:n.variationKey,decision:n.decision},o=typeof window<"u"?window.location.search:"";return i(_,{contentfulMetadata:n.contentfulMetadata,availability:c,search:o,explanation:n.explanation,showDebugTools:!n.usesMap,children:v(K,{canonicalUrl:"https://www.vistaprint.com",children:[n.h1Copy&&n.bannerZone==="Hero"&&i(S,{children:i(M,{children:n.h1Copy})}),i(h,{paddingX:"0",mt:n.nba?{xs:5,sm:5,md:5,lg:0,xl:0}:void 0,mb:n.bottomSpaceParam||"between-sections",style:n.nba?{overflow:"hidden",borderRadius:"var(--swan-sem-border-radius-strong)"}:{},children:i(e,{pageZone:n.bannerZone,mapMetadata:n.mapMetadata,bannerProps:n.bannerData,locale:n.locale,usesMap:n.usesMap,ubikTracking:n.ubikTracking})})]})})};function U(n,t){n.experimentKey&&n.variationKey&&t({type:"experiment",name:n.experimentKey,variation:n.variationKey}),n.decision&&t({type:"treatment",name:n.decision}),n.merchandisingCampaign&&t({type:"campaign",name:n.merchandisingCampaign})}const V=W("mount",async(n,t,a)=>C(i(R,{...t}),n,a))})}})); 2//# sourceMappingURL=fragment-homepage-fragments-banner-dX6KbKSo.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.