@everymatrix/player-limit-notification 0.3.8 → 0.3.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.
@@ -11,25 +11,25 @@ const q = {
11
11
  savePlayerLimit: "SAVE",
12
12
  skipLimitLimitDescription: "I do not wish to set a limit at this time.",
13
13
  skipLimitSuccessful: "Your account limit has been successfully set.",
14
- skipLimitFail: "Something went wrong while setting your account limits. Try again later."
14
+ limitNotificationFail: "Something went wrong while setting your account limits. Try again later."
15
15
  },
16
16
  fr: {
17
17
  savePlayerLimit: "SAUVEGARDER",
18
18
  skipLimitLimitDescription: "Je ne souhaite pas fixer de limite pour le moment.",
19
19
  skipLimitSuccessful: "La limite de votre compte a été définie avec succès.",
20
- skipLimitFail: "Quelque chose s'est mal passé lors de la définition des limites de votre compte. Veuillez réessayer plus tard."
20
+ limitNotificationFail: "Quelque chose s'est mal passé lors de la définition des limites de votre compte. Veuillez réessayer plus tard."
21
21
  },
22
22
  ro: {
23
23
  savePlayerLimit: "SALVAȚI",
24
24
  skipLimitLimitDescription: "Nu doresc să stabilesc o limită în acest moment.",
25
25
  skipLimitSuccessful: "Limita contului dvs. a fost setată cu succes.",
26
- skipLimitFail: "Ceva nu a funcționat corect la setarea limitelor contului dvs. Încercați din nou mai târziu."
26
+ limitNotificationFail: "Ceva nu a funcționat corect la setarea limitelor contului dvs. Încercați din nou mai târziu."
27
27
  },
28
28
  hu: {
29
29
  savePlayerLimit: "MENTÉS",
30
30
  skipLimitLimitDescription: "Jelenleg nem kívánok limitet beállítani.",
31
31
  skipLimitSuccessful: "Fiókkorlátja sikeresen beállítva.",
32
- skipLimitFail: "Hiba történt a fiókkorlátok beállítása során. Próbálja újra később."
32
+ limitNotificationFail: "Hiba történt a fiókkorlátok beállítása során. Próbálja újra később."
33
33
  }
34
34
  };
35
35
  if (typeof window != "undefined") {
@@ -44,7 +44,7 @@ if (typeof window != "undefined") {
44
44
  }
45
45
  };
46
46
  };
