1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3491],{93141:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/subscribers",function(){return e(59002)}])},59002:function(n,t,e){"use strict";e.r(t),e.d(t,{default:function(){return E}});var a=e(36734),i=e(1127),r=e.n(i),o=e(37915),l=e(78127),s=e(51776),c=e(39994),u=e(15874),d=e(42209),p=e(21702),_=e(90122),b=e(6829);let f=p.z.object({id:p.z.number(),email:p.z.string(),created_at:p.z.string(),updated_at:p.z.string().optional()}),g=p.z.object({subscribers:p.z.array(f),pagination:_.t}).optional(),h=n=>{let{data:t,isLoading:e,mutate:a}=(0,d.ZP)([b.cG,{params:{page:n,per_page:b.LZ}}]);return(0,s.useEffect)(()=>{g.parse(t)},[t]),{subscribers:null==t?void 0:t.subscribers,pagination:null==t?void 0:t.pagination,loading:e,mutate:a}};var m=e(14889),v=e(66173),w=e(77342),j=n=>[{title:"Email",dataIndex:"email",key:"email"},{title:"Actions",dataIndex:"actions",key:"actions",width:"6%",render:(t,e)=>(0,a.jsx)("div",{className:"table-actions",children:(0,a.jsx)(w.Z,{title:"Sure to delete?",onConfirm:()=>n(e),children:(0,a.jsx)(v.Z,{})})})}];let x=()=>{let[n,t]=(0,s.useState)(1),{subscribers:e,pagination:i,loading:r,mutate:o}=h(n),l=async a=>{await (0,m.Jl)("".concat(b.cG,"/").concat(a.id)),(null==e?void 0:e.length)===1&&n>1?t(n-1):o()};return(0,a.jsx)(u.Z,{children:(0,a.jsx)(c.Z,{rowKey:n=>n.id,bordered:!0,dataSource:e,columns:j(l),loading:r,paginationProps:{total:null==i?void 0:i.total_count,current:null==i?void 0:i.current_page,onChange:n=>t(n)}})})};var Z=e(78304);let k=()=>(0,a.jsx)(l.Z,{children:(0,a.jsx)(x,{})}),z=(0,Z.$w)(k);var E=(0,o.Z)(z,{...r(),isLoader:!0,skipInitialProps:!1,loadLocaleFrom:(n,t)=>e(30242)("./".concat(n,"/").concat(t)).then(n=>n.default)})}},function(n){n.O(0,[297,5616,5517,983,1702,8574,5167,1058,7853,9774,2888,179],function(){return n(n.s=93141)}),_N_E=n.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.