@everymatrix/player-account-gaming-limits 1.45.0 → 1.45.2

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/{PlayerAccountGamingLimits-DMcQZp6c.js → PlayerAccountGamingLimits-BhZh042a.js} +440 -444
  2. package/components/{PlayerAccountGamingLimits-BjObxIoN.cjs → PlayerAccountGamingLimits-viRNSgkd.cjs} +5 -5
  3. package/components/PlayerAccountGamingLimitsConfirmationModal-Bb1_bXSm.cjs +1 -0
  4. package/components/PlayerAccountGamingLimitsConfirmationModal-DoJuz29x.js +306 -0
  5. package/components/{PlayerAccountGamingLimitsGroupEdit-Dtr3qAMk.js → PlayerAccountGamingLimitsGroupEdit-9nPccBBm.js} +966 -966
  6. package/components/PlayerAccountGamingLimitsGroupEdit-BlFJYk5p.cjs +10 -0
  7. package/components/PlayerAccountGamingLimitsInfoCard-Bgg-oksy.cjs +1 -0
  8. package/components/{PlayerAccountGamingLimitsInfoCard-CZOB56fP.js → PlayerAccountGamingLimitsInfoCard-C6mt1_vl.js} +345 -345
  9. package/components/PlayerAccountGamingLimitsPopup-BnvMrqy8.cjs +1 -0
  10. package/components/{PlayerAccountGamingLimitsPopup-BU3iWn3F.js → PlayerAccountGamingLimitsPopup-Dd_w3Jrl.js} +56 -54
  11. package/components/{PlayerAccountModal-DhSN5Kru.js → PlayerAccountModal-C0S3GOGp.js} +45 -45
  12. package/components/PlayerAccountModal-CJumHBfB.cjs +1 -0
  13. package/es2015/player-account-gaming-limits.cjs +1 -1
  14. package/es2015/player-account-gaming-limits.js +1 -1
  15. package/package.json +2 -2
  16. package/components/PlayerAccountGamingLimitsConfirmationModal-B0vQltjv.js +0 -306
  17. package/components/PlayerAccountGamingLimitsConfirmationModal-CR9REp5N.cjs +0 -1
  18. package/components/PlayerAccountGamingLimitsGroupEdit-DWQnQBvT.cjs +0 -10
  19. package/components/PlayerAccountGamingLimitsInfoCard-CpZp16ta.cjs +0 -1
  20. package/components/PlayerAccountGamingLimitsPopup-CQsEkyR6.cjs +0 -1
  21. package/components/PlayerAccountModal-BI12j_YY.cjs +0 -1
