PageSourceSearch

https://www.wasafibet.co.tz/js/LanguageSwitcher.js

js wasafibet.co.tz collected 2026-10-08 07:22:46 UTC 1,029 bytes, 1 lines download raw bytes

1import{R as d,C as v,f as h,o as c,g as i,l as o,p as m,n as u,J as w,u as _,P as f,Q as x,F as b,j as y,O as C}from"./vendor.js";import{b as L}from"./index.js";import{C as S}from"./chevron-down.js";const k={class:"relative"},B={class:"absolute right-0 mt-1 bg-white rounded-md shadow-lg py-1 px-2 w-full z-10"},D=["onClick"],I={__name:"LanguageSwitcher",setup(N){const{locale:a}=d(),e=v(!1),l={en:"English",sw:"Swahili"},g=h(()=>l[a.value]),p=t=>{a.value=t,localStorage.setItem("locale",t),e.value=!1};return(t,n)=>(c(),i("div",k,[o("button",{class:"flex items-center gap-2 px-3 py-2 bg-white/10 hover:bg-white/20 rounded-lg text-white text-sm font-medium transition-colors",onClick:n[0]||(n[0]=r=>e.value=!e.value)},[m(u(g.value)+" ",1),w(_(S),{class:"w-4 h-4"})]),f(o("ul",B,[(c(),i(b,null,y(l,(r,s)=>o("li",{key:s,class:C(["cursor-pointer px-2 py-1 rounded hover:bg-gray-100",{active:_(a).value===s}]),onClick:V=>p(s)},u(r),11,D)),64))],512),[[x,e.value]])]))}},$=L(I,[["__scopeId","data-v-34d928a6"]]);export{$ 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.