@everymatrix/general-player-login-form 1.54.8 → 1.54.10

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 fn = Object.defineProperty, dn = Object.defineProperties;
2
2
  var mn = Object.getOwnPropertyDescriptors;
3
3
  var Wt = Object.getOwnPropertySymbols;
4
4
  var pn = Object.prototype.hasOwnProperty, gn = Object.prototype.propertyIsEnumerable;
5
- var yt = (e, t, r) => t in e ? fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Zt = (e, t) => {
5
+ var vt = (e, t, r) => t in e ? fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Zt = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- pn.call(t, r) && yt(e, r, t[r]);
7
+ pn.call(t, r) && vt(e, r, t[r]);
8
8
  if (Wt)
9
9
  for (var r of Wt(t))
10
- gn.call(t, r) && yt(e, r, t[r]);
10
+ gn.call(t, r) && vt(e, r, t[r]);
11
11
  return e;
12
12
  }, qt = (e, t) => dn(e, mn(t));
13
- var Y = (e, t, r) => yt(e, typeof t != "symbol" ? t + "" : t, r);
13
+ var Y = (e, t, r) => vt(e, typeof t != "symbol" ? t + "" : t, r);
14
14
  var et = (e, t, r) => new Promise((n, i) => {
15
15
  var o = (u) => {
16
16
  try {
@@ -60,10 +60,10 @@ function Ar(e, ...t) {
60
60
  const r = e.subscribe(...t);
61
61
  return r.unsubscribe ? () => r.unsubscribe() : r;
62
62
  }
63
- function yn(e, t, r) {
63
+ function vn(e, t, r) {
64
64
  e.$$.on_destroy.push(Ar(t, r));
65
65
  }
66
- const vn = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
66
+ const yn = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
67
67
  // @ts-ignore Node typings have this
68
68
  global
69
69
  );
@@ -164,7 +164,7 @@ function An() {
164
164
  function Ht(e) {
165
165
  He.push(e);
166
166
  }
167
- const vt = /* @__PURE__ */ new Set();
167
+ const yt = /* @__PURE__ */ new Set();
168
168
  let Se = 0;
169
169
  function te() {
170
170
  if (Se !== 0)
@@ -182,13 +182,13 @@ function te() {
182
182
  for (Xe(null), Te.length = 0, Se = 0; ut.length; ) ut.pop()();
183
183
  for (let t = 0; t < He.length; t += 1) {
184
184
  const r = He[t];
185
- vt.has(r) || (vt.add(r), r());
185
+ yt.has(r) || (yt.add(r), r());
186
186
  }
187
187
  He.length = 0;
188
188
  } while (Te.length);
189
189
  for (; Yt.length; )
190
190
  Yt.pop()();
191
- Tt = !1, vt.clear(), Xe(e);
191
+ Tt = !1, yt.clear(), Xe(e);
192
192
  }
193
193
  function In(e) {
194
194
  if (e.fragment !== null) {
@@ -246,8 +246,8 @@ function Un(e, t, r, n, i, o, s = null, a = [-1]) {
246
246
  s && s(l.root);
247
247
  let c = !1;
248
248
  if (l.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
249
- const v = b.length ? b[0] : d;
250
- return l.ctx && i(l.ctx[f], l.ctx[f] = v) && (!l.skip_bound && l.bound[f] && l.bound[f](v), c && Rn(e, f)), d;
249
+ const y = b.length ? b[0] : d;
250
+ return l.ctx && i(l.ctx[f], l.ctx[f] = y) && (!l.skip_bound && l.bound[f] && l.bound[f](y), c && Rn(e, f)), d;
251
251
  }) : [], l.update(), c = !0, Le(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
252
252
  if (t.hydrate) {
253
253
  const f = Sn(t.target);
@@ -616,9 +616,9 @@ var ft = function() {
616
616
  this._finalizers = null;
617
617
  try {
618
618
  for (var d = At(f), b = d.next(); !b.done; b = d.next()) {
619
- var v = b.value;
619
+ var y = b.value;
620
620
  try {
621
- Kt(v);
621
+ Kt(y);
622
622
  } catch (g) {
623
623
  o = o != null ? o : [], g instanceof _t ? o = Be(Be([], It(o)), It(g.errors)) : o.push(g);
624
624
  }
@@ -1045,11 +1045,11 @@ function Me(e, t, r) {
1045
1045
  if (c)
1046
1046
  return;
1047
1047
  f();
1048
- const v = t(n ? l[0] : l, s, a);
1049
- o ? s(v) : f = $t(v) ? v : Z;
1048
+ const y = t(n ? l[0] : l, s, a);
1049
+ o ? s(y) : f = $t(y) ? y : Z;
1050
1050
  }, b = i.map(
1051
- (v, g) => Ar(
1052
- v,
1051
+ (y, g) => Ar(
1052
+ y,
1053
1053
  (x) => {
1054
1054
  l[g] = x, c &= ~(1 << g), u && d();
1055
1055
  },
@@ -1136,7 +1136,7 @@ Ae.all = function(t, r) {
1136
1136
  }, {});
1137
1137
  };
1138
1138
  var gi = Ae, bi = gi;
1139
- const yi = /* @__PURE__ */ ni(bi);
1139
+ const vi = /* @__PURE__ */ ni(bi);
1140
1140
  function Et(e, t) {
1141
1141
  var r = t && t.cache ? t.cache : Pi, n = t && t.serializer ? t.serializer : xi, i = t && t.strategy ? t.strategy : Ei;
1142
1142
  return i(e, {
@@ -1144,11 +1144,11 @@ function Et(e, t) {
1144
1144
  serializer: n
1145
1145
  });
1146
1146
  }
1147
- function vi(e) {
1147
+ function yi(e) {
1148
1148
  return e == null || typeof e == "number" || typeof e == "boolean";
1149
1149
  }
1150
1150
  function _i(e, t, r, n) {
1151
- var i = vi(n) ? n : r(n), o = t.get(i);
1151
+ var i = yi(n) ? n : r(n), o = t.get(i);
1152
1152
  return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
1153
1153
  }
1154
1154
  function Fr(e, t, r) {
@@ -3293,9 +3293,9 @@ var Qi = (
3293
3293
  var b = E(c, this.clonePosition());
3294
3294
  l = { style: d, styleLocation: b };
3295
3295
  }
3296
- var v = this.tryParseArgumentClose(i);
3297
- if (v.err)
3298
- return v;
3296
+ var y = this.tryParseArgumentClose(i);
3297
+ if (y.err)
3298
+ return y;
3299
3299
  var g = E(i, this.clonePosition());
3300
3300
  if (l && hr(l == null ? void 0 : l.style, "::", 0)) {
3301
3301
  var x = qi(l.style.slice(2));
@@ -3352,9 +3352,9 @@ var Qi = (
3352
3352
  var J = this.tryParsePluralOrSelectOptions(t, a, r, R);
3353
3353
  if (J.err)
3354
3354
  return J;
3355
- var v = this.tryParseArgumentClose(i);
3356
- if (v.err)
3357
- return v;
3355
+ var y = this.tryParseArgumentClose(i);
3356
+ if (y.err)
3357
+ return y;
3358
3358
  var B = E(i, this.clonePosition());
3359
3359
  return a === "select" ? {
3360
3360
  val: {
@@ -3450,16 +3450,16 @@ var Qi = (
3450
3450
  var b = this.clonePosition();
3451
3451
  if (!this.bumpIf("{"))
3452
3452
  return this.error(r === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, E(this.clonePosition(), this.clonePosition()));
3453
- var v = this.parseMessage(t + 1, r, n);
3454
- if (v.err)
3455
- return v;
3453
+ var y = this.parseMessage(t + 1, r, n);
3454
+ if (y.err)
3455
+ return y;
3456
3456
  var g = this.tryParseArgumentClose(b);
3457
3457
  if (g.err)
3458
3458
  return g;
3459
3459
  a.push([
3460
3460
  l,
3461
3461
  {
3462
- value: v.val,
3462
+ value: y.val,
3463
3463
  location: E(b, this.clonePosition())
3464
3464
  }
3465
3465
  ]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
@@ -3690,10 +3690,10 @@ function at(e, t, r, n, i, o, s) {
3690
3690
  continue;
3691
3691
  }
3692
3692
  if (zr(c)) {
3693
- var v = c.children, g = c.value, x = i[g];
3693
+ var y = c.children, g = c.value, x = i[g];
3694
3694
  if (!oo(x))
3695
3695
  throw new ro(g, "function", s);
3696
- var M = at(v, t, r, n, i, o), q = x(M.map(function(G) {
3696
+ var M = at(y, t, r, n, i, o), q = x(M.map(function(G) {
3697
3697
  return G.value;
3698
3698
  }));
3699
3699
  Array.isArray(q) || (q = [q]), a.push.apply(a, q.map(function(G) {
@@ -3954,7 +3954,7 @@ function po(e) {
3954
3954
  }
3955
3955
  }
3956
3956
  function rn(e, ...t) {
3957
- delete he[e], Ne.update((r) => (r[e] = yi.all([r[e] || {}, ...t]), r));
3957
+ delete he[e], Ne.update((r) => (r[e] = vi.all([r[e] || {}, ...t]), r));
3958
3958
  }
3959
3959
  Me(
3960
3960
  [Ne],
@@ -3982,7 +3982,7 @@ function Dt(e) {
3982
3982
  }
3983
3983
  );
3984
3984
  }
3985
- function yo(e, t) {
3985
+ function vo(e, t) {
3986
3986
  return Promise.all(
3987
3987
  t.map((n) => (go(e, n), n().then((i) => i.default || i)))
3988
3988
  ).then((n) => rn(e, ...n));
@@ -3994,7 +3994,7 @@ function on(e) {
3994
3994
  const t = bo(e);
3995
3995
  return ze[e] = Promise.all(
3996
3996
  t.map(
3997
- ([r, n]) => yo(r, n)
3997
+ ([r, n]) => vo(r, n)
3998
3998
  )
3999
3999
  ).then(() => {
4000
4000
  if (Dt(e))
@@ -4002,7 +4002,7 @@ function on(e) {
4002
4002
  delete ze[e];
4003
4003
  }), ze[e];
4004
4004
  }
4005
- const vo = {
4005
+ const yo = {
4006
4006
  number: {
4007
4007
  scientific: { notation: "scientific" },
4008
4008
  engineering: { notation: "engineering" },
@@ -4034,7 +4034,7 @@ const vo = {
4034
4034
  }, _o = {
4035
4035
  fallbackLocale: null,
4036
4036
  loadingDelay: 200,
4037
- formats: vo,
4037
+ formats: yo,
4038
4038
  warnOnMissingMessages: !0,
4039
4039
  handleMissingMessage: void 0,
4040
4040
  ignoreTag: !0
@@ -4089,12 +4089,12 @@ const Ao = (e) => {
4089
4089
  return i in t ? t[i] : t[i] = e(n);
4090
4090
  };
4091
4091
  };
4092
- var Io = Object.defineProperty, ht = Object.getOwnPropertySymbols, sn = Object.prototype.hasOwnProperty, an = Object.prototype.propertyIsEnumerable, yr = (e, t, r) => t in e ? Io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jt = (e, t) => {
4092
+ var Io = Object.defineProperty, ht = Object.getOwnPropertySymbols, sn = Object.prototype.hasOwnProperty, an = Object.prototype.propertyIsEnumerable, vr = (e, t, r) => t in e ? Io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jt = (e, t) => {
4093
4093
  for (var r in t || (t = {}))
4094
- sn.call(t, r) && yr(e, r, t[r]);
4094
+ sn.call(t, r) && vr(e, r, t[r]);
4095
4095
  if (ht)
4096
4096
  for (var r of ht(t))
4097
- an.call(t, r) && yr(e, r, t[r]);
4097
+ an.call(t, r) && vr(e, r, t[r]);
4098
4098
  return e;
4099
4099
  }, Re = (e, t) => {
4100
4100
  var r = {};
@@ -4210,7 +4210,7 @@ if (typeof window != "undefined") {
4210
4210
  }
4211
4211
  };
4212
4212
  };
4213
- customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-DxeI1pC9.js").then(({ default: t }) => {
4213
+ customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-CmqTxkUU.js").then(({ default: t }) => {
4214
4214
  !customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
4215
4215
  });
4216
4216
  }
@@ -4219,7 +4219,7 @@ function zo({ withLocale: e, translations: t }) {
4219
4219
  r == null && (Ne.set(t), fe.set(e));
4220
4220
  });
4221
4221
  }
4222
- function vr(e, t) {
4222
+ function yr(e, t) {
4223
4223
  rn(e, t);
4224
4224
  }
4225
4225
  function Xo(e) {
@@ -4369,7 +4369,7 @@ const _r = {
4369
4369
  loginForgotPassword: "I forgot my password",
4370
4370
  successMessage: "Login successful"
4371
4371
  }
4372
- }, { document: Er } = vn;
4372
+ }, { document: Er } = yn;
4373
4373
  function Wo(e) {
4374
4374
  _n(e, "svelte-b3dr9t", '.grecaptcha-badge{opacity:0}.PlayerLoginFormWrapper{height:100%}.FormContainer{width:100%}.FormLogin{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));padding:50px}.FormHeaderTitle{color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A));font-size:20px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.PasswordContainer{position:relative}.FormRequired{color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));font-size:14px;font-weight:300;margin:5px 0 0 0}.FormRegisterCallToAction{color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.FormContent{padding-top:20px}.UserContainer,.PasswordContainer,.CaptchaContainer{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;position:relative}.UserContainer label,.PasswordContainer label,.CaptchaContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserContainer input,.PasswordContainer input,.CaptchaContainer input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.CaptchaContainer.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.PasswordContainer input{padding:5px 30px 5px 15px}.TogglePasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B))}.SignInButton{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer}.SignInButton[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}.ForgotPasswordButton{border:0;background:transparent;font-size:14px;font-weight:300;color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));margin-top:15px;cursor:pointer}.PasswordContainer,.UserContainer{padding-bottom:40px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;position:absolute;top:55px;padding-top:5px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.FormMobileContainer{height:100%}.FormMobileContainer .FormLogin{padding:40px 20px}.FormMobileContainer .SignInButton,.FormMobileContainer .UserContainer input,.FormMobileContainer .PasswordContainer input,.FormMobileContainer .CaptchaContainer{max-width:unset}.ModalLoaderWrapper{display:flex;height:100%;align-items:center}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:Loader 1.2s linear infinite}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
4375
4375
  }
@@ -4445,13 +4445,13 @@ function Jo(e) {
4445
4445
  ), u, l, c, f = (
4446
4446
  /*$_*/
4447
4447
  e[21]("loginSubtitleRegister") + ""
4448
- ), d, b, v, g, x, M, q = (
4448
+ ), d, b, y, g, x, M, q = (
4449
4449
  /*$_*/
4450
4450
  e[21]("loginUsername") + ""
4451
- ), H, R, G, J, B, oe, ne, ie, de, A, W, ye = (
4451
+ ), H, R, G, J, B, oe, ne, ie, de, A, W, ve = (
4452
4452
  /*$_*/
4453
4453
  e[21]("loginPassword") + ""
4454
- ), Ue, Fe, se, Je, C, ve, De, _e, Ee, me, ke, pe, ee, ge = (
4454
+ ), Ue, Fe, se, Je, C, ye, De, _e, Ee, me, ke, pe, ee, ge = (
4455
4455
  /*$_*/
4456
4456
  e[21]("loginButton") + ""
4457
4457
  ), $e, Qe, ce, we = (
@@ -4461,10 +4461,10 @@ function Jo(e) {
4461
4461
  /*invalidName*/
4462
4462
  e[13] && xr(e)
4463
4463
  );
4464
- function Ke(y, P) {
4464
+ function Ke(v, P) {
4465
4465
  return (
4466
4466
  /*isPasswordVisible*/
4467
- y[18] ? Ko : Yo
4467
+ v[18] ? Ko : Yo
4468
4468
  );
4469
4469
  }
4470
4470
  let xe = Ke(e), Q = xe(e), F = (
@@ -4481,15 +4481,15 @@ function Jo(e) {
4481
4481
  );
4482
4482
  return {
4483
4483
  c() {
4484
- t = S("div"), r = S("h4"), i = N(n), o = z(), s = S("p"), u = N(a), l = z(), c = S("span"), d = N(f), b = z(), v = S("div"), g = S("form"), x = S("div"), M = S("label"), H = N(q), R = N(":"), G = S("span"), G.textContent = "*", J = z(), B = S("input"), ne = z(), U && U.c(), de = z(), A = S("div"), W = S("label"), Ue = N(ye), Fe = N(":"), se = S("span"), se.textContent = "*", Je = z(), C = S("input"), De = z(), Q.c(), _e = z(), F && F.c(), Ee = z(), D && D.c(), ke = z(), k && k.c(), pe = z(), ee = S("button"), $e = N(ge), Qe = z(), ce = S("button"), Ge = N(we), h(r, "class", "FormHeaderTitle"), h(c, "class", "FormRegisterCallToAction"), h(s, "class", "FormHeaderSubtitle"), h(t, "class", "FormHeader"), h(G, "class", "FormRequired"), h(M, "for", "username"), h(B, "type", "text"), h(B, "id", "email"), h(B, "name", "email"), h(B, "autocapitalize", "none"), h(B, "autocomplete", oe = /*savecredentials*/
4484
+ t = S("div"), r = S("h4"), i = N(n), o = z(), s = S("p"), u = N(a), l = z(), c = S("span"), d = N(f), b = z(), y = S("div"), g = S("form"), x = S("div"), M = S("label"), H = N(q), R = N(":"), G = S("span"), G.textContent = "*", J = z(), B = S("input"), ne = z(), U && U.c(), de = z(), A = S("div"), W = S("label"), Ue = N(ve), Fe = N(":"), se = S("span"), se.textContent = "*", Je = z(), C = S("input"), De = z(), Q.c(), _e = z(), F && F.c(), Ee = z(), D && D.c(), ke = z(), k && k.c(), pe = z(), ee = S("button"), $e = N(ge), Qe = z(), ce = S("button"), Ge = N(we), h(r, "class", "FormHeaderTitle"), h(c, "class", "FormRegisterCallToAction"), h(s, "class", "FormHeaderSubtitle"), h(t, "class", "FormHeader"), h(G, "class", "FormRequired"), h(M, "for", "username"), h(B, "type", "text"), h(B, "id", "email"), h(B, "name", "email"), h(B, "autocapitalize", "none"), h(B, "autocomplete", oe = /*savecredentials*/
4485
4485
  e[5] ? "username email" : "off"), B.required = !0, h(x, "class", ie = "UserContainer " + /*invalidName*/
4486
- (e[13] ? "InvalidField" : "")), h(se, "class", "FormRequired"), h(W, "for", "current-password"), h(C, "type", "password"), h(C, "name", "current-password"), h(C, "id", "current-password"), h(C, "autocapitalize", "none"), h(C, "autocomplete", ve = /*savecredentials*/
4486
+ (e[13] ? "InvalidField" : "")), h(se, "class", "FormRequired"), h(W, "for", "current-password"), h(C, "type", "password"), h(C, "name", "current-password"), h(C, "id", "current-password"), h(C, "autocapitalize", "none"), h(C, "autocomplete", ye = /*savecredentials*/
4487
4487
  e[5] ? "current-password" : "off"), h(C, "aria-describedby", "password-constraints"), C.required = !0, h(A, "class", me = "PasswordContainer " + /*invalidPassword*/
4488
4488
  (e[14] ? "InvalidField" : "")), h(ee, "class", "SignInButton"), ee.disabled = /*isFormDataInvalid*/
4489
- e[19], h(ee, "id", "signin-button"), h(ce, "class", "ForgotPasswordButton"), h(g, "id", "signin"), h(v, "class", "FormContent");
4489
+ e[19], h(ee, "id", "signin-button"), h(ce, "class", "ForgotPasswordButton"), h(g, "id", "signin"), h(y, "class", "FormContent");
4490
4490
  },
4491
- m(y, P) {
4492
- L(y, t, P), p(t, r), p(r, i), p(t, o), p(t, s), p(s, u), p(s, l), p(s, c), p(c, d), L(y, b, P), L(y, v, P), p(v, g), p(g, x), p(x, M), p(M, H), p(M, R), p(M, G), p(x, J), p(x, B), rt(
4491
+ m(v, P) {
4492
+ L(v, t, P), p(t, r), p(r, i), p(t, o), p(t, s), p(s, u), p(s, l), p(s, c), p(c, d), L(v, b, P), L(v, y, P), p(y, g), p(g, x), p(x, M), p(M, H), p(M, R), p(M, G), p(x, J), p(x, B), rt(
4493
4493
  B,
4494
4494
  /*userValue*/
4495
4495
  e[11]
@@ -4542,53 +4542,53 @@ function Jo(e) {
4542
4542
  )
4543
4543
  ], je = !0);
4544
4544
  },
4545
- p(y, P) {
4545
+ p(v, P) {
4546
4546
  P[0] & /*$_*/
4547
4547
  2097152 && n !== (n = /*$_*/
4548
- y[21]("loginTitle") + "") && re(i, n), P[0] & /*$_*/
4548
+ v[21]("loginTitle") + "") && re(i, n), P[0] & /*$_*/
4549
4549
  2097152 && a !== (a = /*$_*/
4550
- y[21]("loginSubtitle") + "") && re(u, a), P[0] & /*$_*/
4550
+ v[21]("loginSubtitle") + "") && re(u, a), P[0] & /*$_*/
4551
4551
  2097152 && f !== (f = /*$_*/
4552
- y[21]("loginSubtitleRegister") + "") && re(d, f), P[0] & /*$_*/
4552
+ v[21]("loginSubtitleRegister") + "") && re(d, f), P[0] & /*$_*/
4553
4553
  2097152 && q !== (q = /*$_*/
4554
- y[21]("loginUsername") + "") && re(H, q), P[0] & /*savecredentials*/
4554
+ v[21]("loginUsername") + "") && re(H, q), P[0] & /*savecredentials*/
4555
4555
  32 && oe !== (oe = /*savecredentials*/
4556
- y[5] ? "username email" : "off") && h(B, "autocomplete", oe), P[0] & /*userValue*/
4556
+ v[5] ? "username email" : "off") && h(B, "autocomplete", oe), P[0] & /*userValue*/
4557
4557
  2048 && B.value !== /*userValue*/
4558
- y[11] && rt(
4558
+ v[11] && rt(
4559
4559
  B,
4560
4560
  /*userValue*/
4561
- y[11]
4561
+ v[11]
4562
4562
  ), /*invalidName*/
4563
- y[13] ? U ? U.p(y, P) : (U = xr(y), U.c(), U.m(x, null)) : U && (U.d(1), U = null), P[0] & /*invalidName*/
4563
+ v[13] ? U ? U.p(v, P) : (U = xr(v), U.c(), U.m(x, null)) : U && (U.d(1), U = null), P[0] & /*invalidName*/
4564
4564
  8192 && ie !== (ie = "UserContainer " + /*invalidName*/
4565
- (y[13] ? "InvalidField" : "")) && h(x, "class", ie), P[0] & /*$_*/
4566
- 2097152 && ye !== (ye = /*$_*/
4567
- y[21]("loginPassword") + "") && re(Ue, ye), P[0] & /*savecredentials*/
4568
- 32 && ve !== (ve = /*savecredentials*/
4569
- y[5] ? "current-password" : "off") && h(C, "autocomplete", ve), P[0] & /*userPassword*/
4565
+ (v[13] ? "InvalidField" : "")) && h(x, "class", ie), P[0] & /*$_*/
4566
+ 2097152 && ve !== (ve = /*$_*/
4567
+ v[21]("loginPassword") + "") && re(Ue, ve), P[0] & /*savecredentials*/
4568
+ 32 && ye !== (ye = /*savecredentials*/
4569
+ v[5] ? "current-password" : "off") && h(C, "autocomplete", ye), P[0] & /*userPassword*/
4570
4570
  4096 && C.value !== /*userPassword*/
4571
- y[12] && rt(
4571
+ v[12] && rt(
4572
4572
  C,
4573
4573
  /*userPassword*/
4574
- y[12]
4575
- ), xe === (xe = Ke(y)) && Q ? Q.p(y, P) : (Q.d(1), Q = xe(y), Q && (Q.c(), Q.m(A, _e))), /*invalidPassword*/
4576
- y[14] && /*simplepasswordvalidation*/
4577
- y[2] !== "true" ? F ? F.p(y, P) : (F = Sr(y), F.c(), F.m(A, Ee)) : F && (F.d(1), F = null), /*invalidPassword*/
4578
- y[14] && /*simplepasswordvalidation*/
4579
- y[2] === "true" ? D ? D.p(y, P) : (D = Pr(y), D.c(), D.m(A, null)) : D && (D.d(1), D = null), P[0] & /*invalidPassword*/
4574
+ v[12]
4575
+ ), xe === (xe = Ke(v)) && Q ? Q.p(v, P) : (Q.d(1), Q = xe(v), Q && (Q.c(), Q.m(A, _e))), /*invalidPassword*/
4576
+ v[14] && /*simplepasswordvalidation*/
4577
+ v[2] !== "true" ? F ? F.p(v, P) : (F = Sr(v), F.c(), F.m(A, Ee)) : F && (F.d(1), F = null), /*invalidPassword*/
4578
+ v[14] && /*simplepasswordvalidation*/
4579
+ v[2] === "true" ? D ? D.p(v, P) : (D = Pr(v), D.c(), D.m(A, null)) : D && (D.d(1), D = null), P[0] & /*invalidPassword*/
4580
4580
  16384 && me !== (me = "PasswordContainer " + /*invalidPassword*/
4581
- (y[14] ? "InvalidField" : "")) && h(A, "class", me), /*errorMessage*/
4582
- y[15] ? k ? k.p(y, P) : (k = Tr(y), k.c(), k.m(g, pe)) : k && (k.d(1), k = null), P[0] & /*$_*/
4581
+ (v[14] ? "InvalidField" : "")) && h(A, "class", me), /*errorMessage*/
4582
+ v[15] ? k ? k.p(v, P) : (k = Tr(v), k.c(), k.m(g, pe)) : k && (k.d(1), k = null), P[0] & /*$_*/
4583
4583
  2097152 && ge !== (ge = /*$_*/
4584
- y[21]("loginButton") + "") && re($e, ge), P[0] & /*isFormDataInvalid*/
4584
+ v[21]("loginButton") + "") && re($e, ge), P[0] & /*isFormDataInvalid*/
4585
4585
  524288 && (ee.disabled = /*isFormDataInvalid*/
4586
- y[19]), P[0] & /*$_*/
4586
+ v[19]), P[0] & /*$_*/
4587
4587
  2097152 && we !== (we = /*$_*/
4588
- y[21]("loginForgotPassword") + "") && re(Ge, we);
4588
+ v[21]("loginForgotPassword") + "") && re(Ge, we);
4589
4589
  },
4590
- d(y) {
4591
- y && (I(t), I(b), I(v)), U && U.d(), e[35](null), Q.d(), F && F.d(), D && D.d(), k && k.d(), je = !1, Le(Ye);
4590
+ d(v) {
4591
+ v && (I(t), I(b), I(y)), U && U.d(), e[35](null), Q.d(), F && F.d(), D && D.d(), k && k.d(), je = !1, Le(Ye);
4592
4592
  }
4593
4593
  };
4594
4594
  }
@@ -4718,22 +4718,22 @@ function Yo(e) {
4718
4718
  };
4719
4719
  }
4720
4720
  function Ko(e) {
4721
- let t, r, n, i, o, s, a, u, l, c, f, d, b, v, g;
4721
+ let t, r, n, i, o, s, a, u, l, c, f, d, b, y, g;
4722
4722
  return {
4723
4723
  c() {
4724
4724
  t = O("svg"), r = O("defs"), n = O("style"), i = N(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"), o = O("g"), s = O("circle"), a = O("g"), u = O("path"), l = O("path"), c = O("g"), f = O("path"), d = O("path"), b = O("rect"), h(s, "class", "a"), h(s, "cx", "0.05"), h(s, "cy", "0.05"), h(s, "r", "0.05"), h(s, "transform", "translate(121.017 31.148)"), h(u, "class", "a"), h(u, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"), h(u, "transform", "translate(-142.164 -39.123)"), h(l, "class", "a"), h(l, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"), h(l, "transform", "translate(-136.413 -42.068)"), h(a, "transform", "translate(117.499 27.37)"), h(f, "class", "a"), h(f, "d", "M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"), h(f, "transform", "translate(-110.856 -33.157)"), h(d, "class", "a"), h(d, "d", "M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"), h(d, "transform", "translate(-130.743 -29.617)"), h(c, "transform", "translate(110.856 24.899)"), h(b, "class", "a"), h(b, "width", "0.972"), h(b, "height", "15.861"), h(b, "rx", "0.486"), h(b, "transform", "translate(114.827 23.858) rotate(-39.315)"), h(o, "transform", "translate(-110.856 -23.242)"), h(t, "class", "TogglePasswordVisibility"), h(t, "xmlns", "http://www.w3.org/2000/svg"), h(t, "width", "18.844"), h(t, "height", "12.887"), h(t, "viewBox", "0 0 18.844 12.887");
4725
4725
  },
4726
4726
  m(x, M) {
4727
- L(x, t, M), p(t, r), p(r, n), p(n, i), p(t, o), p(o, s), p(o, a), p(a, u), p(a, l), p(o, c), p(c, f), p(c, d), p(o, b), v || (g = ae(
4727
+ L(x, t, M), p(t, r), p(r, n), p(n, i), p(t, o), p(o, s), p(o, a), p(a, u), p(a, l), p(o, c), p(c, f), p(c, d), p(o, b), y || (g = ae(
4728
4728
  t,
4729
4729
  "click",
4730
4730
  /*click_handler_1*/
4731
4731
  e[36]
4732
- ), v = !0);
4732
+ ), y = !0);
4733
4733
  },
4734
4734
  p: Z,
4735
4735
  d(x) {
4736
- x && I(t), v = !1, g();
4736
+ x && I(t), y = !1, g();
4737
4737
  }
4738
4738
  };
4739
4739
  }
@@ -4850,8 +4850,8 @@ function es(e) {
4850
4850
  let ts = "Please use this code {0} to activate your account";
4851
4851
  function rs(e, t, r) {
4852
4852
  let n;
4853
- yn(e, jo, (m) => r(21, n = m));
4854
- let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: u = "false" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: f = "" } = t, { savecredentials: d = "" } = t, b, v, g = !1, x, M = !1, q = window.navigator.userAgent, H = "", R = "", G = { username: "", password: "" }, J = !1, B = !1, oe = "", ne = !1, ie, de = !1, A = !0, W, ye = +localStorage.getItem("smsTimer") || 0, Ue = Date.now() / 1e3 - ye, Fe = localStorage.getItem("smsValidation") == "true" && Ue < 60, se = {
4853
+ vn(e, jo, (m) => r(21, n = m));
4854
+ let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: u = "false" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: f = "" } = t, { savecredentials: d = "" } = t, b, y, g = !1, x, M = !1, q = window.navigator.userAgent, H = "", R = "", G = { username: "", password: "" }, J = !1, B = !1, oe = "", ne = !1, ie, de = !1, A = !0, W, ve = +localStorage.getItem("smsTimer") || 0, Ue = Date.now() / 1e3 - ve, Fe = localStorage.getItem("smsValidation") == "true" && Ue < 60, se = {
4855
4855
  user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,
4856
4856
  email: /^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,
4857
4857
  password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
@@ -4860,14 +4860,14 @@ function rs(e, t, r) {
4860
4860
  const Je = () => {
4861
4861
  fetch(f).then(($) => $.json()).then(($) => {
4862
4862
  Object.keys($).forEach((j) => {
4863
- vr(j, $[j]);
4863
+ yr(j, $[j]);
4864
4864
  });
4865
4865
  }).catch(($) => {
4866
4866
  console.log($);
4867
4867
  });
4868
4868
  };
4869
4869
  Object.keys(_r).forEach((m) => {
4870
- vr(m, _r[m]);
4870
+ yr(m, _r[m]);
4871
4871
  });
4872
4872
  const C = () => new Promise((m, $) => {
4873
4873
  grecaptcha.ready(() => {
@@ -4875,7 +4875,7 @@ function rs(e, t, r) {
4875
4875
  m(j);
4876
4876
  });
4877
4877
  });
4878
- }), ve = () => {
4878
+ }), ye = () => {
4879
4879
  u == "true" && (se.password = /^(?!.* ).{8,20}$/);
4880
4880
  }, De = () => {
4881
4881
  r(18, de = !0), Ee();
@@ -4997,7 +4997,7 @@ function rs(e, t, r) {
4997
4997
  })
4998
4998
  }), Vt = yield j.json();
4999
4999
  if (j.ok) {
5000
- r(8, v = Vt.id);
5000
+ r(8, y = Vt.id);
5001
5001
  let zt = Vt.maxValidationAttempts;
5002
5002
  g = !1;
5003
5003
  } else
@@ -5040,7 +5040,7 @@ function rs(e, t, r) {
5040
5040
  ie = m, r(17, ie);
5041
5041
  });
5042
5042
  }
5043
- const k = () => _e(), y = () => De(), P = (m) => pe(m), un = (m) => ke(m);
5043
+ const k = () => _e(), v = () => De(), P = (m) => pe(m), un = (m) => ke(m);
5044
5044
  function cn(m) {
5045
5045
  ut[m ? "unshift" : "push"](() => {
5046
5046
  W = m, r(6, W);
@@ -5051,7 +5051,7 @@ function rs(e, t, r) {
5051
5051
  }, e.$$.update = () => {
5052
5052
  e.$$.dirty[0] & /*endpoint, lang*/
5053
5053
  536870913 && i && s && Ye(), e.$$.dirty[0] & /*simplepasswordvalidation*/
5054
- 4 && u && ve(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5054
+ 4 && u && ye(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
5055
5055
  72 && l && W && U(), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5056
5056
  80 && c && W && Ke(), e.$$.dirty[1] & /*translationurl*/
5057
5057
  1 && f && Je();
@@ -5064,7 +5064,7 @@ function rs(e, t, r) {
5064
5064
  d,
5065
5065
  W,
5066
5066
  b,
5067
- v,
5067
+ y,
5068
5068
  x,
5069
5069
  M,
5070
5070
  H,
@@ -5093,7 +5093,7 @@ function rs(e, t, r) {
5093
5093
  F,
5094
5094
  D,
5095
5095
  k,
5096
- y,
5096
+ v,
5097
5097
  P,
5098
5098
  un,
5099
5099
  cn
@@ -5201,7 +5201,7 @@ export {
5201
5201
  S as m,
5202
5202
  Z as n,
5203
5203
  z as o,
5204
- yn as p,
5204
+ vn as p,
5205
5205
  Hn as q,
5206
5206
  Le as r,
5207
5207
  Br as s,
@@ -14,7 +14,7 @@ var Y = (o, e, i) => new Promise((n, r) => {
14
14
  }, c = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(a, m);
15
15
  c((i = i.apply(o, e)).next());
16
16
  });
17
- import { $ as J, a as ee, b as te, S as ie, i as oe, s as re, f as E, c as ne, n as G, d as H, r as ae, e as C, g as K, h as p, j as N, k as l, l as q, m as w, o as z, t as k, p as se, q as le, u as de, v as ce, w as ue } from "./GeneralPlayerLoginForm-02QMdS8-.js";
17
+ import { $ as J, a as ee, b as te, S as ie, i as oe, s as re, f as E, c as ne, n as G, d as H, r as ae, e as C, g as K, h as p, j as N, k as l, l as q, m as w, o as z, t as k, p as se, q as le, u as de, v as ce, w as ue } from "./GeneralPlayerLoginForm-CvvPuW0t.js";
18
18
  function me({ withLocale: o, translations: e }) {
19
19
  J.subscribe((i) => {
20
20
  i == null && (ee.set(e), J.set(o));
@@ -1,4 +1,4 @@
1
- import { $ as Y, a as $, b as ee, S as te, i as ie, f as E, s as oe, c as re, d as ne, n as J, e as H, r as ae, g as C, h as G, j as f, k as N, l as s, m as q, o as k, p as z, t as S, q as se, u as le, v as de, w as ce } from "./GeneralPlayerLoginForm-CrntUfLK.js";
1
+ import { $ as Y, a as $, b as ee, S as te, i as ie, f as E, s as oe, c as re, d as ne, n as J, e as H, r as ae, g as C, h as G, j as f, k as N, l as s, m as q, o as k, p as z, t as S, q as se, u as le, v as de, w as ce } from "./GeneralPlayerLoginForm-CWtUjEfm.js";
2
2
  function ue({ withLocale: o, translations: e }) {
3
3
  Y.subscribe((i) => {
4
4
  i == null && ($.set(e), Y.set(o));
@@ -1 +1 @@
1
- "use strict";var V=(r,t,i)=>new Promise((a,o)=>{var s=d=>{try{c(i.next(d))}catch(g){o(g)}},m=d=>{try{c(i.throw(d))}catch(g){o(g)}},c=d=>d.done?a(d.value):Promise.resolve(d.value).then(s,m);c((i=i.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralPlayerLoginForm-Co2gKUgp.cjs");function O({withLocale:r,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function U(r,t){e.addMessages(r,t)}const H={en:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"},"zh-hk":{title:"请输入您在号码上收到的验证码",errorTitle:"您的代码无效,您可以重新发送代码并重试",code:"短信代码",smsCodeError:"短信验证码无效,请重新发送验证码",resendMessage:"新的验证码已发送至您的手机号码",activate:"激活账户",resend:"重发"},fr:{title:"Veuillez entrer le code de vérification que vous avez reçu sur votre numéro",errorTitle:"Votre code n'était pas valide, vous pouvez renvoyer le code et réessayer",code:"Code SMS",smsCodeError:"Code sms invalide, vous pouvez renvoyer le code",resendMessage:"Un nouveau code de vérification a été envoyé à votre numéro de téléphone.",activate:"Activer le compte",resend:"Renvoyer"},tr:{title:"Please enter the verification code you received on your number",errorTitle:"Kodunuz geçersizdi, kodu tekrar gönderip tekrar deneyebilirsiniz",code:"SMS kodu",smsCodeError:"Geçersiz sms kodu, kodu tekrar gönderebilirsiniz",resendMessage:"Telefon numaranıza yeni bir doğrulama kodu gönderildi.",activate:"Aktif hesap",resend:"Yeniden gönder",loginSMSHint:"Telefon numaranıza yeni bir doğrulama kodu gönderildi"},ro:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Un nou cod de verificare a fost trimis catre numarul dumneavoastra.",activate:"Activate Account",resend:"Resend"},es:{title:"Por favor ingrese su código de verificación enviado por mensaje de texto a su número de telefono",errorTitle:"Su código es invalido",code:"Código SMS",smsCodeError:"Código SMS invalido",resendMessage:"Un nuevo codigo de verificación ha sido enviado a tu número celular.",activate:"Activar Cuenta",resend:"Reenviar"},pt:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Um novo código de verificação foi enviado para o seu número de telefone.",activate:"Activate Account",resend:"Resend"},hr:{title:"Unesite verifikacijski kod koji ste primili na svoj broj telefona",errorTitle:"Vaš kod je nevažeći",code:"Sms kod",smsCodeError:"Nevažeći sms kod",resendMessage:"Novi verifkacijski kod poslan je na vaš broj telefona.",activate:"Aktiviraj račun",resend:"Ponovno pošalji",loginSMSHint:"Novi verifkacijski kod poslan je na vaš broj telefona"},"pt-br":{title:"Por favor, insira o código de verificação que você recebeu no seu número de celular",errorTitle:"Código inválido,vôce pode reenviar o código e tentar novamente",code:"Código SMS",smsCodeError:"Código SMS inválido,vôce pode reenviar o código",resendMessage:"Um novo código de verificação foi enviado para o seu número de celular.",activate:"Ativar conta",resend:"Reenviar",loginSMSHint:"Um novo código de verificação foi enviado para o seu número de celular."},"es-mx":{title:"Por favor ingrese el código de verificación que recibió en su número móvil",errorTitle:"Código inválido,Puede enviar el código e intentar de nuevo",code:"Código SMS",smsCodeError:"Código SMS inválido,Puede reenviar el código",resendMessage:"Un nuevo código de verificación ha sido enviado a su número móvil .",activate:"Activar Cuenta",resend:"Reenviar",loginSMSHint:"Un nuevo código de verificación ha sido enviado a su número móvil ."},"en-us":{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"}};function q(r){e.append_styles(r,"svelte-uutjwi","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}")}function Y(r){let t=r[5]("errorTitle")+"",i;return{c(){i=e.text(t)},m(a,o){e.insert(a,i,o)},p(a,o){o&32&&t!==(t=a[5]("errorTitle")+"")&&e.set_data(i,t)},d(a){a&&e.detach(i)}}}function G(r){let t=r[5]("title")+"",i;return{c(){i=e.text(t)},m(a,o){e.insert(a,i,o)},p(a,o){o&32&&t!==(t=a[5]("title")+"")&&e.set_data(i,t)},d(a){a&&e.detach(i)}}}function N(r){let t,i=r[5]("smsCodeError")+"",a;return{c(){t=e.element("p"),a=e.text(i),e.attr(t,"class","InvalidInput")},m(o,s){e.insert(o,t,s),e.append(t,a)},p(o,s){s&32&&i!==(i=o[5]("smsCodeError")+"")&&e.set_data(a,i)},d(o){o&&e.detach(t)}}}function L(r){let t,i=r[5]("resendMessage")+"",a;return{c(){t=e.element("p"),a=e.text(i),e.attr(t,"class","SmsVerificationResendMessage")},m(o,s){e.insert(o,t,s),e.append(t,a)},p(o,s){s&32&&i!==(i=o[5]("resendMessage")+"")&&e.set_data(a,i)},d(o){o&&e.detach(t)}}}function D(r){let t,i,a=r[4]<10?"0":"",o,s,m;return{c(){t=e.element("span"),i=e.text("(0:"),o=e.text(a),s=e.text(r[4]),m=e.text(")"),e.attr(t,"class","SmsVerificationResendTimer")},m(c,d){e.insert(c,t,d),e.append(t,i),e.append(t,o),e.append(t,s),e.append(t,m)},p(c,d){d&16&&a!==(a=c[4]<10?"0":"")&&e.set_data(o,a),d&16&&e.set_data(s,c[4])},d(c){c&&e.detach(t)}}}function J(r){let t,i,a,o,s,m=r[5]("code")+"",c,d,g,_,u,C,S,T,k,h,E=r[5]("activate")+"",F,w,b,j=r[5]("resend")+"",z,I,A,P;function R(n,l){return n[2]?G:Y}let M=R(r),y=M(r),p=!r[2]&&N(r),f=r[3]&&L(r),v=r[3]&&D(r);return{c(){t=e.element("div"),i=e.element("h3"),y.c(),a=e.space(),o=e.element("div"),s=e.element("label"),c=e.text(m),d=e.text(":"),g=e.element("span"),g.textContent="*",_=e.space(),u=e.element("input"),C=e.space(),p&&p.c(),T=e.space(),f&&f.c(),k=e.space(),h=e.element("button"),F=e.text(E),w=e.space(),b=e.element("button"),z=e.text(j),I=e.space(),v&&v.c(),e.attr(i,"class","Title"),e.attr(g,"class","FormRequired"),e.attr(s,"for","SmsCode"),e.attr(u,"type","text"),e.attr(u,"id","SmsCode"),e.attr(u,"inputmode","numeric"),e.attr(u,"pattern","[0-9]*"),e.attr(u,"maxlength","6"),e.attr(o,"class",S="Field SmsVerificationField "+(r[2]?"":"InvalidField")),e.attr(h,"class","Button SmsVerificationValidate"),e.attr(b,"class","Button SmsVerificationResend"),b.disabled=r[3],e.attr(t,"class","Container SmsVerificationContainer")},m(n,l){e.insert(n,t,l),e.append(t,i),y.m(i,null),e.append(t,a),e.append(t,o),e.append(o,s),e.append(s,c),e.append(s,d),e.append(s,g),e.append(o,_),e.append(o,u),e.set_input_value(u,r[1]),e.append(o,C),p&&p.m(o,null),e.append(t,T),f&&f.m(t,null),e.append(t,k),e.append(t,h),e.append(h,F),e.append(t,w),e.append(t,b),e.append(b,z),e.append(b,I),v&&v.m(b,null),r[19](t),A||(P=[e.listen(u,"input",r[17]),e.listen(u,"keydown",r[18]),e.listen(h,"click",r[6]),e.listen(b,"click",r[7])],A=!0)},p(n,[l]){M===(M=R(n))&&y?y.p(n,l):(y.d(1),y=M(n),y&&(y.c(),y.m(i,null))),l&32&&m!==(m=n[5]("code")+"")&&e.set_data(c,m),l&2&&u.value!==n[1]&&e.set_input_value(u,n[1]),n[2]?p&&(p.d(1),p=null):p?p.p(n,l):(p=N(n),p.c(),p.m(o,null)),l&4&&S!==(S="Field SmsVerificationField "+(n[2]?"":"InvalidField"))&&e.attr(o,"class",S),n[3]?f?f.p(n,l):(f=L(n),f.c(),f.m(t,k)):f&&(f.d(1),f=null),l&32&&E!==(E=n[5]("activate")+"")&&e.set_data(F,E),l&32&&j!==(j=n[5]("resend")+"")&&e.set_data(z,j),n[3]?v?v.p(n,l):(v=D(n),v.c(),v.m(b,null)):v&&(v.d(1),v=null),l&8&&(b.disabled=n[3])},i:e.noop,o:e.noop,d(n){n&&e.detach(t),y.d(),p&&p.d(),f&&f.d(),v&&v.d(),r[19](null),A=!1,e.run_all(P)}}}function K(r,t,i){let a;e.component_subscribe(r,e.$format,n=>i(5,a=n));let{endpoint:o=""}=t,{tokenid:s=""}=t,{playerid:m=""}=t,{smstemplate:c="Please use this code {0} to activate your accout"}=t,{number:d=""}=t,{clientstyling:g=""}=t,{clientstylingurl:_=""}=t,{translationurl:u=""}=t,C,S=!0,T=!1,k,h,E=+localStorage.getItem("smsTimer")||0,F=Date.now()/1e3-E,w=60-Math.floor(F);const b={numeric:/^[0-9]{0,6}$/};O({withLocale:"en",translations:{}});const j=()=>{fetch(u).then(l=>l.json()).then(l=>{Object.keys(l).forEach(x=>{U(x,l[x])})}).catch(l=>{console.log(l)})};Object.keys(H).forEach(n=>{U(n,H[n])});const z=()=>V(this,null,function*(){try{if((yield fetch(`${o}/v1/player/${m}/activateSMS?tokenId=${s}&validationCode=${C}`,{headers:{"Content-Type":"application/json",accept:"application/json"}})).ok)i(2,S=!0),window.postMessage({type:"SmsHasBeenValidated"},window.location.href);else throw window.postMessage({type:"WidgetNotification",data:{type:"error",message:"Could not activate user"}},window.location.href),i(2,S=!1),new Error("Could not activate user")}catch(n){console.log(n)}}),I=()=>V(this,null,function*(){localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3))),M();try{const n=yield fetch(`${o}/v1/player/sms/token`,{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:m,messageTemplate:c,destination:d})}),l=yield n.json();if(n.ok)i(9,s=l.id),T=!1,A();else throw T=!0,new Error("Failed to fetch")}catch(n){T=!0,console.error(n)}}),A=()=>{w>0?i(4,w--,w):(clearInterval(k),i(3,k=!1),i(4,w=60))},P=()=>{let n=document.createElement("style");n.innerHTML=g,h.appendChild(n)},R=()=>{let n=new URL(_),l=document.createElement("style");fetch(n.href).then(x=>x.text()).then(x=>{l.innerHTML=x,setTimeout(()=>{h.appendChild(l)},1),setTimeout(()=>{},500)})},M=()=>{F<60&&i(3,k=setInterval(()=>{A()},1e3))},y=n=>{!b.numeric.test(n.key)&&n.keyCode!==8&&n.keyCode!==9&&n.keyCode!==46&&n.preventDefault()};e.onMount(()=>{if(!m||!d){let n=JSON.parse(localStorage.getItem("playerData"));i(10,m=n.playerid),i(11,d=n.number)}M()});function p(){C=this.value,i(1,C)}const f=n=>y(n);function v(n){e.binding_callbacks[n?"unshift":"push"](()=>{h=n,i(0,h)})}return r.$$set=n=>{"endpoint"in n&&i(12,o=n.endpoint),"tokenid"in n&&i(9,s=n.tokenid),"playerid"in n&&i(10,m=n.playerid),"smstemplate"in n&&i(13,c=n.smstemplate),"number"in n&&i(11,d=n.number),"clientstyling"in n&&i(14,g=n.clientstyling),"clientstylingurl"in n&&i(15,_=n.clientstylingurl),"translationurl"in n&&i(16,u=n.translationurl)},r.$$.update=()=>{r.$$.dirty&5632,r.$$.dirty&16385&&g&&h&&P(),r.$$.dirty&32769&&_&&h&&R(),r.$$.dirty&65536&&u&&j()},[h,C,S,k,w,a,z,I,y,s,m,d,o,c,g,_,u,p,f,v]}class B extends e.SvelteComponent{constructor(t){super(),e.init(this,t,K,J,e.safe_not_equal,{endpoint:12,tokenid:9,playerid:10,smstemplate:13,number:11,clientstyling:14,clientstylingurl:15,translationurl:16},q)}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get tokenid(){return this.$$.ctx[9]}set tokenid(t){this.$$set({tokenid:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get smstemplate(){return this.$$.ctx[13]}set smstemplate(t){this.$$set({smstemplate:t}),e.flush()}get number(){return this.$$.ctx[11]}set number(t){this.$$set({number:t}),e.flush()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[16]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(B,{endpoint:{},tokenid:{},playerid:{},smstemplate:{},number:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=B;
1
+ "use strict";var V=(r,t,i)=>new Promise((a,o)=>{var s=d=>{try{c(i.next(d))}catch(g){o(g)}},m=d=>{try{c(i.throw(d))}catch(g){o(g)}},c=d=>d.done?a(d.value):Promise.resolve(d.value).then(s,m);c((i=i.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralPlayerLoginForm-BSYjhcAL.cjs");function O({withLocale:r,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function U(r,t){e.addMessages(r,t)}const H={en:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"},"zh-hk":{title:"请输入您在号码上收到的验证码",errorTitle:"您的代码无效,您可以重新发送代码并重试",code:"短信代码",smsCodeError:"短信验证码无效,请重新发送验证码",resendMessage:"新的验证码已发送至您的手机号码",activate:"激活账户",resend:"重发"},fr:{title:"Veuillez entrer le code de vérification que vous avez reçu sur votre numéro",errorTitle:"Votre code n'était pas valide, vous pouvez renvoyer le code et réessayer",code:"Code SMS",smsCodeError:"Code sms invalide, vous pouvez renvoyer le code",resendMessage:"Un nouveau code de vérification a été envoyé à votre numéro de téléphone.",activate:"Activer le compte",resend:"Renvoyer"},tr:{title:"Please enter the verification code you received on your number",errorTitle:"Kodunuz geçersizdi, kodu tekrar gönderip tekrar deneyebilirsiniz",code:"SMS kodu",smsCodeError:"Geçersiz sms kodu, kodu tekrar gönderebilirsiniz",resendMessage:"Telefon numaranıza yeni bir doğrulama kodu gönderildi.",activate:"Aktif hesap",resend:"Yeniden gönder",loginSMSHint:"Telefon numaranıza yeni bir doğrulama kodu gönderildi"},ro:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Un nou cod de verificare a fost trimis catre numarul dumneavoastra.",activate:"Activate Account",resend:"Resend"},es:{title:"Por favor ingrese su código de verificación enviado por mensaje de texto a su número de telefono",errorTitle:"Su código es invalido",code:"Código SMS",smsCodeError:"Código SMS invalido",resendMessage:"Un nuevo codigo de verificación ha sido enviado a tu número celular.",activate:"Activar Cuenta",resend:"Reenviar"},pt:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Um novo código de verificação foi enviado para o seu número de telefone.",activate:"Activate Account",resend:"Resend"},hr:{title:"Unesite verifikacijski kod koji ste primili na svoj broj telefona",errorTitle:"Vaš kod je nevažeći",code:"Sms kod",smsCodeError:"Nevažeći sms kod",resendMessage:"Novi verifkacijski kod poslan je na vaš broj telefona.",activate:"Aktiviraj račun",resend:"Ponovno pošalji",loginSMSHint:"Novi verifkacijski kod poslan je na vaš broj telefona"},"pt-br":{title:"Por favor, insira o código de verificação que você recebeu no seu número de celular",errorTitle:"Código inválido,vôce pode reenviar o código e tentar novamente",code:"Código SMS",smsCodeError:"Código SMS inválido,vôce pode reenviar o código",resendMessage:"Um novo código de verificação foi enviado para o seu número de celular.",activate:"Ativar conta",resend:"Reenviar",loginSMSHint:"Um novo código de verificação foi enviado para o seu número de celular."},"es-mx":{title:"Por favor ingrese el código de verificación que recibió en su número móvil",errorTitle:"Código inválido,Puede enviar el código e intentar de nuevo",code:"Código SMS",smsCodeError:"Código SMS inválido,Puede reenviar el código",resendMessage:"Un nuevo código de verificación ha sido enviado a su número móvil .",activate:"Activar Cuenta",resend:"Reenviar",loginSMSHint:"Un nuevo código de verificación ha sido enviado a su número móvil ."},"en-us":{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"}};function q(r){e.append_styles(r,"svelte-uutjwi","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}")}function Y(r){let t=r[5]("errorTitle")+"",i;return{c(){i=e.text(t)},m(a,o){e.insert(a,i,o)},p(a,o){o&32&&t!==(t=a[5]("errorTitle")+"")&&e.set_data(i,t)},d(a){a&&e.detach(i)}}}function G(r){let t=r[5]("title")+"",i;return{c(){i=e.text(t)},m(a,o){e.insert(a,i,o)},p(a,o){o&32&&t!==(t=a[5]("title")+"")&&e.set_data(i,t)},d(a){a&&e.detach(i)}}}function N(r){let t,i=r[5]("smsCodeError")+"",a;return{c(){t=e.element("p"),a=e.text(i),e.attr(t,"class","InvalidInput")},m(o,s){e.insert(o,t,s),e.append(t,a)},p(o,s){s&32&&i!==(i=o[5]("smsCodeError")+"")&&e.set_data(a,i)},d(o){o&&e.detach(t)}}}function L(r){let t,i=r[5]("resendMessage")+"",a;return{c(){t=e.element("p"),a=e.text(i),e.attr(t,"class","SmsVerificationResendMessage")},m(o,s){e.insert(o,t,s),e.append(t,a)},p(o,s){s&32&&i!==(i=o[5]("resendMessage")+"")&&e.set_data(a,i)},d(o){o&&e.detach(t)}}}function D(r){let t,i,a=r[4]<10?"0":"",o,s,m;return{c(){t=e.element("span"),i=e.text("(0:"),o=e.text(a),s=e.text(r[4]),m=e.text(")"),e.attr(t,"class","SmsVerificationResendTimer")},m(c,d){e.insert(c,t,d),e.append(t,i),e.append(t,o),e.append(t,s),e.append(t,m)},p(c,d){d&16&&a!==(a=c[4]<10?"0":"")&&e.set_data(o,a),d&16&&e.set_data(s,c[4])},d(c){c&&e.detach(t)}}}function J(r){let t,i,a,o,s,m=r[5]("code")+"",c,d,g,_,u,C,S,T,k,h,E=r[5]("activate")+"",F,w,b,j=r[5]("resend")+"",z,I,A,P;function R(n,l){return n[2]?G:Y}let M=R(r),y=M(r),p=!r[2]&&N(r),f=r[3]&&L(r),v=r[3]&&D(r);return{c(){t=e.element("div"),i=e.element("h3"),y.c(),a=e.space(),o=e.element("div"),s=e.element("label"),c=e.text(m),d=e.text(":"),g=e.element("span"),g.textContent="*",_=e.space(),u=e.element("input"),C=e.space(),p&&p.c(),T=e.space(),f&&f.c(),k=e.space(),h=e.element("button"),F=e.text(E),w=e.space(),b=e.element("button"),z=e.text(j),I=e.space(),v&&v.c(),e.attr(i,"class","Title"),e.attr(g,"class","FormRequired"),e.attr(s,"for","SmsCode"),e.attr(u,"type","text"),e.attr(u,"id","SmsCode"),e.attr(u,"inputmode","numeric"),e.attr(u,"pattern","[0-9]*"),e.attr(u,"maxlength","6"),e.attr(o,"class",S="Field SmsVerificationField "+(r[2]?"":"InvalidField")),e.attr(h,"class","Button SmsVerificationValidate"),e.attr(b,"class","Button SmsVerificationResend"),b.disabled=r[3],e.attr(t,"class","Container SmsVerificationContainer")},m(n,l){e.insert(n,t,l),e.append(t,i),y.m(i,null),e.append(t,a),e.append(t,o),e.append(o,s),e.append(s,c),e.append(s,d),e.append(s,g),e.append(o,_),e.append(o,u),e.set_input_value(u,r[1]),e.append(o,C),p&&p.m(o,null),e.append(t,T),f&&f.m(t,null),e.append(t,k),e.append(t,h),e.append(h,F),e.append(t,w),e.append(t,b),e.append(b,z),e.append(b,I),v&&v.m(b,null),r[19](t),A||(P=[e.listen(u,"input",r[17]),e.listen(u,"keydown",r[18]),e.listen(h,"click",r[6]),e.listen(b,"click",r[7])],A=!0)},p(n,[l]){M===(M=R(n))&&y?y.p(n,l):(y.d(1),y=M(n),y&&(y.c(),y.m(i,null))),l&32&&m!==(m=n[5]("code")+"")&&e.set_data(c,m),l&2&&u.value!==n[1]&&e.set_input_value(u,n[1]),n[2]?p&&(p.d(1),p=null):p?p.p(n,l):(p=N(n),p.c(),p.m(o,null)),l&4&&S!==(S="Field SmsVerificationField "+(n[2]?"":"InvalidField"))&&e.attr(o,"class",S),n[3]?f?f.p(n,l):(f=L(n),f.c(),f.m(t,k)):f&&(f.d(1),f=null),l&32&&E!==(E=n[5]("activate")+"")&&e.set_data(F,E),l&32&&j!==(j=n[5]("resend")+"")&&e.set_data(z,j),n[3]?v?v.p(n,l):(v=D(n),v.c(),v.m(b,null)):v&&(v.d(1),v=null),l&8&&(b.disabled=n[3])},i:e.noop,o:e.noop,d(n){n&&e.detach(t),y.d(),p&&p.d(),f&&f.d(),v&&v.d(),r[19](null),A=!1,e.run_all(P)}}}function K(r,t,i){let a;e.component_subscribe(r,e.$format,n=>i(5,a=n));let{endpoint:o=""}=t,{tokenid:s=""}=t,{playerid:m=""}=t,{smstemplate:c="Please use this code {0} to activate your accout"}=t,{number:d=""}=t,{clientstyling:g=""}=t,{clientstylingurl:_=""}=t,{translationurl:u=""}=t,C,S=!0,T=!1,k,h,E=+localStorage.getItem("smsTimer")||0,F=Date.now()/1e3-E,w=60-Math.floor(F);const b={numeric:/^[0-9]{0,6}$/};O({withLocale:"en",translations:{}});const j=()=>{fetch(u).then(l=>l.json()).then(l=>{Object.keys(l).forEach(x=>{U(x,l[x])})}).catch(l=>{console.log(l)})};Object.keys(H).forEach(n=>{U(n,H[n])});const z=()=>V(this,null,function*(){try{if((yield fetch(`${o}/v1/player/${m}/activateSMS?tokenId=${s}&validationCode=${C}`,{headers:{"Content-Type":"application/json",accept:"application/json"}})).ok)i(2,S=!0),window.postMessage({type:"SmsHasBeenValidated"},window.location.href);else throw window.postMessage({type:"WidgetNotification",data:{type:"error",message:"Could not activate user"}},window.location.href),i(2,S=!1),new Error("Could not activate user")}catch(n){console.log(n)}}),I=()=>V(this,null,function*(){localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3))),M();try{const n=yield fetch(`${o}/v1/player/sms/token`,{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:m,messageTemplate:c,destination:d})}),l=yield n.json();if(n.ok)i(9,s=l.id),T=!1,A();else throw T=!0,new Error("Failed to fetch")}catch(n){T=!0,console.error(n)}}),A=()=>{w>0?i(4,w--,w):(clearInterval(k),i(3,k=!1),i(4,w=60))},P=()=>{let n=document.createElement("style");n.innerHTML=g,h.appendChild(n)},R=()=>{let n=new URL(_),l=document.createElement("style");fetch(n.href).then(x=>x.text()).then(x=>{l.innerHTML=x,setTimeout(()=>{h.appendChild(l)},1),setTimeout(()=>{},500)})},M=()=>{F<60&&i(3,k=setInterval(()=>{A()},1e3))},y=n=>{!b.numeric.test(n.key)&&n.keyCode!==8&&n.keyCode!==9&&n.keyCode!==46&&n.preventDefault()};e.onMount(()=>{if(!m||!d){let n=JSON.parse(localStorage.getItem("playerData"));i(10,m=n.playerid),i(11,d=n.number)}M()});function p(){C=this.value,i(1,C)}const f=n=>y(n);function v(n){e.binding_callbacks[n?"unshift":"push"](()=>{h=n,i(0,h)})}return r.$$set=n=>{"endpoint"in n&&i(12,o=n.endpoint),"tokenid"in n&&i(9,s=n.tokenid),"playerid"in n&&i(10,m=n.playerid),"smstemplate"in n&&i(13,c=n.smstemplate),"number"in n&&i(11,d=n.number),"clientstyling"in n&&i(14,g=n.clientstyling),"clientstylingurl"in n&&i(15,_=n.clientstylingurl),"translationurl"in n&&i(16,u=n.translationurl)},r.$$.update=()=>{r.$$.dirty&5632,r.$$.dirty&16385&&g&&h&&P(),r.$$.dirty&32769&&_&&h&&R(),r.$$.dirty&65536&&u&&j()},[h,C,S,k,w,a,z,I,y,s,m,d,o,c,g,_,u,p,f,v]}class B extends e.SvelteComponent{constructor(t){super(),e.init(this,t,K,J,e.safe_not_equal,{endpoint:12,tokenid:9,playerid:10,smstemplate:13,number:11,clientstyling:14,clientstylingurl:15,translationurl:16},q)}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get tokenid(){return this.$$.ctx[9]}set tokenid(t){this.$$set({tokenid:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get smstemplate(){return this.$$.ctx[13]}set smstemplate(t){this.$$set({smstemplate:t}),e.flush()}get number(){return this.$$.ctx[11]}set number(t){this.$$set({number:t}),e.flush()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[16]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(B,{endpoint:{},tokenid:{},playerid:{},smstemplate:{},number:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=B;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...r){try{return e.apply(this,r)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/GeneralPlayerLoginForm-Co2gKUgp.cjs")).then(e=>e.GeneralPlayerLoginForm_ce).then(({default:e})=>{!customElements.get("general-player-login-form")&&customElements.define("general-player-login-form",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...r){try{return e.apply(this,r)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/GeneralPlayerLoginForm-BSYjhcAL.cjs")).then(e=>e.GeneralPlayerLoginForm_ce).then(({default:e})=>{!customElements.get("general-player-login-form")&&customElements.define("general-player-login-form",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/GeneralPlayerLoginForm-02QMdS8-.js").then((e) => e.G).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/GeneralPlayerLoginForm-CvvPuW0t.js").then((e) => e.G).then(({ default: e }) => {
14
14
  !customElements.get("general-player-login-form") && customElements.define("general-player-login-form", e.element);
15
15
  });
16
16
  }