import{o as k}from"./index.a42041f7.js";import{r as c,j as t,a as l}from"./react.b0bedc10.js";import{I as y,a as x}from"./zarm.80120c4d.js";import{s as n}from"./Form.module.f0e327b6.js";import{C}from"./index.browser.fd6da5bb.js";import{s as a}from"./index.9b0ee734.js";import{I as v}from"./Project.fe0152f3.js";import{e as S}from"./empty_list.f2eec6c0.js";import{b as g,u as j}from"./index.a3f0fe79.js";import"./Patrol.49bc16dd.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]),[i,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:l(x,{visible:!0,direction:"right",afterClose:()=>console.log("\u5173\u95ED"),onMaskClick:()=>{s(-1)},children:[t("div",{className:n.unity_pop,onClick:()=>{s(-1)},children:i.length?l("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:i,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 w=k(E);export{w as default};
