1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4199],{51370:(e,t,n)=>{n.d(t,{A:()=>e_});var a,i,r,s,l=n(42969),o=n(67251),c=n(23745),d=n(80033),u=n(76966),p=n(73910),m=n(52672),h=n(14232),f=n(98477),g=n(74162),v=n(48230),x=n.n(v),y=n(77328),b=n.n(y),w=n(30848),j=n(51857),k=n(4518),N=n(32131),A=n(37876);let D=function(e){if(!e)return(0,A.jsx)("div",{});var t=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,n=e&&e.split("<blockquote");return N.default.map(n,function(e){if(e.includes("/blockquote>"))return{type:"mix_content",val:e&&e.split("/blockquote>")&&N.default.map(e.split("/blockquote>"),function(e,n){if(0===n){var a="",i=e.includes("twitter-tweet")?"twitter":e.includes("instagram-media")?"instagram":"";if("twitter"===i){var r=e&&e.split("/status/")[1];a=r&&r.split("?")[0]}if("instagram"===i){var s=e&&e.split("data-instgrm-permalink=")[1],l=s&&s.split(" ")[0],o=l&&(l.split("https://www.instagram.com/reel/")[1]||l.split("https://www.instagram.com/p/")[1]);a=o&&(o.includes("/")?o.split("/")[0]:o),l&&l.includes("https://www.instagram.com/reel/")?i="instagram-reel":l&&l.includes("https://www.instagram.com/p/")&&(i="instagram-post")}return{type:i,val:a}}for(;t.test(e);)e=e.replace(t,"");return{type:"html",val:e=e.replace('onload="getAds();"',"")}})};for(;t.test(e);)e=e.replace(t,"");return{type:"html",val:e=e.replace('onload="getAds();"',"")}})};var C=n(70236),_=n(45794),O=function(e){var t=(e||"").toLowerCase();return t.includes("youtube")||t.includes("ytvideo")},S=function(e){var t;return e?((t=e.replace(/<ul>/g,'<ul class="list-disc pl-5">').replace(/<ol>/g,'<ol class="list-decimal pl-5">').replace(/<li>/g,'<li class="mb-2">').replace(/<blockquote>/g,'<blockquote class="border-l-4 border-gray-400 pl-4 italic text-gray-600">').replace(/<button>/g,'<button class="bg-blue-500 text-white px-4 py-2 rounded hover:bg-blue-600 transition">').replace(/<p>\s*<\/p>/gi,"").replace(/<p>\s*<p>/gi,"<p>").replace(/<\/p>\s*<\/p>/gi,"</p>").replace(/<table([^>]*)>([\s\S]*?)<\/table>/gi,function(e,t,n){var a=String(t||"").replace(/\s*width\s*=\s*(["']).*?\1/gi,"").replace(/\s*style\s*=\s*(["'])([^"']*)\1/gi,function(e,t,n){var a=String(n).replace(/(?:min-)?width\s*:\s*[^;]+;?/gi,"").replace(/;{2,}/g,";").replace(/^;|;$/g,"").trim();return a?" style=".concat(t).concat(a).concat(t):""}),i=/class=["'][^"']*["']/.test(a)?"<table".concat(a.replace(/class=["']([^"']*)["']/,'class="$1 styled-table"'),">"):'<table class="styled-table"'.concat(a,">");return'<div class="styled-table-scroll">'.concat(i).concat(n,"</table></div>")}).replace(/<p([^>]*)>/gi,function(e,t){return/class=["'][^"']*["']/.test(t)?e.replace(/class=["']([^"']*)["']/,'class="$1"'):'<p class=""'.concat(t,">")}).replace(/<a(?![^>]*\btarget=)[^>]*?>/g,function(e){return e.replace(/>$/,'class="underline text-blue-500" target="_blank">')}).replace(/<img\s+([^>]*?)\s*onclick=["'][^"']*["']\s*([^>]*?)>/gi,function(e,t,n){var a=t+" "+n;return(a=a.replace(/https:\/\/[^"]+\/resize\/\d+x\d+_\d+\//gi,function(e){return e.replace(/\d+x\d+_\d+/,"1080x740_75")}),/class=["'][^"']*["']/.test(a))?"<img ".concat(a.replace(/class=["']([^"']*)["']/,'class="$1 w-[auto] m-[auto] "'),">"):'<img class="w-[auto] m-[auto] " '.concat(a,">")}))?t.replace(/(?:<!--\s*DH-EMBED-START-TAG\s*-->\s*)?<div\b(?=[^>]*\byt_embed\b)(?=[^>]*\bdata-video-id=(["'])([^"']+)\1)[^>]*>\s*<div\b[^>]*\byt-player\b[^>]*>\s*<\/div>\s*<\/div>(?:\s*<!--\s*DH-EMBED-END-TAG\s*-->)?/gi,function(e,t,n){return'<iframe src="https://www.youtube.com/embed/'.concat(n,'" title="YouTube video" width="100%" height="315" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen style="width:100%;aspect-ratio:16/9;height:auto;display:block;margin:20px auto" loading="lazy"></iframe>')}):t).replace(/<iframe\b([^>]*)>/gi,function(e,t){var n=t.match(/\bdata-src=(["'])([^"']+)\1/i);if(!n||/(?:^|\s)src\s*=\s*["'][^"']+["']/i.test(t))return e;var a=(0,_.A)(n,3),i=a[1],r=a[2],s=t.match(/\bdata-height=(["'])(\d+)\1/i),l=t.replace(/(?:^|\s)src\s*=\s*["'][^"']*["']\s*/gi," ").replace(/\bstyle=(["'])[^"']*\1/gi," ").trim(),o="width: 100%".concat(s?"; height: ".concat(s[2],"px"):"");return"<iframe ".concat(l,' style="').concat(o,'" src=').concat(i).c
1oncat(r).concat(i,">")}):""};let I=function(e){var t=e.html,n=e.scripts,a=e.scriptSrc;e.chunk;var i=(0,h.useState)(S(t)),r=i[0],s=i[1],l=(0,h.useRef)(null),o=function(){var e="";if(N.default.isEmpty(n)||(e=(e=['var NHCommand = {};console.log("executing external scripts");'].concat((0,C.A)(n),["onYouTubePlayerAPIReady && onYouTubePlayerAPIReady();"]).join(" ")).replace("window[name]()","console.log('name--\x3e',name);name&&window[name]&&window[name]()").replace("if(typeof NHCommand != 'undefined'","if(NHCommand&&JSON.stringify(NHCommand)=='{}'){console.log('Pausing Video by externally added script when NHCommand is not available');event&&event.target&&event.target.pauseVideo();}if(typeof NHCommand != 'undefined'").replace("id.pauseVideo();","console.log('id--\x3e',id,id&&id.pauseVideo);id&&id.pauseVideo&&id.pauseVideo();").replace("embedId.yt.push(ytp);","embedId.yt.push(ytp);console.log('embedId.yt--\x3e',embedId.yt);")),a&&O(a[0])&&!document.querySelector('script[src="'.concat(a[0],'"]'))){var i=document.createElement("script");i.src=a[0],document.body.appendChild(i)}if(t.includes("instagram-media")){if(document.querySelector('script[src="https://www.instagram.com/embed.js"]'))window.instgrm&&window.instgrm.Embeds.process();else{var r=document.createElement("script");r.src="https://www.instagram.com/embed.js",r.async=!0,r.onload=function(){window.instgrm&&window.instgrm.Embeds.process()},document.body.appendChild(r)}}var s=O(a&&a[0])||/youtube|ytvideo|YT\.Player|onYouTubePlayerAPIReady/i.test(e);l.current=setTimeout(function(){var t=function(){e&&window.eval(e)};if(s){new Promise(function(e){if(window.YT&&window.YT.Player)e();else{var t=window.onYouTubeIframeAPIReady;if(window.onYouTubeIframeAPIReady=function(){t&&t(),e()},!document.querySelector('script[src="https://www.youtube.com/iframe_api"]')){var n=document.createElement("script");n.src="https://www.youtube.com/iframe_api",document.body.appendChild(n)}}}).then(t);return}t()},500)};return(0,h.useEffect)(function(){s(S(t))},[t]),(0,h.useEffect)(function(){return o(),function(){l.current&&(clearTimeout(l.current),l.current=null)}},[t,n,a]),(0,A.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})};var T=n(67802),P=n(43505),U=n(51673),L=n(42157),R=n(90122),E=n(89099);function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var z=function(e){(0,u.A)(a,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,m.A)(a);return e=t?Reflect.construct(n,arguments,(0,m.A)(this).constructor):n.apply(this,arguments),(0,p.A)(this,e)});function a(){return(0,o.A)(this,a),n.apply(this,arguments)}return(0,c.A)(a,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.npDisplayName,a=e.isDesktop,i=this.props.router.asPath.split("?")[0].split("/").filter(Boolean),r=(0,_.A)(i,4),s=r[0],l=r[1],o=r[2],c=r[3];return"/".concat(s,"/").concat(l,"/").concat(o),(0,A.jsx)("nav",{className:"text-[0.65rem] whitespace-nowrap ".concat(a?"max-w-[690px] w-auto mt-[20px]":"px-[10px] pt-[20px] mb-[10px]"),children:(0,A.jsxs)("ul",{className:"flex items-center gap-[5px] overflow-hidden",children:[(0,A.jsx)("li",{children:(0,A.jsx)(x(),{href:"/",className:"text-black font-normal underline font-merriweather font-3 capitalize",children:"Home"})}),(0,A.jsx)("li",{children:"/"}),(0,A.jsx)("li",{children:(0,A.jsx)(x(),{href:"/".concat(s),className:"text-black font-normal underline font-merriweather font-3 capitalize",children:s})}),(0,A.jsx)("li",{children:"/"}),(0,A.jsx)("li",{children:(0,A.jsx)(x(),{href:"/news/".concat(l,"/").concat(o,"/").concat(c),className:"text-black font-normal underline font-merriweather font-3 capitalize",children:n})}),(0,A.jsx)("li",{children:"/"}),(0,A.jsx)("li",{className:"text-gray-500 truncate font-3 capitalize ",alt:t,children:t})]})})}}]),a}
1(h.Component);let B=function(e){var t=(0,E.useRouter)();return(0,A.jsx)(z,H(H({},e),{},{router:t}))};var V=n(89230);function W(e){var t=e.onBack,n=e.whatsappCount,a=e.onWhatsAppClick,i=e.onMoreClick,r=e.shareUrl,s=e.shareTitle,l=(e.isDarkTheme,e.className),o=e.selectedCountry,c=e.selectedLang,d=e.directDetailsLanding,u=void 0!==d&&d,p=r&&s?"https://api.whatsapp.com/send?text=".concat(encodeURIComponent(s+" "+r)):null;return(0,A.jsxs)("header",{className:"detail-page-header header-bar-theme border-b fixed top-0 z-10 flex items-center justify-between w-full px-4 py-3 z-[9999] text-black ".concat(void 0===l?"":l),children:[(0,A.jsx)("div",{className:"flex-shrink-0",children:(0,A.jsx)("button",{type:"button",onClick:function(){var e,n,a,i,r,s,l,d,p,m,h;if(t){t();return}if(u||!function(e){if(!e||"string"!=typeof e)return!1;try{return new URL(e,window.location.origin).origin===window.location.origin}catch(t){return e.startsWith("/")}}(null===(e=window.__dhpwa__)||void 0===e||null===(e=e.history)||void 0===e?void 0:e.previous)){(0,j.SF)({explorebutton_click:"detail header back home"},"EXPLOREBUTTON_CLICK"),window.location.assign((l=(n=o,a=c?V.A[c]:null,i=(window.location.pathname||"").split("/").filter(Boolean),!n&&i[1]&&(n=i[1]),!a&&i[2]&&(a=i[2]),window.__STATE&&(!n&&window.__STATE.selectedCountry&&(n=window.__STATE.selectedCountry),!a&&window.__STATE.selectedLang&&(
1a=V.A[window.__STATE.selectedLang])),s={country:n||"india",languageSegment:a||"english"}).country,d=s.languageSegment,m=(p=window.location.pathname||window.location.pathname).includes("/viral/")?"/viral/".concat(l,"/").concat(d,"/all"):p.includes("/buzz/")?"/buzz/".concat(l,"/").concat(d,"/news"):"/news/".concat(l,"/").concat(d,"/news"),h=(null===(r=window.location.hostname)||void 0===r?void 0:r.includes("dailyhunt"))?window.location.origin:"https://m.dailyhunt.in",(0,P.hC)("".concat(h).concat(m),{mode:"pwa",action:"click"})));return}(0,j.SF)({explorebutton_click:"detail header back"},"EXPLOREBUTTON_CLICK"),window.history&&window.history.back()},className:"rounded p-1","aria-label":"Back",children:(0,A.jsx)("span",{className:"detail-back block w-[30px] h-[30px]","aria-hidden":!0})})}),(0,A.jsxs)("div",{className:"flex items-center gap-4 flex-shrink-0",children:[p?(0,A.jsxs)("a",{href:p,target:"_blank",rel:"noopener noreferrer",onClick:a,className:"flex items-center gap-1.5 hover:opacity-80","aria-label":"Share on WhatsApp",children:[(0,A.jsx)("span",{className:"detail-whatsapp block w-6 h-6","aria-hidden":!0}),null!=n&&n>0&&(0,A.jsx)("span",{className:"text-sm font-medium",children:n})]}):(0,A.jsxs)("button",{type:"button",onClick:a,className:"flex items-center gap-1.5 p-1 hover:opacity-80","aria-label":"WhatsApp",children:[(0,A.jsx)("span",{className:"detail-whatsapp block w-6 h-6","aria-hidden":!0}),null!=n&&n>0&&(0,A.jsx)("span",{className:"text-sm font-medium",children:n})]}),(0,A.jsx)("button",{type:"button",onClick:i,className:"p-1 rounded","aria-label":"More options",children:(0,A.jsx)("span",{className:"detail-more block w-6 h-6","aria-hidden":!0})})]})]})}var G=n(3008);function Y(e){var t=e.hashtag,n=e.isDesktop,a=e.host;return(0,A.jsxs)("section",{className:"mb-[30px] border-b-[5px] border-gray-300 pb-[20px] ".concat(n?"":"px-[20px]"),children:[(0,A.jsx)(G.A,{title:"What's Trending",helperClass:"mb-[20px]"}),(0,A.jsx)("div",{className:"flex flex-wrap gap-4 w-full ".concat(n?"my-[20px]":""),children:t.map(function(e){var t=(0,P.z1)(e.url,a);return(0,A.jsx)("a",{href:t,className:"border border-black px-[8px] py-[6px] text-black font-semibold text-[10px] cursor-pointer",children:e.name},e.name)})})]})}var F=function(e){(0,u.A)(a,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,m.A)(a);return e=t?Reflect.construct(n,arguments,(0,m.A)(this).constructor):n.apply(this,arguments),(0,p.A)(this,e)});function a(e){return(0,o.A)(this,a),n.call(this,e)}return(0,c.A)(a,[{key:"render",value:function(){var e=this.props,t=e.counts,n=e.likeValue,a=e.happyValue,i=e.angryValue,r=e.loveValue,s=e.wowValue,l=e.sadValue,o=e.isDesktop;return(0,A.jsxs)("div",{className:"flex space-x-4 bg-white mb-[30px] ".concat(o?"items-center":"flex-col px-[20px]"),children:[(0,A.jsxs)("div",{className:"flex gap-[10px] ".concat(o?" w-[400px] items-center":"mb-[20px]"),children:[(0,A.jsx)(G.A,{title:"Your Reaction?"}),(0,A.jsx)("span",{className:" border-1 border-gray-200 py-1 px-2 text-gray-700 text-3 leading-[1.1]",children:t})]}),(0,A.jsxs)("div",{className:"flex gap-[10px] w-full ".concat(o?"justify-end ml-auto":"flex"),children:[n&&(0,A.jsxs)("div",{className:" flex items-center border-1 border-gray-200 p-[8px] rounded-md hover:bg-gray-200 text-center justify-center gap-[5px] w-[70px]",children:[(0,A.jsx)("span",{className:"bg-[url('/images/st_like.svg')] w-[24px] h-[24px] bg-no-repeat bg-cover"}),(0,A.jsx)("span",{className:"text-gray-700",children:n})]}),a&&(0,A.jsxs)("div",{className:" flex items-center border-1 border-gray-200 p-[8px] rounded-md hover:bg-gray-200 text-center justify-center gap-[5px] w-[70px]",children:[(0,A.jsx)("span",{className:"bg-[url('/images/st_happy.svg')] w-[24px] h-[24px] bg-no-repeat bg-cover"}),(0,A.jsx)("span",{className:"text-gray-700",children:a})]}),i&&(0,A.jsxs)("div",{className:" flex items-center border-1 border-gray-200 p-[8px] rounded-md hover:bg-gray-200 text-center justify-center gap-[5px] w-[70px]",children:[(0,A.jsx)("span",{className:"bg-[url('/images/st_angry.svg')] w-[24px] h-[24px] bg-no-repeat bg-cover"}),(0,A.jsx)("span",{className:"text-gray-700",children:i})]}),r&&(0,A.jsxs)("div",{className:" flex items-center border-1 border-gray-200 p-[8px] rounded-md hover:bg-gray-200 text-center justify-center gap-[5px] w-[70px]",children:[(0,A.jsx)("span",{className:"bg-[url('/images/st_love.svg')] w-[24px] h-[24px] bg-no-repeat bg-cover"}),(0,A.jsx)("span",{className:"text-gray-700",children:r})]}),s&&(0,A.jsxs)("div",{className:" flex items-center border-1 border-gray-200 p-[8px] rounded-md hover:bg-gray-200 text-center justify-center gap-[5px] w-[70px]",children:[(0,A.jsx)("span",{className:"bg-[url('/images/st_wow.svg')] w-[24px] h-[24px] bg-no-repeat bg-cover"}),(0,A.jsx)("span",{className:"text-gray-700",children:s})]}),l&&(0,A.jsxs)("div",{className:" flex items-center border-1 border-gray-200 p-[8px] rounded-md hover:bg-gray-200 text-center justify-center gap-[5px] w-[70px]",children:[(0,A.jsx)("span",{className:"bg-[url('/images/st_crying.svg')] w-[24px] h-[24px] bg-no-repeat bg-cover"}),(0,A.jsx)("span",{className:"text-gray-700",children:l})]})]})]})}}]),a}
1(h.Component),q=n(63857),K=n(43081),$=n.n(K),J=n(54587),Q=n.n(J);let X=function(e){var t,n=e.shareUrl,a=e.shareTitle,i=e.isDesktop,r=e.storyId,s=(0,h.useState)(!1),l=s[0],o=s[1],c=encodeURIComponent(n),d=encodeURIComponent(a),u=function(e){j.SF&&(0,j.SF)({item_id:r,share_type:e},"STORY_SHARED")},p=[{name:"Facebook",url:"https://www.facebook.com/sharer/sharer.php?u=".concat(c,""e=").concat(d),icon:"/images/fb.svg"},{name:"X (formerly Twitter)",url:"https://twitter.com/intent/tweet?url=".concat(c,"&text=").concat(d),icon:"/images/x.svg"},{name:"WhatsApp",url:"https://api.whatsapp.com/send?text=".concat(encodeURIComponent(a+" "+n)),icon:"/images/whatsapp.svg"}],m=(t=(0,q.A)($().mark(function e(){var t;return $().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:u("Copy Link"),t="".concat(a," - ").concat(n),navigator.clipboard.writeText(t),o(!0),setTimeout(function(){return o(!1)},2e3);case 1:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return(0,A.jsxs)("div",{className:"relative block justify-end ".concat(i?"":"px-[20px]"),children:[(0,A.jsx)("ul",{className:"flex flex-wrap gap-2 items-center justify-end",children:p.map(function(e,t){return(0,A.jsx)("li",{children:e.disabled?(0,A.jsx)("div",{className:"opacity-40 cursor-not-allowed",title:"".concat(e.name," not supported"),children:(0,A.jsx)(Q(),{src:e.icon,alt:e.name,width:28,height:28,loading:"lazy"})}):e.isCopy?(0,A.jsx)("button",{onClick:m,title:"Copy Link",className:"hover:scale-110 transition-transform",children:(0,A.jsx)(Q(),{src:e.icon,alt:e.name,width:28,height:28,loading:"lazy"})}):(0,A.jsx)(x(),{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"hover:scale-110 transition-transform",title:e.name,onClick:function(){return u(e.name)},children:(0,A.jsx)(Q(),{src:e.icon,alt:e.name,width:28,height:28,loading:"lazy"})})},t)})}),l&&(0,A.jsx)("div",{className:"absolute -top-10 right-0 -translate-x-1/2 bg-black text-white text-xs font-semibold px-3 py-1 rounded shadow-lg animate-fadeInOut z-50",children:"Copied!"})]})};var Z=n(38050),ee=n(20371),et=n.n(ee),en=n(97916),ea=n(18847),ei=n.n(ea),er=n(80035),es=n(74551),el=n(61701);function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ed=n(12424).makeRequest,eu=(0,g.inject)("store")(a=(0,g.observer)(a=function(e){(0,u.A)(a,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,m.A)(a);return e=t?Reflect.construct(n,arguments,(0,m.A)(this).constructor):n.apply(this,arguments),(0,p.A)(this,e)});function a(e){var t;return(0,o.A)(this,a),(t=n.call(this,e)).state={list:[]},t.store=N.default.at((0,d.A)(t),"props.store.appState"),t}return(0,c.A)(a,[{key:"componentDidMount",value:function(){var e,t=this;e=t.props.relatedCardsUrl+"&langCode=".concat(t.props.langCode,"&appLanguage=").concat(t.props.langCode,"&edition=india"),ed({urlList:[{url:k.aG+"proxy?url="+encodeURIComponent(e),method:"get"}],source:"client"},function(e,n){if(!e){var a=N.default.at(n,"0.data.data");t.setState({list:null==a?void 0:a.rows})}})}},{key:"render",value:function(){var e=this.state.list;return this.props.relatedCardsUrl&&e&&0!=e.length?(0,A.jsxs)("div",{className:"px-[20px] border-b-[5px] border-gray-300",children:[(0,A.jsx)(G.A,{title:this.props.relatedTitle||"Recommended Stories",helperClass:"mb-[20px]"}),(0,A.jsx)("div",{children:e.map(function(e,t){var n=(0,el.A)(N.default.at(e,"format"),N.default.at(e,"subFormat"),N.default.at(e,"uiType"),N.default.at(e,"typeAds"),e),a=N.default.at(e,"title")||N.default.at(e,"titleUni"),i=N.default.at(e,"id"),r=N.default.at(e,"source.nameEnglish"),s=N.default.at(e,"source.displayName")||N.default.at(e,"sourceInfo.sourceName"),l=N.default.at(e,"source.handle"),o=N.default.at(e,"source.icon"),
1c=N.default.at(e,"content"),d=N.default.at(e,"publishTime"),u=N.default.at(e,"counts.LOVE.value"),p=N.default.at(e,"counts.REPOST.value"),m=N.default.at(e,"counts.COMMENTS.value"),h=N.default.at(e,"counts.VIEWS.value"),f=N.default.at(e,"counts.TOTAL_LIKE.value"),g=N.default.at(e,"counts.SHARE.value"),v=N.default.at(e,"thumbnailInfos")||[{url:N.default.at(e,"backgroundOption.imageUrl")}],x=N.default.at(e,"collectionAsset.collectionItem"),y=N.default.at(e,"videoAsset.duration"),b=N.default.at(e,"source.entityImageUrl"),w=N.default.at(e,"shareUrl"),j=N.default.at(e,"videoAsset"),k=N.default.at(e,"source.deeplinkUrl"),D=N.default.at(e,"source.feedType"),C=N.default.at(e,"source"),_=N.default.at(e,"moreStories"),O=N.default.at(e,"source.badgeType"),S=N.default.at(e,"deeplinkUrl");return(0,A.jsx)(es.A,ec(ec({},e),{},{isRelated:!0,uiType:n,id:i,title:a,data:e,item:e,detailsPageUrl:N.default.at(e,"deeplinkUrl"),sourceName:r,displayName:s,sourceHandle:l,sourceIcon:o,content:c,publishTime:d,totalLove:u,totalRepost:p,totalComment:m,totalView:h,totalLike:f,totalShare:g,thumbnailInfo:v,collectionItem:x,videoDuration:y,entityImageUrl:b,shareUrl:w,index:t,sourceDeeplinkUrl:k,source:C,history:history,videoAsset:j,sourceFeedType:D,moreStories:_,isSourceVerified:"VERIFIED"==O,deeplinkUrl:S}))})})]}):null}}]),a}(h.Component))||a)||a,ep=n(61846),em=n(12424).makeRequest,eh=(0,g.inject)("store")(i=(0,g.observer)(i=function(e){(0,u.A)(a,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,m.A)(a);return e=t?Reflect.construct(n,arguments,(0,m.A)(this).constructor):n.apply(this,arguments),(0,p.A)(this,e)});function a(e){var t;return(0,o.A)(this,a),(t=n.call(this,e)).state={list:[],loading:!0},t}return(0,c.A)(a,[{key:"componentDidMount",value:function(){var e=this;if(!this.props.postId){this.setState({loading:!1});return}var t=ep.A.baseUrl+"/api/v2/posts/discussions/"+encodeURIComponent(this.props.postId)+"?filterType=COMMENT";em({urlList:[{url:k.aG+"proxy?url="+encodeURIComponent(t),method:"get"}],source:"client"},function(t,n){if(t){e.setState({list:[],loading:!1});return}var a=n&&n[0],i=a&&a.data,r=i&&Array.isArray(i.rows)&&i.rows||i&&i.data&&Array.isArray(i.data.rows)&&i.data.rows||i&&Array.isArray(i)&&i||i&&Array.isArray(i.items)&&i.items||i&&Array.isArray(i.comments)&&i.comments||[];e.setState({list:r,loading:!1})})}},{key:"componentDidUpdate",value:function(e){var t=this;if(e.postId!==this.props.postId&&this.props.postId){this.setState({loading:!0});var n=ep.A.baseUrl+"/api/v2/posts/discussions/"+encodeURIComponent(this.props.postId)+"?filterType=COMMENT";em({urlList:[{url:k.aG+"proxy?url="+encodeURIComponent(n),method:"get"}],source:"client"},function(e,n){if(e){t.setState({list:[],loading:!1});return}var a=n&&n[0],i=a&&a.data,r=i&&Array.isArray(i.rows)&&i.rows||i&&i.data&&Array.isArray(i.data.rows)&&i.data.rows||i&&Array.isArray(i)&&i||i&&Array.isArray(i.items)&&i.items||i&&Array.isArray(i.comments)&&i.comments||[];t.setState({list:r,loading:!1})})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.postId,a=t.commentsCount,i=void 0===a?0:a,r=t.commentString,s=t.viewAllCommentString,l=t.isDesktop,o=void 0!==l&&l,c=t.onViewAll,d=t.onViewComment,u=this.state,p=u.list,m=u.loading,h=this.props.store&&(!0===this.props.store.isDarkTheme||"true"===String(this.props.store.isDarkTheme));if(!n)return null;var f=i||p.length,g=o?p:p.slice(0,3);return(0,A.jsxs)("div",{className:"py-[20px] ".concat(o?"":"border-b-[5px] border-gray-300 px-[20px]"),children:[(0,A.jsxs)("div",{className:"flex items-center flex-wrap gap-2 mb-[20px]",children:[(0,A.jsx)(G.A,{title:void 0===r?"Comments":r,helperClass:""}),!o&&i>0&&(0,A.jsx)("span",{className:"inline-flex items-center justify-center font-normal not-italic text-[10px] py-[5px] px-2 ml-1 border ".concat(h?"border-gray-600 text-gray-100 bg-[#202020]":"border-[rgb(217,217,217)] text-black bg-[rgb(252,252,252)]"),children:i})]}),m?(0,A.jsx)("div",{className:"text-gray-500 text-sm py-4",children:"Loading comments..."}):(0,A.jsxs)(A.Fragment,{children:[0===g.length?0===f?(0,A.jsx)("p",{className:"text-gray-500 text-sm mb-3",children:"Be the first to comment."}):null:(0,A.jsx)("ul",{className:"space-y-4 mb-3 list-none pl-0",children:g.map(function(t){var n,a,i,r,s,l,u,p,m,h,f,g,v,x=null!==(n=t.id)&&void 0!==n?n:t.itemId,y=null!==(a=t.source)&&void 0!==a?a:t.userInfo,b=null!==(i=null!==(r=null==y?void 0:y.imageUrl)&&void 0!==r?r:null==y?void 0:y.icon)&&void 0!==i?i:null==y?void 0:y.profilePictureUrl,j=b?(0,w.AN)(b,{width:40,height:40}).webp:null,k=(null==y?void 0:y.displayName)||"User",N=null!==(s=t.publishTime)&&void 0!==s?s:t.time,D=N?(0,en.A)(N):"",C=null!==(l=null!==(u=t.content)&&void 0!==u?u:t.text)&&void 0!==l?l:"",_=(k||"U").charAt(0).toUpperCase(),O=null!==(p=null===(m=t.counts)||void 0===m||null===(m=m.LIKE)||void 0===m?void 0:m.value)&&void 0!==p?p:0,S=null!==(h=null===(f=t.counts)||void 0===f||null===(f=f.ANGRY)||void 0===f?void 0:f.value)&&void 0!==h?h:0,I=null!==(g=null===(v=t.counts)||void 0===v||null===(v=v.COMMENTS)||void 0===v?void 0:v.value)&&void 0!==g?g:0,T=e.props.store&&(!0===e.props.store.isDarkTheme||"true"===String(e.props.store.isDarkTheme));return(0,A.jsx)("li",{className:"",children:(0,A.jsxs)("div",{className:"flex items-start gap-3 ".concat(o?"":"cursor-pointer"),onClick:o?void 0:function(){return d?d(x,t):null==c?void 0:c()},onKeyDown:o?void 0:function(e){return"Enter"===e.key&&(d?d(x,t):null==c?void 0:c())},role:o?void 0:"button",tabIndex:o?void 0:0,children:[(0,A.jsx)("div",{className:"flex-shrink-0 w-9 h-9 rounded-full bg-gray-200 dark:bg-gray-600 overflow-hidden flex items-center justify-center",children:j?(0,A.jsx)("img",{src:j,alt:"",className:"w-full h-full object-cover",loading:"lazy"}):(0,A.jsx)("span",{className:"text-gray-600 dark:text-gray-300 text-sm font-medium select-none",children:_})}),(0,A.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,A.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,A.jsx)("span",{className:"font-[14px] font-bold text-gray-900",children:k}),D&&(0,A.jsxs)("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:["\xb7 ",D]})]}),C?(0,A.jsx)("div",{className:"text-[16px] text-black break-words mb-[16px] font-[400px] line-[19px]",dangerouslySetInnerHTML:{__html:C}}):null,(0,A.jsxs)("div",{className:"flex items-center gap-3 text-gray-500 dark:text-gray-400",children:[(0,A.jsxs)("span",{className:"flex items-center gap-1",children:[(0,A.jsx)("img",{src:T?"/images/inc_like_unfilled_dark.svg":"/images/inc_like_unfilled.svg",alt:"Like",className:"w-4 h-4 opacity-80","aria-hidden":!0}),(0,A.jsx)("span",{className:"text-xs",children:O})]}),(0,A.jsxs)("span",{className:"flex items-center gap-1",children:[(0,A.jsx)("img",{src:T?"/images/inc_dislike_unfilled_dark.svg":"/images/inc_dislike_unfilled.svg",alt:"Dislike",className:"w-4 h-4 opacity-80","aria-hidden":!0}),(0,A.jsx)("span",{className:"text-xs",children:S})]}),(0,A.jsxs)("span",{className:"text-xs border-l border-gray-300 dark:border-gray-600 pl-3",children:[I," ",1===I?"reply":"replies"]})]})]})]})},x||Math.random())})}),!o&&f>3&&c&&(0,A.jsx)(A.Fragment,{children:(0,A.jsx)("button",{type:"button",onClick:function(e){e.preventDefault(),null==c||c()},className:"mt-4 w-full py-2 text-sm font-medium text-black-600 hover:underline border border-gray-200 rounded-lg",children:void 0===s?"Vie
1w All Comments":s})})]})]})}}]),a}(h.Component))||i)||i,ef=n(12424).makeRequest,eg=(0,g.inject)("store")(r=(0,g.observer)(r=function(e){(0,u.A)(a,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,m.A)(a);return e=t?Reflect.construct(n,arguments,(0,m.A)(this).constructor):n.apply(this,arguments),(0,p.A)(this,e)});function a(e){var t;return(0,o.A)(this,a),(t=n.call(this,e)).state={list:[],nextPageUrl:null,loading:!0},t.loadDiscussions=t.loadDiscussions.bind((0,d.A)(t)),t}return(0,c.A)(a,[{key:"getPostId",value:function(){var e=this.props.currentStory;return e&&(e.id||e.item_id)||null}},{key:"loadDiscussions",value:function(e){var t=this,n=this.getPostId();if(n||e){var a=e||ep.A.baseUrl+"/api/v2/posts/discussions/"+encodeURIComponent(n)+"?filterType=COMMENT";ef({urlList:[{url:k.aG+"proxy?url="+encodeURIComponent(a),method:"get"}],source:"client"},function(n,a){if(n){t.setState({loading:!1});return}var i,r,s=null==a||null===(i=a[0])||void 0===i?void 0:i.data,l=null==s?void 0:s.data,o=(null==l?void 0:l.rows)&&Array.isArray(l.rows)&&l.rows||(null==s?void 0:s.rows)&&Array.isArray(s.rows)&&s.rows||(null==l||null===(r=l.data)||void 0===r?void 0:r.rows)&&Array.isArray(l.data.rows)&&l.data.rows||[],c=(null==l?void 0:l.nextPageUrl)||(null==s?void 0:s.nextPageUrl)||null;t.setState(function(t){return{list:e?[].concat((0,C.A)(t.list),(0,C.A)(o)):o,nextPageUrl:c,loading:!1}},function(){!e&&c&&t.loadDiscussions(c)})})}}},{key:"componentDidMount",value:function(){"all"===this.props.mode&&this.loadDiscussions()}},{key:"componentDidUpdate",value:function(e){e.mode!==this.props.mode&&"all"===this.props.mode&&(this.setState({list:[],nextPageUrl:null,loading:!0}),this.loadDiscussions())}},{key:"renderCommentItem",value:function(e){var t,n,a,i,r,s,l,o,c,d,u,p,m,h,f,g=null!==(t=e.source)&&void 0!==t?t:e.userInfo,v=null!==(n=null!==(a=null==g?void 0:g.imageUrl)&&void 0!==a?a:null==g?void 0:g.icon)&&void 0!==n?n:null==g?void 0:g.profilePictureUrl,x=v?(0,w.AN)(v,{width:40,height:40}).webp:null,y=null!==(i=null!==(r=null==g?void 0:g.sourceName)&&void 0!==r?r:null==g?void 0:g.displayName)&&void 0!==i?i:"User",b=(null!==(s=e.publishTime)&&void 0!==s?s:e.time)?(0,en.A)(null!==(l=e.publishTime)&&void 0!==l?l:e.time):"",j=null!==(o=null!==(c=e.content)&&void 0!==c?c:e.text)&&void 0!==o?o:"",k=(y||"U").charAt(0).toUpperCase(),N=null!==(d=null===(u=e.counts)||void 0===u||null===(u=u.LIKE)||void 0===u?void 0:u.value)&&void 0!==d?d:0,D=null!==(p=null===(m=e.counts)||void 0===m||null===(m=m.ANGRY)||void 0===m?void 0:m.value)&&void 0!==p?p:0,C=this.props.store&&(!0===this.props.store.isDarkTheme||"true"===String(this.props.store.isDarkTheme));return(0,A.jsxs)("div",{className:"flex gap-3 py-3 border-b border-gray-100",children:[(0,A.jsx)("div",{className:"flex-shrink-0 w-9 h-9 rounded-full bg-gray-200 overflow-hidden flex items-center justify-center",children:x?(0,A.jsx)("img",{src:x,alt:"",className:"w-full h-full object-cover",loading:"lazy"}):(0,A.jsx)("span",{className:"text-gray-600 text-sm font-medium select-none",children:k})}),(0,A.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,A.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,A.jsx)("span",{className:"font-[14px] font-bold text-gray-900",children:y}),b&&(0,A.jsx)("span",{className:"text-xs text-gray-400",children:b})]}),j?(0,A.jsx)("div",{className:"text-sm text-black break-words mt-1",dangerouslySetInnerHTML:{__html:j}}):null,(0,A.jsxs)("div",{className:"flex items-center gap-3 mt-2 text-gray-500",children:[(0,A.jsxs)("span",{className:"flex items-center gap-1",children:[(0,A.jsx)("img",{src:C?"/images/inc_like_unfilled_dark.svg":"/images/inc_like_unfilled.svg",alt:"Like",className:"w-4 h-4 opacity-80","aria-hidden":!0}),(0,A.jsx)("span",{className:"text-xs",children:N})]}),(0,A.jsxs)("span",{className:"flex items-center gap-1",children:[(0,A.jsx)("img",{src:C?"/images/inc_dislike_unfilled_dark.svg":"/images/inc_dislike_unfilled.svg",alt:"Dislike",className:"w-4 h-4 opacity-80","aria-hidden":!0}),(0,A.jsx)("span",{className:"text-xs",children:D})]})]})]})]},null!==(h=null!==(f=e.id)&&void 0!==f?f:e.itemId)&&void 0!==h?h:Math.random())}},{key:"render",value:function(){var e=this,t=this.props,n=t.onBack,a=t.commentString,i=t.selectedComment,r=t.onBackToAll,s=this.state,l=s.list,o=s.nextPageUrl,c=s.loading,d=i&&"all"!==this.props.mode;return(0,A.jsxs)("div",{className:"flex flex-col h-full bg-white",children:[(0,A.jsxs)("header",{className:"flex-shrink-0 flex items-center px-4 py-3 border-b border-gray-200 bg-white sticky top-0 z-10",children:[(0,A.jsx)("button",{type:"button",onClick:function(){d&&r?r():n&&n()},className:"rounded hover:bg-gray-100 text-gray-700","aria-label":"Back",children:(0,A.jsx)("span",{className:"block bg-no-repeat bg-center w-[30px] h-[30px] bg-[length:30px_30px] bg-[url('/images/icn_back_primary.svg')]","aria-hidden":!0})}),(0,A.jsx)("h2",{className:"flex-1 font-semibold text-lg text-gray-900 truncate",children:void 0===a?"Comments":a})]}),(0,A.jsx)("div",{className:"flex-1 overflow-auto min-h-0 bg-white mt-[20px]",children:d?(0,A.jsx)("div",{className:"px-4 pb-4 pt-2",children:this.renderCommentItem(i)}):c?(0,A.jsx)("div",{className:"p-4 text-gray-500 text-sm",children:"Loading comments..."}):0===l.length?(0,A.jsx)("div",{className:"p-4 text-gray-500 text-sm",children:"No comments yet."}):(0,A.jsxs)("div",{className:"px-4 pb-4",children:[l.map(function(t){return e.renderCommentItem(t)}),o&&(0,A.jsx)("button",{type:"button",onClick:function(){return e.loadDiscussions(o)},className:"mt-4 w-full py-2 text-sm font-medium text-black-600 hover:underline border border-gray-200 rounded-lg",children:"Load more comments"})]})})]})}}]),a}
1(h.Component))||r)||r,ev=n(89321),ex=n(31118);function ey(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function eb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ey(Object(n),!0).forEach(function(t){(0,l.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ey(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ew=202/306;N.default.mixin(et());var ej=ei()(function(){return n.e(4272).then(n.bind(n,34272)).then(function(e){return e.default})},{loading:function(){return(0,A.jsx)("div",{children:"Loading Instagram..."})},ssr:!1,loadableGenerated:{webpack:function(){return[34272]}}}),ek=ei()(function(){return n.e(6073).then(n.bind(n,46073)).then(function(e){return e.Tweet})},{loading:function(){return(0,A.jsx)("div",{children:"Loading Tweet..."})},ssr:!0,loadableGenerated:{webpack:function(){return[46073]}}}),eN=ei()(function(){return n.e(9315).then(n.bind(n,99315)).then(function(e){return e.BottomMetaViralCard})},{loading:function(){return(0,A.jsx)("div",{children:"Loading..."})},ssr:!1,loadableGenerated:{webpack:function(){return[99315]}}}),eA=ei()(function(){return n.e(2553).then(n.bind(n,92553)).then(function(e){return e.default})},{loading:function(){return(0,A.jsx)("div",{children:"Loading..."})},ssr:!1,loadableGenerated:{webpack:function(){return[92553]}}});function eD(e,t){return t?0===e?"storypage2":1===e?"leaderboard":"storypage4":1===e?"storypage3":e>1?"storypage4":null}var eC=function(e,t,n,a,i){var r=(0,R.o)(e.store,{isDesktop:n,isDetailsPage:!0});return a&&a.map(function(a,s){var l,o,c={scriptSrc:null===(l=i[s])||void 0===l?void 0:l.scriptSrc,scripts:null===(o=i[s])||void 0===o?void 0:o.scripts},d="more-chunk-".concat((null==t?void 0:t.id)||(null==t?void 0:t.item_id)||"det","-").concat(s),u=(0,A.jsx)("div",{id:"chunk-".concat(s),children:e.processParsedHtml(a,c,t)}),p=null;if(n){var m=eD(s,!0);if(m){var f="ads-".concat(s);p=(0,A.jsx)("div",{id:f,className:"adMid my-[20px] w-full flex justify-center",style:{lineHeight:"0px",fontSize:"0px"},children:(0,A.jsx)(U.A,{slot:m,id:f,item:t,isDesktop:!0,leaderBoard:"leaderboard"===m,pageMeta:r})},"".concat(d,"-desktop-ad"))}}else if(0===s){var g="ads-".concat(s);p=(0,A.jsx)("div",{id:"".concat(g,"-wr"),className:"adMid my-[20px] w-full flex justify-center",style:{lineHeight:"0px",fontSize:"0px",marginBottom:"20px"},children:(0,A.jsx)(L.A,{targetContainerId:g,delay:500,className:"w-full",isMobile:!n})},"".concat(d,"-aniview"))}else{var v=eD(s,!1);if(v){var x="ads-".concat(s);p=(0,A.jsx)("div",{id:x,className:"adMid my-[20px] w-full flex justify-center",style:{lineHeight:"0px",fontSize:"0px"},children:(0,A.jsx)(U.A,{slot:v,id:x,item:t,pageMeta:r})},"".concat(d,"-mobile-ad"))}}return(0,A.jsxs)(h.Fragment,{children:[u,p]},d)})};let e_=(0,g.inject)("store")(s=(0,g.observer)(s=function(e){(0,u.A)(a,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=(0,m.A)(a);return e=t?Reflect.construct(n,arguments,(0,m.A)(this).constructor):n.apply(this,arguments),(0,p.A)(this,e)});function a(e){var t;return(0,o.A)(this,a),(t=n.call(this,e)).store=t.props.store,t.isDesktop=t.store.isDesktop,t.processParsedHtml=t.processParsedHtml.bind((0,d.A)(t)),t.replaceAll=t.replaceAll.bind((0,d.A)(t)),t.fetchLinkUrl=t.fetchLinkUrl.bind((0,d.A)(t)),t.ReadmoreClicked=t.ReadmoreClicked.bind((0,d.A)(t)),t.state={isClient:!1,screenWidth:360,commentsMode:null,selectedComment:null},t.openCommentsAll=t.openCommentsAll.bind((0,d.A)(t)),t.openCommentById=t.openCommentById.bind((0,d.A)(t)),t.closeComments=t.closeComments.bind((0,d.A)(t)),t.handlePopState=t.handlePopState.bind((0,d.A)(t)),t}return(0,c.A)(a,[{key:"replaceAll",value:function(e,t,n){var a=RegExp(e,"g");return n=n&&n.replace(a,t).replace(/http:/g,"https:")}},{key:"fetchLinkUrl",value:function(){var e=this.props.data;return(null==e?void 0:e.detailsPageUrl)&&(0,P.hC)(e.detailsPageUrl,N.default.extend({},{action:"click"}))}},{key:"componentDidUpdate",value:function(e){var t=e.data,n=this.props.data;t&&n&&(t.id||t.item_id)!==(n.id||n.item_id)&&this.store&&this.store.timespentCalculator&&this.store.timespentCalculator("details",t,"stop")}},{key:"componentWillUnmount",value:function(){this.props.data&&(this.props.data.id||this.props.data.item_id)&&this.store&&this.store.timespentCalculator&&this.store.timespentCalculator("details",this.props.data,"stop")}},{key:"processParsedHtml",value:function(e,t,n){var a=this;if(!e)return(0,A.jsx)("div",{});var i=(0,w.AN)();return N.default.map(e,function(e,r){if(e){if("html"===e.type){var s="";return e.val&&(s=e.val.replace(/<img/g,'<img onClick="gallery()"')),(0,A.jsx)("div",{children:(0,A.jsx)(I,{det:n,html:a.replaceAll("#DH_EMB_IMG_REP#__DHQ_",i,s),scripts:t&&t.scripts||[],scriptSrc:t&&t.scriptSrc||[]})},r)}if("mix_content"===e.type){var l=N.default.at(e,"val.0.type"),o=N.default.at(e,"val.1.val"),c=N.default.at(e,"val.0.val");if("instagram"===l||"instagram-post"===l||"instagram-reel"===l&&c)return(0,A.jsxs)("div",{children:[(0,A.jsx)(ej,{url:"https://instagr.am/p/".concat(c,"/"),maxWidth:a.state.screenWidth,hideCaption:!1,containerTagName:"div",protocol:"",onLoading:function(e){},onSuccess:function(e){},onAfterRender:function(e){},onFailure:function(e){console.log("Error loading instagram content:",e)}}),(0,A.jsx)("blockquote",{className:"instagram-media","data-instgrm-permalink":"instagram-reel"===l?"https://www.instagram.com/reel/".concat(c,"/"):"https://www.instagram.com/p/".concat(c,"/"),"data-instgrm-version":"14"}),a.state.isClient&&o&&(0,A.jsx)("p",{dangerouslySetInnerHTML:{__html:a.replaceAll("#DH_EMB_IMG_REP#__DHQ_",i,o)}})]},"insta_".concat(r));if("twitter"===l&&c)return(0,A.jsxs)("div",{children:[(0,A.jsx)(ek,{tweetId:c}),a.state.isClient&&o&&(0,A.jsx)("p",{dangerouslySetInnerHTML:{__html:a.replaceAll("#DH_EMB_IMG_REP#__DHQ_",i,o)}})]},"twitter_".concat(r))}}})}},{key:"componentDidMount",value:function(){this.setState({isClient:!0,screenWidth:window.screen.width}),window.instgrm&&window.instgrm.Embeds.process(),window.addEventListener("popstate",this.handlePopState)}},{key:"handlePopState",value:function(){!this.isDesktop&&null!=this.state.commentsMode&&(this.setState({commentsMode:null,selectedComment:null}),this.store&&"function"==typeof this.store.clearCommentDetails&&this.store.clearCommentDetails())}},{key:"ReadmoreClicked",value:function(){var e=this;this.props.triggerStart(this.props),setTimeout(function(){e.props.triggerStop(e.props)},k.fC)}},{key:"openCommentsAll",value:function(){if(!this.isDesktop){var e=N.default.at(this,"props.data");this.store&&e&&(this.store.currentStoryDetails=e),this.setState({commentsMode:"all",selectedComment:null}),window.history&&window.history.pushState&&window.history.pushState({commentsOverlay:!0},"")}}},{key:"openCommentById",value:function(e,t){if(!this.isDesktop){var n=N.default.at(this,"props.data");this.store&&n&&(this.store.currentStoryDetails=n),this.setState({commentsMode:e,selectedComment:t||null}),window.history&&window.history.pushState&&window.history.pushState({commentsOverlay:!0},"")}}},{key:"closeComments",value:function(){this.setState({commentsMode:null,selectedComment:null}),this.store&&"function"==typeof this.store.clearCommentDetails&&this.store.clearCommentDetails()}},{key:"render",value:function(){var e,t,n,a,i,r,s,l,o,c,d,u,p,m,h,g,v,y,j,k,C,_,O,S,I,P,L,E,M=this,H=N.default.at(this,"props.data");N.default.at(H,"allowComments");var z=N.default.at(this,"props.data.isLoading");(null==H?void 0:H.content2)&&D(null==H?void 0:H.content2);var V=null==H?void 0:H.disclaimer;this.store.activeNav,(null==H?void 0:H.storyBlockType)&&(null==H||H.storyBlockType.toLowerCase()),N.default.at(this,"props.data.showMoreDetails"),N.default.at(H,"webAttributes.storyBlockingLevel");var G=N.default.at(this,"props.data.showMoreData");this.store&&this.store.detailPageNavigationIndex,this.store&&this.store.detailPageIndex,null==H||H.index,null==H||H.activeNavIndex,this.props&&this.props.content,N.default.at(H,"directLanding")&&(G=!0);
1var q=(!z&&G||N.default.at(H,"directLanding"),"dispCont");null==H||H.id;var K=N.default.at(H,"title"),$=N.default.at(H,"thumbnailInfos")||[],J=null!=$&&$.length?$[0]:null,Q=N.default.at(H,"isBuzz"),ee=J&&!Q?function(e,t){if(e)return{width:600,height:338,minHeight:338};var n=(0,w.H)(t),a=Math.max(Math.round(n.width*ew),n.height);return{width:n.width,height:n.height,minHeight:a}}(this.isDesktop,J):null,et=(null==H||null===(i=H.contentImageInfo)||void 0===i?void 0:i.url)||(null==J?void 0:J.url)||(null==H||null===(r=H.thumbnailUrls)||void 0===r?void 0:r[0]),ea=this.isDesktop?w.wW:w.uS,ei=et?(0,w.rw)(et,ea):null,es=(null===(s=this.store)||void 0===s?void 0:s.lcpImageUrl)||(null==ei?void 0:ei.src)||null,el=(null===(l=this.store)||void 0===l?void 0:l.lcpImageWidth)||(null==ei?void 0:ei.width),eo=(null===(o=this.store)||void 0===o?void 0:o.lcpImageHeight)||(null==ei?void 0:ei.height),ec=N.default.at(H,"source")||N.default.at(H,"sourceInfo"),ed=N.default.at(ec,"icon")||N.default.at(ec,"imageUrl"),ep=ed&&(0,w.AN)(ed,{width:100,height:100}).webp,em=N.default.at(ec,"displayName");N.default.at(ec,"badgeType");var ef=N.default.at(ec,"counts.FOLLOW.value"),ey=N.default.at(ec,"counts.STORY.value"),ej=N.default.at(ec,"deeplinkUrl"),ek=N.default.at(H,"counts.TOTAL_LIKE.value")?N.default.at(H,"counts.TOTAL_LIKE.value"):null,eD=N.default.at(H,"counts.LIKE.value")?N.default.at(H,"counts.LIKE.value"):null,e_=N.default.at(H,"counts.HAPPY.value")?N.default.at(H,"counts.HAPPY.value"):null,eO=N.default.at(H,"counts.ANGRY.value")?N.default.at(H,"counts.ANGRY.value"):null,eS=N.default.at(H,"counts.LOVE.value")?N.default.at(H,"counts.LOVE.value"):null,eI=N.default.at(H,"counts.WOW.value")?N.default.at(H,"counts.WOW.value"):null,eT=N.default.at(H,"counts.SAD.value")?N.default.at(H,"counts.SAD.value"):null,eP=N.default.at(H,"hashtags");T.wg["name_"+this.store.selectedLang],T.BV["name_"+this.store.selectedLang],this.fetchLinkUrl(),N.default.at(H,"timesAgo");var eU=N.default.at(H,"counts.SHARE.value")?N.default.at(H,"counts.SHARE.value"):null,eL=N.default.at(H,"counts.VIEWS.value")?N.default.at(H,"counts.VIEWS.value"):null,eR=N.default.at(H,"shareUrl")||(null==H?void 0:H.shareUrl),eE=N.default.at(H,"shareParams.shareTitle")||(null==H?void 0:H.shareUrl),eM=eR&&eE?encodeURIComponent(eE+" "+eR):"",eH=N.default.at(H,"publishTime")?(0,en.A)(N.default.at(H,"publishTime")):"",ez=null!==(c=N.default.at(H,"contentChunks"))&&void 0!==c?c:(0,er.HO)(N.default.at(H,"contentChunks")),eB=null!==(d=N.default.at(H,"contentChunksWithScripts"))&&void 0!==d?d:(0,er.HO)(N.default.at(H,"contentChunksWithScripts")),eV=ez&&ez.map(function(e){return D(e.contentText)}),eW=(0,er.HO)(N.default.get(H,"additionalContents",[])),eG=eW.filter(function(e){return"RELATED_NEWS"===e.type}),eY=null!==(u=null==eG||null===(p=eG[0])||void 0===p?void 0:p.title)&&void 0!==u?u:"",eF=null!==(m=null==eG||null===(h=eG[0])||void 0===h?void 0:h.content)&&void 0!==m?m:"",eq=eW.filter(function(e){return"COMMENTS"===e.type}),eK=null!==(g=null==eq||null===(v=eq[0])||void 0===v?void 0:v.title)&&void 0!==g?g:"",e$=N.default.at(H,"isBuzz"),eJ=e$&&(null===(y=N.default.at(H,"videoAsset.playerType"))||void 0===y?void 0:y.toLowerCase())==="youtube",eQ=N.default.at(H,"viral"),eX=(null===(j=this.store)||void 0===j?void 0:j.isDarkTheme)===!0||"true"===String(null===(k=this.store)||void 0===k?void 0:k.isDarkTheme),eZ=eQ||e$;return H?(0,A.jsxs)(A.Fragment,{children:[eJ&&(0,A.jsxs)(b(),{children:[(0,A.jsx)("link",{rel:"preconnect",href:"https://www.youtube.com"}),(0,A.jsx)("link",{rel:"preconnect",href:"https://i.ytimg.com"})]}),!this.isDesktop&&(0,A.jsx)(W,{shareUrl:eR,shareTitle:eE,whatsappCount:eU,isDarkTheme:null===(C=this.store)||void 0===C?void 0:C.isDarkTheme,selectedCountry:null===(_=this.store)||void 0===_?void 0:_.selectedCountry,selectedLang:null===(O=this.store)||void 0===O?void 0:O.selectedLang,directDetailsLanding:null===(S=this.store)||void 0===S?void 0:S.directDetailsLanding,onMoreClick:function(e){var t,n,a;null==e||null===(t=e.stopPropagation)||void 0===t||t.call(e),null===(n=M.store)||void 0===n||null===(a=n.enableThreeDot)||void 0===a||a.call(n,eM)}}),(0,A.jsxs)("section",{className:"".concat(this.isDesktop?"":"pt-[70px]"),children:[(0,A.jsx)(B,{title:K,npDisplayName:em,isDesktop:this.isDesktop}),(0,A.jsx)("div",{className:"w-full max-w-full",children:(0,A.jsxs)("div",{className:"flex w-full max-w-[1280px] mx-auto min-w-0 items-start",children:[(0,A.jsxs)("div",{className:"flex-1 min-w-0 ".concat(this.isDesktop?"":"overflow-x-hidden"," ").concat(this.isDesktop&&!eZ?" mt-[20px]":"pb-[20px] mt-[20px]"),children:[(0,A.jsxs)("section",{className:" rtl mb-[30px] ".concat(this.isDesktop||eZ?"":"-mt-[20px]"),children:[this.isDesktop&&(0,A.jsx)("h1",{className:"text-[1.5rem] font-bold z-10 mb-[20px]",children:K}),(0,A.jsxs)("div",{className:"relative !-z-0 ".concat(es?"mb-[0px]":"mb-[20px]"),children:[e$?(0,A.jsx)("figure",{className:"relative w-full ".concat(this.isDesktop&&!eZ?"max-h-[400px]":""," ").concat(eQ?"max-w-[400px] mx-auto":""),children:(0,A.jsx)(ev.default,eb(eb({},H),{}
1,{item:H,isDetailView:!0}))}):et&&es&&(0,A.jsxs)("figure",{className:"relative w-full overflow-hidden ".concat(this.isDesktop&&!eZ?"max-h-[400px]":""," ").concat(eQ?"max-w-[400px] mx-auto":""),style:ee&&!this.isDesktop?{minHeight:ee.minHeight}:void 0,children:[(0,A.jsx)("div",{className:"absolute inset-0 bg-cover bg-center blur-md opacity-50 z-0"}),(0,A.jsx)("img",{src:es,alt:K,width:el,height:eo,fetchPriority:"high",loading:"eager",decoding:"sync",className:this.isDesktop?"relative z-10 mx-auto object-cover object-top w-full h-full":"relative z-10 mx-auto object-contain w-full h-auto",style:ee&&!this.isDesktop?{minHeight:ee.minHeight,width:"100%",height:"auto"}:{width:"100%",height:"auto"}})]}),this.isDesktop&&(0,A.jsxs)("div",{className:"mb-[20px] flex justify-between items-center w-full mt-[20px]",children:[(0,A.jsx)("div",{className:"flex-shrink-0",children:(0,A.jsx)(Z.A,{time:eH,npDisplayName:em,source:ec,imageUrl:ep,shareUrl:eR,shareTitle:eE,isDesktop:this.isDesktop,hideShareActions:!0})}),(0,A.jsx)(X,{shareUrl:eR,shareTitle:eE,isDesktop:this.isDesktop,storyId:null==H?void 0:H.id})]}),!this.isDesktop&&eZ&&(0,A.jsxs)("div",{className:"px-[20px] py-[24px]",children:[(0,A.jsx)("h1",{className:"text-[1.5rem] font-bold mb-[30px] leading-snug",children:K}),(0,A.jsxs)("p",{className:"text-xs",children:[eH&&(0,A.jsx)("span",{children:eH}),eL&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("span",{className:"mx-2",children:"\xb7"}),(0,A.jsxs)("span",{children:[eL," views"]})]})]})]}),!this.isDesktop&&!eZ&&(0,A.jsx)(A.Fragment,{children:(0,A.jsxs)("div",{className:"font-merriweather w-[90%] m-auto p-[10px] border-2 ".concat(eX?"bg-[#202020] border-white":"bg-white border-black"," ").concat((null==$?void 0:$.length)>0?"relative z-20 -top-[25px] left-0 right-0":"top-[20px]"),children:[(0,A.jsx)("h1",{className:"text-[1.5rem] font-bold z-10 mb-[12px] ".concat(eX?"text-white":""),children:K}),(0,A.jsx)("div",{className:" ".concat(this.isDesktop?"mb-[30px] flex ":"px-[20px]")}),(0,A.jsx)(Z.A,{time:eH,npDisplayName:em,source:ec,imageUrl:ep,shareUrl:eR,shareTitle:eE,isDesktop:this.isDesktop,color:eX?"white":void 0,hideShareActions:!0}),(0,A.jsx)(eN,{time:eH,shares:eU,npDisplayName:em,source:ec,shareUrl:eR,shareTitle:eE,isDesktop:this.isDesktop})]})})]}),(0,A.jsxs)("article",{className:"".concat(q," relative z-10 max-w-full ").concat(this.isDesktop?"":"overflow-x-hidden"," ").concat(($.length>0&&this.isDesktop,"")),children:[(0,A.jsxs)("div",{className:"text-[1rem] max-w-full ".concat(this.isDesktop?"mt-[0px]":"overflow-x-hidden px-[20px]"),children:[this.processParsedHtml((null==H?void 0:H.parsedContent)||"",null==H?void 0:H.content1Scripts,H),(0,A.jsx)("div",{className:"my-[20px] w-full flex justify-center",children:(0,A.jsx)(U.A,{slot:"storypage1",id:"details-storypage1-".concat((null==H?void 0:H.id)||(null==H?void 0:H.item_id)||"top"),item:H,isDesktop:this.isDesktop,pageMeta:(0,R.o)(this.props.store,{isDesktop:this.isDesktop,isDetailsPage:!0})})})]}),(0,A.jsx)("div",{className:"text-[1rem] max-w-full ".concat(this.isDesktop?"":"overflow-x-hidden px-[20px]"),children:eC(this,H,this.isDesktop,eV,eB)})]})]}),!this.isDesktop&&(0,A.jsx)("div",{className:"mb-[30px] w-full flex justify-center px-[20px]",children:(0,A.jsx)(U.A,{slot:"supplement1",id:"details-supplement1-".concat((null==H?void 0:H.id)||(null==H?void 0:H.item_id)||"supp"),item:H,pageMeta:(0,R.o)(this.props.store,{isDetailsPage:!0})})}),ek&&(0,A.jsx)(F,{counts:ek,likeValue:eD,happyValue:e_,angryValue:eO,loveValue:eS,wowValue:eI,sadValue:eT,isDesktop:this.isDesktop}),ej&&(0,A.jsx)("div",{className:"mb-[30px] flex ".concat(this.isDesktop?"":"px-[20px]"),children:e$?(0,A.jsxs)("figure",{className:"flex gap-[5px]",children:[(0,A.jsx)("img",{src:ep,alt:em,className:"w-[40px] h-[40px]",loading:"eager"}),(0,A.jsxs)("figcaption",{children:[(0,A.jsx)("p",{className:"text-[14px] mb-[2px] text-black font-bold",children:em}),(0,A.jsxs)("p",{className:"text-[10px] text-gray-400 gap-[50px]",children:[(0,A.jsxs)("span",{className:" text-gray-400 inline-block",children:[ef," followers"]}),(0,A.jsx)("span",{className:" text-gray-400 inline-block mx-[5px] ",children:(0,A.jsx)("em",{className:"w-[3px] h-[3px] rounded-full bg-gray-300 inline-block relative -top-[2px]"})}),(0,A.jsxs)("span",{className:" text-gray-400 inline-block",children:[ey," Stories"]})]})]})]}):(0,A.jsx)(x(),{href:ej,title:em,children:(0,A.jsxs)("figure",{className:"flex gap-[5px]",children:[(0,A.jsx)("img",{src:ep,alt:em,className:"w-[40px] h-[40p
1x]",loading:"eager"}),(0,A.jsxs)("figcaption",{children:[(0,A.jsx)("p",{className:"text-[14px] mb-[2px] text-black font-bold",children:em}),(0,A.jsxs)("p",{className:"text-[10px] text-gray-400 gap-[50px]",children:[(0,A.jsxs)("span",{className:" text-gray-400 inline-block",children:[ef," followers"]}),(0,A.jsx)("span",{className:" text-gray-400 inline-block mx-[5px] ",children:(0,A.jsx)("em",{className:"w-[3px] h-[3px] rounded-full bg-gray-300 inline-block relative -top-[2px]"})}),(0,A.jsxs)("span",{className:" text-gray-400 inline-block",children:[ey," Stories"]})]})]})]})})}),(0,A.jsx)("div",{dangerouslySetInnerHTML:{__html:V},className:"disclaimer mb-[30px] ".concat(this.isDesktop?"":"px-[20px]")}),(0,A.jsx)(eu,{relatedTitle:eY,relatedCardsUrl:eF,appLanguage:null==H?void 0:H.langCode,langCode:null==H?void 0:H.langCode}),((null==H?void 0:H.id)||(null==H?void 0:H.item_id))&&(null!==(I=N.default.at(H,"counts.COMMENTS.value"))&&void 0!==I?I:0)>0&&(0,A.jsx)(eh,{postId:(null==H?void 0:H.id)||(null==H?void 0:H.item_id),commentsCount:null!==(P=N.default.at(H,"counts.COMMENTS.value"))&&void 0!==P?P:0,commentString:eK||"Comments",viewAllCommentString:"View All Comments",isDesktop:this.isDesktop,onViewAll:this.openCommentsAll,onViewComment:this.openCommentById}),"undefined"!=typeof document&&!this.isDesktop&&null!=this.state.commentsMode&&(0,f.createPortal)((0,A.jsx)("div",{className:"fixed inset-0 z-[100] flex flex-col bg-white",style:{height:"100vh"},children:(0,A.jsx)(eg,{mode:this.state.commentsMode,selectedComment:this.state.selectedComment,currentStory:H,selectedLang:(null==H?void 0:H.langCode)||(null===(L=this.store)||void 0===L?void 0:L.selectedLang)||"en",onBack:this.closeComments,onBackToAll:this.openCommentsAll})}),document.body)]}),this.isDesktop?(0,A.jsx)("div",{className:"ads-wrapper hidden min-[760px]:block w-[300px] min-w-[300px] max-w-[320px] ml-4 flex-shrink-0 self-start",style:{flex:"0 1 320px"},children:(0,A.jsx)(eA,{isDetailsPage:!0})}):null]})}),eP&&Array.isArray(eP)&&(null==eP?void 0:eP.length)>0&&(0,A.jsx)(Y,{hashtag:eP,isDesktop:this.isDesktop,host:null!==(E=this.store)&&void 0!==E&&null!==(E=E.landingUrl)&&void 0!==E&&E.origin?String(this.store.landingUrl.origin).replace(/^https?:\/\//,""):void 0,className:"mt-[30px] "})]})]}):(0,A.jsxs)(A.Fragment,{children:[!this.isDesktop&&(0,A.jsx)(W,{shareUrl:eR,shareTitle:eE,whatsappCount:eU,isDarkTheme:null===(e=this.store)||void 0===e?void 0:e.isDarkTheme,selectedCountry:null===(t=this.store)||void 0===t?void 0:t.selectedCountry,selectedLang:null===(n=this.store)||void 0===n?void 0:n.selectedLang,directDetailsLanding:null===(a=this.store)||void 0===a?void 0:a.directDetailsLanding,onMoreClick:function(e){var t,n,a;null==e||null===(t=e.stopPropagation)||void 0===t||t.call(e),null===(n=M.store)||void 0===n||null===(a=n.enableThreeDot)||void 0===a||a.call(n,eM)}}),(0,A.jsx)("div",{className:"".concat(this.isDesktop?"mt-[20%]":"mt-[50%]"," p-[20px]"),children:(0,A.jsx)(ex.V,{})})]})}}]),a}(h.Component))||s)||s},62737:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(42969),i=n(41988),r=n(77328),s=n.n(r),l=n(37876);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,a.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}let d=function(e){var t=e.seoConfig,n=e.jsonLd,a=e.preloadLinks,r=e.customMeta;return t?(0,l.jsxs)(s(),{children:[(0,i.U)(t),(void 0===a?[]:a).map(function(e,t){return(0,l.jsx)("link",c(c(c({rel:e.rel||"preload",as:e.as,href:e.href,fetchPriority:e.fetchPriority,type:e.type,crossOrigin:e.crossOrigin},e.media?{media:e.media}:{}),e.imagesrcset?{imagesrcset:e.imagesrcset}:{}),e.imagesizes?{imagesizes:e.imagesizes}:{}),"preload-".concat(t))}),(void 0===r?[]:r).map(function(e,t){return e.name?(0,l.jsx)("meta",c({name:e.name,content:e.content},e.property?{property:e.property}:{}),"meta-".concat(t)):e.property?(0,l.jsx)("meta",{property:e.property,content:e.content},"meta-".concat(t)):null}),n&&(0,l.jsx)(l.Fragment,{children:Array.isArray(n)?n.map(function(e,t){return(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(e)}},"jsonld-".concat(t))}):(0,l.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(n)}})})]}):null}},86232:(e,t,n)=>{n.d(t,{gN:()=>N});var a=n(70236),i=n(42969),r=n(30848);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?s(Object(n),!0).forEach(function(t){(0,i.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var o={G1100:"News",G1200:"Entertainment",G1300:"Sports",G1400:"Technology",G1500:"Business",G1600:"Lifestyle",G1700:"Health",G1800:"Education",G1900:"Politics",G2000:"World"},c={en:"en_US",hi:"hi_IN",bn:"bn_IN",gu:"gu_IN",kn:"kn_IN",ml:"ml_IN",mr:"mr_IN",or:"or_IN",pa:"pa_IN",ta:"ta_IN",te:"te_IN",ur:"ur_IN"},d="Dailyhunt",u="https://assets-news-bcdn.dailyhunt.in/cmd/resize/420x224_60/fetchdata20/images/51/c0/6b/51c06b28da5bb3f17be4a244769ae01241eba4a58b1e9b2c8982d2c1ed9d884a.svg",p="https://m.dailyhunt.in",m=["https://www.facebook.com/DailyhuntApp","https://x.com/Dailyhunt_India","https://www.instagram.com/dailyhuntapp/","https://www.linkedin.com/company/verseinnovation/","https://www.youtube.com/@newshunt"];function h(e){if(!e||"string"!=typeof e)return e;var t=e.trim();return!t||t.startsWith("https://")?t:t.startsWith("http://")?"https://".concat(t.slice(7)):"https://".concat(t.replace(/^\/+/,""))}function f(e){return e?o[e]||e:null}function g(e){return e?e.replace(/<[^>]*>/g,"").replace(/ /g," ").replace(/&[a-z]+;/gi,"").trim().replace(/\s+/g," "):""}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=n||(null==e?void 0:e.webAttributes)||{},i=a.redirectToPublisher,r=null==e?void 0:e.publisherStoryUrl,s=null==e?void 0:e.detailsPageUrl,l=t||window.location.href;return a&&(i||s)&&(l=function(e,t,n,a){if("Y"===t&&n)return h(n);if(e){var i=e.split("?")[0];return h(i.startsWith("/")?"m.dailyhunt.in".concat(i):i.startsWith("m.dailyhunt.in")?i:"m.dailyhunt.in/".concat(i))}return h(a)}(s,i,r,l)),l||(l=(null==e?void 0:e.deeplinkUrl)||(null==e?void 0:e.shareUrl)||""),h(l)}function x(e){if(null==e||""===e)return null;if(e instanceof Date){var t=e.getTime();return Number.isNaN(t)?null:new Date(t).toISOString()}var n=parseInt(String(e),10);if(Number.isNaN(n))return null;var a=new Date(n);return Number.isNaN(a.getTime())?null:a.toISOString()}function y(e){var t=x(e.publishTime),n=x(e.lastModifiedTime)||(e.contentVersion?x(e.contentVersion):null)||t;return{publishedTime:t,modifiedTime:n}}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=e.descNonHtml||e.description||(e.content?g(e.content):"");return null!=t&&a&&(a=a.substring(0,t)),a||n}function w(e){var t,n;return null!=e&&e.url&&null!==(t=null===(n=(0,r.AN)(e.url,{width:1200,height:630}))||void 0===n?void 0:n.webp)&&void 0!==t?t:null}function j(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"News",i=(null===(t=e.category)||void 0===t?void 0:t.name)||(null===(n=e.topic)||void 0===n?void 0:n.name)||a;if(e.genres&&Array.isArray(e.genres)&&e.genres.length>0){var r=f(e.genres[0]);r&&(i=r)}return i}function k(e){var t,n;return(null===(t=e.source)||void 0===t?void 0:t.displayName)||(null===(n=e.source)||void 0===n?void 0:n.sourceName)||""}function N(e){var t,n,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,x=arguments.length>3&&void 0!==arguments[3]&&arguments[3],N=function(e){if(!e||"object"!=typeof e)return null;var t=l({},e);if(!t.contentImageInfo&&t.contentImage){var n,a="string"==typeof t.contentImage?t.contentImage:null===(n=t.contentImage)||void 0===n?void 0:n.url;a&&(t.contentImageInfo={url:a})}var i=function(e){return null==e?e:e instanceof Date?String(e.getTime()):e};return t.publishTime=i(t.publishTime),t.lastModifiedTime=i(t.lastModifiedTime),t.contentVersion=i(t.contentVersion),t}(e);if(!N||(t=!!(N.id||N.item_id),n=N.title&&String(N.title).trim(),!t&&!n))return{seoConfig:null,jsonLd:null,preloadLinks:[]};var A=null!==(i=null!=o?o:N.webAttributes)&&void 0!==i?i:null,D=v(N,s,A),C="".concat(D,"#breadcrumb"),_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||0===e.length)return null;var n=e.map(function(e,t){return{"@type":"ListItem",position:t+1,name:e.name,item:e.url}});return l(l({"@context":"https://schema.org","@type":"BreadcrumbList"},t&&{"@id":t}),{},{itemListElement:n})}(function(e,t){var n,a=[{name:"Home",url:"https://m.dailyhunt.in/"}];try{n=new URL(t)}catch(e){n=null}
1if(n){var i=n.pathname.split("/").filter(Boolean),r=i.map(function(e){return decodeURIComponent(e).replace(/\+/g," ")});if("news"===i[0]){var s={news:"News"};i.slice(0,-1).forEach(function(e,t){if(!(i.length>=5)||3!==t){var l=r[t],o=s[e.toLowerCase()]||l.replace(/\b\w/g,function(e){return e.toUpperCase()}),c="".concat(n.origin,"/").concat(i.slice(0,t+1).join("/"));o&&c&&a.push({name:o,url:c})}})}else if("buzz"===i[0]){a.push({name:"Buzz",url:"".concat(n.origin,"/buzz")});var l=i[2];if(l){var o=r[2].replace(/\b\w/g,function(e){return e.toUpperCase()});a.push({name:o,url:"".concat(n.origin,"/buzz/video/").concat(l,"/news")})}}}if(null!=e&&e.title)a.push({name:e.title,url:t});else{var c=j(e,"");c&&a.push({name:c,url:t})}return a}(N,D),C),O=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;var i=v(e,n,a),s=y(e),o=s.publishedTime,c=s.modifiedTime,p=w(e.contentImageInfo||{}),m=null;if(e.thumbnailUrls&&Array.isArray(e.thumbnailUrls)&&e.thumbnailUrls.length>0){var x=(0,r.AN)(e.thumbnailUrls[0],{width:400,height:300});m=(null==x?void 0:x.webp)||null}var N=(D=m,C=[],p&&C.push({"@type":"ImageObject",url:p,width:1200,height:630}),D&&D!==p&&C.push({"@type":"ImageObject",url:D,width:400,height:300}),C),A=k(e);if(A){O={"@type":"Organization",name:A};var D,C,_,O,S,I=null===(S=e.source)||void 0===S?void 0:S.imageUrl;if(I){var T=(0,r.AN)(I,{width:200,height:200});null!=T&&T.webp&&(O.image=T.webp)}}var P=b(e,200),U=e.content?g(e.content):e.descNonHtml||"",L=e.hashtags&&Array.isArray(e.hashtags)?e.hashtags.map(function(e){return e.name||e}).filter(Boolean).join(", "):void 0,R=j(e,void 0)||void 0,E=h(e.deeplinkUrl||e.shareUrl||i),M=e.languageKey||void 0;return e.genres&&Array.isArray(e.genres)&&e.genres.length>0?t=e.genres.map(function(e){return f(e)}).filter(Boolean):null!==(_=e.category)&&void 0!==_&&_.name&&(t=[e.category.name]),l(l(l(l(l(l(l(l(l(l({"@context":"https://schema.org","@type":"NewsArticle",headline:e.title||""},P&&{description:P}),U&&{articleBody:U}),N.length>0&&{image:N}),m&&{thumbnailUrl:m}),{},{datePublished:o,dateModified:c},O&&{author:O}),{},{publisher:{"@type":"Organization",name:d,logo:{"@type":"ImageObject",url:u}},mainEntityOfPage:{"@type":"WebPage","@id":i},url:E},M&&{inLanguage:M}),L&&{keywords:L}),R&&{articleSection:R}),null!=e.wordCount&&{wordCount:e.wordCount}),t&&t.length>0&&{about:t})}(N,s,A),S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(!e)return null;var i=v(e,t,n),r=b(e,160,"Read the latest news on Dailyhunt"),s=e.languageKey||"en";return l(l({"@context":"https://schema.org","@type":"WebPage",name:e.title||d,url:i},r&&{description:r}),{},{inLanguage:s,isPartOf:{"@type":"WebSite",name:d,url:"https://m.dailyhunt.in"}},a&&{breadcrumb:{"@id":a}})}(N,s,A,_?C:null);return{seoConfig:function(e){var t,n,i,r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;var o=e.title||"",u=b(e,160,"Read the latest news on Dailyhunt"),p=o?"".concat(o," | ").concat(d):d,m=w(e.contentImageInfo||{}),h=y(e),f=h.publishedTime,g=h.modifiedTime,x=v(e,s,l),N=k(e),A=j(e),D=e.languageKey&&(t=e.languageKey)?c[t]||"".concat(t,"_IN"):"en_US",C=l||(null==e?void 0:e.webAttributes)||{},_=[].concat((0,a.A)((null===(n=e.tags)||void 0===n?void 0:n.map(function(e){return e.name||e}))||[]),(0,a.A)((null===(i=e.hashtags)||void 0===i?void 0:i.map(function(e){return e.name||e}))||[])).filter(Boolean),O=[];f&&O.push({name:"article:published_time",content:f}),g&&O.push({name:"article:modified_time",content:g}),N&&O.push({name:"article:author",content:N}),A&&O.push({name:"article:section",content:A});var S=_.join(", ");return S&&O.push({name:"news_keywords",content:S}),e.wordCount&&O.push({name:"article:word_count",content:String(e.wordCount)}),e.hashtags&&Array.isArray(e.hashtags)&&e.hashtags.forEach(function(e){var t=e.name||e;t&&O.push({name:"article:tag",content:t})}),(null===(r=e.source)||void 0===r?void 0:r.badgeType)==="VERIFIED"&&O.push({name:"article:author:verified",content:"true"}),O.push({property:"fb:app_id",content:"131285656905938"}),O.push({property:"article:publisher",content:"https://www.facebook.com/DailyhuntApp"}
1),m&&O.push({name:"twitter:image:src",content:m}),O.push({name:"twitter:app:id:googleplay",content:"com.eterno"}),O.push({name:"twitter:app:name:googleplay",content:"Dailyhunt"}),O.push({name:"twitter:app:name:iphone",content:"Newshunt"}),O.push({name:"twitter:app:id:iphone",content:"338525188"}),O.push({name:"robots",content:(null==C?void 0:C.noIndex)==="Y"?"noindex, nofollow":"index, follow, max-image-preview:large"}),{title:p,description:u,canonical:x,openGraph:{title:o,description:u,url:x,type:"article",locale:D,images:m?[{url:m,width:1200,height:630,alt:o}]:[],siteName:d,article:{publishedTime:f,modifiedTime:g,authors:N?[N]:[],section:A,tags:_}},twitter:{cardType:"summary_large_image",title:o,description:u,image:m,site:"@dailyhunt"},additionalMetaTags:O}}(N,s,A),jsonLd:[O,_,S,{"@context":"https://schema.org","@type":"Organization",name:d,url:p,logo:{"@type":"ImageObject",url:u,width:138,height:36},sameAs:m,contactPoint:{"@type":"ContactPoint",contactType:"customer support",url:"".concat(p,"/"),availableLanguage:["en","hi","bn","gu","kn","ml","mr","or","pa","ta","te","ur"]}}].filter(Boolean),preloadLinks:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return[];var a=[];if(null!==(t=e.contentImageInfo)&&void 0!==t&&t.url){var i=n?r.wW:r.uS,s=(0,r.rw)(e.contentImageInfo.url,i);null!=s&&s.src&&a.push({rel:"preload",as:"image",href:s.src,fetchPriority:"high"})}return a}(N,x)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.