1import{B as b}from"./szOyFUc7.js";import{d as y,b as I,Y as V,l as t,o as v}from"./QJre-PsH.js";const S=y({__name:"BSearchField",props:{placeholder:{default:"جستجÙ..."},searchIcon:{default:"icon-search"},size:{default:"40"},dir:{default:"rtl"},placeholderDirection:{default:"rtl"},disabled:{type:Boolean,default:!1},modelValue:{default:""},fill:{type:Boolean,default:!0},inputBorder:{default:"border-de-tertiary--oln"},dataSelenium:{},readonly:{type:Boolean,default:!1}},emits:["update:modelValue","search","clear","focus","blur","input"],setup(r,{emit:d}){const e=r,a=d,u=t(()=>({type:"text",placeholder:e.placeholder,state:e.disabled?"disable":void 0,size:e.size,dir:e.dir,readonly:e.readonly,clearable:!0,rounded:!0,modelValue:e.modelValue,leading1:{value:e.searchIcon,type:"font-icon"},inputBackground:e.fill?"bg-neutral-b--bg":"bg-transparent",inputBorder:e.inputBorder,dataSelenium:e.dataSelenium})),s=t(()=>e.dir==="rtl"),i=t(()=>e.dir==="ltr"),c=l=>{a("update:modelValue",l)},p=l=>{a("input",l)},m=()=>{a("update:modelValue",""),a("clear")},f=l=>{a("focus",l)},h=l=>{a("blur",l)},n=()=>{a("search",e.modelValue)},g=l=>{l.key==="Enter"&&a("search",e.modelValue)};return(l,o)=>(v(),I(b,V(u.value,{class:"gap-0","onUpdate:modelValue":c,onInput:p,onKeydown:g,onClear:m,onFocus:f,onBlur:h,onLeading1Click:o[0]||(o[0]=B=>s.value?n:void 0),onTrailing1Click:o[1]||(o[1]=B=>i.value?n:void 0)}),null,16))}});export{S 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.