PageSourceSearch

https://unitedcode.ai/assets/NavbarThemeSwitcher-d835b775.js

js unitedcode.ai collected 2026-10-05 13:10:32 UTC 872 bytes, 1 lines download raw bytes

1import{v as _,am as d,$ as f,r as x,o as i,b as h,w as c,p as r,S as T,q as m,m as g,U as v}from"./index-f06b639b.js";import{V as w}from"./VTooltip-f92d1b44.js";const y={class:"text-capitalize"},N={__name:"ThemeSwitcher",props:{themes:{type:Array,required:!0}},setup(o){const e=o,{theme:t}=_(),{state:n,next:s,index:l}=d(e.themes.map(a=>a.name),{initialValue:t.value}),p=()=>{t.value=s()};return f(t,a=>{n.value=a}),(a,V)=>{const u=x("IconBtn");return i(),h(u,{onClick:p},{default:c(()=>[r(T,{size:"26",icon:e.themes[m(l)].icon},null,8,["icon"]),r(w,{activator:"parent","open-delay":"1000","scroll-strategy":"close"},{default:c(()=>[g("span",y,v(m(n)),1)]),_:1})]),_:1})}}},S={__name:"NavbarThemeSwitcher",setup(o){const e=[{name:"light",icon:"tabler-sun-high"},{name:"dark",icon:"tabler-moon"}];return(t,n)=>{const s=N;return i(),h(s,{themes:e})}}};export{S 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.