@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,29 +1,29 @@
1
- var D = (o, e, i) => new Promise((n, r) => {
2
- var a = (d) => {
1
+ var Y = (r, e, i) => new Promise((n, o) => {
2
+ var s = (d) => {
3
3
  try {
4
4
  c(i.next(d));
5
- } catch (h) {
6
- r(h);
5
+ } catch (y) {
6
+ o(y);
7
7
  }
8
- }, m = (d) => {
8
+ }, f = (d) => {
9
9
  try {
10
10
  c(i.throw(d));
11
- } catch (h) {
12
- r(h);
11
+ } catch (y) {
12
+ o(y);
13
13
  }
14
- }, c = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(a, m);
15
- c((i = i.apply(o, e)).next());
14
+ }, c = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(s, f);
15
+ c((i = i.apply(r, e)).next());
16
16
  });
17
- import { $ as G, G as ee, a as te, S as ie, i as oe, s as re, f as E, b as ne, n as J, d as R, r as ae, c as T, e as K, g as p, h as P, j as s, l as L, k as w, m as I, t as k, o as se, p as le, q as de, v as ce, w as ue, x as me, y as fe, z as ve } from "./GeneralPlayerRegisterFormNd-5tKMDp4b.js";
18
- function ge({ withLocale: o, translations: e }) {
19
- G.subscribe((i) => {
20
- i == null && (ee.set(e), G.set(o));
17
+ import { $ as K, H as te, a as ie, S as re, i as oe, s as ne, f as E, b as ae, n as W, d as B, r as se, c as T, e as Q, g as p, h as U, j as l, l as D, k as w, m as R, t as k, o as le, p as de, q as ce, u as ue, w as me, x as fe, y as ve, z as ge, A as pe } from "./GeneralPlayerRegisterFormNd-Iy9uyyjK.js";
18
+ function ye({ withLocale: r, translations: e }) {
19
+ K.subscribe((i) => {
20
+ i == null && (te.set(e), K.set(r));
21
21
  });
22
22
  }
23
- function W(o, e) {
24
- te(o, e);
23
+ function J(r, e) {
24
+ ie(r, e);
25
25
  }
26
- const Q = {
26
+ const X = {
27
27
  en: {
28
28
  title: "Please enter the verification code you received on your number",
29
29
  errorTitle: "Your code was invalid, you can resend the code and try again",
@@ -130,246 +130,246 @@ const Q = {
130
130
  loginSMSHint: "A new verification code has been sent to your phone number"
131
131
  }
132
132
  };
133
- function pe(o) {
134
- ne(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))}");
133
+ function he(r) {
134
+ ae(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))}");
135
135
  }
136
- function ye(o) {
136
+ function be(r) {
137
137
  let e = (
138
138
  /*$_*/
139
- o[5]("errorTitle") + ""
139
+ r[5]("errorTitle") + ""
140
140
  ), i;
141
141
  return {
142
142
  c() {
143
143
  i = k(e);
144
144
  },
145
- m(n, r) {
146
- P(n, i, r);
145
+ m(n, o) {
146
+ U(n, i, o);
147
147
  },
148
- p(n, r) {
149
- r & /*$_*/
148
+ p(n, o) {
149
+ o & /*$_*/
150
150
  32 && e !== (e = /*$_*/
151
151
  n[5]("errorTitle") + "") && T(i, e);
152
152
  },
153
153
  d(n) {
154
- n && R(i);
154
+ n && B(i);
155
155
  }
156
156
  };
157
157
  }
158
- function he(o) {
158
+ function Se(r) {
159
159
  let e = (
160
160
  /*$_*/
161
- o[5]("title") + ""
161
+ r[5]("title") + ""
162
162
  ), i;
163
163
  return {
164
164
  c() {
165
165
  i = k(e);
166
166
  },
167
- m(n, r) {
168
- P(n, i, r);
167
+ m(n, o) {
168
+ U(n, i, o);
169
169
  },
170
- p(n, r) {
171
- r & /*$_*/
170
+ p(n, o) {
171
+ o & /*$_*/
172
172
  32 && e !== (e = /*$_*/
173
173
  n[5]("title") + "") && T(i, e);
174
174
  },
175
175
  d(n) {
176
- n && R(i);
176
+ n && B(i);
177
177
  }
178
178
  };
179
179
  }
180
- function X(o) {
180
+ function Z(r) {
181
181
  let e, i = (
182
182
  /*$_*/
183
- o[5]("smsCodeError") + ""
183
+ r[5]("smsCodeError") + ""
184
184
  ), n;
185
185
  return {
186
186
  c() {
187
187
  e = w("p"), n = k(i), p(e, "class", "InvalidInput");
188
188
  },
189
- m(r, a) {
190
- P(r, e, a), s(e, n);
189
+ m(o, s) {
190
+ U(o, e, s), l(e, n);
191
191
  },
192
- p(r, a) {
193
- a & /*$_*/
192
+ p(o, s) {
193
+ s & /*$_*/
194
194
  32 && i !== (i = /*$_*/
195
- r[5]("smsCodeError") + "") && T(n, i);
195
+ o[5]("smsCodeError") + "") && T(n, i);
196
196
  },
197
- d(r) {
198
- r && R(e);
197
+ d(o) {
198
+ o && B(e);
199
199
  }
200
200
  };
201
201
  }
202
- function Z(o) {
202
+ function $(r) {
203
203
  let e, i = (
204
204
  /*$_*/
205
- o[5]("resendMessage") + ""
205
+ r[5]("resendMessage") + ""
206
206
  ), n;
207
207
  return {
208
208
  c() {
209
209
  e = w("p"), n = k(i), p(e, "class", "SmsVerificationResendMessage");
210
210
  },
211
- m(r, a) {
212
- P(r, e, a), s(e, n);
211
+ m(o, s) {
212
+ U(o, e, s), l(e, n);
213
213
  },
214
- p(r, a) {
215
- a & /*$_*/
214
+ p(o, s) {
215
+ s & /*$_*/
216
216
  32 && i !== (i = /*$_*/
217
- r[5]("resendMessage") + "") && T(n, i);
217
+ o[5]("resendMessage") + "") && T(n, i);
218
218
  },
219
- d(r) {
220
- r && R(e);
219
+ d(o) {
220
+ o && B(e);
221
221
  }
222
222
  };
223
223
  }
224
- function $(o) {
224
+ function ee(r) {
225
225
  let e, i, n = (
226
226
  /*secondsLeft*/
227
- o[4] < 10 ? "0" : ""
228
- ), r, a, m;
227
+ r[4] < 10 ? "0" : ""
228
+ ), o, s, f;
229
229
  return {
230
230
  c() {
231
- e = w("span"), i = k("(0:"), r = k(n), a = k(
231
+ e = w("span"), i = k("(0:"), o = k(n), s = k(
232
232
  /*secondsLeft*/
233
- o[4]
234
- ), m = k(")"), p(e, "class", "SmsVerificationResendTimer");
233
+ r[4]
234
+ ), f = k(")"), p(e, "class", "SmsVerificationResendTimer");
235
235
  },
236
236
  m(c, d) {
237
- P(c, e, d), s(e, i), s(e, r), s(e, a), s(e, m);
237
+ U(c, e, d), l(e, i), l(e, o), l(e, s), l(e, f);
238
238
  },
239
239
  p(c, d) {
240
240
  d & /*secondsLeft*/
241
241
  16 && n !== (n = /*secondsLeft*/
242
- c[4] < 10 ? "0" : "") && T(r, n), d & /*secondsLeft*/
242
+ c[4] < 10 ? "0" : "") && T(o, n), d & /*secondsLeft*/
243
243
  16 && T(
244
- a,
244
+ s,
245
245
  /*secondsLeft*/
246
246
  c[4]
247
247
  );
248
248
  },
249
249
  d(c) {
250
- c && R(e);
250
+ c && B(e);
251
251
  }
252
252
  };
253
253
  }
254
- function be(o) {
255
- let e, i, n, r, a, m = (
254
+ function ke(r) {
255
+ let e, i, n, o, s, f = (
256
256
  /*$_*/
257
- o[5]("code") + ""
258
- ), c, d, h, F, u, j, M, V, A, _, y = (
257
+ r[5]("code") + ""
258
+ ), c, d, y, A, u, F, C, P, z, _, h = (
259
259
  /*$_*/
260
- o[5]("activate") + ""
261
- ), x, H, b, C = (
260
+ r[5]("activate") + ""
261
+ ), N, x, S, I = (
262
262
  /*$_*/
263
- o[5]("resend") + ""
264
- ), B, O, U, q;
265
- function N(t, l) {
263
+ r[5]("resend") + ""
264
+ ), M, O, H, q;
265
+ function L(a, t) {
266
266
  return (
267
267
  /*isSmsValid*/
268
- t[2] ? he : ye
268
+ a[2] ? Se : be
269
269
  );
270
270
  }
271
- let z = N(o), S = z(o), f = !/*isSmsValid*/
272
- o[2] && X(o), v = (
271
+ let V = L(r), b = V(r), m = !/*isSmsValid*/
272
+ r[2] && Z(r), v = (
273
273
  /*timer*/
274
- o[3] && Z(o)
274
+ r[3] && $(r)
275
275
  ), g = (
276
276
  /*timer*/
277
- o[3] && $(o)
277
+ r[3] && ee(r)
278
278
  );
279
279
  return {
280
280
  c() {
281
- e = w("div"), i = w("h3"), S.c(), n = I(), r = w("div"), a = w("label"), c = k(m), d = k(":"), h = w("span"), h.textContent = "*", F = I(), u = w("input"), j = I(), f && f.c(), V = I(), v && v.c(), A = I(), _ = w("button"), x = k(y), H = I(), b = w("button"), B = k(C), O = I(), g && g.c(), p(i, "class", "Title"), p(h, "class", "FormRequired"), p(a, "for", "SmsCode"), p(u, "type", "text"), p(u, "id", "SmsCode"), p(u, "inputmode", "numeric"), p(u, "pattern", "[0-9]*"), p(u, "maxlength", "6"), p(r, "class", M = "Field SmsVerificationField " + (/*isSmsValid*/
282
- o[2] ? "" : "InvalidField")), p(_, "class", "Button SmsVerificationValidate"), p(b, "class", "Button SmsVerificationResend"), b.disabled = /*timer*/
283
- o[3], p(e, "class", "Container SmsVerificationContainer");
281
+ e = w("div"), i = w("h3"), b.c(), n = R(), o = w("div"), s = w("label"), c = k(f), d = k(":"), y = w("span"), y.textContent = "*", A = R(), u = w("input"), F = R(), m && m.c(), P = R(), v && v.c(), z = R(), _ = w("button"), N = k(h), x = R(), S = w("button"), M = k(I), O = R(), g && g.c(), p(i, "class", "Title"), p(y, "class", "FormRequired"), p(s, "for", "SmsCode"), p(u, "type", "text"), p(u, "id", "SmsCode"), p(u, "inputmode", "numeric"), p(u, "pattern", "[0-9]*"), p(u, "maxlength", "6"), p(o, "class", C = "Field SmsVerificationField " + (/*isSmsValid*/
282
+ r[2] ? "" : "InvalidField")), p(_, "class", "Button SmsVerificationValidate"), p(S, "class", "Button SmsVerificationResend"), S.disabled = /*timer*/
283
+ r[3], p(e, "class", "Container SmsVerificationContainer");
284
284
  },
285
- m(t, l) {
286
- P(t, e, l), s(e, i), S.m(i, null), s(e, n), s(e, r), s(r, a), s(a, c), s(a, d), s(a, h), s(r, F), s(r, u), K(
285
+ m(a, t) {
286
+ U(a, e, t), l(e, i), b.m(i, null), l(e, n), l(e, o), l(o, s), l(s, c), l(s, d), l(s, y), l(o, A), l(o, u), Q(
287
287
  u,
288
288
  /*smsCode*/
289
- o[1]
290
- ), s(r, j), f && f.m(r, null), s(e, V), v && v.m(e, null), s(e, A), s(e, _), s(_, x), s(e, H), s(e, b), s(b, B), s(b, O), g && g.m(b, null), o[20](e), U || (q = [
291
- L(
289
+ r[1]
290
+ ), l(o, F), m && m.m(o, null), l(e, P), v && v.m(e, null), l(e, z), l(e, _), l(_, N), l(e, x), l(e, S), l(S, M), l(S, O), g && g.m(S, null), r[20](e), H || (q = [
291
+ D(
292
292
  u,
293
293
  "input",
294
294
  /*input_input_handler*/
295
- o[18]
295
+ r[18]
296
296
  ),
297
- L(
297
+ D(
298
298
  u,
299
299
  "keydown",
300
300
  /*keydown_handler*/
301
- o[19]
301
+ r[19]
302
302
  ),
303
- L(
303
+ D(
304
304
  _,
305
305
  "click",
306
306
  /*activateUser*/
307
- o[6]
307
+ r[6]
308
308
  ),
309
- L(
310
- b,
309
+ D(
310
+ S,
311
311
  "click",
312
312
  /*resendCode*/
313
- o[7]
313
+ r[7]
314
314
  )
315
- ], U = !0);
315
+ ], H = !0);
316
316
  },
317
- p(t, [l]) {
318
- z === (z = N(t)) && S ? S.p(t, l) : (S.d(1), S = z(t), S && (S.c(), S.m(i, null))), l & /*$_*/
319
- 32 && m !== (m = /*$_*/
320
- t[5]("code") + "") && T(c, m), l & /*smsCode*/
317
+ p(a, [t]) {
318
+ V === (V = L(a)) && b ? b.p(a, t) : (b.d(1), b = V(a), b && (b.c(), b.m(i, null))), t & /*$_*/
319
+ 32 && f !== (f = /*$_*/
320
+ a[5]("code") + "") && T(c, f), t & /*smsCode*/
321
321
  2 && u.value !== /*smsCode*/
322
- t[1] && K(
322
+ a[1] && Q(
323
323
  u,
324
324
  /*smsCode*/
325
- t[1]
325
+ a[1]
326
326
  ), /*isSmsValid*/
327
- t[2] ? f && (f.d(1), f = null) : f ? f.p(t, l) : (f = X(t), f.c(), f.m(r, null)), l & /*isSmsValid*/
328
- 4 && M !== (M = "Field SmsVerificationField " + (/*isSmsValid*/
329
- t[2] ? "" : "InvalidField")) && p(r, "class", M), /*timer*/
330
- t[3] ? v ? v.p(t, l) : (v = Z(t), v.c(), v.m(e, A)) : v && (v.d(1), v = null), l & /*$_*/
331
- 32 && y !== (y = /*$_*/
332
- t[5]("activate") + "") && T(x, y), l & /*$_*/
333
- 32 && C !== (C = /*$_*/
334
- t[5]("resend") + "") && T(B, C), /*timer*/
335
- t[3] ? g ? g.p(t, l) : (g = $(t), g.c(), g.m(b, null)) : g && (g.d(1), g = null), l & /*timer*/
336
- 8 && (b.disabled = /*timer*/
337
- t[3]);
327
+ a[2] ? m && (m.d(1), m = null) : m ? m.p(a, t) : (m = Z(a), m.c(), m.m(o, null)), t & /*isSmsValid*/
328
+ 4 && C !== (C = "Field SmsVerificationField " + (/*isSmsValid*/
329
+ a[2] ? "" : "InvalidField")) && p(o, "class", C), /*timer*/
330
+ a[3] ? v ? v.p(a, t) : (v = $(a), v.c(), v.m(e, z)) : v && (v.d(1), v = null), t & /*$_*/
331
+ 32 && h !== (h = /*$_*/
332
+ a[5]("activate") + "") && T(N, h), t & /*$_*/
333
+ 32 && I !== (I = /*$_*/
334
+ a[5]("resend") + "") && T(M, I), /*timer*/
335
+ a[3] ? g ? g.p(a, t) : (g = ee(a), g.c(), g.m(S, null)) : g && (g.d(1), g = null), t & /*timer*/
336
+ 8 && (S.disabled = /*timer*/
337
+ a[3]);
338
338
  },
339
- i: J,
340
- o: J,
341
- d(t) {
342
- t && R(e), S.d(), f && f.d(), v && v.d(), g && g.d(), o[20](null), U = !1, ae(q);
339
+ i: W,
340
+ o: W,
341
+ d(a) {
342
+ a && B(e), b.d(), m && m.d(), v && v.d(), g && g.d(), r[20](null), H = !1, se(q);
343
343
  }
344
344
  };
345
345
  }
346
- function Se(o, e, i) {
346
+ function we(r, e, i) {
347
347
  let n;
348
- se(o, ve, (t) => i(5, n = t));
349
- let { endpoint: r = "" } = e, { tokenid: a = "" } = e, { playerid: m = "" } = e, { smstemplate: c = "Please use this code {0} to activate your accout" } = e, { number: d = "" } = e, { mbsource: h } = e, { clientstyling: F = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: j = "" } = e, M, V = !0, A = !1, _, y, x, H = +localStorage.getItem("smsTimer") || 0, b = Date.now() / 1e3 - H, C = 60 - Math.floor(b);
350
- const B = { numeric: /^[0-9]{0,6}$/ };
351
- ge({ withLocale: "en", translations: {} });
352
- const O = () => {
353
- fetch(j).then((l) => l.json()).then((l) => {
354
- Object.keys(l).forEach((Y) => {
355
- W(Y, l[Y]);
348
+ le(r, pe, (t) => i(5, n = t));
349
+ let { endpoint: o = "" } = e, { tokenid: s = "" } = e, { playerid: f = "" } = e, { smstemplate: c = "Please use this code {0} to activate your accout" } = e, { number: d = "" } = e, { mbsource: y } = e, { clientstyling: A = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: F = "" } = e, C, P = !0, z = !1, _, h, N, x, S = +localStorage.getItem("smsTimer") || 0, I = Date.now() / 1e3 - S, M = 60 - Math.floor(I);
350
+ const O = { numeric: /^[0-9]{0,6}$/ };
351
+ ye({ withLocale: "en", translations: {} });
352
+ const H = () => {
353
+ fetch(F).then((j) => j.json()).then((j) => {
354
+ Object.keys(j).forEach((G) => {
355
+ J(G, j[G]);
356
356
  });
357
- }).catch((l) => {
358
- console.log(l);
357
+ }).catch((j) => {
358
+ console.log(j);
359
359
  });
360
360
  };
361
- Object.keys(Q).forEach((t) => {
362
- W(t, Q[t]);
361
+ Object.keys(X).forEach((t) => {
362
+ J(t, X[t]);
363
363
  });
364
- const U = () => D(this, null, function* () {
364
+ const q = () => Y(this, null, function* () {
365
365
  try {
366
- if ((yield fetch(`${r}/v1/player/${m}/activateSMS?tokenId=${a}&validationCode=${M}`, {
366
+ if ((yield fetch(`${o}/v1/player/${f}/activateSMS?tokenId=${s}&validationCode=${C}`, {
367
367
  headers: {
368
368
  "Content-Type": "application/json",
369
369
  accept: "application/json"
370
370
  }
371
371
  })).ok)
372
- i(2, V = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
372
+ i(2, P = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
373
373
  else
374
374
  throw window.postMessage(
375
375
  {
@@ -380,102 +380,104 @@ function Se(o, e, i) {
380
380
  }
381
381
  },
382
382
  window.location.href
383
- ), i(2, V = !1), new Error("Could not activate user");
383
+ ), i(2, P = !1), new Error("Could not activate user");
384
384
  } catch (t) {
385
385
  console.log(t);
386
386
  }
387
- }), q = () => D(this, null, function* () {
388
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), z();
387
+ }), L = () => Y(this, null, function* () {
388
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), b();
389
389
  try {
390
- const t = yield fetch(`${r}/v1/player/sms/token`, {
390
+ const t = yield fetch(`${o}/v1/player/sms/token`, {
391
391
  method: "POST",
392
392
  headers: {
393
393
  "Content-Type": "application/json",
394
394
  accept: "application/json"
395
395
  },
396
396
  body: JSON.stringify({
397
- userId: m,
397
+ userId: f,
398
398
  messageTemplate: c,
399
399
  destination: d
400
400
  })
401
- }), l = yield t.json();
401
+ }), j = yield t.json();
402
402
  if (t.ok)
403
- i(9, a = l.id), A = !1, N();
403
+ i(9, s = j.id), z = !1, V();
404
404
  else
405
- throw A = !0, new Error("Failed to fetch");
405
+ throw z = !0, new Error("Failed to fetch");
406
406
  } catch (t) {
407
- A = !0, console.error(t);
407
+ z = !0, console.error(t);
408
408
  }
409
- }), N = () => {
410
- C > 0 ? i(4, C--, C) : (clearInterval(_), i(3, _ = !1), i(4, C = 60));
411
- }, z = () => {
412
- b < 60 && i(3, _ = setInterval(
409
+ }), V = () => {
410
+ M > 0 ? i(4, M--, M) : (clearInterval(_), i(3, _ = !1), i(4, M = 60));
411
+ }, b = () => {
412
+ I < 60 && i(3, _ = setInterval(
413
413
  () => {
414
- N();
414
+ V();
415
415
  },
416
416
  1e3
417
417
  ));
418
- }, S = (t) => {
419
- !B.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
418
+ }, m = (t) => {
419
+ !O.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
420
420
  };
421
- le(() => {
422
- if (!m || !d) {
421
+ de(() => {
422
+ if (!f || !d) {
423
423
  let t = JSON.parse(localStorage.getItem("playerData"));
424
- i(10, m = t.playerid), i(11, d = t.number);
424
+ i(10, f = t.playerid), i(11, d = t.number);
425
425
  }
426
- return z(), () => {
426
+ return b(), () => {
427
+ x && x.unsubscribe();
427
428
  };
428
429
  });
429
- function f() {
430
- M = this.value, i(1, M);
430
+ function v() {
431
+ C = this.value, i(1, C);
431
432
  }
432
- const v = (t) => S(t);
433
- function g(t) {
434
- de[t ? "unshift" : "push"](() => {
435
- y = t, i(0, y);
433
+ const g = (t) => m(t);
434
+ function a(t) {
435
+ ue[t ? "unshift" : "push"](() => {
436
+ h = t, i(0, h);
436
437
  });
437
438
  }
438
- return o.$$set = (t) => {
439
- "endpoint" in t && i(12, r = t.endpoint), "tokenid" in t && i(9, a = t.tokenid), "playerid" in t && i(10, m = t.playerid), "smstemplate" in t && i(13, c = t.smstemplate), "number" in t && i(11, d = t.number), "mbsource" in t && i(14, h = t.mbsource), "clientstyling" in t && i(15, F = t.clientstyling), "clientstylingurl" in t && i(16, u = t.clientstylingurl), "translationurl" in t && i(17, j = t.translationurl);
440
- }, o.$$.update = () => {
441
- o.$$.dirty & /*tokenid, playerid, endpoint*/
442
- 5632, o.$$.dirty & /*clientstyling, customStylingContainer*/
443
- 32769 && F && y && ce(y, F), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
444
- 65537 && u && y && ue(y, u), o.$$.dirty & /*mbsource, customStylingContainer*/
445
- 16385 && h && y && me(y, `${h}.Style`, x), o.$$.dirty & /*translationurl*/
446
- 131072 && j && O();
439
+ return r.$$set = (t) => {
440
+ "endpoint" in t && i(12, o = t.endpoint), "tokenid" in t && i(9, s = t.tokenid), "playerid" in t && i(10, f = t.playerid), "smstemplate" in t && i(13, c = t.smstemplate), "number" in t && i(11, d = t.number), "mbsource" in t && i(14, y = t.mbsource), "clientstyling" in t && i(15, A = t.clientstyling), "clientstylingurl" in t && i(16, u = t.clientstylingurl), "translationurl" in t && i(17, F = t.translationurl);
441
+ }, r.$$.update = () => {
442
+ r.$$.dirty & /*tokenid, playerid, endpoint*/
443
+ 5632, r.$$.dirty & /*clientstyling, customStylingContainer*/
444
+ 32769 && A && h && me(h, A), r.$$.dirty & /*clientstylingurl, customStylingContainer*/
445
+ 65537 && u && h && fe(h, u), r.$$.dirty & /*mbsource, customStylingContainer*/
446
+ 16385 && y && h && ve(h, `${y}.Style`, N), r.$$.dirty & /*translationurl*/
447
+ 131072 && F && H(), r.$$.dirty & /*mbsource, translationurl*/
448
+ 147456 && y && !F && (x = ce(`${y}.Translation`, void 0, J, !0));
447
449
  }, [
448
- y,
449
- M,
450
- V,
451
- _,
450
+ h,
452
451
  C,
452
+ P,
453
+ _,
454
+ M,
453
455
  n,
454
- U,
455
456
  q,
456
- S,
457
- a,
457
+ L,
458
458
  m,
459
+ s,
460
+ f,
459
461
  d,
460
- r,
462
+ o,
461
463
  c,
462
- h,
463
- F,
464
+ y,
465
+ A,
464
466
  u,
465
- j,
466
- f,
467
+ F,
467
468
  v,
468
- g
469
+ g,
470
+ a
469
471
  ];
470
472
  }
471
- class ke extends ie {
473
+ class _e extends re {
472
474
  constructor(e) {
473
475
  super(), oe(
474
476
  this,
475
477
  e,
476
- Se,
477
- be,
478
- re,
478
+ we,
479
+ ke,
480
+ ne,
479
481
  {
480
482
  endpoint: 12,
481
483
  tokenid: 9,
@@ -487,7 +489,7 @@ class ke extends ie {
487
489
  clientstylingurl: 16,
488
490
  translationurl: 17
489
491
  },
490
- pe
492
+ he
491
493
  );
492
494
  }
493
495
  get endpoint() {
@@ -545,7 +547,7 @@ class ke extends ie {
545
547
  this.$$set({ translationurl: e }), E();
546
548
  }
547
549
  }
548
- fe(ke, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
550
+ ge(_e, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
549
551
  export {
550
- ke as default
552
+ _e as default
551
553
  };
@@ -0,0 +1 @@
1
+ "use strict";var V=(r,t,n)=>new Promise((a,o)=>{var l=d=>{try{c(n.next(d))}catch(g){o(g)}},p=d=>{try{c(n.throw(d))}catch(g){o(g)}},c=d=>d.done?a(d.value):Promise.resolve(d.value).then(l,p);c((n=n.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralPlayerRegisterFormNd-qRnCpc9S.cjs");function D({withLocale:r,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function B(r,t){e.addMessages(r,t)}const U={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 Y(r){e.append_styles(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))}")}function G(r){let t=r[5]("errorTitle")+"",n;return{c(){n=e.text(t)},m(a,o){e.insert(a,n,o)},p(a,o){o&32&&t!==(t=a[5]("errorTitle")+"")&&e.set_data(n,t)},d(a){a&&e.detach(n)}}}function J(r){let t=r[5]("title")+"",n;return{c(){n=e.text(t)},m(a,o){e.insert(a,n,o)},p(a,o){o&32&&t!==(t=a[5]("title")+"")&&e.set_data(n,t)},d(a){a&&e.detach(n)}}}function H(r){let t,n=r[5]("smsCodeError")+"",a;return{c(){t=e.element("p"),a=e.text(n),e.attr(t,"class","InvalidInput")},m(o,l){e.insert(o,t,l),e.append(t,a)},p(o,l){l&32&&n!==(n=o[5]("smsCodeError")+"")&&e.set_data(a,n)},d(o){o&&e.detach(t)}}}function O(r){let t,n=r[5]("resendMessage")+"",a;return{c(){t=e.element("p"),a=e.text(n),e.attr(t,"class","SmsVerificationResendMessage")},m(o,l){e.insert(o,t,l),e.append(t,a)},p(o,l){l&32&&n!==(n=o[5]("resendMessage")+"")&&e.set_data(a,n)},d(o){o&&e.detach(t)}}}function q(r){let t,n,a=r[4]<10?"0":"",o,l,p;return{c(){t=e.element("span"),n=e.text("(0:"),o=e.text(a),l=e.text(r[4]),p=e.text(")"),e.attr(t,"class","SmsVerificationResendTimer")},m(c,d){e.insert(c,t,d),e.append(t,n),e.append(t,o),e.append(t,l),e.append(t,p)},p(c,d){d&16&&a!==(a=c[4]<10?"0":"")&&e.set_data(o,a),d&16&&e.set_data(l,c[4])},d(c){c&&e.detach(t)}}}function K(r){let t,n,a,o,l,p=r[5]("code")+"",c,d,g,M,u,w,k,j,T,S,y=r[5]("activate")+"",x,A,b,E=r[5]("resend")+"",_,I,z,P;function R(s,i){return s[2]?J:G}let F=R(r),h=F(r),m=!r[2]&&H(r),f=r[3]&&O(r),v=r[3]&&q(r);return{c(){t=e.element("div"),n=e.element("h3"),h.c(),a=e.space(),o=e.element("div"),l=e.element("label"),c=e.text(p),d=e.text(":"),g=e.element("span"),g.textContent="*",M=e.space(),u=e.element("input"),w=e.space(),m&&m.c(),j=e.space(),f&&f.c(),T=e.space(),S=e.element("button"),x=e.text(y),A=e.space(),b=e.element("button"),_=e.text(E),I=e.space(),v&&v.c(),e.attr(n,"class","Title"),e.attr(g,"class","FormRequired"),e.attr(l,"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",k="Field SmsVerificationField "+(r[2]?"":"InvalidField")),e.attr(S,"class","Button SmsVerificationValidate"),e.attr(b,"class","Button SmsVerificationResend"),b.disabled=r[3],e.attr(t,"class","Container SmsVerificationContainer")},m(s,i){e.insert(s,t,i),e.append(t,n),h.m(n,null),e.append(t,a),e.append(t,o),e.append(o,l),e.append(l,c),e.append(l,d),e.append(l,g),e.append(o,M),e.append(o,u),e.set_input_value(u,r[1]),e.append(o,w),m&&m.m(o,null),e.append(t,j),f&&f.m(t,null),e.append(t,T),e.append(t,S),e.append(S,x),e.append(t,A),e.append(t,b),e.append(b,_),e.append(b,I),v&&v.m(b,null),r[20](t),z||(P=[e.listen(u,"input",r[18]),e.listen(u,"keydown",r[19]),e.listen(S,"click",r[6]),e.listen(b,"click",r[7])],z=!0)},p(s,[i]){F===(F=R(s))&&h?h.p(s,i):(h.d(1),h=F(s),h&&(h.c(),h.m(n,null))),i&32&&p!==(p=s[5]("code")+"")&&e.set_data(c,p),i&2&&u.value!==s[1]&&e.set_input_value(u,s[1]),s[2]?m&&(m.d(1),m=null):m?m.p(s,i):(m=H(s),m.c(),m.m(o,null)),i&4&&k!==(k="Field SmsVerificationField "+(s[2]?"":"InvalidField"))&&e.attr(o,"class",k),s[3]?f?f.p(s,i):(f=O(s),f.c(),f.m(t,T)):f&&(f.d(1),f=null),i&32&&y!==(y=s[5]("activate")+"")&&e.set_data(x,y),i&32&&E!==(E=s[5]("resend")+"")&&e.set_data(_,E),s[3]?v?v.p(s,i):(v=q(s),v.c(),v.m(b,null)):v&&(v.d(1),v=null),i&8&&(b.disabled=s[3])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),h.d(),m&&m.d(),f&&f.d(),v&&v.d(),r[20](null),z=!1,e.run_all(P)}}}function W(r,t,n){let a;e.component_subscribe(r,e.$format,i=>n(5,a=i));let{endpoint:o=""}=t,{tokenid:l=""}=t,{playerid:p=""}=t,{smstemplate:c="Please use this code {0} to activate your accout"}=t,{number:d=""}=t,{mbsource:g}=t,{clientstyling:M=""}=t,{clientstylingurl:u=""}=t,{translationurl:w=""}=t,k,j=!0,T=!1,S,y,x,A,b=+localStorage.getItem("smsTimer")||0,E=Date.now()/1e3-b,_=60-Math.floor(E);const I={numeric:/^[0-9]{0,6}$/};D({withLocale:"en",translations:{}});const z=()=>{fetch(w).then(C=>C.json()).then(C=>{Object.keys(C).forEach(N=>{B(N,C[N])})}).catch(C=>{console.log(C)})};Object.keys(U).forEach(i=>{B(i,U[i])});const P=()=>V(this,null,function*(){try{if((yield fetch(`${o}/v1/player/${p}/activateSMS?tokenId=${l}&validationCode=${k}`,{headers:{"Content-Type":"application/json",accept:"application/json"}})).ok)n(2,j=!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),n(2,j=!1),new Error("Could not activate user")}catch(i){console.log(i)}}),R=()=>V(this,null,function*(){localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3))),h();try{const i=yield fetch(`${o}/v1/player/sms/token`,{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:p,messageTemplate:c,destination:d})}),C=yield i.json();if(i.ok)n(9,l=C.id),T=!1,F();else throw T=!0,new Error("Failed to fetch")}catch(i){T=!0,console.error(i)}}),F=()=>{_>0?n(4,_--,_):(clearInterval(S),n(3,S=!1),n(4,_=60))},h=()=>{E<60&&n(3,S=setInterval(()=>{F()},1e3))},m=i=>{!I.numeric.test(i.key)&&i.keyCode!==8&&i.keyCode!==9&&i.keyCode!==46&&i.preventDefault()};e.onMount(()=>{if(!p||!d){let i=JSON.parse(localStorage.getItem("playerData"));n(10,p=i.playerid),n(11,d=i.number)}return h(),()=>{A&&A.unsubscribe()}});function f(){k=this.value,n(1,k)}const v=i=>m(i);function s(i){e.binding_callbacks[i?"unshift":"push"](()=>{y=i,n(0,y)})}return r.$$set=i=>{"endpoint"in i&&n(12,o=i.endpoint),"tokenid"in i&&n(9,l=i.tokenid),"playerid"in i&&n(10,p=i.playerid),"smstemplate"in i&&n(13,c=i.smstemplate),"number"in i&&n(11,d=i.number),"mbsource"in i&&n(14,g=i.mbsource),"clientstyling"in i&&n(15,M=i.clientstyling),"clientstylingurl"in i&&n(16,u=i.clientstylingurl),"translationurl"in i&&n(17,w=i.translationurl)},r.$$.update=()=>{r.$$.dirty&5632,r.$$.dirty&32769&&M&&y&&e.setClientStyling(y,M),r.$$.dirty&65537&&u&&y&&e.setClientStylingURL(y,u),r.$$.dirty&16385&&g&&y&&e.setStreamStyling(y,`${g}.Style`,x),r.$$.dirty&131072&&w&&z(),r.$$.dirty&147456&&g&&!w&&(A=e.getStreamTranslations(`${g}.Translation`,void 0,B,!0))},[y,k,j,S,_,a,P,R,m,l,p,d,o,c,g,M,u,w,f,v,s]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,W,K,e.safe_not_equal,{endpoint:12,tokenid:9,playerid:10,smstemplate:13,number:11,mbsource:14,clientstyling:15,clientstylingurl:16,translationurl:17},Y)}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 mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(L,{endpoint:{},tokenid:{},playerid:{},smstemplate:{},number:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=L;