(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{"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"),d=n.n(u),s=n("ikXu"),f=n("D1pA"),p=n("YFqc"),b=n.n(p),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 v=Object(m.b)({queryName:"paymentProviders",query:d()(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(s.a.Row,{key:e._id},y(s.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(s.a.Cell,null,e.type),y(s.a.Cell,null,e.interface&&e.interface.label,"\xa0",e.interface&&e.interface.version),y(s.a.Cell,null,e.configurationError&&y("span",null,y(f.a,{color:"red",name:"close"}),"Configuration Errors")))}}),y(s.a.Row,null,y(s.a.HeaderCell,null,"Configuration"),y(s.a.HeaderCell,null,"Type"),y(s.a.HeaderCell,null,"Interface"),y(s.a.HeaderCell,null,"Problems")))})),P=n("PZVx"),j=a.a.createElement;r.default=Object(P.a)((function(e){return j(l.a,e,j(o.a,null,j("h2",null,"Payments"),j(v,null)))}))},YRLc:function(e,r,n){"use strict";n.d(r,"b",(function(){return h}));var t=n("KQm4"),a=n("rePB"),o=n("wx14"),l=n("Ff2n"),i=n("eHHv"),c=n("0dmp"),u=n("q1tI"),d=n.n(u),s=n("ikXu"),f=n("QetY"),p=n("D1pA"),b=n("RotF"),m=n.n(b),y=n("YFqc"),O=n.n(y),v=d.a.createElement;function P(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 j(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?P(Object(n),!0).forEach((function(r){Object(a.a)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return 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.data,e.children),u=e.loadMoreEntries,d=(e.loading,e.limit),b=Object(l.a)(e,["items","cols","rowRenderer","createPath","data","children","loadMoreEntries","loading","limit"]);return v(s.a,Object(o.a)({celled:!0},b),v(s.a.Header,null,v(s.a.Row,null,v(s.a.HeaderCell,{colSpan:t},i&&v(O.a,{href:i},v(f.a,{floated:"right",icon:!0,labelPosition:"left",primary:!0,size:"small",href:i},v(p.a,{name:"plus"}),"Add")))),c),r&&v(m.a,{pageStart:0,element:"tbody",loadMore:u,hasMore:null===d||void 0===d||d},r.map(a)),v(s.a.Footer,{fullWidth:!0},v(s.a.Row,null,v(s.a.HeaderCell,{colSpan:t},i&&v(O.a,{href:i},v(f.a,{floated:"right",icon:!0,labelPosition:"left",primary:!0,size:"small",href:i},v(p.a,{name:"plus"})," Add"))))))};var h=function(e){var r=e.query,n=e.queryName,o=e.itemsPerPage,u=void 0===o?5:o;return Object(i.a)(Object(c.a)(r,{options:function(e){var r=e.queryOptions,n=Object(l.a)(e,["queryOptions"]);return j({variables:j({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?j(j({},e),{},Object(a.a)({},n,[].concat(Object(t.a)(e[n]),Object(t.a)(o[n])))):e}})}}}}))}}},[["5pHj",0,2,5,1,3,4,7]]]);