@everymatrix/casino-categories-providers 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.
- package/components/CasinoCategories-C9eScDYm.cjs +3 -0
- package/components/{CasinoCategories-C0ogDjxI.js → CasinoCategories-CwdPhfH2.js} +280 -284
- package/components/{CasinoCategoriesProviders-Dc9YZZFb.js → CasinoCategoriesProviders-Ilq2cPiO.js} +150 -158
- package/components/CasinoCategoriesProviders-zR-DXryv.cjs +1 -0
- package/components/CasinoProviders-BPgFlt-S.cjs +1 -0
- package/components/CasinoProviders-CtIWnRmy.js +485 -0
- package/es2015/casino-categories-providers.cjs +1 -1
- package/es2015/casino-categories-providers.js +1 -1
- package/package.json +2 -2
- package/components/CasinoCategories-vpVI3Nub.cjs +0 -3
- package/components/CasinoCategoriesProviders-B3uizcLb.cjs +0 -1
- package/components/CasinoProviders-8Nm8LvTT.js +0 -485
- package/components/CasinoProviders-CBZcz5Ar.cjs +0 -1
package/components/{CasinoCategoriesProviders-Dc9YZZFb.js → CasinoCategoriesProviders-Ilq2cPiO.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { a as z, $ as x, S as K, i as R, f as d, c as U, s as q, b as I, e as b, t as B, d as P, g, h as a, j as G, k as c, l as D, m as M, n as j, o as J, r as Q, p as W, q as X, u as Y } from "./CasinoCategories-CwdPhfH2.js";
|
|
2
|
+
function O(i, t) {
|
|
3
|
+
z(i, t);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
5
|
+
function Z(i) {
|
|
6
|
+
x.set(i);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const V = {
|
|
9
9
|
en: {
|
|
10
10
|
categories: "Categories",
|
|
11
11
|
providers: "Suppliers"
|
|
@@ -76,10 +76,10 @@ const z = {
|
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
if (typeof window != "undefined") {
|
|
79
|
-
let
|
|
80
|
-
return function(...
|
|
79
|
+
let i = function(t) {
|
|
80
|
+
return function(...s) {
|
|
81
81
|
try {
|
|
82
|
-
return t.apply(this,
|
|
82
|
+
return t.apply(this, s);
|
|
83
83
|
} catch (n) {
|
|
84
84
|
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
85
85
|
return !1;
|
|
@@ -87,15 +87,15 @@ if (typeof window != "undefined") {
|
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
|
-
customElements.define =
|
|
90
|
+
customElements.define = i(customElements.define), import("./CasinoCategories-CwdPhfH2.js").then((t) => t.C).then(({ default: t }) => {
|
|
91
91
|
!customElements.get("casino-categories") && customElements.define("casino-categories", t.element);
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
if (typeof window != "undefined") {
|
|
95
|
-
let
|
|
96
|
-
return function(...
|
|
95
|
+
let i = function(t) {
|
|
96
|
+
return function(...s) {
|
|
97
97
|
try {
|
|
98
|
-
return t.apply(this,
|
|
98
|
+
return t.apply(this, s);
|
|
99
99
|
} catch (n) {
|
|
100
100
|
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
101
101
|
return !1;
|
|
@@ -103,236 +103,228 @@ if (typeof window != "undefined") {
|
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
|
-
customElements.define =
|
|
106
|
+
customElements.define = i(customElements.define), import("./CasinoProviders-CtIWnRmy.js").then(({ default: t }) => {
|
|
107
107
|
!customElements.get("casino-providers") && customElements.define("casino-providers", t.element);
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
110
|
+
function $(i) {
|
|
111
|
+
I(i, "svelte-vvvaab", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.NotVisible{display:none}.CasinoCategoriesProviders{background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A))}.Header{display:flex;max-width:100%;min-width:320px;margin-bottom:14px;font-size:18px;background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A))}.HeaderButton{flex:1 2 0;min-height:48px;margin:0;border:none;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));box-shadow:1px 2px 2px rgba(var(--emfe-w-color-gray-150, #828282), 0.1)}.HeaderButton.Active{box-shadow:none;border-bottom:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
let t,
|
|
113
|
+
function ee(i) {
|
|
114
|
+
let t, s, n, u, _ = (
|
|
115
115
|
/*$_*/
|
|
116
|
-
|
|
117
|
-
), S, w, F,
|
|
116
|
+
i[11]("categories") + ""
|
|
117
|
+
), S, w, F, f, v = (
|
|
118
118
|
/*$_*/
|
|
119
|
-
|
|
120
|
-
), y, m, C, h,
|
|
119
|
+
i[11]("providers") + ""
|
|
120
|
+
), y, m, C, h, r, E, A, k, l, H, N, L;
|
|
121
121
|
return {
|
|
122
122
|
c() {
|
|
123
|
-
t = b("div"),
|
|
124
|
-
(
|
|
125
|
-
(
|
|
126
|
-
|
|
123
|
+
t = b("div"), s = b("div"), n = b("div"), u = b("button"), S = B(_), F = P(), f = b("button"), y = B(v), C = P(), h = b("div"), r = b("casino-categories"), A = P(), k = b("div"), l = b("casino-providers"), g(u, "class", w = "HeaderButton " + /*activeTab*/
|
|
124
|
+
(i[10] === "categories" ? "Active" : "")), g(f, "class", m = "HeaderButton " + /*activeTab*/
|
|
125
|
+
(i[10] === "providers" ? "Active" : "")), g(n, "class", "Header"), a(
|
|
126
|
+
r,
|
|
127
127
|
"endpoint",
|
|
128
128
|
/*endpointcategories*/
|
|
129
|
-
|
|
130
|
-
),
|
|
131
|
-
|
|
129
|
+
i[0]
|
|
130
|
+
), a(
|
|
131
|
+
r,
|
|
132
132
|
"datasource",
|
|
133
133
|
/*datasourcecategories*/
|
|
134
|
-
|
|
135
|
-
),
|
|
136
|
-
|
|
134
|
+
i[1]
|
|
135
|
+
), a(
|
|
136
|
+
r,
|
|
137
137
|
"activecategory",
|
|
138
138
|
/*activecategory*/
|
|
139
|
-
|
|
140
|
-
),
|
|
141
|
-
|
|
139
|
+
i[2]
|
|
140
|
+
), a(
|
|
141
|
+
r,
|
|
142
142
|
"excludedflags",
|
|
143
143
|
/*excludedflags*/
|
|
144
|
-
|
|
145
|
-
),
|
|
146
|
-
|
|
144
|
+
i[5]
|
|
145
|
+
), a(
|
|
146
|
+
r,
|
|
147
147
|
"lang",
|
|
148
148
|
/*lang*/
|
|
149
|
-
|
|
150
|
-
),
|
|
151
|
-
|
|
149
|
+
i[6]
|
|
150
|
+
), a(
|
|
151
|
+
r,
|
|
152
152
|
"clientstyling",
|
|
153
153
|
/*clientstyling*/
|
|
154
|
-
|
|
155
|
-
),
|
|
156
|
-
|
|
154
|
+
i[7]
|
|
155
|
+
), a(
|
|
156
|
+
r,
|
|
157
157
|
"clientstylingurl",
|
|
158
158
|
/*clientstylingurl*/
|
|
159
|
-
|
|
160
|
-
),
|
|
161
|
-
|
|
162
|
-
s[10] === "providers" ? "NotVisible" : ""
|
|
163
|
-
) + " svelte-144c47t"), r(
|
|
159
|
+
i[8]
|
|
160
|
+
), g(h, "class", E = /*activeTab*/
|
|
161
|
+
i[10] === "providers" ? "NotVisible" : ""), a(
|
|
164
162
|
l,
|
|
165
163
|
"endpoint",
|
|
166
164
|
/*endpointproviders*/
|
|
167
|
-
|
|
168
|
-
),
|
|
165
|
+
i[3]
|
|
166
|
+
), a(
|
|
169
167
|
l,
|
|
170
168
|
"datasource",
|
|
171
169
|
/*datasourceproviders*/
|
|
172
|
-
|
|
173
|
-
),
|
|
170
|
+
i[4]
|
|
171
|
+
), a(
|
|
174
172
|
l,
|
|
175
173
|
"lang",
|
|
176
174
|
/*lang*/
|
|
177
|
-
|
|
178
|
-
),
|
|
175
|
+
i[6]
|
|
176
|
+
), a(
|
|
179
177
|
l,
|
|
180
178
|
"clientstyling",
|
|
181
179
|
/*clientstyling*/
|
|
182
|
-
|
|
183
|
-
),
|
|
180
|
+
i[7]
|
|
181
|
+
), a(
|
|
184
182
|
l,
|
|
185
183
|
"clientstylingurl",
|
|
186
184
|
/*clientstylingurl*/
|
|
187
|
-
|
|
188
|
-
),
|
|
189
|
-
|
|
190
|
-
s[10] === "categories" ? "NotVisible" : ""
|
|
191
|
-
) + " svelte-144c47t"), d(i, "class", "CasinoCategoriesProviders svelte-144c47t"), d(t, "class", "svelte-144c47t");
|
|
185
|
+
i[8]
|
|
186
|
+
), g(k, "class", H = /*activeTab*/
|
|
187
|
+
i[10] === "categories" ? "NotVisible" : ""), g(s, "class", "CasinoCategoriesProviders");
|
|
192
188
|
},
|
|
193
|
-
m(
|
|
194
|
-
|
|
195
|
-
|
|
189
|
+
m(o, e) {
|
|
190
|
+
G(o, t, e), c(t, s), c(s, n), c(n, u), c(u, S), c(n, F), c(n, f), c(f, y), c(s, C), c(s, h), c(h, r), c(s, A), c(s, k), c(k, l), i[16](t), N || (L = [
|
|
191
|
+
D(
|
|
196
192
|
u,
|
|
197
193
|
"click",
|
|
198
194
|
/*click_handler*/
|
|
199
|
-
|
|
195
|
+
i[14]
|
|
200
196
|
),
|
|
201
|
-
|
|
202
|
-
|
|
197
|
+
D(
|
|
198
|
+
f,
|
|
203
199
|
"click",
|
|
204
200
|
/*click_handler_1*/
|
|
205
|
-
|
|
201
|
+
i[15]
|
|
206
202
|
)
|
|
207
203
|
], N = !0);
|
|
208
204
|
},
|
|
209
|
-
p(
|
|
205
|
+
p(o, [e]) {
|
|
210
206
|
e & /*$_*/
|
|
211
207
|
2048 && _ !== (_ = /*$_*/
|
|
212
|
-
|
|
208
|
+
o[11]("categories") + "") && M(S, _), e & /*activeTab*/
|
|
213
209
|
1024 && w !== (w = "HeaderButton " + /*activeTab*/
|
|
214
|
-
(
|
|
215
|
-
2048 &&
|
|
216
|
-
|
|
210
|
+
(o[10] === "categories" ? "Active" : "")) && g(u, "class", w), e & /*$_*/
|
|
211
|
+
2048 && v !== (v = /*$_*/
|
|
212
|
+
o[11]("providers") + "") && M(y, v), e & /*activeTab*/
|
|
217
213
|
1024 && m !== (m = "HeaderButton " + /*activeTab*/
|
|
218
|
-
(
|
|
219
|
-
1 &&
|
|
220
|
-
|
|
214
|
+
(o[10] === "providers" ? "Active" : "")) && g(f, "class", m), e & /*endpointcategories*/
|
|
215
|
+
1 && a(
|
|
216
|
+
r,
|
|
221
217
|
"endpoint",
|
|
222
218
|
/*endpointcategories*/
|
|
223
|
-
|
|
219
|
+
o[0]
|
|
224
220
|
), e & /*datasourcecategories*/
|
|
225
|
-
2 &&
|
|
226
|
-
|
|
221
|
+
2 && a(
|
|
222
|
+
r,
|
|
227
223
|
"datasource",
|
|
228
224
|
/*datasourcecategories*/
|
|
229
|
-
|
|
225
|
+
o[1]
|
|
230
226
|
), e & /*activecategory*/
|
|
231
|
-
4 &&
|
|
232
|
-
|
|
227
|
+
4 && a(
|
|
228
|
+
r,
|
|
233
229
|
"activecategory",
|
|
234
230
|
/*activecategory*/
|
|
235
|
-
|
|
231
|
+
o[2]
|
|
236
232
|
), e & /*excludedflags*/
|
|
237
|
-
32 &&
|
|
238
|
-
|
|
233
|
+
32 && a(
|
|
234
|
+
r,
|
|
239
235
|
"excludedflags",
|
|
240
236
|
/*excludedflags*/
|
|
241
|
-
|
|
237
|
+
o[5]
|
|
242
238
|
), e & /*lang*/
|
|
243
|
-
64 &&
|
|
244
|
-
|
|
239
|
+
64 && a(
|
|
240
|
+
r,
|
|
245
241
|
"lang",
|
|
246
242
|
/*lang*/
|
|
247
|
-
|
|
243
|
+
o[6]
|
|
248
244
|
), e & /*clientstyling*/
|
|
249
|
-
128 &&
|
|
250
|
-
|
|
245
|
+
128 && a(
|
|
246
|
+
r,
|
|
251
247
|
"clientstyling",
|
|
252
248
|
/*clientstyling*/
|
|
253
|
-
|
|
249
|
+
o[7]
|
|
254
250
|
), e & /*clientstylingurl*/
|
|
255
|
-
256 &&
|
|
256
|
-
|
|
251
|
+
256 && a(
|
|
252
|
+
r,
|
|
257
253
|
"clientstylingurl",
|
|
258
254
|
/*clientstylingurl*/
|
|
259
|
-
|
|
255
|
+
o[8]
|
|
260
256
|
), e & /*activeTab*/
|
|
261
|
-
1024 && E !== (E =
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
) + " svelte-144c47t") && d(h, "class", E), e & /*endpointproviders*/
|
|
265
|
-
8 && r(
|
|
257
|
+
1024 && E !== (E = /*activeTab*/
|
|
258
|
+
o[10] === "providers" ? "NotVisible" : "") && g(h, "class", E), e & /*endpointproviders*/
|
|
259
|
+
8 && a(
|
|
266
260
|
l,
|
|
267
261
|
"endpoint",
|
|
268
262
|
/*endpointproviders*/
|
|
269
|
-
|
|
263
|
+
o[3]
|
|
270
264
|
), e & /*datasourceproviders*/
|
|
271
|
-
16 &&
|
|
265
|
+
16 && a(
|
|
272
266
|
l,
|
|
273
267
|
"datasource",
|
|
274
268
|
/*datasourceproviders*/
|
|
275
|
-
|
|
269
|
+
o[4]
|
|
276
270
|
), e & /*lang*/
|
|
277
|
-
64 &&
|
|
271
|
+
64 && a(
|
|
278
272
|
l,
|
|
279
273
|
"lang",
|
|
280
274
|
/*lang*/
|
|
281
|
-
|
|
275
|
+
o[6]
|
|
282
276
|
), e & /*clientstyling*/
|
|
283
|
-
128 &&
|
|
277
|
+
128 && a(
|
|
284
278
|
l,
|
|
285
279
|
"clientstyling",
|
|
286
280
|
/*clientstyling*/
|
|
287
|
-
|
|
281
|
+
o[7]
|
|
288
282
|
), e & /*clientstylingurl*/
|
|
289
|
-
256 &&
|
|
283
|
+
256 && a(
|
|
290
284
|
l,
|
|
291
285
|
"clientstylingurl",
|
|
292
286
|
/*clientstylingurl*/
|
|
293
|
-
|
|
287
|
+
o[8]
|
|
294
288
|
), e & /*activeTab*/
|
|
295
|
-
1024 && H !== (H =
|
|
296
|
-
|
|
297
|
-
a[10] === "categories" ? "NotVisible" : ""
|
|
298
|
-
) + " svelte-144c47t") && d(k, "class", H);
|
|
289
|
+
1024 && H !== (H = /*activeTab*/
|
|
290
|
+
o[10] === "categories" ? "NotVisible" : "") && g(k, "class", H);
|
|
299
291
|
},
|
|
300
|
-
i:
|
|
301
|
-
o:
|
|
302
|
-
d(
|
|
303
|
-
|
|
292
|
+
i: j,
|
|
293
|
+
o: j,
|
|
294
|
+
d(o) {
|
|
295
|
+
o && J(t), i[16](null), N = !1, Q(L);
|
|
304
296
|
}
|
|
305
297
|
};
|
|
306
298
|
}
|
|
307
|
-
function
|
|
299
|
+
function te(i, t, s) {
|
|
308
300
|
let n;
|
|
309
|
-
|
|
310
|
-
let { endpointcategories: u = "" } = t, { datasourcecategories: _ = "" } = t, { activecategory: S = "" } = t, { endpointproviders: w = "" } = t, { datasourceproviders: F = "" } = t, { excludedflags:
|
|
301
|
+
W(i, Y, (e) => s(11, n = e));
|
|
302
|
+
let { endpointcategories: u = "" } = t, { datasourcecategories: _ = "" } = t, { activecategory: S = "" } = t, { endpointproviders: w = "" } = t, { datasourceproviders: F = "" } = t, { excludedflags: f = "" } = t, { lang: v = "en" } = t, { clientstyling: y = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: C = "" } = t, h = "categories", r;
|
|
311
303
|
const E = () => {
|
|
312
304
|
fetch(C).then((p) => p.json()).then((p) => {
|
|
313
305
|
Object.keys(p).forEach((T) => {
|
|
314
|
-
|
|
306
|
+
O(T, p[T]);
|
|
315
307
|
});
|
|
316
308
|
}).catch((p) => {
|
|
317
309
|
console.log(p);
|
|
318
310
|
});
|
|
319
311
|
};
|
|
320
|
-
Object.keys(
|
|
321
|
-
|
|
312
|
+
Object.keys(V).forEach((e) => {
|
|
313
|
+
O(e, V[e]);
|
|
322
314
|
});
|
|
323
315
|
const A = (e) => {
|
|
324
|
-
h !== e &&
|
|
316
|
+
h !== e && s(10, h = e);
|
|
325
317
|
}, k = () => {
|
|
326
|
-
|
|
318
|
+
Z(v);
|
|
327
319
|
}, l = () => {
|
|
328
320
|
let e = document.createElement("style");
|
|
329
|
-
e.innerHTML = y,
|
|
321
|
+
e.innerHTML = y, r.appendChild(e);
|
|
330
322
|
}, H = () => {
|
|
331
323
|
let e = new URL(m), p = document.createElement("style");
|
|
332
324
|
fetch(e.href).then((T) => T.text()).then((T) => {
|
|
333
325
|
p.innerHTML = T, setTimeout(
|
|
334
326
|
() => {
|
|
335
|
-
|
|
327
|
+
r.appendChild(p);
|
|
336
328
|
},
|
|
337
329
|
1
|
|
338
330
|
), setTimeout(
|
|
@@ -342,47 +334,47 @@ function se(s, t, i) {
|
|
|
342
334
|
);
|
|
343
335
|
});
|
|
344
336
|
}, N = () => A("categories"), L = () => A("providers");
|
|
345
|
-
function
|
|
346
|
-
|
|
347
|
-
|
|
337
|
+
function o(e) {
|
|
338
|
+
X[e ? "unshift" : "push"](() => {
|
|
339
|
+
r = e, s(9, r);
|
|
348
340
|
});
|
|
349
341
|
}
|
|
350
|
-
return
|
|
351
|
-
"endpointcategories" in e &&
|
|
352
|
-
},
|
|
353
|
-
|
|
354
|
-
8192 && C && E(),
|
|
355
|
-
64 &&
|
|
356
|
-
640 && y &&
|
|
357
|
-
768 && m &&
|
|
342
|
+
return i.$$set = (e) => {
|
|
343
|
+
"endpointcategories" in e && s(0, u = e.endpointcategories), "datasourcecategories" in e && s(1, _ = e.datasourcecategories), "activecategory" in e && s(2, S = e.activecategory), "endpointproviders" in e && s(3, w = e.endpointproviders), "datasourceproviders" in e && s(4, F = e.datasourceproviders), "excludedflags" in e && s(5, f = e.excludedflags), "lang" in e && s(6, v = e.lang), "clientstyling" in e && s(7, y = e.clientstyling), "clientstylingurl" in e && s(8, m = e.clientstylingurl), "translationurl" in e && s(13, C = e.translationurl);
|
|
344
|
+
}, i.$$.update = () => {
|
|
345
|
+
i.$$.dirty & /*translationurl*/
|
|
346
|
+
8192 && C && E(), i.$$.dirty & /*lang*/
|
|
347
|
+
64 && v && k(), i.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
348
|
+
640 && y && r && l(), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
349
|
+
768 && m && r && H();
|
|
358
350
|
}, [
|
|
359
351
|
u,
|
|
360
352
|
_,
|
|
361
353
|
S,
|
|
362
354
|
w,
|
|
363
355
|
F,
|
|
364
|
-
v,
|
|
365
356
|
f,
|
|
357
|
+
v,
|
|
366
358
|
y,
|
|
367
359
|
m,
|
|
368
|
-
|
|
360
|
+
r,
|
|
369
361
|
h,
|
|
370
362
|
n,
|
|
371
363
|
A,
|
|
372
364
|
C,
|
|
373
365
|
N,
|
|
374
366
|
L,
|
|
375
|
-
|
|
367
|
+
o
|
|
376
368
|
];
|
|
377
369
|
}
|
|
378
|
-
class ie extends
|
|
370
|
+
class ie extends K {
|
|
379
371
|
constructor(t) {
|
|
380
|
-
super(),
|
|
372
|
+
super(), R(
|
|
381
373
|
this,
|
|
382
374
|
t,
|
|
383
|
-
se,
|
|
384
375
|
te,
|
|
385
|
-
|
|
376
|
+
ee,
|
|
377
|
+
q,
|
|
386
378
|
{
|
|
387
379
|
endpointcategories: 0,
|
|
388
380
|
datasourcecategories: 1,
|
|
@@ -395,71 +387,71 @@ class ie extends R {
|
|
|
395
387
|
clientstylingurl: 8,
|
|
396
388
|
translationurl: 13
|
|
397
389
|
},
|
|
398
|
-
|
|
390
|
+
$
|
|
399
391
|
);
|
|
400
392
|
}
|
|
401
393
|
get endpointcategories() {
|
|
402
394
|
return this.$$.ctx[0];
|
|
403
395
|
}
|
|
404
396
|
set endpointcategories(t) {
|
|
405
|
-
this.$$set({ endpointcategories: t }),
|
|
397
|
+
this.$$set({ endpointcategories: t }), d();
|
|
406
398
|
}
|
|
407
399
|
get datasourcecategories() {
|
|
408
400
|
return this.$$.ctx[1];
|
|
409
401
|
}
|
|
410
402
|
set datasourcecategories(t) {
|
|
411
|
-
this.$$set({ datasourcecategories: t }),
|
|
403
|
+
this.$$set({ datasourcecategories: t }), d();
|
|
412
404
|
}
|
|
413
405
|
get activecategory() {
|
|
414
406
|
return this.$$.ctx[2];
|
|
415
407
|
}
|
|
416
408
|
set activecategory(t) {
|
|
417
|
-
this.$$set({ activecategory: t }),
|
|
409
|
+
this.$$set({ activecategory: t }), d();
|
|
418
410
|
}
|
|
419
411
|
get endpointproviders() {
|
|
420
412
|
return this.$$.ctx[3];
|
|
421
413
|
}
|
|
422
414
|
set endpointproviders(t) {
|
|
423
|
-
this.$$set({ endpointproviders: t }),
|
|
415
|
+
this.$$set({ endpointproviders: t }), d();
|
|
424
416
|
}
|
|
425
417
|
get datasourceproviders() {
|
|
426
418
|
return this.$$.ctx[4];
|
|
427
419
|
}
|
|
428
420
|
set datasourceproviders(t) {
|
|
429
|
-
this.$$set({ datasourceproviders: t }),
|
|
421
|
+
this.$$set({ datasourceproviders: t }), d();
|
|
430
422
|
}
|
|
431
423
|
get excludedflags() {
|
|
432
424
|
return this.$$.ctx[5];
|
|
433
425
|
}
|
|
434
426
|
set excludedflags(t) {
|
|
435
|
-
this.$$set({ excludedflags: t }),
|
|
427
|
+
this.$$set({ excludedflags: t }), d();
|
|
436
428
|
}
|
|
437
429
|
get lang() {
|
|
438
430
|
return this.$$.ctx[6];
|
|
439
431
|
}
|
|
440
432
|
set lang(t) {
|
|
441
|
-
this.$$set({ lang: t }),
|
|
433
|
+
this.$$set({ lang: t }), d();
|
|
442
434
|
}
|
|
443
435
|
get clientstyling() {
|
|
444
436
|
return this.$$.ctx[7];
|
|
445
437
|
}
|
|
446
438
|
set clientstyling(t) {
|
|
447
|
-
this.$$set({ clientstyling: t }),
|
|
439
|
+
this.$$set({ clientstyling: t }), d();
|
|
448
440
|
}
|
|
449
441
|
get clientstylingurl() {
|
|
450
442
|
return this.$$.ctx[8];
|
|
451
443
|
}
|
|
452
444
|
set clientstylingurl(t) {
|
|
453
|
-
this.$$set({ clientstylingurl: t }),
|
|
445
|
+
this.$$set({ clientstylingurl: t }), d();
|
|
454
446
|
}
|
|
455
447
|
get translationurl() {
|
|
456
448
|
return this.$$.ctx[13];
|
|
457
449
|
}
|
|
458
450
|
set translationurl(t) {
|
|
459
|
-
this.$$set({ translationurl: t }),
|
|
451
|
+
this.$$set({ translationurl: t }), d();
|
|
460
452
|
}
|
|
461
453
|
}
|
|
462
|
-
|
|
454
|
+
U(ie, { endpointcategories: {}, datasourcecategories: {}, activecategory: {}, endpointproviders: {}, datasourceproviders: {}, excludedflags: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
463
455
|
export {
|
|
464
456
|
ie as default
|
|
465
457
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCategories-C9eScDYm.cjs");function H(i,s){e.addMessages(i,s)}function N(i){e.$locale.set(i)}const P={en:{categories:"Categories",providers:"Suppliers"},"zh-hk":{categories:"类别",providers:"供应商"},de:{categories:"Kategorien",providers:"Anbieter"},it:{categories:"Categories",providers:"Suppliers"},fr:{categories:"Catégories",providers:"Fournisseurs"},es:{categories:"Categorias",providers:"Proveedores"},tr:{categories:"Kategoriler",providers:"Tedarikçiler"},ru:{categories:"Categories",providers:"Suppliers"},ro:{categories:"Categorii",providers:"Furnizori"},hr:{categories:"Kategorije",providers:"Provideri"},hu:{categories:"Categories",providers:"Suppliers"},pl:{categories:"Categories",providers:"Suppliers"},pt:{categories:"Categories",providers:"Suppliers"},sl:{categories:"Categories",providers:"Suppliers"},sr:{categories:"Categories",providers:"Suppliers"},"pt-br":{categories:"Categorias",providers:"Provedores"},"es-mx":{categories:"Categorias",providers:"Proveedores"}};if(typeof window!="undefined"){let i=function(s){return function(...r){try{return s.apply(this,r)}catch(o){if(o instanceof DOMException&&o.message.includes("has already been used with this registry")||o.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw o}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoCategories-C9eScDYm.cjs")).then(s=>s.CasinoCategories_ce).then(({default:s})=>{!customElements.get("casino-categories")&&customElements.define("casino-categories",s.element)})}if(typeof window!="undefined"){let i=function(s){return function(...r){try{return s.apply(this,r)}catch(o){if(o instanceof DOMException&&o.message.includes("has already been used with this registry")||o.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw o}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoProviders-BPgFlt-S.cjs")).then(({default:s})=>{!customElements.get("casino-providers")&&customElements.define("casino-providers",s.element)})}function L(i){e.append_styles(i,"svelte-vvvaab","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.NotVisible{display:none}.CasinoCategoriesProviders{background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A))}.Header{display:flex;max-width:100%;min-width:320px;margin-bottom:14px;font-size:18px;background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A))}.HeaderButton{flex:1 2 0;min-height:48px;margin:0;border:none;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));box-shadow:1px 2px 2px rgba(var(--emfe-w-color-gray-150, #828282), 0.1)}.HeaderButton.Active{box-shadow:none;border-bottom:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}")}function M(i){let s,r,o,c,p=i[11]("categories")+"",y,v,E,d,u=i[11]("providers")+"",_,g,h,m,a,C,w,b,l,S,A,T;return{c(){s=e.element("div"),r=e.element("div"),o=e.element("div"),c=e.element("button"),y=e.text(p),E=e.space(),d=e.element("button"),_=e.text(u),h=e.space(),m=e.element("div"),a=e.element("casino-categories"),w=e.space(),b=e.element("div"),l=e.element("casino-providers"),e.attr(c,"class",v="HeaderButton "+(i[10]==="categories"?"Active":"")),e.attr(d,"class",g="HeaderButton "+(i[10]==="providers"?"Active":"")),e.attr(o,"class","Header"),e.set_custom_element_data(a,"endpoint",i[0]),e.set_custom_element_data(a,"datasource",i[1]),e.set_custom_element_data(a,"activecategory",i[2]),e.set_custom_element_data(a,"excludedflags",i[5]),e.set_custom_element_data(a,"lang",i[6]),e.set_custom_element_data(a,"clientstyling",i[7]),e.set_custom_element_data(a,"clientstylingurl",i[8]),e.attr(m,"class",C=i[10]==="providers"?"NotVisible":""),e.set_custom_element_data(l,"endpoint",i[3]),e.set_custom_element_data(l,"datasource",i[4]),e.set_custom_element_data(l,"lang",i[6]),e.set_custom_element_data(l,"clientstyling",i[7]),e.set_custom_element_data(l,"clientstylingurl",i[8]),e.attr(b,"class",S=i[10]==="categories"?"NotVisible":""),e.attr(r,"class","CasinoCategoriesProviders")},m(n,t){e.insert(n,s,t),e.append(s,r),e.append(r,o),e.append(o,c),e.append(c,y),e.append(o,E),e.append(o,d),e.append(d,_),e.append(r,h),e.append(r,m),e.append(m,a),e.append(r,w),e.append(r,b),e.append(b,l),i[16](s),A||(T=[e.listen(c,"click",i[14]),e.listen(d,"click",i[15])],A=!0)},p(n,[t]){t&2048&&p!==(p=n[11]("categories")+"")&&e.set_data(y,p),t&1024&&v!==(v="HeaderButton "+(n[10]==="categories"?"Active":""))&&e.attr(c,"class",v),t&2048&&u!==(u=n[11]("providers")+"")&&e.set_data(_,u),t&1024&&g!==(g="HeaderButton "+(n[10]==="providers"?"Active":""))&&e.attr(d,"class",g),t&1&&e.set_custom_element_data(a,"endpoint",n[0]),t&2&&e.set_custom_element_data(a,"datasource",n[1]),t&4&&e.set_custom_element_data(a,"activecategory",n[2]),t&32&&e.set_custom_element_data(a,"excludedflags",n[5]),t&64&&e.set_custom_element_data(a,"lang",n[6]),t&128&&e.set_custom_element_data(a,"clientstyling",n[7]),t&256&&e.set_custom_element_data(a,"clientstylingurl",n[8]),t&1024&&C!==(C=n[10]==="providers"?"NotVisible":"")&&e.attr(m,"class",C),t&8&&e.set_custom_element_data(l,"endpoint",n[3]),t&16&&e.set_custom_element_data(l,"datasource",n[4]),t&64&&e.set_custom_element_data(l,"lang",n[6]),t&128&&e.set_custom_element_data(l,"clientstyling",n[7]),t&256&&e.set_custom_element_data(l,"clientstylingurl",n[8]),t&1024&&S!==(S=n[10]==="categories"?"NotVisible":"")&&e.attr(b,"class",S)},i:e.noop,o:e.noop,d(n){n&&e.detach(s),i[16](null),A=!1,e.run_all(T)}}}function B(i,s,r){let o;e.component_subscribe(i,e.$format,t=>r(11,o=t));let{endpointcategories:c=""}=s,{datasourcecategories:p=""}=s,{activecategory:y=""}=s,{endpointproviders:v=""}=s,{datasourceproviders:E=""}=s,{excludedflags:d=""}=s,{lang:u="en"}=s,{clientstyling:_=""}=s,{clientstylingurl:g=""}=s,{translationurl:h=""}=s,m="categories",a;const C=()=>{fetch(h).then(f=>f.json()).then(f=>{Object.keys(f).forEach(k=>{H(k,f[k])})}).catch(f=>{console.log(f)})};Object.keys(P).forEach(t=>{H(t,P[t])});const w=t=>{m!==t&&r(10,m=t)},b=()=>{N(u)},l=()=>{let t=document.createElement("style");t.innerHTML=_,a.appendChild(t)},S=()=>{let t=new URL(g),f=document.createElement("style");fetch(t.href).then(k=>k.text()).then(k=>{f.innerHTML=k,setTimeout(()=>{a.appendChild(f)},1),setTimeout(()=>{},500)})},A=()=>w("categories"),T=()=>w("providers");function n(t){e.binding_callbacks[t?"unshift":"push"](()=>{a=t,r(9,a)})}return i.$$set=t=>{"endpointcategories"in t&&r(0,c=t.endpointcategories),"datasourcecategories"in t&&r(1,p=t.datasourcecategories),"activecategory"in t&&r(2,y=t.activecategory),"endpointproviders"in t&&r(3,v=t.endpointproviders),"datasourceproviders"in t&&r(4,E=t.datasourceproviders),"excludedflags"in t&&r(5,d=t.excludedflags),"lang"in t&&r(6,u=t.lang),"clientstyling"in t&&r(7,_=t.clientstyling),"clientstylingurl"in t&&r(8,g=t.clientstylingurl),"translationurl"in t&&r(13,h=t.translationurl)},i.$$.update=()=>{i.$$.dirty&8192&&h&&C(),i.$$.dirty&64&&u&&b(),i.$$.dirty&640&&_&&a&&l(),i.$$.dirty&768&&g&&a&&S()},[c,p,y,v,E,d,u,_,g,a,m,o,w,h,A,T,n]}class F extends e.SvelteComponent{constructor(s){super(),e.init(this,s,B,M,e.safe_not_equal,{endpointcategories:0,datasourcecategories:1,activecategory:2,endpointproviders:3,datasourceproviders:4,excludedflags:5,lang:6,clientstyling:7,clientstylingurl:8,translationurl:13},L)}get endpointcategories(){return this.$$.ctx[0]}set endpointcategories(s){this.$$set({endpointcategories:s}),e.flush()}get datasourcecategories(){return this.$$.ctx[1]}set datasourcecategories(s){this.$$set({datasourcecategories:s}),e.flush()}get activecategory(){return this.$$.ctx[2]}set activecategory(s){this.$$set({activecategory:s}),e.flush()}get endpointproviders(){return this.$$.ctx[3]}set endpointproviders(s){this.$$set({endpointproviders:s}),e.flush()}get datasourceproviders(){return this.$$.ctx[4]}set datasourceproviders(s){this.$$set({datasourceproviders:s}),e.flush()}get excludedflags(){return this.$$.ctx[5]}set excludedflags(s){this.$$set({excludedflags:s}),e.flush()}get lang(){return this.$$.ctx[6]}set lang(s){this.$$set({lang:s}),e.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(s){this.$$set({clientstyling:s}),e.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(s){this.$$set({clientstylingurl:s}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(s){this.$$set({translationurl:s}),e.flush()}}e.create_custom_element(F,{endpointcategories:{},datasourcecategories:{},activecategory:{},endpointproviders:{},datasourceproviders:{},excludedflags:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=F;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCategories-C9eScDYm.cjs"),T={en:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait...",games:"games"},"zh-hk":{popularProviders:"热门供应商",otherProviders:"其他供应商",loading:"加载请稍候...",games:"游戏"},de:{popularProviders:"Beliebte Anbieter",otherProviders:"Andere Anbieter",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},fr:{popularProviders:"Fournisseurs populaires",otherProviders:"Autres fournisseurs",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{popularProviders:"Proveedores Populares",otherProviders:"Otros Proveedores",loading:"Cargando",games:"juegos"},tr:{popularProviders:"Şimdi Oyna",otherProviders:"Rastgele oynanacak oyun yok",loading:"Son arama",games:"Oyunları Ara"},ru:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},ro:{popularProviders:"Furnizori de top",otherProviders:"Alti furnizori",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{popularProviders:"Popularni brendovi",otherProviders:"Ostali brendovi",loading:"Učitavanje",games:"Igre"},hu:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},pl:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},pt:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},sl:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},sr:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},"pt-br":{popularProviders:"provedores populares",otherProviders:"Outros provedores",Loading:"Carregando",games:"jogos"},"es-mx":{popularProviders:"Proveedores Populares",otherProviders:"Otros proveedores",Loading:"Cargando, por favor espere...",games:"juegos"}};function F(r,t){e.addMessages(r,t)}function z(r){e.$locale.set(r)}function N(r){e.append_styles(r,"svelte-1gbl7ko","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emfe-w-color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emfe-w-color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}")}function j(r,t,a){const o=r.slice();return o[21]=t[a],o}function x(r,t,a){const o=r.slice();return o[21]=t[a],o}function V(r){let t,a=r[4]("popularProviders")+"",o,s,p,d,v=r[4]("otherProviders")+"",m,_,P,h=e.ensure_array_like(r[1]),u=[];for(let l=0;l<h.length;l+=1)u[l]=A(x(r,h,l));let f=e.ensure_array_like(r[2]),c=[];for(let l=0;l<f.length;l+=1)c[l]=M(j(r,f,l));return{c(){t=e.element("h4"),o=e.text(a),s=e.space();for(let l=0;l<u.length;l+=1)u[l].c();p=e.space(),d=e.element("h4"),m=e.text(v),_=e.space();for(let l=0;l<c.length;l+=1)c[l].c();P=e.empty(),e.attr(t,"class","ProviderTitle"),e.attr(d,"class","ProviderTitle")},m(l,g){e.insert(l,t,g),e.append(t,o),e.insert(l,s,g);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(l,g);e.insert(l,p,g),e.insert(l,d,g),e.append(d,m),e.insert(l,_,g);for(let i=0;i<c.length;i+=1)c[i]&&c[i].m(l,g);e.insert(l,P,g)},p(l,g){if(g&16&&a!==(a=l[4]("popularProviders")+"")&&e.set_data(o,a),g&50){h=e.ensure_array_like(l[1]);let i;for(i=0;i<h.length;i+=1){const w=x(l,h,i);u[i]?u[i].p(w,g):(u[i]=A(w),u[i].c(),u[i].m(p.parentNode,p))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}if(g&16&&v!==(v=l[4]("otherProviders")+"")&&e.set_data(m,v),g&52){f=e.ensure_array_like(l[2]);let i;for(i=0;i<f.length;i+=1){const w=j(l,f,i);c[i]?c[i].p(w,g):(c[i]=M(w),c[i].c(),c[i].m(P.parentNode,P))}for(;i<c.length;i+=1)c[i].d(1);c.length=f.length}},d(l){l&&(e.detach(t),e.detach(s),e.detach(p),e.detach(d),e.detach(_),e.detach(P)),e.destroy_each(u,l),e.destroy_each(c,l)}}}function I(r){let t,a=r[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(a),e.attr(t,"class","Message")},m(s,p){e.insert(s,t,p),e.append(t,o)},p(s,p){p&16&&a!==(a=s[4]("loading")+"")&&e.set_data(o,a)},d(s){s&&e.detach(t)}}}function A(r){let t,a,o,s,p,d,v,m=r[21].name+"",_,P,h,u=r[21].games.count+"",f,c,l=r[4]("games")+"",g,i,w;function O(){return r[12](r[21])}return{c(){t=e.element("div"),a=e.element("img"),p=e.space(),d=e.element("div"),v=e.element("p"),_=e.text(m),P=e.space(),h=e.element("p"),f=e.text(u),c=e.space(),g=e.text(l),e.src_url_equal(a.src,o=r[21].logo)||e.attr(a,"src",o),e.attr(a,"alt",s=r[21].name),e.attr(a,"class","ProviderImage"),e.attr(d,"class","ProviderTextContainer"),e.attr(t,"class","Provider")},m(k,y){e.insert(k,t,y),e.append(t,a),e.append(t,p),e.append(t,d),e.append(d,v),e.append(v,_),e.append(d,P),e.append(d,h),e.append(h,f),e.append(h,c),e.append(h,g),i||(w=e.listen(t,"click",O),i=!0)},p(k,y){r=k,y&2&&!e.src_url_equal(a.src,o=r[21].logo)&&e.attr(a,"src",o),y&2&&s!==(s=r[21].name)&&e.attr(a,"alt",s),y&2&&m!==(m=r[21].name+"")&&e.set_data(_,m),y&2&&u!==(u=r[21].games.count+"")&&e.set_data(f,u),y&16&&l!==(l=r[4]("games")+"")&&e.set_data(g,l)},d(k){k&&e.detach(t),i=!1,w()}}}function M(r){let t,a,o,s,p,d,v,m=r[21].name+"",_,P,h,u=r[21].games.count+"",f,c,l=r[4]("games")+"",g,i,w,O;function k(){return r[13](r[21])}return{c(){t=e.element("div"),a=e.element("img"),p=e.space(),d=e.element("div"),v=e.element("p"),_=e.text(m),P=e.space(),h=e.element("p"),f=e.text(u),c=e.space(),g=e.text(l),i=e.space(),e.src_url_equal(a.src,o=r[21].logo)||e.attr(a,"src",o),e.attr(a,"alt",s=r[21].name),e.attr(a,"class","ProviderImage"),e.attr(d,"class","ProviderTextContainer"),e.attr(t,"class","Provider")},m(y,C){e.insert(y,t,C),e.append(t,a),e.append(t,p),e.append(t,d),e.append(d,v),e.append(v,_),e.append(d,P),e.append(d,h),e.append(h,f),e.append(h,c),e.append(h,g),e.append(t,i),w||(O=e.listen(t,"click",k),w=!0)},p(y,C){r=y,C&4&&!e.src_url_equal(a.src,o=r[21].logo)&&e.attr(a,"src",o),C&4&&s!==(s=r[21].name)&&e.attr(a,"alt",s),C&4&&m!==(m=r[21].name+"")&&e.set_data(_,m),C&4&&u!==(u=r[21].games.count+"")&&e.set_data(f,u),C&16&&l!==(l=r[4]("games")+"")&&e.set_data(g,l)},d(y){y&&e.detach(t),w=!1,O()}}}function R(r){let t;function a(p,d){return p[3]===!0?I:V}let o=a(r),s=o(r);return{c(){t=e.element("div"),s.c(),e.attr(t,"class","CasinoProviders")},m(p,d){e.insert(p,t,d),s.m(t,null),r[14](t)},p(p,[d]){o===(o=a(p))&&s?s.p(p,d):(s.d(1),s=o(p),s&&(s.c(),s.m(t,null)))},i:e.noop,o:e.noop,d(p){p&&e.detach(t),s.d(),r[14](null)}}}function U(r,t,a){let o;e.component_subscribe(r,e.$format,n=>a(4,o=n));let{endpoint:s=""}=t,{datasource:p=""}=t,{lang:d="en"}=t,{clientstyling:v=""}=t,{clientstylingurl:m=""}=t,{translationurl:_=""}=t,P=[],h=[],u=[],f=!1,c;const l=()=>{fetch(_).then(b=>b.json()).then(b=>{Object.keys(b).forEach(S=>{F(S,b[S])})}).catch(b=>{console.log(b)})};Object.keys(T).forEach(n=>{F(n,T[n])});const g=()=>{a(3,f=!0);const n=new URL(`${s}/v1/casino/vendors`);n.searchParams.append("datasource",p),n.searchParams.append("language",d),n.searchParams.append("fields","id,name,displayName,subVendors,isTopVendor,logo,games"),fetch(n).then(b=>b.json()).then(b=>{a(3,f=!1),P=b.items.map(L=>L),a(1,h=P.filter(L=>L.isTopVendor===!0)),a(2,u=P.filter(L=>L.isTopVendor===!1));let S=[];S=P.flatMap(L=>L.subVendors),u.push(...S.filter(L=>L.games.count>0))})},i=(n,b,S)=>{window.postMessage({type:"OpenGameProvider",providerId:n,providerName:b,providerLogo:S},window.location.href)},w=()=>{z(d)},O=()=>{let n=document.createElement("style");n.innerHTML=v,c.appendChild(n)},k=()=>{let n=new URL(m),b=document.createElement("style");fetch(n.href).then(S=>S.text()).then(S=>{b.innerHTML=S,setTimeout(()=>{c.appendChild(b)},1)})},y=n=>i(n.id,n.name,n.logo),C=n=>i(n.id,n.name,n.logo);function q(n){e.binding_callbacks[n?"unshift":"push"](()=>{c=n,a(0,c)})}return r.$$set=n=>{"endpoint"in n&&a(6,s=n.endpoint),"datasource"in n&&a(7,p=n.datasource),"lang"in n&&a(8,d=n.lang),"clientstyling"in n&&a(9,v=n.clientstyling),"clientstylingurl"in n&&a(10,m=n.clientstylingurl),"translationurl"in n&&a(11,_=n.translationurl)},r.$$.update=()=>{r.$$.dirty&448&&s&&d&&p&&g(),r.$$.dirty&256&&d&&w(),r.$$.dirty&2048&&_&&l(),r.$$.dirty&513&&v&&c&&O(),r.$$.dirty&1025&&m&&c&&k()},[c,h,u,f,o,i,s,p,d,v,m,_,y,C,q]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,U,R,e.safe_not_equal,{endpoint:6,datasource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},N)}get endpoint(){return this.$$.ctx[6]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[7]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[11]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(E,{endpoint:{},datasource:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=E;
|