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