PageSourceSearch

https://washtower.com/_nuxt/C7QFLVsF.js

js washtower.com collected 2026-10-04 07:00:39 UTC 6,258 bytes, 7 lines download raw bytes

1import lt from"./B4HkrpR1.js";import ct from"./CQ0zZJRp.js";import ut from"./BZSEtGT9.js";import{aE as dt,aF as pt,u as mt,b9 as z,aZ as gt,bB as _t,aG as vt,a_ as bt,c0 as ft,bg as kt,ba as F,aI as l,bb as J,cL as ht,aJ as Ct,bj as xt,bQ as yt,aM as _,aP as f,aR as t,aN as c,b4 as S,aO as w,b3 as v,aQ as b,aS as L,aT as O,bl as P,br as I,b8 as k,bz as Nt,bP as Q,bs as Tt,cq as St,dv as wt,aY as Lt}from"./5Ti-0aih.js";import Pt from"./CWKHD6UF.js";import It from"./CddWfJxK.js";import Bt from"./B8bCgt_l.js";import{a as Mt}from"./C5-PMuM7.js";import"./C90CDz1o.js";import"./B-xgw34Y.js";import"./GG7ugd6g.js";import"./BoGPEZeb.js";import"./D3U3dz_B.js";import"./Du5uTQf5.js";import"./DHsKIC1P.js";import"./DZED9N40.js";import"./j6RMVXbr.js";import"./sMZmp6Nk.js";import"./D86pRKea.js";import"./DbYJwbE8.js";const At=`query Navigation($lang: SiteLocale) {
2    navigation(locale: $lang) {
3        cartLinkText
4        configuratorLinkText
5    }
6}
7`;async function Rt({lang:B}){return await dt({query:At,variables:{lang:B}})??null}const qt={class:"main-menu-container"},Dt={class:"mobile-actions tablet-mobile-only"},Gt={class:"inner-wrapper"},$t={class:"menu-items"},Vt={class:"footer-nav"},Et=["href"],Ht=["href"],Ut=pt({__name:"TheNavigation",setup(B){const{callHook:M}=mt(),h=z(),W=gt(),j=_t(),A=vt(),Z=bt(),{checkUrl:x}=ft(),R=kt(),{cartId:K,totalPrice:X}=F(R),tt=z(),{general:y}=F(tt),et=l(()=>{var o,a;return(a=(o=y.value)==null?void 0:o.generalContent)==null?void 0:a.siteCurrency}),g=l(()=>R.getVisibleCartItems),C=J(!1),N=J(!1),ot=()=>{N.value=!0},n=l(()=>{var o;return(o=h.general)==null?void 0:o.generalContent}),T=l(()=>g.value.reduce((o,a)=>o+a.quantity,0)),at=l(()=>{var o,a,e;return((e=(a=(o=y.value)==null?void 0:o.generalContent)==null?void 0:a.navigation)==null?void 0:e.map(r=>{var p;const u=j.resolve(x(r.linkToDocument)),d=((p=u==null?void 0:u.name)==null?void 0:p.toString().startsWith("configurator"))??!1;return{...r,isConfigurator:d}}))??[]}),nt=l(()=>at.value.filter(o=>!o.isConfigurator)),{y:st}=ht(),it=l(()=>st.value>10),q=l(()=>{var o,a,e,r;return((r=(e=(a=(o=W.name)==null?void 0:o.split)==null?void 0:a.call(o,"_"))==null?void 0:e.at)==null?void 0:r.call(e,0))==="index"}),rt=()=>{const o=window.scrollY;document.body.style.position="fixed",document.body.style.top=`-${o}px`,Q(()=>{C.value=!0})},i=()=>{const o=document.body.style.top;document.body.style.position="",document.body.style.top="",window.scrollTo(0,parseInt(o||"0")*-1),Q(()=>{C.value=!1})};Ct(g,()=>{if(M("open-add-to-cart-modal"),g.value&&g.value.length>0){const o=g.value.map(a=>{var r,u,d;const e=(u=(r=a==null?void 0:a.datoProduct)==null?void 0:r.prices)==null?void 0:u.find(p=>p.currency===et.value);return{id:a==null?void 0:a.id,name:(d=a==null?void 0:a.datoProduct)==null?void 0:d.title,price:e!=null&&e.originalPrice?e==null?void 0:e.originalPrice:e==null?void 0:e.price,salesprice:e!=null&&e.originalPrice?e==null?void 0:e.price:null,quantity:a==null?void 0:a.quantity}});g.value.length>0?St("cart",JSON.stringify({cart_id:K.value,total:X.value,shipping:0,product_total:T.value,products:o})):wt("cart")}},{immediate:!1}),xt(()=>{window.addEventListener("popstate",i)}),yt(()=>{window.removeEventListener("popstate",i)});const{data:D}=Mt(l(()=>`navigation-${A.localeProperties.value.datoLocale}`),()=>Rt({lang:A.localeProperties.value.datoLocale}),"$01ScSRAbqd");return(o,a)=>{var p,G,$,V,E,H,U,Y;const e=lt,r=ct,u=ut,d=Tt;return t(n)?(c(),_("div",{key:0,id:"menuContainer",class:S([{fixed:t(q),"filled-background":t(it)||!t(q)},"menu-container"])},[t(n).actionBarActive?(c(),w(e,{key:0,onHideActionBar:ot,"desktop-title-general":t(n).desktopTitleGeneralPages,"desktop-title-products":t(n).desktopTitleProductPages,link:t(n).linkToPageGeneral,"mobile-title-general":t(n).mobileTitleGeneralPages,"mobile-title-products":t(n).mobileTitleProductPages,"desktop-title-products-rich-text":t(n).desktopTitleProductPagesRichText,"desktop-title-general-rich-text":t(n).desktopTitleGeneralPagesRichText,"mobile-title-general-rich-text":t(n).mobileTitleGeneralPagesRichText,"mobile-title-products-rich-text":t(n).mobileTitleProductPagesRichText},null,8,["desktop-title-general","desktop-title-products","link","mobile-title-general","mobile-title-products","desktop-title-products-rich-text","desktop-title-general-rich-text","mobile-title-general-rich-text","mobile-title-products-rich-text"])):f("",!0),v(r,{data:t(n),"action-bar-active":t(n).actionBarActive&&!t(N)},null,8,["data","action-bar-active"]),b("div",qt,[v(Bt,{onCloseMobileNav:i}),v(Pt,{items:(G=(p=t(y))==null?void 0:p.generalContent)==null?void 0:G.navigation,amountInCart:t(T),onCloseMobileNav:i,data:t(D)},null,8,["items","amountInCart","data"]),b("div",Dt,[v(u,{amountInCart:t(T),onCloseMobileNav:i},null,8,["amountInCart"]),v(It,{mobileNavIsActive:t(C),onShowMobileNav:rt,onCloseMobileNav:i},null,8,["mobileNavIsActive"])])]),b("div",{class:S([[{show:t(C)},{"action-banner-spacing":t(n).actionBarActive&&!t(N)}],"popover-nav"])},[b("div",Gt,[b("div",$t,[(c(!0),_(L,null,O(t(nt),(s,m)=>(c(),w(d,{key:m,to:t(x)(s.linkToDocument),class:S(["menu-item menu-items__link",{"configurator-link":s.isConfigurator}]),onClick:i},{default:P(()=>[I(k(s.title),1)]),_:2},1032,["to","class"]))),128)),v(Nt,{class:"menu-items__bottom-cta",data:{type:"link",class:"standard-large",arrow:"none",link:t(Z)({name:"configurator-step-one"})}},{default:P(()=>{var s,m;return[I(k((m=(s=t(D))==null?void 0:s.navigation)==null?void 0:m.configuratorLinkText),1)]}),_:1},8,["data"])]),b("div",Vt,[(c(!0),_(L,null,O(t(n).topBarLinks,(s,m)=>(c(),_(L,null,[s.linkToDocument?(c(),w(d,{key:"document"+m,to:t(x)(s.linkToDocument),class:"menu-item",onClick:i},{default:P(()=>[I(k(s.title),1)]),_:2},1032,["to"])):f("",!0),s.externalLink?(c(),_("a",{key:"external"+m,href:s.externalLink,class:"",onClick:i},k(s.title),9,Et)):f("",!0)],64))),256)),(V=($=t(h).general)==null?void 0:$.generalContent)!=null&&V.phoneNumber?(c(),_("a",{key:0,href:"tel:"+((H=(E=t(h).general)==null?void 0:E.generalContent)==null?void 0:H.phoneNumber),onClick:i},k((Y=(U=t(h).general)==null?void 0:U.generalContent)==null?void 0:Y.phoneNumber),9,Ht)):f("",!0)])])],2)],2)):f("",!0)}}}),ce=Lt(Ut,[["__scopeId","data-v-66450378"]]);export{ce as default};

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.