@everymatrix/general-player-register-form-nd 1.99.49 → 1.99.50

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.
Files changed (21) hide show
  1. package/components/{GeneralPlayerRegisterFormNd-CeukZOJ5.js → GeneralPlayerRegisterFormNd-CDcWrPrU.js} +794 -772
  2. package/components/{GeneralPlayerRegisterFormNd-5tKMDp4b.js → GeneralPlayerRegisterFormNd-Iy9uyyjK.js} +792 -770
  3. package/components/{GeneralPlayerRegisterFormNd-9AzcoVmO.cjs → GeneralPlayerRegisterFormNd-qRnCpc9S.cjs} +4 -4
  4. package/components/{GeneralPlayerRegisterFormStep1-DzloG78Z.js → GeneralPlayerRegisterFormStep1-BFQOj5LV.js} +346 -345
  5. package/components/{GeneralPlayerRegisterFormStep1-DuWmnyrD.js → GeneralPlayerRegisterFormStep1-DkV1zjTT.js} +342 -341
  6. package/components/{GeneralPlayerRegisterFormStep1-JSNwjN7z.cjs → GeneralPlayerRegisterFormStep1-Dsd_LwP5.cjs} +1 -1
  7. package/components/GeneralPlayerRegisterFormStep2-C3NkzLkO.cjs +2 -0
  8. package/components/{GeneralPlayerRegisterFormStep2-BmZsWYnJ.js → GeneralPlayerRegisterFormStep2-CwaX2qvX.js} +539 -538
  9. package/components/{GeneralPlayerRegisterFormStep2-cOTFLk3I.js → GeneralPlayerRegisterFormStep2-whfxWd0Z.js} +641 -640
  10. package/components/{GeneralPlayerRegisterFormStep3-DLH5nAvS.js → GeneralPlayerRegisterFormStep3-CcYiamgm.js} +438 -437
  11. package/components/{GeneralPlayerRegisterFormStep3-CD-bwRKH.js → GeneralPlayerRegisterFormStep3-DKIdC-Cq.js} +412 -411
  12. package/components/{GeneralPlayerRegisterFormStep3-CcmqwoYZ.cjs → GeneralPlayerRegisterFormStep3-DygmXtPy.cjs} +1 -1
  13. package/components/{GeneralPlayerSmsVerificationForm-CcIcNl4g.js → GeneralPlayerSmsVerificationForm-BNmAGkUX.js} +185 -183
  14. package/components/GeneralPlayerSmsVerificationForm-DE4jBZgN.cjs +1 -0
  15. package/components/{GeneralPlayerSmsVerificationForm-Bv5y0v6M.js → GeneralPlayerSmsVerificationForm-DiEXedPb.js} +171 -169
  16. package/es2015/general-player-register-form-nd.cjs +1 -1
  17. package/es2015/general-player-register-form-nd.js +1 -1
  18. package/esnext/general-player-register-form-nd.js +1 -1
  19. package/package.json +1 -1
  20. package/components/GeneralPlayerRegisterFormStep2-AXgs5jDg.cjs +0 -2
  21. package/components/GeneralPlayerSmsVerificationForm-BFaD652k.cjs +0 -1
