"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),c=require("@antsoo-lib/icons");function O(l,e={}){const{loading:a,multiple:m,prefixCls:s,hasFeedback:g,feedbackIcon:v,showArrow:x}=l,d=l.suffixIcon||e.suffixIcon&&e.suffixIcon(),S=l.clearIcon||e.clearIcon&&e.clearIcon(),I=l.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),f=l.removeIcon||e.removeIcon&&e.removeIcon(),N=S??n.createVNode(c.CloseCircleFilled,null,null),o=r=>n.createVNode(n.Fragment,null,[x!==!1&&r,g&&v]);let u=null;if(d!==void 0)u=o(d);else if(a)u=o(n.createVNode(c.LoadingOutlined,{spin:!0},null));else{const r=`${s}-suffix`;u=({open:C,showSearch:V})=>o(C&&V?n.createVNode(c.SearchOutlined,{class:r},null):n.createVNode(c.DownOutlined,{class:r},null))}let t=null;I!==void 0?t=I:m?t=n.createVNode(c.CheckOutlined,null,null):t=null;let i=null;return f!==void 0?i=f:i=n.createVNode(c.CloseOutlined,null,null),{clearIcon:N,suffixIcon:u,itemIcon:t,removeIcon:i}}exports.default=O;
