import{t as k,v as z,b as A,H as L,_ as P}from"./app-QjDgb7aF.js";import{n as f}from"./navbar-D_XQl0kT.js";import{b as S,E as j,A as q,j as n,g as v,i as y,q as s,t as E,x as a,p as i,F as _,G as F,u as h,l as x,D as C,H as b,a as H}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";import"./MkTutorialDialog-CFZyQ5Bw.js";import"./profile-ByRIrD3R.js";import"./split-B5EOpoau.js";import"./folder-DKyFtE95.js";import"./slot-BIWBfzr1.js";import"./explore.users-CF98Gym3.js";import"./MkUserList-DmXj88Tc.js";import"./MkUserInfo-Brwzwv5t.js";import"./MkNumber.vue_vue_type_script_setup_true_lang-DCqylJGQ.js";import"./animation-wAdLxVJ8.js";import"./number-BJeYzK3l.js";import"./MkPagination-DzUgufpZ.js";import"./MkFolder-DXwFMXde.js";import"./MkTab.vue_vue_type_style_index_0_lang-Cn_SAquG.js";import"./MkPushNotificationAllowButton.vue_vue_type_script_setup_true_lang-DvaRqget.js";const N={class:"main"},V=["onClick"],G={class:"text"},K={class:"text"},O=S({__name:"MkLaunchPad",props:{src:{},anchor:{default:()=>({x:"right",y:"center"})}},emits:["closed"],setup(r,{emit:w}){const M=r,g=w,D=k==="desktop"&&M.src!=null?"popup":k==="smartphone"?"drawer":"dialog",l=H(),$=z.state.menu,B=Object.keys(f).filter(t=>!$.includes(t)).map(t=>f[t]).filter(t=>t.show==null?!0:t.show).map(t=>({type:t.to?"link":"button",text:A.ts[t.title],icon:t.icon,to:t.to,action:t.action,indicate:t.indicated}));function p(){l.value.close()}return(t,o)=>{const I=j("MkA"),m=q("click-anime");return n(),v(L,{ref_key:"modal",ref:l,"prefer-type":h(D),anchor:r.anchor,"transparent-bg":!0,src:r.src,onClick:o[1]||(o[1]=c=>l.value.close()),onClosed:o[2]||(o[2]=c=>g("closed"))},{default:y(({type:c,maxHeight:d})=>[s("div",{class:a(["szkkfdyq _popup _shadow",{asDrawer:c==="drawer"}]),style:E({maxHeight:d?d+"px":""})},[s("div",N,[(n(!0),i(_,null,F(h(B),e=>(n(),i(_,null,[e.action?x((n(),i("button",{key:0,class:"_button",onClick:u=>{e.action(u),p()}},[s("i",{class:a(["icon",e.icon])},null,2),s("div",G,C(e.text),1),e.indicate?(n(),i("span",{key:0,class:a(["indicator",{animateIndicator:t.$store.state.animation}])},[...o[3]||(o[3]=[s("i",{class:"ph-circle ph-fill"},null,-1)])],2)):b("",!0)],8,V)),[[m]]):x((n(),v(I,{key:1,to:e.to,onClickPassive:o[0]||(o[0]=u=>p())},{default:y(()=>[s("i",{class:a(["icon",e.icon])},null,2),s("div",K,C(e.text),1),e.indicate?(n(),i("span",{key:0,class:a(["indicator",{animateIndicator:t.$store.state.animation}])},[...o[4]||(o[4]=[s("i",{class:"ph-circle ph-fill"},null,-1)])],2)):b("",!0)]),_:2},1032,["to"])),[[m]])],64))),256))])],6)]),_:1},8,["prefer-type","anchor","src"])}}}),mt=P(O,[["__scopeId","data-v-5c851626"]]);export{mt as default};
//# sourceMappingURL=MkLaunchPad-B9YRMwQm.js.map
