@everymatrix/casino-page 1.87.25 → 1.87.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/components/CasinoCalendar-Bk2VWsYP.js +572 -0
  2. package/components/CasinoCalendar-CuMdPVUL.js +574 -0
  3. package/components/CasinoCalendar-NysJ_MQc.cjs +2 -0
  4. package/components/{CasinoCalendarDailyDetails-C9QkDeeW.js → CasinoCalendarDailyDetails-BMRyShgB.js} +84 -84
  5. package/components/CasinoCalendarDailyDetails-Ctd7GG23.cjs +1 -0
  6. package/components/{CasinoCalendarDailyDetails-DG8jTkOb.js → CasinoCalendarDailyDetails-DpRL4rZD.js} +84 -84
  7. package/components/CasinoCalendarDailyItem-Bwv-TV7n.cjs +1 -0
  8. package/components/{CasinoCalendarDailyItem-H9bFOk6V.js → CasinoCalendarDailyItem-O-m4LUQU.js} +118 -118
  9. package/components/{CasinoCalendarDailyItem-77QxCgOg.js → CasinoCalendarDailyItem-kbMnL8LX.js} +118 -118
  10. package/components/CasinoCollectionsProviders-DxCAKrxO.cjs +1 -0
  11. package/components/{CasinoCollectionsProviders-BRaAIVvV.js → CasinoCollectionsProviders-I8uaw4CX.js} +65 -65
  12. package/components/{CasinoCollectionsProviders-DOGIidgs.js → CasinoCollectionsProviders-bBtLlyhP.js} +93 -93
  13. package/components/CasinoFavoritesSection-BKpylL-E.cjs +1 -0
  14. package/components/{CasinoFavoritesSection-C-WTpxpq.js → CasinoFavoritesSection-D1NR_VbM.js} +47 -63
  15. package/components/{CasinoFavoritesSection-CZ-q50oD.js → CasinoFavoritesSection-DVEeqd8t.js} +44 -60
  16. package/components/CasinoFilter-BuCRML3F.cjs +1 -0
  17. package/components/{CasinoFilter-Dd_ByQUb.js → CasinoFilter-C-8LktQ9.js} +223 -224
  18. package/components/{CasinoFilter-BqfBTs3X.js → CasinoFilter-JysfGnIT.js} +251 -250
  19. package/components/CasinoGameThumbnail-CTIJhcZN.js +1847 -0
  20. package/components/CasinoGameThumbnail-MpCIIvr2.cjs +38 -0
  21. package/components/CasinoGameThumbnail-vCdzZgSQ.js +1831 -0
  22. package/components/CasinoGamesCategorySection-CQTfYAer.cjs +10 -0
  23. package/components/CasinoGamesCategorySection-C_uyd_r_.js +5729 -0
  24. package/components/CasinoGamesCategorySection-Cavp2XcF.js +5697 -0
  25. package/components/{CasinoJackpotBanner-BuCeq-FN.js → CasinoJackpotBanner-C6568dXk.js} +176 -176
  26. package/components/{CasinoJackpotBanner-Ba0HSy7J.js → CasinoJackpotBanner-CLADRgxD.js} +154 -154
  27. package/components/CasinoJackpotBanner-C_Gf1vLe.cjs +1 -0
  28. package/components/{CasinoLastPlayedSection-DJ9HO253.js → CasinoLastPlayedSection-Daix__De.js} +71 -72
  29. package/components/{CasinoLastPlayedSection-C5vsXbz8.js → CasinoLastPlayedSection-fA_Nko5c.js} +68 -69
  30. package/components/CasinoLastPlayedSection-i9eM46ud.cjs +1 -0
  31. package/components/CasinoMostPlayedSection-7F-BgAlY.cjs +1 -0
  32. package/components/{CasinoMostPlayedSection-_rcZwydD.js → CasinoMostPlayedSection-BG98a19d.js} +64 -65
  33. package/components/{CasinoMostPlayedSection-Cj9P1O_g.js → CasinoMostPlayedSection-DjDWyNmN.js} +66 -67
  34. package/components/{CasinoMyGames-BCWaO0Ph.js → CasinoMyGames-DbWMDQDz.js} +46 -46
  35. package/components/CasinoMyGames-FxQZFPn1.cjs +1 -0
  36. package/components/{CasinoMyGames-DA-mPnwJ.js → CasinoMyGames-fh1A5kRZ.js} +46 -46
  37. package/components/CasinoPage-CEwUBRwz.js +8914 -0
  38. package/components/CasinoPage-D1gCtQ9f.cjs +18 -0
  39. package/components/CasinoPage-DuLO92lO.js +8959 -0
  40. package/components/CasinoRandomGame-B6nMcOFW.cjs +2 -0
  41. package/components/{CasinoRandomGame-Dicpdv5N.js → CasinoRandomGame-BXeDL44i.js} +118 -118
  42. package/components/{CasinoRandomGame-Mzhi_geU.js → CasinoRandomGame-fp8-6pxV.js} +116 -116
  43. package/components/{CasinoSearch-BkcRkT-Z.js → CasinoSearch-CT_Q7Eg2.js} +75 -75
  44. package/components/{CasinoSearch-CFh1KpPL.js → CasinoSearch-D25EUsHS.js} +75 -75
  45. package/components/CasinoSearch-DSNlggOc.cjs +1 -0
  46. package/components/CasinoSort-5sOVz1es.cjs +1 -0
  47. package/components/{CasinoSort-DuvD0KkH.js → CasinoSort-CoBXSITn.js} +102 -102
  48. package/components/{CasinoSort-DHqu-YG-.js → CasinoSort-l3IilL10.js} +116 -116
  49. package/components/{CasinoWinners-C0aKkeDL.js → CasinoWinners-BeLObVW8.js} +105 -105
  50. package/components/{CasinoWinners-DdSjlEaj.js → CasinoWinners-mCHa7x4u.js} +108 -108
  51. package/components/CasinoWinners-pE3a77v3.cjs +1 -0
  52. package/components/GeneralAnimationLoading-BJ87LnuC.cjs +1 -0
  53. package/components/{GeneralAnimationLoading-DhrziAD2.js → GeneralAnimationLoading-BaLCQhkc.js} +23 -23
  54. package/components/{GeneralAnimationLoading-B00sPlMG.js → GeneralAnimationLoading-SLNmfkn9.js} +22 -22
  55. package/es2015/casino-page.cjs +1 -1
  56. package/es2015/casino-page.js +7 -7
  57. package/esnext/casino-page.js +1 -1
  58. package/package.json +1 -1
  59. package/stencil/{app-globals-0f993ce5-4b17CI_n.cjs → app-globals-0f993ce5-3HCMFTIi.cjs} +1 -1
  60. package/stencil/{app-globals-0f993ce5-DfNOCk8l.js → app-globals-0f993ce5-DYjuqKIH.js} +2 -2
  61. package/stencil/{casino-play-random-game-rhXCh2EW.js → casino-play-random-game-BnjM-0qi.js} +2 -2
  62. package/stencil/{casino-play-random-game-CSy8nXT0.js → casino-play-random-game-DRQxeH3W.js} +2 -2
  63. package/stencil/{casino-play-random-game-PuRF3mXV.cjs → casino-play-random-game-dt2t2wAq.cjs} +1 -1
  64. package/stencil/{casino-play-random-game_2-CZQxP9GA.js → casino-play-random-game_2-BvZbjHRJ.js} +92 -64
  65. package/stencil/{casino-play-random-game_2-CBAgufN5.cjs → casino-play-random-game_2-ZYQBmsCp.cjs} +3 -3
  66. package/stencil/{casino-play-random-game_2-BBgMV3ws.js → casino-play-random-game_2-aWmRrJVX.js} +91 -64
  67. package/stencil/{index-328e660d-BLQrzwBv.cjs → index-328e660d-BN7c7sEP.cjs} +1 -1
  68. package/stencil/{index-328e660d-Belout2l.js → index-328e660d-CJOt0Yr_.js} +1 -1
  69. package/stencil/{index-328e660d-BqUO7ccV.js → index-328e660d-CZwFIIV5.js} +1 -1
  70. package/stencil/{index-b2193545-DuCTLpV-.cjs → index-b2193545-BYDm8FOU.cjs} +1 -1
  71. package/stencil/{index-b2193545-DG7pnr-7.js → index-b2193545-CVvOSay7.js} +1 -1
  72. package/stencil/{index-b2193545-BZAG_Jnw.js → index-b2193545-DkSkdO8p.js} +1 -1
  73. package/stencil/{ui-image-BmLAbwvr.cjs → ui-image-BNLichPz.cjs} +1 -1
  74. package/stencil/{ui-image-DDulMZDF.js → ui-image-D8_P6p7o.js} +1 -1
  75. package/stencil/{ui-image-DwWgscwP.js → ui-image-KAOdlRk_.js} +1 -1
  76. package/stencil/{ui-skeleton-DgZQnowa.js → ui-skeleton-CbcQXFpx.js} +3 -3
  77. package/stencil/{ui-skeleton-D_tu1FGi.js → ui-skeleton-DgkQtSrH.js} +3 -3
  78. package/stencil/{ui-skeleton-BWEKzqTN.cjs → ui-skeleton-TOJItxHv.cjs} +1 -1
  79. package/stencil/{ui-skeleton-ed169f8f-D2rWx_KU.js → ui-skeleton-ed169f8f-BD9hI4Jz.js} +1 -1
  80. package/stencil/{ui-skeleton-ed169f8f-Ti6Ksz7V.cjs → ui-skeleton-ed169f8f-CGu6WFdq.cjs} +1 -1
  81. package/stencil/{ui-skeleton-ed169f8f-Bs1q2JQr.js → ui-skeleton-ed169f8f-CaxkPCnR.js} +1 -1
  82. package/components/CasinoCalendar-4k288rHh.cjs +0 -19
  83. package/components/CasinoCalendar-BNbVJJdG.js +0 -5140
  84. package/components/CasinoCalendar-DAKxxPPx.js +0 -5101
  85. package/components/CasinoCalendarDailyDetails-CerVlpW4.cjs +0 -1
  86. package/components/CasinoCalendarDailyItem-B7YANGR4.cjs +0 -1
  87. package/components/CasinoCollectionsProviders-OZw09qnR.cjs +0 -1
  88. package/components/CasinoFavoritesSection-DYzKNVZJ.cjs +0 -1
  89. package/components/CasinoFilter-BP97bmoQ.cjs +0 -1
  90. package/components/CasinoGameThumbnail-CySg8Qzs.js +0 -4359
  91. package/components/CasinoGameThumbnail-W0nETKCH.cjs +0 -47
  92. package/components/CasinoGameThumbnail-ge_yVb-v.js +0 -4375
  93. package/components/CasinoGamesCategorySection-B2CXUJ-V.js +0 -3217
  94. package/components/CasinoGamesCategorySection-B8IjpDwj.js +0 -3185
  95. package/components/CasinoGamesCategorySection-DCjn0aiz.cjs +0 -1
  96. package/components/CasinoJackpotBanner-DRtiH_Mn.cjs +0 -1
  97. package/components/CasinoLastPlayedSection-CP4YzhAu.cjs +0 -1
  98. package/components/CasinoMostPlayedSection-DPG3YsM6.cjs +0 -1
  99. package/components/CasinoMyGames-Bqyyy2Me.cjs +0 -1
  100. package/components/CasinoPage-BNU69s1m.js +0 -4353
  101. package/components/CasinoPage-BRSRsp5F.js +0 -4334
  102. package/components/CasinoPage-D-FENg4m.cjs +0 -1
  103. package/components/CasinoRandomGame-DRGWOXO6.cjs +0 -2
  104. package/components/CasinoSearch-D14Ak2E9.cjs +0 -1
  105. package/components/CasinoSort-BVyHskml.cjs +0 -1
  106. package/components/CasinoWinners-5S4Rqt23.cjs +0 -1
  107. package/components/GeneralAnimationLoading-wnzFPEVd.cjs +0 -1
