@wistia/wistia-player-react 0.0.61 → 0.0.62

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.
@@ -4313,7 +4313,11 @@ var init_wistia_player = __esm({
4313
4313
  var utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(4755);
4314
4314
  var PLAYER_SAMPLE_RATE = 1e-4;
4315
4315
  var NON_PLAYER_EMBED_SAMPLE_RATE = 0.25;
4316
- var IS_DEV_OR_TEST_ENV = (
4316
+ var IS_DEV_ENV = (
4317
+ /* unused pure expression or super */
4318
+ null
4319
+ );
4320
+ var IS_TEST_ENV = (
4317
4321
  /* unused pure expression or super */
4318
4322
  null
4319
4323
  );
@@ -4356,10 +4360,13 @@ var init_wistia_player = __esm({
4356
4360
  if (typeof ((_window$Sentry = window.Sentry) === null || _window$Sentry === void 0 ? void 0 : _window$Sentry.withScope) === "function") {
4357
4361
  }
4358
4362
  var sampleRate = product === "player" ? PLAYER_SAMPLE_RATE : NON_PLAYER_EMBED_SAMPLE_RATE;
4359
- if (IS_DEV_OR_TEST_ENV) {
4363
+ if (IS_DEV_ENV) {
4360
4364
  console.error(error);
4361
4365
  return;
4362
4366
  }
4367
+ if (IS_TEST_ENV) {
4368
+ return;
4369
+ }
4363
4370
  var shouldSendToSentry = false;
4364
4371
  var cryptoObj = isNil(window.crypto) ? window.msCrypto : window.crypto;
4365
4372
  if (cryptoObj !== void 0) {
@@ -4839,8 +4846,8 @@ var init_wistia_player = __esm({
4839
4846
  );
4840
4847
  var Buffer2 = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array2 = root2.Uint8Array, getPrototype = overArg(Object.getPrototypeOf, Object), objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice;
4841
4848
  var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
4842
- var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set = getNative(root2, "Set"), WeakMap2 = getNative(root2, "WeakMap"), nativeCreate = getNative(Object, "create");
4843
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap2);
4849
+ var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set2 = getNative(root2, "Set"), WeakMap2 = getNative(root2, "WeakMap"), nativeCreate = getNative(Object, "create");
4850
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
4844
4851
  var symbolProto = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
4845
4852
  function Hash(entries) {
4846
4853
  var index = -1, length = entries ? entries.length : 0;
@@ -5172,7 +5179,7 @@ var init_wistia_player = __esm({
5172
5179
  }
5173
5180
  var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
5174
5181
  var getTag = baseGetTag;
5175
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
5182
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
5176
5183
  getTag = function(value) {
5177
5184
  var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0;
5178
5185
  if (ctorString) {
@@ -6068,15 +6075,15 @@ var init_wistia_player = __esm({
6068
6075
  return C(n2);
6069
6076
  }
6070
6077
  }
6071
- function M(n2) {
6072
- (!n2.__d && (n2.__d = true) && i2.push(n2) && !P.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || r)(P);
6078
+ function S(n2) {
6079
+ (!n2.__d && (n2.__d = true) && i2.push(n2) && !M.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || r)(M);
6073
6080
  }
6074
- function P() {
6081
+ function M() {
6075
6082
  var n2, u2, t2, o2, r2, e2, c2, s2;
6076
6083
  for (i2.sort(f); n2 = i2.shift(); ) n2.__d && (u2 = i2.length, o2 = void 0, e2 = (r2 = (t2 = n2).__v).__e, c2 = [], s2 = [], t2.__P && ((o2 = d({}, r2)).__v = r2.__v + 1, l.vnode && l.vnode(o2), O(t2.__P, o2, r2, t2.__n, t2.__P.namespaceURI, 32 & r2.__u ? [e2] : null, c2, null == e2 ? x(r2) : e2, !!(32 & r2.__u), s2), o2.__v = r2.__v, o2.__.__k[o2.__i] = o2, j(c2, o2, s2), o2.__e != e2 && C(o2)), i2.length > u2 && i2.sort(f));
6077
- P.__r = 0;
6084
+ M.__r = 0;
6078
6085
  }
6079
- function S(n2, l2, u2, t2, i3, o2, r2, f2, e2, c2, s2) {
6086
+ function P(n2, l2, u2, t2, i3, o2, r2, f2, e2, c2, s2) {
6080
6087
  var a2, p2, y2, d2, w2, _2 = t2 && t2.__k || v, g2 = l2.length;
6081
6088
  for (u2.__d = e2, $(u2, l2, _2), e2 = u2.__d, a2 = 0; a2 < g2; a2++) null != (y2 = u2.__k[a2]) && (p2 = -1 === y2.__i ? h : _2[y2.__i] || h, y2.__i = a2, O(n2, y2, p2, i3, o2, r2, f2, e2, c2, s2), d2 = y2.__e, y2.ref && p2.ref != y2.ref && (p2.ref && N(p2.ref, null, y2), s2.push(y2.ref, y2.__c || d2, y2)), null == w2 && null != d2 && (w2 = d2), 65536 & y2.__u || p2.__k === y2.__k ? e2 = I(y2, e2, n2) : "function" == typeof y2.type && void 0 !== y2.__d ? e2 = y2.__d : d2 && (e2 = d2.nextSibling), y2.__d = void 0, y2.__u &= -196609);
6082
6089
  u2.__d = e2, u2.__e = w2;
@@ -6150,33 +6157,33 @@ var init_wistia_player = __esm({
6150
6157
  };
6151
6158
  }
6152
6159
  function O(n2, u2, t2, i3, o2, r2, f2, e2, c2, s2) {
6153
- var a2, h2, v2, p2, w2, _2, g2, m2, x2, C2, M2, P2, $2, I2, H2, L2, T2 = u2.type;
6160
+ var a2, h2, v2, p2, w2, _2, g2, m2, x2, C2, S2, M2, $2, I2, H2, L2, T2 = u2.type;
6154
6161
  if (void 0 !== u2.constructor) return null;
6155
6162
  128 & t2.__u && (c2 = !!(32 & t2.__u), r2 = [e2 = u2.__e = t2.__e]), (a2 = l.__b) && a2(u2);
6156
6163
  n: if ("function" == typeof T2) try {
6157
- if (m2 = u2.props, x2 = "prototype" in T2 && T2.prototype.render, C2 = (a2 = T2.contextType) && i3[a2.__c], M2 = a2 ? C2 ? C2.props.value : a2.__ : i3, t2.__c ? g2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (x2 ? u2.__c = h2 = new T2(m2, M2) : (u2.__c = h2 = new k(m2, M2), h2.constructor = T2, h2.render = q), C2 && C2.sub(h2), h2.props = m2, h2.state || (h2.state = {}), h2.context = M2, h2.__n = i3, v2 = h2.__d = true, h2.__h = [], h2._sb = []), x2 && null == h2.__s && (h2.__s = h2.state), x2 && null != T2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d({}, h2.__s)), d(h2.__s, T2.getDerivedStateFromProps(m2, h2.__s))), p2 = h2.props, w2 = h2.state, h2.__v = u2, v2) x2 && null == T2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), x2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
6164
+ if (m2 = u2.props, x2 = "prototype" in T2 && T2.prototype.render, C2 = (a2 = T2.contextType) && i3[a2.__c], S2 = a2 ? C2 ? C2.props.value : a2.__ : i3, t2.__c ? g2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (x2 ? u2.__c = h2 = new T2(m2, S2) : (u2.__c = h2 = new k(m2, S2), h2.constructor = T2, h2.render = q), C2 && C2.sub(h2), h2.props = m2, h2.state || (h2.state = {}), h2.context = S2, h2.__n = i3, v2 = h2.__d = true, h2.__h = [], h2._sb = []), x2 && null == h2.__s && (h2.__s = h2.state), x2 && null != T2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d({}, h2.__s)), d(h2.__s, T2.getDerivedStateFromProps(m2, h2.__s))), p2 = h2.props, w2 = h2.state, h2.__v = u2, v2) x2 && null == T2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), x2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
6158
6165
  else {
6159
- if (x2 && null == T2.getDerivedStateFromProps && m2 !== p2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(m2, M2), !h2.__e && (null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(m2, h2.__s, M2) || u2.__v === t2.__v)) {
6166
+ if (x2 && null == T2.getDerivedStateFromProps && m2 !== p2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(m2, S2), !h2.__e && (null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(m2, h2.__s, S2) || u2.__v === t2.__v)) {
6160
6167
  for (u2.__v !== t2.__v && (h2.props = m2, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
6161
6168
  n3 && (n3.__ = u2);
6162
- }), P2 = 0; P2 < h2._sb.length; P2++) h2.__h.push(h2._sb[P2]);
6169
+ }), M2 = 0; M2 < h2._sb.length; M2++) h2.__h.push(h2._sb[M2]);
6163
6170
  h2._sb = [], h2.__h.length && f2.push(h2);
6164
6171
  break n;
6165
6172
  }
6166
- null != h2.componentWillUpdate && h2.componentWillUpdate(m2, h2.__s, M2), x2 && null != h2.componentDidUpdate && h2.__h.push(function() {
6173
+ null != h2.componentWillUpdate && h2.componentWillUpdate(m2, h2.__s, S2), x2 && null != h2.componentDidUpdate && h2.__h.push(function() {
6167
6174
  h2.componentDidUpdate(p2, w2, _2);
6168
6175
  });
6169
6176
  }
6170
- if (h2.context = M2, h2.props = m2, h2.__P = n2, h2.__e = false, $2 = l.__r, I2 = 0, x2) {
6177
+ if (h2.context = S2, h2.props = m2, h2.__P = n2, h2.__e = false, $2 = l.__r, I2 = 0, x2) {
6171
6178
  for (h2.state = h2.__s, h2.__d = false, $2 && $2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++) h2.__h.push(h2._sb[H2]);
6172
6179
  h2._sb = [];
6173
6180
  } else do {
6174
6181
  h2.__d = false, $2 && $2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
6175
6182
  } while (h2.__d && ++I2 < 25);
6176
- h2.state = h2.__s, null != h2.getChildContext && (i3 = d(d({}, i3), h2.getChildContext())), x2 && !v2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(p2, w2)), S(n2, y(L2 = null != a2 && a2.type === b && null == a2.key ? a2.props.children : a2) ? L2 : [L2], u2, t2, i3, o2, r2, f2, e2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && f2.push(h2), g2 && (h2.__E = h2.__ = null);
6183
+ h2.state = h2.__s, null != h2.getChildContext && (i3 = d(d({}, i3), h2.getChildContext())), x2 && !v2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(p2, w2)), P(n2, y(L2 = null != a2 && a2.type === b && null == a2.key ? a2.props.children : a2) ? L2 : [L2], u2, t2, i3, o2, r2, f2, e2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && f2.push(h2), g2 && (h2.__E = h2.__ = null);
6177
6184
  } catch (n3) {
6178
6185
  if (u2.__v = null, c2 || null != r2) {
6179
- for (u2.__u |= c2 ? 160 : 32; e2 && 8 === e2.nodeType && e2.nextSibling; ) e2 = e2.nextSibling;
6186
+ for (u2.__u |= c2 ? 160 : 128; e2 && 8 === e2.nodeType && e2.nextSibling; ) e2 = e2.nextSibling;
6180
6187
  r2[r2.indexOf(e2)] = null, u2.__e = e2;
6181
6188
  } else u2.__e = t2.__e, u2.__k = t2.__k;
6182
6189
  l.__e(n3, u2, t2);
@@ -6220,7 +6227,7 @@ var init_wistia_player = __esm({
6220
6227
  }
6221
6228
  for (a2 in k2) _2 = k2[a2], "children" == a2 ? d2 = _2 : "dangerouslySetInnerHTML" == a2 ? v2 = _2 : "value" == a2 ? g2 = _2 : "checked" == a2 ? m2 = _2 : c2 && "function" != typeof _2 || b2[a2] === _2 || A(u2, a2, _2, b2[a2], r2);
6222
6229
  if (v2) c2 || p2 && (v2.__html === p2.__html || v2.__html === u2.innerHTML) || (u2.innerHTML = v2.__html), t2.__k = [];
6223
- else if (p2 && (u2.innerHTML = ""), S(u2, y(d2) ? d2 : [d2], t2, i3, o2, "foreignObject" === C2 ? "http://www.w3.org/1999/xhtml" : r2, f2, e2, f2 ? f2[0] : i3.__k && x(i3, 0), c2, s2), null != f2) for (a2 = f2.length; a2--; ) w(f2[a2]);
6230
+ else if (p2 && (u2.innerHTML = ""), P(u2, y(d2) ? d2 : [d2], t2, i3, o2, "foreignObject" === C2 ? "http://www.w3.org/1999/xhtml" : r2, f2, e2, f2 ? f2[0] : i3.__k && x(i3, 0), c2, s2), null != f2) for (a2 = f2.length; a2--; ) w(f2[a2]);
6224
6231
  c2 || (a2 = "value", "progress" === C2 && null == g2 ? u2.removeAttribute("value") : void 0 !== g2 && (g2 !== u2[a2] || "progress" === C2 && !g2 || "option" === C2 && g2 !== b2[a2]) && A(u2, a2, g2, b2[a2], r2), a2 = "checked", void 0 !== m2 && m2 !== u2[a2] && A(u2, a2, m2, b2[a2], r2));
6225
6232
  }
6226
6233
  return u2;
@@ -6268,19 +6275,19 @@ var init_wistia_player = __esm({
6268
6275
  return n3.children(l3);
6269
6276
  }, Provider: function(n3) {
6270
6277
  var u3, t2;
6271
- return this.getChildContext || (u3 = [], (t2 = {})[l2] = this, this.getChildContext = function() {
6278
+ return this.getChildContext || (u3 = /* @__PURE__ */ new Set(), (t2 = {})[l2] = this, this.getChildContext = function() {
6272
6279
  return t2;
6273
6280
  }, this.componentWillUnmount = function() {
6274
6281
  u3 = null;
6275
6282
  }, this.shouldComponentUpdate = function(n4) {
6276
- this.props.value !== n4.value && u3.some(function(n5) {
6277
- n5.__e = true, M(n5);
6283
+ this.props.value !== n4.value && u3.forEach(function(n5) {
6284
+ n5.__e = true, S(n5);
6278
6285
  });
6279
6286
  }, this.sub = function(n4) {
6280
- u3.push(n4);
6287
+ u3.add(n4);
6281
6288
  var l3 = n4.componentWillUnmount;
6282
6289
  n4.componentWillUnmount = function() {
6283
- u3 && u3.splice(u3.indexOf(n4), 1), l3 && l3.call(n4);
6290
+ u3 && u3.delete(n4), l3 && l3.call(n4);
6284
6291
  };
6285
6292
  }), n3.children;
6286
6293
  } };
@@ -6297,12 +6304,12 @@ var init_wistia_player = __esm({
6297
6304
  return null != n2 && null == n2.constructor;
6298
6305
  }, k.prototype.setState = function(n2, l2) {
6299
6306
  var u2;
6300
- u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = d({}, this.state), "function" == typeof n2 && (n2 = n2(d({}, u2), this.props)), n2 && d(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), M(this));
6307
+ u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = d({}, this.state), "function" == typeof n2 && (n2 = n2(d({}, u2), this.props)), n2 && d(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), S(this));
6301
6308
  }, k.prototype.forceUpdate = function(n2) {
6302
- this.__v && (this.__e = true, n2 && this.__h.push(n2), M(this));
6309
+ this.__v && (this.__e = true, n2 && this.__h.push(n2), S(this));
6303
6310
  }, k.prototype.render = b, i2 = [], r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f = function(n2, l2) {
6304
6311
  return n2.__v.__b - l2.__v.__b;
6305
- }, P.__r = 0, e = 0, c = F(false), s = F(true), a = 0;
6312
+ }, M.__r = 0, e = 0, c = F(false), s = F(true), a = 0;
6306
6313
  }
6307
6314
  ),
6308
6315
  /***/
@@ -9629,7 +9636,7 @@ var init_wistia_player = __esm({
9629
9636
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
9630
9637
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
9631
9638
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
9632
- var TAGGED_VERSION = "0.0.61";
9639
+ var TAGGED_VERSION = "0.0.62";
9633
9640
  var DEFAULT_PROTOCOL = function() {
9634
9641
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
9635
9642
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
@@ -7,7 +7,7 @@ import {
7
7
  import { forwardRef, Suspense, lazy } from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
9
  var WistiaPlayerWrapper = lazy(
10
- async () => import("./WistiaPlayerWrapper-6DKK2LUK.mjs").then((module) => ({
10
+ async () => import("./WistiaPlayerWrapper-X3KJ5PAE.mjs").then((module) => ({
11
11
  default: module.WistiaPlayerWrapper
12
12
  }))
13
13
  );
@@ -22,7 +22,7 @@ var WistiaPlayerWrapper = forwardRef(
22
22
  setSwatchAspectRatio(ratio);
23
23
  });
24
24
  }
25
- void import("./wistia-player-RNKJUE7E.mjs");
25
+ void import("./wistia-player-GDXE562A.mjs");
26
26
  void customElements.whenDefined("wistia-player").then(() => {
27
27
  setIsWistiaPlayerDefined(true);
28
28
  });
@@ -3392,7 +3392,11 @@ var __webpack_modules__ = {
3392
3392
  var utilities_trackingConsentApi_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__3(4755);
3393
3393
  var PLAYER_SAMPLE_RATE = 1e-4;
3394
3394
  var NON_PLAYER_EMBED_SAMPLE_RATE = 0.25;
3395
- var IS_DEV_OR_TEST_ENV = (
3395
+ var IS_DEV_ENV = (
3396
+ /* unused pure expression or super */
3397
+ null
3398
+ );
3399
+ var IS_TEST_ENV = (
3396
3400
  /* unused pure expression or super */
3397
3401
  null
3398
3402
  );
@@ -3435,10 +3439,13 @@ var __webpack_modules__ = {
3435
3439
  if (typeof ((_window$Sentry = window.Sentry) === null || _window$Sentry === void 0 ? void 0 : _window$Sentry.withScope) === "function") {
3436
3440
  }
3437
3441
  var sampleRate = product === "player" ? PLAYER_SAMPLE_RATE : NON_PLAYER_EMBED_SAMPLE_RATE;
3438
- if (IS_DEV_OR_TEST_ENV) {
3442
+ if (IS_DEV_ENV) {
3439
3443
  console.error(error);
3440
3444
  return;
3441
3445
  }
3446
+ if (IS_TEST_ENV) {
3447
+ return;
3448
+ }
3442
3449
  var shouldSendToSentry = false;
3443
3450
  var cryptoObj = isNil(window.crypto) ? window.msCrypto : window.crypto;
3444
3451
  if (cryptoObj !== void 0) {
@@ -3918,8 +3925,8 @@ var __webpack_modules__ = {
3918
3925
  );
3919
3926
  var Buffer = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array = root2.Uint8Array, getPrototype = overArg(Object.getPrototypeOf, Object), objectCreate = Object.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice;
3920
3927
  var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
3921
- var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set = getNative(root2, "Set"), WeakMap2 = getNative(root2, "WeakMap"), nativeCreate = getNative(Object, "create");
3922
- var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap2);
3928
+ var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set2 = getNative(root2, "Set"), WeakMap2 = getNative(root2, "WeakMap"), nativeCreate = getNative(Object, "create");
3929
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap2);
3923
3930
  var symbolProto = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
3924
3931
  function Hash(entries) {
3925
3932
  var index = -1, length = entries ? entries.length : 0;
@@ -4251,7 +4258,7 @@ var __webpack_modules__ = {
4251
4258
  }
4252
4259
  var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
4253
4260
  var getTag = baseGetTag;
4254
- if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
4261
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
4255
4262
  getTag = function(value) {
4256
4263
  var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : void 0;
4257
4264
  if (ctorString) {
@@ -5147,15 +5154,15 @@ var __webpack_modules__ = {
5147
5154
  return C(n2);
5148
5155
  }
5149
5156
  }
5150
- function M(n2) {
5151
- (!n2.__d && (n2.__d = true) && i2.push(n2) && !P.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || r)(P);
5157
+ function S(n2) {
5158
+ (!n2.__d && (n2.__d = true) && i2.push(n2) && !M.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || r)(M);
5152
5159
  }
5153
- function P() {
5160
+ function M() {
5154
5161
  var n2, u2, t2, o2, r2, e2, c2, s2;
5155
5162
  for (i2.sort(f); n2 = i2.shift(); ) n2.__d && (u2 = i2.length, o2 = void 0, e2 = (r2 = (t2 = n2).__v).__e, c2 = [], s2 = [], t2.__P && ((o2 = d({}, r2)).__v = r2.__v + 1, l.vnode && l.vnode(o2), O(t2.__P, o2, r2, t2.__n, t2.__P.namespaceURI, 32 & r2.__u ? [e2] : null, c2, null == e2 ? x(r2) : e2, !!(32 & r2.__u), s2), o2.__v = r2.__v, o2.__.__k[o2.__i] = o2, j(c2, o2, s2), o2.__e != e2 && C(o2)), i2.length > u2 && i2.sort(f));
5156
- P.__r = 0;
5163
+ M.__r = 0;
5157
5164
  }
5158
- function S(n2, l2, u2, t2, i3, o2, r2, f2, e2, c2, s2) {
5165
+ function P(n2, l2, u2, t2, i3, o2, r2, f2, e2, c2, s2) {
5159
5166
  var a2, p2, y2, d2, w2, _2 = t2 && t2.__k || v, g2 = l2.length;
5160
5167
  for (u2.__d = e2, $(u2, l2, _2), e2 = u2.__d, a2 = 0; a2 < g2; a2++) null != (y2 = u2.__k[a2]) && (p2 = -1 === y2.__i ? h : _2[y2.__i] || h, y2.__i = a2, O(n2, y2, p2, i3, o2, r2, f2, e2, c2, s2), d2 = y2.__e, y2.ref && p2.ref != y2.ref && (p2.ref && N(p2.ref, null, y2), s2.push(y2.ref, y2.__c || d2, y2)), null == w2 && null != d2 && (w2 = d2), 65536 & y2.__u || p2.__k === y2.__k ? e2 = I(y2, e2, n2) : "function" == typeof y2.type && void 0 !== y2.__d ? e2 = y2.__d : d2 && (e2 = d2.nextSibling), y2.__d = void 0, y2.__u &= -196609);
5161
5168
  u2.__d = e2, u2.__e = w2;
@@ -5229,33 +5236,33 @@ var __webpack_modules__ = {
5229
5236
  };
5230
5237
  }
5231
5238
  function O(n2, u2, t2, i3, o2, r2, f2, e2, c2, s2) {
5232
- var a2, h2, v2, p2, w2, _2, g2, m2, x2, C2, M2, P2, $2, I2, H2, L2, T2 = u2.type;
5239
+ var a2, h2, v2, p2, w2, _2, g2, m2, x2, C2, S2, M2, $2, I2, H2, L2, T2 = u2.type;
5233
5240
  if (void 0 !== u2.constructor) return null;
5234
5241
  128 & t2.__u && (c2 = !!(32 & t2.__u), r2 = [e2 = u2.__e = t2.__e]), (a2 = l.__b) && a2(u2);
5235
5242
  n: if ("function" == typeof T2) try {
5236
- if (m2 = u2.props, x2 = "prototype" in T2 && T2.prototype.render, C2 = (a2 = T2.contextType) && i3[a2.__c], M2 = a2 ? C2 ? C2.props.value : a2.__ : i3, t2.__c ? g2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (x2 ? u2.__c = h2 = new T2(m2, M2) : (u2.__c = h2 = new k(m2, M2), h2.constructor = T2, h2.render = q), C2 && C2.sub(h2), h2.props = m2, h2.state || (h2.state = {}), h2.context = M2, h2.__n = i3, v2 = h2.__d = true, h2.__h = [], h2._sb = []), x2 && null == h2.__s && (h2.__s = h2.state), x2 && null != T2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d({}, h2.__s)), d(h2.__s, T2.getDerivedStateFromProps(m2, h2.__s))), p2 = h2.props, w2 = h2.state, h2.__v = u2, v2) x2 && null == T2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), x2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
5243
+ if (m2 = u2.props, x2 = "prototype" in T2 && T2.prototype.render, C2 = (a2 = T2.contextType) && i3[a2.__c], S2 = a2 ? C2 ? C2.props.value : a2.__ : i3, t2.__c ? g2 = (h2 = u2.__c = t2.__c).__ = h2.__E : (x2 ? u2.__c = h2 = new T2(m2, S2) : (u2.__c = h2 = new k(m2, S2), h2.constructor = T2, h2.render = q), C2 && C2.sub(h2), h2.props = m2, h2.state || (h2.state = {}), h2.context = S2, h2.__n = i3, v2 = h2.__d = true, h2.__h = [], h2._sb = []), x2 && null == h2.__s && (h2.__s = h2.state), x2 && null != T2.getDerivedStateFromProps && (h2.__s == h2.state && (h2.__s = d({}, h2.__s)), d(h2.__s, T2.getDerivedStateFromProps(m2, h2.__s))), p2 = h2.props, w2 = h2.state, h2.__v = u2, v2) x2 && null == T2.getDerivedStateFromProps && null != h2.componentWillMount && h2.componentWillMount(), x2 && null != h2.componentDidMount && h2.__h.push(h2.componentDidMount);
5237
5244
  else {
5238
- if (x2 && null == T2.getDerivedStateFromProps && m2 !== p2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(m2, M2), !h2.__e && (null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(m2, h2.__s, M2) || u2.__v === t2.__v)) {
5245
+ if (x2 && null == T2.getDerivedStateFromProps && m2 !== p2 && null != h2.componentWillReceiveProps && h2.componentWillReceiveProps(m2, S2), !h2.__e && (null != h2.shouldComponentUpdate && false === h2.shouldComponentUpdate(m2, h2.__s, S2) || u2.__v === t2.__v)) {
5239
5246
  for (u2.__v !== t2.__v && (h2.props = m2, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
5240
5247
  n3 && (n3.__ = u2);
5241
- }), P2 = 0; P2 < h2._sb.length; P2++) h2.__h.push(h2._sb[P2]);
5248
+ }), M2 = 0; M2 < h2._sb.length; M2++) h2.__h.push(h2._sb[M2]);
5242
5249
  h2._sb = [], h2.__h.length && f2.push(h2);
5243
5250
  break n;
5244
5251
  }
5245
- null != h2.componentWillUpdate && h2.componentWillUpdate(m2, h2.__s, M2), x2 && null != h2.componentDidUpdate && h2.__h.push(function() {
5252
+ null != h2.componentWillUpdate && h2.componentWillUpdate(m2, h2.__s, S2), x2 && null != h2.componentDidUpdate && h2.__h.push(function() {
5246
5253
  h2.componentDidUpdate(p2, w2, _2);
5247
5254
  });
5248
5255
  }
5249
- if (h2.context = M2, h2.props = m2, h2.__P = n2, h2.__e = false, $2 = l.__r, I2 = 0, x2) {
5256
+ if (h2.context = S2, h2.props = m2, h2.__P = n2, h2.__e = false, $2 = l.__r, I2 = 0, x2) {
5250
5257
  for (h2.state = h2.__s, h2.__d = false, $2 && $2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++) h2.__h.push(h2._sb[H2]);
5251
5258
  h2._sb = [];
5252
5259
  } else do {
5253
5260
  h2.__d = false, $2 && $2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
5254
5261
  } while (h2.__d && ++I2 < 25);
5255
- h2.state = h2.__s, null != h2.getChildContext && (i3 = d(d({}, i3), h2.getChildContext())), x2 && !v2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(p2, w2)), S(n2, y(L2 = null != a2 && a2.type === b && null == a2.key ? a2.props.children : a2) ? L2 : [L2], u2, t2, i3, o2, r2, f2, e2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && f2.push(h2), g2 && (h2.__E = h2.__ = null);
5262
+ h2.state = h2.__s, null != h2.getChildContext && (i3 = d(d({}, i3), h2.getChildContext())), x2 && !v2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(p2, w2)), P(n2, y(L2 = null != a2 && a2.type === b && null == a2.key ? a2.props.children : a2) ? L2 : [L2], u2, t2, i3, o2, r2, f2, e2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && f2.push(h2), g2 && (h2.__E = h2.__ = null);
5256
5263
  } catch (n3) {
5257
5264
  if (u2.__v = null, c2 || null != r2) {
5258
- for (u2.__u |= c2 ? 160 : 32; e2 && 8 === e2.nodeType && e2.nextSibling; ) e2 = e2.nextSibling;
5265
+ for (u2.__u |= c2 ? 160 : 128; e2 && 8 === e2.nodeType && e2.nextSibling; ) e2 = e2.nextSibling;
5259
5266
  r2[r2.indexOf(e2)] = null, u2.__e = e2;
5260
5267
  } else u2.__e = t2.__e, u2.__k = t2.__k;
5261
5268
  l.__e(n3, u2, t2);
@@ -5299,7 +5306,7 @@ var __webpack_modules__ = {
5299
5306
  }
5300
5307
  for (a2 in k2) _2 = k2[a2], "children" == a2 ? d2 = _2 : "dangerouslySetInnerHTML" == a2 ? v2 = _2 : "value" == a2 ? g2 = _2 : "checked" == a2 ? m2 = _2 : c2 && "function" != typeof _2 || b2[a2] === _2 || A(u2, a2, _2, b2[a2], r2);
5301
5308
  if (v2) c2 || p2 && (v2.__html === p2.__html || v2.__html === u2.innerHTML) || (u2.innerHTML = v2.__html), t2.__k = [];
5302
- else if (p2 && (u2.innerHTML = ""), S(u2, y(d2) ? d2 : [d2], t2, i3, o2, "foreignObject" === C2 ? "http://www.w3.org/1999/xhtml" : r2, f2, e2, f2 ? f2[0] : i3.__k && x(i3, 0), c2, s2), null != f2) for (a2 = f2.length; a2--; ) w(f2[a2]);
5309
+ else if (p2 && (u2.innerHTML = ""), P(u2, y(d2) ? d2 : [d2], t2, i3, o2, "foreignObject" === C2 ? "http://www.w3.org/1999/xhtml" : r2, f2, e2, f2 ? f2[0] : i3.__k && x(i3, 0), c2, s2), null != f2) for (a2 = f2.length; a2--; ) w(f2[a2]);
5303
5310
  c2 || (a2 = "value", "progress" === C2 && null == g2 ? u2.removeAttribute("value") : void 0 !== g2 && (g2 !== u2[a2] || "progress" === C2 && !g2 || "option" === C2 && g2 !== b2[a2]) && A(u2, a2, g2, b2[a2], r2), a2 = "checked", void 0 !== m2 && m2 !== u2[a2] && A(u2, a2, m2, b2[a2], r2));
5304
5311
  }
5305
5312
  return u2;
@@ -5347,19 +5354,19 @@ var __webpack_modules__ = {
5347
5354
  return n3.children(l3);
5348
5355
  }, Provider: function(n3) {
5349
5356
  var u3, t2;
5350
- return this.getChildContext || (u3 = [], (t2 = {})[l2] = this, this.getChildContext = function() {
5357
+ return this.getChildContext || (u3 = /* @__PURE__ */ new Set(), (t2 = {})[l2] = this, this.getChildContext = function() {
5351
5358
  return t2;
5352
5359
  }, this.componentWillUnmount = function() {
5353
5360
  u3 = null;
5354
5361
  }, this.shouldComponentUpdate = function(n4) {
5355
- this.props.value !== n4.value && u3.some(function(n5) {
5356
- n5.__e = true, M(n5);
5362
+ this.props.value !== n4.value && u3.forEach(function(n5) {
5363
+ n5.__e = true, S(n5);
5357
5364
  });
5358
5365
  }, this.sub = function(n4) {
5359
- u3.push(n4);
5366
+ u3.add(n4);
5360
5367
  var l3 = n4.componentWillUnmount;
5361
5368
  n4.componentWillUnmount = function() {
5362
- u3 && u3.splice(u3.indexOf(n4), 1), l3 && l3.call(n4);
5369
+ u3 && u3.delete(n4), l3 && l3.call(n4);
5363
5370
  };
5364
5371
  }), n3.children;
5365
5372
  } };
@@ -5376,12 +5383,12 @@ var __webpack_modules__ = {
5376
5383
  return null != n2 && null == n2.constructor;
5377
5384
  }, k.prototype.setState = function(n2, l2) {
5378
5385
  var u2;
5379
- u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = d({}, this.state), "function" == typeof n2 && (n2 = n2(d({}, u2), this.props)), n2 && d(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), M(this));
5386
+ u2 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = d({}, this.state), "function" == typeof n2 && (n2 = n2(d({}, u2), this.props)), n2 && d(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), S(this));
5380
5387
  }, k.prototype.forceUpdate = function(n2) {
5381
- this.__v && (this.__e = true, n2 && this.__h.push(n2), M(this));
5388
+ this.__v && (this.__e = true, n2 && this.__h.push(n2), S(this));
5382
5389
  }, k.prototype.render = b, i2 = [], r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, f = function(n2, l2) {
5383
5390
  return n2.__v.__b - l2.__v.__b;
5384
- }, P.__r = 0, e = 0, c = F(false), s = F(true), a = 0;
5391
+ }, M.__r = 0, e = 0, c = F(false), s = F(true), a = 0;
5385
5392
  }
5386
5393
  ),
5387
5394
  /***/
@@ -8708,7 +8715,7 @@ var __webpack_modules__ = {
8708
8715
  var PROD_SSL_EMBED_HOST = "embed-ssl.wistia.com";
8709
8716
  var PROD_FASTLY_SSL_HOST = "embed-fastly.wistia.com";
8710
8717
  var SSL_EMBED_HOST = "embed-ssl.wistia.com";
8711
- var TAGGED_VERSION = "0.0.61";
8718
+ var TAGGED_VERSION = "0.0.62";
8712
8719
  var DEFAULT_PROTOCOL = function() {
8713
8720
  if (typeof window !== "undefined" && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z === window && utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location) {
8714
8721
  return utilities_root_js__WEBPACK_IMPORTED_MODULE_0__.z.location.protocol;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wistia/wistia-player-react",
3
- "version": "0.0.61",
3
+ "version": "0.0.62",
4
4
  "packageManager": "yarn@4.2.2",
5
5
  "description": "An embeddable wistia-player web component and React wrapper to add responsive, lightweight, and SEO-friendly videos to your site.",
6
6
  "keywords": [
@@ -45,7 +45,7 @@
45
45
  "start:dev:yalc": "run build:react:dev --watch --yalc"
46
46
  },
47
47
  "dependencies": {
48
- "@wistia/wistia-player": "0.0.61"
48
+ "@wistia/wistia-player": "0.0.62"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.25.2",