1/*! For license information please see component---src-pages-care-home-js-e2ce2284e0766694453a.js.LICENSE.txt */ 2(self.webpackChunkhinduja_hospital_website=self.webpackChunkhinduja_hospital_website||[]).push([[2592],{40987:function(e,t,n){"use strict";var r=n(67294),o=n(35414);function i(e){var t=e.schema,n=e.lang;return r.createElement(o.q,{defer:!1,htmlAttributes:{lang:n}},t&&t.length&&t.map((function(e,t){if(null!=e&&e.field_seo_schema_text_area)return r.createElement("script",{type:"application/ld+json"},null==e?void 0:e.field_seo_schema_text_area)})))}i.defaultProps={lang:"en",Schema:[]},t.Z=i},64211:function(e,t,n){"use strict";n.r(t);var r=n(67294),o=n(1597),i=n(2208),l=n(76853),a=n(40987),c=n(27774);t.default=function(e){var t,n,s,u,d,v,h,f,m,p,g,y,_,E,b,w,x,N,L,k,j,O,A,T,S,P,C,F,G,Z,H,I,R,M,q,z,U,Y,B,D,J,K,Q,V,W,X,$,ee,te=e.data.allNodeTemplatePages.edges;(0,c.Z)("/assets/js/care-home.js");var ne=(0,r.useState)(1),re=ne[0],oe=ne[1],ie=te[0],le=Array.isArray(null==ie||null===(t=ie.node)||void 0===t?void 0:t.metatag_normalized)&&(null==ie||null===(n=ie.node)||void 0===n?void 0:n.metatag_normalized.length)>0?null==ie||null===(s=ie.node)||void 0===s?void 0:s.metatag_normalized:[],ae=null!=ie&&null!==(u=ie.node)&&void 0!==u&&null!==(d=u.relationships)&&void 0!==d&&d.field_seo_schema?null==ie||null===(v=ie.node)||void 0===v||null===(h=v.relationships)||void 0===h?void 0:h.field_seo_schema:[],ce=(null==ie||null===(f=ie.node)||void 0===f?void 0:f.metatags_on_page)||{};void 0!==(null==ie||null===(m=ie.node)||void 0===m?void 0:m.title)&&(null==ie||null===(p=ie.node)||void 0===p?void 0:p.title.length)>0&&(null==ie||null===(g=ie.node)||void 0===g||g.title);console.log("canonicalUrl",null==ie?void 0:ie.node);var se=Array.isArray(null==ie||null===(y=ie.node)||void 0===y||null===(_=y.relationships)||void 0===_?void 0:_.components)&&(null==ie||null===(E=ie.node)||void 0===E||null===(b=E.relationships)||void 0===b?void 0:b.components.length)>0?null==ie||null===(w=ie.node)||void 0===w||null===(x=w.relationships)||void 0===x?void 0:x.components:[],ue=se.find((function(e){return"care_home_banner_section"===e.name})),de=void 0!==(null==ue||null===(N=ue.relationships)||void 0===N?void 0:N.components)&&Array.isArray(null==ue||null===(L=ue.relationships)||void 0===L?void 0:L.components)&&(null==ue||null===(k=ue.relationships)||void 0===k?void 0:k.components.length)>0?null==ue||null===(j=ue.relationships)||void 0===j?void 0:j.components[0]:[],ve=void 0!==(null==de||null===(O=de.image)||void 0===O?void 0:O.alt)&&(null==de||null===(A=de.image)||void 0===A?void 0:A.alt.length)>0?null==de||null===(T=de.image)||void 0===T?void 0:T.alt:"Hinduja Hospital",he=null==de||null===(S=de.relationships)||void 0===S||null===(P=S.image)||void 0===P||null===(C=P.uri)||void 0===C?void 0:C.url,fe=(null==de||null===(F=de.relationships)||void 0===F||null===(G=F.mobileBannerImage)||void 0===G||null===(Z=G.uri)||void 0===Z?void 0:Z.url)||he,me=(null==de?void 0:de.title)||"",pe=(null==de?void 0:de.subtitle)||"",ge=se.find((function(e){return"Tabular Format"===e.name})),ye=void 0!==(null==ge||null===(H=ge.relationships)||void 0===H?void 0:H.components)&&Array.isArray(null==ge||null===(I=ge.relationships)||void 0===I?void 0:I.components)?null==ge||null===(R=ge.relationships)||void 0===R?void 0:R.components:[],_e=se.find((function(e){return"two_column"===e.name})),Ee=void 0!==(null==_e||null===(M=_e.relationships)||void 0===M?void 0:M.components)&&Array.isArray(null==_e||null===(q=_e.relationships)||void 0===q?void 0:q.components)&&(null==_e||null===(z=_e.relationships)||void 0===z?void 0:z.components.length)>0?null==_e||null===(U=_e.relationships)||void 0===U?void 0:U.components[0]:[],be=Object.keys(null==Ee?void 0:Ee.relationships).length>0&&(null==Ee||null===(Y=Ee.relationships)||void 0===Y?void 0:Y.field_column_1),we=Object.keys(null==Ee?void 0:Ee.relationships).length>0&&(null==Ee||null===(B=Ee.relationships)||void 0===B?void 0:B.field_column_2),xe=null==be||null===(D=be.field_link)||void 0===D||null===(J=D.uri)||void 0===J?void 0:J.replace("internal:","");return r.createElement(r.Fragment,null,r.createElement(i.Z,null,r.createElement(l.Z,{files:{js:[],css:["/assets/css/listing.css","/assets/css/about-through-the-ages.css","/assets/css/services.css","/assets/css/accessibility.css"]},tags:{metaTags:le,canonicalUrl:ce}}),r.createElement(a.Z,{schema:ae}),r.createElement("main",{className:"innerpage pt-first-section"},r.createElement("section",{class:"inner_common_banner"},r.createElement("picture",{className:"banner_img"},r.createElement("img",{src:fe,alt:ve,className:"d-md-none"}),r.createElement("img",{src:he,alt:ve,className:"d-md-block d-none"})),r.createElement("div",{className:"banner_content text_left text_dark"},r.createElement("div",{className:"container"},r.createElement("h1",null,me.length>0?me:"Care@Home"),r.createElement("p",{className:"subhead",dangerouslySetInnerHTML:{__html:pe.length>0?pe:""}})))),r.createElement("section",{className:"section_bg pt-first-section about-ages section-py"},r.createElement("div",{className:"container aboutContainer"},r.createElement("ul",{className:"nav nav-tabs gallery-tabs min-space",role:"tablist"},void 0!==ye&&ye.map((function(e,t){return r.createElement("li",{role:"presentation",className:"nav-item",key:t},r.createElement("a",{onClick:function(){return oe(t+1)},className:"nav-link "+(re===t+1?"active":""),href:"#"+(null==e?void 0:e.field_title),"data-toggle":"tab",role:"tab","aria-controls":""+(null==e?void 0:e.field_title),"aria-selected":"true"},null==e?void 0:e.field_title))})))),r.createElement("div",{className:"container"},r.createElement("div",{className:"tab-content mt-3"},void 0!==ye&&ye.map((function(e,t){var n,o,i,l=void 0!==(null==e||null===(n=e.text)||void 0===n?void 0:n.processed)&&(null==e||null===(o=e.text)||void 0===o?void 0:o.processed.length)>0?null==e||null===(i=e.text)||void 0===i?void 0:i.processed:"";return r.createElement("div",{key:t,className:"tab-pane "+(re===t+1?"active":""),id:null==e?void 0:e.field_title,role:"tabpanel"},r.createElement("div",{className:"card"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-12"},r.createElement("div",{dangerouslySetInnerHTML:{__html:l}})))))}))))),r.createElement("section",{className:"services_section common_services pb-section"},r.createElement("div",{className:"container"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col-md-6 "},r.createElement("div",{className:"service_card"},r.createElement("figure",null,r.createElement("img",{src:null==be||null===(K=be.relationships)||void 0===K||null===(Q=K.field_icon)||void 0===Q||null===(V=Q.uri)||void 0===V?void 0:V.url,alt:"send a request",style:{margin:"0 auto",display:"block"}})),r.createElement("h3",null,void 0!==(null==be?void 0:be.field_title)&&(null==be?void 0:be.field_title.length)>0?null==be?void 0:be.field_title:"Send A Request"),r.createElement("div",{className:"btn_wrap"},r.createElement(o.Link,{to:null!=be&&null!==(W=be.field_link)&&void 0!==W&&W.uri?xe:"/",className:"btn btn-primary"},void 0!==(null==be?void 0:be.field_contact)?null==be?void 0:be.field_contact:"Click Here")))
2),r.createElement("div",{className:"col-md-6"},r.createElement("div",{className:"service_card"},r.createElement("figure",null,r.createElement("img",{src:null==we||null===(X=we.relationships)||void 0===X||null===($=X.field_icon)||void 0===$||null===(ee=$.uri)||void 0===ee?void 0:ee.url,alt:"Call For Registration<"})),r.createElement("h3",null,null!=we&&we.field_title?null==we?void 0:we.field_title:"Call For Registration"),r.createElement("p",{dangerouslySetInnerHTML:{__html:void 0!==(null==we?void 0:we.field_contact)&&(null==we?void 0:we.field_contact)}})))))))))}},27774:function(e,t,n){"use strict";var r=n(15861),o=n(64687),i=n.n(o),l=n(67294),a=function(){var e=(0,r.Z)(i().mark((function e(t){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,l.useEffect)((function(){var e=document.createElement("script");return e.async=!1,e.src=t,document.body.appendChild(e),function(){document.body.removeChild(e)}}),[t]);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.Z=a},17061:function(e,t,n){var r=n(18698).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,l=i.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function v(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{v({},"")}catch(t){v=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o=t&&t.prototype instanceof _?t:_,i=Object.create(o.prototype),l=new P(r||[]);return a(i,"_invoke",{value:O(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=h;var m="suspendedStart",p="executing",g="completed",y={};function _(){}function E(){}function b(){}var w={};v(w,s,(function(){return this}));var x=Object.getPrototypeOf,N=x&&x(x(C([])));N&&N!==i&&l.call(N,s)&&(w=N);var L=b.prototype=_.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){v(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(o,i,a,c){var s=f(e[o],e,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==r(d)&&l.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,c)}))}c(s.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function O(e,n,r){var o=m;return function(i,l){if(o===p)throw Error("Generator is already running");if(o===g){if("throw"===i)throw l;return{value:t,done:!0}}for(r.method=i,r.arg=l;;){var a=r.delegate;if(a){var c=A(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?g:"suspendedYield",s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=g,r.method="throw",r.arg=s.arg)}}}function A(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,A(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var l=i.arg;return l?l.done?(n[e.resultName]=l.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):l:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[s];if(n)return n.call(e);
vendor: 4,138 bytes, lines 2-3
2if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(l.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return E.prototype=b,a(L,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:E,configurable:!0}),E.displayName=v(b,d,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,v(e,d,"GeneratorFunction")),e.prototype=Object.create(L),e},n.awrap=function(e){return{__await:e}},k(j.prototype),v(j.prototype,u,(function(){return this})),n.AsyncIterator=j,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var l=new j(h(e,t,r,o),i);return n.isGeneratorFunction(t)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},k(L),v(L,d,"Generator"),v(L,s,(function(){return this})),v(L,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&l.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},64687:function(e,t,n){var r=n(17061)();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},15861:function(e,t,n){"use strict";function r(e,t,n,r,o,i,l){try{var a=e[i](l),c=a.value}catch(s){return void n(s)}a.done?t(c):Promise.resolve(c).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var l=e.apply(t,n);function a(e){r(l,o,i,a,c,"next",e)}function c(e){r(l,o,i,a,c,"throw",e)}a(void 0)}))}}n.d(t,{Z:function(){return o}})}}]); 3//# sourceMappingURL=component---src-pages-care-home-js-e2ce2284e0766694453a.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.