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