@everymatrix/player-limit-notification 0.0.1

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 (27) hide show
  1. package/components/PlayerAccountGamingLimitsHistory2Nd-B2G860pn.js +5185 -0
  2. package/components/PlayerAccountGamingLimitsHistory2Nd-BEuKrge-.cjs +18 -0
  3. package/components/PlayerAccountGamingLimitsHistory2Nd-BqKMtdOt.js +5148 -0
  4. package/components/PlayerAccountGamingLimitsPage2Gm16Nd-B16fR8Dm.cjs +35 -0
  5. package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DC2gUFiv.js +4605 -0
  6. package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DWXdAD8O.js +4550 -0
  7. package/components/PlayerAccountGamingLimitsWrapper2Nd-BBjEuw8E.cjs +4 -0
  8. package/components/PlayerAccountGamingLimitsWrapper2Nd-BG0k5-qm.js +1535 -0
  9. package/components/PlayerAccountGamingLimitsWrapper2Nd-DuDKdVjB.js +1541 -0
  10. package/components/PlayerLimitNotification-BWs0Ehdx.js +557 -0
  11. package/components/PlayerLimitNotification-D4W-twP9.cjs +37 -0
  12. package/components/PlayerLimitNotification-DKgMulNV.js +557 -0
  13. package/es2015/player-limit-notification.cjs +1 -0
  14. package/es2015/player-limit-notification.js +16 -0
  15. package/esnext/player-limit-notification.js +14 -0
  16. package/package.json +25 -0
  17. package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
  18. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  19. package/stencil/index-b2193545-9K-aI7zC.cjs +1 -0
  20. package/stencil/index-b2193545-DsMHU6jb.js +519 -0
  21. package/stencil/index-b2193545-R7ZoV-kY.js +503 -0
  22. package/stencil/ui-skeleton-BreIU6e5.cjs +1 -0
  23. package/stencil/ui-skeleton-W50o8tfg.js +11 -0
  24. package/stencil/ui-skeleton-ed169f8f-CVY4B-CP.js +155 -0
  25. package/stencil/ui-skeleton-ed169f8f-CpiCXJrP.cjs +55 -0
  26. package/stencil/ui-skeleton-ed169f8f-D3TjbVKy.js +155 -0
  27. package/stencil/ui-skeleton-xXZA3rYO.js +29 -0
