import{t as x,Y as v}from"./index-ae60edf9.js";import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-e7eadba1.js";import{V as b}from"./virtual-list-b1ee24f1.js";import{d as C,b as w,o as r,c,a as t,aX as l,$ as i,F as $,aI as g,bj as y,u as L}from"./@vue-cb50a1c4.js";import{B}from"./index-e4a7d928.js";const I={class:"flex h-20 justify-between bg-white px-[22px] py-2",style:{"box-shadow":"0px 0px 4px 0px rgba(0, 0, 0, 0.15)"}},D={class:"font-medium text-[#1B72EC]"},F={class:"mt-1 max-w-[60vw] text-xs text-[#666] line-clamp-1"},_={class:"flex h-full flex-col"},N={class:"flex justify-between border-b border-b-[#F0F0F0] py-4 px-[22px]"},V={class:"font-medium text-[#333]"},S=C({__name:"index",props:{allCheckedList:null,total:null},emits:["remove","confirm"],setup(s,{emit:d}){const n=w(!1),m=()=>{d("confirm")};return(o,a)=>{const u=x,p=B,h=v;return r(),c("div",I,[t("div",{onClick:a[0]||(a[0]=e=>n.value=!0)},[t("div",D,[t("span",null,l(o.$t("selected"))+"：",1),t("span",null,l(o.$t("somePeople",{count:s.allCheckedList.length})),1),i(u,{class:"ml-2",name:"arrow-up"})]),t("div",F,[(r(!0),c($,null,g(s.allCheckedList,(e,f)=>(r(),c("span",{key:e.userID||e.groupID},l(`${e.remark||e.nickname||e.groupName||e.showName}${f===s.allCheckedList.length-1?"":"、"}`),1))),128))])]),i(p,{class:"!mt-1 !h-[40px] !px-[13px] !text-sm",type:"primary",disabled:s.allCheckedList.length===0,text:`${o.$t("buttons.confirm")} (${s.allCheckedList.length}/${s.total})`,size:"mini",onClick:m},null,8,["disabled","text"]),i(h,{show:n.value,"onUpdate:show":a[2]||(a[2]=e=>n.value=e),position:"bottom",round:"",class:"h-2/3"},{default:y(()=>[t("div",_,[t("div",N,[t("div",V,[t("span",null,l(o.$t("selected"))+"：",1),t("span",null,l(o.$t("somePeople",{count:s.allCheckedList.length})),1)]),t("span",{class:"font-medium text-[#1B72EC]",onClick:a[1]||(a[1]=e=>n.value=!1)},l(o.$t("buttons.confirm")),1)]),i(L(b),{class:"my_scrollbar flex-1 overflow-y-auto bg-white","data-key":e=>e.userID||e.groupID,"data-sources":s.allCheckedList,"data-component":k,"estimate-size":88,"extra-props":{total:s.allCheckedList.length,showRemove:!0,onRemove:e=>d("remove",e)}},null,8,["data-key","data-sources","extra-props"])])]),_:1},8,["show"])])}}});export{S as _};
