@vindral/web-sdk 4.7.1-1-g9d41bb8aa → 4.7.1-10-g16084e8a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { n as e, t } from "./BsfwXDui.js";
2
- import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as ee, k as d, m as te, p as ne, t as re, v as ie, w as ae, x as oe, y as se } from "./DKr8WNnY.js";
2
+ import { C as n, D as r, E as i, O as a, S as o, T as s, _ as c, b as l, g as u, h as ee, k as d, m as te, p as ne, t as re, v as ie, w as ae, x as oe, y as se } from "./BVBH0VM9.js";
3
3
  import { t as ce } from "./CuYn2z5X.js";
4
4
  import { i as f, n as p, r as m, t as h } from "./DSw1XhvD.js";
5
5
  import { c as le, n as ue, t as de } from "./D40eQS8l.js";
@@ -2505,7 +2505,7 @@ function ka() {
2505
2505
  videoRobustness: ge(e.getAttribute("drm-playready-video-robustness")),
2506
2506
  audioRobustness: ge(e.getAttribute("drm-playready-audio-robustness"))
2507
2507
  }
2508
- }, Oe = Fe(e.getAttribute("webcodecs-hardware-acceleration")), Ae = Pe(e.getAttribute("decoders")), x = b(e.getAttribute("offscreen-canvas-enabled")), S = b(e.getAttribute("webtransport-enabled")), je = be(e.getAttribute("reconnect-retries")), Me = je === void 0 ? void 0 : (e) => e.reconnectRetries < je, Ne = e.getAttribute("language") || void 0;
2508
+ }, Oe = Fe(e.getAttribute("webcodecs-hardware-acceleration")), Ae = Pe(e.getAttribute("decoders")), x = b(e.getAttribute("offscreen-canvas-enabled")), S = b(e.getAttribute("webtransport-enabled")), je = b(e.getAttribute("unstable-webtransport-enabled")), Me = be(e.getAttribute("reconnect-retries")), Ne = Me === void 0 ? void 0 : (e) => e.reconnectRetries < Me, Ie = e.getAttribute("language") || void 0;
2509
2509
  p(I, e, new re({
2510
2510
  url: h(Ni, e),
2511
2511
  channelId: h(Pi, e),
@@ -2537,24 +2537,25 @@ function ka() {
2537
2537
  textTrack: l,
2538
2538
  advanced: Te,
2539
2539
  logLevel: y,
2540
- language: Ne,
2540
+ language: Ie,
2541
2541
  drm: De,
2542
2542
  webtransportEnabled: S,
2543
+ unstableWebtransportEnabled: je,
2543
2544
  webcodecsHardwareAcceleration: Oe,
2544
2545
  decoders: Ae,
2545
2546
  offscreenCanvasEnabled: x,
2546
- reconnectHandler: Me
2547
+ reconnectHandler: Ne
2547
2548
  })), p(Mi, e, new yi(h(I, e))), h(L, e) || p(L, e, h(Mi, e)), m(H, e, Aa).call(e), p(Ai, e, (n = e.shadowRoot) == null ? void 0 : n.querySelector("#video")), h(Ai, e) && (h(I, e).attach(h(Ai, e)), h(qi, e).observe(h(Ai, e))), e.setAttribute(g.MEDIA, h(I, e).media);
2548
- let Ie = h(I, e);
2549
+ let Le = h(I, e);
2549
2550
  h(Zi, e).call(e, () => {
2550
- Ie.muted && m(H, e, U).call(e, g.MUTED, ""), Ie.abrEnabled ? m(H, e, U).call(e, g.ABR_ENABLED, "") : m(H, e, W).call(e, g.ABR_ENABLED), m(H, e, U).call(e, g.SIZE_BASED_RESOLUTION_CAP_ENABLED, Ie.sizeBasedResolutionCapEnabled ? "true" : "false"), m(H, e, U).call(e, g.VOLUME, Ie.volume.toString());
2551
+ Le.muted && m(H, e, U).call(e, g.MUTED, ""), Le.abrEnabled ? m(H, e, U).call(e, g.ABR_ENABLED, "") : m(H, e, W).call(e, g.ABR_ENABLED), m(H, e, U).call(e, g.SIZE_BASED_RESOLUTION_CAP_ENABLED, Le.sizeBasedResolutionCapEnabled ? "true" : "false"), m(H, e, U).call(e, g.VOLUME, Le.volume.toString());
2551
2552
  }), _(we) || m(H, e, U).call(e, g.POSTER_SRC, h(I, e).getThumbnailUrl());
2552
- let Le = b(e.getAttribute(g.AIRPLAY_ENABLED), !1), C = b(e.getAttribute(g.CAST_ENABLED), !0), Re = b(e.getAttribute(g.FULLSCREEN_ENABLED), !0), ze = b(e.getAttribute(g.PIP_ENABLED), !0), Be = b(e.getAttribute(g.VU_METER_ENABLED), !1), Ve = b(e.getAttribute(g.TIMESHIFT_ENABLED), !1);
2553
- Le && m(H, e, Ga).call(e, h(I, e)), C && m(H, e, Va).call(e, h(I, e)), Re && m(H, e, Ra).call(e, h(I, e)), ze && m(H, e, Ia).call(e, h(I, e)), i || h(I, e).play(), Be && m(H, e, Ka).call(e, h(I, e)), e.dispatchEvent(new CustomEvent("vindral-instance-ready", {
2553
+ let C = b(e.getAttribute(g.AIRPLAY_ENABLED), !1), Re = b(e.getAttribute(g.CAST_ENABLED), !0), ze = b(e.getAttribute(g.FULLSCREEN_ENABLED), !0), Be = b(e.getAttribute(g.PIP_ENABLED), !0), Ve = b(e.getAttribute(g.VU_METER_ENABLED), !1), He = b(e.getAttribute(g.TIMESHIFT_ENABLED), !1);
2554
+ C && m(H, e, Ga).call(e, h(I, e)), Re && m(H, e, Va).call(e, h(I, e)), ze && m(H, e, Ra).call(e, h(I, e)), Be && m(H, e, Ia).call(e, h(I, e)), i || h(I, e).play(), Ve && m(H, e, Ka).call(e, h(I, e)), e.dispatchEvent(new CustomEvent("vindral-instance-ready", {
2554
2555
  bubbles: !0,
2555
2556
  composed: !0,
2556
2557
  detail: h(I, e)
2557
- })), Ve && (m(H, e, Na).call(e), Re && m(H, e, za).call(e));
2558
+ })), He && (m(H, e, Na).call(e), ze && m(H, e, za).call(e));
2558
2559
  })();
2559
2560
  }
