PageSourceSearch

https://www.buildersclubnorth.com/static/js/reactPlayerHls.787f6d1c.chunk.js

js buildersclubnorth.com collected 2026-10-08 04:16:38 UTC 7,920 bytes, 3 lines download raw bytes

1/*! For license information please see reactPlayerHls.787f6d1c.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkbcn2020=self.webpackChunkbcn2020||[]).push([[3184],{36552:(t,e,i)=>{i.r(e),i.d(e,{default:()=>L});var n=i(1413),s=i(29439),a=i(72791),o=i(45987),r=i(40101),l=i(72346),c=i(4942),d=i(15395),u=i(60003),h=i(27468),p=i(98418),v=i(1221),f=i(21668);const m=["src"],E=(t=>{var e,i,a,p,v;return i=new WeakMap,a=new WeakMap,p=new WeakSet,v=new WeakMap,e=class extends t{constructor(){super(),(0,r.Z)(this,p),(0,l.Z)(this,i,null),(0,l.Z)(this,a,null),(0,l.Z)(this,v,()=>{var t,e,i;(null==(t=this.nativeEl)?void 0:t.webkitCurrentPlaybackTargetIsWireless)?null==(e=this.api)||e.stopLoad():null==(i=this.api)||i.startLoad()}),(0,h.Z)(p,this,g).call(this,"config")}get config(){return(0,u.Z)(a,this)}set config(t){(0,d.Z)(a,this,t)}attributeChangedCallback(t,e,i){"src"!==t&&super.attributeChangedCallback(t,e,i),"src"===t&&e!=i&&this.load()}async load(){var t,e;const o=!this.api;if((0,h.Z)(p,this,E).call(this),this.src){if(o&&!(0,u.Z)(a,this)&&(0,d.Z)(a,this,JSON.parse((null==(t=this.shadowRoot.getElementById("config"))?void 0:t.textContent)||"{}")),f.ZP.isSupported()){switch(await Promise.resolve(),this.api=new f.ZP((0,n.Z)({liveDurationInfinity:!0,autoStartLoad:!1},this.config)),this.api.loadSource(this.src),this.api.attachMedia(this.nativeEl),this.nativeEl.preload){case"none":{const t=()=>this.api.startLoad();this.nativeEl.addEventListener("play",t,{once:!0}),this.api.on(f.ZP.Events.DESTROYING,()=>{this.nativeEl.removeEventListener("play",t)});break}case"metadata":{const t=this.api.config.maxBufferLength,e=this.api.config.maxBufferSize;this.api.config.maxBufferLength=1,this.api.config.maxBufferSize=1;const i=()=>{this.api.config.maxBufferLength=t,this.api.config.maxBufferSize=e};this.nativeEl.addEventListener("play",i,{once:!0}),this.api.on(f.ZP.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",(0,u.Z)(v,this)),(0,d.Z)(i,this,document.createElement("source")),(0,u.Z)(i,this).setAttribute("type","application/x-mpegURL"),(0,u.Z)(i,this).setAttribute("src",this.src),this.nativeEl.disableRemotePlayback=!1,this.nativeEl.append((0,u.Z)(i,this));const t=new WeakMap;this.api.on(f.ZP.Events.MANIFEST_PARSED,(e,i)=>{this.nativeEl.autoplay&&this.nativeEl.paused&&this.nativeEl.play().catch(t=>{console.warn("Autoplay failed:",t)}),r();let n=this.videoTracks.getTrackById("main");n||(n=this.addVideoTrack("main"),n.id="main",n.selected=!0);for(const r of i.levels.entries()){var a=(0,s.Z)(r,2);const e=a[0],i=a[1],o=n.addRendition(i.url[0],i.width,i.height,i.videoCodec,i.bitrate);t.set(i,"".concat(e)),o.id="".concat(e)}for(let t of i.audioTracks.entries()){var o=(0,s.Z)(t,2);let e=o[0],i=o[1];const n=i.default?"main":"alternative",a=this.addAudioTrack(n,i.name,i.lang);a.id="".concat(e),i.default&&(a.enabled=!0)}}),this.audioTracks.addEventListener("change",()=>{var t;const e=+(null==(t=[...this.audioTracks].find(t=>t.enabled))?void 0:t.id),i=this.api.audioTracks.map(t=>t.id);e!=this.api.audioTrack&&i.includes(e)&&(this.api.audioTrack=e)}),this.api.on(f.ZP.Events.LEVELS_UPDATED,(e,i)=>{var n;const s=this.videoTracks[null!==(n=this.videoTracks.selectedIndex)&&void 0!==n?n:0];if(!s)return;const a=i.levels.map(e=>t.get(e));for(const t of this.videoRenditions)t.id&&!a.includes(t.id)&&s.removeRendition(t)});let a=null;this.api.on(f.ZP.Events.ERROR,(t,e)=>{e.type===f.ZP.ErrorTypes.NETWORK_ERROR&&e.details===f.ZP.ErrorDetails.FRAG_LOAD_ERROR&&(a=e.frag.level)}),this.api.on(f.ZP.Events.LEVEL_SWITCHED,(t,e)=>{const i=e.level;null!==a&&i<a&&(console.warn("\u26a0\ufe0f hls.js downgraded quality from level ".concat(a," to ").concat(i," due to fragment load failure.")),this.videoRenditions.selectedIndex=i,a=null)});const o=t=>{const e=t.target.selectedIndex;e!=this.api.nextLevel&&(this.api.nextLevel=e)};null==(e=this.videoRenditions)||e.addEventListener("change",o);const r=()=>{for(const t of this.videoTracks)this.removeVideoTrack(t);for(const t of this.audioTracks)this.removeAudioTrack(t)};return void this.api.once(f.ZP.Events.DESTROYING,r)}await Promise.resolve(),this.nativeEl.canPlayType("application/vnd.apple.mpegurl")&&(this.nativeEl.src=this.src)}}},(0,c.Z)(e,"shadowRootOptions",(0,n.Z)({},t.shadowRootOptions)),(0,c.Z)(e,"getTemplateHTML",function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.src;const n=(0,o.Z)(e,m);return'\n        <script type="application/json" id="config">\n          '.concat(JSON.stringify(i.config||{}),"\n        <\/script>\n        ").concat(t.getTemplateHTML(n),"\n      ")}),e;function E(){var t,e;null==(t=(0,u.Z)(i,this))||t.remove(),null==(e=this.nativeEl)||e.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",(0,u.Z)(v,this)),this.api&&(this.api.detachMedia(),this.api.destroy(),this.api=null)}function g(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}})((0,v.lK)(p.zM));globalThis.customElements&&!globalThis.customElements.get("hls-video")&&globalThis.customElements.define("hls-video",E);var g=E,y=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),T={className:"class",htmlFor:"for"};function b(t){return t.toLowerCase()}function k(t){return"boolean"===typeof t?t?"":void 0:"function"===typeof t||"object"===typeof t&&null!==t?void 0:t}function w(t,e,i){var n,s;t[e]=i,null==i&&e in(null!==(n=null==(s=globalThis.HTMLElement)?void 0:s.prototype)&&void 0!==n?n:{})&&t.removeAttribute(e)}var L=function(t){let e=t.react,i=t.tagName,a=t.elementClass,o=t.events,r=t.displayName,l=t.defaultProps,c=t.toAttributeName,d=void 0===c?b:c,u=t.toAttributeValue,h=void 0===u?k:u;const p=Number.parseInt(e.version)>=19,v=e.forwardRef((t,r)=>{var c,u;const v=e.useRef(null),f=e.useRef(new Map),m={},E={},g={},b={};for(const e of Object.entries(t)){var L,Z,R=(0,s.Z)(e,2);const t=R[0],i=R[1];if(y.has(t)){g[t]=i;continue}const n=d(null!==(L=T[t])&&void 0!==L?L:t);if(a.prototype&&t in a.prototype&&!(t in(null!==(Z=null==(c=globalThis.HTMLElement)?void 0:c.prototype)&&void 0!==Z?Z:{}))&&!(null==(u=a.observedAttributes)?void 0:u.some(t=>t===n))){b[t]=i;continue}if(t.startsWith("on")){m[t]=i;continue}const o=h(i);if(n&&null!=o&&(E[n]=String(o),p||(g[n]=o)),n&&p){const t=k(i);g[n]=o!==t?o:i}}if("undefined"!==typeof window){for(const t in m){var P;
2const i=m[t],n=t.endsWith("Capture"),s=(null!==(P=null==o?void 0:o[t])&&void 0!==P?P:t.slice(2).toLowerCase()).slice(0,n?-7:void 0);e.useLayoutEffect(()=>{const t=null==v?void 0:v.current;if(t&&"function"===typeof i)return t.addEventListener(s,i,n),()=>{t.removeEventListener(s,i,n)}},[null==v?void 0:v.current,i])}e.useLayoutEffect(()=>{if(null===v.current)return;const t=new Map;for(const i in b)w(v.current,i,b[i]),f.current.delete(i),t.set(i,b[i]);for(const i of f.current){var e=(0,s.Z)(i,2);const t=e[0];e[1];w(v.current,t,void 0)}f.current=t})}if("undefined"===typeof window&&(null==a?void 0:a.getTemplateHTML)&&(null==a?void 0:a.shadowRootOptions)){const i=a.shadowRootOptions,n=i.mode,s=i.delegatesFocus,o=e.createElement("template",{shadowrootmode:n,shadowrootdelegatesfocus:s,dangerouslySetInnerHTML:{__html:a.getTemplateHTML(E,t)},key:"ce-la-react-ssr-template-shadow-root"});g.children=[o,g.children]}return e.createElement(i,(0,n.Z)((0,n.Z)((0,n.Z)({},l),g),{},{ref:e.useCallback(t=>{v.current=t,"function"===typeof r?r(t):null!==r&&(r.current=t)},[r])}),g.children)});return v.displayName=null!==r&&void 0!==r?r:a.name,v}({react:a,tagName:"hls-video",elementClass:g,toAttributeName:t=>"muted"===t?"":"defaultMuted"===t?"muted":b(t)})}}]);
3//# sourceMappingURL=reactPlayerHls.787f6d1c.chunk.js.map

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.