PageSourceSearch

https://uppababy.co.uk/_nuxt/B-l4oPhd.js

js uppababy.co.uk collected 2026-10-07 20:29:24 UTC 10,878 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B8vsfiA3.js","./B30BqIw0.js","./entry.BE7KYCbw.css","./DB5XoyW6.js","./ClBCcXpJ.js","./T5de72pB.js","./SharedAccountSignModal.BTRPUKIi.css","./Ciw8vvhc.js","./Bd9_UhsN.js","./Dy94r6Ln.js","./D6VhNHKZ.js","./BjKcje8d.js","./DtVTSuJb.js","./D3E9COuH.js","./ebaZTzNf.js","./Ce8m-lLt.js","./QEOfgnAY.js","./PlcMfStr.js","./D5uXLkT1.js","./C4qVvRU7.js","./BWyHS0qt.js","./DWe0eW3u.js","./CyrWB5XQ.js","./BqzGI13Z.js","./BMZSuWDh.js","./1V3UmDFY.js","./DgKymIvq.js","./a6QgvTK3.js","./DbEhd-4a.js","./DzkKVbW_.js","./CTbwcthU.js","./rJYau-14.js","./DcfyVq36.js","./DjR8SXae.js","./1eHxk8l2.js","./D0GTzCB6.js","./B1mk3P22.js","./mRkiIKob.js","./CheckoutSideCart.DEcIuv-y.css","./B_RwfjQC.js","./C8kXeDDP.js","./R7rYESJU.js"])))=>i.map(i=>d[i]);
2import{b as ke,$ as Ce,f as we,g as xe,G as K,r as u,a as Se,h as Le,aM as Ne,ae as Ae,J as Ee,a7 as W,b5 as Ie,a6 as J,I as Me,b6 as $e,b2 as Ue,j as i,k as n,t as c,at as F,x as s,l as M,w as L,m as e,o as Pe,v as m,F as Re,M as ze,_ as Oe,N as Te,q as a,s as _,L as Y,U as $,V as U}from"./B30BqIw0.js";import Be from"./C5QPFtUN.js";import He from"./BSpOSU79.js";import{_ as Ve}from"./BnJeWkWi.js";import{_ as De}from"./BbwI7-eR.js";import{u as Fe}from"./DB5XoyW6.js";import{u as qe}from"./R7rYESJU.js";import{u as Qe}from"./CTXkINjB.js";const je=$(()=>U(()=>import("./B8vsfiA3.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url).then(r=>r.default||r)),Ge=$(()=>U(()=>import("./Ciw8vvhc.js"),__vite__mapDeps([7,1,2,8,9,10,11,12]),import.meta.url).then(r=>r.default||r)),Ke=$(()=>U(()=>import("./D3E9COuH.js"),__vite__mapDeps([13,14,1,2,15,16,17,18,9,10,11,12,19,20,21,22,23,24,25,26,27,28,29,3,30,31,32,33,34,35,36,37,38]),import.meta.url).then(r=>r.default||r)),We=$(()=>U(()=>import("./B_RwfjQC.js"),__vite__mapDeps([39,1,2,20,40,12,41,3]),import.meta.url).then(r=>r.default||r)),Je={key:0,class:"screen-reader-skip_buttons"},Ye={class:"linkbutton","data-testid":"launcher",onclick:"window.zE(function() { window.zE.activate(); });"},Xe={key:0},Ze={key:1},et={key:2,class:"flex flex-col space-y-4 button my-8"},tt={key:3,class:"flex flex-col space-y-4 button my-8"},ot={class:"header-wrap px-6 py-4 lg:px-9 lg:py-4 sm:px-6 sm:py-3"},nt={class:"flex items-center justify-between"},at=["src"],st=["href"],it=["src"],lt={key:3,class:"flex items-center space-x-4"},rt={class:"hidden lg:flex md:hidden items-center space-x-4"},ut={key:0,class:"w-6 h-6 icon ub-search"},ct={class:"sr-only"},dt=["aria-label","title"],pt={class:"w-6 h-6 icon ub-user-avatar"},bt={class:"sr-only"},ht={class:"sr-only"},mt=["aria-label"],_t={class:"w-6 h-6 icon ub-search"},gt={class:"sr-only"},ft=["aria-label","aria-expanded"],yt=["aria-label"],vt=["aria-label"],It=ke({__name:"LayoutHeader",setup(r){const{count:g}=Ce(),X=we(),{formatLink:P}=xe(X),v=K(),N=u(!1),{isLoggedIn:R,user:Z,refreshUser:q}=Fe(),{sessionContext:Q}=Se(),{isCartAndAccountBlocked:A}=qe(),f=Le(),ee=Ne(),te=u(null),z=u(0),l=u(null);u(!1);const O=u(0),b=u(!1),k=u(!1),{isExternalRegistration:y,externalLogoUrl:oe}=Qe(),C=Ae("geoCookie",{maxAge:3600*24*30,secure:!0,sameSite:!0});function ne(){C.value="ca",window.location.href="https://"+(d&&d.length>0?d:"")+"uppababy.ca/"}function ae(){C.value="ca",w.includes("uppababy.ca")?I.close():window.location.href="https://"+(d&&d.length>0?d:"")+"uppababy.ca/"}const E=Q?.value?.salesChannel?.translated?.customFields?.logo_url,j=Q?.value?.salesChannel?.translated?.customFields?.logo_url_destination;function se(){C.value="us",I.close()}function ie(){window.location.href="https://"+(d&&d.length>0?d:"")+"uppababy.ca/site-unavailable/"}const d=ze().public.ENVIRONMENT_USED,w=Ee().host,h=u(!1),x=u(!1),I=K(),le=()=>f.path.startsWith("/register/")&&f.path!=="/register/",T=()=>{N.value=!N.value},re=()=>{b.value=!b.value},G=()=>{k.value=!k.value,k.value?document.body.style.overflow="hidden":document.body.style.overflow="auto"},ue=t=>{O.value=t},B=()=>{l.value&&(z.value=l.value.offsetHeight-36)},ce=()=>{const t=document?.querySelector(".header-sub-navigation");
2t&&l.value&&!l.value.contains(t)&&l.value.appendChild(t)},de=()=>{const t=document?.querySelector(".header-sub-navigation");l.value&&t&&l.value.contains(t)&&l.value.removeChild(t)},H=u(null);W(()=>f.path,(t,o)=>{t!==o&&H.value&&H.value.focus()},{immediate:!0});const V=t=>{t.preventDefault();const o=document.getElementById("primary");o?(o.setAttribute("tabindex","-1"),o.focus()):console.warn('Skip link target element with ID "primary" not found.')};W(()=>f.path,async()=>{R.value&&f.path==="/account/"&&q(),await J(),de()},{immediate:!0}),Ie(async()=>{await J(),document.querySelector(".header-sub-navigation")&&ce()});let S;return Me(()=>{B(),$e(window,"resize",B,{passive:!0}),l.value&&(S=new ResizeObserver(()=>{B()}),S.observe(l.value)),R.value&&q();const t=f.query.geo;if(t&&t.toString().toUpperCase()==="CA"&&(h.value=!0),t&&t.toString().toUpperCase()==="QC"&&(h.value=!0,w.includes("uppababy.ca")&&(x.value=!0)),h.value||x.value){if(C.value==="ca"&&h.value||C.value==="us"&&h.value||w.includes("uppababy.ca")&&h.value&&!x.value||!w.includes("uppababy.ca")&&!w.includes("uppababy.com"))return;I.open()}}),Ue(()=>{S&&l.value&&(S.unobserve(l.value),S.disconnect())}),(t,o)=>{const pe=Be,be=He,D=Oe,he=Ve,me=je,_e=Ge,ge=Ke,fe=Te,ye=We,ve=De;return a(),i(Re,null,[n("div",{id:"app-start",ref_key:"appStart",ref:H,tabindex:"-1","aria-hidden":"true",class:"sr-only"},null,512),le()?s("",!0):(a(),i("div",Je,[n("a",{ref_key:"skipLinkRef",ref:te,onClick:V,onKeydown:[F(V,["enter"]),F(V,["space"])],id:"skip-link",href:"#primary"},c(t.$t("skipToContent")),545),n("button",Ye,c(t.$t("openSupportWidget")),1)])),M(pe,{id:"geoPopup",class:"geopopup",controller:e(I),showCloseButton:!0},{default:L(()=>[o[9]||(o[9]=n("h2",{id:"modal-headline"},"Welcome to UPPAbaby / Bienvenue chez UPPAbaby!",-1)),e(x)?(a(),i("p",Xe,o[6]||(o[6]=[_("Thank you for visiting uppababy.ca ! It looks like you may be browsing from Quebec. Please confirm: "),n("br",null,null,-1),_(" Merci de visiter uppababy.ca ! Il semble que vous naviguiez depuis le Québec. Veuillez confirmer :")]))):e(h)?(a(),i("p",Ze,"It looks like you are located in Canada — do you want to continue to uppababy.ca?")):s("",!0),e(x)?(a(),i("div",et,[n("button",{class:"bg-[#0F0C0A] text-white p-1",onClick:ie},o[7]||(o[7]=[_(" Yes, I am in Quebec "),n("br",null,null,-1),_(" Oui, je suis au Québec. ")])),n("button",{onClick:ae,class:"border-2 border-[#0F0C0A] text-[#0F0C0A] p-1 bg-white"},o[8]||(o[8]=[_(" No, I'm in another province "),n("br",null,null,-1),_(" Non, je suis dans une autre province ")]))])):e(h)?(a(),i("p",tt,[n("button",{type:"button",class:"px-6 py-2 bg-[#0F0C0A] text-white font-semibold rounded-full shadow-lg transition duration-150 ease-in-out",onClick:Y(ne,["prevent"])},"Continue to our Canadian site"),n("button",{type:"button",class:"px-6 py-2 bg-[#0F0C0A] text-white font-semibold rounded-full shadow-lg transition duration-150 ease-in-out",onClick:Y(se,["prevent"])}," Return to the US site")])):s("",!0)]),_:1,__:[9]},8,["controller"]),M(be,{id:"BannerSlider",class:"",onUpdateHeight:ue}),n("header",{id:"headerRef",ref_key:"headerRef",ref:l,class:"bg-uppababy-bodybg shadow-sm sticky","aria-label":"top-navigation"},[n("div",ot,[n("div",nt,[n("div",{class:Pe(["flex items-center",e(y)?"grow":""])},[e(y)?(a(),i("a",{key:1,href:e(oe),class:"m-auto"},[n("img",{src:e(E)?e(E):"/Ub_logo.svg",alt:"UPPAbaby Logo",class:"h-6 lg:h-8 w-auto"},null,8,it)],8,st)):(a(),m(D,{key:0,to:e(j)?e(j):e(P)("/")},{default:L(()=>[n("img",{src:e(E)?e(E):"/Ub_logo.svg",alt:"UPPAbaby Logo",class:"h-6 lg:h-8 w-auto"},null,8,at)]),_:1},8,["to"]))],2),e(y)?s("",!0):(a(),m(he,{key:0})),M(me,{"is-open":e(N),"banner-height":e(O),"header-height":e(z),onClose:o[
20]||(o[0]=p=>N.value=!1)},null,8,["is-open","banner-height","header-height"]),e(k)?(a(),m(_e,{key:1,"is-open":e(k),"banner-height":e(O),"header-height":e(z),onClose:G},null,8,["is-open","banner-height","header-height"])):s("",!0),M(fe,null,{default:L(()=>[e(y)?s("",!0):(a(),m(ge,{key:0,controller:e(v)},null,8,["controller"]))]),_:1}),e(y)?s("",!0):(a(),m(ye,{key:2,onClickSidemenu:T})),e(y)?s("",!0):(a(),i("div",lt,[n("div",rt,[e(b)?s("",!0):(a(),m(D,{key:0,tabindex:"0",to:e(P)("/support/"),class:"text-base underline"},{default:L(()=>[_(c(t.$t("nav.support")),1)]),_:1},8,["to"])),e(b)?s("",!0):(a(),m(D,{key:1,tabindex:"0",to:e(P)("/register"),class:"text-base underline"},{default:L(()=>[_(c(t.$t("nav.registration")),1)]),_:1},8,["to"])),e(b)?(a(),m(ve,{key:2,onLinkClicked:o[1]||(o[1]=p=>b.value=!1)})):s("",!0)]),n("button",{tabindex:"0",class:"hidden lg:block bg-uppababy-bodybg",onClick:re},[e(b)?s("",!0):(a(),i("div",ut,[n("span",ct,c(t.$t("search.button.instructions")),1)])),e(b)?(a(),i("button",{key:1,class:"bg-transparent","aria-label":t.$t("search.close"),title:t.$t("search.close")},o[10]||(o[10]=[n("div",{class:"w-4 h-4 icon ub-close"},null,-1)]),8,dt)):s("",!0)]),e(R)&&!e(A)?(a(),i("div",{key:0,tabindex:"0",class:"text-xl font-semibold hidden lg:block",onClick:T}," Hi, "+c(e(Z)?.firstName),1)):s("",!0),e(A)?s("",!0):(a(),i("button",{key:1,tabindex:"0",class:"hidden lg:block bg-uppababy-bodybg",onClick:T},[n("div",pt,[n("span",bt,c(t.$t("account.menu.instructions")),1)])])),e(A)?s("",!0):(a(),i("button",{key:2,tabindex:"0",class:"hidden lg:block bg-uppababy-bodybg relative nav-cart__cart",onClick:o[2]||(o[2]=p=>e(v).open(p.target))},[n("div",ht,c(t.$t("cart.minicart.instructions")),1),o[11]||(o[11]=n("div",{class:"w-6 h-6 icon ub-shopping-cart"},null,-1)),e(g)>0?(a(),i("span",{key:0,"aria-label":e(g)+" "+(e(g)>1?t.$t("cart.itemsInCart"):t.$t("cart.itemInCart")),className:"absolute -top-2 -right-2 bg-black text-white text-xs font-bold rounded-full h-5 w-5 flex items-center justify-center"},c(e(g)||""),9,mt)):s("",!0)])),n("button",{class:"lg:hidden bg-uppababy-bodybg",onClick:G},[n("div",_t,[n("span",gt,c(t.$t("search.button.instructionsMobile")),1)])]),e(A)?s("",!0):(a(),i("button",{key:3,class:"lg:hidden bg-uppababy-bodybg relative nav-cart__cart",tabindex:"0","aria-label":t.$t("cart.minicart.instructionsMobile"),"aria-controls":"mini-cart-sidebar","aria-expanded":e(v).isOpen.value,onClick:o[3]||(o[3]=p=>e(v).open(p.target)),onKeydown:o[4]||(o[4]=F(p=>e(v).open(p.target),["enter"]))},[o[12]||(o[12]=n("div",{class:"w-6 h-6 icon ub-shopping-cart"},null,-1)),e(g)>0?(a(),i("span",{key:0,"aria-label":e(g)+" "+t.$t("cart.itemsInCart"),className:"absolute -top-2 -right-2 bg-black text-white text-xs font-bold rounded-full h-5 w-5 flex items-center justify-center"},c(e(g)||""),9,yt)):s("",!0)],40,ft)),n("button",{class:"lg:hidden bg-uppababy-bodybg",onClick:o[5]||(o[5]=p=>e(ee).open(p.target)),"aria-label":t.$t("mobileNavButtonLabel")},o[13]||(o[13]=[n("div",{class:"w-6 h-6 icon ub-menu"},null,-1)]),8,vt)]))])])],512)],64)}}});export{It as _};

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.