const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["stream-indicator-M3-zXmkh.js","app-QjDgb7aF.js","vue-Cm77DuTi.js","charts-3gEHPHRq.js","media-DuCIZ-3n.js","app-CV_aoXZ3.css","stream-indicator-B76rwh-1.css","upload-Cd4qNBqF.js","upload-BYJG-Tze.css","MkNotificationToast-C-NQbLts.js","MkNotification-DuBjKjip.js","MkReactionIcon.vue_vue_type_script_setup_true_lang-D23mNn1N.js","get-note-summary-DlGmePWF.js","MkNotification-iMMe_zPe.css","MkNotificationToast-CZ89H11I.css"])))=>i.map(i=>d[i]);
import{$ as u,z as y,A as E,m as l,n as I,B as m,a as h,l as s,D,E as V,F as A}from"./app-QjDgb7aF.js";import{b as B,p as i,F as p,G as L,u as n,g as _,H as f,k as N,q as C,d,j as o,M as P,a2 as R,K as T}from"./vue-Cm77DuTi.js";function b(){navigator.serviceWorker.addEventListener("message",e=>{if(e.data.type==="order"){if(e.data.loginId!==u?.id)return y(e.data.loginId).then(r=>{if(r)return E(r.token,e.data.url)});switch(e.data.order){case"post":return I(e.data.options);case"push":return l.currentRoute.value.path===e.data.url?window.scroll({top:0,behavior:"smooth"}):l.push(e.data.url);default:return}}})}const w={key:1,id:"devTicker"},U=B({__name:"common",setup(e){const r=d(()=>s(()=>import("./stream-indicator-M3-zXmkh.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),g=d(()=>s(()=>import("./upload-Cd4qNBqF.js"),__vite__mapDeps([7,1,2,3,4,5,8]))),k=!1,v=t=>{u.mutingNotificationTypes.includes(t.type)||(document.visibilityState==="visible"&&(m.send("readNotification",{id:t.id}),h(d(()=>s(()=>import("./MkNotificationToast-C-NQbLts.js"),__vite__mapDeps([9,2,10,11,1,3,4,5,12,13,14]))),{notification:t},{},"closed")),D("notification"))};return u&&(m.useChannel("main",null,"UI").on("notification",v),"serviceWorker"in navigator&&b()),(t,c)=>(o(),i(p,null,[(o(!0),i(p,null,L(n(V),a=>(o(),_(T(a.component),P({key:a.id},{ref_for:!0},a.props,R(a.events)),null,16))),128)),n(A).length>0?(o(),_(n(g),{key:0})):f("",!0),N(n(r)),n(k)?(o(),i("div",w,[...c[0]||(c[0]=[C("span",null,"DEV BUILD",-1)])])):f("",!0)],64))}});export{U as _};
//# sourceMappingURL=common.vue_vue_type_style_index_0_lang-Ngwx2OGt.js.map
