1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5253],{7650:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/notification",function(){return i(2675)}])},2675:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>m});var a=i(4848),s=i(6540),l=i(5099),d=i(3261),n=i(4505),o=i(8874);let c=i(6425);function u(){let[e,t]=(0,s.useState)([]);(0,s.useEffect)(()=>{(0,o.bg)(),(async()=>{c.post("/api/mail",{type:"list"}).then(e=>{if(e&&e.data){let i=[],a=1;e.data.forEach(e=>{e.dataid=e._id,i.push(Object.assign({id:a++},e))}),t(i)}})})()},[]);let i=async i=>{(0,n.Ay)("Deleting ...");let a=[],s=[];e.map(e=>{-1!=i.indexOf(e.id)?a.push(e.dataid):s.push(e)}),await c.post("/api/mail",{type:"delete",list:a}),n.Ay.dismiss(),n.Ay.success("Deleted"),t(s)};return(0,a.jsx)("div",{className:"p-50 mx-auto",children:(0,a.jsx)(l.A,{title:"Notifications",headCells:[{id:"id",numeric:!0,label:"id"},{id:"title",label:"Title"},{id:"from",label:"Email",className:"hidden-sm"},{id:"message",label:"Message",className:"hidden-sm"},{id:"controlButtons",label:""}],rows:e,onDelete:i})})}let m=()=>(0,a.jsx)(d.A,{Component:u,header:!0,footer:!0})}},e=>{var t=t=>e(e.s=t);e.O(0,[3478,9906,8037,9736,6425,1021,1679,9830,6938,571,636,6593,8792],()=>t(7650)),_N_E=e.O()}]);
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.