@everymatrix/casino-footer-v2 1.54.0 → 1.54.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.
@@ -1,10 +1,10 @@
1
- import { S as H, b as V, f as y, c as N, a as O, d as R, e as x, t as U, g as p, H as z, h as q, o as S, u as G, n as B, j as J, v as K, w as Q, k as C } from "./CasinoFooterSection-Bu0a1vo7.js";
2
- import { b as W, $ as X, g as w, d as Y } from "./CasinoFooterThumbnail-ClM-QitR.js";
3
- function F(n, t) {
4
- W(n, t);
1
+ import { S as H, b as V, f as p, c as N, a as O, d as R, e as P, t as U, g as y, H as S, h as q, o as x, u as G, n as z, j as J, v as K, w as Q, k as C } from "./CasinoFooterSection-DD1dew3d.js";
2
+ import { b as W, $ as X, g as w, d as Y } from "./CasinoFooterThumbnail-BRNvrXA8.js";
3
+ function F(e, t) {
4
+ W(e, t);
5
5
  }
6
- function Z(n) {
7
- X.set(n);
6
+ function Z(e) {
7
+ X.set(e);
8
8
  }
9
9
  const _ = {
10
10
  en: {
@@ -47,65 +47,65 @@ const _ = {
47
47
  panicButtonString: "Hold button for 3 seconds to take 24-hour timeout"
48
48
  }
49
49
  };
50
- function $(n) {
51
- R(n, "svelte-1v7b25v", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
50
+ function $(e) {
51
+ R(e, "svelte-1v7b25v", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicSection .PanicButton{border-radius:5px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px;width:280px;height:fit-content;padding:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer}.PanicSectionMobile{position:absolute;top:0;left:0;width:100%;text-align:center;margin:20px 0 0 0 !important}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:100% !important;height:30px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:280px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.PanicButtonV2 .PanicButton{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px;font-size:12px}.PanicButtonV2 .PanicButtonMobile{border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:10px}.PanicButtonV2 .PanicButtonAnimation{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));width:388px}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:388px}}");
52
52
  }
53
- function tt(n) {
54
- let t, i, o, s = (
53
+ function tt(e) {
54
+ let t, i, r, s = (
55
55
  /*customtext*/
56
- (n[0] || /*$_*/
57
- n[5]("panicButtonString")) + ""
56
+ (e[0] || /*$_*/
57
+ e[5]("panicButtonString")) + ""
58
58
  ), m, l;
59
59
  return {
60
60
  c() {
61
- t = x("div"), i = x("div"), o = x("button"), m = U(s), p(o, "class", "PanicButton " + (w(
61
+ t = P("div"), i = P("div"), r = P("button"), m = U(s), y(r, "class", "PanicButton " + (w(
62
62
  /*userAgent*/
63
- n[6]
64
- ) !== "PC" ? "PanicButtonMobile" : "")), p(o, "part", "PanicButton " + (w(
63
+ e[6]
64
+ ) !== "PC" ? "PanicButtonMobile" : "")), y(r, "part", "PanicButton " + (w(
65
65
  /*userAgent*/
66
- n[6]
67
- ) !== "PC" ? "PanicButtonMobile" : "")), z(
68
- o,
66
+ e[6]
67
+ ) !== "PC" ? "PanicButtonMobile" : "")), S(
68
+ r,
69
69
  "PanicButtonAnimation",
70
70
  /*panicLoading*/
71
- n[4]
72
- ), p(i, "class", "PanicSection " + (w(
71
+ e[4]
72
+ ), y(i, "class", "PanicSection " + (w(
73
73
  /*userAgent*/
74
- n[6]
75
- ) !== "PC" ? "PanicSectionMobile" : "")), p(i, "part", "PanicSection " + (w(
74
+ e[6]
75
+ ) !== "PC" ? "PanicSectionMobile" : "")), y(i, "part", "PanicSection " + (w(
76
76
  /*userAgent*/
77
- n[6]
78
- ) !== "PC" ? "PanicSectionMobile" : "")), p(t, "class", l = /*alternativestyling*/
79
- n[1] == "true" ? "PanicButtonV2" : "");
77
+ e[6]
78
+ ) !== "PC" ? "PanicSectionMobile" : "")), y(t, "class", l = /*alternativestyling*/
79
+ e[1] == "true" ? "PanicButtonV2" : "");
80
80
  },
81
81
  m(a, u) {
82
- q(a, t, u), S(t, i), S(i, o), S(o, m), n[11](o), n[12](t);
82
+ q(a, t, u), x(t, i), x(i, r), x(r, m), e[11](r), e[12](t);
83
83
  },
84
84
  p(a, [u]) {
85
85
  u & /*customtext, $_*/
86
86
  33 && s !== (s = /*customtext*/
87
87
  (a[0] || /*$_*/
88
88
  a[5]("panicButtonString")) + "") && G(m, s), u & /*panicLoading*/
89
- 16 && z(
90
- o,
89
+ 16 && S(
90
+ r,
91
91
  "PanicButtonAnimation",
92
92
  /*panicLoading*/
93
93
  a[4]
94
94
  ), u & /*alternativestyling*/
95
95
  2 && l !== (l = /*alternativestyling*/
96
- a[1] == "true" ? "PanicButtonV2" : "") && p(t, "class", l);
96
+ a[1] == "true" ? "PanicButtonV2" : "") && y(t, "class", l);
97
97
  },
98
- i: B,
99
- o: B,
98
+ i: z,
99
+ o: z,
100
100
  d(a) {
101
- a && J(t), n[11](null), n[12](null);
101
+ a && J(t), e[11](null), e[12](null);
102
102
  }
103
103
  };
104
104
  }
105
- function et(n, t, i) {
106
- let o;
107
- K(n, Y, (e) => i(5, o = e));
108
- let { lang: s = "en" } = t, { customtext: m = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, { alternativestyling: u = "" } = t, { translationurl: b = "" } = t, r, g, h = !1, k = 0, P, D = window.navigator.userAgent;
105
+ function nt(e, t, i) {
106
+ let r;
107
+ K(e, Y, (n) => i(5, r = n));
108
+ let { lang: s = "en" } = t, { customtext: m = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: a = "" } = t, { alternativestyling: u = "" } = t, { translationurl: b = "" } = t, o, g, h = !1, k = 0, B, D = window.navigator.userAgent;
109
109
  const E = () => {
110
110
  fetch(b).then((c) => c.json()).then((c) => {
111
111
  Object.keys(c).forEach((d) => {
@@ -115,28 +115,28 @@ function et(n, t, i) {
115
115
  console.log(c);
116
116
  });
117
117
  };
118
- Object.keys(_).forEach((e) => {
119
- F(e, _[e]);
118
+ Object.keys(_).forEach((n) => {
119
+ F(n, _[n]);
120
120
  });
121
121
  const L = () => {
122
- r == null || r.addEventListener("mousedown", v, !1), r == null || r.addEventListener("touchstart", v, !1), r == null || r.addEventListener("mouseup", f, !1), r == null || r.addEventListener("touchend", f, !1);
122
+ o?.addEventListener("mousedown", v, !1), o?.addEventListener("touchstart", v, !1), o?.addEventListener("mouseup", f, !1), o?.addEventListener("touchend", f, !1);
123
123
  }, M = () => {
124
- i(4, h = !1), r == null || r.removeEventListener("mousedown", v), r == null || r.removeEventListener("touchstart", v), r == null || r.removeEventListener("mouseup", f), r == null || r.removeEventListener("touchend", f);
124
+ i(4, h = !1), o?.removeEventListener("mousedown", v), o?.removeEventListener("touchstart", v), o?.removeEventListener("mouseup", f), o?.removeEventListener("touchend", f);
125
125
  }, v = () => {
126
- k = 0, i(4, h = !0), P = setInterval(
126
+ k = 0, i(4, h = !0), B = setInterval(
127
127
  () => {
128
- k++, k >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(P), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
128
+ k++, k >= 2 && (window.postMessage({ type: "PanicButtonClicked" }, window.location.href), clearInterval(B), typeof gtag == "function" && gtag("event", "PanicButtonClicked", { context: "PanicButton" }));
129
129
  },
130
130
  1e3
131
131
  );
132
132
  }, f = () => {
133
- i(4, h = !1), clearInterval(P);
133
+ i(4, h = !1), clearInterval(B);
134
134
  }, A = () => {
135
- let e = document.createElement("style");
136
- e.innerHTML = l, g.appendChild(e);
135
+ let n = document.createElement("style");
136
+ n.innerHTML = l, g.appendChild(n);
137
137
  }, T = () => {
138
- let e = new URL(a), c = document.createElement("style");
139
- fetch(e.href).then((d) => d.text()).then((d) => {
138
+ let n = new URL(a), c = document.createElement("style");
139
+ fetch(n.href).then((d) => d.text()).then((d) => {
140
140
  c.innerHTML = d, setTimeout(
141
141
  () => {
142
142
  g.appendChild(c);
@@ -148,32 +148,32 @@ function et(n, t, i) {
148
148
  Q(() => () => {
149
149
  M();
150
150
  });
151
- function I(e) {
152
- C[e ? "unshift" : "push"](() => {
153
- r = e, i(2, r);
151
+ function I(n) {
152
+ C[n ? "unshift" : "push"](() => {
153
+ o = n, i(2, o);
154
154
  });
155
155
  }
156
- function j(e) {
157
- C[e ? "unshift" : "push"](() => {
158
- g = e, i(3, g);
156
+ function j(n) {
157
+ C[n ? "unshift" : "push"](() => {
158
+ g = n, i(3, g);
159
159
  });
160
160
  }
161
- return n.$$set = (e) => {
162
- "lang" in e && i(7, s = e.lang), "customtext" in e && i(0, m = e.customtext), "clientstyling" in e && i(8, l = e.clientstyling), "clientstylingurl" in e && i(9, a = e.clientstylingurl), "alternativestyling" in e && i(1, u = e.alternativestyling), "translationurl" in e && i(10, b = e.translationurl);
163
- }, n.$$.update = () => {
164
- n.$$.dirty & /*panicButton*/
165
- 4 && r && L(), n.$$.dirty & /*lang*/
166
- 128 && s && Z(s), n.$$.dirty & /*clientstyling, customStylingContainer*/
167
- 264 && l && g && A(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
168
- 520 && a && g && T(), n.$$.dirty & /*translationurl*/
161
+ return e.$$set = (n) => {
162
+ "lang" in n && i(7, s = n.lang), "customtext" in n && i(0, m = n.customtext), "clientstyling" in n && i(8, l = n.clientstyling), "clientstylingurl" in n && i(9, a = n.clientstylingurl), "alternativestyling" in n && i(1, u = n.alternativestyling), "translationurl" in n && i(10, b = n.translationurl);
163
+ }, e.$$.update = () => {
164
+ e.$$.dirty & /*panicButton*/
165
+ 4 && o && L(), e.$$.dirty & /*lang*/
166
+ 128 && s && Z(s), e.$$.dirty & /*clientstyling, customStylingContainer*/
167
+ 264 && l && g && A(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
168
+ 520 && a && g && T(), e.$$.dirty & /*translationurl*/
169
169
  1024 && b && E();
170
170
  }, [
171
171
  m,
172
172
  u,
173
- r,
173
+ o,
174
174
  g,
175
175
  h,
176
- o,
176
+ r,
177
177
  D,
178
178
  s,
179
179
  l,
@@ -183,12 +183,12 @@ function et(n, t, i) {
183
183
  j
184
184
  ];
185
185
  }
186
- class nt extends H {
186
+ class et extends H {
187
187
  constructor(t) {
188
188
  super(), V(
189
189
  this,
190
190
  t,
191
- et,
191
+ nt,
192
192
  tt,
193
193
  O,
194
194
  {
@@ -206,40 +206,40 @@ class nt extends H {
206
206
  return this.$$.ctx[7];
207
207
  }
208
208
  set lang(t) {
209
- this.$$set({ lang: t }), y();
209
+ this.$$set({ lang: t }), p();
210
210
  }
211
211
  get customtext() {
212
212
  return this.$$.ctx[0];
213
213
  }
214
214
  set customtext(t) {
215
- this.$$set({ customtext: t }), y();
215
+ this.$$set({ customtext: t }), p();
216
216
  }
217
217
  get clientstyling() {
218
218
  return this.$$.ctx[8];
219
219
  }
220
220
  set clientstyling(t) {
221
- this.$$set({ clientstyling: t }), y();
221
+ this.$$set({ clientstyling: t }), p();
222
222
  }
223
223
  get clientstylingurl() {
224
224
  return this.$$.ctx[9];
225
225
  }
226
226
  set clientstylingurl(t) {
227
- this.$$set({ clientstylingurl: t }), y();
227
+ this.$$set({ clientstylingurl: t }), p();
228
228
  }
229
229
  get alternativestyling() {
230
230
  return this.$$.ctx[1];
231
231
  }
232
232
  set alternativestyling(t) {
233
- this.$$set({ alternativestyling: t }), y();
233
+ this.$$set({ alternativestyling: t }), p();
234
234
  }
235
235
  get translationurl() {
236
236
  return this.$$.ctx[10];
237
237
  }
238
238
  set translationurl(t) {
239
- this.$$set({ translationurl: t }), y();
239
+ this.$$set({ translationurl: t }), p();
240
240
  }
241
241
  }
242
- N(nt, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
242
+ N(et, { lang: {}, customtext: {}, clientstyling: {}, clientstylingurl: {}, alternativestyling: {}, translationurl: {} }, [], [], !0);
243
243
  export {
244
- nt as default
244
+ et as default
245
245
  };
@@ -0,0 +1,14 @@
1
+ import { C as s } from "../components/CasinoFooterV2-6c0BSAVs.js";
2
+ function o(t) {
3
+ return function(...n) {
4
+ try {
5
+ return t.apply(this, n);
6
+ } catch (e) {
7
+ if (e instanceof DOMException && e.message.includes("has already been used with this registry") || e.message.includes("Cannot define multiple custom elements with the same tag name"))
8
+ return !1;
9
+ throw e;
10
+ }
11
+ };
12
+ }
13
+ customElements.define = o(customElements.define);
14
+ !customElements.get("casino-footer-v2") && customElements.define("casino-footer-v2", s.element);
package/package.json CHANGED
@@ -1,26 +1,24 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-footer-v2",
3
- "version": "1.54.0",
3
+ "version": "1.54.2",
4
4
  "type": "module",
5
- "main": "es2015/casino-footer-v2.cjs",
6
- "module": "es2015/casino-footer-v2.js",
5
+ "main": "esnext/casino-footer-v2.js",
6
+ "module": "esnext/casino-footer-v2.js",
7
7
  "exports": {
8
8
  ".": {
9
- "import": "./es2015/casino-footer-v2.js",
10
- "require": "./es2015/casino-footer-v2.cjs"
9
+ "import": "./esnext/casino-footer-v2.js"
11
10
  },
12
- "./es2015/casino-footer-v2.cjs": "./es2015/casino-footer-v2.cjs"
11
+ "./es2015/casino-footer-v2.cjs": "./es2015/casino-footer-v2.cjs",
12
+ "./es2015/casino-footer-v2.js": "./es2015/casino-footer-v2.js"
13
13
  },
14
14
  "files": [
15
+ "components/",
15
16
  "es2015/",
16
- "components",
17
- "stencil"
17
+ "stencil",
18
+ "angular",
19
+ "esnext/"
18
20
  ],
19
21
  "publishConfig": {
20
22
  "access": "public"
21
- },
22
- "dependencies": {
23
- "@everymatrix/casino-footer-section": "1.45.7",
24
- "@everymatrix/player-panic-button": "1.45.7"
25
23
  }
26
24
  }