_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[33],{Gy1X:function(e,t,r){"use strict";r.r(t);var n=r("rePB"),c=r("nKUr"),i=(r("q1tI"),r("yE/o")),o=r("gaPq"),s=r("h4VS"),j=r("wx14"),a=r("eHHv"),O=r("UYTu"),b=r("ikXu"),u=r("D1pA"),l=r("YFqc"),f=r.n(l),d=r("YRLc");function p(){var e=Object(s.a)(["\n      query countries($limit: Int, $offset: Int) {\n        countries(limit: $limit, offset: $offset, includeInactive: true) {\n          _id\n          isoCode\n          isActive\n          isBase\n          name\n        }\n      }\n    "]);return p=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 y(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 w=Object(a.a)(Object(a.c)({limit:20,offset:0}),Object(d.b)({queryName:"countries",query:Object(O.a)(p())}),a.e)((function(e){var t=Object(j.a)({},e);return Object(c.jsx)(d.a,y(y({},t),{},{cols:3,createPath:"/countries/new",rowRenderer:function(e){return Object(c.jsxs)(b.a.Row,{children:[Object(c.jsx)(b.a.Cell,{children:Object(c.jsx)(f.a,{href:"/countries/edit?_id=".concat(e._id),children:Object(c.jsx)("a",{href:"/countries/edit?_id=".concat(e._id),children:e.isoCode})})}),Object(c.jsx)(b.a.Cell,{children:e.isActive&&Object(c.jsx)(u.a,{color:"green",name:"checkmark",size:"large"})}),Object(c.jsx)(b.a.Cell,{children:e.isBase?Object(c.jsx)("b",{children:"Base Country"}):null})]},e._id)},children:Object(c.jsxs)(b.a.Row,{children:[Object(c.jsx)(b.a.HeaderCell,{children:"Name"}),Object(c.jsx)(b.a.HeaderCell,{children:"Active?"}),Object(c.jsx)(b.a.HeaderCell,{children:"Base Country"})]})}))})),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){return Object(c.jsx)(o.a,_(_({},e),{},{children:Object(c.jsxs)(i.a,{children:[Object(c.jsx)("h2",{children:"Countries"}),Object(c.jsx)(w,{})]})}))}))},cVFh:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/countries",function(){return r("Gy1X")}])}},[["cVFh",0,2,3,1,4,5,9]]]);