2560
2561
  function Aa() {
@@ -2853,6 +2854,7 @@ e(Oa, "observedAttributes", [
2853
2854
  "drm-playready-video-robustness",
2854
2855
  "drm-playready-audio-robustness",
2855
2856
  "webtransport-enabled",
2857
+ "unstable-webtransport-enabled",
2856
2858
  "webcodecs-hardware-acceleration",
2857
2859
  "decoders",
2858
2860
  "offscreen-canvas-enabled",
@@ -3070,12 +3072,12 @@ Eo.innerHTML = `
3070
3072
  <div class="menu"></div>
3071
3073
  </div>
3072
3074
  `;
3073
- var Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), ko = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), jo = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), Fo = /* @__PURE__ */ new WeakMap(), Io = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakSet(), Ro = class extends HTMLElement {
3075
+ var Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), ko = /* @__PURE__ */ new WeakMap(), Ao = /* @__PURE__ */ new WeakMap(), jo = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), No = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap(), Fo = /* @__PURE__ */ new WeakMap(), Io = /* @__PURE__ */ new WeakMap(), Lo = /* @__PURE__ */ new WeakMap(), Ro = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), zo = class extends HTMLElement {
3074
3076
  constructor() {
3075
- super(), S(this, K), f(this, Do, []), f(this, Oo, []), f(this, ko, void 0), f(this, Ao, void 0), f(this, jo, []), f(this, G, []), f(this, Mo, null), f(this, No, null), f(this, Po, null), f(this, Fo, null), f(this, Io, null), f(this, Lo, null), e(this, "handleEvent", (e) => {
3077
+ super(), S(this, G), f(this, Do, []), f(this, Oo, []), f(this, ko, void 0), f(this, Ao, void 0), f(this, jo, []), f(this, Mo, []), f(this, No, null), f(this, Po, null), f(this, Fo, null), f(this, Io, null), f(this, Lo, null), f(this, Ro, null), e(this, "handleEvent", (e) => {
3076
3078
  switch (e.type) {
3077
3079
  case "keydown":
3078
- m(K, this, qo).call(this, e);
3080
+ m(G, this, Jo).call(this, e);
3079
3081
  break;
3080
3082
  }
3081
3083
  }), this.attachShadow({ mode: "open" }).appendChild(Eo.content.cloneNode(!0));
@@ -3084,7 +3086,7 @@ var Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), ko =
3084
3086
  let e = this.getRootNode();
3085
3087
  if (e instanceof ShadowRoot) {
3086
3088
  var t, n, r;
3087
- p(Po, this, e.host.closest("vindral-controller")), (t = h(Po, this)) == null || t.connectListener(this), p(Mo, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#languages .menu")), p(No, this, (r = this.shadowRoot) == null ? void 0 : r.querySelector("#text-tracks .menu")), m(K, this, zo).call(this), m(K, this, Bo).call(this), p(Fo, this, e.host), this.addEventListener("keydown", this);
3089
+ p(Fo, this, e.host.closest("vindral-controller")), (t = h(Fo, this)) == null || t.connectListener(this), p(No, this, (n = this.shadowRoot) == null ? void 0 : n.querySelector("#languages .menu")), p(Po, this, (r = this.shadowRoot) == null ? void 0 : r.querySelector("#text-tracks .menu")), m(G, this, Bo).call(this), m(G, this, Vo).call(this), p(Io, this, e.host), this.addEventListener("keydown", this);
3088
3090
  }
3089
3091
  }
3090
3092
  disconnectedCallback() {
@@ -3094,16 +3096,16 @@ var Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), ko =
3094
3096
  t !== n && (e === g.LANGUAGES && n && (this.languages = JSON.parse(n)), e === g.TEXT_TRACKS && n && (this.textTracks = JSON.parse(n)), e === g.LANGUAGE && (this.language = n), e === g.TEXT_TRACK && (this.textTrack = n));
3095
3097
  }
3096
3098
  set languages(e) {
3097
- p(Do, this, e), m(K, this, Ho).call(this), m(K, this, Wo).call(this);
3099
+ p(Do, this, e), m(G, this, Uo).call(this), m(G, this, Go).call(this);
3098
3100
  }
3099
3101
  set textTracks(e) {
3100
- p(Oo, this, e), m(K, this, Vo).call(this), m(K, this, Go).call(this);
3102
+ p(Oo, this, e), m(G, this, Ho).call(this), m(G, this, Ko).call(this);
3101
3103
  }
3102
3104
  set language(e) {
3103
- p(ko, this, e), m(K, this, Wo).call(this);
3105
+ p(ko, this, e), m(G, this, Go).call(this);
3104
3106
  }
3105
3107
  set textTrack(e) {
3106
- p(Ao, this, e), m(K, this, Go).call(this);
3108
+ p(Ao, this, e), m(G, this, Ko).call(this);
3107
3109
  }
3108
3110
  get keysUsed() {
3109
3111
  return [
@@ -3120,10 +3122,10 @@ var Do = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), ko =
3120
3122
  ];
3121
3123
  }
3122
3124
  focus() {
3123
- h(Io, this) ? h(Io, this).focus() : h(Lo, this) && h(Lo, this).focus();
3125
+ h(Lo, this) ? h(Lo, this).focus() : h(Ro, this) && h(Ro, this).focus();
3124
3126
  }
3125
3127
  };
