@everymatrix/casino-categories-providers 1.44.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.
@@ -0,0 +1,457 @@
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
+ }
5
+ function Z(i) {
6
+ x.set(i);
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
+ };
78
+ if (typeof window != "undefined") {
79
+ let i = function(t) {
80
+ return function(...s) {
81
+ try {
82
+ return t.apply(this, s);
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 = i(customElements.define), import("./CasinoCategories-CwdPhfH2.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 i = function(t) {
96
+ return function(...s) {
97
+ try {
98
+ return t.apply(this, s);
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 = i(customElements.define), import("./CasinoProviders-CtIWnRmy.js").then(({ default: t }) => {
107
+ !customElements.get("casino-providers") && customElements.define("casino-providers", t.element);
108
+ });
109
+ }
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
+ }
113
+ function ee(i) {
114
+ let t, s, n, u, _ = (
115
+ /*$_*/
116
+ i[11]("categories") + ""
117
+ ), S, w, F, f, v = (
118
+ /*$_*/
119
+ i[11]("providers") + ""
120
+ ), y, m, C, h, r, E, A, k, l, H, N, L;
121
+ return {
122
+ c() {
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
+ "endpoint",
128
+ /*endpointcategories*/
129
+ i[0]
130
+ ), a(
131
+ r,
132
+ "datasource",
133
+ /*datasourcecategories*/
134
+ i[1]
135
+ ), a(
136
+ r,
137
+ "activecategory",
138
+ /*activecategory*/
139
+ i[2]
140
+ ), a(
141
+ r,
142
+ "excludedflags",
143
+ /*excludedflags*/
144
+ i[5]
145
+ ), a(
146
+ r,
147
+ "lang",
148
+ /*lang*/
149
+ i[6]
150
+ ), a(
151
+ r,
152
+ "clientstyling",
153
+ /*clientstyling*/
154
+ i[7]
155
+ ), a(
156
+ r,
157
+ "clientstylingurl",
158
+ /*clientstylingurl*/
159
+ i[8]
160
+ ), g(h, "class", E = /*activeTab*/
161
+ i[10] === "providers" ? "NotVisible" : ""), a(
162
+ l,
163
+ "endpoint",
164
+ /*endpointproviders*/
165
+ i[3]
166
+ ), a(
167
+ l,
168
+ "datasource",
169
+ /*datasourceproviders*/
170
+ i[4]
171
+ ), a(
172
+ l,
173
+ "lang",
174
+ /*lang*/
175
+ i[6]
176
+ ), a(
177
+ l,
178
+ "clientstyling",
179
+ /*clientstyling*/
180
+ i[7]
181
+ ), a(
182
+ l,
183
+ "clientstylingurl",
184
+ /*clientstylingurl*/
185
+ i[8]
186
+ ), g(k, "class", H = /*activeTab*/
187
+ i[10] === "categories" ? "NotVisible" : ""), g(s, "class", "CasinoCategoriesProviders");
188
+ },
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(
192
+ u,
193
+ "click",
194
+ /*click_handler*/
195
+ i[14]
196
+ ),
197
+ D(
198
+ f,
199
+ "click",
200
+ /*click_handler_1*/
201
+ i[15]
202
+ )
203
+ ], N = !0);
204
+ },
205
+ p(o, [e]) {
206
+ e & /*$_*/
207
+ 2048 && _ !== (_ = /*$_*/
208
+ o[11]("categories") + "") && M(S, _), e & /*activeTab*/
209
+ 1024 && w !== (w = "HeaderButton " + /*activeTab*/
210
+ (o[10] === "categories" ? "Active" : "")) && g(u, "class", w), e & /*$_*/
211
+ 2048 && v !== (v = /*$_*/
212
+ o[11]("providers") + "") && M(y, v), e & /*activeTab*/
213
+ 1024 && m !== (m = "HeaderButton " + /*activeTab*/
214
+ (o[10] === "providers" ? "Active" : "")) && g(f, "class", m), e & /*endpointcategories*/
215
+ 1 && a(
216
+ r,
217
+ "endpoint",
218
+ /*endpointcategories*/
219
+ o[0]
220
+ ), e & /*datasourcecategories*/
221
+ 2 && a(
222
+ r,
223
+ "datasource",
224
+ /*datasourcecategories*/
225
+ o[1]
226
+ ), e & /*activecategory*/
227
+ 4 && a(
228
+ r,
229
+ "activecategory",
230
+ /*activecategory*/
231
+ o[2]
232
+ ), e & /*excludedflags*/
233
+ 32 && a(
234
+ r,
235
+ "excludedflags",
236
+ /*excludedflags*/
237
+ o[5]
238
+ ), e & /*lang*/
239
+ 64 && a(
240
+ r,
241
+ "lang",
242
+ /*lang*/
243
+ o[6]
244
+ ), e & /*clientstyling*/
245
+ 128 && a(
246
+ r,
247
+ "clientstyling",
248
+ /*clientstyling*/
249
+ o[7]
250
+ ), e & /*clientstylingurl*/
251
+ 256 && a(
252
+ r,
253
+ "clientstylingurl",
254
+ /*clientstylingurl*/
255
+ o[8]
256
+ ), e & /*activeTab*/
257
+ 1024 && E !== (E = /*activeTab*/
258
+ o[10] === "providers" ? "NotVisible" : "") && g(h, "class", E), e & /*endpointproviders*/
259
+ 8 && a(
260
+ l,
261
+ "endpoint",
262
+ /*endpointproviders*/
263
+ o[3]
264
+ ), e & /*datasourceproviders*/
265
+ 16 && a(
266
+ l,
267
+ "datasource",
268
+ /*datasourceproviders*/
269
+ o[4]
270
+ ), e & /*lang*/
271
+ 64 && a(
272
+ l,
273
+ "lang",
274
+ /*lang*/
275
+ o[6]
276
+ ), e & /*clientstyling*/
277
+ 128 && a(
278
+ l,
279
+ "clientstyling",
280
+ /*clientstyling*/
281
+ o[7]
282
+ ), e & /*clientstylingurl*/
283
+ 256 && a(
284
+ l,
285
+ "clientstylingurl",
286
+ /*clientstylingurl*/
287
+ o[8]
288
+ ), e & /*activeTab*/
289
+ 1024 && H !== (H = /*activeTab*/
290
+ o[10] === "categories" ? "NotVisible" : "") && g(k, "class", H);
291
+ },
292
+ i: j,
293
+ o: j,
294
+ d(o) {
295
+ o && J(t), i[16](null), N = !1, Q(L);
296
+ }
297
+ };
298
+ }
299
+ function te(i, t, s) {
300
+ let n;
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;
303
+ const E = () => {
304
+ fetch(C).then((p) => p.json()).then((p) => {
305
+ Object.keys(p).forEach((T) => {
306
+ O(T, p[T]);
307
+ });
308
+ }).catch((p) => {
309
+ console.log(p);
310
+ });
311
+ };
312
+ Object.keys(V).forEach((e) => {
313
+ O(e, V[e]);
314
+ });
315
+ const A = (e) => {
316
+ h !== e && s(10, h = e);
317
+ }, k = () => {
318
+ Z(v);
319
+ }, l = () => {
320
+ let e = document.createElement("style");
321
+ e.innerHTML = y, r.appendChild(e);
322
+ }, H = () => {
323
+ let e = new URL(m), p = document.createElement("style");
324
+ fetch(e.href).then((T) => T.text()).then((T) => {
325
+ p.innerHTML = T, setTimeout(
326
+ () => {
327
+ r.appendChild(p);
328
+ },
329
+ 1
330
+ ), setTimeout(
331
+ () => {
332
+ },
333
+ 500
334
+ );
335
+ });
336
+ }, N = () => A("categories"), L = () => A("providers");
337
+ function o(e) {
338
+ X[e ? "unshift" : "push"](() => {
339
+ r = e, s(9, r);
340
+ });
341
+ }
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();
350
+ }, [
351
+ u,
352
+ _,
353
+ S,
354
+ w,
355
+ F,
356
+ f,
357
+ v,
358
+ y,
359
+ m,
360
+ r,
361
+ h,
362
+ n,
363
+ A,
364
+ C,
365
+ N,
366
+ L,
367
+ o
368
+ ];
369
+ }
370
+ class ie extends K {
371
+ constructor(t) {
372
+ super(), R(
373
+ this,
374
+ t,
375
+ te,
376
+ ee,
377
+ q,
378
+ {
379
+ endpointcategories: 0,
380
+ datasourcecategories: 1,
381
+ activecategory: 2,
382
+ endpointproviders: 3,
383
+ datasourceproviders: 4,
384
+ excludedflags: 5,
385
+ lang: 6,
386
+ clientstyling: 7,
387
+ clientstylingurl: 8,
388
+ translationurl: 13
389
+ },
390
+ $
391
+ );
392
+ }
393
+ get endpointcategories() {
394
+ return this.$$.ctx[0];
395
+ }
396
+ set endpointcategories(t) {
397
+ this.$$set({ endpointcategories: t }), d();
398
+ }
399
+ get datasourcecategories() {
400
+ return this.$$.ctx[1];
401
+ }
402
+ set datasourcecategories(t) {
403
+ this.$$set({ datasourcecategories: t }), d();
404
+ }
405
+ get activecategory() {
406
+ return this.$$.ctx[2];
407
+ }
408
+ set activecategory(t) {
409
+ this.$$set({ activecategory: t }), d();
410
+ }
411
+ get endpointproviders() {
412
+ return this.$$.ctx[3];
413
+ }
414
+ set endpointproviders(t) {
415
+ this.$$set({ endpointproviders: t }), d();
416
+ }
417
+ get datasourceproviders() {
418
+ return this.$$.ctx[4];
419
+ }
420
+ set datasourceproviders(t) {
421
+ this.$$set({ datasourceproviders: t }), d();
422
+ }
423
+ get excludedflags() {
424
+ return this.$$.ctx[5];
425
+ }
426
+ set excludedflags(t) {
427
+ this.$$set({ excludedflags: t }), d();
428
+ }
429
+ get lang() {
430
+ return this.$$.ctx[6];
431
+ }
432
+ set lang(t) {
433
+ this.$$set({ lang: t }), d();
434
+ }
435
+ get clientstyling() {
436
+ return this.$$.ctx[7];
437
+ }
438
+ set clientstyling(t) {
439
+ this.$$set({ clientstyling: t }), d();
440
+ }
441
+ get clientstylingurl() {
442
+ return this.$$.ctx[8];
443
+ }
444
+ set clientstylingurl(t) {
445
+ this.$$set({ clientstylingurl: t }), d();
446
+ }
447
+ get translationurl() {
448
+ return this.$$.ctx[13];
449
+ }
450
+ set translationurl(t) {
451
+ this.$$set({ translationurl: t }), d();
452
+ }
453
+ }
454
+ U(ie, { endpointcategories: {}, datasourcecategories: {}, activecategory: {}, endpointproviders: {}, datasourceproviders: {}, excludedflags: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
455
+ export {
456
+ ie as default
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;