@everymatrix/general-player-sms-verification-form 1.85.17 → 1.85.18

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.
@@ -2,15 +2,15 @@ var Yt = Object.defineProperty, Kt = Object.defineProperties;
2
2
  var er = Object.getOwnPropertyDescriptors;
3
3
  var et = Object.getOwnPropertySymbols;
4
4
  var tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable;
5
- var Ie = (e, t, r) => t in e ? Yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
5
+ var Oe = (e, t, r) => t in e ? Yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- tr.call(t, r) && Ie(e, r, t[r]);
7
+ tr.call(t, r) && Oe(e, r, t[r]);
8
8
  if (et)
9
9
  for (var r of et(t))
10
- rr.call(t, r) && Ie(e, r, t[r]);
10
+ rr.call(t, r) && Oe(e, r, t[r]);
11
11
  return e;
12
12
  }, rt = (e, t) => Kt(e, er(t));
13
- var $ = (e, t, r) => (Ie(e, typeof t != "symbol" ? t + "" : t, r), r);
13
+ var $ = (e, t, r) => (Oe(e, typeof t != "symbol" ? t + "" : t, r), r);
14
14
  var ge = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (l) => {
16
16
  try {
@@ -148,7 +148,7 @@ function dr() {
148
148
  function Ge(e) {
149
149
  ee.push(e);
150
150
  }
151
- const Oe = /* @__PURE__ */ new Set();
151
+ const Ce = /* @__PURE__ */ new Set();
152
152
  let q = 0;
153
153
  function U() {
154
154
  if (q !== 0)
@@ -167,13 +167,13 @@ function U() {
167
167
  De.pop()();
168
168
  for (let t = 0; t < ee.length; t += 1) {
169
169
  const r = ee[t];
170
- Oe.has(r) || (Oe.add(r), r());
170
+ Ce.has(r) || (Ce.add(r), r());
171
171
  }
172
172
  ee.length = 0;
173
173
  } while (K.length);
174
174
  for (; ot.length; )
175
175
  ot.pop()();
176
- Fe = !1, Oe.clear(), de(e);
176
+ Fe = !1, Ce.clear(), de(e);
177
177
  }
178
178
  function mr(e) {
179
179
  if (e.fragment !== null) {
@@ -547,11 +547,11 @@ function wr(e) {
547
547
  }
548
548
  function Pr(e) {
549
549
  var t = Object.prototype.toString.call(e);
550
- return t === "[object RegExp]" || t === "[object Date]" || Or(e);
550
+ return t === "[object RegExp]" || t === "[object Date]" || Cr(e);
551
551
  }
552
- var Cr = typeof Symbol == "function" && Symbol.for, Ir = Cr ? Symbol.for("react.element") : 60103;
553
- function Or(e) {
554
- return e.$$typeof === Ir;
552
+ var Ir = typeof Symbol == "function" && Symbol.for, Or = Ir ? Symbol.for("react.element") : 60103;
553
+ function Cr(e) {
554
+ return e.$$typeof === Or;
555
555
  }
556
556
  function Nr(e) {
557
557
  return Array.isArray(e) ? [] : {};
@@ -670,15 +670,15 @@ function Pt(e, t, r) {
670
670
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
671
671
  return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
672
672
  }
673
- function Ct(e, t, r, n, i) {
673
+ function It(e, t, r, n, i) {
674
674
  return r.bind(t, e, n, i);
675
675
  }
676
676
  function Xr(e, t) {
677
677
  var r = e.length === 1 ? Vr : Pt;
678
- return Ct(e, this, r, t.cache.create(), t.serializer);
678
+ return It(e, this, r, t.cache.create(), t.serializer);
679
679
  }
680
680
  function zr(e, t) {
681
- return Ct(e, this, Pt, t.cache.create(), t.serializer);
681
+ return It(e, this, Pt, t.cache.create(), t.serializer);
682
682
  }
683
683
  var Wr = function() {
684
684
  return JSON.stringify(arguments);
@@ -728,10 +728,10 @@ function at(e) {
728
728
  function Qr(e) {
729
729
  return e.type === E.argument;
730
730
  }
731
- function It(e) {
731
+ function Ot(e) {
732
732
  return e.type === E.number;
733
733
  }
734
- function Ot(e) {
734
+ function Ct(e) {
735
735
  return e.type === E.date;
736
736
  }
737
737
  function Nt(e) {
@@ -2875,7 +2875,7 @@ var xn = (
2875
2875
  if (this.bumpSpace(), !this.bumpIf(","))
2876
2876
  return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(B, Se({}, B)));
2877
2877
  this.bumpSpace();
2878
- var x = this.parseIdentifierIfPossible(), O = 0;
2878
+ var x = this.parseIdentifierIfPossible(), C = 0;
2879
2879
  if (a !== "select" && x.value === "offset") {
2880
2880
  if (!this.bumpIf(":"))
2881
2881
  return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
@@ -2883,7 +2883,7 @@ var xn = (
2883
2883
  var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2884
2884
  if (c.err)
2885
2885
  return c;
2886
- this.bumpSpace(), x = this.parseIdentifierIfPossible(), O = c.val;
2886
+ this.bumpSpace(), x = this.parseIdentifierIfPossible(), C = c.val;
2887
2887
  }
2888
2888
  var F = this.tryParsePluralOrSelectOptions(t, a, r, x);
2889
2889
  if (F.err)
@@ -2905,7 +2905,7 @@ var xn = (
2905
2905
  type: E.plural,
2906
2906
  value: n,
2907
2907
  options: ft(F.val),
2908
- offset: O,
2908
+ offset: C,
2909
2909
  pluralType: a === "plural" ? "cardinal" : "ordinal",
2910
2910
  location: X
2911
2911
  },
@@ -3099,7 +3099,7 @@ function Ze(e) {
3099
3099
  for (var r in t.options)
3100
3100
  delete t.options[r].location, Ze(t.options[r].value);
3101
3101
  else
3102
- It(t) && $t(t.style) || (Ot(t) || Nt(t)) && je(t.style) ? delete t.style.location : Rt(t) && Ze(t.children);
3102
+ Ot(t) && $t(t.style) || (Ct(t) || Nt(t)) && je(t.style) ? delete t.style.location : Rt(t) && Ze(t.children);
3103
3103
  });
3104
3104
  }
3105
3105
  function An(e, t) {
@@ -3154,24 +3154,24 @@ var we = (
3154
3154
  }
3155
3155
  return t;
3156
3156
  }(we)
3157
- ), I;
3157
+ ), O;
3158
3158
  (function(e) {
3159
3159
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3160
- })(I || (I = {}));
3160
+ })(O || (O = {}));
3161
3161
  function Pn(e) {
3162
3162
  return e.length < 2 ? e : e.reduce(function(t, r) {
3163
3163
  var n = t[t.length - 1];
3164
- return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
3164
+ return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3165
3165
  }, []);
3166
3166
  }
3167
- function Cn(e) {
3167
+ function In(e) {
3168
3168
  return typeof e == "function";
3169
3169
  }
3170
3170
  function _e(e, t, r, n, i, o, s) {
3171
3171
  if (e.length === 1 && at(e[0]))
3172
3172
  return [
3173
3173
  {
3174
- type: I.literal,
3174
+ type: O.literal,
3175
3175
  value: e[0].value
3176
3176
  }
3177
3177
  ];
@@ -3179,14 +3179,14 @@ function _e(e, t, r, n, i, o, s) {
3179
3179
  var h = u[l];
3180
3180
  if (at(h)) {
3181
3181
  a.push({
3182
- type: I.literal,
3182
+ type: O.literal,
3183
3183
  value: h.value
3184
3184
  });
3185
3185
  continue;
3186
3186
  }
3187
3187
  if (qr(h)) {
3188
3188
  typeof o == "number" && a.push({
3189
- type: I.literal,
3189
+ type: O.literal,
3190
3190
  value: r.getNumberFormat(t).format(o)
3191
3191
  });
3192
3192
  continue;
@@ -3197,15 +3197,15 @@ function _e(e, t, r, n, i, o, s) {
3197
3197
  var d = i[c];
3198
3198
  if (Qr(h)) {
3199
3199
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
3200
- type: typeof d == "string" ? I.literal : I.object,
3200
+ type: typeof d == "string" ? O.literal : O.object,
3201
3201
  value: d
3202
3202
  });
3203
3203
  continue;
3204
3204
  }
3205
- if (Ot(h)) {
3205
+ if (Ct(h)) {
3206
3206
  var g = typeof h.style == "string" ? n.date[h.style] : je(h.style) ? h.style.parsedOptions : void 0;
3207
3207
  a.push({
3208
- type: I.literal,
3208
+ type: O.literal,
3209
3209
  value: r.getDateTimeFormat(t, g).format(d)
3210
3210
  });
3211
3211
  continue;
@@ -3213,30 +3213,30 @@ function _e(e, t, r, n, i, o, s) {
3213
3213
  if (Nt(h)) {
3214
3214
  var g = typeof h.style == "string" ? n.time[h.style] : je(h.style) ? h.style.parsedOptions : n.time.medium;
3215
3215
  a.push({
3216
- type: I.literal,
3216
+ type: O.literal,
3217
3217
  value: r.getDateTimeFormat(t, g).format(d)
3218
3218
  });
3219
3219
  continue;
3220
3220
  }
3221
- if (It(h)) {
3221
+ if (Ot(h)) {
3222
3222
  var g = typeof h.style == "string" ? n.number[h.style] : $t(h.style) ? h.style.parsedOptions : void 0;
3223
3223
  g && g.scale && (d = d * (g.scale || 1)), a.push({
3224
- type: I.literal,
3224
+ type: O.literal,
3225
3225
  value: r.getNumberFormat(t, g).format(d)
3226
3226
  });
3227
3227
  continue;
3228
3228
  }
3229
3229
  if (Rt(h)) {
3230
3230
  var v = h.children, _ = h.value, T = i[_];
3231
- if (!Cn(T))
3231
+ if (!In(T))
3232
3232
  throw new Bn(_, "function", s);
3233
- var H = _e(v, t, r, n, i, o), L = T(H.map(function(O) {
3234
- return O.value;
3233
+ var H = _e(v, t, r, n, i, o), L = T(H.map(function(C) {
3234
+ return C.value;
3235
3235
  }));
3236
- Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(O) {
3236
+ Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(C) {
3237
3237
  return {
3238
- type: typeof O == "string" ? I.literal : I.object,
3239
- value: O
3238
+ type: typeof C == "string" ? O.literal : O.object,
3239
+ value: C
3240
3240
  };
3241
3241
  }));
3242
3242
  }
@@ -3265,14 +3265,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3265
3265
  }
3266
3266
  return Pn(a);
3267
3267
  }
3268
- function In(e, t) {
3268
+ function On(e, t) {
3269
3269
  return t ? G(G(G({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3270
3270
  return r[n] = G(G({}, e[n]), t[n] || {}), r;
3271
3271
  }, {})) : e;
3272
3272
  }
3273
- function On(e, t) {
3273
+ function Cn(e, t) {
3274
3274
  return t ? Object.keys(e).reduce(function(r, n) {
3275
- return r[n] = In(e[n], t[n]), r;
3275
+ return r[n] = On(e[n], t[n]), r;
3276
3276
  }, G({}, e)) : e;
3277
3277
  }
3278
3278
  function $e(e) {
@@ -3336,7 +3336,7 @@ var Mn = (
3336
3336
  if (u.length === 1)
3337
3337
  return u[0].value;
3338
3338
  var h = u.reduce(function(c, d) {
3339
- return !c.length || d.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
3339
+ return !c.length || d.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
3340
3340
  }, []);
3341
3341
  return h.length <= 1 ? h[0] || "" : h;
3342
3342
  }, this.formatToParts = function(l) {
@@ -3359,7 +3359,7 @@ var Mn = (
3359
3359
  this.ast = t;
3360
3360
  if (!Array.isArray(this.ast))
3361
3361
  throw new TypeError("A message must be provided as a String or AST.");
3362
- this.formats = On(e.formats, n), this.formatters = i && i.formatters || Nn(this.formatterCache);
3362
+ this.formats = Cn(e.formats, n), this.formatters = i && i.formatters || Nn(this.formatterCache);
3363
3363
  }
3364
3364
  return Object.defineProperty(e, "defaultLocale", {
3365
3365
  get: function() {
@@ -3619,7 +3619,7 @@ const Kn = (e) => {
3619
3619
  return Te.set(e);
3620
3620
  }, Z = Yn(qn({}, Te), {
3621
3621
  set: Kn
3622
- }), Ce = (e) => {
3622
+ }), Ie = (e) => {
3623
3623
  const t = /* @__PURE__ */ Object.create(null);
3624
3624
  return (n) => {
3625
3625
  const i = JSON.stringify(n);
@@ -3647,21 +3647,21 @@ const be = (e, t) => {
3647
3647
  if (e in r && t in r[e])
3648
3648
  return r[e][t];
3649
3649
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3650
- }, ti = Ce(
3650
+ }, ti = Ie(
3651
3651
  (e) => {
3652
3652
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3653
3653
  if (r == null)
3654
3654
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3655
3655
  return n && (i = be("number", n)), new Intl.NumberFormat(r, i);
3656
3656
  }
3657
- ), ri = Ce(
3657
+ ), ri = Ie(
3658
3658
  (e) => {
3659
3659
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3660
3660
  if (r == null)
3661
3661
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3662
3662
  return n ? i = be("date", n) : Object.keys(i).length === 0 && (i = be("date", "short")), new Intl.DateTimeFormat(r, i);
3663
3663
  }
3664
- ), ni = Ce(
3664
+ ), ni = Ie(
3665
3665
  (e) => {
3666
3666
  var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
3667
3667
  if (r == null)
@@ -3691,7 +3691,7 @@ const be = (e, t) => {
3691
3691
  "locale"
3692
3692
  ]);
3693
3693
  return ni(Ke({ locale: r }, n));
3694
- }, ai = Ce(
3694
+ }, ai = Ie(
3695
3695
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3696
3696
  (e, t = Q()) => new Mn(e, t, ie().formats, {
3697
3697
  ignoreTag: ie().ignoreTag
@@ -3855,6 +3855,8 @@ function pi(e, t) {
3855
3855
  }
3856
3856
  }
3857
3857
  function bi(e, t) {
3858
+ if (!e || !t)
3859
+ return;
3858
3860
  const r = new URL(t);
3859
3861
  fetch(r.href).then((n) => n.text()).then((n) => {
3860
3862
  const i = document.createElement("style");
@@ -3999,11 +4001,11 @@ function _i(e) {
3999
4001
  ), a, l, u, h, c, d, g, v, _, T, H = (
4000
4002
  /*$_*/
4001
4003
  e[5]("activate") + ""
4002
- ), L, B, x, O = (
4004
+ ), L, B, x, C = (
4003
4005
  /*$_*/
4004
4006
  e[5]("resend") + ""
4005
4007
  ), F, X, le, he;
4006
- function ce(p, C) {
4008
+ function ce(p, I) {
4007
4009
  return (
4008
4010
  /*isSmsValid*/
4009
4011
  p[2] ? Ei : yi
@@ -4019,12 +4021,12 @@ function _i(e) {
4019
4021
  );
4020
4022
  return {
4021
4023
  c() {
4022
- t = N("div"), r = N("h3"), R.c(), n = W(), i = N("div"), o = N("label"), a = M(s), l = M(":"), u = N("span"), u.textContent = "*", h = W(), c = N("input"), d = W(), w && w.c(), v = W(), P && P.c(), _ = W(), T = N("button"), L = M(H), B = W(), x = N("button"), F = M(O), X = W(), f && f.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(c, "type", "text"), A(c, "id", "SmsCode"), A(c, "inputmode", "numeric"), A(c, "pattern", "[0-9]*"), A(c, "maxlength", "6"), A(i, "class", g = "Field SmsVerificationField " + (/*isSmsValid*/
4024
+ t = N("div"), r = N("h3"), R.c(), n = W(), i = N("div"), o = N("label"), a = M(s), l = M(":"), u = N("span"), u.textContent = "*", h = W(), c = N("input"), d = W(), w && w.c(), v = W(), P && P.c(), _ = W(), T = N("button"), L = M(H), B = W(), x = N("button"), F = M(C), X = W(), f && f.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(c, "type", "text"), A(c, "id", "SmsCode"), A(c, "inputmode", "numeric"), A(c, "pattern", "[0-9]*"), A(c, "maxlength", "6"), A(i, "class", g = "Field SmsVerificationField " + (/*isSmsValid*/
4023
4025
  e[2] ? "" : "InvalidField")), A(T, "class", "Button SmsVerificationValidate"), A(x, "class", "Button SmsVerificationResend"), x.disabled = /*timer*/
4024
4026
  e[3], A(t, "class", "Container SmsVerificationContainer");
4025
4027
  },
4026
- m(p, C) {
4027
- J(p, t, C), y(t, r), R.m(r, null), y(t, n), y(t, i), y(i, o), y(o, a), y(o, l), y(o, u), y(i, h), y(i, c), it(
4028
+ m(p, I) {
4029
+ J(p, t, I), y(t, r), R.m(r, null), y(t, n), y(t, i), y(i, o), y(o, a), y(o, l), y(o, u), y(i, h), y(i, c), it(
4028
4030
  c,
4029
4031
  /*smsCode*/
4030
4032
  e[1]
@@ -4055,25 +4057,25 @@ function _i(e) {
4055
4057
  )
4056
4058
  ], le = !0);
4057
4059
  },
4058
- p(p, [C]) {
4059
- z === (z = ce(p)) && R ? R.p(p, C) : (R.d(1), R = z(p), R && (R.c(), R.m(r, null))), C & /*$_*/
4060
+ p(p, [I]) {
4061
+ z === (z = ce(p)) && R ? R.p(p, I) : (R.d(1), R = z(p), R && (R.c(), R.m(r, null))), I & /*$_*/
4060
4062
  32 && s !== (s = /*$_*/
4061
- p[5]("code") + "") && k(a, s), C & /*smsCode*/
4063
+ p[5]("code") + "") && k(a, s), I & /*smsCode*/
4062
4064
  2 && c.value !== /*smsCode*/
4063
4065
  p[1] && it(
4064
4066
  c,
4065
4067
  /*smsCode*/
4066
4068
  p[1]
4067
4069
  ), /*isSmsValid*/
4068
- p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w = _t(p), w.c(), w.m(i, null)), C & /*isSmsValid*/
4070
+ p[2] ? w && (w.d(1), w = null) : w ? w.p(p, I) : (w = _t(p), w.c(), w.m(i, null)), I & /*isSmsValid*/
4069
4071
  4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
4070
4072
  p[2] ? "" : "InvalidField")) && A(i, "class", g), /*timer*/
4071
- p[3] ? P ? P.p(p, C) : (P = xt(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), C & /*$_*/
4073
+ p[3] ? P ? P.p(p, I) : (P = xt(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), I & /*$_*/
4072
4074
  32 && H !== (H = /*$_*/
4073
- p[5]("activate") + "") && k(L, H), C & /*$_*/
4074
- 32 && O !== (O = /*$_*/
4075
- p[5]("resend") + "") && k(F, O), /*timer*/
4076
- p[3] ? f ? f.p(p, C) : (f = St(p), f.c(), f.m(x, null)) : f && (f.d(1), f = null), C & /*timer*/
4075
+ p[5]("activate") + "") && k(L, H), I & /*$_*/
4076
+ 32 && C !== (C = /*$_*/
4077
+ p[5]("resend") + "") && k(F, C), /*timer*/
4078
+ p[3] ? f ? f.p(p, I) : (f = St(p), f.c(), f.m(x, null)) : f && (f.d(1), f = null), I & /*timer*/
4077
4079
  8 && (x.disabled = /*timer*/
4078
4080
  p[3]);
4079
4081
  },
@@ -4088,12 +4090,12 @@ function xi(e, t, r) {
4088
4090
  let n;
4089
4091
  ir(e, di, (f) => r(5, n = f));
4090
4092
  let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: s = "" } = t, { smstemplate: a = "Please use this code {0} to activate your accout" } = t, { number: l = "" } = t, { mbsource: u } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g, v = !0, _ = !1, T, H, L = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - L, x = 60 - Math.floor(B);
4091
- const O = { numeric: /^[0-9]{0,6}$/ };
4093
+ const C = { numeric: /^[0-9]{0,6}$/ };
4092
4094
  mi({ withLocale: "en", translations: {} });
4093
4095
  const F = () => {
4094
4096
  fetch(d).then((p) => p.json()).then((p) => {
4095
- Object.keys(p).forEach((C) => {
4096
- yt(C, p[C]);
4097
+ Object.keys(p).forEach((I) => {
4098
+ yt(I, p[I]);
4097
4099
  });
4098
4100
  }).catch((p) => {
4099
4101
  console.log(p);
@@ -4157,7 +4159,7 @@ function xi(e, t, r) {
4157
4159
  1e3
4158
4160
  ));
4159
4161
  }, z = (f) => {
4160
- !O.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
4162
+ !C.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
4161
4163
  };
4162
4164
  cr(() => {
4163
4165
  if (!s || !l) {