@everymatrix/player-account-controller-nd 1.52.6 → 1.53.0

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 (44) hide show
  1. package/components/PlayerAccountControllerNd-B2_bahHf.cjs +1 -0
  2. package/components/{PlayerAccountControllerNd-DPYLx7NR.js → PlayerAccountControllerNd-CS3nKF7-.js} +577 -517
  3. package/components/{PlayerAccountGamingLimits-Ba8gZhzx.js → PlayerAccountGamingLimits-9Stjo0gs.js} +1 -1
  4. package/components/{PlayerAccountGamingLimits-96NZsRcC.cjs → PlayerAccountGamingLimits-BPQrptbd.cjs} +1 -1
  5. package/components/{PlayerAccountGamingLimitsGroupEdit-CHTvuuJn.js → PlayerAccountGamingLimitsGroupEdit-CBViR9JR.js} +1 -1
  6. package/components/{PlayerAccountGamingLimitsGroupEdit-DKM3If51.cjs → PlayerAccountGamingLimitsGroupEdit-DrkoLne8.cjs} +1 -1
  7. package/components/{PlayerAccountGamingLimitsInfoCard-ZuPsBZ-7.cjs → PlayerAccountGamingLimitsInfoCard-BOls7ahz.cjs} +1 -1
  8. package/components/{PlayerAccountGamingLimitsInfoCard-CuWuZhIt.js → PlayerAccountGamingLimitsInfoCard-CDFRfVT4.js} +2 -2
  9. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-qfL5QXeR.js → PlayerAccountGamingLimitsPage2Gm16Nd-B672X-1A.js} +1421 -989
  10. package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DSThp4HX.cjs +21 -0
  11. package/components/{PlayerAccountGamingLimitsWrapper2Nd-C2l4GKfA.js → PlayerAccountGamingLimitsWrapper2Nd-Cq5vxtjw.js} +22 -19
  12. package/components/PlayerAccountGamingLimitsWrapper2Nd-KUpEDIP8.cjs +1 -0
  13. package/components/PlayerAccountGeneralConfirmationModal-BlglDNwU.js +365 -0
  14. package/components/PlayerAccountGeneralConfirmationModal-BpTCzpiW.cjs +1 -0
  15. package/components/{PlayerAccountMenuNd-DCG8VBeN.js → PlayerAccountMenuNd-BWUhUlIY.js} +71 -71
  16. package/components/PlayerAccountMenuNd-BmPerb2f.cjs +1 -0
  17. package/components/PlayerAccountModal-C7aZZlBw.cjs +1 -0
  18. package/components/PlayerAccountModal-CzVRNZzB.js +213 -0
  19. package/components/{PlayerAccountSelfExclusionNd-CcWfUeeq.js → PlayerAccountSelfExclusionNd-D2JmyzgE.js} +2624 -2548
  20. package/components/{PlayerAccountSelfExclusionNd-y8YlFTpW.cjs → PlayerAccountSelfExclusionNd-DCsOgBZR.cjs} +184 -184
  21. package/components/{PlayerAccountTimeout-B0g85-4A.js → PlayerAccountTimeout-BO3G2t3W.js} +448 -288
  22. package/components/PlayerAccountTimeout-Dg5Mlz5K.cjs +1 -0
  23. package/components/PlayerActiveBonuses-Dv3Y8Vnb.cjs +1 -0
  24. package/components/PlayerActiveBonuses-ZwmUwEUl.js +1089 -0
  25. package/components/PlayerBonusCard-DGPJpICk.cjs +1 -0
  26. package/components/PlayerBonusCard-dFgfE3Pv.js +722 -0
  27. package/components/{PlayerBonusHistory-Bq7IPMXk.cjs → PlayerBonusHistory-BfiKd2bg.cjs} +1 -1
  28. package/components/{PlayerBonusHistory-DG8zGNVv.js → PlayerBonusHistory-CgvT-d4z.js} +3 -3
  29. package/components/{PlayerGamingHistory-CyH6YJA_.js → PlayerGamingHistory-BGLAtN_Q.js} +3 -3
  30. package/components/{PlayerGamingHistory-CxUirJqc.cjs → PlayerGamingHistory-DKuaAado.cjs} +1 -1
  31. package/es2015/player-account-controller-nd.cjs +1 -1
  32. package/es2015/player-account-controller-nd.js +1 -1
  33. package/package.json +1 -1
  34. package/components/PlayerAccountControllerNd-Q0t7Ubzn.cjs +0 -1
  35. package/components/PlayerAccountGamingLimitsPage2Gm16Nd-TSh0wb3T.cjs +0 -21
  36. package/components/PlayerAccountGamingLimitsWrapper2Nd-B9Q7iGIP.cjs +0 -1
  37. package/components/PlayerAccountMenuNd-BIuXWBiI.cjs +0 -1
  38. package/components/PlayerAccountModal-C52SG5dV.cjs +0 -1
  39. package/components/PlayerAccountModal-DAqNrt36.js +0 -198
  40. package/components/PlayerAccountTimeout-C0lXekrR.cjs +0 -1
  41. package/components/PlayerActiveBonuses-B53gZwaj.cjs +0 -1
  42. package/components/PlayerActiveBonuses-DeDDPDuH.js +0 -998
  43. package/components/PlayerBonusCard-BbvG-zJm.js +0 -579
  44. package/components/PlayerBonusCard-Crm5CyLi.cjs +0 -1
