import{booleanType as e}from"../_util/type.mjs";import t from"../_util/classNames.mjs";import n from"../locale/en_US.mjs";import r from"../locale-provider/LocaleReceiver.mjs";import i from"../_util/vue-types/index.mjs";import a from"../checkbox/index.mjs";import o from"../_util/transButton.mjs";import{createVNode as s,defineComponent as c}from"vue";import{DeleteOutlined as l}from"@antsoo-lib/icons";function u(){}var d={renderedText:i.any,renderedEl:i.any,item:i.any,checked:e(),prefixCls:String,disabled:e(),showRemove:e(),onClick:Function,onRemove:Function},f=c({compatConfig:{MODE:3},name:`ListItem`,inheritAttrs:!1,props:d,emits:[`click`,`remove`],setup(e,{emit:i}){return()=>{let{renderedText:c,renderedEl:d,item:f,checked:p,disabled:m,prefixCls:h,showRemove:g}=e,_=t({[`${h}-content-item`]:!0,[`${h}-content-item-disabled`]:m||f.disabled}),v;return(typeof c==`string`||typeof c==`number`)&&(v=String(c)),s(r,{componentName:`Transfer`,defaultLocale:n.Transfer},{default:e=>{let t=s(`span`,{class:`${h}-content-item-text`},[d]);return g?s(`li`,{class:_,title:v},[t,s(o,{disabled:m||f.disabled,class:`${h}-content-item-remove`,"aria-label":e.remove,onClick:()=>{i(`remove`,f)}},{default:()=>[s(l,null,null)]})]):s(`li`,{class:_,title:v,onClick:m||f.disabled?u:()=>{i(`click`,f)}},[s(a,{class:`${h}-checkbox`,checked:p,disabled:m||f.disabled},null),t])}})}}});export{f as default,d as transferListItemProps};