(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3928],{67355:function(e,t,u){"use strict";var n=u(12691),o=u.n(n),l=u(82684),r=u(34376),a=u(8666),d=u(48670),i=u(38276),c=u(4190),s=u(75499),p=u(30160),b=u(35686),f=u(70515),h=u(95924),j=u(28598);t.Z=function(e){var t=e.globalDataProducts,u=e.onClickRow,n=(0,r.useRouter)(),v=b.ZP.global_data_products.list({},{},{pauseFetch:!!t}).data,_=(0,l.useMemo)((function(){return t||(null===v||void 0===v?void 0:v.global_data_products)||[]}),[v,t]);return v||t?v&&0===(null===_||void 0===_?void 0:_.length)?(0,j.jsx)(i.Z,{p:f.cd,children:(0,j.jsx)(p.ZP,{children:"There are currently no global data products registered."})}):(0,j.jsx)(s.Z,{columnFlex:[1,null,null],columns:[{uuid:"UUID"},{uuid:"Object type"},{uuid:"Object UUID"}],onClickRow:function(e){var t=null===_||void 0===_?void 0:_[e];t&&(u?null===u||void 0===u||u(t):n.push("/global-data-products/[...slug]","/global-data-products/".concat(null===t||void 0===t?void 0:t.uuid)))},rows:null===_||void 0===_?void 0:_.map((function(e){var t=e.object_type,u=e.object_uuid,l=e.uuid,r={as:null,href:null};return a.b.PIPELINE===t&&(r.as="/pipelines/".concat(u,"/edit"),r.href="/pipelines/[pipeline]/edit"),[(0,j.jsx)(p.ZP,{monospace:!0,children:l},"uuid"),(0,j.jsx)(p.ZP,{default:!0,monospace:!0,children:t},"objectType"),(0,j.jsx)(o(),{as:null===r||void 0===r?void 0:r.as,href:(null===r||void 0===r?void 0:r.href)||"",passHref:!0,children:(0,j.jsx)(d.Z,{default:!0,monospace:!0,onClick:function(e){(0,h.j)(e),n.push(r.href,r.as)},preventDefault:!0,children:u})},"objectUUID")]})),uuid:"global-data-products"}):(0,j.jsx)(i.Z,{p:f.cd,children:(0,j.jsx)(c.Z,{})})}},252:function(e,t,u){"use strict";u.r(t);var n=u(77837),o=u(38860),l=u.n(o),r=u(82684),a=u(71180),d=u(94629),i=u(19396),c=u(67355),s=u(93808),p=u(38276),b=u(72473),f=u(70515),h=u(69419),j=u(28598);function v(){var e=(0,r.useState)(!1),t=e[0],u=e[1],n=(0,r.useState)(null),o=n[0],l=n[1],s=(0,r.useState)(null),v=s[0],_=s[1],x=(0,h.iV)();return(0,r.useEffect)((function(){var e=x.new,t=x.object_type,n=x.object_uuid;t&&_(t),n&&l(n),u(!!e)}),[x]),(0,j.jsxs)(d.Z,{addProjectBreadcrumbToCustomBreadcrumbs:t,breadcrumbs:t?[{label:function(){return"Global data products"},linkProps:{href:"/global-data-products"}},{bold:!0,label:function(){return"New"}}]:null,title:"Global data products",uuid:"GlobalDataProducts/index",children:[(0,j.jsx)(p.Z,{p:f.cd,children:(0,j.jsx)(a.ZP,{beforeIcon:(0,j.jsx)(b.Add,{size:2.5*f.iI}),inline:!0,linkProps:{as:"/global-data-products?new=1",href:"/global-data-products"},noHoverUnderline:!0,primary:!0,sameColorAsText:!0,children:"New global data product"})}),t&&(0,j.jsx)(i.Z,{globalDataProduct:{object_type:v||null,object_uuid:o},isNew:t}),!t&&(0,j.jsx)(c.Z,{})]})}v.getInitialProps=(0,n.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,s.Z)(v)},42692:function(e,t,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-data-products",function(){return u(252)}])}},function(e){e.O(0,[1557,7966,9624,3763,9774,2888,179],(function(){return t=42692,e(e.s=t);var t}));var t=e.O();_N_E=t}]);