@everymatrix/casino-wagering-bonuses-controller 1.87.26 → 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.
@@ -0,0 +1,138 @@
1
+ import { S as h, i as p, s as y, f as a, a as m, n as u, d as g, j as S, p as b, q as w, r as v, o as _ } from "./CasinoWageringBonusesController-CnKwduJm.js";
2
+ const d = "__WIDGET_GLOBAL_STYLE_CACHE__";
3
+ function x(t, e) {
4
+ if (t) {
5
+ const i = document.createElement("style");
6
+ i.innerHTML = e, t.appendChild(i);
7
+ }
8
+ }
9
+ function C(t, e) {
10
+ if (!t || !e)
11
+ return;
12
+ const i = new URL(e);
13
+ fetch(i.href).then((n) => n.text()).then((n) => {
14
+ const l = document.createElement("style");
15
+ l.innerHTML = n, t && t.appendChild(l);
16
+ }).catch((n) => {
17
+ console.error("There was an error while trying to load client styling from URL", n);
18
+ });
19
+ }
20
+ function L(t, e, i, n = !1) {
21
+ if (!window.emMessageBus)
22
+ return;
23
+ if (!("adoptedStyleSheets" in Document.prototype) || !n)
24
+ return i = M(t, e), i;
25
+ window[d] || (window[d] = {}), i = T(t, e);
26
+ const r = i.unsubscribe.bind(i), s = () => {
27
+ if (window[d][e]) {
28
+ const o = window[d][e];
29
+ o.refCount > 1 ? o.refCount = o.refCount - 1 : delete window[d][e];
30
+ }
31
+ r();
32
+ };
33
+ return i.unsubscribe = s, i;
34
+ }
35
+ function M(t, e) {
36
+ const i = document.createElement("style");
37
+ return window.emMessageBus.subscribe(e, (n) => {
38
+ t && (i.innerHTML = n, t.appendChild(i));
39
+ });
40
+ }
41
+ function T(t, e) {
42
+ return window.emMessageBus.subscribe(e, (i) => {
43
+ var o;
44
+ if (!t)
45
+ return;
46
+ const n = t.getRootNode(), l = window[d];
47
+ let r = (o = l[e]) == null ? void 0 : o.sheet;
48
+ r ? l[e].refCount = l[e].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(i), l[e] = {
49
+ sheet: r,
50
+ refCount: 1
51
+ });
52
+ const s = n.adoptedStyleSheets || [];
53
+ s.includes(r) || (n.adoptedStyleSheets = [...s, r]);
54
+ });
55
+ }
56
+ function k(t) {
57
+ m(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
58
+ }
59
+ function A(t) {
60
+ let e;
61
+ return {
62
+ c() {
63
+ e = b("div"), e.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
64
+ },
65
+ m(i, n) {
66
+ S(i, e, n), t[4](e);
67
+ },
68
+ p: u,
69
+ i: u,
70
+ o: u,
71
+ d(i) {
72
+ i && g(e), t[4](null);
73
+ }
74
+ };
75
+ }
76
+ function E(t, e, i) {
77
+ let { clientstyling: n = "" } = e, { clientstylingurl: l = "" } = e, { mbsource: r } = e, s, o;
78
+ w(() => () => {
79
+ });
80
+ function f(c) {
81
+ v[c ? "unshift" : "push"](() => {
82
+ s = c, i(0, s);
83
+ });
84
+ }
85
+ return t.$$set = (c) => {
86
+ "clientstyling" in c && i(1, n = c.clientstyling), "clientstylingurl" in c && i(2, l = c.clientstylingurl), "mbsource" in c && i(3, r = c.mbsource);
87
+ }, t.$$.update = () => {
88
+ t.$$.dirty & /*clientstyling, customStylingContainer*/
89
+ 3 && n && s && x(s, n), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
90
+ 5 && l && s && C(s, l), t.$$.dirty & /*mbsource, customStylingContainer*/
91
+ 9 && r && s && L(s, `${r}.Style`, o);
92
+ }, [
93
+ s,
94
+ n,
95
+ l,
96
+ r,
97
+ f
98
+ ];
99
+ }
100
+ class H extends h {
101
+ constructor(e) {
102
+ super(), p(
103
+ this,
104
+ e,
105
+ E,
106
+ A,
107
+ y,
108
+ {
109
+ clientstyling: 1,
110
+ clientstylingurl: 2,
111
+ mbsource: 3
112
+ },
113
+ k
114
+ );
115
+ }
116
+ get clientstyling() {
117
+ return this.$$.ctx[1];
118
+ }
119
+ set clientstyling(e) {
120
+ this.$$set({ clientstyling: e }), a();
121
+ }
122
+ get clientstylingurl() {
123
+ return this.$$.ctx[2];
124
+ }
125
+ set clientstylingurl(e) {
126
+ this.$$set({ clientstylingurl: e }), a();
127
+ }
128
+ get mbsource() {
129
+ return this.$$.ctx[3];
130
+ }
131
+ set mbsource(e) {
132
+ this.$$set({ mbsource: e }), a();
133
+ }
134
+ }
135
+ _(H, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
136
+ export {
137
+ H as default
138
+ };
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){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"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoWageringBonusesController-BzummzqC.cjs")).then(({default:t})=>{!customElements.get("casino-wagering-bonuses-controller")&&customElements.define("casino-wagering-bonuses-controller",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let t=function(e){return function(...s){try{return e.apply(this,s)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("../components/CasinoWageringBonusesController-vXUicEdB.cjs")).then(e=>e.CasinoWageringBonusesController_ce).then(({default:e})=>{!customElements.get("casino-wagering-bonuses-controller")&&customElements.define("casino-wagering-bonuses-controller",e.element)})}
@@ -1,16 +1,16 @@
1
1
  if (typeof window != "undefined") {
2
- let n = function(t) {
2
+ let n = function(e) {
3
3
  return function(...s) {
4
4
  try {
5
- return t.apply(this, s);
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"))
5
+ return e.apply(this, s);
6
+ } catch (t) {
7
+ 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"))
8
8
  return !1;
9
- throw e;
9
+ throw t;
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoWageringBonusesController-K_TAc4vJ.js").then(({ default: t }) => {
14
- !customElements.get("casino-wagering-bonuses-controller") && customElements.define("casino-wagering-bonuses-controller", t.element);
13
+ customElements.define = n(customElements.define), import("../components/CasinoWageringBonusesController-CnKwduJm.js").then((e) => e.C).then(({ default: e }) => {
14
+ !customElements.get("casino-wagering-bonuses-controller") && customElements.define("casino-wagering-bonuses-controller", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoWageringBonusesController-BmKoBu7u.js";
1
+ import { C as s } from "../components/CasinoWageringBonusesController-Dq2gpI5p.js";
2
2
  function o(n) {
3
3
  return function(...t) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-wagering-bonuses-controller",
3
- "version": "1.87.26",
3
+ "version": "1.87.27",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-wagering-bonuses-controller.cjs",
6
6
  "module": "esnext/casino-wagering-bonuses-controller.js",