import{_}from"./IconPlus-B1Q5sG86.js";import{_ as m}from"./IconSearch-DOvkGDL1.js";import{H as p,r as d,v as f,o as t,c as v,a as s,K as h,S as x,b as V,w as k,m as n,T as g}from"./index-Bb2UEb_P.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"list-form_col list-form_col--xl"},B={class:"search-field form-field"},I={class:"input-icon"},S={__name:"FormInputSearch",props:{modelValue:{type:String,default:""},modelModifiers:{}},emits:["update:modelValue"],setup(l){const c=p(l,"modelValue"),e=d("");function r(){e.value=""}return f(e,()=>{c.value=e.value}),(M,o)=>{const i=m,u=_;return t(),v("div",y,[s("div",B,[h(s("input",{type:"text",placeholder:"Поиск",name:"search",autocomplete:"off","onUpdate:modelValue":o[0]||(o[0]=a=>e.value=a)},null,512),[[x,e.value]]),s("button",I,[V(g,{name:"fade",mode:"out-in"},{default:k(()=>[!e.value||e.value.length===0?(t(),n(i,{key:0,class:"tw-size-6"})):(t(),n(u,{key:1,class:"input-reset-icon",onClick:o[1]||(o[1]=a=>r())}))]),_:1})])])])}}},z=w(S,[["__scopeId","data-v-88e53725"]]);export{z as _};
