_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[66],{"JZe/":function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/warehousing-providers",function(){return n("rGy9")}])},YRLc:function(e,r,n){"use strict";n.d(r,"b",(function(){return m}));var t=n("KQm4"),a=n("rePB"),o=n("wx14"),l=n("Ff2n"),i=n("eHHv"),c=n("0dmp"),u=n("q1tI"),s=n.n(u),d=n("ikXu"),f=n("QetY"),p=n("D1pA"),b=n("RotF"),h=n.n(b),O=n("YFqc"),w=n.n(O),g=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 y(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}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,s=(e.loading,e.limit),b=Object(l.a)(e,["items","cols","rowRenderer","createPath","data","children","loadMoreEntries","loading","limit"]);return g(d.a,Object(o.a)({celled:!0},b),g(d.a.Header,null,g(d.a.Row,null,g(d.a.HeaderCell,{colSpan:t},i&&g(w.a,{href:i},g(f.a,{floated:"right",icon:!0,labelPosition:"left",primary:!0,size:"small",href:i},g(p.a,{name:"plus"}),"Add")))),c),r&&g(h.a,{pageStart:0,element:"tbody",loadMore:u,hasMore:null===s||void 0===s||s},r.map(a)),g(d.a.Footer,{fullWidth:!0},g(d.a.Row,null,g(d.a.HeaderCell,{colSpan:t},i&&g(w.a,{href:i},g(f.a,{floated:"right",icon:!0,labelPosition:"left",primary:!0,size:"small",href:i},g(p.a,{name:"plus"})," Add"))))))};var m=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 y({variables:y({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?y(y({},e),{},Object(a.a)({},n,[].concat(Object(t.a)(e[n]),Object(t.a)(o[n])))):e}})}}}}))}},rGy9: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"),f=n("D1pA"),p=n("YFqc"),b=n.n(p),h=n("YRLc"),O=a.a.createElement;function w(){var e=Object(i.a)(["\n    query warehousingProviders {\n      warehousingProviders {\n        _id\n        type\n        configurationError\n        interface {\n          _id\n          label\n          version\n        }\n      }\n    }\n  "]);return w=function(){return e},e}var g=Object(h.b)({queryName:"warehousingProviders",query:s()(w())})((function(e){var r=Object(c.a)({},e);return O(h.a,Object(c.a)({},r,{limit:0,cols:4,createPath:"/warehousing-providers/new",rowRenderer:function(e){return O(d.a.Row,{key:e._id},O(d.a.Cell,null,O(b.a,{href:"/warehousing-providers/edit?_id=".concat(e._id)},O("a",{href:"/warehousing-providers/edit?_id=".concat(e._id)},e._id))),O(d.a.Cell,null,e.type),e.interface?O(d.a.Cell,null,e.interface.label," ",e.interface.version):O(d.a.Cell,null,"Invalid Interface"),O(d.a.Cell,null,e.configurationError&&O("span",null,O(f.a,{color:"red",name:"close"}),"Configuration Errors")))}}),O(d.a.Row,null,O(d.a.HeaderCell,null,"Configuration"),O(d.a.HeaderCell,null,"Type"),O(d.a.HeaderCell,null,"Interface"),O(d.a.HeaderCell,null,"Problems")))})),v=n("PZVx"),y=a.a.createElement;r.default=Object(v.a)((function(e){return y(l.a,e,y(o.a,null,y("h2",null,"Warehousing providers"),y(g,null)))}))}},[["JZe/",0,2,5,1,3,4,7]]]);