@@ -0,0 +1,365 @@
1
+ import { a as J, $ as K, S as Q, i as V, f as _, c as X, s as Y, b as Z, D as $, e as y, d as E, t as L, g as a, k as T, l as m, m as O, E as ee, F as te, G as ne, n as S, H as oe, I as le, p as j, r as ie, q as ae, u as re, x as se, w as W, o as ce, y as me } from "./GeneralLogout-BZhvD1EQ.js";
2
+ function q(n, e) {
3
+ J(n, e);
4
+ }
5
+ function de(n) {
6
+ K.set(n);
7
+ }
8
+ const H = {
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
+ "en-us": {
50
+ cancel: "Cancel",
51
+ confirm: "Confirm"
52
+ }
53
+ };
54
+ function fe(n) {
55
+ Z(n, "svelte-1o81iqe", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{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);text-align:center}.GeneralConfirmationContainer::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)}.GeneralConfirmationContainer::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)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #BFCBC3);color:var(--emw--color-gray-100, #BFCBC3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{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(--emw--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)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
56
+ }
57
+ const ue = (n) => ({}), N = (n) => ({});
58
+ function ge(n) {
59
+ let e, t;
60
+ return {
61
+ c() {
62
+ e = W("svg"), t = W("path"), a(t, "stroke-linecap", "round"), a(t, "stroke-linejoin", "round"), a(t, "stroke-width", "2"), a(t, "d", "M6 18L18 6M6 6l12 12"), a(e, "class", "w-6 h-6"), a(e, "fill", "none"), a(e, "stroke", "currentColor"), a(e, "viewBox", "0 0 24 24"), a(e, "xmlns", "http://www.w3.org/2000/svg");
63
+ },
64
+ m(i, r) {
65
+ T(i, e, r), m(e, t);
66
+ },
67
+ p: ce,
68
+ d(i) {
69
+ i && j(e);
70
+ }
71
+ };
72
+ }
73
+ function P(n) {
74
+ let e, t, i;
75
+ return {
76
+ c() {
77
+ e = y("div"), t = y("h2"), i = L(
78
+ /*modaltitle*/
79
+ n[1]
80
+ ), a(e, "class", "GeneralConfirmationTitle");
81
+ },
82
+ m(r, f) {
83
+ T(r, e, f), m(e, t), m(t, i);
84
+ },
85
+ p(r, f) {
86
+ f & /*modaltitle*/
87
+ 2 && S(
88
+ i,
89
+ /*modaltitle*/
90
+ r[1]
91
+ );
92
+ },
93
+ d(r) {
94
+ r && j(e);
95
+ }
96
+ };
97
+ }
98
+ function R(n) {
99
+ let e, t = (
100
+ /*$_*/
101
+ n[4]("cancel") + ""
102
+ ), i, r, f;
103
+ return {
104
+ c() {
105
+ e = y("button"), i = L(t), a(e, "class", "GeneralCancelButton");
106
+ },
107
+ m(d, C) {
108
+ T(d, e, C), m(e, i), r || (f = O(
109
+ e,
110
+ "click",
111
+ /*click_handler*/
112
+ n[16]
113
+ ), r = !0);
114
+ },
115
+ p(d, C) {
116
+ C & /*$_*/
117
+ 16 && t !== (t = /*$_*/
118
+ d[4]("cancel") + "") && S(i, t);
119
+ },
120
+ d(d) {
121
+ d && j(e), r = !1, f();
122
+ }
123
+ };
124
+ }
125
+ function be(n) {
126
+ let e, t, i, r, f, d, C, A, g, k, p, w = (
127
+ /*$_*/
128
+ n[4]("confirm") + ""
129
+ ), G, u, h, z;
130
+ const F = (
131
+ /*#slots*/
132
+ n[15].close
133
+ ), M = $(
134
+ F,
135
+ n,
136
+ /*$$scope*/
137
+ n[14],
138
+ N
139
+ ), b = M || ge();
140
+ let s = (
141
+ /*modaltitle*/
142
+ n[1] && P(n)
143
+ ), c = (
144
+ /*hascancelbutton*/
145
+ n[2] && R(n)
146
+ );
147
+ return {
148
+ c() {
149
+ e = y("div"), t = y("div"), i = y("span"), b && b.c(), r = E(), s && s.c(), f = E(), d = y("div"), C = L(
150
+ /*modaltext*/
151
+ n[0]
152
+ ), A = E(), g = y("div"), c && c.c(), k = E(), p = y("button"), G = L(w), a(i, "class", "ModalCloseBtn"), a(i, "role", "button"), a(d, "class", "GeneralConfirmationContent"), a(p, "class", "GeneralConfirmButton"), a(g, "class", "GeneralConfirmationControlArea " + /*isMobile*/
153
+ (n[5] ? "GeneralConfirmationControlAreaMobile" : "")), a(t, "class", "GeneralConfirmationContainer " + /*isMobile*/
154
+ (n[5] ? "GeneralConfirmationContainerMobile" : "")), a(e, "class", "GeneralConfirmationWrapper " + /*isMobile*/
155
+ (n[5] ? "GeneralConfirmationMobileWrapper" : ""));
156
+ },
157
+ m(l, x) {
158
+ T(l, e, x), m(e, t), m(t, i), b && b.m(i, null), m(t, r), s && s.m(t, null), m(t, f), m(t, d), m(d, C), m(t, A), m(t, g), c && c.m(g, null), m(g, k), m(g, p), m(p, G), n[18](e), u = !0, h || (z = [
159
+ O(
160
+ i,
161
+ "click",
162
+ /*close*/
163
+ n[6]
164
+ ),
165
+ O(
166
+ p,
167
+ "click",
168
+ /*click_handler_1*/
169
+ n[17]
170
+ )
171
+ ], h = !0);
172
+ },
173
+ p(l, [x]) {
174
+ M && M.p && (!u || x & /*$$scope*/
175
+ 16384) && ee(
176
+ M,
177
+ F,
178
+ l,
179
+ /*$$scope*/
180
+ l[14],
181
+ u ? ne(
182
+ F,
183
+ /*$$scope*/
184
+ l[14],
185
+ x,
186
+ ue
187
+ ) : te(
188
+ /*$$scope*/
189
+ l[14]
190
+ ),
191
+ N
192
+ ), /*modaltitle*/
193
+ l[1] ? s ? s.p(l, x) : (s = P(l), s.c(), s.m(t, f)) : s && (s.d(1), s = null), (!u || x & /*modaltext*/
194
+ 1) && S(
195
+ C,
196
+ /*modaltext*/
197
+ l[0]
198
+ ), /*hascancelbutton*/
199
+ l[2] ? c ? c.p(l, x) : (c = R(l), c.c(), c.m(g, k)) : c && (c.d(1), c = null), (!u || x & /*$_*/
200
+ 16) && w !== (w = /*$_*/
201
+ l[4]("confirm") + "") && S(G, w);
202
+ },
203
+ i(l) {
204
+ u || (oe(b, l), u = !0);
205
+ },
206
+ o(l) {
207
+ le(b, l), u = !1;
208
+ },
209
+ d(l) {
210
+ l && j(e), b && b.d(l), s && s.d(), c && c.d(), n[18](null), h = !1, ie(z);
211
+ }
212
+ };
213
+ }
214
+ function he(n, e, t) {
215
+ let i;
216
+ ae(n, me, (o) => t(4, i = o));
217
+ let { $$slots: r = {}, $$scope: f } = e, { modaltext: d = "Are you sure that you want to perform this action?" } = e, { modaltitle: C = "" } = e, { hascancelbutton: A = !1 } = e, { modalconfirmevent: g = {} } = e, { modalcancelevent: k = {} } = e, { lang: p = "en" } = e, { clientstyling: w = "" } = e, { clientstylingurl: G = "" } = e, { translationurl: u = "" } = e, h, z = window.navigator.userAgent, F = re(z) !== "PC";
218
+ const M = () => {
219
+ window.postMessage({ type: "ModalClosed" }, window.location.href);
220
+ }, b = (o) => {
221
+ o === "confirm" && g && window.postMessage(g, window.location.href), o === "cancel" && k && window.postMessage(k, window.location.href), M();
222
+ }, s = () => {
223
+ let o = document.createElement("style");
224
+ o.innerHTML = w, h.appendChild(o);
225
+ }, c = () => {
226
+ let o = new URL(G), v = document.createElement("style");
227
+ fetch(o.href).then((B) => B.text()).then((B) => {
228
+ v.innerHTML = B, setTimeout(
229
+ () => {
230
+ h.appendChild(v);
231
+ },
232
+ 1
233
+ );
234
+ });
235
+ }, l = () => {
236
+ fetch(u).then((v) => v.json()).then((v) => {
237
+ Object.keys(v).forEach((B) => {
238
+ q(B, v[B]);
239
+ });
240
+ }).catch((v) => {
241
+ console.log(v);
242
+ });
243
+ };
244
+ Object.keys(H).forEach((o) => {
245
+ q(o, H[o]);
246
+ });
247
+ const x = () => {
248
+ de(p);
249
+ }, U = () => b("cancel"), D = () => b("confirm");
250
+ function I(o) {
251
+ se[o ? "unshift" : "push"](() => {
252
+ h = o, t(3, h);
253
+ });
254
+ }
255
+ return n.$$set = (o) => {
256
+ "modaltext" in o && t(0, d = o.modaltext), "modaltitle" in o && t(1, C = o.modaltitle), "hascancelbutton" in o && t(2, A = o.hascancelbutton), "modalconfirmevent" in o && t(8, g = o.modalconfirmevent), "modalcancelevent" in o && t(9, k = o.modalcancelevent), "lang" in o && t(10, p = o.lang), "clientstyling" in o && t(11, w = o.clientstyling), "clientstylingurl" in o && t(12, G = o.clientstylingurl), "translationurl" in o && t(13, u = o.translationurl), "$$scope" in o && t(14, f = o.$$scope);
257
+ }, n.$$.update = () => {
258
+ n.$$.dirty & /*modaltext, lang*/
259
+ 1025 && d && p && x(), n.$$.dirty & /*clientstyling, customStylingContainer*/
260
+ 2056 && w && h && s(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
261
+ 4104 && G && h && c(), n.$$.dirty & /*translationurl*/
262
+ 8192 && u && l();
263
+ }, [
264
+ d,
265
+ C,
266
+ A,
267
+ h,
268
+ i,
269
+ F,
270
+ M,
271
+ b,
272
+ g,
273
+ k,
274
+ p,
275
+ w,
276
+ G,
277
+ u,
278
+ f,
279
+ r,
280
+ U,
281
+ D,
282
+ I
283
+ ];
284
+ }
285
+ class Ce extends Q {
286
+ constructor(e) {
287
+ super(), V(
288
+ this,
289
+ e,
290
+ he,
291
+ be,
292
+ Y,
293
+ {
294
+ modaltext: 0,
295
+ modaltitle: 1,
296
+ hascancelbutton: 2,
297
+ modalconfirmevent: 8,
298
+ modalcancelevent: 9,
299
+ lang: 10,
300
+ clientstyling: 11,
301
+ clientstylingurl: 12,
302
+ translationurl: 13
303
+ },
304
+ fe
305
+ );
306
+ }
307
+ get modaltext() {
308
+ return this.$$.ctx[0];
309
+ }
310
+ set modaltext(e) {
311
+ this.$$set({ modaltext: e }), _();
312
+ }
313
+ get modaltitle() {
314
+ return this.$$.ctx[1];
315
+ }
316
+ set modaltitle(e) {
317
+ this.$$set({ modaltitle: e }), _();
318
+ }
319
+ get hascancelbutton() {
320
+ return this.$$.ctx[2];
321
+ }
322
+ set hascancelbutton(e) {
323
+ this.$$set({ hascancelbutton: e }), _();
324
+ }
325
+ get modalconfirmevent() {
326
+ return this.$$.ctx[8];
327
+ }
328
+ set modalconfirmevent(e) {
329
+ this.$$set({ modalconfirmevent: e }), _();
330
+ }
331
+ get modalcancelevent() {
332
+ return this.$$.ctx[9];
333
+ }
334
+ set modalcancelevent(e) {
335
+ this.$$set({ modalcancelevent: e }), _();
336
+ }
337
+ get lang() {
338
+ return this.$$.ctx[10];
339
+ }
340
+ set lang(e) {
341
+ this.$$set({ lang: e }), _();
342
+ }
343
+ get clientstyling() {
344
+ return this.$$.ctx[11];
345
+ }
346
+ set clientstyling(e) {
347
+ this.$$set({ clientstyling: e }), _();
348
+ }
349
+ get clientstylingurl() {
350
+ return this.$$.ctx[12];
351
+ }
352
+ set clientstylingurl(e) {
353
+ this.$$set({ clientstylingurl: e }), _();
354
+ }
355
+ get translationurl() {
356
+ return this.$$.ctx[13];
357
+ }
358
+ set translationurl(e) {
359
+ this.$$set({ translationurl: e }), _();
360
+ }
361
+ }
362
+ X(Ce, { modaltext: {}, modaltitle: {}, hascancelbutton: { type: "Boolean" }, modalconfirmevent: {}, modalcancelevent: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, ["close"], [], !0);
363
+ export {
364
+ Ce as default
365
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-BW6b3iuS.cjs");function A(o,t){e.addMessages(o,t)}function P(o){e.$locale.set(o)}const F={en:{cancel:"Cancel",confirm:"Confirm"},fr:{cancel:"Annuler",confirm:"Confirmer"},ro:{cancel:"Anulează",confirm:"Confirmă"},es:{cancel:"Cancelar",confirm:"Confirmar"},pt:{cancel:"Cancelar",confirm:"Confirmar"},"zh-hk":{cancel:"取消",confirm:"確認"},hr:{cancel:"Otkaži",confirm:"Potvrdi"},"pt-br":{cancel:"Cancelar",confirm:"confirme"},"es-mx":{cancel:"Cancelar",confirm:"Confirmar"},tr:{cancel:"İptal etmek",confirm:"Onaylamak"},"en-us":{cancel:"Cancel",confirm:"Confirm"}};function W(o){e.append_styles(o,"svelte-1o81iqe",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{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);text-align:center}.GeneralConfirmationContainer::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)}.GeneralConfirmationContainer::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)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #BFCBC3);color:var(--emw--color-gray-100, #BFCBC3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{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(--emw--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)}.GeneralConfirmationMobileWrapper{border:none;padding:0}')}const q=o=>({}),z=o=>({});function N(o){let t,n;return{c(){t=e.svg_element("svg"),n=e.svg_element("path"),e.attr(n,"stroke-linecap","round"),e.attr(n,"stroke-linejoin","round"),e.attr(n,"stroke-width","2"),e.attr(n,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(a,i){e.insert(a,t,i),e.append(t,n)},p:e.noop,d(a){a&&e.detach(t)}}}function E(o){let t,n,a;return{c(){t=e.element("div"),n=e.element("h2"),a=e.text(o[1]),e.attr(t,"class","GeneralConfirmationTitle")},m(i,m){e.insert(i,t,m),e.append(t,n),e.append(n,a)},p(i,m){m&2&&e.set_data(a,i[1])},d(i){i&&e.detach(t)}}}function L(o){let t,n=o[4]("cancel")+"",a,i,m;return{c(){t=e.element("button"),a=e.text(n),e.attr(t,"class","GeneralCancelButton")},m(d,h){e.insert(d,t,h),e.append(t,a),i||(m=e.listen(t,"click",o[16]),i=!0)},p(d,h){h&16&&n!==(n=d[4]("cancel")+"")&&e.set_data(a,n)},d(d){d&&e.detach(t),i=!1,m()}}}function R(o){let t,n,a,i,m,d,h,G,u,v,b,x=o[4]("confirm")+"",w,f,p,B;const M=o[15].close,y=e.create_slot(M,o,o[14],z),g=y||N();let c=o[1]&&E(o),s=o[2]&&L(o);return{c(){t=e.element("div"),n=e.element("div"),a=e.element("span"),g&&g.c(),i=e.space(),c&&c.c(),m=e.space(),d=e.element("div"),h=e.text(o[0]),G=e.space(),u=e.element("div"),s&&s.c(),v=e.space(),b=e.element("button"),w=e.text(x),e.attr(a,"class","ModalCloseBtn"),e.attr(a,"role","button"),e.attr(d,"class","GeneralConfirmationContent"),e.attr(b,"class","GeneralConfirmButton"),e.attr(u,"class","GeneralConfirmationControlArea "+(o[5]?"GeneralConfirmationControlAreaMobile":"")),e.attr(n,"class","GeneralConfirmationContainer "+(o[5]?"GeneralConfirmationContainerMobile":"")),e.attr(t,"class","GeneralConfirmationWrapper "+(o[5]?"GeneralConfirmationMobileWrapper":""))},m(r,C){e.insert(r,t,C),e.append(t,n),e.append(n,a),g&&g.m(a,null),e.append(n,i),c&&c.m(n,null),e.append(n,m),e.append(n,d),e.append(d,h),e.append(n,G),e.append(n,u),s&&s.m(u,null),e.append(u,v),e.append(u,b),e.append(b,w),o[18](t),f=!0,p||(B=[e.listen(a,"click",o[6]),e.listen(b,"click",o[17])],p=!0)},p(r,[C]){y&&y.p&&(!f||C&16384)&&e.update_slot_base(y,M,r,r[14],f?e.get_slot_changes(M,r[14],C,q):e.get_all_dirty_from_scope(r[14]),z),r[1]?c?c.p(r,C):(c=E(r),c.c(),c.m(n,m)):c&&(c.d(1),c=null),(!f||C&1)&&e.set_data(h,r[0]),r[2]?s?s.p(r,C):(s=L(r),s.c(),s.m(u,v)):s&&(s.d(1),s=null),(!f||C&16)&&x!==(x=r[4]("confirm")+"")&&e.set_data(w,x)},i(r){f||(e.transition_in(g,r),f=!0)},o(r){e.transition_out(g,r),f=!1},d(r){r&&e.detach(t),g&&g.d(r),c&&c.d(),s&&s.d(),o[18](null),p=!1,e.run_all(B)}}}function U(o,t,n){let a;e.component_subscribe(o,e.$format,l=>n(4,a=l));let{$$slots:i={},$$scope:m}=t,{modaltext:d="Are you sure that you want to perform this action?"}=t,{modaltitle:h=""}=t,{hascancelbutton:G=!1}=t,{modalconfirmevent:u={}}=t,{modalcancelevent:v={}}=t,{lang:b="en"}=t,{clientstyling:x=""}=t,{clientstylingurl:w=""}=t,{translationurl:f=""}=t,p,B=window.navigator.userAgent,M=e.getDevice(B)!=="PC";const y=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},g=l=>{l==="confirm"&&u&&window.postMessage(u,window.location.href),l==="cancel"&&v&&window.postMessage(v,window.location.href),y()},c=()=>{let l=document.createElement("style");l.innerHTML=x,p.appendChild(l)},s=()=>{let l=new URL(w),_=document.createElement("style");fetch(l.href).then(k=>k.text()).then(k=>{_.innerHTML=k,setTimeout(()=>{p.appendChild(_)},1)})},r=()=>{fetch(f).then(_=>_.json()).then(_=>{Object.keys(_).forEach(k=>{A(k,_[k])})}).catch(_=>{console.log(_)})};Object.keys(F).forEach(l=>{A(l,F[l])});const C=()=>{P(b)},T=()=>g("cancel"),j=()=>g("confirm");function O(l){e.binding_callbacks[l?"unshift":"push"](()=>{p=l,n(3,p)})}return o.$$set=l=>{"modaltext"in l&&n(0,d=l.modaltext),"modaltitle"in l&&n(1,h=l.modaltitle),"hascancelbutton"in l&&n(2,G=l.hascancelbutton),"modalconfirmevent"in l&&n(8,u=l.modalconfirmevent),"modalcancelevent"in l&&n(9,v=l.modalcancelevent),"lang"in l&&n(10,b=l.lang),"clientstyling"in l&&n(11,x=l.clientstyling),"clientstylingurl"in l&&n(12,w=l.clientstylingurl),"translationurl"in l&&n(13,f=l.translationurl),"$$scope"in l&&n(14,m=l.$$scope)},o.$$.update=()=>{o.$$.dirty&1025&&d&&b&&C(),o.$$.dirty&2056&&x&&p&&c(),o.$$.dirty&4104&&w&&p&&s(),o.$$.dirty&8192&&f&&r()},[d,h,G,p,a,M,y,g,u,v,b,x,w,f,m,i,T,j,O]}class S extends e.SvelteComponent{constructor(t){super(),e.init(this,t,U,R,e.safe_not_equal,{modaltext:0,modaltitle:1,hascancelbutton:2,modalconfirmevent:8,modalcancelevent:9,lang:10,clientstyling:11,clientstylingurl:12,translationurl:13},W)}get modaltext(){return this.$$.ctx[0]}set modaltext(t){this.$$set({modaltext:t}),e.flush()}get modaltitle(){return this.$$.ctx[1]}set modaltitle(t){this.$$set({modaltitle:t}),e.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(t){this.$$set({hascancelbutton:t}),e.flush()}get modalconfirmevent(){return this.$$.ctx[8]}set modalconfirmevent(t){this.$$set({modalconfirmevent:t}),e.flush()}get modalcancelevent(){return this.$$.ctx[9]}set modalcancelevent(t){this.$$set({modalcancelevent:t}),e.flush()}get lang(){return this.$$.ctx[10]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(S,{modaltext:{},modaltitle:{},hascancelbutton:{type:"Boolean"},modalconfirmevent:{},modalcancelevent:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},["close"],[],!0);exports.default=S;