@everymatrix/casino-tournaments-limited-controller 1.45.0 → 1.45.3

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,281 @@
1
+ var I = Object.defineProperty, J = Object.defineProperties;
2
+ var K = Object.getOwnPropertyDescriptors;
3
+ var w = Object.getOwnPropertySymbols;
4
+ var S = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
+ var M = (t, e, n) => e in t ? I(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, T = (t, e) => {
6
+ for (var n in e || (e = {}))
7
+ S.call(e, n) && M(t, n, e[n]);
8
+ if (w)
9
+ for (var n of w(e))
10
+ z.call(e, n) && M(t, n, e[n]);
11
+ return t;
12
+ }, k = (t, e) => J(t, K(e));
13
+ var E = (t, e) => {
14
+ var n = {};
15
+ for (var i in t)
16
+ S.call(t, i) && e.indexOf(i) < 0 && (n[i] = t[i]);
17
+ if (t != null && w)
18
+ for (var i of w(t))
19
+ e.indexOf(i) < 0 && z.call(t, i) && (n[i] = t[i]);
20
+ return n;
21
+ };
22
+ import { o as O, S as N, i as P, f as _, c as Q, s as V, a as W, e as H, b as p, d as f, g as L, h, n as R, j as C, k as X, t as A, l as U, m as Y, p as B, q as Z } from "./CasinoTournamentsLimitedController-CtMjsDyf.js";
23
+ const x = (t) => (n) => {
24
+ Object.keys(t).map((i) => {
25
+ if (n.data && n.data.type == i) {
26
+ const l = n.data, { type: s } = l, r = E(l, ["type"]);
27
+ t[i](r);
28
+ }
29
+ });
30
+ }, $ = (t) => {
31
+ const e = x(t);
32
+ O(() => (window.addEventListener("message", e, !1), () => {
33
+ window.removeEventListener("message", e);
34
+ }));
35
+ };
36
+ function tt(t) {
37
+ W(t, "svelte-1eq8iwl", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}");
38
+ }
39
+ function j(t, e, n) {
40
+ const i = t.slice();
41
+ return i[14] = e[n], i;
42
+ }
43
+ function q(t) {
44
+ let e, n, i = (
45
+ /*totalReceiver*/
46
+ t[1][
47
+ /*_tab*/
48
+ t[14]
49
+ ] + ""
50
+ ), l;
51
+ return {
52
+ c() {
53
+ e = p("sup"), n = p("span"), l = A(i), f(n, "part", "SupText"), f(e, "part", "sup");
54
+ },
55
+ m(s, r) {
56
+ L(s, e, r), h(e, n), h(n, l);
57
+ },
58
+ p(s, r) {
59
+ r & /*totalReceiver, __tabs*/
60
+ 18 && i !== (i = /*totalReceiver*/
61
+ s[1][
62
+ /*_tab*/
63
+ s[14]
64
+ ] + "") && B(l, i);
65
+ },
66
+ d(s) {
67
+ s && C(e);
68
+ }
69
+ };
70
+ }
71
+ function D(t) {
72
+ let e, n, i = (
73
+ /*textReceiver*/
74
+ t[2][
75
+ /*_tab*/
76
+ t[14]
77
+ ] + ""
78
+ ), l, s, r, a, u, d, m, c = (
79
+ /*totalReceiver*/
80
+ t[1][
81
+ /*_tab*/
82
+ t[14]
83
+ ] >= 0 && q(t)
84
+ );
85
+ function y() {
86
+ return (
87
+ /*click_handler*/
88
+ t[9](
89
+ /*_tab*/
90
+ t[14]
91
+ )
92
+ );
93
+ }
94
+ return {
95
+ c() {
96
+ e = p("li"), n = p("span"), l = A(i), s = U(), c && c.c(), r = U(), f(n, "part", "LiText"), f(e, "class", a = /*__tab*/
97
+ t[3] === /*_tab*/
98
+ t[14] ? "active" : ""), f(e, "part", u = `${/*_tab*/
99
+ t[14]} li ` + /*__tab*/
100
+ (t[3] === /*_tab*/
101
+ t[14] ? "active" : ""));
102
+ },
103
+ m(b, g) {
104
+ L(b, e, g), h(e, n), h(n, l), h(e, s), c && c.m(e, null), h(e, r), d || (m = Y(e, "click", y), d = !0);
105
+ },
106
+ p(b, g) {
107
+ t = b, g & /*textReceiver, __tabs*/
108
+ 20 && i !== (i = /*textReceiver*/
109
+ t[2][
110
+ /*_tab*/
111
+ t[14]
112
+ ] + "") && B(l, i), /*totalReceiver*/
113
+ t[1][
114
+ /*_tab*/
115
+ t[14]
116
+ ] >= 0 ? c ? c.p(t, g) : (c = q(t), c.c(), c.m(e, r)) : c && (c.d(1), c = null), g & /*__tab, __tabs*/
117
+ 24 && a !== (a = /*__tab*/
118
+ t[3] === /*_tab*/
119
+ t[14] ? "active" : "") && f(e, "class", a), g & /*__tabs, __tab*/
120
+ 24 && u !== (u = `${/*_tab*/
121
+ t[14]} li ` + /*__tab*/
122
+ (t[3] === /*_tab*/
123
+ t[14] ? "active" : "")) && f(e, "part", u);
124
+ },
125
+ d(b) {
126
+ b && C(e), c && c.d(), d = !1, m();
127
+ }
128
+ };
129
+ }
130
+ function et(t) {
131
+ let e, n, i = H(
132
+ /*__tabs*/
133
+ t[4]
134
+ ), l = [];
135
+ for (let s = 0; s < i.length; s += 1)
136
+ l[s] = D(j(t, i, s));
137
+ return {
138
+ c() {
139
+ e = p("div"), n = p("ul");
140
+ for (let s = 0; s < l.length; s += 1)
141
+ l[s].c();
142
+ f(n, "part", "ul"), f(e, "class", "casino-tournaments-tab"), f(e, "part", "CustomStylingContainer");
143
+ },
144
+ m(s, r) {
145
+ L(s, e, r), h(e, n);
146
+ for (let a = 0; a < l.length; a += 1)
147
+ l[a] && l[a].m(n, null);
148
+ t[10](e);
149
+ },
150
+ p(s, [r]) {
151
+ if (r & /*__tab, __tabs, window, totalReceiver, textReceiver*/
152
+ 30) {
153
+ i = H(
154
+ /*__tabs*/
155
+ s[4]
156
+ );
157
+ let a;
158
+ for (a = 0; a < i.length; a += 1) {
159
+ const u = j(s, i, a);
160
+ l[a] ? l[a].p(u, r) : (l[a] = D(u), l[a].c(), l[a].m(n, null));
161
+ }
162
+ for (; a < l.length; a += 1)
163
+ l[a].d(1);
164
+ l.length = i.length;
165
+ }
166
+ },
167
+ i: R,
168
+ o: R,
169
+ d(s) {
170
+ s && C(e), X(l, s), t[10](null);
171
+ }
172
+ };
173
+ }
174
+ function nt(t, e, n) {
175
+ let i, l, { tabs: s = "" } = e, { tab: r = void 0 } = e, { clientstyling: a = "" } = e, { clientstylingurl: u = "" } = e, d, m = {}, c = {};
176
+ const y = () => {
177
+ let o = document.createElement("style");
178
+ o.innerHTML = a, d.appendChild(o);
179
+ }, b = () => {
180
+ let o = new URL(u), F = document.createElement("style");
181
+ fetch(o.href).then((v) => v.text()).then((v) => {
182
+ F.innerHTML = v, setTimeout(
183
+ () => {
184
+ d.appendChild(F);
185
+ },
186
+ 1
187
+ ), setTimeout(
188
+ () => {
189
+ },
190
+ 500
191
+ );
192
+ });
193
+ };
194
+ $({
195
+ TournamentsTabTotalUpdate: (o) => {
196
+ n(1, m = k(T({}, m), {
197
+ [o.state]: o.total
198
+ }));
199
+ },
200
+ TournamentsTabLocaleTextUpdate: (o) => {
201
+ n(2, c = k(T({}, c), { [o.state]: o.text }));
202
+ }
203
+ }), O(() => {
204
+ window.postMessage({ type: "TournamentsTabListenerLoaded" }, window.location.href);
205
+ });
206
+ const g = (o) => {
207
+ n(3, l = o), window.postMessage({ type: "TournamentsTabSwitch", tab: o }, window.location.href);
208
+ };
209
+ function G(o) {
210
+ Z[o ? "unshift" : "push"](() => {
211
+ d = o, n(0, d);
212
+ });
213
+ }
214
+ return t.$$set = (o) => {
215
+ "tabs" in o && n(5, s = o.tabs), "tab" in o && n(6, r = o.tab), "clientstyling" in o && n(7, a = o.clientstyling), "clientstylingurl" in o && n(8, u = o.clientstylingurl);
216
+ }, t.$$.update = () => {
217
+ t.$$.dirty & /*customStylingContainer, clientstyling*/
218
+ 129 && d && a && y(), t.$$.dirty & /*customStylingContainer, clientstylingurl*/
219
+ 257 && d && u && b(), t.$$.dirty & /*tabs*/
220
+ 32 && n(4, i = s.split(",")), t.$$.dirty & /*tab*/
221
+ 64 && n(3, l = r);
222
+ }, [
223
+ d,
224
+ m,
225
+ c,
226
+ l,
227
+ i,
228
+ s,
229
+ r,
230
+ a,
231
+ u,
232
+ g,
233
+ G
234
+ ];
235
+ }
236
+ class it extends N {
237
+ constructor(e) {
238
+ super(), P(
239
+ this,
240
+ e,
241
+ nt,
242
+ et,
243
+ V,
244
+ {
245
+ tabs: 5,
246
+ tab: 6,
247
+ clientstyling: 7,
248
+ clientstylingurl: 8
249
+ },
250
+ tt
251
+ );
252
+ }
253
+ get tabs() {
254
+ return this.$$.ctx[5];
255
+ }
256
+ set tabs(e) {
257
+ this.$$set({ tabs: e }), _();
258
+ }
259
+ get tab() {
260
+ return this.$$.ctx[6];
261
+ }
262
+ set tab(e) {
263
+ this.$$set({ tab: e }), _();
264
+ }
265
+ get clientstyling() {
266
+ return this.$$.ctx[7];
267
+ }
268
+ set clientstyling(e) {
269
+ this.$$set({ clientstyling: e }), _();
270
+ }
271
+ get clientstylingurl() {
272
+ return this.$$.ctx[8];
273
+ }
274
+ set clientstylingurl(e) {
275
+ this.$$set({ clientstylingurl: e }), _();
276
+ }
277
+ }
278
+ Q(it, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
279
+ export {
280
+ it as default
281
+ };
@@ -0,0 +1 @@
1
+ "use strict";var H=Object.defineProperty,R=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var T=(t,e,i)=>e in t?H(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,_=(t,e)=>{for(var i in e||(e={}))k.call(e,i)&&T(t,i,e[i]);if(b)for(var i of b(e))C.call(e,i)&&T(t,i,e[i]);return t},y=(t,e)=>R(t,U(e));var L=(t,e)=>{var i={};for(var l in t)k.call(t,l)&&e.indexOf(l)<0&&(i[l]=t[l]);if(t!=null&&b)for(var l of b(t))e.indexOf(l)<0&&C.call(t,l)&&(i[l]=t[l]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./CasinoTournamentsLimitedController-D259Oc13.cjs"),j=t=>i=>{Object.keys(t).map(l=>{if(i.data&&i.data.type==l){const s=i.data,{type:a}=s,u=L(s,["type"]);t[l](u)}})},q=t=>{const e=j(t);n.onMount(()=>(window.addEventListener("message",e,!1),()=>{window.removeEventListener("message",e)}))};function O(t){n.append_styles(t,"svelte-1eq8iwl","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}")}function F(t,e,i){const l=t.slice();return l[14]=e[i],l}function M(t){let e,i,l=t[1][t[14]]+"",s;return{c(){e=n.element("sup"),i=n.element("span"),s=n.text(l),n.attr(i,"part","SupText"),n.attr(e,"part","sup")},m(a,u){n.insert(a,e,u),n.append(e,i),n.append(i,s)},p(a,u){u&18&&l!==(l=a[1][a[14]]+"")&&n.set_data(s,l)},d(a){a&&n.detach(e)}}}function S(t){let e,i,l=t[2][t[14]]+"",s,a,u,o,d,f,h,c=t[1][t[14]]>=0&&M(t);function m(){return t[9](t[14])}return{c(){e=n.element("li"),i=n.element("span"),s=n.text(l),a=n.space(),c&&c.c(),u=n.space(),n.attr(i,"part","LiText"),n.attr(e,"class",o=t[3]===t[14]?"active":""),n.attr(e,"part",d=`${t[14]} li `+(t[3]===t[14]?"active":""))},m(p,g){n.insert(p,e,g),n.append(e,i),n.append(i,s),n.append(e,a),c&&c.m(e,null),n.append(e,u),f||(h=n.listen(e,"click",m),f=!0)},p(p,g){t=p,g&20&&l!==(l=t[2][t[14]]+"")&&n.set_data(s,l),t[1][t[14]]>=0?c?c.p(t,g):(c=M(t),c.c(),c.m(e,u)):c&&(c.d(1),c=null),g&24&&o!==(o=t[3]===t[14]?"active":"")&&n.attr(e,"class",o),g&24&&d!==(d=`${t[14]} li `+(t[3]===t[14]?"active":""))&&n.attr(e,"part",d)},d(p){p&&n.detach(e),c&&c.d(),f=!1,h()}}}function D(t){let e,i,l=n.ensure_array_like(t[4]),s=[];for(let a=0;a<l.length;a+=1)s[a]=S(F(t,l,a));return{c(){e=n.element("div"),i=n.element("ul");for(let a=0;a<s.length;a+=1)s[a].c();n.attr(i,"part","ul"),n.attr(e,"class","casino-tournaments-tab"),n.attr(e,"part","CustomStylingContainer")},m(a,u){n.insert(a,e,u),n.append(e,i);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(i,null);t[10](e)},p(a,[u]){if(u&30){l=n.ensure_array_like(a[4]);let o;for(o=0;o<l.length;o+=1){const d=F(a,l,o);s[o]?s[o].p(d,u):(s[o]=S(d),s[o].c(),s[o].m(i,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=l.length}},i:n.noop,o:n.noop,d(a){a&&n.detach(e),n.destroy_each(s,a),t[10](null)}}}function P(t,e,i){let l,s,{tabs:a=""}=e,{tab:u=void 0}=e,{clientstyling:o=""}=e,{clientstylingurl:d=""}=e,f,h={},c={};const m=()=>{let r=document.createElement("style");r.innerHTML=o,f.appendChild(r)},p=()=>{let r=new URL(d),v=document.createElement("style");fetch(r.href).then(w=>w.text()).then(w=>{v.innerHTML=w,setTimeout(()=>{f.appendChild(v)},1),setTimeout(()=>{},500)})};q({TournamentsTabTotalUpdate:r=>{i(1,h=y(_({},h),{[r.state]:r.total}))},TournamentsTabLocaleTextUpdate:r=>{i(2,c=y(_({},c),{[r.state]:r.text}))}}),n.onMount(()=>{window.postMessage({type:"TournamentsTabListenerLoaded"},window.location.href)});const g=r=>{i(3,s=r),window.postMessage({type:"TournamentsTabSwitch",tab:r},window.location.href)};function E(r){n.binding_callbacks[r?"unshift":"push"](()=>{f=r,i(0,f)})}return t.$$set=r=>{"tabs"in r&&i(5,a=r.tabs),"tab"in r&&i(6,u=r.tab),"clientstyling"in r&&i(7,o=r.clientstyling),"clientstylingurl"in r&&i(8,d=r.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&129&&f&&o&&m(),t.$$.dirty&257&&f&&d&&p(),t.$$.dirty&32&&i(4,l=a.split(",")),t.$$.dirty&64&&i(3,s=u)},[f,h,c,s,l,a,u,o,d,g,E]}class z extends n.SvelteComponent{constructor(e){super(),n.init(this,e,P,D,n.safe_not_equal,{tabs:5,tab:6,clientstyling:7,clientstylingurl:8},O)}get tabs(){return this.$$.ctx[5]}set tabs(e){this.$$set({tabs:e}),n.flush()}get tab(){return this.$$.ctx[6]}set tab(e){this.$$set({tab:e}),n.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),n.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),n.flush()}}n.create_custom_element(z,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=z;
@@ -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/CasinoTournamentsLimitedController-DZv4fAau.cjs")).then(e=>e.CasinoTournamentsLimitedController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-limited-controller")&&customElements.define("casino-tournaments-limited-controller",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/CasinoTournamentsLimitedController-D259Oc13.cjs")).then(e=>e.CasinoTournamentsLimitedController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-limited-controller")&&customElements.define("casino-tournaments-limited-controller",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoTournamentsLimitedController-Cv5rDdyV.js").then((e) => e.C).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoTournamentsLimitedController-CtMjsDyf.js").then((e) => e.C).then(({ default: e }) => {
14
14
  !customElements.get("casino-tournaments-limited-controller") && customElements.define(
15
15
  "casino-tournaments-limited-controller",
16
16
  e.element
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-limited-controller",
3
- "version": "1.45.0",
3
+ "version": "1.45.3",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-tournaments-limited-controller.cjs",
6
6
  "module": "es2015/casino-tournaments-limited-controller.js",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "./es2015/casino-tournaments-limited-controller.cjs": "./es2015/casino-tournaments-limited-controller.cjs"
13
13
  },
14
- "files": [
14
+ "files": [
15
15
  "es2015/",
16
16
  "components"
17
17
  ],
@@ -1,283 +0,0 @@
1
- var I = Object.defineProperty, J = Object.defineProperties;
2
- var K = Object.getOwnPropertyDescriptors;
3
- var p = Object.getOwnPropertySymbols;
4
- var S = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
5
- var L = (e, t, n) => t in e ? I(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, j = (e, t) => {
6
- for (var n in t || (t = {}))
7
- S.call(t, n) && L(e, n, t[n]);
8
- if (p)
9
- for (var n of p(t))
10
- M.call(t, n) && L(e, n, t[n]);
11
- return e;
12
- }, T = (e, t) => J(e, K(t));
13
- var z = (e, t) => {
14
- var n = {};
15
- for (var s in e)
16
- S.call(e, s) && t.indexOf(s) < 0 && (n[s] = e[s]);
17
- if (e != null && p)
18
- for (var s of p(e))
19
- t.indexOf(s) < 0 && M.call(e, s) && (n[s] = e[s]);
20
- return n;
21
- };
22
- import { o as N, S as P, i as Q, f as _, c as V, s as W, a as X, e as E, b as m, d as f, g as k, h as b, n as H, j as C, k as Y, t as A, l as R, m as U, p as Z, q as B, r as x } from "./CasinoTournamentsLimitedController-Cv5rDdyV.js";
23
- const $ = (e) => (n) => {
24
- Object.keys(e).map((s) => {
25
- if (n.data && n.data.type == s) {
26
- const i = n.data, { type: l } = i, r = z(i, ["type"]);
27
- e[s](r);
28
- }
29
- });
30
- }, ee = (e) => {
31
- const t = $(e);
32
- N(() => (window.addEventListener("message", t, !1), () => {
33
- window.removeEventListener("message", t);
34
- }));
35
- };
36
- function te(e) {
37
- X(e, "svelte-1dj34fv", ".svelte-1dj34fv.svelte-1dj34fv,.svelte-1dj34fv.svelte-1dj34fv::before,.svelte-1dj34fv.svelte-1dj34fv::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab.svelte-1dj34fv.svelte-1dj34fv{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab.svelte-1dj34fv ul.svelte-1dj34fv{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab.svelte-1dj34fv ul li.svelte-1dj34fv{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab.svelte-1dj34fv ul li.active.svelte-1dj34fv{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab.svelte-1dj34fv ul li span.svelte-1dj34fv{margin:auto 0}.casino-tournaments-tab.svelte-1dj34fv sup.svelte-1dj34fv{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab.svelte-1dj34fv sup span.svelte-1dj34fv{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}");
38
- }
39
- function q(e, t, n) {
40
- const s = e.slice();
41
- return s[14] = t[n], s;
42
- }
43
- function D(e) {
44
- let t, n, s = (
45
- /*totalReceiver*/
46
- e[1][
47
- /*_tab*/
48
- e[14]
49
- ] + ""
50
- ), i;
51
- return {
52
- c() {
53
- t = m("sup"), n = m("span"), i = A(s), f(n, "part", "SupText"), f(n, "class", "svelte-1dj34fv"), f(t, "part", "sup"), f(t, "class", "svelte-1dj34fv");
54
- },
55
- m(l, r) {
56
- k(l, t, r), b(t, n), b(n, i);
57
- },
58
- p(l, r) {
59
- r & /*totalReceiver, __tabs*/
60
- 18 && s !== (s = /*totalReceiver*/
61
- l[1][
62
- /*_tab*/
63
- l[14]
64
- ] + "") && B(i, s);
65
- },
66
- d(l) {
67
- l && C(t);
68
- }
69
- };
70
- }
71
- function O(e) {
72
- let t, n, s = (
73
- /*textReceiver*/
74
- e[2][
75
- /*_tab*/
76
- e[14]
77
- ] + ""
78
- ), i, l, r, a, d, u, h, c = (
79
- /*totalReceiver*/
80
- e[1][
81
- /*_tab*/
82
- e[14]
83
- ] >= 0 && D(e)
84
- );
85
- function w() {
86
- return (
87
- /*click_handler*/
88
- e[9](
89
- /*_tab*/
90
- e[14]
91
- )
92
- );
93
- }
94
- return {
95
- c() {
96
- t = m("li"), n = m("span"), i = A(s), l = R(), c && c.c(), r = R(), f(n, "part", "LiText"), f(n, "class", "svelte-1dj34fv"), f(t, "class", a = U(
97
- /*__tab*/
98
- e[3] === /*_tab*/
99
- e[14] ? "active" : ""
100
- ) + " svelte-1dj34fv"), f(t, "part", d = `${/*_tab*/
101
- e[14]} li ` + /*__tab*/
102
- (e[3] === /*_tab*/
103
- e[14] ? "active" : ""));
104
- },
105
- m(g, v) {
106
- k(g, t, v), b(t, n), b(n, i), b(t, l), c && c.m(t, null), b(t, r), u || (h = Z(t, "click", w), u = !0);
107
- },
108
- p(g, v) {
109
- e = g, v & /*textReceiver, __tabs*/
110
- 20 && s !== (s = /*textReceiver*/
111
- e[2][
112
- /*_tab*/
113
- e[14]
114
- ] + "") && B(i, s), /*totalReceiver*/
115
- e[1][
116
- /*_tab*/
117
- e[14]
118
- ] >= 0 ? c ? c.p(e, v) : (c = D(e), c.c(), c.m(t, r)) : c && (c.d(1), c = null), v & /*__tab, __tabs*/
119
- 24 && a !== (a = U(
120
- /*__tab*/
121
- e[3] === /*_tab*/
122
- e[14] ? "active" : ""
123
- ) + " svelte-1dj34fv") && f(t, "class", a), v & /*__tabs, __tab*/
124
- 24 && d !== (d = `${/*_tab*/
125
- e[14]} li ` + /*__tab*/
126
- (e[3] === /*_tab*/
127
- e[14] ? "active" : "")) && f(t, "part", d);
128
- },
129
- d(g) {
130
- g && C(t), c && c.d(), u = !1, h();
131
- }
132
- };
133
- }
134
- function ne(e) {
135
- let t, n, s = E(
136
- /*__tabs*/
137
- e[4]
138
- ), i = [];
139
- for (let l = 0; l < s.length; l += 1)
140
- i[l] = O(q(e, s, l));
141
- return {
142
- c() {
143
- t = m("div"), n = m("ul");
144
- for (let l = 0; l < i.length; l += 1)
145
- i[l].c();
146
- f(n, "part", "ul"), f(n, "class", "svelte-1dj34fv"), f(t, "class", "casino-tournaments-tab svelte-1dj34fv"), f(t, "part", "CustomStylingContainer");
147
- },
148
- m(l, r) {
149
- k(l, t, r), b(t, n);
150
- for (let a = 0; a < i.length; a += 1)
151
- i[a] && i[a].m(n, null);
152
- e[10](t);
153
- },
154
- p(l, [r]) {
155
- if (r & /*__tab, __tabs, window, totalReceiver, textReceiver*/
156
- 30) {
157
- s = E(
158
- /*__tabs*/
159
- l[4]
160
- );
161
- let a;
162
- for (a = 0; a < s.length; a += 1) {
163
- const d = q(l, s, a);
164
- i[a] ? i[a].p(d, r) : (i[a] = O(d), i[a].c(), i[a].m(n, null));
165
- }
166
- for (; a < i.length; a += 1)
167
- i[a].d(1);
168
- i.length = s.length;
169
- }
170
- },
171
- i: H,
172
- o: H,
173
- d(l) {
174
- l && C(t), Y(i, l), e[10](null);
175
- }
176
- };
177
- }
178
- function se(e, t, n) {
179
- let s, i, { tabs: l = "" } = t, { tab: r = void 0 } = t, { clientstyling: a = "" } = t, { clientstylingurl: d = "" } = t, u, h = {}, c = {};
180
- const w = () => {
181
- let o = document.createElement("style");
182
- o.innerHTML = a, u.appendChild(o);
183
- }, g = () => {
184
- let o = new URL(d), F = document.createElement("style");
185
- fetch(o.href).then((y) => y.text()).then((y) => {
186
- F.innerHTML = y, setTimeout(
187
- () => {
188
- u.appendChild(F);
189
- },
190
- 1
191
- ), setTimeout(
192
- () => {
193
- },
194
- 500
195
- );
196
- });
197
- };
198
- ee({
199
- TournamentsTabTotalUpdate: (o) => {
200
- n(1, h = T(j({}, h), {
201
- [o.state]: o.total
202
- }));
203
- },
204
- TournamentsTabLocaleTextUpdate: (o) => {
205
- n(2, c = T(j({}, c), { [o.state]: o.text }));
206
- }
207
- });
208
- const v = (o) => {
209
- n(3, i = o), window.postMessage({ type: "TournamentsTabSwitch", tab: o }, window.location.href);
210
- };
211
- function G(o) {
212
- x[o ? "unshift" : "push"](() => {
213
- u = o, n(0, u);
214
- });
215
- }
216
- return e.$$set = (o) => {
217
- "tabs" in o && n(5, l = o.tabs), "tab" in o && n(6, r = o.tab), "clientstyling" in o && n(7, a = o.clientstyling), "clientstylingurl" in o && n(8, d = o.clientstylingurl);
218
- }, e.$$.update = () => {
219
- e.$$.dirty & /*customStylingContainer, clientstyling*/
220
- 129 && u && a && w(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
221
- 257 && u && d && g(), e.$$.dirty & /*tabs*/
222
- 32 && n(4, s = l.split(",")), e.$$.dirty & /*tab*/
223
- 64 && n(3, i = r);
224
- }, [
225
- u,
226
- h,
227
- c,
228
- i,
229
- s,
230
- l,
231
- r,
232
- a,
233
- d,
234
- v,
235
- G
236
- ];
237
- }
238
- class le extends P {
239
- constructor(t) {
240
- super(), Q(
241
- this,
242
- t,
243
- se,
244
- ne,
245
- W,
246
- {
247
- tabs: 5,
248
- tab: 6,
249
- clientstyling: 7,
250
- clientstylingurl: 8
251
- },
252
- te
253
- );
254
- }
255
- get tabs() {
256
- return this.$$.ctx[5];
257
- }
258
- set tabs(t) {
259
- this.$$set({ tabs: t }), _();
260
- }
261
- get tab() {
262
- return this.$$.ctx[6];
263
- }
264
- set tab(t) {
265
- this.$$set({ tab: t }), _();
266
- }
267
- get clientstyling() {
268
- return this.$$.ctx[7];
269
- }
270
- set clientstyling(t) {
271
- this.$$set({ clientstyling: t }), _();
272
- }
273
- get clientstylingurl() {
274
- return this.$$.ctx[8];
275
- }
276
- set clientstylingurl(t) {
277
- this.$$set({ clientstylingurl: t }), _();
278
- }
279
- }
280
- V(le, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
281
- export {
282
- le as default
283
- };
@@ -1 +0,0 @@
1
- "use strict";var E=Object.defineProperty,H=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var j=(t,e,l)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[e]=l,_=(t,e)=>{for(var l in e||(e={}))T.call(e,l)&&j(t,l,e[l]);if(h)for(var l of h(e))k.call(e,l)&&j(t,l,e[l]);return t},y=(t,e)=>H(t,R(e));var C=(t,e)=>{var l={};for(var s in t)T.call(t,s)&&e.indexOf(s)<0&&(l[s]=t[s]);if(t!=null&&h)for(var s of h(t))e.indexOf(s)<0&&k.call(t,s)&&(l[s]=t[s]);return l};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./CasinoTournamentsLimitedController-DZv4fAau.cjs"),U=t=>l=>{Object.keys(t).map(s=>{if(l.data&&l.data.type==s){const a=l.data,{type:i}=a,c=C(a,["type"]);t[s](c)}})},q=t=>{const e=U(t);n.onMount(()=>(window.addEventListener("message",e,!1),()=>{window.removeEventListener("message",e)}))};function O(t){n.append_styles(t,"svelte-1dj34fv",".svelte-1dj34fv.svelte-1dj34fv,.svelte-1dj34fv.svelte-1dj34fv::before,.svelte-1dj34fv.svelte-1dj34fv::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab.svelte-1dj34fv.svelte-1dj34fv{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab.svelte-1dj34fv ul.svelte-1dj34fv{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab.svelte-1dj34fv ul li.svelte-1dj34fv{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab.svelte-1dj34fv ul li.active.svelte-1dj34fv{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab.svelte-1dj34fv ul li span.svelte-1dj34fv{margin:auto 0}.casino-tournaments-tab.svelte-1dj34fv sup.svelte-1dj34fv{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab.svelte-1dj34fv sup span.svelte-1dj34fv{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}")}function F(t,e,l){const s=t.slice();return s[14]=e[l],s}function L(t){let e,l,s=t[1][t[14]]+"",a;return{c(){e=n.element("sup"),l=n.element("span"),a=n.text(s),n.attr(l,"part","SupText"),n.attr(l,"class","svelte-1dj34fv"),n.attr(e,"part","sup"),n.attr(e,"class","svelte-1dj34fv")},m(i,c){n.insert(i,e,c),n.append(e,l),n.append(l,a)},p(i,c){c&18&&s!==(s=i[1][i[14]]+"")&&n.set_data(a,s)},d(i){i&&n.detach(e)}}}function S(t){let e,l,s=t[2][t[14]]+"",a,i,c,r,u,f,p,d=t[1][t[14]]>=0&&L(t);function m(){return t[9](t[14])}return{c(){e=n.element("li"),l=n.element("span"),a=n.text(s),i=n.space(),d&&d.c(),c=n.space(),n.attr(l,"part","LiText"),n.attr(l,"class","svelte-1dj34fv"),n.attr(e,"class",r=n.null_to_empty(t[3]===t[14]?"active":"")+" svelte-1dj34fv"),n.attr(e,"part",u=`${t[14]} li `+(t[3]===t[14]?"active":""))},m(g,v){n.insert(g,e,v),n.append(e,l),n.append(l,a),n.append(e,i),d&&d.m(e,null),n.append(e,c),f||(p=n.listen(e,"click",m),f=!0)},p(g,v){t=g,v&20&&s!==(s=t[2][t[14]]+"")&&n.set_data(a,s),t[1][t[14]]>=0?d?d.p(t,v):(d=L(t),d.c(),d.m(e,c)):d&&(d.d(1),d=null),v&24&&r!==(r=n.null_to_empty(t[3]===t[14]?"active":"")+" svelte-1dj34fv")&&n.attr(e,"class",r),v&24&&u!==(u=`${t[14]} li `+(t[3]===t[14]?"active":""))&&n.attr(e,"part",u)},d(g){g&&n.detach(e),d&&d.d(),f=!1,p()}}}function D(t){let e,l,s=n.ensure_array_like(t[4]),a=[];for(let i=0;i<s.length;i+=1)a[i]=S(F(t,s,i));return{c(){e=n.element("div"),l=n.element("ul");for(let i=0;i<a.length;i+=1)a[i].c();n.attr(l,"part","ul"),n.attr(l,"class","svelte-1dj34fv"),n.attr(e,"class","casino-tournaments-tab svelte-1dj34fv"),n.attr(e,"part","CustomStylingContainer")},m(i,c){n.insert(i,e,c),n.append(e,l);for(let r=0;r<a.length;r+=1)a[r]&&a[r].m(l,null);t[10](e)},p(i,[c]){if(c&30){s=n.ensure_array_like(i[4]);let r;for(r=0;r<s.length;r+=1){const u=F(i,s,r);a[r]?a[r].p(u,c):(a[r]=S(u),a[r].c(),a[r].m(l,null))}for(;r<a.length;r+=1)a[r].d(1);a.length=s.length}},i:n.noop,o:n.noop,d(i){i&&n.detach(e),n.destroy_each(a,i),t[10](null)}}}function P(t,e,l){let s,a,{tabs:i=""}=e,{tab:c=void 0}=e,{clientstyling:r=""}=e,{clientstylingurl:u=""}=e,f,p={},d={};const m=()=>{let o=document.createElement("style");o.innerHTML=r,f.appendChild(o)},g=()=>{let o=new URL(u),w=document.createElement("style");fetch(o.href).then(b=>b.text()).then(b=>{w.innerHTML=b,setTimeout(()=>{f.appendChild(w)},1),setTimeout(()=>{},500)})};q({TournamentsTabTotalUpdate:o=>{l(1,p=y(_({},p),{[o.state]:o.total}))},TournamentsTabLocaleTextUpdate:o=>{l(2,d=y(_({},d),{[o.state]:o.text}))}});const v=o=>{l(3,a=o),window.postMessage({type:"TournamentsTabSwitch",tab:o},window.location.href)};function z(o){n.binding_callbacks[o?"unshift":"push"](()=>{f=o,l(0,f)})}return t.$$set=o=>{"tabs"in o&&l(5,i=o.tabs),"tab"in o&&l(6,c=o.tab),"clientstyling"in o&&l(7,r=o.clientstyling),"clientstylingurl"in o&&l(8,u=o.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&129&&f&&r&&m(),t.$$.dirty&257&&f&&u&&g(),t.$$.dirty&32&&l(4,s=i.split(",")),t.$$.dirty&64&&l(3,a=c)},[f,p,d,a,s,i,c,r,u,v,z]}class M extends n.SvelteComponent{constructor(e){super(),n.init(this,e,P,D,n.safe_not_equal,{tabs:5,tab:6,clientstyling:7,clientstylingurl:8},O)}get tabs(){return this.$$.ctx[5]}set tabs(e){this.$$set({tabs:e}),n.flush()}get tab(){return this.$$.ctx[6]}set tab(e){this.$$set({tab:e}),n.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),n.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),n.flush()}}n.create_custom_element(M,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=M;