_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[52],{hkxl:function(e,t,r){"use strict";r.r(t);var n=r("rePB"),c=r("nKUr"),i=r("wx14"),a=(r("q1tI"),r("yE/o")),o=r("gaPq"),s=r("h4VS"),j=r("eHHv"),l=r("UYTu"),O=r("ikXu"),b=r("D1pA"),u=r("YFqc"),f=r.n(u),d=r("YRLc");function p(){var e=Object(s.a)(["\n      query languages($offset: Int, $limit: Int) {\n        languages(offset: $offset, limit: $limit, includeInactive: true) {\n          _id\n          isoCode\n          isActive\n          isBase\n          name\n        }\n      }\n    "]);return p=function(){return e},e}function g(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 h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var w=Object(j.a)(Object(j.c)({limit:20,offset:0}),Object(d.b)({queryName:"languages",query:Object(l.a)(p())}),j.e)((function(e){var t=Object(i.a)({},e);return Object(c.jsx)(d.a,h(h({},t),{},{cols:3,createPath:"/languages/new",rowRenderer:function(e){return Object(c.jsxs)(O.a.Row,{children:[Object(c.jsx)(O.a.Cell,{children:Object(c.jsx)(f.a,{href:"/languages/edit?_id=".concat(e._id),children:Object(c.jsx)("a",{href:"/languages/edit?_id=".concat(e._id),children:e.isoCode})})}),Object(c.jsx)(O.a.Cell,{children:e.isActive&&Object(c.jsx)(b.a,{color:"green",name:"checkmark",size:"large"})}),Object(c.jsx)(O.a.Cell,{children:e.isBase?Object(c.jsx)("b",{children:"Base language"}):null})]},e._id)},children:Object(c.jsxs)(O.a.Row,{children:[Object(c.jsx)(O.a.HeaderCell,{children:"Name"}),Object(c.jsx)(O.a.HeaderCell,{children:"Activated?"}),Object(c.jsx)(O.a.HeaderCell,{})]})}))})),y=r("PZVx");function P(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 x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.default=Object(y.a)((function(e){var t=Object(i.a)({},e);return Object(c.jsx)(o.a,x(x({},t),{},{children:Object(c.jsxs)(a.a,{children:[Object(c.jsx)("h2",{children:"Languages"}),Object(c.jsx)(w,{})]})}))}))},nB9K:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/languages",function(){return r("hkxl")}])}},[["nB9K",0,2,3,1,4,5,9]]]);