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