import{createVNode as n,cloneVNode as m}from"vue";import $ from"@ant-design/icons-vue/CaretDownFilled";import p from"@ant-design/icons-vue/FileOutlined";import w from"@ant-design/icons-vue/LoadingOutlined";import O from"@ant-design/icons-vue/MinusSquareOutlined";import g from"@ant-design/icons-vue/PlusSquareOutlined";import{isValidElement as h}from"../../_util/props-util/index.mjs";function N(l,o,r,a,t){const{isLeaf:f,expanded:s,loading:d}=r;let i=o;if(d)return n(w,{class:`${l}-switcher-loading-icon`},null);let c;t&&typeof t=="object"&&(c=t.showLeafIcon);let e=null;const u=`${l}-switcher-icon`;return f?t?c&&a?a(r):(typeof t=="object"&&!c?e=n("span",{class:`${l}-switcher-leaf-line`},null):e=n(p,{class:`${l}-switcher-line-icon`},null),e):null:(e=n($,{class:u},null),t&&(e=s?n(O,{class:`${l}-switcher-line-icon`},null):n(g,{class:`${l}-switcher-line-icon`},null)),typeof o=="function"?i=o({...r,defaultIcon:e,switcherCls:u}):h(i)&&(i=m(i,{class:u})),i||e)}export{N as default};
