PageSourceSearch

https://magibox.ai/assets/LanguageToggle-C20hoOGA.js

js magibox.ai collected 2026-10-05 14:05:15 UTC 1,135 bytes, 1 lines download raw bytes

1import{r as e}from"./framework-Cf0-05k2.js";import{t}from"./globe-mTzE-WxE.js";import{n}from"./react-DWYTht9E.js";import{n as r,r as i}from"./navigation-C8uLm5YZ.js";import{i as a,n as o,r as s,t as c}from"./tooltip-DztC-6IE.js";import{t as l}from"./button-DwZixn1y.js";var u=e();function d(){let e=n(),d=i(),f=r(),p=e===`en`;return(0,u.jsx)(s,{children:(0,u.jsxs)(c,{children:[(0,u.jsx)(a,{asChild:!0,children:(0,u.jsxs)(l,{variant:`ghost`,size:`sm`,onClick:()=>{d.replace(f,{locale:p?`zh`:`en`})},"aria-label":`Toggle language`,className:`relative flex items-center gap-1.5 h-8 pl-2.5 pr-1 rounded-full border border-border/30 bg-primary/5 text-muted-foreground text-xs font-semibold tracking-wide transition-all duration-200 ease-out hover:bg-primary/10 hover:border-primary/25`,children:[(0,u.jsx)(t,{className:`size-[13px] text-primary`}),(0,u.jsx)(`span`,{className:`inline-flex items-center justify-center min-w-[26px] h-[22px] rounded-full bg-primary text-primary-foreground text-[11px] font-bold tracking-wider`,children:p?`EN`:`中`})]})}),(0,u.jsx)(o,{children:p?`Switch to 中文`:`Switch to English`})]})})}export{d as t};

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.