PageSourceSearch

https://www.ef.tn/assetscdn/cefcom-about-us-nextjs-site/tn/_next/s…/chunks/reactPlayerHls.b7067e29e232255c.js

js ef.tn collected 2026-10-08 09:07:48 UTC 7,310 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3184],{84593:function(e,t,i){i.r(t),i.d(t,{default:function(){return M}});var a,n,s,l,r,o,c,d,u=i(2784),h=i(90409),p=i(38354),f=i(88053),v=Object.defineProperty,m=e=>{throw TypeError(e)},E=(e,t,i)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,g=(e,t,i)=>E(e,"symbol"!=typeof t?t+"":t,i),y=(e,t,i)=>t.has(e)||m("Cannot "+i),b=(e,t,i)=>(y(e,t,"read from private field"),i?i.call(e):t.get(e)),k=(e,t,i)=>t.has(e)?m("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),T=(e,t,i,a)=>(y(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),L=(e,t,i)=>(y(e,t,"access private method"),i);let w=(a=(0,p.l)(h.zM),n=class extends a{get config(){return b(this,l)}set config(e){T(this,l,e)}attributeChangedCallback(e,t,i){"src"!==e&&super.attributeChangedCallback(e,t,i),"src"===e&&t!=i&&this.load()}async load(){var e,t;let i=!this.api;if(L(this,r,o).call(this),this.src){if(i&&!b(this,l)&&T(this,l,JSON.parse((null==(e=this.shadowRoot.getElementById("config"))?void 0:e.textContent)||"{}")),f.rW.isSupported()){switch(await Promise.resolve(),this.api=new f.rW({liveDurationInfinity:!0,autoStartLoad:!1,...this.config}),this.api.loadSource(this.src),this.api.attachMedia(this.nativeEl),this.nativeEl.preload){case"none":{let e=()=>this.api.startLoad();this.nativeEl.addEventListener("play",e,{once:!0}),this.api.on(f.rW.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",e)});break}case"metadata":{let e=this.api.config.maxBufferLength,t=this.api.config.maxBufferSize;this.api.config.maxBufferLength=1,this.api.config.maxBufferSize=1;let i=()=>{this.api.config.maxBufferLength=e,this.api.config.maxBufferSize=t};this.nativeEl.addEventListener("play",i,{once:!0}),this.api.on(f.rW.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",i)}),this.api.startLoad();break}default:this.api.startLoad()}this.nativeEl.webkitCurrentPlaybackTargetIsWireless&&this.api.stopLoad(),this.nativeEl.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",b(this,c)),T(this,s,document.createElement("source")),b(this,s).setAttribute("type","application/x-mpegURL"),b(this,s).setAttribute("src",this.src),this.nativeEl.disableRemotePlayback=!1,this.nativeEl.append(b(this,s));let e=new WeakMap;this.api.on(f.rW.Events.MANIFEST_PARSED,(t,i)=>{this.nativeEl.autoplay&&this.nativeEl.paused&&this.nativeEl.play().catch(e=>{console.warn("Autoplay failed:",e)}),a();let n=this.videoTracks.getTrackById("main");for(let[t,a]of(n||((n=this.addVideoTrack("main")).id="main",n.selected=!0),i.levels.entries())){let i=n.addRendition(a.url[0],a.width,a.height,a.videoCodec,a.bitrate);e.set(a,"".concat(t)),i.id="".concat(t)}for(let[e,t]of i.audioTracks.entries()){let i=t.default?"main":"alternative",a=this.addAudioTrack(i,t.name,t.lang);a.id="".concat(e),t.default&&(a.enabled=!0)}}),this.audioTracks.addEventListener("change",()=>{var e;let t=+(null==(e=[...this.audioTracks].find(e=>e.enabled))?void 0:e.id),i=this.api.audioTracks.map(e=>e.id);t!=this.api.audioTrack&&i.includes(t)&&(this.api.audioTrack=t)}),this.api.on(f.rW.Events.LEVELS_UPDATED,(t,i)=>{var a;let n=this.videoTracks[null!==(a=this.videoTracks.selectedIndex)&&void 0!==a?a:0];if(!n)return;let s=i.levels.map(t=>e.get(t));for(let e of this.videoRenditions)e.id&&!s.includes(e.id)&&n.removeRendition(e)});let i=null;this.api.on(f.rW.Events.ERROR,(e,t)=>{t.type===f.rW.ErrorTypes.NETWORK_ERROR&&t.details===f.rW.ErrorDetails.FRAG_LOAD_ERROR&&(i=t.frag.level)}),this.api.on(f.rW.Events.LEVEL_SWITCHED,(e,t)=>{let a=t.level;null!==i&&a<i&&(console.warn("⚠️ hls.js downgraded quality from level ".concat(i," to ").concat(a," due to fragment load failure.")),this.videoRenditions.selectedIndex=a,i=null)}),null==(t=this.videoRenditions)||t.addEventListener("change",e=>{let t=e.target.selectedIndex;t!=this.api.nextLevel&&(this.api.nextLevel=t)});let a=()=>{for(let e of this.videoTracks)this.removeVideoTrack(e);for(let e of this.audioTracks)this.removeAudioTrack(e)};this.api.once(f.rW.Events.DESTROYING,a);return}await Promise.resolve(),this.nativeEl.canPlayType("application/vnd.apple.mpegurl")&&(this.nativeEl.src=this.src)}}constructor(){super(),k(this,r),k(this,s,null),k(this,l,null),k(this,c,()=>{var e,t,i;null!=(e=this.nativeEl)&&e.webkitCurrentPlaybackTargetIsWireless?null==(t=this.api)||t.stopLoad():null==(i=this.api)||i.startLoad()}),L(this,r,d).call(this,"config")}},s=new WeakMap,l=new WeakMap,r=new WeakSet,o=function(){var e,t;null==(e=b(this,s))||e.remove(),null==(t=this.nativeEl)||t.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",b(this,c)),this.api&&(this.api.detachMedia(),this.api.destroy(),this.api=null)},c=new WeakMap,d=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){let t=this[e];delete this[e],this[e]=t}},g(n,"shadowRootOptions",{...a.shadowRootOptions}),g(n,"getTemplateHTML",function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{src:i,...n}=e;return'\n        <script type="application/json" id="config">\n          '.concat(JSON.stringify(t.config||{}),"\n        </script>\n        ").concat(a.getTemplateHTML(n),"\n      ")}),n);globalThis.customElements&&!globalThis.customElements.get("hls-video")&&globalThis.customElements.define("hls-video",w);var R=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),W={className:"class",htmlFor:"for"};function C(e){return e.toLowerCase()}function S(e){return"boolean"==typeof e?e?"":void 0:"function"==typeof e||"object"==typeof e&&null!==e?void 0:e}function N(e,t,i){var a,n;e[t]=i,null==i&&t in(null!==(n=null==(a=globalThis.HTMLElement)?void 0:a.prototype)&&void 0!==n?n:{})&&e.removeAttribute(t)}var M=function(e){let{react:t,tagName:i,elementClass:a,events:n,displayName:s,defaultProps:l,toAttributeName:r=C,toAttributeValue:o=S}=e,c=Number.parseInt(t.version)>=19,d=t.forwardRef((e,s)=>{var d,u,h,p,f;let v=t.useRef(null),m=t.useRef(new Map),E={},g={},y={},b={};for(let[t,i]of Object.entries(e)){if(R.has(t)){y[t]=i;continue}let e=r(null!==(h=W[t])&&void 0!==h?h:t);if(a.prototype&&t in a.prototype&&!(t in(null!==(p=null==(d=globalThis.HTMLElement)?void 0:d.prototype)&&void 0!==p?p:{}))&&!(null!=(u=a.observedAttributes)&&u.some(t=>t===e))){b[t]=i;continue}if(t.startsWith("on")){E[t]=i;continue}let n=o(i);
1e&&null!=n&&(g[e]=String(n),c||(y[e]=n)),e&&c&&(n!==S(i)?y[e]=n:y[e]=i)}for(let e in E){let i=E[e],a=e.endsWith("Capture"),s=(null!==(f=null==n?void 0:n[e])&&void 0!==f?f:e.slice(2).toLowerCase()).slice(0,a?-7:void 0);t.useLayoutEffect(()=>{let e=null==v?void 0:v.current;if(!(!e||"function"!=typeof i))return e.addEventListener(s,i,a),()=>{e.removeEventListener(s,i,a)}},[null==v?void 0:v.current,i])}return t.useLayoutEffect(()=>{if(null===v.current)return;let e=new Map;for(let t in b)N(v.current,t,b[t]),m.current.delete(t),e.set(t,b[t]);for(let[e,t]of m.current)N(v.current,e,void 0);m.current=e}),t.createElement(i,{...l,...y,ref:t.useCallback(e=>{v.current=e,"function"==typeof s?s(e):null!==s&&(s.current=e)},[s])})});return d.displayName=null!=s?s:a.name,d}({react:u,tagName:"hls-video",elementClass:w,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":C(e)})}}]);

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.