@everymatrix/casino-lobby 1.41.0 → 1.42.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoCalendar-BQx5-rlk.cjs +9 -0
- package/components/CasinoCalendar-CGBzMgQt.cjs +9 -0
- package/components/CasinoCalendar-C_GWg7fU.js +5215 -0
- package/components/CasinoCalendar-D8A7V_p_.js +5176 -0
- package/components/CasinoCalendar-T2eu_ijJ.js +5213 -0
- package/components/CasinoCalendar-wabXB62Y.js +5174 -0
- package/components/CasinoCalendarDailyDetails-BsuvGAH5.js +701 -0
- package/components/CasinoCalendarDailyDetails-CXJQEBiD.js +701 -0
- package/components/CasinoCalendarDailyDetails-DD9ivry_.js +701 -0
- package/components/CasinoCalendarDailyDetails-DuTGv4cR.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-DxoETvny.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-HgqSzjsm.js +701 -0
- package/components/CasinoCalendarDailyItem-9ZdOdWc1.js +315 -0
- package/components/CasinoCalendarDailyItem-BQH_cu-K.cjs +1 -0
- package/components/CasinoCalendarDailyItem-Cij4qSkW.js +315 -0
- package/components/CasinoCalendarDailyItem-DieqmO8j.js +315 -0
- package/components/CasinoCalendarDailyItem-DynzkhlT.js +315 -0
- package/components/CasinoCalendarDailyItem-W6jJ8Vef.cjs +1 -0
- package/components/CasinoCategoriesSlider-CCBzNNkz.cjs +1 -0
- package/components/CasinoCategoriesSlider-Dg6UQ05U.js +594 -0
- package/components/CasinoCategoriesSlider-DqNp_BOt.js +594 -0
- package/components/CasinoCategoriesSlider-GrF0HXC7.cjs +1 -0
- package/components/CasinoCategoriesSlider-_w_55gG7.js +594 -0
- package/components/CasinoCategoriesSlider-pHVM7RZL.js +594 -0
- package/components/CasinoCollectionsProviders-BIcovGJ8.js +646 -0
- package/components/CasinoCollectionsProviders-CH2GAKzC.cjs +1 -0
- package/components/CasinoCollectionsProviders-D45_hU-I.js +646 -0
- package/components/CasinoCollectionsProviders-DMj_7QBU.cjs +1 -0
- package/components/CasinoCollectionsProviders-DfgvvOqL.js +651 -0
- package/components/CasinoCollectionsProviders-N_n3oOYS.js +651 -0
- package/components/CasinoFavoritesSection-B0uLh581.js +426 -0
- package/components/CasinoFavoritesSection-BD3Pecym.cjs +1 -0
- package/components/CasinoFavoritesSection-BMVarhje.cjs +1 -0
- package/components/CasinoFavoritesSection-B_tSVGIY.js +426 -0
- package/components/CasinoFavoritesSection-Da-NSsar.js +426 -0
- package/components/CasinoFavoritesSection-Dm0HviHl.js +426 -0
- package/components/CasinoFilter-B9sKxzVS.js +620 -0
- package/components/CasinoFilter-CMVqOmbG.js +619 -0
- package/components/CasinoFilter-Cf00T9dk.js +620 -0
- package/components/CasinoFilter-D3HxH1PB.cjs +1 -0
- package/components/CasinoFilter-DD3HMkSy.js +619 -0
- package/components/CasinoFilter-c8_bvC4c.cjs +1 -0
- package/components/CasinoGamePage-BundiLLb.js +4266 -0
- package/components/CasinoGamePage-C10RyyZp.cjs +18 -0
- package/components/CasinoGamePage-CfbBY5CU.cjs +18 -0
- package/components/CasinoGamePage-DC-LoQTc.js +4266 -0
- package/components/CasinoGamePage-OZnVr_Bg.js +4287 -0
- package/components/CasinoGamePage-yVND0I7w.js +4287 -0
- package/components/CasinoGameThumbnail-B1NNWJ0K.js +1820 -0
- package/components/CasinoGameThumbnail-Bc66QenW.cjs +38 -0
- package/components/CasinoGameThumbnail-CIGOC4uM.js +1820 -0
- package/components/CasinoGameThumbnail-DA3jcFAi.js +1836 -0
- package/components/CasinoGameThumbnail-DT9ORm8q.js +1836 -0
- package/components/CasinoGameThumbnail-DcqwhTjb.cjs +38 -0
- package/components/CasinoGamesCategorySection-BNYOO745.cjs +1 -0
- package/components/CasinoGamesCategorySection-C78ehK4U.js +2991 -0
- package/components/CasinoGamesCategorySection-Cagm02Ih.js +3020 -0
- package/components/CasinoGamesCategorySection-DBr4EIfz.js +2991 -0
- package/components/CasinoGamesCategorySection-Kzwpz7w5.js +3020 -0
- package/components/CasinoGamesCategorySection-_vABwskz.cjs +1 -0
- package/components/CasinoJackpotBanner-5cCB-mh2.js +592 -0
- package/components/CasinoJackpotBanner-Agfg0mZ0.js +592 -0
- package/components/CasinoJackpotBanner-BAhiOMZp.cjs +1 -0
- package/components/CasinoJackpotBanner-D7ZMZfDV.cjs +1 -0
- package/components/CasinoJackpotBanner-DR-ZzHCR.js +596 -0
- package/components/CasinoJackpotBanner-QB6MSrF4.js +596 -0
- package/components/CasinoLastPlayedSection-BjhQKUSK.js +556 -0
- package/components/CasinoLastPlayedSection-BxzCwcL-.js +556 -0
- package/components/CasinoLastPlayedSection-D4vCeonE.js +556 -0
- package/components/CasinoLastPlayedSection-Dwe4Td9f.cjs +1 -0
- package/components/CasinoLastPlayedSection-XK5dzsj-.js +556 -0
- package/components/CasinoLastPlayedSection-v0aQnExT.cjs +1 -0
- package/components/CasinoLobby-AFKKESbR.cjs +1 -0
- package/components/CasinoLobby-CHvuexFs.js +2315 -0
- package/components/CasinoLobby-ClhYpfUU.js +2315 -0
- package/components/CasinoLobby-DALY2Dhs.cjs +1 -0
- package/components/CasinoLobby-hrKaH7qN.js +2315 -0
- package/components/CasinoLobby-ouSesgdC.js +2315 -0
- package/components/CasinoModal-BIVMlWQX.js +359 -0
- package/components/CasinoModal-BYKM2vRV.cjs +1 -0
- package/components/CasinoModal-C3wpERtX.js +359 -0
- package/components/CasinoModal-Cabai4o3.js +359 -0
- package/components/CasinoModal-DRyqJh1Q.cjs +1 -0
- package/components/CasinoModal-Dw_y4THL.js +359 -0
- package/components/CasinoMostPlayedSection-C3K0hu8_.js +583 -0
- package/components/CasinoMostPlayedSection-CJYMI9VB.js +583 -0
- package/components/CasinoMostPlayedSection-DJQuOa6_.js +583 -0
- package/components/CasinoMostPlayedSection-DmUpsWqs.cjs +1 -0
- package/components/CasinoMostPlayedSection-OUtCsU0t.cjs +1 -0
- package/components/CasinoMostPlayedSection-Y5er9Bjh.js +583 -0
- package/components/CasinoMyGames-BIxyEUtK.js +1306 -0
- package/components/CasinoMyGames-D5rJT74m.cjs +1 -0
- package/components/CasinoMyGames-DI1lwYc8.js +1305 -0
- package/components/CasinoMyGames-DTHVNaKn.cjs +1 -0
- package/components/CasinoMyGames-DwUV6CBn.js +1305 -0
- package/components/CasinoMyGames-ctBoKyAg.js +1306 -0
- package/components/CasinoPage-BGO7Qjz8.js +3535 -0
- package/components/CasinoPage-Bw9pVfhj.cjs +1 -0
- package/components/CasinoPage-Ccz2mt9L.js +3535 -0
- package/components/CasinoPage-D4SKFGBe.cjs +1 -0
- package/components/CasinoPage-DLYXRAgH.js +3538 -0
- package/components/CasinoPage-OtILzfbb.js +3538 -0
- package/components/CasinoRandomGame-CtZOIJcN.js +658 -0
- package/components/CasinoRandomGame-Cveyjhn1.js +642 -0
- package/components/CasinoRandomGame-DALiyns2.cjs +2 -0
- package/components/CasinoRandomGame-DVoXDVJK.cjs +2 -0
- package/components/CasinoRandomGame-DbeS8lnM.js +642 -0
- package/components/CasinoRandomGame-HLWP49DK.js +658 -0
- package/components/CasinoSearch-B8OpEZBN.cjs +1 -0
- package/components/CasinoSearch-BMZWS8yv.js +1058 -0
- package/components/CasinoSearch-BQe9Q-5N.js +1060 -0
- package/components/CasinoSearch-B_Yrv4Uo.cjs +1 -0
- package/components/CasinoSearch-CbqN_jyR.js +1058 -0
- package/components/CasinoSearch-D9U7Yh_K.js +1060 -0
- package/components/CasinoSlider-BOVT94iB.js +794 -0
- package/components/CasinoSlider-BSHGeAYd.js +788 -0
- package/components/CasinoSlider-BvS3IBvk.cjs +1 -0
- package/components/CasinoSlider-CF-wUwQR.cjs +1 -0
- package/components/CasinoSlider-CrHKe4Xk.js +803 -0
- package/components/CasinoSlider-Cxh3sOkP.js +797 -0
- package/components/CasinoSort-BOWrHLh_.js +420 -0
- package/components/CasinoSort-BwnNTnFA.js +420 -0
- package/components/CasinoSort-DTw1r10v.js +419 -0
- package/components/CasinoSort-DWtBvm9D.cjs +1 -0
- package/components/CasinoSort-LblMuLP4.js +419 -0
- package/components/CasinoSort-hnzXlXWX.cjs +1 -0
- package/components/CasinoWinners-C9izX5Hz.js +955 -0
- package/components/CasinoWinners-CO3x7y86.js +955 -0
- package/components/CasinoWinners-CZWuAxEs.js +953 -0
- package/components/CasinoWinners-CjaKY4pX.cjs +1 -0
- package/components/CasinoWinners-DOucg2Bq.js +953 -0
- package/components/CasinoWinners-xdJkyzy9.cjs +1 -0
- package/components/GeneralAnimationLoading-C4-n6eKC.cjs +1 -0
- package/components/GeneralAnimationLoading-CGGvPAzb.js +75 -0
- package/components/GeneralAnimationLoading-Ch_RgnSg.js +75 -0
- package/components/GeneralAnimationLoading-DBrwarIl.js +75 -0
- package/components/GeneralAnimationLoading-YY_Qislb.cjs +1 -0
- package/components/GeneralAnimationLoading-qKrL3K2W.js +75 -0
- package/es2015/casino-lobby.cjs +1 -0
- package/es2015/casino-lobby.js +16 -0
- package/esnext/casino-lobby.js +14 -0
- package/package.json +19 -34
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/casino-play-random-game-CE7d8ftV.js +559 -0
- package/stencil/casino-play-random-game-JlSgoZ7I.js +577 -0
- package/stencil/casino-play-random-game-fmski7eY.cjs +371 -0
- package/stencil/index-bc02f5d1-CGWk9tpa.js +609 -0
- package/stencil/index-bc02f5d1-Cfiraoh4.js +625 -0
- package/stencil/index-bc02f5d1-zY9WEQOW.cjs +1 -0
- package/CHANGELOG.md +0 -39
- package/README.md +0 -0
- package/dist/casino-lobby.js +0 -33
- package/dist/casino-lobby.js.map +0 -1
- package/documentation.md +0 -176
- package/index.html +0 -50
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/CasinoLobby.svelte +0 -454
- package/src/i18n.js +0 -25
- package/src/index.ts +0 -4
- package/stories/CasinoLobby.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,620 @@
|
|
|
1
|
+
import { $ as te, W as pe, a as fe, S as ge, i as ue, f as P, c as me, s as he, b as Fe, e as u, d as B, D as le, j as V, k as be, o as ye, K as ve, n as we, L as _e, M as Ce, N as ke, q as re, G as $, r as A, u as D, v as n, w as s, x as ee, B as z, C as xe, U as de, X as ie, F as Se, E as ae } from "./CasinoCalendar-C_GWg7fU.js";
|
|
2
|
+
function Ie({ withLocale: l, translations: e }) {
|
|
3
|
+
te.subscribe((t) => {
|
|
4
|
+
t == null && (pe.set(e), te.set(l));
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
function ne(l, e) {
|
|
8
|
+
fe(l, e);
|
|
9
|
+
}
|
|
10
|
+
const oe = {
|
|
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
|
+
"en-us": {
|
|
114
|
+
providers: "Providers:",
|
|
115
|
+
filterby: "Filter by:",
|
|
116
|
+
all: "All",
|
|
117
|
+
clear: "Clear all"
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
function Le(l) {
|
|
121
|
+
Fe(l, "svelte-1v7rv6n", ':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--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{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{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{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{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::-webkit-scrollbar{display:none}.FilterItem label{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 input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--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:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}');
|
|
122
|
+
}
|
|
123
|
+
function se(l, e, t) {
|
|
124
|
+
const i = l.slice();
|
|
125
|
+
return i[35] = e[t], i[36] = e, i[37] = t, i;
|
|
126
|
+
}
|
|
127
|
+
function Pe(l) {
|
|
128
|
+
let e, t, i, a, c, h, _, C, y = (
|
|
129
|
+
/*$_*/
|
|
130
|
+
l[11]("filterby") + ""
|
|
131
|
+
), f, k, v, O, I = (
|
|
132
|
+
/*$_*/
|
|
133
|
+
l[11]("providers") + ""
|
|
134
|
+
), E, x, d, b, F, N, M, S, G, T, j, X, L, W = (
|
|
135
|
+
/*$_*/
|
|
136
|
+
l[11]("clear") + ""
|
|
137
|
+
), R, J, H, U, Z, Q;
|
|
138
|
+
function Y(o, w) {
|
|
139
|
+
return (
|
|
140
|
+
/*fullSelection*/
|
|
141
|
+
o[7] ? Oe : De
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
let q = Y(l), r = q(l), g = re(
|
|
145
|
+
/*vendorArray*/
|
|
146
|
+
l[5]
|
|
147
|
+
), p = [];
|
|
148
|
+
for (let o = 0; o < g.length; o += 1)
|
|
149
|
+
p[o] = ce(se(l, g, o));
|
|
150
|
+
return {
|
|
151
|
+
c() {
|
|
152
|
+
e = u("div"), t = u("div"), i = u("div"), a = $("svg"), c = $("path"), h = A(), _ = u("div"), C = u("span"), f = D(y), k = A(), v = u("div"), O = u("span"), E = D(I), x = A(), r.c(), d = A(), b = u("span"), F = $("svg"), N = $("path"), G = A(), T = u("div"), j = u("ul");
|
|
153
|
+
for (let o = 0; o < p.length; o += 1)
|
|
154
|
+
p[o].c();
|
|
155
|
+
X = A(), L = u("button"), R = D(W), 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(a, "xmlns", "http://www.w3.org/2000/svg"), n(a, "width", "16"), n(a, "height", "16"), n(a, "viewBox", "0 0 16 16"), n(C, "class", "FilterName"), n(v, "class", "FilterValueContainer"), n(_, "class", "FilterTextContainer"), n(i, "class", "FilterMainArea"), n(N, "id", "arrow"), n(N, "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(N, "transform", "translate(-274.511 -441.088)"), n(N, "fill", "#d1d1d1"), n(F, "xmlns", "http://www.w3.org/2000/svg"), n(F, "width", "14"), n(F, "height", "6.835"), n(F, "viewBox", "0 0 14 6.835"), n(b, "class", M = "TriangleInactive " + /*isFilterActive*/
|
|
156
|
+
(l[4] ? "TriangleActive" : "")), n(t, "class", S = "FilterSelector " + /*isFilterActive*/
|
|
157
|
+
(l[4] ? "FilterSelectorOpen" : "")), n(j, "class", "FilterDropdown"), n(L, "class", "ClearFilters"), L.disabled = J = /*fullSelection*/
|
|
158
|
+
l[7] && /*selectedVendorArray*/
|
|
159
|
+
l[6].length != /*vendorArray*/
|
|
160
|
+
l[5].length, n(T, "class", H = "FilterDropdownContainer " + /*isFilterActive*/
|
|
161
|
+
(l[4] ? "FilterOpen" : "")), n(e, "class", U = "FilterContainer " + /*addfilterselector*/
|
|
162
|
+
(l[0] == "true" && /*addsortingselector*/
|
|
163
|
+
l[1] == "true" ? "FilerContainerSplit" : ""));
|
|
164
|
+
},
|
|
165
|
+
m(o, w) {
|
|
166
|
+
B(o, e, w), s(e, t), s(t, i), s(i, a), s(a, c), s(i, h), s(i, _), s(_, C), s(C, f), s(_, k), s(_, v), s(v, O), s(O, E), s(v, x), r.m(v, null), s(t, d), s(t, b), s(b, F), s(F, N), s(e, G), s(e, T), s(T, j);
|
|
167
|
+
for (let m = 0; m < p.length; m += 1)
|
|
168
|
+
p[m] && p[m].m(j, null);
|
|
169
|
+
s(T, X), s(T, L), s(L, R), Z || (Q = [
|
|
170
|
+
ee(
|
|
171
|
+
t,
|
|
172
|
+
"click",
|
|
173
|
+
/*click_handler*/
|
|
174
|
+
l[22]
|
|
175
|
+
),
|
|
176
|
+
ee(
|
|
177
|
+
L,
|
|
178
|
+
"click",
|
|
179
|
+
/*click_handler_2*/
|
|
180
|
+
l[25]
|
|
181
|
+
)
|
|
182
|
+
], Z = !0);
|
|
183
|
+
},
|
|
184
|
+
p(o, w) {
|
|
185
|
+
if (w[0] & /*$_*/
|
|
186
|
+
2048 && y !== (y = /*$_*/
|
|
187
|
+
o[11]("filterby") + "") && z(f, y), w[0] & /*$_*/
|
|
188
|
+
2048 && I !== (I = /*$_*/
|
|
189
|
+
o[11]("providers") + "") && z(E, I), q === (q = Y(o)) && r ? r.p(o, w) : (r.d(1), r = q(o), r && (r.c(), r.m(v, null))), w[0] & /*isFilterActive*/
|
|
190
|
+
16 && M !== (M = "TriangleInactive " + /*isFilterActive*/
|
|
191
|
+
(o[4] ? "TriangleActive" : "")) && n(b, "class", M), w[0] & /*isFilterActive*/
|
|
192
|
+
16 && S !== (S = "FilterSelector " + /*isFilterActive*/
|
|
193
|
+
(o[4] ? "FilterSelectorOpen" : "")) && n(t, "class", S), w[0] & /*filterbylogo, vendorArray, filterByVendors*/
|
|
194
|
+
8228) {
|
|
195
|
+
g = re(
|
|
196
|
+
/*vendorArray*/
|
|
197
|
+
o[5]
|
|
198
|
+
);
|
|
199
|
+
let m;
|
|
200
|
+
for (m = 0; m < g.length; m += 1) {
|
|
201
|
+
const K = se(o, g, m);
|
|
202
|
+
p[m] ? p[m].p(K, w) : (p[m] = ce(K), p[m].c(), p[m].m(j, null));
|
|
203
|
+
}
|
|
204
|
+
for (; m < p.length; m += 1)
|
|
205
|
+
p[m].d(1);
|
|
206
|
+
p.length = g.length;
|
|
207
|
+
}
|
|
208
|
+
w[0] & /*$_*/
|
|
209
|
+
2048 && W !== (W = /*$_*/
|
|
210
|
+
o[11]("clear") + "") && z(R, W), w[0] & /*fullSelection, selectedVendorArray, vendorArray*/
|
|
211
|
+
224 && J !== (J = /*fullSelection*/
|
|
212
|
+
o[7] && /*selectedVendorArray*/
|
|
213
|
+
o[6].length != /*vendorArray*/
|
|
214
|
+
o[5].length) && (L.disabled = J), w[0] & /*isFilterActive*/
|
|
215
|
+
16 && H !== (H = "FilterDropdownContainer " + /*isFilterActive*/
|
|
216
|
+
(o[4] ? "FilterOpen" : "")) && n(T, "class", H), w[0] & /*addfilterselector, addsortingselector*/
|
|
217
|
+
3 && U !== (U = "FilterContainer " + /*addfilterselector*/
|
|
218
|
+
(o[0] == "true" && /*addsortingselector*/
|
|
219
|
+
o[1] == "true" ? "FilerContainerSplit" : "")) && n(e, "class", U);
|
|
220
|
+
},
|
|
221
|
+
d(o) {
|
|
222
|
+
o && V(e), r.d(), xe(p, o), Z = !1, de(Q);
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
function Ae(l) {
|
|
227
|
+
let e, t = (
|
|
228
|
+
/*$_*/
|
|
229
|
+
l[11]("500") + ""
|
|
230
|
+
), i;
|
|
231
|
+
return {
|
|
232
|
+
c() {
|
|
233
|
+
e = u("p"), i = D(t), n(e, "class", "SearchLoading");
|
|
234
|
+
},
|
|
235
|
+
m(a, c) {
|
|
236
|
+
B(a, e, c), s(e, i);
|
|
237
|
+
},
|
|
238
|
+
p(a, c) {
|
|
239
|
+
c[0] & /*$_*/
|
|
240
|
+
2048 && t !== (t = /*$_*/
|
|
241
|
+
a[11]("500") + "") && z(i, t);
|
|
242
|
+
},
|
|
243
|
+
d(a) {
|
|
244
|
+
a && V(e);
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
function De(l) {
|
|
249
|
+
let e, t;
|
|
250
|
+
return {
|
|
251
|
+
c() {
|
|
252
|
+
e = u("span"), t = D(
|
|
253
|
+
/*selectionNumber*/
|
|
254
|
+
l[8]
|
|
255
|
+
), n(e, "class", "FilterCounter");
|
|
256
|
+
},
|
|
257
|
+
m(i, a) {
|
|
258
|
+
B(i, e, a), s(e, t);
|
|
259
|
+
},
|
|
260
|
+
p(i, a) {
|
|
261
|
+
a[0] & /*selectionNumber*/
|
|
262
|
+
256 && z(
|
|
263
|
+
t,
|
|
264
|
+
/*selectionNumber*/
|
|
265
|
+
i[8]
|
|
266
|
+
);
|
|
267
|
+
},
|
|
268
|
+
d(i) {
|
|
269
|
+
i && V(e);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
function Oe(l) {
|
|
274
|
+
let e, t = (
|
|
275
|
+
/*$_*/
|
|
276
|
+
l[11]("all") + ""
|
|
277
|
+
), i;
|
|
278
|
+
return {
|
|
279
|
+
c() {
|
|
280
|
+
e = u("span"), i = D(t), n(e, "class", "FilterCounter");
|
|
281
|
+
},
|
|
282
|
+
m(a, c) {
|
|
283
|
+
B(a, e, c), s(e, i);
|
|
284
|
+
},
|
|
285
|
+
p(a, c) {
|
|
286
|
+
c[0] & /*$_*/
|
|
287
|
+
2048 && t !== (t = /*$_*/
|
|
288
|
+
a[11]("all") + "") && z(i, t);
|
|
289
|
+
},
|
|
290
|
+
d(a) {
|
|
291
|
+
a && V(e);
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
function Ne(l) {
|
|
296
|
+
let e, t;
|
|
297
|
+
return {
|
|
298
|
+
c() {
|
|
299
|
+
e = u("img"), ae(e.src, t = /*vendor*/
|
|
300
|
+
l[35].logo) || n(e, "src", t), n(e, "alt", "vendor logo");
|
|
301
|
+
},
|
|
302
|
+
m(i, a) {
|
|
303
|
+
B(i, e, a);
|
|
304
|
+
},
|
|
305
|
+
p(i, a) {
|
|
306
|
+
a[0] & /*vendorArray*/
|
|
307
|
+
32 && !ae(e.src, t = /*vendor*/
|
|
308
|
+
i[35].logo) && n(e, "src", t);
|
|
309
|
+
},
|
|
310
|
+
d(i) {
|
|
311
|
+
i && V(e);
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
function Te(l) {
|
|
316
|
+
let e, t, i = (
|
|
317
|
+
/*vendor*/
|
|
318
|
+
l[35].name + ""
|
|
319
|
+
), a, c, h, _, C = (
|
|
320
|
+
/*vendor*/
|
|
321
|
+
l[35].games.count + ""
|
|
322
|
+
), y, f;
|
|
323
|
+
return {
|
|
324
|
+
c() {
|
|
325
|
+
e = u("div"), t = u("span"), a = D(i), c = A(), h = u("span"), _ = D("("), y = D(C), f = D(")"), n(t, "class", "VendorName"), n(e, "class", "FilterItemLabel");
|
|
326
|
+
},
|
|
327
|
+
m(k, v) {
|
|
328
|
+
B(k, e, v), s(e, t), s(t, a), s(e, c), s(e, h), s(h, _), s(h, y), s(h, f);
|
|
329
|
+
},
|
|
330
|
+
p(k, v) {
|
|
331
|
+
v[0] & /*vendorArray*/
|
|
332
|
+
32 && i !== (i = /*vendor*/
|
|
333
|
+
k[35].name + "") && z(a, i), v[0] & /*vendorArray*/
|
|
334
|
+
32 && C !== (C = /*vendor*/
|
|
335
|
+
k[35].games.count + "") && z(y, C);
|
|
336
|
+
},
|
|
337
|
+
d(k) {
|
|
338
|
+
k && V(e);
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
function ce(l) {
|
|
343
|
+
let e, t, i, a, c, h, _, C, y, f, k, v;
|
|
344
|
+
function O() {
|
|
345
|
+
l[23].call(
|
|
346
|
+
i,
|
|
347
|
+
/*each_value*/
|
|
348
|
+
l[36],
|
|
349
|
+
/*vendor_index*/
|
|
350
|
+
l[37]
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
function I() {
|
|
354
|
+
return (
|
|
355
|
+
/*click_handler_1*/
|
|
356
|
+
l[24](
|
|
357
|
+
/*vendor*/
|
|
358
|
+
l[35]
|
|
359
|
+
)
|
|
360
|
+
);
|
|
361
|
+
}
|
|
362
|
+
function E(b, F) {
|
|
363
|
+
if (
|
|
364
|
+
/*filterbylogo*/
|
|
365
|
+
b[2] === "false"
|
|
366
|
+
) return Te;
|
|
367
|
+
if (
|
|
368
|
+
/*filterbylogo*/
|
|
369
|
+
b[2] === "true"
|
|
370
|
+
) return Ne;
|
|
371
|
+
}
|
|
372
|
+
let x = E(l), d = x && x(l);
|
|
373
|
+
return {
|
|
374
|
+
c() {
|
|
375
|
+
e = u("li"), t = u("label"), i = u("input"), c = A(), h = u("span"), _ = A(), d && d.c(), C = A(), n(i, "type", "checkbox"), n(i, "name", "checkbox"), i.__value = a = /*vendor*/
|
|
376
|
+
l[35].name, ie(i, i.__value), n(h, "class", "FiltersCheckmark"), n(t, "class", "FilterLabel"), n(e, "class", y = "FilterItem " + /*filterbylogo*/
|
|
377
|
+
(l[2] === "true" ? "FilterItemWithLogos" : "")), e.value = f = /*vendor*/
|
|
378
|
+
l[35].name;
|
|
379
|
+
},
|
|
380
|
+
m(b, F) {
|
|
381
|
+
B(b, e, F), s(e, t), s(t, i), i.checked = /*vendor*/
|
|
382
|
+
l[35].isFilterSelected, s(t, c), s(t, h), s(t, _), d && d.m(t, null), s(e, C), k || (v = [
|
|
383
|
+
ee(i, "change", O),
|
|
384
|
+
ee(i, "click", I)
|
|
385
|
+
], k = !0);
|
|
386
|
+
},
|
|
387
|
+
p(b, F) {
|
|
388
|
+
l = b, F[0] & /*vendorArray*/
|
|
389
|
+
32 && a !== (a = /*vendor*/
|
|
390
|
+
l[35].name) && (i.__value = a, ie(i, i.__value)), F[0] & /*vendorArray*/
|
|
391
|
+
32 && (i.checked = /*vendor*/
|
|
392
|
+
l[35].isFilterSelected), x === (x = E(l)) && d ? d.p(l, F) : (d && d.d(1), d = x && x(l), d && (d.c(), d.m(t, null))), F[0] & /*filterbylogo*/
|
|
393
|
+
4 && y !== (y = "FilterItem " + /*filterbylogo*/
|
|
394
|
+
(l[2] === "true" ? "FilterItemWithLogos" : "")) && n(e, "class", y), F[0] & /*vendorArray*/
|
|
395
|
+
32 && f !== (f = /*vendor*/
|
|
396
|
+
l[35].name) && (e.value = f);
|
|
397
|
+
},
|
|
398
|
+
d(b) {
|
|
399
|
+
b && V(e), d && d.d(), k = !1, de(v);
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
function Ee(l) {
|
|
404
|
+
let e;
|
|
405
|
+
function t(c, h) {
|
|
406
|
+
if (
|
|
407
|
+
/*hasErrors*/
|
|
408
|
+
c[10]
|
|
409
|
+
) return Ae;
|
|
410
|
+
if (!/*isLoading*/
|
|
411
|
+
c[9]) return Pe;
|
|
412
|
+
}
|
|
413
|
+
let i = t(l), a = i && i(l);
|
|
414
|
+
return {
|
|
415
|
+
c() {
|
|
416
|
+
e = u("div"), a && a.c();
|
|
417
|
+
},
|
|
418
|
+
m(c, h) {
|
|
419
|
+
B(c, e, h), a && a.m(e, null), l[26](e);
|
|
420
|
+
},
|
|
421
|
+
p(c, h) {
|
|
422
|
+
i === (i = t(c)) && a ? a.p(c, h) : (a && a.d(1), a = i && i(c), a && (a.c(), a.m(e, null)));
|
|
423
|
+
},
|
|
424
|
+
i: le,
|
|
425
|
+
o: le,
|
|
426
|
+
d(c) {
|
|
427
|
+
c && V(e), a && a.d(), l[26](null);
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
function Me(l, e, t) {
|
|
432
|
+
let i;
|
|
433
|
+
be(l, Se, (r) => t(11, i = r));
|
|
434
|
+
let { endpoint: a = "" } = e, { datasource: c = "" } = e, { lang: h = "" } = e, { translationurl: _ = "" } = e, { clientstyling: C = "" } = e, { clientstylingurl: y = "" } = e, { categoryid: f = "" } = e, { addfilterselector: k = "false" } = e, { addsortingselector: v = "false" } = e, { filterbylogo: O = "false" } = e, I = !1, E = window.navigator.userAgent, x = [], d = [], b = {}, F = !1, N = 0, M = !0, S, G = !1;
|
|
435
|
+
Ie({ withLocale: "en", translations: {} });
|
|
436
|
+
const T = () => {
|
|
437
|
+
fetch(_).then((g) => g.json()).then((g) => {
|
|
438
|
+
Object.keys(g).forEach((p) => {
|
|
439
|
+
ne(p, g[p]);
|
|
440
|
+
});
|
|
441
|
+
}).catch((g) => {
|
|
442
|
+
console.log(g);
|
|
443
|
+
});
|
|
444
|
+
};
|
|
445
|
+
Object.keys(oe).forEach((r) => {
|
|
446
|
+
ne(r, oe[r]);
|
|
447
|
+
}), b[f] && (b = { [f]: [] });
|
|
448
|
+
const j = () => {
|
|
449
|
+
t(4, I = !I), window.postMessage({ type: "FilterOpened" }, window.location.href);
|
|
450
|
+
}, X = (r) => (t(9, M = !0), new Promise((g, p) => {
|
|
451
|
+
fetch(r).then((o) => o.json()).then((o) => {
|
|
452
|
+
o = o.items, g(o.items), t(6, d = []);
|
|
453
|
+
let w = JSON.parse(localStorage.getItem("vendorFiltersByCategory"));
|
|
454
|
+
o.forEach((m) => {
|
|
455
|
+
var K;
|
|
456
|
+
w || (w = { currentCategoryId: [] }), ((K = w[f]) == null ? void 0 : K.indexOf(m.id)) >= 0 ? (m.isFilterSelected = !0, d.push(m)) : m.isFilterSelected = !1;
|
|
457
|
+
}), t(5, x = o), W();
|
|
458
|
+
}).catch((o) => {
|
|
459
|
+
console.error(o), t(10, G = !0), p(o);
|
|
460
|
+
}).finally(() => {
|
|
461
|
+
t(9, M = !1);
|
|
462
|
+
});
|
|
463
|
+
})), L = (r) => {
|
|
464
|
+
let g = localStorage.getItem("vendorFiltersByCategory");
|
|
465
|
+
r.isFilterSelected = !r.isFilterSelected, !d.length || d.filter((p) => p.name === r.name).length == 0 ? d.push(r) : t(6, d = d.filter((p) => p.name !== r.name)), g == null ? localStorage.setItem("vendorFiltersByCategory", JSON.stringify(b = {
|
|
466
|
+
[f]: d.map((p) => p.id)
|
|
467
|
+
})) : (g = JSON.parse(g), g[f] = d.map((p) => p.id), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(g))), window.postMessage({ type: "ApplyFilters", origin: "filters" }, window.location.href), W();
|
|
468
|
+
}, W = () => {
|
|
469
|
+
t(7, F = d.length === x.length || d.length == 0), t(8, N = d.length);
|
|
470
|
+
}, R = () => {
|
|
471
|
+
const r = new URL(`${a}/v1/casino/vendors`);
|
|
472
|
+
t(4, I = !1), r.searchParams.append("fields", "id,name,logo,subVendors,games"), r.searchParams.append("language", h), r.searchParams.append("datasource", c), r.searchParams.append("platform", ve(E)), (f.match(/\$/g) || []).length > 1 ? (r.searchParams.append("filter", `games(subGroups=${f})`), r.searchParams.append("subVendors", `games(subGroups=${f})`)) : r.searchParams.append("filter", `games(groups=${f})`), X(r);
|
|
473
|
+
}, J = () => {
|
|
474
|
+
t(6, d = []), localStorage.setItem("vendorFiltersByCategory", JSON.stringify(b = {
|
|
475
|
+
[f]: d.map((r) => r.id)
|
|
476
|
+
})), x.forEach((r) => r.isFilterSelected = !1), t(5, x), window.postMessage({ type: "ApplyFilters" }, window.location.href), t(7, F = !0), t(4, I = !1);
|
|
477
|
+
}, H = (r) => {
|
|
478
|
+
r.data.type == "SortingOpened" && t(4, I = !1);
|
|
479
|
+
};
|
|
480
|
+
ye(() => (window.addEventListener("message", H, !1), () => {
|
|
481
|
+
window.removeEventListener("message", H);
|
|
482
|
+
}));
|
|
483
|
+
const U = () => j();
|
|
484
|
+
function Z(r, g) {
|
|
485
|
+
r[g].isFilterSelected = this.checked, t(5, x);
|
|
486
|
+
}
|
|
487
|
+
const Q = (r) => L(r), Y = () => J();
|
|
488
|
+
function q(r) {
|
|
489
|
+
we[r ? "unshift" : "push"](() => {
|
|
490
|
+
S = r, t(3, S);
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
return l.$$set = (r) => {
|
|
494
|
+
"endpoint" in r && t(15, a = r.endpoint), "datasource" in r && t(16, c = r.datasource), "lang" in r && t(17, h = r.lang), "translationurl" in r && t(18, _ = r.translationurl), "clientstyling" in r && t(19, C = r.clientstyling), "clientstylingurl" in r && t(20, y = r.clientstylingurl), "categoryid" in r && t(21, f = r.categoryid), "addfilterselector" in r && t(0, k = r.addfilterselector), "addsortingselector" in r && t(1, v = r.addsortingselector), "filterbylogo" in r && t(2, O = r.filterbylogo);
|
|
495
|
+
}, l.$$.update = () => {
|
|
496
|
+
l.$$.dirty[0] & /*endpoint, datasource, categoryid, filterbylogo*/
|
|
497
|
+
2195460 && a && c && f && O && R(), l.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
498
|
+
524296 && C && S && _e(S, C), l.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
499
|
+
1048584 && y && S && Ce(S, y), l.$$.dirty[0] & /*customStylingContainer*/
|
|
500
|
+
8 && S && ke(S, "Casino.Style"), l.$$.dirty[0] & /*translationurl*/
|
|
501
|
+
262144 && _ && T();
|
|
502
|
+
}, [
|
|
503
|
+
k,
|
|
504
|
+
v,
|
|
505
|
+
O,
|
|
506
|
+
S,
|
|
507
|
+
I,
|
|
508
|
+
x,
|
|
509
|
+
d,
|
|
510
|
+
F,
|
|
511
|
+
N,
|
|
512
|
+
M,
|
|
513
|
+
G,
|
|
514
|
+
i,
|
|
515
|
+
j,
|
|
516
|
+
L,
|
|
517
|
+
J,
|
|
518
|
+
a,
|
|
519
|
+
c,
|
|
520
|
+
h,
|
|
521
|
+
_,
|
|
522
|
+
C,
|
|
523
|
+
y,
|
|
524
|
+
f,
|
|
525
|
+
U,
|
|
526
|
+
Z,
|
|
527
|
+
Q,
|
|
528
|
+
Y,
|
|
529
|
+
q
|
|
530
|
+
];
|
|
531
|
+
}
|
|
532
|
+
class je extends ge {
|
|
533
|
+
constructor(e) {
|
|
534
|
+
super(), ue(
|
|
535
|
+
this,
|
|
536
|
+
e,
|
|
537
|
+
Me,
|
|
538
|
+
Ee,
|
|
539
|
+
he,
|
|
540
|
+
{
|
|
541
|
+
endpoint: 15,
|
|
542
|
+
datasource: 16,
|
|
543
|
+
lang: 17,
|
|
544
|
+
translationurl: 18,
|
|
545
|
+
clientstyling: 19,
|
|
546
|
+
clientstylingurl: 20,
|
|
547
|
+
categoryid: 21,
|
|
548
|
+
addfilterselector: 0,
|
|
549
|
+
addsortingselector: 1,
|
|
550
|
+
filterbylogo: 2
|
|
551
|
+
},
|
|
552
|
+
Le,
|
|
553
|
+
[-1, -1]
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
get endpoint() {
|
|
557
|
+
return this.$$.ctx[15];
|
|
558
|
+
}
|
|
559
|
+
set endpoint(e) {
|
|
560
|
+
this.$$set({ endpoint: e }), P();
|
|
561
|
+
}
|
|
562
|
+
get datasource() {
|
|
563
|
+
return this.$$.ctx[16];
|
|
564
|
+
}
|
|
565
|
+
set datasource(e) {
|
|
566
|
+
this.$$set({ datasource: e }), P();
|
|
567
|
+
}
|
|
568
|
+
get lang() {
|
|
569
|
+
return this.$$.ctx[17];
|
|
570
|
+
}
|
|
571
|
+
set lang(e) {
|
|
572
|
+
this.$$set({ lang: e }), P();
|
|
573
|
+
}
|
|
574
|
+
get translationurl() {
|
|
575
|
+
return this.$$.ctx[18];
|
|
576
|
+
}
|
|
577
|
+
set translationurl(e) {
|
|
578
|
+
this.$$set({ translationurl: e }), P();
|
|
579
|
+
}
|
|
580
|
+
get clientstyling() {
|
|
581
|
+
return this.$$.ctx[19];
|
|
582
|
+
}
|
|
583
|
+
set clientstyling(e) {
|
|
584
|
+
this.$$set({ clientstyling: e }), P();
|
|
585
|
+
}
|
|
586
|
+
get clientstylingurl() {
|
|
587
|
+
return this.$$.ctx[20];
|
|
588
|
+
}
|
|
589
|
+
set clientstylingurl(e) {
|
|
590
|
+
this.$$set({ clientstylingurl: e }), P();
|
|
591
|
+
}
|
|
592
|
+
get categoryid() {
|
|
593
|
+
return this.$$.ctx[21];
|
|
594
|
+
}
|
|
595
|
+
set categoryid(e) {
|
|
596
|
+
this.$$set({ categoryid: e }), P();
|
|
597
|
+
}
|
|
598
|
+
get addfilterselector() {
|
|
599
|
+
return this.$$.ctx[0];
|
|
600
|
+
}
|
|
601
|
+
set addfilterselector(e) {
|
|
602
|
+
this.$$set({ addfilterselector: e }), P();
|
|
603
|
+
}
|
|
604
|
+
get addsortingselector() {
|
|
605
|
+
return this.$$.ctx[1];
|
|
606
|
+
}
|
|
607
|
+
set addsortingselector(e) {
|
|
608
|
+
this.$$set({ addsortingselector: e }), P();
|
|
609
|
+
}
|
|
610
|
+
get filterbylogo() {
|
|
611
|
+
return this.$$.ctx[2];
|
|
612
|
+
}
|
|
613
|
+
set filterbylogo(e) {
|
|
614
|
+
this.$$set({ filterbylogo: e }), P();
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
me(je, { endpoint: {}, datasource: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, categoryid: {}, addfilterselector: {}, addsortingselector: {}, filterbylogo: {} }, [], [], !0);
|
|
618
|
+
export {
|
|
619
|
+
je as default
|
|
620
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CGBzMgQt.cjs");function Q({withLocale:r,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function R(r,t){e.addMessages(r,t)}const U={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Sağlayıcılar:",filterby:"Filtrele:",all:"Hepsi",clear:"Tümünü Temizle"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function X(r){e.append_styles(r,"svelte-1v7rv6n",':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--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{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{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{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{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::-webkit-scrollbar{display:none}.FilterItem label{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 input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--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:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}')}function Z(r,t,l){const a=r.slice();return a[35]=t[l],a[36]=t,a[37]=l,a}function Y(r){let t,l,a,n,s,g,v,_,F=r[11]("filterby")+"",p,w,b,I,x=r[11]("providers")+"",A,C,c,h,m,L,O,k,z,P,D,J,S,T=r[11]("clear")+"",B,N,M,E,V,q;function H(o,y){return o[7]?te:ee}let j=H(r),i=j(r),f=e.ensure_array_like(r[5]),d=[];for(let o=0;o<f.length;o+=1)d[o]=G(Z(r,f,o));return{c(){t=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("path"),g=e.space(),v=e.element("div"),_=e.element("span"),p=e.text(F),w=e.space(),b=e.element("div"),I=e.element("span"),A=e.text(x),C=e.space(),i.c(),c=e.space(),h=e.element("span"),m=e.svg_element("svg"),L=e.svg_element("path"),z=e.space(),P=e.element("div"),D=e.element("ul");for(let o=0;o<d.length;o+=1)d[o].c();J=e.space(),S=e.element("button"),B=e.text(T),e.attr(s,"id","noun_filter_736223"),e.attr(s,"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"),e.attr(s,"transform","translate(-5 -6.2)"),e.attr(s,"fill","#fff"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","16"),e.attr(n,"height","16"),e.attr(n,"viewBox","0 0 16 16"),e.attr(_,"class","FilterName"),e.attr(b,"class","FilterValueContainer"),e.attr(v,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(L,"id","arrow"),e.attr(L,"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"),e.attr(L,"transform","translate(-274.511 -441.088)"),e.attr(L,"fill","#d1d1d1"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"width","14"),e.attr(m,"height","6.835"),e.attr(m,"viewBox","0 0 14 6.835"),e.attr(h,"class",O="TriangleInactive "+(r[4]?"TriangleActive":"")),e.attr(l,"class",k="FilterSelector "+(r[4]?"FilterSelectorOpen":"")),e.attr(D,"class","FilterDropdown"),e.attr(S,"class","ClearFilters"),S.disabled=N=r[7]&&r[6].length!=r[5].length,e.attr(P,"class",M="FilterDropdownContainer "+(r[4]?"FilterOpen":"")),e.attr(t,"class",E="FilterContainer "+(r[0]=="true"&&r[1]=="true"?"FilerContainerSplit":""))},m(o,y){e.insert(o,t,y),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,s),e.append(a,g),e.append(a,v),e.append(v,_),e.append(_,p),e.append(v,w),e.append(v,b),e.append(b,I),e.append(I,A),e.append(b,C),i.m(b,null),e.append(l,c),e.append(l,h),e.append(h,m),e.append(m,L),e.append(t,z),e.append(t,P),e.append(P,D);for(let u=0;u<d.length;u+=1)d[u]&&d[u].m(D,null);e.append(P,J),e.append(P,S),e.append(S,B),V||(q=[e.listen(l,"click",r[22]),e.listen(S,"click",r[25])],V=!0)},p(o,y){if(y[0]&2048&&F!==(F=o[11]("filterby")+"")&&e.set_data(p,F),y[0]&2048&&x!==(x=o[11]("providers")+"")&&e.set_data(A,x),j===(j=H(o))&&i?i.p(o,y):(i.d(1),i=j(o),i&&(i.c(),i.m(b,null))),y[0]&16&&O!==(O="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(h,"class",O),y[0]&16&&k!==(k="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",k),y[0]&8228){f=e.ensure_array_like(o[5]);let u;for(u=0;u<f.length;u+=1){const W=Z(o,f,u);d[u]?d[u].p(W,y):(d[u]=G(W),d[u].c(),d[u].m(D,null))}for(;u<d.length;u+=1)d[u].d(1);d.length=f.length}y[0]&2048&&T!==(T=o[11]("clear")+"")&&e.set_data(B,T),y[0]&224&&N!==(N=o[7]&&o[6].length!=o[5].length)&&(S.disabled=N),y[0]&16&&M!==(M="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(P,"class",M),y[0]&3&&E!==(E="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",E)},d(o){o&&e.detach(t),i.d(),e.destroy_each(d,o),V=!1,e.run_all(q)}}}function $(r){let t,l=r[11]("500")+"",a;return{c(){t=e.element("p"),a=e.text(l),e.attr(t,"class","SearchLoading")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("500")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function ee(r){let t,l;return{c(){t=e.element("span"),l=e.text(r[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,l)},p(a,n){n[0]&256&&e.set_data(l,a[8])},d(a){a&&e.detach(t)}}}function te(r){let t,l=r[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(l),e.attr(t,"class","FilterCounter")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("all")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function le(r){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=r[35].logo)||e.attr(t,"src",l),e.attr(t,"alt","vendor logo")},m(a,n){e.insert(a,t,n)},p(a,n){n[0]&32&&!e.src_url_equal(t.src,l=a[35].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function re(r){let t,l,a=r[35].name+"",n,s,g,v,_=r[35].games.count+"",F,p;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),s=e.space(),g=e.element("span"),v=e.text("("),F=e.text(_),p=e.text(")"),e.attr(l,"class","VendorName"),e.attr(t,"class","FilterItemLabel")},m(w,b){e.insert(w,t,b),e.append(t,l),e.append(l,n),e.append(t,s),e.append(t,g),e.append(g,v),e.append(g,F),e.append(g,p)},p(w,b){b[0]&32&&a!==(a=w[35].name+"")&&e.set_data(n,a),b[0]&32&&_!==(_=w[35].games.count+"")&&e.set_data(F,_)},d(w){w&&e.detach(t)}}}function G(r){let t,l,a,n,s,g,v,_,F,p,w,b;function I(){r[23].call(a,r[36],r[37])}function x(){return r[24](r[35])}function A(h,m){if(h[2]==="false")return re;if(h[2]==="true")return le}let C=A(r),c=C&&C(r);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),g=e.element("span"),v=e.space(),c&&c.c(),_=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=r[35].name,e.set_input_value(a,a.__value),e.attr(g,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",F="FilterItem "+(r[2]==="true"?"FilterItemWithLogos":"")),t.value=p=r[35].name},m(h,m){e.insert(h,t,m),e.append(t,l),e.append(l,a),a.checked=r[35].isFilterSelected,e.append(l,s),e.append(l,g),e.append(l,v),c&&c.m(l,null),e.append(t,_),w||(b=[e.listen(a,"change",I),e.listen(a,"click",x)],w=!0)},p(h,m){r=h,m[0]&32&&n!==(n=r[35].name)&&(a.__value=n,e.set_input_value(a,a.__value)),m[0]&32&&(a.checked=r[35].isFilterSelected),C===(C=A(r))&&c?c.p(r,m):(c&&c.d(1),c=C&&C(r),c&&(c.c(),c.m(l,null))),m[0]&4&&F!==(F="FilterItem "+(r[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",F),m[0]&32&&p!==(p=r[35].name)&&(t.value=p)},d(h){h&&e.detach(t),c&&c.d(),w=!1,e.run_all(b)}}}function ie(r){let t;function l(s,g){if(s[10])return $;if(!s[9])return Y}let a=l(r),n=a&&a(r);return{c(){t=e.element("div"),n&&n.c()},m(s,g){e.insert(s,t,g),n&&n.m(t,null),r[26](t)},p(s,g){a===(a=l(s))&&n?n.p(s,g):(n&&n.d(1),n=a&&a(s),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),n&&n.d(),r[26](null)}}}function ae(r,t,l){let a;e.component_subscribe(r,e.$format,i=>l(11,a=i));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:g=""}=t,{translationurl:v=""}=t,{clientstyling:_=""}=t,{clientstylingurl:F=""}=t,{categoryid:p=""}=t,{addfilterselector:w="false"}=t,{addsortingselector:b="false"}=t,{filterbylogo:I="false"}=t,x=!1,A=window.navigator.userAgent,C=[],c=[],h={},m=!1,L=0,O=!0,k,z=!1;Q({withLocale:"en",translations:{}});const P=()=>{fetch(v).then(f=>f.json()).then(f=>{Object.keys(f).forEach(d=>{R(d,f[d])})}).catch(f=>{console.log(f)})};Object.keys(U).forEach(i=>{R(i,U[i])}),h[p]&&(h={[p]:[]});const D=()=>{l(4,x=!x),window.postMessage({type:"FilterOpened"},window.location.href)},J=i=>(l(9,O=!0),new Promise((f,d)=>{fetch(i).then(o=>o.json()).then(o=>{o=o.items,f(o.items),l(6,c=[]);let y=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));o.forEach(u=>{var W;y||(y={currentCategoryId:[]}),((W=y[p])==null?void 0:W.indexOf(u.id))>=0?(u.isFilterSelected=!0,c.push(u)):u.isFilterSelected=!1}),l(5,C=o),T()}).catch(o=>{console.error(o),l(10,z=!0),d(o)}).finally(()=>{l(9,O=!1)})})),S=i=>{let f=localStorage.getItem("vendorFiltersByCategory");i.isFilterSelected=!i.isFilterSelected,!c.length||c.filter(d=>d.name===i.name).length==0?c.push(i):l(6,c=c.filter(d=>d.name!==i.name)),f==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(h={[p]:c.map(d=>d.id)})):(f=JSON.parse(f),f[p]=c.map(d=>d.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(f))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),T()},T=()=>{l(7,m=c.length===C.length||c.length==0),l(8,L=c.length)},B=()=>{const i=new URL(`${n}/v1/casino/vendors`);l(4,x=!1),i.searchParams.append("fields","id,name,logo,subVendors,games"),i.searchParams.append("language",g),i.searchParams.append("datasource",s),i.searchParams.append("platform",e.getDevice(A)),(p.match(/\$/g)||[]).length>1?(i.searchParams.append("filter",`games(subGroups=${p})`),i.searchParams.append("subVendors",`games(subGroups=${p})`)):i.searchParams.append("filter",`games(groups=${p})`),J(i)},N=()=>{l(6,c=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(h={[p]:c.map(i=>i.id)})),C.forEach(i=>i.isFilterSelected=!1),l(5,C),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,m=!0),l(4,x=!1)},M=i=>{i.data.type=="SortingOpened"&&l(4,x=!1)};e.onMount(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)}));const E=()=>D();function V(i,f){i[f].isFilterSelected=this.checked,l(5,C)}const q=i=>S(i),H=()=>N();function j(i){e.binding_callbacks[i?"unshift":"push"](()=>{k=i,l(3,k)})}return r.$$set=i=>{"endpoint"in i&&l(15,n=i.endpoint),"datasource"in i&&l(16,s=i.datasource),"lang"in i&&l(17,g=i.lang),"translationurl"in i&&l(18,v=i.translationurl),"clientstyling"in i&&l(19,_=i.clientstyling),"clientstylingurl"in i&&l(20,F=i.clientstylingurl),"categoryid"in i&&l(21,p=i.categoryid),"addfilterselector"in i&&l(0,w=i.addfilterselector),"addsortingselector"in i&&l(1,b=i.addsortingselector),"filterbylogo"in i&&l(2,I=i.filterbylogo)},r.$$.update=()=>{r.$$.dirty[0]&2195460&&n&&s&&p&&I&&B(),r.$$.dirty[0]&524296&&_&&k&&e.setClientStyling(k,_),r.$$.dirty[0]&1048584&&F&&k&&e.setClientStylingURL(k,F),r.$$.dirty[0]&8&&k&&e.setStreamStyling(k,"Casino.Style"),r.$$.dirty[0]&262144&&v&&P()},[w,b,I,k,x,C,c,m,L,O,z,a,D,S,N,n,s,g,v,_,F,p,E,V,q,H,j]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ae,ie,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2},X,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get categoryid(){return this.$$.ctx[21]}set categoryid(t){this.$$set({categoryid:t}),e.flush()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(t){this.$$set({addfilterselector:t}),e.flush()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(t){this.$$set({addsortingselector:t}),e.flush()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(t){this.$$set({filterbylogo:t}),e.flush()}}e.create_custom_element(K,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{}},[],[],!0);exports.default=K;
|