import{createVNode as n,Fragment as h}from"vue";import{CloseCircleFilled as k,LoadingOutlined as w,CheckOutlined as F,CloseOutlined as b,SearchOutlined as N,DownOutlined as A}from"@antsoo-lib/icons";function R(l,e={}){const{loading:d,multiple:m,prefixCls:a,hasFeedback:s,feedbackIcon:x,showArrow:g}=l,f=l.suffixIcon||e.suffixIcon&&e.suffixIcon(),C=l.clearIcon||e.clearIcon&&e.clearIcon(),I=l.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),r=l.removeIcon||e.removeIcon&&e.removeIcon(),S=C??n(k,null,null),c=i=>n(h,null,[g!==!1&&i,s&&x]);let o=null;if(f!==void 0)o=c(f);else if(d)o=c(n(w,{spin:!0},null));else{const i=`${a}-suffix`;o=({open:v,showSearch:O})=>c(v&&O?n(N,{class:i},null):n(A,{class:i},null))}let u=null;I!==void 0?u=I:m?u=n(F,null,null):u=null;let t=null;return r!==void 0?t=r:t=n(b,null,null),{clearIcon:S,suffixIcon:o,itemIcon:u,removeIcon:t}}export{R as default};
