(window.webpackJsonp=window.webpackJsonp||[]).push([[135],{"3XJj":function(e,t,n){"use strict";n.r(t),n.d(t,"__N_SSP",(function(){return s})),n.d(t,"default",(function(){return b}));var a=n("q1tI"),d=n.n(a),l=n("LvDl"),o=n("fhwx"),r=n.n(o),c=n("gF98"),i=n("2v50"),u=(n("qYSY"),d.a.createElement),s=!0;function b(e){var t=e.pageData,n=(void 0===t?{}:t).componentData,o=void 0===n?{}:n,s=o.metatags,b=o.hospitals,m=o.header_body,f=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.querySelector(".table-body"),a=document.querySelector(".tableSticky"),d=document.querySelector(".table-header"),l=document.querySelector(".table-desc");e&&a&&(n.style.height="".concat(window.innerHeight-220,"px")),n.style.height="".concat(e>1&&!a||0===e&&!t?window.innerHeight-l.offsetHeight-102-d.offsetHeight+e:1===e&&!a&&t?window.innerHeight-370:window.innerHeight-180,"px")},p=function(){var e=document.querySelector(".table-body");document.querySelector(".table-header").style.left="".concat(-1*e.scrollLeft,"px")},y=function(){var e=document.querySelector(".inner-container"),t=document.querySelector(".table-desc");document.documentElement.scrollTop>=t.offsetHeight-2?e.classList.add("tableSticky"):e.classList.remove("tableSticky"),Object(i.o)()||f(document.documentElement.scrollTop)};Object(a.useEffect)((function(){if(document.querySelector(".breadcrumb-container").style.display="none",document.querySelector(".footer-wrapper").style.display="none",!Object(l.isEmpty)(b.data)){var e=document.querySelector(".table-body");Object(i.o)()?(window.addEventListener("touchmove",y),e.addEventListener("scroll",p)):(f(1,!0),window.addEventListener("resize",f),window.addEventListener("scroll",y),e.addEventListener("scroll",p))}}),[]);var h=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return u(d.a.Fragment,null,e.map((function(e,a){return n&&n++,u("tr",{key:e.addres},u("td",null,n||a+1),u("td",null,e.state),u("td",null,e.address,!0===t?u("span",{className:"subcategory"},e.fund_status):null),u("td",null,e.land_details),u("td",null,e.hospital_setup),u("td",null,e.hospital_size),u("td",null,e.booked))})))};return u(d.a.Fragment,null,u(c.a,s),u("div",{className:"medicab-hospitals"},u("div",{className:"outer-container"},Object(l.isEmpty)(m)?null:u("div",{className:"table-desc"},r()(m)),u("div",{className:"inner-container"},u("div",{className:"table-wrapper"},u("div",{className:"table-header"},Object(l.isEmpty)(b.headers)?null:u("table",{id:"table-header"},u("thead",null,u("tr",{className:"headers"},b.headers.map((function(e){return u("th",null,e)})))))),Object(l.isEmpty)(b.data)?null:u("div",{className:"table-body"},u("table",null,u("tbody",null,!Object(l.isEmpty)(b.data.funded)&&h(b.data.funded,!0),Object(l.isEmpty)(b.data.nonfunded)||Object(l.isEmpty)(b.data.funded)?h(b.data.nonfunded,!1,0):h(b.data.nonfunded,!1,b.data.funded.length)))))))))}},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"iQn/":function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/medicab-project/hospital",function(){return n("3XJj")}])}},[["iQn/",0,1,9,2,3,5,7,6,8]]]);