@@ -1,13 +1,13 @@
1
- import { $ as Y, G as $, a as ee, S as te, i as ie, s as oe, f as E, b as re, n as G, d as R, r as ne, e as T, g as J, h as f, j as P, k as a, l as L, m as k, o as I, t as S, p as ae, q as se, u as le, x as de, y as ce, z as ue, c as me, w as fe } from "./GeneralPlayerRegisterFormNd-CeukZOJ5.js";
2
- function ve({ withLocale: o, translations: e }) {
3
- Y.subscribe((i) => {
4
- i == null && ($.set(e), Y.set(o));
1
+ import { $ as G, H as ee, a as te, S as ie, i as re, s as oe, f as E, b as ne, n as K, d as B, r as ae, e as T, g as W, h as f, j as U, k as s, l as D, m as w, o as R, t as S, p as se, q as le, u as de, v as ce, y as ue, z as me, A as fe, c as ve, x as ge } from "./GeneralPlayerRegisterFormNd-CDcWrPrU.js";
2
+ function pe({ withLocale: r, translations: e }) {
3
+ G.subscribe((i) => {
4
+ i == null && (ee.set(e), G.set(r));
5
5
  });
6
6
  }
7
- function K(o, e) {
8
- ee(o, e);
7
+ function Y(r, e) {
8
+ te(r, e);
9
9
  }
10
- const W = {
10
+ const Q = {
11
11
  en: {
12
12
  title: "Please enter the verification code you received on your number",
13
13
  errorTitle: "Your code was invalid, you can resend the code and try again",
@@ -114,246 +114,246 @@ const W = {
114
114
  loginSMSHint: "A new verification code has been sent to your phone number"
115
115
  }
116
116
  };
117
- function ge(o) {
118
- re(o, "svelte-c25n4u", "*,*::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, #22B04E));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.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, #22B04E));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));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))}");
117
+ function ye(r) {
118
+ ne(r, "svelte-c25n4u", "*,*::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, #22B04E));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.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, #22B04E));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));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))}");
119
119
  }
120
- function pe(o) {
120
+ function he(r) {
121
121
  let e = (
122
122
  /*$_*/
123
- o[5]("errorTitle") + ""
123
+ r[5]("errorTitle") + ""
124
124
  ), i;
125
125
  return {
126
126
  c() {
127
127
  i = S(e);
128
128
  },
129
- m(n, r) {
130
- P(n, i, r);
129
+ m(n, o) {
130
+ U(n, i, o);
131
131
  },
132
- p(n, r) {
133
- r & /*$_*/
132
+ p(n, o) {
133
+ o & /*$_*/
134
134
  32 && e !== (e = /*$_*/
135
135
  n[5]("errorTitle") + "") && T(i, e);
136
136
  },
137
137
  d(n) {
138
- n && R(i);
138
+ n && B(i);
139
139
  }
140
140
  };
141
141
  }
142
- function ye(o) {
142
+ function be(r) {
143
143
  let e = (
144
144
  /*$_*/
145
- o[5]("title") + ""
145
+ r[5]("title") + ""
146
146
  ), i;
147
147
  return {
148
148
  c() {
149
149
  i = S(e);
150
150
  },
151
- m(n, r) {
152
- P(n, i, r);
151
+ m(n, o) {
152
+ U(n, i, o);
153
153
  },
154
- p(n, r) {
155
- r & /*$_*/
154
+ p(n, o) {
155
+ o & /*$_*/
156
156
  32 && e !== (e = /*$_*/
157
157
  n[5]("title") + "") && T(i, e);
158
158
  },
159
159
  d(n) {
160
- n && R(i);
160
+ n && B(i);
161
161
  }
162
162
  };
163
163
  }
164
- function Q(o) {
164
+ function X(r) {
165
165
  let e, i = (
166
166
  /*$_*/
167
- o[5]("smsCodeError") + ""
167
+ r[5]("smsCodeError") + ""
168
168
  ), n;
169
169
  return {
170
170
  c() {
171
- e = k("p"), n = S(i), f(e, "class", "InvalidInput");
171
+ e = w("p"), n = S(i), f(e, "class", "InvalidInput");
172
172
  },
173
- m(r, s) {
174
- P(r, e, s), a(e, n);
173
+ m(o, l) {
174
+ U(o, e, l), s(e, n);
175
175
  },
176
- p(r, s) {
177
- s & /*$_*/
176
+ p(o, l) {
177
+ l & /*$_*/
178
178
  32 && i !== (i = /*$_*/
179
- r[5]("smsCodeError") + "") && T(n, i);
179
+ o[5]("smsCodeError") + "") && T(n, i);
180
180
  },
181
- d(r) {
182
- r && R(e);
181
+ d(o) {
182
+ o && B(e);
183
183
  }
184
184
  };
185
185
  }
186
- function X(o) {
186
+ function Z(r) {
187
187
  let e, i = (
188
188
  /*$_*/
189
- o[5]("resendMessage") + ""
189
+ r[5]("resendMessage") + ""
190
190
  ), n;
191
191
  return {
192
192
  c() {
193
- e = k("p"), n = S(i), f(e, "class", "SmsVerificationResendMessage");
193
+ e = w("p"), n = S(i), f(e, "class", "SmsVerificationResendMessage");
194
194
  },
195
- m(r, s) {
196
- P(r, e, s), a(e, n);
195
+ m(o, l) {
196
+ U(o, e, l), s(e, n);
197
197
  },
198
- p(r, s) {
199
- s & /*$_*/
198
+ p(o, l) {
199
+ l & /*$_*/
200
200
  32 && i !== (i = /*$_*/
201
- r[5]("resendMessage") + "") && T(n, i);
201
+ o[5]("resendMessage") + "") && T(n, i);
202
202
  },
203
- d(r) {
204
- r && R(e);
203
+ d(o) {
204
+ o && B(e);
205
205
  }
206
206
  };
207
207
  }
208
- function Z(o) {
208
+ function $(r) {
209
209
  let e, i, n = (
210
210
  /*secondsLeft*/
211
- o[4] < 10 ? "0" : ""
212
- ), r, s, v;
211
+ r[4] < 10 ? "0" : ""
212
+ ), o, l, v;
213
213
  return {
214
214
  c() {
215
- e = k("span"), i = S("(0:"), r = S(n), s = S(
215
+ e = w("span"), i = S("(0:"), o = S(n), l = S(
216
216
  /*secondsLeft*/
217
- o[4]
217
+ r[4]
218
218
  ), v = S(")"), f(e, "class", "SmsVerificationResendTimer");
219
219
  },
220
220
  m(g, y) {
221
- P(g, e, y), a(e, i), a(e, r), a(e, s), a(e, v);
221
+ U(g, e, y), s(e, i), s(e, o), s(e, l), s(e, v);
222
222
  },
223
223
  p(g, y) {
224
224
  y & /*secondsLeft*/
225
225
  16 && n !== (n = /*secondsLeft*/
226
- g[4] < 10 ? "0" : "") && T(r, n), y & /*secondsLeft*/
226
+ g[4] < 10 ? "0" : "") && T(o, n), y & /*secondsLeft*/
227
227
  16 && T(
228
- s,
228
+ l,
229
229
  /*secondsLeft*/
230
230
  g[4]
231
231
  );
232
232
  },
233
233
  d(g) {
234
- g && R(e);
234
+ g && B(e);
235
235
  }
236
236
  };
237
237
  }
238
- function he(o) {
239
- let e, i, n, r, s, v = (
238
+ function Se(r) {
239
+ let e, i, n, o, l, v = (
240
240
  /*$_*/
241
- o[5]("code") + ""
242
- ), g, y, C, F, d, j, M, V, A, w, p = (
241
+ r[5]("code") + ""
242
+ ), g, y, k, A, d, F, C, P, z, _, p = (
243
243
  /*$_*/
244
- o[5]("activate") + ""
245
- ), x, H, h, _ = (
244
+ r[5]("activate") + ""
245
+ ), N, x, b, I = (
246
246
  /*$_*/
247
- o[5]("resend") + ""
248
- ), B, O, U, q;
249
- function N(t, l) {
247
+ r[5]("resend") + ""
248
+ ), M, O, H, q;
249
+ function L(a, t) {
250
250
  return (
251
251
  /*isSmsValid*/
252
- t[2] ? ye : pe
252
+ a[2] ? be : he
253
253
  );
254
254
  }
255
- let z = N(o), b = z(o), c = !/*isSmsValid*/
256
- o[2] && Q(o), u = (
255
+ let V = L(r), h = V(r), c = !/*isSmsValid*/
256
+ r[2] && X(r), u = (
257
257
  /*timer*/
258
- o[3] && X(o)
258
+ r[3] && Z(r)
259
259
  ), m = (
260
260
  /*timer*/
261
- o[3] && Z(o)
261
+ r[3] && $(r)
262
262
  );
263
263
  return {
264
264
  c() {
265
- e = k("div"), i = k("h3"), b.c(), n = I(), r = k("div"), s = k("label"), g = S(v), y = S(":"), C = k("span"), C.textContent = "*", F = I(), d = k("input"), j = I(), c && c.c(), V = I(), u && u.c(), A = I(), w = k("button"), x = S(p), H = I(), h = k("button"), B = S(_), O = I(), m && m.c(), f(i, "class", "Title"), f(C, "class", "FormRequired"), f(s, "for", "SmsCode"), f(d, "type", "text"), f(d, "id", "SmsCode"), f(d, "inputmode", "numeric"), f(d, "pattern", "[0-9]*"), f(d, "maxlength", "6"), f(r, "class", M = "Field SmsVerificationField " + (/*isSmsValid*/
266
- o[2] ? "" : "InvalidField")), f(w, "class", "Button SmsVerificationValidate"), f(h, "class", "Button SmsVerificationResend"), h.disabled = /*timer*/
267
- o[3], f(e, "class", "Container SmsVerificationContainer");
265
+ e = w("div"), i = w("h3"), h.c(), n = R(), o = w("div"), l = w("label"), g = S(v), y = S(":"), k = w("span"), k.textContent = "*", A = R(), d = w("input"), F = R(), c && c.c(), P = R(), u && u.c(), z = R(), _ = w("button"), N = S(p), x = R(), b = w("button"), M = S(I), O = R(), m && m.c(), f(i, "class", "Title"), f(k, "class", "FormRequired"), f(l, "for", "SmsCode"), f(d, "type", "text"), f(d, "id", "SmsCode"), f(d, "inputmode", "numeric"), f(d, "pattern", "[0-9]*"), f(d, "maxlength", "6"), f(o, "class", C = "Field SmsVerificationField " + (/*isSmsValid*/
266
+ r[2] ? "" : "InvalidField")), f(_, "class", "Button SmsVerificationValidate"), f(b, "class", "Button SmsVerificationResend"), b.disabled = /*timer*/
267
+ r[3], f(e, "class", "Container SmsVerificationContainer");
268
268
  },
269
- m(t, l) {
270
- P(t, e, l), a(e, i), b.m(i, null), a(e, n), a(e, r), a(r, s), a(s, g), a(s, y), a(s, C), a(r, F), a(r, d), J(
269
+ m(a, t) {
270
+ U(a, e, t), s(e, i), h.m(i, null), s(e, n), s(e, o), s(o, l), s(l, g), s(l, y), s(l, k), s(o, A), s(o, d), W(
271
271
  d,
272
272
  /*smsCode*/
273
- o[1]
274
- ), a(r, j), c && c.m(r, null), a(e, V), u && u.m(e, null), a(e, A), a(e, w), a(w, x), a(e, H), a(e, h), a(h, B), a(h, O), m && m.m(h, null), o[20](e), U || (q = [
275
- L(
273
+ r[1]
274
+ ), s(o, F), c && c.m(o, null), s(e, P), u && u.m(e, null), s(e, z), s(e, _), s(_, N), s(e, x), s(e, b), s(b, M), s(b, O), m && m.m(b, null), r[20](e), H || (q = [
275
+ D(
276
276
  d,
277
277
  "input",
278
278
  /*input_input_handler*/
279
- o[18]
279
+ r[18]
280
280
  ),
281
- L(
281
+ D(
282
282
  d,
283
283
  "keydown",
284
284
  /*keydown_handler*/
285
- o[19]
285
+ r[19]
286
286
  ),
287
- L(
288
- w,
287
+ D(
288
+ _,
289
289
  "click",
290
290
  /*activateUser*/
291
- o[6]
291
+ r[6]
292
292
  ),
293
- L(
294
- h,
293
+ D(
294
+ b,
295
295
  "click",
296
296
  /*resendCode*/
297
- o[7]
297
+ r[7]
298
298
  )
299
- ], U = !0);
299
+ ], H = !0);
300
300
  },
301
- p(t, [l]) {
302
- z === (z = N(t)) && b ? b.p(t, l) : (b.d(1), b = z(t), b && (b.c(), b.m(i, null))), l & /*$_*/
301
+ p(a, [t]) {
302
+ V === (V = L(a)) && h ? h.p(a, t) : (h.d(1), h = V(a), h && (h.c(), h.m(i, null))), t & /*$_*/
303
303
  32 && v !== (v = /*$_*/
304
- t[5]("code") + "") && T(g, v), l & /*smsCode*/
304
+ a[5]("code") + "") && T(g, v), t & /*smsCode*/
305
305
  2 && d.value !== /*smsCode*/
306
- t[1] && J(
306
+ a[1] && W(
307
307
  d,
308
308
  /*smsCode*/
309
- t[1]
309
+ a[1]
310
310
  ), /*isSmsValid*/
311
- t[2] ? c && (c.d(1), c = null) : c ? c.p(t, l) : (c = Q(t), c.c(), c.m(r, null)), l & /*isSmsValid*/
312
- 4 && M !== (M = "Field SmsVerificationField " + (/*isSmsValid*/
313
- t[2] ? "" : "InvalidField")) && f(r, "class", M), /*timer*/
314
- t[3] ? u ? u.p(t, l) : (u = X(t), u.c(), u.m(e, A)) : u && (u.d(1), u = null), l & /*$_*/
311
+ a[2] ? c && (c.d(1), c = null) : c ? c.p(a, t) : (c = X(a), c.c(), c.m(o, null)), t & /*isSmsValid*/
312
+ 4 && C !== (C = "Field SmsVerificationField " + (/*isSmsValid*/
313
+ a[2] ? "" : "InvalidField")) && f(o, "class", C), /*timer*/
314
+ a[3] ? u ? u.p(a, t) : (u = Z(a), u.c(), u.m(e, z)) : u && (u.d(1), u = null), t & /*$_*/
315
315
  32 && p !== (p = /*$_*/
316
- t[5]("activate") + "") && T(x, p), l & /*$_*/
317
- 32 && _ !== (_ = /*$_*/
318
- t[5]("resend") + "") && T(B, _), /*timer*/
319
- t[3] ? m ? m.p(t, l) : (m = Z(t), m.c(), m.m(h, null)) : m && (m.d(1), m = null), l & /*timer*/
320
- 8 && (h.disabled = /*timer*/
321
- t[3]);
316
+ a[5]("activate") + "") && T(N, p), t & /*$_*/
317
+ 32 && I !== (I = /*$_*/
318
+ a[5]("resend") + "") && T(M, I), /*timer*/
319
+ a[3] ? m ? m.p(a, t) : (m = $(a), m.c(), m.m(b, null)) : m && (m.d(1), m = null), t & /*timer*/
320
+ 8 && (b.disabled = /*timer*/
321
+ a[3]);
322
322
  },
323
- i: G,
324
- o: G,
325
- d(t) {
326
- t && R(e), b.d(), c && c.d(), u && u.d(), m && m.d(), o[20](null), U = !1, ne(q);
323
+ i: K,
324
+ o: K,
325
+ d(a) {
326
+ a && B(e), h.d(), c && c.d(), u && u.d(), m && m.d(), r[20](null), H = !1, ae(q);
327
327
  }
328
328
  };
329
329
  }
330
- function be(o, e, i) {
330
+ function ke(r, e, i) {
331
331
  let n;
332
- ae(o, fe, (t) => i(5, n = t));
333
- let { endpoint: r = "" } = e, { tokenid: s = "" } = e, { playerid: v = "" } = e, { smstemplate: g = "Please use this code {0} to activate your accout" } = e, { number: y = "" } = e, { mbsource: C } = e, { clientstyling: F = "" } = e, { clientstylingurl: d = "" } = e, { translationurl: j = "" } = e, M, V = !0, A = !1, w, p, x, H = +localStorage.getItem("smsTimer") || 0, h = Date.now() / 1e3 - H, _ = 60 - Math.floor(h);
334
- const B = { numeric: /^[0-9]{0,6}$/ };
335
- ve({ withLocale: "en", translations: {} });
336
- const O = () => {
337
- fetch(j).then((l) => l.json()).then((l) => {
338
- Object.keys(l).forEach((D) => {
339
- K(D, l[D]);
332
+ se(r, ge, (t) => i(5, n = t));
333
+ let { endpoint: o = "" } = e, { tokenid: l = "" } = e, { playerid: v = "" } = e, { smstemplate: g = "Please use this code {0} to activate your accout" } = e, { number: y = "" } = e, { mbsource: k } = e, { clientstyling: A = "" } = e, { clientstylingurl: d = "" } = e, { translationurl: F = "" } = e, C, P = !0, z = !1, _, p, N, x, b = +localStorage.getItem("smsTimer") || 0, I = Date.now() / 1e3 - b, M = 60 - Math.floor(I);
334
+ const O = { numeric: /^[0-9]{0,6}$/ };
335
+ pe({ withLocale: "en", translations: {} });
336
+ const H = () => {
337
+ fetch(F).then((j) => j.json()).then((j) => {
338
+ Object.keys(j).forEach((J) => {
339
+ Y(J, j[J]);
340
340
  });
341
- }).catch((l) => {
342
- console.log(l);
341
+ }).catch((j) => {
342
+ console.log(j);
343
343
  });
344
344
  };
345
- Object.keys(W).forEach((t) => {
346
- K(t, W[t]);
345
+ Object.keys(Q).forEach((t) => {
346
+ Y(t, Q[t]);
347
347
  });
348
- const U = async () => {
348
+ const q = async () => {
349
349
  try {
350
- if ((await fetch(`${r}/v1/player/${v}/activateSMS?tokenId=${s}&validationCode=${M}`, {
350
+ if ((await fetch(`${o}/v1/player/${v}/activateSMS?tokenId=${l}&validationCode=${C}`, {
351
351
  headers: {
352
352
  "Content-Type": "application/json",
353
353
  accept: "application/json"
354
354
  }
355
355
  })).ok)
356
- i(2, V = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
356
+ i(2, P = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
357
357
  else
358
358
  throw window.postMessage(
359
359
  {
@@ -364,14 +364,14 @@ function be(o, e, i) {
364
364
  }
365
365
  },
366
366
  window.location.href
367
- ), i(2, V = !1), new Error("Could not activate user");
367
+ ), i(2, P = !1), new Error("Could not activate user");
368
368
  } catch (t) {
369
369
  console.log(t);
370
370
  }
371
- }, q = async () => {
372
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), z();
371
+ }, L = async () => {
372
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), h();
373
373
  try {
374
- const t = await fetch(`${r}/v1/player/sms/token`, {
374
+ const t = await fetch(`${o}/v1/player/sms/token`, {
375
375
  method: "POST",
376
376
  headers: {
377
377
  "Content-Type": "application/json",
@@ -382,83 +382,85 @@ function be(o, e, i) {
382
382
  messageTemplate: g,
383
383
  destination: y
384
384
  })
385
- }), l = await t.json();
385
+ }), j = await t.json();
386
386
  if (t.ok)
387
- i(9, s = l.id), A = !1, N();
387
+ i(9, l = j.id), z = !1, V();
388
388
  else
389
- throw A = !0, new Error("Failed to fetch");
389
+ throw z = !0, new Error("Failed to fetch");
390
390
  } catch (t) {
391
- A = !0, console.error(t);
391
+ z = !0, console.error(t);
392
392
  }
393
- }, N = () => {
394
- _ > 0 ? i(4, _--, _) : (clearInterval(w), i(3, w = !1), i(4, _ = 60));
395
- }, z = () => {
396
- h < 60 && i(3, w = setInterval(
393
+ }, V = () => {
394
+ M > 0 ? i(4, M--, M) : (clearInterval(_), i(3, _ = !1), i(4, M = 60));
395
+ }, h = () => {
396
+ I < 60 && i(3, _ = setInterval(
397
397
  () => {
398
- N();
398
+ V();
399
399
  },
400
400
  1e3
401
401
  ));
402
- }, b = (t) => {
403
- !B.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
402
+ }, c = (t) => {
403
+ !O.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
404
404
  };
405
- se(() => {
405
+ le(() => {
406
406
  if (!v || !y) {
407
407
  let t = JSON.parse(localStorage.getItem("playerData"));
408
408
  i(10, v = t.playerid), i(11, y = t.number);
409
409
  }
410
- return z(), () => {
410
+ return h(), () => {
411
+ x && x.unsubscribe();
411
412
  };
412
413
  });
413
- function c() {
414
- M = this.value, i(1, M);
414
+ function u() {
415
+ C = this.value, i(1, C);
415
416
  }
416
- const u = (t) => b(t);
417
- function m(t) {
418
- le[t ? "unshift" : "push"](() => {
417
+ const m = (t) => c(t);
418
+ function a(t) {
419
+ ce[t ? "unshift" : "push"](() => {
419
420
  p = t, i(0, p);
420
421
  });
421
422
  }
422
- return o.$$set = (t) => {
423
- "endpoint" in t && i(12, r = t.endpoint), "tokenid" in t && i(9, s = t.tokenid), "playerid" in t && i(10, v = t.playerid), "smstemplate" in t && i(13, g = t.smstemplate), "number" in t && i(11, y = t.number), "mbsource" in t && i(14, C = t.mbsource), "clientstyling" in t && i(15, F = t.clientstyling), "clientstylingurl" in t && i(16, d = t.clientstylingurl), "translationurl" in t && i(17, j = t.translationurl);
424
- }, o.$$.update = () => {
425
- o.$$.dirty & /*tokenid, playerid, endpoint*/
426
- 5632, o.$$.dirty & /*clientstyling, customStylingContainer*/
427
- 32769 && F && p && de(p, F), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
428
- 65537 && d && p && ce(p, d), o.$$.dirty & /*mbsource, customStylingContainer*/
429
- 16385 && C && p && ue(p, `${C}.Style`, x), o.$$.dirty & /*translationurl*/
430
- 131072 && j && O();
423
+ return r.$$set = (t) => {
424
+ "endpoint" in t && i(12, o = t.endpoint), "tokenid" in t && i(9, l = t.tokenid), "playerid" in t && i(10, v = t.playerid), "smstemplate" in t && i(13, g = t.smstemplate), "number" in t && i(11, y = t.number), "mbsource" in t && i(14, k = t.mbsource), "clientstyling" in t && i(15, A = t.clientstyling), "clientstylingurl" in t && i(16, d = t.clientstylingurl), "translationurl" in t && i(17, F = t.translationurl);
425
+ }, r.$$.update = () => {
426
+ r.$$.dirty & /*tokenid, playerid, endpoint*/
427
+ 5632, r.$$.dirty & /*clientstyling, customStylingContainer*/
428
+ 32769 && A && p && ue(p, A), r.$$.dirty & /*clientstylingurl, customStylingContainer*/
429
+ 65537 && d && p && me(p, d), r.$$.dirty & /*mbsource, customStylingContainer*/
430
+ 16385 && k && p && fe(p, `${k}.Style`, N), r.$$.dirty & /*translationurl*/
431
+ 131072 && F && H(), r.$$.dirty & /*mbsource, translationurl*/
432
+ 147456 && k && !F && (x = de(`${k}.Translation`, void 0, Y, !0));
431
433
  }, [
432
434
  p,
433
- M,
434
- V,
435
- w,
435
+ C,
436
+ P,
436
437
  _,
438
+ M,
437
439
  n,
438
- U,
439
440
  q,
440
- b,
441
- s,
441
+ L,
442
+ c,
443
+ l,
442
444
  v,
443
445
  y,
444
- r,
446
+ o,
445
447
  g,
446
- C,
447
- F,
448
+ k,
449
+ A,
448
450
  d,
449
- j,
450
- c,
451
+ F,
451
452
  u,
452
- m
453
+ m,
454
+ a
453
455
  ];
454
456
  }
455
- class Se extends te {
457
+ class we extends ie {
456
458
  constructor(e) {
457
- super(), ie(
459
+ super(), re(
458
460
  this,
459
461
  e,
460
- be,
461
- he,
462
+ ke,
463
+ Se,
462
464
  oe,
463
465
  {
464
466
  endpoint: 12,
@@ -471,7 +473,7 @@ class Se extends te {
471
473
  clientstylingurl: 16,
472
474
  translationurl: 17
473
475
  },
474
- ge
476
+ ye
475
477
  );
476
478
  }
477
479
  get endpoint() {
@@ -529,7 +531,7 @@ class Se extends te {
529
531
  this.$$set({ translationurl: e }), E();
530
532
  }
531
533
  }
532
- me(Se, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
534
+ ve(we, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
533
535
  export {
534
- Se as default
536
+ we as default
535
537
  };
@@ -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/GeneralPlayerRegisterFormNd-9AzcoVmO.cjs")).then(e=>e.GeneralPlayerRegisterFormNd_ce).then(({default:e})=>{!customElements.get("general-player-register-form-nd")&&customElements.define("general-player-register-form-nd",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/GeneralPlayerRegisterFormNd-qRnCpc9S.cjs")).then(e=>e.GeneralPlayerRegisterFormNd_ce).then(({default:e})=>{!customElements.get("general-player-register-form-nd")&&customElements.define("general-player-register-form-nd",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/GeneralPlayerRegisterFormNd-5tKMDp4b.js").then((e) => e.I).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/GeneralPlayerRegisterFormNd-Iy9uyyjK.js").then((e) => e.J).then(({ default: e }) => {
14
14
  !customElements.get("general-player-register-form-nd") && customElements.define("general-player-register-form-nd", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { I as n } from "../components/GeneralPlayerRegisterFormNd-CeukZOJ5.js";
1
+ import { J as n } from "../components/GeneralPlayerRegisterFormNd-CDcWrPrU.js";
2
2
  function s(t) {
3
3
  return function(...r) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-player-register-form-nd",
3
- "version": "1.99.49",
3
+ "version": "1.99.50",
4
4
  "type": "module",
5
5
  "main": "es2015/general-player-register-form-nd.cjs",
6
6
  "module": "esnext/general-player-register-form-nd.js",