"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[21227],{21227:function(i,l,o){o.d(l,{$2:function(){return s},Ah:function(){return F},Dl:function(){return J},E0:function(){return A},F6:function(){return S},Ff:function(){return a},HF:function(){return T},I6:function(){return C},IW:function(){return b},J7:function(){return P},LO:function(){return p},M2:function(){return c},Nm:function(){return B},OT:function(){return D},O_:function(){return u},PF:function(){return y},Qk:function(){return r},TO:function(){return v},WZ:function(){return t},Wd:function(){return n},Zd:function(){return x},cu:function(){return N},ei:function(){return I},gj:function(){return M},hI:function(){return O},ih:function(){return j},jF:function(){return _},kT:function(){return k},lA:function(){return g},lt:function(){return m},nb:function(){return R},pl:function(){return L},qy:function(){return Y},rO:function(){return E},tW:function(){return h},uw:function(){return U},x6:function(){return w},yQ:function(){return f}});var e=function(i){var l=new Date(1e3*i);return null===l||void 0===l?void 0:l.toLocaleTimeString()},d=function(i){var l=new Date(1e3*i),o=l.getDate(),e=l.toLocaleString("en-US",{month:"long"}),d=l.getFullYear();return"".concat(e," ").concat(o).concat(function(i){if(i>3&&i<21)return"th";switch(i%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(o)," ").concat(d)},t=function(){var i,l=JSON.parse(localStorage.getItem("persist:bs")),o=JSON.parse(l.auth),e=null===o||void 0===o?void 0:o.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"logo_click",page_url:window.location.href,User_id:!0===o.isLoggedIn&&e.user_id,logged_in_status:!0===o.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===e||void 0===e||null===(i=e.subscriptionDetails)||void 0===i?void 0:i.subscriptionStatus)?"is_subscribed":"non_subscribed"})},a=function(i,l){var o,e=JSON.parse(localStorage.getItem("persist:bs")),d=JSON.parse(e.auth),t=null===d||void 0===d?void 0:d.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"top_navigation_click",menu_category:i,sub_category:!1,User_id:!0===d.isLoggedIn?t.user_id:"false",logged_in_status:!0===d.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===t||void 0===t||null===(o=t.subscriptionDetails)||void 0===o?void 0:o.subscriptionStatus)?"is_subscribed":"non_subscribed"})},n=function(i,l,o){var e,d=JSON.parse(localStorage.getItem("persist:bs")),t=JSON.parse(d.auth),a=null===t||void 0===t?void 0:t.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"top_navigation_click",menu_category:i,sub_category:l,User_id:!0===t.isLoggedIn&&a.user_id,logged_in_status:!0===t.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===a||void 0===a||null===(e=a.subscriptionDetails)||void 0===e?void 0:e.subscriptionStatus)?"is_subscribed":"non_subscribed"})},u=function(i,l){var o,e=JSON.parse(localStorage.getItem("persist:bs")),d=JSON.parse(e.auth),t=null===d||void 0===d?void 0:d.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"hamburger",menu_category:i,sub_category:"blank",User_id:!0===d.isLoggedIn&&t.user_id,logged_in_status:!0===d.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===t||void 0===t||null===(o=t.subscriptionDetails)||void 0===o?void 0:o.subscriptionStatus)?"is_subscribed":"non_subscribed"})},r=function(i,l,o){var e,d=JSON.parse(localStorage.getItem("persist:bs")),t=JSON.parse(d.auth),a=null===t||void 0===t?void 0:t.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"hamburger",menu_category:i,sub_category:l,page_url:o,User_id:!0===t.isLoggedIn&&a.user_id,logged_in_status:!0===t.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===a||void 0===a||null===(e=a.subscriptionDetails)||void 0===e?void 0:e.subscriptionStatus)?"is_subscribed":"non_subscribed"})},v=function(i,l){var o,e=JSON.parse(localStorage.getItem("persist:bs")),d=JSON.parse(e.auth),t=null===d||void 0===d?void 0:d.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"top_navigation_click",menu_category:i,sub_category:!1,User_id:!0===d.isLoggedIn&&t.user_id,logged_in_status:!0===d.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===t||void 0===t||null===(o=t.subscriptionDetails)||void 0===o?void 0:o.subscriptionStatus)?"is_subscribed":"non_subscribed"})},s=function(i){var l,o,t,a,n=localStorage.getItem("cutomer_type"),u=localStorage.getItem("firstUser"),r="";if((null===i||void 0===i?void 0:i.allTopicAboutPage)&&(null===Array||void 0===Array?void 0:Array.isArray(null===i||void 0===i?void 0:i.allTopicAboutPage)))for(var v,s=0;s<(null===i||void 0===i||null===(v=i.allTopicAboutPage)||void 0===v?void 0:v.length);s++){var c,_,p;if(s<(null===i||void 0===i||null===(c=i.allTopicAboutPage)||void 0===c?void 0:c.length)-1)r=r+(null===(_=null===i||void 0===i?void 0:i.allTopicAboutPage[s])||void 0===_?void 0:_.field_name)+", ";else r+=null===(p=null===i||void 0===i?void 0:i.allTopicAboutPage[s])||void 0===p?void 0:p.field_name}var g,b=null===i||void 0===i||null===(l=i.defaultArticleCat)||void 0===l||null===(o=l.category_url)||void 0===o?void 0:o.split("/"),h=null===b||void 0===b?void 0:b[1],m=null===b||void 0===b?void 0:b[2],y="";(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors)&&(null===(t=Object.values(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors))||void 0===t?void 0:t.length)>0?y=Object.values(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors).join():(null===i||void 0===i?void 0:i.authorName)&&""!=(null===i||void 0===i?void 0:i.authorName)&&(y=null===i||void 0===i?void 0:i.authorName);var f=JSON.parse(localStorage.getItem("persist:bs")),S=JSON.parse(f.auth),I=null===S||void 0===S?void 0:S.userData,N="";N=!0===S.isLoggedIn?n&&null!=n&&"exipred"==n?"Expired user":!n||null==n||"revival"!=n&&"new subscription"!=n?"true"==u?"Registered/New user":"Registered/existing":n:"Guest User",dataLayer.push({event:"article_click",page_url:"https://www.business-standard.com"+(null===i||void 0===i?void 0:i.articleUrl),click_type:"article",content_type:"Y"===(null===i||void 0===i?void 0:i.isPaid)||"Y"===(null===i||void 0===i?void 0:i.is_paid)?"paid":"free",article_title:(null===i||void 0===i?void 0:i.description)&&""!=(null===i||void 0===i?void 0:i.description)?null===i||void 0===i?void 0:i.description:"blank",article_heading:null===i||void 0===i?void 0:i.heading1,author_name:y,article_id:null===i||void 0===i?void 0:i.articleId,article_publish_date:d(null===i||void 0===i?void 0:i.publishDate),article_category:h||"blank",article_subcategory:m||"blank",video_name:(Array.isArray(g),"blank"),video_category:"blank",publish_time:e(null===i||void 0===i?void 0:i.publishDate),word_count:null===i||void 0===i?void 0:i.article_content_count,logged_in_status:!0===S.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===I||void 0===I||null===(a=I.subscriptionDetails)||void 0===a?void 0:a.subscriptionStatus)?"is_subscribed":"non_subscribed",User_id:!0===S.isLoggedIn?I.user_id:"false",article_tag:r,customer_type:N}),localStorage.setItem("articleAuthore",y),localStorage.setItem("storyId",null===i||void 0===i?void 0:i.articleId)},c=function(i,l){var o,t=(null===l||void 0===l?void 0:l.article_url).split("/"),a=JSON.parse(localStorage.getItem("persist:bs")),n=JSON.parse(a.auth),u=null===n||void 0===n?void 0:n.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"podcast_action",podcast_name:i,sub_podcast_option:"sub_podcast_option",page_url:null===l||void 0===l?void 0:l.article_url,click_type:"article",content_type:"NA",article_heading:null===l||void 0===l?void 0:l.heading1,author_name:null===l||void 0===l?void 0:l.author,article_id:null===l||void 0===l?void 0:l.article_id,article_publish_date:d(null===l||void 0===l?void 0:l.published_date),article_category:"article"===t[1]?t[2]:t[1],article_subcategory:"article"===t[1]||t[2].includes(".html")?"blank":t[2],publish_time:e(null===l||void 0===l?void 0:l.published_date),word_count:null===l||void 0===l?void 0:l.article_content_count,User_id:!0===n.isLoggedIn&&u.user_id,logged_in_status:!0===n.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===u||void 0===u||null===(o=u.subscriptionDetails)||void 0===o?void 0:o.subscriptionStatus)?"is_subscribed":"non_subscribed"})},_=function(i,l){var o,t=(null===l||void 0===l?void 0:l.article_url).split("/"),a=JSON.parse(localStorage.getItem("persist:bs")),n=JSON.parse(a.auth),u=null===n||void 0===n?void 0:n.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"podcast_action",podcast_name:i,sub_podcast_option:"sub_podcast_option",page_url:null===l||void 0===l?void 0:l.article_url,click_type:"Image",content_type:"NA",article_heading:null===l||void 0===l?void 0:l.heading1,author_name:null===l||void 0===l?void 0:l.author,article_id:null===l||void 0===l?void 0:l.article_id,article_publish_date:d(null===l||void 0===l?void 0:l.published_date),article_category:"article"===t[1]?t[2]:t[1],article_subcategory:"article"===t[1]||t[2].includes(".html")?"blank":t[2],publish_time:e(null===l||void 0===l?void 0:l.published_date),word_count:null===l||void 0===l?void 0:l.article_content_count,User_id:!0===n.isLoggedIn&&u.user_id,logged_in_status:!0===n.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===u||void 0===u||null===(o=u.subscriptionDetails)||void 0===o?void 0:o.subscriptionStatus)?"is_subscribed":"non_subscribed"})},p=function(i,l){var o,t,a;localStorage.setItem("login_method",i),localStorage.setItem("login_process","social login");var n=localStorage.getItem("article_data_store"),u="undefined"!=n?JSON.parse(n):"",r="";(null===u||void 0===u?void 0:u.authorName)&&""!=(null===u||void 0===u?void 0:u.authorName)?r=null===u||void 0===u?void 0:u.authorName:(null===u||void 0===u?void 0:u.articleMappedMultipleAuthors)&&(r=Object.values(null===u||void 0===u?void 0:u.articleMappedMultipleAuthors).join());var v,s,c,_=u&&(null===u||void 0===u?void 0:u.articleUrl)?null===u||void 0===u||null===(o=u.articleUrl)||void 0===o?void 0:o.split("/"):null===u||void 0===u||null===(t=u.defaultArticleCat)||void 0===t||null===(a=t.category_url)||void 0===a?void 0:a.split("/"),p=null===_||void 0===_?void 0:_[1],g=null===_||void 0===_?void 0:_[2];(null===u||void 0===u?void 0:u.articleUrl)?v=null===u||void 0===u||null===(s=u.article_url)||void 0===s?void 0:s.split("/"):v=null===u||void 0===u||null===(c=u.article_url)||void 0===c?void 0:c.split("/");var b,h,m,y=JSON.parse(localStorage.getItem("persist:bs")),f=JSON.parse(y.auth),S=null===f||void 0===f?void 0:f.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"log_in_platform",social_media_platform:i,page_url:window.location.href,click_type:"blank",content_type:u?"Y"==(null===u||void 0===u?void 0:u.isPaid)?"paid":"free":"NA",article_title:!!u&&(null===u||void 0===u?void 0:u.description),article_heading:!!u&&(null===u||void 0===u?void 0:u.heading1),author_name:!!u&&r,article_id:u&&(null===u||void 0===u?void 0:u.articleId)?null===u||void 0===u?void 0:u.articleId:!(!u||!(null===u||void 0===u?void 0:u.article_id))&&(null===u||void 0===u?void 0:u.article_id),article_publish_date:!!u&&d(!!u&&(null===u||void 0===u?void 0:u.publishDate)),article_category:!!u&&(p||(null===u||void 0===u||null===(b=u.defaultArticleCat)||void 0===b?void 0:b.category_name)),article_subcategory:!!u&&(g||(null===u||void 0===u||null===(h=u.defaultArticleCat)||void 0===h?void 0:h.category_name_eng)),publish_time:!!u&&e(!!u&&(null===u||void 0===u?void 0:u.publishDate)),video_name:Array.isArray(v)&&(null===v||void 0===v?void 0:v.length)>0&&"multimedia"===v[1]?null===u||void 0===u?void 0:u.heading1:"blank",video_category:Array.isArray(v)&&(null===v||void 0===v?void 0:v.length)>0&&"multimedia"===v[1]?"multimedia":"blank",word_count:!!u&&(null===u||void 0===u?void 0:u.article_content_count),User_id:!0===f.isLoggedIn&&S.user_id,logged_in_status:!0===f.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===S||void 0===S||null===(m=S.subscriptionDetails)||void 0===m?void 0:m.subscriptionStatus)?"is_subscribed":"non_subscribed",login_source:l,login_method:i,login_process:"social login"})},g=function(i,l,o){var e,d=JSON.parse(localStorage.getItem("persist:bs")),t=JSON.parse(d.auth),a=null===t||void 0===t?void 0:t.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"footer_menu",menu_category:null===o||void 0===o?void 0:o.parent_component,page_url:l,sub_menu_category:null===o||void 0===o?void 0:o.child_component,User_id:!0===t.isLoggedIn&&a.user_id,logged_in_status:!0===t.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===a||void 0===a||null===(e=a.subscriptionDetails)||void 0===e?void 0:e.subscriptionStatus)?"is_subscribed":"non_subscribed"})},b=function(i,l){var o,e=JSON.parse(localStorage.getItem("persist:bs")),d=JSON.parse(e.auth),t=null===d||void 0===d?void 0:d.userData;"undefined"!==typeof dataLayer&&dataLayer.push({social_click:i,event:"footer_social_click",page_url:l,User_id:!0===d.isLoggedIn&&t.user_id,logged_in_status:!0===d.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===t||void 0===t||null===(o=t.subscriptionDetails)||void 0===o?void 0:o.subscriptionStatus)?"is_subscribed":"non_subscribed"})},h=function(i,l){var o,e,d,t,a,n,u,r=JSON.parse(localStorage.getItem("persist:bs")),v=JSON.parse(r.auth),s=null===v||void 0===v?void 0:v.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"poll_click",poll_question:i,poll_answer:void 0!==l[0]?null===(o=l[0])||void 0===o||null===(e=o.props)||void 0===e?void 0:e.children:void 0!==l[1]?null===(d=l[1])||void 0===d||null===(t=d.props)||void 0===t?void 0:t.children:null===(a=l[2])||void 0===a||null===(n=a.props)||void 0===n?void 0:n.children,poll_submit:"True",User_id:!0===v.isLoggedIn&&s.user_id,logged_in_status:!0===v.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===s||void 0===s||null===(u=s.subscriptionDetails)||void 0===u?void 0:u.subscriptionStatus)?"is_subscribed":"non_subscribed"})},m=function(i,l){var o,e=JSON.parse(localStorage.getItem("persist:bs")),d=JSON.parse(e.auth),t=null===d||void 0===d?void 0:d.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"site_search",Search_term:i,page_url:l,User_id:!0===d.isLoggedIn&&t.user_id,logged_in_status:!0===d.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===t||void 0===t||null===(o=t.subscriptionDetails)||void 0===o?void 0:o.subscriptionStatus)?"is_subscribed":"non_subscribed"})},y=function(i){var l,o,t,a,n=localStorage.getItem("article_data_store"),u="undefined"!=n?JSON.parse(n):"",r="";if(i.authorName&&""!=i.authorName)r=i.authorName;else if(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors)r=Object.values(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors).join();else if((null===u||void 0===u?void 0:u.multiple_author_data)&&(null===Array||void 0===Array?void 0:Array.isArray(null===u||void 0===u?void 0:u.multiple_author_data)))for(var v,s=0;s<(null===u||void 0===u||null===(v=u.multiple_author_data)||void 0===v?void 0:v.length);s++){var c,_,p;if(s<(null===u||void 0===u||null===(c=u.multiple_author_data)||void 0===c?void 0:c.length)-1)r=r+(null===(_=null===u||void 0===u?void 0:u.multiple_author_data[s])||void 0===_?void 0:_.author_name)+", ";else r+=null===(p=null===u||void 0===u?void 0:u.multiple_author_data[s])||void 0===p?void 0:p.author_name}var g=localStorage.getItem("log_in_source"),b=JSON.parse(localStorage.getItem("persist:bs")),h=JSON.parse(b.auth),m=null===h||void 0===h?void 0:h.userData,y=u&&(null===u||void 0===u?void 0:u.articleUrl)?null===u||void 0===u||null===(l=u.articleUrl)||void 0===l?void 0:l.split("/"):u&&(null===u||void 0===u?void 0:u.item_url)?null===u||void 0===u||null===(o=u.item_url)||void 0===o?void 0:o.split("/"):null===u||void 0===u||null===(t=u.defaultArticleCat)||void 0===t||null===(a=t.category_url)||void 0===a?void 0:a.split("/"),f=null===y||void 0===y?void 0:y[1],S=null===y||void 0===y?void 0:y[2],I=localStorage.getItem("login_method"),N=localStorage.getItem("login_process"),A=localStorage.getItem("firstUser");setTimeout((function(){var l;dataLayer.push({event:"login_successfull",page_url:null===i||void 0===i?void 0:i.url,login_source:g,click_type:"blank",content_type:u?"Y"==((null===u||void 0===u?void 0:u.isPaid)||(null===u||void 0===u?void 0:u.is_paid))?"paid":"free":null===i||void 0===i?void 0:i.content_type,article_heading:u?null===u||void 0===u?void 0:u.heading1:null===i||void 0===i?void 0:i.article_heading,article_title:u?null===u||void 0===u?void 0:u.description:null===i||void 0===i?void 0:i.article_title,author_name:r||(null===i||void 0===i?void 0:i.author_name),article_id:u?(null===u||void 0===u?void 0:u.article_id)?null===u||void 0===u?void 0:u.article_id:null===u||void 0===u?void 0:u.articleId:null===i||void 0===i?void 0:i.article_id,publish_time:u?e(u&&(null===u||void 0===u?void 0:u.publishDate)?null===u||void 0===u?void 0:u.publishDate:u&&(null===u||void 0===u?void 0:u.published_date)?null===u||void 0===u?void 0:u.published_date:null===i||void 0===i?void 0:i.publish_time):null===i||void 0===i?void 0:i.publish_time,article_category:u?f:null===i||void 0===i?void 0:i.article_category,article_publish_date:u?d(u&&(null===u||void 0===u?void 0:u.publishDate)?null===u||void 0===u?void 0:u.publishDate:u&&(null===u||void 0===u?void 0:u.published_date)?null===u||void 0===u?void 0:u.published_date:null===i||void 0===i?void 0:i.article_publish_date):null===i||void 0===i?void 0:i.article_publish_date,article_subcategory:u?S:null===i||void 0===i?void 0:i.article_subcategory,video_name:null===i||void 0===i?void 0:i.video_name,video_category:null===i||void 0===i?void 0:i.video_category,User_id:!0===h.isLoggedIn&&m.user_id,logged_in_status:!0===h.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===m||void 0===m||null===(l=m.subscriptionDetails)||void 0===l?void 0:l.subscriptionStatus)?"is_subscribed":"non_subscribed",login_method:I,login_process:N,registration:"true"==A?"yes":"no",email_id:!0===h.isLoggedIn?m.email_id:""}),localStorage.removeItem("Gtmid")}),4e3)},f=function(i){var l,o,e,d,t,a,n,u,r=JSON.parse(localStorage.getItem("persist:bs")),v=JSON.parse(r.auth),s=JSON.parse(r.subscription),c=null===v||void 0===v?void 0:v.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"subscription_successfull",page_url:null===i||void 0===i?void 0:i.url,click_type:"blank",content_type:null===i||void 0===i?void 0:i.content_type,article_heading:null===i||void 0===i?void 0:i.article_heading,article_title:null===i||void 0===i?void 0:i.article_title,author_name:null===i||void 0===i?void 0:i.author_name,article_id:null===i||void 0===i?void 0:i.article_id,article_category:null===i||void 0===i?void 0:i.article_category,article_publish_date:null===i||void 0===i?void 0:i.article_publish_date,publish_time:null===i||void 0===i?void 0:i.publish_time,article_subcategory:null===i||void 0===i?void 0:i.article_subcategory,video_name:null===i||void 0===i?void 0:i.video_name,video_category:null===i||void 0===i?void 0:i.video_category,premium_id:null===s||void 0===s||null===(l=s.selectedPackageId)||void 0===l?void 0:l.value_pack_id,payment_gateway_name:null===s||void 0===s?void 0:s.paymentMode,order_id:null===s||void 0===s||null===(o=s.subscriptionOrderDetails)||void 0===o||null===(e=o.data)||void 0===e?void 0:e.order_id,transaction_id:null===s||void 0===s||null===(d=s.paymentStatus)||void 0===d||null===(t=d.data)||void 0===t?void 0:t.txn_Id,premium_amount:null===s||void 0===s||null===(a=s.selectedPackageId)||void 0===a?void 0:a.pack_price,premium_plan:null===s||void 0===s||null===(n=s.selectedPackageId)||void 0===n?void 0:n.pack_title,User_id:!0===v.isLoggedIn&&c.user_id,logged_in_status:!0===v.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===c||void 0===c||null===(u=c.subscriptionDetails)||void 0===u?void 0:u.subscriptionStatus)?"is_subscribed":"non_subscribed"})},S=function(i){var l,o,t,a=localStorage.getItem("article_data_store"),n="undefined"!=a?JSON.parse(a):"",u="";(null===n||void 0===n?void 0:n.authorName)&&""!=(null===n||void 0===n?void 0:n.authorName)?u=null===n||void 0===n?void 0:n.authorName:(null===n||void 0===n?void 0:n.articleMappedMultipleAuthors)&&(u=Object.values(null===n||void 0===n?void 0:n.articleMappedMultipleAuthors).join());var r,v,s,c=n&&(null===n||void 0===n?void 0:n.articleUrl)?null===n||void 0===n||null===(l=n.articleUrl)||void 0===l?void 0:l.split("/"):null===n||void 0===n||null===(o=n.defaultArticleCat)||void 0===o||null===(t=o.category_url)||void 0===t?void 0:t.split("/"),_=null===c||void 0===c?void 0:c[1],p=null===c||void 0===c?void 0:c[2];(null===n||void 0===n?void 0:n.articleUrl)?r=null===n||void 0===n||null===(v=n.article_url)||void 0===v?void 0:v.split("/"):r=null===n||void 0===n||null===(s=n.article_url)||void 0===s?void 0:s.split("/");var g,b,h,m=localStorage.getItem("subscription_source"),y=localStorage.getItem("log_in_source"),f=JSON.parse(localStorage.getItem("persist:bs")),S=JSON.parse(f.auth),I=(JSON.parse(f.subscription),null===S||void 0===S?void 0:S.userData);"undefined"!==typeof dataLayer&&(dataLayer.push({event:"subscribe_now",page_url:null===i||void 0===i?void 0:i.url,subscribe_now:"True",click_type:"blank",content_type:n?"Y"==(null===n||void 0===n?void 0:n.isPaid)?"paid":"free":"NA",article_title:!!n&&(null===n||void 0===n?void 0:n.description),article_heading:!!n&&(null===n||void 0===n?void 0:n.heading1),author_name:!!n&&u,article_id:!!n&&(null===n||void 0===n?void 0:n.articleId),article_publish_date:!!n&&d(!!n&&(null===n||void 0===n?void 0:n.publishDate)),article_category:!!n&&(_||(null===n||void 0===n||null===(g=n.defaultArticleCat)||void 0===g?void 0:g.category_name)),article_subcategory:!!n&&(p||(null===n||void 0===n||null===(b=n.defaultArticleCat)||void 0===b?void 0:b.category_name_eng)),publish_time:!!n&&e(!!n&&(null===n||void 0===n?void 0:n.publishDate)),video_name:Array.isArray(r)&&(null===r||void 0===r?void 0:r.length)>0&&"multimedia"===r[1]?null===n||void 0===n?void 0:n.heading1:"blank",video_category:Array.isArray(r)&&(null===r||void 0===r?void 0:r.length)>0&&"multimedia"===r[1]?"multimedia":"blank",word_count:!!n&&(null===n||void 0===n?void 0:n.article_content_count),User_id:!0===S.isLoggedIn&&I.user_id,logged_in_status:!0===S.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===I||void 0===I||null===(h=I.subscriptionDetails)||void 0===h?void 0:h.subscriptionStatus)?"is_subscribed":"non_subscribed",login_source:!0===S.isLoggedIn?y:"blank",subscription_source:m}),localStorage.removeItem("paid_article_url"),localStorage.removeItem("subs_success"))},I=function(i,l){var o,t,a,n="";i.authorName&&""!=i.authorName?n=i.authorName:(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors)&&(n=Object.values(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors).join());var u,r,v,s,c=(null===i||void 0===i?void 0:i.articleUrl)?null===i||void 0===i||null===(o=i.articleUrl)||void 0===o?void 0:o.split("/"):null===i||void 0===i||null===(t=i.defaultArticleCat)||void 0===t||null===(a=t.category_url)||void 0===a?void 0:a.split("/"),_=null===c||void 0===c?void 0:c[1],p=null===c||void 0===c?void 0:c[2],g=JSON.parse(localStorage.getItem("persist:bs")),b=JSON.parse(g.auth),h=null===b||void 0===b?void 0:b.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"add_comment",comment_button:"True",read_comment:"True",page_url:window.location.href,User_feedback:l,article_heading:null===i||void 0===i?void 0:i.heading1,article_title:null===i||void 0===i?void 0:i.description,click_type:"blank",content_type:(s=i,(null===s||void 0===s?void 0:s.isPaid)&&"Y"===(null===s||void 0===s?void 0:s.isPaid)&&(null===s||void 0===s?void 0:s.paidStartDate)&&new Date(1e3*s.paidStartDate)0&&"multimedia"===c[1]?null===v||void 0===v?void 0:v.heading1:"blank",video_category:Array.isArray(c)&&(null===c||void 0===c?void 0:c.length)>0&&"multimedia"===c[1]?"multimedia":"blank",word_count:!!v&&(null===v||void 0===v?void 0:v.article_content_count),User_id:!0===N.isLoggedIn&&A.user_id,logged_in_status:!0===N.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===A||void 0===A||null===(f=A.subscriptionDetails)||void 0===f?void 0:f.subscriptionStatus)?"is_subscribed":"non_subscribed",login_source:S,login_method:l,login_process:o})},k=function(i){var l,o,t,a,n=localStorage.getItem("article_data_store"),u="undefined"!=n?JSON.parse(n):"",r="";(null===u||void 0===u?void 0:u.authorName)&&""!=(null===u||void 0===u?void 0:u.authorName)?r=null===u||void 0===u?void 0:u.authorName:(null===u||void 0===u?void 0:u.articleMappedMultipleAuthors)&&(r=Object.values(null===u||void 0===u?void 0:u.articleMappedMultipleAuthors).join());var v,s,c,_=u&&(null===u||void 0===u?void 0:u.articleUrl)?null===u||void 0===u||null===(l=u.articleUrl)||void 0===l?void 0:l.split("/"):u&&(null===u||void 0===u?void 0:u.item_url)?null===u||void 0===u||null===(o=u.item_url)||void 0===o?void 0:o.split("/"):null===u||void 0===u||null===(t=u.defaultArticleCat)||void 0===t||null===(a=t.category_url)||void 0===a?void 0:a.split("/"),p=null===_||void 0===_?void 0:_[1],g=null===_||void 0===_?void 0:_[2];(null===u||void 0===u?void 0:u.articleUrl)?v=null===u||void 0===u||null===(s=u.article_url)||void 0===s?void 0:s.split("/"):v=null===u||void 0===u||null===(c=u.article_url)||void 0===c?void 0:c.split("/");var b,h,m,y=localStorage.getItem("log_in_source"),f=localStorage.getItem("login_method"),S=localStorage.getItem("login_process"),I=JSON.parse(localStorage.getItem("persist:bs")),N=JSON.parse(I.auth),A=null===N||void 0===N?void 0:N.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"log_in_otp_verify",continue_click:i,page_url:window.location.href,click_type:"blank",content_type:u?"Y"==(null===u||void 0===u?void 0:u.isPaid)?"paid":"free":"NA",article_title:!!u&&(null===u||void 0===u?void 0:u.description),article_heading:!!u&&(null===u||void 0===u?void 0:u.heading1),author_name:!!u&&r,article_id:u&&(null===u||void 0===u?void 0:u.articleId)?null===u||void 0===u?void 0:u.articleId:!(!u||!(null===u||void 0===u?void 0:u.article_id))&&(null===u||void 0===u?void 0:u.article_id),article_publish_date:!!u&&d(u&&(null===u||void 0===u?void 0:u.publishDate)?null===u||void 0===u?void 0:u.publishDate:!(!u||!(null===u||void 0===u?void 0:u.published_date))&&(null===u||void 0===u?void 0:u.published_date)),article_category:!!u&&(p||(null===u||void 0===u||null===(b=u.defaultArticleCat)||void 0===b?void 0:b.category_name)),article_subcategory:!!u&&(g||(null===u||void 0===u||null===(h=u.defaultArticleCat)||void 0===h?void 0:h.category_name_eng)),publish_time:!!u&&e(u&&(null===u||void 0===u?void 0:u.publishDate)?null===u||void 0===u?void 0:u.publishDate:!(!u||!(null===u||void 0===u?void 0:u.published_date))&&(null===u||void 0===u?void 0:u.published_date)),video_name:Array.isArray(v)&&(null===v||void 0===v?void 0:v.length)>0&&"multimedia"===v[1]?null===u||void 0===u?void 0:u.heading1:"blank",video_category:Array.isArray(v)&&(null===v||void 0===v?void 0:v.length)>0&&"multimedia"===v[1]?"multimedia":"blank",word_count:!!u&&(null===u||void 0===u?void 0:u.article_content_count),User_id:!0===N.isLoggedIn&&A.user_id,logged_in_status:!0===N.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===A||void 0===A||null===(m=A.subscriptionDetails)||void 0===m?void 0:m.subscriptionStatus)?"is_subscribed":"non_subscribed",login_source:y,login_method:f,login_process:S})},L=function(i,l,o){var t,a,n,u,r=localStorage.getItem("article_data_store"),v="undefined"!=r?JSON.parse(r):"",s="";(null===v||void 0===v?void 0:v.authorName)&&""!=(null===v||void 0===v?void 0:v.authorName)?s=null===v||void 0===v?void 0:v.authorName:(null===v||void 0===v?void 0:v.articleMappedMultipleAuthors)&&(s=Object.values(null===v||void 0===v?void 0:v.articleMappedMultipleAuthors).join());var c,_,p,g=v&&(null===v||void 0===v?void 0:v.articleUrl)?null===v||void 0===v||null===(t=v.articleUrl)||void 0===t?void 0:t.split("/"):v&&(null===v||void 0===v?void 0:v.item_url)?null===v||void 0===v||null===(a=v.item_url)||void 0===a?void 0:a.split("/"):null===v||void 0===v||null===(n=v.defaultArticleCat)||void 0===n||null===(u=n.category_url)||void 0===u?void 0:u.split("/"),b=null===g||void 0===g?void 0:g[1],h=null===g||void 0===g?void 0:g[2];(null===v||void 0===v?void 0:v.articleUrl)?c=null===v||void 0===v||null===(_=v.article_url)||void 0===_?void 0:_.split("/"):c=null===v||void 0===v||null===(p=v.article_url)||void 0===p?void 0:p.split("/");var m,y,f,S=localStorage.getItem("log_in_source"),I=JSON.parse(localStorage.getItem("persist:bs")),N=JSON.parse(I.auth),A=null===N||void 0===N?void 0:N.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"log_in_verify_email",continue_click:i,page_url:window.location.href,click_type:"blank",content_type:v?"Y"==(null===v||void 0===v?void 0:v.isPaid)?"paid":"free":"NA",article_title:!!v&&(null===v||void 0===v?void 0:v.description),article_heading:!!v&&(null===v||void 0===v?void 0:v.heading1),author_name:!!v&&s,article_id:v&&(null===v||void 0===v?void 0:v.articleId)?null===v||void 0===v?void 0:v.articleId:!(!v||!(null===v||void 0===v?void 0:v.article_id))&&(null===v||void 0===v?void 0:v.article_id),article_publish_date:!!v&&d(v&&(null===v||void 0===v?void 0:v.publishDate)?null===v||void 0===v?void 0:v.publishDate:!(!v||!(null===v||void 0===v?void 0:v.published_date))&&(null===v||void 0===v?void 0:v.published_date)),article_category:!!v&&(b||(null===v||void 0===v||null===(m=v.defaultArticleCat)||void 0===m?void 0:m.category_name)),article_subcategory:!!v&&(h||(null===v||void 0===v||null===(y=v.defaultArticleCat)||void 0===y?void 0:y.category_name_eng)),publish_time:!!v&&e(v&&(null===v||void 0===v?void 0:v.publishDate)?null===v||void 0===v?void 0:v.publishDate:!(!v||!(null===v||void 0===v?void 0:v.published_date))&&(null===v||void 0===v?void 0:v.published_date)),video_name:Array.isArray(c)&&(null===c||void 0===c?void 0:c.length)>0&&"multimedia"===c[1]?null===v||void 0===v?void 0:v.heading1:"blank",video_category:Array.isArray(c)&&(null===c||void 0===c?void 0:c.length)>0&&"multimedia"===c[1]?"multimedia":"blank",word_count:!!v&&(null===v||void 0===v?void 0:v.article_content_count),User_id:!0===N.isLoggedIn&&A.user_id,logged_in_status:!0===N.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===A||void 0===A||null===(f=A.subscriptionDetails)||void 0===f?void 0:f.subscriptionStatus)?"is_subscribed":"non_subscribed",login_source:S,login_method:l,login_process:o})},D=function(i){var l,o,t,a,n=localStorage.getItem("article_data_store"),u="undefined"!=n?JSON.parse(n):"",r="";(null===u||void 0===u?void 0:u.authorName)&&""!=(null===u||void 0===u?void 0:u.authorName)?r=null===u||void 0===u?void 0:u.authorName:(null===u||void 0===u?void 0:u.articleMappedMultipleAuthors)&&(r=Object.values(null===u||void 0===u?void 0:u.articleMappedMultipleAuthors).join());var v,s,c,_=u&&(null===u||void 0===u?void 0:u.articleUrl)?null===u||void 0===u||null===(l=u.articleUrl)||void 0===l?void 0:l.split("/"):u&&(null===u||void 0===u?void 0:u.item_url)?null===u||void 0===u||null===(o=u.item_url)||void 0===o?void 0:o.split("/"):null===u||void 0===u||null===(t=u.defaultArticleCat)||void 0===t||null===(a=t.category_url)||void 0===a?void 0:a.split("/"),p=null===_||void 0===_?void 0:_[1],g=null===_||void 0===_?void 0:_[2];(null===u||void 0===u?void 0:u.articleUrl)?v=null===u||void 0===u||null===(s=u.article_url)||void 0===s?void 0:s.split("/"):v=null===u||void 0===u||null===(c=u.article_url)||void 0===c?void 0:c.split("/");var b,h,m,y=localStorage.getItem("log_in_source"),f=JSON.parse(localStorage.getItem("persist:bs")),S=JSON.parse(f.auth),I=null===S||void 0===S?void 0:S.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"log_in_verify_Number",continue_click:i,page_url:window.location.href,click_type:"blank",content_type:u?"Y"==(null===u||void 0===u?void 0:u.isPaid)?"paid":"free":"NA",article_title:!!u&&(null===u||void 0===u?void 0:u.description),article_heading:!!u&&(null===u||void 0===u?void 0:u.heading1),author_name:!!u&&r,article_id:u&&(null===u||void 0===u?void 0:u.articleId)?null===u||void 0===u?void 0:u.articleId:!(!u||!(null===u||void 0===u?void 0:u.article_id))&&(null===u||void 0===u?void 0:u.article_id),article_publish_date:!!u&&d(u&&(null===u||void 0===u?void 0:u.publishDate)?null===u||void 0===u?void 0:u.publishDate:!(!u||!(null===u||void 0===u?void 0:u.published_date))&&(null===u||void 0===u?void 0:u.published_date)),article_category:!!u&&(p||(null===u||void 0===u||null===(b=u.defaultArticleCat)||void 0===b?void 0:b.category_name)),article_subcategory:!!u&&(g||(null===u||void 0===u||null===(h=u.defaultArticleCat)||void 0===h?void 0:h.category_name_eng)),publish_time:!!u&&e(u&&(null===u||void 0===u?void 0:u.publishDate)?null===u||void 0===u?void 0:u.publishDate:!(!u||!(null===u||void 0===u?void 0:u.published_date))&&(null===u||void 0===u?void 0:u.published_date)),video_name:Array.isArray(v)&&(null===v||void 0===v?void 0:v.length)>0&&"multimedia"===v[1]?null===u||void 0===u?void 0:u.heading1:"blank",video_category:Array.isArray(v)&&(null===v||void 0===v?void 0:v.length)>0&&"multimedia"===v[1]?"multimedia":"blank",word_count:!!u&&(null===u||void 0===u?void 0:u.article_content_count),User_id:!0===S.isLoggedIn&&I.user_id,logged_in_status:!0===S.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===I||void 0===I||null===(m=I.subscriptionDetails)||void 0===m?void 0:m.subscriptionStatus)?"is_subscribed":"non_subscribed",login_source:y})},O=function(i){var l,o=localStorage.getItem("log_in_source"),e=JSON.parse(localStorage.getItem("persist:bs")),d=JSON.parse(e.auth),t=null===d||void 0===d?void 0:d.userData;return dataLayer.push({event:"successfull_skip_button",continue_click:"True",page_url:window.location.href,click_type:"blank",User_id:!0===d.isLoggedIn&&t.user_id,logged_in_status:!0===d.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===t||void 0===t||null===(l=t.subscriptionDetails)||void 0===l?void 0:l.subscriptionStatus)?"is_subscribed":"non_subscribed",login_source:o||"profile_option"}),!0},U=function(i,l,o,t){var a,n,u,r=localStorage.getItem("article_data_store"),v="undefined"!=r?JSON.parse(r):"",s="";(null===v||void 0===v?void 0:v.authorName)&&""!=(null===v||void 0===v?void 0:v.authorName)?s=null===v||void 0===v?void 0:v.authorName:(null===v||void 0===v?void 0:v.articleMappedMultipleAuthors)&&(s=Object.values(null===v||void 0===v?void 0:v.articleMappedMultipleAuthors).join());var c,_,p,g=v&&(null===v||void 0===v?void 0:v.articleUrl)?null===v||void 0===v||null===(a=v.articleUrl)||void 0===a?void 0:a.split("/"):null===v||void 0===v||null===(n=v.defaultArticleCat)||void 0===n||null===(u=n.category_url)||void 0===u?void 0:u.split("/"),b=null===g||void 0===g?void 0:g[1],h=null===g||void 0===g?void 0:g[2];(null===v||void 0===v?void 0:v.articleUrl)?c=null===v||void 0===v||null===(_=v.article_url)||void 0===_?void 0:_.split("/"):c=null===v||void 0===v||null===(p=v.article_url)||void 0===p?void 0:p.split("/");var m=localStorage.getItem("subscription_source"),y=localStorage.getItem("log_in_source"),f=JSON.parse(localStorage.getItem("persist:bs")),S=JSON.parse(f.auth),I=null===S||void 0===S?void 0:S.userData;setTimeout((function(){var l,a,n,u,r,_,p,g,f,N,A,k,L,D,O,U,J,M,w,P,j,C,T,Y,x,R,B,E,F,q;dataLayer.push({event:"purchase",logged_in_status:!0===S.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===I||void 0===I||null===(l=I.subscriptionDetails)||void 0===l?void 0:l.subscriptionStatus)?"is_subscribed":"non_subscribed",content_type:v?"Y"==(null===v||void 0===v?void 0:v.isPaid)?"paid":"free":"NA",article_title:!!v&&(null===v||void 0===v?void 0:v.description),article_heading:!!v&&(null===v||void 0===v?void 0:v.heading1),author_name:!!v&&s,article_id:v&&(null===v||void 0===v?void 0:v.articleId)?null===v||void 0===v?void 0:v.articleId:!(!v||!(null===v||void 0===v?void 0:v.article_id))&&(null===v||void 0===v?void 0:v.article_id),article_publish_date:!!v&&d(v&&(null===v||void 0===v?void 0:v.publishDate)?null===v||void 0===v?void 0:v.publishDate:!(!v||!(null===v||void 0===v?void 0:v.published_date))&&(null===v||void 0===v?void 0:v.published_date)),article_category:!!v&&(b||(null===v||void 0===v||null===(a=v.defaultArticleCat)||void 0===a?void 0:a.category_name)),article_subcategory:!!v&&(h||(null===v||void 0===v||null===(n=v.defaultArticleCat)||void 0===n?void 0:n.category_name_eng)),publish_time:!!v&&e(v&&(null===v||void 0===v?void 0:v.publishDate)?null===v||void 0===v?void 0:v.publishDate:!(!v||!(null===v||void 0===v?void 0:v.published_date))&&(null===v||void 0===v?void 0:v.published_date)),video_name:Array.isArray(c)&&(null===c||void 0===c?void 0:c.length)>0&&"multimedia"===c[1]?null===v||void 0===v?void 0:v.heading1:"blank",video_category:Array.isArray(c)&&(null===c||void 0===c?void 0:c.length)>0&&"multimedia"===c[1]?"multimedia":"blank",word_count:!!v&&(null===v||void 0===v?void 0:v.article_content_count),User_id:!0===S.isLoggedIn&&I.user_id,login_source:y,subscription_source:m,subscription_type:null===i||void 0===i||null===(u=i.data)||void 0===u||null===(r=u.data)||void 0===r?void 0:r.subscription_type,ecommerce:{transaction_id:null===i||void 0===i||null===(_=i.data)||void 0===_||null===(p=_.data)||void 0===p||null===(g=p.subscriptionDetails)||void 0===g?void 0:g.paymentGatewayTransId,value:null===i||void 0===i||null===(f=i.data)||void 0===f||null===(N=f.data)||void 0===N?void 0:N.amount,tax:"NA",shipping:"0",currency:"INR",coupon:null===i||void 0===i||null===(A=i.data)||void 0===A||null===(k=A.data)||void 0===k?void 0:k.coupon,items:[{item_id:null===i||void 0===i||null===(L=i.data)||void 0===L||null===(D=L.data)||void 0===D||null===(O=D.subscriptionDetails)||void 0===O?void 0:O.purchasePackageId,item_name:null===i||void 0===i||null===(U=i.data)||void 0===U||null===(J=U.data)||void 0===J?void 0:J.item_name,affiliation:"Business standard",coupon:null===i||void 0===i||null===(M=i.data)||void 0===M||null===(w=M.data)||void 0===w?void 0:w.coupon,discount:null===i||void 0===i||null===(P=i.data)||void 0===P||null===(j=P.data)||void 0===j?void 0:j.discount,index:"0",item_brand:"BS",item_category:o,item_category2:t,item_category3:"NA",item_category4:"NA",item_category5:"NA",item_list_id:null===i||void 0===i||null===(C=i.data)||void 0===C||null===(T=C.data)||void 0===T||null===(Y=T.subscriptionDetails)||void 0===Y?void 0:Y.purchasePackageId,item_list_name:null===i||void 0===i||null===(x=i.data)||void 0===x||null===(R=x.data)||void 0===R?void 0:R.item_name,item_variant:null===i||void 0===i||null===(B=i.data)||void 0===B||null===(E=B.data)||void 0===E?void 0:E.item_name,price:null===i||void 0===i||null===(F=i.data)||void 0===F||null===(q=F.data)||void 0===q?void 0:q.price,quantity:1}]}})}),4e3),localStorage.removeItem("log_in_source"),localStorage.removeItem("subscription_source"),localStorage.removeItem("article_data_store")},J=function(i,l){var o,t,a,n=localStorage.getItem("article_data_store"),u="undefined"!=n?JSON.parse(n):"",r="";null!=u&&(null===u||void 0===u?void 0:u.authorName)&&""!=(null===u||void 0===u?void 0:u.authorName)?r=null===u||void 0===u?void 0:u.authorName:null!=u&&(null===u||void 0===u?void 0:u.articleMappedMultipleAuthors)&&(r=Object.values(null===u||void 0===u?void 0:u.articleMappedMultipleAuthors).join());var v,s,c;u&&null!=u&&(null===u||void 0===u?void 0:u.articleUrl)?null===u||void 0===u||null===(o=u.articleUrl)||void 0===o||o.split("/"):null===u||void 0===u||null===(t=u.defaultArticleCat)||void 0===t||null===(a=t.category_url)||void 0===a||a.split("/");if(u&&null!=u&&!(null===u||void 0===u?void 0:u.articleUrl))v=(null===u||void 0===u?void 0:u.articleUrl)?null===u||void 0===u||null===(s=u.articleUrl)||void 0===s?void 0:s.split("/"):null===u||void 0===u||null===(c=u.article_url)||void 0===c?void 0:c.split("/");else if(null===l||void 0===l?void 0:l.articleUrl){var _,p;v=(null===l||void 0===l?void 0:l.articleUrl)?null===l||void 0===l||null===(_=l.articleUrl)||void 0===_?void 0:_.split("/"):null===l||void 0===l||null===(p=l.article_url)||void 0===p?void 0:p.split("/")}else{var g,b;v=(null===u||void 0===u?void 0:u.url)?null===u||void 0===u||null===(g=u.url)||void 0===g?void 0:g.split("/"):null===l||void 0===l||null===(b=l.url)||void 0===b?void 0:b.split("/")}var h=null===v||void 0===v?void 0:v[1],m=null===v||void 0===v?void 0:v[2],y="";(null===l||void 0===l?void 0:l.authorName)&&""!=(null===l||void 0===l?void 0:l.authorName)?y=null===l||void 0===l?void 0:l.authorName:(null===l||void 0===l?void 0:l.articleMappedMultipleAuthors)&&(y=Object.values(null===l||void 0===l?void 0:l.articleMappedMultipleAuthors).join());var f,S,I,N=void 0!=localStorage.getItem("subscription_source")?localStorage.getItem("subscription_source"):localStorage.setItem("subscription_source","in_article_button"),A=localStorage.getItem("subscription_source"),k=localStorage.getItem("log_in_source"),L=JSON.parse(localStorage.getItem("persist:bs")),D=JSON.parse(L.auth),O=null===D||void 0===D?void 0:D.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"begin_checkout",logged_in_status:!0===D.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===O||void 0===O||null===(f=O.subscriptionDetails)||void 0===f?void 0:f.subscriptionStatus)?"is_subscribed":"non_subscribed",content_type:u&&null!=u?"Y"==(null===u||void 0===u?void 0:u.isPaid)?"paid":"free":(null===l||void 0===l?void 0:l.isPaid)&&"Y"==(null===l||void 0===l?void 0:l.isPaid)?"paid":"NA",article_title:u&&null!=u?null===u||void 0===u?void 0:u.description:(null!=(null===l||void 0===l?void 0:l.description)||void 0!=(null===l||void 0===l?void 0:l.description))&&(null===l||void 0===l?void 0:l.description),article_heading:u&&null!=u?null===u||void 0===u?void 0:u.heading1:(null!=(null===l||void 0===l?void 0:l.heading1)||void 0!=(null===l||void 0===l?void 0:l.heading1))&&(null===l||void 0===l?void 0:l.heading1),author_name:u&&null!=u?r:y||!1,article_id:u&&null!=u?null===u||void 0===u?void 0:u.articleId:(null!=(null===l||void 0===l?void 0:l.articleId)||void 0!=(null===l||void 0===l?void 0:l.articleId))&&(null===l||void 0===l?void 0:l.articleId),article_publish_date:u&&null!=u?d(u&&(null===u||void 0===u?void 0:u.publishDate)?null===u||void 0===u?void 0:u.publishDate:!(!u||!(null===u||void 0===u?void 0:u.published_date))&&(null===u||void 0===u?void 0:u.published_date)):(null!=(null===l||void 0===l?void 0:l.publishDate)||void 0!=(null===l||void 0===l?void 0:l.publishDate))&&d(null===l||void 0===l?void 0:l.publishDate),article_category:(null===v||void 0===v?void 0:v.length)>0&&(h||(null===u||void 0===u||null===(S=u.defaultArticleCat)||void 0===S?void 0:S.category_name)),article_subcategory:(null===v||void 0===v?void 0:v.length)>0&&(m||(null===u||void 0===u||null===(I=u.defaultArticleCat)||void 0===I?void 0:I.category_name_eng)),publish_time:u&&null!=u?e(u&&(null===u||void 0===u?void 0:u.publishDate)?null===u||void 0===u?void 0:u.publishDate:!(!u||!(null===u||void 0===u?void 0:u.published_date))&&(null===u||void 0===u?void 0:u.published_date)):(null!=(null===l||void 0===l?void 0:l.publishDate)||void 0!=(null===l||void 0===l?void 0:l.publishDate))&&e(null===l||void 0===l?void 0:l.publishDate),video_name:Array.isArray(v)&&(null===v||void 0===v?void 0:v.length)>0&&"multimedia"===v[1]?null===u||void 0===u?void 0:u.heading1:"blank",video_category:Array.isArray(v)&&(null===v||void 0===v?void 0:v.length)>0&&"multimedia"===v[1]?"multimedia":"blank",word_count:u&&null!=u?null===u||void 0===u?void 0:u.article_content_count:!!l&&(null===l||void 0===l?void 0:l.article_content_count),User_id:!0===D.isLoggedIn&&O.user_id,login_source:!0===D.isLoggedIn?k:"blank",subscription_source:void 0!=N?N:A,ecommerce:{currency:"INR",value:0!==(null===i||void 0===i?void 0:i.pack_price)&&(null===i||void 0===i?void 0:i.pack_price)>(null===i||void 0===i?void 0:i.pack_discount_price)?null===i||void 0===i?void 0:i.pack_price:null===i||void 0===i?void 0:i.pack_discount_price,coupon:"NA",items:[{item_id:null===i||void 0===i?void 0:i.value_pack_id,item_name:null===i||void 0===i?void 0:i.pack_title,affiliation:"Business standard",coupon:"NA",discount:0!==(null===i||void 0===i?void 0:i.pack_price)?(null===i||void 0===i?void 0:i.pack_price)-(null===i||void 0===i?void 0:i.pack_discount_price):0,index:"NA",item_brand:"BS",item_category:"NA",item_category2:"NA",item_category3:"NA",item_category4:"NA",item_category5:"NA",item_list_id:null===i||void 0===i?void 0:i.value_pack_id,item_list_name:null===i||void 0===i?void 0:i.pack_title,item_variant:null===i||void 0===i?void 0:i.pack_title,price:0!==(null===i||void 0===i?void 0:i.pack_price)&&(null===i||void 0===i?void 0:i.pack_price)>(null===i||void 0===i?void 0:i.pack_discount_price)?null===i||void 0===i?void 0:i.pack_price:null===i||void 0===i?void 0:i.pack_discount_price,quantity:1}]}})},M=function(i,l){var o,e=JSON.parse(localStorage.getItem("persist:bs")),d=JSON.parse(e.auth),t=null===d||void 0===d?void 0:d.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"article_share_click",social_media:l,article_save:"True",page_url:null===i||void 0===i?void 0:i.item_url,click_type:"blank",User_id:!0===d.isLoggedIn&&t.user_id,logged_in_status:!0===d.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===t||void 0===t||null===(o=t.subscriptionDetails)||void 0===o?void 0:o.subscriptionStatus)?"is_subscribed":"non_subscribed"})},w=function(i,l,o){var t,a,n,u=localStorage.getItem("article_data_store"),r="undefined"!=u?JSON.parse(u):"",v="";(null===r||void 0===r?void 0:r.authorName)&&""!=(null===r||void 0===r?void 0:r.authorName)?v=null===r||void 0===r?void 0:r.authorName:(null===r||void 0===r?void 0:r.articleMappedMultipleAuthors)&&(v=Object.values(null===r||void 0===r?void 0:r.articleMappedMultipleAuthors).join());var s,c,_,p=r&&(null===r||void 0===r?void 0:r.articleUrl)?null===r||void 0===r||null===(t=r.articleUrl)||void 0===t?void 0:t.split("/"):null===r||void 0===r||null===(a=r.defaultArticleCat)||void 0===a||null===(n=a.category_url)||void 0===n?void 0:n.split("/"),g=null===p||void 0===p?void 0:p[1],b=null===p||void 0===p?void 0:p[2];(null===r||void 0===r?void 0:r.articleUrl)?s=null===r||void 0===r||null===(c=r.article_url)||void 0===c?void 0:c.split("/"):s=null===r||void 0===r||null===(_=r.article_url)||void 0===_?void 0:_.split("/");var h,m,y,f=localStorage.getItem("subscription_source"),S=localStorage.getItem("log_in_source"),I=JSON.parse(localStorage.getItem("persist:bs")),N=JSON.parse(I.auth),A=null===N||void 0===N?void 0:N.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:"add_payment_info",logged_in_status:!0===N.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===A||void 0===A||null===(h=A.subscriptionDetails)||void 0===h?void 0:h.subscriptionStatus)?"is_subscribed":"non_subscribed",content_type:r?"Y"==(null===r||void 0===r?void 0:r.isPaid)?"paid":"free":"NA",article_title:!!r&&(null===r||void 0===r?void 0:r.description),article_heading:!!r&&(null===r||void 0===r?void 0:r.heading1),author_name:!!r&&v,article_id:r&&(null===r||void 0===r?void 0:r.articleId)?null===r||void 0===r?void 0:r.articleId:!(!r||!(null===r||void 0===r?void 0:r.article_id))&&(null===r||void 0===r?void 0:r.article_id),article_publish_date:!!r&&d(r&&(null===r||void 0===r?void 0:r.publishDate)?null===r||void 0===r?void 0:r.publishDate:!(!r||!(null===r||void 0===r?void 0:r.published_date))&&(null===r||void 0===r?void 0:r.published_date)),article_category:!!r&&(g||(null===r||void 0===r||null===(m=r.defaultArticleCat)||void 0===m?void 0:m.category_name)),article_subcategory:!!r&&(b||(null===r||void 0===r||null===(y=r.defaultArticleCat)||void 0===y?void 0:y.category_name_eng)),publish_time:!!r&&e(r&&(null===r||void 0===r?void 0:r.publishDate)?null===r||void 0===r?void 0:r.publishDate:!(!r||!(null===r||void 0===r?void 0:r.published_date))&&(null===r||void 0===r?void 0:r.published_date)),video_name:Array.isArray(s)&&(null===s||void 0===s?void 0:s.length)>0&&"multimedia"===s[1]?null===r||void 0===r?void 0:r.heading1:"blank",video_category:Array.isArray(s)&&(null===s||void 0===s?void 0:s.length)>0&&"multimedia"===s[1]?"multimedia":"blank",word_count:!!r&&(null===r||void 0===r?void 0:r.article_content_count),User_id:!0===N.isLoggedIn&&A.user_id,login_source:S,subscription_source:f,ecommerce:{currency:"INR",value:0!==(null===i||void 0===i?void 0:i.pack_price)&&(null===i||void 0===i?void 0:i.pack_price)>(null===i||void 0===i?void 0:i.pack_discount_price)?null===i||void 0===i?void 0:i.pack_price:null===i||void 0===i?void 0:i.pack_discount_price,coupon:o,payment_type:l,items:[{item_id:null===i||void 0===i?void 0:i.value_pack_id,item_name:null===i||void 0===i?void 0:i.pack_title,affiliation:"Business standard",coupon:o,discount:0!==(null===i||void 0===i?void 0:i.pack_price)?(null===i||void 0===i?void 0:i.pack_price)-(null===i||void 0===i?void 0:i.pack_discount_price):0,index:"0",item_brand:"BS",item_category:"NA",item_category2:"NA",item_category3:"NA",item_category4:"NA",item_category5:"NA",item_list_id:null===i||void 0===i?void 0:i.value_pack_id,item_list_name:null===i||void 0===i?void 0:i.pack_title,item_variant:null===i||void 0===i?void 0:i.pack_title,price:0!==(null===i||void 0===i?void 0:i.pack_price)&&(null===i||void 0===i?void 0:i.pack_price)>(null===i||void 0===i?void 0:i.pack_discount_price)?null===i||void 0===i?void 0:i.pack_price:null===i||void 0===i?void 0:i.pack_discount_price,quantity:1}]}})},P=function(i,l){localStorage.setItem("article_data_store",JSON.stringify(i));var o="";if(!(null===i||void 0===i?void 0:i.authorName)&&!(null===i||void 0===i?void 0:i.author_name)||""==i.authorName&&""==i.author_name){if(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors)o=Object.values(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors).join();else if((null===i||void 0===i?void 0:i.multiple_author_data)&&(null===Array||void 0===Array?void 0:Array.isArray(null===i||void 0===i?void 0:i.multiple_author_data)))for(var t,a=0;a<(null===i||void 0===i||null===(t=i.multiple_author_data)||void 0===t?void 0:t.length);a++){var n,u,r;if(a<(null===i||void 0===i||null===(n=i.multiple_author_data)||void 0===n?void 0:n.length)-1)o=o+(null===(u=null===i||void 0===i?void 0:i.multiple_author_data[a])||void 0===u?void 0:u.author_name)+", ";else o+=null===(r=null===i||void 0===i?void 0:i.multiple_author_data[a])||void 0===r?void 0:r.author_name}}else o=(null===i||void 0===i?void 0:i.author_name)?null===i||void 0===i?void 0:i.author_name:null===i||void 0===i?void 0:i.authorName;var v,s=(null===i||void 0===i?void 0:i.article_url)?null===i||void 0===i?void 0:i.article_url.split("/"):(null===i||void 0===i?void 0:i.video_url)?null===i||void 0===i?void 0:i.video_url.split("/"):(null===i||void 0===i?void 0:i.articleUrl)?null===i||void 0===i?void 0:i.articleUrl.split("/"):(null===i||void 0===i?void 0:i.gallery_url)?null===i||void 0===i?void 0:i.gallery_url.split("/"):null===i||void 0===i?void 0:i.item_url.split("/"),c=JSON.parse(localStorage.getItem("persist:bs")),_=JSON.parse(c.auth),p=null===_||void 0===_?void 0:_.userData,g=localStorage.getItem("log_in_source");"undefined"!==typeof dataLayer&&dataLayer.push({event:"article_bookmark",continue_click:"True",page_url:(null===i||void 0===i?void 0:i.article_url)?null===i||void 0===i?void 0:i.article_url:null===i||void 0===i?void 0:i.articleUrl,click_type:"article",content_type:"Y"===(null===i||void 0===i?void 0:i.is_paid)?"paid":"free",article_save:l,article_title:null===i||void 0===i?void 0:i.description,article_heading:"multimedia"!==s[1]?null===i||void 0===i?void 0:i.heading1:"blank",author_name:o,article_id:(null===i||void 0===i?void 0:i.articleId)?null===i||void 0===i?void 0:i.articleId:null===i||void 0===i?void 0:i.article_id,article_publish_date:d((null===i||void 0===i?void 0:i.publishDate)?null===i||void 0===i?void 0:i.publishDate:null===i||void 0===i?void 0:i.published_date),article_category:"article"===s[1]?s[2]:s[1],article_subcategory:"article"===s[1]||s[2].includes(".html")?"blank":s[2],video_name:"multimedia"===s[1]?null===i||void 0===i?void 0:i.heading1:"blank",video_category:"blank",publish_time:e((null===i||void 0===i?void 0:i.publishDate)?null===i||void 0===i?void 0:i.publishDate:null===i||void 0===i?void 0:i.published_date),word_count:null===i||void 0===i?void 0:i.article_content_count,logged_in_status:!0===_.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===p||void 0===p||null===(v=p.subscriptionDetails)||void 0===v?void 0:v.subscriptionStatus)?"is_subscribed":"non_subscribed",User_id:!0===_.isLoggedIn?p.user_id:"false",login_source:g})},j=function(i,l){var o="";i.authorName&&""!=i.authorName?o=i.authorName:(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors)&&(o=Object.values(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors).join());var t,a,n=null===i||void 0===i?void 0:i.articleUrl.split("/"),u=JSON.parse(localStorage.getItem("persist:bs")),r=JSON.parse(u.auth),v=null===r||void 0===r?void 0:r.userData;"undefined"!==typeof dataLayer&&dataLayer.push({event:(null===i||void 0===i||null===(t=i.articleUrl)||void 0===t?void 0:t.includes("podcast"))?"podcast_play":"text_to_speech",page_url:null===i||void 0===i?void 0:i.articleUrl,play_button:"true"===l&&"True",stop_button:"false"===l&&"True",click_type:"blank",content_type:"Y"===(null===i||void 0===i?void 0:i.is_paid)?"paid":"free",article_title:null===i||void 0===i?void 0:i.description,article_heading:null===i||void 0===i?void 0:i.heading1,author_name:o,article_id:null===i||void 0===i?void 0:i.articleId,article_publish_date:d((null===i||void 0===i||i.publishDate,null===i||void 0===i?void 0:i.publishDate)),article_category:"article"===n[1]?n[2]:n[1],article_subcategory:"article"===n[1]||n[2].includes(".html")?"blank":n[2],video_name:"blank",video_category:"blank",publish_time:e((null===i||void 0===i||i.publishDate,null===i||void 0===i?void 0:i.publishDate)),word_count:null===i||void 0===i?void 0:i.article_content_count,User_id:!0===r.isLoggedIn&&v.user_id,logged_in_status:!0===r.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===v||void 0===v||null===(a=v.subscriptionDetails)||void 0===a?void 0:a.subscriptionStatus)?"is_subscribed":"non_subscribed"})},C=function(i,l){var o=localStorage.getItem("cutomer_type"),e=(localStorage.getItem("log_in_source"),localStorage.getItem("firstUser")),d=JSON.parse(localStorage.getItem("persist:bs")),t=JSON.parse(d.auth),a=null===t||void 0===t?void 0:t.userData,n="";n=!0===t.isLoggedIn?o&&null!=o&&"exipred"==o?"Expired user":!o||null==o||"revival"!=o&&"new subscription"!=o?"true"==e?"Registered/New user":"Registered/existing":o:"Guest User",setTimeout((function(){var l,o,e,d,u,r;dataLayer.push({event:"payment_failure",payment_gateway:null===i||void 0===i||null===(l=i.data)||void 0===l||null===(o=l.data)||void 0===o?void 0:o.payment_gateway,failure_reason:null===i||void 0===i||null===(e=i.data)||void 0===e||null===(d=e.data)||void 0===d?void 0:d.failure_reason,payment_method:null===i||void 0===i||null===(u=i.data)||void 0===u||null===(r=u.data)||void 0===r?void 0:r.payment_method,User_ID:!0===t.isLoggedIn&&a.user_id,customer_type:n})}),4e3)},T=function(i,l,o){var e,d=JSON.parse(localStorage.getItem("persist:bs")),t=JSON.parse(d.auth),a=null===t||void 0===t?void 0:t.userData;"undefined"!==typeof dataLayer&&dataLayer.push({link_category_name:o,event:"browse_stocks_and_mutual",category_word:!0===isNaN(i)&&i,category_number:!1===isNaN(i)&&i,page_url:l,User_id:!0===t.isLoggedIn&&a.user_id,logged_in_status:!0===t.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===a||void 0===a||null===(e=a.subscriptionDetails)||void 0===e?void 0:e.subscriptionStatus)?"is_subscribed":"non_subscribed"})},Y=function(i,l){"undefined"!==typeof dataLayer&&dataLayer.push({event:"ad_blocker_identifier",User_id:l,Device_category:i?"mobile":"desktop"})},x=function(i){var l,o,t,a,n=null===i||void 0===i||null===(l=i.defaultArticleCat)||void 0===l||null===(o=l.category_url)||void 0===o?void 0:o.split("/"),u=null===n||void 0===n?void 0:n[1],r=null===n||void 0===n?void 0:n[2],v="";(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors)&&(null===(t=Object.values(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors))||void 0===t?void 0:t.length)>0?v=Object.values(null===i||void 0===i?void 0:i.articleMappedMultipleAuthors).join():(null===i||void 0===i?void 0:i.authorName)&&""!=(null===i||void 0===i?void 0:i.authorName)&&(v=null===i||void 0===i?void 0:i.authorName);var s=JSON.parse(localStorage.getItem("persist:bs")),c=JSON.parse(s.auth),_=null===c||void 0===c?void 0:c.userData;setTimeout((function(){var l;dataLayer.push({event:"paywall_viewed",page_url:"https://www.business-standard.com"+(null===i||void 0===i?void 0:i.articleUrl),content_type:"Y"===(null===i||void 0===i?void 0:i.isPaid)||"Y"===(null===i||void 0===i?void 0:i.is_paid)?"paid":"free",article_title:(null===i||void 0===i?void 0:i.description)&&""!=(null===i||void 0===i?void 0:i.description)?null===i||void 0===i?void 0:i.description:"blank",article_heading:null===i||void 0===i?void 0:i.heading1,author_name:v,article_id:null===i||void 0===i?void 0:i.articleId,article_publish_date:d(null===i||void 0===i?void 0:i.publishDate),article_category:u||"blank",article_subcategory:r||"blank",video_name:(Array.isArray(a),"blank"),video_category:"blank",publish_time:e(null===i||void 0===i?void 0:i.publishDate),word_count:null===i||void 0===i?void 0:i.article_content_count,logged_in_status:!0===c.isLoggedIn?"is_logged_in":"non_logged_in",subscription_status:"Paid"===(null===_||void 0===_||null===(l=_.subscriptionDetails)||void 0===l?void 0:l.subscriptionStatus)?"is_subscribed":"non_subscribed",User_id:!0===c.isLoggedIn?_.user_id:"false"})}),4e3)},R=function(i,l){localStorage.getItem("log_in_source");var o=JSON.parse(localStorage.getItem("persist:bs")),e=JSON.parse(o.auth),d=null===e||void 0===e?void 0:e.userData;setTimeout((function(){dataLayer.push({event:"profile_updated",User_id:!0===e.isLoggedIn?d.user_id:"false",gender:null===i||void 0===i?void 0:i.gender,date_of_birth:l,"country/region":null===i||void 0===i?void 0:i.country_name,state:null===i||void 0===i?void 0:i.state_name,occupation:null===i||void 0===i?void 0:i.job_title,industry:null===i||void 0===i?void 0:i.industry_name,annual_income:null===i||void 0===i?void 0:i.income_group,email_id:!0===e.isLoggedIn?d.email_id:""})}),4e3)},B=function(i,l,o){localStorage.getItem("log_in_source");var e=localStorage.getItem("firstUser"),d=JSON.parse(localStorage.getItem("persist:bs")),t=JSON.parse(d.auth),a=null===t||void 0===t?void 0:t.userData,n=localStorage.getItem("cutomer_type"),u="";u=!0===t.isLoggedIn?n&&null!=n&&"exipred"==n?"Expired user":!n||null==n||"revival"!=n&&"new subscription"!=n?"true"==e?"Registered/New user":"Registered/existing":n:"Guest User",dataLayer.push({event:"subscription_expired",page_url:window.location.href,User_id:null===a||void 0===a?void 0:a.user_id,subscription_end_date:i,plan_type:l,cancellation_type:o,customer_type:u})},E=function(i,l){"undefined"!==typeof dataLayer&&dataLayer.push({event:"sub_sections_article_click",sub_section:"other_section"==l?"more_from_this_section_click":"related"==l?"also_read_click":l,page_url:(null===i||void 0===i?void 0:i.article_url)?null===i||void 0===i?void 0:i.article_url:null===i||void 0===i?void 0:i.item_url,page_title:(null===i||void 0===i?void 0:i.heading1)?null===i||void 0===i?void 0:i.heading1:null===i||void 0===i?void 0:i.item_heading})},F=function(i,l){"undefined"!==typeof dataLayer&&dataLayer.push({event:"sub_sections_article_click",sub_section:"other_section"==l?"more_from_this_section_click":"related"==l?"also_read_click":l,page_url:(null===i||void 0===i?void 0:i.article_url)?null===i||void 0===i?void 0:i.article_url:null===i||void 0===i?void 0:i.item_url,article_text:(null===i||void 0===i?void 0:i.heading1)?null===i||void 0===i?void 0:i.heading1:null===i||void 0===i?void 0:i.item_heading})}}}]);