PageSourceSearch

https://watswallet.com/_nuxt/QaaC8cZ5.js

js watswallet.com collected 2026-10-02 15:16:07 UTC 8,498 bytes, 1 lines download raw bytes

1import{_ as Z}from"./BNSw7_4u.js";import{P as ee,i as te,s as ne,h as oe,I as se,E as ae,J as re,o as m,c as p,b as f,m as _,x as l,u as o,a as n,y as ie,v as A,t as x,F as le,d as ce,f as $,T as de,A as ue,z as g,g as P,L as me,_ as pe}from"./DYCi7sKn.js";const fe=["aria-label"],he=["aria-expanded","aria-label"],xe={key:0,class:"lang-panel absolute end-0 mt-3 w-[300px] ltr:origin-top-right rtl:origin-top-left rounded-2xl overflow-hidden z-50 bg-white border border-zinc-200 font-satoshi"},ge={class:"flex items-center justify-between px-4 pt-3.5 pb-2.5 border-b border-zinc-100"},we={class:"font-jetbrains text-[10px] font-medium text-zinc-400 tabular-nums"},ve={class:"max-h-[360px] overflow-y-auto p-1.5 lang-scroll"},be=["onClick"],ye={class:"relative shrink-0"},ke=["src","alt"],_e={class:"flex-1 min-w-0 leading-tight"},ze={key:0,class:"ms-1"},Le={key:0,class:"flex items-center justify-center w-[22px] h-[22px] rounded-full bg-secondary shrink-0"},Y=96,Te=ee({__name:"Header",setup(Ee){const q=e=>e?`https://flagcdn.com/${e}.svg`:"",{locale:h,locales:D,setLocale:V}=te(),z=ne(),c=g(!1),L=g(null),w=P(()=>D.value),T=P(()=>w.value.find(e=>e.code===h.value)),U=async e=>{typeof document<"u"&&(document.cookie=`i18n_redirected=${e};path=/;max-age=31536000;samesite=lax`),await V(e),c.value=!1;const t=w.value.find(s=>s.code===e);t?.dir&&typeof document<"u"&&(document.documentElement.dir=t.dir)},v=g(!1),d=g("dark"),E=g("#0c1629");let C=0,j=!1,b=null,y=-1;const G=e=>{if(!e)return null;const t=e.match(/rgba?\(([^)]+)\)/);if(!t||!t[1])return null;const s=t[1].split(",").map(r=>parseFloat(r.trim()));return[s[0]??0,s[1]??0,s[2]??0,s[3]??1]},J=e=>{let t=e;for(;t&&t!==document.documentElement;){const s=G(getComputedStyle(t).backgroundColor);if(s&&s[3]>=.95)return[s[0],s[1],s[2]];t=t.parentElement}return[255,255,255]},O=(e,t,s)=>{const r=a=>{const u=a/255;return u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4)};return .2126*r(e)+.7152*r(t)+.0722*r(s)},i=()=>{const e=Math.floor(window.innerWidth/2),t=Y+1,s=document.elementsFromPoint(e,t),r=s.find(Q=>!Q.closest("[data-splash-ignore]"))??s[0];if(!r)return;const[a,u,H]=J(r),I=`rgb(${a}, ${u}, ${H})`,N=O(a,u,H)<.4?"dark":"light";E.value!==I&&(E.value=I),d.value!==N&&(d.value=N)},B=()=>{const e=window.scrollY;e!==y&&(i(),y=e),b=requestAnimationFrame(B)},M=()=>{j||(j=!0,requestAnimationFrame(()=>{const e=window.scrollY,t=e-C;e<Y?v.value=!1:t>4?(v.value=!0,c.value=!1):t<-4&&(v.value=!1),C=e,j=!1}))},R=()=>{y=-1,i()},F=e=>{L.value&&(L.value.contains(e.target)||(c.value=!1))},S=e=>{e.key==="Escape"&&(c.value=!1)},W=[],k=[],X=oe(),K=()=>{y=-1,k.forEach(e=>clearTimeout(e)),k.length=0,me(()=>i()),k.push(window.setTimeout(i,50),window.setTimeout(i,150),window.setTimeout(i,400),window.setTimeout(i,900))};return se(()=>X.fullPath,()=>{K()}),ae(()=>{document.addEventListener("click",F),document.addEventListener("keydown",S),window.addEventListener("scroll",M,{passive:!0}),window.addEventListener("resize",R,{passive:!0}),C=window.scrollY,i(),b=requestAnimationFrame(B),W.push(window.setTimeout(i,200),window.setTimeout(i,800),window.setTimeout(i,2e3)),T.value?.dir&&(document.documentElement.dir=T.value.dir)}),re(()=>{document.removeEventListener("click",F),document.removeEventListener("keydown",S),window.removeEventListener("scroll",M),window.removeEventListener("resize",R),b!==null&&cancelAnimationFrame(b),W.forEach(e=>clearTimeout(e)),k.forEach(e=>clearTimeout(e))}),(e,t)=>{const s=Z,r=ie;return m(),p("header",{class:l(["fixed top-0 left-0 right-0 z-50 w-full h-20 flex items-center justify-between px-4 sm:px-6 md:px-10 transition-[background-color,border-color,transform] duration-300 ease-out will-change-transform",[o(d)!=="dark"?"border-b border-white/5":"border-b border-zinc-900/5",{"-translate-y-full":o(v)}]]),style:ue({backgroundColor:o(E)})},[f(r,{to:o(z)("/"),class:"flex items-center gap-1"},{default:_(()=>[f(s,{src:"/cyan-logo.webp",alt:"WATS Wallet logo",width:"100",height:"100",class:l(["w-14 h-14 sm:w-16 sm:h-16 md:w-20 md:h-20",{hidden:o(d)!=="dark"}])},null,8,["class"]),f(s,{src:"/dark-logo.webp",alt:"WATS Wallet logo",width:"100",height:"100",class:l(["w-14 h-14 sm:w-16 sm:h-16 md:w-20 md:h-20",{hidden:o(d)==="dark"}])},null,8,["class"]),n("span",{class:l(["text-2xl sm:text-3xl md:text-5xl font-bold font-druk transition-colors duration-300",o(d)==="dark"?"text-primary":"text-secondary"])},"WATS Wallet",2)]),_:1}
1,8,["to"]),n("nav",{"aria-label":e.$t("header.navLabel"),class:"flex gap-2 sm:gap-3 md:gap-4 items-center"},[f(r,{to:o(z)("/blog"),class:l(["hidden sm:inline-flex text-sm md:text-base font-bold px-2.5 py-1.5 rounded-full transition-colors duration-300",o(d)==="dark"?"text-white/80 hover:text-white hover:bg-white/10":"text-zinc-700 hover:text-zinc-950 hover:bg-zinc-900/[0.06]"])},{default:_(()=>[A(x(e.$t("blog.crumb")),1)]),_:1},8,["to","class"]),n("div",{ref_key:"langRef",ref:L,class:"relative"},[n("button",{class:l(["flex items-center justify-center w-10 h-10 rounded-full transition cursor-pointer border-none bg-transparent",o(d)==="dark"?"text-white/80 hover:text-white hover:bg-white/10":"text-zinc-700 hover:text-zinc-950 hover:bg-zinc-900/[0.06]"]),"aria-expanded":o(c),"aria-haspopup":"true","aria-label":o(T)?.name||"Language",onClick:t[0]||(t[0]=a=>c.value=!o(c))},[(m(),p("svg",{class:l(["w-[22px] h-[22px] transition-transform duration-300",{"rotate-180":o(c)}]),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round"},[...t[1]||(t[1]=[n("circle",{cx:"12",cy:"12",r:"9"},null,-1),n("path",{d:"M3 12h18"},null,-1),n("path",{d:"M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"},null,-1)])],2))],10,he),f(de,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"opacity-0 -translate-y-1 scale-95","enter-to-class":"opacity-100 translate-y-0 scale-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"opacity-100 translate-y-0 scale-100","leave-to-class":"opacity-0 -translate-y-1 scale-95"},{default:_(()=>[o(c)?(m(),p("div",xe,[n("div",ge,[t[2]||(t[2]=n("div",{class:"flex items-center gap-2"},[n("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.6","stroke-linecap":"round","stroke-linejoin":"round",class:"w-3.5 h-3.5 text-zinc-400"},[n("circle",{cx:"12",cy:"12",r:"9"}),n("path",{d:"M3 12h18"}),n("path",{d:"M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"})]),n("span",{class:"font-jetbrains text-[10px] font-semibold tracking-[0.22em] uppercase text-zinc-500"}," Language ")],-1)),n("span",we,x(o(w).length),1)]),n("div",ve,[(m(!0),p(le,null,ce(o(w),a=>(m(),p("button",{key:a.code,class:l(["lang-item w-full flex items-center gap-3 px-2.5 py-2.5 rounded-xl text-start cursor-pointer border-none bg-transparent transition-colors",a.code===o(h)?"bg-primary/[0.08] hover:bg-primary/[0.12]":"hover:bg-zinc-100"]),onClick:u=>U(a.code)},[n("div",ye,[n("img",{src:q(a.country),alt:a.code,class:"w-8 h-[22px] rounded object-cover ring-1 ring-zinc-200/80"},null,8,ke)]),n("div",_e,[n("div",{class:l(["text-[13px] font-bold truncate",a.code===o(h)?"text-secondary":"text-zinc-900"])},x(a.name),3),n("div",{class:l(["font-jetbrains text-[9px] font-semibold tracking-[0.18em] uppercase mt-0.5",a.code===o(h)?"text-primary":"text-zinc-400"])},[A(x(a.code),1),a.dir==="rtl"?(m(),p("span",ze,"· RTL")):$("",!0)],2)]),a.code===o(h)?(m(),p("span",Le,[...t[3]||(t[3]=[n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[n("path",{d:"m5 12 5 5L20 7",stroke:"#22d3ee","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])])):$("",!0)],10,be))),128))]),t[4]||(t[4]=n("div",{class:"px-4 py-2.5 border-t border-zinc-100 flex items-center justify-between"},[n("div",{class:"flex items-center gap-1.5"},[n("span",{class:"w-1 h-1 rounded-full bg-primary"}),n("span",{class:"font-jetbrains text-[9px] font-semibold tracking-[0.2em] uppercase text-zinc-400"}," Auto-detected ")])],-1))])):$("",!0)]),_:1})],512),f(r,{to:o(z)({path:"/download",query:{noredirect:"1"}}),class:l(["text-sm sm:text-base md:text-lg font-bold px-3 py-1.5 sm:px-4 sm:py-2 rounded-full cursor-pointer hover:brightness-110 transition-colors duration-300 whitespace-nowrap",o(d)==="dark"?"bg-primary text-secondary":"bg-secondary text-white"])},{default:_(()=>[A(x(e.$t("header.download")),1)]),_:1},8,["to","class"])],8,fe)],6)}}}),Ae=pe(Te,[["__scopeId","data-v-62d8b4bc"]]);export{Ae 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.