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