@beyondwords/player 0.0.0-beta18 → 0.0.0-beta19

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.
package/dist/es.js CHANGED
@@ -513,7 +513,7 @@ class tt {
513
513
  this.$$set && !g0(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
514
514
  }
515
515
  }
516
- const N0 = "@beyondwords/player", Xl = "0.0.0-beta18", Qi = (t, e) => {
516
+ const N0 = "@beyondwords/player", Xl = "0.0.0-beta19", Qi = (t, e) => {
517
517
  t = [t].flat().join(`
518
518
  `);
519
519
  let i = `${N0}:
@@ -17357,7 +17357,7 @@ class hS extends tt {
17357
17357
  }
17358
17358
  const An = (t, e, i) => Li(t, e, i, 1), ln = (t, e, i) => rt(t, e, e === "style" ? vS(i) : i), gS = /;(?!([^()]*\([^()]*\))*[^()]*\))/, vS = (t) => t.split(gS).map((e) => e + " !important").join(";");
17359
17359
  function mS(t) {
17360
- let e, i, r;
17360
+ let e, i, r, a;
17361
17361
  return {
17362
17362
  c() {
17363
17363
  e = N("a"), i = N("img"), es(i.src, r = /*src*/
@@ -17376,12 +17376,11 @@ function mS(t) {
17376
17376
  "height",
17377
17377
  /*size*/
17378
17378
  t[3]
17379
- ), ln(e, "class", "large-image svelte-1ngswrw"), ln(
17380
- e,
17381
- "href",
17379
+ ), ln(e, "class", "large-image svelte-1ngswrw"), ln(e, "href", a = /*href*/
17380
+ t[1] ? (
17382
17381
  /*href*/
17383
17382
  t[1]
17384
- ), ln(e, "target", "_blank"), An(
17383
+ ) : null), ln(e, "target", "_blank"), An(
17385
17384
  e,
17386
17385
  "width",
17387
17386
  /*size*/
@@ -17393,54 +17392,53 @@ function mS(t) {
17393
17392
  t[3]
17394
17393
  ), ln(e, "aria-label", vi("visitAdvert"));
17395
17394
  },
17396
- m(a, l) {
17397
- ie(a, e, l), I(e, i);
17395
+ m(l, g) {
17396
+ ie(l, e, g), I(e, i);
17398
17397
  },
17399
- p(a, [l]) {
17400
- l & /*src*/
17398
+ p(l, [g]) {
17399
+ g & /*src*/
17401
17400
  1 && !es(i.src, r = /*src*/
17402
- a[0]) && ln(i, "src", r), l & /*alt*/
17401
+ l[0]) && ln(i, "src", r), g & /*alt*/
17403
17402
  4 && ln(
17404
17403
  i,
17405
17404
  "alt",
17406
17405
  /*alt*/
17407
- a[2]
17408
- ), l & /*size*/
17406
+ l[2]
17407
+ ), g & /*size*/
17409
17408
  8 && An(
17410
17409
  i,
17411
17410
  "width",
17412
17411
  /*size*/
17413
- a[3]
17414
- ), l & /*size*/
17412
+ l[3]
17413
+ ), g & /*size*/
17415
17414
  8 && An(
17416
17415
  i,
17417
17416
  "height",
17418
17417
  /*size*/
17419
- a[3]
17420
- ), l & /*href*/
17421
- 2 && ln(
17422
- e,
17423
- "href",
17418
+ l[3]
17419
+ ), g & /*href*/
17420
+ 2 && a !== (a = /*href*/
17421
+ l[1] ? (
17424
17422
  /*href*/
17425
- a[1]
17426
- ), l & /*size*/
17423
+ l[1]
17424
+ ) : null) && ln(e, "href", a), g & /*size*/
17427
17425
  8 && An(
17428
17426
  e,
17429
17427
  "width",
17430
17428
  /*size*/
17431
- a[3]
17432
- ), l & /*size*/
17429
+ l[3]
17430
+ ), g & /*size*/
17433
17431
  8 && An(
17434
17432
  e,
17435
17433
  "height",
17436
17434
  /*size*/
17437
- a[3]
17435
+ l[3]
17438
17436
  );
17439
17437
  },
17440
17438
  i: we,
17441
17439
  o: we,
17442
- d(a) {
17443
- a && ee(e);
17440
+ d(l) {
17441
+ l && ee(e);
17444
17442
  }
17445
17443
  };
17446
17444
  }
@@ -21837,11 +21835,11 @@ function lk(t, e, i) {
21837
21835
  isMobile: U,
21838
21836
  isAdvert: C
21839
21837
  })), t.$$.dirty[0] & /*isStopped, contentItem*/
21840
- 671088640 && i(43, K = k ? V.imageUrl : null), t.$$.dirty[0] & /*isAdvert, activeAdvert, contentItem*/
21841
- 570441728 | t.$$.dirty[2] & /*persistentAdvert*/
21842
- 2 && i(42, Z = C && nt.imageUrl || (Ot == null ? void 0 : Ot.imageUrl) || V.imageUrl), t.$$.dirty[0] & /*isAdvert, activeAdvert*/
21843
- 33570816 | t.$$.dirty[2] & /*persistentAdvert*/
21844
- 2 && i(41, B = C && nt.clickThroughUrl || (Ot == null ? void 0 : Ot.clickThroughUrl)), t.$$.dirty[0] & /*isSmall, fixedPosition*/
21838
+ 671088640 && i(43, K = k ? V.imageUrl : null), t.$$.dirty[0] & /*isAdvert, activeAdvert, isStopped, contentItem*/
21839
+ 704659456 | t.$$.dirty[2] & /*persistentAdvert*/
21840
+ 2 && i(42, Z = C && nt.imageUrl || !k && (Ot == null ? void 0 : Ot.imageUrl) || V.imageUrl), t.$$.dirty[0] & /*isAdvert, activeAdvert, isStopped*/
21841
+ 167788544 | t.$$.dirty[2] & /*persistentAdvert*/
21842
+ 2 && i(41, B = C && nt.clickThroughUrl || !k && (Ot == null ? void 0 : Ot.clickThroughUrl)), t.$$.dirty[0] & /*isSmall, fixedPosition*/
21845
21843
  4194560 | t.$$.dirty[1] & /*fixedWidth*/
21846
21844
  1073741824 && i(28, He = r && ot && Tt === "auto"), t.$$.dirty[0] & /*isSmall*/
21847
21845
  4194304 | t.$$.dirty[1] & /*fixedWidth*/
@@ -22308,7 +22306,7 @@ function Hc(t) {
22308
22306
  `), ue = N("input"), fe = xe(), he = N("div"), le = Ie(`sourceId:
22309
22307
  `), ye = N("input"), $ = xe(), L = N("div"), ae = Ie(`sourceUrl:
22310
22308
  `), W = N("input"), qe = xe(), Pe = N("div"), Le = Ie(`showUserInterface:
22311
- `), De = N("select"), K = N("option"), K.textContent = `${!0}`, Z = N("option"), Z.textContent = `${!1}`, B = xe(), He = N("div"), Be = Ie(`mediaSession:
22309
+ `), De = N("select"), K = N("option"), K.textContent = `${!1}`, Z = N("option"), Z.textContent = `${!0}`, B = xe(), He = N("div"), Be = Ie(`mediaSession:
22312
22310
  `), Ae = N("select"), Ne = N("option"), Ne.textContent = "auto", te = N("option"), te.textContent = "override", ge = N("option"), ge.textContent = "none", ct = xe(), ke = N("div"), Ce = Ie(`contentIndex:
22313
22311
  `), Ke = N("select");
22314
22312
  for (let j = 0; j < zt.length; j += 1)
@@ -22318,7 +22316,7 @@ function Hc(t) {
22318
22316
  for (let j = 0; j < Ht.length; j += 1)
22319
22317
  Ht[j].c();
22320
22318
  Ut = xe(), ot = N("div"), Tt = Ie(`persistentAdImage:
22321
- `), be = N("select"), ft = N("option"), ft.textContent = `${!0}`, Jt = N("option"), Jt.textContent = `${!1}`, jt = xe(), Dt = N("div"), yt = Ie(`persistentIndex:
22319
+ `), be = N("select"), ft = N("option"), ft.textContent = `${!1}`, Jt = N("option"), Jt.textContent = `${!0}`, jt = xe(), Dt = N("div"), yt = Ie(`persistentIndex:
22322
22320
  `), nt = N("select"), Ot = N("option"), Ot.textContent = "-1 (none)";
22323
22321
  for (let j = 0; j < Xt.length; j += 1)
22324
22322
  Xt[j].c();
@@ -22327,11 +22325,11 @@ function Hc(t) {
22327
22325
  `), qt = N("input"), $t = xe(), oi = N("div"), wt = Ie(`playbackRate:
22328
22326
  `), st = N("input"), ei = xe(), Re = N("div"), li = Ie(`widgetTarget:
22329
22327
  `), Gt = N("input"), Xe = xe(), _i = N("div"), Bt = Ie(`logoIconEnabled:
22330
- `), ve = N("select"), ui = N("option"), ui.textContent = `${!0}`, ci = N("option"), ci.textContent = `${!1}`, mi = xe(), di = N("div"), ki = Ie(`advertConsent:
22328
+ `), ve = N("select"), ui = N("option"), ui.textContent = `${!1}`, ci = N("option"), ci.textContent = `${!0}`, mi = xe(), di = N("div"), ki = Ie(`advertConsent:
22331
22329
  `), Fe = N("select"), Y = N("option"), Y.textContent = "personalized", J = N("option"), J.textContent = "non-personalized", Me = N("option"), Me.textContent = "under-the-age-of-consent", Or = xe(), Ii = N("div"), Br = Ie(`analyticsConsent:
22332
22330
  `), ti = N("select"), or = N("option"), or.textContent = "allowed", zi = N("option"), zi.textContent = "without-local-storage", Hi = N("option"), Hi.textContent = "none", Ri = xe(), $i = N("div"), pr = Ie(`analyticsCustomUrl:
22333
22331
  `), Ei = N("input"), Ai = xe(), er = N("div"), _r = Ie(`analyticsTag:
22334
- `), Di = N("input"), Q(r, "class", "svelte-g76q0j"), Q(k, "tabindex", -1), Q(k, "type", "text"), Q(k, "class", "svelte-g76q0j"), Q(_, "class", "control svelte-g76q0j"), Q(V, "tabindex", -1), Q(V, "type", "text"), Q(V, "class", "svelte-g76q0j"), Q(F, "class", "control svelte-g76q0j"), Q(ue, "tabindex", -1), Q(ue, "type", "text"), Q(ue, "class", "svelte-g76q0j"), Q(H, "class", "control svelte-g76q0j"), Q(ye, "tabindex", -1), Q(ye, "type", "text"), Q(ye, "class", "svelte-g76q0j"), Q(he, "class", "control svelte-g76q0j"), Q(W, "tabindex", -1), Q(W, "type", "text"), Q(W, "class", "svelte-g76q0j"), Q(L, "class", "control svelte-g76q0j"), K.__value = !0, K.value = K.__value, Z.__value = !1, Z.value = Z.__value, Q(De, "tabindex", -1), Q(De, "class", "svelte-g76q0j"), /*showUserInterface*/
22332
+ `), Di = N("input"), Q(r, "class", "svelte-g76q0j"), Q(k, "tabindex", -1), Q(k, "type", "text"), Q(k, "class", "svelte-g76q0j"), Q(_, "class", "control svelte-g76q0j"), Q(V, "tabindex", -1), Q(V, "type", "text"), Q(V, "class", "svelte-g76q0j"), Q(F, "class", "control svelte-g76q0j"), Q(ue, "tabindex", -1), Q(ue, "type", "text"), Q(ue, "class", "svelte-g76q0j"), Q(H, "class", "control svelte-g76q0j"), Q(ye, "tabindex", -1), Q(ye, "type", "text"), Q(ye, "class", "svelte-g76q0j"), Q(he, "class", "control svelte-g76q0j"), Q(W, "tabindex", -1), Q(W, "type", "text"), Q(W, "class", "svelte-g76q0j"), Q(L, "class", "control svelte-g76q0j"), K.__value = !1, K.value = K.__value, Z.__value = !0, Z.value = Z.__value, Q(De, "tabindex", -1), Q(De, "class", "svelte-g76q0j"), /*showUserInterface*/
22335
22333
  t[5] === void 0 && Nt(() => (
22336
22334
  /*select0_change_handler_1*/
22337
22335
  t[67].call(De)
@@ -22347,7 +22345,7 @@ function Hc(t) {
22347
22345
  t[14] === void 0 && Nt(() => (
22348
22346
  /*select3_change_handler_1*/
22349
22347
  t[70].call(_t)
22350
- )), Q(St, "class", "control svelte-g76q0j"), ft.__value = !0, ft.value = ft.__value, Jt.__value = !1, Jt.value = Jt.__value, Q(be, "tabindex", -1), Q(be, "class", "svelte-g76q0j"), /*persistentAdImage*/
22348
+ )), Q(St, "class", "control svelte-g76q0j"), ft.__value = !1, ft.value = ft.__value, Jt.__value = !0, Jt.value = Jt.__value, Q(be, "tabindex", -1), Q(be, "class", "svelte-g76q0j"), /*persistentAdImage*/
22351
22349
  t[16] === void 0 && Nt(() => (
22352
22350
  /*select4_change_handler_1*/
22353
22351
  t[71].call(be)
@@ -22355,7 +22353,7 @@ function Hc(t) {
22355
22353
  t[17] === void 0 && Nt(() => (
22356
22354
  /*select5_change_handler_1*/
22357
22355
  t[72].call(nt)
22358
- )), Q(Dt, "class", "control svelte-g76q0j"), Q(It, "tabindex", -1), Q(It, "type", "text"), Q(It, "class", "svelte-g76q0j"), Q(ni, "class", "control svelte-g76q0j"), Q(qt, "tabindex", -1), Q(qt, "type", "text"), Q(qt, "class", "svelte-g76q0j"), Q(Vt, "class", "control svelte-g76q0j"), Q(st, "tabindex", -1), Q(st, "type", "text"), Q(st, "class", "svelte-g76q0j"), Q(oi, "class", "control svelte-g76q0j"), Q(Gt, "tabindex", -1), Q(Gt, "type", "text"), Q(Gt, "class", "svelte-g76q0j"), Q(Re, "class", "control svelte-g76q0j"), ui.__value = !0, ui.value = ui.__value, ci.__value = !1, ci.value = ci.__value, Q(ve, "tabindex", -1), Q(ve, "class", "svelte-g76q0j"), /*logoIconEnabled*/
22356
+ )), Q(Dt, "class", "control svelte-g76q0j"), Q(It, "tabindex", -1), Q(It, "type", "text"), Q(It, "class", "svelte-g76q0j"), Q(ni, "class", "control svelte-g76q0j"), Q(qt, "tabindex", -1), Q(qt, "type", "text"), Q(qt, "class", "svelte-g76q0j"), Q(Vt, "class", "control svelte-g76q0j"), Q(st, "tabindex", -1), Q(st, "type", "text"), Q(st, "class", "svelte-g76q0j"), Q(oi, "class", "control svelte-g76q0j"), Q(Gt, "tabindex", -1), Q(Gt, "type", "text"), Q(Gt, "class", "svelte-g76q0j"), Q(Re, "class", "control svelte-g76q0j"), ui.__value = !1, ui.value = ui.__value, ci.__value = !0, ci.value = ci.__value, Q(ve, "tabindex", -1), Q(ve, "class", "svelte-g76q0j"), /*logoIconEnabled*/
22359
22357
  t[30] === void 0 && Nt(() => (
22360
22358
  /*select6_change_handler_1*/
22361
22359
  t[77].call(ve)
@@ -23998,27 +23996,27 @@ function Dk(t, e, i) {
23998
23996
  "content" in Ce && i(4, W = Ce.content), "contentIndex" in Ce && i(5, qe = Ce.contentIndex), "activeAdvert" in Ce && i(6, Pe = Ce.activeAdvert), "persistentAdvert" in Ce && i(7, Le = Ce.persistentAdvert), "duration" in Ce && i(8, De = Ce.duration), "playbackState" in Ce && i(9, K = Ce.playbackState), "skipButtonStyle" in Ce && i(10, Z = Ce.skipButtonStyle), "backgroundColor" in Ce && i(11, B = Ce.backgroundColor), "iconColor" in Ce && i(12, He = Ce.iconColor), "onEvent" in Ce && i(13, Be = Ce.onEvent);
23999
23997
  }, t.$$.update = () => {
24000
23998
  t.$$.dirty[0] & /*playbackState*/
24001
- 512 && i(35, r = K === "stopped"), t.$$.dirty[0] & /*activeAdvert*/
23999
+ 512 && i(33, r = K === "stopped"), t.$$.dirty[0] & /*activeAdvert*/
24002
24000
  64 | t.$$.dirty[1] & /*isStopped*/
24003
- 16 && i(33, a = Pe && !r), t.$$.dirty[0] & /*content*/
24004
- 16 && i(34, l = W.length > 1), t.$$.dirty[0] & /*content, contentIndex*/
24001
+ 4 && i(34, a = Pe && !r), t.$$.dirty[0] & /*content*/
24002
+ 16 && i(35, l = W.length > 1), t.$$.dirty[0] & /*content, contentIndex*/
24005
24003
  48 && i(27, g = W[qe]), t.$$.dirty[0] & /*skipButtonStyle*/
24006
24004
  1024 | t.$$.dirty[1] & /*isPlaylist*/
24007
- 8 && i(19, p = Z === "auto" ? l ? "tracks" : "segments" : Z), t.$$.dirty[0] & /*skipStyle*/
24005
+ 16 && i(19, p = Z === "auto" ? l ? "tracks" : "segments" : Z), t.$$.dirty[0] & /*skipStyle*/
24008
24006
  524288 && i(21, _ = parseFloat(p.split("-")[1] || 10)), t.$$.dirty[0] & /*skipStyle, backwardsSeconds*/
24009
24007
  2621440 && i(18, T = parseFloat(p.split("-")[2] || _)), t.$$.dirty[0] & /*skipStyle*/
24010
24008
  524288 | t.$$.dirty[1] & /*isAdvert*/
24011
- 4 && i(20, k = !a && p !== "tracks"), t.$$.dirty[0] & /*skipStyle*/
24009
+ 8 && i(20, k = !a && p !== "tracks"), t.$$.dirty[0] & /*skipStyle*/
24012
24010
  524288 | t.$$.dirty[1] & /*isAdvert*/
24013
- 4 && i(17, C = !a && p === "tracks"), t.$$.dirty[1] & /*isAdvert*/
24014
- 4 && i(22, F = !a), t.$$.dirty[0] & /*activeAdvert, backgroundColor*/
24011
+ 8 && i(17, C = !a && p === "tracks"), t.$$.dirty[1] & /*isAdvert*/
24012
+ 8 && i(22, F = !a), t.$$.dirty[0] & /*activeAdvert, backgroundColor*/
24015
24013
  2112 | t.$$.dirty[1] & /*isAdvert*/
24016
- 4 && i(2, U = a && (Pe == null ? void 0 : Pe.backgroundColor) || B), t.$$.dirty[0] & /*activeAdvert, iconColor*/
24014
+ 8 && i(2, U = a && (Pe == null ? void 0 : Pe.backgroundColor) || B), t.$$.dirty[0] & /*activeAdvert, iconColor*/
24017
24015
  4160 | t.$$.dirty[1] & /*isAdvert*/
24018
- 4 && i(1, V = a && (Pe == null ? void 0 : Pe.iconColor) || He), t.$$.dirty[0] & /*background, foreground, fallbackSvgs*/
24016
+ 8 && i(1, V = a && (Pe == null ? void 0 : Pe.iconColor) || He), t.$$.dirty[0] & /*background, foreground, fallbackSvgs*/
24019
24017
  7 && i(16, ge = L.map((Ce, Ke) => C0().then(() => te[Ke]))), t.$$.dirty[0] & /*activeAdvert, persistentAdvert, contentItem*/
24020
- 134217920 | t.$$.dirty[1] & /*isAdvert*/
24021
- 4 && i(32, z = a && Pe.imageUrl || (Le == null ? void 0 : Le.imageUrl) || g.imageUrl), t.$$.dirty[0] & /*failedUrls*/
24018
+ 134217920 | t.$$.dirty[1] & /*isAdvert, isStopped*/
24019
+ 12 && i(32, z = a && Pe.imageUrl || !r && (Le == null ? void 0 : Le.imageUrl) || g.imageUrl), t.$$.dirty[0] & /*failedUrls*/
24022
24020
  32768 | t.$$.dirty[1] & /*imageUrl_*/
24023
24021
  2 && i(28, H = Ne.has(z) ? null : z), t.$$.dirty[0] & /*imageUrl*/
24024
24022
  268435456 && i(31, oe = H ? L.map((Ce) => kk(H, Ce, Ce)) : []), t.$$.dirty[0] & /*imageUrl*/
@@ -24128,9 +24126,9 @@ function Dk(t, e, i) {
24128
24126
  ue,
24129
24127
  oe,
24130
24128
  z,
24129
+ r,
24131
24130
  a,
24132
24131
  l,
24133
- r,
24134
24132
  ke
24135
24133
  ];
24136
24134
  }