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