@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.
- package/components/PlayerAccountGamingLimitsHistory2Nd-B2G860pn.js +5185 -0
- package/components/PlayerAccountGamingLimitsHistory2Nd-BEuKrge-.cjs +18 -0
- package/components/PlayerAccountGamingLimitsHistory2Nd-BqKMtdOt.js +5148 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-B16fR8Dm.cjs +35 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DC2gUFiv.js +4605 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DWXdAD8O.js +4550 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-BBjEuw8E.cjs +4 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-BG0k5-qm.js +1535 -0
- package/components/PlayerAccountGamingLimitsWrapper2Nd-DuDKdVjB.js +1541 -0
- package/components/PlayerLimitNotification-BWs0Ehdx.js +557 -0
- package/components/PlayerLimitNotification-D4W-twP9.cjs +37 -0
- package/components/PlayerLimitNotification-DKgMulNV.js +557 -0
- package/es2015/player-limit-notification.cjs +1 -0
- package/es2015/player-limit-notification.js +16 -0
- package/esnext/player-limit-notification.js +14 -0
- package/package.json +25 -0
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/index-b2193545-9K-aI7zC.cjs +1 -0
- package/stencil/index-b2193545-DsMHU6jb.js +519 -0
- package/stencil/index-b2193545-R7ZoV-kY.js +503 -0
- package/stencil/ui-skeleton-BreIU6e5.cjs +1 -0
- package/stencil/ui-skeleton-W50o8tfg.js +11 -0
- package/stencil/ui-skeleton-ed169f8f-CVY4B-CP.js +155 -0
- package/stencil/ui-skeleton-ed169f8f-CpiCXJrP.cjs +55 -0
- package/stencil/ui-skeleton-ed169f8f-D3TjbVKy.js +155 -0
- package/stencil/ui-skeleton-xXZA3rYO.js +29 -0
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
import { a as Q, $ as X, S as F, i as K, f as m, s as Y, Q as Z, b as $, w as W, d as tt, z as et, A as O, p as u, V as s, h as it, j as r, D as R, k as g, l as G, E as V, m as nt, o as st, 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 H(n, t) {
|
|
4
|
+
Q(n, t);
|
|
5
|
+
}
|
|
6
|
+
function ct(n) {
|
|
7
|
+
X.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 != "undefined") {
|
|
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-DuDKdVjB.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, D, x, _, f, p, S, T, z, E, A = (
|
|
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 = G(), w = g("section"), D = G(), 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>', _ = G(), f = g("section"), p = g("button"), S = g("div"), S.innerHTML = '<input type="checkbox"/> <span class="circle"></span>', T = G(), z = g("div"), E = g("p"), M = V(A), C = G(), d = g("button"), b = V(L), u(k, "slot", "LimitWrapperTitle"), u(w, "slot", "LimitsList"), u(x, "slot", "LimitSkeleton"), u(S, "class", "toggle-checkbox"), u(E, "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, D), r(e, x), r(e, _), r(e, f), r(f, p), r(p, S), r(p, T), r(p, z), r(z, E), r(E, 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 && A !== (A = /*$_*/
|
|
163
|
+
o[19]("skipLimitLimitDescription") + "") && O(M, A), 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: D = "" } = 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: E = "" } = t, { customcurrencysymbols: A = "" } = 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": D,
|
|
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
|
+
}, P = (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", P), () => {
|
|
383
|
+
window.removeEventListener("message", P);
|
|
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, D = 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, E = i.currency), "customcurrencysymbols" in i && l(12, A = 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
|
+
D,
|
|
405
|
+
x,
|
|
406
|
+
_,
|
|
407
|
+
f,
|
|
408
|
+
p,
|
|
409
|
+
S,
|
|
410
|
+
T,
|
|
411
|
+
z,
|
|
412
|
+
E,
|
|
413
|
+
A,
|
|
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 F {
|
|
429
|
+
constructor(t) {
|
|
430
|
+
super(), K(
|
|
431
|
+
this,
|
|
432
|
+
t,
|
|
433
|
+
gt,
|
|
434
|
+
dt,
|
|
435
|
+
Y,
|
|
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
|
+
Z(pt, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, session: {}, userid: {}, lang: {}, endpoint: {}, tablabels: {}, limitsamount: {}, limitsperiods: {}, limitformat: {}, currency: {}, customcurrencysymbols: {}, apiversion: {}, translationurl: {}, timezone: {} }, [], [], !0);
|
|
555
|
+
export {
|
|
556
|
+
pt as default
|
|
557
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerLimitNotification-D4W-twP9.cjs")).then(({default:t})=>{!customElements.get("player-limit-notification")&&customElements.define("player-limit-notification",t.element)})}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
if (typeof window != "undefined") {
|
|
2
|
+
let n = function(t) {
|
|
3
|
+
return function(...i) {
|
|
4
|
+
try {
|
|
5
|
+
return t.apply(this, i);
|
|
6
|
+
} catch (e) {
|
|
7
|
+
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"))
|
|
8
|
+
return !1;
|
|
9
|
+
throw e;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerLimitNotification-DKgMulNV.js").then(({ default: t }) => {
|
|
14
|
+
!customElements.get("player-limit-notification") && customElements.define("player-limit-notification", t.element);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { P as n } from "../components/PlayerLimitNotification-BWs0Ehdx.js";
|
|
2
|
+
function s(t) {
|
|
3
|
+
return function(...i) {
|
|
4
|
+
try {
|
|
5
|
+
return t.apply(this, i);
|
|
6
|
+
} catch (e) {
|
|
7
|
+
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"))
|
|
8
|
+
return !1;
|
|
9
|
+
throw e;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
customElements.define = s(customElements.define);
|
|
14
|
+
!customElements.get("player-limit-notification") && customElements.define("player-limit-notification", n.element);
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@everymatrix/player-limit-notification",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "esnext/player-limit-notification.js",
|
|
6
|
+
"module": "esnext/player-limit-notification.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./esnext/player-limit-notification.js"
|
|
10
|
+
},
|
|
11
|
+
"./es2015/player-limit-notification.cjs": "./es2015/player-limit-notification.cjs",
|
|
12
|
+
"./es2015/player-limit-notification.js": "./es2015/player-limit-notification.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"components/",
|
|
16
|
+
"es2015/",
|
|
17
|
+
"stencil",
|
|
18
|
+
"angular",
|
|
19
|
+
"esnext/"
|
|
20
|
+
],
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public",
|
|
23
|
+
"registry": "https://everymatrix.jfrog.io/artifactory/api/npm/everymatrix-widgets/"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=()=>{};exports.globalScripts=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var P=(e,t,s)=>new Promise((r,n)=>{var a=i=>{try{o(s.next(i))}catch($){n($)}},l=i=>{try{o(s.throw(i))}catch($){n($)}},o=i=>i.done?r(i.value):Promise.resolve(i.value).then(a,l);o((s=s.apply(e,t)).next())});const ue="ui-skeleton",fe={hydratedSelectorName:"hydrated"};var de=Object.defineProperty,me=(e,t)=>{for(var s in t)de(e,s,{get:t[s],enumerable:!0})},U=new WeakMap,b=e=>U.get(e),ve=(e,t)=>U.set(t.$lazyInstance$=e,t),ge=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],U.set(e,s)},E=(e,t)=>(0,console.error)(e,t),O=new Map,he=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const a=O.get(n);if(a)return a[r];{const l=o=>(O.set(n,o),o[r]);switch(n){case"ui-skeleton":return Promise.resolve().then(()=>require("./ui-skeleton-BreIU6e5.cjs")).then(l,E)}}return import(`./${n}.entry.js`).then(l=>(O.set(n,l),l[r]),E)},L=new Map,pe="{visibility:hidden}.hydrated{visibility:inherit}",J="slot-fb{display:contents}slot-fb[hidden]{display:none}",B=typeof window!="undefined"?window:{},y=B.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},K=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),A=!1,C=[],Q=[],Se=(e,t)=>s=>{e.push(s),A||(A=!0,g.$flags$&4?z(I):g.raf(I))},D=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){E(s)}e.length=0},I=()=>{D(C),D(Q),(A=C.length>0)&&g.raf(I)},z=e=>K().then(e),be=Se(Q),F={},X=e=>(e=typeof e,e==="object"||e==="function");function Z(e){var t,s,r;return(r=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?r:void 0}var ke={};me(ke,{err:()=>R,map:()=>Ee,ok:()=>H,unwrap:()=>we,unwrapErr:()=>Pe});var H=e=>({isOk:!0,isErr:!1,value:e}),R=e=>({isOk:!1,isErr:!0,value:e});function Ee(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>H(r)):H(s)}if(e.isErr){const s=e.value;return R(s)}throw"should never get here"}var we=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},xe=(e,t)=>()=>{},V=(e,t,...s)=>{let r=null,n=null,a=!1,l=!1;const o=[],i=c=>{for(let u=0;u<c.length;u++)r=c[u],Array.isArray(r)?i(r):r!=null&&typeof r!="boolean"&&((a=typeof e!="function"&&!X(r))&&(r=String(r)),a&&l?o[o.length-1].$text$+=r:o.push(a?N(null,r):r),l=a)};if(i(s),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(u=>c[u]).join(" "))}}const $=N(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=n,$},N=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s},ee={},Te=e=>e&&e.$tag$===ee,Le=(e,t)=>e!=null&&!X(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,_e=(e,t,s)=>{const r=g.ce(t,s);return e.dispatchEvent(r),r},M=new WeakMap,je=(e,t,s)=>{let r=L.get(e);ye&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,L.set(e,r)},Oe=(e,t,s)=>{var r;const n=te(t),a=L.get(n);if(e=e.nodeType===11?e:y,a)if(typeof a=="string"){e=e.head||e;let l=M.get(e),o;if(l||M.set(e,l=new Set),!l.has(n)){{o=y.createElement("style"),o.innerHTML=a;const i=(r=g.$nonce$)!=null?r:Z(y);i!=null&&o.setAttribute("nonce",i),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=J),l&&l.add(n)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return n},Ae=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=S("attachStyles",t.$tagName$);Oe(s.getRootNode(),t),r()},te=(e,t)=>"sc-"+e.$tagName$,W=(e,t,s,r,n,a)=>{if(s!==r&&(t.toLowerCase(),t==="class")){const l=e.classList,o=Y(s),i=Y(r);l.remove(...o.filter($=>$&&!i.includes($))),l.add(...i.filter($=>$&&!o.includes($)))}},Ie=/\s/,Y=e=>e?e.split(Ie):[],ne=(e,t,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||F,a=t.$attrs$||F;for(const l of G(Object.keys(n)))l in a||W(r,l,n[l],void 0);for(const l of G(Object.keys(a)))W(r,l,n[l],a[l])};function G(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var se,_=(e,t,s,r)=>{const n=t.$children$[s];let a=0,l,o;if(n.$text$!==null)l=n.$elm$=y.createTextNode(n.$text$);else if(l=n.$elm$=y.createElement(n.$tag$),ne(null,n),n.$children$)for(a=0;a<n.$children$.length;++a)o=_(e,n,a),o&&l.appendChild(o);return l["s-hn"]=se,l},re=(e,t,s,r,n,a)=>{let l=e,o;for(;n<=a;++n)r[n]&&(o=_(null,s,n),o&&(r[n].$elm$=o,T(l,o,t)))},le=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const a=n.$elm$;a&&a.remove()}}},He=(e,t,s,r,n=!1)=>{let a=0,l=0,o=0,i=0,$=t.length-1,c=t[0],u=t[$],f=r.length-1,d=r[0],m=r[f],v,h;for(;a<=$&&l<=f;)if(c==null)c=t[++a];else if(u==null)u=t[--$];else if(d==null)d=r[++l];else if(m==null)m=r[--f];else if(x(c,d,n))k(c,d,n),c=t[++a],d=r[++l];else if(x(u,m,n))k(u,m,n),u=t[--$],m=r[--f];else if(x(c,m,n))k(c,m,n),T(e,c.$elm$,u.$elm$.nextSibling),c=t[++a],m=r[--f];else if(x(u,d,n))k(u,d,n),T(e,u.$elm$,c.$elm$),u=t[--$],d=r[++l];else{for(o=-1,i=a;i<=$;++i)if(t[i]&&t[i].$key$!==null&&t[i].$key$===d.$key$){o=i;break}o>=0?(h=t[o],h.$tag$!==d.$tag$?v=_(t&&t[l],s,o):(k(h,d,n),t[o]=void 0,v=h.$elm$),d=r[++l]):(v=_(t&&t[l],s,l),d=r[++l]),v&&T(c.$elm$.parentNode,v,c.$elm$)}a>$?re(e,r[f+1]==null?null:r[f+1].$elm$,s,r,l,f):l>f&&le(t,a,$)},x=(e,t,s=!1)=>e.$tag$===t.$tag$?s?!0:e.$key$===t.$key$:!1,k=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,l=t.$text$;l===null?(ne(e,t),n!==null&&a!==null?He(r,n,t,a,s):a!==null?(e.$text$!==null&&(r.textContent=""),re(r,null,t,a,0,a.length-1)):n!==null&&le(n,0,n.length-1)):e.$text$!==l&&(r.data=l)},T=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),Ne=(e,t,s=!1)=>{const r=e.$hostElement$,n=e.$vnode$||N(null,null),a=Te(t)?t:V(null,null,t);if(se=r.tagName,s&&a.$attrs$)for(const l of Object.keys(a.$attrs$))r.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(a.$attrs$[l]=r[l]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=n.$elm$=r,k(n,a,s)},ae=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},q=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ae(e,e.$ancestorComponent$),be(()=>Ue(e,t))},Ue=(e,t)=>{const s=e.$hostElement$,r=S("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return r(),Be(a,()=>qe(e,n,t))},Be=(e,t)=>ze(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),ze=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qe=(e,t,s)=>P(exports,null,function*(){var r;const n=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=n["s-rc"];s&&Ae(e);const o=S("render",e.$cmpMeta$.$tagName$);Ce(e,t,n,s),l&&(l.map(i=>i()),n["s-rc"]=void 0),o(),a();{const i=(r=n["s-p"])!=null?r:[],$=()=>De(e);i.length===0?$():(Promise.all(i).then($),e.$flags$|=4,i.length=0)}}),Ce=(e,t,s,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ne(e,t,r)}catch(n){E(n,e.$hostElement$)}return null},De=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=S("postUpdate",t),n=e.$ancestorComponent$;e.$flags$&64?r():(e.$flags$|=64,oe(s),r(),e.$onReadyResolve$(s),n||ie()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&z(()=>q(e,!1)),e.$flags$&=-517},ie=e=>{oe(y.documentElement),z(()=>_e(B,"appload",{detail:{namespace:ue}}))},oe=e=>{var t;return e.classList.add((t=fe.hydratedSelectorName)!=null?t:"hydrated")},Fe=(e,t)=>b(e).$instanceValues$.get(t),Me=(e,t,s,r)=>{const n=b(e);if(!n)throw new Error(`Couldn't find host element for "${r.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const a=n.$hostElement$,l=n.$instanceValues$.get(t),o=n.$flags$,i=n.$lazyInstance$;s=Le(s,r.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(s),c=s!==l&&!$;if((!(o&8)||l===void 0)&&c&&(n.$instanceValues$.set(t,s),i)){if(r.$watchers$&&o&128){const u=r.$watchers$[t];u&&u.map(f=>{try{i[f](s,l,t)}catch(d){E(d,a)}})}(o&18)===2&&q(n,!1)}},$e=(e,t,s)=>{var r,n;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((r=t.$members$)!=null?r:{});if(l.map(([o,[i]])=>{(i&31||s&2&&i&32)&&Object.defineProperty(a,o,{get(){return Fe(this,o)},set($){Me(this,o,$,t)},configurable:!0,enumerable:!0})}),s&1){const o=new Map;a.attributeChangedCallback=function(i,$,c){g.jmp(()=>{var u;const f=o.get(i);if(this.hasOwnProperty(f))c=this[f],delete this[f];else{if(a.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==c)return;if(f==null){const d=b(this),m=d==null?void 0:d.$flags$;if(m&&!(m&8)&&m&128&&c!==$){const v=d.$lazyInstance$,h=(u=t.$watchers$)==null?void 0:u[i];h==null||h.forEach(p=>{v[p]!=null&&v[p].call(v,c,$,i)})}return}}this[f]=c===null&&typeof this[f]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...l.filter(([i,$])=>$[0]&15).map(([i,$])=>{const c=$[1]||i;return o.set(c,i),c})]))}}return e},We=(e,t,s,r)=>P(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const i=he(s);if(i&&"then"in i){const c=xe();n=yield i,c()}else n=i;if(!n)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(s.$watchers$=n.watchers,$e(n,s,2),n.isProxied=!0);const $=S("createInstance",s.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){E(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{n=e.constructor;const i=e.localName;customElements.whenDefined(i).then(()=>t.$flags$|=128)}if(n&&n.style){let i;typeof n.style=="string"&&(i=n.style);const $=te(s);if(!L.has($)){const c=S("registerStyles",s.$tagName$);je($,i,!!(s.$flags$&1)),c()}}}const a=t.$ancestorComponent$,l=()=>q(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),Ye=e=>{},Ge=e=>{if(!(g.$flags$&1)){const t=b(e),s=t.$cmpMeta$,r=S("connectedCallback",s.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ye());else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ae(t,t.$ancestorComponent$=n);break}}s.$members$&&Object.entries(s.$members$).map(([n,[a]])=>{if(a&31&&e.hasOwnProperty(n)){const l=e[n];delete e[n],e[n]=l}}),We(e,t,s)}r()}},Je=e=>{},Ke=e=>P(exports,null,function*(){if(!(g.$flags$&1)){const t=b(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Je())}}),Qe=(e,t={})=>{var s;const r=S(),n=[],a=t.exclude||[],l=B.customElements,o=y.head,i=o.querySelector("meta[charset]"),$=y.createElement("style"),c=[];let u,f=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",y.baseURI).href;let d=!1;if(e.map(m=>{m[1].map(v=>{var h;const p={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};p.$flags$&4&&(d=!0),p.$members$=v[2],p.$watchers$=(h=v[4])!=null?h:{};const w=p.$tagName$,ce=class extends HTMLElement{constructor(j){super(j),this.hasRegisteredEventListeners=!1,j=this,ge(j,p)}connectedCallback(){b(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),u&&(clearTimeout(u),u=null),f?c.push(this):g.jmp(()=>Ge(this))}disconnectedCallback(){g.jmp(()=>Ke(this))}componentOnReady(){return b(this).$onReadyPromise$}};p.$lazyBundleId$=m[0],!a.includes(w)&&!l.get(w)&&(n.push(w),l.define(w,$e(ce,p,1)))})}),n.length>0&&(d&&($.textContent+=J),$.textContent+=n.sort()+pe,$.innerHTML.length)){$.setAttribute("data-styles","");const m=(s=g.$nonce$)!=null?s:Z(y);m!=null&&$.setAttribute("nonce",m),o.insertBefore($,i?i.nextSibling:o.firstChild)}f=!1,c.length?c.map(m=>m.connectedCallback()):g.jmp(()=>u=setTimeout(ie,30)),r()};exports.Host=ee;exports.bootstrapLazy=Qe;exports.h=V;exports.promiseResolve=K;exports.registerInstance=ve;
|