PageSourceSearch

https://canyon.eu/_nuxt/BK1RV0Q_.js

js canyon.eu collected 2026-10-02 15:17:09 UTC 3,302 bytes, 2 lines download raw bytes

1import{n as I,I as U,h as v,K as $,u as F,bj as H,o as a,c,d as o,f as u,t as f,b as n,D as _,e as M,j as y,F as O,m as P,k,T,U as V,L as j,au as z,q as b,M as A}from"./woluVcg9.js";import{u as Z,o as q,c as E}from"./Cph7zyZ_.js";import{u as G}from"./BdKTUhHW.js";function K(r){return{uk:"ua",en:"gb",cs:"cz"}[r]??r}function W(){const{$i18n:r}=I(),{languages:i}=U(),p=v(()=>(i.value??[]).map(e=>({name:e.name,code:e.code,default:e.default}))),g=v(()=>p.value.find(e=>e.code===r?.locale?.value));return{languages:p,currentLanguage:g}}const J={class:"cn-language-switcher__button-text"},Q={class:"text-sm"},R={key:0,class:"cn-language-switcher__dropdown fixed bottom-0 left-0 right-0 top-0 flex w-screen items-end backdrop-blur-sm sm:absolute sm:bottom-auto sm:left-auto sm:top-full sm:mt-2 sm:w-56"},X={class:"text-sm"},Y={key:1,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"ml-auto"},ee=!1,oe=$({__name:"LanguageSwitcher",props:{dark:{type:Boolean}},setup(r,{expose:i}){const g=Z(E).greater("xl"),e=b(!1);G(()=>e.value&&!g.value);const{languages:x,currentLanguage:l}=W(),{locales:C}=F(),B=H(),S=new Set(C.value.map(t=>typeof t=="string"?t:t.code)),h=v(()=>x.value.filter(t=>S.has(t.code))),m=()=>{e.value=!1},w=()=>{e.value=!e.value},L=b(null);q(L,()=>{m()});const N=t=>`/svg/flags/${t?K(t)?.toUpperCase():""}.svg`;return i({close:m,toggle:w}),(t,d)=>h.value.length>1?(a(),c("div",{key:0,class:_(["cn-language-switcher relative",{"cn-language-switcher--dark":r.dark}])},[o("button",{class:"cn-language-switcher__button flex items-center","aria-label":"search",onClick:w},[u("",!0),o("span",J,[o("span",Q,f(t.$t("language"))+" "+f(n(l)?.code?.toUpperCase()),1),(a(),c("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",class:_(["inline",{"rotate-180":e.value}]),fill:"currentColor"},[...d[0]||(d[0]=[o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.707 9L4.06 5.354L3.707 5L3 5.707L3.353 6.061L7.176 9.885L7.706 10.415L8.059 10.062L12.059 6.062L12.414 5.708L11.707 5L11.354 5.354L7.706 9H7.707Z"},null,-1)])],2))])]),M(z,{"enter-active-class":"transform duration-300","enter-from-class":"opacity-0 translate-y-4","enter-to-class":"opacity-100 translate-y-0","leave-active-class":"transform duration-300","leave-from-class":"opacity-100 translate-y-0","leave-to-class":"opacity-0 translate-y-4"},{default:y(()=>[e.value?(a(),c("div",R,[o("div",{ref_key:"target",ref:L,class:"cn-language-switcher__dropdown-block max-h-88 w-full overflow-y-auto py-2 shadow-lg"},[(a(!0),c(O,null,P(h.value,(s,D)=>(a(),k(j(s.code!==n(l)?.code?"a":"div"),T({key:D,class:"cn-language-switcher__language flex w-full items-center px-6 py-3",href:s.code!==n(l)?.code?n(B)(s.code):void 0},V(s.code===n(l)?.code?{click:m}:{})),{default:y(()=>[ee?(a(),k(n(A),{key:0,src:N(s.code),width:24,height:17,format:"webp",class:"mr-3"},null,8,["src"])):u("",!0),o("span",X,f(s.code.toUpperCase()),1),s.code===n(l)?.code?(a(),c("svg",Y,[...d[1]||(d[1]=[o("path",{d:"M9.99997 15.586L6.70697 12.293L5.29297 13.707L9.99997 18.414L19.707 8.70697L18.293 7.29297L9.99997 15.586Z",fill:"currentColor"},null,-1)])])):u("",!0)]),_:2},1040,["href"]))),128))],512)])):u("",!0)]),_:1})],2)):u("",!0)}});export{oe as _};
2//# sourceMappingURL=BK1RV0Q_.js.map

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.