@everymatrix/casino-categories-providers 1.0.69 → 1.0.70

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.
@@ -0,0 +1,465 @@
1
+ import { a as x, $ as K, S as R, i as U, f as g, c as q, s as I, b as G, e as b, t as D, d as B, g as d, h as r, n as P, j as J, k as c, l as M, m as j, o as O, p as Q, r as W, q as X, u as Y, v as Z } from "./CasinoCategories-C0ogDjxI.js";
2
+ function V(s, t) {
3
+ x(s, t);
4
+ }
5
+ function $(s) {
6
+ K.set(s);
7
+ }
8
+ const z = {
9
+ en: {
10
+ categories: "Categories",
11
+ providers: "Suppliers"
12
+ },
13
+ "zh-hk": {
14
+ categories: "类别",
15
+ providers: "供应商"
16
+ },
17
+ de: {
18
+ categories: "Kategorien",
19
+ providers: "Anbieter"
20
+ },
21
+ it: {
22
+ categories: "Categories",
23
+ providers: "Suppliers"
24
+ },
25
+ fr: {
26
+ categories: "Catégories",
27
+ providers: "Fournisseurs"
28
+ },
29
+ es: {
30
+ categories: "Categorias",
31
+ providers: "Proveedores"
32
+ },
33
+ tr: {
34
+ categories: "Kategoriler",
35
+ providers: "Tedarikçiler"
36
+ },
37
+ ru: {
38
+ categories: "Categories",
39
+ providers: "Suppliers"
40
+ },
41
+ ro: {
42
+ categories: "Categorii",
43
+ providers: "Furnizori"
44
+ },
45
+ hr: {
46
+ categories: "Kategorije",
47
+ providers: "Provideri"
48
+ },
49
+ hu: {
50
+ categories: "Categories",
51
+ providers: "Suppliers"
52
+ },
53
+ pl: {
54
+ categories: "Categories",
55
+ providers: "Suppliers"
56
+ },
57
+ pt: {
58
+ categories: "Categories",
59
+ providers: "Suppliers"
60
+ },
61
+ sl: {
62
+ categories: "Categories",
63
+ providers: "Suppliers"
64
+ },
65
+ sr: {
66
+ categories: "Categories",
67
+ providers: "Suppliers"
68
+ },
69
+ "pt-br": {
70
+ categories: "Categorias",
71
+ providers: "Provedores"
72
+ },
73
+ "es-mx": {
74
+ categories: "Categorias",
75
+ providers: "Proveedores"
76
+ }
77
+ };
78
+ if (typeof window != "undefined") {
79
+ let s = function(t) {
80
+ return function(...i) {
81
+ try {
82
+ return t.apply(this, i);
83
+ } catch (n) {
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
+ return !1;
86
+ throw n;
87
+ }
88
+ };
89
+ };
90
+ customElements.define = s(customElements.define), import("./CasinoCategories-C0ogDjxI.js").then((t) => t.C).then(({ default: t }) => {
91
+ !customElements.get("casino-categories") && customElements.define("casino-categories", t.element);
92
+ });
93
+ }
94
+ if (typeof window != "undefined") {
95
+ let s = function(t) {
96
+ return function(...i) {
97
+ try {
98
+ return t.apply(this, i);
99
+ } catch (n) {
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
+ return !1;
102
+ throw n;
103
+ }
104
+ };
105
+ };
106
+ customElements.define = s(customElements.define), import("./CasinoProviders-8Nm8LvTT.js").then(({ default: t }) => {
107
+ !customElements.get("casino-providers") && customElements.define("casino-providers", t.element);
108
+ });
109
+ }
110
+ function ee(s) {
111
+ G(s, "svelte-144c47t", ".svelte-144c47t,.svelte-144c47t::before,.svelte-144c47t::after{margin:0;padding:0;box-sizing:border-box}.NotVisible.svelte-144c47t{display:none}.CasinoCategoriesProviders.svelte-144c47t{background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A))}.Header.svelte-144c47t{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.svelte-144c47t{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.svelte-144c47t{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
+ }
113
+ function te(s) {
114
+ let t, i, n, u, _ = (
115
+ /*$_*/
116
+ s[11]("categories") + ""
117
+ ), S, w, F, v, f = (
118
+ /*$_*/
119
+ s[11]("providers") + ""
120
+ ), y, m, C, h, o, E, A, k, l, H, N, L;
121
+ return {
122
+ c() {
123
+ t = b("div"), i = b("div"), n = b("div"), u = b("button"), S = D(_), F = B(), v = b("button"), y = D(f), C = B(), h = b("div"), o = b("casino-categories"), A = B(), k = b("div"), l = b("casino-providers"), d(u, "class", w = "HeaderButton " + /*activeTab*/
124
+ (s[10] === "categories" ? "Active" : "") + " svelte-144c47t"), d(v, "class", m = "HeaderButton " + /*activeTab*/
125
+ (s[10] === "providers" ? "Active" : "") + " svelte-144c47t"), d(n, "class", "Header svelte-144c47t"), r(
126
+ o,
127
+ "endpoint",
128
+ /*endpointcategories*/
129
+ s[0]
130
+ ), r(
131
+ o,
132
+ "datasource",
133
+ /*datasourcecategories*/
134
+ s[1]
135
+ ), r(
136
+ o,
137
+ "activecategory",
138
+ /*activecategory*/
139
+ s[2]
140
+ ), r(
141
+ o,
142
+ "excludedflags",
143
+ /*excludedflags*/
144
+ s[5]
145
+ ), r(
146
+ o,
147
+ "lang",
148
+ /*lang*/
149
+ s[6]
150
+ ), r(
151
+ o,
152
+ "clientstyling",
153
+ /*clientstyling*/
154
+ s[7]
155
+ ), r(
156
+ o,
157
+ "clientstylingurl",
158
+ /*clientstylingurl*/
159
+ s[8]
160
+ ), r(o, "class", "svelte-144c47t"), d(h, "class", E = P(
161
+ /*activeTab*/
162
+ s[10] === "providers" ? "NotVisible" : ""
163
+ ) + " svelte-144c47t"), r(
164
+ l,
165
+ "endpoint",
166
+ /*endpointproviders*/
167
+ s[3]
168
+ ), r(
169
+ l,
170
+ "datasource",
171
+ /*datasourceproviders*/
172
+ s[4]
173
+ ), r(
174
+ l,
175
+ "lang",
176
+ /*lang*/
177
+ s[6]
178
+ ), r(
179
+ l,
180
+ "clientstyling",
181
+ /*clientstyling*/
182
+ s[7]
183
+ ), r(
184
+ l,
185
+ "clientstylingurl",
186
+ /*clientstylingurl*/
187
+ s[8]
188
+ ), r(l, "class", "svelte-144c47t"), d(k, "class", H = P(
189
+ /*activeTab*/
190
+ s[10] === "categories" ? "NotVisible" : ""
191
+ ) + " svelte-144c47t"), d(i, "class", "CasinoCategoriesProviders svelte-144c47t"), d(t, "class", "svelte-144c47t");
192
+ },
193
+ m(a, e) {
194
+ J(a, t, e), c(t, i), c(i, n), c(n, u), c(u, S), c(n, F), c(n, v), c(v, y), c(i, C), c(i, h), c(h, o), c(i, A), c(i, k), c(k, l), s[16](t), N || (L = [
195
+ M(
196
+ u,
197
+ "click",
198
+ /*click_handler*/
199
+ s[14]
200
+ ),
201
+ M(
202
+ v,
203
+ "click",
204
+ /*click_handler_1*/
205
+ s[15]
206
+ )
207
+ ], N = !0);
208
+ },
209
+ p(a, [e]) {
210
+ e & /*$_*/
211
+ 2048 && _ !== (_ = /*$_*/
212
+ a[11]("categories") + "") && j(S, _), e & /*activeTab*/
213
+ 1024 && w !== (w = "HeaderButton " + /*activeTab*/
214
+ (a[10] === "categories" ? "Active" : "") + " svelte-144c47t") && d(u, "class", w), e & /*$_*/
215
+ 2048 && f !== (f = /*$_*/
216
+ a[11]("providers") + "") && j(y, f), e & /*activeTab*/
217
+ 1024 && m !== (m = "HeaderButton " + /*activeTab*/
218
+ (a[10] === "providers" ? "Active" : "") + " svelte-144c47t") && d(v, "class", m), e & /*endpointcategories*/
219
+ 1 && r(
220
+ o,
221
+ "endpoint",
222
+ /*endpointcategories*/
223
+ a[0]
224
+ ), e & /*datasourcecategories*/
225
+ 2 && r(
226
+ o,
227
+ "datasource",
228
+ /*datasourcecategories*/
229
+ a[1]
230
+ ), e & /*activecategory*/
231
+ 4 && r(
232
+ o,
233
+ "activecategory",
234
+ /*activecategory*/
235
+ a[2]
236
+ ), e & /*excludedflags*/
237
+ 32 && r(
238
+ o,
239
+ "excludedflags",
240
+ /*excludedflags*/
241
+ a[5]
242
+ ), e & /*lang*/
243
+ 64 && r(
244
+ o,
245
+ "lang",
246
+ /*lang*/
247
+ a[6]
248
+ ), e & /*clientstyling*/
249
+ 128 && r(
250
+ o,
251
+ "clientstyling",
252
+ /*clientstyling*/
253
+ a[7]
254
+ ), e & /*clientstylingurl*/
255
+ 256 && r(
256
+ o,
257
+ "clientstylingurl",
258
+ /*clientstylingurl*/
259
+ a[8]
260
+ ), e & /*activeTab*/
261
+ 1024 && E !== (E = P(
262
+ /*activeTab*/
263
+ a[10] === "providers" ? "NotVisible" : ""
264
+ ) + " svelte-144c47t") && d(h, "class", E), e & /*endpointproviders*/
265
+ 8 && r(
266
+ l,
267
+ "endpoint",
268
+ /*endpointproviders*/
269
+ a[3]
270
+ ), e & /*datasourceproviders*/
271
+ 16 && r(
272
+ l,
273
+ "datasource",
274
+ /*datasourceproviders*/
275
+ a[4]
276
+ ), e & /*lang*/
277
+ 64 && r(
278
+ l,
279
+ "lang",
280
+ /*lang*/
281
+ a[6]
282
+ ), e & /*clientstyling*/
283
+ 128 && r(
284
+ l,
285
+ "clientstyling",
286
+ /*clientstyling*/
287
+ a[7]
288
+ ), e & /*clientstylingurl*/
289
+ 256 && r(
290
+ l,
291
+ "clientstylingurl",
292
+ /*clientstylingurl*/
293
+ a[8]
294
+ ), e & /*activeTab*/
295
+ 1024 && H !== (H = P(
296
+ /*activeTab*/
297
+ a[10] === "categories" ? "NotVisible" : ""
298
+ ) + " svelte-144c47t") && d(k, "class", H);
299
+ },
300
+ i: O,
301
+ o: O,
302
+ d(a) {
303
+ a && Q(t), s[16](null), N = !1, W(L);
304
+ }
305
+ };
306
+ }
307
+ function se(s, t, i) {
308
+ let n;
309
+ X(s, Z, (e) => i(11, n = e));
310
+ let { endpointcategories: u = "" } = t, { datasourcecategories: _ = "" } = t, { activecategory: S = "" } = t, { endpointproviders: w = "" } = t, { datasourceproviders: F = "" } = t, { excludedflags: v = "" } = t, { lang: f = "en" } = t, { clientstyling: y = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: C = "" } = t, h = "categories", o;
311
+ const E = () => {
312
+ fetch(C).then((p) => p.json()).then((p) => {
313
+ Object.keys(p).forEach((T) => {
314
+ V(T, p[T]);
315
+ });
316
+ }).catch((p) => {
317
+ console.log(p);
318
+ });
319
+ };
320
+ Object.keys(z).forEach((e) => {
321
+ V(e, z[e]);
322
+ });
323
+ const A = (e) => {
324
+ h !== e && i(10, h = e);
325
+ }, k = () => {
326
+ $(f);
327
+ }, l = () => {
328
+ let e = document.createElement("style");
329
+ e.innerHTML = y, o.appendChild(e);
330
+ }, H = () => {
331
+ let e = new URL(m), p = document.createElement("style");
332
+ fetch(e.href).then((T) => T.text()).then((T) => {
333
+ p.innerHTML = T, setTimeout(
334
+ () => {
335
+ o.appendChild(p);
336
+ },
337
+ 1
338
+ ), setTimeout(
339
+ () => {
340
+ },
341
+ 500
342
+ );
343
+ });
344
+ }, N = () => A("categories"), L = () => A("providers");
345
+ function a(e) {
346
+ Y[e ? "unshift" : "push"](() => {
347
+ o = e, i(9, o);
348
+ });
349
+ }
350
+ return s.$$set = (e) => {
351
+ "endpointcategories" in e && i(0, u = e.endpointcategories), "datasourcecategories" in e && i(1, _ = e.datasourcecategories), "activecategory" in e && i(2, S = e.activecategory), "endpointproviders" in e && i(3, w = e.endpointproviders), "datasourceproviders" in e && i(4, F = e.datasourceproviders), "excludedflags" in e && i(5, v = e.excludedflags), "lang" in e && i(6, f = e.lang), "clientstyling" in e && i(7, y = e.clientstyling), "clientstylingurl" in e && i(8, m = e.clientstylingurl), "translationurl" in e && i(13, C = e.translationurl);
352
+ }, s.$$.update = () => {
353
+ s.$$.dirty & /*translationurl*/
354
+ 8192 && C && E(), s.$$.dirty & /*lang*/
355
+ 64 && f && k(), s.$$.dirty & /*clientstyling, customStylingContainer*/
356
+ 640 && y && o && l(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
357
+ 768 && m && o && H();
358
+ }, [
359
+ u,
360
+ _,
361
+ S,
362
+ w,
363
+ F,
364
+ v,
365
+ f,
366
+ y,
367
+ m,
368
+ o,
369
+ h,
370
+ n,
371
+ A,
372
+ C,
373
+ N,
374
+ L,
375
+ a
376
+ ];
377
+ }
378
+ class ie extends R {
379
+ constructor(t) {
380
+ super(), U(
381
+ this,
382
+ t,
383
+ se,
384
+ te,
385
+ I,
386
+ {
387
+ endpointcategories: 0,
388
+ datasourcecategories: 1,
389
+ activecategory: 2,
390
+ endpointproviders: 3,
391
+ datasourceproviders: 4,
392
+ excludedflags: 5,
393
+ lang: 6,
394
+ clientstyling: 7,
395
+ clientstylingurl: 8,
396
+ translationurl: 13
397
+ },
398
+ ee
399
+ );
400
+ }
401
+ get endpointcategories() {
402
+ return this.$$.ctx[0];
403
+ }
404
+ set endpointcategories(t) {
405
+ this.$$set({ endpointcategories: t }), g();
406
+ }
407
+ get datasourcecategories() {
408
+ return this.$$.ctx[1];
409
+ }
410
+ set datasourcecategories(t) {
411
+ this.$$set({ datasourcecategories: t }), g();
412
+ }
413
+ get activecategory() {
414
+ return this.$$.ctx[2];
415
+ }
416
+ set activecategory(t) {
417
+ this.$$set({ activecategory: t }), g();
418
+ }
419
+ get endpointproviders() {
420
+ return this.$$.ctx[3];
421
+ }
422
+ set endpointproviders(t) {
423
+ this.$$set({ endpointproviders: t }), g();
424
+ }
425
+ get datasourceproviders() {
426
+ return this.$$.ctx[4];
427
+ }
428
+ set datasourceproviders(t) {
429
+ this.$$set({ datasourceproviders: t }), g();
430
+ }
431
+ get excludedflags() {
432
+ return this.$$.ctx[5];
433
+ }
434
+ set excludedflags(t) {
435
+ this.$$set({ excludedflags: t }), g();
436
+ }
437
+ get lang() {
438
+ return this.$$.ctx[6];
439
+ }
440
+ set lang(t) {
441
+ this.$$set({ lang: t }), g();
442
+ }
443
+ get clientstyling() {
444
+ return this.$$.ctx[7];
445
+ }
446
+ set clientstyling(t) {
447
+ this.$$set({ clientstyling: t }), g();
448
+ }
449
+ get clientstylingurl() {
450
+ return this.$$.ctx[8];
451
+ }
452
+ set clientstylingurl(t) {
453
+ this.$$set({ clientstylingurl: t }), g();
454
+ }
455
+ get translationurl() {
456
+ return this.$$.ctx[13];
457
+ }
458
+ set translationurl(t) {
459
+ this.$$set({ translationurl: t }), g();
460
+ }
461
+ }
462
+ q(ie, { endpointcategories: {}, datasourcecategories: {}, activecategory: {}, endpointproviders: {}, datasourceproviders: {}, excludedflags: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
463
+ export {
464
+ ie as default
465
+ };