1import{d as V,E as B,r as m,L,a as r,o as l,e as b,y as u,Y as $,G as p,b as a,s as w,X as E,V as N,a0 as F,F as I,v as K,J as T,B as j,D as q,_ as z}from"./CyVqXwo4.js";import{u as G}from"./DUY-HjHu.js";const J={key:0},M={key:0,class:"wrapper"},O=["placeholder"],R={class:"options"},U=["onClick"],y=V({__name:"dropdown",props:{value:{},options:{},search:{type:Boolean},label:{}},emits:["change"],setup(n,{emit:i}){const d=n,g=i,{active:v,closeDropdown:h}=G("dropdown"),{t:C}=B({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 L(()=>d.value,_),_(),(t,e)=>(l(),r("div",{ref:"dropdown",class:"dropdown",tabindex:"0",onKeyup:e[2]||(e[2]=T((...s)=>a(h)&&a(h)(...s),["esc"]))},[b("div",{class:"trigger",onClick:e[0]||(e[0]=s=>v.value=!0)},[$(p(n.label)+" ",1),a(o).length?(l(),r("span",J," : "+p(a(o).length),1)):u("",!0)]),a(v)?(l(),r("div",M,[n.search?w((l(),r("input",{key:0,"onUpdate:modelValue":e[1]||(e[1]=s=>N(c)?c.value=s:null),class:"search",autocomplete:"off",placeholder:`ð ${a(C)("search")}`},null,8,O)),[[E,a(c)]]):u("",!0),b("div",R,[F(t.$slots,"option",{},void 0,!0),(l(!0),r(I,null,K(n.options,s=>w((l(),r("div",{key:s.id,class:q(["option",x(s.id)]),onClick:X=>D(s)},p(s.title),11,U)),[[j,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 H=Object.assign(z(y,[["__scopeId","data-v-1aedd4fc"]]),{__name:"Dropdown"});export{H 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.