PageSourceSearch

https://www.deepagent.app/assets/LanguageSwitcher-BOWb8fDc.js

js deepagent.app collected 2026-10-04 12:26:03 UTC 3,224 bytes, 6 lines download raw bytes

1import{c as b,a9 as C,h as y,Z as g,r as $,j as e,H as A,u as S,ac as v}from"./index-BgwBFq2O.js";import{C as E}from"./chevron-down-hlEBCHQe.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const G=b("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),w="https://www.deepagent.app";function I({lang:n,title:x,description:r,pathByLang:o,alternates:s,isArticle:m}){const{t:p}=C(),{pathname:u}=y(),d=u.replace(/^\/(it|en|es|de|fr)(?=\/|$)/,"")||"/",t=x??p("seo.title"),i=r??p("seo.description"),f=a=>{const h=o?.[a]??d;return h==="/"?"":h},N=!!s&&s.length>0,j=s?.find(a=>a.lang===n),l=j?.url??`${w}/${n}${f(n)}`;let c;N?c=j?s:[{lang:n,url:l},...s]:m?c=[{lang:n,url:l}]:c=g.map(a=>({lang:a,url:`${w}/${a}${f(a)}`}));const k=c.find(a=>a.lang==="en")?.url??l;return $.useEffect(()=>{const a=['meta[name="description"]','meta[property="og:title"]','meta[property="og:description"]','meta[name="twitter:title"]','meta[name="twitter:description"]','link[rel="canonical"]'];for(const h of a)document.head.querySelectorAll(`${h}:not([data-rh])`).forEach(L=>L.remove())},[]),e.jsxs(A,{children:[e.jsx("html",{lang:n}),e.jsx("title",{children:t}),e.jsx("meta",{name:"description",content:i}),e.jsx("link",{rel:"canonical",href:l}),c.map(a=>e.jsx("link",{rel:"alternate",hrefLang:a.lang,href:a.url},a.lang)),e.jsx("link",{rel:"alternate",hrefLang:"x-default",href:k}),e.jsx("meta",{property:"og:title",content:t}),e.jsx("meta",{property:"og:description",content:i}),e.jsx("meta",{property:"og:locale",content:n}),e.jsx("meta",{property:"og:url",content:l}),e.jsx("meta",{name:"twitter:title",content:t}),e.jsx("meta",{name:"twitter:description",content:i})]})}function O({current:n,variant:x="v1"}){const[r,o]=$.useState(!1),s=S(),{pathname:m,search:p,hash:u}=y(),d=t=>{const i=m.replace(/^\/(it|en|es|de|fr)(?=\/|$)/,`/${t}`);s(`${i||`/${t}`}${p}${u}`),o(!1)};return x==="v2"?e.jsxs("div",{className:"nv2-lang",children:[e.jsxs("button",{onClick:()=>o(t=>!t),"data-no-translate":!0,className:"nv2-lang-btn","aria-label":"Change language","aria-expanded":r,children:[e.jsx("span",{"data-no-translate":!0,children:n.toUpperCase()}),e.jsx(E,{size:13,strokeWidth:2,"aria-hidden":"true"})]}),r&&e.jsx("div",{className:"nv2-lang-menu",children:g.map(t=>e.jsx("button",{onClick:()=>d(t),"data-active":t===n,children:v[t]},t))})]}):e.jsxs("div",{className:"relative",children:[e.jsxs("button",{onClick:()=>o(t=>!t),"data-no-translate":!0,className:"flex items-center gap-1 text-white/80 hover:text-white text-[11px] uppercase tracking-wider liquid-glass rounded-full px-2 py-1","aria-label":"Change language",children:[e.jsx(G,{size:12})," ",e.jsx("span",{"data-no-translate":!0,children:n})]}),r&&e.jsx("div",{className:"absolute right-0 mt-2 liquid-glass rounded-2xl py-2 min-w-[140px] z-50",children:g.map(t=>e.jsx("button",{onClick:()=>d(t),className:`w-full text-left px-4 py-1.5 text-xs hover:bg-white/10 ${t===n?"text-white":"text-white/60"}`,children:v[t]},t))})]})}export{O as L,I as S};

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.