_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[45],{"4gYC":function(e,t,r){"use strict";r.r(t);var n=r("rePB"),c=r("nKUr"),i=r("wx14"),o=r("q1tI"),a=r("yE/o"),s=r("gaPq"),O=r("h4VS"),j=r("Ff2n"),l=r("UYTu"),b=r("ikXu"),u=r("YFqc"),p=r.n(u),f=r("eHHv"),y=r("YRLc");function d(){var e=Object(O.a)(["\n      query Events($offset: Int, $limit: Int, $type: String) {\n        events(offset: $offset, limit: $limit, type: $type) {\n          _id\n          type\n          created\n        }\n      }\n    "]);return d=function(){return e},e}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=function(e){var t=e.type,r=e.created,n=e._id;return Object(c.jsxs)(b.a.Row,{children:[Object(c.jsx)(b.a.Cell,{children:Object(c.jsx)(p.a,{href:"/events/view?_id=".concat(n),children:Object(c.jsx)("a",{href:"/events/view?_id=".concat(n),children:t})})}),Object(c.jsx)(b.a.Cell,{children:new Date(r).toLocaleString()})]})},g=Object(f.a)(Object(f.c)({limit:20,offset:0}),Object(y.b)({queryName:"events",query:Object(l.a)(d())}))((function(e){e.onFilterChange,e.selectTypes,e.loading,e.updateHasMore,e.queryOptions;var t=Object(j.a)(e,["onFilterChange","selectTypes","loading","updateHasMore","queryOptions"]);return Object(c.jsx)(y.a,w(w({},t),{},{cols:6,createPath:null,rowRenderer:function(e){var t=e._id,r=e.type,n=e.created;return Object(c.jsx)(v,{type:r,created:n,_id:t},t)},children:Object(c.jsxs)(b.a.Row,{children:[Object(c.jsx)(b.a.HeaderCell,{children:"Created"}),Object(c.jsx)(b.a.HeaderCell,{children:"Type"})]})}))})),P=r("PZVx");function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.default=Object(P.a)((function(e){var t=Object(i.a)({},e),r=Object(o.useState)([]),n=r[0],O=r[1];return Object(c.jsx)(s.a,_(_({},t),{},{children:Object(c.jsxs)(a.a,{children:[Object(c.jsx)("h2",{children:"Events"}),Object(c.jsx)(g,{queryOptions:{pollInterval:2e3},limit:10,selectTypes:n,onFilterChange:function(e){var t=e.filterType,r=e.value;"workType"===t&&O(r)}})]})}))}))},WBxL:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/events",function(){return r("4gYC")}])}},[["WBxL",0,2,3,1,4,5,9]]]);