3126
- function zo() {
3128
+ function Bo() {
3127
3129
  new IntersectionObserver((e) => {
3128
3130
  e.forEach((e) => {
3129
3131
  if (e.intersectionRatio !== 1) if (e.intersectionRatio > 0) {
@@ -3132,55 +3134,55 @@ function zo() {
3132
3134
  } else this.style.height = "auto";
3133
3135
  });
3134
3136
  }, {
3135
- root: h(Po, this),
3137
+ root: h(Fo, this),
3136
3138
  threshold: 0
3137
3139
  }).observe(this);
3138
3140
  }
3139
- function Bo() {
3140
- h(Mo, this) && (m(K, this, Ho).call(this), m(K, this, Wo).call(this)), h(No, this) && (m(K, this, Vo).call(this), m(K, this, Go).call(this));
3141
- }
3142
3141
  function Vo() {
3143
- h(No, this).innerHTML = "", p(G, this, []);
3144
- let e = m(K, this, Uo).call(this, "Off", "textTrack", void 0);
3145
- h(No, this).appendChild(e), h(G, this).push({
3142
+ h(No, this) && (m(G, this, Uo).call(this), m(G, this, Go).call(this)), h(Po, this) && (m(G, this, Ho).call(this), m(G, this, Ko).call(this));
3143
+ }
3144
+ function Ho() {
3145
+ h(Po, this).innerHTML = "", p(Mo, this, []);
3146
+ let e = m(G, this, Wo).call(this, "Off", "textTrack", void 0);
3147
+ h(Po, this).appendChild(e), h(Mo, this).push({
3146
3148
  element: e,
3147
3149
  value: void 0
3148
3150
  }), h(Oo, this).forEach((e) => {
3149
- let t = m(K, this, Uo).call(this, e, "textTrack", e);
3150
- h(No, this).appendChild(t), h(G, this).push({
3151
+ let t = m(G, this, Wo).call(this, e, "textTrack", e);
3152
+ h(Po, this).appendChild(t), h(Mo, this).push({
3151
3153
  element: t,
3152
3154
  value: e
3153
3155
  });
3154
- }), m(K, this, Go).call(this);
3156
+ }), m(G, this, Ko).call(this);
3155
3157
  }
3156
- function Ho() {
3157
- h(Mo, this).innerHTML = "", p(jo, this, []), h(Do, this).forEach((e) => {
3158
- let t = m(K, this, Uo).call(this, e, "language", e);
3159
- h(Mo, this).appendChild(t), h(jo, this).push({
3158
+ function Uo() {
3159
+ h(No, this).innerHTML = "", p(jo, this, []), h(Do, this).forEach((e) => {
3160
+ let t = m(G, this, Wo).call(this, e, "language", e);
3161
+ h(No, this).appendChild(t), h(jo, this).push({
3160
3162
  element: t,
3161
3163
  value: e
3162
3164
  });
3163
- }), m(K, this, Wo).call(this);
3165
+ }), m(G, this, Go).call(this);
3164
3166
  }
3165
- function Uo(e, t, n) {
3167
+ function Wo(e, t, n) {
3166
3168
  let r = document.createElement("div");
3167
- return r.setAttribute("role", "menuitem"), r.textContent = e, r.addEventListener("click", () => m(K, this, Ko).call(this, n, t)), r;
3168
- }
3169
- function Wo() {
3170
- h(Io, this) && (h(Io, this).removeAttribute("aria-selected"), h(Io, this).tabIndex = -1);
3171
- let e = h(jo, this).find((e) => e.value === h(ko, this));
3172
- e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Io, this, e.element));
3169
+ return r.setAttribute("role", "menuitem"), r.textContent = e, r.addEventListener("click", () => m(G, this, qo).call(this, n, t)), r;
3173
3170
  }
3174
3171
  function Go() {
3175
3172
  h(Lo, this) && (h(Lo, this).removeAttribute("aria-selected"), h(Lo, this).tabIndex = -1);
3176
- let e = h(G, this).find((e) => e.value === h(Ao, this));
3177
- if (e) e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Lo, this, e.element);
3173
+ let e = h(jo, this).find((e) => e.value === h(ko, this));
3174
+ e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Lo, this, e.element));
3175
+ }
3176
+ function Ko() {
3177
+ h(Ro, this) && (h(Ro, this).removeAttribute("aria-selected"), h(Ro, this).tabIndex = -1);
3178
+ let e = h(Mo, this).find((e) => e.value === h(Ao, this));
3179
+ if (e) e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Ro, this, e.element);
3178
3180
  else {
3179
- let e = h(G, this).find((e) => e.value === void 0);
3180
- e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Lo, this, e.element));
3181
+ let e = h(Mo, this).find((e) => e.value === void 0);
3182
+ e && (e.element.setAttribute("aria-selected", "true"), e.element.tabIndex = 0, p(Ro, this, e.element));
3181
3183
  }
3182
3184
  }
