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