_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[49],{"5pHj":function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/payment-providers",function(){return n("Y4bP")}])},Y4bP:function(e,r,n){"use strict";n.r(r);var t=n("q1tI"),a=n.n(t),o=n("yE/o"),l=n("gaPq"),i=n("h4VS"),c=n("wx14"),u=n("lTCR"),s=n.n(u),d=n("ikXu"),p=n("D1pA"),f=n("YFqc"),b=n.n(f),m=n("YRLc"),y=a.a.createElement;function O(){var e=Object(i.a)(["\n    query paymentProviders {\n      paymentProviders {\n        _id\n        type\n        configurationError\n        interface {\n          _id\n          label\n          version\n        }\n      }\n    }\n  "]);return O=function(){return e},e}var h=Object(m.b)({queryName:"paymentProviders",query:s()(O())})((function(e){var r=Object(c.a)({},e);return y(m.a,Object(c.a)({},r,{limit:0,cols:4,createPath:"/payment-providers/new",rowRenderer:function(e){return y(d.a.Row,{key:e._id},y(d.a.Cell,null,y(b.a,{href:"/payment-providers/edit?_id=".concat(e._id)},y("a",{href:"/payment-providers/edit?_id=".concat(e._id)},e._id))),y(d.a.Cell,null,e.type),y(d.a.Cell,null,e.interface&&e.interface.label,"\xa0",e.interface&&e.interface.version),y(d.a.Cell,null,e.configurationError&&y("span",null,y(p.a,{color:"red",name:"close"}),"Configuration Errors")))}}),y(d.a.Row,null,y(d.a.HeaderCell,null,"Configuration"),y(d.a.HeaderCell,null,"Type"),y(d.a.HeaderCell,null,"Interface"),y(d.a.HeaderCell,null,"Problems")))})),v=n("PZVx"),P=a.a.createElement;r.default=Object(v.a)((function(e){return P(l.a,e,P(o.a,null,P("h2",null,"Payments"),P(h,null)))}))},YRLc:function(e,r,n){"use strict";n.d(r,"b",(function(){return j}));var t=n("KQm4"),a=n("rePB"),o=n("wx14"),l=n("Ff2n"),i=n("eHHv"),c=n("DI+Y"),u=n("q1tI"),s=n.n(u),d=n("ikXu"),p=n("QetY"),f=n("D1pA"),b=n("RotF"),m=n.n(b),y=n("YFqc"),O=n.n(y),h=s.a.createElement;function v(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function P(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?v(Object(n),!0).forEach((function(r){Object(a.a)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var j=function(e){var r=e.query,n=e.queryName,o=e.itemsPerPage,u=void 0===o?5:o;return Object(i.a)(Object(c.graphql)(r,{options:function(e){var r=e.queryOptions,n=Object(l.a)(e,["queryOptions"]);return P({variables:P({offset:0,limit:u},n)},r)},props:function(e){var r=e.data,o=r.loading,i=r.fetchMore,c=r.stopPolling,u=Object(l.a)(r,["loading","fetchMore","stopPolling"]);return{loading:o,items:u[n],loadMoreEntries:function(){return c(),i({variables:{offset:u[n].length},updateQuery:function(e,r){var o=r.fetchMoreResult;return o?P(P({},e),{},Object(a.a)({},n,[].concat(Object(t.a)(e[n]),Object(t.a)(o[n])))):e}})}}}}))};r.a=function(e){var r=e.items,n=e.cols,t=void 0===n?4:n,a=e.rowRenderer,i=e.createPath,c=e.searchComponent,u=(e.data,e.children),s=e.loadMoreEntries,b=(e.loading,e.limit),y=Object(l.a)(e,["items","cols","rowRenderer","createPath","searchComponent","data","children","loadMoreEntries","loading","limit"]);return h(d.a,Object(o.a)({celled:!0},y),h(d.a.Header,null,h(d.a.Row,null,h(d.a.HeaderCell,{colSpan:t},c&&c,i&&h(O.a,{href:i},h(p.a,{floated:"right",icon:!0,labelPosition:"left",primary:!0,size:"small",href:i},h(f.a,{name:"plus"}),"Add")))),u),r&&h(m.a,{pageStart:0,element:"tbody",loadMore:s,hasMore:null===b||void 0===b||b},r.map(a)),h(d.a.Footer,{fullWidth:!0},h(d.a.Row,null,h(d.a.HeaderCell,{colSpan:t},i&&h(O.a,{href:i},h(p.a,{floated:"right",icon:!0,labelPosition:"left",primary:!0,size:"small",href:i},h(f.a,{name:"plus"})," Add"))))))}}},[["5pHj",0,2,3,1,4,5,8]]]);