@@ -0,0 +1,572 @@
1
+ import { a as V, $ as J, S as K, i as Q, s as X, f as _, b as Y, n as D, d as v, e as b, g as h, h as p, j as Z, k as x, t as $, l as ee, v as te, q as L, w as ne, x as P, B as le, r as ie, u as ae, A as a, F as re, G as se, H as oe, c as de, E as ce } from "./CasinoPage-CEwUBRwz.js";
2
+ function j(n, e) {
3
+ V(n, e);
4
+ }
5
+ function ue(n) {
6
+ J.set(n);
7
+ }
8
+ const O = {
9
+ en: {
10
+ error: "500 Error - Internal Server Error"
11
+ },
12
+ hr: {
13
+ error: "500 Error - Internal Server Error"
14
+ },
15
+ "pt-br": {
16
+ error: "500 Error - Internal Server Error"
17
+ },
18
+ "es-mx": {
19
+ error: "500 Error - Internal Server Error"
20
+ },
21
+ tr: {
22
+ error: "500 Error - Internal Server Error"
23
+ },
24
+ "en-us": {
25
+ error: "500 Error - Internal Server Error"
26
+ }
27
+ };
28
+ if (typeof window < "u") {
29
+ let n = function(e) {
30
+ return function(...t) {
31
+ try {
32
+ return e.apply(this, t);
33
+ } catch (r) {
34
+ if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
35
+ return !1;
36
+ throw r;
37
+ }
38
+ };
39
+ };
40
+ customElements.define = n(customElements.define), import("./CasinoCalendarDailyDetails-BMRyShgB.js").then(({ default: e }) => {
41
+ !customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", e.element);
42
+ });
43
+ }
44
+ if (typeof window < "u") {
45
+ let n = function(e) {
46
+ return function(...t) {
47
+ try {
48
+ return e.apply(this, t);
49
+ } catch (r) {
50
+ if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
51
+ return !1;
52
+ throw r;
53
+ }
54
+ };
55
+ };
56
+ customElements.define = n(customElements.define), import("./CasinoCalendarDailyItem-kbMnL8LX.js").then(({ default: e }) => {
57
+ !customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", e.element);
58
+ });
59
+ }
60
+ function fe(n) {
61
+ Y(n, "svelte-5u3c97", `.svelte-5u3c97{font-family:inherit}.CasinoCalendarItem.svelte-5u3c97{display:flex;flex-direction:row;flex-wrap:nowrap;text-align:left;gap:10px;overflow-x:auto;overflow-y:hidden;justify-content:space-evenly}.Mobile.svelte-5u3c97{padding:0 10px;height:286px;overflow-y:visible;overflow-x:scroll;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.CalendarDetailsWrapper.svelte-5u3c97{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-5u3c97{display:block;width:80px;height:80px;margin:0 auto
62
+ }.LoadingSpinner.svelte-5u3c97:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:svelte-5u3c97-LoadingSpinner 1.2s linear infinite}@keyframes svelte-5u3c97-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
63
+ }
64
+ function A(n, e, t) {
65
+ const r = n.slice();
66
+ return r[26] = e[t], r[28] = t, r;
67
+ }
68
+ function ye(n) {
69
+ let e, t, r, d = P(
70
+ /*calendarCollections*/
71
+ n[6]
72
+ ), i = [];
73
+ for (let l = 0; l < d.length; l += 1)
74
+ i[l] = R(A(n, d, l));
75
+ let c = (
76
+ /*calendarModalOpened*/
77
+ n[11] == !0 && N(n)
78
+ );
79
+ return {
80
+ c() {
81
+ e = h("div");
82
+ for (let l = 0; l < i.length; l += 1)
83
+ i[l].c();
84
+ t = ie(), c && c.c(), p(e, "class", r = "CasinoCalendarItem " + /*mobileView*/
85
+ (n[10] ? "Mobile" : "") + " svelte-5u3c97");
86
+ },
87
+ m(l, u) {
88
+ b(l, e, u);
89
+ for (let s = 0; s < i.length; s += 1)
90
+ i[s] && i[s].m(e, null);
91
+ L(e, t), c && c.m(e, null);
92
+ },
93
+ p(l, u) {
94
+ if (u & /*calendarCollections, lang, clientstyling, clientstylingurl, mbsource, translationurl*/
95
+ 95) {
96
+ d = P(
97
+ /*calendarCollections*/
98
+ l[6]
99
+ );
100
+ let s;
101
+ for (s = 0; s < d.length; s += 1) {
102
+ const f = A(l, d, s);
103
+ i[s] ? i[s].p(f, u) : (i[s] = R(f), i[s].c(), i[s].m(e, t));
104
+ }
105
+ for (; s < i.length; s += 1)
106
+ i[s].d(1);
107
+ i.length = d.length;
108
+ }
109
+ /*calendarModalOpened*/
110
+ l[11] == !0 ? c ? c.p(l, u) : (c = N(l), c.c(), c.m(e, null)) : c && (c.d(1), c = null), u & /*mobileView*/
111
+ 1024 && r !== (r = "CasinoCalendarItem " + /*mobileView*/
112
+ (l[10] ? "Mobile" : "") + " svelte-5u3c97") && p(e, "class", r);
113
+ },
114
+ d(l) {
115
+ l && v(e), le(i, l), c && c.d();
116
+ }
117
+ };
118
+ }
119
+ function me(n) {
120
+ let e;
121
+ return {
122
+ c() {
123
+ e = h("div"), p(e, "class", "LoadingSpinner svelte-5u3c97");
124
+ },
125
+ m(t, r) {
126
+ b(t, e, r);
127
+ },
128
+ p: D,
129
+ d(t) {
130
+ t && v(e);
131
+ }
132
+ };
133
+ }
134
+ function ge(n) {
135
+ let e, t = (
136
+ /*$_*/
137
+ n[12]("error") + ""
138
+ ), r;
139
+ return {
140
+ c() {
141
+ e = h("p"), r = ne(t), p(e, "class", "SearchLoading svelte-5u3c97");
142
+ },
143
+ m(d, i) {
144
+ b(d, e, i), L(e, r);
145
+ },
146
+ p(d, i) {
147
+ i & /*$_*/
148
+ 4096 && t !== (t = /*$_*/
149
+ d[12]("error") + "") && te(r, t);
150
+ },
151
+ d(d) {
152
+ d && v(e);
153
+ }
154
+ };
155
+ }
156
+ function R(n) {
157
+ let e, t, r, d, i, c;
158
+ return {
159
+ c() {
160
+ e = h("casino-calendar-daily-item"), a(e, "dailybackground", t = /*dailyCalendarData*/
161
+ n[26].dailyBackground), a(e, "dailyicon", r = /*dailyCalendarData*/
162
+ n[26].dailyIcon), a(e, "dailyday", d = /*dailyCalendarData*/
163
+ n[26].dailyDay), a(e, "dailydescription", i = /*dailyCalendarData*/
164
+ n[26].dailyDescription), a(e, "dailybuttontitle", c = /*dailyCalendarData*/
165
+ n[26].dailyButtonTitle), a(
166
+ e,
167
+ "index",
168
+ /*index*/
169
+ n[28]
170
+ ), a(
171
+ e,
172
+ "lang",
173
+ /*lang*/
174
+ n[0]
175
+ ), a(
176
+ e,
177
+ "clientstyling",
178
+ /*clientstyling*/
179
+ n[1]
180
+ ), a(
181
+ e,
182
+ "clientstylingurl",
183
+ /*clientstylingurl*/
184
+ n[2]
185
+ ), a(
186
+ e,
187
+ "mbsource",
188
+ /*mbsource*/
189
+ n[4]
190
+ ), a(
191
+ e,
192
+ "translationurl",
193
+ /*translationurl*/
194
+ n[3]
195
+ ), a(e, "class", "svelte-5u3c97");
196
+ },
197
+ m(l, u) {
198
+ b(l, e, u);
199
+ },
200
+ p(l, u) {
201
+ u & /*calendarCollections*/
202
+ 64 && t !== (t = /*dailyCalendarData*/
203
+ l[26].dailyBackground) && a(e, "dailybackground", t), u & /*calendarCollections*/
204
+ 64 && r !== (r = /*dailyCalendarData*/
205
+ l[26].dailyIcon) && a(e, "dailyicon", r), u & /*calendarCollections*/
206
+ 64 && d !== (d = /*dailyCalendarData*/
207
+ l[26].dailyDay) && a(e, "dailyday", d), u & /*calendarCollections*/
208
+ 64 && i !== (i = /*dailyCalendarData*/
209
+ l[26].dailyDescription) && a(e, "dailydescription", i), u & /*calendarCollections*/
210
+ 64 && c !== (c = /*dailyCalendarData*/
211
+ l[26].dailyButtonTitle) && a(e, "dailybuttontitle", c), u & /*lang*/
212
+ 1 && a(
213
+ e,
214
+ "lang",
215
+ /*lang*/
216
+ l[0]
217
+ ), u & /*clientstyling*/
218
+ 2 && a(
219
+ e,
220
+ "clientstyling",
221
+ /*clientstyling*/
222
+ l[1]
223
+ ), u & /*clientstylingurl*/
224
+ 4 && a(
225
+ e,
226
+ "clientstylingurl",
227
+ /*clientstylingurl*/
228
+ l[2]
229
+ ), u & /*mbsource*/
230
+ 16 && a(
231
+ e,
232
+ "mbsource",
233
+ /*mbsource*/
234
+ l[4]
235
+ ), u & /*translationurl*/
236
+ 8 && a(
237
+ e,
238
+ "translationurl",
239
+ /*translationurl*/
240
+ l[3]
241
+ );
242
+ },
243
+ d(l) {
244
+ l && v(e);
245
+ }
246
+ };
247
+ }
248
+ function N(n) {
249
+ let e, t, r, d, i, c, l, u;
250
+ return {
251
+ c() {
252
+ e = h("div"), t = h("casino-calendar-daily-details"), a(t, "dailybackground", r = /*calendarCollections*/
253
+ n[6][
254
+ /*selectedIndex*/
255
+ n[7]
256
+ ].dailyBackground), a(t, "dailybuttontitle", d = /*calendarCollections*/
257
+ n[6][
258
+ /*selectedIndex*/
259
+ n[7]
260
+ ].dailyButtonTitle), a(t, "dailyday", i = /*calendarCollections*/
261
+ n[6][
262
+ /*selectedIndex*/
263
+ n[7]
264
+ ].dailyDay), a(t, "dailydescription", c = /*calendarCollections*/
265
+ n[6][
266
+ /*selectedIndex*/
267
+ n[7]
268
+ ].dailyDescription), a(t, "dailyicon", l = /*calendarCollections*/
269
+ n[6][
270
+ /*selectedIndex*/
271
+ n[7]
272
+ ].dailyIcon), a(t, "dailytitle", u = /*calendarCollections*/
273
+ n[6][
274
+ /*selectedIndex*/
275
+ n[7]
276
+ ].dailyTitle), a(
277
+ t,
278
+ "lang",
279
+ /*lang*/
280
+ n[0]
281
+ ), a(
282
+ t,
283
+ "clientstyling",
284
+ /*clientstyling*/
285
+ n[1]
286
+ ), a(
287
+ t,
288
+ "clientstylingurl",
289
+ /*clientstylingurl*/
290
+ n[2]
291
+ ), a(
292
+ t,
293
+ "mbsource",
294
+ /*mbsource*/
295
+ n[4]
296
+ ), a(
297
+ t,
298
+ "translationurl",
299
+ /*translationurl*/
300
+ n[3]
301
+ ), a(t, "class", "svelte-5u3c97"), p(e, "class", "CalendarDetailsWrapper svelte-5u3c97");
302
+ },
303
+ m(s, f) {
304
+ b(s, e, f), L(e, t);
305
+ },
306
+ p(s, f) {
307
+ f & /*calendarCollections, selectedIndex*/
308
+ 192 && r !== (r = /*calendarCollections*/
309
+ s[6][
310
+ /*selectedIndex*/
311
+ s[7]
312
+ ].dailyBackground) && a(t, "dailybackground", r), f & /*calendarCollections, selectedIndex*/
313
+ 192 && d !== (d = /*calendarCollections*/
314
+ s[6][
315
+ /*selectedIndex*/
316
+ s[7]
317
+ ].dailyButtonTitle) && a(t, "dailybuttontitle", d), f & /*calendarCollections, selectedIndex*/
318
+ 192 && i !== (i = /*calendarCollections*/
319
+ s[6][
320
+ /*selectedIndex*/
321
+ s[7]
322
+ ].dailyDay) && a(t, "dailyday", i), f & /*calendarCollections, selectedIndex*/
323
+ 192 && c !== (c = /*calendarCollections*/
324
+ s[6][
325
+ /*selectedIndex*/
326
+ s[7]
327
+ ].dailyDescription) && a(t, "dailydescription", c), f & /*calendarCollections, selectedIndex*/
328
+ 192 && l !== (l = /*calendarCollections*/
329
+ s[6][
330
+ /*selectedIndex*/
331
+ s[7]
332
+ ].dailyIcon) && a(t, "dailyicon", l), f & /*calendarCollections, selectedIndex*/
333
+ 192 && u !== (u = /*calendarCollections*/
334
+ s[6][
335
+ /*selectedIndex*/
336
+ s[7]
337
+ ].dailyTitle) && a(t, "dailytitle", u), f & /*lang*/
338
+ 1 && a(
339
+ t,
340
+ "lang",
341
+ /*lang*/
342
+ s[0]
343
+ ), f & /*clientstyling*/
344
+ 2 && a(
345
+ t,
346
+ "clientstyling",
347
+ /*clientstyling*/
348
+ s[1]
349
+ ), f & /*clientstylingurl*/
350
+ 4 && a(
351
+ t,
352
+ "clientstylingurl",
353
+ /*clientstylingurl*/
354
+ s[2]
355
+ ), f & /*mbsource*/
356
+ 16 && a(
357
+ t,
358
+ "mbsource",
359
+ /*mbsource*/
360
+ s[4]
361
+ ), f & /*translationurl*/
362
+ 8 && a(
363
+ t,
364
+ "translationurl",
365
+ /*translationurl*/
366
+ s[3]
367
+ );
368
+ },
369
+ d(s) {
370
+ s && v(e);
371
+ }
372
+ };
373
+ }
374
+ function _e(n) {
375
+ let e;
376
+ function t(i, c) {
377
+ if (
378
+ /*hasErrors*/
379
+ i[9]
380
+ )
381
+ return ge;
382
+ if (
383
+ /*isLoading*/
384
+ i[8]
385
+ )
386
+ return me;
387
+ if (
388
+ /*calendarCollections*/
389
+ i[6]?.length
390
+ )
391
+ return ye;
392
+ }
393
+ let r = t(n), d = r && r(n);
394
+ return {
395
+ c() {
396
+ e = h("div"), d && d.c(), p(e, "class", "svelte-5u3c97");
397
+ },
398
+ m(i, c) {
399
+ b(i, e, c), d && d.m(e, null), n[16](e);
400
+ },
401
+ p(i, [c]) {
402
+ r === (r = t(i)) && d ? d.p(i, c) : (d && d.d(1), d = r && r(i), d && (d.c(), d.m(e, null)));
403
+ },
404
+ i: D,
405
+ o: D,
406
+ d(i) {
407
+ i && v(e), d && d.d(), n[16](null);
408
+ }
409
+ };
410
+ }
411
+ function he(n, e, t) {
412
+ let r;
413
+ Z(n, ce, (o) => t(12, r = o));
414
+ let { cmsendpoint: d = "" } = e, { env: i = "" } = e, { userroles: c = "" } = e, { lang: l = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: s = "" } = e, { translationurl: f } = e, { mbsource: E } = e, m, k, w = 0, S = !0, I = !1, M = !1, B = window.navigator.userAgent, C = !1, U;
415
+ const W = () => {
416
+ ue(l);
417
+ };
418
+ Object.keys(O).forEach((o) => {
419
+ j(o, O[o]);
420
+ });
421
+ const q = () => {
422
+ let o = f;
423
+ if (o)
424
+ return fetch(o).then((y) => y.json()).then((y) => {
425
+ Object.keys(y).forEach((g) => {
426
+ j(g, y[g]);
427
+ });
428
+ }).catch((y) => {
429
+ console.log(y);
430
+ });
431
+ }, H = () => {
432
+ t(8, S = !0);
433
+ let o = new URL(`${d}/${l}/daily-calendar`);
434
+ o.searchParams.append("userRoles", c), o.searchParams.append("env", i);
435
+ let y = ae(B);
436
+ y && (y === "PC" ? o.searchParams.append("device", "dk") : y === "iPad" || y === "iPhone" ? o.searchParams.append("device", "ios") : o.searchParams.append("device", "mtWeb")), fetch(o.href).then((g) => g.json()).then((g) => {
437
+ t(6, k = g);
438
+ }).catch((g) => {
439
+ console.log(g), t(9, I = !0);
440
+ }).finally(() => {
441
+ z(), t(8, S = !1);
442
+ });
443
+ }, z = () => {
444
+ const o = m.getRootNode().host;
445
+ o.dispatchEvent(new CustomEvent("data-loaded", { bubbles: !0, detail: { target: o } }));
446
+ }, F = () => {
447
+ H();
448
+ }, T = (o) => {
449
+ o.data && o.data.type == "OpenCalendar" && (t(7, w = o.data.index), t(11, C = !0), window.postMessage(
450
+ {
451
+ type: "ShowModal",
452
+ selectedIndex: w,
453
+ identifier: "Calendar"
454
+ },
455
+ window.location.href
456
+ ), window.postMessage({
457
+ type: "DailyEventsData",
458
+ data: k[w]?.dailyEvents
459
+ })), o.data && o.data.type == "ModalClosed" && t(11, C = !1);
460
+ };
461
+ x(() => (window.addEventListener("message", T, !1), $(B) && t(10, M = !0), () => {
462
+ window.removeEventListener("message", T);
463
+ }));
464
+ function G(o) {
465
+ ee[o ? "unshift" : "push"](() => {
466
+ m = o, t(5, m);
467
+ });
468
+ }
469
+ return n.$$set = (o) => {
470
+ "cmsendpoint" in o && t(13, d = o.cmsendpoint), "env" in o && t(14, i = o.env), "userroles" in o && t(15, c = o.userroles), "lang" in o && t(0, l = o.lang), "clientstyling" in o && t(1, u = o.clientstyling), "clientstylingurl" in o && t(2, s = o.clientstylingurl), "translationurl" in o && t(3, f = o.translationurl), "mbsource" in o && t(4, E = o.mbsource);
471
+ }, n.$$.update = () => {
472
+ n.$$.dirty & /*cmsendpoint, lang, env, userroles*/
473
+ 57345 && d && l && i && c && F(), n.$$.dirty & /*clientstyling, customStylingContainer*/
474
+ 34 && u && m && re(m, u), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
475
+ 36 && s && m && se(m, s), n.$$.dirty & /*customStylingContainer, mbsource*/
476
+ 48 && m && oe(m, `${E}.Style`, U), n.$$.dirty & /*lang*/
477
+ 1 && l && W(), n.$$.dirty & /*lang, translationurl*/
478
+ 9 && l && f && q();
479
+ }, [
480
+ l,
481
+ u,
482
+ s,
483
+ f,
484
+ E,
485
+ m,
486
+ k,
487
+ w,
488
+ S,
489
+ I,
490
+ M,
491
+ C,
492
+ r,
493
+ d,
494
+ i,
495
+ c,
496
+ G
497
+ ];
498
+ }
499
+ class pe extends K {
500
+ constructor(e) {
501
+ super(), Q(
502
+ this,
503
+ e,
504
+ he,
505
+ _e,
506
+ X,
507
+ {
508
+ cmsendpoint: 13,
509
+ env: 14,
510
+ userroles: 15,
511
+ lang: 0,
512
+ clientstyling: 1,
513
+ clientstylingurl: 2,
514
+ translationurl: 3,
515
+ mbsource: 4
516
+ },
517
+ fe
518
+ );
519
+ }
520
+ get cmsendpoint() {
521
+ return this.$$.ctx[13];
522
+ }
523
+ set cmsendpoint(e) {
524
+ this.$$set({ cmsendpoint: e }), _();
525
+ }
526
+ get env() {
527
+ return this.$$.ctx[14];
528
+ }
529
+ set env(e) {
530
+ this.$$set({ env: e }), _();
531
+ }
532
+ get userroles() {
533
+ return this.$$.ctx[15];
534
+ }
535
+ set userroles(e) {
536
+ this.$$set({ userroles: e }), _();
537
+ }
538
+ get lang() {
539
+ return this.$$.ctx[0];
540
+ }
541
+ set lang(e) {
542
+ this.$$set({ lang: e }), _();
543
+ }
544
+ get clientstyling() {
545
+ return this.$$.ctx[1];
546
+ }
547
+ set clientstyling(e) {
548
+ this.$$set({ clientstyling: e }), _();
549
+ }
550
+ get clientstylingurl() {
551
+ return this.$$.ctx[2];
552
+ }
553
+ set clientstylingurl(e) {
554
+ this.$$set({ clientstylingurl: e }), _();
555
+ }
556
+ get translationurl() {
557
+ return this.$$.ctx[3];
558
+ }
559
+ set translationurl(e) {
560
+ this.$$set({ translationurl: e }), _();
561
+ }
562
+ get mbsource() {
563
+ return this.$$.ctx[4];
564
+ }
565
+ set mbsource(e) {
566
+ this.$$set({ mbsource: e }), _();
567
+ }
568
+ }
569
+ de(pe, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
570
+ export {
571
+ pe as default
572
+ };