@@ -0,0 +1,557 @@
1
+ import { a as F, $ as Q, Q as X, S as K, i as Y, s as Z, f as m, b as $, v as W, d as tt, y as et, z as O, n as u, V as s, g as it, h as r, C as R, j as g, k as P, D as V, l as nt, o as st, F as lt, R as ot, N as at, O as rt, P as mt } from "./PlayerAccountGamingLimitsHistory2Nd-BqKMtdOt.js";
2
+ import "../stencil/ui-skeleton-W50o8tfg.js";
3
+ function H(n, t) {
4
+ F(n, t);
5
+ }
6
+ function ct(n) {
7
+ Q.set(n);
8
+ }
9
+ const U = {
10
+ en: {
11
+ savePlayerLimit: "SAVE",
12
+ skipLimitLimitDescription: "I do not wish to set a limit at this time."
13
+ },
14
+ fr: {
15
+ savePlayerLimit: "SAAUVEGARDER",
16
+ skipLimitLimitDescription: "Je ne souhaite pas fixer de limite pour le moment."
17
+ },
18
+ ro: {
19
+ savePlayerLimit: "SALVAȚI",
20
+ skipLimitLimitDescription: "Nu doresc să stabilesc o limită în acest moment."
21
+ },
22
+ "en-us": {
23
+ savePlayerLimit: "SAVE",
24
+ skipLimitLimitDescription: "I do not wish to set a limit at this time."
25
+ },
26
+ hu: {
27
+ savePlayerLimit: "MENTÉS",
28
+ skipLimitLimitDescription: "Jelenleg nem kívánok limitet beállítani."
29
+ }
30
+ };
31
+ if (typeof window < "u") {
32
+ let n = function(t) {
33
+ return function(...l) {
34
+ try {
35
+ return t.apply(this, l);
36
+ } catch (e) {
37
+ 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"))
38
+ return !1;
39
+ throw e;
40
+ }
41
+ };
42
+ };
43
+ customElements.define = n(customElements.define), import("./PlayerAccountGamingLimitsWrapper2Nd-BG0k5-qm.js").then(({ default: t }) => {
44
+ !customElements.get("player-account-gaming-limits-wrapper-2-nd") && customElements.define(
45
+ "player-account-gaming-limits-wrapper-2-nd",
46
+ t.element
47
+ );
48
+ });
49
+ }
50
+ function ut(n) {
51
+ $(n, "svelte-1gyen3h", '*,*::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;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;background-color:var(--emw--color-primary, #22b04e);border:none;border-radius:var(--emw--button-border-radius, 10px);padding:15px 0;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 .toggle-checkbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.player-limit-modal .toggle-content .toggle-checkbox [type=checkbox]{display:none}.player-limit-modal .toggle-content .toggle-checkbox::before{content:"";width:12.75px;height:12.75px;border-radius:100px;cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.player-limit-modal .toggle-content.checked .toggle-checkbox{border:1px solid var(--emw--color-primary, #22b04e)}.player-limit-modal .toggle-content.checked .toggle-checkbox::before{background-color:var(--emw--color-primary, #22b04e)}.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}}');
52
+ }
53
+ function dt(n) {
54
+ let t, l, e, k, v, w, A, x, _, f, p, S, T, z, D, E = (
55
+ /*$_*/
56
+ n[19]("skipLimitLimitDescription") + ""
57
+ ), M, y, C, d, L = (
58
+ /*$_*/
59
+ n[19]("savePlayerLimit") + ""
60
+ ), b, c, N, I;
61
+ return {
62
+ c() {
63
+ t = g("div"), l = g("div"), e = g("player-account-gaming-limits-wrapper-2-nd"), k = g("section"), v = P(), w = g("section"), A = P(), x = g("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>', _ = P(), f = g("section"), p = g("button"), S = g("div"), S.innerHTML = '<input type="checkbox"/> <span class="circle"></span>', T = P(), z = g("div"), D = g("p"), M = V(E), C = P(), d = g("button"), b = V(L), u(k, "slot", "LimitWrapperTitle"), u(w, "slot", "LimitsList"), u(x, "slot", "LimitSkeleton"), u(S, "class", "toggle-checkbox"), u(D, "class", "label"), u(z, "class", "skip-limit-label"), u(p, "class", y = "toggle-content " + /*skipLimit*/
64
+ (n[16] ? "checked" : "")), u(d, "class", "limit-submit-button"), u(d, "type", "submit"), d.disabled = /*disableSaveLimit*/
65
+ n[18], u(f, "slot", "LimitSubmitButton"), s(e, "historyenabled", !1), s(
66
+ e,
67
+ "endpoint",
68
+ /*endpoint*/
69
+ n[6]
70
+ ), s(
71
+ e,
72
+ "userid",
73
+ /*userid*/
74
+ n[4]
75
+ ), s(
76
+ e,
77
+ "session",
78
+ /*session*/
79
+ n[3]
80
+ ), s(
81
+ e,
82
+ "timezone",
83
+ /*timezone*/
84
+ n[15]
85
+ ), s(
86
+ e,
87
+ "lang",
88
+ /*lang*/
89
+ n[5]
90
+ ), s(
91
+ e,
92
+ "tablabels",
93
+ /*tablabels*/
94
+ n[7]
95
+ ), s(
96
+ e,
97
+ "limitsamount",
98
+ /*limitsamount*/
99
+ n[8]
100
+ ), s(
101
+ e,
102
+ "limitsperiods",
103
+ /*limitsperiods*/
104
+ n[9]
105
+ ), s(
106
+ e,
107
+ "currency",
108
+ /*currency*/
109
+ n[11]
110
+ ), s(
111
+ e,
112
+ "customcurrencysymbols",
113
+ /*customcurrencysymbols*/
114
+ n[12]
115
+ ), s(
116
+ e,
117
+ "apiversion",
118
+ /*apiversion*/
119
+ n[13]
120
+ ), s(
121
+ e,
122
+ "translationurl",
123
+ /*translationurl*/
124
+ n[14]
125
+ ), s(e, "clientstyling", c = /*clientstyling*/
126
+ n[0] || /*defaultCustomStyling*/
127
+ n[20]), s(
128
+ e,
129
+ "clientstylingurl",
130
+ /*clientstylingurl*/
131
+ n[1]
132
+ ), s(
133
+ e,
134
+ "mbsource",
135
+ /*mbsource*/
136
+ n[2]
137
+ ), s(
138
+ e,
139
+ "limitformat",
140
+ /*limitformat*/
141
+ n[10]
142
+ ), u(l, "class", "limit-modal-container"), u(t, "class", "player-limit-modal");
143
+ },
144
+ m(o, a) {
145
+ it(o, t, a), r(t, l), r(l, e), r(e, k), r(e, v), r(e, w), r(e, A), r(e, x), r(e, _), r(e, f), r(f, p), r(p, S), r(p, T), r(p, z), r(z, D), r(D, M), r(f, C), r(f, d), r(d, b), n[24](t), N || (I = [
146
+ R(
147
+ p,
148
+ "click",
149
+ /*toggleSkipLimit*/
150
+ n[22]
151
+ ),
152
+ R(
153
+ d,
154
+ "click",
155
+ /*submitLimit*/
156
+ n[21]
157
+ )
158
+ ], N = !0);
159
+ },
160
+ p(o, [a]) {
161
+ a & /*$_*/
162
+ 524288 && E !== (E = /*$_*/
163
+ o[19]("skipLimitLimitDescription") + "") && O(M, E), a & /*skipLimit*/
164
+ 65536 && y !== (y = "toggle-content " + /*skipLimit*/
165
+ (o[16] ? "checked" : "")) && u(p, "class", y), a & /*$_*/
166
+ 524288 && L !== (L = /*$_*/
167
+ o[19]("savePlayerLimit") + "") && O(b, L), a & /*disableSaveLimit*/
168
+ 262144 && (d.disabled = /*disableSaveLimit*/
169
+ o[18]), a & /*endpoint*/
170
+ 64 && s(
171
+ e,
172
+ "endpoint",
173
+ /*endpoint*/
174
+ o[6]
175
+ ), a & /*userid*/
176
+ 16 && s(
177
+ e,
178
+ "userid",
179
+ /*userid*/
180
+ o[4]
181
+ ), a & /*session*/
182
+ 8 && s(
183
+ e,
184
+ "session",
185
+ /*session*/
186
+ o[3]
187
+ ), a & /*timezone*/
188
+ 32768 && s(
189
+ e,
190
+ "timezone",
191
+ /*timezone*/
192
+ o[15]
193
+ ), a & /*lang*/
194
+ 32 && s(
195
+ e,
196
+ "lang",
197
+ /*lang*/
198
+ o[5]
199
+ ), a & /*tablabels*/
200
+ 128 && s(
201
+ e,
202
+ "tablabels",
203
+ /*tablabels*/
204
+ o[7]
205
+ ), a & /*limitsamount*/
206
+ 256 && s(
207
+ e,
208
+ "limitsamount",
209
+ /*limitsamount*/
210
+ o[8]
211
+ ), a & /*limitsperiods*/
212
+ 512 && s(
213
+ e,
214
+ "limitsperiods",
215
+ /*limitsperiods*/
216
+ o[9]
217
+ ), a & /*currency*/
218
+ 2048 && s(
219
+ e,
220
+ "currency",
221
+ /*currency*/
222
+ o[11]
223
+ ), a & /*customcurrencysymbols*/
224
+ 4096 && s(
225
+ e,
226
+ "customcurrencysymbols",
227
+ /*customcurrencysymbols*/
228
+ o[12]
229
+ ), a & /*apiversion*/
230
+ 8192 && s(
231
+ e,
232
+ "apiversion",
233
+ /*apiversion*/
234
+ o[13]
235
+ ), a & /*translationurl*/
236
+ 16384 && s(
237
+ e,
238
+ "translationurl",
239
+ /*translationurl*/
240
+ o[14]
241
+ ), a & /*clientstyling*/
242
+ 1 && c !== (c = /*clientstyling*/
243
+ o[0] || /*defaultCustomStyling*/
244
+ o[20]) && s(e, "clientstyling", c), a & /*clientstylingurl*/
245
+ 2 && s(
246
+ e,
247
+ "clientstylingurl",
248
+ /*clientstylingurl*/
249
+ o[1]
250
+ ), a & /*mbsource*/
251
+ 4 && s(
252
+ e,
253
+ "mbsource",
254
+ /*mbsource*/
255
+ o[2]
256
+ ), a & /*limitformat*/
257
+ 1024 && s(
258
+ e,
259
+ "limitformat",
260
+ /*limitformat*/
261
+ o[10]
262
+ );
263
+ },
264
+ i: W,
265
+ o: W,
266
+ d(o) {
267
+ o && tt(t), n[24](null), N = !1, et(I);
268
+ }
269
+ };
270
+ }
271
+ function gt(n, t, l) {
272
+ let e;
273
+ nt(n, ot, (i) => l(19, e = i));
274
+ let { clientstyling: k = "" } = t, { clientstylingurl: v = "" } = t, { mbsource: w } = t, { session: A = "" } = t, { userid: x = "" } = t, { lang: _ = "" } = t, { endpoint: f = "" } = t, { tablabels: p = "Deposit Limits" } = t, { limitsamount: S = "All(deposit):1-50000" } = t, { limitsperiods: T = "All(deposit): D-W-M" } = t, { limitformat: z = "" } = t, { currency: D = "" } = t, { customcurrencysymbols: E = "" } = t, { apiversion: M = "" } = t, { translationurl: y = "" } = t, { timezone: C = "GMT" } = t, d = !0, L = !0, b = !1, c;
275
+ const N = `
276
+ .GamingLimitsWrapper div.GamingLimitsContent {
277
+ min-height: revert;
278
+ }
279
+ .player-account-gaming-limits-page-2-gm16 .LimitsPageContainer {
280
+ min-height: revert;
281
+ }
282
+ div.GamingLimitsWrapper {
283
+ min-height: revert;
284
+ padding: 14px;
285
+ }
286
+ form.LimitsInteractionArea {
287
+ align-items: center;
288
+ margin: 0;
289
+ }
290
+ form.LimitsInteractionArea .LimitTitle {
291
+ margin: 10px;
292
+ }
293
+ .GamingLimitsWrapper div.GamingLimitsContent {
294
+ justify-content: center;
295
+ }
296
+ .GamingLimitsWrapper div.limitsDescription {
297
+ padding: 14px;
298
+ }
299
+ .GamingLimitsWrapper div.TabsContainer{
300
+ margin: 0;
301
+ }
302
+
303
+ .GamingLimitsWrapper div.LimitsTab {
304
+ flex-direction:column;
305
+ height: fit-content;
306
+ width: 100%;
307
+ padding: 5px 0;
308
+ font-size: 10px;
309
+ margin-right: 5px;
310
+ }
311
+ `, I = () => {
312
+ ct(_);
313
+ }, o = () => {
314
+ fetch(y).then((h) => h.json()).then((h) => {
315
+ Object.keys(h).forEach((j) => {
316
+ H(j, h[j]);
317
+ });
318
+ }).catch((h) => {
319
+ console.log(h);
320
+ });
321
+ };
322
+ Object.keys(U).forEach((i) => {
323
+ H(i, U[i]);
324
+ });
325
+ const a = () => {
326
+ if (!L) {
327
+ if (b) {
328
+ J();
329
+ return;
330
+ }
331
+ window.postMessage({ type: "SubmitLimitNotification" }, window.location.href);
332
+ }
333
+ }, J = () => {
334
+ const i = new URL(`${f}/api/pam/v1/player-notifications`);
335
+ fetch(i, {
336
+ headers: {
337
+ "X-SessionId": A,
338
+ "Content-Type": "application/json"
339
+ },
340
+ method: "PATCH",
341
+ body: JSON.stringify({
342
+ type: 1,
343
+ interval: 5,
344
+ ackNotification: !0,
345
+ ackNotificationTimestamp: (/* @__PURE__ */ new Date()).toISOString()
346
+ })
347
+ }).then((h) => {
348
+ if (h.ok)
349
+ return h.json();
350
+ throw new Error("Error while skipping the limit setting");
351
+ }).then(() => {
352
+ window.postMessage(
353
+ {
354
+ type: "WidgetNotification",
355
+ data: {
356
+ type: "success",
357
+ message: e("skipLimitSuccessful")
358
+ }
359
+ },
360
+ window.location.href
361
+ ), window.postMessage({ type: "SkipLimitSuccessful" }, window.location.href);
362
+ }).catch((h) => {
363
+ console.error(h);
364
+ });
365
+ }, q = () => {
366
+ l(16, b = !b), window.postMessage(
367
+ {
368
+ type: "LimitDisableState",
369
+ data: b
370
+ },
371
+ window.location.href
372
+ );
373
+ }, G = (i) => {
374
+ if (i.data)
375
+ switch (i.data.type) {
376
+ case "InValidLimit": {
377
+ l(23, d = i.data.data);
378
+ break;
379
+ }
380
+ }
381
+ };
382
+ st(() => (window.addEventListener("message", G), () => {
383
+ window.removeEventListener("message", G);
384
+ }));
385
+ function B(i) {
386
+ lt[i ? "unshift" : "push"](() => {
387
+ c = i, l(17, c);
388
+ });
389
+ }
390
+ return n.$$set = (i) => {
391
+ "clientstyling" in i && l(0, k = i.clientstyling), "clientstylingurl" in i && l(1, v = i.clientstylingurl), "mbsource" in i && l(2, w = i.mbsource), "session" in i && l(3, A = i.session), "userid" in i && l(4, x = i.userid), "lang" in i && l(5, _ = i.lang), "endpoint" in i && l(6, f = i.endpoint), "tablabels" in i && l(7, p = i.tablabels), "limitsamount" in i && l(8, S = i.limitsamount), "limitsperiods" in i && l(9, T = i.limitsperiods), "limitformat" in i && l(10, z = i.limitformat), "currency" in i && l(11, D = i.currency), "customcurrencysymbols" in i && l(12, E = i.customcurrencysymbols), "apiversion" in i && l(13, M = i.apiversion), "translationurl" in i && l(14, y = i.translationurl), "timezone" in i && l(15, C = i.timezone);
392
+ }, n.$$.update = () => {
393
+ n.$$.dirty & /*lang*/
394
+ 32 && _ && I(), n.$$.dirty & /*clientstyling, customStylingContainer*/
395
+ 131073 && k && c && at(c, k), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
396
+ 131074 && v && c && rt(c, v), n.$$.dirty & /*mbsource, customStylingContainer*/
397
+ 131076 && w && c && mt(c, `${w}.Style`), n.$$.dirty & /*translationurl*/
398
+ 16384 && y && o(), n.$$.dirty & /*skipLimit, invalidLimitInput*/
399
+ 8454144 && l(18, L = b ? !1 : d);
400
+ }, [
401
+ k,
402
+ v,
403
+ w,
404
+ A,
405
+ x,
406
+ _,
407
+ f,
408
+ p,
409
+ S,
410
+ T,
411
+ z,
412
+ D,
413
+ E,
414
+ M,
415
+ y,
416
+ C,
417
+ b,
418
+ c,
419
+ L,
420
+ e,
421
+ N,
422
+ a,
423
+ q,
424
+ d,
425
+ B
426
+ ];
427
+ }
428
+ class pt extends K {
429
+ constructor(t) {
430
+ super(), Y(
431
+ this,
432
+ t,
433
+ gt,
434
+ dt,
435
+ Z,
436
+ {
437
+ clientstyling: 0,
438
+ clientstylingurl: 1,
439
+ mbsource: 2,
440
+ session: 3,
441
+ userid: 4,
442
+ lang: 5,
443
+ endpoint: 6,
444
+ tablabels: 7,
445
+ limitsamount: 8,
446
+ limitsperiods: 9,
447
+ limitformat: 10,
448
+ currency: 11,
449
+ customcurrencysymbols: 12,
450
+ apiversion: 13,
451
+ translationurl: 14,
452
+ timezone: 15
453
+ },
454
+ ut
455
+ );
456
+ }
457
+ get clientstyling() {
458
+ return this.$$.ctx[0];
459
+ }
460
+ set clientstyling(t) {
461
+ this.$$set({ clientstyling: t }), m();
462
+ }
463
+ get clientstylingurl() {
464
+ return this.$$.ctx[1];
465
+ }
466
+ set clientstylingurl(t) {
467
+ this.$$set({ clientstylingurl: t }), m();
468
+ }
469
+ get mbsource() {
470
+ return this.$$.ctx[2];
471
+ }
472
+ set mbsource(t) {
473
+ this.$$set({ mbsource: t }), m();
474
+ }
475
+ get session() {
476
+ return this.$$.ctx[3];
477
+ }
478
+ set session(t) {
479
+ this.$$set({ session: t }), m();
480
+ }
481
+ get userid() {
482
+ return this.$$.ctx[4];
483
+ }
484
+ set userid(t) {
485
+ this.$$set({ userid: t }), m();
486
+ }
487
+ get lang() {
488
+ return this.$$.ctx[5];
489
+ }
490
+ set lang(t) {
491
+ this.$$set({ lang: t }), m();
492
+ }
493
+ get endpoint() {
494
+ return this.$$.ctx[6];
495
+ }
496
+ set endpoint(t) {
497
+ this.$$set({ endpoint: t }), m();
498
+ }
499
+ get tablabels() {
500
+ return this.$$.ctx[7];
501
+ }
502
+ set tablabels(t) {
503
+ this.$$set({ tablabels: t }), m();
504
+ }
505
+ get limitsamount() {
506
+ return this.$$.ctx[8];
507
+ }
508
+ set limitsamount(t) {
509
+ this.$$set({ limitsamount: t }), m();
510
+ }
511
+ get limitsperiods() {
512
+ return this.$$.ctx[9];
513
+ }
514
+ set limitsperiods(t) {
515
+ this.$$set({ limitsperiods: t }), m();
516
+ }
517
+ get limitformat() {
518
+ return this.$$.ctx[10];
519
+ }
520
+ set limitformat(t) {
521
+ this.$$set({ limitformat: t }), m();
522
+ }
523
+ get currency() {
524
+ return this.$$.ctx[11];
525
+ }
526
+ set currency(t) {
527
+ this.$$set({ currency: t }), m();
528
+ }
529
+ get customcurrencysymbols() {
530
+ return this.$$.ctx[12];
531
+ }
532
+ set customcurrencysymbols(t) {
533
+ this.$$set({ customcurrencysymbols: t }), m();
534
+ }
535
+ get apiversion() {
536
+ return this.$$.ctx[13];
537
+ }
538
+ set apiversion(t) {
539
+ this.$$set({ apiversion: t }), m();
540
+ }
541
+ get translationurl() {
542
+ return this.$$.ctx[14];
543
+ }
544
+ set translationurl(t) {
545
+ this.$$set({ translationurl: t }), m();
546
+ }
547
+ get timezone() {
548
+ return this.$$.ctx[15];
549
+ }
550
+ set timezone(t) {
551
+ this.$$set({ timezone: t }), m();
552
+ }
553
+ }
554
+ X(pt, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, session: {}, userid: {}, lang: {}, endpoint: {}, tablabels: {}, limitsamount: {}, limitsperiods: {}, limitformat: {}, currency: {}, customcurrencysymbols: {}, apiversion: {}, translationurl: {}, timezone: {} }, [], [], !0);
555
+ export {
556
+ pt as P
557
+ };
@@ -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 C(s,e){t.addMessages(s,e)}function O(s){t.$locale.set(s)}const N={en:{savePlayerLimit:"SAVE",skipLimitLimitDescription:"I do not wish to set a limit at this time."},fr:{savePlayerLimit:"SAAUVEGARDER",skipLimitLimitDescription:"Je ne souhaite pas fixer de limite pour le moment."},ro:{savePlayerLimit:"SALVAȚI",skipLimitLimitDescription:"Nu doresc să stabilesc o limită în acest moment."},"en-us":{savePlayerLimit:"SAVE",skipLimitLimitDescription:"I do not wish to set a limit at this time."},hu:{savePlayerLimit:"MENTÉS",skipLimitLimitDescription:"Jelenleg nem kívánok limitet beállítani."}};if(typeof window!="undefined"){let s=function(e){return function(...l){try{return e.apply(this,l)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsWrapper2Nd-BBjEuw8E.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 H(s){t.append_styles(s,"svelte-1gyen3h",'*,*::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;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;background-color:var(--emw--color-primary, #22b04e);border:none;border-radius:var(--emw--button-border-radius, 10px);padding:15px 0;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 .toggle-checkbox{width:20px;height:20px;padding:2px;margin:2px 0 2px 0;border-radius:100%;position:relative;border:1px solid var(--emw--color-gray-300, #666178)}.player-limit-modal .toggle-content .toggle-checkbox [type=checkbox]{display:none}.player-limit-modal .toggle-content .toggle-checkbox::before{content:"";width:12.75px;height:12.75px;border-radius:100px;cursor:pointer;position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%, -50%);transition:all 0.5s ease}.player-limit-modal .toggle-content.checked .toggle-checkbox{border:1px solid var(--emw--color-primary, #22b04e)}.player-limit-modal .toggle-content.checked .toggle-checkbox::before{background-color:var(--emw--color-primary, #22b04e)}.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 R(s){let e,l,i,h,b,f,S,y,k,d,u,w,A,L,v,x=s[19]("skipLimitLimitDescription")+"",z,g,E,m,_=s[19]("savePlayerLimit")+"",p,r,D,M;return{c(){e=t.element("div"),l=t.element("div"),i=t.element("player-account-gaming-limits-wrapper-2-nd"),h=t.element("section"),b=t.space(),f=t.element("section"),S=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(),d=t.element("section"),u=t.element("button"),w=t.element("div"),w.innerHTML='<input type="checkbox"/> <span class="circle"></span>',A=t.space(),L=t.element("div"),v=t.element("p"),z=t.text(x),E=t.space(),m=t.element("button"),p=t.text(_),t.attr(h,"slot","LimitWrapperTitle"),t.attr(f,"slot","LimitsList"),t.attr(y,"slot","LimitSkeleton"),t.attr(w,"class","toggle-checkbox"),t.attr(v,"class","label"),t.attr(L,"class","skip-limit-label"),t.attr(u,"class",g="toggle-content "+(s[16]?"checked":"")),t.attr(m,"class","limit-submit-button"),t.attr(m,"type","submit"),m.disabled=s[18],t.attr(d,"slot","LimitSubmitButton"),t.set_custom_element_data(i,"historyenabled",!1),t.set_custom_element_data(i,"endpoint",s[6]),t.set_custom_element_data(i,"userid",s[4]),t.set_custom_element_data(i,"session",s[3]),t.set_custom_element_data(i,"timezone",s[15]),t.set_custom_element_data(i,"lang",s[5]),t.set_custom_element_data(i,"tablabels",s[7]),t.set_custom_element_data(i,"limitsamount",s[8]),t.set_custom_element_data(i,"limitsperiods",s[9]),t.set_custom_element_data(i,"currency",s[11]),t.set_custom_element_data(i,"customcurrencysymbols",s[12]),t.set_custom_element_data(i,"apiversion",s[13]),t.set_custom_element_data(i,"translationurl",s[14]),t.set_custom_element_data(i,"clientstyling",r=s[0]||s[20]),t.set_custom_element_data(i,"clientstylingurl",s[1]),t.set_custom_element_data(i,"mbsource",s[2]),t.set_custom_element_data(i,"limitformat",s[10]),t.attr(l,"class","limit-modal-container"),t.attr(e,"class","player-limit-modal")},m(a,o){t.insert(a,e,o),t.append(e,l),t.append(l,i),t.append(i,h),t.append(i,b),t.append(i,f),t.append(i,S),t.append(i,y),t.append(i,k),t.append(i,d),t.append(d,u),t.append(u,w),t.append(u,A),t.append(u,L),t.append(L,v),t.append(v,z),t.append(d,E),t.append(d,m),t.append(m,p),s[24](e),D||(M=[t.listen(u,"click",s[22]),t.listen(m,"click",s[21])],D=!0)},p(a,[o]){o&524288&&x!==(x=a[19]("skipLimitLimitDescription")+"")&&t.set_data(z,x),o&65536&&g!==(g="toggle-content "+(a[16]?"checked":""))&&t.attr(u,"class",g),o&524288&&_!==(_=a[19]("savePlayerLimit")+"")&&t.set_data(p,_),o&262144&&(m.disabled=a[18]),o&64&&t.set_custom_element_data(i,"endpoint",a[6]),o&16&&t.set_custom_element_data(i,"userid",a[4]),o&8&&t.set_custom_element_data(i,"session",a[3]),o&32768&&t.set_custom_element_data(i,"timezone",a[15]),o&32&&t.set_custom_element_data(i,"lang",a[5]),o&128&&t.set_custom_element_data(i,"tablabels",a[7]),o&256&&t.set_custom_element_data(i,"limitsamount",a[8]),o&512&&t.set_custom_element_data(i,"limitsperiods",a[9]),o&2048&&t.set_custom_element_data(i,"currency",a[11]),o&4096&&t.set_custom_element_data(i,"customcurrencysymbols",a[12]),o&8192&&t.set_custom_element_data(i,"apiversion",a[13]),o&16384&&t.set_custom_element_data(i,"translationurl",a[14]),o&1&&r!==(r=a[0]||a[20])&&t.set_custom_element_data(i,"clientstyling",r),o&2&&t.set_custom_element_data(i,"clientstylingurl",a[1]),o&4&&t.set_custom_element_data(i,"mbsource",a[2]),o&1024&&t.set_custom_element_data(i,"limitformat",a[10])},i:t.noop,o:t.noop,d(a){a&&t.detach(e),s[24](null),D=!1,t.run_all(M)}}}function V(s,e,l){let i;t.component_subscribe(s,t.$format,n=>l(19,i=n));let{clientstyling:h=""}=e,{clientstylingurl:b=""}=e,{mbsource:f}=e,{session:S=""}=e,{userid:y=""}=e,{lang:k=""}=e,{endpoint:d=""}=e,{tablabels:u="Deposit Limits"}=e,{limitsamount:w="All(deposit):1-50000"}=e,{limitsperiods:A="All(deposit): D-W-M"}=e,{limitformat:L=""}=e,{currency:v=""}=e,{customcurrencysymbols:x=""}=e,{apiversion:z=""}=e,{translationurl:g=""}=e,{timezone:E="GMT"}=e,m=!0,_=!0,p=!1,r;const D=`
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
+ `,M=()=>{O(k)},a=()=>{fetch(g).then(c=>c.json()).then(c=>{Object.keys(c).forEach(P=>{C(P,c[P])})}).catch(c=>{console.log(c)})};Object.keys(N).forEach(n=>{C(n,N[n])});const o=()=>{if(!_){if(p){I();return}window.postMessage({type:"SubmitLimitNotification"},window.location.href)}},I=()=>{const n=new URL(`${d}/api/pam/v1/player-notifications`);fetch(n,{headers:{"X-SessionId":S,"Content-Type":"application/json"},method:"PATCH",body:JSON.stringify({type:1,interval:5,ackNotification:!0,ackNotificationTimestamp:new Date().toISOString()})}).then(c=>{if(c.ok)return c.json();throw new Error("Error while skipping the limit setting")}).then(()=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("skipLimitSuccessful")}},window.location.href),window.postMessage({type:"SkipLimitSuccessful"},window.location.href)}).catch(c=>{console.error(c)})},j=()=>{l(16,p=!p),window.postMessage({type:"LimitDisableState",data:p},window.location.href)},T=n=>{if(n.data)switch(n.data.type){case"InValidLimit":{l(23,m=n.data.data);break}}};t.onMount(()=>(window.addEventListener("message",T),()=>{window.removeEventListener("message",T)}));function W(n){t.binding_callbacks[n?"unshift":"push"](()=>{r=n,l(17,r)})}return s.$$set=n=>{"clientstyling"in n&&l(0,h=n.clientstyling),"clientstylingurl"in n&&l(1,b=n.clientstylingurl),"mbsource"in n&&l(2,f=n.mbsource),"session"in n&&l(3,S=n.session),"userid"in n&&l(4,y=n.userid),"lang"in n&&l(5,k=n.lang),"endpoint"in n&&l(6,d=n.endpoint),"tablabels"in n&&l(7,u=n.tablabels),"limitsamount"in n&&l(8,w=n.limitsamount),"limitsperiods"in n&&l(9,A=n.limitsperiods),"limitformat"in n&&l(10,L=n.limitformat),"currency"in n&&l(11,v=n.currency),"customcurrencysymbols"in n&&l(12,x=n.customcurrencysymbols),"apiversion"in n&&l(13,z=n.apiversion),"translationurl"in n&&l(14,g=n.translationurl),"timezone"in n&&l(15,E=n.timezone)},s.$$.update=()=>{s.$$.dirty&32&&k&&M(),s.$$.dirty&131073&&h&&r&&t.setClientStyling(r,h),s.$$.dirty&131074&&b&&r&&t.setClientStylingURL(r,b),s.$$.dirty&131076&&f&&r&&t.setStreamStyling(r,`${f}.Style`),s.$$.dirty&16384&&g&&a(),s.$$.dirty&8454144&&l(18,_=p?!1:m)},[h,b,f,S,y,k,d,u,w,A,L,v,x,z,g,E,p,r,_,i,D,o,j,m,W]}class G extends t.SvelteComponent{constructor(e){super(),t.init(this,e,V,R,t.safe_not_equal,{clientstyling:0,clientstylingurl:1,mbsource:2,session:3,userid:4,lang:5,endpoint:6,tablabels:7,limitsamount:8,limitsperiods:9,limitformat:10,currency:11,customcurrencysymbols:12,apiversion:13,translationurl:14,timezone:15},H)}get clientstyling(){return this.$$.ctx[0]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[2]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get session(){return this.$$.ctx[3]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[4]}set userid(e){this.$$set({userid:e}),t.flush()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),t.flush()}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get tablabels(){return this.$$.ctx[7]}set tablabels(e){this.$$set({tablabels:e}),t.flush()}get limitsamount(){return this.$$.ctx[8]}set limitsamount(e){this.$$set({limitsamount:e}),t.flush()}get limitsperiods(){return this.$$.ctx[9]}set limitsperiods(e){this.$$set({limitsperiods:e}),t.flush()}get limitformat(){return this.$$.ctx[10]}set limitformat(e){this.$$set({limitformat:e}),t.flush()}get currency(){return this.$$.ctx[11]}set currency(e){this.$$set({currency:e}),t.flush()}get customcurrencysymbols(){return this.$$.ctx[12]}set customcurrencysymbols(e){this.$$set({customcurrencysymbols:e}),t.flush()}get apiversion(){return this.$$.ctx[13]}set apiversion(e){this.$$set({apiversion:e}),t.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get timezone(){return this.$$.ctx[15]}set timezone(e){this.$$set({timezone:e}),t.flush()}}t.create_custom_element(G,{clientstyling:{},clientstylingurl:{},mbsource:{},session:{},userid:{},lang:{},endpoint:{},tablabels:{},limitsamount:{},limitsperiods:{},limitformat:{},currency:{},customcurrencysymbols:{},apiversion:{},translationurl:{},timezone:{}},[],[],!0);exports.default=G;