3183
- function Ko(e, t) {
3185
+ function qo(e, t) {
3184
3186
  this.dispatchEvent(new Event("change", {
3185
3187
  bubbles: !0,
3186
3188
  composed: !0
@@ -3192,36 +3194,36 @@ function Ko(e, t) {
3192
3194
  detail: e
3193
3195
  }));
3194
3196
  }
3195
- function qo(e) {
3197
+ function Jo(e) {
3196
3198
  let { key: t, ctrlKey: n, altKey: r, metaKey: i } = e;
3197
3199
  if (!(n || r || i) && this.keysUsed.includes(t)) if (e.preventDefault(), e.stopPropagation(), t === "Tab" || t === "Escape") {
3198
3200
  var a;
3199
- (a = h(Fo, this)) == null || a.hide();
3201
+ (a = h(Io, this)) == null || a.hide();
3200
3202
  } else if (t === "Enter" || t === " ") {
3201
3203
  var o;
3202
- (o = m(K, this, Xo).call(this)) == null || (o = o.element) == null || o.click();
3203
- } else m(K, this, Jo).call(this, e);
3204
+ (o = m(G, this, Zo).call(this)) == null || (o = o.element) == null || o.click();
3205
+ } else m(G, this, Yo).call(this, e);
3204
3206
  }
3205
- function Jo(e) {
3207
+ function Yo(e) {
3206
3208
  var t;
3207
- let { key: n } = e, r = [...h(jo, this), ...h(G, this)], i = (t = m(K, this, Xo).call(this)) == null ? r[0] : t;
3209
+ let { key: n } = e, r = [...h(jo, this), ...h(Mo, this)], i = (t = m(G, this, Zo).call(this)) == null ? r[0] : t;
3208
3210
  if (!i) return;
3209
3211
  let a = r.indexOf(i), o = Math.max(0, a);
3210
- n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : n === "ArrowLeft" ? o = m(K, this, Yo).call(this, a, "left") : n === "ArrowRight" ? o = m(K, this, Yo).call(this, a, "right") : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
3212
+ n === "ArrowDown" ? o++ : n === "ArrowUp" ? o-- : n === "ArrowLeft" ? o = m(G, this, Xo).call(this, a, "left") : n === "ArrowRight" ? o = m(G, this, Xo).call(this, a, "right") : e.key === "Home" ? o = 0 : e.key === "End" && (o = r.length - 1), o < 0 && (o = r.length - 1), o > r.length - 1 && (o = 0);
3211
3213
  let s = r[o];
3212
- s && (m(K, this, Zo).call(this, s.value), s.element.focus());
3214
+ s && (m(G, this, Qo).call(this, s.value), s.element.focus());
3213
3215
  }
3214
- function Yo(e, t) {
3215
- let n = h(jo, this).length, r = h(G, this).length;
3216
+ function Xo(e, t) {
3217
+ let n = h(jo, this).length, r = h(Mo, this).length;
3216
3218
  return t === "left" ? e < n ? n + r - 1 : e - n - 1 : e >= n ? 0 : e + n;
3217
3219
  }
3218
- function Xo() {
3219
- return [...h(jo, this), ...h(G, this)].find((e) => e.element.tabIndex === 0);
3220
+ function Zo() {
3221
+ return [...h(jo, this), ...h(Mo, this)].find((e) => e.element.tabIndex === 0);
3220
3222
  }
3221
- function Zo(e) {
3222
- for (let t of [...h(jo, this), ...h(G, this)]) t.element.tabIndex = t.value === e ? 0 : -1;
3223
+ function Qo(e) {
3224
+ for (let t of [...h(jo, this), ...h(Mo, this)]) t.element.tabIndex = t.value === e ? 0 : -1;
3223
3225
  }
3224
- e(Ro, "observedAttributes", [
3226
+ e(zo, "observedAttributes", [
3225
3227
  g.LANGUAGES,
3226
3228
  g.TEXT_TRACKS,
3227
3229
  g.LANGUAGE,
@@ -3229,12 +3231,12 @@ e(Ro, "observedAttributes", [
3229
3231
  ]);
3230
3232
  //#endregion
3231
3233
  //#region ../../libs/player-next/src/components/LiveButton.ts
3232
- var Qo, $o = document.createElement("template");
3233
- $o.innerHTML = "\n <style>\n :host {\n display: var(--live-button-display, flex);\n color: var(--vindral-fg-strong, #eee);\n border: 1px solid transparent !important;\n font-size: 12px;\n font-weight: bold;\n cursor: pointer;\n transition: all 0.2s;\n min-width: 50px !important;\n text-align: center;\n align-items: center;\n justify-content: center;\n }\n\n .live-text {\n display: inline-block;\n vertical-align: middle;\n margin-left: 4px;\n }\n\n slot[name=\"icon\"] svg {\n width: 5px;\n height: 5px;\n flex-shrink: 0;\n }\n\n .live-dot {\n fill: var(--vindral-fg-subtle, #b4b4b4);\n transition: fill 0.2s;\n transform-origin: center;\n }\n\n /* Red pulsing dot when live */\n :host(:not([timeshift-position])) .live-dot {\n fill: #ff0000;\n animation: pulse-dot 2s ease-in-out infinite alternate;\n }\n\n @keyframes pulse-dot {\n 0% {\n opacity: 0.8;\n transform: scale(0.9);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n :host([disabled]) {\n cursor: default;\n opacity: 1;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n </style>\n\n <slot name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"5\" height=\"5\" viewBox=\"0 0 5 5\" fill=\"currentColor\">\n <circle cx=\"2.5\" cy=\"2.5\" r=\"2.5\" class=\"live-dot\"/>\n </svg>\n</slot>\n <span class=\"live-text\">LIVE</span>\n";
3234
- var es = class extends v {
3234
+ var $o, es = document.createElement("template");
3235
+ es.innerHTML = "\n <style>\n :host {\n display: var(--live-button-display, flex);\n color: var(--vindral-fg-strong, #eee);\n border: 1px solid transparent !important;\n font-size: 12px;\n font-weight: bold;\n cursor: pointer;\n transition: all 0.2s;\n min-width: 50px !important;\n text-align: center;\n align-items: center;\n justify-content: center;\n }\n\n .live-text {\n display: inline-block;\n vertical-align: middle;\n margin-left: 4px;\n }\n\n slot[name=\"icon\"] svg {\n width: 5px;\n height: 5px;\n flex-shrink: 0;\n }\n\n .live-dot {\n fill: var(--vindral-fg-subtle, #b4b4b4);\n transition: fill 0.2s;\n transform-origin: center;\n }\n\n /* Red pulsing dot when live */\n :host(:not([timeshift-position])) .live-dot {\n fill: #ff0000;\n animation: pulse-dot 2s ease-in-out infinite alternate;\n }\n\n @keyframes pulse-dot {\n 0% {\n opacity: 0.8;\n transform: scale(0.9);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n :host([disabled]) {\n cursor: default;\n opacity: 1;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n </style>\n\n <slot name=\"icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"5\" height=\"5\" viewBox=\"0 0 5 5\" fill=\"currentColor\">\n <circle cx=\"2.5\" cy=\"2.5\" r=\"2.5\" class=\"live-dot\"/>\n </svg>\n</slot>\n <span class=\"live-text\">LIVE</span>\n";
3236
+ var ts = class extends v {
3235
3237
  constructor() {
3236
3238
  var e;
3237
- super(), (e = this.shadowRoot) == null || e.appendChild($o.content.cloneNode(!0));
3239
+ super(), (e = this.shadowRoot) == null || e.appendChild(es.content.cloneNode(!0));
3238
3240
  }
3239
3241
  connectedCallback() {
3240
3242
  super.connectedCallback(), this.updateState();
@@ -3265,15 +3267,15 @@ var es = class extends v {
3265
3267
  }));
3266
3268
  }
3267
3269
  };
3268
- Qo = es, e(es, "observedAttributes", [
3269
- ...y(Qo, "observedAttributes", Qo),
3270
+ $o = ts, e(ts, "observedAttributes", [
3271
+ ...y($o, "observedAttributes", $o),
3270
3272
  g.TIMESHIFT_POSITION,
3271
3273
  g.DURATION
3272
3274
  ]);
3273
3275
  //#endregion
3274
3276
  //#region ../../libs/player-next/src/components/MuteButton.ts
3275
- var ts, ns = document.createElement("template");
3276
- ns.innerHTML = `
3277
+ var ns, rs = document.createElement("template");
3278
+ rs.innerHTML = `
3277
3279
  <style>
3278
3280
  :host {
3279
3281
  display: var(--mute-button-display);
@@ -3301,10 +3303,10 @@ ns.innerHTML = `
3301
3303
  </slot>
3302
3304
  </slot>
3303
3305
  `;
3304
- var rs = class extends v {
3306
+ var is = class extends v {
3305
3307
  constructor() {
3306
3308
  var e;
3307
- super(), (e = this.shadowRoot) == null || e.appendChild(ns.content.cloneNode(!0));
3309
+ super(), (e = this.shadowRoot) == null || e.appendChild(rs.content.cloneNode(!0));
3308
3310
  }
3309
3311
  connectedCallback() {
3310
3312
  super.connectedCallback(), this.setAttribute("aria-label", this.muted ? "Unmute" : "Mute");
@@ -3329,11 +3331,11 @@ var rs = class extends v {
3329
3331
  }));
3330
3332
  }
3331
3333
  };
3332
- ts = rs, e(rs, "observedAttributes", [...y(ts, "observedAttributes", ts), g.MUTED]);
3334
+ ns = is, e(is, "observedAttributes", [...y(ns, "observedAttributes", ns), g.MUTED]);
3333
3335
  //#endregion
3334
3336
  //#region ../../libs/player-next/src/components/PictureInPictureButton.ts
3335
- var is, as = document.createElement("template");
3336
- as.innerHTML = `
3337
+ var as, os = document.createElement("template");
3338
+ os.innerHTML = `
3337
3339
  <style>
3338
3340
  :host {
3339
3341
  display: var(--pip-button-display);
@@ -3347,10 +3349,10 @@ as.innerHTML = `
3347
3349
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19 4a3 3 0 0 1 3 3v4a1 1 0 0 1 -2 0v-4a1 1 0 0 0 -1 -1h-14a1 1 0 0 0 -1 1v10a1 1 0 0 0 1 1h6a1 1 0 0 1 0 2h-6a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3z" /><path d="M20 13a2 2 0 0 1 2 2v3a2 2 0 0 1 -2 2h-5a2 2 0 0 1 -2 -2v-3a2 2 0 0 1 2 -2z" /></svg>
3348
3350
  </slot>
3349
3351
  `;
3350
- var os = class extends v {
3352
+ var ss = class extends v {
3351
3353
  constructor() {
3352
3354
  var e;
3353
- super(), (e = this.shadowRoot) == null || e.appendChild(as.content.cloneNode(!0));
3355
+ super(), (e = this.shadowRoot) == null || e.appendChild(os.content.cloneNode(!0));
3354
3356
  }
3355
3357
  connectedCallback() {
3356
3358
  super.connectedCallback(), this.setAttribute("aria-label", this.isPictureInPictureActive ? "Exit picture-in-picture" : "Picture-in-picture");
@@ -3375,15 +3377,15 @@ var os = class extends v {
3375
3377
  }));
3376
3378
  }
3377
3379
  };
3378
- is = os, e(os, "observedAttributes", [
3379
- ...y(is, "observedAttributes", is),
3380
+ as = ss, e(ss, "observedAttributes", [
3381
+ ...y(as, "observedAttributes", as),
3380
3382
  g.IS_PIP,
3381
3383
  g.PIP_AVAILABLE
3382
3384
  ]);
3383
3385
  //#endregion
3384
3386
  //#region ../../libs/player-next/src/components/PlayButton.ts
3385
- var ss, cs = document.createElement("template");
3386
- cs.innerHTML = `
3387
+ var cs, ls = document.createElement("template");
3388
+ ls.innerHTML = `
3387
3389
  <style>
3388
3390
  :host {
3389
3391
  display: var(--play-button-display);
@@ -3407,10 +3409,10 @@ cs.innerHTML = `
3407
3409
  </slot>
3408
3410
  </slot>
3409
3411
  `;
3410
- var ls = class extends v {
3412
+ var us = class extends v {
3411
3413
  constructor() {
3412
3414
  var e;
3413
- super(), (e = this.shadowRoot) == null || e.appendChild(cs.content.cloneNode(!0));
3415
+ super(), (e = this.shadowRoot) == null || e.appendChild(ls.content.cloneNode(!0));
3414
3416
  }
3415
3417
  connectedCallback() {
3416
3418
  super.connectedCallback(), this.setAttribute("aria-label", this.paused ? "Play" : "Pause");
@@ -3435,64 +3437,64 @@ var ls = class extends v {
3435
3437
  }));
3436
3438
  }
3437
3439
  };
3438
- ss = ls, e(ls, "observedAttributes", [...y(ss, "observedAttributes", ss), g.PAUSED]);
3440
+ cs = us, e(us, "observedAttributes", [...y(cs, "observedAttributes", cs), g.PAUSED]);
3439
3441
  //#endregion
3440
3442
  //#region ../../libs/player-next/src/PlayerAttributes.ts
3441
- var q = {
3443
+ var K = {
3442
3444
  TITLE: "title",
3443
3445
  OFFLINE: "offline",
3444
3446
  ADVANCED_RENDITION_MENU_ENABLED: "advanced-rendition-menu-enabled",
3445
3447
  REFRESH_POSTER_ENABLED: "refresh-poster-enabled",
3446
3448
  STREAM_POLL_ENABLED: "stream-poll-enabled"
3447
- }, us = Object.values(q), ds = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), ps = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakSet(), ys = class extends pe {
3449
+ }, ds = Object.values(K), fs = /* @__PURE__ */ new WeakMap(), ps = /* @__PURE__ */ new WeakMap(), ms = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), _s = /* @__PURE__ */ new WeakMap(), vs = /* @__PURE__ */ new WeakMap(), ys = /* @__PURE__ */ new WeakSet(), bs = class extends pe {
3448
3450
  constructor(e) {
3449
- super(), S(this, vs), f(this, ds, void 0), f(this, fs, void 0), f(this, ps, !1), f(this, ms, !1), f(this, hs, !0), f(this, gs, null), f(this, _s, null), p(fs, this, e), p(ds, this, new de({
3451
+ super(), S(this, ys), f(this, fs, void 0), f(this, ps, void 0), f(this, ms, !1), f(this, hs, !1), f(this, gs, !0), f(this, _s, null), f(this, vs, null), p(ps, this, e), p(fs, this, new de({
3450
3452
  publicEndpoint: e.url,
3451
3453
  tokenFactory: () => e.authenticationToken
3452
3454
  }));
3453
3455
  }
3454
3456
  start(e = 5e3) {
3455
- h(_s, this) && clearInterval(h(_s, this)), p(ps, this, !1), p(ms, this, !1), m(vs, this, Cs).call(this), m(vs, this, bs).call(this), p(_s, this, window.setInterval(() => {
3456
- !h(ms, this) && !h(fs, this).infiniteReconnect && !h(gs, this) && h(hs, this) && p(gs, this, window.setTimeout(() => m(vs, this, xs).call(this), 300 * 1e3)), !h(ms, this) && h(hs, this) && m(vs, this, bs).call(this);
3457
+ h(vs, this) && clearInterval(h(vs, this)), p(ms, this, !1), p(hs, this, !1), m(ys, this, ws).call(this), m(ys, this, xs).call(this), p(vs, this, window.setInterval(() => {
3458
+ !h(hs, this) && !h(ps, this).infiniteReconnect && !h(_s, this) && h(gs, this) && p(_s, this, window.setTimeout(() => m(ys, this, Ss).call(this), 300 * 1e3)), !h(hs, this) && h(gs, this) && m(ys, this, xs).call(this);
3457
3459
  }, e));
3458
3460
  }
3459
3461
  stop() {
3460
- m(vs, this, Ss).call(this), h(_s, this) && (window.clearInterval(h(_s, this)), p(_s, this, null));
3462
+ m(ys, this, Cs).call(this), h(vs, this) && (window.clearInterval(h(vs, this)), p(vs, this, null));
3461
3463
  }
3462
3464
  };
3463
- function bs() {
3465
+ function xs() {
3464
3466
  var e = this;
3465
3467
  return t(function* () {
3466
- if (h(ps, e)) return;
3467
- p(ps, e, !0);
3468
+ if (h(ms, e)) return;
3469
+ p(ms, e, !0);
3468
3470
  let t = "Stream is offline", n = "Please stand by";
3469
3471
  try {
3470
- let t = yield h(ds, e).getChannel(h(fs, e).channelId);
3472
+ let t = yield h(fs, e).getChannel(h(ps, e).channelId);
3471
3473
  if (t.isLive) {
3472
- p(ms, e, !0), m(vs, e, Cs).call(e), e.emit("live", t), p(ps, e, !1);
3474
+ p(hs, e, !0), m(ys, e, ws).call(e), e.emit("live", t), p(ms, e, !1);
3473
3475
  return;
3474
3476
  }
3475
3477
  } catch (e) {
3476
3478
  ue(e) && (e.status === 403 || e.status === 401) && (t = "Forbidden", n = "You do not have permission to view this stream");
3477
3479
  }
3478
- h(hs, e) && e.emit("error", {
3480
+ h(gs, e) && e.emit("error", {
3479
3481
  title: t,
3480
3482
  message: n
3481
- }), p(ps, e, !1);
3483
+ }), p(ms, e, !1);
3482
3484
  })();
3483
3485
  }
3484
- function xs() {
3485
- this.stop(), p(hs, this, !1), this.emit("timeout");
3486
- }
3487
3486
  function Ss() {
3488
- h(gs, this) && (window.clearTimeout(h(gs, this)), p(gs, this, null));
3487
+ this.stop(), p(gs, this, !1), this.emit("timeout");
3489
3488
  }
3490
3489
  function Cs() {
3491
- m(vs, this, Ss).call(this), p(hs, this, !0);
3490
+ h(_s, this) && (window.clearTimeout(h(_s, this)), p(_s, this, null));
3491
+ }
3492
+ function ws() {
3493
+ m(ys, this, Cs).call(this), p(gs, this, !0);
3492
3494
  }
3493
3495
  //#endregion
3494
3496
  //#region ../../libs/player-next/src/utils/browser.ts
3495
- var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune\//i, Ts = navigator.userAgent.toLowerCase(), Es = ws.test(Ts), Ds = (e) => Oa.observedAttributes.includes(e), Os = `
3497
+ var Ts = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune\//i, Es = navigator.userAgent.toLowerCase(), Ds = Ts.test(Es), Os = (e) => Oa.observedAttributes.includes(e), ks = `
3496
3498
  <style>
3497
3499
  :host {
3498
3500
  container-type: inline-size;
@@ -3502,7 +3504,7 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3502
3504
  display: flex;
3503
3505
  justify-content: center;
3504
3506
 
3505
- --vindral-volume-range-display: ${Es ? "none" : "flex"};
3507
+ --vindral-volume-range-display: ${Ds ? "none" : "flex"};
3506
3508
  --vindral-airplay-button-display: none;
3507
3509
  --vindral-play-overlay-display: none;
3508
3510
  --vindral-grid-item-offline-display: none;
@@ -3538,7 +3540,7 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3538
3540
  // needs to be higher than bottom bar/UI
3539
3541
  }
3540
3542
 
3541
- :host([${q.OFFLINE}]) {
3543
+ :host([${K.OFFLINE}]) {
3542
3544
  aspect-ratio: 16 / 9;
3543
3545
  vindral-controller {
3544
3546
  --vindral-ui-display: none;
@@ -3583,10 +3585,10 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3583
3585
  --vindral-subtitle-offset: -48px;
3584
3586
  }
3585
3587
  </style>
3586
- `, ks = (e) => {
3588
+ `, As = (e) => {
3587
3589
  let t = e ? "vindral-advanced-rendition-menu" : "vindral-rendition-levels-menu";
3588
3590
  return `
3589
- ${Os}
3591
+ ${ks}
3590
3592
 
3591
3593
  <vindral-controller>
3592
3594
  <vindral-control-bar slot="top-bar">
@@ -3624,8 +3626,8 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3624
3626
  </vindral-center-overlay>
3625
3627
  </vindral-controller>
3626
3628
  `;
3627
- }, As = `
3628
- ${Os}
3629
+ }, js = `
3630
+ ${ks}
3629
3631
 
3630
3632
  <style>
3631
3633
  #control-bar {
@@ -3649,14 +3651,14 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3649
3651
  <vindral-play-overlay id="play-overlay" hidden></vindral-play-overlay>
3650
3652
  </vindral-center-overlay>
3651
3653
  </vindral-controller>
3652
- `, js = document.createElement("template"), Ms = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Fs = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), zs = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), Bs = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), Hs = /* @__PURE__ */ new WeakMap(), Us = class extends HTMLElement {
3654
+ `, Ms = document.createElement("template"), q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Fs = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), Ls = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), zs = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakSet(), Bs = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ new WeakMap(), Hs = /* @__PURE__ */ new WeakMap(), Us = class extends HTMLElement {
3653
3655
  constructor() {
3654
- super(), S(this, Y), f(this, Ms, void 0), f(this, J, void 0), f(this, Ns, void 0), f(this, Ps, void 0), f(this, Fs, void 0), f(this, Is, void 0), f(this, Ls, /* @__PURE__ */ new Set()), f(this, Rs, () => {
3656
+ super(), S(this, Y), f(this, q, void 0), f(this, J, void 0), f(this, Ns, void 0), f(this, Ps, void 0), f(this, Fs, void 0), f(this, Is, void 0), f(this, Ls, /* @__PURE__ */ new Set()), f(this, Rs, () => {
3655
3657
  Array.from(this.attributes).forEach((e) => {
3656
3658
  h(zs, this).call(this, e.name, e.value);
3657
3659
  });
3658
3660
  }), f(this, zs, (e, t) => {
3659
- Ds(e) && (_(t) ? h(J, this).setAttribute(e, t) : h(J, this).removeAttribute(e));
3661
+ Os(e) && (_(t) ? h(J, this).setAttribute(e, t) : h(J, this).removeAttribute(e));
3660
3662
  }), f(this, Bs, () => {
3661
3663
  Array.from(this.children).forEach((e) => {
3662
3664
  h(Ls, this).add(e);
@@ -3664,7 +3666,7 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3664
3666
  }), f(this, Vs, () => {
3665
3667
  let e = h(J, this).instance;
3666
3668
  e && (e.on("is live", (e) => {
3667
- e ? (this.removeAttribute(q.OFFLINE), m(Y, this, Xs).call(this)) : (this.setAttribute(q.OFFLINE, ""), m(Y, this, Ys).call(this, "Stream is offline", "Please stand by"));
3669
+ e ? (this.removeAttribute(K.OFFLINE), m(Y, this, Xs).call(this)) : (this.setAttribute(K.OFFLINE, ""), m(Y, this, Ys).call(this, "Stream is offline", "Please stand by"));
3668
3670
  }), e.on("channels", (e) => {
3669
3671
  let t = h(J, this).getAttribute("channel-id"), n = e.find((e) => e.channelId === t);
3670
3672
  n && m(Y, this, qs).call(this, n);
@@ -3676,24 +3678,24 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3676
3678
  m(Y, this, Ys).call(this, "Stream is offline", "Please stand by");
3677
3679
  return;
3678
3680
  }
3679
- e.isFatal() && (e.code() === "access_forbidden" ? m(Y, this, Ys).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? m(Y, this, Ys).call(this, "Stream is offline", "Please stand by") : m(Y, this, Ys).call(this, "An error occurred", e.message), h(Ps, this).removeAttribute("hidden"), this.setAttribute(q.OFFLINE, ""), h(J, this).dispatchEvent(new CustomEvent(x.EXIT_FULLSCREEN)), h(J, this).dispatchEvent(new CustomEvent(x.EXIT_PIP)));
3681
+ e.isFatal() && (e.code() === "access_forbidden" ? m(Y, this, Ys).call(this, "Forbidden", "You do not have permission to view this stream") : e.code() === "connection_failed_will_not_attempt_again" ? m(Y, this, Ys).call(this, "Stream is offline", "Please stand by") : m(Y, this, Ys).call(this, "An error occurred", e.message), h(Ps, this).removeAttribute("hidden"), this.setAttribute(K.OFFLINE, ""), h(J, this).dispatchEvent(new CustomEvent(x.EXIT_FULLSCREEN)), h(J, this).dispatchEvent(new CustomEvent(x.EXIT_PIP)));
3680
3682
  }));
3681
3683
  }), f(this, Hs, () => {
3682
3684
  h(J, this).connect(), h(Ps, this).setAttribute("hidden", ""), m(Y, this, Xs).call(this), h(J, this).focus();
3683
- }), p(Ms, this, this.attachShadow({ mode: "open" })), m(Y, this, Gs).call(this), p(J, this, h(Ms, this).querySelector("vindral-controller")), p(Ns, this, h(Ms, this).querySelector("#vindral-message")), p(Ps, this, h(Ms, this).querySelector("#play-overlay")), p(Fs, this, h(Ms, this).querySelector("#center-overlay"));
3685
+ }), p(q, this, this.attachShadow({ mode: "open" })), m(Y, this, Gs).call(this), p(J, this, h(q, this).querySelector("vindral-controller")), p(Ns, this, h(q, this).querySelector("#vindral-message")), p(Ps, this, h(q, this).querySelector("#play-overlay")), p(Fs, this, h(q, this).querySelector("#center-overlay"));
3684
3686
  }
3685
3687
  connectedCallback() {
3686
- this.setAttribute(q.OFFLINE, ""), h(J, this).addEventListener("vindral-instance-ready", h(Vs, this)), m(Y, this, Ks).call(this);
3688
+ this.setAttribute(K.OFFLINE, ""), h(J, this).addEventListener("vindral-instance-ready", h(Vs, this)), m(Y, this, Ks).call(this);
3687
3689
  }
3688
3690
  disconnectedCallback() {
3689
3691
  var e;
3690
3692
  h(J, this).removeEventListener("vindral-instance-ready", h(Vs, this)), h(Ps, this).removeEventListener("click", h(Hs, this)), (e = h(Is, this)) == null || e.stop();
3691
3693
  }
3692
3694
  attributeChangedCallback(e, t, n) {
3693
- if (t !== n) if (e === g.MEDIA || e === q.ADVANCED_RENDITION_MENU_ENABLED) m(Y, this, Gs).call(this);
3694
- else if (e === q.REFRESH_POSTER_ENABLED) {
3695
- let e = h(Ms, this).querySelector("vindral-poster-overlay");
3696
- e && (e.disabled = b(this.getAttribute(q.REFRESH_POSTER_ENABLED), !1) === !1);
3695
+ if (t !== n) if (e === g.MEDIA || e === K.ADVANCED_RENDITION_MENU_ENABLED) m(Y, this, Gs).call(this);
3696
+ else if (e === K.REFRESH_POSTER_ENABLED) {
3697
+ let e = h(q, this).querySelector("vindral-poster-overlay");
3698
+ e && (e.disabled = b(this.getAttribute(K.REFRESH_POSTER_ENABLED), !1) === !1);
3697
3699
  } else h(zs, this).call(this, e, n);
3698
3700
  }
3699
3701
  get instance() {
@@ -3710,26 +3712,26 @@ var ws = /\/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Si
3710
3712
  }
3711
3713
  };
3712
3714
  function Ws() {
3713
- let e = xe(this.getAttribute(g.MEDIA)), t = b(this.getAttribute(q.ADVANCED_RENDITION_MENU_ENABLED), !1);
3714
- return e === "audio" ? As : ks(t);
3715
+ let e = xe(this.getAttribute(g.MEDIA)), t = b(this.getAttribute(K.ADVANCED_RENDITION_MENU_ENABLED), !1);
3716
+ return e === "audio" ? js : As(t);
3715
3717
  }
3716
3718
  function Gs() {
3717
- let e = h(Ms, this).hasChildNodes(), t = e ? h(J, this) : void 0, n = e ? h(Ps, this) : void 0;
3718
- this.isConnected && t && t.removeEventListener("vindral-instance-ready", h(Vs, this)), this.isConnected && n && h(Is, this) && n.removeEventListener("click", h(Hs, this)), js.innerHTML = m(Y, this, Ws).call(this);
3719
- let r = js.content.cloneNode(!0);
3719
+ let e = h(q, this).hasChildNodes(), t = e ? h(J, this) : void 0, n = e ? h(Ps, this) : void 0;
3720
+ this.isConnected && t && t.removeEventListener("vindral-instance-ready", h(Vs, this)), this.isConnected && n && h(Is, this) && n.removeEventListener("click", h(Hs, this)), Ms.innerHTML = m(Y, this, Ws).call(this);
3721
+ let r = Ms.content.cloneNode(!0);
3720
3722
  p(J, this, r.querySelector("vindral-controller")), p(Ns, this, r.querySelector("#vindral-message")), p(Ps, this, r.querySelector("#play-overlay")), p(Fs, this, r.querySelector("#center-overlay")), h(Bs, this).call(this), h(Ls, this).forEach((e) => {
3721
3723
  h(J, this).appendChild(e);
3722
- }), h(Rs, this).call(this), h(Ms, this).innerHTML = "", h(Ms, this).appendChild(r), this.isConnected && (h(J, this).addEventListener("vindral-instance-ready", h(Vs, this)), h(Is, this) && h(Ps, this).addEventListener("click", h(Hs, this)));
3724
+ }), h(Rs, this).call(this), h(q, this).innerHTML = "", h(q, this).appendChild(r), this.isConnected && (h(J, this).addEventListener("vindral-instance-ready", h(Vs, this)), h(Is, this) && h(Ps, this).addEventListener("click", h(Hs, this)));
3723
3725
  }
3724
3726
  function Ks() {
3725
3727
  var e;
3726
- if (b(this.getAttribute(q.STREAM_POLL_ENABLED), !0) === !1) return;
3728
+ if (b(this.getAttribute(K.STREAM_POLL_ENABLED), !0) === !1) return;
3727
3729
  let t = this.getAttribute("url") || "https://lb.cdn.vindral.com", n = this.getAttribute("channel-id"), r = (e = this.getAttribute("authentication-token")) == null ? void 0 : e, i = this.hasAttribute("infinite-reconnect");
3728
3730
  if (!n) {
3729
- this.setAttribute(q.OFFLINE, ""), m(Y, this, Ys).call(this, "Invalid options", "Please enter a channel id to start the stream");
3731
+ this.setAttribute(K.OFFLINE, ""), m(Y, this, Ys).call(this, "Invalid options", "Please enter a channel id to start the stream");
3730
3732
  return;
3731
3733
  }
3732
- p(Is, this, new ys({
3734
+ p(Is, this, new bs({
3733
3735
  url: t,
3734
3736
  channelId: n,
3735
3737
  authenticationToken: r,
@@ -3739,7 +3741,7 @@ function Ks() {
3739
3741
  }), h(Is, this).on("timeout", () => {
3740
3742
  m(Y, this, Xs).call(this), h(Ps, this).removeAttribute("hidden");
3741
3743
  }), h(Is, this).on("error", (e) => {
3742
- this.setAttribute(q.OFFLINE, ""), m(Y, this, Ys).call(this, e.title, e.message);
3744
+ this.setAttribute(K.OFFLINE, ""), m(Y, this, Ys).call(this, e.title, e.message);
3743
3745
  }), h(Ps, this).addEventListener("click", h(Hs, this)), this.hasAttribute("paused") && h(Is, this).start();
3744
3746
  }
3745
3747
  function qs(e) {
@@ -3762,7 +3764,7 @@ function Ys(e, t) {
3762
3764
  function Xs() {
3763
3765
  h(Ns, this).setAttribute("hidden", ""), h(Fs, this).removeAttribute("backdrop");
3764
3766
  }
3765
- e(Us, "observedAttributes", [...Oa.observedAttributes, ...us]);
3767
+ e(Us, "observedAttributes", [...Oa.observedAttributes, ...ds]);
3766
3768
  //#endregion
3767
3769
  //#region ../../libs/player-next/src/components/PosterOverlay.ts
3768
3770
  var Zs = document.createElement("template");
@@ -4775,7 +4777,7 @@ tu = cu, e(cu, "observedAttributes", [
4775
4777
  //#endregion
4776
4778
  //#region ../../libs/player-next/src/registerComponents.ts
4777
4779
  function lu() {
4778
- customElements.define("vindral-controller", Oa), customElements.define("vindral-control-bar", Vn), customElements.define("vindral-advanced-rendition-menu", Ye), customElements.define("vindral-advanced-rendition-menu-list", ct), customElements.define("vindral-play-button", ls), customElements.define("vindral-mute-button", rs), customElements.define("vindral-buffering-overlay", Ft), customElements.define("vindral-scroll-overlay", Vc), customElements.define("vindral-play-overlay", eu), customElements.define("vindral-user-input-play-overlay", Gl), customElements.define("vindral-fullscreen-button", yo), customElements.define("vindral-rendition-levels-menu", pc), customElements.define("vindral-rendition-levels-menu-list", Sc), customElements.define("vindral-channel-grid-button", Pn), customElements.define("vindral-channel-grid", on), customElements.define("vindral-channel-grid-item", Yt), customElements.define("vindral-pip-button", os), customElements.define("vindral-airplay-button", Ot), customElements.define("vindral-cast-button", zt), customElements.define("vindral-cast-overlay", Gt), customElements.define("vindral-buffering-icon", Mt), customElements.define("vindral-language-menu", wo), customElements.define("vindral-language-menu-list", Ro), customElements.define("vindral-center-overlay", ql), customElements.define("vindral-message", Zl), customElements.define("vindral-volume-range", cu), customElements.define("vindral-poster-overlay", ac), customElements.define("vindral-player", Us), customElements.define("vindral-seek-bar", xl), customElements.define("vindral-live-button", es);
4780
+ customElements.define("vindral-controller", Oa), customElements.define("vindral-control-bar", Vn), customElements.define("vindral-advanced-rendition-menu", Ye), customElements.define("vindral-advanced-rendition-menu-list", ct), customElements.define("vindral-play-button", us), customElements.define("vindral-mute-button", is), customElements.define("vindral-buffering-overlay", Ft), customElements.define("vindral-scroll-overlay", Vc), customElements.define("vindral-play-overlay", eu), customElements.define("vindral-user-input-play-overlay", Gl), customElements.define("vindral-fullscreen-button", yo), customElements.define("vindral-rendition-levels-menu", pc), customElements.define("vindral-rendition-levels-menu-list", Sc), customElements.define("vindral-channel-grid-button", Pn), customElements.define("vindral-channel-grid", on), customElements.define("vindral-channel-grid-item", Yt), customElements.define("vindral-pip-button", ss), customElements.define("vindral-airplay-button", Ot), customElements.define("vindral-cast-button", zt), customElements.define("vindral-cast-overlay", Gt), customElements.define("vindral-buffering-icon", Mt), customElements.define("vindral-language-menu", wo), customElements.define("vindral-language-menu-list", zo), customElements.define("vindral-center-overlay", ql), customElements.define("vindral-message", Zl), customElements.define("vindral-volume-range", cu), customElements.define("vindral-poster-overlay", ac), customElements.define("vindral-player", Us), customElements.define("vindral-seek-bar", xl), customElements.define("vindral-live-button", ts);
4779
4781
  }
4780
4782
  //#endregion
4781
4783
  export { lu as t };