@everymatrix/casino-categories-providers 1.87.26 → 1.87.27

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.
@@ -1,478 +0,0 @@
1
- import { a as z, $ as L, S as K, i as q, f as u, s as R, c as U, b as I, n as T, d as x, r as G, e as j, g as f, h as r, j as J, k as g, l as D, m as y, t as M, o as N, p as Q, q as W, u as X, v as Y, w as Z, x as $, y as ee } from "./CasinoCategories-DhMD53wI.js";
2
- function O(s, t) {
3
- z(s, t);
4
- }
5
- function te(s) {
6
- L.set(s);
7
- }
8
- const V = {
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
- "en-us": {
78
- categories: "Categories",
79
- providers: "Suppliers"
80
- }
81
- };
82
- if (typeof window != "undefined") {
83
- let s = function(t) {
84
- return function(...o) {
85
- try {
86
- return t.apply(this, o);
87
- } catch (n) {
88
- 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"))
89
- return !1;
90
- throw n;
91
- }
92
- };
93
- };
94
- customElements.define = s(customElements.define), import("./CasinoCategories-DhMD53wI.js").then((t) => t.D).then(({ default: t }) => {
95
- !customElements.get("casino-categories") && customElements.define("casino-categories", t.element);
96
- });
97
- }
98
- if (typeof window != "undefined") {
99
- let s = function(t) {
100
- return function(...o) {
101
- try {
102
- return t.apply(this, o);
103
- } catch (n) {
104
- 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"))
105
- return !1;
106
- throw n;
107
- }
108
- };
109
- };
110
- customElements.define = s(customElements.define), import("./CasinoProviders-BTGbC_k5.js").then(({ default: t }) => {
111
- !customElements.get("casino-providers") && customElements.define("casino-providers", t.element);
112
- });
113
- }
114
- function se(s) {
115
- I(s, "svelte-10w1o04", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.NotVisible{display:none}.CasinoCategoriesProviders{background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A))}.Header{display:flex;max-width:100%;min-width:320px;margin-bottom:14px;font-size:18px;background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A))}.HeaderButton{flex:1 2 0;min-height:48px;margin:0;border:none;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));box-shadow:1px 2px 2px rgba(var(--emw--color-gray-150, #828282), 0.1)}.HeaderButton.Active{box-shadow:none;border-bottom:2px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}");
116
- }
117
- function ie(s) {
118
- let t, o, n, v, w = (
119
- /*$_*/
120
- s[12]("categories") + ""
121
- ), k, C, A, m, h = (
122
- /*$_*/
123
- s[12]("providers") + ""
124
- ), _, p, S, d, a, c, F, b, l, E, B, H;
125
- return {
126
- c() {
127
- t = y("div"), o = y("div"), n = y("div"), v = y("button"), k = M(w), A = N(), m = y("button"), _ = M(h), S = N(), d = y("div"), a = y("casino-categories"), F = N(), b = y("div"), l = y("casino-providers"), f(v, "class", C = "HeaderButton " + /*activeTab*/
128
- (s[11] === "categories" ? "Active" : "")), f(m, "class", p = "HeaderButton " + /*activeTab*/
129
- (s[11] === "providers" ? "Active" : "")), f(n, "class", "Header"), r(
130
- a,
131
- "endpoint",
132
- /*endpointcategories*/
133
- s[0]
134
- ), r(
135
- a,
136
- "datasource",
137
- /*datasourcecategories*/
138
- s[1]
139
- ), r(
140
- a,
141
- "activecategory",
142
- /*activecategory*/
143
- s[2]
144
- ), r(
145
- a,
146
- "excludedflags",
147
- /*excludedflags*/
148
- s[5]
149
- ), r(
150
- a,
151
- "lang",
152
- /*lang*/
153
- s[6]
154
- ), r(
155
- a,
156
- "clientstyling",
157
- /*clientstyling*/
158
- s[7]
159
- ), r(
160
- a,
161
- "clientstylingurl",
162
- /*clientstylingurl*/
163
- s[8]
164
- ), r(
165
- a,
166
- "mbsource",
167
- /*mbsource*/
168
- s[9]
169
- ), f(d, "class", c = /*activeTab*/
170
- s[11] === "providers" ? "NotVisible" : ""), r(
171
- l,
172
- "endpoint",
173
- /*endpointproviders*/
174
- s[3]
175
- ), r(
176
- l,
177
- "datasource",
178
- /*datasourceproviders*/
179
- s[4]
180
- ), r(
181
- l,
182
- "lang",
183
- /*lang*/
184
- s[6]
185
- ), r(
186
- l,
187
- "clientstyling",
188
- /*clientstyling*/
189
- s[7]
190
- ), r(
191
- l,
192
- "clientstylingurl",
193
- /*clientstylingurl*/
194
- s[8]
195
- ), r(
196
- l,
197
- "mbsource",
198
- /*mbsource*/
199
- s[9]
200
- ), f(b, "class", E = /*activeTab*/
201
- s[11] === "categories" ? "NotVisible" : ""), f(o, "class", "CasinoCategoriesProviders");
202
- },
203
- m(e, i) {
204
- J(e, t, i), g(t, o), g(o, n), g(n, v), g(v, k), g(n, A), g(n, m), g(m, _), g(o, S), g(o, d), g(d, a), g(o, F), g(o, b), g(b, l), s[17](t), B || (H = [
205
- D(
206
- v,
207
- "click",
208
- /*click_handler*/
209
- s[15]
210
- ),
211
- D(
212
- m,
213
- "click",
214
- /*click_handler_1*/
215
- s[16]
216
- )
217
- ], B = !0);
218
- },
219
- p(e, [i]) {
220
- i & /*$_*/
221
- 4096 && w !== (w = /*$_*/
222
- e[12]("categories") + "") && j(k, w), i & /*activeTab*/
223
- 2048 && C !== (C = "HeaderButton " + /*activeTab*/
224
- (e[11] === "categories" ? "Active" : "")) && f(v, "class", C), i & /*$_*/
225
- 4096 && h !== (h = /*$_*/
226
- e[12]("providers") + "") && j(_, h), i & /*activeTab*/
227
- 2048 && p !== (p = "HeaderButton " + /*activeTab*/
228
- (e[11] === "providers" ? "Active" : "")) && f(m, "class", p), i & /*endpointcategories*/
229
- 1 && r(
230
- a,
231
- "endpoint",
232
- /*endpointcategories*/
233
- e[0]
234
- ), i & /*datasourcecategories*/
235
- 2 && r(
236
- a,
237
- "datasource",
238
- /*datasourcecategories*/
239
- e[1]
240
- ), i & /*activecategory*/
241
- 4 && r(
242
- a,
243
- "activecategory",
244
- /*activecategory*/
245
- e[2]
246
- ), i & /*excludedflags*/
247
- 32 && r(
248
- a,
249
- "excludedflags",
250
- /*excludedflags*/
251
- e[5]
252
- ), i & /*lang*/
253
- 64 && r(
254
- a,
255
- "lang",
256
- /*lang*/
257
- e[6]
258
- ), i & /*clientstyling*/
259
- 128 && r(
260
- a,
261
- "clientstyling",
262
- /*clientstyling*/
263
- e[7]
264
- ), i & /*clientstylingurl*/
265
- 256 && r(
266
- a,
267
- "clientstylingurl",
268
- /*clientstylingurl*/
269
- e[8]
270
- ), i & /*mbsource*/
271
- 512 && r(
272
- a,
273
- "mbsource",
274
- /*mbsource*/
275
- e[9]
276
- ), i & /*activeTab*/
277
- 2048 && c !== (c = /*activeTab*/
278
- e[11] === "providers" ? "NotVisible" : "") && f(d, "class", c), i & /*endpointproviders*/
279
- 8 && r(
280
- l,
281
- "endpoint",
282
- /*endpointproviders*/
283
- e[3]
284
- ), i & /*datasourceproviders*/
285
- 16 && r(
286
- l,
287
- "datasource",
288
- /*datasourceproviders*/
289
- e[4]
290
- ), i & /*lang*/
291
- 64 && r(
292
- l,
293
- "lang",
294
- /*lang*/
295
- e[6]
296
- ), i & /*clientstyling*/
297
- 128 && r(
298
- l,
299
- "clientstyling",
300
- /*clientstyling*/
301
- e[7]
302
- ), i & /*clientstylingurl*/
303
- 256 && r(
304
- l,
305
- "clientstylingurl",
306
- /*clientstylingurl*/
307
- e[8]
308
- ), i & /*mbsource*/
309
- 512 && r(
310
- l,
311
- "mbsource",
312
- /*mbsource*/
313
- e[9]
314
- ), i & /*activeTab*/
315
- 2048 && E !== (E = /*activeTab*/
316
- e[11] === "categories" ? "NotVisible" : "") && f(b, "class", E);
317
- },
318
- i: T,
319
- o: T,
320
- d(e) {
321
- e && x(t), s[17](null), B = !1, G(H);
322
- }
323
- };
324
- }
325
- function re(s, t, o) {
326
- let n;
327
- Q(s, Y, (e) => o(12, n = e));
328
- let { endpointcategories: v = "" } = t, { datasourcecategories: w = "" } = t, { activecategory: k = "" } = t, { endpointproviders: C = "" } = t, { datasourceproviders: A = "" } = t, { excludedflags: m = "" } = t, { lang: h = "en" } = t, { clientstyling: _ = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: S = "" } = t, { mbsource: d } = t, a = "categories", c;
329
- const F = () => {
330
- fetch(S).then((i) => i.json()).then((i) => {
331
- Object.keys(i).forEach((P) => {
332
- O(P, i[P]);
333
- });
334
- }).catch((i) => {
335
- console.log(i);
336
- });
337
- };
338
- Object.keys(V).forEach((e) => {
339
- O(e, V[e]);
340
- });
341
- const b = (e) => {
342
- a !== e && o(11, a = e);
343
- }, l = () => {
344
- te(h);
345
- };
346
- W(() => () => {
347
- });
348
- const E = () => b("categories"), B = () => b("providers");
349
- function H(e) {
350
- X[e ? "unshift" : "push"](() => {
351
- c = e, o(10, c);
352
- });
353
- }
354
- return s.$$set = (e) => {
355
- "endpointcategories" in e && o(0, v = e.endpointcategories), "datasourcecategories" in e && o(1, w = e.datasourcecategories), "activecategory" in e && o(2, k = e.activecategory), "endpointproviders" in e && o(3, C = e.endpointproviders), "datasourceproviders" in e && o(4, A = e.datasourceproviders), "excludedflags" in e && o(5, m = e.excludedflags), "lang" in e && o(6, h = e.lang), "clientstyling" in e && o(7, _ = e.clientstyling), "clientstylingurl" in e && o(8, p = e.clientstylingurl), "translationurl" in e && o(14, S = e.translationurl), "mbsource" in e && o(9, d = e.mbsource);
356
- }, s.$$.update = () => {
357
- s.$$.dirty & /*translationurl*/
358
- 16384 && S && F(), s.$$.dirty & /*lang*/
359
- 64 && h && l(), s.$$.dirty & /*clientstyling, customStylingContainer*/
360
- 1152 && _ && c && Z(c, _), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
361
- 1280 && p && c && $(c, p), s.$$.dirty & /*mbsource, customStylingContainer*/
362
- 1536 && d && c && ee(c, `${d}.Style`);
363
- }, [
364
- v,
365
- w,
366
- k,
367
- C,
368
- A,
369
- m,
370
- h,
371
- _,
372
- p,
373
- d,
374
- c,
375
- a,
376
- n,
377
- b,
378
- S,
379
- E,
380
- B,
381
- H
382
- ];
383
- }
384
- class oe extends K {
385
- constructor(t) {
386
- super(), q(
387
- this,
388
- t,
389
- re,
390
- ie,
391
- R,
392
- {
393
- endpointcategories: 0,
394
- datasourcecategories: 1,
395
- activecategory: 2,
396
- endpointproviders: 3,
397
- datasourceproviders: 4,
398
- excludedflags: 5,
399
- lang: 6,
400
- clientstyling: 7,
401
- clientstylingurl: 8,
402
- translationurl: 14,
403
- mbsource: 9
404
- },
405
- se
406
- );
407
- }
408
- get endpointcategories() {
409
- return this.$$.ctx[0];
410
- }
411
- set endpointcategories(t) {
412
- this.$$set({ endpointcategories: t }), u();
413
- }
414
- get datasourcecategories() {
415
- return this.$$.ctx[1];
416
- }
417
- set datasourcecategories(t) {
418
- this.$$set({ datasourcecategories: t }), u();
419
- }
420
- get activecategory() {
421
- return this.$$.ctx[2];
422
- }
423
- set activecategory(t) {
424
- this.$$set({ activecategory: t }), u();
425
- }
426
- get endpointproviders() {
427
- return this.$$.ctx[3];
428
- }
429
- set endpointproviders(t) {
430
- this.$$set({ endpointproviders: t }), u();
431
- }
432
- get datasourceproviders() {
433
- return this.$$.ctx[4];
434
- }
435
- set datasourceproviders(t) {
436
- this.$$set({ datasourceproviders: t }), u();
437
- }
438
- get excludedflags() {
439
- return this.$$.ctx[5];
440
- }
441
- set excludedflags(t) {
442
- this.$$set({ excludedflags: t }), u();
443
- }
444
- get lang() {
445
- return this.$$.ctx[6];
446
- }
447
- set lang(t) {
448
- this.$$set({ lang: t }), u();
449
- }
450
- get clientstyling() {
451
- return this.$$.ctx[7];
452
- }
453
- set clientstyling(t) {
454
- this.$$set({ clientstyling: t }), u();
455
- }
456
- get clientstylingurl() {
457
- return this.$$.ctx[8];
458
- }
459
- set clientstylingurl(t) {
460
- this.$$set({ clientstylingurl: t }), u();
461
- }
462
- get translationurl() {
463
- return this.$$.ctx[14];
464
- }
465
- set translationurl(t) {
466
- this.$$set({ translationurl: t }), u();
467
- }
468
- get mbsource() {
469
- return this.$$.ctx[9];
470
- }
471
- set mbsource(t) {
472
- this.$$set({ mbsource: t }), u();
473
- }
474
- }
475
- U(oe, { endpointcategories: {}, datasourcecategories: {}, activecategory: {}, endpointproviders: {}, datasourceproviders: {}, excludedflags: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
476
- export {
477
- oe as default
478
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCategories-HwnxesgF.cjs");function P(i,s){e.addMessages(i,s)}function H(i){e.$locale.set(i)}const B={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"},"en-us":{categories:"Categories",providers:"Suppliers"}};if(typeof window!="undefined"){let i=function(s){return function(...a){try{return s.apply(this,a)}catch(n){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"))return!1;throw n}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoCategories-HwnxesgF.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(...a){try{return s.apply(this,a)}catch(n){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"))return!1;throw n}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoProviders-X-basL9D.cjs")).then(({default:s})=>{!customElements.get("casino-providers")&&customElements.define("casino-providers",s.element)})}function N(i){e.append_styles(i,"svelte-10w1o04","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.NotVisible{display:none}.CasinoCategoriesProviders{background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A))}.Header{display:flex;max-width:100%;min-width:320px;margin-bottom:14px;font-size:18px;background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A))}.HeaderButton{flex:1 2 0;min-height:48px;margin:0;border:none;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));box-shadow:1px 2px 2px rgba(var(--emw--color-gray-150, #828282), 0.1)}.HeaderButton.Active{box-shadow:none;border-bottom:2px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}")}function T(i){let s,a,n,d,p=i[12]("categories")+"",y,h,C,g,m=i[12]("providers")+"",v,_,b,u,o,c,k,f,l,w,S,E;return{c(){s=e.element("div"),a=e.element("div"),n=e.element("div"),d=e.element("button"),y=e.text(p),C=e.space(),g=e.element("button"),v=e.text(m),b=e.space(),u=e.element("div"),o=e.element("casino-categories"),k=e.space(),f=e.element("div"),l=e.element("casino-providers"),e.attr(d,"class",h="HeaderButton "+(i[11]==="categories"?"Active":"")),e.attr(g,"class",_="HeaderButton "+(i[11]==="providers"?"Active":"")),e.attr(n,"class","Header"),e.set_custom_element_data(o,"endpoint",i[0]),e.set_custom_element_data(o,"datasource",i[1]),e.set_custom_element_data(o,"activecategory",i[2]),e.set_custom_element_data(o,"excludedflags",i[5]),e.set_custom_element_data(o,"lang",i[6]),e.set_custom_element_data(o,"clientstyling",i[7]),e.set_custom_element_data(o,"clientstylingurl",i[8]),e.set_custom_element_data(o,"mbsource",i[9]),e.attr(u,"class",c=i[11]==="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.set_custom_element_data(l,"mbsource",i[9]),e.attr(f,"class",w=i[11]==="categories"?"NotVisible":""),e.attr(a,"class","CasinoCategoriesProviders")},m(t,r){e.insert(t,s,r),e.append(s,a),e.append(a,n),e.append(n,d),e.append(d,y),e.append(n,C),e.append(n,g),e.append(g,v),e.append(a,b),e.append(a,u),e.append(u,o),e.append(a,k),e.append(a,f),e.append(f,l),i[17](s),S||(E=[e.listen(d,"click",i[15]),e.listen(g,"click",i[16])],S=!0)},p(t,[r]){r&4096&&p!==(p=t[12]("categories")+"")&&e.set_data(y,p),r&2048&&h!==(h="HeaderButton "+(t[11]==="categories"?"Active":""))&&e.attr(d,"class",h),r&4096&&m!==(m=t[12]("providers")+"")&&e.set_data(v,m),r&2048&&_!==(_="HeaderButton "+(t[11]==="providers"?"Active":""))&&e.attr(g,"class",_),r&1&&e.set_custom_element_data(o,"endpoint",t[0]),r&2&&e.set_custom_element_data(o,"datasource",t[1]),r&4&&e.set_custom_element_data(o,"activecategory",t[2]),r&32&&e.set_custom_element_data(o,"excludedflags",t[5]),r&64&&e.set_custom_element_data(o,"lang",t[6]),r&128&&e.set_custom_element_data(o,"clientstyling",t[7]),r&256&&e.set_custom_element_data(o,"clientstylingurl",t[8]),r&512&&e.set_custom_element_data(o,"mbsource",t[9]),r&2048&&c!==(c=t[11]==="providers"?"NotVisible":"")&&e.attr(u,"class",c),r&8&&e.set_custom_element_data(l,"endpoint",t[3]),r&16&&e.set_custom_element_data(l,"datasource",t[4]),r&64&&e.set_custom_element_data(l,"lang",t[6]),r&128&&e.set_custom_element_data(l,"clientstyling",t[7]),r&256&&e.set_custom_element_data(l,"clientstylingurl",t[8]),r&512&&e.set_custom_element_data(l,"mbsource",t[9]),r&2048&&w!==(w=t[11]==="categories"?"NotVisible":"")&&e.attr(f,"class",w)},i:e.noop,o:e.noop,d(t){t&&e.detach(s),i[17](null),S=!1,e.run_all(E)}}}function M(i,s,a){let n;e.component_subscribe(i,e.$format,t=>a(12,n=t));let{endpointcategories:d=""}=s,{datasourcecategories:p=""}=s,{activecategory:y=""}=s,{endpointproviders:h=""}=s,{datasourceproviders:C=""}=s,{excludedflags:g=""}=s,{lang:m="en"}=s,{clientstyling:v=""}=s,{clientstylingurl:_=""}=s,{translationurl:b=""}=s,{mbsource:u}=s,o="categories",c;const k=()=>{fetch(b).then(r=>r.json()).then(r=>{Object.keys(r).forEach(A=>{P(A,r[A])})}).catch(r=>{console.log(r)})};Object.keys(B).forEach(t=>{P(t,B[t])});const f=t=>{o!==t&&a(11,o=t)},l=()=>{H(m)};e.onMount(()=>()=>{});const w=()=>f("categories"),S=()=>f("providers");function E(t){e.binding_callbacks[t?"unshift":"push"](()=>{c=t,a(10,c)})}return i.$$set=t=>{"endpointcategories"in t&&a(0,d=t.endpointcategories),"datasourcecategories"in t&&a(1,p=t.datasourcecategories),"activecategory"in t&&a(2,y=t.activecategory),"endpointproviders"in t&&a(3,h=t.endpointproviders),"datasourceproviders"in t&&a(4,C=t.datasourceproviders),"excludedflags"in t&&a(5,g=t.excludedflags),"lang"in t&&a(6,m=t.lang),"clientstyling"in t&&a(7,v=t.clientstyling),"clientstylingurl"in t&&a(8,_=t.clientstylingurl),"translationurl"in t&&a(14,b=t.translationurl),"mbsource"in t&&a(9,u=t.mbsource)},i.$$.update=()=>{i.$$.dirty&16384&&b&&k(),i.$$.dirty&64&&m&&l(),i.$$.dirty&1152&&v&&c&&e.setClientStyling(c,v),i.$$.dirty&1280&&_&&c&&e.setClientStylingURL(c,_),i.$$.dirty&1536&&u&&c&&e.setStreamStyling(c,`${u}.Style`)},[d,p,y,h,C,g,m,v,_,u,c,o,n,f,b,w,S,E]}class F extends e.SvelteComponent{constructor(s){super(),e.init(this,s,M,T,e.safe_not_equal,{endpointcategories:0,datasourcecategories:1,activecategory:2,endpointproviders:3,datasourceproviders:4,excludedflags:5,lang:6,clientstyling:7,clientstylingurl:8,translationurl:14,mbsource:9},N)}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[14]}set translationurl(s){this.$$set({translationurl:s}),e.flush()}get mbsource(){return this.$$.ctx[9]}set mbsource(s){this.$$set({mbsource:s}),e.flush()}}e.create_custom_element(F,{endpointcategories:{},datasourcecategories:{},activecategory:{},endpointproviders:{},datasourceproviders:{},excludedflags:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=F;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCategories-HwnxesgF.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"},"en-us":{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait...",games:"games"}};function j(r,t){e.addMessages(r,t)}function z(r){e.$locale.set(r)}function E(r){e.append_styles(r,"svelte-1bsli1q","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}.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(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emw--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(--emw--color-gray-100, #E6E6E6);overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}")}function F(r,t,l){const o=r.slice();return o[21]=t[l],o}function x(r,t,l){const o=r.slice();return o[21]=t[l],o}function N(r){let t,l=r[4]("popularProviders")+"",o,n,p,d,v=r[4]("otherProviders")+"",m,_,P,h=e.ensure_array_like(r[1]),u=[];for(let a=0;a<h.length;a+=1)u[a]=A(x(r,h,a));let f=e.ensure_array_like(r[2]),c=[];for(let a=0;a<f.length;a+=1)c[a]=q(F(r,f,a));return{c(){t=e.element("h4"),o=e.text(l),n=e.space();for(let a=0;a<u.length;a+=1)u[a].c();p=e.space(),d=e.element("h4"),m=e.text(v),_=e.space();for(let a=0;a<c.length;a+=1)c[a].c();P=e.empty(),e.attr(t,"class","ProviderTitle"),e.attr(d,"class","ProviderTitle")},m(a,g){e.insert(a,t,g),e.append(t,o),e.insert(a,n,g);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(a,g);e.insert(a,p,g),e.insert(a,d,g),e.append(d,m),e.insert(a,_,g);for(let i=0;i<c.length;i+=1)c[i]&&c[i].m(a,g);e.insert(a,P,g)},p(a,g){if(g&16&&l!==(l=a[4]("popularProviders")+"")&&e.set_data(o,l),g&50){h=e.ensure_array_like(a[1]);let i;for(i=0;i<h.length;i+=1){const b=x(a,h,i);u[i]?u[i].p(b,g):(u[i]=A(b),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=a[4]("otherProviders")+"")&&e.set_data(m,v),g&52){f=e.ensure_array_like(a[2]);let i;for(i=0;i<f.length;i+=1){const b=F(a,f,i);c[i]?c[i].p(b,g):(c[i]=q(b),c[i].c(),c[i].m(P.parentNode,P))}for(;i<c.length;i+=1)c[i].d(1);c.length=f.length}},d(a){a&&(e.detach(t),e.detach(n),e.detach(p),e.detach(d),e.detach(_),e.detach(P)),e.destroy_each(u,a),e.destroy_each(c,a)}}}function V(r){let t,l=r[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(l),e.attr(t,"class","Message")},m(n,p){e.insert(n,t,p),e.append(t,o)},p(n,p){p&16&&l!==(l=n[4]("loading")+"")&&e.set_data(o,l)},d(n){n&&e.detach(t)}}}function A(r){let t,l,o,n,p,d,v,m=r[21].name+"",_,P,h,u=r[21].games.count+"",f,c,a=r[4]("games")+"",g,i,b;function L(){return r[13](r[21])}return{c(){t=e.element("div"),l=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(a),e.src_url_equal(l.src,o=r[21].logo)||e.attr(l,"src",o),e.attr(l,"alt",n=r[21].name),e.attr(l,"class","ProviderImage"),e.attr(d,"class","ProviderTextContainer"),e.attr(t,"class","Provider")},m(w,y){e.insert(w,t,y),e.append(t,l),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||(b=e.listen(t,"click",L),i=!0)},p(w,y){r=w,y&2&&!e.src_url_equal(l.src,o=r[21].logo)&&e.attr(l,"src",o),y&2&&n!==(n=r[21].name)&&e.attr(l,"alt",n),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&&a!==(a=r[4]("games")+"")&&e.set_data(g,a)},d(w){w&&e.detach(t),i=!1,b()}}}function q(r){let t,l,o,n,p,d,v,m=r[21].name+"",_,P,h,u=r[21].games.count+"",f,c,a=r[4]("games")+"",g,i,b,L;function w(){return r[14](r[21])}return{c(){t=e.element("div"),l=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(a),i=e.space(),e.src_url_equal(l.src,o=r[21].logo)||e.attr(l,"src",o),e.attr(l,"alt",n=r[21].name),e.attr(l,"class","ProviderImage"),e.attr(d,"class","ProviderTextContainer"),e.attr(t,"class","Provider")},m(y,k){e.insert(y,t,k),e.append(t,l),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),b||(L=e.listen(t,"click",w),b=!0)},p(y,k){r=y,k&4&&!e.src_url_equal(l.src,o=r[21].logo)&&e.attr(l,"src",o),k&4&&n!==(n=r[21].name)&&e.attr(l,"alt",n),k&4&&m!==(m=r[21].name+"")&&e.set_data(_,m),k&4&&u!==(u=r[21].games.count+"")&&e.set_data(f,u),k&16&&a!==(a=r[4]("games")+"")&&e.set_data(g,a)},d(y){y&&e.detach(t),b=!1,L()}}}function I(r){let t;function l(p,d){return p[3]===!0?V:N}let o=l(r),n=o(r);return{c(){t=e.element("div"),n.c(),e.attr(t,"class","CasinoProviders")},m(p,d){e.insert(p,t,d),n.m(t,null),r[15](t)},p(p,[d]){o===(o=l(p))&&n?n.p(p,d):(n.d(1),n=o(p),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(p){p&&e.detach(t),n.d(),r[15](null)}}}function R(r,t,l){let o;e.component_subscribe(r,e.$format,s=>l(4,o=s));let{endpoint:n=""}=t,{datasource:p=""}=t,{lang:d="en"}=t,{clientstyling:v=""}=t,{clientstylingurl:m=""}=t,{translationurl:_=""}=t,{mbsource:P}=t,h=[],u=[],f=[],c=!1,a;const g=()=>{fetch(_).then(S=>S.json()).then(S=>{Object.keys(S).forEach(C=>{j(C,S[C])})}).catch(S=>{console.log(S)})};Object.keys(T).forEach(s=>{j(s,T[s])});const i=()=>{l(3,c=!0);const s=new URL(`${n}/v1/casino/vendors`);s.searchParams.append("datasource",p),s.searchParams.append("language",d),s.searchParams.append("fields","id,name,displayName,subVendors,isTopVendor,logo,games"),fetch(s).then(S=>S.json()).then(S=>{l(3,c=!1),h=S.items.map(O=>O),l(1,u=h.filter(O=>O.isTopVendor===!0)),l(2,f=h.filter(O=>O.isTopVendor===!1));let C=[];C=h.flatMap(O=>O.subVendors),f.push(...C.filter(O=>O.games.count>0))})},b=(s,S,C)=>{window.postMessage({type:"OpenGameProvider",providerId:s,providerName:S,providerLogo:C},window.location.href)},L=()=>{z(d)},w=s=>b(s.id,s.name,s.logo),y=s=>b(s.id,s.name,s.logo);function k(s){e.binding_callbacks[s?"unshift":"push"](()=>{a=s,l(0,a)})}return r.$$set=s=>{"endpoint"in s&&l(6,n=s.endpoint),"datasource"in s&&l(7,p=s.datasource),"lang"in s&&l(8,d=s.lang),"clientstyling"in s&&l(9,v=s.clientstyling),"clientstylingurl"in s&&l(10,m=s.clientstylingurl),"translationurl"in s&&l(11,_=s.translationurl),"mbsource"in s&&l(12,P=s.mbsource)},r.$$.update=()=>{r.$$.dirty&448&&n&&d&&p&&i(),r.$$.dirty&256&&d&&L(),r.$$.dirty&2048&&_&&g(),r.$$.dirty&513&&v&&a&&e.setClientStyling(a,v),r.$$.dirty&1025&&m&&a&&e.setClientStylingURL(a,m),r.$$.dirty&4097&&P&&a&&e.setStreamStyling(a,`${P}.Style`)},[a,u,f,c,o,b,n,p,d,v,m,_,P,w,y,k]}class M extends e.SvelteComponent{constructor(t){super(),e.init(this,t,R,I,e.safe_not_equal,{endpoint:6,datasource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11,mbsource:12},E)}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()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(M,{endpoint:{},datasource:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=M;