_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[68],{"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 y}));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"),f=n("QetY"),p=n("D1pA"),b=n("RotF"),h=n.n(b),O=n("YFqc"),g=n.n(O),w=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 m(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 y=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 m({variables:m({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?m(m({},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),O=Object(l.a)(e,["items","cols","rowRenderer","createPath","searchComponent","data","children","loadMoreEntries","loading","limit"]);return w(d.a,Object(o.a)({celled:!0},O),w(d.a.Header,null,w(d.a.Row,null,w(d.a.HeaderCell,{colSpan:t},c&&c,i&&w(g.a,{href:i},w(f.a,{floated:"right",icon:!0,labelPosition:"left",primary:!0,size:"small",href:i},w(p.a,{name:"plus"}),"Add")))),u),r&&w(h.a,{pageStart:0,element:"tbody",loadMore:s,hasMore:null===b||void 0===b||b},r.map(a)),w(d.a.Footer,{fullWidth:!0},w(d.a.Row,null,w(d.a.HeaderCell,{colSpan:t},i&&w(g.a,{href:i},w(f.a,{floated:"right",icon:!0,labelPosition:"left",primary:!0,size:"small",href:i},w(p.a,{name:"plus"})," Add"))))))}},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 g(){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 g=function(){return e},e}var w=Object(h.b)({queryName:"warehousingProviders",query:s()(g())})((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"),m=a.a.createElement;r.default=Object(v.a)((function(e){return m(l.a,e,m(o.a,null,m("h2",null,"Warehousing providers"),m(w,null)))}))}},[["JZe/",0,2,3,1,4,5,8]]]);