import{n as k,r as c,j as t,a as i}from"./react.e658030c.js";import{I as y,a as x}from"./zarm.5a521378.js";import{s as n}from"./Form.module.9b7917ef.js";import{C}from"./index.browser.1cd18022.js";import{s as a}from"./index.5596e121.js";import{I as v}from"./Project.b97a5292.js";import{e as S}from"./empty_list.f2eec6c0.js";import{b as g,u as j}from"./index.52024c57.js";const o=y.createFromIconfont("//at.alicdn.com/t/font_3322051_slcyo8mabxe.js"),E=()=>{document.title="\u9009\u62E9\u68C0\u67E5\u9879";const r=g(),{getProjectItems:m}=a.ItemStore,s=j(),p=c.exports.useMemo(()=>a.ItemStore.selectedItems,[a.ItemStore.selectedItems]),[l,d]=c.exports.useState([]),[u,I]=c.exports.useState([]),h=async()=>{const e=await m({},{projectID:r.projectId});if((e==null?void 0:e.code)==200)try{const f=v(e.content);d(f)}catch{}};return c.exports.useEffect(()=>{h()},[r.projectId]),t("div",{className:n.body,children:i(x,{visible:!0,direction:"right",afterClose:()=>console.log("\u5173\u95ED"),onMaskClick:()=>{s(-1)},children:[t("div",{className:n.unity_pop,onClick:()=>{s(-1)},children:l.length?i("div",{onClick:e=>e.stopPropagation(),children:[t(C,{icons:{expandAll:null,collapseAll:null,parentClose:null,parentOpen:null,check:t(o,{type:"icon-checked"}),uncheck:t(o,{type:"icon-unchecked"}),halfCheck:t(o,{type:"icon-checked"}),expandClose:t(o,{type:"icon-shouqi"}),expandOpen:t(o,{type:"icon-zhankai"}),leaf:null},nodes:l,checked:p,expanded:u,onCheck:e=>{a.ItemStore.setSelectedItems(e)},onExpand:e=>I(e)})," "]}):t("div",{className:n.unity_empty,onClick:e=>{s(-1)},children:t("img",{src:S})})}),t("div",{className:n.unity_close,onClick:()=>{s(-1)},children:"\u5173\u95ED"})]})})};var O=k(E);export{O as default};
