@byomakase/omakase-react-components 1.4.1 → 1.4.2

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/index.es.js CHANGED
@@ -13544,23 +13544,26 @@ class e0 {
13544
13544
  (async () => {
13545
13545
  var n;
13546
13546
  try {
13547
- const o = (n = t.subflows) == null ? void 0 : n.filter(
13548
- (a) => a.format === "urn:x-nmos:format:data" && a.container === "text/vtt"
13547
+ const o = /* @__PURE__ */ new Map(), a = (n = t.subflows) == null ? void 0 : n.filter(
13548
+ (u) => u.format === "urn:x-nmos:format:data" && u.container === "text/vtt"
13549
13549
  );
13550
- o != null && o.length && await Promise.all(
13551
- o.map(async (a) => {
13552
- const u = t.flowsSegments.get(a.id), s = u.map(
13553
- (l) => {
13554
- var d;
13555
- return (d = l.get_urls) == null ? void 0 : d.at(-1).url;
13550
+ a != null && a.length && await Promise.all(
13551
+ a.map(async (u) => {
13552
+ const s = t.flowsSegments.get(u.id), c = s.map(
13553
+ (f) => {
13554
+ var m;
13555
+ return (m = f.get_urls) == null ? void 0 : m.at(-1).url;
13556
13556
  }
13557
13557
  );
13558
- let c = await Qb(s, r.mediaStartTime);
13559
- c = c.map((l) => Jb(l)), u.forEach((l, d) => {
13560
- l.get_urls = [{ url: c.at(d) }];
13561
- });
13558
+ let l = await Qb(c, r.mediaStartTime);
13559
+ l = l.map((f) => Jb(f));
13560
+ const d = s.map((f, m) => ({
13561
+ ...f,
13562
+ get_urls: [{ url: l.at(m) }]
13563
+ }));
13564
+ o.set(u.id, d);
13562
13565
  })
13563
- ), i.next(), i.complete();
13566
+ ), i.next(o), i.complete();
13564
13567
  } catch (o) {
13565
13568
  i.error(o);
13566
13569
  }
@@ -13718,36 +13721,39 @@ class n0 {
13718
13721
  return;
13719
13722
  }
13720
13723
  e0.slewSubtitlesFlows(t, n).pipe(
13721
- Vr(() => {
13722
- const s = Ah(
13724
+ Vr((s) => {
13725
+ const c = new Map([
13726
+ ...t.flowsSegments,
13727
+ ...s
13728
+ ]), l = Ah(
13723
13729
  t.flow,
13724
13730
  t.subflows,
13725
- t.flowsSegments
13731
+ c
13726
13732
  );
13727
13733
  return this._player.loadVideo(
13728
- s.url,
13734
+ l.url,
13729
13735
  a
13730
13736
  ).pipe(
13731
- Ba((c) => {
13737
+ Ba((d) => {
13732
13738
  this._videoApiProxy.mediaStartTime = n.mediaStartTime;
13733
- const l = t0.generateThumbnailTrackUrl(
13739
+ const f = t0.generateThumbnailTrackUrl(
13734
13740
  t.subflows ?? [],
13735
- t.flowsSegments,
13741
+ c,
13736
13742
  this._player.video.getDuration() + n.mediaStartTime,
13737
13743
  n.mediaStartTime
13738
13744
  );
13739
- return l && this._player.chroming.setThumbnailVttUrl(l), {
13740
- ...c,
13745
+ return f && this._player.chroming.setThumbnailVttUrl(f), {
13746
+ ...d,
13741
13747
  mediaStartTime: n.mediaStartTime,
13742
13748
  tamsMediaData: r != null && r.returnTamsMediaData ? t : void 0,
13743
- thumbnailVttTrackUrl: l,
13744
- videoUrls: s.video,
13745
- audioUrls: s.audio,
13746
- textUrls: s.text
13749
+ thumbnailVttTrackUrl: f,
13750
+ videoUrls: l.video,
13751
+ audioUrls: l.audio,
13752
+ textUrls: l.text
13747
13753
  };
13748
13754
  }),
13749
- gg((c) => {
13750
- this._videoApiProxy.setTamsVideo(c), this._videoApiProxy.emitVideoLoadedEvent();
13755
+ gg((d) => {
13756
+ this._videoApiProxy.setTamsVideo(d), this._videoApiProxy.emitVideoLoadedEvent();
13751
13757
  })
13752
13758
  );
13753
13759
  })