var b=(m,f,r)=>new Promise((e,d)=>{var p=a=>{try{c(r.next(a))}catch(s){d(s)}},l=a=>{try{c(r.throw(a))}catch(s){d(s)}},c=a=>a.done?e(a.value):Promise.resolve(a.value).then(p,l);c((r=r.apply(m,f)).next())});import{d as z,aL as B,fw as D,aj as K,bO as E,b9 as O,aG as j,fg as A,cJ as N,r as w,W as $,fI as G,cX as H,j as J,n as P,a4 as W,_ as X,y as o,o as u,l as k,c as h,w as n,N as C,O as F,X as q,H as L,e as i,a as R,b as I,t as x,__tla as V}from"./index-b5895273.js";import{u as Z,__tla as Q}from"./index-751113fc.js";let T,U=Promise.all([(()=>{try{return V}catch(m){}})(),(()=>{try{return Q}catch(m){}})()]).then(()=>b(void 0,null,function*(){const m=z({name:"LayoutBreadcrumb",components:{Icon:B,[D.name]:D,Tooltip:K,AMenu:E,MenuItem:E.Item,Dropdown:O},props:{theme:j.oneOf(["dark","light"])},setup(){const e=A(),{subSystemList:d}=N(e),p=w("dark"),l=w([e.getSubSystem]),{prefixCls:c}=$("layout-breadcrumb"),{getIsMobile:a}=G(),s=w([]),{t:y}=W(),{getShowTopMenu:g}=H(),{getShowContent:v,getShowBread:S}=Z();J(()=>d.value,t=>{s.value=t},{deep:!0}),P(()=>b(this,null,function*(){yield e.changeSubsystem(g.value,a.value),s.value=e.getSubSysList}));function _(t){e.setSubSystem(t),l.value=[t]}function M(t){l.value[0]!==t.event&&(l.value=[t.event],e.setSubSystem(t.event))}return{t:y,prefixCls:c,cur:l,changeSystem:_,system:s,Mtheme:p,getShowContent:v,getShowTopMenu:g,getShowBread:S,getIsMobile:a,handleMenuEvent:M}}}),f={class:"cursor-pointer flex items-center p-2"};function r(e,d,p,l,c,a){const s=o("Icon"),y=o("Tooltip"),g=o("MenuItem"),v=o("AMenu"),S=o("a-menu-item"),_=o("a-menu"),M=o("Dropdown");return u(),k(C,null,[e.getShowContent&&e.getShowBread?(u(),h(v,{key:0,selectedKeys:e.cur,mode:"horizontal",theme:e.Mtheme,class:q([e.prefixCls,`${e.prefixCls}--${e.theme}`])},{default:n(()=>[(u(!0),k(C,null,F(e.system,t=>(u(),h(g,{key:t.id,class:"item-system"},{icon:n(()=>[i(y,null,{title:n(()=>[I(x(t.name),1)]),default:n(()=>[i(s,{icon:t.icon||"ant-design:appstore-outlined",color:"#DEDFFF",size:"26",style:{"vertical-align":"-7px"},onClick:Y=>e.changeSystem(t.id)},null,8,["icon","onClick"])]),_:2},1024)]),default:n(()=>[I(" "+x(t.name),1)]),_:2},1024))),128))]),_:1},8,["selectedKeys","theme","class"])):L("",!0),i(y,{title:"\u5B50\u7CFB\u7EDF",mouseEnterDelay:.5},{default:n(()=>[e.getShowTopMenu&&!e.getIsMobile?(u(),h(M,{key:0,placement:"bottom",trigger:["click"],dropMenuList:e.system,selectedKeys:e.cur,onMenuEvent:e.handleMenuEvent,overlayClassName:"app-locale-picker-overlay"},{overlay:n(()=>[i(_,null,{default:n(()=>[(u(!0),k(C,null,F(e.system,t=>(u(),h(S,{key:t.event},{default:n(()=>[i(s,{icon:t.icon||"ant-design:appstore-outlined",color:"#DEDFFF",size:"26",style:{"vertical-align":"-7px"}},null,8,["icon"]),I(" "+x(t.text),1)]),_:2},1024))),128))]),_:1})]),default:n(()=>[R("span",f,[i(s,{icon:"icon-park-outline:system",size:"22"})])]),_:1},8,["dropMenuList","selectedKeys","onMenuEvent"])):L("",!0)]),_:1})],64)}T=X(m,[["render",r]])}));export{U as __tla,T as default};