const e=require("../../_util/props-util/index.js");let t=require("vue"),n=require("@antsoo-lib/icons");function r(r,i,a,o,s){let{isLeaf:c,expanded:l,loading:u}=a,d=i;if(u)return(0,t.createVNode)(n.LoadingOutlined,{class:`${r}-switcher-loading-icon`},null);let f;s&&typeof s==`object`&&(f=s.showLeafIcon);let p=null,m=`${r}-switcher-icon`;return c?s?f&&o?o(a):(p=typeof s==`object`&&!f?(0,t.createVNode)(`span`,{class:`${r}-switcher-leaf-line`},null):(0,t.createVNode)(n.FileOutlined,{class:`${r}-switcher-line-icon`},null),p):null:(p=(0,t.createVNode)(n.CaretDownFilled,{class:m},null),s&&(p=l?(0,t.createVNode)(n.MinusSquareOutlined,{class:`${r}-switcher-line-icon`},null):(0,t.createVNode)(n.PlusSquareOutlined,{class:`${r}-switcher-line-icon`},null)),typeof i==`function`?d=i({...a,defaultIcon:p,switcherCls:m}):e.isValidElement(d)&&(d=(0,t.cloneVNode)(d,{class:m})),d||p)}exports.default=r;