@@ -0,0 +1,306 @@
1
+ import { a as I, $ as U, S as J, i as K, f as M, c as Q, s as V, b as X, d as Y, e as x, g as E, t as z, h as a, j as W, k as l, l as j, u as Z, m as $, n as tt, o as S, p as it, q as et, r as P, v as nt, w as ot, x as at, y as rt, z as st, A as T, B as lt, C as mt } from "./PlayerAccountGamingLimits-BhZh042a.js";
2
+ function D(e, t) {
3
+ I(e, t);
4
+ }
5
+ function ct(e) {
6
+ U.set(e);
7
+ }
8
+ const N = {
9
+ en: {
10
+ cancel: "Cancel",
11
+ confirm: "Confirm"
12
+ },
13
+ fr: {
14
+ cancel: "Annuler",
15
+ confirm: "Confirmer"
16
+ },
17
+ ro: {
18
+ cancel: "Anulează",
19
+ confirm: "Confirmă"
20
+ },
21
+ es: {
22
+ cancel: "Cancelar",
23
+ confirm: "Confirmar"
24
+ },
25
+ pt: {
26
+ cancel: "Cancelar",
27
+ confirm: "Confirmar"
28
+ },
29
+ "zh-hk": {
30
+ cancel: "取消",
31
+ confirm: "確認"
32
+ },
33
+ hr: {
34
+ cancel: "Otkaži",
35
+ confirm: "Potvrdi"
36
+ },
37
+ "pt-br": {
38
+ cancel: "Cancelar",
39
+ confirm: "confirme"
40
+ },
41
+ "es-mx": {
42
+ cancel: "Cancelar",
43
+ confirm: "Confirmar"
44
+ },
45
+ tr: {
46
+ cancel: "İptal etmek",
47
+ confirm: "Onaylamak"
48
+ }
49
+ };
50
+ function dt(e) {
51
+ X(e, "svelte-1jqx48g", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
52
+ }
53
+ const gt = (e) => ({}), O = (e) => ({});
54
+ function ut(e) {
55
+ let t, n;
56
+ return {
57
+ c() {
58
+ t = T("svg"), n = T("path"), a(n, "stroke-linecap", "round"), a(n, "stroke-linejoin", "round"), a(n, "stroke-width", "2"), a(n, "d", "M6 18L18 6M6 6l12 12"), a(t, "class", "w-6 h-6"), a(t, "fill", "none"), a(t, "stroke", "currentColor"), a(t, "viewBox", "0 0 24 24"), a(t, "xmlns", "http://www.w3.org/2000/svg");
59
+ },
60
+ m(r, y) {
61
+ W(r, t, y), l(t, n);
62
+ },
63
+ p: lt,
64
+ d(r) {
65
+ r && P(t);
66
+ }
67
+ };
68
+ }
69
+ function ft(e) {
70
+ let t, n, r, y, b, w, d, c, g, f = (
71
+ /*$_*/
72
+ e[2]("cancel") + ""
73
+ ), h, A, s, L = (
74
+ /*$_*/
75
+ e[2]("confirm") + ""
76
+ ), k, m, v, F;
77
+ const B = (
78
+ /*#slots*/
79
+ e[13].close
80
+ ), _ = Y(
81
+ B,
82
+ e,
83
+ /*$$scope*/
84
+ e[12],
85
+ O
86
+ ), u = _ || ut();
87
+ return {
88
+ c() {
89
+ t = x("div"), n = x("div"), r = x("span"), u && u.c(), y = E(), b = x("div"), w = z(
90
+ /*modaltext*/
91
+ e[0]
92
+ ), d = E(), c = x("div"), g = x("button"), h = z(f), A = E(), s = x("button"), k = z(L), a(r, "class", "ModalCloseBtn"), a(r, "role", "button"), a(b, "class", "GamingLimitsConfirmationContent"), a(g, "class", "GamingLimitsCancelButton"), a(s, "class", "GamingLimitsConfirmButton"), a(c, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
93
+ (e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), a(n, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
94
+ (e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), a(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
95
+ (e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
96
+ },
97
+ m(o, p) {
98
+ W(o, t, p), l(t, n), l(n, r), u && u.m(r, null), l(n, y), l(n, b), l(b, w), l(n, d), l(n, c), l(c, g), l(g, h), l(c, A), l(c, s), l(s, k), e[14](t), m = !0, v || (F = [
99
+ j(
100
+ r,
101
+ "click",
102
+ /*close*/
103
+ e[4]
104
+ ),
105
+ j(
106
+ g,
107
+ "click",
108
+ /*cancelChanges*/
109
+ e[6]
110
+ ),
111
+ j(
112
+ s,
113
+ "click",
114
+ /*confirmChanges*/
115
+ e[5]
116
+ )
117
+ ], v = !0);
118
+ },
119
+ p(o, [p]) {
120
+ _ && _.p && (!m || p & /*$$scope*/
121
+ 4096) && Z(
122
+ _,
123
+ B,
124
+ o,
125
+ /*$$scope*/
126
+ o[12],
127
+ m ? tt(
128
+ B,
129
+ /*$$scope*/
130
+ o[12],
131
+ p,
132
+ gt
133
+ ) : $(
134
+ /*$$scope*/
135
+ o[12]
136
+ ),
137
+ O
138
+ ), (!m || p & /*modaltext*/
139
+ 1) && S(
140
+ w,
141
+ /*modaltext*/
142
+ o[0]
143
+ ), (!m || p & /*$_*/
144
+ 4) && f !== (f = /*$_*/
145
+ o[2]("cancel") + "") && S(h, f), (!m || p & /*$_*/
146
+ 4) && L !== (L = /*$_*/
147
+ o[2]("confirm") + "") && S(k, L);
148
+ },
149
+ i(o) {
150
+ m || (it(u, o), m = !0);
151
+ },
152
+ o(o) {
153
+ et(u, o), m = !1;
154
+ },
155
+ d(o) {
156
+ o && P(t), u && u.d(o), e[14](null), v = !1, nt(F);
157
+ }
158
+ };
159
+ }
160
+ function pt(e, t, n) {
161
+ let r;
162
+ ot(e, mt, (i) => n(2, r = i));
163
+ let { $$slots: y = {}, $$scope: b } = t, { modaltext: w = "Are you sure that you want to perform this action?" } = t, { modalsource: d = "" } = t, { lang: c = "en" } = t, { clientstyling: g = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: h = "" } = t;
164
+ const A = () => {
165
+ fetch(h).then((C) => C.json()).then((C) => {
166
+ Object.keys(C).forEach((G) => {
167
+ D(G, C[G]);
168
+ });
169
+ }).catch((C) => {
170
+ console.log(C);
171
+ });
172
+ };
173
+ Object.keys(N).forEach((i) => {
174
+ D(i, N[i]);
175
+ });
176
+ let s, L = window.navigator.userAgent, k = at(L) !== "PC", m = {}, v = "";
177
+ const F = () => {
178
+ window.postMessage({ type: "ModalClosed" }, window.location.href);
179
+ }, B = () => {
180
+ d === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : d === "infoCard" && window.postMessage(
181
+ {
182
+ type: "PlayerAccountGamingLimitDelete",
183
+ limit: m,
184
+ name: v
185
+ },
186
+ window.location.href
187
+ ), window.postMessage({ type: "ModalClosed" }, window.location.href);
188
+ }, _ = () => {
189
+ d === "groupEdit" ? window.postMessage({ type: "CancelGamingLimitsChanges" }, window.location.href) : d === "infoCard" && window.postMessage({ type: "CancelGamingLimitsRemove" }, window.location.href), window.postMessage({ type: "ModalClosed" }, window.location.href);
190
+ }, u = (i) => i === "Time Limit" ? "cumulativeSessionLimits" : i === "Deposit Limit" ? "depositLimits" : i === "Wagering Limit" ? "wageringLimit" : "lossLimit", o = (i) => {
191
+ if (i.data)
192
+ switch (i.data.type) {
193
+ case "DeleteLimitsItem":
194
+ m = i.data.removeData, v = u(i.data.removeName);
195
+ break;
196
+ }
197
+ }, p = () => {
198
+ ct(c);
199
+ }, R = () => {
200
+ let i = document.createElement("style");
201
+ i.innerHTML = g, s.appendChild(i);
202
+ }, q = () => {
203
+ let i = new URL(f), C = document.createElement("style");
204
+ fetch(i.href).then((G) => G.text()).then((G) => {
205
+ C.innerHTML = G, setTimeout(
206
+ () => {
207
+ s.appendChild(C);
208
+ },
209
+ 1
210
+ );
211
+ });
212
+ };
213
+ rt(() => (window.addEventListener("message", o, !1), () => {
214
+ window.removeEventListener("message", o);
215
+ }));
216
+ function H(i) {
217
+ st[i ? "unshift" : "push"](() => {
218
+ s = i, n(1, s);
219
+ });
220
+ }
221
+ return e.$$set = (i) => {
222
+ "modaltext" in i && n(0, w = i.modaltext), "modalsource" in i && n(7, d = i.modalsource), "lang" in i && n(8, c = i.lang), "clientstyling" in i && n(9, g = i.clientstyling), "clientstylingurl" in i && n(10, f = i.clientstylingurl), "translationurl" in i && n(11, h = i.translationurl), "$$scope" in i && n(12, b = i.$$scope);
223
+ }, e.$$.update = () => {
224
+ e.$$.dirty & /*modaltext, modalsource, lang*/
225
+ 385 && w && d && c && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
226
+ 514 && g && s && R(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
227
+ 1026 && f && s && q(), e.$$.dirty & /*translationurl*/
228
+ 2048 && h && A();
229
+ }, [
230
+ w,
231
+ s,
232
+ r,
233
+ k,
234
+ F,
235
+ B,
236
+ _,
237
+ d,
238
+ c,
239
+ g,
240
+ f,
241
+ h,
242
+ b,
243
+ y,
244
+ H
245
+ ];
246
+ }
247
+ class Ct extends J {
248
+ constructor(t) {
249
+ super(), K(
250
+ this,
251
+ t,
252
+ pt,
253
+ ft,
254
+ V,
255
+ {
256
+ modaltext: 0,
257
+ modalsource: 7,
258
+ lang: 8,
259
+ clientstyling: 9,
260
+ clientstylingurl: 10,
261
+ translationurl: 11
262
+ },
263
+ dt
264
+ );
265
+ }
266
+ get modaltext() {
267
+ return this.$$.ctx[0];
268
+ }
269
+ set modaltext(t) {
270
+ this.$$set({ modaltext: t }), M();
271
+ }
272
+ get modalsource() {
273
+ return this.$$.ctx[7];
274
+ }
275
+ set modalsource(t) {
276
+ this.$$set({ modalsource: t }), M();
277
+ }
278
+ get lang() {
279
+ return this.$$.ctx[8];
280
+ }
281
+ set lang(t) {
282
+ this.$$set({ lang: t }), M();
283
+ }
284
+ get clientstyling() {
285
+ return this.$$.ctx[9];
286
+ }
287
+ set clientstyling(t) {
288
+ this.$$set({ clientstyling: t }), M();
289
+ }
290
+ get clientstylingurl() {
291
+ return this.$$.ctx[10];
292
+ }
293
+ set clientstylingurl(t) {
294
+ this.$$set({ clientstylingurl: t }), M();
295
+ }
296
+ get translationurl() {
297
+ return this.$$.ctx[11];
298
+ }
299
+ set translationurl(t) {
300
+ this.$$set({ translationurl: t }), M();
301
+ }
302
+ }
303
+ Q(Ct, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, ["close"], [], !0);
304
+ export {
305
+ Ct as default
306
+ };