@everymatrix/casino-calendar 1.45.0 → 1.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,220 @@
1
+ import { $ as R, a as P, S as q, i as A, f, c as O, s as U, b as G, e as c, q as L, r as T, u as l, D as E, G as v, d as V, v as o, w as W, A as S, C as j, j as J, o as K, l as N, m as H } from "./CasinoCalendar-gQdcFZfn.js";
2
+ function Q({ withLocale: i, translations: e }) {
3
+ R.subscribe((a) => {
4
+ a == null && (P.set(e), R.set(i));
5
+ });
6
+ }
7
+ function X(i) {
8
+ G(i, "svelte-5rmvn0", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emfe-w-color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 8px 30px 8px;text-align:center;border-radius:0 0 2px 2px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:8px 6px;border-radius:5px;border:none;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}');
9
+ }
10
+ function Y(i) {
11
+ let e, a, y, u, b, k, n, h, d, x, m, p, g, I, F, D, C, w, B, _, z, M, t;
12
+ return {
13
+ c() {
14
+ e = c("div"), a = c("div"), y = c("div"), u = c("div"), b = c("div"), b.innerHTML = '<div class="RingLeft"></div> <div class="RingRight"></div>', k = L(), n = c("div"), h = c("div"), d = c("img"), m = L(), p = c("div"), g = T(
15
+ /*dailyday*/
16
+ i[2]
17
+ ), I = L(), F = c("div"), D = L(), C = c("div"), w = c("button"), B = T(
18
+ /*dailybuttontitle*/
19
+ i[3]
20
+ ), l(b, "class", "CalendarBar"), E(d.src, x = /*dailyicon*/
21
+ i[1]) || l(d, "src", x), l(
22
+ d,
23
+ "alt",
24
+ /*dailyicon*/
25
+ i[1]
26
+ ), l(h, "class", "CasinoCalendarDailyIcon"), l(p, "class", "CasinoCalendarDailyTitle"), l(F, "class", "CasinoCalendarDailyItemDescription"), l(w, "class", "MoreInfoButton"), l(C, "class", "CasinoCalendarDailyItemButton"), l(n, "class", _ = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
27
+ i[4] == "OpenCalendarModal" ? "Tear" : "")), v(n, "background-image", "url('" + /*dailybackground*/
28
+ i[0] + "')"), v(n, "background-size", "cover"), v(n, "background-position", "center"), v(n, "-webkit-background-size", "cover"), v(n, "-moz-background-size", "cover"), v(n, "-o-background-size", "cover"), l(u, "class", "CalendarCard"), l(y, "class", "CasinoCalendarItems"), l(a, "class", z = "Container " + /*mobileView*/
29
+ (i[7] ? "Mobile" : ""));
30
+ },
31
+ m(r, s) {
32
+ V(r, e, s), o(e, a), o(a, y), o(y, u), o(u, b), o(u, k), o(u, n), o(n, h), o(h, d), o(n, m), o(n, p), o(p, g), o(n, I), o(n, F), i[13](F), o(n, D), o(n, C), o(C, w), o(w, B), i[15](e), M || (t = W(
33
+ w,
34
+ "click",
35
+ /*click_handler*/
36
+ i[14]
37
+ ), M = !0);
38
+ },
39
+ p(r, [s]) {
40
+ s & /*dailyicon*/
41
+ 2 && !E(d.src, x = /*dailyicon*/
42
+ r[1]) && l(d, "src", x), s & /*dailyicon*/
43
+ 2 && l(
44
+ d,
45
+ "alt",
46
+ /*dailyicon*/
47
+ r[1]
48
+ ), s & /*dailyday*/
49
+ 4 && S(
50
+ g,
51
+ /*dailyday*/
52
+ r[2]
53
+ ), s & /*dailybuttontitle*/
54
+ 8 && S(
55
+ B,
56
+ /*dailybuttontitle*/
57
+ r[3]
58
+ ), s & /*index*/
59
+ 16 && _ !== (_ = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
60
+ r[4] == "OpenCalendarModal" ? "Tear" : "")) && l(n, "class", _), s & /*dailybackground*/
61
+ 1 && v(n, "background-image", "url('" + /*dailybackground*/
62
+ r[0] + "')"), s & /*mobileView*/
63
+ 128 && z !== (z = "Container " + /*mobileView*/
64
+ (r[7] ? "Mobile" : "")) && l(a, "class", z);
65
+ },
66
+ i: j,
67
+ o: j,
68
+ d(r) {
69
+ r && J(e), i[13](null), i[15](null), M = !1, t();
70
+ }
71
+ };
72
+ }
73
+ function Z(i, e, a) {
74
+ let { lang: y = "" } = e, { dailybackground: u = "" } = e, { dailyicon: b = "" } = e, { dailyday: k = "" } = e, { dailydescription: n = "<p></p>" } = e, { dailybuttontitle: h = "" } = e, { index: d = "0" } = e, { clientstyling: x = "" } = e, { clientstylingurl: m = "" } = e;
75
+ Q({ withLocale: "en", translations: {} });
76
+ let p, g, I = !1, F = window.navigator.userAgent;
77
+ const D = () => {
78
+ let t = document.createElement("div");
79
+ t.innerHTML = n, p && p.append(t);
80
+ }, C = () => {
81
+ window.postMessage({ type: "OpenCalendar", index: d }, window.location.href), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetItem" });
82
+ }, w = () => {
83
+ let t = document.createElement("style");
84
+ t.innerHTML = x, g.appendChild(t);
85
+ }, B = () => {
86
+ let t = new URL(m), r = document.createElement("style");
87
+ fetch(t.href).then((s) => s.text()).then((s) => {
88
+ r.innerHTML = s, setTimeout(
89
+ () => {
90
+ g.appendChild(r);
91
+ },
92
+ 1
93
+ ), setTimeout(
94
+ () => {
95
+ },
96
+ 500
97
+ );
98
+ });
99
+ };
100
+ K(() => {
101
+ N(F) && a(7, I = !0);
102
+ });
103
+ function _(t) {
104
+ H[t ? "unshift" : "push"](() => {
105
+ p = t, a(6, p);
106
+ });
107
+ }
108
+ const z = () => C();
109
+ function M(t) {
110
+ H[t ? "unshift" : "push"](() => {
111
+ g = t, a(5, g);
112
+ });
113
+ }
114
+ return i.$$set = (t) => {
115
+ "lang" in t && a(9, y = t.lang), "dailybackground" in t && a(0, u = t.dailybackground), "dailyicon" in t && a(1, b = t.dailyicon), "dailyday" in t && a(2, k = t.dailyday), "dailydescription" in t && a(10, n = t.dailydescription), "dailybuttontitle" in t && a(3, h = t.dailybuttontitle), "index" in t && a(4, d = t.index), "clientstyling" in t && a(11, x = t.clientstyling), "clientstylingurl" in t && a(12, m = t.clientstylingurl);
116
+ }, i.$$.update = () => {
117
+ i.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
118
+ 1039 && b && k && n && h && u && D(), i.$$.dirty & /*clientstyling, customStylingContainer*/
119
+ 2080 && x && g && w(), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
120
+ 4128 && m && g && B();
121
+ }, [
122
+ u,
123
+ b,
124
+ k,
125
+ h,
126
+ d,
127
+ g,
128
+ p,
129
+ I,
130
+ C,
131
+ y,
132
+ n,
133
+ x,
134
+ m,
135
+ _,
136
+ z,
137
+ M
138
+ ];
139
+ }
140
+ class $ extends q {
141
+ constructor(e) {
142
+ super(), A(
143
+ this,
144
+ e,
145
+ Z,
146
+ Y,
147
+ U,
148
+ {
149
+ lang: 9,
150
+ dailybackground: 0,
151
+ dailyicon: 1,
152
+ dailyday: 2,
153
+ dailydescription: 10,
154
+ dailybuttontitle: 3,
155
+ index: 4,
156
+ clientstyling: 11,
157
+ clientstylingurl: 12
158
+ },
159
+ X
160
+ );
161
+ }
162
+ get lang() {
163
+ return this.$$.ctx[9];
164
+ }
165
+ set lang(e) {
166
+ this.$$set({ lang: e }), f();
167
+ }
168
+ get dailybackground() {
169
+ return this.$$.ctx[0];
170
+ }
171
+ set dailybackground(e) {
172
+ this.$$set({ dailybackground: e }), f();
173
+ }
174
+ get dailyicon() {
175
+ return this.$$.ctx[1];
176
+ }
177
+ set dailyicon(e) {
178
+ this.$$set({ dailyicon: e }), f();
179
+ }
180
+ get dailyday() {
181
+ return this.$$.ctx[2];
182
+ }
183
+ set dailyday(e) {
184
+ this.$$set({ dailyday: e }), f();
185
+ }
186
+ get dailydescription() {
187
+ return this.$$.ctx[10];
188
+ }
189
+ set dailydescription(e) {
190
+ this.$$set({ dailydescription: e }), f();
191
+ }
192
+ get dailybuttontitle() {
193
+ return this.$$.ctx[3];
194
+ }
195
+ set dailybuttontitle(e) {
196
+ this.$$set({ dailybuttontitle: e }), f();
197
+ }
198
+ get index() {
199
+ return this.$$.ctx[4];
200
+ }
201
+ set index(e) {
202
+ this.$$set({ index: e }), f();
203
+ }
204
+ get clientstyling() {
205
+ return this.$$.ctx[11];
206
+ }
207
+ set clientstyling(e) {
208
+ this.$$set({ clientstyling: e }), f();
209
+ }
210
+ get clientstylingurl() {
211
+ return this.$$.ctx[12];
212
+ }
213
+ set clientstylingurl(e) {
214
+ this.$$set({ clientstylingurl: e }), f();
215
+ }
216
+ }
217
+ O($, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
218
+ export {
219
+ $ as default
220
+ };
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoCalendar-Dp80qOpg.cjs")).then(e=>e.CasinoCalendar_ce).then(({default:e})=>{!customElements.get("casino-calendar")&&customElements.define("casino-calendar",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoCalendar-DbprW3rl.cjs")).then(e=>e.CasinoCalendar_ce).then(({default:e})=>{!customElements.get("casino-calendar")&&customElements.define("casino-calendar",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoCalendar-wjR5PjOi.js").then((e) => e.I).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoCalendar-gQdcFZfn.js").then((e) => e.I).then(({ default: e }) => {
14
14
  !customElements.get("casino-calendar") && customElements.define("casino-calendar", e.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-calendar",
3
- "version": "1.45.0",
3
+ "version": "1.45.2",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-calendar.cjs",
6
6
  "module": "es2015/casino-calendar.js",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "./es2015/casino-calendar.cjs": "./es2015/casino-calendar.cjs"
13
13
  },
14
- "files": [
14
+ "files": [
15
15
  "es2015/",
16
16
  "components"
17
17
  ],
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-Dp80qOpg.cjs");function O({withLocale:a,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function W(a){e.$locale.set(a)}function G(a){e.append_styles(a,"svelte-1fgc73g",".svelte-1fgc73g.svelte-1fgc73g,.svelte-1fgc73g.svelte-1fgc73g::before,.svelte-1fgc73g.svelte-1fgc73g::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}#CollapseMoreInfoButton.svelte-1fgc73g.svelte-1fgc73g{-moz-transition:height 0.5s;-ms-transition:height 0.5s;-o-transition:height 0.5s;-webkit-transition:height 0.5s;transition:height 0.5s;height:0;overflow:hidden}.MoreInfoButton.svelte-1fgc73g.svelte-1fgc73g{appearance:none;padding:8px 6px;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}.IconDown.svelte-1fgc73g.svelte-1fgc73g{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp.svelte-1fgc73g.svelte-1fgc73g{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground.svelte-1fgc73g.svelte-1fgc73g{position:relative;display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emfe-w-color-white, #FFFFFF);width:500px;max-height:85vh;padding:20px;text-align:center;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent.svelte-1fgc73g.svelte-1fgc73g{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px;overflow-y:scroll;scrollbar-width:none}.CasinoCalendarDailyDay.svelte-1fgc73g.svelte-1fgc73g{padding:10px 0 30px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarDailyTitle.svelte-1fgc73g.svelte-1fgc73g{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.CasinoCalendarImage.svelte-1fgc73g.svelte-1fgc73g{background:var(--emfe-w-color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage.svelte-1fgc73g img.svelte-1fgc73g{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription.svelte-1fgc73g.svelte-1fgc73g{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emfe-w-gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emfe-w-color-white, #FFFFFF) 55%, var(--emfe-w-color-gray-100, #E6E6E6));overflow-wrap:break-word}.HeaderDailyDetails.svelte-1fgc73g.svelte-1fgc73g{overflow:hidden;width:110%;border-bottom:1px solid var(--emfe-w-casino-color-primary, #D0046C)}.ModalCloseBtn.svelte-1fgc73g.svelte-1fgc73g{position:absolute;top:14px;right:10px;display:flex;align-items:center;justify-content:center;padding:10px;border-radius:50%;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-casino-color-primary, #D0046C);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn.svelte-1fgc73g svg.svelte-1fgc73g{width:32px;height:32px}.ModalCloseBtn.svelte-1fgc73g.svelte-1fgc73g:hover{background:var(--emfe-w-color-gray-300, #58586B)}.DetailsTabsTitles.svelte-1fgc73g.svelte-1fgc73g{display:flex;flex-direction:row}.DetailTabsDescription.svelte-1fgc73g.svelte-1fgc73g{margin-top:15px}.CasinoCalendarTabs.svelte-1fgc73g.svelte-1fgc73g{width:100%;font-size:14px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:stretch;padding-bottom:40px;flex-direction:column}.CasinoCalendarFitImage.svelte-1fgc73g.svelte-1fgc73g{border-radius:5px}.NotVisible.svelte-1fgc73g.svelte-1fgc73g{display:none}.Header.svelte-1fgc73g.svelte-1fgc73g{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton.svelte-1fgc73g.svelte-1fgc73g{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emfe-w-color-white, #FFFFFF);color:var(--emfe-w-color-gray-150, #828282)}.SelectedTab.svelte-1fgc73g.svelte-1fgc73g{box-shadow:none;border-bottom:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.Mobile.svelte-1fgc73g.svelte-1fgc73g{max-height:70vh;margin-bottom:0;width:100%;padding:20px 0}")}function H(a,t,l){const n=a.slice();return n[28]=t[l],n[29]=t,n[30]=l,n}function S(a,t,l){const n=a.slice();return n[31]=t[l],n[33]=l,n}const J=a=>({}),U=a=>({});function K(a){let t,l,n,d,o,s,r,g,c,v,_;const b=a[18].close,y=e.create_slot(b,a,a[17],U),h=y||Y();let p=e.ensure_array_like(a[3]),m=[];for(let f=0;f<p.length;f+=1)m[f]=q(H(a,p,f));return{c(){t=e.element("div"),l=e.element("div"),n=e.element("span"),h&&h.c(),d=e.space(),o=e.element("div"),s=e.text(a[1]),r=e.space();for(let f=0;f<m.length;f+=1)m[f].c();e.attr(n,"class","ModalCloseBtn svelte-1fgc73g"),e.attr(n,"role","button"),e.attr(o,"class","CasinoCalendarDailyDay svelte-1fgc73g"),e.attr(l,"class","HeaderDailyDetails svelte-1fgc73g"),e.attr(t,"class",g="CasinoCalendarDailyDetailsBackground "+(a[5]?"Mobile":"")+" svelte-1fgc73g")},m(f,C){e.insert(f,t,C),e.append(t,l),e.append(l,n),h&&h.m(n,null),e.append(l,d),e.append(l,o),e.append(o,s),e.append(t,r);for(let u=0;u<m.length;u+=1)m[u]&&m[u].m(t,null);c=!0,v||(_=e.listen(n,"click",a[6]),v=!0)},p(f,C){if(y&&y.p&&(!c||C[0]&131072)&&e.update_slot_base(y,b,f,f[17],c?e.get_slot_changes(b,f[17],C,J):e.get_all_dirty_from_scope(f[17]),U),(!c||C[0]&2)&&e.set_data(s,f[1]),C[0]&393){p=e.ensure_array_like(f[3]);let u;for(u=0;u<p.length;u+=1){const M=H(f,p,u);m[u]?m[u].p(M,C):(m[u]=q(M),m[u].c(),m[u].m(t,null))}for(;u<m.length;u+=1)m[u].d(1);m.length=p.length}(!c||C[0]&32&&g!==(g="CasinoCalendarDailyDetailsBackground "+(f[5]?"Mobile":"")+" svelte-1fgc73g"))&&e.attr(t,"class",g)},i(f){c||(e.transition_in(h,f),c=!0)},o(f){e.transition_out(h,f),c=!1},d(f){f&&e.detach(t),h&&h.d(f),e.destroy_each(m,f),v=!1,_()}}}function Q(a){let t;return{c(){t=e.element("p"),t.textContent="Loading ...",e.attr(t,"class","SearchLoading svelte-1fgc73g"),e.attr(t,"part","SearchLoading")},m(l,n){e.insert(l,t,n)},p:e.noop,i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function X(a){let t;return{c(){t=e.element("p"),t.textContent="500 Error - Internal Server Error",e.attr(t,"class","SearchLoading svelte-1fgc73g"),e.attr(t,"part","SearchLoading")},m(l,n){e.insert(l,t,n)},p:e.noop,i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function Y(a){let t,l;return{c(){t=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(l,"stroke-width","2"),e.attr(l,"d","M6 18L18 6M6 6l12 12"),e.attr(l,"class","svelte-1fgc73g"),e.attr(t,"class","w-6 h-6 svelte-1fgc73g"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(n,d){e.insert(n,t,d),e.append(t,l)},p:e.noop,d(n){n&&e.detach(t)}}}function Z(a){let t,l;return{c(){t=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(l,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),e.attr(l,"class","svelte-1fgc73g"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"fill","none"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"stroke-width","1.5"),e.attr(t,"stroke","var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"),e.attr(t,"class","IconDown svelte-1fgc73g")},m(n,d){e.insert(n,t,d),e.append(t,l)},d(n){n&&e.detach(t)}}}function $(a){let t,l;return{c(){t=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(l,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),e.attr(l,"class","svelte-1fgc73g"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"fill","none"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"stroke-width","1.5"),e.attr(t,"stroke","var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))"),e.attr(t,"class","IconUp svelte-1fgc73g")},m(n,d){e.insert(n,t,d),e.append(t,l)},d(n){n&&e.detach(t)}}}function j(a){let t,l,n,d=e.ensure_array_like(a[28].details),o=[];for(let r=0;r<d.length;r+=1)o[r]=z(S(a,d,r));let s=a[28].detailsExpanded&&A(a);return{c(){t=e.element("div");for(let r=0;r<o.length;r+=1)o[r].c();l=e.space(),s&&s.c(),n=e.empty(),e.attr(t,"class","DetailsTabsTitles svelte-1fgc73g")},m(r,g){e.insert(r,t,g);for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(t,null);e.insert(r,l,g),s&&s.m(r,g),e.insert(r,n,g)},p(r,g){if(g[0]&264){d=e.ensure_array_like(r[28].details);let c;for(c=0;c<d.length;c+=1){const v=S(r,d,c);o[c]?o[c].p(v,g):(o[c]=z(v),o[c].c(),o[c].m(t,null))}for(;c<o.length;c+=1)o[c].d(1);o.length=d.length}r[28].detailsExpanded?s?s.p(r,g):(s=A(r),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(r){r&&(e.detach(t),e.detach(l),e.detach(n)),e.destroy_each(o,r),s&&s.d(r)}}}function z(a){let t,l,n,d=a[31].title+"",o,s,r,g,c;function v(){return a[20](a[28],a[33],a[30])}return{c(){t=e.element("div"),l=e.element("div"),n=e.element("button"),s=e.space(),e.attr(n,"class",o="HeaderButton "+(a[33]===a[28].selectedTab?"Active":"")+" svelte-1fgc73g"),e.attr(l,"class","Header svelte-1fgc73g"),e.attr(t,"class",r=(a[33]===a[28].selectedTab?"SelectedTab":"")+" svelte-1fgc73g"),e.attr(t,"id","CollapseMoreInfoButton"),e.set_style(t,"height",a[28].expandedInfo?"100%":"")},m(_,b){e.insert(_,t,b),e.append(t,l),e.append(l,n),n.innerHTML=d,e.append(t,s),g||(c=e.listen(n,"click",v),g=!0)},p(_,b){a=_,b[0]&8&&d!==(d=a[31].title+"")&&(n.innerHTML=d),b[0]&8&&o!==(o="HeaderButton "+(a[33]===a[28].selectedTab?"Active":"")+" svelte-1fgc73g")&&e.attr(n,"class",o),b[0]&8&&r!==(r=(a[33]===a[28].selectedTab?"SelectedTab":"")+" svelte-1fgc73g")&&e.attr(t,"class",r),b[0]&8&&e.set_style(t,"height",a[28].expandedInfo?"100%":"")},d(_){_&&e.detach(t),g=!1,c()}}}function A(a){let t,l=a[28].details[a[28].selectedTab].description+"",n;return{c(){t=e.element("div"),e.attr(t,"class",n="DetailTabsDescription "+(a[28].details[a[28].selectedTab].expandedTab?"":"NotVisible")+" svelte-1fgc73g")},m(d,o){e.insert(d,t,o),t.innerHTML=l},p(d,o){o[0]&8&&l!==(l=d[28].details[d[28].selectedTab].description+"")&&(t.innerHTML=l),o[0]&8&&n!==(n="DetailTabsDescription "+(d[28].details[d[28].selectedTab].expandedTab?"":"NotVisible")+" svelte-1fgc73g")&&e.attr(t,"class",n)},d(d){d&&e.detach(t)}}}function q(a){let t,l,n=a[28].title+"",d,o,s,r,g,c,v,_=a[28].description+"",b,y,h,p,m,f,C,u,M;function I(T,D){return T[28].expandedInfo==!0?$:Z}let L=I(a),F=L(a);function B(){return a[19](a[28],a[29],a[30])}let w=a[28].expandedInfo==!0&&j(a);return{c(){t=e.element("div"),l=e.element("div"),d=e.space(),o=e.element("div"),s=e.element("img"),c=e.space(),v=e.element("div"),b=e.space(),y=e.element("div"),h=e.element("button"),p=new e.HtmlTag(!1),m=e.space(),F.c(),f=e.space(),w&&w.c(),C=e.space(),e.attr(l,"class","CasinoCalendarDailyTitle svelte-1fgc73g"),e.attr(s,"class","CasinoCalendarFitImage svelte-1fgc73g"),e.src_url_equal(s.src,r=a[28].image)||e.attr(s,"src",r),e.attr(s,"alt",g=a[28].image),e.attr(o,"class","CasinoCalendarImage svelte-1fgc73g"),e.attr(v,"class","CasinoCalendarDailyDescription svelte-1fgc73g"),p.a=m,e.attr(h,"class","MoreInfoButton svelte-1fgc73g"),e.attr(y,"class","CasinoCalendarTabs svelte-1fgc73g"),e.attr(t,"class","CasinoCalendarDailyDetailsParent svelte-1fgc73g")},m(T,D){e.insert(T,t,D),e.append(t,l),l.innerHTML=n,e.append(t,d),e.append(t,o),e.append(o,s),e.append(t,c),e.append(t,v),v.innerHTML=_,e.append(t,b),e.append(t,y),e.append(y,h),p.m(a[0],h),e.append(h,m),F.m(h,null),e.append(y,f),w&&w.m(y,null),e.append(t,C),u||(M=e.listen(h,"click",B),u=!0)},p(T,D){a=T,D[0]&8&&n!==(n=a[28].title+"")&&(l.innerHTML=n),D[0]&8&&!e.src_url_equal(s.src,r=a[28].image)&&e.attr(s,"src",r),D[0]&8&&g!==(g=a[28].image)&&e.attr(s,"alt",g),D[0]&8&&_!==(_=a[28].description+"")&&(v.innerHTML=_),D[0]&1&&p.p(a[0]),L!==(L=I(a))&&(F.d(1),F=L(a),F&&(F.c(),F.m(h,null))),a[28].expandedInfo==!0?w?w.p(a,D):(w=j(a),w.c(),w.m(y,null)):w&&(w.d(1),w=null)},d(T){T&&e.detach(t),F.d(),w&&w.d(),u=!1,M()}}}function ee(a){let t,l,n,d;const o=[X,Q,K],s=[];function r(g,c){return g[4]?1:2}return l=r(a),n=s[l]=o[l](a),{c(){t=e.element("div"),n.c(),e.attr(t,"class","svelte-1fgc73g")},m(g,c){e.insert(g,t,c),s[l].m(t,null),a[21](t),d=!0},p(g,c){let v=l;l=r(g),l===v?s[l].p(g,c):(e.group_outros(),e.transition_out(s[v],1,1,()=>{s[v]=null}),e.check_outros(),n=s[l],n?n.p(g,c):(n=s[l]=o[l](g),n.c()),e.transition_in(n,1),n.m(t,null))},i(g){d||(e.transition_in(n),d=!0)},o(g){e.transition_out(n),d=!1},d(g){g&&e.detach(t),s[l].d(),a[21](null)}}}function te(a,t,l){let{$$slots:n={},$$scope:d}=t,{dailybackground:o=""}=t,{dailybuttontitle:s=""}=t,{dailyday:r=""}=t,{dailydescription:g="<p></p>"}=t,{dailyicon:c=""}=t,{dailytitle:v=""}=t,{lang:_="en"}=t,{clientstyling:b=""}=t,{clientstylingurl:y=""}=t,{translationUrl:h=""}=t,p=[],m=!0,f=!1,C=window.navigator.userAgent,u;O({withLocale:"en",translations:{}});const M=i=>{i.data.type=="DailyEventsData"&&(l(4,m=!1),l(3,p=i.data.data),p.forEach(k=>{k.expandedInfo=!1,k.detailsExpanded=!1,k.selectedTab=0,k.details.forEach((x,E)=>{x.expandedTab=E==0})}))},I=()=>{window.postMessage({type:"ModalClosed"},window.location.href),p.forEach((i,k)=>{i.detailsExpanded=k==0,i.expandedInfo=k==0,i.selectedTab=0})},L=()=>{W(_)},F=i=>{l(3,p[i].detailsExpanded=!p[i].detailsExpanded,p),typeof gtag=="function"&&gtag("event","MoreInfo",{context:"CalendarWidgetDetails"})},B=(i,k,x)=>{l(3,p[x].selectedTab=k,p),i.details.forEach((E,R)=>{p[x].selectedTab!=R?E.expandedTab=!1:E.expandedTab=!0})},w=()=>{let i=document.createElement("style");i.innerHTML=b,u.appendChild(i)},T=()=>{let i=new URL(y),k=document.createElement("style");fetch(i.href).then(x=>x.text()).then(x=>{k.innerHTML=x,setTimeout(()=>{u.appendChild(k)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",M,!1),e.isMobile(C)&&l(5,f=!0),()=>{window.removeEventListener("message",M)}));const D=(i,k,x)=>{l(3,k[x].expandedInfo=!i.expandedInfo,p),F(x)},V=(i,k,x)=>{B(i,k,x)};function P(i){e.binding_callbacks[i?"unshift":"push"](()=>{u=i,l(2,u)})}return a.$$set=i=>{"dailybackground"in i&&l(9,o=i.dailybackground),"dailybuttontitle"in i&&l(0,s=i.dailybuttontitle),"dailyday"in i&&l(1,r=i.dailyday),"dailydescription"in i&&l(10,g=i.dailydescription),"dailyicon"in i&&l(11,c=i.dailyicon),"dailytitle"in i&&l(12,v=i.dailytitle),"lang"in i&&l(13,_=i.lang),"clientstyling"in i&&l(14,b=i.clientstyling),"clientstylingurl"in i&&l(15,y=i.clientstylingurl),"translationUrl"in i&&l(16,h=i.translationUrl),"$$scope"in i&&l(17,d=i.$$scope)},a.$$.update=()=>{a.$$.dirty[0]&8192&&_&&L(),a.$$.dirty[0]&16388&&b&&u&&w(),a.$$.dirty[0]&32772&&y&&u&&T()},[s,r,u,p,m,f,I,F,B,o,g,c,v,_,b,y,h,d,n,D,V,P]}class N extends e.SvelteComponent{constructor(t){super(),e.init(this,t,te,ee,e.safe_not_equal,{dailybackground:9,dailybuttontitle:0,dailyday:1,dailydescription:10,dailyicon:11,dailytitle:12,lang:13,clientstyling:14,clientstylingurl:15,translationUrl:16},G,[-1,-1])}get dailybackground(){return this.$$.ctx[9]}set dailybackground(t){this.$$set({dailybackground:t}),e.flush()}get dailybuttontitle(){return this.$$.ctx[0]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),e.flush()}get dailyday(){return this.$$.ctx[1]}set dailyday(t){this.$$set({dailyday:t}),e.flush()}get dailydescription(){return this.$$.ctx[10]}set dailydescription(t){this.$$set({dailydescription:t}),e.flush()}get dailyicon(){return this.$$.ctx[11]}set dailyicon(t){this.$$set({dailyicon:t}),e.flush()}get dailytitle(){return this.$$.ctx[12]}set dailytitle(t){this.$$set({dailytitle:t}),e.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationUrl(){return this.$$.ctx[16]}set translationUrl(t){this.$$set({translationUrl:t}),e.flush()}}e.create_custom_element(N,{dailybackground:{},dailybuttontitle:{},dailyday:{},dailydescription:{},dailyicon:{},dailytitle:{},lang:{},clientstyling:{},clientstylingurl:{},translationUrl:{}},["close"],[],!0);exports.default=N;