1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1870],{3247:(e,t,n)=>{n.d(t,{hU:()=>o,i6:()=>s});var r=new Set(["7f08c269e2f6c0b570fa27e5b15013f6","5330939","ac+asia+series","261001830fabc4311f5778807861629e","42500","football+league","277759d041fddb2d6abf6ddeab96feb3","18","89dd44d0fe6476a47f97f1883d78ff04","495","13d19aadf24bc96f1a002012e040c552","astro","5aa5af4b1f3258c268324cb316b73ac3","amz-tamilnadu","amz+tamilnadu"]);function o(e){return!!e&&[e.id,e.legacyId,e.legacyKey,e.nameEnglish,e.key].some(function(e){return null!=e&&""!==e&&r.has(String(e).toLowerCase())})}function s(e){return Array.isArray(e)?e.filter(function(e){return!o(e)}):e}},61544:(e,t,n)=>{n.r(t),n.d(t,{default:()=>E});var r,o=n(42969),s=n(67251),a=n(23745),i=n(76966),l=n(73910),c=n(52672),p=n(14232),d=n(89230),u=n(43505),h=n(62250),x=n.n(h),m=n(80035),g=n(48230),f=n.n(g),b=n(4518),v=n(3247),y=n(51857),w=n(74162),k=n(89099),j=n(38910),N=n(37876);let C=(0,w.inject)("store")((0,w.observer)(function(e){var t=e.store,n=(0,k.useRouter)(),r=window.location.origin,o=(null==t?void 0:t.selectedLang)||"en",s=(0,j.A)(o).deleteMyAccountString,a=(0,u.hC)("/news/".concat((null==t?void 0:t.selectedCountry)||"india","/").concat(d.A[(null==t?void 0:t.selectedLang)||"en"],"/login"));return(0,N.jsxs)("div",{className:"showLangDiv h-full bg-white p-5 w-[300px] relative z-[999999999999999999999] max-h-[70vh] overflow-y-auto",children:[(0,N.jsx)("h2",{className:"text-sm font-semibold text-black text-center mb-[15px]",children:"About us"}),(0,N.jsxs)("p",{className:"text-[13px] text-black leading-snug mb-3",children:["Eterno Infotech \xa9 2022 ",(0,N.jsx)("br",{})," Dailyhunt operated by Eterno Infotech"," ",(0,N.jsx)("br",{})," For more information, please visit:"]}),(0,N.jsxs)("ul",{className:"text-[13px] space-y-1.5",children:[(0,N.jsx)("li",{children:(0,N.jsx)("a",{href:r?"".concat(r,"/terms-of-service?mode=wap"):"#",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})}),(0,N.jsx)("li",{children:(0,N.jsx)("a",{href:r?"".concat(r,"/privacy?mode=wap"):"#",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})}),(0,N.jsx)("li",{children:(0,N.jsx)("a",{href:r?"".concat(r,"/community-guidelines?mode=wap"):"#",target:"_blank",rel:"noopener noreferrer",children:"Community Guidelines"})}),(0,N.jsx)("li",{children:(0,N.jsx)("a",{href:r?"".concat(r,"/grievance?mode=wap"):"#",target:"_blank",rel:"noopener noreferrer",children:"Grievances"})}),(0,N.jsx)("li",{children:(0,N.jsx)("a",{href:"mailto:[email protected]",target:"_blank",rel:"noopener noreferrer",children:"Support"})}),(0,N.jsx)("li",{children:(0,N.jsx)("button",{type:"button",className:"text-red-600 hover:underline",onClick:function(){return n.push(a)},children:s})})]}),(0,N.jsx)("div",{className:"absolute -bottom-[10px] left-[12px] border-[10px] border-transparent border-t-white border-b-0"})]})})),L=(0,w.inject)("store")((0,w.observer)(function(e){var t=e.store,n=(null==t?void 0:t.clientId)||"Default Client ID";return(0,N.jsxs)("div",{className:"showLangDiv h-full bg-white p-5 w-[300px] relative z-[999999999999999999999]",children:[(0,N.jsx)("h2",{className:"text-sm font-semibold text-black text-center mb-[15px]",children:"Help"}),(0,N.jsxs)("p",{className:"text-[13px] text-black leading-snug",children:["Support:"," ",(0,N.jsx)("a",{href:"mailto:[email protected]",className:"support text-[#0066cc] underline underline-offset-2 break-all hover:opacity-90",children:"[email protected]"})]}),(0,N.jsxs)("p",{className:"menu-txt pt-3 mt-3 text-[13px] text-black leading-snug",children:[(0,N.jsx)("span",{className:"text-gray-600",children:"clientId:"})," ",(0,N.jsx)("code",{className:"inline rounded bg-transparent px-1.5 py-0.5 text-[12px] font-mono text-black align-baseline break-all",children:n})]}),(0,N.jsx)("div",{className:"absolute -bottom-[10px] left-[12px] border-[10px] border-transparent border-t-white border-b-0"})]})}));function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A(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,o.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 T=n(74162),_=T.observer,D=T.inject,O=n(14232),I=O.Component,R=O.createRef;let E=D("store")(r=_(r=function(e){(0,i.A)(r,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,c.A)(r);return e=t?Reflect.construct(n,arguments,(0,c.A)(this).constructor):n.apply(this,arguments),(0,l.A)(this,e)});function r(e){var t,a;return(0,s.A)(this,r),(a=n.call(this,e)).toggleAboutUs=function(){a.setState(function(e){return A({showAboutUs:!e.showAboutUs},e.showAboutUs?{}:{showHelp:!1})})},a.toggleHelp=function(){a.setState(function(e){return A({showHelp:!e.showHelp},e.showHelp?{}:{showAboutUs:!1})})},a.footerDropdownOutsideClick=function(e){if("footer"===a.props.type){var t=a.aboutFooterRef.current,n=a.helpFooterRef.current;t&&!t.contains(e.target)&&a.setState({showAboutUs:!1}),n&&!n.contains(e.target)&&a.setState({showHelp:!1})}},a.checkScroll=function(){var e=a.menuRef.current;if(e){var t=e.scrollLeft>5,n=e.scrollLeft+e.clientWidth<e.scrollWidth-5;a.setState({canScrollLeft:t,canScrollRight:n})}},a.links=function(e,t){e=(0,m.HO)(e),t=(0,m.HO)(t);var n,r,o,s,i,l,c,p,h=a.props.listName||a.store.activeTopic,g=((null===(n=e.title)||void 0===n?void 0:n.toLowerCase())||(null===(r=e.name)||void 0===r?void 0:r.toLowerCase())||null===(o=e.nameEnglish)||void 0===o||o.toLowerCase(),null===(s=e.nameEnglish)||void 0===s?void 0:s.toLowerCase()),f="#";switch(null===(i=a.store.activeNav)||void 0===i||i.toLowerCase(),h){case"buzzListing":f=(0,u.hC)("/buzz/content/".concat(d.A[a.store.selectedLang],"/").concat(g),{mode:"pwa",action:"click"});break;case"viralListing":f=(0,u.hC)("/viral/".concat(a.store.selectedCountry,"/").concat(d.A[a.store.selectedLang],"/").concat(g),{mode:"pwa",action:"click"}),t&&(f=(0,u.hC)("/news/".concat(a.store.selectedCountry,"/").concat(d.A[a.store.selectedLang],"/").concat((0,u.DT)(e.nameEnglish,"-"),"-topics-").concat(e.id,"/").concat((0,u.DT)(e.nameEnglish,"-"),"-subtopics-").concat(t.legacyId),{mode:"pwa",action:"click"}));break;case"topicsList":f=(0,u.hC)("/news/".concat(a.store.selectedCountry,"/").concat(d.A[a.store.selectedLang],"/").concat(g),{mode:"pwa",action:"click"}),t&&(f=(0,u.hC)("/news/".concat(a.store.selectedCountry,"/").concat(d.A[a.store.selectedLang],"/").concat((0,u.DT)(e.nameEnglish,"-"),"-topics-").concat(e.id,"/").concat((0,u.DT)(e.nameEnglish,"-"),"-subtopics-").concat(t.legacyId),{mode:"pwa",action:"click"}));break;case"newspaperLanding":null===(l=e.nameUni)||void 0===l||l.toLowerCase(),g=null===(c=e.shortKey)||void 0===c?void 0:c.toLowerCase();var b=e.deeplinkUrl&&e.deeplinkUrl.split(".dailyhunt.in")[1];f=(0,u.hC)(b||"/news/".concat(a.store.selectedCountry,"/").concat(d.A[a.store.selectedLang],"/").concat(a.store.npName,"-epaper-").concat(a.store.npKey,"/").concat(e.nameUni,"-updates-").concat(g),{mode:"pwa",action:"click"});break;case"generalizedTopics":e.deeplinkUrl&&e.deeplinkUrl.split(".dailyhunt.in")[1],f=(0,u.hC)("/news/".concat(a.store.selectedCountry,"/").concat(d.A[a.store.selectedLang],"/").concat((0,u.DT)(e.nameEnglish,"-"),"-topics-").concat(null===(p=e)||void 0===p||null===(p=p.parent)||void 0===p?void 0:p.id,"/").concat((0,u.DT)(e.nameEnglish,"-"),"-subtopics-").concat(e.legacyId),{mode:"pwa",action:"click"});break;case"buzzList":var v="".concat(e.titleEnglish.toLowerCase(),"-").concat(a.store.selectedLang,"-").concat(e.key);f=x()("/buzz/content/".concat(d.A[a.store.selectedLang],"/").concat(v),{mode:"pwa",action:"click"});break;default:return null}return f},a.navRef=R(),a.store=a.props.store,a.isDesktop=a.store.isDesktop,a.activeItemRef=R(),a.state=(t={canScrollLeft:!1,canScrollRight:!0,activeIndex:0,isOpen:!1,showAboutUs:!1,showHelp:!1,isComponentMounted:!1},(0,o.A)(t,"canScrollLeft",!1),(0,o.A)(t,"canScrollRight",!1),t),a.menuRef=p.createRef(),a.aboutFooterRef=R(),a.helpFooterRef=R(),a}
1return(0,a.A)(r,[{key:"componentDidMount",value:function(){var e,t,n=this.store.activeTopic;null===(e=this.store)||void 0===e||e[n],"footer"!==this.props.type&&this.menuRef.current&&(this.checkScroll(),null===(t=this.menuRef.current)||void 0===t||t.addEventListener("scroll",this.checkScroll),window.addEventListener("resize",this.checkScroll)),"footer"===this.props.type&&document.addEventListener("click",this.footerDropdownOutsideClick)}},{key:"componentWillUnmount",value:function(){var e;null===(e=this.menuRef.current)||void 0===e||e.removeEventListener("scroll",this.checkScroll),window.removeEventListener("resize",this.checkScroll),"footer"===this.props.type&&document.removeEventListener("click",this.footerDropdownOutsideClick)}},{key:"render",value:function(){var e,t,n,r,o=this,s=this.store&&(!0===this.store.isDarkTheme||"true"===String(this.store.isDarkTheme)),a=this.props.listName||(null===(e=this.store)||void 0===e?void 0:e.activeTopic),i=null===(t=this.store)||void 0===t?void 0:t[a],l=this.props.type,c="subtopic"===l,p=(i=(0,v.i6)(null===(n=i)||void 0===n?void 0:n.filter(function(e){return"all-categories"!==e.name})))?null===(r=i)||void 0===r?void 0:r.slice(4):i;return"footer"===l&&(p=i),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{ref:this.menuRef,className:"relative m-auto ".concat("footer"===l?"max-w-[100%] w-[1048px] shadow-[0px_1px_0px_0px_rgba(0,0,0,0.16)_inset] pt-[40px] mb-[20px]":"z-[999999999999] max-h-[50vh] overflow-y-auto p-4 border-t-[4px] border-black bg-white"),style:{columnCount:"footer"===l?4:1,columnGap:"24px",columnFill:"balance"},children:["footer"!==l&&!c&&(0,N.jsx)("div",{className:"absolute top-[-12px] left-[670px] w-0 h-0 border-l-[8px] border-r-[8px] border-b-[8px] border-l-transparent border-r-transparent border-b-black"}),p&&p.map(function(e){return(0,N.jsx)("div",{className:" min-w-0 mb-3",children:(0,N.jsx)("div",{className:"mb-1 ".concat("footer"==o.props.type?"text-[16px] font-[700]":"text-[14px]"," text-black-900 cursor-pointer leading-tight"),children:(0,N.jsx)(f(),{href:o.links(e)||"",children:e.displayName})})},e.name)}),!c&&(0,N.jsx)("div",{className:"break-inside-avoid min-w-0 mb-3",children:(0,N.jsx)("div",{className:"mb-1 ".concat("footer"==this.props.type?"text-[16px] font-[700]":"text-[14px]"," text-black-900 cursor-pointer leading-tight"),children:(0,N.jsx)(f(),{href:"/news/".concat(this.store.selectedCountry,"/").concat(d.A[this.store.selectedLang],"/all-topics"),onClick:function(){return(0,y.SF)({explorebutton_click:"More Hashtags"},"EXPLOREBUTTON_CLICK")},children:"All Hashtags"})})},"all-hashtags"),this.state.canScrollRight&&(0,N.jsx)("div",{className:"fixed top-1/2 right-2 -translate-y-1/2 z-50 cursor-pointer bg-black/70 text-white p-2 rounded-full",onClick:function(){var e;null===(e=o.menuRef.current)||void 0===e||e.scrollBy({left:300,behavior:"smooth"})},children:">"}),this.state.canScrollLeft&&(0,N.jsx)("div",{className:"fixed top-1/2 left-2 -translate-y-1/2 z-50 cursor-pointer bg-black/70 text-white p-2 rounded-full",onClick:function(){var e;null===(e=o.menuRef.current)||void 0===e||e.scrollBy({left:-300,behavior:"smooth"})},children:"<"})]}),"footer"===l&&(0,N.jsxs)("footer",{className:"max-w-[1048px] w-full bg-white m-auto shadow-[0px_1px_0px_0px_rgba(0,0,0,0.16)_inset] pt-[20px] pb-[40px]",children:[(0,N.jsx)("p",{className:"text-[12px] text-[#818181]",children:"Copyright @ 2022 Eterno Infotech Pvt. Ltd. All rights reserved"}),(0,N.jsxs)("div",{className:"flex items-center justify-between gap-4 mt-4",children:[(0,N.jsxs)("ul",{className:"flex items-center gap-[15px] list-none p-0 m-0",children:[(0,N.jsx)("li",{children:(0,N.jsx)("a",{href:"https://www.facebook.com/DailyhuntApp/",target:"_blank","aria-label":"Facebook",className:"block w-[30px] h-[30px] bg-no-repeat bg-center bg-contain",style:{backgroundImage:"url('".concat(s?"/images/desktop/icn_fb_dark.svg":"/images/desktop/icn_fb.svg","')")}})}),(0,N.jsx)("li",{children:(0,N.jsx)("a",{href:"https://x.com/Dailyhunt_India",target:"_blank","aria-label":"X",className:"block w-[30px] h-[30px] bg-no-repeat bg-center bg-contain",style:{backgroundImage:"url('".concat(s?"/images/desktop/icn_x_dark.svg":"/images/desktop/icn_x.svg","')")}})}),(0,N.jsx)("li",{children:(0,N.jsx)("a",{href:"https://www.instagram.com/dailyhuntapp/",target:"_blank","aria-label":"Instagram",className:"block w-[30px] h-[30px] bg-no-repeat bg-center bg-contain",style:{backgroundImage:"url('".concat(s?"/images/desktop/icn_instagram_dark.svg":"/images/desktop/icn_instagram.svg","')")}})}),(0,N.jsx)("li",{children:(0,N.jsx)("a",{href:"https://www.linkedin.com/company/verseinnovation/",target:"_blank","aria-label":"LinkedIn",className:"block w-[30px] h-[30px] bg-no-repeat bg-center bg-contain",style:{backgroundImage:"url('".concat(s?"/images/desktop/icn_linkedin_dark.svg":"/images/desktop/icn_linkedin.svg","')")}})})]}),(0,N.jsxs)("ul",{className:"flex items-center gap-4 list-none p-0 m-0",children:[(0,N.jsx)("li",{children:(0,N.jsx)("a",{href:b.TK,"aria-label":"Download on the App Store",className:"block h-10 w-[135px] bg-no-repeat bg-center bg-contain",style:{backgroundImage:"url('/images/desktop/appstorebadge.svg')"}})}),(0,N.jsx)("li",{children:(0,N.jsx)("a",{href:b.n6,"aria-label":"Get it on Google Play",className:"block h-10 w-[135px] bg-no-repeat bg-center bg-contain",style:{backgroundImage:"url('/images/desktop/playstorebadge.svg')"}})})]})]}),(0,N.jsx)("div",{className:"flex items-center justify-between gap-4 mt-4",children:(0,N.jsxs)("ul",{className:"flex items-center gap-[15px] list-none p-0 m-0",children:[(0,N.jsxs)("li",{ref:this.aboutFooterRef,className:"relative inline-block z-[9999]",children:[(0,N.jsx)("button",{type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),o.toggleAboutUs()},"aria-label":"About us","aria-expanded":this.state.showAboutUs,className:"inline-block cursor-pointer bg-transparent border-0 p-0 text-inherit underline-offset-2 hover:underline",children:"About us"}),(0,N.jsx)("div",{className:"absolute left-0 bottom-full mb-2 bg-gray-900 rounded-[4px] shadow-lg transition-all duration-200 z-[9999] ".concat(this.state.showAboutUs?"opacity-100 visible pointer-events-auto":"opacity-0 invisible pointer-events-none"),onClick:function(e){return e.stopPropagation()},children:(0,N.jsx)(C,{})})]}),(0,N.jsxs)("li",{ref:this.helpFooterRef,className:"relative inline-block z-[9999]",children:[(0,N.jsx)("button",{type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),o.toggleHelp()},"aria-label":"Help","aria-expanded":this.state.showHelp,className:"inline-block cursor-pointer bg-transparent border-0 p-0 text-inherit underline-offset-2 hover:underline",children:"Help"}),(0,N.jsx)("div",{className:"absolute left-0 bottom-full mb-2 bg-gray-900 rounded-[4px] shadow-lg transition-all duration-200 z-[9999] ".concat(this.state.showHelp?"opacity-100 visible pointer-events-auto":"opacity-0 invisible pointer-events-none"),onClick:function(e){return e.stopPropagation()},children:(0,N.jsx)(L,{})})]})]})})]})]})}}]),r}(I))||r)||r},91870:(e,t,n)=>{n.d(t,{A:()=>Q});var r,o,s=n(42969),a=n(67251),i=n(23745),l=n(80033),c=n(76966),p=n(73910),d=n(52672),u=n(14232),h=n(74162),x=n(54587),m=n.n(x),g=n(48230),f=n.n(g),b=n(89099),v=n(43505),y=n(3247),w=n(20371),k=n.n(w),j=n(89230),N=n(51857),C=n(30848),L=n(45794),S=n(98477),A=n(37876);let T=(0,h.inject)("store")((0,h.observer)(function(e){var t=e.onClose,n=e.onSelectLanguage,r=e.store,o=(0,b.useRouter)(),s=function(e,s,a){e.preventDefault(),(0,N.SF)({language:a},"LANG_SELECTION");var i=(null==r?void 0:r.selectedCountry)||"india",l=null!=r&&r.isDesktop?"home":"news",c="/news/".concat(i,"/").concat(a,"/").concat(l);
1if(o.asPath.split("?")[0]===c){n(),t();return}o.push(c),n(),t()};return S.createPortal((0,A.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-50",onClick:function(e){e.target===e.currentTarget&&t()},children:(0,A.jsxs)("div",{className:"showLangDiv bg-white p-5 w-[300px] rounded-lg relative animate-slideIn",children:[(0,A.jsx)("h2",{className:"text-sm font-semibold text-black text-center mb-[15px]",children:"Select Language"}),(0,A.jsx)("ul",{className:"grid grid-cols-2 gap-[10px]",children:Object.entries(j.A).map(function(e){var t=(0,L.A)(e,2),n=t[0],r=t[1];return(0,A.jsx)("li",{className:"column-2",children:(0,A.jsxs)("div",{className:"lang-btn lang-".concat(n," flex p-1.5 rounded-full border transition-all duration-300 cursor-pointer"),onClick:function(e){return s(e,n,r)},children:[(0,A.jsx)("b",{className:"w-[20px] h-[20px] flex justify-center rounded-full text-[9px] text-white transition-all duration-300 uppercase items-center",children:n}),(0,A.jsx)("span",{className:"ml-[12px] text-[12px] font-normal capitalize",children:r})]})},n)})}),(0,A.jsx)("button",{onClick:t,className:"absolute top-2 right-2 text-gray-500 text-xl",children:"\xd7"})]})}),document.body)}));var _=n(38910),D=function(e){(0,c.A)(r,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,d.A)(r);return e=t?Reflect.construct(n,arguments,(0,d.A)(this).constructor):n.apply(this,arguments),(0,p.A)(this,e)});function r(){var e;(0,a.A)(this,r);for(var t=arguments.length,o=Array(t),s=0;s<t;s++)o[s]=arguments[s];return(e=n.call.apply(n,[this].concat(o))).handleBackgroundClick=function(t){t.target===t.currentTarget&&e.props.onClose()},e.goToDeleteAccount=function(){var t=e.props.store,n=(0,v.hC)("/news/".concat((null==t?void 0:t.selectedCountry)||"india","/").concat(j.A[(null==t?void 0:t.selectedLang)||"en"],"/login"));e.props.onClose(),e.props.router&&e.props.router.push(n)},e}return(0,i.A)(r,[{key:"render",value:function(){var e=this.props.store,t=(null==e?void 0:e.selectedLang)||"en",n=(0,_.A)(t).deleteMyAccountString;return S.createPortal((0,A.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-50",onClick:this.handleBackgroundClick,children:(0,A.jsxs)("div",{className:"showLangDiv bg-white p-5 w-[300px] max-h-[85vh] overflow-y-auto rounded-lg relative animate-slideIn",children:[(0,A.jsx)("h2",{className:"text-sm font-semibold text-black text-center mb-[15px]",children:"About us"}),(0,A.jsxs)("p",{className:"text-[13px] text-black leading-snug mb-3",children:["Eterno Infotech \xa9 2025 ",(0,A.jsx)("br",{})," Dailyhunt operated by Eterno Infotech",(0,A.jsx)("br",{})," For more information, please visit:"]}),(0,A.jsxs)("ul",{className:"text-[13px] space-y-1.5",children:[(0,A.jsx)("li",{children:(0,A.jsx)("a",{href:window.location.origin+"/terms-of-service?mode=wap",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})}),(0,A.jsx)("li",{children:(0,A.jsx)("a",{href:window.location.origin+"/privacy?mode=wap",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})}),(0,A.jsx)("li",{children:(0,A.jsx)("a",{href:window.location.origin+"/community-guidelines?mode=wap",target:"_blank",rel:"noopener noreferrer",children:"Community Guidelines"})}),(0,A.jsx)("li",{children:(0,A.jsx)("a",{href:window.location.origin+"/grievance?mode=wap",target:"_blank",rel:"noopener noreferrer",children:"Grievances"})}),(0,A.jsx)("li",{children:(0,A.jsx)("a",{href:"mailto:[email protected]",target:"_blank",rel:"noopener noreferrer",children:"Support"})}),(0,A.jsx)("li",{children:(0,A.jsx)("button",{type:"button",className:"text-red-600 hover:underline",onClick:this.goToDeleteAccount,children:n})})]}),(0,A.jsx)("button",{type:"button",onClick:this.props.onClose,className:"absolute top-2 right-2 text-gray-500 text-xl leading-none","aria-label":"Close",children:"\xd7"})]})}),document.body)}}]),r}(u.Component);let O=(0,b.withRouter)((0,h.inject)("store")((0,h.observer)(D)));var I=n(32131),R=n(60556);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?E(Object(n),!0).forEach(function(t){(0,s.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var P=(0,h.inject)("store")(r=(0,h.observer)(r=function(e){(0,c.A)(r,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,d.A)(r);return e=t?Reflect.construct(n,arguments,(0,d.A)(this).constructor):n.apply(this,arguments),(0,p.A)(this,e)});function r(e){var t;return(0,a.A)(this,r),(t=n.call(this,e)).topicsOnClick=function(e,n,r){if(e.preventDefault(),r){window.open(n,"_blank");return}t.props.router.asPath!==n&&t.props.router.push(n)},t.setIsActive=function(e){t.setState({isActive:e})},t.toggleLanguageSelector=function(){t.setState({showLanguageSelector:!t.state.showLanguageSelector})},t.toggleAboutUs=function(){t.setState({showAboutUs:!t.state.showAboutUs})},t.handleLanguageSelect=function(e){t.setState({selectedLanguage:e,showLanguageSelector:!1}),t.props.onClose()},t.handleRedirection=function(e){var n;null===(n=t.props)||void 0===n||null===(n=n.router)||void 0===n||n.push(e)},t.store=t.props.store,t.state={isActive:null,showLanguageSelector:!1,showAboutUs:!1,selectedLanguage:null,isComponentMounted:!1},t}return(0,i.A)(r,[{key:"componentDidMount",value:function(){this.setState({isComponentMounted:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.isActive,r=t.showLanguageSelector,o=(t.selectedLanguage,t.showAboutUs),s=!!this.state.isComponentMounted&&I.default.at(this.store,"loginData.isLogin");I.default.at(this.store,"loginData.handle");var a=I.default.at(this.store,"loginData.profileImage"),i=(0,C.AN)(a,{width:100,height:100}).webp,l=(0,_.A)(this.store.selectedLang||"en"),c=l.news,p=l.trending,d=l.video,u=l.xpressoString,h=l.premium,x=l.followSystem,g=l.darkMode,b=l.languageMenu,y=l.login,w=l.logout,k=l.aboutDailyhunt,L=l.legal,S=l.downloadApp;return(0,A.jsxs)("div",{className:"fixed inset-0 z-50 flex h-screen bg-[#000000ab]",children:[(0,A.jsx)("div",{className:"relative w-[70%] h-full",children:(0,A.jsxs)("aside",{className:"flex flex-col h-full bg-white overflow-y-auto",children:[(0,A.jsxs)("div",{className:"relative group flex w-full cursor-pointer border-b border-gray-200 p-[20px] items-center ".concat("News"===n?"mobile-menu-item-active":""),onClick:function(){e.setIsActive("News"),(0,N.SF)({explorebutton_click:"News Format News"},"EXPLOREBUTTON_CLICK"),e.handleRedirection("/news/".concat(e.store.selectedCountry,"/").concat(j.A[e.store.selectedLang],"/news"))},children:[(0,A.jsx)("span",{className:"mobile-menu-icon mobile-menu-icon-news w-[26px] h-[26px]","aria-hidden":"true"}),(0,A.jsx)("div",{className:"pl-[4px] text-[14px]",children:c})]}),(0,A.jsxs)("div",{className:"relative group flex w-full cursor-pointer border-b border-gray-200 p-[20px] items-center ".concat("Trending"===n?"mobile-menu-item-active":""),onClick:function(){e.setIsActive("Trending"),(0,N.SF)({explorebutton_click:"News Format Viral"},"EXPLOREBUTTON_CLICK"),e.handleRedirection("/viral/".concat(e.store.selectedCountry,"/").concat(j.A[e.store.selectedLang],"/all"))},children:[(0,A.jsx)("span",{className:"mobile-menu-icon mobile-menu-icon-trending w-[26px] h-[26px]","aria-hidden":"true"}),(0,A.jsx)("div",{className:"pl-[4px] text-[14px]",children:p})]}),(0,A.jsxs)("div",{className:"relative group flex w-full cursor-pointer border-b border-gray-200 p-[20px] items-center ".concat("Video"===n?"mobile-menu-item-active":""),onClick:function(){e.setIsActive("Video"),(0,N.SF)({explorebutton_click:"News Format Video"},"EXPLOREBUTTON_CLICK"),e.handleRedirection("/buzz/".concat(e.store.selectedCountry,"/").concat(j.A[e.store.selectedLang],"/news"))},children:[(0,A.jsx)("span",{className:"mobile-menu-icon mobile-menu-icon-video w-[26px] h-[26px]","aria-hidden":"true"}),(0,A.jsx)("div",{className:"pl-[4px] text-[14px]",children:d})]}),(0,A.jsxs)(f(),{href:"https://xpresso.com/",target:"_blank",rel:"noopener noreferrer",className:"relative group flex w-full cursor-pointer border-b border-gray-200 p-[20px] items-center",onClick:function(){return e.setIsActive("Xpresso")},children:[(0,A.jsx)(m(),{width:26,height:26,className:"w-[26px] h-[26px]",src:"Xpresso"===n?"/images/icon_xpresso_active.svg":"/images/icon_xpresso.svg",alt:"Xpresso",loading:"lazy"}),(0,A.jsx)("div",{className:"pl-[4px] text-[14px]",children:u})]}),(0,A.jsxs)("div",{className:"relative group flex w-full cursor-pointer border-b border-gray-200 p-[20px] items-center ".concat("premium"===n?"mobile-menu-item-active":""),onClick:function(){e.setIsActive("premium"),e.handleRedirection("/prm")},children:[(0,A.jsx)("span",{className:"mobile-menu-icon mobile-menu-icon-premium w-[22px] h-[22px]","aria-hidden":"true"}),(0,A.jsx)("div",{className:"pl-[4px] text-[14px]",children:h})]}),(0,A.jsxs)("div",{className:"relative group flex w-full items-center justify-between border-b border-gray-200 p-[20px]",children:[(0,A.jsxs)("div",{className:"flex items-center flex-1 min-w-0",children:[(0,A.jsx)("span",{className:"mobile-menu-icon mobile-menu-icon-day w-[26px] h-[26px] shrink-0","aria-hidden":"true"}),(0,A.jsx)("div",{className:"pl-[4px] text-[14px]",children:x})]}),(0,A.jsx)("div",{className:"shrink-0 pl-5",children:(0,A.jsxs)("label",{className:"switch-toggle",children:[(0,A.jsx)("input",{type:"checkbox",checked:!!this.store.defaultSetting,readOnly:!0}),(0,A.jsx)("span",{className:"slider round",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.store.defaultSetting?e.store.unSetDefaultMode():e.store.setDefaultMode()}})]})})]}),(0,A.jsxs)("div",{className:"relative group flex w-full items-center justify-between border-b border-gray-200 p-[20px]",children:[(0,A.jsxs)("div",{className:"flex items-center flex-1 min-w-0",children:[(0,A.jsx)("span",{className:"mobile-menu-icon mobile-menu-icon-night w-[26px] h-[26px] shrink-0","aria-hidden":"true"}),(0,A.jsx)("div",{className:"pl-[4px] text-[14px]",children:g})]}),(0,A.jsx)("div",{className:"shrink-0 pl-5",children:(0,A.jsxs)("label",{className:"switch-toggle",children:[(0,A.jsx)("input",{type:"checkbox",disabled:!!this.store.defaultSetting,checked:!this.store.defaultSetting&&!!this.store.isDarkTheme,readOnly:!0}),(0,A.jsx)("span",{className:"slider round",onClick:function(t){t.preventDefault(),t.stopPropagation(),e.store.defaultSetting||e.store.setManualMode()}})]})})]}),(0,A.jsxs)("div",{className:"relative group flex w-full cursor-pointer border-b border-gray-200 p-[20px] items-center",onClick:function(){(0,N.SF)({},"LANGUAGE_SELECTION_VIEW"),e.toggleLanguageSelector()},children:[(0,A.jsx)("span",{className:"mobile-menu-icon mobile-menu-icon-lang w-[26px] h-[26px]","aria-hidden":"true"}),(0,A.jsx)("div",{className:"pl-[4px] text-[14px]",children:b})]}),this.state.isComponentMounted&&(0,A.jsxs)("div",{className:"relative group flex w-full cursor-pointer border-b border-gray-200 p-[20px] items-center",onClick:function(t){s?(console.log("logout"),(0,R.y)(e.store)):(e.setIsActive("Login"),e.to
1picsOnClick(t,(0,v.hC)("/news/".concat(e.store.selectedCountry,"/").concat(j.A[e.store.selectedLang],"/login?onlyLogin=true"))))},children:[s?(0,A.jsx)("img",{className:"w-[40px] h-[40px] rounded-full border-1 border-gray-800",src:i,alt:"User profile",loading:"lazy"}):(0,A.jsx)(m(),{width:40,height:40,className:"w-[40px] h-[40px]",src:"/images/login.svg",alt:"Login",loading:"lazy"}),(0,A.jsx)("div",{className:"pl-[4px] text-[14px]",children:s?w:y})]}),(0,A.jsx)("div",{className:"relative group flex w-full cursor-pointer border-b border-gray-200 p-[20px] items-center",onClick:this.toggleAboutUs,children:(0,A.jsx)("div",{className:"text-[14px]",children:k})}),(0,A.jsx)("div",{className:"relative group flex w-full cursor-pointer border-b border-gray-200 p-[20px] items-center",onClick:function(){e.setIsActive("Legal"),e.handleRedirection("/privacy")},children:(0,A.jsx)("div",{className:"text-[14px]",children:L})}),(0,A.jsx)("div",{className:"relative group flex w-full cursor-pointer border-b border-gray-200 p-[20px] items-center",onClick:function(){window.open("https://play.google.com/store/apps/details?id=com.eterno&hl=en_IN","_blank")},children:(0,A.jsx)("div",{className:"text-[14px]",children:S})})]})}),r&&(0,A.jsx)(T,{onClose:this.toggleLanguageSelector,onSelectLanguage:this.handleLanguageSelect}),o&&(0,A.jsx)(O,{onClose:this.toggleAboutUs})]})}}]),r}(u.Component))||r)||r;let U=function(e){var t=(0,b.useRouter)();return(0,A.jsx)(P,z(z({},e),{},{router:t}))},F=(0,h.inject)("store")((0,h.observer)(function(e){var t=e.store,n=(0,b.useRouter)(),r=function(e,r){e.preventDefault(),(0,N.SF)({language:r},"LANG_SELECTION");var o=(null==t?void 0:t.selectedCountry)||"india",s=null!=t&&t.isDesktop?"home":"news",a="/news/".concat(o,"/").concat(r,"/").concat(s);n.asPath.split("?")[0]!==a&&n.push(a)};return(0,A.jsxs)("div",{className:"showLangDiv h-full bg-white p-5 w-[300px] relative z-[999999999999999999999]",children:[(0,A.jsx)("h2",{className:"text-sm font-semibold text-black text-center mb-[15px]",children:"Select preferred languages"}),(0,A.jsx)("ul",{className:"grid grid-cols-2 gap-[10px]",children:Object.entries(j.A).map(function(e){var t=(0,L.A)(e,2),n=t[0],o=t[1];return(0,A.jsx)("li",{className:"column-2 cursor-pointer",onClick:function(e){return r(e,o)},children:(0,A.jsxs)("div",{className:"lang-btn lang-".concat(n," flex items-center p-1.5 rounded-full border transition-all duration-300 cursor-pointer"),children:[(0,A.jsx)("b",{className:"w-[20px] h-[20px] flex items-center justify-center rounded-full text-[8px] text-white transition-all duration-300 uppercase p-1",children:n}),(0,A.jsx)("span",{className:"ml-[12px] text-[12px] font-normal capitalize",children:o})]})},n)})}),(0,A.jsx)("div",{className:"absolute -top-[10px] left-[12px] border-[10px] border-transparent border-b-white border-t-0"})]})}));var M=n(4518),B=[{id:"play-story",label:"Play Story",icon:"/images/desktop/str_android.svg",href:M.n6},{id:"app-story",label:"App Story",icon:"/images/desktop/str_apple.svg",href:M.TK}];let H=function(){var e=function(e,t){e.preventDefault(),t.href&&"#"!==t.href&&(window.location.href=t.href)};return(0,A.jsxs)("div",{className:"h-full bg-white p-[10px] w-[145px] relative z-[999999999999999999999] shadow-lg",children:[(0,A.jsx)("ul",{className:"flex flex-col gap-[10px]",children:B.map(function(t){return(0,A.jsx)("li",{className:"cursor-pointer",children:(0,A.jsx)("a",{href:t.href,onClick:function(n){return e(n,t)},className:"flex items-center hover:bg-gray-50 transition-all duration-200 cursor-pointer",children:(0,A.jsx)("span",{className:"flex-shrink-0 w-[125px] h-[auto] flex items-center justify-center",children:(0,A.jsx)(m(),{src:t.icon,alt:t.label,width:125,height:40,className:"object-contain",loading:"lazy"})})})},t.id)})}),(0,A.jsx)("div",{className:"absolute -top-[10px] right-[12px] border-[10px] border-transparent border-b-white border-t-0"})]})};var K=n(62250),X=n.n(K),G=n(61544),W=n(51673),V=n(90122);function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Y(Object(n),!0).forEach(function(t){(0,s.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}I.default.mixin(k());var J=(0,h.inject)("store")(o=(0,h.observer)(o=function(e){(0,c.A)(r,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,d.A)(r);return e=t?Reflect.construct(n,arguments,(0,d.A)(this).constructor):n.apply(this,arguments),(0,p.A)(this,e)});function r(e){var t;return(0,a.A)(this,r),(t=n.call(this,e)).applyThemeToDocument=function(e){if("undefined"!=typeof document){var t=document.documentElement;!0===e||"true"===String(e)?t.classList.add("dark"):t.classList.remove("dark")}},t.handleThemeToggle=function(e){e&&e.preventDefault();var n=!0!==t.store.isDarkTheme&&"true"!==String(t.store.isDarkTheme);t.store.setTheme(n),t.applyThemeToDocument(n)},t.updateScrollButtons=function(){if(t.navRef.current){var e=t.navRef.current,n=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;t.setState({canScrollLeft:n>0,canScrollRight:n<r-o})}},t.handleActive=function(e){t.setState({activeIndex:e},function(){return t.scrollToActiveElement()})},t.scrollNav=function(e){t.navRef.current&&t.navRef.current.scrollBy({left:"next"===e?200:-200,behavior:"smooth"})},t.scrollToActiveElement=function(){t.activeItemRef.current&&t.activeItemRef.current.scrollIntoView({behavior:"instant",block:"nearest",inline:"center"})},t.getTeamData=function(e){var n=(0,l.A)(t);makeRequest({urlList:[{url:apiBasePattern+"proxy?url="+encodeURIComponent("http://api-news.dailyhunt.in/api/v2/proxy/cricket-service?tapi=streams/cricket/team/player&team="+Object.keys(teamIdMap).filter(function(t){return teamIdMap[t]===e.toLowerCase()})[0]),method:"get"}],source:"client"},function(e,t){if(!e){var r=I.default.at(t,"0.data.data");n.store.updatePlayerData(n.store.activeNavIndex,r)}})},t.toggleSidebar=function(){t.setState(function(e){return{isOpen:!e.isOpen}})},t.handleNotificationIconClick=function(){if(N.SF){var e,n,r,o,s=window.__dhpwa__&&window.__dhpwa__.landingPageReference;(0,N.SF)({tabname:"notifications",tabtype:"notifications",tabindex:"0",activeTopic:"notifications",page_number:1,referrer_action:"click",referrer:s&&s.presentEntityName||(null===(e=t.store)||void 0===e?void 0:e.activeNav)||"headlines",referrer_id:s&&s.presentId||(null===(n=t.store)||void 0===n||null===(n=n.topicsList)||void 0===n||null===(n=n[null===(r=t.store)||void 0===r?void 0:r.activeNavIndex])||void 0===n?void 0:n.id)||""},"STORY_LIST_VIEW"),(0,N.SF)({type:"notifications_inbox",referrer_page:t.store&&(0,v.bM)(t.store)||"feed_page",referrer:s&&s.presentEntityName||(null===(o=t.store)||void 0===o?void 0:o.activeNav)||"headlines"},"DIALOGBOX_VIEWED")}},t.scrollableHtml=function(e){var n,r,o,s=null===(n=t.store)||void 0===n?void 0:n[e],a=t.activeItemRef;return((null===(r=t.store)||void 0===r?void 0:r.mainTopicType)=="buzz"&&(e="buzzListing"),Array.isArray(s=null===(o=s)||void 0===o?void 0:o.map(function(e,t){return{item:e,originalIndex:t}}).filter(function(e){var t=e.item;return t&&"all-categories"!==t.name&&!(0,y.hU)(t)})))?s.map(function(n){var r,o,s,i,l,c,p,d,u=n.item,h=n.originalIndex;if(!u)return null;var x=(null===(r=u.title)||void 0===r?void 0:r.toLowerCase())||(null===(o=u.name)||void 0===o?void 0:o.toLowerCase())||(null===(s=u.nameEnglish)||void 0===s?void 0:s.toLowerCase())||"",m=null===(i=u.nameEnglish)||void 0===i?void 0:i.toLowerCase(),g="#",b=(null===(l=t.store.activeNav)||void 0===l?void 0:l.toLowerCase())===m;switch(e){case"buzzListing":g=(0,v.hC)("/buzz/content/".concat(j.A[t.store.selectedLang],"/").concat(m),{mode:"pwa",action:"click"});break;case"viralListing":g=(0,v.hC)("/viral/".concat(t.store.selectedCountry,"/").concat(j.A[t.store.selectedLang],"/").concat(m),{mode:"pwa",action:"click"});break;case"topicsList":g=(0,v.hC)("/news/".concat(t.store.selectedCountry,"/").concat(j.A[t.store.selectedLang],"/").concat(m),{mode:"pwa",action:"click"});break;case"newspaperLanding":x=null===(c=u.nameUni)||void 0===c?void 0:c.toLowerCase(),x=u.name,m=null===(p=u.shortKey)||void 0===p?void 0:p.toLowerCase();var y=u.deeplinkUrl&&u.deeplinkUrl.split(".dailyhunt.in")[1];g=(0,v.hC)(y||"/news/".concat(t.store.selectedCountry,"/").concat(j.A[t.store.selectedLang],"/").concat(t.store.npName,"-epaper-").concat(t.store.npKey,"/").concat(u.nameUni,"-updates-").concat(m),{mode:"pwa",action:"click"});break;case"generalizedTopics":g=(0,v.hC)("/news/".concat(t.store.selectedCountry,"/").concat(j.A[t.store.selectedLang],"/").concat((0,v.DT)(u.nameEnglish,"-"),"-topics-").concat(null==u||null===(d=u.parent)||void 0===d?void 0:d.id,"/").concat((0,v.DT)(u.nameEnglish,"-"),"-subtopics-").concat(u.legacyId),{mode:"pwa",action:"click"});break;case"buzzList":var w="".concat(u.titleEnglish.toLowerCase(),"-").concat(t.store.selectedLang,"-").concat(u.key);g=X()("/buzz/content/".concat(j.A[t.store.selectedLang],"/").concat(w),{mode:"pwa",action:"click"});break;default:return null}return(0,A.jsx)(f(),{href:g,className:"nav-link font-libre text-[14px] relative cursor-pointer inline-block mr-[20px] text-gray-600 \n after:content-[''] after:absolute after:bottom-0 after:h-[2px] after:transition-all after:duration-300 capitalize\n ".concat(b?"nav-active":"after:w-0 after:left-1/2 after:bg-gray-900","\n ").concat(t.isDesktop?" p-[10px] px-[10px]":"p-[10px] px-[0px]"," \n "),onClick:function(e){return t.topicsOnClick(e,g,m,h)},ref:b?a:null,children:x},u.id||h)}):null},t.topicsOnClick=function(e,n,r,o){if(e.preventDefault(),t.props.router.asPath===n){console.warn("Already on the same URL, navigation skipped.");return}t.store.onNewspageSwipe&&t.store.onNewspageSwipe(o),t.store.updateData({headerIndex:o,activeNav:r,activeNavIndex:o}),t.handleActive(o),t.props.router.push(n,void 0)},t.handleLogin=function(){var e,n=!!t.state.isComponentMounted&&(null===(e=t.store)||void 0===e||null===(e=e.loginData)||void 0===e?void 0:e.isLogin),r=(0,v.hC)("/news/".concat(t.store.selectedCountry,"/").concat(j.A[t.store.selectedLang],"/all-topics"),{mode:"pwa",action:"click"}),o=(0,v.hC)("/news/".concat(t.store.selectedCountry,"/").concat(j.A[t.store.selectedLang],"/login"),{mode:"pwa",action:"click",onlyLogin:!0,redirectUrl:r});n?(0,R.y)(t.store):t.props.router.push(o)},t.navRef=(0,u.createRef)(),t.store=t.props.store,t.isDesktop=t.store.isDesktop,t.activeItemRef=(0,u.createRef)(),t.state={canScrollLeft:!1,canScrollRight:!0,activeIndex:0,isOpen:!1,isComponentMounted:!1,isStickyHeader:!1},t.headerStickyThreshold=250,t.handleScroll=t.handleScroll.bind((0,l.A)(t)),t}
1return(0,i.A)(r,[{key:"componentDidMount",value:function(){this.updateScrollButtons(),this.scrollToActiveElement();var e=window.localStorage&&window.localStorage.getItem("isDarkTheme"),t=!0===e||"true"===e;this.applyThemeToDocument(t),String(this.store.isDarkTheme)!==String(t)&&this.store.setTheme(t),this.setState({isComponentMounted:!0})}},{key:"componentWillUnmount",value:function(){}},{key:"componentDidUpdate",value:function(e,t){var n,r;(null===(n=e.store)||void 0===n?void 0:n.isDarkTheme)!==(null===(r=this.props.store)||void 0===r?void 0:r.isDarkTheme)&&this.applyThemeToDocument(this.props.store.isDarkTheme),this.activeItemRef.current&&this.activeItemRef.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}},{key:"handleScroll",value:function(e){var t,n,r,o=(e&&e.target&&"number"==typeof e.target.scrollTop?e.target.scrollTop:null!==(t=null!==(n=null!==(r=window.pageYOffset)&&void 0!==r?r:window.scrollY)&&void 0!==n?n:document.documentElement.scrollTop)&&void 0!==t?t:0)>=this.headerStickyThreshold;this.state.isStickyHeader!==o&&this.setState({isStickyHeader:o})}},{key:"render",value:function(){var e,t,n=this,r=this.props.store,o=this.state;o.canScrollLeft,o.canScrollRight;var s=!!(null!==(e=this.store)&&void 0!==e&&e.directDetailsLanding),a=!0===this.store.isDarkTheme||"true"===String(this.store.isDarkTheme),i=!0===this.store._ssrIsDarkTheme||"true"===String(this.store._ssrIsDarkTheme),l=this.state.isComponentMounted?a:i;this.isDesktop=this.store.isDesktop;var c=this.isDesktop;this.state.isComponentMounted&&(null===(t=this.store)||void 0===t||null===(t=t.loginData)||void 0===t||t.isLogin);var p=this.store.activeTopic;("newspaperLanding"==p&&"newspaperLanding"!=this.props.headerType&&c||"generalizedTopics"==p)&&(p="topicsList");var d=I.default.get(this.store,"mainTopicType"),u=this.scrollableHtml(p),h=null==u?void 0:u.slice(0,4),x=(0,_.A)(this.store.selectedLang||"en"),g=x.news,b=x.video,y=x.viral,w=x.more,k=(0,v.hC)("/news/".concat(this.store.selectedCountry,"/").concat(j.A[this.store.selectedLang],"/all-topics"),{mode:"pwa",action:"click"});I.default.at(this.store,"loginData.handle");var L=I.default.at(this.store,"loginData.profileImage");return((0,C.AN)(L,{width:100,height:100}).webp,c||"newspaperLanding"!==this.store.activeTopic&&"generalizedTopics"!==this.store.activeTopic)?(0,A.jsx)(A.Fragment,{children:c?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("div",{className:"hidden min-[970px]:flex justify-center w-full flex-shrink-0 mb-4",children:(0,A.jsx)(W.A,{slot:"billboard",id:"billboard-common-header",isDesktop:!0,pageMeta:(0,V.o)(this.store,{isDesktop:!0})})}),(0,A.jsx)("div",{className:"header-bar flex justify-between items-center mx-auto sticky top-0 left-0 right-0 z-50",children:(0,A.jsxs)("header",{className:"border-b border-gray-200 flex justify-between items-center w-full max-w-[1048px] mx-auto px-[20px]",children:[(0,A.jsx)(f(),{href:"/news/".concat(this.store.selectedCountry,"/").concat(j.A[this.store.selectedLang],"/home?mode=pwa&action=click"),className:" min-w-[100px] min-h-[35px] block",children:l?(0,A.jsx)("img",{src:"/images/logo_desktop_dark.svg",alt:"Dailyhunt Logo",className:"header-logo block w-[140px] min-h-[50px]",loading:"lazy"}):(0,A.jsx)("img",{src:"/images/logo_desktop.svg",alt:"Dailyhunt Logo",className:"header-logo block w-[140px] min-h-[50px]",loading:"lazy"})}),(0,A.jsxs)("nav",{className:"relative flex items-center w-full min-w-0",children:[(0,A.jsxs)("div",{className:"flex flex-col items-center pr-[50px] min-w-[550px] m-auto",children:[(0,A.jsxs)("div",{className:"news_tabs",style:{display:"flex",alignItems:"center",gap:"8px",marginTop:"10px"},children:[(0,A.jsx)(f(),{href:"/news/".concat(this.store.selectedCountry,"/").concat(j.A[this.store.selectedLang],"/home?mode=pwa&action=click"),onClick:function(){return(0,N.SF)({explorebutton_click:"News Format News"},"EXPLOREBUTTON_CLICK")},style:{color:("topicsList"===r.activeTopic||"generalizedTopics"===r.activeTopic||"newspaperLanding"===r.activeTopic||"homeTab"===r.activeTopic)&&"news"==r.mainTopicType?"var(--active-color) !important":l?"#e5e5e5":"#454545",fontWeight:("topicsList"===r.activeTopic||"generalizedTopics"===r.activeTopic||"newspaperLanding"===r.activeTopic||r.activeTopic,"normal"),backgroundImage:"none",padding:"0",fontSize:"14px",cursor:"pointer"},children:g}),(0,A.jsx)("span",{style:{color:l?"rgba(255,255,255,0.5)":"#C1C1C1",fontSize:"16px",lineHeight:"18px"},children:"|"}),(0,A.jsx)(f(),{href:"/buzz/".concat(this.store.selectedCountry,"/").concat(j.A[this.store.selectedLang],"/news?mode=pwa&action=click"),onClick:function(){return(0,N.SF)({explorebutton_click:"News Format Video"},"EXPLOREBUTTON_CLICK")},style:{color:"buzz"==r.mainTopicType?"var(--active-color) !important":l?"#e5e5e5":"#454545",fontWeight:(r.mainTopicType,"normal"),backgroundImage:"none",padding:"0",fontSize:"14px",cursor:"pointer"},children:b}),(0,A.jsx)("span",{style:{color:l?"rgba(255,255,255,0.5)":"#C1C1C1",fontSize:"16px",lineHeight:"18px"},children:"|"}),(0,A.jsx)(f(),{href:"/viral/".concat(this.store.selectedCountry,"/").concat(j.A[this.store.selectedLang],"/all?mode=pwa&action=click"),onClick:function(){return(0,N.SF)({explorebutton_click:"News Format Viral"},"EXPLOREBUTTON_CLICK")},style:{color:"viralListing"===r.activeTopic?"var(--active-color) !important":l?"#e5e5e5":"#454545",fontWeight:(r.activeTopic,"normal"),backgroundImage:"none",padding:"0",fontSize:"14px",cursor:"pointer"},children:y})]}),(0,A.jsxs)("div",{ref:this.navRef,className:"flex items-center justify-center m-auto pb-[10px]",children:[h,u&&(null==u?void 0:u.length)>4&&(0,A.jsxs)("div",{className:"relative group inline-flex items-center shrink-0 mr-[20px]",children:[(0,A.jsx)("div",{className:"nav-link font-libre text-[14px] relative cursor-pointer inline-block ".concat(l?"text-gray-300":"text-gray-600","\n after:content-[''] after:absolute after:bottom-0 after:h-[2px] after:transition-all after:duration-300 capitalize\n ").concat(this.isDesktop?" p-[10px] px-[10px] pr-[0]":"p-[10px] px-[0px]"),onClick:function(){return(0,N.SF)({explorebutton_click:"side bar click"},"EXPLOREBUTTON_CLICK")},children:w}),(0,A.jsxs)("span",{className:"header-icon-invert relative w-[19px] h-[10px] ml-1 flex-shrink-0 inline-block","aria-hidden":"true",children:[(0,A.jsx)("span",{className:"absolute inset-0 bg-[url('/images/desktop/icon_down.svg')] bg-center bg-contain bg-no-repeat opacity-100 group-hover:opacity-0 transition-opacity duration-300 ease-in-out"}),(0,A.jsx)("span",{className:"absolute inset-0 bg-[url('/images/desktop/icon_up.svg')] bg-center bg-contain bg-no-repeat opacity-0 group-hover:opacity-100 transition-opacity duration-300 ease-in-out"})]}),(0,A.jsx)("div",{className:"absolute left-[-50px] min-w-[230px] -translate-x-1/2 top-full pt-[8px] w-[auto] max-w-[1048px] rounded-[4px] shadow-lg op
1acity-0 invisible transition-all duration-200 group-hover:opacity-100 group-hover:visible z-[9999] ".concat(l?"bg-[#2a2a2a]":"bg-white"),children:(0,A.jsx)(G.default,{listName:p,type:"topic"})})]})]})]}),(0,A.jsxs)("ul",{className:"flex items-center gap-3",children:[(0,A.jsxs)("li",{className:"flex items-center gap-2 shrink-0 relative group",children:[(0,A.jsx)("div",{className:"theme-toggle-wrap cursor-pointer flex items-center justify-center focus:outline-none w-[36px] h-[36px]","aria-label":l?"Dark mode":"Light mode",children:(0,A.jsxs)("svg",{className:"theme-toggle-svg ".concat(l?"":"active"),viewBox:"0 0 36 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[(0,A.jsx)("rect",{className:"tt-track",x:"1",y:"1",width:"34",height:"20",rx:"10"}),(0,A.jsx)("circle",{className:"tt-star",cx:"24",cy:"7",r:"1"}),(0,A.jsx)("circle",{className:"tt-star",cx:"28",cy:"13",r:"0.7"}),(0,A.jsx)("circle",{className:"tt-star",cx:"21",cy:"14",r:"0.6"}),(0,A.jsx)("line",{className:"tt-ray",x1:"25",y1:"1",x2:"25",y2:"3.2"}),(0,A.jsx)("line",{className:"tt-ray",x1:"25",y1:"18.8",x2:"25",y2:"21"}),(0,A.jsx)("line",{className:"tt-ray",x1:"33.2",y1:"11",x2:"35.5",y2:"11"}),(0,A.jsx)("line",{className:"tt-ray",x1:"30.2",y1:"3.8",x2:"31.8",y2:"2.2"}),(0,A.jsx)("line",{className:"tt-ray",x1:"30.2",y1:"18.2",x2:"31.8",y2:"19.8"}),(0,A.jsxs)("g",{className:"tt-thumb",children:[(0,A.jsx)("circle",{className:"tt-thumb-circle",cx:"11",cy:"11",r:"6.5"}),(0,A.jsx)("circle",{className:"tt-moon",cx:"13.5",cy:"8.5",r:"5"})]})]})}),(0,A.jsx)("span",{className:"text-[12px] whitespace-nowrap leading-tight",children:l?"Dark mode":"Light mode"}),(0,A.jsxs)("div",{className:"absolute right-0 top-full pt-2 -mt-2 min-w-[220px] rounded-[4px] shadow-lg border border-gray-200 opacity-0 pointer-events-none -translate-y-2 transition-[opacity,transform] duration-300 ease-out group-hover:opacity-100 group-hover:pointer-events-auto group-hover:translate-y-0 z-[9999] py-2 ".concat(l?"bg-[#2a2a2a] border-white/10":"bg-white"),children:[(0,A.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 hover:opacity-90",children:[(0,A.jsxs)("div",{className:"flex items-center min-w-0 gap-2",children:[(0,A.jsx)(m(),{width:20,height:20,className:"w-5 h-5 shrink-0",src:l?"/images/icon_day_dark.svg":"/images/icon_day.svg",alt:"",loading:"lazy"}),(0,A.jsx)("span",{className:"text-[14px]",children:"Follow system"})]}),(0,A.jsxs)("label",{className:"switch-toggle shrink-0",children:[(0,A.jsx)("input",{type:"checkbox",checked:!!this.store.defaultSetting,readOnly:!0}),(0,A.jsx)("span",{className:"slider round",onClick:function(e){e.preventDefault(),e.stopPropagation(),n.store.defaultSetting?n.store.unSetDefaultMode():n.store.setDefaultMode()}})]})]}),(0,A.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 hover:opacity-90",children:[(0,A.jsxs)("div",{className:"flex items-center min-w-0 gap-2",children:[(0,A.jsx)(m(),{width:20,height:20,className:"w-5 h-5 shrink-0",src:l?"/images/icon_night_dark.svg":"/images/icon_night.svg",alt:"",loading:"lazy"}),(0,A.jsx)("span",{className:"text-[14px]",children:"Dark mode"})]}),(0,A.jsxs)("label",{className:"switch-toggle shrink-0",children:[(0,A.jsx)("input",{type:"checkbox",disabled:!!this.store.defaultSetting,checked:!this.store.defaultSetting&&!!this.store.isDarkTheme,readOnly:!0}),(0,A.jsx)("span",{className:"slider round",onClick:function(e){e.preventDefault(),e.stopPropagation(),n.store.defaultSetting||n.store.setManualMode()}})]})]})]})]}),!s&&(0,A.jsxs)("li",{className:"w-[36px] h-[36px] shrink-0 flex items-center justify-center relative group",children:[(0,A.jsx)("div",{className:"cursor-pointer block w-[36px] h-[36px]",children:(0,A.jsx)("span",{className:"header-icon-invert block w-[36px] h-[36px] bg-[url('/images/desktop/icn_lang.svg')] bg-no-repeat bg-[24px_24px] bg-center","aria-label":"Language"})}),(0,A.jsx)("div",{className:"absolute right-0 top-full mt-2 bg-gray-900 rounded-[4px] shadow-lg opacity-0 invisible transition-all duration-200 group-hover:opacity-100 group-hover:visible z-[9999]",onMouseEnter:function(){return(0,N.SF)({},"LANGUAGE_SELECTION_VIEW")},children:(0,A.jsx)(F,{})})]}),(0,A.jsxs)("li",{className:"w-[36px] h-[36px] shrink-0 flex items-center justify-center relative group",children:[(0,A.jsx)("div",{className:"cursor-pointer block w-[36px] h-[36px]",children:(0,A.jsx)("span",{className:"header-icon-invert block w-[36px] h-[36px] bg-[url('/images/desktop/icn_mobile.svg')] bg-no-repeat bg-[24px_24px] bg-center","aria-label":"Play / App Story"})}),(0,A.jsx)("div",{className:"absolute right-0 top-full mt-2 bg-gray-900 rounded-[4px] shadow-lg op
1acity-0 invisible transition-all duration-200 group-hover:opacity-100 group-hover:visible z-[9999]",children:(0,A.jsx)(H,{})})]})]})]})]})})]}):(0,A.jsxs)("section",{className:"header-bar-theme sticky top-0 z-50 border-b",children:[(0,A.jsx)("header",{className:"flex justify-between items-center w-full p-[10px]",children:(0,A.jsxs)("div",{className:"flex gap-[10px] items-center",children:[(0,A.jsx)("span",{onClick:function(){N.SF&&(0,N.SF)({explorebutton_click:"sideMenu"},"EXPLOREBUTTON_CLICK"),n.toggleSidebar()},className:"header-hamburger inline-block w-[30px] h-[30px] cursor-pointer",role:"button","aria-label":"Menu"}),(0,A.jsx)(f(),{href:"/news/".concat(this.store.selectedCountry,"/").concat(j.A[this.store.selectedLang],"/news?mode=pwa&action=click"),className:"min-w-[100px] min-h-[46px] mr-[20px] block",children:(0,A.jsx)("span",{className:"mobile-header-logo"})})]})}),(0,A.jsxs)("nav",{className:"relative flex items-center w-full min-w-0 border-b-[1px] pr-8 ".concat(l?"border-white/[0.08]":"border-gray-300"),children:[(0,A.jsx)("div",{role:"list",ref:this.navRef,className:"flex overflow-x-auto whitespace-nowrap scroll-smooth no-scrollbar first:pl-[20px] mt-[8px]",children:u}),"news"==d&&(0,A.jsx)(f(),{href:k,className:"header-mobile-plus cursor-pointer flex-shrink-0 w-[64px] h-[48px] absolute right-0 -top-[1px] block",onClick:function(){return(0,N.SF)({explorebutton_click:"More Hashtags"},"EXPLOREBUTTON_CLICK")}})]}),(0,A.jsx)("div",{onClick:this.toggleSidebar,className:"fixed top-0 left-0 w-[100%] bg-[#000000a1] bg-opacity-30 z-100 transform transition-transform duration-300 ease-in-out ".concat(this.state.isOpen?"translate-x-0":"-translate-x-full"),children:(0,A.jsx)(U,{onClose:this.toggleSidebar})})]})}):(0,A.jsx)("div",{className:"flex py-[3px] pr-[20px] pl-[10px] bg-white border-b-[1px] border-gray-400 items-center",onClick:function(){(0,N.SF)({explorebutton_click:"np header back"},"EXPLOREBUTTON_CLICK"),history.back()},children:(0,A.jsx)("div",{className:"w-[40px] h-[40px] bg-no-repeat bg-center cursor-pointer npHeaderBackIcon",style:{backgroundImage:"url('".concat(l?"/images/icn_back_primary_dark.svg":"/images/icn_back_primary.svg","')")}},l?"dark":"light")})}}]),r}(u.Component))||o)||o;let Q=function(e){var t=(0,b.useRouter)();return(0,A.jsx)(J,q(q({},e),{},{router:t}))}}}]);
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.