1import{k as m,n as u,g as a,o,h as s,F as f,x as _,v as g,t as k,l as C,$ as v}from"./CHWWsaLB.js";import{_ as y}from"./DlAUqK2U.js";const A={class:"categories-container"},h={class:"categories"},N=["onClick"],x=m({name:"NotificationsCategories",__name:"Categories",props:{categories:{type:Array,required:!0},selectedCategory:{type:String,required:!0},pending:{type:Boolean,required:!1}},emits:["selected","reload"],setup(r,{emit:n}){const l=r,c=n,d=u(()=>l.categories.filter(e=>!e.blocked)),p=async()=>{try{const{$afetch:e}=C();await e(v.markAllAsRead()),c("reload")}catch(e){console.error("Error marking all notifications as read:",e)}};return(e,i)=>(o(),a("div",A,[s("span",{class:"title-container"},[i[0]||(i[0]=s("p",{class:"title"},"Notifications",-1)),s("p",{class:"sub-title",onClick:p},"Mark all as read")]),s("div",h,[(o(!0),a(f,null,_(d.value,t=>(o(),a("div",{key:t.id,class:g(["category",{selected:t.originalName===r.selectedCategory}]),onClick:B=>e.$emit("selected",t)},[s("p",null,k(t.name==="Default"?"All":t.name),1)],10,N))),128))])]))}}),q=y(x,[["__scopeId","data-v-1bc3cfcd"]]);export{q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.