import{_ as u}from"./IconPlus-bAw7b_ly.js";import{_ as l}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{c as i,o as n,a as s,I as p,S as m,b as f,w as h,C as c,T as v,r as w,m as x}from"./index-CipWZKo_.js";const g={},k={fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"};function V(r,e){return n(),i("svg",k,e[0]||(e[0]=[s("path",{d:"M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm10 2-4.35-4.35",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const B=l(g,[["render",V]]),y={props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(r,{emit:e}){const t=w("");function o(){t.value=""}return x(t,()=>{e("update:modelValue",t.value)}),{search:t,resetValue:o}}},C={class:"list-form_col list-form_col--xl"},I={class:"search-field form-field"},S={class:"input-icon"};function T(r,e,t,o,$,b){const _=B,d=u;return n(),i("div",C,[s("div",I,[p(s("input",{type:"text",placeholder:"Поиск",name:"search",autocomplete:"off","onUpdate:modelValue":e[0]||(e[0]=a=>o.search=a)},null,512),[[m,o.search]]),s("button",S,[f(v,{name:"fade",mode:"out-in"},{default:h(()=>[!o.search||o.search.length===0?(n(),c(_,{key:0})):(n(),c(d,{key:1,class:"input-reset-icon",onClick:e[1]||(e[1]=a=>o.resetValue())}))]),_:1})])])])}const D=l(y,[["render",T],["__scopeId","data-v-467ecede"]]);export{D as _};
