@everymatrix/casino-lobby 1.44.0 → 1.45.0

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.
Files changed (64) hide show
  1. package/components/CasinoCalendar-DEhfBjpm.js +5138 -0
  2. package/components/CasinoCalendar-egUFg4eK.cjs +9 -0
  3. package/components/CasinoCalendarDailyDetails-CfTziMCu.js +605 -0
  4. package/components/CasinoCalendarDailyDetails-KP4_YYmO.cjs +1 -0
  5. package/components/CasinoCalendarDailyItem-4bXAKAZj.cjs +1 -0
  6. package/components/CasinoCalendarDailyItem-CQ8syIIe.js +220 -0
  7. package/components/CasinoCategoriesSlider-BQvWcqNm.js +597 -0
  8. package/components/CasinoCategoriesSlider-BfuTLKom.cjs +1 -0
  9. package/components/CasinoCollectionsProviders-C9_6w0OJ.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-CwJY8Pmw.js +659 -0
  11. package/components/CasinoFavoritesSection-BBWM7_dI.js +418 -0
  12. package/components/CasinoFavoritesSection-Da0-zSyn.cjs +1 -0
  13. package/components/CasinoFilter-BkpU5f2V.cjs +1 -0
  14. package/components/CasinoFilter-D3p7c7qu.js +628 -0
  15. package/components/CasinoGamePage-BHxY5XUD.cjs +18 -0
  16. package/components/CasinoGamePage-Bp4OKmdA.js +4282 -0
  17. package/components/CasinoGameThumbnail-BmmqFK_6.js +1822 -0
  18. package/components/CasinoGameThumbnail-DVMHCqZf.cjs +38 -0
  19. package/components/CasinoGamesCategorySection-6X3_pD0A.js +3022 -0
  20. package/components/CasinoGamesCategorySection-CasxxP7n.cjs +1 -0
  21. package/components/CasinoJackpotBanner-8_TAP4xY.cjs +1 -0
  22. package/components/CasinoJackpotBanner-wk2wOmJp.js +619 -0
  23. package/components/CasinoLastPlayedSection-Dkh43VxC.js +563 -0
  24. package/components/CasinoLastPlayedSection-DvORiff-.cjs +1 -0
  25. package/components/CasinoLobby-Djp4HDWL.js +2341 -0
  26. package/components/CasinoLobby-Jn45jhzr.cjs +1 -0
  27. package/components/CasinoModal-BebrYWjS.cjs +1 -0
  28. package/components/CasinoModal-CSwMAX-g.js +372 -0
  29. package/components/CasinoMostPlayedSection-BDP2HyE6.js +580 -0
  30. package/components/CasinoMostPlayedSection-CF5vlzLT.cjs +1 -0
  31. package/components/CasinoMyGames-CILl0Jt1.js +1313 -0
  32. package/components/CasinoMyGames-shcqTml8.cjs +1 -0
  33. package/components/CasinoPage-CCcJd2fQ.js +3514 -0
  34. package/components/CasinoPage-DZmE3VFL.cjs +1 -0
  35. package/components/CasinoRandomGame-4mi3rRbq.js +641 -0
  36. package/components/CasinoRandomGame-G4VfFJ2L.cjs +2 -0
  37. package/components/CasinoSearch-CW-eesDy.cjs +1 -0
  38. package/components/CasinoSearch-DkEAmw-j.js +1066 -0
  39. package/components/CasinoSlider-CNWDP_I-.js +803 -0
  40. package/components/CasinoSlider-CjA8vWoz.cjs +1 -0
  41. package/components/CasinoSort-BVh0Ouwu.cjs +1 -0
  42. package/components/CasinoSort-CPcJqhWU.js +425 -0
  43. package/components/CasinoWinners-BTNdGlUD.cjs +1 -0
  44. package/components/CasinoWinners-DSsJp1KQ.js +884 -0
  45. package/components/GeneralAnimationLoading-BtIh_bSy.js +75 -0
  46. package/components/GeneralAnimationLoading-CEAKVCu9.cjs +1 -0
  47. package/es2015/casino-lobby.cjs +1 -0
  48. package/es2015/casino-lobby.js +16 -0
  49. package/package.json +20 -32
  50. package/CHANGELOG.md +0 -39
  51. package/README.md +0 -0
  52. package/dist/casino-lobby.js +0 -33
  53. package/dist/casino-lobby.js.map +0 -1
  54. package/documentation.md +0 -176
  55. package/index.html +0 -50
  56. package/index.js +0 -1
  57. package/public/favicon.png +0 -0
  58. package/public/reset.css +0 -48
  59. package/rollup.config.js +0 -67
  60. package/src/CasinoLobby.svelte +0 -454
  61. package/src/i18n.js +0 -25
  62. package/src/index.ts +0 -4
  63. package/stories/CasinoLobby.stories.js +0 -13
  64. package/tsconfig.json +0 -6
