(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{"3RP3":function(e,r,n){"use strict";n.r(r);var t=n("q1tI"),a=n.n(t),l=n("yE/o"),o=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),v=n("YRLc"),y=a.a.createElement;function O(){var e=Object(i.a)(["\n    query deliveryProviders {\n      deliveryProviders {\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 m=Object(v.b)({queryName:"deliveryProviders",query:d()(O())})((function(e){var r=Object(c.a)({},e);return y(v.a,Object(c.a)({},r,{cols:4,limit:0,createPath:"/delivery-providers/new",rowRenderer:function(e){return y(s.a.Row,{key:e._id},y(s.a.Cell,null,y(b.a,{href:"/delivery-providers/edit?_id=".concat(e._id)},y("a",{href:"/delivery-providers/edit?_id=".concat(e._id)},e._id))),y(s.a.Cell,null,e.type),e.interface?y(s.a.Cell,null,e.interface.label," ",e.interface.version):y(s.a.Cell,null,"Invalid Interface"),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"),h=a.a.createElement;r.default=Object(P.a)((function(e){return h(o.a,e,h(l.a,null,h("h2",null,"Delivery"),h(m,null)))}))},YRLc:function(e,r,n){"use strict";n.d(r,"b",(function(){return j}));var t=n("KQm4"),a=n("rePB"),l=n("wx14"),o=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"),v=n.n(b),y=n("YFqc"),O=n.n(y),m=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 h(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(o.a)(e,["items","cols","rowRenderer","createPath","data","children","loadMoreEntries","loading","limit"]);return m(s.a,Object(l.a)({celled:!0},b),m(s.a.Header,null,m(s.a.Row,null,m(s.a.HeaderCell,{colSpan:t},i&&m(O.a,{href:i},m(f.a,{floated:"right",icon:!0,labelPosition:"left",primary:!0,size:"small",href:i},m(p.a,{name:"plus"}),"Add")))),c),r&&m(v.a,{pageStart:0,element:"tbody",loadMore:u,hasMore:null===d||void 0===d||d},r.map(a)),m(s.a.Footer,{fullWidth:!0},m(s.a.Row,null,m(s.a.HeaderCell,{colSpan:t},i&&m(O.a,{href:i},m(f.a,{floated:"right",icon:!0,labelPosition:"left",primary:!0,size:"small",href:i},m(p.a,{name:"plus"})," Add"))))))};var j=function(e){var r=e.query,n=e.queryName,l=e.itemsPerPage,u=void 0===l?5:l;return Object(i.a)(Object(c.a)(r,{options:function(e){var r=e.queryOptions,n=Object(o.a)(e,["queryOptions"]);return h({variables:h({offset:0,limit:u},n)},r)},props:function(e){var r=e.data,l=r.loading,i=r.fetchMore,c=r.stopPolling,u=Object(o.a)(r,["loading","fetchMore","stopPolling"]);return{loading:l,items:u[n],loadMoreEntries:function(){return c(),i({variables:{offset:u[n].length},updateQuery:function(e,r){var l=r.fetchMoreResult;return l?h(h({},e),{},Object(a.a)({},n,[].concat(Object(t.a)(e[n]),Object(t.a)(l[n])))):e}})}}}}))}},kZFp:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/delivery-providers",function(){return n("3RP3")}])}},[["kZFp",0,2,5,1,3,4,7]]]);