PageSourceSearch

https://megasportsmedia.com/_next/static/chunks/app/(public)/page-bf8137874345d744.js

js megasportsmedia.com collected 2026-10-02 06:47:00 UTC 7,171 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5359],{1012:(e,a,t)=>{"use strict";t.d(a,{NewsletterForm:()=>r});var n=t(5155),s=t(2115),l=t(8378);function r(e){let{redirect:a="/",compact:t=!1}=e,r=(0,l.k)(),[i,d]=(0,s.useState)(""),[o,c]=(0,s.useState)("idle"),[u,p]=(0,s.useState)("");async function m(e){var a,t;e.preventDefault(),c("sending"),p("");let n=await fetch("/api/v1/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i})}),s=await n.json();n.ok?(c("ok"),p("✅ "+(null!=(a=s.message)?a:r("nl_success"))),d("")):(c("error"),p("❌ "+(null!=(t=s.error)?t:r("nl_fail"))))}return(0,n.jsxs)("div",{children:["ok"!==o?(0,n.jsxs)("form",{className:t?"flex gap-2":"newsletter-form",onSubmit:m,children:[(0,n.jsx)("input",{type:"email",required:!0,placeholder:r("nl_placeholder"),"aria-label":r("nl_aria"),value:i,onChange:e=>d(e.target.value),style:t?{flex:1,padding:".6rem .9rem",borderRadius:10,border:"1.5px solid var(--line-strong)",background:"var(--bg)",color:"var(--ink)"}:void 0}),(0,n.jsx)("button",{className:"btn btn-primary",type:"submit",disabled:"sending"===o,children:"sending"===o?r("nl_sending"):r("nl_subscribe")})]}):null,u&&(0,n.jsx)("p",{style:{marginTop:10,fontSize:".88rem",fontWeight:700,color:"ok"===o?"#34d399":"#f87171"},children:u})]})}},1759:(e,a,t)=>{"use strict";t.d(a,{PodcastCard:()=>d});var n=t(5155),s=t(2115);let l=null,r=null;function i(e){if(!Number.isFinite(e)||e<0)return"0:00";let a=Math.floor(e/60);return"".concat(a,":").concat(String(Math.floor(e%60)).padStart(2,"0"))}function d(e){let{p:a}=e,t=(0,s.useRef)(null),[d,o]=(0,s.useState)(!1),[c,u]=(0,s.useState)(0),[p,m]=(0,s.useState)(0),[h,f]=(0,s.useState)(0);return(0,s.useEffect)(()=>()=>{t.current&&l===t.current&&(t.current.pause(),l=null,r=null)},[]),(0,n.jsxs)("article",{className:"podcast-card".concat(d?" playing":""),children:[(0,n.jsxs)("div",{className:"podcast-top",children:[(0,n.jsx)("button",{type:"button",className:"podcast-play",onClick:function(){let e=function(){if(!t.current){let e=new Audio(a.audio_path);e.preload="metadata",e.addEventListener("timeupdate",()=>{m(e.currentTime),u(e.duration?e.currentTime/e.duration*100:0)}),e.addEventListener("loadedmetadata",()=>f(e.duration)),e.addEventListener("ended",()=>{o(!1),u(0),l===e&&(l=null,r=null)}),t.current=e}return t.current}();if(d){e.pause(),o(!1),l===e&&(l=null,r=null);return}l&&l!==e&&(l.pause(),null==r||r(!1)),e.play().then(()=>{l=e,r=o}).catch(()=>o(!1)),o(!0)},"aria-label":d?"Pause":"Lire le podcast",children:d?"❚❚":"▶"}),(0,n.jsxs)("div",{className:"podcast-head",children:[(0,n.jsx)("p",{className:"podcast-eyebrow",children:"Podcast MEGA SPORTS"}),(0,n.jsx)("h3",{className:"podcast-title",children:a.title})]}),(0,n.jsxs)("span",{className:"podcast-eq","aria-hidden":!0,children:[(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})]}),a.description&&(0,n.jsx)("p",{className:"podcast-desc",children:a.description}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"podcast-progress",onClick:function(e){let a=t.current;if(!a||!a.duration)return;let n=e.currentTarget.getBoundingClientRect(),s=Math.min(1,Math.max(0,(e.clientX-n.left)/n.width));a.currentTime=s*a.duration,m(a.currentTime),u(100*s)},role:"progressbar","aria-valuenow":Math.round(c),"aria-valuemin":0,"aria-valuemax":100,children:(0,n.jsx)("i",{style:{width:"".concat(c,"%")}})}),(0,n.jsxs)("div",{className:"podcast-foot",style:{marginTop:6},children:[(0,n.jsx)("span",{children:i(p)}),(0,n.jsx)("span",{children:a.published_at?new Date(a.published_at).toLocaleDateString("fr-FR"):""}),(0,n.jsx)("span",{children:i(h)})]})]})]})}},5760:(e,a,t)=>{"use strict";t.r(a),t.d(a,{AdSlot:()=>i});var n=t(5155),s=t(2115),l=t(8378);function r(e,a,t){try{if("impression"===t){if(sessionStorage.getItem("ad-imp-".concat(e)))return;sessionStorage.setItem("ad-imp-".concat(e),"1")}fetch("/api/v1/ads/track",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({campaign_id:e,slot_key:a,event:t})})}catch(e){}}function i(e){let{placement:a,articleId:t,compact:l=!1}
1=e,[i,o]=(0,s.useState)([]),c=(0,s.useRef)(new Set);return((0,s.useEffect)(()=>{let e=!0;return fetch("/api/v1/ads?placement=".concat(encodeURIComponent(a))).then(e=>e.ok?e.json():{data:[]}).then(a=>{var t;e&&o(null!=(t=a.data)?t:[])}).catch(()=>{}),()=>{e=!1}},[a]),(0,s.useEffect)(()=>{for(let e of i)c.current.has(e.id)||(c.current.add(e.id),r(e.id,a,"impression"))},[i,a]),i.length)?(0,n.jsx)(n.Fragment,{children:i.map(e=>(0,n.jsx)(d,{ad:e,placement:a,compact:l,articleId:t},e.id))}):null}function d(e){let{ad:a,placement:t,compact:s,articleId:i}=e,d=(0,l.k)(),{format:o,html:c,image_url:u,video_url:p,link_url:m,cta:h}=a.meta,f=()=>r(a.id,t,"click");if("html"===o&&c)return(0,n.jsxs)("div",{className:"ad-frame","aria-label":d("ad_aria"),children:[(0,n.jsx)("iframe",{title:a.name,sandbox:"allow-scripts allow-popups allow-popups-to-escape-sandbox",srcDoc:c,style:{width:"100%",border:0,display:"block",background:"transparent"},loading:"lazy"}),(0,n.jsx)("span",{className:"ad-label",children:d("ad_label")})]});if("video"===o&&p)return(0,n.jsxs)("div",{className:"ad-frame","aria-label":d("ad_aria"),children:[(0,n.jsxs)("div",{className:"ad-media-wrap",children:[(0,n.jsx)("video",{src:p,controls:!0,muted:!0,autoPlay:!0,loop:!0,playsInline:!0,preload:"metadata"}),m&&(0,n.jsxs)("a",{className:"ad-cta",href:m,target:"_blank",rel:"noopener sponsored nofollow",onClick:f,children:[null!=h?h:d("ad_cta_offer")," →"]})]}),(0,n.jsx)("span",{className:"ad-label",children:d("ad_sponsor")})]});if("image"===o&&u){let e=(0,n.jsx)("img",{src:u,alt:a.name,loading:"lazy",style:{width:"100%",display:"block",borderRadius:12}});return(0,n.jsxs)("div",{className:"ad-frame".concat(s?" ad-compact":""),"aria-label":d("ad_aria"),children:[m?(0,n.jsx)("a",{href:m,target:"_blank",rel:"noopener sponsored nofollow",onClick:f,style:{display:"block",borderRadius:12,overflow:"hidden"},children:e}):e,(h||m)&&(0,n.jsxs)("a",{className:"ad-cta ad-cta-row",href:null!=m?m:"#",target:"_blank",rel:"noopener sponsored nofollow",onClick:f,children:[null!=h?h:d("ad_cta_more")," →"]}),(0,n.jsx)("span",{className:"ad-label",children:d("ad_label")})]})}return"popup"===o&&(u||p||c)?(0,n.jsxs)("div",{className:"ad-frame ad-popup-card","aria-label":d("ad_aria"),children:[p?(0,n.jsx)("video",{src:p,controls:!0,muted:!0,playsInline:!0,preload:"metadata",style:{width:"100%",borderRadius:12}}):u?(0,n.jsx)("img",{src:u,alt:a.name,loading:"lazy",style:{width:"100%",borderRadius:12}}):null,m&&(0,n.jsxs)("a",{className:"ad-cta ad-cta-row",href:m,target:"_blank",rel:"noopener sponsored nofollow",onClick:f,children:[null!=h?h:d("ad_cta_offer")," →"]}),(0,n.jsx)("span",{className:"ad-label",children:"PUBLICIT\xc9 \xb7 OFFRE SP\xc9CIALE"})]}):null}},9647:(e,a,t)=>{Promise.resolve().then(t.bind(t,5760)),Promise.resolve().then(t.bind(t,1012)),Promise.resolve().then(t.bind(t,1759)),Promise.resolve().then(t.bind(t,7288)),Promise.resolve().then(t.t.bind(t,2619,23))}},e=>{e.O(0,[2619,8378,7288,8441,1255,7358],()=>e(e.s=9647)),_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.