PageSourceSearch

https://www.zeebiz.com/_next/static/chunks/pages/hindi/[section]/[subsection]-084cb5125938684e.js

js zeebiz.com collected 2026-09-24 08:56:40 UTC 15,021 bytes, 192 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7342,4549],{14363:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hindi/[section]/[subsection]",function(){return n(20892)}])},96479:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var o=n(85893),s=n(31955),i=n(4298),r=n.n(i),l=n(67294),a=n(88773),c=n(74121);function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4e3,[t,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let t=!1,o=()=>{t||(t=!0,n(!0),s())},s=()=>{globalThis.removeEventListener("pointerdown",o),globalThis.removeEventListener("keydown",o)};globalThis.addEventListener("pointerdown",o,{once:!0,passive:!0}),globalThis.addEventListener("keydown",o,{once:!0});let i=globalThis.setTimeout(o,e);return()=>{s(),clearTimeout(i)}},[e]),t}var u=n(7596);function g(e){let{noPrebid:t=!1,data:n,children:i,hideLayout:g=!1,hideHeader:m}=e,f=s.Z.get("myPPID"),p=d(8e3),h=d(8e3);if((0,u.b2)(),!f){let e=(0,a.Z)();s.Z.set("myPPID",e,{expires:365,httpOnly:!1,sameSite:"strict"}),f=e}let{sectionName:y="",pageName:E="",schema:w=[],metatags:I=[],isMobile:v,isutmTheme:L,authordetail:S=[],taboola_name:b="",isLoginPage:_=!1}=n||{};n?.newsdetail||n?.videodetail||n?.photodetail,I?.["article:modified_time"]&&(0,c.Ny)(I?.["article:modified_time"]),I?.["article:published_time"]&&(0,c.Ny)(I?.["article:published_time"]);let[T,k]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(window.scrollY>15){k(!0);return}let e=()=>{window.scrollY>15&&(k(!0),window.removeEventListener("scroll",e))};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),console.log("userInteracted in layout article",T),(0,o.jsxs)(o.Fragment,{children:[i,h&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("script",{id:"izooto-init",type:"text/javascript",children:`
2      window._izq = window._izq || [];
3      window._izq.push(["init"]);
4    `}),(0,o.jsx)(r(),{id:"Izooto",type:"text/javascript",src:"https://cdn.izooto.com/scripts/58a5cb49b3868b6ed182cd0496d712e8aa27e124.js"})]}),p&&!L&&!t&&(0,o.jsx)(r(),{id:"prebid-config",strategy:"afterInteractive",src:"https://d3fukwxve5r8zf.cloudfront.net/prebid_config_2018315871.min.js"}),(!v||_)&&T?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{id:"google-sso",style:{display:"none"}}),(0,o.jsx)(r(),{src:"https://accounts.google.com/gsi/client",async:!0,defer:!0}),(0,o.jsx)(r(),{id:"G_SSO_1",strategy:"lazyOnload",children:`
5                    let homePathname,timeoutId;
6                    const getAccessToken = new URLSearchParams(window.location.hash.substring(1));
7                    const idToken = getAccessToken.get('id_token'); 
8                    const userLoginElement = document.querySelector('.google-button');
9                    const userLoggedInElement = document.querySelector('.ssoLoggedInCol');
10                    const checkBox =document.querySelector('.checkBox');
11         
12                    if( window &&  window.location ){
13                    if(window.location.pathname == '/login' || window.location.pathname == "/" ){
14                      homePathname="";
15                      }
16                      else if(window.location.pathname.length>1){
17                        homePathname = "/" + window.location.pathname.split("/")[1];
18                        if(homePathname !== "/hindi"){
19                        homePathname ="";
20                        }else{
21                          homePathname = "/hindi";
22                          }
23                      }
24                      }  
25                    const userNavLogin = document.querySelector('.ssoLoginCol');
26                    userNavLogin.href = homePathname + "/login";
27                    (function() {
28                        if (idToken) {
29                            const cleanedUrl = window.location.origin + window.location.pathname;
30                            window.history.replaceState({}, document.title, cleanedUrl);
31                        }
32                    })();
33         
34                    if (idToken) {
35                      googleUserHandler(idToken);
36                    } else {
37                        if (userLoginElement instanceof HTMLElement) {
38                            userLoginElement.addEventListener('click', redirectToGoogleSignIn);
39                        }
40                    }
41                    const userLogoutElement = document.querySelector('.logoutBtn');
42                    if (userLogoutElement instanceof HTMLElement) {
43                        userLogoutElement.addEventListener('click', logoutGoogle);
44                    }
45                    function redirectToGoogleSignIn() {
46                        const clientId =
47                            '59456282601-afrl20hg5tshhrv6nnbk8nrgb30ctf52.apps.googleusercontent.com';
48                        const redirectUri = encodeURIComponent(window &&  window.location ? window.location.origin + homePathname : "");
49                        const scope = encodeURIComponent('openid email profile');
50                        const state = encodeURIComponent('sso-login');
51                        const authUrl =
52                            'https://accounts.google.com/o/oauth2/v2/auth?' +
53                            'client_id=' + clientId +
54                            '&redirect_uri=' + redirectUri +
55                            '&response_type=id_token token' +   
56                            '&scope=' + scope +
57                            '&state=' + state +
58                            '&nonce=' + (new Date().getTime()) +
59                            '&prompt=select_account';
60                            if (checkBox.checked){
61                                window.location.href = authUrl;
62                            } else{
63                               alert('⚠️ Please accept the Terms of Use of the service and Privacy Policy before signing in.');
64                            }
65                    }
66                    function logoutGoogle() {
67                        localStorage.removeItem('userSSO');
68                        google.accounts.id.disableAutoSelect();
69                        const googleButton = document.getElementById('google-sso');
70                        if (googleButton) googleButton.style.display = 'block';
71                        const userInitialsElement = document.querySelector('.userInitial');
72                        if(userLoggedInElement){
73                         userLoggedInElement.style.display = 'none';
74                       }
75                        userNavLogin.style.display = '';
76                        if (userInitialsElement instanceof HTMLElement) {
77                            userInitialsElement.innerText = '';
78                        }
79                        const userNameElement = document.querySelector('.userName');
80                        if (userNameElement instanceof HTMLElement) {
81                            userNameElement.innerText = '';
82                        }
83                        const userEmailElement = document.querySelector('.userEmailId');
84                        if (userEmailElement instanceof HTMLElement) {
85                            userEmailElement.innerText = '';
86                        }
87                        const ssoContainerDiv = document.querySelector('#google-sso');
88                        if (ssoContainerDiv instanceof HTMLElement) {
89                            ssoContainerDiv.style.display = 'none';
90                        }
91                    }
92         
93                     function getInitials(name) {
94                        if (!name) return '';
95                        let words = name.trim().split(' ');
96                        return words[0][0].toUpperCase();
97                    }
98         
99                    function isUserLoggedIn() {
100                        try {
101                            const user = JSON.parse(localStorage.getItem('userSSO'));
102                            if (user == null || user == undefined) {
103                                const ssoElement = document.getElementById('google-sso');
104                                if (ssoElement) ssoElement.style.display = 'none';
105                                if (userLoggedInElement) userLoggedInElement.style.display = 'none';
106                                if (userNavLogin) userNavLogin.style.display = '';
107                                return false;
108                            } else {
109                                const nameInitials = getInitials(user['name']);
110                                document.querySelector('.userInitial').innerText = nameInitials;
111                                document.querySelector('.userName').innerText =
112                                    'Hello, ' + user['name'] + '!';
113                                document.querySelector('.userEmailId').innerText = user['email'];
114                                if (userLoggedInElement) userLoggedInElement.style.display = '';
115                                if (userNavLogin) userNavLogin.style.display = 'none';
116                                return user && Object.keys(user).length > 0;
117                            }
118                        } catch (e) {
119                            const ssoElement = document.getElementById('google-sso');
120                            if (ssoElement) ssoElement.style.display = 'none';
121                            if (userLoggedInElement) userLoggedInElement.style.display = 'none';
122                            if (userNavLogin) userNavLogin.style.display = '';
123                            return false;
124                        }
125                    }
126                    function handleCredentialResponse(response) {
127                        if (!response || !response.credential) {
128                            console.warn('No credential received.');
129                            return;
130                        }
131                        googleUserHandler(response.credential);
132                    }
133                    async function googleUserHandler(token) {
134                        const userObj = {
135                            orgId: 'ZeeBizHi_SSO',
136                            accessToken: token,
137         
138                        };
139                        try {
140                            const response = await fetch(
141                                'https://prod-pkd.project-turbine.in/auth-service/sso', {
142                                    method: 'POST',
143                                    headers: {
144                                        'Content-Type': 'application/json'
145                                    },
146                                    body: JSON.stringify(userObj),
147                                }
148                            );
149                            const result = await response.json();
150                            localStorage.setItem('userSSO', JSON.stringify(result));
151                            document.dispatchEvent(new Event('userLoggedIn'));
152                            isUserLoggedIn()
153                        } catch (error) {
154                            console.error('Error verifying user:', error);
155                        }
156                    }
157         
158                    function initGoogleSignIn() {
159                        if (isUserLoggedIn()) {
160                            const ssoElement = document.getElementById('google-sso');
161                            if (ssoElement) ssoElement.style.display = 'none';
162                            return;
163                        }
164                        google.accounts.id.initialize({
165                            client_id: '59456282601-afrl20hg5tshhrv6nnbk8nrgb30ctf52.apps.googleusercontent.com',
166                            callback: handleCredentialResponse,
167                            auto_select: false,
168                            use_fedcm_for_prompt: false,
169                        });
170                        const ssoElement = document.getElementById('google-sso');
171                        if (ssoElement) {
172                          google.accounts.id.renderButton(ssoElement, {
173                            type: 'standard',
174                            theme: 'outline',
175                            size: 'large',
176                          });
177                        }
178                       const user = JSON.parse(localStorage.getItem('userSSO'));
179                           if (user == null || user == undefined) {
180                                google.accounts.id.prompt();
181                            }
182                    }
183                    document.addEventListener('userLoggedIn', () => {
184                        const googleButton = document.getElementById('google-sso');
185                        if (googleButton) googleButton.style.display = 'none';
186                        if (timeoutId) {
187                            clearTimeout(timeoutId);
188                            timeoutId = null;
189                        }
190                    });
191                    timeoutId = setTimeout(initGoogleSignIn, 3000);               
192                    `})]}):""]})}},20892:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return u},default:function(){return g}});var o=n(85893),s=n(11163),i=n(43138),r=n(70815),l=n(70123),a=n(43997),c=n(96479),d=n(7212),u=!0;function g(e){let{data:t}=e,{schema:n,news:u,latestStoryData:g,metatags:m,...f}=t,{section:p}=(0,s.useRouter)().query;return(0,o.jsx)(o.Fragment,{children:t?.section==="articleListing"?(0,o.jsxs)(o.Fragment,{children:[("markets"===p||"stock-markets"===p)&&(0,o.jsx)(l.default,{initialData:t.topMarketWidgetData}),(0,o.jsx)(r.default,{data:t}),(0,o.jsx)(a.default,{data:t})]}):(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"articleBg",children:[(0,o.jsx)(d.default,{data:t}),(0,o.jsx)(i.Z,{data:t}),(0,o.jsx)(c.default,{data:t})]})})})}},88773:function(e,t,n){"use strict";let o;n.d(t,{Z:function(){return l}});var s={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i=new Uint8Array(16),r=[];for(let e=0;e<256;++e)r.push((e+256).toString(16).slice(1));var l=function(e,t,n){if(s.randomUUID&&!t&&!e)return s.randomUUID();let l=(e=e||{}).random??e.rng?.()??function(){if(!o){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");o=crypto.getRandomValues.bind(crypto)}return o(i)}();if(l.length<16)throw Error("Random bytes length must be >= 16");if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=l[e];return t}return function(e,t=0){return(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase()}(l)}}},function(e){e.O(0,[7311,6137,4121,6543,7212,123,3997,2778,815,7541,3138,2888,9774,179],function(){return e(e.s=14363)}),_N_E=e.O()}]);

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.