"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[76674,64737],{64737:function(e,n,i){i.d(n,{RG:function(){return v},Tq:function(){return d},U8:function(){return c},VN:function(){return r},j2:function(){return u},ki:function(){return l},qZ:function(){return a},uA:function(){return s}});var o=i(26042),t=i(621),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",l=window.location.href,a=l.split("/"),d=a.length>3?a[4].toLowerCase().replaceAll("-"," "):"";null===dataLayer||void 0===dataLayer||dataLayer.push({event:"widget_clicked",widget_name:"read_more",page_type:n,section_name:i.toLowerCase(),sub_section_name:d||o,cta_text:e||"read_more",data_source:"non_amp",user_login_status:(0,t.ej)("token")&&!(0,t.ej)("token").includes("amp-")?"logged_in":"non_logged_in",user_id:(0,t.ej)("token")&&!(0,t.ej)("token").includes("amp-")?(0,t.ej)("_ht_clientid"):"",login_status:(0,t.ej)("token")&&!(0,t.ej)("token").includes("amp-")?"logged_in":"non_logged_in",clientID:(0,t.ej)("token")&&!(0,t.ej)("token").includes("amp-")?(0,t.ej)("_ht_clientid"):"NA"})},a=function(e){dataLayer.push((0,o.Z)({},e))},d=function(){return(0,t.ej)("token")&&!(0,t.ej)("token").includes("amp-")&&(0,t.ej)("_ht_clientid")&&!isNaN((0,t.ej)("_ht_clientid"))?"logged_in":"guest"},r=function(){return(0,t.ej)("token")&&!(0,t.ej)("token").includes("amp-")&&(0,t.ej)("_ht_clientid")&&!isNaN((0,t.ej)("_ht_clientid"))?(0,t.ej)("_ht_clientid"):""},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"onboarding_journey_triggered",n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,d=(0,t.ej)("token"),r=(0,t.ej)("_ht_clientid"),u=d&&!d.includes("amp-")&&r&&!isNaN(r);dataLayer.push({event:e,event_label_2:"".concat(n),sso_origin:i,page_type:o||null,section:l||null,sub_section_name:a||"",logged_in_status:u?"logged_in":"non_logged_in",user_ID:u?r:"",login_status:u?"logged_in":"non_logged_in",clientID:u?r:"NA",data_source:"non_amp"})},c=function(e,n,i){var o=(0,t.ej)("token"),l=(0,t.ej)("_ht_clientid"),a=o&&!o.includes("amp-")&&l&&!isNaN(l),d={clientID:a?l:"NA",name:null===e||void 0===e?void 0:e.name,token_id:a?o:"NA",cdp_platform:i?"mweb":"web",cdp_source:n,cdp_user_loggedIn:a?"logged_in":"non_logged_in",cdp_referrer:"HT",event_label_2:e};(null===window||void 0===window?void 0:window.dapTracker)&&dapTracker.track("HTOnboardingJourneyTriggeredSend",d,"event")},s=function(e,n,i,o){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";dataLayer.push({event:"widget_clicked",widget_name:"ipl_2025_recirculation_widget",data_source:"non_amp",page_type:n||"",section:i||"",sub_section_name:o||"",story_title:l,logged_in_status:(0,t.ej)("token")&&!(0,t.ej)("token").includes("amp-")?"logged_in":"non_logged_in",user_ID:(0,t.ej)("token")&&!(0,t.ej)("token").includes("amp-")?(0,t.ej)("_ht_clientid"):"",event_label_2:e})},v=function(e){var n=e.widgetName,i=e.pageType,o=e.placementNumber,t=e.pageUrl,l=e.id,a=e.storyUrl,d=e.position,r={event:"promoClick",widgetName:n,pageType:i,placementNumber:o,backFill:e.backFill,pageUrl:t,data_source:"non_amp",ecommerce:{promoClick:{promotions:[{id:l,name:n,creative:a,position:d}]}}};return null===dataLayer||void 0===dataLayer||dataLayer.push(r),!0}},76674:function(e,n,i){i.r(n),i.d(n,{default:function(){return B}});var o=i(47568),t=i(26042),l=i(69396),a=i(34051),d=i.n(a),r=i(85893),u=i(5152),c=i.n(u),s=i(67294),v=i(39480),m=i(55786),f=i(621),p=function(e){var n=e||{},i=n.pageType,o=n.section,t=n.subSection,l=n.articleTitle,a=n.articleId,d=(0,s.useCallback)((function(e){var n,d=e.target;if(d&&"A"===d.tagName&&(null===(n=d.classList)||void 0===n?void 0:n.contains("manualbacklink"))&&window.dataLayer){var r=d.href||"",u=(0,f.ej)("token"),c=u&&!u.includes("amp-"),s=(0,f.ej)("_ht_clientid")||"NA",v=c?"logged_in":"non_logged_in",m=c?s:"",p={event:"widget_clicked",widget_name:"also_read",page_type:i,section_name:(null===o||void 0===o?void 0:o.toLowerCase())||o,sub_section_name:(null===t||void 0===t?void 0:t.toLowerCase())||t,article_title:l,story_id:a,target_url:r,data_source:"non_amp",user_login_status:v,user_id:m,login_status:v,clientID:m};window.dataLayer.push(p)}}),[i,o,t,l,a]);return{handleAlsoReadClick:d,hasManualBacklink:(0,s.useCallback)((function(e){return e.toLowerCase().includes("manualbacklink")}),[])}},g=i(29815),h=i(47880),y="\xa7\xa7\xa7TABLE\xa7\xa7\xa7";function b(e){for(var n=[],i=0;i").concat(e[i+1],"

")),i+=2):(n.push(e[i]),i+=1)}return n}var _=function(e){var n,i=e.element,o=e.bgClassName,t=void 0===o?"":o;return(0,s.useMemo)((function(){var e,n;if("paragraph"!==(null===i||void 0===i?void 0:i.type))return[];var o=null===i||void 0===i||null===(e=i.paragraph)||void 0===e||null===(n=e.body)||void 0===n?void 0:n.trim();return o?(o.includes("

","")]:function(e){var n=function(e){var n,i=[],o=/[\s\S]*?<\/figure>/g,t=0;for(;null!==(n=o.exec(e));){n.index>t&&i.push(e.slice(t,n.index));var l=n[0].replace(/

([\s\S]*?)<\/h2><\/th>/g,"$1");i.push("".concat(y).concat(l)),t=n.index+n[0].length}t"===t?i=!1:i||(n+=t)}return n.trim().replace(/\s+/g," ")}(e);return n.split(/\s+/).filter((function(e){return e.length>0})).length},q=function(e){var n,a,u,c,f,g,b,q,B,V,z,W,Z,O,Q=e.storyId,$=e.element,J=void 0===$?{}:$,K=e.index,X=e.elementsLength,Y=e.containAffiliateEmbed,ee=e.containSnapDealAds,ne=e.affiliatePartnerIndex,ie=e.showInArticlePromo,oe=void 0!==ie&&ie,te=e.isMobile,le=e.showAd,ae=e.AdComponent,de=e.wordCountRef,re=e.LeadImageComponent,ue=e.adCountRef,ce=e.HtAutoWidget,se=e.showHtAutoWidget,ve=e.extraFeturesToggler,me=e.metadata,fe=e.isPollQuizDragged,pe=e.pageUrl,ge=e.isParagraphPresent,he=e.paywallType,ye=e.tagsMap,be=e.productData,_e=e.affiliateData,we=e.affiliateIndex,je=e.trackingDetails,xe=(e.indiaLocation,e.showRecirculationWidget),ke=e.fromPerptual,Me=void 0!==ke&&ke,Ce=e.perpetualStoryIndex,Ne=void 0===Ce?0:Ce,Le=e.viewMore,Se=void 0!==Le&&Le,Ae=e.setStoryState,Ie=e.isLastElement,Te=void 0!==Ie&&Ie,Fe=e.onLastElementProcessed,Re=void 0===Fe?function(){}:Fe,Ee=(e.taboolaLoadMoreClick,e.collapseArticle),De=e.disableEcho,He=void 0!==De&&De,Pe=e.viewMoreOverlay,Ue=e.newArticleDesign,Ge=void 0!==Ue&&Ue,qe=e.showMastheadAd,Be=void 0!==qe&&qe,Ve=e.MastheadAd,ze=(e.mastheadAdShown,e.StoryPollQuizCompoment),We=e.isHTAutoStory,Ze=void 0!==We&&We,Oe=e.autoLeadImageCheckOffers,Qe=w.Z.get().isLanguages,$e=Ge?150:120,Je=(null===me||void 0===me?void 0:me.section)||"",Ke=(null===me||void 0===me?void 0:me.subSection)||"",Xe=(null===me||void 0===me?void 0:me.premiumStory)||!1,Ye=(null===J||void 0===J||null===(n=J.bgParaColor)||void 0===n||null===(a=n.name)||void 0===a?void 0:a.toLowerCase())||"",en=he?"hide":"",nn="".concat(Ye,"BgPane"),on=(0,s.useState)(!0),tn=on[0],ln=on[1],an=0,dn=function(){an++},rn=0,un=(0,s.useRef)(0),cn=(0,s.useContext)(m.gb)||{htConfigData:{}},sn=cn.htConfigData,vn=cn.showAdFree,mn=(null===sn||void 0===sn||null===(u=sn.sectionPoll)||void 0===u?void 0:u.excludedSections)||[],fn=((null===sn||void 0===sn?void 0:sn.newAdLogicSections)||[]).includes(Je.toLowerCase()),pn=(0,s.useState)(!0),gn=pn[0],hn=pn[1];(0,s.useEffect)((function(){var e=function(){var e=(0,o.Z)(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.e(65439).then(i.t.bind(i,65439,23));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();xe&&e()}),[xe]),(0,s.useEffect)((function(){ln(!1)}),[]),(0,s.useEffect)((function(){Te&&Re()}),[Te,Re]);var yn=(0,s.useMemo)((function(){return ze}),[ze]);(0,s.useEffect)((function(){Ze&&hn(!1)}),[Ze]);var bn=(0,s.useMemo)((function(){return"poll"===(null===J||void 0===J?void 0:J.type)||"quiz"===(null===J||void 0===J?void 0:J.type)?{type:J.type,id:null===J||void 0===J?void 0:J.id}:null}),[null===J||void 0===J?void 0:J.type,null===J||void 0===J?void 0:J.poll,null===J||void 0===J?void 0:J.quiz]),_n=(0,s.useMemo)((function(){return(null===bn||void 0===bn?void 0:bn.type)?"".concat(null===bn||void 0===bn?void 0:bn.type,"Div"):"pollDiv"}),[null===bn||void 0===bn?void 0:bn.type]),wn=(0,s.useMemo)((function(){return null===bn||void 0===bn?void 0:bn.id}),[null===bn||void 0===bn?void 0:bn.id]);(0,s.useEffect)((function(){var e=!0,n=function(){var n=(0,o.Z)(d().mark((function n(){var o,t;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=window.location?new URLSearchParams(window.location.search):new URLSearchParams(""),!(null===o||void 0===o?void 0:o.get("moveto"))){n.next=8;break}return n.next=6,i.e(8233).then(i.bind(i,8233));case 6:t=n.sent,e&&(yn=t.default);case 8:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return n(),function(){e=!1}}),[]);var jn=function(e,n){return(0,r.jsxs)(r.Fragment,{children:[e(),!Ge&&!Qe&&(!Me&&!Ee||!Se)&&gn&&!vn&&(0,r.jsx)("div",{className:"middleTaboola darkBg promotedWidget mb10",id:"taboola-below-article-carousel-".concat(n)})]})},xn=(0,s.useCallback)((function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(tn)return null;var i=(de.current||0)+e;if(n)return de.current=i,null;var o=i>=$e,t=o&&le&&"function"===typeof ae;if(de.current=t?0:i,!t)return null;var l=1===ue.current&&(ge||X>1);return l?jn(ae,Q):ae()}),[le,ae,de,ue,X,Ne]),kn=_({element:J,bgClassName:Ye}),Mn=p(je),Cn=Mn.handleAlsoReadClick,Nn=Mn.hasManualBacklink,Ln=(0,s.useCallback)((function(){return yn&&!ve.disablePoll&&(0,r.jsx)(yn,{tags:"pollDiv",sectionId:(null===me||void 0===me?void 0:me.sectionId)||"",subsectionId:(null===me||void 0===me?void 0:me.subSectionId)||""})}),[ve,me,yn]),Sn=(0,s.useCallback)((function(e){var n=G(e);return tn||Me||he||fe||Y||mn.includes(Je.toLowerCase())||2!==ue.current||0!==an?(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("div",{className:"artContent ".concat(nn," ").concat(en),children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})}),!he&&xn(n)]},"para-".concat(Ye)):(dn(),(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("div",{className:"artContent ".concat(nn),children:(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})}),Ln(),xn(n)]},"para-0-".concat(Ye)))}),[Ye,xn]),An=(0,s.useCallback)((function(){return(0,r.jsx)(F,{premiumStory:Xe,paywallType:he,pageUrl:pe,pageId:Q,section:Je,subSection:Ke,storyType:null===me||void 0===me?void 0:me.storyType,agency:null===me||void 0===me?void 0:me.agency})}),[he]),In=(0,s.useCallback)((function(e,n,i){var o=(0,h.hy)(e),t=Nn(e);return Ge?(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)(o,{className:"content",dangerouslySetInnerHTML:{__html:e},onClick:t?Cn:void 0}),Y&&(0,r.jsx)(k,{metadata:me,storyId:Q,isCarousel:!1}),le&&Me&&xn(i),he&&1===(null===kn||void 0===kn?void 0:kn.length)&&An()]},"para-".concat(n,"-").concat(Q)):(0,r.jsxs)(s.Fragment,{children:[(0,r.jsxs)("div",{className:"storyParagraphFigure",children:[(0,r.jsx)(o,{className:"content",dangerouslySetInnerHTML:{__html:e},onClick:t?Cn:void 0}),null===re||void 0===re?void 0:re()]}),Y&&(0,r.jsx)(k,{metadata:me,storyId:Q,isCarousel:!1}),Ze&&Oe,le&&!Ze&&(null===ae||void 0===ae?void 0:ae()),se&&ce&&1===kn.length&&(0,r.jsx)("div",{className:"".concat(en),children:ce()}),he&&1===(null===kn||void 0===kn?void 0:kn.length)&&An()]},"para-".concat(n,"-").concat(Q))}),[re,le,ae,Nn,Cn,Ve,se,ce,kn,Y]),Tn=(0,s.useCallback)((function(e,n,i){var o=i;se&&(o+=80);var t=(0,h.hy)(e),l=Nn(e);return(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)(t,{className:"content ".concat(he?"paywall":""),dangerouslySetInnerHTML:{__html:e},onClick:l?Cn:null}),he&&An(),!Me&&xe&&!He&&(0,r.jsx)("div",{className:"mb10 widgetEdgetoEdge ".concat(en),children:(0,r.jsx)(T,{feedUrl:"https://www.hindustantimes.com/static-content/10s/prod/circulationWidget/8307_widgetData.json",viewAllUrl:"".concat(v.M5w,"/cricket/ipl"),trackingWidget:function(e){return(0,j.uA)(e,"story",null===je||void 0===je?void 0:je.section,null===je||void 0===je?void 0:je.subSection,null===je||void 0===je?void 0:je.articleTitle)}})}),se&&ce&&kn.length>1&&(0,r.jsx)("div",{className:"".concat(en),children:ce()}),!he&&(Ge?Be?Ve(!0):null===ae||void 0===ae?void 0:ae():xn(o))]},"para-".concat(n,"-").concat(Q))}),[Xe,se,ce,oe,He,xn,Nn,Cn,kn]),Fn=(0,s.useCallback)((function(e,n,i){var o=(0,h.hy)(e),t=Nn(e);return(Ee||Me)&&Se&&(Y&&3===un.current||ue.current>=2&&1===rn)?(0,r.jsx)(r.Fragment,{}):tn||Me||he||fe||Y||mn.includes(Je.toLowerCase())||2!==ue.current||0!==an||0!==rn?(2===ue.current&&rn++,(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)(o,{className:"content ".concat(en),dangerouslySetInnerHTML:{__html:e},onClick:t?Cn:void 0}),Ze&&0===n&&K<=1&&ce(),!he&&xn(i)]},"para-".concat(n,"-").concat(Q))):(dn(),(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)(o,{className:"content ".concat(en),dangerouslySetInnerHTML:{__html:e},onClick:t?Cn:void 0}),Ln(),xn(i)]},"para-".concat(n,"-").concat(Q)))}),[xn,Nn,Cn,Se,Ee,Ze,ce]),Rn=(0,s.useCallback)((function(){return Ye?Sn(kn[0]):(0,r.jsx)("div",{className:"artContent",children:kn.map((function(e,n){var i="para-".concat(K,"-").concat(n,"-").concat(Q);if(e.startsWith(y)){var o=e.slice(y.length);return(0,r.jsx)("div",{className:"".concat(en),children:(0,r.jsx)(A,{body:o,isMobile:te,containAffiliateEmbed:Y})},i)}var t=G(e);return 0===n&&0===K?(0,r.jsx)(s.Fragment,{children:In(e,n,t)},i):1===n&&0===K?(0,r.jsx)(s.Fragment,{children:Tn(e,n,t)},i):(0,r.jsx)(s.Fragment,{children:Fn(e,n,t)},i)}))})}),[kn,Ye,K,te,Y,en,Sn,In,Tn,Fn]);(0,s.useEffect)((function(){!Pe&&(Ee||Me)&&Se&&(Y||ue.current>=2&&(1===rn||2===K))&&Ae((function(e){return(0,l.Z)((0,t.Z)({},e),{viewMoreOverlay:!0,viewMoreIndex:K+1})}))}),[Ee,Me,Se,ue.current,rn,de.current,Ae,Pe]);var En=(0,s.useMemo)((function(){return kn.length>0&&Rn()}),[kn,Rn]),Dn=(0,s.useMemo)((function(){return"image"===(null===J||void 0===J?void 0:J.type)}),[null===J||void 0===J?void 0:J.type]),Hn=(0,s.useMemo)((function(){return Dn&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(D,{inlineImage:null===J||void 0===J?void 0:J.image,isMobile:te,hideClass:en}),!he&&xn(80,fn)]})}),[Dn,xn]),Pn=(0,s.useMemo)((function(){var e;return"embed"===(null===J||void 0===J?void 0:J.type)&&(null===J||void 0===J||null===(e=J.embed)||void 0===e?void 0:e.body)?J:null}),[null===J||void 0===J?void 0:J.type,null===J||void 0===J||null===(c=J.embed)||void 0===c?void 0:c.body]),Un=(0,s.useMemo)((function(){var e;return"table"===(null===J||void 0===J?void 0:J.type)&&(null===J||void 0===J||null===(e=J.paragraph)||void 0===e?void 0:e.body)?J:null}),[null===J||void 0===J?void 0:J.type,null===J||void 0===J||null===(f=J.paragraph)||void 0===f?void 0:f.body]),Gn=(0,s.useMemo)((function(){if("emeritus"===(null===Pn||void 0===Pn?void 0:Pn.subType)){ne.index++;var e={storyId:Q,metadata:me};return(0,r.jsx)(S,{embedData:Pn,storyData:e,position:ne.index})}return(0,r.jsx)(r.Fragment,{})}),[Pn,Y,Q,ne]),qn=(0,s.useMemo)((function(){return Pn&&!he&&(0,r.jsxs)("div",{children:[(0,r.jsx)(L,{element:Pn}),xn(80,fn)]})}),[Pn,xn]),Bn=(0,s.useMemo)((function(){return Un&&(0,r.jsxs)("div",{className:"".concat(en),children:[(0,r.jsx)(A,{body:Un.paragraph.body,isMobile:te,containAffiliateEmbed:Y}),!he&&xn(80,fn)]})}),[Un,te,xn]),Vn=(0,s.useMemo)((function(){return"quote"===(null===J||void 0===J?void 0:J.type)?J:null}),[null===J||void 0===J?void 0:J.type,null===J||void 0===J?void 0:J.quote]),zn=(0,s.useMemo)((function(){return"alsoread"===(null===J||void 0===J?void 0:J.type)?{alsoReadStoryIdList:J.alsoReadStoryIdList,alsoReadStories:J.alsoReadStories,alsoReadStoriesUrl:J.alsoReadStoriesUrl}:null}),[null===J||void 0===J?void 0:J.type,null===J||void 0===J?void 0:J.alsoReadStoryIdList,null===J||void 0===J?void 0:J.alsoReadStories,null===J||void 0===J?void 0:J.alsoReadStoriesUrl]),Wn=(0,s.useMemo)((function(){return"listicleElement"===(null===J||void 0===J?void 0:J.type)?{listicleHeadline:J.listicleHeadline,listicleArray:J.listicleArray}:null}),[null===J||void 0===J?void 0:J.type,null===J||void 0===J?void 0:J.listicleHeadline,null===J||void 0===J?void 0:J.listicleArray]),Zn=(0,s.useMemo)((function(){return"faq"===(null===J||void 0===J?void 0:J.type)?{faqs:J.faqs,faqSectionHeading:J.faqSectionHeading}:null}),[null===J||void 0===J?void 0:J.type,null===J||void 0===J?void 0:J.faqs,null===J||void 0===J?void 0:J.faqSectionHeading]),On=(0,s.useMemo)((function(){var e;return"video"===(null===J||void 0===J?void 0:J.type)&&(null===J||void 0===J||null===(e=J.video)||void 0===e?void 0:e.saranyuEmbedBody)?J.video.saranyuEmbedBody:null}),[null===J||void 0===J?void 0:J.type,null===J||void 0===J||null===(g=J.video)||void 0===g?void 0:g.saranyuEmbedBody]),Qn=(0,s.useMemo)((function(){var e,n,i;return"video"===(null===J||void 0===J?void 0:J.type)&&((null===J||void 0===J||null===(e=J.video)||void 0===e?void 0:e.mp4Video)||/\.(m3u8|mp4)(\?|$)/i.test(null===J||void 0===J||null===(n=J.video)||void 0===n?void 0:n.url))&&(null===J||void 0===J||null===(i=J.video)||void 0===i?void 0:i.url)?J.video:null}),[null===J||void 0===J?void 0:J.type,null===J||void 0===J||null===(b=J.video)||void 0===b?void 0:b.mp4Video,null===J||void 0===J||null===(q=J.video)||void 0===q?void 0:q.url]),$n=(0,s.useMemo)((function(){var e,n;return"document"===(null===J||void 0===J?void 0:J.type)?null===J||void 0===J||null===(e=J.image)||void 0===e||null===(n=e.images)||void 0===n?void 0:n.original:null}),[null===J||void 0===J?void 0:J.type,null===J||void 0===J||null===(B=J.image)||void 0===B||null===(V=B.images)||void 0===V?void 0:V.original]),Jn=(0,s.useMemo)((function(){return Vn&&(0,r.jsxs)("div",{className:"".concat(en),children:[(0,r.jsx)(N,{element:Vn}),!he&&xn(80,fn)]})}),[Vn,xn]),Kn=(0,s.useMemo)((function(){var e;return zn&&(null===(e=zn.alsoReadStoryIdList)||void 0===e?void 0:e.length)>0&&(0,r.jsxs)("div",{className:"".concat(en),children:[(0,r.jsx)(M,{alsoReadStoryIdList:zn.alsoReadStoryIdList,alsoReadStories:zn.alsoReadStories,alsoReadStoriesUrl:zn.alsoReadStoriesUrl}),!he&&xn(80,fn)]})}),[zn,xn]),Xn=(0,s.useMemo)((function(){return Wn&&(0,r.jsxs)("div",{className:"".concat(en),children:[(0,r.jsx)(C,{listicleHeadline:Wn.listicleHeadline,listicleArray:Wn.listicleArray}),!he&&xn(80,fn)]})}),[Wn,xn]),Yn=(0,s.useMemo)((function(){return yn&&wn&&!he&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(yn,{tags:_n,id:wn}),xn(80,fn)]})}),[wn,xn,yn,_n]),ei=(0,s.useMemo)((function(){return Zn&&(0,r.jsxs)("div",{className:"".concat(en),children:[(0,r.jsx)(I,{data:Zn.faqs,heading:Zn.faqSectionHeading||"FAQ"}),!he&&xn(80,fn)]})}),[Zn,xn]),ni=(0,s.useCallback)((function(e){var n,i,o,t,l;return"embed"===(null===e||void 0===e?void 0:e.type)&&((null===e||void 0===e||null===(n=e.amazonAds)||void 0===n?void 0:n.length)>0||(null===e||void 0===e||null===(i=e.flipkartAds)||void 0===i?void 0:i.length)>0||(null===e||void 0===e||null===(o=e.cromaAds)||void 0===o?void 0:o.length)>0||(null===e||void 0===e||null===(t=e.flipkartAds25)||void 0===t?void 0:t.length)>0||(null===e||void 0===e||null===(l=e.d2cBrandsAds)||void 0===l?void 0:l.length)>0)}),[]),ii=(0,s.useCallback)((function(e){var n,i,o,t,l;return(null===e||void 0===e||null===(n=e.amazonAds)||void 0===n?void 0:n.length)>0?e.amazonAds:(null===e||void 0===e||null===(i=e.flipkartAds)||void 0===i?void 0:i.length)>0?e.flipkartAds:(null===e||void 0===e||null===(o=e.cromaAds)||void 0===o?void 0:o.length)>0?e.cromaAds:(null===e||void 0===e||null===(t=e.flipkartAds25)||void 0===t?void 0:t.length)>0?e.flipkartAds25:(null===e||void 0===e||null===(l=e.d2cBrandsAds)||void 0===l?void 0:l.length)>0?e.d2cBrandsAds:null}),[]),oi=(0,s.useCallback)((function(e){e&&(we.affListicle=e,1===e.length?we.affListicleIndex++:we.affMultiCarouselIndex++)}),[we]),ti=(0,s.useMemo)((function(){if(Me&&Se&&un.current>2)return null;if(ni(J)){var e=ii(J);oi(e)}return Me&&un.current++,(0,r.jsx)(x,{metadata:me,storyId:Q,productData:be,tagsMap:ye,index:we.affListicleIndex,content:J,affListicle:we.affListicle,affMultiCarouselIndex:we.affMultiCarouselIndex,affiliateData:_e,affiliateIndex:we,perpetualStoryIndex:Ne,htConfigData:sn})}),[Y,J,Q,be,ye,Me,Se,Ne,_e,we,ni,ii,oi]),li=(0,s.useMemo)((function(){return On&&(0,r.jsxs)("div",{className:"".concat(en),children:[(0,r.jsx)(R,{saranyuEmbedBody:On}),!he&&xn(80,fn)]})}),[On,xn]),ai=(0,s.useMemo)((function(){var e,n,i,o,t,l,a,d,u;return"video"===(null===J||void 0===J?void 0:J.type)&&(null===J||void 0===J||null===(e=J.video)||void 0===e?void 0:e.body)&&!(null===J||void 0===J||null===(n=J.video)||void 0===n?void 0:n.mp4Video)&&!/\.(m3u8|mp4)(\?|$)/i.test(null===J||void 0===J||null===(i=J.video)||void 0===i?void 0:i.url)&&!(null===J||void 0===J||null===(o=J.video)||void 0===o?void 0:o.saranyuEmbedBody)&&(0,r.jsxs)("div",{className:"".concat(en),children:[(0,r.jsx)(U,{body:null===(t=(0,h.w1)(null===J||void 0===J?void 0:J.video))||void 0===t?void 0:t.storyHtml,isVerticalVideo:(null===J||void 0===J||null===(l=J.video)||void 0===l?void 0:l.is_vertical_video)||(null===J||void 0===J||null===(a=J.video)||void 0===a?void 0:a.vertical_video)||Number(null===J||void 0===J||null===(d=J.video)||void 0===d?void 0:d.height)>Number(null===J||void 0===J||null===(u=J.video)||void 0===u?void 0:u.width)}),!he&&xn(80,fn)]})}),[J,xn]),di=(0,s.useMemo)((function(){var e,n,i,o;return Qn&&(0,r.jsxs)("div",{className:"".concat(en),children:[(0,r.jsx)(E,{src:Qn.url,poster:(null===(e=Qn.image)||void 0===e||null===(n=e.images)||void 0===n?void 0:n.original)||(null===(i=Qn.image)||void 0===i||null===(o=i.images)||void 0===o?void 0:o["960x540"])||"",isVerticalVideo:Qn.is_vertical_video||Qn.vertical_video||Number(Qn.height)>Number(Qn.width),width:Qn.width,height:Qn.height,caption:null===Qn||void 0===Qn?void 0:Qn.caption}),!he&&xn(80,fn)]})}),[Qn,xn]),ri=(null===J||void 0===J||null===(z=J.video)||void 0===z?void 0:z.is_vertical_video)||(null===J||void 0===J||null===(W=J.video)||void 0===W?void 0:W.vertical_video)||Number(null===J||void 0===J||null===(Z=J.video)||void 0===Z?void 0:Z.height)>Number(null===J||void 0===J||null===(O=J.video)||void 0===O?void 0:O.width),ui=(0,s.useMemo)((function(){var e,n,i,o;return"video"===(null===J||void 0===J?void 0:J.type)&&!(null===J||void 0===J||null===(e=J.video)||void 0===e?void 0:e.body)&&!(null===J||void 0===J||null===(n=J.video)||void 0===n?void 0:n.mp4Video)&&(null===J||void 0===J||null===(i=J.video)||void 0===i?void 0:i.embedUrl)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"saranyu-player-auto".concat(ri?" vertical-video":""," ").concat(en),onClick:function(){window.dataLayer&&window.dataLayer.push({event:"video_play",video_orientation:ri?"vertical":"horizontal",video_type:"youtube_embed",video_url:J.video.embedUrl})},children:(0,r.jsx)("iframe",{width:"100%",height:"100%",src:"".concat(J.video.embedUrl).concat(J.video.embedUrl.includes("?")?"&":"?","enablejsapi=1&autoplay=0&mute=1&playsinline=1"),title:(null===J||void 0===J||null===(o=J.video)||void 0===o?void 0:o.caption)||"Video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0})}),!he&&xn(80,fn)]})}),[J,xn]),ci=(0,s.useMemo)((function(){return $n&&(0,r.jsxs)("div",{className:"".concat(en),children:[(0,r.jsx)("div",{id:"pdf-container","data-src":$n,children:(0,r.jsx)(H,{pdfFile:$n,isMobile:te})}),!he&&xn(80,fn)]})}),[$n,te]),si=(0,s.useMemo)((function(){return"movie-review"==(null===J||void 0===J?void 0:J.type)&&(0,r.jsxs)("div",{className:"".concat(en),children:[(0,r.jsx)(P,{element:J}),!he&&xn(80,fn)]})}),[J,en,he,fn]);return(0,r.jsxs)(r.Fragment,{children:["paragraph"===(null===J||void 0===J?void 0:J.type)&&En,(!Me||!Se||ue.current<=2&&rn<1)&&(0,r.jsxs)(r.Fragment,{children:[Hn,Y&&ee&&"emeritus"===(null===J||void 0===J?void 0:J.subType)?Gn:qn,Y&&!ee&&("embed"===(null===J||void 0===J?void 0:J.type)||"review"===(null===J||void 0===J?void 0:J.type)||"faq"===(null===J||void 0===J?void 0:J.type))&&ti,Bn,Jn,Kn,Xn,Yn,!Y&&ei,li,ai,di,ui,ci,si]})]})};q.displayName="StoryElements";var B=(0,s.memo)(q)}}]);