import{i as n,P as y,t as b,_ as w}from"./app-JmgyQoR0.js";import{u as k}from"./widget-qjKd4HCd.js";import{M as T}from"./MkContainer-6laePfDX.js";import{X as x}from"./MkNotifications-v0_g-x04.js";import{b as P,h as v,i as C,j as a,K as N,E as A,z as e,u as i,l as D,y as V,d as B}from"./vue-y3KLWBaS.js";import"./MkPagination-urywMrXv.js";import"./MkNotification-CZxoNE6o.js";import"./MkReactionIcon.vue_vue_type_script_setup_true_lang-MnLL2GJr.js";import"./get-note-summary-7eDLQp-L.js";import"./MkDateSeparatedList.vue_vue_type_style_index_0_lang-bpwwzSpi.js";import"./MkNote-Y7yPCL5J.js";import"./MkReactionsViewer-iZKN4Via.js";import"./share-available-LNRVMfAE.js";const E=i("i",{class:"ph-bell ph-bold ph-lg"},null,-1),M=["aria-label"],S=i("i",{class:"ph-checks ph-bold ph-lg"},null,-1),$=[S],z=["aria-label"],H=i("i",{class:"ph-gear-six ph-bold ph-lg"},null,-1),R=[H],r="notifications",Y=P({__name:"notifications",props:{widget:{}},emits:["updateProps"],setup(p,{expose:d,emit:c}){const u={showHeader:{type:"boolean",default:!0},height:{type:"number",default:300},includingTypes:{type:"array",hidden:!0,default:null}},s=p,m=c,{widgetProps:o,configure:h,save:_}=k(r,u,s,m),f=()=>{b(B(()=>w(()=>import("./MkNotificationSettingWindow-nUjoQb-8.js"),__vite__mapDeps([0,1,2,3]))),{includingTypes:o.includingTypes},{done:async l=>{const{includingTypes:t}=l;o.includingTypes=t,_()}},"closed")};return d({name:r,configure:h,id:s.widget?s.widget.id:null}),(l,t)=>(v(),C(T,{style:V(`height: ${e(o).height}px;`),"show-header":e(o).showHeader,scrollable:!0,class:"mkw-notifications"},{header:a(()=>[E,N(A(e(n).ts.notifications),1)]),func:a(()=>[i("button",{class:"_button","aria-label":e(n).ts.markAllAsRead,onClick:t[0]||(t[0]=g=>y("notifications/mark-all-as-read"))},$,8,M),i("button",{class:"_button","aria-label":e(n).ts.notificationSetting,onClick:t[1]||(t[1]=g=>f())},R,8,z)]),default:a(()=>[i("div",null,[D(x,{"include-types":e(o).includingTypes},null,8,["include-types"])])]),_:1},8,["style","show-header"]))}});export{Y as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["MkNotificationSettingWindow-nUjoQb-8.js","app-JmgyQoR0.js","vue-y3KLWBaS.js","app-9iivmIpH.css"]
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}