47
- customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsWrapper2Nd-Cdueg9oj.js").then(({ default: t }) => {
47
+ customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsWrapper2Nd-CPDNuyBt.js").then(({ default: t }) => {
48
48
  !customElements.get("player-account-gaming-limits-wrapper-2-nd") && customElements.define(
49
49
  "player-account-gaming-limits-wrapper-2-nd",
50
50
  t.element
@@ -55,21 +55,21 @@ function ht(e) {
55
55
  st(e, "svelte-19al6x0", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-limit-modal{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;padding:0 10px;background-color:var(--emw--color-modal-background, rgba(0, 0, 0, 0.7))}.player-limit-modal .limit-modal-container{max-width:700px;min-width:300px;max-height:90vh;overflow-y:auto;position:relative;min-height:200px;border-radius:var(--emw--border-radius-medium, 10px)}.player-limit-modal .limit-submit-button{margin-top:20px;min-width:320px;height:40px;background-color:var(--emw--color-primary, #22b04e);border:none;border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));cursor:pointer;font-size:var(--emw--font-size-large, 20px)}.player-limit-modal .limit-submit-button.Mobile{font-size:var(--emw--font-size-small, 14px);padding:8px 0}.player-limit-modal .limit-submit-button:disabled{opacity:0.3;cursor:not-allowed}.player-limit-modal .toggle-content{display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;gap:10px}.player-limit-modal .toggle-content .skip-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:14px;height:14px;vertical-align:middle}.player-limit-modal .toggle-content .skip-switch.checked .skip-switch-core{border-color:var(--emw--color-primary, #22b04e);background:var(--emw--color-primary, #22b04e)}.player-limit-modal .toggle-content .skip-switch.checked .skip-switch-core::after{left:100%;margin-left:-12px}.player-limit-modal .toggle-content .skip-switch .skip-switch-input{position:absolute;width:0;height:0;opacity:0;margin:0}.player-limit-modal .toggle-content .skip-switch .skip-switch-core{width:22px;margin:0;display:inline-block;position:relative;height:14px;border:1px solid #ababab;outline:none;border-radius:10px;box-sizing:border-box;border-color:var(--emw--color-gray-300, #ababab);background:var(--emw--color-gray-300, #ababab);cursor:pointer;transition:border-color 0.3s, background-color 0.3s;vertical-align:middle}.player-limit-modal .toggle-content .skip-switch .skip-switch-core::after{content:"";position:absolute;top:1px;left:1px;border-radius:100%;transition:all 0.3s;width:10px;height:10px;background:#fff}.player-limit-modal .limit-skeleton{width:100%;container-type:inline-size;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.player-limit-modal .limit-skeleton .skeleton-wrapper{display:flex;flex-direction:column;width:320px;gap:10px}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-header{width:100%;margin-top:20px}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-sub-text{width:40%}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-period,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-input-amount,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-button{width:100%;border-radius:30px;overflow:hidden}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-button{margin-top:20px}@container (max-width: 768px){.player-limit-modal .limit-skeleton .skeleton-wrapper{width:100%}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-period,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-input-amount,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-button{width:inherit}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-sub-text{margin-top:10px}}');
56
56
  }
57
57
  function ft(e) {
58
- let t, n, l, b, w, y, A, x, L, d, p, g, v, M, C, S, N, h, _, z = (
58
+ let t, n, l, b, w, y, E, x, L, d, p, g, v, D, A, S, M, h, _, N = (
59
59
  /*$_*/
60
60
  e[4]("skipLimitLimitDescription") + ""
61
- ), D, T, r, m = (
61
+ ), C, T, r, m = (
62
62
  /*$_*/
63
63
  e[4]("savePlayerLimit") + ""
64
64
  ), k, P, G;
65
65
  return {
66
66
  c() {
67
- t = c("div"), n = c("div"), l = c("player-account-gaming-limits-wrapper-2-nd"), b = c("section"), w = j(), y = c("section"), A = j(), x = c("section"), x.innerHTML = '<div class="limit-skeleton"><div class="skeleton-wrapper"><div class="skeleton-header"><ui-skeleton width="auto" height="25px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skeleton-sub-text"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeleton-period"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeleton-sub-text"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeleton-input-amount"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeleton-button"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div></div></div>', L = j(), d = c("section"), p = c("button"), g = c("div"), v = c("input"), M = j(), C = c("span"), N = j(), h = c("div"), _ = c("p"), D = H(z), T = j(), r = c("button"), k = H(m), a(b, "slot", "LimitWrapperTitle"), a(y, "slot", "LimitsList"), a(x, "slot", "LimitSkeleton"), a(v, "type", "checkbox"), a(v, "class", "skip-switch-input"), a(C, "class", "skip-switch-core"), a(g, "class", S = "skip-switch " + /*skipLimit*/
67
+ t = c("div"), n = c("div"), l = c("player-account-gaming-limits-wrapper-2-nd"), b = c("section"), w = j(), y = c("section"), E = j(), x = c("section"), x.innerHTML = '<div class="limit-skeleton"><div class="skeleton-wrapper"><div class="skeleton-header"><ui-skeleton width="auto" height="25px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skeleton-sub-text"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeleton-period"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeleton-sub-text"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeleton-input-amount"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeleton-button"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div></div></div>', L = j(), d = c("section"), p = c("button"), g = c("div"), v = c("input"), D = j(), A = c("span"), M = j(), h = c("div"), _ = c("p"), C = H(N), T = j(), r = c("button"), k = H(m), a(b, "slot", "LimitWrapperTitle"), a(y, "slot", "LimitsList"), a(x, "slot", "LimitSkeleton"), a(v, "type", "checkbox"), a(v, "class", "skip-switch-input"), a(A, "class", "skip-switch-core"), a(g, "class", S = "skip-switch " + /*skipLimit*/
68
68
  (e[0] ? "checked" : "")), a(_, "class", "label"), a(h, "class", "skip-limit-label"), a(p, "class", "toggle-content"), a(r, "class", "limit-submit-button"), a(r, "type", "submit"), r.disabled = /*disableSaveLimit*/
69
69
  e[3], a(d, "slot", "LimitSubmitButton"), a(n, "class", "limit-modal-container"), a(t, "class", "player-limit-modal");
70
70
  },
71
- m(f, E) {
72
- at(f, t, E), s(t, n), s(n, l), s(l, b), s(l, w), s(l, y), s(l, A), s(l, x), s(l, L), s(l, d), s(d, p), s(p, g), s(g, v), s(g, M), s(g, C), s(p, N), s(p, h), s(h, _), s(_, D), s(d, T), s(d, r), s(r, k), e[25](l), e[26](t), P || (G = [
71
+ m(f, z) {
72
+ at(f, t, z), s(t, n), s(n, l), s(l, b), s(l, w), s(l, y), s(l, E), s(l, x), s(l, L), s(l, d), s(d, p), s(p, g), s(g, v), s(g, D), s(g, A), s(p, M), s(p, h), s(h, _), s(_, C), s(d, T), s(d, r), s(r, k), e[25](l), e[26](t), P || (G = [
73
73
  V(
74
74
  p,
75
75
  "click",
@@ -84,14 +84,14 @@ function ft(e) {
84
84
  )
85
85
  ], P = !0);
86
86
  },
87
- p(f, E) {
88
- E[0] & /*skipLimit*/
87
+ p(f, z) {
88
+ z[0] & /*skipLimit*/
89
89
  1 && S !== (S = "skip-switch " + /*skipLimit*/
90
- (f[0] ? "checked" : "")) && a(g, "class", S), E[0] & /*$_*/
91
- 16 && z !== (z = /*$_*/
92
- f[4]("skipLimitLimitDescription") + "") && R(D, z), E[0] & /*$_*/
90
+ (f[0] ? "checked" : "")) && a(g, "class", S), z[0] & /*$_*/
91
+ 16 && N !== (N = /*$_*/
92
+ f[4]("skipLimitLimitDescription") + "") && R(C, N), z[0] & /*$_*/
93
93
  16 && m !== (m = /*$_*/
94
- f[4]("savePlayerLimit") + "") && R(k, m), E[0] & /*disableSaveLimit*/
94
+ f[4]("savePlayerLimit") + "") && R(k, m), z[0] & /*disableSaveLimit*/
95
95
  8 && (r.disabled = /*disableSaveLimit*/
96
96
  f[3]);
97
97
  },
@@ -105,7 +105,7 @@ function ft(e) {
105
105
  function bt(e, t, n) {
106
106
  let l;
107
107
  rt(e, ct, (i) => n(4, l = i));
108
- let { clientstyling: b = "" } = t, { clientstylingurl: w = "" } = t, { mbsource: y } = t, { session: A = "" } = t, { userid: x = "" } = t, { lang: L = "" } = t, { endpoint: d = "" } = t, { tablabels: p = "Deposit Limits" } = t, { limitsamount: g = "All(deposit):1-50000" } = t, { limitsperiods: v = "All(deposit): D-W-M" } = t, { limitformat: M = "" } = t, { currency: C = "" } = t, { customcurrencysymbols: S = "" } = t, { apiversion: N = "" } = t, { translationurl: h = "" } = t, { timezone: _ = "GMT" } = t, { defaultperiod: z = "Monthly" } = t, D = !0, T = !0, r = !1, m, k;
108
+ let { clientstyling: b = "" } = t, { clientstylingurl: w = "" } = t, { mbsource: y } = t, { session: E = "" } = t, { userid: x = "" } = t, { lang: L = "" } = t, { endpoint: d = "" } = t, { tablabels: p = "Deposit Limits" } = t, { limitsamount: g = "All(deposit):1-50000" } = t, { limitsperiods: v = "All(deposit): D-W-M" } = t, { limitformat: D = "" } = t, { currency: A = "" } = t, { customcurrencysymbols: S = "" } = t, { apiversion: M = "" } = t, { translationurl: h = "" } = t, { timezone: _ = "GMT" } = t, { defaultperiod: N = "Monthly" } = t, C = !0, T = !0, r = !1, m, k;
109
109
  const P = `
110
110
  .GamingLimitsWrapper div.GamingLimitsContent {
111
111
  min-height: revert;
@@ -156,7 +156,7 @@ function bt(e, t, n) {
156
156
  Object.keys(q).forEach((i) => {
157
157
  J(i, q[i]);
158
158
  });
159
- const E = () => {
159
+ const z = () => {
160
160
  if (!T) {
161
161
  if (r) {
162
162
  Q();
@@ -168,7 +168,7 @@ function bt(e, t, n) {
168
168
  const i = new URL(`${d}/api/pam/v1/player-notifications`);
169
169
  i.searchParams.append("createNotificationIfNotFound", "true"), fetch(i, {
170
170
  headers: {
171
- "X-SessionId": A,
171
+ "X-SessionId": E,
172
172
  "Content-Type": "application/json"
173
173
  },
174
174
  method: "PATCH",
@@ -186,7 +186,7 @@ function bt(e, t, n) {
186
186
  type: "WidgetNotification",
187
187
  data: {
188
188
  type: "error",
189
- message: l("skipLimitFail")
189
+ message: l("limitNotificationFail")
190
190
  }
191
191
  },
192
192
  window.location.href
@@ -217,7 +217,7 @@ function bt(e, t, n) {
217
217
  if (i.data)
218
218
  switch (i.data.type) {
219
219
  case "InValidLimit": {
220
- n(24, D = i.data.data);
220
+ n(24, C = i.data.data);
221
221
  break;
222
222
  }
223
223
  }
@@ -228,23 +228,24 @@ function bt(e, t, n) {
228
228
  Object.entries({
229
229
  historyenabled: "false",
230
230
  clientstyling: b || P,
231
+ isLimitNotification: "true",
231
232
  limittabvisible: "true",
232
233
  endpoint: d,
233
234
  userid: x,
234
- session: A,
235
+ session: E,
235
236
  timezone: _,
236
237
  lang: L,
237
238
  tablabels: p,
238
239
  limitsamount: g,
239
240
  limitsperiods: v,
240
- currency: C,
241
+ currency: A,
241
242
  customcurrencysymbols: S,
242
- apiversion: N,
243
+ apiversion: M,
243
244
  translationurl: h,
244
245
  clientstylingurl: w,
245
246
  mbsource: y,
246
- defaultperiod: z,
247
- limitformat: M
247
+ defaultperiod: N,
248
+ limitformat: D
248
249
  }).forEach(([I, W]) => {
249
250
  W != null && i.setAttribute(I, W.toString());
250
251
  });
@@ -263,7 +264,7 @@ function bt(e, t, n) {
263
264
  });
264
265
  }
265
266
  return e.$$set = (i) => {
266
- "clientstyling" in i && n(7, b = i.clientstyling), "clientstylingurl" in i && n(8, w = i.clientstylingurl), "mbsource" in i && n(9, y = i.mbsource), "session" in i && n(10, A = i.session), "userid" in i && n(11, x = i.userid), "lang" in i && n(12, L = i.lang), "endpoint" in i && n(13, d = i.endpoint), "tablabels" in i && n(14, p = i.tablabels), "limitsamount" in i && n(15, g = i.limitsamount), "limitsperiods" in i && n(16, v = i.limitsperiods), "limitformat" in i && n(17, M = i.limitformat), "currency" in i && n(18, C = i.currency), "customcurrencysymbols" in i && n(19, S = i.customcurrencysymbols), "apiversion" in i && n(20, N = i.apiversion), "translationurl" in i && n(21, h = i.translationurl), "timezone" in i && n(22, _ = i.timezone), "defaultperiod" in i && n(23, z = i.defaultperiod);
267
+ "clientstyling" in i && n(7, b = i.clientstyling), "clientstylingurl" in i && n(8, w = i.clientstylingurl), "mbsource" in i && n(9, y = i.mbsource), "session" in i && n(10, E = i.session), "userid" in i && n(11, x = i.userid), "lang" in i && n(12, L = i.lang), "endpoint" in i && n(13, d = i.endpoint), "tablabels" in i && n(14, p = i.tablabels), "limitsamount" in i && n(15, g = i.limitsamount), "limitsperiods" in i && n(16, v = i.limitsperiods), "limitformat" in i && n(17, D = i.limitformat), "currency" in i && n(18, A = i.currency), "customcurrencysymbols" in i && n(19, S = i.customcurrencysymbols), "apiversion" in i && n(20, M = i.apiversion), "translationurl" in i && n(21, h = i.translationurl), "timezone" in i && n(22, _ = i.timezone), "defaultperiod" in i && n(23, N = i.defaultperiod);
267
268
  }, e.$$.update = () => {
268
269
  e.$$.dirty[0] & /*lang*/
269
270
  4096 && L && G(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
@@ -271,7 +272,7 @@ function bt(e, t, n) {
271
272
  258 && w && m && dt(m, w), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
272
273
  514 && y && m && pt(m, `${y}.Style`), e.$$.dirty[0] & /*translationurl*/
273
274
  2097152 && h && f(), e.$$.dirty[0] & /*skipLimit, invalidLimitInput*/
274
- 16777217 && n(3, T = r ? !1 : D), e.$$.dirty[0] & /*innerComponent*/
275
+ 16777217 && n(3, T = r ? !1 : C), e.$$.dirty[0] & /*innerComponent*/
275
276
  4 && k && X(k);
276
277
  }, [
277
278
  r,
@@ -279,26 +280,26 @@ function bt(e, t, n) {
279
280
  k,
280
281
  T,
281
282
  l,
282
- E,
283
+ z,
283
284
  B,
284
285
  b,
285
286
  w,
286
287
  y,
287
- A,
288
+ E,
288
289
  x,
289
290
  L,
290
291
  d,
291
292
  p,
292
293
  g,
293
294
  v,
294
- M,
295
- C,
295
+ D,
296
+ A,
296
297
  S,
297
- N,
298
+ M,
298
299
  h,
299
300
  _,
300
- z,
301
- D,
301
+ N,
302
+ C,
302
303
  Y,
303
304
  K
304
305
  ];
@@ -11,25 +11,25 @@ const q = {
11
11
  savePlayerLimit: "SAVE",
12
12
  skipLimitLimitDescription: "I do not wish to set a limit at this time.",
13
13
  skipLimitSuccessful: "Your account limit has been successfully set.",
14
- skipLimitFail: "Something went wrong while setting your account limits. Try again later."
14
+ limitNotificationFail: "Something went wrong while setting your account limits. Try again later."
15
15
  },
16
16
  fr: {
17
17
  savePlayerLimit: "SAUVEGARDER",
18
18
  skipLimitLimitDescription: "Je ne souhaite pas fixer de limite pour le moment.",
19
19
  skipLimitSuccessful: "La limite de votre compte a été définie avec succès.",
20
- skipLimitFail: "Quelque chose s'est mal passé lors de la définition des limites de votre compte. Veuillez réessayer plus tard."
20
+ limitNotificationFail: "Quelque chose s'est mal passé lors de la définition des limites de votre compte. Veuillez réessayer plus tard."
21
21
  },
22
22
  ro: {
23
23
  savePlayerLimit: "SALVAȚI",
24
24
  skipLimitLimitDescription: "Nu doresc să stabilesc o limită în acest moment.",
25
25
  skipLimitSuccessful: "Limita contului dvs. a fost setată cu succes.",
26
- skipLimitFail: "Ceva nu a funcționat corect la setarea limitelor contului dvs. Încercați din nou mai târziu."
26
+ limitNotificationFail: "Ceva nu a funcționat corect la setarea limitelor contului dvs. Încercați din nou mai târziu."
27
27
  },
28
28
  hu: {
29
29
  savePlayerLimit: "MENTÉS",
30
30
  skipLimitLimitDescription: "Jelenleg nem kívánok limitet beállítani.",
31
31
  skipLimitSuccessful: "Fiókkorlátja sikeresen beállítva.",
32
- skipLimitFail: "Hiba történt a fiókkorlátok beállítása során. Próbálja újra később."
32
+ limitNotificationFail: "Hiba történt a fiókkorlátok beállítása során. Próbálja újra később."
33
33
  }
34
34
  };
35
35
  if (typeof window < "u") {
@@ -44,7 +44,7 @@ if (typeof window < "u") {
44
44
  }
45
45
  };
46
46
  };
47
- customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsWrapper2Nd-CdAANzgA.js").then(({ default: t }) => {
47
+ customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsWrapper2Nd-TP3maFCi.js").then(({ default: t }) => {
48
48
  !customElements.get("player-account-gaming-limits-wrapper-2-nd") && customElements.define(
49
49
  "player-account-gaming-limits-wrapper-2-nd",
50
50
  t.element
@@ -55,21 +55,21 @@ function ht(e) {
55
55
  st(e, "svelte-19al6x0", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-limit-modal{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;padding:0 10px;background-color:var(--emw--color-modal-background, rgba(0, 0, 0, 0.7))}.player-limit-modal .limit-modal-container{max-width:700px;min-width:300px;max-height:90vh;overflow-y:auto;position:relative;min-height:200px;border-radius:var(--emw--border-radius-medium, 10px)}.player-limit-modal .limit-submit-button{margin-top:20px;min-width:320px;height:40px;background-color:var(--emw--color-primary, #22b04e);border:none;border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));cursor:pointer;font-size:var(--emw--font-size-large, 20px)}.player-limit-modal .limit-submit-button.Mobile{font-size:var(--emw--font-size-small, 14px);padding:8px 0}.player-limit-modal .limit-submit-button:disabled{opacity:0.3;cursor:not-allowed}.player-limit-modal .toggle-content{display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;gap:10px}.player-limit-modal .toggle-content .skip-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:14px;height:14px;vertical-align:middle}.player-limit-modal .toggle-content .skip-switch.checked .skip-switch-core{border-color:var(--emw--color-primary, #22b04e);background:var(--emw--color-primary, #22b04e)}.player-limit-modal .toggle-content .skip-switch.checked .skip-switch-core::after{left:100%;margin-left:-12px}.player-limit-modal .toggle-content .skip-switch .skip-switch-input{position:absolute;width:0;height:0;opacity:0;margin:0}.player-limit-modal .toggle-content .skip-switch .skip-switch-core{width:22px;margin:0;display:inline-block;position:relative;height:14px;border:1px solid #ababab;outline:none;border-radius:10px;box-sizing:border-box;border-color:var(--emw--color-gray-300, #ababab);background:var(--emw--color-gray-300, #ababab);cursor:pointer;transition:border-color 0.3s, background-color 0.3s;vertical-align:middle}.player-limit-modal .toggle-content .skip-switch .skip-switch-core::after{content:"";position:absolute;top:1px;left:1px;border-radius:100%;transition:all 0.3s;width:10px;height:10px;background:#fff}.player-limit-modal .limit-skeleton{width:100%;container-type:inline-size;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.player-limit-modal .limit-skeleton .skeleton-wrapper{display:flex;flex-direction:column;width:320px;gap:10px}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-header{width:100%;margin-top:20px}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-sub-text{width:40%}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-period,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-input-amount,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-button{width:100%;border-radius:30px;overflow:hidden}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-button{margin-top:20px}@container (max-width: 768px){.player-limit-modal .limit-skeleton .skeleton-wrapper{width:100%}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-period,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-input-amount,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-button{width:inherit}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-sub-text{margin-top:10px}}');
56
56
  }
57
57
  function ft(e) {
58
- let t, n, l, b, w, y, E, x, L, d, p, g, v, N, D, S, A, h, _, z = (
58
+ let t, n, l, b, w, y, C, x, v, d, p, g, L, M, E, S, A, h, _, N = (
59
59
  /*$_*/
60
60
  e[4]("skipLimitLimitDescription") + ""
61
- ), M, P, r, m = (
61
+ ), D, P, r, m = (
62
62
  /*$_*/
63
63
  e[4]("savePlayerLimit") + ""
64
64
  ), k, j, I;
65
65
  return {
66
66
  c() {
67
- t = c("div"), n = c("div"), l = c("player-account-gaming-limits-wrapper-2-nd"), b = c("section"), w = T(), y = c("section"), E = T(), x = c("section"), x.innerHTML = '<div class="limit-skeleton"><div class="skeleton-wrapper"><div class="skeleton-header"><ui-skeleton width="auto" height="25px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skeleton-sub-text"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeleton-period"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeleton-sub-text"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeleton-input-amount"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeleton-button"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div></div></div>', L = T(), d = c("section"), p = c("button"), g = c("div"), v = c("input"), N = T(), D = c("span"), A = T(), h = c("div"), _ = c("p"), M = H(z), P = T(), r = c("button"), k = H(m), a(b, "slot", "LimitWrapperTitle"), a(y, "slot", "LimitsList"), a(x, "slot", "LimitSkeleton"), a(v, "type", "checkbox"), a(v, "class", "skip-switch-input"), a(D, "class", "skip-switch-core"), a(g, "class", S = "skip-switch " + /*skipLimit*/
67
+ t = c("div"), n = c("div"), l = c("player-account-gaming-limits-wrapper-2-nd"), b = c("section"), w = T(), y = c("section"), C = T(), x = c("section"), x.innerHTML = '<div class="limit-skeleton"><div class="skeleton-wrapper"><div class="skeleton-header"><ui-skeleton width="auto" height="25px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skeleton-sub-text"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeleton-period"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeleton-sub-text"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeleton-input-amount"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeleton-button"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div></div></div>', v = T(), d = c("section"), p = c("button"), g = c("div"), L = c("input"), M = T(), E = c("span"), A = T(), h = c("div"), _ = c("p"), D = H(N), P = T(), r = c("button"), k = H(m), a(b, "slot", "LimitWrapperTitle"), a(y, "slot", "LimitsList"), a(x, "slot", "LimitSkeleton"), a(L, "type", "checkbox"), a(L, "class", "skip-switch-input"), a(E, "class", "skip-switch-core"), a(g, "class", S = "skip-switch " + /*skipLimit*/
68
68
  (e[0] ? "checked" : "")), a(_, "class", "label"), a(h, "class", "skip-limit-label"), a(p, "class", "toggle-content"), a(r, "class", "limit-submit-button"), a(r, "type", "submit"), r.disabled = /*disableSaveLimit*/
69
69
  e[3], a(d, "slot", "LimitSubmitButton"), a(n, "class", "limit-modal-container"), a(t, "class", "player-limit-modal");
70
70
  },
71
- m(f, C) {
72
- at(f, t, C), s(t, n), s(n, l), s(l, b), s(l, w), s(l, y), s(l, E), s(l, x), s(l, L), s(l, d), s(d, p), s(p, g), s(g, v), s(g, N), s(g, D), s(p, A), s(p, h), s(h, _), s(_, M), s(d, P), s(d, r), s(r, k), e[25](l), e[26](t), j || (I = [
71
+ m(f, z) {
72
+ at(f, t, z), s(t, n), s(n, l), s(l, b), s(l, w), s(l, y), s(l, C), s(l, x), s(l, v), s(l, d), s(d, p), s(p, g), s(g, L), s(g, M), s(g, E), s(p, A), s(p, h), s(h, _), s(_, D), s(d, P), s(d, r), s(r, k), e[25](l), e[26](t), j || (I = [
73
73
  V(
74
74
  p,
75
75
  "click",
@@ -84,14 +84,14 @@ function ft(e) {
84
84
  )
85
85
  ], j = !0);
86
86
  },
87
- p(f, C) {
88
- C[0] & /*skipLimit*/
87
+ p(f, z) {
88
+ z[0] & /*skipLimit*/
89
89
  1 && S !== (S = "skip-switch " + /*skipLimit*/
90
- (f[0] ? "checked" : "")) && a(g, "class", S), C[0] & /*$_*/
91
- 16 && z !== (z = /*$_*/
92
- f[4]("skipLimitLimitDescription") + "") && R(M, z), C[0] & /*$_*/
90
+ (f[0] ? "checked" : "")) && a(g, "class", S), z[0] & /*$_*/
91
+ 16 && N !== (N = /*$_*/
92
+ f[4]("skipLimitLimitDescription") + "") && R(D, N), z[0] & /*$_*/
93
93
  16 && m !== (m = /*$_*/
94
- f[4]("savePlayerLimit") + "") && R(k, m), C[0] & /*disableSaveLimit*/
94
+ f[4]("savePlayerLimit") + "") && R(k, m), z[0] & /*disableSaveLimit*/
95
95
  8 && (r.disabled = /*disableSaveLimit*/
96
96
  f[3]);
97
97
  },
@@ -105,7 +105,7 @@ function ft(e) {
105
105
  function bt(e, t, n) {
106
106
  let l;
107
107
  rt(e, ct, (i) => n(4, l = i));
108
- let { clientstyling: b = "" } = t, { clientstylingurl: w = "" } = t, { mbsource: y } = t, { session: E = "" } = t, { userid: x = "" } = t, { lang: L = "" } = t, { endpoint: d = "" } = t, { tablabels: p = "Deposit Limits" } = t, { limitsamount: g = "All(deposit):1-50000" } = t, { limitsperiods: v = "All(deposit): D-W-M" } = t, { limitformat: N = "" } = t, { currency: D = "" } = t, { customcurrencysymbols: S = "" } = t, { apiversion: A = "" } = t, { translationurl: h = "" } = t, { timezone: _ = "GMT" } = t, { defaultperiod: z = "Monthly" } = t, M = !0, P = !0, r = !1, m, k;
108
+ let { clientstyling: b = "" } = t, { clientstylingurl: w = "" } = t, { mbsource: y } = t, { session: C = "" } = t, { userid: x = "" } = t, { lang: v = "" } = t, { endpoint: d = "" } = t, { tablabels: p = "Deposit Limits" } = t, { limitsamount: g = "All(deposit):1-50000" } = t, { limitsperiods: L = "All(deposit): D-W-M" } = t, { limitformat: M = "" } = t, { currency: E = "" } = t, { customcurrencysymbols: S = "" } = t, { apiversion: A = "" } = t, { translationurl: h = "" } = t, { timezone: _ = "GMT" } = t, { defaultperiod: N = "Monthly" } = t, D = !0, P = !0, r = !1, m, k;
109
109
  const j = `
110
110
  .GamingLimitsWrapper div.GamingLimitsContent {
111
111
  min-height: revert;
@@ -143,7 +143,7 @@ function bt(e, t, n) {
143
143
  margin-right: 5px;
144
144
  }
145
145
  `, I = () => {
146
- gt(L);
146
+ gt(v);
147
147
  }, f = () => {
148
148
  fetch(h).then((u) => u.json()).then((u) => {
149
149
  Object.keys(u).forEach((W) => {
@@ -156,7 +156,7 @@ function bt(e, t, n) {
156
156
  Object.keys(q).forEach((i) => {
157
157
  J(i, q[i]);
158
158
  });
159
- const C = () => {
159
+ const z = () => {
160
160
  if (!P) {
161
161
  if (r) {
162
162
  Q();
@@ -168,7 +168,7 @@ function bt(e, t, n) {
168
168
  const i = new URL(`${d}/api/pam/v1/player-notifications`);
169
169
  i.searchParams.append("createNotificationIfNotFound", "true"), fetch(i, {
170
170
  headers: {
171
- "X-SessionId": E,
171
+ "X-SessionId": C,
172
172
  "Content-Type": "application/json"
173
173
  },
174
174
  method: "PATCH",
@@ -186,7 +186,7 @@ function bt(e, t, n) {
186
186
  type: "WidgetNotification",
187
187
  data: {
188
188
  type: "error",
189
- message: l("skipLimitFail")
189
+ message: l("limitNotificationFail")
190
190
  }
191
191
  },
192
192
  window.location.href
@@ -217,7 +217,7 @@ function bt(e, t, n) {
217
217
  if (i.data)
218
218
  switch (i.data.type) {
219
219
  case "InValidLimit": {
220
- n(24, M = i.data.data);
220
+ n(24, D = i.data.data);
221
221
  break;
222
222
  }
223
223
  }
@@ -228,23 +228,24 @@ function bt(e, t, n) {
228
228
  Object.entries({
229
229
  historyenabled: "false",
230
230
  clientstyling: b || j,
231
+ isLimitNotification: "true",
231
232
  limittabvisible: "true",
232
233
  endpoint: d,
233
234
  userid: x,
234
- session: E,
235
+ session: C,
235
236
  timezone: _,
236
- lang: L,
237
+ lang: v,
237
238
  tablabels: p,
238
239
  limitsamount: g,
239
- limitsperiods: v,
240
- currency: D,
240
+ limitsperiods: L,
241
+ currency: E,
241
242
  customcurrencysymbols: S,
242
243
  apiversion: A,
243
244
  translationurl: h,
244
245
  clientstylingurl: w,
245
246
  mbsource: y,
246
- defaultperiod: z,
247
- limitformat: N
247
+ defaultperiod: N,
248
+ limitformat: M
248
249
  }).forEach(([W, G]) => {
249
250
  G != null && i.setAttribute(W, G.toString());
250
251
  });
@@ -263,15 +264,15 @@ function bt(e, t, n) {
263
264
  });
264
265
  }
265
266
  return e.$$set = (i) => {
266
- "clientstyling" in i && n(7, b = i.clientstyling), "clientstylingurl" in i && n(8, w = i.clientstylingurl), "mbsource" in i && n(9, y = i.mbsource), "session" in i && n(10, E = i.session), "userid" in i && n(11, x = i.userid), "lang" in i && n(12, L = i.lang), "endpoint" in i && n(13, d = i.endpoint), "tablabels" in i && n(14, p = i.tablabels), "limitsamount" in i && n(15, g = i.limitsamount), "limitsperiods" in i && n(16, v = i.limitsperiods), "limitformat" in i && n(17, N = i.limitformat), "currency" in i && n(18, D = i.currency), "customcurrencysymbols" in i && n(19, S = i.customcurrencysymbols), "apiversion" in i && n(20, A = i.apiversion), "translationurl" in i && n(21, h = i.translationurl), "timezone" in i && n(22, _ = i.timezone), "defaultperiod" in i && n(23, z = i.defaultperiod);
267
+ "clientstyling" in i && n(7, b = i.clientstyling), "clientstylingurl" in i && n(8, w = i.clientstylingurl), "mbsource" in i && n(9, y = i.mbsource), "session" in i && n(10, C = i.session), "userid" in i && n(11, x = i.userid), "lang" in i && n(12, v = i.lang), "endpoint" in i && n(13, d = i.endpoint), "tablabels" in i && n(14, p = i.tablabels), "limitsamount" in i && n(15, g = i.limitsamount), "limitsperiods" in i && n(16, L = i.limitsperiods), "limitformat" in i && n(17, M = i.limitformat), "currency" in i && n(18, E = i.currency), "customcurrencysymbols" in i && n(19, S = i.customcurrencysymbols), "apiversion" in i && n(20, A = i.apiversion), "translationurl" in i && n(21, h = i.translationurl), "timezone" in i && n(22, _ = i.timezone), "defaultperiod" in i && n(23, N = i.defaultperiod);
267
268
  }, e.$$.update = () => {
268
269
  e.$$.dirty[0] & /*lang*/
269
- 4096 && L && I(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
270
+ 4096 && v && I(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
270
271
  130 && b && m && ut(m, b), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
271
272
  258 && w && m && dt(m, w), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
272
273
  514 && y && m && pt(m, `${y}.Style`), e.$$.dirty[0] & /*translationurl*/
273
274
  2097152 && h && f(), e.$$.dirty[0] & /*skipLimit, invalidLimitInput*/
274
- 16777217 && n(3, P = r ? !1 : M), e.$$.dirty[0] & /*innerComponent*/
275
+ 16777217 && n(3, P = r ? !1 : D), e.$$.dirty[0] & /*innerComponent*/
275
276
  4 && k && X(k);
276
277
  }, [
277
278
  r,
@@ -279,26 +280,26 @@ function bt(e, t, n) {
279
280
  k,
280
281
  P,
281
282
  l,
282
- C,
283
+ z,
283
284
  B,
284
285
  b,
285
286
  w,
286
287
  y,
287
- E,
288
+ C,
288
289
  x,
289
- L,
290
+ v,
290
291
  d,
291
292
  p,
292
293
  g,
293
- v,
294
- N,
295
- D,
294
+ L,
295
+ M,
296
+ E,
296
297
  S,
297
298
  A,
298
299
  h,
299
300
  _,
300
- z,
301
- M,
301
+ N,
302
+ D,
302
303
  Y,
303
304
  K
304
305
  ];
@@ -0,0 +1,37 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountGamingLimitsHistory2Nd-BEuKrge-.cjs");require("../stencil/ui-skeleton-BreIU6e5.cjs");function G(n,e){t.addMessages(n,e)}function V(n){t.$locale.set(n)}const I={en:{savePlayerLimit:"SAVE",skipLimitLimitDescription:"I do not wish to set a limit at this time.",skipLimitSuccessful:"Your account limit has been successfully set.",limitNotificationFail:"Something went wrong while setting your account limits. Try again later."},fr:{savePlayerLimit:"SAUVEGARDER",skipLimitLimitDescription:"Je ne souhaite pas fixer de limite pour le moment.",skipLimitSuccessful:"La limite de votre compte a été définie avec succès.",limitNotificationFail:"Quelque chose s'est mal passé lors de la définition des limites de votre compte. Veuillez réessayer plus tard."},ro:{savePlayerLimit:"SALVAȚI",skipLimitLimitDescription:"Nu doresc să stabilesc o limită în acest moment.",skipLimitSuccessful:"Limita contului dvs. a fost setată cu succes.",limitNotificationFail:"Ceva nu a funcționat corect la setarea limitelor contului dvs. Încercați din nou mai târziu."},hu:{savePlayerLimit:"MENTÉS",skipLimitLimitDescription:"Jelenleg nem kívánok limitet beállítani.",skipLimitSuccessful:"Fiókkorlátja sikeresen beállítva.",limitNotificationFail:"Hiba történt a fiókkorlátok beállítása során. Próbálja újra később."}};if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsWrapper2Nd-BdSO5r21.cjs")).then(({default:e})=>{!customElements.get("player-account-gaming-limits-wrapper-2-nd")&&customElements.define("player-account-gaming-limits-wrapper-2-nd",e.element)})}function U(n){t.append_styles(n,"svelte-19al6x0",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-limit-modal{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;padding:0 10px;background-color:var(--emw--color-modal-background, rgba(0, 0, 0, 0.7))}.player-limit-modal .limit-modal-container{max-width:700px;min-width:300px;max-height:90vh;overflow-y:auto;position:relative;min-height:200px;border-radius:var(--emw--border-radius-medium, 10px)}.player-limit-modal .limit-submit-button{margin-top:20px;min-width:320px;height:40px;background-color:var(--emw--color-primary, #22b04e);border:none;border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));cursor:pointer;font-size:var(--emw--font-size-large, 20px)}.player-limit-modal .limit-submit-button.Mobile{font-size:var(--emw--font-size-small, 14px);padding:8px 0}.player-limit-modal .limit-submit-button:disabled{opacity:0.3;cursor:not-allowed}.player-limit-modal .toggle-content{display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;cursor:pointer;gap:10px}.player-limit-modal .toggle-content .skip-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:14px;height:14px;vertical-align:middle}.player-limit-modal .toggle-content .skip-switch.checked .skip-switch-core{border-color:var(--emw--color-primary, #22b04e);background:var(--emw--color-primary, #22b04e)}.player-limit-modal .toggle-content .skip-switch.checked .skip-switch-core::after{left:100%;margin-left:-12px}.player-limit-modal .toggle-content .skip-switch .skip-switch-input{position:absolute;width:0;height:0;opacity:0;margin:0}.player-limit-modal .toggle-content .skip-switch .skip-switch-core{width:22px;margin:0;display:inline-block;position:relative;height:14px;border:1px solid #ababab;outline:none;border-radius:10px;box-sizing:border-box;border-color:var(--emw--color-gray-300, #ababab);background:var(--emw--color-gray-300, #ababab);cursor:pointer;transition:border-color 0.3s, background-color 0.3s;vertical-align:middle}.player-limit-modal .toggle-content .skip-switch .skip-switch-core::after{content:"";position:absolute;top:1px;left:1px;border-radius:100%;transition:all 0.3s;width:10px;height:10px;background:#fff}.player-limit-modal .limit-skeleton{width:100%;container-type:inline-size;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.player-limit-modal .limit-skeleton .skeleton-wrapper{display:flex;flex-direction:column;width:320px;gap:10px}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-header{width:100%;margin-top:20px}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-sub-text{width:40%}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-period,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-input-amount,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-button{width:100%;border-radius:30px;overflow:hidden}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-button{margin-top:20px}@container (max-width: 768px){.player-limit-modal .limit-skeleton .skeleton-wrapper{width:100%}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-period,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-input-amount,.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-button{width:inherit}.player-limit-modal .limit-skeleton .skeleton-wrapper .skeleton-sub-text{margin-top:10px}}')}function J(n){let e,s,l,g,b,h,_,y,k,m,c,u,w,E,N,x,M,d,v,L=n[4]("skipLimitLimitDescription")+"",z,A,o,a=n[4]("savePlayerLimit")+"",f,C,P;return{c(){e=t.element("div"),s=t.element("div"),l=t.element("player-account-gaming-limits-wrapper-2-nd"),g=t.element("section"),b=t.space(),h=t.element("section"),_=t.space(),y=t.element("section"),y.innerHTML='<div class="limit-skeleton"><div class="skeleton-wrapper"><div class="skeleton-header"><ui-skeleton width="auto" height="25px" structure="title" margin-right="auto"></ui-skeleton></div> <div class="skeleton-sub-text"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeleton-period"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeleton-sub-text"><ui-skeleton width="auto" height="15px" structure="text" margin-right="auto"></ui-skeleton></div> <div class="skeleton-input-amount"><ui-skeleton width="auto" height="40px" structure="rectangle" margin-right="auto"></ui-skeleton></div> <div class="skeleton-button"><ui-skeleton width="auto" height="50px" structure="rectangle" margin-right="auto"></ui-skeleton></div></div></div>',k=t.space(),m=t.element("section"),c=t.element("button"),u=t.element("div"),w=t.element("input"),E=t.space(),N=t.element("span"),M=t.space(),d=t.element("div"),v=t.element("p"),z=t.text(L),A=t.space(),o=t.element("button"),f=t.text(a),t.attr(g,"slot","LimitWrapperTitle"),t.attr(h,"slot","LimitsList"),t.attr(y,"slot","LimitSkeleton"),t.attr(w,"type","checkbox"),t.attr(w,"class","skip-switch-input"),t.attr(N,"class","skip-switch-core"),t.attr(u,"class",x="skip-switch "+(n[0]?"checked":"")),t.attr(v,"class","label"),t.attr(d,"class","skip-limit-label"),t.attr(c,"class","toggle-content"),t.attr(o,"class","limit-submit-button"),t.attr(o,"type","submit"),o.disabled=n[3],t.attr(m,"slot","LimitSubmitButton"),t.attr(s,"class","limit-modal-container"),t.attr(e,"class","player-limit-modal")},m(p,S){t.insert(p,e,S),t.append(e,s),t.append(s,l),t.append(l,g),t.append(l,b),t.append(l,h),t.append(l,_),t.append(l,y),t.append(l,k),t.append(l,m),t.append(m,c),t.append(c,u),t.append(u,w),t.append(u,E),t.append(u,N),t.append(c,M),t.append(c,d),t.append(d,v),t.append(v,z),t.append(m,A),t.append(m,o),t.append(o,f),n[25](l),n[26](e),C||(P=[t.listen(c,"click",n[6]),t.listen(o,"click",n[5])],C=!0)},p(p,S){S[0]&1&&x!==(x="skip-switch "+(p[0]?"checked":""))&&t.attr(u,"class",x),S[0]&16&&L!==(L=p[4]("skipLimitLimitDescription")+"")&&t.set_data(z,L),S[0]&16&&a!==(a=p[4]("savePlayerLimit")+"")&&t.set_data(f,a),S[0]&8&&(o.disabled=p[3])},i:t.noop,o:t.noop,d(p){p&&t.detach(e),n[25](null),n[26](null),C=!1,t.run_all(P)}}}function B(n,e,s){let l;t.component_subscribe(n,t.$format,i=>s(4,l=i));let{clientstyling:g=""}=e,{clientstylingurl:b=""}=e,{mbsource:h}=e,{session:_=""}=e,{userid:y=""}=e,{lang:k=""}=e,{endpoint:m=""}=e,{tablabels:c="Deposit Limits"}=e,{limitsamount:u="All(deposit):1-50000"}=e,{limitsperiods:w="All(deposit): D-W-M"}=e,{limitformat:E=""}=e,{currency:N=""}=e,{customcurrencysymbols:x=""}=e,{apiversion:M=""}=e,{translationurl:d=""}=e,{timezone:v="GMT"}=e,{defaultperiod:L="Monthly"}=e,z=!0,A=!0,o=!1,a,f;const C=`
2
+ .GamingLimitsWrapper div.GamingLimitsContent {
3
+ min-height: revert;
4
+ }
5
+ .player-account-gaming-limits-page-2-gm16 .LimitsPageContainer {
6
+ min-height: revert;
7
+ }
8
+ div.GamingLimitsWrapper {
9
+ min-height: revert;
10
+ padding: 14px;
11
+ }
12
+ form.LimitsInteractionArea {
13
+ align-items: center;
14
+ margin: 0;
15
+ }
16
+ form.LimitsInteractionArea .LimitTitle {
17
+ margin: 10px;
18
+ }
19
+ .GamingLimitsWrapper div.GamingLimitsContent {
20
+ justify-content: center;
21
+ }
22
+ .GamingLimitsWrapper div.limitsDescription {
23
+ padding: 14px;
24
+ }
25
+ .GamingLimitsWrapper div.TabsContainer{
26
+ margin: 0;
27
+ }
28
+
29
+ .GamingLimitsWrapper div.LimitsTab {
30
+ flex-direction:column;
31
+ height: fit-content;
32
+ width: 100%;
33
+ padding: 5px 0;
34
+ font-size: 10px;
35
+ margin-right: 5px;
36
+ }
37
+ `,P=()=>{V(k)},p=()=>{fetch(d).then(r=>r.json()).then(r=>{Object.keys(r).forEach(T=>{G(T,r[T])})}).catch(r=>{console.log(r)})};Object.keys(I).forEach(i=>{G(i,I[i])});const S=()=>{if(!A){if(o){O();return}window.postMessage({type:"SubmitLimitNotification"},window.location.href)}},O=()=>{const i=new URL(`${m}/api/pam/v1/player-notifications`);i.searchParams.append("createNotificationIfNotFound","true"),fetch(i,{headers:{"X-SessionId":_,"Content-Type":"application/json"},method:"PATCH",body:JSON.stringify({type:1,interval:5,ackNotification:!0,ackNotificationTimestamp:new Date().toISOString()})}).then(r=>{if(r.ok)return r.json();throw window.postMessage({type:"WidgetNotification",data:{type:"error",message:l("limitNotificationFail")}},window.location.href),new Error("Error while skipping the limit setting")}).then(()=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:l("skipLimitSuccessful")}},window.location.href),window.postMessage({type:"SkipLimitSuccessful"},window.location.href)}).catch(r=>{console.error(r)})},F=()=>{s(0,o=!o),window.postMessage({type:"LimitDisableState",data:o},window.location.href)},j=i=>{if(i.data)switch(i.data.type){case"InValidLimit":{s(24,z=i.data.data);break}}};function q(i){if(!i)return;Object.entries({historyenabled:"false",clientstyling:g||C,isLimitNotification:"true",limittabvisible:"true",endpoint:m,userid:y,session:_,timezone:v,lang:k,tablabels:c,limitsamount:u,limitsperiods:w,currency:N,customcurrencysymbols:x,apiversion:M,translationurl:d,clientstylingurl:b,mbsource:h,defaultperiod:L,limitformat:E}).forEach(([T,D])=>{D!=null&&i.setAttribute(T,D.toString())})}t.onMount(()=>(window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}));function H(i){t.binding_callbacks[i?"unshift":"push"](()=>{f=i,s(2,f)})}function R(i){t.binding_callbacks[i?"unshift":"push"](()=>{a=i,s(1,a)})}return n.$$set=i=>{"clientstyling"in i&&s(7,g=i.clientstyling),"clientstylingurl"in i&&s(8,b=i.clientstylingurl),"mbsource"in i&&s(9,h=i.mbsource),"session"in i&&s(10,_=i.session),"userid"in i&&s(11,y=i.userid),"lang"in i&&s(12,k=i.lang),"endpoint"in i&&s(13,m=i.endpoint),"tablabels"in i&&s(14,c=i.tablabels),"limitsamount"in i&&s(15,u=i.limitsamount),"limitsperiods"in i&&s(16,w=i.limitsperiods),"limitformat"in i&&s(17,E=i.limitformat),"currency"in i&&s(18,N=i.currency),"customcurrencysymbols"in i&&s(19,x=i.customcurrencysymbols),"apiversion"in i&&s(20,M=i.apiversion),"translationurl"in i&&s(21,d=i.translationurl),"timezone"in i&&s(22,v=i.timezone),"defaultperiod"in i&&s(23,L=i.defaultperiod)},n.$$.update=()=>{n.$$.dirty[0]&4096&&k&&P(),n.$$.dirty[0]&130&&g&&a&&t.setClientStyling(a,g),n.$$.dirty[0]&258&&b&&a&&t.setClientStylingURL(a,b),n.$$.dirty[0]&514&&h&&a&&t.setStreamStyling(a,`${h}.Style`),n.$$.dirty[0]&2097152&&d&&p(),n.$$.dirty[0]&16777217&&s(3,A=o?!1:z),n.$$.dirty[0]&4&&f&&q(f)},[o,a,f,A,l,S,F,g,b,h,_,y,k,m,c,u,w,E,N,x,M,d,v,L,z,H,R]}class W extends t.SvelteComponent{constructor(e){super(),t.init(this,e,B,J,t.safe_not_equal,{clientstyling:7,clientstylingurl:8,mbsource:9,session:10,userid:11,lang:12,endpoint:13,tablabels:14,limitsamount:15,limitsperiods:16,limitformat:17,currency:18,customcurrencysymbols:19,apiversion:20,translationurl:21,timezone:22,defaultperiod:23},U,[-1,-1])}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[9]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get session(){return this.$$.ctx[10]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[11]}set userid(e){this.$$set({userid:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get tablabels(){return this.$$.ctx[14]}set tablabels(e){this.$$set({tablabels:e}),t.flush()}get limitsamount(){return this.$$.ctx[15]}set limitsamount(e){this.$$set({limitsamount:e}),t.flush()}get limitsperiods(){return this.$$.ctx[16]}set limitsperiods(e){this.$$set({limitsperiods:e}),t.flush()}get limitformat(){return this.$$.ctx[17]}set limitformat(e){this.$$set({limitformat:e}),t.flush()}get currency(){return this.$$.ctx[18]}set currency(e){this.$$set({currency:e}),t.flush()}get customcurrencysymbols(){return this.$$.ctx[19]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),t.flush()}get apiversion(){return this.$$.ctx[20]}set apiversion(e){this.$$set({apiversion:e}),t.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get timezone(){return this.$$.ctx[22]}set timezone(e){this.$$set({timezone:e}),t.flush()}get defaultperiod(){return this.$$.ctx[23]}set defaultperiod(e){this.$$set({defaultperiod:e}),t.flush()}}t.create_custom_element(W,{clientstyling:{},clientstylingurl:{},mbsource:{},session:{},userid:{},lang:{},endpoint:{},tablabels:{},limitsamount:{},limitsperiods:{},limitformat:{},currency:{},customcurrencysymbols:{},apiversion:{},translationurl:{},timezone:{},defaultperiod:{}},[],[],!0);exports.default=W;
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerLimitNotification-DmzC9tSa.cjs")).then(({default:t})=>{!customElements.get("player-limit-notification")&&customElements.define("player-limit-notification",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerLimitNotification-Dy7hiisP.cjs")).then(({default:t})=>{!customElements.get("player-limit-notification")&&customElements.define("player-limit-notification",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PlayerLimitNotification-w-X8knI5.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerLimitNotification-ClJBCpH7.js").then(({ default: t }) => {
14
14
  !customElements.get("player-limit-notification") && customElements.define("player-limit-notification", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { P as n } from "../components/PlayerLimitNotification-CbrAl95T.js";
1
+ import { P as n } from "../components/PlayerLimitNotification-D9hpQwV5.js";
2
2
  function s(t) {
3
3
  return function(...i) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-limit-notification",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "type": "module",
5
5
  "main": "esnext/player-limit-notification.js",
6
6
  "module": "esnext/player-limit-notification.js",