PageSourceSearch

https://www.vistaprint.nl/assets/ubik/web/@vp/fragment-bookends-v2…/systemjs/fragment-bookends-v2-B4AnX2ep.js

js vistaprint.nl collected 2026-09-25 18:39:36 UTC 197,559 bytes, 92 lines download raw bytes

1System.register(["react/jsx-runtime","react","react-dom/client","@vp/swan","@vp/search-bar","@vp/ubik-context","@vp/ubik-fragment-react","@vp/ab-reader"],(function(_a,K){"use strict";var s,y,U,I,T,ie,oe,N,W,A,Yn,Ge,jt,Vt,Gt,Ht,He,qn,P,se,M,te,lt,Jn,dt,ut,pt,gt,Xn,mt,x,ft,_,Z,R,F,zt,Zn,Qn,X,er,pe,tr,nr,z,Kt,rr,or,ar,ir,sr,ke,cr,Wt,ht,lr,yt,dr,ur,Yt,pr,gr,mr,fr,hr,yr,qt,Jt,Xt,Zt,Qt,en,tn,vr,br,Cr,Sr,wr,kr,vt,nn,Er,Ir,Tr,bt,rn,on,Pr,Ar,Lr,an,sn,cn,Mr;return{setters:[function(f){s=f.jsx,y=f.jsxs,U=f.Fragment},function(f){I=f.useState,T=f.useEffect,ie=f.createContext,oe=f.useContext,N=f.useMemo,W=f.useRef,A=f.useCallback,Yn=f.forwardRef,Ge=f.default,jt=f.Component,Vt=f.createElement,Gt=f.Fragment,Ht=f.useLayoutEffect,He=f.memo},function(f){qn=f.hydrateRoot},function(f){P=f.FlexBox,se=f.IconButton,M=f.Icon,te=f.Box,lt=f.SwanI18nProvider,Jn=f.SearchInput,dt=f.ModalDialog,ut=f.ModalDialogContent,pt=f.ModalDialogNav,gt=f.ModalDialogCloseButton,Xn=f.ModalDialogHeader,mt=f.FluidImage,x=f.Typography,ft=f.ModalDialogBody,_=f.Link,Z=f.Ul,R=f.Li,F=f.Button,zt=f.Column,Zn=f.GridContainer,Qn=f.Row,X=f.Visible,er=f.H3,pe=f.Divider,tr=f.Accordion,nr=f.BasicCollapsible,z=f.getTokenCssVar,Kt=f.Span,rr=f.ToggleSwitch,or=f.ToggleSwitchOnLabel,ar=f.ToggleSwitchOffLabel,ir=f.BulletListIcon,sr=f.BulletListContent,ke=f.useScreenClass,cr=f.BulletList,Wt=f.ModalDialogTitle,ht=f.ScreenClassProvider,lr=f.Count,yt=f.VisuallyHidden,dr=f.LinkList,ur=f.ListItem,Yt=f.Callout,pr=f.MANIFEST_ICONS,gr=f.H2,mr=f.Popover,fr=f.PopoverLauncher,hr=f.PopoverContent,yr=f.useSwanPopover,qt=f.StandardTile,Jt=f.StandardTileOverlay,Xt=f.StandardTileImage,Zt=f.BasicResponsiveImage,Qt=f.StandardTileContents,en=f.StandardTileName,tn=f.StandardTileDescription,vr=f.Collapsible,br=f.CollapsibleSummary,Cr=f.CollapsibleSummaryButton,Sr=f.CollapsibleContent,wr=f.ModalDialogFooter,kr=f.ModalDialogButtons,vt=f.BoundedContent,nn=f.ErrorBoundary,Er=f.AdaptiveCarousel,Ir=f.AdaptiveCarouselSlide},function(f){Tr=f.SearchBar},function(f){bt=f.useIdentity,rn=f.useTenantMappings,on=f.useUserContext,Pr=f.useLogger,Ar=f.IdentityProvider},function(f){Lr=f.createRootProvider},function(f){an=f.initialize,sn=f.whenAvailable,cn=f.isFeatureEnabled,Mr=f.fireImpression}],execute:(function(){var f=(e=>(e.DEBUG="debug",e.INFO="info",e.WARNING="warn",e.ERROR="error",e))(f||{});const Oa="DOM_0020",Na="https://log-forwarder.product-page-layouts.vpsvc.com/",Ra="fragment-bookends-v2",Da="VPD-0010";var Ba=Object.defineProperty,Fa=(e,t,n)=>t in e?Ba(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e,t,n)=>Fa(e,typeof t!="symbol"?t+"":t,n);function $a(){const e=navigator.userAgent,t="userAgentData"in navigator?navigator.userAgentData:void 0,n=Ua(e,t),r=ja(e,t);return{browser:n,device:Va(e),engine:Ga(e),os:r}}function Ua(e,t){if(t?.brands?.length){const r=t.brands.find(a=>!a.brand.includes("Not")&&!a.brand.includes("Chromium"));if(r)return{name:r.brand,version:r.version};const o=t.brands.find(a=>a.brand==="Chromium");if(o)return{name:o.brand,version:o.version}}const n=[["Edge",/Edg(?:e|A|iOS)?\/(\S+)/],["Opera",/(?:OPR|Opera)\/(\S+)/],["Samsung Internet",/SamsungBrowser\/(\S+)/],["Firefox",/(?:FxiOS|Firefox)\/(\S+)/],["Chrome",/(?:CriOS|Chrome)\/(\S+)/],["Safari",/Version\/(\S+).*Safari/]];for(const[r,o]of n){const a=e.match(o);if(a)return{name:r,version:a[1]??""}}return{name:"",version:""}}function ja(e,t){if(t?.platform){const o={Windows:/Windows NT ([\d.]+)/,macOS:/Mac OS X ([\d_.]+)/,Android:/Android ([\d.]+)/,"Chrome OS":/CrOS \S+ ([\d.]+)/}[t.platform],a=o?e.match(o)?.[1]?.replace(/_/g,".")??"":"";return{name:t.platform,version:a}}const n=[["Windows",/Windows NT ([\d.]+)/],["macOS",/Mac OS X ([\d_.]+)/],["iOS",/(?:iPhone|iPad|iPod).*? OS ([\d_]+)/],["Android",/Android ([\d.]+)/],["Chrome OS",/CrOS \S+ ([\d.]+)/],["Linux",/Linux/]];for(const[r,o]of n){const a=e.match(o);if(a)return{name:r,version:(a[1]??"").replace(/_/g,".")}}return{name:"",version:""}}function Va(e){return/iPad/.test(e)?{model:"iPad",type:"tablet",vendor:"Apple"}:/iPhone/.test(e)?{model:"iPhone",type:"mobile",vendor:"Apple"}:/iPod/.test(e)?{model:"iPod",type:"mobile",vendor:"Apple"}:/Android/.test(e)&&/Mobile/.test(e)?{model:"",type:"mobile",vendor:""}:/Android/.test(e)?{model:"",type:"tablet",vendor:""}:{model:"",type:"",vendor:""}}function Ga(e){const t=[["Blink",/Chrome\/([\d.]+)/],["Gecko",/rv:([\d.]+)/],["WebKit",/AppleWeb
1Kit\/([\d.]+)/]];for(const[n,r]of t){const o=e.match(r);if(o)return{name:n,version:o[1]??""}}return{name:"",version:""}}class Ha{constructor(t,n=Oa){Ee(this,"_environment"),Ee(this,"_userAgent"),Ee(this,"_url"),Ee(this,"_domain"),Ee(this,"_service"),this._environment=$a(),this._userAgent=window.navigator.userAgent,this._url=window.location.href,this._domain=n,this._service=t}async debug(t,n={}){await this.logWithLevel(f.DEBUG,t,n)}async warning(t,n={}){await this.logWithLevel(f.WARNING,t,n)}async error(t,n={}){await this.logWithLevel(f.ERROR,t,n)}async info(t,n={}){await this.logWithLevel(f.INFO,t,n)}async logWithLevel(t,n,r){await this.sendLog({message:n,level:t,context:r})}async sendLog(t){const n=encodeURIComponent(this._url);try{const r=[{message:t.message,timestamp:Date.now(),attributes:{"service.name":this._service,"labels.domain":this._domain,"vista.team_tag":Da,level:t.level,url:n,userAgent:this._userAgent,"browser.name":this._environment.browser.name,"browser.version":this._environment.browser.version,"device.model":this._environment.device.model,"device.type":this._environment.device.type,"device.vendor":this._environment.device.vendor,"os.name":this._environment.os.name,"os.version":this._environment.os.version,...t.context}}],o=await fetch(`${Na}log`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});o.ok||console.error("Error sending log",o.status)}catch(r){console.error("Unexpected error sending log",r)}}}class za{info(t,n){console.info(t,n)}error(t,n){console.error(t,n)}debug(t,n){console.debug(t,n)}warning(t,n){console.warn(t,n)}}class Ka{constructor(t){Ee(this,"_browserInstance"),this._browserInstance=new Ha(t)}info(t,n){this._browserInstance.info(t,n).catch(r=>console.log("Error logging",r))}error(t,n){this._browserInstance.error(t,n).catch(r=>console.log("Error logging",r))}debug(t,n){this._browserInstance.debug(t,n).catch(r=>console.log("Error logging",r))}warning(t,n){this._browserInstance.warning(t,n).catch(r=>console.log("Error logging",r))}}const xr=class Ut{constructor(){}static get instance(){return Ut._browserInstance??(Ut._browserInstance=typeof window>"u"||["staging.","localhost"].some(t=>window.location.hostname.startsWith(t))?new za:new Ka(Ra)),Ut._browserInstance}};Ee(xr,"_browserInstance");let Y=xr;var Wa="search_search-container-open__-R1y3";function Ie(){const[e,t]=I(!1);return T(()=>{t(!0)},[]),e}var C=(e=>(e.deDE="de-de",e.esES="es-es",e.fiFI="fi-fi",e.nlNL="nl-nl",e.itIT="it-it",e.svSE="sv-se",e.nbNO="nb-no",e.ptPT="pt-pt",e.daDK="da-dk",e.enUS="en-us",e.frCA="fr-ca",e.esUS="es-us",e.enCA="en-ca",e.nlBE="nl-be",e.enIE="en-ie",e.frBE="fr-be",e.frFR="fr-fr",e.frCH="fr-ch",e.deAT="de-at",e.deCH="de-ch",e.itCH="it-ch",e.enAU="en-au",e.enNZ="en-nz",e.enSG="en-sg",e.enIN="en-in",e.enGB="en-gb",e))(C||{}),Ya=Object.defineProperty,qa=(e,t,n)=>t in e?Ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_r=(e,t,n)=>qa(e,typeof t!="symbol"?t+"":t,n);const Or={[C.daDK]:()=>K.import("./da-dk-D6UKN_WW.js"),[C.deDE]:()=>K.import("./de-de-BGdmEdf-.js"),[C.enGB]:()=>K.import("./en-gb-BUE_OyND.js"),[C.enIE]:()=>K.import("./en-ie-CbJZGQNg.js"),[C.enUS]:()=>K.import("./en-us-DVd7Wi6R.js"),[C.esES]:()=>K.import("./es-es-DyPeai6e.js"),[C.esUS]:()=>K.import("./es-us-Cph_H_TG.js"),[C.fiFI]:()=>K.import("./fi-fi-B_CxrQ7S.js"),[C.frCA]:()=>K.import("./fr-ca-DWynL4JN.js"),[C.frFR]:()=>K.import("./fr-fr-B0xFx0N-.js"),[C.itIT]:()=>K.import("./it-it-nXx0lVw8.js"),[C.nbNO]:()=>K.import("./nb-no-B7mXHPUV.js"),[C.nlNL]:()=>K.import("./nl-nl-COV8hDXr.js"),[C.ptPT]:()=>K.import("./pt-pt-BtqgJhf1.js"),[C.svSE]:()=>K.import("./sv-se-CvDEFRJf.js")},fe={},he={[C.frBE]:[C.frFR,C.enIE],[C.frCA]:[C.frFR,C.enIE],[C.nlBE]:[C.nlNL,C.enIE],[C.deAT]:[C.deDE,C.enIE],[C.deCH]:[C.deDE,C.enIE],[C.itCH]:[C.itIT,C.enIE],[C.frCH]:[C.frFR,C.enIE],[C.enAU]:[C.enIE],[C.enCA]:[C.enIE],[C.enGB]:[C.enIE],[C.enUS]:[C.enIE],[C.esUS]:[C.enIE],[C.enIN]:[C.enIE],[C.enNZ]:[C.enAU,C.enIE],[C.enSG]:[C.enAU,C.enIE],default:[C.enIE]},Ct={},St=e=>Object.prototype.hasOwnProperty.call(Or,e),Ja=e=>(he[e]??he.default??[]).filter(St),Xa=(e,t)=>{const n="[bookends-v2] Failed to load locale chunk",r={locale:e,error:t instanceof Error?t.message:String(t),stack:t instanceof Error?t.stack:void 0};try{if(typeof window<"u"){const{Logger:o}=require("../utils/logger");o.instance.error(n,r);return}}catch{}console.error(n,r)},Nr=e=>{if(fe[e])return Promise.resolve(fe[e]);if(Ct[e])return Ct[e];if(!St(e))return Promise.resolve(void 0);const t=Or[e]().then(n=>{const r=n?.default??n;return fe[e]=r,r}).catch(n=>{throw delete Ct[e],Xa(e,n),n});return Ct[e]=t,t},Rr=async e=>{if(St(e)){await Nr(e);return}const t=Ja(e)[0];t&&await Nr(t)},Dr=class Ve{constructor(t){_r(this,"locale",C.esUS);const n=St(t)||Object.prototype.hasOwnProperty.call(he,t);this.locale=n?t:he?.default?.[0]??C.enIE}static getInstance(t=C.enIE){if(t&&Ve.instances[t])return Ve.instances[t];const n=new Ve(t);return Ve.instances[t]=n,n}setLocale(t){return Ve.getInstance(t)}translate(t){const n=this.getTranslation(this.locale,t);return n!==null?n:this.getFallbackTranslation(t)||t}getTranslation(t,n){const r=fe?.[t],o=n.split(".");let a=r;for(const i of o)if(a&&typeof a=="object"&&i in a)a=a[i];else return null;
1return typeof a=="string"?a:null}getAllTexts(){if(fe[this.locale])return fe[this.locale];const t=he[this.locale]||he.default;if(t)for(const n of t){const r=fe[n];if(r!==null)return r}}getFallbackTranslation(t){const n=he[this.locale]||he.default;if(n)for(const r of n){const o=this.getTranslation(r,t);if(o!==null)return o}return null}};_r(Dr,"instances",{});let Za=Dr;const Br=(e=C.enIE)=>(e=e.toLowerCase(),Za.getInstance(e)),Fr=ie(void 0),$r=e=>!!fe[e.toLowerCase()],Qa=({defaultLocale:e=C.enIE,children:t})=>{const[n,r]=I(e),[o,a]=I(0),[i,c]=I(()=>!$r(e));T(()=>{if($r(n)){c(!1);return}let u=!1;return c(!0),Rr(n).catch(()=>{}).finally(()=>{u||(a(l=>l+1),c(!1))}),()=>{u=!0}},[n]);const d=N(()=>{const u=Br(n);return{locale:n,translate:l=>u.translate(l)??l,setLocale:r,isLoading:i}},[n,o,i]);return s(Fr.Provider,{value:d,children:t})},$=()=>{const e=oe(Fr);if(!e)throw new Error("useI18n must be used within an I18nProvider");return e},ei={...Y.instance,log:e=>{Y.instance.info(e)},warn:e=>{Y.instance.warning(e)}},ti=({locale:e,forwardedPath:t,searchLabel:n,isExpandedSearchEnabled:r})=>{const{translate:o}=$(),a=Ie(),[i,c]=I(!1),d=W(null),u=()=>{c(!0)},l=()=>{c(!1)};return T(()=>{if(i){const p=new Event("resize");window.dispatchEvent(p)}},[i]),T(()=>{if(!a)return;const p=d.current?.querySelector(".swan-search-input-submit");p&&!p.getAttribute("aria-label")&&p.setAttribute("aria-label",n)},[a,n]),y(P,{alignItems:"stretch",backgroundColor:"standard",className:i?Wa:"",children:[s(se,{tooltip:o("search.close"),skin:"tertiary",display:{xs:i?"block":"none",sm:"none"},onClick:l,children:s(M,{iconType:"arrowLeft",size:"standard","aria-hidden":"true"})}),s(se,{tooltip:o("search.open"),skin:"tertiary",onClick:u,display:{xs:!r&&!i?"block":"none",sm:"none"},children:s(M,{iconType:"search",size:"standard","aria-hidden":"true"})}),y(te,{ref:d,style:{flex:1},onClick:u,display:{xs:r||i?"block":"none",sm:"block"},children:[!a&&s(lt,{locale:e,translations:{"search-input.accessible-text-for-search-button":n??"","search-input.accessible-text-for-clear-button":o("search.clear")},children:s(Jn,{placeholder:n,"aria-label":n})}),a&&s(Tr,{locale:e,pathname:t,searchLabel:n,logger:ei})]})]})};var ln=(e=>(e.FULL_HEADER="full-header",e.SLIM_HEADER="slim-header",e.FULL_FOOTER="full-footer",e.SLIM_FOOTER="slim-footer",e))(ln||{}),j=(e=>(e.HEADER="Header",e.FOOTER="Footer",e))(j||{});const Ur="en-US",ni="vistaprint",ri="national-pen",dn="bookends-browser",oi="https://claims.cimpress.io/cimpress_internal",ai="https://cdn-bookends-backend-service.prod.mcx.vpsvc.com/navigation",Oe=10,Ne=6,jr=3,Vr="ozoDdrmewShEcbUDWX8J3V";function ii(e){return e.split(/\n\n+/).map(t=>{const n=t.trim();if(!n||n==="---")return null;if(n.startsWith("## "))return{type:"heading",text:n.slice(3)};if(n.startsWith("- ")||n.startsWith("* "))return{type:"list",items:n.split(/\n/).map(i=>i.replace(/^[-*]\s+/,"").trim())};const r=n.match(/\[([^\]]+)\]\(([^)]+)\)/);return r&&n.replace(/\[([^\]]+)\]\(([^)]+)\)/,"").trim()===""?{type:"paragraph",text:r[1],link:{href:r[2],text:r[1]}}:{type:"paragraph",text:n.replace(/\[([^\]]+)\]\(([^)]+)\)/g,"$1")}}).filter(t=>t!==null)}function si({body:e}){const t=ii(e);return s(U,{children:t.map((n,r)=>{switch(n.type){case"heading":return s(x,{fontSkin:"title-section",mt:r>0?"7":void 0,mb:"4",style:{textTransform:"none"},children:n.text},r);case"list":return s(Z,{children:n.items.map((o,a)=>s(R,{children:o},a))},r);case"paragraph":return n.link?s(_,{href:n.link.href,mt:"4",children:n.link.text},r):s(x,{fontSkin:"body-standard",mt:"4",children:n.text},r)}})})}const ci=({modal:e,isOpen:t,onDismiss:n})=>s(dt,{id:"absoluteGuaranteeModal",isOpen:t,onRequestDismiss:n,children:y(ut,{"aria-label":e.title,standardMode:!0,children:[s(pt,{children:s(gt,{})}),s(Xn,{style:{maxWidth:"100%"},children:y(P,{alignItems:"center",gap:"3",style:{width:"100%"},children:[e.imageUrl&&s(mt,{src:e.imageUrl,alt:e.imageAltText??"",style:{maxWidth:"69.3px",maxHeight:"63px",flexShrink:0,alignSelf:"flex-start"}}),s(x,{fontSkin:"title-headline",style:{textTransform:"uppercase",margin:0},children:e.title})]})}),s(ft,{children:s(si,{body:e.body})})]})}),D={GEO_IP_BAR:"mount-geo-ip-bar",VAT_SELECTION_BAR:"mount-vat-selection-bar",LANGUAGE_BAR:"mount-language-bar",VAT_TOGGLE:"mount-vat-toggle",SEARCH_BAR:"mount-search-bar",CART:"mount-cart",MY_ACCOUNT:"mount-my-account",COUNTRY_SELECTOR_DESKTOP:"country-selector-button-desktop",COUNTRY_SELECTOR_MOBILE:"country-selector-button-mobile",FOOTER_NAVIGATION:"mount-footer-navigation",NP_ABSOLUTE_GUARANTEE:"mount-np-absolute-guarantee",DESKTOP_NAVIGATION:"mount-desktop-navigation",MOBILE_MENU:"mount-mobile-menu",FAVORITES_HEADER:"mount-favorites-header",GOOGLE_ONE_TAP:"mount-google-one-tap",MY_PROJECTS:"mou
1nt-my-projects",HELP_LINK:"mount-help-link",BRAND_PILLARS_CAROUSEL:"mount-brand-pillars-carousel"},li={BRAND_BANNER:"BrandBanner"},di=({absoluteGuarantee:e})=>{const[t,n]=I(!1),{translate:r}=$(),{sectionImageUrl:o,sectionImageAltText:a=r("viewGuarantees"),modal:i}=e;return y(U,{children:[s(F,{onClick:()=>n(!0),skin:"unstyled","aria-label":a,"aria-haspopup":"dialog","aria-expanded":t,"aria-controls":"absoluteGuaranteeModal",children:o?s(te,{display:"flex",children:s(mt,{src:o,alt:""})}):a}),i&&s(ci,{modal:i,isOpen:t,onDismiss:()=>n(!1)})]})},ui=".trustpilot-widget",pi=50,gi=3e3,mi=100,fi=(e=gi,t=mi)=>new Promise(n=>{if(window.Trustpilot){n(!0);return}let r=0;const o=window.setInterval(()=>{if(r+=t,window.Trustpilot){clearInterval(o),n(!0);return}r>=e&&(clearInterval(o),n(!1))},t)}),hi=e=>new Promise(t=>{if(window.Trustpilot){t();return}const n=document.querySelector(`script[src="${e}"]`);if(n){if(n.dataset.loaded==="true"){t();return}const a=()=>t();n.addEventListener("load",a,{once:!0}),n.addEventListener("error",a,{once:!0});return}const r=document.createElement("script");r.src=e,r.async=!0;const o=()=>{r.dataset.loaded="true",t()};r.onload=o,r.onerror=o,document.body.appendChild(r)}),yi=e=>{if(!window.Trustpilot)return;const n=(e??document).querySelector(ui);n&&window.Trustpilot.loadFromElement(n,!0)},vi=(e,t)=>{T(()=>{if(!e)return;const n=new AbortController,{signal:r}=n,o=async()=>{if(await hi(e),r.aborted)return;const i=await fi();r.aborted||!i||yi(t?.current)},a=window.setTimeout(o,pi);return()=>{n.abort(),clearTimeout(a)}},[e,t])},bi=({awardCallout:e,spanLength:t})=>{const n=W(null);vi(e?.script,n),T(()=>{n.current&&e?.html&&(n.current.innerHTML=e.html)},[e?.script]);const r=JSON.stringify({bookendName:j.FOOTER,navigationDetailPath:e.analyticsId?[e.analyticsId]:[]});return y(zt,{span:t,spanXs:12,spanSm:12,pl:0,mt:{xs:7,md:0},children:[e.img&&s(te,{marginBottom:"4",children:s("img",{src:e.img.url,alt:e.altText,loading:"lazy"})}),s(x,{fontSkin:"footnote",darkMode:!0,ref:n,"data-tracking":r})]})},ce="Category Section",un="Merchandising Section",pn="Top Nav Level 1",q="TopNav",Ci="TopBar",Si="FooterNavigation",ze="Text Layout Link",Gr="Promo Tile",Hr="Tile List Tile",wi=1,ki=2,Re={NAVIGATION_CLICKED:"Navigation Clicked",HEADER_LINK_CLICKED:"Header Link Clicked",FLY_OUT_VIEWED:"Fly-Out Viewed",FLY_OUT_CLICKED:"Fly-Out Clicked",VAT_OPTION_SELECTED:"VAT Option Selected",EXPERIMENT_VIEWED:"Experiment Viewed"},Ke={HEADER:"Header",FLY_OUT:"Fly-Out",VAT:"VAT",POP_UP:"Pop-Up"},Ei="nav_flyout_event";function gn(){return typeof document>"u"?{}:["pageSection","pageName","pageStage","pageDept"].reduce((n,r)=>{const o=document.querySelector(`meta[name="${r}"]`)?.getAttribute("content");return o&&(n[r]=o),n},{})}const De=()=>{const e=gn();return{pageSection:e.pageSection??"",pageStage:e.pageStage??"",pageName:e.pageName??"",pageDept:e.pageDept??""}},Te=(e,t)=>{window.tracking?.track&&window.tracking.track(e,t)},zr=(e,t)=>e===pn&&t.length>wi||e===ce&&t.length>ki?Array.from(new Set(t)).join("|"):t.join("|"),Ii=e=>{if(!e)return"";try{const t=new URL(e,window.location.origin),n=window.location.hostname;return t.hostname===n?t.pathname:t.host+t.pathname}catch{return e}},Kr=e=>{const t=De();Te(Re.VAT_OPTION_SELECTED,{...t,category:Ke.VAT,label:e})},Ti=(e,t)=>{t.toLowerCase()===C.deDE&&Te(Re.EXPERIMENT_VIEWED,{experimentName:Ei,analyticsId:e})},Pi=(e,t,n)=>{const r=De();Te(e,{...r,category:Ke.POP_UP,label:t,eventDetail:n})},Wr=()=>{window.tracking?.reset&&window.tracking.reset()};let wt=null;async function Ai(e,t,n){if(!e)throw new Error("token was undefined");if(wt&&wt.token===e)return wt.promise;const r=(async()=>{try{const o=t?"https://profile.cimpress.io/v1/profile/me":`https://profile.cimpress.io/v1/${n}/profile/me`,a=await fetch(o,{headers:{Authorization:`${e}`}});if(!a.ok)throw new Error(`Failed to fetch profile: ${a.statusText}`);return await a.json()}catch(o){Y.instance.error("Error fetching user profile",{experience:"Bookends flyout",error:o});return}})();return wt={token:e,promise:r},r}const ae=()=>{const{auth:e,identity:t,isSignedIn:n}=bt(),o=rn().account||Vr,[a,i]=I(void 0),[c,d]=I(""),[u,l]=I("");T(()=>{e&&"getAuthorizationHeader"in e&&(d(e.getAuthorizationHeader()),e.isSignedIn()&&l(e.getProfile()["https://claims.cimpress.io/canonical_id"]))},[e]),T(()=>{if(!c)return;const v=!!a?.[oi];Ai(c,v,o).then(i)},[c]),T(()=>{if(!e?.onUserIdentityUpdate)return;const v=e.onUserIdentityUpdate(b=>{if(!b)return;const S=b.authorizationHeader;S&&d(S)});return typeof v=="function"?v:void 0},[e]);const p=A(v=>{v.preventDefault(),Wr(),e?.signOut()},[e]),g=A(()=>{n||e?.signIn([],[],{trackingCaller:"header"})},[e,n]),m=A(()=>{n||e?.signIn([],[],{trackingCaller:"header",navHint:"signUp"})},[e,n]),h=N(()=>e?.getCanonicalId?.()||"",[e]);return{auth:e,isSignedIn:n,identity:t,profile:a,token:c,shopperId:u,signIn:g,signUp:m,signOut:p,canonicalId:h}};var Li="FooterNavigation_footer-navigation-link__gEMIU";const Mi="orderHistory",Yr="/od",xi=e=>{try{const t=new URL(e);return new URL(Yr,t.origin).toString()}catch{return Yr}},_i=(e,t)=>e.analyticsId===Mi&&!t?xi(e.url):e.url,qr=({links:e,label:t,isSignedIn:n})=>{const r=(o,a)=>JSON.stringify({bookendName:Si,navigationDetailPath:o.analyticsId?[o.analyticsId]:[],href:a});return s(Z,{role:"list","aria-label":t,skin:"minimal",children:e?.map((o,a)=>{const i=_i(o,n);return s(R,{fontSkin:"body-small",children:s(_,{href:i,skin:"unstyled","data-tracking":r(o,i),className:Li,children:o.text})},`${o.url}-${a}`)})})},Oi=({footerNavigation:e,awardCallout:t,isLoggedInSsr:n=!1})=>{const{isSignedIn:r}=ae(),o=r??n;if(!e?.length)return null;const a=Math.min(Math.ceil(12/(e.length-1)),4);return s(Zn,{children:y(P,{as:Qn,style:{columnGap:z("SwanSemSpace4")},ml:0,justifyContent:"space-between",flexWrap:{xs:"wrap",md:"nowrap"},children:[e.map((i,c)=>y(zt,{span:a,spanXs:12,spanSm:12,pl:0,children:[y(X,{md:!0,lg:!0,xl:!0,children:[s(er,{fontSkin:"body-small-bold",children:i.listHeader}),s(qr,{links:i.links,label:i.listHeader,isSignedIn:o})]}),y(X,{xs:!0,sm:!0,children:[s(pe,{}),s(tr,{children:s(nr,{collapsibleId:`footer-${c}-${i.listHeader??i.text}`,heading:i.listHeader,headingLevel:"h3",children:s(qr,{links:i.links,label:i.listHeader,isSignedIn:o})})})]})]},i.listHeader??`footer-nav-${c}`)),t&&s(bi,{awardCallout:t,spanLength:a})]})})},mn=(e,t,n)=>{const r=new Date,o=new Date(r.getTime()+n*24*60*60*1e3),a={value:t,expiry:o.toISOString()};localStorage.setItem(e,JSON.stringify(a))},fn=e=>{const t=localStorage.getItem(e);if(!t)return null;try{const n=JSON.parse(t),r=new Date;return new Date(n.expiry)>r?n.value:(localStorage.removeItem(e),null)}catch(n){return Y.instance.error("[local-storage] Error parsing item",{key:e,error:n}),localStorage.removeItem(e),null}},le={USER_CONFIRMED_MESSAGE:"isUserConfirmedMessage",CLOUDFLARE_COUNTRY:"cf-ipcountry",SELECTED_COUNTRY:"cf-ipdfcountry",HIDE_LANGUAGE_BAR_SESSION:"hideLanguageBarForSession",HAS_SEEN_VAT_BAR:"hasSeenVatSelectionBar"},We={HIDE_LANGUAGE_BAR:"hideLanguageBar",HIDE_VAT_SELECTION_BAR:"hideVatSelectionBar"},Ye={ONE_YEAR:365,ONE_MONTH:30,ONE_WEEK:7},Jr={...le,...We},Xr="PCXT-ModuleInitialized",Zr="PCXT-VatInclusivityChanged",Qr="PCXT-V3-ModuleInitialized",eo="PCXT-V3-VatInclusivityChanged",to=ie({}),hn=({children:e,vatToggleLabel:t,vatToggleInclusionText:n,vatToggleExclusionText:r})=>{const[o,a]=I(!1),[i,c]=I(!1);T(()=>{const p=()=>
1{const m=document.pricingContextModule?.getPricingContext()?.vatInclusive??document.pcxtV3?.getPricingContext()?.vatInclusive;m!==void 0&&c(m),a(!0)};return(document.pricingContextModule?.isInitialized()||document.pcxtV3?.isInitialized())&&p(),document.addEventListener(Xr,p),document.addEventListener(Zr,p),document.addEventListener(Qr,p),document.addEventListener(eo,p),()=>{document.removeEventListener(Xr,p),document.removeEventListener(Zr,p),document.removeEventListener(Qr,p),document.removeEventListener(eo,p)}},[]);const d=()=>{const p=!i;c(p),fn(Jr.HIDE_VAT_SELECTION_BAR)||mn(Jr.HIDE_VAT_SELECTION_BAR,!0,Ye.ONE_MONTH),o?(document.pricingContextModule?.setVatInclusive(p),document.pcxtV3?.setVatInclusive(p)):Y.instance.warning("[bookends-v2] Attempted to set VAT before pricing context module was initialized"),Kr(p?"Include VAT":"Exclude VAT")},u=p=>{o?(document.pricingContextModule?.setVatInclusive(p),document.pcxtV3?.setVatInclusive(p)):Y.instance.warning("[bookends-v2] Attempted to set VAT before pricing context module was initialized")},l=N(()=>({vatToggleLabel:t,vatToggleInclusionText:n,vatToggleExclusionText:r,vatInclusive:i,pricingContextScriptLoaded:o,toggleVatInclusively:d,setVatInclusively:u}),[t,n,r,i,o]);return s(to.Provider,{value:l,children:e})},no=()=>oe(to),Ni=["AT","BE","CH","DE","DK","ES","FR","GB","IE","IT","NL","NO","PT","SE","NZ"],ro=e=>Ni.includes(e?.toUpperCase()),oo=({vatPlacement:e,locale:t})=>{const{vatInclusive:n,toggleVatInclusively:r,vatToggleLabel:o,vatToggleInclusionText:a,vatToggleExclusionText:i}=no(),c=t.split("-")[1]?.toUpperCase()||"";if(!ro(c))return null;const u=`vatToggleLabel-${e}`;return y(P,{gap:"2",alignItems:"center",children:[o&&s(Kt,{id:u,"aria-hidden":"true",children:o}),y(rr,{id:`vatToggle-${e}`,activated:!!n,onRequestActivatedChange:r,"aria-labelledby":o?u:void 0,children:[s(or,{children:a}),s(ar,{children:i})]})]})},kt=(e,t,n)=>{let r=`${e}=${t}; path=/`;if(n!==void 0){const o=new Date(Date.now()+n*24*60*60*1e3).toUTCString();r+=`; expires=${o}`}document.cookie=r},qe=e=>{if(typeof document>"u")return null;const t=`${e}=`,n=document.cookie.split(";");for(const r of n){const o=r.trim();if(o.startsWith(t))return o.substring(t.length,o.length)}return null},Ri=(e,t,n,r,o,a)=>{const i=De(),c=globalThis.window?.location?.pathname??"",d=`${e}${r?":"+r:""}`;Te(Re.NAVIGATION_CLICKED,{label:d,eventDetail:`${c};${n};${r||e};${t};${o||""}`,navigationDetail:t,navigationSection:a,...i,category:i.pageSection})},Di=(e,t,n,r)=>{const o=De(),a=`${e}${n?":"+n:""}`;Te(Re.HEADER_LINK_CLICKED,{...o,category:Ke.HEADER,label:a,eventDetail:t,navigationSection:r})},ao=(e,t)=>e?t?`${e}_${t}`:e:"",Bi=(e,t,n)=>{const r=De();Te(Re.FLY_OUT_VIEWED,{...r,category:Ke.FLY_OUT,label:e,eventDetail:ao(t,n)})},Fi=(e,t,n)=>{const r=De();Te(Re.FLY_OUT_CLICKED,{...r,category:Ke.FLY_OUT,label:e,eventDetail:ao(t,n)})},Et=e=>{const{bookendName:t,locale:n}=e;return{bookendName:t,locale:n,trackLink:r=>{const{subSection:o,navigationDetailPath:a,linkType:i,navigationSection:c,href:d}=r,u=zr(c,a),l=Ii(d);Ri(t,u,l,o,i,c)},trackHeaderLink:r=>{const{subSection:o,navigationDetailPath:a,navigationSection:i}=r,c=zr(i,a);Di(t,c,o,i)},trackFlyOutView:(r,o)=>{Bi(r,o,n)},trackFlyOutClick:(r,o)=>{Fi(r,o,n)},trackVatOption:r=>{Kr(r)},trackNavHover:r=>{Ti(r,n)},trackPopInteraction:(r,o,a)=>{Pi(r,o,a)},resetTracking:()=>{Wr()}}};let Je=null,Xe=null,yn=Ur;const $i=(e,t)=>(yn=e,t===j.HEADER?(Je=Et({bookendName:t,locale:e}),Je):(Xe=Et({bookendName:t,locale:e}),Xe)),L=()=>(Je??(Je=Et({bookendName:j.HEADER,locale:yn})),Je),Ui=()=>(Xe??(Xe=Et({bookendName:j.FOOTER,locale:yn})),Xe),io="https://url.prod.merch.vpsvc.com/v3",ji="https://page-availability-service.prod.merch.vpsvc.com/api/v2",Vi="https://discovery-pages.large-assortment.vpsvc.com/v1/discoverypageequivalents";function Be(e,t){if(t!==ri||e.startsWith("/"))return e;try{const{pathname:n,search:r,hash:o}=new URL(e);return`${n}${r}${o}`}catch{return e}}const Gi={Category:"CategoryPage",Product:"ProductPage",Other:"HomePage",Static:"StaticPage",SpecialOffers:"SpecialOffersPage",Offer:"SpecialOffersPage",MarketingLanding:"MarketingLandingPage","":"HomePage"};async function It(e){const t=await fetch(e);if(!t.ok)throw new Error(`Request failed with status ${t.status}`);return t.json()}async function Hi(e,t,n){const r=encodeURIComponent(e);return await It(`${io}/id/${n}/${t}/${r}?requestor=${dn}`)}async function zi(e,t,n){return It(`${io}/url/${n}/${t}/${e}?requestor=${dn}`)}async function Ki(e,t,n,r){if(!(await It(`${ji}/${r}/${t}/url/${n}`)).find(i=>i.urlId===e))throw new Error("URL is not active")}async function Wi(e,t,n){if((await It(`${Vi}
1/${n}/${e}?requestor=${dn}`))?.[t])return!0;throw new Error("URL is not active")}async function vn({currentUrl:e,requestLocale:t,locale:n,tenant:r=ni}){try{if(e==="/search"&&globalThis.window)return`/search${globalThis.location.search}`;const o=await Hi(e,n,r),a=await zi(o.id,t,r);let i=a.type;o.id==="other:offers"&&(i="Offer");const c=Gi[i];if(c==="DiscoveryPage")await Wi(o.id,t.toLowerCase(),r);else if(c)return await Ki(o.id,c,t.toLowerCase(),r),a.url;return"/"}catch(o){return Y.instance.info("Page availability redirect fallback",{currentUrl:e,requestLocale:t,error:o}),"/"}}async function so(e,t,n,r){try{const o=globalThis.location?.pathname;if(!o||o==="/")return Be(e,r);const a=await vn({currentUrl:o,requestLocale:t,locale:n,tenant:r});if(a&&a!=="/"){let i;try{i=new URL(e).origin}catch{i=globalThis.location?.origin??""}return Be(`${i}${a}`,r)}}catch{}return Be(e,r)}const Yi=({country:e,isSelected:t,locale:n,tenant:r})=>{const o=`1px solid ${z("SwanSemColorBorderStandard")}`,a=async i=>{i.preventDefault(),L().trackFlyOutClick("Country Selector",`select_${e.text}`),kt(le.SELECTED_COUNTRY,e.cloudflareCountryCode,Ye.ONE_YEAR);const c=await so(e.url,e.locale,n??"",r);globalThis.location.href=c};return y(R,{fontSkin:t?"body-small-bold":"body-small",p:0,selected:t,"aria-current":t?"true":void 0,children:[s(ir,{src:e.imageUrl.image.url,width:24,height:24,loading:"lazy",style:{border:o},alt:""}),y(sr,{style:{minWidth:"fit-content"},children:[s(qi,{country:e,isSelected:t,tenant:r,onCountryClick:a}),e.alternateLanguages.length>0&&s(Ji,{alternateLanguages:e.alternateLanguages,locale:n,tenant:r})]})]},e.text)},qi=({country:e,isSelected:t,tenant:n,onCountryClick:r})=>t?e.text:s(_,{href:Be(e.url,n),skin:"unstyled",onClick:r,children:e.text}),Ji=({alternateLanguages:e,locale:t,tenant:n})=>{const r=async(o,a)=>{o.preventDefault(),L().trackFlyOutClick("Country Selector",`select_language_${a.text}`);const i=await so(a.url,a.locale,t??"",n);globalThis.location.href=i};return s(U,{children:e.map(o=>o.locale.toLowerCase()===t?.toLowerCase()?s(x,{ml:2,display:"inline-block",children:o.text},o.locale):s(_,{href:Be(o.url,n),skin:"unstyled",ml:2,onClick:a=>r(a,o),children:o.text},o.locale))})};function co({id:e,isOpen:t,handleClose:n,locale:r,tenant:o,selectedCountry:a,countrySelectorDialogHeader:i,supportedCountries:c}){const u=ke()==="xs";T(()=>{t&&L().trackFlyOutView("Country Selector","view")},[t]);const l=()=>{L().trackFlyOutClick("Country Selector","close"),n()},p=N(()=>{if(!c||c.length===0)return null;const h=c.find(b=>b.cloudflareCountryCode.toLowerCase()===a.toLowerCase());if(!h)return null;const v=c.filter(b=>b.cloudflareCountryCode!==h.cloudflareCountryCode).sort((b,S)=>b.text.localeCompare(S.text));return[h,...v]},[a,c]);if(!p)return null;const g={display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"16px 40px"},m={display:"flex",flexDirection:"column",gap:z("SwanSemSpace4")};return s(Xi,{id:e,isOpen:t,handleClose:l,countrySelectorDialogHeader:i,children:s(cr,{role:"list","data-bookends-locale":r,"data-bookends-tenant":o,style:u?m:g,children:p.map(h=>s(Yi,{country:h,isSelected:h.cloudflareCountryCode.toLowerCase()===a.toLowerCase(),locale:r,tenant:o},h.text))})})}function Xi({id:e,isOpen:t,handleClose:n,children:r,countrySelectorDialogHeader:o}){const{translate:a}=$(),c=ke()==="xs";return s(dt,{standardMode:!0,isOpen:t,id:e,onRequestDismiss:n,takeOver:c,children:y(ut,{"aria-label":a("countrySelector"),children:[y(pt,{children:[o&&s(Wt,{display:{sm:"none"},children:o}),s(gt,{ml:"auto"})]}),s(ft,{children:r})]})})}const Tt={trackView(e){L().trackFlyOutView("GeoIP Placement Fly-Out",`view_${e}`)},trackOpen(e){L().trackFlyOutClick("GeoIP Placement Fly-Out",`dropdown_${e}`)},trackContinue(e){L().trackFlyOutClick("GeoIP Placement Fly-Out",`continue_${e}`)},trackClose(e){L().trackFlyOutClick("GeoIP Placement Fly-Out",`close_${e}`)}};function Zi({locale:e,currentCountry:t,tenant:n,supportedCountries:r,geoIpBarContent:o}){const i=ke()==="xs",[c,d]=I(!1),u=()=>d(!1),l=`countrySelectorDialog-${D.GEO_IP_BAR}`,{showGeoIpBar:p,hideGeoIpBar:g}=Qi(e),m=o?{...o,countryUrl:Be(o.countryUrl,n)}:null,h=m?.selectCountryText??"",v=m?.geoIpBarText??"",b=m?.countryText??"",S=m?.continueText??"",w=m?.countryUrl??"",O=m?.preferredLocale,ge=A(async()=>{g(),Tt.trackContinue(h);const E=globalThis.window?globalThis.location.pathname:"/",k=O?await vn({currentUrl:E,requestLocale:O,locale:e,tenant:n}):"/";globalThis.location.href=es(w,k,b)},[w,b,O,e,n,g]),re=A(()=>{Tt.trackClose(e),g(),kt(le.USER_CONFIRMED_MESSAGE,"true",Ye.ONE_YEAR)},[g]),me=()=>{Tt.trackOpen(h),d(!0)};return T(()=>{p&&t&&Tt.trackView(e)},[p,e,t]),!p||!t||!m?null:y(U,{children:[y(P,{justifyContent:"center",fontSkin:"body-small",alignItems:{xs:"flex-start",sm:"center"},textColor:"standard",darkMode:!0,gap:4,p:3,flexDirection:{xs:"column",sm:"row"},style:{backgroundColor:z("SwanSemColorBgStrong"),position:"relative"},children:[s(P,{m:0,fontSkin:"body-small-bold",flexWrap:"wrap",style:{whiteSpace:"pre-line"},children:v}),y(P,{justifyContent:"space-between",gap:{xs:"3",sm:"4"},alignItems:"center",style:{width:i?"100%":"auto"},children:[s(ts,{selectCountryText:h,countryText:b,isMobile:i,onClick:me,isOpen:c,dialogId:l}),s(ns,{continueText:S,onClick:ge})]}),s(rs,{isMobile:i,onClick:re})]}),s(co,{id:l,isOpen:c,handleClose:u,locale:e,tenant:n,selectedCountry:t,supp
1ortedCountries:r})]})}function Qi(e){const[t,n]=I(!1);return T(()=>{const o=qe(le.USER_CONFIRMED_MESSAGE),a=qe(le.CLOUDFLARE_COUNTRY),i=e?.split("-")[1]?.toUpperCase()??"",d=o!=="true"&&(a??i)!=="US"&&e?.toLowerCase()==="en-us";n(d),Y.instance.info(`user current country ${i}`)},[e]),{showGeoIpBar:t,hideGeoIpBar:()=>n(!1)}}function es(e,t,n){if(!e)return"https://www.vistaprint.com/";const r=e.replace(/\/+$/,""),o=t.startsWith("/")?t:`/${t}`,[a,i]=o.split("#",2),c=a?.includes("?")?"&":"?",d=i?`#${i}`:"";return`${r}${a}${c}redirect=true&redirectOrigin=Suggested_${encodeURIComponent(n)}${d}`}function ts({selectCountryText:e,countryText:t,isMobile:n,onClick:r,isOpen:o,dialogId:a}){return y(F,{skin:"secondary","aria-label":`${e} : ${t}`,textColor:"standard",fontSkin:"body-small",p:3,style:{minWidth:`calc(${z("SwanSemSpace7")} * 5)`,width:n?"100%":"auto",height:z("SwanSemSpace7"),justifyContent:"space-between",flexGrow:1},onClick:r,"aria-haspopup":"dialog","aria-expanded":o,"aria-controls":a,children:[t,s(M,{iconType:"caretDown",size:"small",ml:1,"aria-hidden":"true"})]})}function ns({continueText:e,onClick:t}){const n={height:z("SwanSemSpace7"),minWidth:"fit-content"};return s(F,{skin:"secondary",py:3,px:6,textColor:"standard",fontSkin:"body-small",style:n,onClick:t,children:e})}function rs({isMobile:e,onClick:t}){const{translate:n}=$(),r={position:"absolute",top:0,right:0};return s(se,{tooltip:n("close"),skin:"tertiary",p:3,textColor:"standard",style:{height:z("SwanSemSpace7"),...e?r:{}},onClick:t,children:s(M,{iconType:"close",size:"16p"})})}const os=({currentCountry:e,localeSelectButtonA11yText:t,locale:n,tenant:r,mountId:o,countrySelectorDialogHeader:a,supportedCountries:i})=>{const[c,d]=I(!1),u=`countrySelectorDialog-${o}`,l=N(()=>i?i.find(m=>m.cloudflareCountryCode.toLowerCase()===e.toLowerCase())??null:null,[i,e]);if(!l)return null;const p=()=>d(!0),g=()=>d(!1);return l?y(P,{justifyContent:"flex-end",alignItems:"center",children:[y(F,{skin:"tertiary","aria-label":t?.replace("{{{ currentLocaleName }}}",l.text),onClick:p,p:0,"aria-haspopup":"dialog","aria-expanded":c,"aria-controls":u,children:[s("img",{src:l.imageUrl.image.url,alt:l.text,width:24,height:24}),s(M,{iconType:"caretDown",size:"20p",skin:"standard","aria-hidden":"true"})]}),s(co,{id:u,isOpen:c,handleClose:g,locale:n,tenant:r,selectedCountry:e,countrySelectorDialogHeader:a,supportedCountries:i})]}):null},as=["fr-FR"],is={title:"Nos prix sont affich\xE9s en HT (TVA de 20 % non incluse). Vous \xEAtes un particulier ?",mobilePromptText:"Vous pouvez modifier cette option dans le menu.",vatIncText:"Oui, passer en TTC",vatExcText:"Non, rester en HT"},ss=["Gallery","Cart","undefined"];/*! js-cookie v3.0.8 | MIT */function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)r!=="__proto__"&&(e[r]=n[r])}return e}var cs={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function bn(e,t){function n(o,a,i){if(!(typeof document>"u")){i=Pt({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var d in i)i[d]&&(c+="; "+d,i[d]!==!0&&(c+="="+i[d].split(";")[0]));return document.cookie=o+"="+e.write(a,o)+c}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var a=document.cookie?document.cookie.split("; "):[],i={},c=0;c<a.length;c++){var d=a[c].split("="),u=d.slice(1).join("=");try{var l=decodeURIComponent(d[0]);if(l in i||(i[l]=e.read(u,l)),o===l)break}catch{}}return o?i[o]:i}}return Object.create({set:n,get:r,remove:function(o,a){n(o,"",Pt({},a,{expires:-1}))},withAttributes:function(o){return bn(this.converter,Pt({},this.attributes,o))},withConverter:function(o){return bn(Pt({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ls=bn(cs,{path:"/"});function ds(e){if(Object.prototype.hasOwnProperty.call(e,"__esMo
1dule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Cn={};(function(e){e.getEuMembers=function(){return["BE","BG","CZ","DK","DE","EE","IE","EL","ES","FR","HR","IT","CY","LV","LT","LU","HU","MT","NL","AT","PL","PT","RO","SI","SK","FI","SE"]},e.isEuMember=function(t){return e.getEuMembers().indexOf(t.toUpperCase())!=-1}})(Cn);var lo=function(){var e=(typeof window<"u"||void 0)&&window.location&&window.location.hostname;if(!e||e.length===0)throw new Error("Hostname could not be determined for the current document.");return e},uo=function(){var e=(typeof window<"u"||void 0)&&window.location&&window.location.pathname;return e||"/"},us=function(e){if(!e||e.length===0)throw new Error("Domain must be specified");var t=e.split(".");if(t.length<2)throw new Error("Domain '"+e+"' does hot have the right format.");var n=t.pop();return n},ps="vista.com",po=function(e,t){var n;switch(e==="localhost"?n="IE":e===ps?n=t==="/"?"us":t.substr(1,2):n=us(e),n.toLowerCase()){case"pt":return"PT";case"ie":return"IE";case"es":return"ES";case"in":return"IN";case"jp":return"JP";case"com":case"us":return"US";case"fr":return"FR";case"it":return"IT";case"uk":return"GB";case"de":return"DE";case"nl":return"NL";case"dk":return"DK";case"se":return"SE";case"at":return"AT";case"no":return"NO";case"fi":return"FI";case"be":return"BE";case"sg":return"SG";case"nz":return"NZ";case"au":return"AU";case"ca":return"CA";case"ch":return"CH"}throw new Error("Unknown country for host "+e+" and path "+t)};function gs(e){var t=e.toLowerCase();return t.startsWith("/fr")||t.startsWith("/fr-be")?"fr-BE":"nl-BE"}function ms(e){var t=e.toLowerCase();return t.startsWith("/es")||t.startsWith("/us/es")?"es-US":"en-US"}function fs(e){var t=e.toLowerCase();return t.startsWith("/fr")||t.startsWith("/ca/fr")?"fr-CA":"en-CA"}function hs(e){var t=e.toLowerCase();return t.startsWith("/fr")?"fr-CH":t.startsWith("/it")?"it-CH":"de-CH"}var ys=function(e,t){var n=po(e,t);switch(n.toUpperCase()){case"PT":return"pt-PT";case"IE":return"en-IE";case"ES":return"es-ES";case"IN":return"en-IN";case"US":return ms(t);case"GB":return"en-GB";case"FR":return"fr-FR";case"IT":return"it-IT";case"DE":return"de-DE";case"NL":return"nl-NL";case"DK":return"da-DK";case"SE":return"sv-SE";case"AT":return"de-AT";case"NO":return"nb-NO";case"FI":return"fi-FI";case"BE":return gs(t);case"SG":return"en-SG";case"JP":return"ja-JP";case"NZ":return"en-NZ";case"AU":return"en-AU";case"CA":return fs(t);case"CH":return hs(t)}throw new Error("Unknown culture for host "+e+" and path "+t)},vs=function(){var e=lo(),t=uo();return ys(e,t)},go=function(){var e=lo(),t=uo();return po(e,t)},bs=Object.freeze({__proto__:null,getCurrentCountry:go,getCurrentCulture:vs}),mo;(function(e){e[e.None=0]="None",e[e.GDPR=1]="GDPR",e[e.CCPA=2]="CCPA"})(mo||(mo={}));var fo=function(){return fo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},fo.apply(this,arguments)};function Cs(e){return e?(e=e.toLowerCase(),Cn.isEuMember(e)||e==="ch"||e==="no"||e==="gb"):!1}function Ss(){var e,t;try{t=go()}catch{return!0}var n=!!(!((e=window?.consentManager)===null||e===void 0)&&e.openConsentManager),r=Cs(t)||n&&t.toLowerCase()!=="us";return r}function ws(){var e=ls.get("tracking-preferences");return e?JSON.parse(e):{}}function ho(){var e=ws();return e&&e.custom&&e.consent!==!1?!1:Ss()}const yo={trackView(e){L().trackFlyOutView("VAT Selection Fly-Out",`view_${e}`)},trackSelect(e){L().trackFlyOutClick("VAT Selection Fly-Out",`select_${e?"VATinc":"VATex"}`)}};function ks({locale:e}){const n=ke()==="xs",{title:r,mobilePromptText:o,vatIncText:a,vatExcText:i}=is,{showVatSelectionBar:c,showMobilePrompt:d,handleVatSelection:u}=Es(e);return c?y(P,{justifyContent:"center",fontSkin:"body-small",alignItems:{xs:"flex-start",sm:"center"},textColor:"standard",darkMode:!0,gap:4,p:3,flexDirection:{xs:"column",sm:"row"},style:{backgroundColor:z("SwanSemColorBgStrong"),position:"relative"},children:[s(P,{m:0,fontSkin:"body-small-bold",flexWrap:"wrap",style:{whiteSpace:"pre-line"},children:d?o:r}),s(P,{justifyContent:"space-between",gap:{xs:"3",sm:"4"},alignItems:"center",style:{width:n?"100%":"auto"},children:[i,a].map(l=>s(F,{skin:"secondary",py:3,px:6,width:n?"full-width":"standard",textColor:"standard",fontSkin:"body-small",onClick:()=>u(l===a),children:l},l))})]}):null}const Es=e=>{const[t,n]=I(!1),[r,o]=I(!1),{vatInclusive:a,setVatInclusively:i}=no(),d=ke()==="xs",u=N(()=>{const{pageSection:p}=gn();return!!p&&!ss.includes(p)},[]);return T(()=>{const p=as.includes(e)&&!a&&!fn(We.HIDE_VAT_SELECTION_BAR)&&!qe(le.HAS_SEEN_VAT_BAR)&&u;o(p),p&&yo.trackView(e)},[e,a]),T(()=>{r&&u&&qe(le.HAS_SEEN_VAT_BAR)!=="true"&&(ho()||kt(le.HAS_SEEN_VAT_BAR,"true"))},[e,u,r]),{showVatSelectionBar:r,showMobilePrompt:t,handleVatSelection:p=>{yo.trackSelect(p),mn(We.HIDE_VAT_SELECTION_BAR,!0,Ye.ONE_MONTH),o(!1),i(p),d&&n(!0)}}},ye=({iconType:e,label:t,analyticsId:n,accessibleLabel:r,...o})=>{const a=()=>{(n||typeof t=="string"&&t)&&L().trackLink({navigationDetailPath:[n||(typeof t=="string"?t:"")],href:o.href,linkType:ze})},i=u=>{a(),o.onClick?.(u)},c=u=>{(u.key==="Enter"||u.key===" ")&&(a(),o.onKeyDown?.(u))},d=r??(typeof t=="string"?t:"");return y(U,{children:[s(X,{xs:!0,sm:!0,md:!0,children:s(se,{skin:"tertiary",tooltip:d,render:(u,l)=>s(_,{ref:l,...u,...o,"aria-label":d,onClick:i,onKeyDown:c,children:u.children}),ml:{sm:"to-actions"},children:s(M,{iconType:e,size:"standard","aria-hidden":"true"})})}),s(X,{xl:!0,lg:!0,children:y(_,{withIcon:!0,fontSkin:"body-small",ml:"to-actions",skin:"unstyled",...o,"aria-label":d,onClick:i,onKeyDown:c,children:[s(M,{iconType:e,size:"standard","aria-hidden":"true"}),s(x,{...e==="cart"?{ml:"between-icon-and-text"}:{},children:t})]})})]})};var Pe=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};const Is=ie(null),Sn={didCatch:!1,error:null};let Ts=class extends jt{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Sn}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(...t){const{error:n}=this.state;n!==null&&(this.props.onReset?.({args:t,reason:"imperative-api"}),this.setState(Sn))}componentDidCatch(t,n){this.props.onError?.(t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;r&&n.error!==null&&Ps(t.resetKeys,o)&&(this.props.onReset?.({next:o,prev:t.resetKeys,reason:"keys"}),this.setState(Sn))}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:a,error:i}=this.state;let c=t;if(a){const d={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")c=n(d);else if(r)c=Vt(r,d);else if(o!==void 0)c=o;else throw i}return Vt(Is.Provider,{value:{didCatch:a,error:i,resetErrorBoundary:this.resetErrorBoundary}},c)}};function Ps(e=[],t=[]){return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}var As=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Pe<"u"?Pe:typeof self<"u"?self:{};
1function Ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vo,bo,wn,Co={exports:{}};bo=As,wn=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],o={},a=null;function i(m,h){var v=m[h];if(typeof v.bind=="function")return v.bind(m);try{return Function.prototype.bind.call(v,m)}catch{return function(){return Function.prototype.apply.apply(v,[m,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(){for(var m=this.getLevel(),h=0;h<r.length;h++){var v=r[h];this[v]=h<m?e:this.methodFactory(v,m,this.name)}if(this.log=this.debug,typeof console===t&&m<this.levels.SILENT)return"No console available for logging"}function u(m){return function(){typeof console!==t&&(d.call(this),this[m].apply(this,arguments))}}function l(m,h,v){return(function(b){return b==="debug"&&(b="log"),typeof console!==t&&(b==="trace"&&n?c:console[b]!==void 0?i(console,b):console.log!==void 0?i(console,"log"):e)})(m)||u.apply(this,arguments)}function p(m,h){var v,b,S,w=this,O="loglevel";function ge(){var E;if(typeof window!==t&&O){try{E=window.localStorage[O]}catch{}if(typeof E===t)try{var k=window.document.cookie,_e=encodeURIComponent(O),ue=k.indexOf(_e+"=");ue!==-1&&(E=/^([^;]+)/.exec(k.slice(ue+_e.length+1))[1])}catch{}return w.levels[E]===void 0&&(E=void 0),E}}function re(E){var k=E;if(typeof k=="string"&&w.levels[k.toUpperCase()]!==void 0&&(k=w.levels[k.toUpperCase()]),typeof k=="number"&&k>=0&&k<=w.levels.SILENT)return k;throw new TypeError("log.setLevel() called with invalid level: "+E)}typeof m=="string"?O+=":"+m:typeof m=="symbol"&&(O=void 0),w.name=m,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=h||l,w.getLevel=function(){return S??b??v},w.setLevel=function(E,k){return S=re(E),k!==!1&&(function(_e){var ue=(r[_e]||"silent").toUpperCase();if(typeof window!==t&&O){try{return void(window.localStorage[O]=ue)}catch{}try{window.document.cookie=encodeURIComponent(O)+"="+ue+";"}catch{}}})(S),d.call(w)},w.setDefaultLevel=function(E){b=re(E),ge()||w.setLevel(E,!1)},w.resetLevel=function(){S=null,(function(){if(typeof window!==t&&O){try{window.localStorage.removeItem(O)}catch{}try{window.document.cookie=encodeURIComponent(O)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}})(),d.call(w)},w.enableAll=function(E){w.setLevel(w.levels.TRACE,E)},w.disableAll=function(E){w.setLevel(w.levels.SILENT,E)},w.rebuild=function(){if(a!==w&&(v=re(a.getLevel())),d.call(w),a===w)for(var E in o)o[E].rebuild()},v=re(a?a.getLevel():"WARN");var me=ge();me!=null&&(S=re(me)),d.call(w)}(a=new p).getLogger=function(m){if(typeof m!="symbol"&&typeof m!="string"||m==="")throw new TypeError("You must supply a name when creating a logger.");var h=o[m];return h||(h=o[m]=new p(m,a.methodFactory)),h};var g=typeof window!==t?window.log:void 0;return a.noConflict=function(){return typeof window!==t&&window.log===a&&(window.log=g),a},a.getLoggers=function(){return o},a.default=a,a},(vo=Co).exports?vo.exports=wn():bo.log=wn();var kn=Ls(Co.exports);const So="SILENT";let ve=null;const wo=({level:e=""}={})=>{if(ve)return ve.warn("Logger Already Initialized!"),ve;const t=(o=>{if(o==null||o==="")return!1;let a=!1;if(typeof o=="number")o>=0&&o<=5&&(a=!0);else if(typeof o=="string"){const i=o.toUpperCase();Object.keys(kn.levels).forEach(c=>{i===c&&(a=!0)})}return a})(e);t||console.error("Invalid logging level provided, returning a silent logger. There will be no console output.");const n=t?e:kn.levels.SILENT,r=kn.getLogger("om-translations-logger");return r.setLevel(n,!1),ve=r,ve.trace("Initialized Logger with level:",e),ve},Ms=()=>(ve||wo({level:So}),ve),En=ie({activeTranslationDictionary:{},targetLocale:"",setLocale:()=>{}}),xs=({children:e,translationResources:t,locale:n="",logLevel:r=So})=>{const o=Ge.useMemo(()=>wo({level:r}),[r]),[a,i]=I(n);Ge.useEffect(()=>{n&&i(n.toLowerCase())},[n]);const c=t,d=N(()=>({activeTranslationDictionary:c[a.toLowerCase()]||{}
1,targetLocale:a,setLocale:i}),[c,a]);return o.trace(`[LocalizationProvider] Rendering with locale: ${a}`,t,d.activeTranslationDictionary),s(En.Provider,Object.assign({value:d},{children:e}))},_s=()=>{const{activeTranslationDictionary:e}=oe(En);return{localizationLookUpFunction:A((t,n)=>{if(!e[t])return{hasAllCopy:!1,copiesMissing:["Translation group not found"]};const r=n.filter(o=>!Object.keys(e[t]).includes(o));return{hasAllCopy:r.length===0,copiesMissing:r}},[e])}},ko=({translationGroup:e,targetLocale:t,activeTranslationGroup:n={},logger:r})=>new Proxy(n,{get:(o,a)=>{if(Object.prototype.hasOwnProperty.call(n,a)){const i=n[a];return typeof i=="string"?i:typeof i=="object"&&i.value&&typeof i.value=="string"?i.value:(r.error(`${a} is invalid in translation group: ${e}`),`[${e}.${a}]`)}return r.warn(`${a} does not exist in translation group: ${e} in targetLocale: ${t}.`),`[${e}.${a}]`}}),At=e=>{const{activeTranslationDictionary:t,targetLocale:n}=oe(En),r=Ms(),{localizationLookUpFunction:o}=_s();return e.map(a=>t[a]?ko({translationGroup:a,activeTranslationGroup:t[a],targetLocale:n,logger:r}):(({missingTranslationGroup:i,targetLocale:c,logger:d})=>(d.warn(`No Translation Group: ${i} in ${c}.`),ko({translationGroup:i,targetLocale:c,logger:d})))({missingTranslationGroup:a,targetLocale:n,logger:r})).concat([o])},Os="https://claims.cimpress.io/cimpress_internal",Ns=e=>{var t,n;if(((n=(t=e?.getProfile)===null||t===void 0?void 0:t.call(e))===null||n===void 0?void 0:n[Os])===!0)return{canonicalId:"",authHeader:"",isSignedIn:!0};try{return{canonicalId:e.getCanonicalId(),authHeader:typeof e.getAuthorizationHeader<"u"?e.getAuthorizationHeader():`Bearer ${e.getToken()}`,isSignedIn:e.isSignedIn()}}catch{return console.warn("[@vp/cart-client] Invalid Auth Library passed to component."),{canonicalId:"",authHeader:"",isSignedIn:!1}}},Eo=ie(void 0),Rs=({children:e,locale:t,auth:n,accountId:r,cartTypeId:o})=>{const{canonicalId:a,authHeader:i,isSignedIn:c}=Ns(n),d=N(()=>({locale:t,shopperId:a,shopperToken:i,isSignedIn:c,auth:n,accountId:r,cartTypeId:o}),[t,a,i,n,c,r,o]);return s(Eo.Provider,{value:d,children:e})};function Io(){const e=oe(Eo);if(e===void 0)throw new Error("useSessionContext must be used within a SessionContextProvider");return e}function To(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function In(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function c(l){try{u(r.next(l))}catch(p){i(p)}}function d(l){try{u(r.throw(l))}catch(p){i(p)}}function u(l){l.done?a(l.value):o(l.value).then(c,d)}u((r=r.apply(e,t||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;function Ds(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(u){try{d(r.next(u))}catch(l){a(l)}}function c(u){try{d(r.throw(u))}catch(l){a(l)}}function d(u){var l;u.done?o(u.value):(l=u.value,l instanceof n?l:new n(function(p){p(l)})).then(i,c)}d((r=r.apply(e,[])).next())})}typeof SuppressedError=="function"&&SuppressedError;class Ze extends Error{constructor(t){super(t),this.rootStack="",this.response=void 0,this.request=void 0,this.config={},this.isRetryable=!1,Object.setPrototypeOf(this,Ze.prototype)}}const Bs=/[/?#]/,Fs=/timeout/,Lt="UNKNOWN",Po=e=>{if(!e||typeof e!="string")return"";const t=e.replace("http://","").replace("https://","").split(Bs);return t&&t.length>0?t[0]:Lt};let Ao=class{constructor(){this.handlers=[]}use(t,n){this.handlers.push([t,n])}get(){return this.handlers}};function Ae(e){const{url:t,timeout:n=null,maxAttempts:r=1}=e,o=(function(u,l){var p={};for(var g in u)Object.prototype.hasOwnProperty.call(u,g)&&l.indexOf(g)<0&&(p[g]=u[g]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function"){var m=0;for(g=Object.getOwnPropertySymbols(u);m<g.length;m++)l.indexOf(g[m])<0&&Object.prototype.propertyIsEnumerable.call(u,g[m])&&(p[g[m]]=u[g[m]])}return p})(e,["url","timeout","maxAttempts"]),a=Ae.requestInterceptors.get().reverse(),i=Ae.responseInterceptors.get();let c=Promise.resolve(o);const d=[...a,[u=>Ds(this,void 0,void 0,function*(){let l,p,g=0;do{let m;try{let h;if(n){const w=new AbortController;h=w.signal,m=setTimeout(()=>w.abort("fetch timeout hit, aborting"),n)}const{params:v}=u,b=new URLSearchParams(Object.assign({},v)),S=[...b].length>0;
1p=new Request([t,S&&b].filter(Boolean).join("?"),Object.assign(Object.assign({},u),{signal:h})),l={response:yield fetch(p),request:p}}catch(h){l={error:{message:h,request:p}}}finally{m&&clearTimeout(m)}g+=1}while(g<r&&(!("response"in l)||!l.response.ok));return"response"in l?{request:l.request,response:l.response}:Promise.reject(l.error)}),void 0],...i];for(;d.length;){const[u,l]=d.shift();c=c.then(u,l)}return c}Ae.requestInterceptors=new Ao,Ae.responseInterceptors=new Ao;const Lo=(e,t,n)=>{if(t){const r=t?.status||Lt,o=e?.method||Lt,a=t?.url||e?.url||"",i=Po(a),c=new Ze(`[FETCH][STATUSCODE=${r}][METHOD=${o}][DOMAIN=${i}]`);return c.response=t,c.request=e,c.isRetryable=typeof r=="number"&&r>499&&r<600,c}if(e){const r=e.url||"",o=Po(r),a=e.method||Lt;let i;return Fs.test(n.message)?(i=new Ze(`[FETCH][TIMEOUT][METHOD=${a}][DOMAIN=${o}]`),i.isRetryable=!0):i=new Ze(`[FETCH][REQUEST FAILED][METHOD=${a}][DOMAIN=${o}]`),i.rootStack=n?.stack,i.request=n?.request,i}return n};Ae.requestInterceptors.use(e=>e),Ae.responseInterceptors.use(e=>{const{request:t,response:n}=e;return n.ok?n:Promise.reject(Lo(t,n))},e=>{const{request:t}=e;return Promise.reject(Lo(t,void 0,e))});const $s=e=>({Authorization:e}),Us="cart-item-count-cache";let Tn={};const js=(e,t,n,r)=>`${e}-${t}-${n}-${r}`,Vs=e=>{const t=Tn[e];if(t)return t};function Gs(){Tn={}}const Hs=e=>In(void 0,[e],void 0,function*({shopperId:t,authToken:n,pageName:r,accountId:o,cartTypeId:a}){const i=js(o,a,t,Us),c=yield Vs(i);if(c)return c;const d=encodeURIComponent(r?`miniCart-${r}`:"miniCart");try{return yield Ae({url:`https://carts.checkout.cimpress.io/v0/accounts/${o}/shoppers/${t}/cartTypes/${a}?requestor=${d}`,headers:$s(n)}).then(l=>l.json()).then(l=>{var p;const g=((p=l.items)===null||p===void 0?void 0:p.length)||0;return Tn[i]=g,g})}catch(u){throw console.error("Error occurs when calling vistacart cartSummary endpoint",u),u}}),Pn="CART_CLIENT_REFRESH",zs=({debug:e=!1})=>{Gs();const t=new Event(Pn);if(typeof window<"u")try{window.dispatchEvent(t)}catch(n){e&&console.error("[CartClient] error when dispatching `window` event.",n)}else e&&console.error("[CartClient] `window` undefined, unable to issue refresh.")},Mo=ie(void 0),Ks=({pageName:e,pageSection:t,pageStage:n,children:r})=>{const o=N(()=>({pageSection:t,pageStage:n,pageName:e}),[e,t,n]);return s(Mo.Provider,{value:o,children:r})},xo=()=>{const e=oe(Mo);if(e===void 0)throw new Error("useTrackingContext must be used within a TrackingContextProvider");return e},_o=ie(void 0),Ws=({children:e})=>{const{shopperId:t,shopperToken:n,auth:r,accountId:o,cartTypeId:a}=Io(),{pageName:i}=xo(),[c,d]=I(void 0),[u,l]=I(!1);T(()=>{const g=()=>In(void 0,void 0,void 0,function*(){if(r)try{const m=yield Hs({shopperId:t,authToken:n,pageName:i,accountId:o,cartTypeId:a});d(m)}catch{l(!0)}});return t&&n&&o&&a&&g(),window.addEventListener(Pn,g),()=>{window.removeEventListener(Pn,g)}},[r,t,n,i,o,a]);const p=N(()=>u?{cartItemCountFetchFailed:u}:{cartItemCount:c},[c,u]);return s(_o.Provider,{value:p,children:e})};function Ys(){const e=oe(_o);if(e===void 0)throw new Error("useCartItemCountContext must be used within a CartItemCountContextProvider");return e}var qs={cartItemsCount:"Number of items in basket: ",zeroCartItemsCount:"Your basket is empty."},Js={cartLabel:"Basket",flyoutTitle:"My Basket"},Xs={cartButton:"Go to basket",emptyCart:"Basket is empty.",signInPrompt:"Already have an account? Sign in to view your selected items.",signInButton:"Sign in",continueButton:"Continue shopping",checkoutButton:"Checkout",groupTotal:"Group total",yourItems:"Your items",pricingSummary:"Pricing summary",youSaved:"You saved",thisOrder:"This order",productSubtotal:"Product subtotal",cartLoading:"Preparing the basket...",remove:"Remove",basePrice:"Base price:",edit:"Edit"},Zs={genericIssuesError:"There are issues with items in your basket.",fetchingIssuesError:"We're sorry, an error occurred loading your basket.",tryAgainOrContactCare:"Please try again or contact CARE if this problem persists."},Qs={pricingSummaryPayToday:"This order","itemPriceLabel:annualSubscription":"To pay today","templatePrice
1Label:annualSubscription":"Annual subscription","templateSummaryLabel:annualSubscription":"Annual subscriptions","templateSummarySubtotal:annualSubscription":"Annual payment","templatePriceUnit:annualSubscription":"{{{price}}}/yr","itemPriceLabel:monthlySubscription":"To pay today","templatePriceLabel:monthlySubscription":"Monthly subscription","templateSummaryLabel:monthlySubscription":"Monthly subscriptions","templateSummarySubtotal:monthlySubscription":"Monthly payment","templatePriceUnit:monthlySubscription":"{{{price}}}/mo"},ec={close:"Close",hide:"Hide",show:"Show",loading:"Loading..."},tc={enterPromoCode:"Enter your code",apply:"Apply",clear:"Clear",promoCodeApplied:"Code applied successfully.",offerDetails:"Offer details",changeCode:"Change code",promotionalCode:"Code: {{{promoCode}}}",currentPromo:"Current code:",clearPromo:"Clear code",updatePromo:"Update code",noPromo:"No code applied",addPromoPrompt:"Have a code?",promoCodeClearFailed:"Could not clear discount code.",NotApplicable:"This code doesn\u2019t exist. Please try another one.",RequiresMissingCustomerGroup:"This code isn\u2019t valid for your account. Please try another one.",Expired:"This code has expired. Please try an active one.",NotLiveYet:"This code isn\u2019t active yet. Please try it again later.",UnableToValidate:"This code isn\u2019t working. Please try it again later.",OncePerShopper:"This code has already been used. Please use another one.",ExceedsUsageLimit:"This code has reached its usage limit.",RequiresLoggedInShopper:"Sign in to apply this code."},nc={postageFee:"Postage",mailingServiceFee:"Mailing list service",rushProcessingFee:"Rush processing",setupFee:"Setup",fallbackFee:"Additional fees"},Oo={cartItemsCountMessages:qs,cartLabelMessages:Js,miniCartMessages:Xs,errorMessages:Zs,templateBillingMessages:Qs,a11yLabels:ec,couponMessages:tc,feeMessages:nc},rc={cartItemsCount:"Number of items in cart: ",zeroCartItemsCount:"Your cart is empty."},oc={cartLabel:"Cart",flyoutTitle:"My Cart"},ac={cartButton:"Add to cart",emptyCart:"Your cart is empty.",signInPrompt:"Already have an account? Sign in to view your selected items.",signInButton:"Sign in",continueButton:"Continue Shopping",checkoutButton:"Checkout",groupTotal:"Group Total",yourItems:"Your Items",pricingSummary:"Order summary",youSaved:"You Saved",thisOrder:"This Order",productSubtotal:"Products subtotal",cartLoading:"Preparing the cart...",remove:"Remove",basePrice:"Base Price:",edit:"Edit"},ic={genericIssuesError:"* There are issues with some of the items in your cart *",fetchingIssuesError:"An error occurred when loading your cart, please try again.",tryAgainOrContactCare:"Please try again or contact CARE if this problem persists."},sc={pricingSummaryPayToday:"This Order","itemPriceLabel:annualSubscription":"To Pay Today","templatePriceLabel:annualSubscription":"Annual Subscription","templateSummaryLabel:annualSubscription":"Annual Subscriptions","templateSummarySubtotal:annualSubscription":"Annual Payment","templatePriceUnit:annualSubscription":"{{{price}}}/yr","itemPriceLabel:monthlySubscription":"To Pay Today","templatePriceLabel:monthlySubscription":"Monthly Subscription","templateSummaryLabel:monthlySubscription":"Monthly Subscriptions","templateSummarySubtotal:monthlySubscription":"Monthly Payment","templatePriceUnit:monthlySubscription":"{{{price}}}/mo"},cc={close:"Close",hide:"Hide",show:"Show",loading:"Loading..."},lc={enterPromoCode:"Enter your code",apply:"Apply",clear:"Clear",promoCodeApplied:"Code applied successfully.",offerDetails:"Offer details",changeCode:"Change code",promotionalCode:"Code: {{{promoCode}}}",currentPromo:"Current code:",clearPromo:"Clear code",updatePromo:"Update code",noPromo:"No Promo Code Applied",addPromoPrompt:"Have a code?",promoCodeClearFailed:"Could not clear discount code.",NotApplicable:"This promo code doesn\u2019t exist. Please try another file.",RequiresMissingCustomerGroup:"This promo code isn\u2019t valid for your account. Please try another file.",Expired:"This code has expired. Please try an active one.",NotLiveYet:"This promo code isn\u2019t active yet. Please try again later.",UnableToValidate:"This promo code isn\u2019t working. Please try again later.",OncePerShopper:"This promo code has already been used. Please use another one.",ExceedsUsageLimit:"This code has reached the limit of times it can be used.",RequiresLoggedInShopper:"Sign in to apply this code."},dc={postageFee:"Postage",mailingServiceFee:"Mailing List service",rushProcessingFee:"Rush processing",setupFee:"Setup",fallbackFee:"Additional fees"},An={cartItemsCountMessages:rc,cartLabelMessages:oc,miniCartMessages:ac,errorMessages:ic,templateBillingMessages:sc,a11yLabels:cc,couponMessages:lc,feeMessages:dc}
1,uc={cartItemsCount:"N\xFAmero de artigos no seu cesto: ",zeroCartItemsCount:"O seu cesto encontra-se vazio."},pc={cartLabel:"Cesto",flyoutTitle:"O meu cesto"},gc={cartButton:"Ir para o cesto",emptyCart:"O cesto est\xE1 vazio.",signInPrompt:"J\xE1 tem uma conta? Inicie sess\xE3o para ver os artigos selecionados.",signInButton:"Iniciar sess\xE3o",continueButton:"Continuar a comprar",checkoutButton:"Finalizar a compra",groupTotal:"Pre\xE7o total do grupo",yourItems:"Os seus artigos",pricingSummary:"Resumo dos pre\xE7os",youSaved:"Poupou",thisOrder:"Esta encomenda",productSubtotal:"Subtotal do produto",cartLoading:"A preparar o cesto...",remove:"Remover",basePrice:"Pre\xE7o base:",edit:"Editar"},mc={genericIssuesError:"Existem problemas com alguns artigos no seu cesto.",fetchingIssuesError:"Lamentamos, mas ocorreu um erro ao carregar o seu cesto.",tryAgainOrContactCare:"Se o problema persistir, tente novamente ou contacte o Servi\xE7o de apoio ao cliente da VistaPrint."},fc={pricingSummaryPayToday:"Esta encomenda","itemPriceLabel:annualSubscription":"Para pagar hoje","templatePriceLabel:annualSubscription":"Subscri\xE7\xE3o anual","templateSummaryLabel:annualSubscription":"Subscri\xE7\xF5es anuais","templateSummarySubtotal:annualSubscription":"Pagamento anual","templatePriceUnit:annualSubscription":"{{{price}}}/ano","itemPriceLabel:monthlySubscription":"Para pagar hoje","templatePriceLabel:monthlySubscription":"Subscri\xE7\xE3o mensal","templateSummaryLabel:monthlySubscription":"Subscri\xE7\xF5es mensais","templateSummarySubtotal:monthlySubscription":"Pagamento mensal","templatePriceUnit:monthlySubscription":"{{{price}}}/m\xEAs"},hc={close:"Fechar",hide:"Ocultar",show:"Mostrar",loading:"A carregar..."},yc={enterPromoCode:"Introduza o seu c\xF3digo",apply:"Aplicar",clear:"Apagar",promoCodeApplied:"C\xF3digo aplicado com \xEAxito.",offerDetails:"Detalhes da oferta",changeCode:"Alterar c\xF3digo",promotionalCode:"C\xF3digo: {{{promoCode}}}",currentPromo:"C\xF3digo atual:",clearPromo:"Limpar c\xF3digo",updatePromo:"Atualizar c\xF3digo",noPromo:"Nenhum c\xF3digo aplicado",addPromoPrompt:"Tem um c\xF3digo?",promoCodeClearFailed:"N\xE3o foi poss\xEDvel apagar o c\xF3digo de desconto.",NotApplicable:"Este c\xF3digo n\xE3o existe. Experimente utilizar outro.",RequiresMissingCustomerGroup:"Este c\xF3digo n\xE3o \xE9 v\xE1lido para a sua conta. Experimente utilizar outro.",Expired:"Este c\xF3digo expirou. Experimente utilizar um ativo.",NotLiveYet:"Este c\xF3digo ainda n\xE3o est\xE1 ativo. Experimente utiliz\xE1-lo novamente mais tarde.",UnableToValidate:"Este c\xF3digo n\xE3o est\xE1 a funcionar. Experimente utiliz\xE1-lo novamente mais tarde.",OncePerShopper:"Este c\xF3digo j\xE1 foi utilizado. Utilize outro.",ExceedsUsageLimit:"Este c\xF3digo atingiu o limite de vezes que pode ser utilizado.",RequiresLoggedInShopper:"Inicie sess\xE3o para aplicar este c\xF3digo."},vc={postageFee:"Envio",mailingServiceFee:"Servi\xE7o de lista de correspond\xEAncia",rushProcessingFee:"Processamento urgente",setupFee:"Configura\xE7\xE3o",fallbackFee:"Taxas adicionais"},bc={cartItemsCountMessages:uc,cartLabelMessages:pc,miniCartMessages:gc,errorMessages:mc,templateBillingMessages:fc,a11yLabels:hc,couponMessages:yc,feeMessages:vc},Cc={cartItemsCount:"N\xFAmero de art\xEDculos en la cesta: ",zeroCartItemsCount:"Tu cesta est\xE1 vac\xEDa."},Sc={cartLabel:"Cesta",flyoutTitle:"Mi cesta"},wc={cartButton:"Ir a la cesta",emptyCart:"La cesta est\xE1 vac\xEDa.",signInPrompt:"\xBFYa tienes una cuenta? Inicia sesi\xF3n para ver tus art\xEDculos seleccionados.",signInButton:"Iniciar sesi\xF3n",continueButton:"Seguir comprando",checkoutButton:"Tramitar pedido",groupTotal:"Total en conjunto",yourItems:"Tus art\xEDculos",pricingSummary:"Lista de precios",youSaved:"Ahorras",thisOrder:"Este pedido",productSubtotal:"Subtotal de productos",cartLoading:"Preparando la cesta...",remove:"Borrar",basePrice:"Precio base:",edit:"Modificar"},kc={genericIssuesError:"Hay un problema con algunos art\xEDculos de tu cesta.",fetchingIssuesError:"Lo sentimos, se ha producido un error al cargar tu cesta.",tryAgainOrContactCare:"Vuelve a intentarlo o ponte en contacto con el equipo de atenci\xF3n al cliente si el problema persiste."},Ec={pricingSummaryPayToday:"Este pedido","itemPriceLabel:annualSubscription":"A pagar hoy","templatePrice
1Label:annualSubscription":"Suscripci\xF3n anual","templateSummaryLabel:annualSubscription":"Suscripciones anuales","templateSummarySubtotal:annualSubscription":"Pago anual","templatePriceUnit:annualSubscription":"{{{price}}}/a\xF1o","itemPriceLabel:monthlySubscription":"A pagar hoy","templatePriceLabel:monthlySubscription":"Suscripci\xF3n mensual","templateSummaryLabel:monthlySubscription":"Suscripciones mensuales","templateSummarySubtotal:monthlySubscription":"Pago mensual","templatePriceUnit:monthlySubscription":"{{{price}}}/mes"},Ic={close:"Cerrar",hide:"Ocultar",show:"Mostrar",loading:"Cargando..."},Tc={enterPromoCode:"Introduce tu c\xF3digo",apply:"Aplicar",clear:"Borrar",promoCodeApplied:"C\xF3digo aplicado correctamente.",offerDetails:"Detalles de la oferta",changeCode:"Cambiar c\xF3digo",promotionalCode:"C\xF3digo: {{{promoCode}}}",currentPromo:"C\xF3digo actual:",clearPromo:"Borrar c\xF3digo",updatePromo:"Actualizar c\xF3digo",noPromo:"No se ha aplicado ning\xFAn c\xF3digo",addPromoPrompt:"\xBFTienes un c\xF3digo?",promoCodeClearFailed:"No se puede borrar el c\xF3digo de descuento.",NotApplicable:"Este c\xF3digo no existe. Prueba con otro.",RequiresMissingCustomerGroup:"Este c\xF3digo no es v\xE1lido para tu cuenta. Prueba con otro.",Expired:"Este c\xF3digo ha caducado. Prueba con uno activo.",NotLiveYet:"Este c\xF3digo a\xFAn no est\xE1 activo. Vuelve a intentarlo m\xE1s tarde.",UnableToValidate:"Este c\xF3digo no funciona. Vuelve a intentarlo m\xE1s tarde.",OncePerShopper:"Este c\xF3digo ya se ha utilizado. Utiliza otro diferente.",ExceedsUsageLimit:"Este c\xF3digo ya no puede utilizarse m\xE1s veces.",RequiresLoggedInShopper:"Inicia sesi\xF3n para usar este c\xF3digo."},Pc={postageFee:"Gastos de env\xEDo",mailingServiceFee:"Servicio de lista de correo",rushProcessingFee:"Procesamiento urgente",setupFee:"Configuraci\xF3n",fallbackFee:"Recargos adicionales"},Ac={cartItemsCountMessages:Cc,cartLabelMessages:Sc,miniCartMessages:wc,errorMessages:kc,templateBillingMessages:Ec,a11yLabels:Ic,couponMessages:Tc,feeMessages:Pc},Lc={cartItemsCount:"Number of items in cart: ",zeroCartItemsCount:"Your cart is empty."},Mc={cartLabel:"Cart",flyoutTitle:"My Cart"},xc={cartButton:"Go to cart",emptyCart:"Cart is empty.",signInPrompt:"Already have an account? Sign in to view your selected items.",signInButton:"Sign in",continueButton:"Continue shopping",checkoutButton:"Checkout",groupTotal:"Group total",yourItems:"Your items",pricingSummary:"Pricing summary",youSaved:"You saved",thisOrder:"This order",productSubtotal:"Product subtotal",cartLoading:"Preparing the cart...",remove:"Remove",basePrice:"Base price:",edit:"Edit"},_c={genericIssuesError:"There are issues with items in your cart.",fetchingIssuesError:"We're sorry, an error occurred loading your cart.",tryAgainOrContactCare:"Please try again or contact CARE if this problem persists."},Oc={pricingSummaryPayToday:"This order","itemPriceLabel:annualSubscription":"To pay today","templatePriceLabel:annualSubscription":"Annual subscription","templateSummaryLabel:annualSubscription":"Annual subscriptions","templateSummarySubtotal:annualSubscription":"Annual payment","templatePriceUnit:annualSubscription":"{{{price}}}/yr","itemPriceLabel:monthlySubscription":"To pay today","templatePriceLabel:monthlySubscription":"Monthly subscription","templateSummaryLabel:monthlySubscription":"Monthly subscriptions","templateSummarySubtotal:monthlySubscription":"Monthly payment","templatePriceUnit:monthlySubscription":"{{{price}}}/mo"},Nc={close:"Close",hide:"Hide",show:"Show",loading:"Loading..."},Rc={enterPromoCode:"Enter your code",apply:"Apply",clear:"Clear",promoCodeApplied:"Code applied successfully.",offerDetails:"Offer details",changeCode:"Change code",promotionalCode:"Code: {{{promoCode}}}",currentPromo:"Current code:",clearPromo:"Clear code",updatePromo:"Update code",noPromo:"No code applied",addPromoPrompt:"Have a code?",promoCodeClearFailed:"Could not clear discount code.",NotApplicable:"This code doesn\u2019t exist. Please try another one.",RequiresMissingCustomerGroup:"This code isn\u2019t valid for your account. Please try another one.",Expired:"This code has expired. Please try an active one.",NotLiveYet:"This code isn\u2019t active yet. Please try it again later.",UnableToValidate:"This code isn\u2019t working. Please try it again later.",OncePerShopper:"This code has already been used. Please use another one.",ExceedsUsageLimit:"This code has reached the limit of times it can be used.",RequiresLoggedInShopper:"Sign in to apply this code."},Dc={postageFee:"Postage",mailingServiceFee:"Mailing list service",rushProcessingFee:"Rush processing",setupFee:"Setup",fallbackFee:"Additional fees"},Ln={cartItemsCountMessages:Lc,cartLabelMessages:Mc,miniCartMessages:xc,errorMessages:_c,templateBillingMessages:Oc,a11yLabels:Nc,couponMessages:Rc,feeMessages:Dc},Bc={cartItemsCount:"Numero di articoli nel carrello: ",zeroCartItemsCount:"Il tuo carrello \xE8 vuoto."},Fc={cartLabel:"Carrello",flyoutTitle:"Il mio carrello"},$c={cartButton:"Vai al carrello",emptyCart:"Il carrello \xE8 vuoto.",signInPrompt:"Hai gi\xE0 un account? Accedi per visualizzare gli articoli che hai selezionato.",signInButton:"Accedi",continueButton:"Continua a fare acquisti",checkoutButton:"Conferma ordine",groupTotal:"Totale gruppo",yourItems:"I tuoi articoli",pricingSummary:"Riepilogo prezzi",youSaved:"Hai risparmiato",thisOrder:"Questo ordine",productSubtotal:"Subtotale prodotto",cartLoading:"Preparazione del carrello in corso...",remove:"Rimuovi",basePrice:"Prezzo di base:",edit:"Modifica"},Uc={genericIssuesError:"Si sono verificati degli errori con degli articoli presenti nel carrello.",fetchingIssuesError:"Siamo spiacenti, si \xE8 verificato un errore durante il caricamento del carrello.",tryAgainOrContactCare:"Prova di nuovo o contatta l\u2019assistenza clienti se il problema persiste."},jc={pricingSummaryPayToday:"Questo ordine","itemPriceLabel:annualSubscription":"Da pagare oggi","templatePrice
1Label:annualSubscription":"Abbonamento annuale","templateSummaryLabel:annualSubscription":"Abbonamenti annuali","templateSummarySubtotal:annualSubscription":"Pagamento annuale","templatePriceUnit:annualSubscription":"{{{price}}}/anno","itemPriceLabel:monthlySubscription":"Da pagare oggi","templatePriceLabel:monthlySubscription":"Abbonamento mensile","templateSummaryLabel:monthlySubscription":"Abbonamenti mensili","templateSummarySubtotal:monthlySubscription":"Pagamento mensile","templatePriceUnit:monthlySubscription":"{{{price}}}/mese"},Vc={close:"Chiudi",hide:"Nascondi",show:"Mostra",loading:"Caricamento in corso..."},Gc={enterPromoCode:"Inserisci il tuo codice",apply:"Applica",clear:"Annulla",promoCodeApplied:"Codice applicato correttamente.",offerDetails:"Dettagli offerta",changeCode:"Modifica codice",promotionalCode:"Codice: {{{promoCode}}}",currentPromo:"Codice attuale:",clearPromo:"Rimuovi codice",updatePromo:"Aggiorna codice",noPromo:"Nessun codice applicato",addPromoPrompt:"Hai un codice?",promoCodeClearFailed:"Impossibile cancellare il codice sconto.",NotApplicable:"Questo codice non esiste. Riprova con un altro codice.",RequiresMissingCustomerGroup:"Questo codice non \xE8 valido per il tuo account. Riprova con un altro codice.",Expired:"Questo codice \xE8 scaduto. Riprova con un codice attivo.",NotLiveYet:"Questo codice non \xE8 ancora attivo. Prova a usarlo pi\xF9 tardi.",UnableToValidate:"Questo codice non funziona. Prova a usarlo pi\xF9 tardi.",OncePerShopper:"Questo codice \xE8 gi\xE0 stato usato. Prova con un altro codice.",ExceedsUsageLimit:"Questo codice ha raggiunto il limite di volte che pu\xF2 essere utilizzato.",RequiresLoggedInShopper:"Effettua l'accesso per applicare il codice."},Hc={postageFee:"Affrancatura",mailingServiceFee:"Servizio di mailing list",rushProcessingFee:"Elaborazione urgente",setupFee:"Preparazione",fallbackFee:"Spese aggiuntive"},No={cartItemsCountMessages:Bc,cartLabelMessages:Fc,miniCartMessages:$c,errorMessages:Uc,templateBillingMessages:jc,a11yLabels:Vc,couponMessages:Gc,feeMessages:Hc},zc={cartItemsCount:"Nombre d\u2019articles dans le panier d\u2019achat\xA0: ",zeroCartItemsCount:"Votre panier d\u2019achat est vide."},Kc={cartLabel:"Panier",flyoutTitle:"Mon panier"},Wc={cartButton:"Acc\xE9der au panier",emptyCart:"Le panier est vide.",signInPrompt:"Vous avez d\xE9j\xE0 un compte\xA0? Connectez-vous pour voir tous les articles s\xE9lectionn\xE9s.",signInButton:"Connexion",continueButton:"Continuer vos achats",checkoutButton:"Valider mon panier",groupTotal:"Total du groupe",yourItems:"Vos articles",pricingSummary:"R\xE9capitulatif du prix",youSaved:"Vous \xE9conomisez",thisOrder:"Cette commande",productSubtotal:"Sous-total du produit",cartLoading:"Pr\xE9paration du panier\u2026",remove:"Supprimer",basePrice:"Prix\xA0de base\xA0:",edit:"Modifier"},Yc={genericIssuesError:"Un probl\xE8me est survenu avec des articles de votre panier.",fetchingIssuesError:"Malheureusement, une erreur s\u2019est produite lors du chargement de votre panier d\u2019achat.",tryAgainOrContactCare:"Veuillez r\xE9essayer ou contacter le service client si le probl\xE8me persiste."},qc={pricingSummaryPayToday:"Cette commande","itemPriceLabel:annualSubscription":"Payable aujourd\u2019hui","templatePriceLabel:annualSubscription":"Abonnement annuel","templateSummaryLabel:annualSubscription":"Abonnements annuels","templateSummarySubtotal:annualSubscription":"Facturation annuelle","templatePriceUnit:annualSubscription":"{{{price}}}/an","itemPriceLabel:monthlySubscription":"Payable aujourd\u2019hui","templatePriceLabel:monthlySubscription":"Abonnement mensuel","templateSummaryLabel:monthlySubscription":"Abonnements mensuels","templateSummarySubtotal:monthlySubscription":"Facturation mensuelle","templatePriceUnit:monthlySubscription":"{{{price}}}/mois"},Jc={close:"Fermer",hide:"Masquer",show:"Afficher",loading:"Chargement\u2026"},Xc={enterPromoCode:"Saisissez votre code",apply:"Appliquer",clear:"Effacer",promoCodeApplied:"Le code a bien \xE9t\xE9 appliqu\xE9.",offerDetails:"D\xE9tails de l\u2019offre",changeCode:"Changer le code",promotionalCode:"Code\xA0: {{{promoCode}}}",currentPromo:"Code actuel\xA0:",clearPromo:"Effacer le code",updatePromo:"Actualiser le code",noPromo:"Aucun code appliqu\xE9",addPromoPrompt:"Avez-vous un code ?",promoCodeClearFailed:"Le code promo n\u2019a pas pu \xEAtre effac\xE9.",NotApplicable:"Ce code n\u2019existe pas. Veuillez essayer un autre code.",RequiresMissingCustomerGroup:"Ce code n\u2019est pas valide pour votre compte. Veuillez essayer un autre code.",Expired:"Ce code a expir\xE9. Veuillez essayer un code actif.",NotLiveYet:"Ce code n\u2019est pas encore actif. Veuillez essayer de l\u2019utiliser plus tard.",UnableToValidate:"Ce code ne fonctionne pas. Veuillez essayer de l\u2019utiliser plus tard.",OncePerShopper:"Ce code a d\xE9j\xE0 \xE9t\xE9 utilis\xE9. Veuillez utiliser un autre code.",ExceedsUsageLimit:"Ce code a atteint le nombre limite d\u2019utilisations autoris\xE9es.",RequiresLoggedInShopper:"Connectez-vous pour appliquer ce code."},Zc={postageFee:"Frais postaux",mailingServiceFee:"Liste de distribution",rushProcessingFee:"Traitement express",setupFee:"Configuration",fallbackFee:"Frais suppl\xE9mentaires"},Mn={cartItemsCountMessages:zc,cartLabelMessages:Kc,miniCartMessages:Wc,errorMessages:Yc,templateBillingMessages:qc,a11yLabels:Jc,couponMessages:Xc,feeMessages:Zc},Qc={cartItemsCount:"Anzahl an Artikeln im Warenkorb: ",zeroCartItemsCount:"Ihr Warenkorb ist leer."}
1,el={cartLabel:"Warenkorb",flyoutTitle:"Mein Warenkorb"},tl={cartButton:"Zum Warenkorb",emptyCart:"Warenkorb ist leer.",signInPrompt:"Sie haben schon ein Konto? Loggen Sie sich ein, um Ihre ausgew\xE4hlten Artikel anzusehen.",signInButton:"Einloggen",continueButton:"Mehr shoppen",checkoutButton:"Kasse",groupTotal:"Gesamtpreis",yourItems:"Ihre Artikel",pricingSummary:"Preis\xFCbersicht",youSaved:"So viel haben Sie gespart",thisOrder:"Diese Bestellung",productSubtotal:"Zwischensumme",cartLoading:"Warenkorb wird vorbereitet ...",remove:"Entfernen",basePrice:"Grundpreis:",edit:"Bearbeiten"},nl={genericIssuesError:"Es gibt Probleme mit Artikeln in Ihrem Warenkorb.",fetchingIssuesError:"Leider ist beim Laden Ihres Warenkorbs ein Fehler aufgetreten.",tryAgainOrContactCare:"Versuchen Sie es noch einmal oder kontaktieren Sie den Kundenservice, falls das Problem fortbesteht."},rl={pricingSummaryPayToday:"Diese Bestellung","itemPriceLabel:annualSubscription":"Heute f\xE4lliger Betrag","templatePriceLabel:annualSubscription":"Jahresabo","templateSummaryLabel:annualSubscription":"Jahresabos","templateSummarySubtotal:annualSubscription":"J\xE4hrliche Zahlung","templatePriceUnit:annualSubscription":"{{{price}}}/Jahr","itemPriceLabel:monthlySubscription":"Heute f\xE4lliger Betrag","templatePriceLabel:monthlySubscription":"Monatsabo","templateSummaryLabel:monthlySubscription":"Monatsabos","templateSummarySubtotal:monthlySubscription":"Monatliche Zahlung","templatePriceUnit:monthlySubscription":"{{{price}}}/Monat"},ol={close:"Schlie\xDFen",hide:"Verbergen",show:"Anzeigen",loading:"Wird geladen\u2026"},al={enterPromoCode:"Code eingeben",apply:"Anwenden",clear:"L\xF6schen",promoCodeApplied:"Der Code wurde erfolgreich angewandt.",offerDetails:"Angebotsdetails",changeCode:"Code \xE4ndern",promotionalCode:"Code: {{{promoCode}}}",currentPromo:"Aktueller Code:",clearPromo:"Code l\xF6schen",updatePromo:"Code aktualisieren",noPromo:"Kein Code angewendet",addPromoPrompt:"Haben Sie einen Angebotscode?",promoCodeClearFailed:"Rabattcode konnte nicht gel\xF6scht werden.",NotApplicable:"Dieser Code existiert nicht. Versuchen Sie es mit einem anderen Code noch einmal.",RequiresMissingCustomerGroup:"Dieser Code ist f\xFCr Ihr Konto nicht g\xFCltig. Versuchen Sie es mit einem anderen Code noch einmal.",Expired:"Dieser Code ist nicht mehr g\xFCltig. Versuchen Sie es mit einem g\xFCltigen Code noch einmal.",NotLiveYet:"Dieser Code wurde noch nicht aktiviert. Bitte versuchen Sie es sp\xE4ter erneut.",UnableToValidate:"Dieser Code wurde nicht erkannt. Bitte versuchen Sie es sp\xE4ter erneut.",OncePerShopper:"Dieser Code wurde bereits eingel\xF6st. Geben Sie einen anderen Code ein.",ExceedsUsageLimit:"Dieser Code wurde bereits so oft eingel\xF6st wie m\xF6glich.",RequiresLoggedInShopper:"Loggen Sie sich ein, um diesen Code anzuwenden."},il={postageFee:"Porto",mailingServiceFee:"Verteilerlistenservice",rushProcessingFee:"Expressbearbeitung",setupFee:"Einrichtung",fallbackFee:"Zus\xE4tzliche Geb\xFChren"},xn={cartItemsCountMessages:Qc,cartLabelMessages:el,miniCartMessages:tl,errorMessages:nl,templateBillingMessages:rl,a11yLabels:ol,couponMessages:al,feeMessages:il},sl={cartItemsCount:"Antal varer i indk\xF8bsvognen: ",zeroCartItemsCount:"Din indk\xF8bsvogn er tom."},cl={cartLabel:"Indk\xF8bsvogn",flyoutTitle:"Min indk\xF8bsvogn"},ll={cartButton:"G\xE5 til indk\xF8bsvognen",emptyCart:"Indk\xF8bsvognen er tom.",signInPrompt:"Har du allerede en konto? Log ind for at se dine valgte varer.",signInButton:"Log ind",continueButton:"Forts\xE6t indk\xF8b",checkoutButton:"G\xE5 til kassen",groupTotal:"Gruppe i alt",yourItems:"Dine produkter",pricingSummary:"Prisoversigt",youSaved:"Du har sparet",thisOrder:"Denne bestilling",productSubtotal:"Subtotal for produkter",cartLoading:"Forbereder indk\xF8bsvognen ...",remove:"Fjern",basePrice:"Basispris:",edit:"Rediger"},dl={genericIssuesError:"Der er problemer med produkterne i indk\xF8bsvognen.",fetchingIssuesError:"Beklager, der opstod en fejl ved indl\xE6sning af din indk\xF8bsvogn.",tryAgainOrContactCare:"Pr\xF8v igen, eller kontakt kundeservice, hvis problemet forts\xE6tter."},ul={pricingSummaryPayToday:"Denne bestilling","itemPriceLabel:annualSubscription":"At betale i dag","templatePrice
1Label:annualSubscription":"\xC5rligt abonnement","templateSummaryLabel:annualSubscription":"\xC5rlige abonnementer","templateSummarySubtotal:annualSubscription":"\xC5rlig betaling","templatePriceUnit:annualSubscription":"{{{price}}}/\xE5r","itemPriceLabel:monthlySubscription":"At betale i dag","templatePriceLabel:monthlySubscription":"M\xE5nedligt abonnement","templateSummaryLabel:monthlySubscription":"M\xE5nedlige abonnementer","templateSummarySubtotal:monthlySubscription":"M\xE5nedlig betaling","templatePriceUnit:monthlySubscription":"{{{price}}}/md"},pl={close:"Luk",hide:"Skjul",show:"Vis",loading:"Indl\xE6ser ..."},gl={enterPromoCode:"Indtast din kode",apply:"Anvend",clear:"Transparent",promoCodeApplied:"Koden blev anvendt.",offerDetails:"Detaljer om tilbuddet",changeCode:"Skift kode",promotionalCode:"Rabatkode: {{{promoCode}}}",currentPromo:"Aktuel kode:",clearPromo:"Ryd kode",updatePromo:"Opdater kode",noPromo:"Ingen rabatkode aktiveret",addPromoPrompt:"Har du en rabatkode?",promoCodeClearFailed:"Kunne ikke slette rabatkode.",NotApplicable:"Denne kode findes ikke. Pr\xF8v en anden.",RequiresMissingCustomerGroup:"Denne rabatkode er ikke gyldig for din konto. Pr\xF8v en anden.",Expired:"Denne kode er udl\xF8bet. Pr\xF8v en aktiv kode.",NotLiveYet:"Denne kode er ikke aktiv endnu. Pr\xF8v igen senere.",UnableToValidate:"Denne kode virker ikke. Pr\xF8v igen senere.",OncePerShopper:"Denne rabatkode er allerede blevet brugt. Benyt venligst en anden.",ExceedsUsageLimit:"Denne kode har n\xE5et gr\xE6nsen for, hvor mange gange den kan bruges.",RequiresLoggedInShopper:"Log ind for at anvende denne kode."},ml={postageFee:"Porto",mailingServiceFee:"Mailingliste-service",rushProcessingFee:"Hastebehandling",setupFee:"Ops\xE6tning",fallbackFee:"Ekstragebyr"},fl={cartItemsCountMessages:sl,cartLabelMessages:cl,miniCartMessages:ll,errorMessages:dl,templateBillingMessages:ul,a11yLabels:pl,couponMessages:gl,feeMessages:ml},hl={cartItemsCount:"Antal artiklar i kundvagn: ",zeroCartItemsCount:"Din kundvagn \xE4r tom."},yl={cartLabel:"Kundvagn",flyoutTitle:"Min kundvagn"},vl={cartButton:"G\xE5 till kundvagn",emptyCart:"Kundvagnen \xE4r tom.",signInPrompt:"Har du redan ett konto? Logga in f\xF6r att se dina valda artiklar.",signInButton:"Logga in",continueButton:"Forts\xE4tt handla",checkoutButton:"Kassa",groupTotal:"Totalbelopp samling",yourItems:"Dina artiklar",pricingSummary:"Prissammanfattning",youSaved:"Du har sparat",thisOrder:"Den h\xE4r best\xE4llningen",productSubtotal:"Delsumma f\xF6r produkter",cartLoading:"F\xF6rbereder kundvagn\xA0...",remove:"Ta bort",basePrice:"Grundpris:",edit:"Redigera"},bl={genericIssuesError:"Det \xE4r problem med artiklar i kundvagnen.",fetchingIssuesError:"Ett fel uppstod tyv\xE4rr n\xE4r kundvagnen skulle laddas.",tryAgainOrContactCare:"F\xF6rs\xF6k igen eller kontakta kundservice om problemet kvarst\xE5r."},Cl={pricingSummaryPayToday:"Den h\xE4r best\xE4llningen","itemPriceLabel:annualSubscription":"Att betala idag","templatePriceLabel:annualSubscription":"\xC5rsabonnemang","templateSummaryLabel:annualSubscription":"\xC5rsabonnemang","templateSummarySubtotal:annualSubscription":"\xC5rlig betalning","templatePriceUnit:annualSubscription":"{{{price}}}/\xE5r","itemPriceLabel:monthlySubscription":"Att betala idag","templatePriceLabel:monthlySubscription":"M\xE5nadsabonnemang","templateSummaryLabel:monthlySubscription":"M\xE5nadsabonnemang","templateSummarySubtotal:monthlySubscription":"M\xE5nadsbetalning","templatePriceUnit:monthlySubscription":"{{{price}}}/m\xE5n"},Sl={close:"St\xE4ng",hide:"D\xF6lj",show:"Visa",loading:"L\xE4ser in\xA0..."},wl={enterPromoCode:"Ange din kod",apply:"Till\xE4mpa",clear:"Genomskinliga",promoCodeApplied:"Koden har till\xE4mpats.",offerDetails:"Information om erbjudandet",changeCode:"\xC4ndra kod",promotionalCode:"Kod: {{{promoCode}}}",currentPromo:"Nuvarande kod:",clearPromo:"Rensa kod",updatePromo:"Uppdatera kod",noPromo:"Ingen kod har aktiverats",addPromoPrompt:"Har du en kod?",promoCodeClearFailed:"Det gick inte att rensa rabattkoden.",NotApplicable:"Den h\xE4r koden existerar inte. Pr\xF6va med en annan.",RequiresMissingCustomerGroup:"Den h\xE4r koden \xE4r inte giltig f\xF6r ditt konto. Pr\xF6va med en annan.",Expired:"Den h\xE4r koden har g\xE5tt ut. F\xF6rs\xF6k med en som g\xE4ller.",NotLiveYet:"Den h\xE4r koden \xE4r inte giltig \xE4n. F\xF6rs\xF6k igen sen
1are.",UnableToValidate:"Den h\xE4r koden fungerar inte. F\xF6rs\xF6k igen senare.",OncePerShopper:"Den h\xE4r koden har redan anv\xE4nts. Pr\xF6va med en annan.",ExceedsUsageLimit:"Den h\xE4r koden har n\xE5tt gr\xE4nsen f\xF6r hur m\xE5nga g\xE5nger den kan anv\xE4ndas.",RequiresLoggedInShopper:"Logga in f\xF6r att till\xE4mpa koden."},kl={postageFee:"Porto",mailingServiceFee:"Utskickslista som tj\xE4nst",rushProcessingFee:"Expresshantering",setupFee:"Konfiguration",fallbackFee:"Ytterligare avgifter"},El={cartItemsCountMessages:hl,cartLabelMessages:yl,miniCartMessages:vl,errorMessages:bl,templateBillingMessages:Cl,a11yLabels:Sl,couponMessages:wl,feeMessages:kl},Il={cartItemsCount:"Antall artikler i handlevognen: ",zeroCartItemsCount:"Handlevognen din er tom."},Tl={cartLabel:"Handlevogn",flyoutTitle:"Handlevogn"},Pl={cartButton:"Legg i handlevognen",emptyCart:"Handlevognen din er tom.",signInPrompt:"Har du allerede en konto? Logg inn for \xE5 se produktene du har valgt.",signInButton:"Logg inn",continueButton:"Handle mer",checkoutButton:"G\xE5 til kassen",groupTotal:"Totalt gruppe",yourItems:"Dine varer",pricingSummary:"Prisoversikt",youSaved:"Du sparte",thisOrder:"Denne bestillingen",productSubtotal:"Delsum produkt",cartLoading:"Forbereder handlevognen\xA0\u2026",remove:"Fjern",basePrice:"Grunnpris:",edit:"Redigere"},Al={genericIssuesError:"Det oppsto problemer med varene i handlevognen din.",fetchingIssuesError:"Vi beklager, men det oppstod en feil under opplastingen av handlevognen din.",tryAgainOrContactCare:"Pr\xF8v p\xE5 nytt, eller ta kontakt med kundeservice hvis problemet vedvarer."},Ll={pricingSummaryPayToday:"Denne bestillingen","itemPriceLabel:annualSubscription":"M\xE5 betales i dag","templatePriceLabel:annualSubscription":"\xC5rlig abonnement","templateSummaryLabel:annualSubscription":"\xC5rlige abonnementer","templateSummarySubtotal:annualSubscription":"\xC5rlig betaling","templatePriceUnit:annualSubscription":"{{{price}}}/\xE5r","itemPriceLabel:monthlySubscription":"M\xE5 betales i dag","templatePriceLabel:monthlySubscription":"M\xE5nedlig abonnement","templateSummaryLabel:monthlySubscription":"M\xE5nedlige abonnementer","templateSummarySubtotal:monthlySubscription":"M\xE5nedlig betaling","templatePriceUnit:monthlySubscription":"{{{price}}}/mnd."},Ml={close:"Lukk",hide:"Skjul",show:"Vis",loading:"Laster ..."},xl={enterPromoCode:"Legg til koden din",apply:"Bruk",clear:"Fjern",promoCodeApplied:"Koden er p\xE5f\xF8rt.",offerDetails:"Tilbudsopplysninger",changeCode:"Endre kode",promotionalCode:"Kode: {{{promoCode}}}",currentPromo:"Aktuell kode:",clearPromo:"Fjern kode",updatePromo:"Oppdater kode",noPromo:"Ingen kode brukt",addPromoPrompt:"Har du en kode?",promoCodeClearFailed:"Kunne ikke fjerne rabattkode.",NotApplicable:"Denne koden finnes ikke. Pr\xF8v heller en annen.",RequiresMissingCustomerGroup:"Denne koden er ikke gyldig for kontoen din. Pr\xF8v heller en annen.",Expired:"Denne koden er utl\xF8pt. Pr\xF8v heller en aktiv kode.",NotLiveYet:"Denne koden er ikke aktiv enda. Pr\xF8v igjen senere.",UnableToValidate:"Denne koden fungerer ikke. Pr\xF8v igjen senere.",OncePerShopper:"Denne koden er allerede brukt. Pr\xF8v en annen kode.",ExceedsUsageLimit:"Denne koden kan ikke brukes flere ganger.",RequiresLoggedInShopper:"Logg inn for \xE5 bruke denne koden."},_l={postageFee:"Porto",mailingServiceFee:"Tjeneste for e-postutsendelser",rushProcessingFee:"Rask behandling",setupFee:"Oppstart",fallbackFee:"Ekstra kostnader"},Ol={cartItemsCountMessages:Il,cartLabelMessages:Tl,miniCartMessages:Pl,errorMessages:Al,templateBillingMessages:Ll,a11yLabels:Ml,couponMessages:xl,feeMessages:_l},Nl={cartItemsCount:"Ostoskorin tuotteiden lukum\xE4\xE4r\xE4: ",zeroCartItemsCount:"Ostoskori on tyhj\xE4."},Rl={cartLabel:"Ostoskori",flyoutTitle:"Oma ostoskori"},Dl={cartButton:"Siirry ostoskoriin",emptyCart:"Ostoskori on tyhj\xE4.",signInPrompt:"Onko sinulla jo tili? Kirjaudu sis\xE4\xE4n n\xE4hd\xE4ksesi valitsemasi tuotteet.",signInButton:"Kirjaudu sis\xE4\xE4n",continueButton:"Jatka ostoksia",checkoutButton:"Kassa",groupTotal:"Ryhm\xE4 yhteens\xE4",yourItems:"Tuotteesi",pricingSummary:"Hintojen yhteenveto",youSaved:"S\xE4\xE4stit",thisOrder:"T\xE4m\xE4 tilaus",productSubtotal:"Tuotteiden v\xE4lisumma",cartLoading:"Valmistellaan ostoskoria...",remove:"Poista",basePrice:"Perushinta:",edit:"Muokkaa"},Bl={genericIssuesError:"Ostoskorissasi oleviin tuotteisiin liittyy ongelmia.",fetchingIssuesError:"Ostoskoriasi ladattaessa tapahtui virhe.",tryAgainOrContactCare:"Yrit\xE4 uudelleen tai ota yhteytt\xE4 tukeen, jos ongelma jatkuu."},Fl={pricingSummaryPayToday:"T\xE4m\xE4 tilaus","itemPriceLabel:annualSubscription":"Maksetaan t\xE4n\xE4\xE4n","templatePrice
1Label:annualSubscription":"Vuositilaus","templateSummaryLabel:annualSubscription":"Vuositilaukset","templateSummarySubtotal:annualSubscription":"Vuosimaksu","templatePriceUnit:annualSubscription":"{{{price}}}/vuosi","itemPriceLabel:monthlySubscription":"Maksetaan t\xE4n\xE4\xE4n","templatePriceLabel:monthlySubscription":"Kuukausitilaus","templateSummaryLabel:monthlySubscription":"Kuukausitilaukset","templateSummarySubtotal:monthlySubscription":"Kuukausimaksu","templatePriceUnit:monthlySubscription":"{{{price}}}/kk"},$l={close:"Sulje",hide:"Piilota",show:"N\xE4yt\xE4",loading:"Ladataan..."},Ul={enterPromoCode:"Lis\xE4\xE4 koodi",apply:"K\xE4yt\xE4",clear:"Tyhjenn\xE4",promoCodeApplied:"Koodi k\xE4ytetty onnistuneesti",offerDetails:"Tarjouksen tiedot",changeCode:"Vaihda koodia",promotionalCode:"Koodi: {{{promoCode}}}",currentPromo:"Nykyinen koodi: ",clearPromo:"Tyhjenn\xE4 koodi",updatePromo:"P\xE4ivit\xE4 koodi",noPromo:"Koodia ei k\xE4ytetty",addPromoPrompt:"Onko sinulla koodi?",promoCodeClearFailed:"Alennuskoodin tyhjent\xE4minen ei onnistunut.",NotApplicable:"Koodia ei tunnisteta. Yrit\xE4 k\xE4ytt\xE4\xE4 jotakin muuta koodia.",RequiresMissingCustomerGroup:"Koodia ei voida k\xE4ytt\xE4\xE4 tilill\xE4si. Yrit\xE4 k\xE4ytt\xE4\xE4 jotakin muuta koodia.",Expired:"Koodi on vanhentunut. Kokeile voimassaolevaa koodia.",NotLiveYet:"Koodi ei ole viel\xE4 voimassa. Yrit\xE4 my\xF6hemmin uudelleen.",UnableToValidate:"Koodi ei toimi. Yrit\xE4 my\xF6hemmin uudelleen.",OncePerShopper:"Koodi on jo k\xE4ytetty. Kokeile toista koodia.",ExceedsUsageLimit:"Koodia ei voi en\xE4\xE4 k\xE4ytt\xE4\xE4.",RequiresLoggedInShopper:"Kirjaudu sis\xE4\xE4n k\xE4ytt\xE4\xE4ksesi t\xE4t\xE4 koodia."},jl={postageFee:"L\xE4hetys ja k\xE4sittely",mailingServiceFee:"Postituslistapalvelu",rushProcessingFee:"K\xE4sitell\xE4\xE4n kiireellisen\xE4",setupFee:"J\xE4rjestely",fallbackFee:"Lis\xE4maksut"},Vl={cartItemsCountMessages:Nl,cartLabelMessages:Rl,miniCartMessages:Dl,errorMessages:Bl,templateBillingMessages:Fl,a11yLabels:$l,couponMessages:Ul,feeMessages:jl},Gl={cartItemsCount:"Aantal artikelen in je winkelwagentje: ",zeroCartItemsCount:"Je winkelwagentje is leeg."},Hl={cartLabel:"Winkelwagentje",flyoutTitle:"Mijn winkelwagentje"},zl={cartButton:"Ga naar winkelwagentje",emptyCart:"Winkelwagentje is leeg.",signInPrompt:"Heb je al een account? Log in om je geselecteerde artikelen te zien.",signInButton:"Log in",continueButton:"Doorgaan met winkelen",checkoutButton:"Betaalpagina",groupTotal:"Totaal groep",yourItems:"Jouw artikelen",pricingSummary:"Prijsoverzicht",youSaved:"Je bespaart",thisOrder:"Deze bestelling",productSubtotal:"Subtotaal van je producten",cartLoading:"Winkelwagentje voorbereiden...",remove:"Verwijderen",basePrice:"Basisprijs:",edit:"Bewerken"},Kl={genericIssuesError:"Er zijn problemen met artikelen in je winkelwagentje.",fetchingIssuesError:"Er is helaas een fout opgetreden tijdens het laden van je winkelwagentje.",tryAgainOrContactCare:"Probeer het opnieuw of neem contact op met de klantenservice als het probleem zich blijft voordoen."},Wl={pricingSummaryPayToday:"Deze bestelling","itemPriceLabel:annualSubscription":"Vandaag te betalen","templatePriceLabel:annualSubscription":"Jaarabonnement","templateSummaryLabel:annualSubscription":"Jaarabonnementen","templateSummarySubtotal:annualSubscription":"Betaling per jaar","templatePriceUnit:annualSubscription":"{{{price}}}/jaar","itemPriceLabel:monthlySubscription":"Vandaag te betalen","templatePriceLabel:monthlySubscription":"Maandabonnement","templateSummaryLabel:monthlySubscription":"Maandabonnementen","templateSummarySubtotal:monthlySubscription":"Betaling per maand","templatePriceUnit:monthlySubscription":"{{{price}}}/maand"},Yl={close:"Sluiten",hide:"Verbergen",show:"Weergeven",loading:"Bezig met laden..."},ql={enterPromoCode:"Voer je code in",apply:"Toepassen",clear:"Verwijderen",promoCodeApplied:"Code is toegepast.",offerDetails:"Details van de aanbieding",changeCode:"Code wijzigen",promotionalCode:"Code: {{{promoCode}}}",currentPromo:"Huidige code:",clearPromo:"Code wissen",updatePromo:"Code bijwerken",noPromo:"Geen code toegepast",addPromoPrompt:"Heb je een code?",promoCodeClearFailed:"Kortingscode verwijderen is mislukt.",NotApplicable:"Deze code bestaat niet. Probeer een andere.",RequiresMissingCustomerGroup:"Deze code is niet geldig voor je account. Probeer een andere.",Expired:"Deze code is verlopen. Probeer een actieve code.",NotLiveYet:"Deze code is nog niet actief. Probeer het later opnieuw.",UnableToValidate:"Deze code werkt niet. Probeer het later opnieuw.",OncePerShopper:"Deze code is al gebruikt. Gebruik een andere.",ExceedsUsageLimit:"Deze code is het maximaal aantal keren gebruikt.",RequiresLoggedInShopper:"Log in om deze code toe te passen."},Jl={postageFee:"Frankeren",mailingServiceFee:"Mailinglijstdiensten",rushProcessingFee:"Spoedverwerking",setupFee:"Instellen",fallbackFee:"Extra kosten"}
1,Ro={cartItemsCountMessages:Gl,cartLabelMessages:Hl,miniCartMessages:zl,errorMessages:Kl,templateBillingMessages:Wl,a11yLabels:Yl,couponMessages:ql,feeMessages:Jl},Xl={cartItemsCount:"Nombre d\u2019articles dans le panier\xA0: ",zeroCartItemsCount:"Votre panier est vide."},Zl={cartLabel:"Panier",flyoutTitle:"Mon panier"},Ql={cartButton:"Acc\xE9der au panier",emptyCart:"Le panier est vide.",signInPrompt:"Vous avez d\xE9j\xE0 un compte? Connectez-vous pour voir les articles que vous avez s\xE9lectionn\xE9s.",signInButton:"Se connecter",continueButton:"Poursuivre mes achats",checkoutButton:"Payer",groupTotal:"Total final",yourItems:"Vos articles",pricingSummary:"R\xE9sum\xE9 des prix",youSaved:"Vous avez \xE9conomis\xE9",thisOrder:"Cette commande",productSubtotal:"Sous-total produits",cartLoading:"Panier en cours de pr\xE9paration...",remove:"Supprimer",basePrice:"Prix de base\xA0:",edit:"Modifier"},ed={genericIssuesError:"Certains articles de votre panier posent des probl\xE8mes.",fetchingIssuesError:"Toutes nos excuses, une erreur s\u2019est produite lors du chargement de votre panier.",tryAgainOrContactCare:"Veuillez r\xE9essayer ou contacter le service \xE0 la client\xE8le si ce probl\xE8me persiste."},td={pricingSummaryPayToday:"Cette commande","itemPriceLabel:annualSubscription":"\xC0 payer aujourd\u2019hui","templatePriceLabel:annualSubscription":"Abonnement annuel","templateSummaryLabel:annualSubscription":"Abonnements annuels","templateSummarySubtotal:annualSubscription":"Paiement annuel","templatePriceUnit:annualSubscription":"{{{price}}}/an","itemPriceLabel:monthlySubscription":"\xC0 payer aujourd\u2019hui","templatePriceLabel:monthlySubscription":"Abonnement mensuel","templateSummaryLabel:monthlySubscription":"Abonnements mensuels","templateSummarySubtotal:monthlySubscription":"Paiement mensuel","templatePriceUnit:monthlySubscription":"{{{price}}}/mois"},nd={close:"Fermer",hide:"Masquer",show:"Afficher",loading:"Chargement en cours..."},rd={enterPromoCode:"Saisissez votre code",apply:"Appliquer",clear:"Effacer",promoCodeApplied:"Le code a bien \xE9t\xE9 appliqu\xE9.",offerDetails:"D\xE9tails de l\u2019offre",changeCode:"Changer le code",promotionalCode:"Code\xA0: {{{promoCode}}}",currentPromo:"Code actuel\xA0:",clearPromo:"Effacer le code",updatePromo:"Actualiser le code",noPromo:"Aucun code appliqu\xE9",addPromoPrompt:"Vous avez un code?",promoCodeClearFailed:"Impossible d\u2019effacer le code de r\xE9duction.",NotApplicable:"Ce code n\u2019existe pas. Veuillez en essayer un autre.",RequiresMissingCustomerGroup:"Ce code n\u2019est pas valide pour votre compte. Veuillez en essayer un autre.",Expired:"Ce code a expir\xE9. Veuillez utiliser un code actif.",NotLiveYet:"Ce code n\u2019est pas encore actif. Veuillez r\xE9essayer plus tard.",UnableToValidate:"Ce code ne fonctionne pas. Veuillez r\xE9essayer plus tard.",OncePerShopper:"Ce code a d\xE9j\xE0 \xE9t\xE9 utilis\xE9. Veuillez en utiliser un autre.",ExceedsUsageLimit:"Ce code a atteint le maximum d\u2019utilisations possibles.",RequiresLoggedInShopper:"Connectez-vous pour appliquer ce code."},od={postageFee:"Affranchissement",mailingServiceFee:"Service de liste d\u2019envoi",rushProcessingFee:"Traitement urgent",setupFee:"Mise en route",fallbackFee:"Frais suppl\xE9mentaires"},ad={cartItemsCountMessages:Xl,cartLabelMessages:Zl,miniCartMessages:Ql,errorMessages:ed,templateBillingMessages:td,a11yLabels:nd,couponMessages:rd,feeMessages:od},id={cartItemsCount:"Cantidad de art\xEDculos en el carrito: ",zeroCartItemsCount:"Su carrito est\xE1 vac\xEDo."},sd={cartLabel:"Carrito",flyoutTitle:"Mi carrito"},cd={cartButton:"Ir al carrito",emptyCart:"El carrito est\xE1 vac\xEDo.",signInPrompt:"\xBFYa tiene una cuenta? Inicie sesi\xF3n para ver los art\xEDculos que seleccion\xF3.",signInButton:"Iniciar sesi\xF3n",continueButton:"Continuar comprando",checkoutButton:"Finalizar la compra",groupTotal:"Total del grupo",yourItems:"Sus art\xEDculos",pricingSummary:"Resumen de precios",youSaved:"Usted ahorr\xF3",thisOrder:"Este pedido",productSubtotal:"Subtotal del producto",cartLoading:"Preparando su carrito...",remove:"Eliminar",basePrice:"Precio base:",edit:"Editar"},ld={genericIssuesError:"Hay problemas con algunos art\xEDculos en su carrito.",fetchingIssuesError:"Lo sentimos, se produjo un error al cargar su carrito.",tryAgainOrContactCare:"Vuelva a intentarlo o comun\xEDquese con CARE si el problema persiste."},dd={pricingSummaryPayToday:"Este pedido","itemPriceLabel:annualSubscription":"A pagar el d\xEDa de hoy","templatePrice
1Label:annualSubscription":"Suscripci\xF3n anual","templateSummaryLabel:annualSubscription":"Suscripciones anuales","templateSummarySubtotal:annualSubscription":"Pago anual","templatePriceUnit:annualSubscription":"{{{price}}}/a\xF1o","itemPriceLabel:monthlySubscription":"A pagar el d\xEDa de hoy","templatePriceLabel:monthlySubscription":"Suscripci\xF3n mensual","templateSummaryLabel:monthlySubscription":"Suscripciones mensuales","templateSummarySubtotal:monthlySubscription":"Pago mensual","templatePriceUnit:monthlySubscription":"{{{price}}}/mes"},ud={close:"Cerrar",hide:"Ocultar",show:"Mostrar",loading:"Cargando..."},pd={enterPromoCode:"Ingrese su c\xF3digo",apply:"Aplicar",clear:"Borrar",promoCodeApplied:"C\xF3digo aplicado correctamente.",offerDetails:"Detalles de la oferta",changeCode:"Cambiar el c\xF3digo",promotionalCode:"C\xF3digo: {{{promoCode}}}",currentPromo:"C\xF3digo actual:",clearPromo:"Borrar c\xF3digo",updatePromo:"Actualizar c\xF3digo",noPromo:"No se aplic\xF3 el c\xF3digo",addPromoPrompt:"\xBFTiene un c\xF3digo?",promoCodeClearFailed:"No se pudo borrar el c\xF3digo de descuento.",NotApplicable:"Este c\xF3digo no existe. Pruebe con otro.",RequiresMissingCustomerGroup:"Este c\xF3digo no es v\xE1lido para su cuenta. Pruebe con otro.",Expired:"Este c\xF3digo est\xE1 vencido. Pruebe con otro que est\xE9 activo.",NotLiveYet:"Este c\xF3digo no est\xE1 activo todav\xEDa. Vuelva a intentarlo m\xE1s adelante.",UnableToValidate:"Este c\xF3digo no est\xE1 funcionando. Vuelva a intentarlo m\xE1s adelante.",OncePerShopper:"Este c\xF3digo ya fue usado. Use otro.",ExceedsUsageLimit:"Este c\xF3digo alcanz\xF3 el l\xEDmite de veces que puede usarse.",RequiresLoggedInShopper:"Inicie sesi\xF3n para aplicar este c\xF3digo."},gd={postageFee:"Franqueo",mailingServiceFee:"Servicio de lista de distribuci\xF3n",rushProcessingFee:"Procesamiento urgente",setupFee:"Configuraci\xF3n",fallbackFee:"Cuotas adicionales"},md={cartItemsCountMessages:id,cartLabelMessages:sd,miniCartMessages:cd,errorMessages:ld,templateBillingMessages:dd,a11yLabels:ud,couponMessages:pd,feeMessages:gd},fd={"da-dk":fl,"de-at":xn,"de-ch":xn,"de-de":xn,"en-ca":Ln,"en-ie":Oo,"en-gb":Oo,"en-au":An,"en-nz":An,"en-sg":An,"en-in":Ln,"en-us":Ln,"es-es":Ac,"es-us":md,"it-ch":No,"it-it":No,"fi-fi":Vl,"fr-be":Mn,"fr-ca":ad,"fr-ch":Mn,"fr-fr":Mn,"nb-no":Ol,"nl-be":Ro,"nl-nl":Ro,"pt-pt":bc,"sv-se":El};function hd(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var yd=`/**
2 * Do not edit directly, this file was auto-generated.
3 */
4/*
5YOU SHALL NOT CHANGE THESE CLASS NAMES!
6They are used by the Bookends library and will break the integration.
7*/
8.cart-count-value {
9  background-color: var(--swan-base-color-blue-400) !important;
10  color: var(--swan-base-color-black) !important;
11  padding: 0px 4px !important;
12  min-width: 20px !important;
13  height: 20px !important;
14  line-height: 20px !important;
15}
16
17/* Large screen styles */
18#cart-icon-lg-screens .cart-count-value-container {
19  margin-top: -10px;
20  margin-left: 16px;
21  position: absolute;
22  top: 0;
23  left: 0;
24}
25
26@media only screen and (min-width: 1024px) and (max-width: 1439px) {
27  #cart-icon-lg-screens .cart-count-value-container {
28    margin-left: 16px;
29  }
30}
31#cart-icon-lg-screens .cart-item-count {
32  position: relative;
33  display: flex;
34  justify-content: center;
35  align-items: center;
36}
37
38#cart-icon-lg-screens .cart-item-count-container {
39  display: inline-flex;
40}
41
42#cart-icon-lg-screens .cart-item-count-container .cart-icon {
43  display: inline-flex;
44}
45
46#cart-icon-lg-screens .cart-item-count-container > * {
47  text-align: left;
48}
49
50/* Small screen styles */
51#cart-icon-sm-screens .cart-count-value-container {
52  position: absolute;
53  top: 0;
54  right: 0;
55}`;hd(yd);const Do=ie(void 0),vd=({cartRedirectUrl:e,children:t})=>{const n=N(()=>({cartRedirectUrl:e}),[e]);return s(Do.Provider,{value:n,children:t})},bd=()=>{const e=oe(Do);if(e===void 0)throw new Error("useCartRedirectUrlContext must be used within a CartRedirectUrlContextProvider");return e},_n={name:"Navigation Clicked",data:{category:"Cart Header",label:"Header",eventDetail:"",navigationDetail:"cart"}},Cd=({pageName:e,pageSection:t,pageStage:n,cartUrl:r="/c/",debug:o=!1})=>{var a;if(typeof window<"u"){const i=window;try{(a=i.tracking)===null||a===void 0||a.track(_n.name,Object.assign(Object.assign({},_n.data),{eventDetail:`${window.location};${r};Header;cart;`,pageSection:t,pageStage:n,pageName:e}))}catch(c){o&&console.error("[CartClient] failed to track event",_n.name,c)}}else o&&console.error("[CartClient] `window` undefined, unable to track navigation.")},Mt=Yn((e,t)=>{var{withIcon:n=!1}=e,r=To(e,["withIcon"]);const{className:o,children:a}=r,i=To(r,["className","children"]),{cartRedirectUrl:c}=bd(),{pageName:d,pageStage:u,pageSection:l}=xo(),p=A(()=>{window.top.location.href=c},[c]),g=A(m=>In(void 0,void 0,void 0,function*(){m.preventDefault(),Cd({cartUrl:c,pageName:d,pageStage:u,pageSection:l}),p()}),[p,d,l,u,c]);
55return s(_,Object.assign({ref:t,href:c,onClick:g,"data-position":"0","data-section":"Header","data-translation":"Cart",skin:"unstyled","data-testid":"cart-redirect-link",className:o,withIcon:n},i,{children:a}))});Mt.displayName="CartRedirectLink";const Bo=()=>{const[e]=At(["cartLabelMessages"]);return s("div",{className:"cart-label","data-testid":"cart-label","aria-hidden":!0,children:s(x,{fontSize:"small",ml:"between-icon-and-text",children:e.cartLabel})})},Fo=()=>{const{cartItemCount:e,cartItemCountFetchFailed:t}=Ys(),[n]=At(["cartItemsCountMessages"]);return t?null:s("div",{children:e?s("div",{className:"cart-count-value-container","data-testid":"cart-count-value-container",children:y(lr,{className:"cart-count-value","data-testid":"cart-count-value",children:[s(yt,{children:n.cartItemsCount}),s(x,{component:"span",children:e})]})}):s(yt,{children:n.zeroCartItemsCount})})},On={position:"relative"},Sd=()=>{const[e]=At(["cartLabelMessages"]);return y(U,{children:[s(X,{xs:!0,sm:!0,md:!0,id:"cart-icon-sm-screens",style:On,children:s(se,{skin:"tertiary",tooltip:e.cartLabel,render:(t,n)=>y("div",{style:On,children:[s(Mt,Object.assign({},t,{ref:n,children:t.children})),s(Fo,{})]}),children:s(M,{iconType:"cart",alt:e.cartLabel})})}),y(X,{lg:!0,xl:!0,id:"cart-icon-lg-screens",style:On,children:[y(Mt,{withIcon:!0,children:[s(M,{iconType:"cart",alt:e.cartLabel}),s(Bo,{})]}),s(Fo,{})]})]})},wd=()=>s("div",{className:"cart-item-count-container","data-testid":"mini-cart-outer-container",children:s("div",{className:"cart-item-count","data-testid":"mini-cart-container",children:s(P,{alignItems:"center",children:s("div",{className:"cart-icon site-header-link-icon site-header-icon-cart","data-testid":"cart-icon",children:s(Sd,{})})})})}),kd=({children:e,fallback:t=Gt})=>{const{auth:n}=Io();return!n||!n.getCanonicalId||!(n.getAuthorizationHeader||n.getToken)||!n.isSignedIn||!n.signIn?s(t,{}):s(U,{children:e})},Ed=()=>{const[e]=At(["cartLabelMessages"]);return s(Mt,{children:s("div",{className:"cart-item-count-container","data-testid":"mini-cart-auth-wrapper-container",children:s("div",{className:"cart-item-count","data-testid":"mini-cart-auth-wrapper",children:y(P,{alignItems:"center",children:[s("div",{className:"cart-icon","data-testid":"cart-icon",children:s(M,{iconType:"cart",alt:e.cartLabel})}),s(Bo,{})]})})})})},Id=e=>{const{locale:t,auth:n,pageName:r,pageStage:o,pageSection:a,accountId:i,cartTypeId:c,cartRedirectUrl:d}=e;return s(ht,{children:s(xs,{translationResources:fd,locale:t,logLevel:"SILENT",children:s(Rs,{locale:t,auth:n,accountId:i,cartTypeId:c,children:s(Ts,{fallback:s("div",{}),onError:u=>{console.error(u)},children:s(Ks,{pageName:r,pageStage:o,pageSection:a,children:s(vd,{cartRedirectUrl:d,children:s(Ws,{children:s(kd,{fallback:Ed,children:s(wd,{})})})})})})})})})},$o=({cartLink:e})=>s(ye,{href:e.url,iconType:"cart",label:e.text}),Td=({locale:e,cartLink:t})=>{const{auth:n}=ae(),r=rn(),[o,a]=I(!1),[i,c]=I(!1),{pageName:d,pageSection:u,pageStage:l}=gn();T(()=>{a(window?.bookends?.useMiniCart??!0),document.invalidateMiniCartData=zs},[]),T(()=>{n?.getIdentity()&&c(!0)},[n]);const{accountId:p,cartId:g}=N(()=>({accountId:r.account||Vr,cartId:r.defaultCartTypeId||""}),[r]);return i&&o&&p&&g?s(te,{ml:{sm:"to-actions"},children:s(Id,{pageName:d,pageSection:u,pageStage:l,auth:n,locale:e,accountId:p,cartTypeId:g,cartRedirectUrl:t.url})}):s($o,{cartLink:t})};function Pd({locale:e,cartLink:t}){return Ie()?s(Td,{locale:e,cartLink:t}):s($o,{cartLink:t})}Pe.setTimeout,Pe.clearTimeout;var Ad={},Qe=Pe.performance||{};Qe.now||Qe.mozNow||Qe.msNow||Qe.oNow||Qe.webkitNow;var Uo={env:Ad};const Ld=()=>{if(typeof window>"u")return!1;const e=window.location?.hostname??"";return e.includes("staging.")||e==="localhost"},Md=e=>({culture:e,developmentMode:Ld(),options:{requireSession:!0,customText:"Sign in to see your account",clientID:Uo.env?.COAM_CLIENT_ID||Uo.env?.AUTH_CLIENT_ID}});function jo(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}
55function Vo(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(u){try{d(r.next(u))}catch(l){a(l)}}function c(u){try{d(r.throw(u))}catch(l){a(l)}}function d(u){var l;u.done?o(u.value):(l=u.value,l instanceof n?l:new n((function(p){p(l)}))).then(i,c)}d((r=r.apply(e,[])).next())}))}typeof SuppressedError=="function"&&SuppressedError;var Go=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Pe<"u"?Pe:typeof self<"u"?self:{},be={},et=Go&&Go.__assign||function(){return et=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},et.apply(this,arguments)};function tt(e,t){if(!t)return"";var n="; "+e;return t===!0?n:n+"="+t}function Ho(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+(function(r){if(typeof r.expires=="number"){var o=new Date;o.setMilliseconds(o.getMilliseconds()+864e5*r.expires),r.expires=o}return tt("Expires",r.expires?r.expires.toUTCString():"")+tt("Domain",r.domain)+tt("Path",r.path)+tt("Secure",r.secure)+tt("SameSite",r.sameSite)})(n)}function zo(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,o=0;o<n.length;o++){var a=n[o].split("="),i=a.slice(1).join("=");i.charAt(0)==='"'&&(i=i.slice(1,-1));try{t[a[0].replace(r,decodeURIComponent)]=i.replace(r,decodeURIComponent)}catch{}}return t}function Ko(){return zo(document.cookie)}function Wo(e,t,n){document.cookie=Ho(e,t,et({path:"/"},n))}be.__esModule=!0,be.encode=Ho,be.parse=zo,be.getAll=Ko,be.get=function(e){return Ko()[e]},be.set=Wo,be.remove=function(e,t){Wo(e,"",et(et({},t),{expires:-1}))};var xd=()=>{try{return _d()}catch(e){return console.warn("ctc-reader in getAllTreatments failed.",e),[]}};const _d=()=>{const e=be.get("userContext");return e?(t=>{const n=JSON.parse(decodeURIComponent(t));return n.ctc&&n.ctc.v1?n.ctc.v1:[]})(e):(console.warn("ctc-reader: Context cookie are missing. If you are developing locally check the readme;)"),[])},xt="[NewRelicTracker]",Yo=()=>typeof window>"u",qo=(e,t={enforceAgentExists:!1})=>{if(Yo())throw new Error("window is undefined");const n=window[e];if(t.enforceAgentExists&&n===void 0)throw new Error(`Agent ${e} does not exist`);return n},Jo=(e,t,n={},r=!1)=>{if(!t)return;const{errorName:o}=n,a=jo(n,["errorName"]),{message:i,stack:c}=t,d=jo(t,["message","stack"]),u=o||i||"unknown-error-id";let l;try{l=qo(e,{enforceAgentExists:!0})}catch(b){return void(r&&console.error(`${xt} Unable to trackError: ${u} - ${b.message}`))}const p=(g=d,m="Authorization",JSON.stringify(g,((b,S)=>(S&&S[m]&&delete S[m],S))),g);var g,m;const h=new Error(u),v=Object.assign({rootErrorObject:{rootErrorMessage:i,rootErrorStack:c},originalError:p},a);try{l.noticeError(h,v)}catch(b){r&&console.error(`${xt} Error occurred while tracking new relic error.`,{modifiedError:h,errorAttributes:v},b)}},nt="my-account-dropdown",Xo=e=>e instanceof Error?e:new Error(String(e)),Zo=e=>Object.keys(e).map((t=>`${encodeURIComponent(t)}:${encodeURIComponent(e[t])}`)).join(","),Od=(()=>{const e=new Map;return{getOrFetch:t=>{const n=e.get(t.key);if(n)return n;const r=t.fn().catch((o=>{throw e.delete(t.key),o}));return e.set(t.key,r),r},clear:()=>{e.clear()}}})(),Nd=e=>Vo(void 0,void 0,void 0,(function*(){const t=(({tenant:n,locale:r,treatments:o,experiments:a,featureFlags:i})=>{const c=["requestor=my-account-pages-dropdown"];return o&&o.length>0&&c.push(`treatments=${o.join(",")}`),a&&Object.keys(a).length>0&&c.push(`exp=${Zo(a)}`),i&&Object.keys(i).length>0&&c.push(`ff=${Zo(i)}`),`https://cdn-my-account-resources-v2.prod.my-account.vpsvc.com/v1/content/${n}/${r.toLowerCase()}?${c.join("&")}`})(e);try{const n=yield fetch(t);if(!n.ok)throw new Error(`HTTP ${n.status}`);return yield n.json()}catch(n){throw new Error(`ERROR: failed to get MyAccount resources for tenant: ${e.tenant}, locale: ${e.locale}, url: ${t}, error: ${n instanceof Error?n.message:String(n)}, stack: ${n instanceof Error?n.stack:"N/A"}`)}})),Rd=["pro_advantage_basic_subscription","pro_advantage_premium_subscription"],Dd=(e,t)=>{const{treatmentsInfo:n,treatmentsInitialized:r}=(()=>{const[l,p]=I({treatmentsInitialized:!1,treatmentsInfo:[]});return T((()=>{try{p({treatmentsInitialized:!0,treatmentsInfo:xd()})}catch(g){Jo(nt,Xo(g),{message:"Failed to set Treatments info"})}}),[]),l})(),[o,a]=I(void 0),[i,c]=I(!1),[d,u]=I(!1);return T((()=>
55{if(!e||!t||!r)return;const l=n.filter((p=>Rd.includes(p)));Vo(void 0,void 0,void 0,(function*(){c(!0);try{const g=yield(p={tenant:e,locale:t,treatments:l},Od.getOrFetch({key:`${p.tenant}:${p.locale}`,fn:()=>Nd(p)}));a(g),u(!0)}catch(g){Jo(nt,Xo(g),{message:"Unable to load flyout resources"})}finally{c(!1)}var p}))}),[e,t,r,n]),{content:o,isLoading:i,isLoaded:d}},Qo=Ge.createContext(void 0),Nn=({children:e})=>{const{locale:t,tenant:n}=on(),{content:r,isLoading:o,isLoaded:a}=Dd(n,t);return s(Qo.Provider,{value:{content:r,isLoading:o,isLoaded:a},children:e})},Le=()=>{var e;return(e=oe(Qo))!==null&&e!==void 0?e:{content:void 0,isLoading:!1,isLoaded:!1}};(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}})(`/**
56 * Do not edit directly
57 * Generated on Tue, 03 Sep 2024 04:15:06 GMT
58 */
59.my-account-content-section-wrapper {
60  display: flex;
61  gap: var(--swan-sem-space-7);
62}
63
64.my-account-content-section-wrapper-sidebar {
65  flex-direction: column;
66  gap: var(--swan-sem-space-none);
67}
68
69.my-account-content-links {
70  background-color: var(--swan-sem-color-bg-standard);
71  border-radius: var(--swan-base-border-radius-300);
72  width: 100%;
73}
74
75.my-account-content-link.my-account-content-link.my-account-content-link:hover {
76  color: var(--swan-sem-color-text-link-hover);
77  text-decoration: none;
78}
79
80.my-account-content-link {
81  font-size: var(--swan-sem-font-skin-body-small-font-size);
82  text-decoration: none;
83}
84
85.my-account-content-section-wrapper-sidebar .my-account-content-link {
86  font-size: var(--swan-sem-font-size-standard);
87  font-weight: var(--swan-base-font-weight-bold);
88  padding: var(--swan-sem-space-4) var(--swan-sem-space-none);
89  color: var(--swan-base-color-grey-900);
90}`);const Bd=e=>{if(!e)return"";try{const t=new URL(e,window.location.origin),n=window.location.hostname;return t.hostname===n?t.pathname:t.host+t.pathname}catch{return e}},Fd=(e,t)=>{var n;!((n=window.tracking)===null||n===void 0)&&n.track&&window.tracking.track(e,t)},$d=()=>{var e,t,n,r;const o=(function(){var a;if(typeof document>"u")return{};const i=["pageSection","pageName","pageStage","pageDept"],c={};for(const d of i){const u=(a=document.querySelector(`meta[name="${d}"]`))===null||a===void 0?void 0:a.getAttribute("content");u&&(c[d]=u)}return c})();return{pageSection:(e=o.pageSection)!==null&&e!==void 0?e:"",pageStage:(t=o.pageStage)!==null&&t!==void 0?t:"",pageName:(n=o.pageName)!==null&&n!==void 0?n:"",pageDept:(r=o.pageDept)!==null&&r!==void 0?r:""}};function Ud({pageText:e,pageUrl:t,calloutText:n,pageId:r}){return s(ur,{children:y(_,{className:"my-account-content-link",href:t,onClick:()=>(function(o,a){var i,c,d;const u="MyAccount",l=`Header:${u}`,p=$d(),g=(d=(c=(i=globalThis.window)===null||i===void 0?void 0:i.location)===null||c===void 0?void 0:c.pathname)!==null&&d!==void 0?d:"",m=Bd(a),h=Object.assign(Object.assign({label:l,eventDetail:`${g};${m};${u};${o};`,navigationDetail:o},p),{category:p.pageSection,navigationSection:void 0});Fd("Navigation Clicked",h)})(r,t),children:[s(x,{children:e}),n&&s("span",{children:s(Yt,{ml:"3",skin:"inverse",children:n})})]})},r)}function jd({pages:e}){return s(dr,{children:e?.flatMap((t=>t.subPagesList.map((n=>s(Ud,{pageId:n.id,pageText:n.text,pageUrl:n.url,calloutText:n.calloutText},n.id)))))})}const Rn="MicroAgent should not be used in Node Environment",Vd=(e,t)=>{let n=null,r=[],o=typeof window<"u";o&&(async()=>{try{const i=await t();if(i===null)return o=!1,r.forEach((({reject:c})=>{c(new Error(Rn))})),void(r=[]);n=new i.MicroAgent(...e);for(const{method:c,args:d,resolve:u,reject:l}of r)try{u(n[c](...d))}catch(p){l(p)}r=[]}catch(i){for(const{reject:c}of r)c(i);r=[]}})();let a=typeof window>"u";return{proxyMethod:i=>(...c)=>(a&&(console.warn(Rn),a=!1),n?Promise.resolve(n[i](...c)):o?((d,u)=>new Promise(((l,p)=>{r.push({method:d,args:u,resolve:l,reject:p})})))(i,c):Promise.reject(new Error(Rn)))}},ea="@vp/newrelic-browser-micro-agent/agent",Gd=()=>
90{if(window._vpMicroAgentModule)return window._vpMicroAgentModule;if(window.System?.resolve(ea))return window._vpMicroAgentModule=window.System.import(ea),window._vpMicroAgentModule;const e=(t=>{const n=t.match(/vistaprint\.[a-z]{2,3}(\.[a-z]{2,3})?/);return n&&n[0]?`https://www.${n[0]}/assets/new-relic-microagent`:"https://www.vistaprint.com/assets/new-relic-microagent"})(window.location.hostname);return window._vpMicroAgentModule=(function(t){const n=window.__vpMicroAgentRegister;if(n?.module)return Promise.resolve(n.module);if(n?.pending)return n.pending;let r,o;const a=new Promise(((c,d)=>{r=c,o=d}));window.__vpMicroAgentRegister&&(window.__vpMicroAgentRegister.pending=a);const i=document.createElement("script");return i.type="module",i.src=t,i.onerror=(c,d)=>{console.error("Error loading module script:",c,d),window.__vpMicroAgentRegister&&(window.__vpMicroAgentRegister.pending=void 0),o(new Error(`Failed to load module script: ${t}`))},i.onload=()=>{const c=window.__vpMicroAgentRegister;c?.module?(c.pending=void 0,r(c.module)):(c&&(c.pending=void 0),o(new Error(`Module ${t} loaded but did not register itself.`))),i.remove()},document.head.appendChild(i),a})(e).catch((t=>{throw console.error("MicroAgent failed to load",{url:e,error:t.message}),window._vpMicroAgentModule=void 0,t})),window._vpMicroAgentModule};typeof window<"u"&&(!window.__vpMicroAgentRegister||!window.__vpMicroAgentRegister.version||window.__vpMicroAgentRegister.version<1)&&(window.__vpMicroAgentRegister=Object.assign((function(e,t){window.__vpMicroAgentRegister.module=t}),{version:1,import:Gd,module:void 0,pending:void 0}));const Hd=(...e)=>{const t=Vd(e,(()=>(async()=>{if(typeof window>"u")return null;try{const n=window.__vpMicroAgentRegister?.import;if(!n)throw new Error("MicroAgent import helper not found on window.__vpMicroAgentRegister");return await n()}catch(n){return console.error("MicroAgent failed to load",n),null}})()));return new Proxy({},{get:(n,r)=>{const o=t.proxyMethod(r);if(o)return(...a)=>o(...a).catch((()=>{}))}})},zd=({agentId:e,config:t,debug:n})=>{const r=Hd(t);return((o,a,i=!1)=>{typeof window<"u"?window[o]=a:i&&console.error(`[NewRelicTracker] 'window' is undefined, unable to save Agent ${o} to window.`)})(e,r,n),r},ta="bam.nr-data.net",Kd=e=>{const t=e?"1431921802":"1120517008",n=e?"NRBR-b6191402f9850daf027":"NRBR-1cc07de507144ad76b6";return{init:{},info:{beacon:ta,errorBeacon:ta,licenseKey:n,applicationID:t,sa:1},loader_config:{accountID:e?"4558439":"2429158",trustKey:e?"4558439":"1106546",agentID:t,licenseKey:n,applicationID:t},exposed:!1}};var Wd="7.1.0";const Yd=e=>{const{shopperId:t}=e;try{const r=(typeof window<"u"&&(window&&window.location&&window.location.hostname&&window.location.hostname.startsWith("staging.")||window.location.hostname.startsWith("localhost"))||window.location.hostname.includes("sandbox")?"development":"production")=="development";n=nt,(Yo()||window[n]===void 0)&&zd({agentId:nt,config:Kd(r)}),(({agentId:o,staticApplicationData:a,debug:i=!1})=>{let c;const{shopperId:d="",tenant:u="",site:l="",locale:p="",additionalAttributes:g={}}=a;try{c=qo(o)}catch(m){return void(i&&console.error(`${xt} Unable to initialize New Relic Tracking Container - ${m.message}`))}try{c.setCustomAttribute("shopperId",d),c.setCustomAttribute("tenant",u),c.setCustomAttribute("site",l),c.setCustomAttribute("locale",p),Object.entries(g).forEach((([m,h])=>{c.setCustomAttribute(m,h)}))}catch(m){i&&console.error(`${xt} Something went wrong attempting to custom attributes on agent: ${o} - ${m.message}`)}})({agentId:nt,staticApplicationData:{shopperId:t,additionalAttributes:{version:Wd,page:typeof window<"u"?window.location.href:"unknown"}}})}catch(r){console.error("[my-account-dropdown] Failed to initialize observability:",r)}var n},qd=({header:e,footer:t,mode:n="dropdown"})=>{const{auth:r}=bt(),{content:o}=Le(),a=r?.getCanonicalId(),i=r?.getAuthorizationHeader();if(T((()=>{i&&a&&Yd({shopperId:a})}),[i,a]),!i||!a||!o)return null;const c=n==="sidebar"?"my-account-content-section-wrapper my-account-content-section-wrapper-sidebar":"my-account-content-section-wrapper";return y(U,{children:[e&&e(),s("div",{className:c,"data-testid":"account-links-wrapper",children:y("div",{className:"my-account-content-section my-account-content-links",children:[s(jd,{pages:o.signedIn.body.myAccountPagesList}),t&&t()]})})]})};function Jd(){const e=W(!1);T(()=>{an(),sn(n=>{e.current=n||!1},1e3)},[]);const t=()=>({enabled:n=>{if(!e.current)return!1;try{return cn(n)}catch{return!1}},disabled:n=>!t().enabled(n)});return t()}const Xd=new Set(Object.keys(pr)),_t=(e,t)=>e&&Xd.has(e)?e:t,Zd=()=>{const{enabled:e}=Jd();return e("redesign_signin_flyout")?s(Qd,{}):s(eu,{})},Qd=()=>{const{signIn:e}
90=ae(),{content:t}=Le(),{translate:n}=$(),r=t?.signedOut,o=r?.header.signInButtonText??n("signIn"),a=()=>{L().trackLink({navigationDetailPath:["MyAccount","Find and Track an Order"],href:r?.footer.url})};return y(te,{m:7,style:{maxWidth:"340px"},children:[r?.body.text&&s(x,{children:r.body.text}),s(F,{mt:7,skin:"primary",width:"full-width",onClick:e,children:o}),s(pe,{my:7}),r?.footer&&s(P,{justifyContent:"center",children:y(P,{flexDirection:"row",alignItems:"center",children:[s(P,{alignItems:"center",color:"icon-standard",children:s(M,{iconType:_t(r.footer.iconType,"orderSearch"),skin:"standard","aria-hidden":"true"})}),s(_,{onClick:a,skin:"unstyled",href:r.footer.url,fontSkin:"body-small-bold",ml:"7",children:r.footer.text})]})})]})},eu=()=>{const{signIn:e,signUp:t}=ae(),{content:n}=Le(),{translate:r}=$(),o=n?.signedOut,a=o?.header.signInButtonText??r("signIn"),i=o?.header.text??r("newHere"),c=o?.header.linkText??r("createAccount"),d=()=>{L().trackLink({navigationDetailPath:["MyAccount","Find and Track an Order"],href:o?.footer.url})};return y(P,{p:6,flexDirection:"column",gap:"to-actions",style:{maxWidth:"256px"},children:[y(P,{gap:"between-actions",flexDirection:"column",children:[s(F,{skin:"primary",width:"full-width",onClick:e,children:a}),y(P,{fontSkin:"body-small",flexWrap:"wrap",gap:2,alignItems:"end",justifyContent:"center",children:[i,s(F,{onClick:t,skin:"link",fontSkin:"body-small",color:"body-standard",display:"flex",children:c})]})]}),o?.body.list&&s(Z,{skin:"minimal",children:o.body.list.map(({iconType:u,text:l})=>y(P,{as:"li",alignItems:"start",gap:"between-icon-and-text",fontSkin:"body-standard",color:"standard",children:[s(te,{color:"icon-standard",children:s(M,{iconType:_t(u,"check"),skin:"standard",size:"standard"})}),s(x,{children:l})]},l))}),s(pe,{}),o?.footer&&s(P,{justifyContent:"center",children:y(P,{alignItems:"center",gap:"between-icon-and-text",children:[s(P,{alignItems:"center",color:"icon-standard",children:s(M,{iconType:_t(o.footer.iconType,"orderSearch"),skin:"standard","aria-hidden":"true"})}),s(_,{onClick:d,href:o.footer.url,skin:"unstyled",fontSkin:"body-small-bold",color:"body-standard",children:o.footer.text})]})})]})},tu=e=>()=>{const{content:t}=Le();return t?s(te,{style:{width:"250px"},children:y(gr,{fontSkin:"body-standard",mb:0,children:[t.signedIn.header.text," ",e?.firstName??e?.email??""]})}):null},nu=()=>()=>{const{signOut:e}=ae(),{content:t}=Le(),{translate:n}=$(),r=t?.signedIn.footer.signOutButtonText??n("signOut");return y(U,{children:[s(pe,{}),s(P,{justifyContent:"center",children:s(F,{id:"my-account-logout-btn",my:3,onClick:e,children:r})})]})},na=({profile:e,placement:t})=>{const n=N(()=>tu(e),[e]),r=N(()=>nu(),[]);return s(qd,{mode:t==="sidebar"?"sidebar":"dropdown",header:t==="sidebar"?void 0:n,footer:t==="sidebar"?void 0:r})};var ru=Object.defineProperty,ou=(e,t,n)=>t in e?ru(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t,n)=>ou(e,typeof t!="symbol"?t+"":t,n);const rt={passive:!0},au={sensitivity:7,interval:100,timeout:0,handleFocus:!1};class iu{constructor(t,n,r){V(this,"el",t),V(this,"onOver",n),V(this,"onOut",r),V(this,"cursorX",0),V(this,"cursorY",0),V(this,"previousX",0),V(this,"previousY",0),V(this,"isMouseOver",!1),V(this,"isFocused",!1),V(this,"state",0),V(this,"timer",null),V(this,"config"),V(this,"handleMouseMove",o=>{this.cursorX=o.clientX,this.cursorY=o.clientY}),V(this,"evaluateIntent",o=>{if(this.clearTimer(),Math.abs(this.previousX-this.cursorX)+Math.abs(this.previousY-this.cursorY)<this.config.sensitivity){this.state=1,this.el.removeEventListener("mousemove",this.handleMouseMove),this.isFocused||this.onOver(o);return}this.previousX=this.cursorX,this.previousY=this.cursorY,this.startTimer(()=>
90this.evaluateIntent(o),this.config.interval)}),V(this,"handleMouseOver",o=>{this.isMouseOver=!0,this.clearTimer(),this.el.removeEventListener("mousemove",this.handleMouseMove),this.state!==1&&(this.previousX=o.clientX,this.previousY=o.clientY,this.el.addEventListener("mousemove",this.handleMouseMove,rt),this.startTimer(()=>this.evaluateIntent(o),this.config.interval))}),V(this,"handleMouseOut",o=>{this.isMouseOver=!1,this.clearTimer(),this.el.removeEventListener("mousemove",this.handleMouseMove),this.state===1&&this.startTimer(()=>{this.state=0,this.isFocused||this.onOut(o)},this.config.timeout)}),V(this,"handleFocus",o=>{this.isMouseOver||(this.isFocused=!0,this.onOver(o))}),V(this,"handleBlur",o=>{this.isFocused&&(this.isFocused=!1,!this.isMouseOver&&this.onOut(o))}),this.config={...au},this.bindMouseListeners()}clearTimer(){this.timer!==null&&(clearTimeout(this.timer),this.timer=null)}startTimer(t,n){this.clearTimer(),this.timer=setTimeout(t,n)}bindMouseListeners(){this.el.addEventListener("mouseover",this.handleMouseOver,rt),this.el.addEventListener("mouseout",this.handleMouseOut,rt)}unbindMouseListeners(){this.el.removeEventListener("mouseover",this.handleMouseOver),this.el.removeEventListener("mouseout",this.handleMouseOut)}bindFocusListeners(){this.el.addEventListener("focus",this.handleFocus,rt),this.el.addEventListener("blur",this.handleBlur,rt)}unbindFocusListeners(){this.el.removeEventListener("focus",this.handleFocus),this.el.removeEventListener("blur",this.handleBlur)}updateOptions(t){const n=t.handleFocus!==void 0&&t.handleFocus!==this.config.handleFocus;this.config={...this.config,...t},n&&(this.config.handleFocus?this.bindFocusListeners():(this.unbindFocusListeners(),this.isFocused=!1))}destroy(){this.clearTimer(),this.el.removeEventListener("mousemove",this.handleMouseMove),this.unbindMouseListeners(),this.unbindFocusListeners()}}function su(e,t,n){const r=new iu(e,t,n),o={options(a){return r.updateOptions(a),o},remove(){r.destroy()}};return o}const ot=({hoverIn:e=()=>{},hoverOut:t=()=>{},opts:n})=>{const r=W(null),o=r.current;return T(()=>{if(!o)return;const a=su(o,e,t).options(n??{timeout:200,interval:50,sensitivity:25});return()=>{a.remove()}},[n,o]),r},cu=150,lu=({isSignedIn:e})=>{const t=W(null),n=W(!1),r=W(!1),o=W(!1),a=W(null),i=W(!1),c=A(()=>{a.current&&(clearTimeout(a.current),a.current=null)},[]),d=A(()=>{n.current=!1,i.current=!1},[]),u=A(()=>{c(),a.current=setTimeout(()=>{n.current&&!r.current&&(t.current?.close(),d())},cu)},[c,d]),l=ot({hoverIn:()=>{c(),t.current?.isOpen||(i.current=!0,t.current?.open(),n.current=!0)},hoverOut:u}),p=A(()=>{r.current=!0,c()},[c]),g=A(()=>{r.current=!1,n.current&&u()},[u]),m=A(()=>{o.current=!0},[]),h=A(S=>{i.current&&S.target?.blur?.()},[]),v=A(()=>{i.current=!1},[]);T(()=>{const S=l.current;if(!S)return;const w=()=>{i.current=!1};return S.addEventListener("keydown",w),()=>S.removeEventListener("keydown",w)},[]),T(()=>()=>c(),[c]),T(()=>{const S=w=>{requestAnimationFrame(()=>{if(o.current){o.current=!1;return}if(!t.current?.isOpen)return;const O=w.target;l.current?.contains(O)||(t.current.close(),d())})};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[d]),T(()=>{const S=w=>{w.key==="Escape"&&t.current?.isOpen&&(t.current.close(),d())};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[d]);const b=A(()=>{L().trackFlyOutView("Account Popover",e?"signed-in":"signed-out"),n.current&&(t.current?.open(),d())},[e,d]);return{accountRef:l,overlayStateRef:t,handleTriggerFocusCapture:h,handlePointerDownCapture:v,handleContentMouseEnter:p,handleContentMouseLeave:g,handleContentMouseDown:m,handleAccountClick:b}},ra="siteHeaderAccountMFEContainer",du=({accountLink:e,isRedesignedSignInButtonEnabled:t,isLoggedInSsr:n})=>Ie()?s(Nn,{children:s(pu,{accountLink:e,isRedesignedSignInButtonEnabled:t,isLoggedInSsr:n})}):s(uu,{accountLink:e,isRedesignedSignInButtonEnabled:t,isLoggedInSsr:n}),uu=({accountLink:e,isRedesignedSignInButtonEnabled:t,isLoggedInSsr:n})=>{const{translate:r}=$(),o=r(n?"myAccount":"signIn");return t&&!n?s(oa,{accountText:o}):s(ye,{id:ra,href:e.url,iconType:"account",label:o,analyticsId:"account"})},pu=({accountLink:e,isRedesignedSignInButtonEnabled:t,isLoggedInSsr:n})=>{const{isSignedIn:r,signIn:o}=ae(),a=r??n,{translate:i}=$(),c=i(a?"myAccount":"signIn");return t&&!a?s(oa,{onClick:o,accountText:c}):y(U,{children:[a&&s(X,{xs:!0,children:s(ye,{id:ra,href:e.url,iconType:"account",label:c,analyticsId:e.analyticsId||"account"})}),s(X,{sm:!0,md:!0,lg:!0,xl:!0,children:s(P,{justifyContent:"center",alignItems:"center",children:s(mu,{isSignedIn:a,accountText:c})})})]})},oa=({onClick:e,accountText:t})=>y(U,{children:[s(X,{xs:!0,sm:!0,md:!0,children:s(se,{tooltip:t,onClick:e,onKeyDown:n=>["Enter"," "].includes(n.key)&&e?.(),skin:"primary",ml:{sm:"to-actions"},children:s(M,{iconType:"account",skin:"standard","aria-hidden":"true"})})}),s(X,{xl:!0,lg:!0,children:y(F,{ml:"to-actions",skin:"primary",onClick:e,iconPosition:"left",onKeyDown:n=>["Enter"," "].includes(n.key)&&e?.(),"aria-label":t,children:[s(M,{iconType:"account",skin:"standard","aria-hidden":"true"}),s(X,{xl:!0,lg:!0,children:s(x,{fontSkin:"body-small-bold",children:t})})]})})]}),gu=({stateRef:e})=>{const{overlayState:t}=yr();return Ht(()=>{e.current=t}),null},mu=({isSignedIn:e,accountText:t})=>{const{profile:n}=ae(),{accountRef:r,overlayStateRef:o,handleTriggerFocusCapture:a,handlePointerDownCapture:i,handleContentMouseEnter:c,handleContentMouseLeave:d,handleContentMouseDown:u,handleAccountClick:l}=lu({isSignedIn:e});return s("div",{ref:r,onFocusCapture:a,onPointerDownCapture:i,children:y(mr,{position:"bottom",children:[s(gu,{stateRef:o}),s(fr,{children:s(F,{skin:"unstyled",fontSkin:"body-small",onClick:l,"aria-label":t,ml:{sm:"to-actions"},p:{xs:4,lg:0},children:y(P,{gap:"between-icon-and-text",alignItems:"center",children:[s(M,{iconType:"account",size:"standard","aria-hidden":"true"}),s(X,{xl:!0,lg:!0,children:s(x,{children:t})})]})})}),y(hr,{isNonModal:!0,"aria-label":t||void 0,"data-state":e?"signed-in":"signed-out",px:e?5:0,pt:e?5:0,onMouseDown:u,onMouseEnter:c,onMouseLeave:d,children:[!e&&s(Zd,{}),e&&s(na,{profile:n})]})]})})},Dn="mobile-nav-account-trigger",aa=e=>
90`mobile-nav-panel-trigger-${e}`;function fu(e){const[t,n]=I("primary"),[r,o]=I(""),[a,i]=I(""),[c,d]=I(null),u=N(()=>e.find(g=>g.id===r),[e,r]),l=A(({panel:g,title:m,id:h})=>{n(g),i(m),h&&o(h),d({panel:g,id:h})},[]),p=A(()=>{i(""),o(""),n("primary")},[]);return{activePanel:t,title:a,activeNavData:u,openPanel:l,resetNavState:p,lastTriggerPanel:c}}const Ot="/my-account/favorites",hu=(e,t)=>{L().trackLink({navigationDetailPath:[e],href:t})},Fe=({href:e,text:t,analyticsId:n})=>s(R,{children:s(_,{skin:"unstyled",fontSkin:"body-standard",href:e,py:4,width:"full-width",onClick:()=>hu(n||t||"",e),children:t})}),yu=({helpLink:e,myProjectsLink:t,openAccountPanel:n,isRedesignedSignInButtonEnabled:r})=>{const{translate:o}=$(),{content:a}=Le(),{isSignedIn:i,signOut:c,signIn:d}=ae(),u=N(()=>a?.signedIn.bookendsHeaderLinks.find(h=>h.id==="myFavorites"),[a]),l=a?.signedIn.header.sideBarTitle??o("account"),p=a?.signedIn.footer.signOutButtonText??o("signOut"),g=a?.signedOut.header.signInButtonText??o("signIn"),m=()=>{n(l)};return r?s(vu,{isSignedIn:i,signIn:d,signInText:g,handleAccountClick:m,accountText:l,helpLink:e,myProjectsLink:t,signOut:c,signOutText:p,myFavoritesLink:u}):y(Z,{skin:"minimal",style:{gap:0},children:[s(Fe,{href:e.url,text:e.text,analyticsId:e.analyticsId||"help"}),s(Fe,{href:t.url,text:t.text,analyticsId:t.analyticsId||"myProjects"}),s(Fe,{href:u?.url??Ot,text:u?.text??o("myFavorites"),analyticsId:"myFavorites"}),i?y(U,{children:[s(R,{children:y(F,{id:Dn,skin:"unstyled",display:"flex",width:"full-width",style:{justifyContent:"space-between"},py:4,onClick:m,children:[s(x,{fontSkin:"body-standard",children:l}),s(M,{size:"24p",iconType:"chevronRight","aria-label":o("menu.goToAccount")})]})}),s(R,{children:s(F,{skin:"unstyled",onClick:c,py:4,width:"full-width",children:p})})]}):s(R,{children:s(F,{skin:"unstyled",width:"full-width",onClick:d,fontSkin:"body-standard",py:4,children:g})})]})},vu=({isSignedIn:e,signIn:t,signInText:n,handleAccountClick:r,accountText:o,helpLink:a,myProjectsLink:i,signOut:c,signOutText:d,myFavoritesLink:u})=>{const{translate:l}=$();return y(Z,{skin:"minimal",style:{gap:0},children:[!e&&s(R,{children:y(F,{skin:"primary",width:"full-width",onClick:t,fontSkin:"body-standard",iconPosition:"left",children:[s(M,{iconType:"account",size:"standard","aria-hidden":"true"}),n]})}),e&&s(R,{children:y(F,{id:Dn,skin:"unstyled",display:"flex",width:"full-width",style:{justifyContent:"space-between"},py:4,onClick:r,children:[s(x,{fontSkin:"body-standard",children:o}),s(M,{size:"24p",iconType:"chevronRight","aria-label":l("menu.goToAccount")})]})}),s(Fe,{href:u?.url??Ot,text:u?.text??l("myFavorites"),analyticsId:"myFavorites"}),e&&s(Fe,{href:i.url,text:i.text,analyticsId:i.analyticsId||"myProjects"}),s(Fe,{href:a.url,text:a.text,analyticsId:a.analyticsId||"help"}),e&&s(R,{children:s(F,{skin:"unstyled",onClick:c,py:4,width:"full-width",children:d})})]})},Nt=({badge:e})=>
90{if(!e||e.treatment!=="new")return null;const t=e.skin==="standard"?"standard":"low",n=e.skin==="standard"?"accent":"info";return s(Yt,{emphasis:t,skin:n,textAllCaps:e.allCaps,children:e.text+" "})};function de({badge:e,text:t}){return y(U,{children:[t,e&&y(U,{children:["\xA0",s(Nt,{badge:e})]})]})}const ia=[],bu=e=>typeof e=="string"?e:e.Experiment;async function Cu(e,t){if(!t)return;const n=e?.map(bu).filter(o=>!!o),r=t.filter(o=>n?.includes(o.Experiment)&&!ia.includes(o.Experiment));r.length!==0&&r.forEach(async o=>{ia.push(o.Experiment),await Mr(o.Experiment,o.Variation)})}const sa=ie({hoverNavItem:()=>{},hoverSubNavItem:()=>{},isMxNav:!1});function ca({children:e,topLevelNavNodeTests:t,userTests:n,navigation:r}){const{auth:o}=ae(),[a,i]=I([]),c=A((p,g)=>{g&&i(m=>p.reduce((h,v)=>(h.includes(v)||h.push(v),h),[...m]))},[n]);T(()=>{c(t,n)},[t,n]),T(()=>{o&&n?.length&&a.length&&(Cu(a,n),i([]))},[o,n,a]);const d=A((p,g)=>{if(!p)return;const m=r.find(v=>v.id===p);let h=m?.testsInChildren??[];!m.isVisual&&!g&&m.children&&m.children.forEach(v=>{v.testsInChildren&&(h=v.testsInChildren?.reduce((b,S)=>(b.includes(S)||b.push(S),b),h))}),c(h,n)},[n]),u=Ge.useCallback((p,g)=>{if(g){const h=r.find(v=>v.id===p)?.children?.find(v=>v.id===g)?.testsInChildren??[];h.length&&c(h,n)}},[n,r]),l=N(()=>r?.some(p=>p?.children.some(g=>g.startOfMx)),[r]);return s(sa.Provider,{value:{hoverNavItem:d,hoverSubNavItem:u,isMxNav:l},children:e})}const Ce=()=>oe(sa),Su=e=>!!e.children?.length,wu=(e,t)=>t===-1||e<t?ce:un,at=(e,t,n=ze,r=ce)=>{L().trackLink({subSection:q,navigationDetailPath:[...e,t.analyticsId||t.text],navigationSection:r,href:t.url,linkType:n})};function ku({activeNavData:e}){const{isMxNav:t}=Ce(),n=e.children.findIndex(r=>r.startOfMx);return y(Z,{skin:"minimal",style:{gap:0},children:[e.seeAllCategory&&e.url&&t&&s(R,{mt:4,children:s(_,{skin:"unstyled",href:e.url,fontSkin:"body-standard-bold",py:4,onClick:()=>at([e.analyticsId],e),"data-position":0,"data-translations":[e.analyticsId,e.analyticsId].join("|"),"data-section":`${j.HEADER}:${q}`,children:s(de,{badge:e.badge,text:e.seeAllCategory})})}),e.children.map((r,o)=>s(R,{children:s(Eu,{navItem:{...r,itemPosition:o+1},parent:e,isVisual:e.isVisual||r.isVisual,navigationSection:wu(o,n)})},r.id)),e.seeAllMinimal&&e.url&&!t&&s(R,{children:s(_,{skin:"unstyled",href:e.url,fontSkin:"body-standard-bold",py:4,onClick:()=>at([e.analyticsId],e),"data-position":e.children.length+1,"data-translations":[e.analyticsId,e.analyticsId].join("|"),"data-section":`${j.HEADER}:${q}`,children:s(de,{badge:e.badge,text:e.seeAllMinimal})})})]})}function Eu({navItem:e,parent:t,isVisual:n,navigationSection:r=ce}){return n?s(Tu,{navItem:e,parent:t,navigationSection:r}):Su(e)?s(Iu,{navItem:e,parent:t,navigationSection:r}):s(la,{navItem:e,parentNavigationDetails:[t.analyticsId,e.analyticsId],navigationSection:r,isBold:!0})}function Iu({navItem:e,parent:t,navigationSection:n=ce}){const{hoverSubNavItem:r,isMxNav:o}=Ce(),a=i=>{i&&r(e.id,t.id)};return y(U,{children:[e.startOfMx&&s(pe,{my:3}),y(vr,{headingLevel:"h3",m:0,onRequestExpandedChange:a,children:[s(br,{children:s(Cr,{px:0,py:4,children:s(de,{badge:e.badge,text:e.text})})}),s(Sr,{pb:0,children:y(Z,{skin:"minimal",ml:2,pt:0,children:[e.seeAllMinimal&&e.url&&o&&s(R,{children:s(_,{skin:"unstyled",width:"full-width",href:e.url,py:4,onClick:()=>at([t.analyticsId],e,ze,n),"data-position":e.itemPosition,"data-translations":[t.analyticsId,e.analyticsId].join("|"),"data-section":`${j.HEADER}:${q}`,children:s(de,{badge:e.badge,text:e.seeAllMinimal})})}),e.children.slice(0,Oe).map((i,c)=>s(la,{navItem:{...i,itemPosition:c+1},parentNavigationDetails:[t.analyticsId,e.analyticsId],navigationSection:n},i.id))]})})]})]})}function la({navItem:e,parentNavigationDetails:t,navigationSection:n=ce,isBold:r}){return s(_,{skin:"unstyled",href:e.url,width:"full-width",fontSkin:r?"body-standard-bold":"body-standard",py:4,onClick:()=>at(t,e,ze,n),"data-position":e.itemPosition,"data-translations":[...t,e.analyticsId].join("|"),"data-section":`${j.HEADER}:${q}`,children:s(de,{badge:e.badge,text:e.text})})}function Tu({navItem:e,parent:t,navigationSection:n=ce}){const r=()=>
90at([t.analyticsId],e,t.isVisual?Hr:Gr,n);return y(qt,{layout:"vertical",imageWidth:"full-bleed",pt:6,render:o=>s(_,{href:e.url,className:o.className,onClick:r,onKeyDown:a=>["Enter"," "].includes(a.key)&&r(),children:o.children}),children:[e.badge&&s(Jt,{children:s(Nt,{badge:e.badge})}),s(Xt,{children:s(Zt,{aspectRatio:1,alt:e.text,src:e?.image?.url,loading:"lazy",decoding:"async"})}),y(Qt,{children:[s(en,{children:e.text}),s(tn,{children:e.description})]})]})}const Pu={white:{code:"#ffffff",mode:{dark:!1,standard:!0},displayName:"White"},warmWhite:{code:"#f6f6ec",mode:{dark:!1,standard:!0},displayName:"Warm White"},vistaBlue:{code:"#6fd0f5",mode:{dark:!1,standard:!0},displayName:"Vista Blue"},mediumBlue:{code:"#2BA8E0",mode:{dark:!1,standard:!0},displayName:"Vista Blue Medium"},deepBlue:{code:"#006196",mode:{dark:!0,standard:!0},displayName:"Vista Deep Blue"},midnight:{code:"#2f3a53",mode:{dark:!0,standard:!1},displayName:"Midnight"},black900:{code:"#000000",mode:{dark:!0,standard:!1},displayName:"Black"}},Au={softSunkissed:{code:"#F3CB72",mode:{dark:!1,standard:!0},displayName:"Sunkissed"},mainPeach:{code:"#FFB08C",mode:{dark:!1,standard:!0},displayName:"Peach"},deepAperol:{code:"#EE6E58",mode:{dark:!1,standard:!0},displayName:"Aperol"},accentJade:{code:"#00B16B",mode:{dark:!1,standard:!0},displayName:"Jade"}},Lu={canary:{code:"#FFCC43",mode:{dark:!1,standard:!0},displayName:"Canary"},pistachio:{code:"#B2C660",mode:{dark:!1,standard:!0},displayName:"Pistachio"},monstera:{code:"#60A64E",mode:{dark:!1,standard:!0},displayName:"Monstera"},papaya:{code:"#F47944",mode:{dark:!1,standard:!0},displayName:"Papaya"}},Mu={cream:{code:"#ECDBC4",mode:{dark:!1,standard:!0},displayName:"Cream"},cinnamon:{code:"#E77B40",mode:{dark:!1,standard:!0},displayName:"Cinnamon"},copper:{code:"#983A1B",mode:{dark:!0,standard:!1},displayName:"Copper"},ocean:{code:"#3C5351",mode:{dark:!0,standard:!1},displayName:"Ocean"}},xu={frost:{code:"#D9DCEC",mode:{dark:!1,standard:!0},displayName:"Frost"},teal:{code:"#56ADA9",mode:{dark:!1,standard:!0},displayName:"Teal"},pine:{code:"#285E57",mode:{dark:!0,standard:!1},displayName:"Pine"},pomegranate:{code:"#88284E",mode:{dark:!0,standard:!1},displayName:"Pomegranate"}},_u={holiday:{code:"#9a0202",mode:{dark:!0,standard:!1},displayName:"Holiday"},green2:{code:"#06462e",mode:{dark:!0,standard:!1},displayName:"Green2"},green1:{code:"#50af60",mode:{dark:!1,standard:!0},displayName:"Green1"},red1:{code:"#8b0d13",mode:{dark:!0,standard:!1},displayName:"Red1"},red2:{code:"#8b0d13",mode:{dark:!0,standard:!1},displayName:"Red2"},beige1:{code:"#ede3cf",mode:{dark:!1,standard:!0},displayName:"Beige1"},grey950:{code:"#1D1D1D",mode:{dark:!0,standard:!1},displayName:"Grey950"},meringue:{code:"#EDE3CF",mode:{dark:!1,standard:!0},displayName:"Meringue"},eucalyptus:{code:"#50AF60",mode:{dark:!1,standard:!0},displayName:"Eucalyptus"},evergreen:{code:"#06462E",mode:{dark:!0,standard:!1},displayName:"Evergreen"},candyCane:{code:"#8B0D13",mode:{dark:!0,standard:!1},displayName:"Candy Cane"}},Ou=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},{rum:{code:"#c94b2f",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Rum"},talavera:{code:"#2b3b55",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Talavera"},atlantic:{code:"#16618c",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Atlantic"},kingfisher:{code:"#017eb4",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Kingfisher"},rio:{code:"#99d3f3",mode:{dark:!1,standard:!0},deprecated:!0,displayName:"Rio"},caspian:{code:"#204949",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Caspian"},celtic:{code:"#046240",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Celtic"},emerald:{code:"#0a806b",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Emerald"},mediumGreen:{code:"#318643",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Medium Green"},opal:{code:"#c0e6df",mode:{dark:!1,standard:!0},deprecated:!0,displayName:"Opal"},black900:{code:"#000000",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Black"},graphite:{code:"#313131",mode:{dark:!0,standard:!1},deprecated:!0,displayName:"Graphite"},mediumGrey:{code:"#dfdfdf",mode:{dark:!1,standard:!0},deprecated:!0,displayName:"Medium Grey"},platinum:{code:"#efefef",mode:{dark:!1,standard:!0},deprecated:!0,displayName:"Platinum"}}),Pu),_u),Mu),Au),Lu),xu),Nu={npDeepNavy:{code:"#080A54",mode:{dark:!0,standard:!0},displayName:"Deep Navy"},npTeal:{code:"#019497",mode:{dark:!1,standard:!0},displayName:"Teal"},npLavender:{code:"#C29CCD",mode:{dark:!1,standard:!0},displayName:"Lavender"},npPink:{code:"#EF4873",mode:{dark:!1,standard:!0},displayName:"Pink"},npBlack:{code:"#000000",mode:{dark:!0,standard:!0},displayName:"Black"},npWhite:{code:"#FFFFFF",mode:{dark:!1,standard:!0},displayName:"White"},npLightGrey:{code:"#E2E2E2",mode:{dark:!1,standard:!0},displayName:"Light Grey"}},Ru={npCoral:{code:"#F28756",mode:{dark:!1,standard:!0},displayName:"Coral"},npSunnyYellow:{code:"#FFCD3D",mode:{dark:!1,standard:!0},displayName:"Sunny Yellow"},npPaleLemon:{code:"#ECEBA0",mode:{dark:!1,standard:!0},displayName:"Pale Lemon"},npOffWhite:{code:"#F5F5F5",mode:{dark:!1,standard:!0},displayName:"Off White"}},Du={npSage:{code:"#A5BF78",mode:{dark:!1,standard:!0},displayName:"Sage"},npTan:{code:"#F2CDA1",mode:{dark:!1,standard:!0},displayName:"Tan"},npAmber:{code:"#FF9E37",mode:{dark:!1,standard:!0},displayName:"Amber"},npEspresso:{code:"#7C3002",mode:{dark:!0,standard:!0},displayName:"Espresso"}},Bu={npIceBlue:{code:"#F0F5FF",mode:{dark:!1,standard:!0},displayName:"Ice Blue"},npPowderBlue:{code:"#C1D7EE",mode:{dark:!1,standard:!0},displayName:"Powder Blue"},npBrightCyan:{code:"#20B0E5",mode:{dark:!1,standard:!0},displayName:"Bright Cyan"},npCoolGrey:{code:"#ADAFBD",mode:{dark:!1,standard:!0},displayName:"Cool Grey"}},Fu={npMint:{code:"#ADD8D4",mode:{dark:!1,standard:!0},displayName:"Mint"},npSkyBlue:{code:"#99D1E0",mode:{dark:!1,standard:!0},displayName:"Sky Blue"},npWarmTan:{code:"#D6B69D",mode:{dark:!1,standard:!0},displayName:"Warm Tan"},npSeafoam:{code:"#3FBEB7",mode:{dark:!1,standard:!0},displayName:"Seafoam"}},$u={npBurgundy:{code:"#8F2C49",mode:{dark:!0,standard:!0},displayName:"Burgundy"},npCrimson:{code:"#A01E3B",mode:{dark:!0,standard:!0},displayName:"Crimson"},npRed:{code:"#DA3A3E",mode:{dark:!1,standard:!0},displayName:"Red"},npGold:{code:"#EAC87D",mode:{dark:!1,standard:!0},displayName:"Gold"},npPaleMint:{code:"#D8E3DD",mode:{dark:!1,standard:!0},displayName:"Pale Mint"},npForestGreen:{code:"#053F25",mode:{dark:!0,standard:!0},displayName:"Forest Green"},npIvory:{code:"#F6F5F2",mode:{dark:!1,standard:!0},displayName:"Ivory"},npBlush:{code:"#EADDD5",mode:{dark:!1,standard:!0},displayName:"Blush"},npNavy:{code:"#02528C",mode:{dark:!0,standard:!0},displayName:"Navy"},npBabyBlue:{code:"#CDE5F6",mode:{dark:!1,standard:!0},displayName:"Baby Blue"}},Uu={npSalmon:{code:"#FFC6B7",mode:{dark:!1,standard:!0},displayName:"Salmon"},npBeige:{code:"#E0D5C7",mode:{dark:!1,standard:!0},displayName:"Beige"},npSteelBlue:{code:"#527FA1",mode:{dark:!1,standard:!0},displayName:"Steel Blue"},npLilac:{code:"#D7BFE7",mode:{dark:!1,standard:!0},displayName:"Lilac"},npSoftLavender:{code:"#F9F2FF",mode:{dark:!1,standard:!0},displayName:"Soft Lavender"},npBubblegum:{code:"#FDADC2",mode:{dark:!1,standard:!0},displayName:"Bubblegum"},npSoftPink:{code:"#FBF0F4",mode:{dark:!1,standard:!0},displayName:"Soft Pink"},npMutedPurple:{code:"#8384A9",mode:{dark:!1,standard:!0},displayName:"Muted Purple"}
90,npIcyMint:{code:"#F2FFFE",mode:{dark:!1,standard:!0},displayName:"Icy Mint"},npDarkGrey:{code:"#595959",mode:{dark:!0,standard:!0},displayName:"Dark Grey"},npVibrantGreen:{code:"#257D17",mode:{dark:!1,standard:!0},displayName:"Vibrant Green"},npChartreuse:{code:"#C1BD53",mode:{dark:!1,standard:!0},displayName:"Chartreuse"},npTangerine:{code:"#F27827",mode:{dark:!1,standard:!0},displayName:"Tangerine"},npPlatinum:{code:"#F0EFEE",mode:{dark:!1,standard:!0},displayName:"Platinum"}},ju=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Nu),Ru),Du),Bu),Fu),$u),Uu),Vu=Object.assign(Object.assign({},ju),Ou),Gu="site-header-nav-skin-holiday",Hu=Vu.holiday?.code,zu=e=>e===Gu,da=e=>!e||!zu(e)?{}:{color:Hu};function Ku({navigationData:e,openNavPanel:t}){return e?.length?s(Z,{skin:"minimal",style:{gap:0},children:e.map(n=>s(Wu,{navItem:n,openNavPanel:t},n.id))}):null}function Wu({navItem:e,openNavPanel:t}){const{translate:n}=$(),{hoverNavItem:r,isMxNav:o}=Ce(),a=da(e.theme),i=()=>{r(e.id,!0);const u=e.analyticsId?[e.analyticsId]:[],l=q,p=o?pn:void 0;L().trackHeaderLink({subSection:l,navigationDetailPath:u,navigationSection:p})};if(!e.children?.length)return s(R,{children:s(_,{skin:"unstyled",width:"full-width",py:4,href:e.url,onClick:i,onKeyDown:u=>["Enter"," "].includes(u.key)&&r(e.id,!0),style:a,children:s(x,{fontSkin:"body-standard-bold",children:s(de,{badge:e.badge,text:e.text})})})});const c=()=>{i(),r(e.id,!0),t(e.text,e.id)},d=u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),c())};return s(R,{children:y(F,{id:aa(e.id),skin:"unstyled",display:"flex",width:"full-width",style:{justifyContent:"space-between",...a},py:4,onClick:c,onKeyDown:d,children:[s(x,{fontSkin:"body-standard-bold",children:s(de,{badge:e.badge,text:e.text})}),o&&s(M,{size:"standard",iconType:"chevronRight","aria-label":n("menu.showSub")})]})})}const Yu=({brands:e,brandsDesktop:t,brandsHeading:n})=>{const{translate:r}=$(),o=t?.length?t:e;if(!(o?.length>0))return null;const i=(c,d)=>{L().trackLink({subSection:Ci,navigationDetailPath:c?[c]:[],href:d})};return y(P,{gap:5,flexDirection:"column",px:5,py:6,backgroundColor:"strong",style:{margin:"0 -14px -14px -14px"},children:[s(x,{fontSkin:"title-item",textColor:"standard",children:n}),o?.map(c=>s(_,{href:c.url,target:"_blank",rel:"noopener noreferrer external",skin:"unstyled","aria-label":`${c.text}${r("link.opensInNewWindow")}`,onClick:()=>i(c.analyticsId,c.url),children:c.image?.url?s(mt,{src:c.image.url,alt:c.text,loading:"lazy",decoding:"async",style:{maxHeight:"30px",width:"auto"}}):s(Kt,{fontSkin:"body-small",textColor:"standard",children:c.text})},c.text))]})};function qu({helpLink:e,myProjectsLink:t,navigationData:n,openPanel:r,brands:o,brandsDesktop:a,brandsHeading:i,isRedesignedSignInButtonEnabled:c}){return y(P,{flexDirection:"column",style:{width:"100%"},children:[s(yu,{helpLink:e,myProjectsLink:t,openAccountPanel:l=>r({panel:"account",title:l}),isRedesignedSignInButtonEnabled:c}),s(pe,{my:3}),s(Ku,{navigationData:n,openNavPanel:(l,p)=>r({panel:"navCategory",title:l,id:p})}),s(Yu,{brands:o,brandsDesktop:a,brandsHeading:i})]})}function Ju(e){const{helpLink:t,myProjectsLink:n,navigationData:r,handleClose:o,brands:a,brandsDesktop:i,brandsHeading:c,isRedesignedSignInButtonEnabled:d,showMenu:u,locale:l}=e,{isMxNav:p}=Ce(),{translate:g}=$(),{profile:m}=ae(),{activePanel:h,title:v,activeNavData:b,openPanel:S,resetNavState:w,lastTriggerPanel:O}=fu(r),ge=l.split("-")[1]?.toUpperCase()||"",re=W(null),me=W(h),E=A(()=>{w(),o()},[w,o]);T(()=>{if(me.current!==h){if(h==="primary"){const ue=O?.panel==="account"?Dn:O?.id?aa(O.id):void 0;ue&&document.getElementById(ue)?.focus()}else re.current?.focus();me.current=h}},[h,O]);const k=A(ue=>{ue.key==="Escape"&&E()},[E]),_e=()=>h==="primary"?g("menu.main"):v?`${v} ${g("menu.sub")}`:g("menu.menu");return s(dt,{id:"mobileMenuDialog",variant:"menu",bodyWidth:p?"capped":"standard",isOpen:u,onRequestDismiss:E,children:y(ut,{"aria-label":g("menu.navigation"),onKeyDown:k,children:[s(yt,{role:"status","aria-live":"polite",children:_e()}),y(pt,{children:[v&&y(P,{alignItems:"center",gap:"between-icon-and-text",children:[s(F,{ref:re,skin:"unstyled",onClick:w,"aria-label":g("menu.goBackMain"),children:s(M,{iconType:"arrowLeft",size:"standard","aria-hidden":"true"})}),s(Wt,{children:s(x,{fontSkin:"body-standard-bold",children:v})})]}),s(gt,{"aria-label":g("close")})]}),s(pe,{}),y(ft,{children:[h==="primary"&&s(qu,{helpLink:t,myProjectsLink:n,navigationData:r,openPanel:S,brands:a,brandsDesktop:i,brandsHeading:c,isRedesignedSignInButtonEnabled:d}),h==="navCategory"&&b&&s(ku,{activeNavData:b}),h==="account"&&s(na,{profile:m,placement:"sidebar"})]}),ro(ge)&&s(wr,{pinned:!0,style:{marginInline:"-14px"},pl:5,children:s(kr,{children:s(oo,{vatPlacement:"mobile-menu",locale:l})})})]})})}function Xu(e){const{locale:t,helpLink:n,myProjectsLink:r,navigationData:o,brands:a,brandsDesktop:i,brandsHeading:c,isRedesignedSignInButtonEnabled:d}=e,{translate:u}=$(),l=Ie(),[p,g]=I(!1),m=()=>g(!1),h=()=>{L().trackHeaderLink({subSection:q,navigationDetailPath:["Hamburger"]}),g(!0)};return y(U,{children:[s(se,{tooltip:u("menu.open"),skin:"tertiary",onClick:h,display:"block",p:3,"aria-haspopup":"dialog","aria-expanded":p,"aria-controls":"mobileMenuDialog",children:s(M,{iconType:"menu",size:"standard","aria-label":u("menu.open")})}),s(Nn,{children:l&&s(Ju,{helpLink:n,myProjectsLink:r,navigationData:o,handleClose:m,brands:a,brandsDesktop:i,brandsHeading:c,isRedesignedSignInButtonEnabled:d,showMenu:p,locale:t})})]})}var Zu="DesktopNavigationItem_desktop-nav-container__WMPzZ",Qu="DesktopNavigationItem_desktop-nav-item__fMWfR",ep="DesktopNavigationItem_desktop-nav-item-inner__k4keK";const tp=(e,t)=>e.replaceAll("{name}",t),Rt=e=>`${e}-submenu`,ua=e=>`${e}-button`,pa=e=>
90!!(e.url&&e.image?.url);function np(e){const t=e.children??[];if(e.isVisual)return ga(rp(t),!0);const n=op(),r=t.some(o=>o.startOfMx);for(const[o,a]of t.entries()){if(a.isVisual){ap(n,a);continue}if(!ip(n,a,r))break;if(!r){const c=t.length-(o+1);pp(n,c)}}return ga(n.columns.filter(o=>o.length>0),!1)}function ga(e,t){let n=0,r=!1;for(const o of e)for(const a of o){if(a.startOfMx&&(r=!0),a.inMx=r,a.isVisual){a.itemPosition=t?++n:0;continue}a.url&&(a.itemPosition=++n);const i=(a.children??[]).slice(0,Oe);for(const c of i)c.itemPosition=++n,c.inMx=r}return e}function rp(e){return e.filter(pa).map(t=>[t])}function op(){return{columns:Array.from({length:Ne},()=>[]),itemCounts:new Array(Ne).fill(0),currentColumn:0,isPromoPlaced:!1,mxColumnsConsumed:void 0,mxStartColumn:void 0}}function ap(e,t){if(e.isPromoPlaced||!pa(t))return;const n=e.mxStartColumn!=null?e.mxStartColumn+(jr-1):Ne-1;e.itemCounts[n]=Oe,e.columns[n]=[t];for(let r=n+1;r<Ne;r++)e.columns[r]=[];e.isPromoPlaced=!0}function ip(e,t,n){const r=Math.min(t.children?.length??0,Oe);sp(e,t);const o=!!(t.pushToNextColumn&&n||t.startOfMx);return cp(e,r,o),up(e)?!1:(e.itemCounts[e.currentColumn]+=r,e.columns[e.currentColumn]?.push(t),!0)}function sp(e,t){t.startOfMx&&e.mxColumnsConsumed==null&&(e.mxColumnsConsumed=0,e.mxStartColumn=e.currentColumn+1)}function cp(e,t,n){let r=n;for(;e.currentColumn<Ne&&(r||lp(e,t));)dp(e),r=!1}function lp(e,t){return e.itemCounts[e.currentColumn]+t>Oe}function dp(e){e.mxColumnsConsumed!=null&&e.mxColumnsConsumed++,e.currentColumn++}function up(e){const t=e.currentColumn>=Ne,n=(e.mxColumnsConsumed??0)>jr;return t||n}function pp(e,t){const n=e.itemCounts.filter(r=>r===0).length;t<=n&&e.currentColumn++}const ma=(e,t,n)=>{L().trackLink({subSection:q,navigationDetailPath:e,navigationSection:n?t.inMx?un:ce:void 0,href:t.url,linkType:ze})},gp=He(({navItem:e,parent:t})=>{const{hoverSubNavItem:n,isMxNav:r}=Ce(),o=ot({hoverIn:()=>n(t.id,e.id)}),a=N(()=>(e.children??[]).slice(0,Oe),[e.children]),i=d=>()=>{d?ma([t.analyticsId,e.analyticsId,d.analyticsId],d,r):ma([t.analyticsId,e.analyticsId],e,r)},c=d=>u=>{["Enter"," "].includes(u.key)&&i(d)()};return y(R,{ref:o,onFocus:()=>n(t.id,e.id),children:[s(te,{marginBottom:2,children:e.url?s(_,{skin:"unstyled",fontSkin:"body-standard-bold",href:e.url,onClick:i(),onKeyDown:c(),"data-position":e.itemPosition,"data-section":`${j.HEADER}:${q}`,"data-translation":[t.analyticsId,e.analyticsId].join("|"),children:s(de,{badge:e.badge,text:e.text})}):s(x,{fontSkin:"body-standard-bold",style:{margin:0,color:z("SwanSemColorFgSubtle")},children:s(de,{badge:e.badge,text:e.text})})}),a.length>0&&s(Z,{skin:"minimal",children:a.map(d=>s(R,{children:s(_,{skin:"unstyled",fontSkin:"body-small",href:d.url,py:1,onClick:i(d),onKeyDown:c(d),"data-position":d.itemPosition,"data-section":`${j.HEADER}:${q}`,"data-translation":[t.analyticsId,e.analyticsId,d.analyticsId].join("|"),children:s(de,{badge:d.badge,text:d.text})})},d.id))})]})}),mp=He(({navItem:e,parent:t,isVisualCategory:n})=>{const{hoverSubNavItem:r}=Ce(),o=ot({hoverIn:()=>r(t.id,e.id)}),a=()=>{L().trackLink({subSection:q,navigationDetailPath:[t.analyticsId,e.analyticsId||e.text],navigationSection:n?void 0:e.inMx?un:ce,href:e.url,linkType:n?Hr:Gr})},i=c=>{["Enter"," "].includes(c.key)&&a()};return s(R,{ref:o,onFocus:()=>r(t.id,e.id),children:y(qt,{layout:"vertical",imageWidth:"full-bleed",render:c=>s(_,{href:e.url,className:c.className,onClick:a,onKeyDown:i,"data-position":e.itemPosition,"data-translation":[t.analyticsId,e.analyticsId].join("|"),"data-section":`${j.HEADER}:${q}`,children:c.children}),children:[e.badge&&s(Jt,{children:s(Nt,{badge:e.badge})}),s(Xt,{children:s(Zt,{aspectRatio:1,alt:e.text,src:e?.image?.url,loading:"lazy",decoding:"async"})}),y(Qt,{children:[s(en,{children:e.text}),s(tn,{children:e.description})]})]})})}),fp={position:"fixed",inset:0,backgroundColor:z("SwanSemColorFgSubtle"),opacity:"0.5",zIndex:`calc(${z("SwanSemZIndexOverlay")} - 1)`};function hp({show:e,onClose:t,top:n}){return e?s("div",{style:{...fp,top:n},onClick:t,onMouseMove:t,"aria-hidden":"true"}):null}const yp=["de-de","de-at","de-ch"];function vp(e){const{seeAllText:t,seeAllUrl:n,parentNavigationDetailPath:r,seeAllAnalyticsId:o}=e,a=o&&r?r.concat(o):[],i=()=>L().trackLink({subSection:q,navigationDetailPath:a,href:n}),c=d=>{["Enter"," "].includes(d.key)&&i()};return!t||!n?null:s(R,{backgroundColor:"strong",children:s(vt,{py:7,px:8,children:s(_,{href:n,onClick:i,onKeyDown:c,skin:"unstyled",fontSkin:"body-standard-bold",style:{textTransform:yp.includes(navigator.language.toLowerCase())?"capitalize":"none"},"data-position":0,"data-translation":a.join("|"),"data-section":`${j.HEADER}:${q}`,children:t})})})}const bp=He(({data:e,onClose:t,isActive:n})=>
90{const r=W(null),[o,a]=I(0),{isMxNav:i}=Ce(),{translate:c}=$();Ht(()=>{if(!n||!r.current)return;const l=()=>{r.current&&a(r.current.getBoundingClientRect().bottom)};l(),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l);const p=new ResizeObserver(l);return p.observe(r.current),()=>{window.removeEventListener("scroll",l),window.removeEventListener("resize",l),p.disconnect()}},[n]);const d=A(l=>{const p=()=>{t();const b=document.getElementById(ua(e.id));delete b?.dataset.keyboardNav,b?.focus()};if(l.key==="Escape"){p();return}if(l.key!=="Tab")return;const m=document.getElementById(Rt(e.id))?.querySelectorAll("a, button");if(!m||m.length===0)return;const h=document.activeElement===m[m.length-1]&&!l.shiftKey,v=document.activeElement===m[0]&&l.shiftKey;(h||v)&&(l.preventDefault(),p())},[e.id,t]),u=N(()=>np(e),[e]);return y(U,{children:[y(Z,{ref:r,onKeyDown:d,"aria-label":`${e.text} ${c("menu.sub")}`,id:Rt(e.id),skin:"minimal",backgroundColor:"standard",display:n?"flex":"none",className:Zu,pt:0,children:[s(vt,{as:"li",py:7,px:8,display:"flex",style:{justifyContent:e.isVisual?"flex-start":i?"center":"space-between",width:"100%"},children:u.map((l,p)=>s(Cp,{column:l,data:e,isLastColumn:u.length===p+1},l[0].id))}),!i&&s(vp,{seeAllText:e.seeAllCategory,seeAllUrl:e.url,parentNavigationDetailPath:[e.analyticsId||e.text],seeAllAnalyticsId:e.analyticsId})]}),s(hp,{show:!!n,onClose:t,top:o})]})}),Cp=({column:e,data:t,isLastColumn:n})=>{if(e.length===0)return null;const r=e.find(a=>a.startOfMx),o=!!(e.find(a=>a.isVisual)||t.isVisual);return y(Gt,{children:[r&&s(pe,{style:{height:"unset",width:"1px",marginRight:z("SwanSemSpace6")}}),s(Z,{skin:"minimal",style:{width:o?"15.5%":"auto",maxWidth:"15.5%",gap:z("SwanSemSpaceBetweenSubsections"),marginRight:n?0:"4%"},pt:0,children:e.map(a=>o||a.isVisual?s(mp,{navItem:a,parent:t,isVisualCategory:!!t.isVisual},a.id):s(gp,{navItem:a,parent:t},a.id))},`col-${e[0].id}`)]},`col-${e[0].id}`)},Sp=He(({item:e,isActive:t,hasBeenOpened:n,updateActiveTab:r,onClose:o})=>{const{translate:a}=$(),i=!!e.children?.length,c=tp(a("menu.showSubFor"),e.text),d=N(()=>da(e.theme),[e.theme]),{hoverNavItem:u}=Ce(),l=A(()=>{u(e.id,!1),r(e.id)},[e.id,r]),p=ot({hoverIn:l}),g=A(()=>{L().trackLink({subSection:q,navigationDetailPath:[e.analyticsId||e.text],navigationSection:pn,href:e.url})},[e.analyticsId,e.text,e.url]),m=A(h=>{if(!i){h.key===" "&&(h.preventDefault(),h.currentTarget.click());return}const v=h.currentTarget;["Enter"," "].includes(h.key)&&(h.preventDefault(),h.stopPropagation(),r(e.id),g(),v.dataset.keyboardNav=""),h.key==="Escape"&&o(),(h.key==="Tab"||h.key==="Escape")&&delete v.dataset.keyboardNav},[e.id,o,r,g,i]);return y(R,{className:Qu,children:[y("div",{className:ep,children:[s(_,{ref:p,onClick:g,onFocus:()=>u(e.id),py:5,px:3,href:e.url,skin:"unstyled",style:{justifyContent:"center"},children:y(x,{as:"p",fontSkin:"body-small",textColor:"standard",textAlign:"center",m:0,children:[s("span",{style:d,children:e.text}),e.badge&&y(U,{children:["\xA0",s(Nt,{badge:e.badge})]})]})}),i&&s(se,{skin:"tertiary",tooltip:c,onKeyDown:m,"aria-label":c,"aria-expanded":t,"aria-controls":Rt(e.id),id:ua(e.id),py:0,children:s(M,{iconType:"caretDown"})})]}),i&&(n?s(bp,{data:e,onClose:o,isActive:t}):s("div",{id:Rt(e.id)}))]})}),wp=({navigationData:e})=>{const{translate:t}=$(),[n,r]=I(),o=W(n);o.current=n;const[a,i]=I(new Set),c=A(()=>{r(void 0),i(new Set)},[]),d=A(l=>{r(l),e.find(g=>g.id===l)?.children?.length&&i(g=>g.has(l)?g:new Set(g).add(l))},[e]);T(()=>{const l=p=>{p.key==="Escape"&&o.current&&c()};return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[c]);const u=ot({hoverOut:c});return e?.length?s(te,{as:"nav",ref:u,"aria-label":t("mainNavigation"),px:0,children:s(Z,{skin:"minimal",style:{flexDirection:"row",gap:0},children:e.map(l=>s(Sp,{item:l,isActive:n===l.id,hasBeenOpened:a.has(l.id),onClose:c,updateActiveTab:d},l.id))})}):null},kp=async(e,t,n)=>{const r=encodeURIComponent(t),o=`${ai}/${n}/${e}/${r}`,a=await fetch(o);if(!a.ok)throw new Error(`Failed to fetch navigation data by variation: ${a.statusText}`);return a.json()},Bn={trackView(e){L().trackFlyOutView("Language Bar",`view_${e}`)},trackSelect(e){L().trackFlyOutClick("Language Bar",`select_${e}`)},trackClose(e){L().trackFlyOutClick("Language Bar",`close_${e}`)}};function Ep({locale:e,languageBarData:t}){const r=ke()==="xs",[o,a]=e.split("-"),i=t?.alternateLanguages,{showLanguageBar:c,hideLanguageBar:d}=Ip(o,a,!!i?.length),u=()=>{Bn.trackClose(o??""),d(),mn(We.HIDE_LANGUAGE_BAR,"true",Ye.ONE_WEEK)},l=async(p,g,m)=>{Bn.trackSelect(m),kt(le.HIDE_LANGUAGE_BAR_SESSION,"true");const h=g.split("-")[0];if(o===h)d();else{const v=globalThis.location?.pathname??"/",b=await vn({currentUrl:v,requestLocale:g,locale:e}),S=b==="/"?p:`${globalThis.location.origin}${b}`;globalThis.location.href=S}};return!c||!i?.length?null:y(P,{justifyContent:"center",fontSkin:"body-small",alignItems:{xs:"flex-start",sm:"center"},textColor:"standard",darkMode:!0,gap:4,p:3,flexDirection:{xs:"column",sm:"row"},style:{backgroundColor:z("SwanSemColorBgStrong"),position:"relative"},children:[s(P,{m:0,fontSkin:"body-small-bold",flexWrap:"wrap",style:{whiteSpace:"pre-line"},children:i.map(({title:p})=>p).join(`
91`)}),s(P,{justifyContent:"space-between",gap:{xs:"3",sm:"4"},alignItems:"center",style:{width:r?"100%":"auto"},children:i.map(({url:p,text:g,localeCode:m})=>s(F,{skin:"secondary",py:3,px:6,width:r?"full-width":"standard",textColor:"standard",fontSkin:"body-small",onClick:()=>l(p,m,g),children:g},g))}),s(Tp,{isMobile:r,onClick:u})]})}const Ip=(e,t,n)=>{const[r,o]=I(!1),a=()=>o(!1);return T(()=>{const i=fn(We.HIDE_LANGUAGE_BAR)||qe(le.HIDE_LANGUAGE_BAR_SESSION),d=(navigator.languages.length?navigator.languages[0]:navigator.language)?.split("-")[0];e!==d&&n&&i!=="true"&&(o(!0),Bn.trackView(e??""))},[e,t,n]),{showLanguageBar:r,hideLanguageBar:a}};function Tp({isMobile:e,onClick:t}){const{translate:n}=$(),r={position:"absolute",top:0,right:0};return s(se,{tooltip:n("close"),skin:"tertiary",p:3,textColor:"standard",style:{height:z("SwanSemSpace7"),...e?r:{}},onClick:t,children:s(M,{iconType:"close",size:"16p"})})}const B="https://cms.cloudinary.vpsvc.com/image/upload/c_scale,dpr_auto,f_auto,q_auto,w_46/country_flags",Pp={US:{flagUrl:`${B}/usflag.svg`,cloudflareCountryCode:"US",displayName:"United States",closeButtonText:"Close",selectCountryText:"Select Country",continueText:"Continue"},AU:{flagUrl:`${B}/auflag.svg`,cloudflareCountryCode:"AU",displayName:"Australia",closeButtonText:"Close",selectCountryText:"Select Country",continueText:"Continue"},BE:{flagUrl:`${B}/beflag.svg`,cloudflareCountryCode:"BE",displayName:"Belgi\xEB",closeButtonText:"Sluiten",selectCountryText:"Selecteer land"},BR:{flagUrl:`${B}/brflag.svg`,cloudflareCountryCode:"BR",displayName:"Brazil",closeButtonText:"Fechar",selectCountryText:"Select Country"},CA:{flagUrl:`${B}
91/caflag.svg`,cloudflareCountryCode:"CA",displayName:"Canada",closeButtonText:"Close",selectCountryText:"Select Country",continueText:"Continue"},DK:{flagUrl:`${B}/dkflag.svg`,cloudflareCountryCode:"DK",displayName:"Danmark",closeButtonText:"Luk",selectCountryText:"V\xE6lg land",continueText:"Forts\xE6t"},DE:{flagUrl:`${B}/deflag.svg`,cloudflareCountryCode:"DE",displayName:"Deutschland",closeButtonText:"Schlie\xDFen",selectCountryText:"Land ausw\xE4hlen",continueText:"Weiter"},ES:{flagUrl:`${B}/esflag.svg`,cloudflareCountryCode:"ES",displayName:"Espa\xF1a",closeButtonText:"Cerrar",selectCountryText:"Seleccionar un pa\xEDs",continueText:"Continuar"},FR:{flagUrl:`${B}/frflag.svg`,cloudflareCountryCode:"FR",displayName:"France",closeButtonText:"Fermer",selectCountryText:"S\xE9lectionner pays",continueText:"Continuer"},IN:{flagUrl:`${B}/inflag.svg`,cloudflareCountryCode:"IN",displayName:"India",closeButtonText:"Close",selectCountryText:"Select Country",continueText:"Continue"},IE:{flagUrl:`${B}/ieflag.svg`,cloudflareCountryCode:"IE",displayName:"Ireland",closeButtonText:"Close",selectCountryText:"Select Country",continueText:"Continue"},IT:{flagUrl:`${B}/itFlag.svg`,cloudflareCountryCode:"IT",displayName:"Italia",closeButtonText:"Chiudi",selectCountryText:"Seleziona Paese",continueText:"Continua"},NL:{flagUrl:`${B}/nlflag.svg`,cloudflareCountryCode:"NL",displayName:"Nederland",closeButtonText:"Sluiten",selectCountryText:"Selecteer land",continueText:"Doorgaan"},NZ:{flagUrl:`${B}/nzflag.svg`,cloudflareCountryCode:"NZ",displayName:"New Zealand",closeButtonText:"Close",selectCountryText:"Select Country",continueText:"Continue"},NO:{flagUrl:`${B}/noflag.svg`,cloudflareCountryCode:"NO",displayName:"Norge",closeButtonText:"Lukk",selectCountryText:"Velg land",continueText:"Fortsett"},AT:{flagUrl:`${B}/atflag.svg`,cloudflareCountryCode:"AT",displayName:"\xD6sterreich",closeButtonText:"Schlie\xDFen",selectCountryText:"Land ausw\xE4hlen",continueText:"Weiter"},PT:{flagUrl:`${B}/ptflag.svg`,cloudflareCountryCode:"PT",displayName:"Portugal",closeButtonText:"Fechar",selectCountryText:"Selecionar pa\xEDs",continueText:"Continuar"},CH:{flagUrl:`${B}/chflag.svg`,cloudflareCountryCode:"CH",displayName:"Schweiz",closeButtonText:"Schlie\xDFen",selectCountryText:"Land ausw\xE4hlen"},SG:{flagUrl:`${B}/sgflag.svg`,cloudflareCountryCode:"SG",displayName:"Singapore",closeButtonText:"Close",selectCountryText:"Select Country",continueText:"Continue"},FI:{flagUrl:`${B}/fiflag.svg`,cloudflareCountryCode:"FI",displayName:"Suomi",closeButtonText:"Sulje",selectCountryText:"Valitse maa",continueText:"Jatka"},SE:{flagUrl:`${B}/seflag.svg`,cloudflareCountryCode:"SE",displayName:"Sverige",closeButtonText:"St\xE4ng",selectCountryText:"V\xE4lj land",continueText:"Forts\xE4tt"},GB:{flagUrl:`${B}/gbflag.svg`,cloudflareCountryCode:"GB",displayName:"United Kingdom",closeButtonText:"Close",selectCountryText:"Select Country",continueText:"Continue"}};function Ap(e){return Pp[e.toUpperCase()]}function fa(e){const t=e.pathPrefix||"";return`https://${e.domain}${t}/`}function Lp(e,t){const n=fa(e);if(t.toLowerCase()===e.locales.primary.toLowerCase()&&e.locales.omitPrimaryPrefix)return n;const o=t.split("-")[0]?.toLowerCase()??"";return`${n}${o}/`}function Mp(e){const t=new Map;for(const r of e.sites){const o=t.get(r.countryCode)||[];o.push(r),t.set(r.countryCode,o)}const n=[];for(const[r,o]of t){const a=Ap(r);if(!a)continue;const i=o.find(u=>u.isPrimary)??o[0];if(!i)continue;const c=i.locales.primary,d=[];for(const u of o)for(const l of u.locales.supported){const p=l.split("-")[0]?.toLowerCase()??"en";d.push({url:Lp(u,l),text:p.toUpperCase(),analyticsId:"",locale:l.toLowerCase()})}n.push({text:a.displayName,url:fa(i),imageUrl:{image:{url:a.flagUrl}},locale:c.toLowerCase(),analyticsId:"",cloudflareCountryCode:a.cloudflareCountryCode,alternateLanguages:d})}return n}const xp=()=>{const e=Ie(),{translate:t}=$(),n=s(ye,{href:Ot,iconType:"heart",label:t("myFavorites")});return e?s(nn,{fallback:n,children:s(Nn,{children:s(_p,{})})}):n},_p=()=>{const{translate:e}=$(),{content:t}=Le(),n=N(()=>t?.signedIn.bookendsHeaderLinks.find(r=>r.id==="myFavorites"),[t]);return s(ye,{href:n?.url??Ot,iconType:_t(n?.iconType,"heart"),label:n?.text??e("myFavorites"),analyticsId:"myFavorites"})};var J={},Fn={exports:{}};/*! js-cookie v3.0.8 | MIT */var Op=Fn.exports;(function(e,t){(function(n,r){e.exports=r()})(Op,(function(){function n(i){for(var c=1;c<arguments.length;c++){var d=arguments[c];for(var u in d)u!=="__proto__"&&(i[u]=d[u])}return i}var r={read:function(i){return i[0]==='"'&&(i=i.slice(1,-1)),i.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(i){return encodeURIComponent(i).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
91URIComponent)}};function o(i,c){function d(l,p,g){if(!(typeof document>"u")){g=n({},c,g),typeof g.expires=="number"&&(g.expires=new Date(Date.now()+g.expires*864e5)),g.expires&&(g.expires=g.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var h in g)g[h]&&(m+="; "+h,g[h]!==!0&&(m+="="+g[h].split(";")[0]));return document.cookie=l+"="+i.write(p,l)+m}}function u(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var p=document.cookie?document.cookie.split("; "):[],g={},m=0;m<p.length;m++){var h=p[m].split("="),v=h.slice(1).join("=");try{var b=decodeURIComponent(h[0]);if(b in g||(g[b]=i.read(v,b)),l===b)break}catch{}}return l?g[l]:g}}return Object.create({set:d,get:u,remove:function(l,p){d(l,"",n({},p,{expires:-1}))},withAttributes:function(l){return o(this.converter,n({},this.attributes,l))},withConverter:function(l){return o(n({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(c)},converter:{value:Object.freeze(i)}})}var a=o(r,{path:"/"});return a}))})(Fn);var Np=Fn.exports,Rp=ds(bs),$e={},ha={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Regulations=void 0,(function(t){t[t.None=0]="None",t[t.GDPR=1]="GDPR",t[t.CCPA=2]="CCPA"})(e.Regulations||(e.Regulations={}))})(ha),(function(e){var t=$e&&$e.__createBinding||(Object.create?(function(r,o,a,i){i===void 0&&(i=a);var c=Object.getOwnPropertyDescriptor(o,a);(!c||("get"in c?!o.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(r,i,c)}):(function(r,o,a,i){i===void 0&&(i=a),r[i]=o[a]})),n=$e&&$e.__exportStar||function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(ha,e)})($e);var Ue={},Se={};Object.defineProperty(Se,"__esModule",{value:!0}),Se.overrides=Se.AllAllowedPreferences=Se.DefaultGdprPreferences=void 0,Se.DefaultGdprPreferences={functional:!0,advertising:!1,sessionReplay:!1,dataSale:!0},Se.AllAllowedPreferences={functional:!0,advertising:!0,sessionReplay:!0,dataSale:!0},Se.overrides={ie:{functional:!1},pt:{functional:!1},no:{functional:!1}},(function(e){var t=Ue&&Ue.__createBinding||(Object.create?(function(r,o,a,i){i===void 0&&(i=a);var c=Object.getOwnPropertyDescriptor(o,a);(!c||("get"in c?!o.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(r,i,c)}):(function(r,o,a,i){i===void 0&&(i=a),r[i]=o[a]})),n=Ue&&Ue.__exportStar||function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,r,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(Se,e)})(Ue);var Dt=J&&J.__assign||function(){return Dt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Dt.apply(this,arguments)},Dp=J&&J.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(J,"__esModule",{value:!0});var ya=J.onCookieConsentProvided=J.isCookieConsentPending=J.getCookieConsent=J.applyOverrides=J.getRegulations=void 0,Bp=Dp(Np),Fp=Cn,$n=Rp,Me=$e,Bt=Ue;function va(e){return e?(e=e.toLowerCase(),(0,Fp.isEuMember)(e)||e==="ch"||e==="no"||e==="gb"):!1}function $p(){var e,t;try{t=(0,$n.getCurrentCountry)()}catch{return!0}var n=!!(!((e=window?.consentManager)===null||e===void 0)&&e.openConsentManager),r=va(t)||n&&t.toLowerCase()!=="us";return r}function ba(){var e;try{e=(0,$n.getCurrentCountry)()}catch{return Me.Regulations.GDPR}return e?(e=e.toLowerCase(),e==="us"?Me.Regulations.CCPA:va(e)?Me.Regulations.GDPR:Me.Regulations.None):Me.Regulations.None}J.getRegulations=ba;function Ca(){var e=Bp.default.get("tracking-preferences");return e?JSON.parse(e):{}}function Sa(e){var t,n;return e.version===4?(n=(t=e.custom)===null||t===void 0?void 0:t.datasale)!==null&&n!==void 0?n:!0:!(e.destinations&&e.destinations.All===!0&&e.destinations["Facebook Pixel"]===!1)}function wa(e,t){t===void 0&&(t=Bt.overrides);var n;try{n=(0,$n.getCurrentCountry)()}catch{return e}if(t&&Object.keys(t).includes(n)){var r=Object(e);
91return Object.keys(t[n]).forEach(function(o){r[o]=Object(t[n])[o]}),r}return e}J.applyOverrides=wa;function Up(){var e=ba(),t=Ca();if(e===Me.Regulations.None)return{hasConsent:!1,categories:Bt.AllAllowedPreferences};if(e===Me.Regulations.CCPA)return{hasConsent:!1,categories:Dt(Dt({},Bt.AllAllowedPreferences),{dataSale:Sa(t)})};if(t.custom){var n=t.custom,r=n.functional,o=n.advertising,a=n.sessionreplay,i={hasConsent:t.consent!==!1,categories:{functional:r??!0,advertising:o??!1,sessionReplay:a??!1,dataSale:Sa(t)}};return i}return{hasConsent:!1,categories:wa(Bt.DefaultGdprPreferences)}}J.getCookieConsent=Up;function jp(){var e=Ca();return e&&e.custom&&e.consent!==!1?!1:$p()}J.isCookieConsentPending=jp;function Vp(e,t){if(t===void 0&&(t=!0),typeof e=="function"){var n=function(r){var o=r;e(o.detail),t&&window.removeEventListener("cookieConsentProvided",n)};window.addEventListener("cookieConsentProvided",n)}}ya=J.onCookieConsentProvided=Vp;let Gp=zp();function Hp(){return Gp.tracking}function zp(){let e={};return typeof window<"u"&&(e=window),e.trackingInitialized=e.trackingInitialized||!1,e}var Kp={getTracking:Hp};class it extends Error{}it.prototype.name="InvalidTokenError";function Wp(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Yp(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Wp(t)}catch{return atob(t)}}function qp(e,t){if(typeof e!="string")throw new it("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new it(`Invalid token specified: missing part #${n+1}`);let o;try{o=Yp(r)}catch(a){throw new it(`Invalid token specified: invalid base64 for part #${n+1} (${a.message})`)}try{return JSON.parse(o)}catch(a){throw new it(`Invalid token specified: invalid json for part #${n+1} (${a.message})`)}}const Un="MicroAgent should not be used in Node Environment",Jp=(e,t)=>{let n=null,r=[],o=typeof window<"u";const a=async()=>{try{const d=await t();if(d===null){o=!1,r.forEach(({reject:u})=>{u(new Error(Un))}),r=[];return}n=new d.MicroAgent(...e);for(const{method:u,args:l,resolve:p,reject:g}of r)try{const m=n[u](...l);p(m)}catch(m){g(m)}r=[]}catch(d){for(const{reject:u}of r)u(d);r=[]}},i=(d,u)=>new Promise((l,p)=>{r.push({method:d,args:u,resolve:l,reject:p})});o&&a();let c=typeof window>"u";return{proxyMethod(d){return(...u)=>(c&&(console.warn(Un),c=!1),n?Promise.resolve(n[d](...u)):o?i(d,u):Promise.reject(new Error(Un)))}}},Xp=()=>"https://www.vistaprint.com/assets/new-relic-microagent",Zp=e=>`https://www.${e}/assets/new-relic-microagent`,Qp=e=>{const t=e.match(/vistaprint\.[a-z]{2,3}(\.[a-z]{2,3})?/);return t&&t[0]?Zp(t[0]):Xp()},ka="@vp/newrelic-browser-micro-agent/agent",eg=()=>{if(window._vpMicroAgentModule)return window._vpMicroAgentModule;if(window.System?.resolve(ka))return window._vpMicroAgentModule=window.System.import(ka),window._vpMicroAgentModule;const e=Qp(window.location.hostname);return window._vpMicroAgentModule=tg(e).catch(t=>{throw console.error("MicroAgent failed to load",{url:e,error:t.message}),window._vpMicroAgentModule=void 0,t}),window._vpMicroAgentModule};function tg(e){const t=window.__vpMicroAgentRegister;if(t?.module)return Promise.resolve(t.module);if(t?.pending)return t.pending;let n,r;const o=new Promise((i,c)=>{n=i,r=c});window.__vpMicroAgentRegister&&(window.__vpMicroAgentRegister.pending=o);const a=document.createElement("script");return a.type="module",a.src=e,a.onerror=(i,c)=>{console.error("Error loading module script:",i,c),window.__vpMicroAgentRegister&&(window.__vpMicroAgentRegister.pending=void 0),r(new Error(`Failed to load module script: ${e}`))},a.onload=()=>{const i=window.__vpMicroAgentRegister;i?.module?(i.pending=void 0,n(i.module)):(i&&(i.pending=void 0),r(new Error(`Module ${e} loaded but did not register itself.`))),a.remove()},document.head.appendChild(a),o}typeof window<"u"&&(!window.__vpMicroAgentRegister||!window.__vpMicroAgentRegister.version||window.__vpMicroAgentRegister.version<1)&&(window.__vpMicroAgentRegister=Object.assign(function(e,t){window.__vpMicroAgentRegister.module=t},{version:1,import:eg,module:void 0,pending:void 0}));const ng=(...e)=>{const t=async()=>
91{if(typeof window<"u")try{const r=window.__vpMicroAgentRegister?.import;if(!r)throw new Error("MicroAgent import helper not found on window.__vpMicroAgentRegister");return await r()}catch(r){return console.error("MicroAgent failed to load",r),null}else return null},n=Jp(e,()=>t());return new Proxy({},{get:(r,o)=>{const a=n.proxyMethod(o);if(a)return(...i)=>a(...i).catch(()=>{})}})},rg=(e,t,n=!1)=>{typeof window<"u"?window[e]=t:n&&console.error(`[NewRelicTracker] 'window' is undefined, unable to save Agent ${e} to window.`)},og=({agentId:e,config:t,debug:n})=>{const r=ng(t);return rg(e,r,n),r};function Ea(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}typeof SuppressedError=="function"&&SuppressedError;const je="[NewRelicTracker]",Ia=()=>typeof window>"u",jn=(e,t={enforceAgentExists:!1})=>{if(Ia())throw new Error("window is undefined");const n=window[e];if(t.enforceAgentExists&&n===void 0)throw new Error(`Agent ${e} does not exist`);return n},ag=e=>!Ia()&&window[e]!==void 0,ig=({agentId:e,staticApplicationData:t,debug:n=!1})=>{let r;const{shopperId:o="",tenant:a="",site:i="",locale:c="",additionalAttributes:d={}}=t;try{r=jn(e)}catch(u){return void(n&&console.error(`${je} Unable to initialize New Relic Tracking Container - ${u.message}`))}try{r.setCustomAttribute("shopperId",o),r.setCustomAttribute("tenant",a),r.setCustomAttribute("site",i),r.setCustomAttribute("locale",c),Object.entries(d).forEach(([u,l])=>{r.setCustomAttribute(u,l)})}catch(u){n&&console.error(`${je} Something went wrong attempting to custom attributes on agent: ${e} - ${u.message}`)}},st=(e,t,n={},r=!1)=>{let o;try{o=jn(e,{enforceAgentExists:!0})}catch(a){return void(r&&console.error(`${je} Unable to trackEvent: ${t} - ${a.message}`))}try{o.addPageAction(t,n)}catch(a){r&&console.error(`${je} Error occurred while tracking new relic event.`,{actionName:t,eventProperties:n},a)}},Vn=(e,t,n={},r=!1)=>{if(!t)return;const{errorName:o}=n,a=Ea(n,["errorName"]),{message:i,stack:c}=t,d=Ea(t,["message","stack"]),u=o||i||"unknown-error-id";let l;try{l=jn(e,{enforceAgentExists:!0})}catch(b){return void(r&&console.error(`${je} Unable to trackError: ${u} - ${b.message}`))}const p=(g=d,m="Authorization",JSON.stringify(g,(b,S)=>(S&&S[m]&&delete S[m],S)),g);var g,m;const h=new Error(u),v=Object.assign({rootErrorObject:{rootErrorMessage:i,rootErrorStack:c},originalError:p},a);try{l.noticeError(h,v)}catch(b){r&&console.error(`${je} Error occurred while tracking new relic error.`,{modifiedError:h,errorAttributes:v},b)}};var sg="3.1.4",cg={version:sg};const lg="google_one_tap_feature_flag",dg="https://accounts.google.com/gsi/client",ug="google-one-tap-script",ne="google-one-tap",Gn="trackingReady",pg="staging",gg=()=>{const[e,t]=I(!1);return T(()=>{const n=()=>{ho()||t(!0)};if(window.trackingInitialized)n();else{const o=()=>{n(),window.removeEventListener(Gn,o)};return window.addEventListener(Gn,o),()=>{window.removeEventListener(Gn,o)}}ya(()=>{t(!0)})},[]),e},mg=()=>{const[e,t]=I(!1);return T(()=>{e||(an(),sn(n=>{n&&t(cn(lg))}))},[e]),e},Ta=()=>typeof window>"u"?!1:new URLSearchParams(window.location.search).get("googleOneTapDebug")==="true",Hn="vistaprint",fg=["vistaprint","national-pen"],hg=({isDevelopment:e,tenant:t,environment:n})=>{const r=(t??Hn).toLowerCase();if(!yg(r)){console.warn(`[google-one-tap] Unknown tenant "${t}". Falling back to "${Hn}".`);const{clientId:i}=Pa({tenant:Hn,isDevelopment:e,environment:n});return i}const{clientId:o,envKey:a}=Pa({tenant:r,isDevelopment:e,environment:n});return(zn({isDevelopment:e,environment:n})||Ta())&&console.log(`[google-one-tap] Resolved client ID for tenant "${r}" (environment: ${n??"undefined"}) from ${a}: ${o||"(not set)"}`),o};function yg(e){return fg.includes(e)}function zn({isDevelopment:e,environment:t}){return!!e||t===pg}function Pa({tenant:e,isDevelopment:t,environment:n}){switch(e){case"vistaprint":return zn({isDevelopment:t,environment:n})?{clientId:"343394417575-hffh8b7bq2r9kucidsd7hh33j97028h4.apps.googleusercontent.com",envKey:"VITE_GOOGLE_CLIENT_ID_VISTAPRINT_TEST"}:{clientId:"698509477252-q60d4qh2nsd0h86amgpm25m11lp99b0v.apps.googleusercontent.com",envKey:"VITE_GOOGLE_CLIENT_ID_VISTAPRINT_PROD"};case"national-pen":return zn({isDevelopment:t,environment:n})?{clientId:"181313749201-67tgrht84iqn5h2j2masv4gceo1osc4k.apps.googleusercontent.com",envKey:"VITE_GOOGLE_CLIENT_ID_NATIONAL_PEN_TEST"}:{clientId:"1061903491884-krgert648fmd5nq80bljdf0ab6bnlp77.apps.googleusercontent.com",envKey:"VITE_GOOGLE_CLIENT_ID_NATIONAL_PEN_PROD"}}}const vg=e=>
91e?"1431905873":"1120492662",bg="2429158",Cg="4558439",Sg="1106546",wg="4558439",Aa="bam.nr-data.net",kg="NRBR-1cc07de507144ad76b6",Eg="NRBR-b6191402f9850daf027",Ig=e=>{const t=vg(e),n=e?Eg:kg;return{init:{},info:{beacon:Aa,errorBeacon:Aa,licenseKey:n,applicationID:t,sa:1},loader_config:{accountID:e?Cg:bg,trustKey:e?wg:Sg,agentID:t,licenseKey:n,applicationID:t},exposed:!1}};function Tg(){return typeof navigator<"u"&&navigator.credentials!==void 0&&typeof navigator.credentials.get=="function"&&"FederatedCredential"in window}const Pg=async e=>{try{const t=await fetch("https://oauth2.googleapis.com/tokeninfo",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token:e})});return t.ok?(await t.json()).email_verified:!1}catch{return!1}},Ag="Google One Tap";var Kn=(e=>(e.PROMPT_DISPLAYED="Prompt Displayed",e.PROMPT_NOT_DISPLAYED="Prompt Not Displayed",e))(Kn||{}),ct=(e=>(e.NOT_DISPLAYED="User Sign-In Attempted",e.SIGNED_IN="User Sign-In Succeeded",e.DISMISSED="User Sign-In Dismissed",e.SKIPPED="User Sign-In Skipped",e))(ct||{});const Ft=(e,t)=>{const n=Kp.getTracking();n?.track&&n.track(e,{category:Ag,label:t})},Lg=({isDevelopment:e,disableCoolDown:t})=>{const[n,r]=I(!1),[o,a]=I(!1),{auth:i,isIdentityInitialized:c,isSignedIn:d}=bt(),{tenant:u,environment:l}=on(),p=Pr(),g=i?.getCanonicalId(),m=mg(),h=i&&c&&!d,v=gg(),b=h&&!n&&m&&v,S=e||Ta();T(()=>{b&&g&&!o&&(ag(ne)||og({agentId:ne,config:Ig(e??!1),debug:S}),ig({agentId:ne,staticApplicationData:{shopperId:g,additionalAttributes:{version:cg.version,page:window?.location.href??"unknown"}},debug:S}),a(!0))},[b,g,e,o,S]);const w=Tg();return T(()=>{const O=async E=>{try{if(i){const k=qp(E.credential,{});await Pg(E.credential)||st(ne,"email-not-verified",{message:"email_verified is false returned by Google with email",email:k.email,anonymousShopperId:g}),st(ne,"sign-in",{message:"Anonymous users signing in using Google one tap",email:k.email,anonymousShopperId:g}),i.signIn([],[],{enableGoogleOneTap:!0,enforcedEmail:k.email,trackingCaller:ne}),Ft(ct.SIGNED_IN,g??"")}}catch(k){Vn(ne,k,{message:"Error calling auth.signIn"})}},ge=()=>{const E=ug;if(document.getElementById(E))return;const k=document.createElement("script");k.id=E,k.src=dg,k.async=!0,k.defer=!0,k.onload=re,k.onerror=()=>{S&&(p.error("Failed to load Google One Tap script"),Vn(ne,new Error("Failed to load Google One Tap script"),{}))},document.head.appendChild(k)},re=()=>{if(typeof google>"u"||!google?.accounts||!google?.accounts.id){Vn(ne,new Error("Google One Tap initialization failed"),{});return}google.accounts.id.initialize({client_id:hg({isDevelopment:e,tenant:u??void 0,environment:l}),callback:O,auto_select:!1,cancel_on_tap_outside:!1,use_fedcm_for_prompt:w}),me()},me=()=>{google.accounts.id.prompt(E=>{if(!w&&E.isNotDisplayed()){const k=E.getNotDisplayedReason();S&&st(ne,"not-displayed",{message:`Not displayed (user not eligible, blocked, network issue): ${k}`,reason:k}),Ft(ct.NOT_DISPLAYED,k?`${Kn.PROMPT_NOT_DISPLAYED} - ${k}`:Kn.PROMPT_NOT_DISPLAYED)}if(E.isSkippedMoment()){const k=w?"":E.getSkippedReason();S&&st(ne,"skipped",{message:`Skipped by the system (recent user interaction, preferences or settings): ${k}`,reason:k}),Ft(ct.SKIPPED,k)}if(E.isDismissedMoment()){const k=E.getDismissedReason();S&&st(ne,"dismissed",{message:`Dismissed by user (manual closure, clicked outside prompt): ${k}`,reason:k}),Ft(ct.DISMISSED,k)}t&&(document.cookie="g_state=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT")})};b&&(ge(),r(!0))},[b,i,t,g,w,u,l,e,p]),null},Mg=()=>Ie()?s(Lg,{}):null;class xg extends jt{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){const r={componentName:this.props.componentName,errorMessage:t.message,errorStack:t.stack,componentStack:n.componentStack};Y.instance.error("Bookends Client Error",r)}render(){return this.state.hasError?this.props.fallback&&this.state.error?this.props.fallback(this.state.error):(this.props.suppressError,null):this.props.children}}function _g({myProjectsLink:e,isRedesignedSignInButtonEnabled:t,isLoggedInSsr:n}){const r=Ie();if(!e)return null;const o=s(ye,{href:e.url,iconType:"myProjects",label:e.text,analyticsId:e.analyticsId||"myProjects"});return r?s(nn,{fallback:o,children:s(Og,{myProjectsLink:e,isRedesignedSignInButtonEnabled:t,isLoggedInSsr:n})}):o}const Og=({myProjectsLink:e,isRedesignedSignInButtonEnabled:t,isLoggedInSsr:n})=>{const{isSignedIn:r}=ae(),o=t&&!(r??n);return T(()=>{const a=document.getElementById(D.MY_PROJECTS);a&&(a.hidden=o)},[o]),o?null:s(ye,{href:e.url,iconType:"myProjects",label:e.text,analyticsId:e.analyticsId||"myProjects"})};function Ng({helpLink:e,carePhoneNumber:t="",siteHeaderHelpLinkA11YText:n=""}){return s(ye,{href:e.url,iconType:"helpQuery",analyticsId:e.analyticsId||"help",accessibleLabel:n?.replace("{{{phoneNumber}}}",t)||e.text,label:y(P,{flexDirection:"column",children:[s(x,{"aria-label":n?.replace("{{{phoneNumber}}}",t),children:e.text}),s(x,{textColor:"subtle",children:t})]})})}const Rg={borderRadius:"50%"},Dg=({icon:e,heading:t,description:n,justifyContent:r})=>y(P,{alignItems:"flex-start",justifyContent:r,paddingTop:4,children:[s(te,{padding:5,style:Rg,bgc:"accent",children:s(M,{iconType:e,size:"standard",skin:"standard","aria-hidden":"true"})}),y(P,{flexDirection:"column",paddingLeft:5,children:[s(x,{fontSkin:"title-item",children:t}),s(x,{fontSkin:"body-small",children:n})]})]}),Bg=({pillarData:e,carouselA11yText:t})=>{const n=A(r=>!!(r.icon&&r.heading&&r.description),[]);return e?.length?s(X,{xs:!0,children:s(Er,{slidesToShow:1,slidePicker:"standard","aria-label":t.label,children:e.filter(n).map(({icon:r,heading:o,description:a})=>s(Ir,{children:s(te,{paddingLeft:"8",paddingRight:"8",children:s(Dg,{icon:r,heading:o,description:a,justifyContent:"center"})})},`${r}-${o}`))})}):null},Fg={label:"Brand pillars",role:"carousel",slideRole:"slide",visibleSlides:"1 of {total}",dotsTemplate:"Go to slide {slideNumber}"}
91,$g={"adaptive-carousel-slide.aria-roledescription":"slide","adaptive-carousel-slide-picker-internal.accessible-text-for-button":"Go to slide {{slideNumber}}","adaptive-carousel-slide-picker-thumbnail.accessible-text-for-button":"Go to slide {{slideNumber}}","adaptive-carousel-slide-navigation-internal.accessible-text-for-next-button":"Go to next slide","adaptive-carousel-slide-navigation-internal.accessible-text-for-previous-button":"Go to previous slide","adaptive-carousel.accessible-text-for-slide":"{{current}} of {{totalSlides}}","adaptive-carousel.accessible-text-for-visible-slides_one":"Slide {{start}} of {{totalSlides}}","adaptive-carousel.accessible-text-for-visible-slides_other":"Slides {{start}} to {{end}} of {{totalSlides}}","adaptive-carousel.aria-roledescription":"carousel"};function G(e){return document.getElementById(e)}function H(e,t){const n=e.id;return qn(e,t,{onCaughtError:(r,o)=>{const a=r instanceof Error?r:new Error(String(r)),i="cause"in a?a.cause:void 0;Y.instance.error("[bookends-v2] Hydration onCaughtError",{error:a.message,cause:i,componentStack:o.componentStack,containerId:n})},onUncaughtError:(r,o)=>{const a=r instanceof Error?r:new Error(String(r)),i="cause"in a?a.cause:void 0;Y.instance.error("[bookends-v2] Hydration onUncaughtError",{error:a.message,cause:i,componentStack:o.componentStack,containerId:n})},onRecoverableError:r=>{Y.instance.warning("[bookends-v2] Hydration onRecoverableError",{error:r instanceof Error?r.message:String(r),containerId:n})}})}function Q(...e){return t=>e.reduceRight((n,r)=>r(n),t)}function ee(e,t){return s(e,{children:t})}function $t(e){return s(ht,{children:e})}function xe(e,t){return s(Ar,{auth:Md(e),children:t})}function we(e,t){return s(Qa,{defaultLocale:e,children:t})}function Ug(e){return[ln.FULL_HEADER,ln.SLIM_HEADER].includes(e)?j.HEADER:j.FOOTER}function jg(e,t=1e3){"requestIdleCallback"in window?requestIdleCallback(e,{timeout:t}):e()}function Vg(e,t,n,r){const o=G(D.GOOGLE_ONE_TAP);if(!o)return;const{tenant:a,userContext:i}=n;if(!i||!a)return;const c=Q(d=>ee(e,d),d=>xe(r,d));t.add(H(o,c(s(xg,{componentName:"GoogleOneTap",suppressError:!0,
91children:s(Mg,{})}))))}function Gg(e,t,n,r,o){const a=G(D.GEO_IP_BAR);if(!a)return;const{currentCountry:i,tenant:c,geoIpBarContent:d}=n,u=Q(l=>ee(e,l),$t,l=>we(r,l));t.add(H(a,u(s(Zi,{locale:r,currentCountry:i,tenant:c,supportedCountries:o,geoIpBarContent:d}))))}function Hg(e,t,n,r){const o=G(D.VAT_SELECTION_BAR);if(!o)return;const{vatToggleLabel:a,vatToggleInclusionText:i,vatToggleExclusionText:c}=n,d=Q(u=>ee(e,u),$t);t.add(H(o,d(s(hn,{vatToggleLabel:a,vatToggleInclusionText:i,vatToggleExclusionText:c,children:s(ks,{locale:r})}))))}function zg(e,t,n,r){const o=G(D.LANGUAGE_BAR);if(!o)return;const{languageBarData:a}=n,i=Q(c=>ee(e,c),$t,c=>we(r,c));t.add(H(o,i(s(Ep,{locale:r,languageBarData:a}))))}function Kg(e,t,n){const r=G(D.VAT_TOGGLE);if(!r)return;const{vatToggleLabel:o,vatToggleInclusionText:a,vatToggleExclusionText:i,locale:c}=n;t.add(H(r,s(e,{children:s(hn,{vatToggleLabel:o,vatToggleInclusionText:a,vatToggleExclusionText:i,children:s(oo,{vatPlacement:li.BRAND_BANNER,locale:c})})})))}function Wg(e,t,n,r){const o=G(D.SEARCH_BAR);if(!o)return;const{forwardPath:a="",searchLabel:i,userContext:c,isExpandedSearchEnabled:d,tenant:u}=n;if(!c||!u)return;const l=i??"",p=Q(g=>ee(e,g),g=>we(r,g),g=>s(lt,{locale:r,translations:{"search-input.accessible-text-for-search-button":l,"search-input.accessible-text-for-clear-button":Br(r).translate("search.clear")},children:g}));t.add(H(o,p(s(ti,{locale:r,forwardedPath:a,searchLabel:l,isExpandedSearchEnabled:d}))))}function Yg(e,t,n,r){const o=G(D.MY_PROJECTS);if(!o||n.tenant!=="vistaprint")return;const{myProjectsLink:a,isRedesignedSignInButtonEnabled:i=!1,isLoggedInSsr:c}=n;if(!a)return;const d=Q(u=>ee(e,u),u=>xe(r,u));t.add(H(o,d(s(_g,{myProjectsLink:a,isRedesignedSignInButtonEnabled:i,isLoggedInSsr:c}))))}function qg(e,t,n){const r=G(D.HELP_LINK);if(!r||!n.helpLink)return;const{helpLink:o,carePhoneNumber:a,siteHeaderHelpLinkA11YText:i=""}=n;t.add(H(r,s(e,{children:s(Ng,{helpLink:o,carePhoneNumber:a,siteHeaderHelpLinkA11YText:i})})))}function Jg(e,t,n,r){const o=G(D.FAVORITES_HEADER);if(!o)return;const a=Q(i=>ee(e,i),i=>xe(r,i),i=>we(r,i));t.add(H(o,a(s(xp,{}))))}function Xg(e,t,n,r){const o=G(D.CART);if(!o||!n.cartLink)return;const{cartLink:a}=n,i=Q(c=>ee(e,c),c=>xe(r,c));t.add(H(o,i(s(Pd,{locale:r,cartLink:a}))))}function Zg(e,t,n,r){const o=G(D.MY_ACCOUNT);if(!o||!n.accountLink)return;const{accountLink:a}=n,i=Q(c=>ee(e,c),c=>xe(r,c),c=>we(r,c));t.add(H(o,i(s(du,{accountLink:a,isRedesignedSignInButtonEnabled:n.isRedesignedSignInButtonEnabled,isLoggedInSsr:n.isLoggedInSsr}))))}function La(e,t,n,r,o){if(!n.currentCountry||!n.localeSelectButtonA11yText)return;const{currentCountry:a,localeSelectButtonA11yText:i,tenant:c,countrySelectorDialogHeader:d}=n,u=Q(m=>ee(e,m),$t,m=>we(r,m)),l=m=>u(s(os,{currentCountry:a,localeSelectButtonA11yText:i,locale:r,tenant:c,mountId:m,countrySelectorDialogHeader:d,supportedCountries:o})),p=G(D.COUNTRY_SELECTOR_DESKTOP);p&&t.add(H(p,l(D.COUNTRY_SELECTOR_DESKTOP)));const g=G(D.COUNTRY_SELECTOR_MOBILE);g&&t.add(H(g,l(D.COUNTRY_SELECTOR_MOBILE)))}function Qg(e,t,n){if(!n.footerNavigation)return;const{footerNavigation:r,awardCallout:o,isLoggedInSsr:a,locale:i}=n,c=G(D.FOOTER_NAVIGATION);if(c){const d=Q(u=>ee(e,u),u=>xe(i,u));t.add(H(c,d(s(Oi,{footerNavigation:r,awardCallout:o,isLoggedInSsr:a}))))}}function em(e,t,n,r){const{absoluteGuarantee:o}=n;if(!o)return;const a=G(D.NP_ABSOLUTE_GUARANTEE);if(!a)return;const i=Q(c=>ee(e,c),c=>we(r,c));t.add(H(a,i(s(di,{absoluteGuarantee:o}))))}async function tm(e,t,n,r){const o=n.navigationData?.userVariationKey,a=G(D.DESKTOP_NAVIGATION),i=G(D.MOBILE_MENU);if(!o||!a&&!i)return;const{myProjectsLink:c,helpLink:d,tenant:u,brands:l,brandsDesktop:p,brandsHeading:g}=n;try{const m=await kp(r,o,u);jg(()=>{const h=Q(v=>ee(e,v),v=>xe(r,v),v=>we(r,v));if(a&&t.add(H(a,h(s(ca,{navigation:m.data,topLevelNavNodeTests:m.topLevelNavNodeTests||[],userTests:n.navigationData?.abTestData||[],children:s(wp,{navigationData:m.data})})))),i){const{vatToggleLabel:v,vatToggleInclusionText:b,vatToggleExclusionText:S}=n;t.add(H(i,h(s(ca,{navigation:m.data,topLevelNavNodeTests:m.topLevelNavNodeTests||[],userTests:n.navigationData?.abTestData||[],children:s(hn,{vatToggleExclusionText:S,vatToggleInclusionText:b,vatToggleLabel:v,children:s(Xu,{helpLink:d,myProjectsLink:c,navigationData:m.data,brands:l,brandsDesktop:p,locale:r,brandsHeading:g,isRedesignedSignInButtonEnabled:n.isRedesignedSignInButtonEnabled})})}))))}})}catch(m){Y.instance.error("[bookends-v2] Failed to fetch navigation data",{error:m})}}function Ma(e,t){const n=e.dataset.tracking;if(n)try{const{bookendName:r,...o}=JSON.parse(n);!o.href&&t.target?.nodeName==="A"&&(o.href=t.target.href),(r===j.HEADER?L():Ui()).trackLink(o)}catch(r){Y.instance.error("[bookends-v2] Failed to parse tracking data",{error:r})}}const xa=new WeakSet;function nm(){document.querySelectorAll("[data-tracking]").forEach(t=>
91{xa.has(t)||(xa.add(t),t.addEventListener("click",n=>{Ma(t,n)}),t.addEventListener("keydown",n=>{["Enter"," "].includes(n.key)&&Ma(t,n)}))})}function rm(e,t,n,r){const o=G(D.BRAND_PILLARS_CAROUSEL);!o||!n.pillarData?.length||t.add(H(o,s(e,{children:s(lt,{locale:r,translations:$g,children:s(ht,{children:s(vt,{children:s(Bg,{pillarData:n.pillarData,carouselA11yText:Fg})})})})})))}const am=_a("mount",async(e,t)=>{const n=t.locale||Ur,r=Ug(t.componentName);await Rr(n.toLowerCase());const{Provider:o}=await Lr({wrapInSwanRoot:!1}),a=new Set,i=t.tenantConfigLite?Mp(t.tenantConfigLite):void 0;return $i(n,r),r===j.HEADER&&(Vg(o,a,t,n),Gg(o,a,t,n,i),Hg(o,a,t,n),zg(o,a,t,n),Kg(o,a,t),Wg(o,a,t,n),Yg(o,a,t,n),qg(o,a,t),Jg(o,a,t,n),Xg(o,a,t,n),Zg(o,a,t,n),La(o,a,t,n,i),tm(o,a,t,n)),r===j.FOOTER&&(La(o,a,t,n,i),Qg(o,a,t),em(o,a,t,n),rm(o,a,t,n)),nm(),{unmount:()=>{a.forEach(c=>c.unmount()),a.clear()}}})})}}));
92//# sourceMappingURL=fragment-bookends-v2-BOKc5EQs.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.