PageSourceSearch

https://static-oaos.rtbf.be/16654677931/_next/static/chunks/563-99e416ae397fad68.js

js rtbf.be collected 2026-09-24 08:31:14 UTC 27,055 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[563],{2857:(e,t,r)=>{r.d(t,{I4:()=>d,eA:()=>u,Mv:()=>s,$K:()=>l,Kq:()=>i,Hf:()=>c});var a=r(11109),o=r(19719),n=r(50796);let i=async(e,t=!1)=>{let r=e?a.W.STREAM_TOKEN:a.W.STREAM_TOKEN_ANON;if(!t){let e=(e=>{try{let t=(0,n.J)().get(e);if(!t)return null;let r=JSON.parse(t),a=new Date,o=new Date(r?.expiration);if(r.jwt&&r?.expiration&&o>a)return{jwt:r.jwt,expiration:o};(0,n.J)().del(e)}catch(t){(0,n.J)().del(e)}return null})(r);if(e)return e.jwt}let i={device:{deviceId:"321",type:"WEB"},deviceId:"321"};e&&(i.jwt=e);let l=await fetch(`https://exposure.api.redbee.live:443/v2/customer/RTBF/businessunit/Auvio/auth/${e?"gigyaLogin":"anonymous"}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!l.ok){let e=await l.json().catch(()=>({}));if(401===l.status&&"INCORRECT_CREDENTIALS"===e.message)throw new o.c1;throw Error(`API Error: ${l.status} ${l.statusText}`)}let s=(await l.json()).sessionToken;if(!s)throw Error("Remote token not found in response");if(!t){let e=new Date;e.setSeconds(e.getSeconds()+1800),(0,n.J)().set(r,JSON.stringify({jwt:s,expiration:e.toISOString()}),{expires:e.toISOString()})}return s},l=async(e,t,r="video")=>{let a="";"audio"!==r&&(a="?supportedFormats=hls,mp3&supportedDrms=widevine,fairplay");let n=await fetch(`https://exposure.api.redbee.live:443/v2/customer/RTBF/businessunit/Auvio/entitlement/${e}/play${a}`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}});if(!n.ok){let e=await n.json().catch(()=>({}));if(401===n.status&&"INVALID_CREDENTIALS"===e.message)throw new o.c1;if(401===n.status&&"INVALID_SESSION_TOKEN"===e.message)throw new o.bX;if(403===n.status&&"NOT_ENTITLED"===e.message)throw new o.Fu;if(403===n.status&&["GEO_BLOCKED","VPN_BLOCKED"].includes(e.message))throw new o.nK;if(404===n.status)throw new o.mT;if(n.status>=500)throw new o.uE;throw Error(`API Error: ${n.status} ${n.statusText}`)}return await n.json()},s=(e,t,r)=>{let a=e.formats.find(e=>"HLS"===e.format),n=e.formats.find(e=>"MP3"===e.format),i={};e.bookmarks.lastViewedOffset&&(i.startOffset=e.bookmarks.lastViewedOffset/1e3);let l,s=!!a?.drm?.["com.widevine.alpha"]?.licenseServerUrl;if("drm"in a&&!s)throw new o.HX("No playable DRM found for this asset");return n&&!a?{progressive:[{url:n.mediaLocator,type:"audio/mp3"}],options:i,metadata:l,poster:r,thumbnailTrack:{url:e.sprites?.[0]?.vtt}}:s?{hls:a.mediaLocator,drm:{widevine:{LA_URL:a.drm["com.widevine.alpha"].licenseServerUrl}},options:i,metadata:l,poster:r,thumbnailTrack:{url:e.sprites?.[0]?.vtt}}:{hls:a.mediaLocator,options:i,metadata:l,poster:r,thumbnailTrack:{url:e.sprites?.[0]?.vtt}}},u=(e,t,r,a,n)=>{let i=[o.bk.ERROR,o.bk.LOG,o.bk.DEBUG],l=r.ads&&!r.sgai&&n?{adBreaks:[{position:"pre",replaceContentDuration:0,tag:{url:n,type:"vast"}}]}:void 0,s={key:"44a2d762-a65e-4d8b-9d6f-a090fc8d1416",logs:{level:i[a],bitmovin:!1},analytics:{key:"008b6ca1-3733-4763-b932-f947eb12bc3a",videoId:t,title:e.data.title+" - "+e.data.subtitle,debug:a>0,isLive:"LIVE"===e.data.playerType,customUserId:"",customData1:"web_browser_bitmovin_oaos",customData2:"1.0.0",customData3:e.data.program?.title,customData4:e.data.program?.id,customData5:t},playback:{autoplay:r?.autoplay||!1,muted:r?.muted||!1},adaptation:{exclude:!1,resolution:{maxSelectableVideoHeight:1280},bitrates:{maxSelectableVideoBitrate:3316e3},desktop:{startupBitrate:772e3,preload:r.preload},mobile:{preload:r.preload}},network:{preprocessHttpResponse:(e,t)=>(("manifest/hls/variant"===e||"manifest/hls/master"===e)&&(t.body=t.body.replaceAll(/#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd.*/g,""),t.body=t.body.replaceAll(/SAMPLE-AES/g,"SAMPLE-AES-CTR")),Promise.resolve(t))},tweaks:{enable_sgai_handling:r.ads&&r.sgai},advertising:l};return"none"===r.ui&&(s.ui=!1),r.lowRes&&(s.adaptation.bitrates={maxSelectableVideoBitrate:448e3},s.adaptation.startupBitrate=448e3,s.playback.preferredTech=[{player:"html5",streaming:"hls"}]),r.lowStartRes&&(s.adaptation.maxStartupBitrate=448e3),s},c=(e,t=null,r={},a=0,o=null,n=null)=>{o||(o=window),n||(n="https://www.rtbf.be");let i={type:"externalPlayerVideoMessage",player_id:t,action:e,...r},l=JSON.stringify(i);a>1&&console.log(`Sending externalPlayerVideoMessage: ${e}`,i),o.postMessage(l,n)},d=(e,t={})=>{let r=e.meta?.smartAds;if(!r?.siteId||!r?.pageId||!r?.fmtId)return null;let a=new URL("https://videoapi.smartadserver.com/ac"),o="VIDEO"===e.data.type?"vod":"aod",n="LIVE"===e.data.playerType?"live":o,i=r.rules?.duration_max>0?r.rules.duration_max:0;for(let[o,l]of Object.entries({siteid:String(r.siteId),pgid:String(r.pageId),fmtid:String(r.fmtId),ab:"1",tgt:"",oc:"1",out:"vast4",ps:"1",pb:"0",visit:"S",vcn:"s",vph:t.playerHe
1ight,vpw:t.playerWidth,vpmt:n,skip:"",mabd:String(i),ctd:String(e.data.duration),tmstp:String(Date.now()),gdpr:"1",gdpr_consent:t.gdprConsent,pgDomain:t.pageDomain,cklb:"1"}))a.searchParams.set(o,l);return a.toString()}},5303:(e,t,r)=>{r.d(t,{U:()=>n});var a=r(54568),o=r(15995);function n({onClick:e}){return(0,a.jsx)(o.$n,{type:o.VQ.SUBMIT,onClick:e,children:"Connectez-vous"})}},20563:(e,t,r)=>{r.r(t),r.d(t,{BitmovinPlayer:()=>P});var a,o=r(54568),n=r(19719),i=r(33903),l=r(45907),s=r(46860),u=r(5303),c=r(7620),d=((a={}).PROGRAMSTART="programstart",a.START="start",a.PLAY="play",a.PAUSE="pause",a.COMPLETE="complete",a.BREAK="break",a.SEEK="seek",a.BUFFERING="buffering",a.CONTINUE="continue",a.CLOSE="close",a),p=r(18077);let m=["pointerdown","keydown","touchstart"],f=!1,y=new Set,g=()=>{for(let e of(f=!0,m))window.removeEventListener(e,g,!0);for(let e of y)e();y.clear()};for(let e of m)window.addEventListener(e,g,!0);var h=r(2857),w=r(44026),b=r(29386);let v=(0,r(42925).default)(()=>Promise.all([r.e(5902),r.e(374),r.e(9056),r.e(1846),r.e(4932),r.e(6004),r.e(1210)]).then(r.bind(r,41210)).then(e=>e.BitmovinPlayerCore),{loadableGenerated:{webpack:()=>[41210]},ssr:!1}),P=(0,c.memo)(({asset:e,options:t={autoplay:!0,maxDuration:0,loop:!1,muted:!0,ui:"default",preload:!1,contextId:null,contextType:"default",tracking:!0,ads:!1,sgai:!1},playerApiRef:r})=>{let a=(0,c.useMemo)(()=>crypto.randomUUID(),[]),[m,y]=(0,c.useState)(null),g=(0,b.useAtomValue)(i.cm),[P,S]=(0,c.useState)(null),[k,E]=(0,c.useState)(!1),x=(0,c.useRef)(new Set),$=+!l.j,T=(0,c.useRef)(0),A=(0,c.useRef)("init"),{consent:I}=(0,w.u)(),G=(0,c.useRef)(null);(0,c.useImperativeHandle)(r,()=>m,[m]);let[R,L]=(0,c.useState)({config:null,source:null}),[D,N]=(0,c.useState)({userId:null,userIdStatus:"init",token:null,tokenStatus:"init"}),C=(0,c.useMemo)(()=>["success","failed"].includes(D.tokenStatus)&&["success","failed"].includes(D.userIdStatus),[D.tokenStatus,D.userIdStatus]),V=(0,c.useMemo)(()=>"success"===D.tokenStatus&&"success"===D.userIdStatus,[D.tokenStatus,D.userIdStatus]),j=(0,c.useMemo)(()=>null!==R.config&&null!==R.source,[R.config,R.source]),B=(0,c.useMemo)(()=>e.data.assetId||("LIVE"===e.data.playerType?"live_":"")+e.data.id+"_6BA97Bb",[e.data.assetId,e.data.id,e.data.playerType]);(0,c.useEffect)(()=>{G.current=(0,h.I4)(e,{pageDomain:window.location.hostname,playerWidth:"9x16"===e.data.aspectRatio?"1080":"1920",playerHeight:"9x16"===e.data.aspectRatio?"1920":"1080",gdprConsent:I?"1":"0"})},[e,I]),(0,c.useEffect)(()=>{let e;if(!window||V)return;let t=(0,i.R2)(),r=(0,i.Hr)();return t&&r?($>0&&console.log(`[Player ${a}] using gigya cookies`),N(e=>({...e,token:t,userId:r,tokenStatus:"success",userIdStatus:"success"}))):g&&(e=window.setTimeout(()=>{$>0&&console.log(`[Player ${a}] request gigya data postmessage`),(0,h.Hf)("getGigyaToken",a,{},$),(0,h.Hf)("getGigyaId",a,{},$)},0)),()=>{window.clearTimeout(e)}},[$,g,a,V]),(0,c.useEffect)(()=>{if(!window||!D.token?.expiration)return;let e=D.token.expiration.getTime()-Date.now()-6e4;if(e<=0)return;let t=window.setTimeout(()=>{(0,h.Hf)("getGigyaToken",a,{},$)},e);return()=>{window.clearTimeout(t)}},[D.token,$,a]),(0,c.useEffect)(()=>{if(window&&C&&!j&&"init"===A.current&&!P){if(D.token?.expiration&&D.token.expiration<new Date){$>0&&console.log(`[Player ${a}] gigya token expired, removing from authinfo`),N(e=>({...e,token:null,tokenStatus:"init"}));return}e.data.isAnonymousAllowed||V?(async()=>{$>0&&console.log(`[Player ${a}] setup()`),A.current="pending",$>0&&console.log(`[Player ${a}] VAST URL ${G.current}`);let r=(0,h.eA)(e,B,t,$,G.current);r.analytics.customUserId=D.userId;try{let o=await (0,h.Kq)(D.token?.jwt),n=await (0,h.$K)(B,o),i=(0,h.Mv)(n,t);L({config:r,source:i}),A.current="done",$>0&&console.log(`[Player ${a}] stream, config, source, asset:`,n,r,i,e)}catch(e){S(e instanceof Error?e:Error(String(e)));return}})():S(new n.c1("Login needed to view the media"))}},[C,e,j,B,$,a,t,V,P,D.token,D.userId]),(({asset:e,debug:t,offset:r,options:a,playbackListeners:o,playerApi:i,playerId:l,setError:s,setIsReady:u})=>{let d=(0,c.useRef)(!1);(0,c.useEffect)(()=>
1{if(!i)return;t>0&&console.log(`[Player ${l}] Attaching player event listeners`);let c=(0,p.n)(t=>{let l=a.loop&&a.maxDuration&&a.maxDuration<e.data.duration;if(r.current=t.time,a.maxDuration&&t.time>=a.maxDuration){let e={type:n.G9.PlaybackFinished,timestamp:Date.now(),time:t.time};for(let t of o.current)t(e);l&&i.seek(0),i.pause()}},1e3),m=()=>{a.loop&&i.play()},y=e=>{s(Error(e.code+" - "+e.message))},g=()=>{d.current||(d.current=!0,t>0&&console.log(`[Player ${l}] setIsReady(true)`),u(!0))},h=()=>{d.current||(d.current=!0,t>0&&console.log(`[Player ${l}] setIsReady(true)`),u(!0)),f||"u">typeof navigator&&"userActivation"in navigator&&navigator.userActivation.hasBeenActive||(t>0&&console.log(`[Player ${l}] no user activation, muting the ad break`),i.mute("autoplay-policy"))},w=e=>{t>0&&console.log(`[Player ${l}] WARNING: ${e.type}, ${e.name}`),"warning"===e.type&&"PLAYBACK_COULD_NOT_BE_STARTED"===e.name&&(i.mute("autoplay-policy"),i.play())};return i.on(n.G9.TimeChanged,c),i.on(n.G9.PlaybackFinished,m),i.on(n.G9.Error,y),i.on(n.G9.AdError,y),i.on(n.G9.Ready,g),i.on(n.G9.AdBreakStarted,h),i.on(n.G9.Warning,w),()=>{i.off(n.G9.TimeChanged,c),i.off(n.G9.PlaybackFinished,m),i.off(n.G9.Error,y),i.off(n.G9.AdError,y),i.off(n.G9.Ready,g),i.off(n.G9.AdBreakStarted,h),i.off(n.G9.Warning,w),d.current&&(d.current=!1,u(!1))}},[e.data.duration,t,r,a.loop,a.maxDuration,o,i,l,s,u]),(0,c.useEffect)(()=>{if(t<1||!i)return;console.log(`[Player ${l}] Setting player events debug logs`);let e=e=>{console.log(`[Player ${l}] Event Fired: ${e.type}`,t>1&&e)};for(let r of n.lH)t<2&&r===n.G9.TimeChanged||t<2&&r===n.G9.Metadata||t<2&&r===n.G9.MetadataParsed||t<2&&r===n.G9.DownloadFinished||i.on(r,e);return()=>{for(let t of n.lH)i.off(t,e)}},[t,i,l])})({asset:e,debug:$,offset:T,options:t,playbackListeners:x,playerApi:m,playerId:a,setError:S,setIsReady:E}),(({debug:e,playerApi:t,playerId:r,setAuthInfo:a})=>{(0,c.useEffect)(()=>{if(!window)return;let o=o=>{if(o.data&&"string"==typeof o.data&&o.data.includes("externalPlayerVideoMessage"))try{let n=JSON.parse(o.data);switch(e>1&&console.log(`[Player ${r}] postmessage received:`,n),n.action){case"gigyaTokenSuccess":e>1&&console.log(`[Player ${r}] Gigya Token request success:`,n),a(e=>({...e,token:{jwt:n.token,expiration:new Date(n.expiration)},tokenStatus:"success"}));break;case"gigyaTokenFailNotConnected":e>1&&console.warn(`[Player ${r}] Gigya Token request failed: Not Connected.`),a(e=>({...e,token:null,tokenStatus:"failed"}));break;case"gigyaIdSuccess":e>1&&console.log(`[Player ${r}] Gigya Id request success:`,n),a(e=>({...e,userId:n.user_id??null,userIdStatus:"success"}));break;case"gigyaIdFailNotConnected":e>1&&console.warn(`[Player ${r}] Gigya User id request failed: Not Connected.`),a(e=>({...e,userId:null,userIdStatus:"failed"}));break;case"onPlay":case"onStart":case"stopOtherVideo":n.player_id!==r&&t?.isPlaying()&&(e>1&&console.log(`[Player ${r}] anoher player has started:`,n),t?.pause())}}catch(t){e>0&&console.error(`[Player ${r}] Error parsing postMessage data:`,t)}};return e>0&&console.log(`[Player ${r}] listeners added`),window.addEventListener("message",o,!1),()=>{window.removeEventListener("message",o)}},[e,t,r,a])})({debug:$,playerApi:m,playerId:a,setAuthInfo:N}),(({playerApi:e,asset:t,options:r,playerId:a,offset:o})=>{let i=(0,c.useRef)(!1),l=(0,c.useRef)(null),s=(0,c.useRef)(!1),u=(0,c.useRef)(null),p=(0,c.useRef)(null);(0,c.useEffect)(()=>{let a=o.current,c=-1;if(!1===r.tracking||!e)return;let m=e=>{u.current=!1,l.current?.programEvent(t?.data?.id,e.time,d.PAUSE)},f=e=>{i.current=!0,s.current=!1,l.current?.programEvent(t?.data?.id,e.time,d.COMPLETE)},y=e=>{let r=d.PLAY,a=s.current?e.time:0;null!==p.current&&(l.current?.programEvent(t.data.id,a,d.SEEK),p.current=null),l.current?.programEvent(t?.data?.id,a,r),u.current=!0,s.current=!0,i.current=!1},g=a=>{l.current=new window.GemiusPlayer("player","0sg64eetS042qCuL6KD2F8UX.GLBmr.1dHTq3acZlsP.g7",{currentDomain:"rtbf.be",volume:r.muted?-1:e.getVolume()}),l.current.setVideoObject(e.getVideoElement()),l.current.newProgram(t.data.id,{se:t.meta.gemius.player.se,ct:t.meta.gemius.player.ct,tv:t.meta.gemius.player.tv,st:t.meta.gemius.player.st,programName:t.meta.gemius.player.sct,series:t.meta.gemius.player.se,channel:t.meta.gemius.player.channel,programSeason:"0",programDuration:t.data.duration,premiereDate:"20250901",programType:t.data.type})}
1,h=e=>{null===p.current&&(p.current=e.position),i.current=!1},w=r=>{l.current?.programEvent(t.data.id,e?.getCurrentTime(),d.BUFFERING)},b=e=>{l.current?.programEvent(t.data.id,e.target,d.SEEK)};return e.on(n.G9.Paused,m),e.on(n.G9.PlaybackFinished,f),e.on(n.G9.Playing,y),e.on(n.G9.Ready,g),e.on(n.G9.Seek,h),e.on(n.G9.Seeked,r=>{let a=e.getCurrentTime();u.current&&null!==p.current&&(clearTimeout(c),c=window.setTimeout(()=>{l.current?.programEvent(t.data.id,p.current,d.PAUSE),l.current?.programEvent(t.data.id,a,d.SEEK),l.current?.programEvent(t.data.id,a,d.PLAY),p.current=null},500))}),e.on(n.G9.StallStarted,w),e.on(n.G9.TimeShifted,b),()=>{s&&!i.current&&l.current?.programEvent(t.data.id,a,d.CLOSE,{autoPlay:r.autoplay}),e.off(n.G9.Paused,m),e.off(n.G9.PlaybackFinished,f),e.off(n.G9.Playing,y),e.off(n.G9.Ready,g),e.off(n.G9.Seek,h),e.off(n.G9.StallStarted,w),e.off(n.G9.TimeShifted,b)}},[t,o,r.autoplay,r.muted,r.tracking,e,a])})({playerApi:m,asset:e,options:t,playerId:a,offset:T}),(({playerApi:e,asset:t,options:r,playerId:a,uid:o,offset:i,debug:l})=>{let s=(0,c.useRef)(!1),u=(0,c.useRef)(!1),d=(0,c.useRef)(null),p=(0,c.useRef)(null),m=(0,c.useCallback)((e,n=null)=>{let s={type:"externalPlayerVideoMessage",player_id:a,action:e,sessionId:a,recommendedMediaId:null,mediaId:t.data.id,isLive:"LIVE"===t.data.playerType,isAudioOnly:"AUDIO"===t.data.type,isHighlight:!1,uid:o,contextId:r.contextId,contextType:r.contextType,currentTime:n||i.current};(0,h.Hf)(e,a,s,l)},[t,l,i,r,a,o]);(0,c.useEffect)(()=>{let t=-1;if(!1===r.tracking||!e)return;let a=e=>{m("ad_completed")},o=e=>{m("ad_playing")},i=e=>{d.current=!1,m("pause",e.time)},l=e=>{s.current=!0,u.current=!1,m("ended")},c=e=>{let t=u.current?e.time:0;null!==p.current&&(m("seeking",p.current),m("sought",t),p.current=null),m(u.current?"resume":"start",u.current?e.time:0),d.current=!0,u.current=!0,s.current=!1},f=e=>{m("init")},y=e=>{null===p.current&&(p.current=e.position),s.current=!1},g=r=>{let a=e.getCurrentTime();d.current&&null!==p.current&&(clearTimeout(t),t=window.setTimeout(()=>{m("pause",p.current),m("seeking",p.current),m("sought",a),m("resume",a),p.current=null},500))},h=e=>{m("seeking",e.position),m("sought",e.target)};return e.on(n.G9.AdBreakFinished,a),e.on(n.G9.AdBreakStarted,o),e.on(n.G9.Paused,i),e.on(n.G9.PlaybackFinished,l),e.on(n.G9.Playing,c),e.on(n.G9.Ready,f),e.on(n.G9.Seek,y),e.on(n.G9.Seeked,g),e.on(n.G9.TimeShift,h),()=>{u&&!s.current&&m("abort"),e.off(n.G9.AdBreakFinished,a),e.off(n.G9.AdBreakStarted,o),e.off(n.G9.Paused,i),e.off(n.G9.PlaybackFinished,l),e.off(n.G9.Playing,c),e.off(n.G9.Ready,f),e.off(n.G9.Seek,y),e.off(n.G9.Seeked,g),e.off(n.G9.TimeShift,h)}},[r.tracking,e,m])})({playerApi:m,asset:e,options:t,playerId:a,offset:T,uid:D.userId,debug:$}),(({asset:e,debug:t,error:r,gigyaDataReady:a,playerId:o,setError:i,setPlayerProps:l,setupState:s,userConnected:u})=>{(0,c.useEffect)(()=>{r||e.data.isAnonymousAllowed||u||!a||"init"===s.current||(t>0&&console.log(`[Player ${o}] user disconnected, clearing config for protected media`),i(new n.c1("Login needed to view the media")),l({config:null,source:null}))},[e.data.isAnonymousAllowed,t,r,a,o,i,l,s,u]),(0,c.useEffect)(()=>{r instanceof n.c1&&u&&(t>0&&console.log(`[Player ${o}] the user is NOW connected, reinit`),i(null),s.current="init")},[t,r,o,i,s,u]),(0,c.useEffect)(()=>{if(window&&r){if(r instanceof n.c1){t>0&&console.warn(`[Player ${o}] Authentication Error: Credentials are invalid. User must re-login.`,r);return}if(r instanceof n.bX){t>0&&console.warn(`[Player ${o}] Session Error: Token is invalid or expired. Attempting token refresh.`,r);return}if(r instanceof n.Fu){t>0&&console.info(`[Player ${o}] Access Error: User is not entitled to play this media.`,r);return}if(r instanceof n.nK){t>0&&console.warn(`[Player ${o}] GeoBlock Error: User is restricted based on location or VPN.`,r);return}if(r instanceof n.mT){t>0&&console.error(`[Player ${o}] Resource Error: The specified asset was not found (404).`,r);return}if(r instanceof n.uE){t>0&&console.error(`[Player ${o}] Server Error: An internal API issue (5xx) occurred.`,r);return}if(r instanceof n.nr){t>0&&console.error(`[Player ${o}] Bitmovin Error:`,r);return}if(r instanceof n.HX){t>0&&console.error(`[Player ${o}] Unrecoverable fatal Error:`,r);return}t>0&&console.error(`[Player ${o}] Unexpected Error:`,r)}},[t,r,o])})({asset:e,debug:$,error:P,gigyaDataReady:C,playerId:a,setError:S,setPlayerProps:L,setupState:A,userConnected:V});let M=(0,c.useCallback)(e=>{if($>0&&console.log(`[Player ${a}] Set player controls API:`,e),!e)return y(null);y({...e,play:()=>{try{return e.play()}catch(e){$>0&&console.warn(`[Player ${a}] Failed to play()`,e)}return Promise.resolve()},pause:()=>{try{e.pause()}catch(e){$>0&&console.warn(`[Player ${a}] Failed to pause()`,e)}},seek:t=>{try{return e.seek(t)}catch(e){$>0&&console.warn(`[Player ${a}] Failed to seek(${t})`,e)}return!1},mute:t=>{try{e.mute(t)}catch(e){$>0&&console.log(`[Player ${a}] mute error playerApi is not available`,e)}},unmute:t=>{try{e.unmute(t)}catch(e){$>0&&console.log(`[Player ${a}] unmute error playerApi is not available`,e)}},setAspectRatio:t=>{try{e.setAspectRatio(t)}catch(e){$>0&&console.log(`[Player ${a}] setAspectRatio error playerApi is not available`,e)}},setPlaybackSpeed:t=>{try{e.setPlaybackSpeed(t)}catch(e){$>0&&console.log(`[Player ${a}] setPlaybackSpeed error playerApi is not available`,e)}},setVolume:t=>{try{e.setVolume(t)}catch(e){$>0&&console.log(`[Player ${a}] setVolume error playerApi is not available`,e)}},getPlaybackSpeed:()=>{try{return e.getPlaybackSpeed()}catch(e){return $>0&&console.log(`[Player ${a}] getPlaybackSpeed error playerApi is not available`,e),null}},isLive:()=>{try{return e.isLive()}catch(e){return $>0&&console.log(`[Player ${a}] isLive error playerApi is not available`,e),null}},isMuted:()=>{try{return e.isMuted()}catch(e){return $>0&&console.log(`[Player ${a}] isMuted error playerApi is not available`,e),null}},isPaused:()=>{try{return e.isPaused()}catch(e){return $>0&&console.log(`[Player ${a}] isPaused error playerApi is not available`,e),null}},isPlaying:()=>{try{return e.isPlaying()}catch(e){return $>0&&console.log(`[Player ${a}] isPlaying error playerApi is not available`,e),null}},isStalled:()=>{try{return e.isStalled()}catch(e){return $>0&&console.log(`[Player ${a}] isStalled error playerApi is not available`,e),null}},getVideoElement:()=>{try{return e.getVideoElement()}catch(e){return $>0&&console.log(`[Player ${a}] getVideoElement error playerApi is not available`,e),null}},getVolume:()=>{try{return e.getVolume()}catch(e){return $>0&&console.log(`[Player ${a}] getVolume error playerApi is not available`,e),null}},getCurrentTime:()=>{try{return e.getCurrentTime()}catch(e){return $>0&&console.log(`[Player ${a}] getCurrentTime error playerApi is not available`,e),null}},onSourceLoaded:t=>{try{e.on(n.G9.SourceLoaded,t)}catch(e){$>0&&console.warn(`[Player ${a}] Failed to attach onSourceLoaded`,e)}},offSourceLoaded:t=>{try{e.off(n.G9.SourceLoaded,t)}catch(e){$>1&&console.log(`[Player ${a}] Failed to detach offSourceLoaded`,e)}},onPlaybackFinished:t=>{x.current.add(t);try{e.on(n.G9.PlaybackFinished,t)}catch(e){$>1&&console.warn(`[Player ${a}] Failed to attach onPlaybackFinished`,e)}},offPlaybackFinished:t=>{x.current.delete(t);try{e.off(n.G9.PlaybackFinished,t)}catch(e){$>1&&console.log(`[Player ${a}] Failed to detach offPlaybackFinished`,e)}},on:(t,r)=>{try{e?.on(t,r)}catch(e){$>1&&console.warn(`[Player ${a}] Failed to attach on`,t,e)}},off:(t,r)=>{try{e?.off(t,r)}catch(e){$>1&&console.warn(`[Player ${a}] Failed to detach off`,t,e)}}})},[$,a]);return(0,o.jsxs)(o.Fragment,{children:[j&&(0,o.jsxs)("div",{className:`absolute inset-0 size-full border-0 transition-opacity duration-100 ease-in-out ${k?"opacity-100":"opacity-0"}`,children:[$>2&&(0,o.jsx)("div",{style:{position:"absolute",top:0,left:0,backgroundColor:"rgba(0,0,0,0.8)",zIndex:1e3,color:"white",fontSize:"10px",padding:"2px"},children:a}
1),(0,o.jsx)(v,{playerRef:M,config:R.config,source:R.source,layout:t.ui,playerId:a,className:"embed-rtbf absolute inset-0 size-full border-0"})]}),P&&P instanceof n.c1&&(0,o.jsx)(s.A,{title:"Veuillez vous connecter",loginButtonComponent:(0,o.jsx)(u.U,{onClick:()=>window.postMessage(JSON.stringify({type:"externalPlayerVideoMessage",action:"login"}),"*")})})]})});P.displayName="BitmovinPlayerWrapper"},24575:(e,t,r)=>{r.d(t,{Ax:()=>p,ce:()=>f});var a=r(54568),o=r(57533),n=r(46882),i=r(95253),l=r(80605),s=r(7620),u=r(29177),c=r(35103);let d=({id:e,url:t,title:r,autoPlay:o,articleId:n,assetId:i,assetType:l})=>{let s=`embed_iframe_${e}`;return(0,a.jsx)("iframe",{suppressHydrationWarning:!0,id:s,"data-context-id":n,"data-context-type":"article","data-asset-id":i,"data-asset-type":l,"data-src":t.href,"data-expand":o?300:-50,title:r,className:"lazyload embed-rtbf absolute top-0 left-0 size-full border-0",allow:`accelerometer; autoplay; clipboard-write; gyroscope; picture-in-picture; encrypted-media ${t.origin};`,allowFullScreen:!0})},p=({title:e,description:t="Pour voir ce contenu, connectez-vous gratuitement",imageUrl:r="",imagePriority:o=!1,loginButtonComponent:n})=>(0,a.jsxs)("div",{className:"rs_skip absolute top-0 left-0 size-full overflow-hidden",children:[(0,a.jsx)(i._,{..."string"==typeof r?{src:r}:{srcSet:r},alt:"",sizes:"(min-width: 760px) 656px, calc(90.91vw - 17px)",className:"absolute w-full blur-xs",priority:o}),(0,a.jsx)("div",{className:"absolute top-0 left-0 size-full bg-auvio-gray opacity-70"}),(0,a.jsxs)("div",{className:"absolute top-0 left-0 flex size-full flex-col items-center justify-center",children:[(0,a.jsx)("h3",{className:"my-4 line-clamp-3 text-20 font-bold text-white md:line-clamp-none",children:e}),(0,a.jsx)("p",{className:"my-16 text-center text-14 font-normal text-white",children:t}),n]})]}),m=({aspectRatio:e="16x9",isWebview:t=!1,children:r})=>{let o="9x16"===e,n="";return n="9x16"===e?"aspect-9/16 max-h-[calc(100vh-75px)] max-w-full mx-auto":"aspect-video w-full",(0,a.jsx)("div",{className:`relative ${n} dark:border dark:border-navy-blue-300`,children:o?(0,a.jsx)(c.VerticalVideoScrollSnapWrapper,{enabled:o,isWebview:t,children:r}):r})},f=(0,s.memo)(({...e})=>{let t,r=(0,n.Q)(e.description),i=(t=e.src.replace(/www(\..*?rtbf\.be)\/auvio\/embed\/mediahighlight\?id=(\d+)/,"auvio$1/embed/rtbf/highlight/media/$2").replace(/www(\..*?rtbf\.be)\/auvio\/embed\/directhighlight\?id=(\d+)/,"auvio$1/embed/rtbf/highlight/live/$2").replace(/www(\..*?rtbf\.be)\/auvio\/embed\/media\?id=(\d+)/,"auvio$1/embed/rtbf/content/media/$2").replace(/www(\..*?rtbf\.be)\/auvio\/embed\/direct\?id=(\d+)/,"auvio$1/embed/rtbf/content/live/$2").replace(/www(\..*?rtbf\.be)\/embed\/m\?id=(\d+)/,"auvio$1/embed/rtbf/content/media/$2").replace(/www(\..*?rtbf\.be)\/embed\/d\?id=(\d+)/,"auvio$1/embed/rtbf/content/live/$2").replace("&","?"),(0,o.HG)()&&(t=t.replace("/rtbf/content/","/rtbf/highlight/")),(t=new URL(t)).searchParams.set("autoplay","1"),t.searchParams.set("mute","1"),t),s=new Date,c=void 0===e.toDate||Date.parse(e.toDate)>Date.parse(s.toDateString());return e.autoPlay=i.searchParams.get("autoplay"),e.mute=i.searchParams.get("mute"),(0,a.jsxs)(m,{aspectRatio:e.aspectRatio,isWebview:e.isWebview,children:[(0,a.jsx)(u.EmbedMediaVideoJsonLd,{name:(0,n.Q)(e.title),description:""===r?null:r,thumbnailUrls:"string"==typeof e.imageUrl?[e.imageUrl]:[e.imageUrl?.m],contentUrl:e.canonical,embedUrl:i.href,uploadDate:e.uploadDate,caption:e.subtitle,duration:(0,l.Z)({seconds:e.duration}),articleId:e.articleId}),e.displayLoginPanel&&(0,a.jsx)(p,{title:e.title,imageUrl:e.imageUrl,imagePriority:e.imagePriority,loginButtonComponent:e.loginButtonComponent}),!e.displayLoginPanel&&c&&(0,a.jsx)(d,{id:e.id,assetId:e.asset?.data.id||e.media?.id||e.live?.id.toString()||e.embed?.resourceId||e.id,assetType:e.asset?.data.playerType||e.isLive?"LIVE":"MEDIA",url:i,title:e.title,autoPlay:e.autoPlay,articleId:e.articleId}),!e.displayLoginPanel&&!c&&(0,a.jsx)(p,{title:e.title,imageUrl:e.imageUrl,imagePriority:e.imagePriority,description:"D\xe9sol\xe9, ce contenu n'est actuellement plus disponible.",loginButtonComponent:e.loginButtonComponent})]})});f.displayName="EmbedMedia"},29177:(e,t,r)=>{r.d(t,{EmbedMediaVideoJsonLd:()=>i});var a=r(54568),o=r(98506),n=r(65431);function i(e){let t=(0,o.u)();return(0,a.jsx)(n.WR,{useAppDir:t,...e})}},35103:(e,t,r)=>{r.d(t,{VerticalVideoScrollSnapWrapper:()=>n});var a=r(54568),o=r(7620);let n=({enabled:e,isWebview:t,children:r})=>{let n,i,l,s,u=(0,o.useRef)(null);return n=(0,o.useRef)(!1),i=(0,o.useRef)(!1),l=(0,o.useRef)(0),s=(0,o.useRef)(null),(0,o.useEffect)(()=>
1{if(!e||!u.current)return;let r=u.current,a=!1,o=()=>{let e=window.scrollY;Math.abs(e-l.current)>50&&(i.current=!0,n.current=!1,clearTimeout(s.current),s.current=setTimeout(()=>{i.current=!1},1500)),l.current=e},c=new IntersectionObserver(e=>{for(let o of e)if(o.isIntersecting&&o.intersectionRatio>.8){if(n.current||i.current||a)return;clearTimeout(s.current),s.current=setTimeout(()=>{if(!a&&!i.current){a=!0,n.current=!0;let e=r.getBoundingClientRect(),o=window.innerHeight,i=56*!t,l=e.top+e.height/2-(o+i)/2;window.scrollBy({top:l,behavior:"smooth"}),setTimeout(()=>{a=!1},1e3)}},150)}else(!o.isIntersecting||o.intersectionRatio<.5)&&(n.current=!1)},{threshold:[.5,.8,.9],rootMargin:"0px"});return window.addEventListener("scroll",o,{passive:!0}),c.observe(r),()=>{c.disconnect(),window.removeEventListener("scroll",o),clearTimeout(s.current)}},[e]),(0,a.jsx)("div",{className:"size-full",ref:u,children:r})}},46860:(e,t,r)=>{r.d(t,{A:()=>a.Ax});var a=r(24575)},80605:(e,t,r)=>{r.d(t,{Z:()=>a});function a(e){let{years:t=0,months:r=0,days:a=0,hours:o=0,minutes:n=0,seconds:i=0}=e;return`P${t}Y${r}M${a}DT${o}H${n}M${i}S`}}}]);

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.