import{d as _,a as B,i as L,H as P,n as j}from"./app-JmgyQoR0.js";import{n as k}from"./navbar-9K90wpPh.js";import{b as q,a as A,D as E,g as F,h as s,i as h,j as f,u as e,t as i,G as H,F as v,q as y,x as r,E as C,H as w,z as x,y as N,I as V,J as G}from"./vue-y3KLWBaS.js";import"./MkTutorialDialog-jfmweelM.js";import"./profile-6OYyFMtH.js";import"./split-mI9ZWkMh.js";import"./folder-DNqDLK_K.js";import"./slot-skomV0Er.js";import"./explore.users-T3E41M2s.js";import"./MkUserList-oKr58tvs.js";import"./MkUserInfo-NOodgOlv.js";import"./MkNumber.vue_vue_type_script_setup_true_lang-gu4zp81q.js";import"./number-rE36t967.js";import"./MkPagination-urywMrXv.js";import"./MkFolder-7Ekk-Fp4.js";import"./MkTab.vue_vue_type_style_index_0_lang-bgKDPAJl.js";import"./MkPushNotificationAllowButton.vue_vue_type_script_setup_true_lang-XQVl5ZZe.js";const I=n=>(V("data-v-04706366"),n=n(),G(),n),J={class:"main"},K=["onClick"],O={class:"text"},T=I(()=>e("i",{class:"ph-circle ph-fill"},null,-1)),Q=[T],R={class:"text"},U=I(()=>e("i",{class:"ph-circle ph-fill"},null,-1)),W=[U],X=q({__name:"MkLaunchPad",props:{src:{},anchor:{default:()=>({x:"right",y:"center"})}},emits:["closed"],setup(n,{emit:b}){const M=n,g=b,D=_==="desktop"&&M.src!=null?"popup":_==="smartphone"?"drawer":"dialog",c=A(),S=B.state.menu,$=Object.keys(k).filter(t=>!S.includes(t)).map(t=>k[t]).filter(t=>t.show==null?!0:t.show).map(t=>({type:t.to?"link":"button",text:L.ts[t.title],icon:t.icon,to:t.to,action:t.action,indicate:t.indicated}));function p(){c.value.close()}return(t,a)=>{const z=E("MkA"),d=F("click-anime");return s(),h(P,{ref_key:"modal",ref:c,"prefer-type":x(D),anchor:t.anchor,"transparent-bg":!0,src:t.src,onClick:a[1]||(a[1]=l=>c.value.close()),onClosed:a[2]||(a[2]=l=>g("closed"))},{default:f(({type:l,maxHeight:m})=>[e("div",{class:r(["szkkfdyq _popup _shadow",{asDrawer:l==="drawer"}]),style:N({maxHeight:m?m+"px":""})},[e("div",J,[(s(!0),i(v,null,H(x($),o=>(s(),i(v,null,[o.action?y((s(),i("button",{key:0,class:"_button",onClick:u=>{o.action(u),p()}},[e("i",{class:r(["icon",o.icon])},null,2),e("div",O,C(o.text),1),o.indicate?(s(),i("span",{key:0,class:r(["indicator",{animateIndicator:t.$store.state.animation}])},Q,2)):w("",!0)],8,K)),[[d]]):y((s(),h(z,{key:1,to:o.to,onClickPassive:a[0]||(a[0]=u=>p())},{default:f(()=>[e("i",{class:r(["icon",o.icon])},null,2),e("div",R,C(o.text),1),o.indicate?(s(),i("span",{key:0,class:r(["indicator",{animateIndicator:t.$store.state.animation}])},W,2)):w("",!0)]),_:2},1032,["to"])),[[d]])],64))),256))])],6)]),_:1},8,["prefer-type","anchor","src"])}}}),kt=j(X,[["__scopeId","data-v-04706366"]]);export{kt as default};
