"use strict";(self.webpackChunkhopsworks_front=self.webpackChunkhopsworks_front||[]).push([[4165],{34165:function(n,e,t){t.r(e),t.d(e,{default:function(){return g}});var r=t(1413),o=t(16871),i=t(76237),c=t(25471),s=t(34593),u=t(1632),a=t(29439),h=t(72791),d=t(80184),l=function(n){var e=n.rootMargin,t=function(n,e){var t=(0,h.useRef)();return(0,h.useEffect)((function(){var r=new IntersectionObserver((function(n){var t=(0,a.Z)(n,1)[0];t.isIntersecting&&e(t.isIntersecting)}),{rootMargin:n});return null!==t&&void 0!==t&&t.current&&r.observe(t.current),function(){null!==t&&void 0!==t&&t.current&&r.disconnect()}}),[e,n]),t}(void 0===e?"0px":e,n.onLoadMore);return(0,d.jsx)(u.Flex,{ref:t,sx:{visibility:"hidden"},children:"INVISIBLE"})},f=t(81497),x=t(46210),p=function(n){var e=n.data,t=n.isFetching,r=n.isLoading,o=n.hasMore,u=n.isFetchingMore,a=n.loadMore,h=n.component,p=(0,x.m)().searchText;return(0,d.jsx)(i.kC,{width:"100%",height:"fit-content",bg:"grayShade3",minHeight:"calc(100vh - 254px)",children:r?(0,d.jsx)(i.kC,{my:"20px",width:"100%",height:"max-content",minHeight:"100%",children:(0,d.jsx)(f.Z,{})}):(0,d.jsxs)(i.kC,{flexDirection:"column",overflow:"auto",my:"20px",width:"100%",alignItems:"center",children:[t&&(0,d.jsx)(s.t,{size:"lg",mb:"20px"}),!p&&e.length>0&&(0,d.jsx)(i.Av,{pb:"8px",children:"Result from previous search"}),(0,d.jsx)(h,{data:e}),o&&!u&&(0,d.jsx)(l,{onLoadMore:a}),u&&(0,d.jsx)(c.Z,{fontSize:"40px",color:"black"})]})})},v=t(34397),g=function(n){var e=n.docType,t=n.component,i=(0,o.UO)().id,c=(0,v.j)(e,i);return(0,d.jsx)(p,(0,r.Z)({component:t},c))}}}]);
//# sourceMappingURL=4165.3363f00f.chunk.js.map