1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53],{29804:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reports",function(){return r(39265)}])},48548:function(e,n,r){"use strict";var t=r(85893),i=r(94184),a=r.n(i);r(67294);var s=r(76198),l=r.n(s);n.Z=function(e){let{title:n,children:r,className:i}=e;return(0,t.jsxs)("div",{className:a()(l().header,i),children:[n&&(0,t.jsx)("div",{className:l().title,children:n}),(0,t.jsx)("div",{className:l().actions,children:r})]})}},67650:function(e,n,r){"use strict";r.d(n,{Z:function(){return _}});var t=r(85893),i=r(67294),a=r(29120),s=r(38673),l=function(e){let{name:n,onConfirm:r,onClose:l}=e,[c,o]=(0,i.useState)(!1),{formatMessage:d,labels:u,messages:h,FormattedMessage:x}=(0,s.Z)(),j=()=>{o(!0),r()};return(0,t.jsxs)(a.l0,{children:[(0,t.jsx)("p",{children:(0,t.jsx)(x,{...h.confirmDelete,values:{target:(0,t.jsx)("b",{children:n})}})}),(0,t.jsxs)(a.Au,{flex:!0,children:[(0,t.jsx)(a.fl,{loading:c,onClick:j,variant:"danger",children:d(u.delete)}),(0,t.jsx)(a.zx,{onClick:l,children:d(u.cancel)})]})]})},c=r(41664),o=r.n(c),d=r(77308),u=r.n(d);function h(e){let{href:n,icon:r,children:i}=e;return(0,t.jsxs)(o(),{className:u().button,href:n,children:[(0,t.jsx)(a.JO,{children:r||(0,t.jsx)(a.PJ.ArrowRight,{})}),(0,t.jsx)(a.xv,{children:i})]})}var x=r(16626),j=r(36715),f=r(7588),_=function(e){let{data:n=[],onDelete:r=()=>{},filterValue:s,onFilterChange:c,onPageChange:o,onPageSizeChange:d,showDomain:u}=e,[_,g]=(0,i.useState)(null),{formatMessage:m,labels:p}=(0,j.y_)(),{user:v}=(0,f.Z)(),P=[{name:"domain",label:m(p.domain)}],C=[{name:"name",label:m(p.name)},{name:"description",label:m(p.description)},{name:"type",label:m(p.type)},...u?P:[],{name:"action",label:" "}],w=()=>{r(_.id)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.Z,{columns:C,data:n,showSearch:!0,showPaging:!0,onFilterChange:c,onPageChange:o,onPageSizeChange:d,filterValue:s,children:e=>{let{id:n,userId:r,website:i}=e;return u&&(e.domain=i.domain),(0,t.jsxs)(a.DL,{gap:10,children:[(0,t.jsx)(h,{href:"/reports/".concat(n),children:m(p.view)}),!u||v.id===r||v.id===(null==i?void 0:i.userId),(0,t.jsxs)(a.zx,{onClick:()=>g(e),children:[(0,t.jsx)(a.JO,{children:(0,t.jsx)(a.PJ.Trash,{})}),(0,t.jsx)(a.xv,{children:m(p.delete)})]})]})}}),_&&(0,t.jsx)(a.u_,{children:(0,t.jsx)(l,{name:_.name,onConfirm:w,onClose:()=>g(null)})})]})}},39265:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return j}});var t=r(85893),i=r(25420),a=r(47787),s=r(92917),l=r(48548),c=r(36715),o=r(41664),d=r.n(o),u=r(29120),h=r(67650),x=function(){let{formatMessage:e,labels:n,messages:r}=(0,c.y_)(),{reports:i,error:o,isLoading:x,deleteReport:j,filter:f,handleFilterChange:_,handlePageChange:g,handlePageSizeChange:m}=(0,c.xC)(),p=i&&(null==i?void 0:i.data.length)!==0||f;return(0,t.jsxs)(s.Z,{loading:x,error:o,children:[(0,t.jsx)(l.Z,{title:e(n.reports),children:(0,t.jsx)(d(),{href:"/reports/create",children:(0,t.jsxs)(u.zx,{variant:"primary",children:[(0,t.jsx)(u.JO,{children:(0,t.jsx)(u.PJ.Plus,{})}),(0,t.jsx)(u.xv,{children:e(n.createReport)})]})})}),p&&(0,t.jsx)(h.Z,{data:i,showSearch:!0,showPaging:!0,onFilterChange:_,onPageChange:g,onPageSizeChange:m,onDelete:j,filterValue:f,showDomain:!0}),!p&&(0,t.jsx)(a.Z,{message:e(r.noDataAvailable)})]})};function j(){let{formatMessage:e,labels:n}=(0,c.y_)();return(0,t.jsx)(i.Z,{title:e(n.reports),children:(0,t.jsx)(x,{})})}},77308:function(e){e.exports={button:"LinkButton_button__nUWEG"}},76198:function(e){e.exports={header:"PageHeader_header__Bf2pn",title:"PageHeader_title__1UfDP",actions:"PageHeader_actions__4ECX9"}}},function(e){e.O(0,[678,885,45,249,389,420,774,888,179],function(){return e(e.s=29804)}),_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.