@everymatrix/casino-page-nd 1.52.2 → 1.52.4

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 (33) hide show
  1. package/components/{CasinoFavoritesSectionNd-D9EgYtQr.cjs → CasinoFavoritesSectionNd-DQqjc8Wd.cjs} +1 -1
  2. package/components/{CasinoFavoritesSectionNd-DinaCljR.js → CasinoFavoritesSectionNd-NavJ5G0E.js} +1 -1
  3. package/components/CasinoFilter-DJqRaz4Q.cjs +1 -0
  4. package/components/{CasinoFilter-DKjI7P-Q.js → CasinoFilter-mbUMCElM.js} +2 -2
  5. package/components/{CasinoGamesCategorySectionNd-C7W3KXyj.cjs → CasinoGamesCategorySectionNd-BUaP-R8q.cjs} +1 -1
  6. package/components/{CasinoGamesCategorySectionNd-XS-RPS1S.js → CasinoGamesCategorySectionNd-DbFgMvAQ.js} +1 -1
  7. package/components/{CasinoLastPlayedSectionNd-CFnfQfPn.js → CasinoLastPlayedSectionNd-CsnvGVxc.js} +1 -1
  8. package/components/{CasinoLastPlayedSectionNd-Cl2OF978.cjs → CasinoLastPlayedSectionNd-Dzzp6Q5U.cjs} +1 -1
  9. package/components/{CasinoMostPlayedSectionNd-BFIAC7be.js → CasinoMostPlayedSectionNd-B9YKl4yB.js} +1 -1
  10. package/components/{CasinoMostPlayedSectionNd-BmjBUT8I.cjs → CasinoMostPlayedSectionNd-DQVuxXZU.cjs} +1 -1
  11. package/components/{CasinoMyGamesNd-5ecOgc01.js → CasinoMyGamesNd-ChtvJLWX.js} +40 -40
  12. package/components/{CasinoMyGamesNd-BkTRCPzI.cjs → CasinoMyGamesNd-D4fElK7C.cjs} +1 -1
  13. package/components/CasinoPageNd-D6w-jb2t.cjs +1 -0
  14. package/components/{CasinoPageNd-CjP41I4W.js → CasinoPageNd-DhFHO5Eo.js} +16 -4
  15. package/components/{CasinoSearchNd-D0h6uEt9.js → CasinoSearchNd-CjLT8glO.js} +1 -1
  16. package/components/{CasinoSearchNd-CXLc43xt.cjs → CasinoSearchNd-TLqLQzZi.cjs} +1 -1
  17. package/components/CasinoWinners-ClikijEr.js +971 -0
  18. package/components/CasinoWinners-DXdWQq1j.cjs +1 -0
  19. package/es2015/casino-page-nd.cjs +1 -1
  20. package/es2015/casino-page-nd.js +1 -1
  21. package/package.json +1 -1
  22. package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
  23. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  24. package/stencil/casino-play-random-game-B5g4-G4Z.js +577 -0
  25. package/stencil/casino-play-random-game-CQe5iDJ8.cjs +371 -0
  26. package/stencil/index-eac6b960-BaE9i06M.cjs +1 -0
  27. package/stencil/index-eac6b960-DXIu1GM6.js +579 -0
  28. package/components/CasinoFilter-DPnwUm9Y.cjs +0 -1
  29. package/components/CasinoPageNd-Nsb7Hduw.cjs +0 -1
  30. package/components/CasinoWinners-CSgsVlTu.cjs +0 -1
  31. package/components/CasinoWinners-dnaElXcd.js +0 -908
  32. package/stencil/index-Dyvby5gX.cjs +0 -1
  33. package/stencil/index-l0sNRNKZ.js +0 -1