@@ -0,0 +1,628 @@
1
+ import { $ as re, a as ve, I as fe, S as pe, i as ue, f as S, c as ge, s as me, b as he, e as f, g as B, C as ie, k as N, J as ze, o as Fe, L as be, n as _e, q as se, E as ee, r as I, u as L, d as n, v as o, w as te, A as M, B as we, R as ye, U as ae, O as Ce, D as ne } from "./CasinoCalendar-DEhfBjpm.js";
2
+ function ke({ withLocale: r, translations: e }) {
3
+ re.subscribe((t) => {
4
+ t == null && (ve.set(e), re.set(r));
5
+ });
6
+ }
7
+ function oe(r, e) {
8
+ fe(r, e);
9
+ }
10
+ const ce = {
11
+ en: {
12
+ providers: "Providers:",
13
+ filterby: "Filter by:",
14
+ all: "All",
15
+ clear: "Clear all"
16
+ },
17
+ zh: {
18
+ providers: "Providers:",
19
+ filterby: "Filter by",
20
+ all: "all",
21
+ clear: "Clear all"
22
+ },
23
+ de: {
24
+ providers: "Providers:",
25
+ filterby: "Filter by:",
26
+ all: "all",
27
+ clear: "Clear all"
28
+ },
29
+ it: {
30
+ providers: "Providers:",
31
+ filterby: "Filter by:",
32
+ all: "all",
33
+ clear: "Clear all"
34
+ },
35
+ fr: {
36
+ providers: "Providers:",
37
+ filterby: "Filter by:",
38
+ all: "all",
39
+ clear: "Clear all"
40
+ },
41
+ es: {
42
+ providers: "Proveedores:",
43
+ filterby: "Filtrar Por:",
44
+ all: "Todos",
45
+ clear: "Limpiar todos"
46
+ },
47
+ tr: {
48
+ providers: "Sağlayıcılar:",
49
+ filterby: "Filtrele:",
50
+ all: "Hepsi",
51
+ clear: "Tümünü Temizle"
52
+ },
53
+ ru: {
54
+ providers: "Providers:",
55
+ filterby: "Filter by:",
56
+ all: "all",
57
+ clear: "Clear all"
58
+ },
59
+ ro: {
60
+ providers: "Providers:",
61
+ filterby: "Filter by:",
62
+ all: "all",
63
+ clear: "Clear all"
64
+ },
65
+ hr: {
66
+ providers: "Brendovi igara",
67
+ filterby: "Filtrirati po:",
68
+ all: "Sve",
69
+ clear: "Očisti sve"
70
+ },
71
+ hu: {
72
+ providers: "Providers:",
73
+ filterby: "Filter by:",
74
+ all: "all",
75
+ clear: "Clear all"
76
+ },
77
+ pl: {
78
+ providers: "Providers:",
79
+ filterby: "Filter by:",
80
+ all: "all",
81
+ clear: "Clear all"
82
+ },
83
+ pt: {
84
+ providers: "Providers:",
85
+ filterby: "Filter by:",
86
+ all: "all",
87
+ clear: "Clear all"
88
+ },
89
+ sl: {
90
+ providers: "Providers:",
91
+ filterby: "Filter by:",
92
+ all: "all",
93
+ clear: "Clear all"
94
+ },
95
+ sr: {
96
+ providers: "Providers:",
97
+ filterby: "Filter by:",
98
+ all: "all",
99
+ clear: "Clear all"
100
+ },
101
+ "pt-br": {
102
+ providers: "Provedores:",
103
+ filterby: "Filtrar por",
104
+ all: "Tudo",
105
+ clear: "Apagar tudo"
106
+ },
107
+ "es-mx": {
108
+ providers: "Proveedores:",
109
+ filterby: "Filtrar por",
110
+ all: "Todo",
111
+ clear: "Borrar todo"
112
+ }
113
+ };
114
+ function xe(r) {
115
+ he(r, "svelte-j02zyj", '.SearchLoading.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.FilterContainer.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{background-color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{border-radius:5px 5px 0 0}.FilterMainArea.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{display:flex;align-items:center}.FilterMainArea.svelte-j02zyj svg.svelte-j02zyj.svelte-j02zyj{margin-right:16px}.FilterName.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{font-size:11px;line-height:12px;color:var(--emfe-w-color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{display:flex;flex-direction:column}.FilterValueContainer.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj::-webkit-scrollbar{display:none}.FilterItem.svelte-j02zyj label.svelte-j02zyj.svelte-j02zyj{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem.svelte-j02zyj input.svelte-j02zyj.svelte-j02zyj{cursor:pointer;margin-right:10px}.FilterItem.svelte-j02zyj:hover input.svelte-j02zyj~.FiltersCheckmark.svelte-j02zyj{background-color:transparent;border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.FilterItem.svelte-j02zyj input.svelte-j02zyj:checked~.FiltersCheckmark.svelte-j02zyj{background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.FilterItem.svelte-j02zyj .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj{transition:all 0.05s ease-in;margin-right:15px}.FilterItem.svelte-j02zyj .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj:after{content:"";position:absolute;left:9px;display:none}.FilterItem.svelte-j02zyj input.svelte-j02zyj:checked~.FiltersCheckmark.svelte-j02zyj:after{display:block}.FilterItem.svelte-j02zyj .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emfe-w-color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit.svelte-j02zyj .FilterItemWithLogos .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj{margin:0}.FilterLabel.svelte-j02zyj input.svelte-j02zyj.svelte-j02zyj{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel.svelte-j02zyj .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emfe-w-color-white, #FFFFFF)}.FilterLabel.svelte-j02zyj .FilterItemLabel.svelte-j02zyj.svelte-j02zyj{width:100%;display:flex;justify-content:space-between}.FilterItemWithLogos.svelte-j02zyj label.svelte-j02zyj.svelte-j02zyj{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos.svelte-j02zyj label img.svelte-j02zyj.svelte-j02zyj{width:70px}.FilterLabel.svelte-j02zyj input.svelte-j02zyj:checked+span.svelte-j02zyj{font-weight:600}.FilterCounter.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{margin:20px auto;border:0;color:#fff;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj:disabled{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{max-width:initial}.FilterDropdownContainer.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{width:100%;margin-bottom:20px}.FilterDropdown.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{margin-block-start:0;gap:14px}.FilterItemWithLogos.svelte-j02zyj label.svelte-j02zyj.svelte-j02zyj{justify-content:center}.FilerContainerSplit.svelte-j02zyj .FilterSelector.svelte-j02zyj.svelte-j02zyj{padding:7px}.FilerContainerSplit.svelte-j02zyj .FilterSelector .FilterCounter.svelte-j02zyj.svelte-j02zyj{margin-left:0}.FilerContainerSplit.svelte-j02zyj .FilterMainArea svg.svelte-j02zyj.svelte-j02zyj{margin:0 10px}.FilerContainerSplit.svelte-j02zyj .FilterDropdown.svelte-j02zyj.svelte-j02zyj{padding:0 5px;box-sizing:border-box}.FilerContainerSplit.svelte-j02zyj .FilterDropdownContainer.svelte-j02zyj.svelte-j02zyj{top:42px}.FilerContainerSplit.svelte-j02zyj .ClearFilters.svelte-j02zyj.svelte-j02zyj{padding:8px 20px;font-size:15px}.FilterLabel.svelte-j02zyj .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj{margin-right:15px}.FilterItem.FilterItemWithLogos.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{display:flex;align-items:center;justify-content:center}.FilerContainerSplit.svelte-j02zyj .FilterItemWithLogos .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj{margin:0 20px 0 0}.FilerContainerSplit.svelte-j02zyj .FilterItem label.svelte-j02zyj.svelte-j02zyj{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem.svelte-j02zyj label.svelte-j02zyj>.svelte-j02zyj{pointer-events:none}}');
116
+ }
117
+ function je(r, e, t) {
118
+ const i = r.slice();
119
+ return i[36] = e[t], i[37] = e, i[38] = t, i;
120
+ }
121
+ function Se(r) {
122
+ let e, t, i, s, c, p, z, F, m = (
123
+ /*$_*/
124
+ r[11]("filterby") + ""
125
+ ), v, b, h, P, w = (
126
+ /*$_*/
127
+ r[11]("providers") + ""
128
+ ), T, _, j, g, u, A, D, C, K, O, V, Q, x, J = (
129
+ /*$_*/
130
+ r[11]("clear") + ""
131
+ ), R, W, U, H, q, X;
132
+ function Y(a, y) {
133
+ return (
134
+ /*fullSelection*/
135
+ a[7] ? Pe : Le
136
+ );
137
+ }
138
+ let Z = Y(r), k = Z(r), E = se(
139
+ /*vendorArray*/
140
+ r[5]
141
+ ), l = [];
142
+ for (let a = 0; a < E.length; a += 1)
143
+ l[a] = de(je(r, E, a));
144
+ return {
145
+ c() {
146
+ e = f("div"), t = f("div"), i = f("div"), s = ee("svg"), c = ee("path"), p = I(), z = f("div"), F = f("span"), v = L(m), b = I(), h = f("div"), P = f("span"), T = L(w), _ = I(), k.c(), j = I(), g = f("span"), u = ee("svg"), A = ee("path"), K = I(), O = f("div"), V = f("ul");
147
+ for (let a = 0; a < l.length; a += 1)
148
+ l[a].c();
149
+ Q = I(), x = f("button"), R = L(J), n(c, "id", "noun_filter_736223"), n(c, "d", "M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"), n(c, "transform", "translate(-5 -6.2)"), n(c, "fill", "#fff"), n(s, "xmlns", "http://www.w3.org/2000/svg"), n(s, "width", "16"), n(s, "height", "16"), n(s, "viewBox", "0 0 16 16"), n(s, "class", "svelte-j02zyj"), n(F, "class", "FilterName svelte-j02zyj"), n(h, "class", "FilterValueContainer svelte-j02zyj"), n(z, "class", "FilterTextContainer svelte-j02zyj"), n(i, "class", "FilterMainArea svelte-j02zyj"), n(A, "id", "arrow"), n(A, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), n(A, "transform", "translate(-274.511 -441.088)"), n(A, "fill", "#d1d1d1"), n(u, "xmlns", "http://www.w3.org/2000/svg"), n(u, "width", "14"), n(u, "height", "6.835"), n(u, "viewBox", "0 0 14 6.835"), n(u, "class", "svelte-j02zyj"), n(g, "class", D = "TriangleInactive " + /*isFilterActive*/
150
+ (r[4] ? "TriangleActive" : "") + " svelte-j02zyj"), n(t, "class", C = "FilterSelector " + /*isFilterActive*/
151
+ (r[4] ? "FilterSelectorOpen" : "") + " svelte-j02zyj"), n(V, "class", "FilterDropdown svelte-j02zyj"), n(x, "class", "ClearFilters svelte-j02zyj"), x.disabled = W = /*fullSelection*/
152
+ r[7] && /*selectedVendorArray*/
153
+ r[6].length != /*vendorArray*/
154
+ r[5].length, n(O, "class", U = "FilterDropdownContainer " + /*isFilterActive*/
155
+ (r[4] ? "FilterOpen" : "") + " svelte-j02zyj"), n(e, "class", H = "FilterContainer " + /*addfilterselector*/
156
+ (r[0] == "true" && /*addsortingselector*/
157
+ r[1] == "true" ? "FilerContainerSplit" : "") + " svelte-j02zyj");
158
+ },
159
+ m(a, y) {
160
+ B(a, e, y), o(e, t), o(t, i), o(i, s), o(s, c), o(i, p), o(i, z), o(z, F), o(F, v), o(z, b), o(z, h), o(h, P), o(P, T), o(h, _), k.m(h, null), o(t, j), o(t, g), o(g, u), o(u, A), o(e, K), o(e, O), o(O, V);
161
+ for (let d = 0; d < l.length; d += 1)
162
+ l[d] && l[d].m(V, null);
163
+ o(O, Q), o(O, x), o(x, R), q || (X = [
164
+ te(
165
+ t,
166
+ "click",
167
+ /*click_handler*/
168
+ r[22]
169
+ ),
170
+ te(
171
+ x,
172
+ "click",
173
+ /*click_handler_2*/
174
+ r[25]
175
+ )
176
+ ], q = !0);
177
+ },
178
+ p(a, y) {
179
+ if (y[0] & /*$_*/
180
+ 2048 && m !== (m = /*$_*/
181
+ a[11]("filterby") + "") && M(v, m), y[0] & /*$_*/
182
+ 2048 && w !== (w = /*$_*/
183
+ a[11]("providers") + "") && M(T, w), Z === (Z = Y(a)) && k ? k.p(a, y) : (k.d(1), k = Z(a), k && (k.c(), k.m(h, null))), y[0] & /*isFilterActive*/
184
+ 16 && D !== (D = "TriangleInactive " + /*isFilterActive*/
185
+ (a[4] ? "TriangleActive" : "") + " svelte-j02zyj") && n(g, "class", D), y[0] & /*isFilterActive*/
186
+ 16 && C !== (C = "FilterSelector " + /*isFilterActive*/
187
+ (a[4] ? "FilterSelectorOpen" : "") + " svelte-j02zyj") && n(t, "class", C), y[0] & /*filterbylogo, vendorArray, filterByVendors*/
188
+ 8228) {
189
+ E = se(
190
+ /*vendorArray*/
191
+ a[5]
192
+ );
193
+ let d;
194
+ for (d = 0; d < E.length; d += 1) {
195
+ const G = je(a, E, d);
196
+ l[d] ? l[d].p(G, y) : (l[d] = de(G), l[d].c(), l[d].m(V, null));
197
+ }
198
+ for (; d < l.length; d += 1)
199
+ l[d].d(1);
200
+ l.length = E.length;
201
+ }
202
+ y[0] & /*$_*/
203
+ 2048 && J !== (J = /*$_*/
204
+ a[11]("clear") + "") && M(R, J), y[0] & /*fullSelection, selectedVendorArray, vendorArray*/
205
+ 224 && W !== (W = /*fullSelection*/
206
+ a[7] && /*selectedVendorArray*/
207
+ a[6].length != /*vendorArray*/
208
+ a[5].length) && (x.disabled = W), y[0] & /*isFilterActive*/
209
+ 16 && U !== (U = "FilterDropdownContainer " + /*isFilterActive*/
210
+ (a[4] ? "FilterOpen" : "") + " svelte-j02zyj") && n(O, "class", U), y[0] & /*addfilterselector, addsortingselector*/
211
+ 3 && H !== (H = "FilterContainer " + /*addfilterselector*/
212
+ (a[0] == "true" && /*addsortingselector*/
213
+ a[1] == "true" ? "FilerContainerSplit" : "") + " svelte-j02zyj") && n(e, "class", H);
214
+ },
215
+ d(a) {
216
+ a && N(e), k.d(), we(l, a), q = !1, ye(X);
217
+ }
218
+ };
219
+ }
220
+ function Ie(r) {
221
+ let e, t = (
222
+ /*$_*/
223
+ r[11]("500") + ""
224
+ ), i;
225
+ return {
226
+ c() {
227
+ e = f("p"), i = L(t), n(e, "class", "SearchLoading svelte-j02zyj");
228
+ },
229
+ m(s, c) {
230
+ B(s, e, c), o(e, i);
231
+ },
232
+ p(s, c) {
233
+ c[0] & /*$_*/
234
+ 2048 && t !== (t = /*$_*/
235
+ s[11]("500") + "") && M(i, t);
236
+ },
237
+ d(s) {
238
+ s && N(e);
239
+ }
240
+ };
241
+ }
242
+ function Le(r) {
243
+ let e, t;
244
+ return {
245
+ c() {
246
+ e = f("span"), t = L(
247
+ /*selectionNumber*/
248
+ r[8]
249
+ ), n(e, "class", "FilterCounter svelte-j02zyj");
250
+ },
251
+ m(i, s) {
252
+ B(i, e, s), o(e, t);
253
+ },
254
+ p(i, s) {
255
+ s[0] & /*selectionNumber*/
256
+ 256 && M(
257
+ t,
258
+ /*selectionNumber*/
259
+ i[8]
260
+ );
261
+ },
262
+ d(i) {
263
+ i && N(e);
264
+ }
265
+ };
266
+ }
267
+ function Pe(r) {
268
+ let e, t = (
269
+ /*$_*/
270
+ r[11]("all") + ""
271
+ ), i;
272
+ return {
273
+ c() {
274
+ e = f("span"), i = L(t), n(e, "class", "FilterCounter svelte-j02zyj");
275
+ },
276
+ m(s, c) {
277
+ B(s, e, c), o(e, i);
278
+ },
279
+ p(s, c) {
280
+ c[0] & /*$_*/
281
+ 2048 && t !== (t = /*$_*/
282
+ s[11]("all") + "") && M(i, t);
283
+ },
284
+ d(s) {
285
+ s && N(e);
286
+ }
287
+ };
288
+ }
289
+ function Ae(r) {
290
+ let e, t;
291
+ return {
292
+ c() {
293
+ e = f("img"), ne(e.src, t = /*vendor*/
294
+ r[36].logo) || n(e, "src", t), n(e, "alt", "vendor logo"), n(e, "class", "svelte-j02zyj");
295
+ },
296
+ m(i, s) {
297
+ B(i, e, s);
298
+ },
299
+ p(i, s) {
300
+ s[0] & /*vendorArray*/
301
+ 32 && !ne(e.src, t = /*vendor*/
302
+ i[36].logo) && n(e, "src", t);
303
+ },
304
+ d(i) {
305
+ i && N(e);
306
+ }
307
+ };
308
+ }
309
+ function Oe(r) {
310
+ let e, t, i = (
311
+ /*vendor*/
312
+ r[36].name + ""
313
+ ), s, c, p, z, F = (
314
+ /*vendor*/
315
+ r[36].games.count + ""
316
+ ), m, v;
317
+ return {
318
+ c() {
319
+ e = f("div"), t = f("span"), s = L(i), c = I(), p = f("span"), z = L("("), m = L(F), v = L(")"), n(e, "class", "FilterItemLabel svelte-j02zyj");
320
+ },
321
+ m(b, h) {
322
+ B(b, e, h), o(e, t), o(t, s), o(e, c), o(e, p), o(p, z), o(p, m), o(p, v);
323
+ },
324
+ p(b, h) {
325
+ h[0] & /*vendorArray*/
326
+ 32 && i !== (i = /*vendor*/
327
+ b[36].name + "") && M(s, i), h[0] & /*vendorArray*/
328
+ 32 && F !== (F = /*vendor*/
329
+ b[36].games.count + "") && M(m, F);
330
+ },
331
+ d(b) {
332
+ b && N(e);
333
+ }
334
+ };
335
+ }
336
+ function de(r) {
337
+ let e, t, i, s, c, p, z, F, m, v, b, h;
338
+ function P() {
339
+ r[23].call(
340
+ i,
341
+ /*each_value*/
342
+ r[37],
343
+ /*vendor_index*/
344
+ r[38]
345
+ );
346
+ }
347
+ function w() {
348
+ return (
349
+ /*click_handler_1*/
350
+ r[24](
351
+ /*vendor*/
352
+ r[36]
353
+ )
354
+ );
355
+ }
356
+ function T(g, u) {
357
+ if (
358
+ /*filterbylogo*/
359
+ g[2] === "false"
360
+ ) return Oe;
361
+ if (
362
+ /*filterbylogo*/
363
+ g[2] === "true"
364
+ ) return Ae;
365
+ }
366
+ let _ = T(r), j = _ && _(r);
367
+ return {
368
+ c() {
369
+ e = f("li"), t = f("label"), i = f("input"), c = I(), p = f("span"), z = I(), j && j.c(), F = I(), n(i, "type", "checkbox"), n(i, "name", "checkbox"), i.__value = s = /*vendor*/
370
+ r[36].name, ae(i, i.__value), n(i, "class", "svelte-j02zyj"), n(p, "class", "FiltersCheckmark svelte-j02zyj"), n(t, "class", "FilterLabel svelte-j02zyj"), n(e, "class", m = "FilterItem " + /*filterbylogo*/
371
+ (r[2] === "true" ? "FilterItemWithLogos" : "") + " svelte-j02zyj"), e.value = v = /*vendor*/
372
+ r[36].name;
373
+ },
374
+ m(g, u) {
375
+ B(g, e, u), o(e, t), o(t, i), i.checked = /*vendor*/
376
+ r[36].isFilterSelected, o(t, c), o(t, p), o(t, z), j && j.m(t, null), o(e, F), b || (h = [
377
+ te(i, "change", P),
378
+ te(i, "click", w)
379
+ ], b = !0);
380
+ },
381
+ p(g, u) {
382
+ r = g, u[0] & /*vendorArray*/
383
+ 32 && s !== (s = /*vendor*/
384
+ r[36].name) && (i.__value = s, ae(i, i.__value)), u[0] & /*vendorArray*/
385
+ 32 && (i.checked = /*vendor*/
386
+ r[36].isFilterSelected), _ === (_ = T(r)) && j ? j.p(r, u) : (j && j.d(1), j = _ && _(r), j && (j.c(), j.m(t, null))), u[0] & /*filterbylogo*/
387
+ 4 && m !== (m = "FilterItem " + /*filterbylogo*/
388
+ (r[2] === "true" ? "FilterItemWithLogos" : "") + " svelte-j02zyj") && n(e, "class", m), u[0] & /*vendorArray*/
389
+ 32 && v !== (v = /*vendor*/
390
+ r[36].name) && (e.value = v);
391
+ },
392
+ d(g) {
393
+ g && N(e), j && j.d(), b = !1, ye(h);
394
+ }
395
+ };
396
+ }
397
+ function Te(r) {
398
+ let e;
399
+ function t(c, p) {
400
+ if (
401
+ /*hasErrors*/
402
+ c[10]
403
+ ) return Ie;
404
+ if (!/*isLoading*/
405
+ c[9]) return Se;
406
+ }
407
+ let i = t(r), s = i && i(r);
408
+ return {
409
+ c() {
410
+ e = f("div"), s && s.c();
411
+ },
412
+ m(c, p) {
413
+ B(c, e, p), s && s.m(e, null), r[26](e);
414
+ },
415
+ p(c, p) {
416
+ i === (i = t(c)) && s ? s.p(c, p) : (s && s.d(1), s = i && i(c), s && (s.c(), s.m(e, null)));
417
+ },
418
+ i: ie,
419
+ o: ie,
420
+ d(c) {
421
+ c && N(e), s && s.d(), r[26](null);
422
+ }
423
+ };
424
+ }
425
+ function De(r, e, t) {
426
+ let i;
427
+ ze(r, Ce, (l) => t(11, i = l));
428
+ let { endpoint: s = "" } = e, { datasource: c = "" } = e, { lang: p = "" } = e, { translationurl: z = "" } = e, { clientstyling: F = "" } = e, { clientstylingurl: m = "" } = e, { categoryid: v = "" } = e, { addfilterselector: b = "false" } = e, { addsortingselector: h = "false" } = e, { filterbylogo: P = "false" } = e, w = !1, T = window.navigator.userAgent, _ = [], j = [], g = {}, u = !1, A = 0, D = !0, C, K = !1;
429
+ ke({ withLocale: "en", translations: {} });
430
+ const O = () => {
431
+ fetch(z).then((a) => a.json()).then((a) => {
432
+ Object.keys(a).forEach((y) => {
433
+ oe(y, a[y]);
434
+ });
435
+ }).catch((a) => {
436
+ console.log(a);
437
+ });
438
+ };
439
+ Object.keys(ce).forEach((l) => {
440
+ oe(l, ce[l]);
441
+ });
442
+ const V = () => {
443
+ let l = document.createElement("style");
444
+ l.innerHTML = F, C.appendChild(l);
445
+ }, Q = () => {
446
+ let l = document.createElement("style");
447
+ fetch(new URL(m)).then((a) => a.text()).then((a) => {
448
+ l.innerHTML = a, setTimeout(
449
+ () => {
450
+ C.appendChild(l);
451
+ },
452
+ 1
453
+ );
454
+ });
455
+ };
456
+ g[v] && (g = { [v]: [] });
457
+ const x = () => {
458
+ t(4, w = !w), window.postMessage({ type: "FilterOpened" }, window.location.href);
459
+ }, J = (l) => (t(9, D = !0), new Promise((a, y) => {
460
+ fetch(l).then((d) => d.json()).then((d) => {
461
+ d = d.items, a(d.items), t(6, j = []);
462
+ let G = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
463
+ d.forEach(($) => {
464
+ var le;
465
+ G || (G = { currentCategoryId: [] }), ((le = G[v]) == null ? void 0 : le.indexOf($.id)) >= 0 ? ($.isFilterSelected = !0, j.push($)) : $.isFilterSelected = !1;
466
+ }), t(5, _ = d), W();
467
+ }).catch((d) => {
468
+ console.error(d), t(10, K = !0), y(d);
469
+ }).finally(() => {
470
+ t(9, D = !1);
471
+ });
472
+ })), R = (l) => {
473
+ let a = localStorage.getItem("vendorFiltersByCategory");
474
+ l.isFilterSelected = !l.isFilterSelected, !j.length || j.filter((y) => y.name === l.name).length == 0 ? j.push(l) : t(6, j = j.filter((y) => y.name !== l.name)), a == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(g = {
475
+ [v]: j.map((y) => y.id)
476
+ })) : (a = JSON.parse(a), a[v] = j.map((y) => y.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(a))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), W();
477
+ }, W = () => {
478
+ t(7, u = j.length === _.length || j.length == 0), t(8, A = j.length);
479
+ }, U = () => {
480
+ const l = new URL(`${s}/v1/casino/vendors`);
481
+ t(4, w = !1), l.searchParams.append("fields", "id,name,logo,subVendors,games"), l.searchParams.append("language", p), l.searchParams.append("datasource", c), l.searchParams.append("platform", be(T)), (v.match(/\$/g) || []).length > 1 ? (l.searchParams.append("filter", `games(subGroups=${v})`), l.searchParams.append("subVendors", `games(subGroups=${v})`)) : l.searchParams.append("filter", `games(groups=${v})`), J(l);
482
+ }, H = () => {
483
+ t(6, j = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(g = {
484
+ [v]: j.map((l) => l.id)
485
+ })), _.forEach((l) => l.isFilterSelected = !1), t(5, _), window.postMessage({ type: "ApplyFilters" }, window.location.href), t(7, u = !0), t(4, w = !1);
486
+ }, q = (l) => {
487
+ l.data.type == "SortingOpened" && t(4, w = !1);
488
+ };
489
+ Fe(() => (window.addEventListener("message", q, !1), () => {
490
+ window.removeEventListener("message", q);
491
+ }));
492
+ const X = () => x();
493
+ function Y(l, a) {
494
+ l[a].isFilterSelected = this.checked, t(5, _);
495
+ }
496
+ const Z = (l) => R(l), k = () => H();
497
+ function E(l) {
498
+ _e[l ? "unshift" : "push"](() => {
499
+ C = l, t(3, C);
500
+ });
501
+ }
502
+ return r.$$set = (l) => {
503
+ "endpoint" in l && t(15, s = l.endpoint), "datasource" in l && t(16, c = l.datasource), "lang" in l && t(17, p = l.lang), "translationurl" in l && t(18, z = l.translationurl), "clientstyling" in l && t(19, F = l.clientstyling), "clientstylingurl" in l && t(20, m = l.clientstylingurl), "categoryid" in l && t(21, v = l.categoryid), "addfilterselector" in l && t(0, b = l.addfilterselector), "addsortingselector" in l && t(1, h = l.addsortingselector), "filterbylogo" in l && t(2, P = l.filterbylogo);
504
+ }, r.$$.update = () => {
505
+ r.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
506
+ 2195460 && s && c && v && P && U(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
507
+ 524296 && F && C && V(), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
508
+ 1048584 && m && C && Q(), r.$$.dirty[0] & /*translationurl*/
509
+ 262144 && z && O();
510
+ }, [
511
+ b,
512
+ h,
513
+ P,
514
+ C,
515
+ w,
516
+ _,
517
+ j,
518
+ u,
519
+ A,
520
+ D,
521
+ K,
522
+ i,
523
+ x,
524
+ R,
525
+ H,
526
+ s,
527
+ c,
528
+ p,
529
+ z,
530
+ F,
531
+ m,
532
+ v,
533
+ X,
534
+ Y,
535
+ Z,
536
+ k,
537
+ E
538
+ ];
539
+ }
540
+ class Ee extends pe {
541
+ constructor(e) {
542
+ super(), ue(
543
+ this,
544
+ e,
545
+ De,
546
+ Te,
547
+ me,
548
+ {
549
+ endpoint: 15,
550
+ datasource: 16,
551
+ lang: 17,
552
+ translationurl: 18,
553
+ clientstyling: 19,
554
+ clientstylingurl: 20,
555
+ categoryid: 21,
556
+ addfilterselector: 0,
557
+ addsortingselector: 1,
558
+ filterbylogo: 2
559
+ },
560
+ xe,
561
+ [-1, -1]
562
+ );
563
+ }
564
+ get endpoint() {
565
+ return this.$$.ctx[15];
566
+ }
567
+ set endpoint(e) {
568
+ this.$$set({ endpoint: e }), S();
569
+ }
570
+ get datasource() {
571
+ return this.$$.ctx[16];
572
+ }
573
+ set datasource(e) {
574
+ this.$$set({ datasource: e }), S();
575
+ }
576
+ get lang() {
577
+ return this.$$.ctx[17];
578
+ }
579
+ set lang(e) {
580
+ this.$$set({ lang: e }), S();
581
+ }
582
+ get translationurl() {
583
+ return this.$$.ctx[18];
584
+ }
585
+ set translationurl(e) {
586
+ this.$$set({ translationurl: e }), S();
587
+ }
588
+ get clientstyling() {
589
+ return this.$$.ctx[19];
590
+ }
591
+ set clientstyling(e) {
592
+ this.$$set({ clientstyling: e }), S();
593
+ }
594
+ get clientstylingurl() {
595
+ return this.$$.ctx[20];
596
+ }
597
+ set clientstylingurl(e) {
598
+ this.$$set({ clientstylingurl: e }), S();
599
+ }
600
+ get categoryid() {
601
+ return this.$$.ctx[21];
602
+ }
603
+ set categoryid(e) {
604
+ this.$$set({ categoryid: e }), S();
605
+ }
606
+ get addfilterselector() {
607
+ return this.$$.ctx[0];
608
+ }
609
+ set addfilterselector(e) {
610
+ this.$$set({ addfilterselector: e }), S();
611
+ }
612
+ get addsortingselector() {
613
+ return this.$$.ctx[1];
614
+ }
615
+ set addsortingselector(e) {
616
+ this.$$set({ addsortingselector: e }), S();
617
+ }
618
+ get filterbylogo() {
619
+ return this.$$.ctx[2];
620
+ }
621
+ set filterbylogo(e) {
622
+ this.$$set({ filterbylogo: e }), S();
623
+ }
624
+ }
625
+ ge(Ee, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {} }, [], [], !0);
626
+ export {
627
+ Ee as default
628
+ };