(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[46455],{46455:function(e,n,t){"use strict";t.r(n);var i=t(47568),a=t(97582),o=t(85893),r=t(5152),l=t.n(r),s=t(95992),u=t(17539),d=t(9473),c=t(47041),v=t(26070),p=t(72958),b=t(67294),f=t(21227),h=t(11163),m=t(15343),g=t.n(m),_=l()((function(){return t.e(52735).then(t.bind(t,52735))}),{loadableGenerated:{webpack:function(){return[52735]}}}),k=l()((function(){return t.e(11310).then(t.bind(t,11310))}),{loadableGenerated:{webpack:function(){return[11310]}}}),x=l()((function(){return Promise.all([t.e(85518),t.e(99959)]).then(t.bind(t,69245))}),{loadableGenerated:{webpack:function(){return[69245]}},ssr:!1}),S=l()((function(){return Promise.all([t.e(39551),t.e(51627),t.e(83977),t.e(47643),t.e(5745),t.e(28134),t.e(96248),t.e(8146)]).then(t.bind(t,66945))}),{loadableGenerated:{webpack:function(){return[66945]}},ssr:!1}),y=l()((function(){return t.e(45842).then(t.bind(t,45842))}),{loadableGenerated:{webpack:function(){return[45842]}},ssr:!1}),w=l()((function(){return Promise.all([t.e(83977),t.e(20061),t.e(5745),t.e(36863)]).then(t.bind(t,36863))}),{loadableGenerated:{webpack:function(){return[36863]}},ssr:!1}),D=l()((function(){return t.e(95301).then(t.t.bind(t,95301,23))}),{loadableGenerated:{webpack:function(){return[95301]}},ssr:!1});n.default=function(e){var n,r,l=e.FooterData,m=e.bannerData,j=(e.articleData,e.catUrl,e.isNoBanner),T=void 0===j?"N":j,N=(0,h.useRouter)(),F=(0,d.I0)(),I=(0,d.v9)(s.tT),U=(0,u.checkUserSubscription)(null===I||void 0===I?void 0:I.subscriptionDetails),P=(0,d.v9)(s.Qb),B=function(){var e=(0,i.Z)((function(){return(0,a.__generator)(this,(function(e){switch(e.label){case 0:return"undefined"===typeof(0,c.getCookie)("_sid")?[3,2]:[4,(0,p.updateUserSession)({sessionId:(0,c.getCookie)("_sid")})];case 1:e.sent(),e.label=2;case 2:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),G=function(){var e=(0,i.Z)((function(e){var n,i,o,r,l,s,u,d,c,v,p,b,f=arguments;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:"",[4,Promise.all([t.e(47643),t.e(5745),t.e(28134),t.e(96248),t.e(95414)]).then(t.bind(t,96248))];case 1:return i=a.sent(),[4,Promise.resolve().then(t.bind(t,72958))];case 2:return o=a.sent(),"undefined"===typeof e||null===e?[3,4]:[4,o.activeUserSession(e)];case 3:(r=a.sent()).data.success&&(i.handleLogin(null===r||void 0===r||null===(l=r.data)||void 0===l||null===(s=l.data)||void 0===s?void 0:s.authToken,null===r||void 0===r||null===(u=r.data)||void 0===u||null===(d=u.data)||void 0===d?void 0:d.firstUser,null===r||void 0===r||null===(c=r.data)||void 0===c||null===(v=c.data)||void 0===v?void 0:v.refreshToken,null===r||void 0===r||null===(p=r.data)||void 0===p||null===(b=p.data)||void 0===b?void 0:b.subscriptionDetails,F,!0),(""===n||n.includes("https://"))&&(window.location.href="".concat(n))),a.label=4;case 4:return[2]}}))}));return function(n){return e.apply(this,arguments)}}(),A=(0,b.useState)(!0),E=A[0],q=A[1],C=(0,b.useState)(""),L=C[0],M=C[1];(0,b.useEffect)((function(){var e,n;if(setTimeout((function(){E&&q(!1),J()}),9e3),Z(),(null===N||void 0===N||null===(e=N.query)||void 0===e?void 0:e.BS_App_User)&&""!==(null===N||void 0===N||null===(n=N.query)||void 0===n?void 0:n.BS_App_User)){var t,i,a,o,r,l=atob("".concat(null===N||void 0===N||null===(t=N.query)||void 0===t?void 0:t.BS_App_User)),s=null===(a=null===(i=N.asPath)||void 0===i?void 0:i.split("?"))||void 0===a?void 0:a[0];(null===N||void 0===N||null===(o=N.query)||void 0===o?void 0:o.access)&&"e-paper"===(null===N||void 0===N||null===(r=N.query)||void 0===r?void 0:r.access)&&(s="https://epaper.business-standard.com"),G(l,s)}}),[]);var Z=function(){var e=localStorage.getItem("Gtmid"),n=window.location.href,t={content_type:"blank",url:window.location.href,article_heading:"blank",article_title:"blank",authour_name:"blank",article_id:"blank",article_category:"blank",article_publish_date:"blank",article_text:"blank",article_subcategory:"blank",video_name:"blank",video_category:"blank",publish_time:"blank",author_name:"blank"};"1"===e&&(n.includes("_1.html")||(0,f.PF)(t))},O=function(){var e=(0,i.Z)((function(e){return(0,a.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),"/subscriptions/ip-base",[4,v.r.get("/subscriptions/ip-base",e)];case 1:return[2,n.sent()];case 2:return n.sent(),[3,3];case 3:return[2]}}))}));return function(n){return e.apply(this,arguments)}}(),J=function(){var e=(0,i.Z)((function(){var e,n,t,i,o,r,l,u,d,c,v,b,f,h,m,g,_,k,x,S,y,w,D,j;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return(e=parseInt(localStorage.getItem("SubExpiryTime")))