PageSourceSearch

https://agideljurn.ru/_nuxt/BqPsDYZd.js

js agideljurn.ru collected 2026-10-02 07:58:28 UTC 2,131 bytes, 1 lines download raw bytes

1import{d as B,E as V,r as m,M as $,a as r,o as l,e as b,y as u,Z as E,H as p,b as a,s as w,Y as K,W as L,G as N,F,v as I,K as M,B as T,D as j,_ as q}from"./tpUjp3ZS.js";import{u as z}from"./B5iFC3g6.js";const G={key:0},H={key:0,class:"wrapper"},O=["placeholder"],R={class:"options"},U=["onClick"],y=B({__name:"dropdown",props:{value:{},options:{},search:{type:Boolean},label:{}},emits:["change"],setup(n,{emit:i}){const d=n,g=i,{active:v,closeDropdown:h}=z("dropdown"),{t:C}=V({useScope:"local"}),o=m([]),c=m(""),S=t=>t.title?t.title.toLowerCase().includes(c.value.toLowerCase()):!1,_=()=>{o.value=[],d.value.forEach(t=>{const e=d.options.find(s=>s.id===t);e&&o.value.push(e)})},f=t=>o.value.find(e=>e.id===t),x=t=>({__active:f(t)}),D=t=>{f(t.id)?o.value=o.value.filter(e=>e.id!==t.id):o.value.push(t),g("change",o.value.map(e=>e.id))};return $(()=>d.value,_),_(),(t,e)=>(l(),r("div",{ref:"dropdown",class:"dropdown",tabindex:"0",onKeyup:e[2]||(e[2]=M((...s)=>a(h)&&a(h)(...s),["esc"]))},[b("div",{class:"trigger",onClick:e[0]||(e[0]=s=>v.value=!0)},[E(p(n.label)+" ",1),a(o).length?(l(),r("span",G," : "+p(a(o).length),1)):u("",!0)]),a(v)?(l(),r("div",H,[n.search?w((l(),r("input",{key:0,"onUpdate:modelValue":e[1]||(e[1]=s=>L(c)?c.value=s:null),class:"search",autocomplete:"off",placeholder:`🔍 ${a(C)("search")}`},null,8,O)),[[K,a(c)]]):u("",!0),b("div",R,[N(t.$slots,"option",{},void 0,!0),(l(!0),r(F,null,I(n.options,s=>w((l(),r("div",{key:s.id,class:j(["option",x(s.id)]),onClick:W=>D(s)},p(s.title),11,U)),[[T,S(s)]])),128))])])):u("",!0)],544))}});function k(n){const i=n;i.__i18n=i.__i18n||[],i.__i18n.push({locale:"",resource:{rus:{search:{t:0,b:{t:2,i:[{t:3}],s:"Поиск"}}},eng:{search:{t:0,b:{t:2,i:[{t:3}],s:"Search"}}},bak:{search:{t:0,b:{t:2,i:[{t:3}],s:"Эҙләү"}}},tat:{search:{t:0,b:{t:2,i:[{t:3}],s:"Эзләү"}}},chv:{search:{t:0,b:{t:2,i:[{t:3}],s:"Шырав"}}},chm:{search:{t:0,b:{t:2,i:[{t:3}],s:"Кычалаш"}}},udm:{search:{t:0,b:{t:2,i:[{t:3}],s:"Утчан"}}}}})}typeof k=="function"&&k(y);const A=Object.assign(q(y,[["__scopeId","data-v-1aedd4fc"]]),{__name:"Dropdown"});export{A as _};

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.