PageSourceSearch

https://www.thedailyjagran.com/_next/static/chunks/1460-cdc663b4b6c328b0.js

js thedailyjagran.com collected 2026-10-02 05:02:20 UTC 8,597 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1460,8834],{8834:(e,t,r)=>{r.r(t),r.d(t,{default:()=>s});var n=r(37876),l=r(66456),a=r(69625),o=r(14232);let i={LOGIN_DETAIL:"uid_jnm"},d=[{time:1,url:"https://pubads.g.doubleclick.net/gampad/ads?iu=/13276288/Jagran/Mobile/video/detail/video_ads&description_url=[placeholder]&tfcd=0&npa=0&sz=1x1%7C300x250%7C400x300%7C480x360%7C480x361%7C600x400%7C640x360%7C640x480&gdfp_req=1&unviewed_position_start=1&correlator=[placeholder]&vpos=preroll&output=vast&env=vp&vpmute=0&vpa=click"}];function s(e){let{VideoPath:t,data:r,sectionName:s,pageType:u,autoplay:c=!0,mute:p=!1}=e,m=(0,o.useRef)(null),v=(0,o.useRef)(null),g=(0,o.useRef)(null),f=(0,o.useRef)(null),h=(0,o.useRef)(null),w=(0,o.useRef)(null),E=(0,o.useRef)(new Set),y=(0,o.useRef)(new Set);(0,o.useRef)(!1);let _=(0,o.useRef)(!1),x=(0,o.useRef)(!1),b=(0,o.useRef)(!1),[A,L]=(0,o.useState)(!1),[N,R]=(0,o.useState)(!1),S=function(){let e=function(){let e=function(e){if("undefined"!=typeof document){let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].trim();if(n.startsWith(e+"="))return decodeURIComponent(n.substring(e.length+1))}}return null}(i.LOGIN_DETAIL);if(e)try{let t=atob(e),r=JSON.parse(t);return{user_id:null==r?void 0:r.user_id,is_new_user:null==r?void 0:r.is_new_user,registration_with:null==r?void 0:r.registration_with}}catch(e){console.log("Invalid token",e)}return null}();return{uid:"na",usertype:null!=e?"logged_in":"guest",registration_status:null!=e?!1===e.is_new_user?"existing_user":"new_user":"guest",loggeduser_id:null!=e?e.user_id:"guest"}}();(0,o.useEffect)(()=>{window.dataLayer||(window.dataLayer=[])},[]);let j=function(e){var t,n,l;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!x.current&&"play"!==e||!window.dataLayer)return;let o=(null==(t=m.current)?void 0:t.duration)||0,i=(null==(n=m.current)?void 0:n.currentTime)||0,d=o>0?i/o*100:0,s={event:"video_interaction",video_title:(null==r||null==(l=r.title)?void 0:l.toLowerCase())||"na",video_duration:(e=>{if(!e||0===e)return"na";let t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60);return"".concat(String(t).padStart(2,"0"),":").concat(String(r).padStart(2,"0"),":").concat(String(n).padStart(2,"0"))})(o),uid:"na",usertype:S.usertype,page_type:u};null!==a?s.video_percent=Math.round(a)+"%":"video_percent"===e&&(s.video_percent=Math.round(d)+"%"),e&&"video_percent"!==e&&(s.interaction_type=e),window.dataLayer.push(s)};(0,o.useEffect)(()=>{let e=!1,t=async()=>{e||(e=!0,await Promise.all([new Promise(e=>{let t=document.createElement("script");t.src="https://imasdk.googleapis.com/js/sdkloader/ima3.js",t.async=!0,t.onload=e,t.onerror=()=>e(),document.body.appendChild(t)}),new Promise(e=>{let t=document.createElement("script");t.type="module",t.src="https://cdn.jsdelivr.net/npm/player.style/sutro/+esm",t.onload=e,document.body.appendChild(t)})]),L(!0))},r=v.current;if("undefined"==typeof IntersectionObserver||!r)return t(),()=>T();let n=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(n.disconnect(),t())},{rootMargin:"300px 0px"});return n.observe(r),()=>{n.disconnect(),T()}},[]),(0,o.useEffect)(()=>{if(!A||!m.current)return;let e=m.current;e.muted=p,c&&e.play().catch(()=>{})},[A,c,p]),(0,o.useEffect)(()=>{if(!A||!m.current)return;let e=m.current,t=()=>{x.current?b.current:(x.current=!0,j("play"))},r=()=>{!b.current&&e.currentTime>0&&(e.currentTime,e.duration)},n=()=>{_.current||(_.current=!0,j("video_percent",100))},l=()=>{},a=()=>{if(b.current||!e.duration)return;let t=e.currentTime,r=e.duration;[25,50,75].forEach(e=>{let n=e/100*r;!y.current.has(e)&&t-.25<n&&t>=n&&(y.current.add(e),j("video_percent",e))});let n=Math.floor(t);d.forEach(e=>{n!==e.time||E.current.has(e.time)||(E.current.add(e.time),C(e.url))})},o=()=>{};return e.addEventListener("play",t),e.addEventListener("pause",r),e.addEventListener("ended",n),e.addEventListener("seeking",l),e.addEventListener("timeupdate",a),e.addEventListener("volumechange",o),()=>{e.removeEventListener("play",t),e.removeEventListener("pause",r),e.removeEventListener("ended",n),e.removeEventListener("seeking",l),e.removeEventListener("timeupdate",a),e.removeEventListener("volumechange",o)}},[A]),(0,o.useEffect)(()=>{b.current=N},[N]);let T=()=>{if(f.current){try{f.current.destroy()}catch(e){}f.current=null}if(h.current){try{h.current.destroy()}catch(e){}h.current=null}},C=e=>{var t,r,n,l;if(!(null==(t=window.google)?void 0:t.ima))return void console.error("IMA SDK not loaded");
1R(!0),null==(r=m.current)||r.pause(),T(),w.current=new window.google.ima.AdDisplayContainer(g.current,m.current),w.current.initialize(),h.current=new window.google.ima.AdsLoader(w.current),h.current.addEventListener(window.google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,k,!1),h.current.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,M,!1);let a=new window.google.ima.AdsRequest;a.adTagUrl=e,a.linearAdSlotWidth=(null==(n=m.current)?void 0:n.offsetWidth)||640,a.linearAdSlotHeight=(null==(l=m.current)?void 0:l.offsetHeight)||360,h.current.requestAds(a)},k=e=>{var t,r,n;let l=new window.google.ima.AdsRenderingSettings;l.restoreCustomPlaybackStateOnAdBreakComplete=!0,f.current=e.getAdsManager(m.current,l),f.current.addEventListener(window.google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,()=>R(!0)),f.current.addEventListener(window.google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,()=>{var e;R(!1),T(),null==(e=m.current)||e.play().catch(()=>{})}),f.current.addEventListener(window.google.ima.AdEvent.Type.ALL_ADS_COMPLETED,()=>{R(!1),T()}),f.current.addEventListener(window.google.ima.AdErrorEvent.Type.AD_ERROR,M);try{f.current.init((null==(t=m.current)?void 0:t.offsetWidth)||640,(null==(r=m.current)?void 0:r.offsetHeight)||360,window.google.ima.ViewMode.NORMAL),f.current.start()}catch(e){console.warn("Failed to start ad",e),R(!1),T(),null==(n=m.current)||n.play().catch(()=>{})}},M=e=>{var t,r;console.error("Ad Error:",null==(t=e.getError)?void 0:t.call(e)),R(!1),T(),null==(r=m.current)||r.play().catch(()=>{})};return(0,n.jsx)("div",{ref:v,className:"video-player-container relative",children:A&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:g,className:"ad-container ".concat(N?"block":"hidden")}),(0,n.jsx)(a.A,{style:{width:"100%"},className:"inset-0 aspect-video",children:(0,n.jsx)(l.A,{ref:m,slot:"media",src:"".concat("https://www.youtube.com/watch?v=".concat(t),"?autoplay=").concat(+!!c,"&mute=").concat(+!!p),playsInline:!0,crossOrigin:"anonymous",className:"video-element w-full"})})]})})}},11460:(e,t,r)=>{r.r(t),r.d(t,{default:()=>u});var n=r(37876),l=r(14232),a=r(54587),o=r.n(a);r(48230),r(52230);var i=r(66710),d=r(14157),s=r(8834);function u(e){let{LatestVideoData:t}=e,[r,a]=(0,l.useState)(t[0]),[u,c]=(0,l.useState)(0);return(0,n.jsx)("div",{className:"pb-8 md:pb-14 mb-0 lg:mb-6 relative w-full StripesPattern before:absolute before:top-0 before:left-0 before:w-full before:h-12 md:before:h-24 before:bg-white",children:(0,n.jsx)("div",{className:"px-5 lg:px-0 container",children:(0,n.jsxs)("div",{className:"mx-auto w-full lg:w-[1000px] px-2 sm:px-6 lg:px-8 relative",children:[(0,n.jsx)("h2",{className:"font-archivo font-extrabold uppercase text-3xl sm:text-6xl md:text-[100px] tracking-tight text-gray-200/50 -rotate-90 absolute -left-14 top-32 sm:-left-24 sm:top-52 md:-left-44 md:top-64 lg:top-72",children:"Videos"}),(0,n.jsxs)("div",{className:"grid gap-x-8 gap-y-4",children:[(0,n.jsx)("div",{className:"border border-dashed border-gray-600 rounded-lg p-2 bg-gray-900/90 ",children:(0,n.jsx)(s.default,{data:r,sectionName:"view this video also",pageType:"homepage",VideoPath:r.embed_code,autoplay:!1})}),(0,n.jsx)("div",{className:"pb-2 lg:pb-0 flex flex-wrap justify-start md:block overflow-x-auto md:overflow-x-hidden",children:(0,n.jsx)("div",{className:"flex md:grid md:grid-cols-5 gap-3",children:t&&t.slice(0,5).map((e,t)=>(0,n.jsx)(i.A,{href:"/",title:e.title,onClick:t=>{t.preventDefault(),a(e),c(1)},className:"w-44 md:w-auto border border-dashed border-gray-600 rounded-lg p-1 bg-gray-900/20",children:(0,n.jsx)(d.A,{threshold:.95,children:(0,n.jsx)(o(),{width:134,height:112,src:"https://img.youtube.com/vi/"+e.embed_code+"/mqdefault.jpg",alt:e.title,className:"h-auto w-full rounded-lg"})})},t))})})]})]})})})}},66710:(e,t,r)=>{r.d(t,{A:()=>l});var n=r(37876);let l=e=>{let{children:t,href:r,rel:l,className:a,title:o,target:i,data:d,eventName:s,onClick:u,ariaLabel:c,...p}=e;return(0,n.jsx)("a",{className:a,title:o,href:r,rel:l,target:i,"aria-label":c,...p,children: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.