"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80228],{80228:function(e,n,i){i.r(n),i.d(n,{default:function(){return E}});var t=i(47568),s=i(97582),a=i(85893),r=i(67294),l=i(9473),d=i(95992),o=i(17539),c=i(21227),u=i(5152),h=i.n(u),v=function(e){var n=e.needClass,i=e.isLoggedIn,t=(0,r.useState)("https://epaper.business-standard.com/"),s=t[0],l=t[1];return(0,r.useEffect)((function(){i&&l("https://epaper.business-standard.com/bs_new/index.php?rt=landing/landingpage/")})),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("a",{className:n?"epaper-link":"",target:"_blank",href:s,children:[" ","E-Paper"]})})},m=i(55612),p=i.n(m),f=i(11163),b=h()((function(){return Promise.all([i.e(87771),i.e(9669),i.e(67479),i.e(66013),i.e(97883)]).then(i.bind(i,17800))}),{loadableGenerated:{webpack:function(){return[17800]}},ssr:!1}),x=h()((function(){return i.e(58740).then(i.bind(i,58740))}),{loadableGenerated:{webpack:function(){return[58740]}},ssr:!1}),g=h()((function(){return Promise.all([i.e(85518),i.e(66465)]).then(i.bind(i,66465))}),{loadableGenerated:{webpack:function(){return[66465]}},ssr:!1}),w=h()((function(){return Promise.all([i.e(87771),i.e(9669),i.e(98887),i.e(67479),i.e(89097),i.e(77300)]).then(i.bind(i,4958))}),{loadableGenerated:{webpack:function(){return[4958]}},ssr:!1}),j=h()((function(){return Promise.all([i.e(87771),i.e(9669),i.e(67479),i.e(47643),i.e(5745),i.e(28134),i.e(96248),i.e(89097),i.e(39590)]).then(i.bind(i,50011))}),{loadableGenerated:{webpack:function(){return[50011]}},ssr:!1}),y=h()((function(){return Promise.all([i.e(89097),i.e(23772)]).then(i.bind(i,23772))}),{loadableGenerated:{webpack:function(){return[23772]}},ssr:!1}),k=h()((function(){return i.e(61428).then(i.bind(i,61428))}),{loadableGenerated:{webpack:function(){return[61428]}},ssr:!1}),_=h()((function(){return Promise.all([i.e(85518),i.e(99959)]).then(i.bind(i,69245))}),{loadableGenerated:{webpack:function(){return[69245]}},ssr:!1}),S=h()((function(){return Promise.all([i.e(87771),i.e(9669),i.e(67479),i.e(96066)]).then(i.bind(i,62736))}),{loadableGenerated:{webpack:function(){return[62736]}}}),N=h()((function(){return Promise.all([i.e(74885),i.e(87771),i.e(9669),i.e(67479),i.e(5745),i.e(73234)]).then(i.bind(i,60008))}),{loadableGenerated:{webpack:function(){return[60008]}},ssr:!1}),L=h()((function(){return Promise.all([i.e(87771),i.e(9669),i.e(67479),i.e(28134),i.e(8876)]).then(i.bind(i,52847))}),{loadableGenerated:{webpack:function(){return[52847]}},ssr:!1}),E=function(e){var n,u,h,m,E=e.categoryId,C=e.Data,G=e.menuListing,P=e.adData,T=(e.MarkertTicker,e.isNoBanner),I=void 0===T?"N":T,B=e.showTicker,M=void 0===B||B,O=e.showAds,F=void 0===O||O,A=(0,f.useRouter)().asPath,D=(0,r.useState)(null===G||void 0===G?void 0:G.header),q=D[0],U=D[1],z=(0,r.useState)(null===G||void 0===G?void 0:G.humburger),H=z[0],R=z[1];M=!(!(!(null===A||void 0===A?void 0:A.includes("/article/markets"))&&(null===A||void 0===A?void 0:A.includes("/markets"))||"/"===A||(null===A||void 0===A?void 0:A.includes("/companies/corporate")))||!M);var W=function(){var e=(0,t.Z)((function(){var e,n,t,a,r;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return"undefined"!==typeof G?[3,3]:[4,Promise.all([i.e(87771),i.e(9669),i.e(67479),i.e(5745),i.e(13903)]).then(i.bind(i,5745))];case 1:return[4,s.sent().MenuListSSR({})];case 2:r=s.sent(),console.log("menus",r),U(null===r||void 0===r||null===(e=r.data)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.top),R(null===r||void 0===r||null===(t=r.data)||void 0===t||null===(a=t.data)||void 0===a?void 0:a.humburger),s.label=3;case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){W();var e=function(){var e=document.getElementById("scrolltrget").offsetTop;window.scrollY>e?(document.body.classList.add("header-active"),he=!0):(document.body.classList.remove("header-active"),he=!1)};return window.addEventListener("scroll",e,{passive:!0}),function(){return window.removeEventListener("scroll",e)}}),[]);var Z=(0,r.useState)(!1),Q=Z[0],Y=Z[1];(0,r.useEffect)((function(){var e=setTimeout((function(){Y(!0)}),4e3);return function(){return clearTimeout(e)}}),[]);"undefined"!==typeof E&&0!=E||(E=1e9);var J=(0,r.useState)(!1),K=J[0],V=J[1],X=(0,r.useState)(!1),$=X[0],ee=X[1],ne=(0,l.v9)(d.tT),ie=(0,o.checkUserSubscription)(null===ne||void 0===ne?void 0:ne.subscriptionDetails),te=(0,l.v9)(d.Qb);ie&&"undefined"!=typeof window&&(document.querySelectorAll(".revamp.advertisement-bg").forEach((function(e){return e.remove()})),document.querySelectorAll(".Nws_banner").forEach((function(e){return e.remove()})));var se=function(){document.body.classList.add("searchhide"),V(!K),ee(!1)},ae=function(e){e.preventDefault();var n=document.querySelector(".hdrmore"),i=document.querySelector("html");n.addEventListener("click",(function(e){n.classList.toggle("show")})),i.addEventListener("click",(function(e){e.target!==n&&n.classList.remove("show")}))},re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"/home-page"===e?"https://www.business-standard.com":e.includes("https://")?e:"https://www.business-standard.com"+e},le=q&&"undefined"!=typeof q&&Object.keys(q).length>0?Object.keys(q).slice(0,9):[],de=q&&"undefined"!=typeof q&&Object.keys(q).length>9?Object.keys(q).slice(9):[],oe=(0,r.useState)(!1),ce=oe[0],ue=oe[1],he=!1;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("header",{className:he?"section-div full-section header-section header-active kkk":"".concat(p().sectiondiv," section-div full-section header-section"),children:[(0,a.jsxs)("div",{className:"".concat(p().dflex," ").concat(p().headerTopbar," ").concat(p().flex100," headerabt ").concat(ie?"navsubscribe":""),children:[(0,a.jsx)("div",{className:"".concat(p().justifycontentstart," d-flex "),children:(0,a.jsxs)("div",{className:"".concat(p().menuhamburger," menuhamburger"),onClick:function(){ue(!ce),document.body.classList.add("hmbr-show")},children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})}),ce&&(0,a.jsx)(w,{sidebar:"undefined"!=typeof q?H:[],setIsMenuOpen:ue,IsMenuOpen:ce}),(0,a.jsx)("div",{className:p().adslogo,style:{width:"175px"},children:F&&!ie&&"undefined"!=typeof(null===P||void 0===P||null===(n=P.global)||void 0===n?void 0:n.header_logo_left)&&(0,a.jsx)(_,{script:null===P||void 0===P||null===(u=P.global)||void 0===u?void 0:u.header_logo_left,loadAdOnScroll:!1,isNoBanner:I})}),(0,a.jsxs)("div",{className:"logo-div",children:[(0,a.jsx)("a",{href:"".concat("https://www.business-standard.com","/"),onClick:c.WZ,className:p().brndlogo,children:(0,a.jsx)("img",{alt:"Business Standard",title:"Business Standard",src:"https://bsmedia.business-standard.com/include/_mod/site/html5/images/business-standard-logo.png",height:48,width:390})}),(0,a.jsx)(k,{})]}),(0,a.jsxs)("div",{className:p().adslogo,style:{width:"175px"},children:[" ",F&&!ie&&"undefined"!=typeof(null===P||void 0===P||null===(h=P.global)||void 0===h?void 0:h.header_logo_right)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(_,{script:null===P||void 0===P||null===(m=P.global)||void 0===m?void 0:m.header_logo_right,loadAdOnScroll:!1,isNoBanner:I})})," "]}),(0,a.jsx)("div",{className:p().headericn,children:te?(0,a.jsx)(j,{handleShowSearch:se}):(0,a.jsx)(y,{handleShowSearch:se})})]}),(0,a.jsxs)("div",{className:"navigationlisting ".concat(p().navigationlisting," ").concat(ie?"navsubscribe":""),children:[(0,a.jsx)("a",{href:"#",className:"".concat(p().stickylogo," sticky-logo"),children:(0,a.jsx)("img",{loading:"lazy",width:67,height:56,src:"".concat("https://www.business-standard.com","/assets/web-assets/images/logo-bs.webp"),alt:"BS_logo",title:"BS_logo"})}),(0,a.jsxs)("ul",{className:"scrlhide",children:["/content/enterprise-security"===(null===C||void 0===C?void 0:C.categoryUrl)&&(0,a.jsxs)("li",{children:[" ",(0,a.jsx)("a",{href:"https://www.business-standard.com",children:"Go to Home"})]}),le&&(null===le||void 0===le?void 0:le.map)&&(null===le||void 0===le?void 0:le.map((function(e,n){var i,t,s,r,l,d,o,u,h;return"/content/enterprise-security"!==(null===C||void 0===C?void 0:C.categoryUrl)?(0,a.jsxs)("li",{children:[(null===(i=q[e])||void 0===i||null===(t=i.menu_url)||void 0===t?void 0:t.includes("https://epaper.business-standard.com"))?(0,a.jsx)(v,{needClass:!0,isLoggedIn:te}):(0,a.jsxs)("a",{href:re(null===(s=q[e])||void 0===s?void 0:s.menu_url),onClick:function(){var n,i;return(0,c.Ff)(null===(n=q[e])||void 0===n?void 0:n.menu_name,null===(i=q[e])||void 0===i?void 0:i.menu_url)},children:[" ",null===(r=q[e])||void 0===r?void 0:r.menu_name," "]}),!!(null===(l=q[e])||void 0===l||null===(d=l.childMenu)||void 0===d?void 0:d.length)&&(0,a.jsx)("div",{className:"".concat(p().submenu," navsubmenu"),children:(0,a.jsxs)("ul",{children:["https://epaper.business-standard.com/"===(null===(o=q[e])||void 0===o?void 0:o.menu_url)&&(0,a.jsx)("li",{children:(0,a.jsx)(v,{needClass:!1,isLoggedIn:te})}),null===(u=q[e])||void 0===u||null===(h=u.childMenu)||void 0===h?void 0:h.map((function(n,i){return(0,a.jsx)("li",{children:(0,a.jsx)("a",{href:re(null===n||void 0===n?void 0:n.menu_url),onClick:function(){var i;return(0,c.Wd)(null===(i=q[e])||void 0===i?void 0:i.menu_name,null===n||void 0===n?void 0:n.menu_name,null===n||void 0===n?void 0:n.menu_url)},children:null===n||void 0===n?void 0:n.menu_name},i)},i)}))]})})]},n):(0,a.jsx)(a.Fragment,{})}))),de&&(null===de||void 0===de?void 0:de.map)&&function(){if(de.length>0)return"/content/enterprise-security"!==(null===C||void 0===C?void 0:C.categoryUrl)?(0,a.jsxs)("li",{className:p().headmore,children:[(0,a.jsxs)("a",{onClick:ae,className:p().hdrmore,children:["More ",(0,a.jsx)("span",{})," ",(0,a.jsx)("span",{})," ",(0,a.jsx)("span",{})]}),(0,a.jsx)("div",{className:"".concat(p().dropdowndiv),children:(0,a.jsxs)("ul",{className:"mb-0 text-end ps-0",children:[de&&(null===de||void 0===de?void 0:de.map)&&(null===de||void 0===de?void 0:de.map((function(e,n){var i,t;return(0,a.jsx)("li",{children:(0,a.jsxs)("a",{href:re(null===(i=q[e])||void 0===i?void 0:i.menu_url),className:"font-inter",onClick:function(){var n,i;return(0,c.TO)(null===(n=q[e])||void 0===n?void 0:n.menu_name,null===(i=q[e])||void 0===i?void 0:i.menu_url)},children:[" ",null===(t=q[e])||void 0===t?void 0:t.menu_name," "]})},n)}))),(0,a.jsx)(x,{isLoggedIn:te,userData:ne})]})})]}):(0,a.jsx)(a.Fragment,{})}(),le&&0==le.length&&(0,a.jsx)("li",{children:(0,a.jsx)("a",{children:"\xa0"})})]}),(0,a.jsx)(g,{isSubscribed:ie})]}),K&&(0,a.jsx)(b,{data:[],showSearchBox:K,clearSearchText:$,onCloseSearch:function(){document.body.classList.remove("searchhide"),V(!K),ee(!0)}}),Q&&(0,a.jsx)(N,{dataToShow:""}),te&&(0,a.jsx)(L,{}),ie&&(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .flex-30:has(> .bs-rhs-wrapper) {\n display: flex;\n }\n .bs-rhs-wrapper{\n display: flex;\n }\n .bs-rhs-wrapper > div > div:last-child{\n position: sticky !important;\n top: 55px;\n }\n .Nws_banner{display:none}\n .revamp.flex-70 .revamp.advertisement-bg, .revamp.advertisement-bg{display:none}\n "}}),(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .navsubscribe ul li ul li:last-child {\n padding-right: 10px !important;\n }\n .header-active .sticky-logo {\n display:inline-block;\n } \n .header-active .scrlhide {\n transform: translate3d(75px,0,0);\n }\n .header-active .menuhamburger {\n transform: translate3d(0px,75px,0);\n z-index:10;\n }\n @media (min-width:768px) and (max-width:1024px) { \n .header-active .menuhamburger {\n transform: translate3d(-3px,49px,0);\n z-index:10;\n }\n \n }\n @media (max-width:767px) {\n .header-active .sticky-logo {\n display:none;\n } \n .header-active .scrlhide {\n transform: translate3d(0px,0,0);\n margin-left: 30px;\n }\n .header-active .menuhamburger {\n transform: translate3d(-2px,47px,0);\n }\n .header-active header.header-section {\n top: -53px;\n }\n }\n \n @media (min-width:768px) and (max-width:1024px) { \n \n .scrollbarListspotlight {\n overflow:hidden;\n }\n }\n\n\n @media (min-width:1024px) and (max-width:1280px) { \n .header-active .navigationlisting ul li {margin-right: 10px;}\n }\n \n "}})]}),M&&(0,a.jsx)(S,{}),(0,a.jsx)("div",{id:"scrolltrget",children:" "})]})}}}]);