1import{L as h,x as p,e as u,n as d,d as c}from"./main-DdEGjCiE.js";import{a as f}from"./light-dom-styles-BIHJ4wFY.js";const o=new Map,v=n=>{if(o.has(n))return o.get(n);const e=new Promise((a,l)=>{var i;const t=document.createElement("script");t.id=`loaded-script-${o.size}`,t.addEventListener("load",a),t.addEventListener("error",l),t.async=!0,t.src=n,document.currentScript?(i=document.currentScript.parentNode)==null||i.insertBefore(t,document.currentScript):(document.head||document.getElementsByTagName("head")[0]).appendChild(t)});return o.set(n,e),e},g=`/* ------------------------------------ *\\ 2#MULTIMEDIA 3\\* ------------------------------------ */ 4/*------------------------------------*\\ 5 #RESET 6\\*------------------------------------*/ 7/** 8 * Border-Box http:/paulirish.com/2012/box-sizing-border-box-ftw/ 9 */ 10*, 11::slotted(*), 12*:before, 13*:after { 14 box-sizing: border-box; 15} 16 17:host *, 18:host *::before, 19:host *::after { 20 box-sizing: inherit; 21} 22 23[hidden] { 24 display: none !important; 25} 26 27:host { 28 --multimedia-limelight-active-bg: var(--leaf-base-color-opacity-neutral-25); 29} 30 31.leaf-c-multimedia-limelight { 32 display: block; 33 position: relative; 34 width: 100%; 35} 36.leaf-c-multimedia-limelight > * { 37 height: 100% !important; 38 left: 0; 39 position: absolute !important; 40 top: 0; 41 width: 100% !important; 42} 43.leaf-c-multimedia-limelight:active { 44 background-color: var(--multimedia-limelight-active-bg); 45} 46.leaf-c-multimedia-limelight:active .vjs-has-started .vjs-text-track-display { 47 background-color: var(--multimedia-limelight-active-bg); 48} 49.leaf-c-multimedia-limelight:active .limelight-player .vjs-limelight-big-play { 50 background-color: var(--multimedia-limelight-active-bg); 51} 52.leaf-c-multimedia-limelight .vjs-control-bar { 53 background-color: var(--leaf-color-bg-brand-strong) !important; 54} 55 56.leaf-c-multimedia-limelight--video::before { 57 --aspect-ratio: calc(9 / 16 * 100%); 58 content: ""; 59 display: block; 60 padding-top: var(--aspect-ratio); 61} 62 63.leaf-c-multimedia-limelight--audio { 64 height: 34px !important; 65} 66.leaf-c-multimedia-limelight--audio .vjs-limelight-big-play:before { 67 display: none; 68} 69 70.limelight-player .vjs-limelight-viewport { 71 overflow: visible; 72} 73.limelight-player .vjs-limelight-big-play { 74 opacity: unset; 75 text-shadow: none !important; 76 font-size: var(--leaf-font-size-10) !important; 77 border: var(--leaf-border-width-focus) solid var(--leaf-color-border-transparent); 78 border-radius: var(--leaf-border-radius-default); 79 overflow: hidden; 80} 81.limelight-player .vjs-limelight-big-play:before { 82 background-color: var(--leaf-color-bg-brand-strong); 83 border: 10px solid var(--leaf-color-border-knockout); 84 border-radius: var(--leaf-border-radius-round); 85 box-shadow: var(--leaf-shadow-default); 86 color: var(--leaf-color-content-knockout); 87} 88.limelight-player .vjs-limelight-big-play:hover, .limelight-player .vjs-limelight-big-play:active { 89 border-color: var(--leaf-color-border-brand); 90} 91.limelight-player .vjs-limelight-big-play:focus-visible { 92 border: var(--leaf-border-width-focus) solid var(--leaf-color-border-brand); 93 outline: var(--leaf-border-width-focus) solid var(--leaf-color-border-active-outline); 94 outline-offset: var(--leaf-border-width-focus); 95 overflow: hidden; 96} 97 98.limelight-audio .video-js .vjs-control-bar { 99 display: flex !important; 100} 101.limelight-audio .vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar { 102 opacity: 1 !important; 103} 104.limelight-audio .vjs-limelight-big-play::before { 105 content: "" !important; 106}`;var b=Object.defineProperty,s=(n,e,a,l)=>{for(var i=void 0,t=n.length-1,m;t>=0;t--)(m=n[t])&&(i=m(e,a,i)||i);return i&&b(e,a,i),i};const y=(n,e,a)=>{const l=document.getElementById(n),i=l?.querySelector("video, audio");switch(e){case"onPlayerLoad":{const t=l?.getElementsByClassName("video-js")[0];t?.setAttribute("tabindex","0"),c("leaf:load-player",{},t);break}case"onMediaLoad":{i&&(i.setAttribute("aria-label",a.title),c("leaf:load-media",{},i));break}case"onMediaComplete":{i&&c("leaf:finish-media",{},i);break}}};class r extends h{constructor(){super(),this.contentType="media",this.variant="video",this.playerFormId="cace1bc41a3c4b6fa3d4cc16e02333e2",this._playerId="",this._isLoaded=!1,f("tcg-multimedia-styles",g)}get playerId(){return this._playerId}connectedCallback(){if(super.connectedCallback(),!this._playerId){const e=Math.floor(Math.random()*9e5)+1e5;this._playerId=`limelight_player_${e}`}this.addEventListeners()}async updated(e){super.updated(e);const a=this.renderRoot.querySelector(`#${this.playerId}`);a&&(a.innerHTML=""),this.variant==="audio"?this.classList.add("limelight-audio"):this.classList.remove("limelight-audio"),new IntersectionObserver(async i=>{i[0].isIntersecting===!0&&!this._isLoaded&&(this._isLoaded=!0,await this.embedVideo())},{threshold:[0]}).observe(this.renderRoot)}addEventListeners(){document.addEventListener("leaf:hide",e=>{if(e.target instanceof HTMLElement&&e.target.contains(this)){e.stopPropagation();const a=this.querySelector("video, audio");a?.pause()}})}async embedVideo(){v("//video.limelight.com/player/limelightjs-player.js").then(()=>{window.limelightPlayerCallback||(window.limelightPlayerCallback=y),LimelightPlayerUtil.embed({playerId:this.playerId,[`${this.contentType}Id`]:this.contentId,playerFormId:this.playerFormId})})}render(){const e={"leaf-c-multimedia-limelight":!0,"leaf-c-multimedia-limelight--audio":this.variant==="audio","leaf-c-multimedia-limelight--video":this.variant==="video"};return p`<div class=${u(e)}> 107 <div id="${this.playerId}"></div> 108 </div>`}createRenderRoot(){return this}}s([d()],r.prototype,"contentType");s([d()],r.prototype,"contentId");s([d()],r.prototype,"variant");s([d({type:String})],r.prototype,"playerFormId");customElements.define("leaf-multimedia-limelight",r);export{r as LeafMultimediaLimelight}; 109//# sourceMappingURL=multimedia-limelight-165psFEc.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.