import{d as e,i as s,j as l,e as t,f as a,g as i,l as r,t as n,u as c,m as d,F as o,p as u}from"./index-45b322f7.js";import{h as f,d as m}from"./index.f474d5f6.js";import{_ as p}from"./_plugin-vue_export-helper.1b428a4d.js";const _=p({__name:"itemList",props:{listData:{type:Array,default:[]},selectedItemId:{type:String,default:""}},emits:["clickNextLevel","clickEntry","clickFirstLevelEntry"],setup(p,{emit:_}){const k=p;return(y,v)=>{const x=u;return e(!0),s(o,null,l(k.listData,(s=>(e(),t(x,null,{default:a((()=>["firstLevelType"==s.type||0==s.isleaf?(e(),t(x,{key:0,class:"ss-flex ss-row-between itemBox",onClick:e=>{return l=s.id,void _("clickFirstLevelEntry",l);var l}},{default:a((()=>[i(x,{class:"ss-flex ss-row-between ss-flex-1 item"},{default:a((()=>[i(x,null,{default:a((()=>[r(n(s.name),1)])),_:2},1024),i(c(f),{onClick:e=>{return l=s.id,void _("clickNextLevel",l);var l}},null,8,["onClick"])])),_:2},1024)])),_:2},1032,["onClick"])):d("",!0),"subLevelType"==s.type||1==s.isleaf?(e(),t(x,{key:1,class:"itemBox",onClick:e=>{return l=s.id,void _("clickEntry",l);var l}},{default:a((()=>[i(x,{class:"ss-flex ss-flex-1 ss-row-between item"},{default:a((()=>[i(x,{class:"ss-flex-col"},{default:a((()=>[i(x,{class:"ss-line-2"},{default:a((()=>[r(n(s.name),1)])),_:2},1024),i(x,{class:"number"},{default:a((()=>[r(n(s.number),1)])),_:2},1024)])),_:2},1024),p.selectedItemId==s.id?(e(),t(c(m),{key:0})):d("",!0)])),_:2},1024)])),_:2},1032,["onClick"])):d("",!0)])),_:2},1024)))),256)}}},[["__scopeId","data-v-56be4964"]]);export{_ as i};