@@ -0,0 +1,579 @@
1
+ var x = (e, t, n) => new Promise((s, r) => {
2
+ var a = (o) => {
3
+ try {
4
+ i(n.next(o));
5
+ } catch (c) {
6
+ r(c);
7
+ }
8
+ }, l = (o) => {
9
+ try {
10
+ i(n.throw(o));
11
+ } catch (c) {
12
+ r(c);
13
+ }
14
+ }, i = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(a, l);
15
+ i((n = n.apply(e, t)).next());
16
+ });
17
+ const ye = "casino-play-random-game", _ = (
18
+ /* casino-play-random-game */
19
+ { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !0, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !1, element: !1, event: !1, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !1, propMutable: !1, propNumber: !1, propString: !0, reflect: !0, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !0, slot: !1, slotChildNodesFix: !1, slotRelocation: !1, state: !0, style: !0, svg: !1, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !1, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !0, vdomRender: !0, vdomStyle: !1, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
20
+ );
21
+ var me = Object.defineProperty, Se = (e, t) => {
22
+ for (var n in t)
23
+ me(e, n, { get: t[n], enumerable: !0 });
24
+ }, C = /* @__PURE__ */ new WeakMap(), E = (e) => C.get(e), rt = (e, t) => C.set(t.$lazyInstance$ = e, t), Ee = (e, t) => {
25
+ const n = {
26
+ $flags$: 0,
27
+ $hostElement$: e,
28
+ $cmpMeta$: t,
29
+ $instanceValues$: /* @__PURE__ */ new Map()
30
+ };
31
+ return n.$onReadyPromise$ = new Promise((s) => n.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], C.set(e, n);
32
+ }, G = (e, t) => t in e, k = (e, t) => (0, console.error)(e, t), I = /* @__PURE__ */ new Map(), be = (e, t, n) => {
33
+ const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
34
+ if (!r)
35
+ return;
36
+ const a = I.get(r);
37
+ if (a)
38
+ return a[s];
39
+ {
40
+ const l = (i) => (I.set(r, i), i[s]);
41
+ switch (r) {
42
+ case "casino-play-random-game":
43
+ return import(
44
+ /* webpackMode: "lazy" */
45
+ "./casino-play-random-game-B5g4-G4Z.js"
46
+ ).then(l, k);
47
+ }
48
+ }
49
+ return import(
50
+ /* @vite-ignore */
51
+ /* webpackInclude: /\.entry\.js$/ */
52
+ /* webpackExclude: /\.system\.entry\.js$/ */
53
+ /* webpackMode: "lazy" */
54
+ `./${r}.entry.js`
55
+ ).then((l) => (I.set(r, l), l[s]), k);
56
+ }, O = /* @__PURE__ */ new Map(), ke = "{visibility:hidden}.hydrated{visibility:inherit}", ee = "slot-fb{display:contents}slot-fb[hidden]{display:none}", U = typeof window != "undefined" ? window : {}, m = U.document || { head: {} }, v = {
57
+ $flags$: 0,
58
+ $resourcesUrl$: "",
59
+ jmp: (e) => e(),
60
+ raf: (e) => requestAnimationFrame(e),
61
+ ael: (e, t, n, s) => e.addEventListener(t, n, s),
62
+ rel: (e, t, n, s) => e.removeEventListener(t, n, s),
63
+ ce: (e, t) => new CustomEvent(e, t)
64
+ }, we = (e) => Promise.resolve(e), te = /* @__PURE__ */ (() => {
65
+ try {
66
+ return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
67
+ } catch (e) {
68
+ }
69
+ return !1;
70
+ })(), D = !1, Q = [], se = [], Te = (e, t) => (n) => {
71
+ e.push(n), D || (D = !0, v.$flags$ & 4 ? F(H) : v.raf(H));
72
+ }, Y = (e) => {
73
+ for (let t = 0; t < e.length; t++)
74
+ try {
75
+ e[t](performance.now());
76
+ } catch (n) {
77
+ k(n);
78
+ }
79
+ e.length = 0;
80
+ }, H = () => {
81
+ Y(Q), Y(se), (D = Q.length > 0) && v.raf(H);
82
+ }, F = (e) => we().then(e), xe = /* @__PURE__ */ Te(se), J = {}, Le = (e) => e != null, q = (e) => (e = typeof e, e === "object" || e === "function");
83
+ function ne(e) {
84
+ var t, n, s;
85
+ return (s = (n = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : n.getAttribute("content")) != null ? s : void 0;
86
+ }
87
+ var Ae = {};
88
+ Se(Ae, {
89
+ err: () => re,
90
+ map: () => Pe,
91
+ ok: () => R,
92
+ unwrap: () => _e,
93
+ unwrapErr: () => Oe
94
+ });
95
+ var R = (e) => ({
96
+ isOk: !0,
97
+ isErr: !1,
98
+ value: e
99
+ }), re = (e) => ({
100
+ isOk: !1,
101
+ isErr: !0,
102
+ value: e
103
+ });
104
+ function Pe(e, t) {
105
+ if (e.isOk) {
106
+ const n = t(e.value);
107
+ return n instanceof Promise ? n.then((s) => R(s)) : R(n);
108
+ }
109
+ if (e.isErr) {
110
+ const n = e.value;
111
+ return re(n);
112
+ }
113
+ throw "should never get here";
114
+ }
115
+ var _e = (e) => {
116
+ if (e.isOk)
117
+ return e.value;
118
+ throw e.value;
119
+ }, Oe = (e) => {
120
+ if (e.isErr)
121
+ return e.value;
122
+ throw e.value;
123
+ }, S = (e, t = "") => () => {
124
+ }, je = (e, t) => () => {
125
+ }, Ue = (e, t, ...n) => {
126
+ let s = null, r = null, a = !1, l = !1;
127
+ const i = [], o = ($) => {
128
+ for (let f = 0; f < $.length; f++)
129
+ s = $[f], Array.isArray(s) ? o(s) : s != null && typeof s != "boolean" && ((a = typeof e != "function" && !q(s)) && (s = String(s)), a && l ? i[i.length - 1].$text$ += s : i.push(a ? z(null, s) : s), l = a);
130
+ };
131
+ if (o(n), t) {
132
+ t.key && (r = t.key);
133
+ {
134
+ const $ = t.className || t.class;
135
+ $ && (t.class = typeof $ != "object" ? $ : Object.keys($).filter((f) => $[f]).join(" "));
136
+ }
137
+ }
138
+ const c = z(e, null);
139
+ return c.$attrs$ = t, i.length > 0 && (c.$children$ = i), c.$key$ = r, c;
140
+ }, z = (e, t) => {
141
+ const n = {
142
+ $flags$: 0,
143
+ $tag$: e,
144
+ $text$: t,
145
+ $elm$: null,
146
+ $children$: null
147
+ };
148
+ return n.$attrs$ = null, n.$key$ = null, n;
149
+ }, Ie = {}, De = (e) => e && e.$tag$ === Ie, He = (e, t) => e != null && !q(e) && t & 1 ? String(e) : e, lt = (e) => E(e).$hostElement$, Re = (e, t, n) => {
150
+ const s = v.ce(t, n);
151
+ return e.dispatchEvent(s), s;
152
+ }, K = /* @__PURE__ */ new WeakMap(), ze = (e, t, n) => {
153
+ let s = O.get(e);
154
+ te && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, O.set(e, s);
155
+ }, Be = (e, t, n) => {
156
+ var s;
157
+ const r = le(t), a = O.get(r);
158
+ if (e = e.nodeType === 11 ? e : m, a)
159
+ if (typeof a == "string") {
160
+ e = e.head || e;
161
+ let l = K.get(e), i;
162
+ if (l || K.set(e, l = /* @__PURE__ */ new Set()), !l.has(r)) {
163
+ {
164
+ i = m.createElement("style"), i.innerHTML = a;
165
+ const o = (s = v.$nonce$) != null ? s : ne(m);
166
+ if (o != null && i.setAttribute("nonce", o), !(t.$flags$ & 1))
167
+ if (e.nodeName === "HEAD") {
168
+ const c = e.querySelectorAll("link[rel=preconnect]"), $ = c.length > 0 ? c[c.length - 1].nextSibling : e.querySelector("style");
169
+ e.insertBefore(i, $);
170
+ } else if ("host" in e)
171
+ if (te) {
172
+ const c = new CSSStyleSheet();
173
+ c.replaceSync(a), e.adoptedStyleSheets = [c, ...e.adoptedStyleSheets];
174
+ } else {
175
+ const c = e.querySelector("style");
176
+ c ? c.innerHTML = a + c.innerHTML : e.prepend(i);
177
+ }
178
+ else
179
+ e.append(i);
180
+ t.$flags$ & 1 && e.nodeName !== "HEAD" && e.insertBefore(i, null);
181
+ }
182
+ t.$flags$ & 4 && (i.innerHTML += ee), l && l.add(r);
183
+ }
184
+ } else e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
185
+ return r;
186
+ }, Ce = (e) => {
187
+ const t = e.$cmpMeta$, n = e.$hostElement$, s = t.$flags$, r = S("attachStyles", t.$tagName$), a = Be(
188
+ n.shadowRoot ? n.shadowRoot : n.getRootNode(),
189
+ t
190
+ );
191
+ s & 10 && s & 2 && (n["s-sc"] = a, n.classList.add(a + "-h")), r();
192
+ }, le = (e, t) => "sc-" + e.$tagName$, Z = (e, t, n, s, r, a) => {
193
+ if (n !== s) {
194
+ let l = G(e, t), i = t.toLowerCase();
195
+ if (t === "class") {
196
+ const o = e.classList, c = N(n), $ = N(s);
197
+ o.remove(...c.filter((f) => f && !$.includes(f))), o.add(...$.filter((f) => f && !c.includes(f)));
198
+ } else if (t !== "key") if (t === "ref")
199
+ s && s(e);
200
+ else if (!l && t[0] === "o" && t[1] === "n") {
201
+ if (t[2] === "-" ? t = t.slice(3) : G(U, i) ? t = i.slice(2) : t = i[2] + t.slice(3), n || s) {
202
+ const o = t.endsWith(ae);
203
+ t = t.replace(qe, ""), n && v.rel(e, t, n, o), s && v.ael(e, t, s, o);
204
+ }
205
+ } else {
206
+ const o = q(s);
207
+ if ((l || o && s !== null) && !r)
208
+ try {
209
+ if (e.tagName.includes("-"))
210
+ e[t] = s;
211
+ else {
212
+ const c = s == null ? "" : s;
213
+ t === "list" ? l = !1 : (n == null || e[t] != c) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = c : e.setAttribute(t, c));
214
+ }
215
+ } catch (c) {
216
+ }
217
+ s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!l || a & 4 || r) && !o && (s = s === !0 ? "" : s, e.setAttribute(t, s));
218
+ }
219
+ }
220
+ }, Fe = /\s/, N = (e) => e ? e.split(Fe) : [], ae = "Capture", qe = new RegExp(ae + "$"), oe = (e, t, n) => {
221
+ const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || J, a = t.$attrs$ || J;
222
+ for (const l of V(Object.keys(r)))
223
+ l in a || Z(s, l, r[l], void 0, n, t.$flags$);
224
+ for (const l of V(Object.keys(a)))
225
+ Z(s, l, r[l], a[l], n, t.$flags$);
226
+ };
227
+ function V(e) {
228
+ return e.includes("ref") ? (
229
+ // we need to sort these to ensure that `'ref'` is the last attr
230
+ [...e.filter((t) => t !== "ref"), "ref"]
231
+ ) : (
232
+ // no need to sort, return the original array
233
+ e
234
+ );
235
+ }
236
+ var A, W, ie = !1, ce = !1, j = (e, t, n, s) => {
237
+ const r = t.$children$[n];
238
+ let a = 0, l, i;
239
+ if (r.$text$ !== null)
240
+ l = r.$elm$ = m.createTextNode(r.$text$);
241
+ else if (l = r.$elm$ = m.createElement(
242
+ !ie && _.slotRelocation && r.$flags$ & 2 ? "slot-fb" : r.$tag$
243
+ ), oe(null, r, ce), !!l.getRootNode().querySelector("body") && _.scoped && Le(A) && l["s-si"] !== A && l.classList.add(l["s-si"] = A), r.$children$)
244
+ for (a = 0; a < r.$children$.length; ++a)
245
+ i = j(e, r, a), i && l.appendChild(i);
246
+ return l["s-hn"] = W, l;
247
+ }, $e = (e, t, n, s, r, a) => {
248
+ let l = e, i;
249
+ for (l.shadowRoot && l.tagName === W && (l = l.shadowRoot); r <= a; ++r)
250
+ s[r] && (i = j(null, n, r), i && (s[r].$elm$ = i, P(l, i, t)));
251
+ }, fe = (e, t, n) => {
252
+ for (let s = t; s <= n; ++s) {
253
+ const r = e[s];
254
+ if (r) {
255
+ const a = r.$elm$;
256
+ de(r), a && a.remove();
257
+ }
258
+ }
259
+ }, We = (e, t, n, s, r = !1) => {
260
+ let a = 0, l = 0, i = 0, o = 0, c = t.length - 1, $ = t[0], f = t[c], d = s.length - 1, u = s[0], p = s[d], h, y;
261
+ for (; a <= c && l <= d; )
262
+ if ($ == null)
263
+ $ = t[++a];
264
+ else if (f == null)
265
+ f = t[--c];
266
+ else if (u == null)
267
+ u = s[++l];
268
+ else if (p == null)
269
+ p = s[--d];
270
+ else if (L($, u, r))
271
+ w($, u, r), $ = t[++a], u = s[++l];
272
+ else if (L(f, p, r))
273
+ w(f, p, r), f = t[--c], p = s[--d];
274
+ else if (L($, p, r))
275
+ w($, p, r), P(e, $.$elm$, f.$elm$.nextSibling), $ = t[++a], p = s[--d];
276
+ else if (L(f, u, r))
277
+ w(f, u, r), P(e, f.$elm$, $.$elm$), f = t[--c], u = s[++l];
278
+ else {
279
+ for (i = -1, o = a; o <= c; ++o)
280
+ if (t[o] && t[o].$key$ !== null && t[o].$key$ === u.$key$) {
281
+ i = o;
282
+ break;
283
+ }
284
+ i >= 0 ? (y = t[i], y.$tag$ !== u.$tag$ ? h = j(t && t[l], n, i) : (w(y, u, r), t[i] = void 0, h = y.$elm$), u = s[++l]) : (h = j(t && t[l], n, l), u = s[++l]), h && P($.$elm$.parentNode, h, $.$elm$);
285
+ }
286
+ a > c ? $e(
287
+ e,
288
+ s[d + 1] == null ? null : s[d + 1].$elm$,
289
+ n,
290
+ s,
291
+ l,
292
+ d
293
+ ) : l > d && fe(t, a, c);
294
+ }, L = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, w = (e, t, n = !1) => {
295
+ const s = t.$elm$ = e.$elm$, r = e.$children$, a = t.$children$, l = t.$text$;
296
+ l === null ? (oe(e, t, ce), r !== null && a !== null ? We(s, r, t, a, n) : a !== null ? (e.$text$ !== null && (s.textContent = ""), $e(s, null, t, a, 0, a.length - 1)) : (
297
+ // don't do this on initial render as it can cause non-hydrated content to be removed
298
+ !n && _.updatable && r !== null && fe(r, 0, r.length - 1)
299
+ )) : e.$text$ !== l && (s.data = l);
300
+ }, de = (e) => {
301
+ e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(de);
302
+ }, P = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), Me = (e, t, n = !1) => {
303
+ const s = e.$hostElement$, r = e.$cmpMeta$, a = e.$vnode$ || z(null, null), l = De(t) ? t : Ue(null, null, t);
304
+ if (W = s.tagName, r.$attrsToReflect$ && (l.$attrs$ = l.$attrs$ || {}, r.$attrsToReflect$.map(
305
+ ([i, o]) => l.$attrs$[o] = s[i]
306
+ )), n && l.$attrs$)
307
+ for (const i of Object.keys(l.$attrs$))
308
+ s.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (l.$attrs$[i] = s[i]);
309
+ l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = a.$elm$ = s.shadowRoot || s, A = s["s-sc"], ie = (r.$flags$ & 1) !== 0, w(a, l, n);
310
+ }, ue = (e, t) => {
311
+ t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
312
+ }, M = (e, t) => {
313
+ if (e.$flags$ |= 16, e.$flags$ & 4) {
314
+ e.$flags$ |= 512;
315
+ return;
316
+ }
317
+ return ue(e, e.$ancestorComponent$), xe(() => Xe(e, t));
318
+ }, Xe = (e, t) => {
319
+ const n = e.$hostElement$, s = S("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
320
+ if (!r)
321
+ throw new Error(
322
+ `Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
323
+ );
324
+ let a;
325
+ return t && (a = X(r, "componentWillLoad")), s(), Ge(a, () => Ye(e, r, t));
326
+ }, Ge = (e, t) => Qe(e) ? e.then(t).catch((n) => {
327
+ console.error(n), t();
328
+ }) : t(), Qe = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Ye = (e, t, n) => x(void 0, null, function* () {
329
+ var s;
330
+ const r = e.$hostElement$, a = S("update", e.$cmpMeta$.$tagName$), l = r["s-rc"];
331
+ n && Ce(e);
332
+ const i = S("render", e.$cmpMeta$.$tagName$);
333
+ Je(e, t, r, n), l && (l.map((o) => o()), r["s-rc"] = void 0), i(), a();
334
+ {
335
+ const o = (s = r["s-p"]) != null ? s : [], c = () => Ke(e);
336
+ o.length === 0 ? c() : (Promise.all(o).then(c), e.$flags$ |= 4, o.length = 0);
337
+ }
338
+ }), Je = (e, t, n, s) => {
339
+ try {
340
+ t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Me(e, t, s);
341
+ } catch (r) {
342
+ k(r, e.$hostElement$);
343
+ }
344
+ return null;
345
+ }, Ke = (e) => {
346
+ const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = S("postUpdate", t), r = e.$lazyInstance$, a = e.$ancestorComponent$;
347
+ e.$flags$ & 64 ? s() : (e.$flags$ |= 64, he(n), X(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), a || pe()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && F(() => M(e, !1)), e.$flags$ &= -517;
348
+ }, pe = (e) => {
349
+ he(m.documentElement), F(() => Re(U, "appload", { detail: { namespace: ye } }));
350
+ }, X = (e, t, n) => {
351
+ if (e && e[t])
352
+ try {
353
+ return e[t](n);
354
+ } catch (s) {
355
+ k(s);
356
+ }
357
+ }, he = (e) => {
358
+ var t;
359
+ return e.classList.add((t = _.hydratedSelectorName) != null ? t : "hydrated");
360
+ }, Ze = (e, t) => E(e).$instanceValues$.get(t), Ne = (e, t, n, s) => {
361
+ const r = E(e);
362
+ if (!r)
363
+ throw new Error(
364
+ `Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
365
+ );
366
+ const a = r.$hostElement$, l = r.$instanceValues$.get(t), i = r.$flags$, o = r.$lazyInstance$;
367
+ n = He(n, s.$members$[t][0]);
368
+ const c = Number.isNaN(l) && Number.isNaN(n), $ = n !== l && !c;
369
+ if ((!(i & 8) || l === void 0) && $ && (r.$instanceValues$.set(t, n), o)) {
370
+ if (s.$watchers$ && i & 128) {
371
+ const f = s.$watchers$[t];
372
+ f && f.map((d) => {
373
+ try {
374
+ o[d](n, l, t);
375
+ } catch (u) {
376
+ k(u, a);
377
+ }
378
+ });
379
+ }
380
+ (i & 18) === 2 && M(r, !1);
381
+ }
382
+ }, ve = (e, t, n) => {
383
+ var s, r;
384
+ const a = e.prototype;
385
+ if (t.$members$ || t.$watchers$ || e.watchers) {
386
+ e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
387
+ const l = Object.entries((s = t.$members$) != null ? s : {});
388
+ if (l.map(([i, [o]]) => {
389
+ (o & 31 || n & 2 && o & 32) && Object.defineProperty(a, i, {
390
+ get() {
391
+ return Ze(this, i);
392
+ },
393
+ set(c) {
394
+ Ne(this, i, c, t);
395
+ },
396
+ configurable: !0,
397
+ enumerable: !0
398
+ });
399
+ }), n & 1) {
400
+ const i = /* @__PURE__ */ new Map();
401
+ a.attributeChangedCallback = function(o, c, $) {
402
+ v.jmp(() => {
403
+ var f;
404
+ const d = i.get(o);
405
+ if (this.hasOwnProperty(d))
406
+ $ = this[d], delete this[d];
407
+ else {
408
+ if (a.hasOwnProperty(d) && typeof this[d] == "number" && // cast type to number to avoid TS compiler issues
409
+ this[d] == $)
410
+ return;
411
+ if (d == null) {
412
+ const u = E(this), p = u == null ? void 0 : u.$flags$;
413
+ if (p && !(p & 8) && p & 128 && $ !== c) {
414
+ const h = u.$lazyInstance$, y = (f = t.$watchers$) == null ? void 0 : f[o];
415
+ y == null || y.forEach((g) => {
416
+ h[g] != null && h[g].call(h, $, c, o);
417
+ });
418
+ }
419
+ return;
420
+ }
421
+ }
422
+ this[d] = $ === null && typeof this[d] == "boolean" ? !1 : $;
423
+ });
424
+ }, e.observedAttributes = Array.from(
425
+ /* @__PURE__ */ new Set([
426
+ ...Object.keys((r = t.$watchers$) != null ? r : {}),
427
+ ...l.filter(
428
+ ([o, c]) => c[0] & 15
429
+ /* HasAttribute */
430
+ ).map(([o, c]) => {
431
+ var $;
432
+ const f = c[1] || o;
433
+ return i.set(f, o), c[0] & 512 && (($ = t.$attrsToReflect$) == null || $.push([o, f])), f;
434
+ })
435
+ ])
436
+ );
437
+ }
438
+ }
439
+ return e;
440
+ }, Ve = (e, t, n, s) => x(void 0, null, function* () {
441
+ let r;
442
+ if (!(t.$flags$ & 32)) {
443
+ if (t.$flags$ |= 32, n.$lazyBundleId$) {
444
+ const o = be(n);
445
+ if (o && "then" in o) {
446
+ const $ = je();
447
+ r = yield o, $();
448
+ } else
449
+ r = o;
450
+ if (!r)
451
+ throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
452
+ r.isProxied || (n.$watchers$ = r.watchers, ve(
453
+ r,
454
+ n,
455
+ 2
456
+ /* proxyState */
457
+ ), r.isProxied = !0);
458
+ const c = S("createInstance", n.$tagName$);
459
+ t.$flags$ |= 8;
460
+ try {
461
+ new r(t);
462
+ } catch ($) {
463
+ k($);
464
+ }
465
+ t.$flags$ &= -9, t.$flags$ |= 128, c(), B(t.$lazyInstance$);
466
+ } else {
467
+ r = e.constructor;
468
+ const o = e.localName;
469
+ customElements.whenDefined(o).then(
470
+ () => t.$flags$ |= 128
471
+ /* isWatchReady */
472
+ );
473
+ }
474
+ if (r && r.style) {
475
+ let o;
476
+ typeof r.style == "string" && (o = r.style);
477
+ const c = le(n);
478
+ if (!O.has(c)) {
479
+ const $ = S("registerStyles", n.$tagName$);
480
+ ze(c, o, !!(n.$flags$ & 1)), $();
481
+ }
482
+ }
483
+ }
484
+ const a = t.$ancestorComponent$, l = () => M(t, !0);
485
+ a && a["s-rc"] ? a["s-rc"].push(l) : l();
486
+ }), B = (e) => {
487
+ X(e, "connectedCallback");
488
+ }, et = (e) => {
489
+ if (!(v.$flags$ & 1)) {
490
+ const t = E(e), n = t.$cmpMeta$, s = S("connectedCallback", n.$tagName$);
491
+ if (t.$flags$ & 1)
492
+ t != null && t.$lazyInstance$ ? B(t.$lazyInstance$) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => B(t.$lazyInstance$));
493
+ else {
494
+ t.$flags$ |= 1;
495
+ {
496
+ let r = e;
497
+ for (; r = r.parentNode || r.host; )
498
+ if (r["s-p"]) {
499
+ ue(t, t.$ancestorComponent$ = r);
500
+ break;
501
+ }
502
+ }
503
+ n.$members$ && Object.entries(n.$members$).map(([r, [a]]) => {
504
+ if (a & 31 && e.hasOwnProperty(r)) {
505
+ const l = e[r];
506
+ delete e[r], e[r] = l;
507
+ }
508
+ }), Ve(e, t, n);
509
+ }
510
+ s();
511
+ }
512
+ }, tt = (e) => {
513
+ }, st = (e) => x(void 0, null, function* () {
514
+ if (!(v.$flags$ & 1)) {
515
+ const t = E(e);
516
+ t != null && t.$lazyInstance$ || t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => tt());
517
+ }
518
+ }), at = (e, t = {}) => {
519
+ var n;
520
+ const s = S(), r = [], a = t.exclude || [], l = U.customElements, i = m.head, o = /* @__PURE__ */ i.querySelector("meta[charset]"), c = /* @__PURE__ */ m.createElement("style"), $ = [];
521
+ let f, d = !0;
522
+ Object.assign(v, t), v.$resourcesUrl$ = new URL(t.resourcesUrl || "./", m.baseURI).href;
523
+ let u = !1;
524
+ if (e.map((p) => {
525
+ p[1].map((h) => {
526
+ var y;
527
+ const g = {
528
+ $flags$: h[0],
529
+ $tagName$: h[1],
530
+ $members$: h[2],
531
+ $listeners$: h[3]
532
+ };
533
+ g.$flags$ & 4 && (u = !0), g.$members$ = h[2], g.$attrsToReflect$ = [], g.$watchers$ = (y = h[4]) != null ? y : {};
534
+ const T = g.$tagName$, ge = class extends HTMLElement {
535
+ // StencilLazyHost
536
+ constructor(b) {
537
+ if (super(b), this.hasRegisteredEventListeners = !1, b = this, Ee(b, g), g.$flags$ & 1) {
538
+ if (!b.shadowRoot)
539
+ b.attachShadow({ mode: "open" });
540
+ else if (b.shadowRoot.mode !== "open")
541
+ throw new Error(
542
+ `Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${b.shadowRoot.mode} but Stencil only supports open shadow roots.`
543
+ );
544
+ }
545
+ }
546
+ connectedCallback() {
547
+ E(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), d ? $.push(this) : v.jmp(() => et(this));
548
+ }
549
+ disconnectedCallback() {
550
+ v.jmp(() => st(this));
551
+ }
552
+ componentOnReady() {
553
+ return E(this).$onReadyPromise$;
554
+ }
555
+ };
556
+ g.$lazyBundleId$ = p[0], !a.includes(T) && !l.get(T) && (r.push(T), l.define(
557
+ T,
558
+ ve(
559
+ ge,
560
+ g,
561
+ 1
562
+ /* isElementConstructor */
563
+ )
564
+ ));
565
+ });
566
+ }), r.length > 0 && (u && (c.textContent += ee), c.textContent += r.sort() + ke, c.innerHTML.length)) {
567
+ c.setAttribute("data-styles", "");
568
+ const p = (n = v.$nonce$) != null ? n : ne(m);
569
+ p != null && c.setAttribute("nonce", p), i.insertBefore(c, o ? o.nextSibling : i.firstChild);
570
+ }
571
+ d = !1, $.length ? $.map((p) => p.connectedCallback()) : v.jmp(() => f = setTimeout(pe, 30)), s();
572
+ };
573
+ export {
574
+ at as b,
575
+ lt as g,
576
+ Ue as h,
577
+ we as p,
578
+ rt as r
579
+ };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-B-gPVc8F.cjs");function Y({withLocale:i,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function Z(i,t){e.addMessages(i,t)}const G={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 $(i){e.append_styles(i,"svelte-ub9f39",':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}.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 K(i,t,l){const a=i.slice();return a[36]=t[l],a[37]=t,a[38]=l,a}function ee(i){let t,l,a,n,s,f,b,y,h=i[11]("filterby")+"",u,v,F,S,w=i[11]("providers")+"",P,_,c,m,g,I,A,C,W,L,T,H,x,E=i[11]("clear")+"",N,D,j,M,z,J;function q(o,p){return o[7]?re:le}let B=q(i),k=B(i),O=e.ensure_array_like(i[5]),r=[];for(let o=0;o<O.length;o+=1)r[o]=Q(K(i,O,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"),f=e.space(),b=e.element("div"),y=e.element("span"),u=e.text(h),v=e.space(),F=e.element("div"),S=e.element("span"),P=e.text(w),_=e.space(),k.c(),c=e.space(),m=e.element("span"),g=e.svg_element("svg"),I=e.svg_element("path"),W=e.space(),L=e.element("div"),T=e.element("ul");for(let o=0;o<r.length;o+=1)r[o].c();H=e.space(),x=e.element("button"),N=e.text(E),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(y,"class","FilterName"),e.attr(F,"class","FilterValueContainer"),e.attr(b,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(I,"id","arrow"),e.attr(I,"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(I,"transform","translate(-274.511 -441.088)"),e.attr(I,"fill","#d1d1d1"),e.attr(g,"xmlns","http://www.w3.org/2000/svg"),e.attr(g,"width","14"),e.attr(g,"height","6.835"),e.attr(g,"viewBox","0 0 14 6.835"),e.attr(m,"class",A="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(l,"class",C="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(T,"class","FilterDropdown"),e.attr(x,"class","ClearFilters"),x.disabled=D=i[7]&&i[6].length!=i[5].length,e.attr(L,"class",j="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",M="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(o,p){e.insert(o,t,p),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,s),e.append(a,f),e.append(a,b),e.append(b,y),e.append(y,u),e.append(b,v),e.append(b,F),e.append(F,S),e.append(S,P),e.append(F,_),k.m(F,null),e.append(l,c),e.append(l,m),e.append(m,g),e.append(g,I),e.append(t,W),e.append(t,L),e.append(L,T);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(T,null);e.append(L,H),e.append(L,x),e.append(x,N),z||(J=[e.listen(l,"click",i[22]),e.listen(x,"click",i[25])],z=!0)},p(o,p){if(p[0]&2048&&h!==(h=o[11]("filterby")+"")&&e.set_data(u,h),p[0]&2048&&w!==(w=o[11]("providers")+"")&&e.set_data(P,w),B===(B=q(o))&&k?k.p(o,p):(k.d(1),k=B(o),k&&(k.c(),k.m(F,null))),p[0]&16&&A!==(A="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(m,"class",A),p[0]&16&&C!==(C="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",C),p[0]&8228){O=e.ensure_array_like(o[5]);let d;for(d=0;d<O.length;d+=1){const V=K(o,O,d);r[d]?r[d].p(V,p):(r[d]=Q(V),r[d].c(),r[d].m(T,null))}for(;d<r.length;d+=1)r[d].d(1);r.length=O.length}p[0]&2048&&E!==(E=o[11]("clear")+"")&&e.set_data(N,E),p[0]&224&&D!==(D=o[7]&&o[6].length!=o[5].length)&&(x.disabled=D),p[0]&16&&j!==(j="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(L,"class",j),p[0]&3&&M!==(M="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",M)},d(o){o&&e.detach(t),k.d(),e.destroy_each(r,o),z=!1,e.run_all(J)}}}function te(i){let t,l=i[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 le(i){let t,l;return{c(){t=e.element("span"),l=e.text(i[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 re(i){let t,l=i[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 ie(i){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=i[36].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[36].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function ae(i){let t,l,a=i[36].name+"",n,s,f,b,y=i[36].games.count+"",h,u;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),s=e.space(),f=e.element("span"),b=e.text("("),h=e.text(y),u=e.text(")"),e.attr(t,"class","FilterItemLabel")},m(v,F){e.insert(v,t,F),e.append(t,l),e.append(l,n),e.append(t,s),e.append(t,f),e.append(f,b),e.append(f,h),e.append(f,u)},p(v,F){F[0]&32&&a!==(a=v[36].name+"")&&e.set_data(n,a),F[0]&32&&y!==(y=v[36].games.count+"")&&e.set_data(h,y)},d(v){v&&e.detach(t)}}}function Q(i){let t,l,a,n,s,f,b,y,h,u,v,F;function S(){i[23].call(a,i[37],i[38])}function w(){return i[24](i[36])}function P(m,g){if(m[2]==="false")return ae;if(m[2]==="true")return ie}let _=P(i),c=_&&_(i);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),f=e.element("span"),b=e.space(),c&&c.c(),y=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=i[36].name,e.set_input_value(a,a.__value),e.attr(f,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=u=i[36].name},m(m,g){e.insert(m,t,g),e.append(t,l),e.append(l,a),a.checked=i[36].isFilterSelected,e.append(l,s),e.append(l,f),e.append(l,b),c&&c.m(l,null),e.append(t,y),v||(F=[e.listen(a,"change",S),e.listen(a,"click",w)],v=!0)},p(m,g){i=m,g[0]&32&&n!==(n=i[36].name)&&(a.__value=n,e.set_input_value(a,a.__value)),g[0]&32&&(a.checked=i[36].isFilterSelected),_===(_=P(i))&&c?c.p(i,g):(c&&c.d(1),c=_&&_(i),c&&(c.c(),c.m(l,null))),g[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),g[0]&32&&u!==(u=i[36].name)&&(t.value=u)},d(m){m&&e.detach(t),c&&c.d(),v=!1,e.run_all(F)}}}function ne(i){let t;function l(s,f){if(s[10])return te;if(!s[9])return ee}let a=l(i),n=a&&a(i);return{c(){t=e.element("div"),n&&n.c()},m(s,f){e.insert(s,t,f),n&&n.m(t,null),i[26](t)},p(s,f){a===(a=l(s))&&n?n.p(s,f):(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(),i[26](null)}}}function oe(i,t,l){let a;e.component_subscribe(i,e.$format,r=>l(11,a=r));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:f=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:u=""}=t,{addfilterselector:v="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:S="false"}=t,w=!1,P=window.navigator.userAgent,_=[],c=[],m={},g=!1,I=0,A=!0,C,W=!1;Y({withLocale:"en",translations:{}});const L=()=>{fetch(b).then(o=>o.json()).then(o=>{Object.keys(o).forEach(p=>{Z(p,o[p])})}).catch(o=>{console.log(o)})};Object.keys(G).forEach(r=>{Z(r,G[r])});const T=()=>{let r=document.createElement("style");r.innerHTML=y,C.appendChild(r)},H=()=>{let r=document.createElement("style");fetch(new URL(h)).then(o=>o.text()).then(o=>{r.innerHTML=o,setTimeout(()=>{C.appendChild(r)},1)})};m[u]&&(m={[u]:[]});const x=()=>{l(4,w=!w),window.postMessage({type:"FilterOpened"},window.location.href)},E=r=>(l(9,A=!0),new Promise((o,p)=>{fetch(r).then(d=>d.json()).then(d=>{d=d.items,o(d.items),l(6,c=[]);let V=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));d.forEach(R=>{var U;V||(V={currentCategoryId:[]}),((U=V[u])==null?void 0:U.indexOf(R.id))>=0?(R.isFilterSelected=!0,c.push(R)):R.isFilterSelected=!1}),l(5,_=d),D()}).catch(d=>{console.error(d),l(10,W=!0),p(d)}).finally(()=>{l(9,A=!1)})})),N=r=>{let o=localStorage.getItem("vendorFiltersByCategory");r.isFilterSelected=!r.isFilterSelected,!c.length||c.filter(p=>p.name===r.name).length==0?c.push(r):l(6,c=c.filter(p=>p.name!==r.name)),o==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(p=>p.id)})):(o=JSON.parse(o),o[u]=c.map(p=>p.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(o))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),D()},D=()=>{l(7,g=c.length===_.length||c.length==0),l(8,I=c.length)},j=()=>{const r=new URL(`${n}/v1/casino/vendors`);l(4,w=!1),r.searchParams.append("fields","id,name,logo,subVendors,games"),r.searchParams.append("language",f),r.searchParams.append("datasource",s),r.searchParams.append("platform",e.getDevice(P)),(u.match(/\$/g)||[]).length>1?(r.searchParams.append("filter",`games(subGroups=${u})`),r.searchParams.append("subVendors",`games(subGroups=${u})`)):r.searchParams.append("filter",`games(groups=${u})`),E(r)},M=()=>{l(6,c=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(r=>r.id)})),_.forEach(r=>r.isFilterSelected=!1),l(5,_),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,g=!0),l(4,w=!1)},z=r=>{r.data.type=="SortingOpened"&&l(4,w=!1)};e.onMount(()=>(window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));const J=()=>x();function q(r,o){r[o].isFilterSelected=this.checked,l(5,_)}const B=r=>N(r),k=()=>M();function O(r){e.binding_callbacks[r?"unshift":"push"](()=>{C=r,l(3,C)})}return i.$$set=r=>{"endpoint"in r&&l(15,n=r.endpoint),"datasource"in r&&l(16,s=r.datasource),"lang"in r&&l(17,f=r.lang),"translationurl"in r&&l(18,b=r.translationurl),"clientstyling"in r&&l(19,y=r.clientstyling),"clientstylingurl"in r&&l(20,h=r.clientstylingurl),"categoryid"in r&&l(21,u=r.categoryid),"addfilterselector"in r&&l(0,v=r.addfilterselector),"addsortingselector"in r&&l(1,F=r.addsortingselector),"filterbylogo"in r&&l(2,S=r.filterbylogo)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&s&&u&&S&&j(),i.$$.dirty[0]&524296&&y&&C&&T(),i.$$.dirty[0]&1048584&&h&&C&&H(),i.$$.dirty[0]&262144&&b&&L()},[v,F,S,C,w,_,c,g,I,A,W,a,x,N,M,n,s,f,b,y,h,u,J,q,B,k,O]}class X extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,ne,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2},$,[-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(X,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{}},[],[],!0);exports.default=X;