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