@everymatrix/casino-tournaments-limited-controller 1.67.3 → 1.68.0

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,292 @@
1
+ var B = Object.defineProperty, G = Object.defineProperties;
2
+ var J = Object.getOwnPropertyDescriptors;
3
+ var y = Object.getOwnPropertySymbols;
4
+ var C = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
+ var F = (e, t, n) => t in e ? B(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, T = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ C.call(t, n) && F(e, n, t[n]);
8
+ if (y)
9
+ for (var n of y(t))
10
+ L.call(t, n) && F(e, n, t[n]);
11
+ return e;
12
+ }, S = (e, t) => G(e, J(t));
13
+ var z = (e, t) => {
14
+ var n = {};
15
+ for (var i in e)
16
+ C.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
17
+ if (e != null && y)
18
+ for (var i of y(e))
19
+ t.indexOf(i) < 0 && L.call(e, i) && (n[i] = e[i]);
20
+ return n;
21
+ };
22
+ import { o as D, S as K, i as N, s as P, f as p, a as Q, n as M, d as v, b as k, e as w, c as f, g as j, h as V, j as W, k as I, l as h, m as X, t as O, p as q, q as Y, r as Z, u as x, v as $ } from "./CasinoTournamentsLimitedController-D6cASWeq.js";
23
+ const tt = (e) => (n) => {
24
+ Object.keys(e).map((i) => {
25
+ if (n.data && n.data.type == i) {
26
+ const s = n.data, { type: o } = s, l = z(s, ["type"]);
27
+ e[i](l);
28
+ }
29
+ });
30
+ }, et = (e) => {
31
+ const t = tt(e);
32
+ D(() => (window.addEventListener("message", t, !1), () => {
33
+ window.removeEventListener("message", t);
34
+ }));
35
+ };
36
+ function nt(e) {
37
+ Q(e, "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 R(e, t, n) {
40
+ const i = e.slice();
41
+ return i[14] = t[n], i;
42
+ }
43
+ function U(e) {
44
+ let t, n = j(
45
+ /*__tabs*/
46
+ e[5]
47
+ ), i = [];
48
+ for (let s = 0; s < n.length; s += 1)
49
+ i[s] = H(R(e, n, s));
50
+ return {
51
+ c() {
52
+ t = w("ul");
53
+ for (let s = 0; s < i.length; s += 1)
54
+ i[s].c();
55
+ f(t, "part", "ul");
56
+ },
57
+ m(s, o) {
58
+ k(s, t, o);
59
+ for (let l = 0; l < i.length; l += 1)
60
+ i[l] && i[l].m(t, null);
61
+ },
62
+ p(s, o) {
63
+ if (o & /*__tab, __tabs, window, totalReceiver, textReceiver*/
64
+ 60) {
65
+ n = j(
66
+ /*__tabs*/
67
+ s[5]
68
+ );
69
+ let l;
70
+ for (l = 0; l < n.length; l += 1) {
71
+ const u = R(s, n, l);
72
+ i[l] ? i[l].p(u, o) : (i[l] = H(u), i[l].c(), i[l].m(t, null));
73
+ }
74
+ for (; l < i.length; l += 1)
75
+ i[l].d(1);
76
+ i.length = n.length;
77
+ }
78
+ },
79
+ d(s) {
80
+ s && v(t), V(i, s);
81
+ }
82
+ };
83
+ }
84
+ function E(e) {
85
+ let t, n, i = (
86
+ /*totalReceiver*/
87
+ e[2][
88
+ /*_tab*/
89
+ e[14]
90
+ ] + ""
91
+ ), s;
92
+ return {
93
+ c() {
94
+ t = w("sup"), n = w("span"), s = O(i), f(n, "part", "SupText"), f(t, "part", "sup");
95
+ },
96
+ m(o, l) {
97
+ k(o, t, l), h(t, n), h(n, s);
98
+ },
99
+ p(o, l) {
100
+ l & /*totalReceiver, __tabs*/
101
+ 36 && i !== (i = /*totalReceiver*/
102
+ o[2][
103
+ /*_tab*/
104
+ o[14]
105
+ ] + "") && I(s, i);
106
+ },
107
+ d(o) {
108
+ o && v(t);
109
+ }
110
+ };
111
+ }
112
+ function H(e) {
113
+ let t, n, i = (
114
+ /*textReceiver*/
115
+ e[3][
116
+ /*_tab*/
117
+ e[14]
118
+ ] + ""
119
+ ), s, o, l, u, d, g, c, r = (
120
+ /*totalReceiver*/
121
+ e[2][
122
+ /*_tab*/
123
+ e[14]
124
+ ] >= 0 && E(e)
125
+ );
126
+ function _() {
127
+ return (
128
+ /*click_handler*/
129
+ e[11](
130
+ /*_tab*/
131
+ e[14]
132
+ )
133
+ );
134
+ }
135
+ return {
136
+ c() {
137
+ t = w("li"), n = w("span"), s = O(i), o = q(), r && r.c(), l = q(), f(n, "part", "LiText"), f(t, "class", u = /*__tab*/
138
+ e[4] === /*_tab*/
139
+ e[14] ? "active" : ""), f(t, "part", d = `${/*_tab*/
140
+ e[14]} li ` + /*__tab*/
141
+ (e[4] === /*_tab*/
142
+ e[14] ? "active" : ""));
143
+ },
144
+ m(b, m) {
145
+ k(b, t, m), h(t, n), h(n, s), h(t, o), r && r.m(t, null), h(t, l), g || (c = X(t, "click", _), g = !0);
146
+ },
147
+ p(b, m) {
148
+ e = b, m & /*textReceiver, __tabs*/
149
+ 40 && i !== (i = /*textReceiver*/
150
+ e[3][
151
+ /*_tab*/
152
+ e[14]
153
+ ] + "") && I(s, i), /*totalReceiver*/
154
+ e[2][
155
+ /*_tab*/
156
+ e[14]
157
+ ] >= 0 ? r ? r.p(e, m) : (r = E(e), r.c(), r.m(t, l)) : r && (r.d(1), r = null), m & /*__tab, __tabs*/
158
+ 48 && u !== (u = /*__tab*/
159
+ e[4] === /*_tab*/
160
+ e[14] ? "active" : "") && f(t, "class", u), m & /*__tabs, __tab*/
161
+ 48 && d !== (d = `${/*_tab*/
162
+ e[14]} li ` + /*__tab*/
163
+ (e[4] === /*_tab*/
164
+ e[14] ? "active" : "")) && f(t, "part", d);
165
+ },
166
+ d(b) {
167
+ b && v(t), r && r.d(), g = !1, c();
168
+ }
169
+ };
170
+ }
171
+ function it(e) {
172
+ let t, n = (
173
+ /*isTitleInited*/
174
+ e[1] && U(e)
175
+ );
176
+ return {
177
+ c() {
178
+ t = w("div"), n && n.c(), f(t, "class", "casino-tournaments-tab"), f(t, "part", "CustomStylingContainer");
179
+ },
180
+ m(i, s) {
181
+ k(i, t, s), n && n.m(t, null), e[12](t);
182
+ },
183
+ p(i, [s]) {
184
+ /*isTitleInited*/
185
+ i[1] ? n ? n.p(i, s) : (n = U(i), n.c(), n.m(t, null)) : n && (n.d(1), n = null);
186
+ },
187
+ i: M,
188
+ o: M,
189
+ d(i) {
190
+ i && v(t), n && n.d(), e[12](null);
191
+ }
192
+ };
193
+ }
194
+ function st(e, t, n) {
195
+ let i, s, { tabs: o = "" } = t, { tab: l = void 0 } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { mbsource: g } = t, c, r = !1, _ = {}, b = {};
196
+ et({
197
+ TournamentsTabTotalUpdate: (a) => {
198
+ n(2, _ = S(T({}, _), {
199
+ [a.state]: a.total
200
+ }));
201
+ },
202
+ TournamentsTabLocaleTextUpdate: (a) => {
203
+ n(1, r = !0), n(3, b = S(T({}, b), { [a.state]: a.text }));
204
+ }
205
+ }), D(() => (window.postMessage({ type: "TournamentsTabListenerLoaded" }, window.location.href), () => {
206
+ }));
207
+ const m = (a) => {
208
+ n(4, s = a), window.postMessage({ type: "TournamentsTabSwitch", tab: a }, window.location.href);
209
+ };
210
+ function A(a) {
211
+ W[a ? "unshift" : "push"](() => {
212
+ c = a, n(0, c);
213
+ });
214
+ }
215
+ return e.$$set = (a) => {
216
+ "tabs" in a && n(6, o = a.tabs), "tab" in a && n(7, l = a.tab), "clientstyling" in a && n(8, u = a.clientstyling), "clientstylingurl" in a && n(9, d = a.clientstylingurl), "mbsource" in a && n(10, g = a.mbsource);
217
+ }, e.$$.update = () => {
218
+ e.$$.dirty & /*clientstyling, customStylingContainer*/
219
+ 257 && u && c && Y(c, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
220
+ 513 && d && c && Z(c, d), e.$$.dirty & /*mbsource, customStylingContainer*/
221
+ 1025 && g && c && x(c, `${g}.Style`), e.$$.dirty & /*tabs*/
222
+ 64 && n(5, i = o.split(",")), e.$$.dirty & /*tab*/
223
+ 128 && n(4, s = l);
224
+ }, [
225
+ c,
226
+ r,
227
+ _,
228
+ b,
229
+ s,
230
+ i,
231
+ o,
232
+ l,
233
+ u,
234
+ d,
235
+ g,
236
+ m,
237
+ A
238
+ ];
239
+ }
240
+ class lt extends K {
241
+ constructor(t) {
242
+ super(), N(
243
+ this,
244
+ t,
245
+ st,
246
+ it,
247
+ P,
248
+ {
249
+ tabs: 6,
250
+ tab: 7,
251
+ clientstyling: 8,
252
+ clientstylingurl: 9,
253
+ mbsource: 10
254
+ },
255
+ nt
256
+ );
257
+ }
258
+ get tabs() {
259
+ return this.$$.ctx[6];
260
+ }
261
+ set tabs(t) {
262
+ this.$$set({ tabs: t }), p();
263
+ }
264
+ get tab() {
265
+ return this.$$.ctx[7];
266
+ }
267
+ set tab(t) {
268
+ this.$$set({ tab: t }), p();
269
+ }
270
+ get clientstyling() {
271
+ return this.$$.ctx[8];
272
+ }
273
+ set clientstyling(t) {
274
+ this.$$set({ clientstyling: t }), p();
275
+ }
276
+ get clientstylingurl() {
277
+ return this.$$.ctx[9];
278
+ }
279
+ set clientstylingurl(t) {
280
+ this.$$set({ clientstylingurl: t }), p();
281
+ }
282
+ get mbsource() {
283
+ return this.$$.ctx[10];
284
+ }
285
+ set mbsource(t) {
286
+ this.$$set({ mbsource: t }), p();
287
+ }
288
+ }
289
+ $(lt, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
290
+ export {
291
+ lt as default
292
+ };
@@ -0,0 +1 @@
1
+ "use strict";var j=Object.defineProperty,q=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var y=(e,t,n)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t)=>{for(var n in t||(t={}))v.call(t,n)&&y(e,n,t[n]);if(p)for(var n of p(t))k.call(t,n)&&y(e,n,t[n]);return e},w=(e,t)=>q(e,R(t));var T=(e,t)=>{var n={};for(var l in e)v.call(e,l)&&t.indexOf(l)<0&&(n[l]=e[l]);if(e!=null&&p)for(var l of p(e))t.indexOf(l)<0&&k.call(e,l)&&(n[l]=e[l]);return n};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoTournamentsLimitedController-BbgrqpWb.cjs"),U=e=>n=>{Object.keys(e).map(l=>{if(n.data&&n.data.type==l){const s=n.data,{type:o}=s,a=T(s,["type"]);e[l](a)}})},E=e=>{const t=U(e);i.onMount(()=>(window.addEventListener("message",t,!1),()=>{window.removeEventListener("message",t)}))};function H(e){i.append_styles(e,"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 S(e,t,n){const l=e.slice();return l[14]=t[n],l}function C(e){let t,n=i.ensure_array_like(e[5]),l=[];for(let s=0;s<n.length;s+=1)l[s]=L(S(e,n,s));return{c(){t=i.element("ul");for(let s=0;s<l.length;s+=1)l[s].c();i.attr(t,"part","ul")},m(s,o){i.insert(s,t,o);for(let a=0;a<l.length;a+=1)l[a]&&l[a].m(t,null)},p(s,o){if(o&60){n=i.ensure_array_like(s[5]);let a;for(a=0;a<n.length;a+=1){const c=S(s,n,a);l[a]?l[a].p(c,o):(l[a]=L(c),l[a].c(),l[a].m(t,null))}for(;a<l.length;a+=1)l[a].d(1);l.length=n.length}},d(s){s&&i.detach(t),i.destroy_each(l,s)}}}function F(e){let t,n,l=e[2][e[14]]+"",s;return{c(){t=i.element("sup"),n=i.element("span"),s=i.text(l),i.attr(n,"part","SupText"),i.attr(t,"part","sup")},m(o,a){i.insert(o,t,a),i.append(t,n),i.append(n,s)},p(o,a){a&36&&l!==(l=o[2][o[14]]+"")&&i.set_data(s,l)},d(o){o&&i.detach(t)}}}function L(e){let t,n,l=e[3][e[14]]+"",s,o,a,c,d,g,f,u=e[2][e[14]]>=0&&F(e);function h(){return e[11](e[14])}return{c(){t=i.element("li"),n=i.element("span"),s=i.text(l),o=i.space(),u&&u.c(),a=i.space(),i.attr(n,"part","LiText"),i.attr(t,"class",c=e[4]===e[14]?"active":""),i.attr(t,"part",d=`${e[14]} li `+(e[4]===e[14]?"active":""))},m(b,m){i.insert(b,t,m),i.append(t,n),i.append(n,s),i.append(t,o),u&&u.m(t,null),i.append(t,a),g||(f=i.listen(t,"click",h),g=!0)},p(b,m){e=b,m&40&&l!==(l=e[3][e[14]]+"")&&i.set_data(s,l),e[2][e[14]]>=0?u?u.p(e,m):(u=F(e),u.c(),u.m(t,a)):u&&(u.d(1),u=null),m&48&&c!==(c=e[4]===e[14]?"active":"")&&i.attr(t,"class",c),m&48&&d!==(d=`${e[14]} li `+(e[4]===e[14]?"active":""))&&i.attr(t,"part",d)},d(b){b&&i.detach(t),u&&u.d(),g=!1,f()}}}function O(e){let t,n=e[1]&&C(e);return{c(){t=i.element("div"),n&&n.c(),i.attr(t,"class","casino-tournaments-tab"),i.attr(t,"part","CustomStylingContainer")},m(l,s){i.insert(l,t,s),n&&n.m(t,null),e[12](t)},p(l,[s]){l[1]?n?n.p(l,s):(n=C(l),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},i:i.noop,o:i.noop,d(l){l&&i.detach(t),n&&n.d(),e[12](null)}}}function D(e,t,n){let l,s,{tabs:o=""}=t,{tab:a=void 0}=t,{clientstyling:c=""}=t,{clientstylingurl:d=""}=t,{mbsource:g}=t,f,u=!1,h={},b={};E({TournamentsTabTotalUpdate:r=>{n(2,h=w(_({},h),{[r.state]:r.total}))},TournamentsTabLocaleTextUpdate:r=>{n(1,u=!0),n(3,b=w(_({},b),{[r.state]:r.text}))}}),i.onMount(()=>(window.postMessage({type:"TournamentsTabListenerLoaded"},window.location.href),()=>{}));const m=r=>{n(4,s=r),window.postMessage({type:"TournamentsTabSwitch",tab:r},window.location.href)};function z(r){i.binding_callbacks[r?"unshift":"push"](()=>{f=r,n(0,f)})}return e.$$set=r=>{"tabs"in r&&n(6,o=r.tabs),"tab"in r&&n(7,a=r.tab),"clientstyling"in r&&n(8,c=r.clientstyling),"clientstylingurl"in r&&n(9,d=r.clientstylingurl),"mbsource"in r&&n(10,g=r.mbsource)},e.$$.update=()=>{e.$$.dirty&257&&c&&f&&i.setClientStyling(f,c),e.$$.dirty&513&&d&&f&&i.setClientStylingURL(f,d),e.$$.dirty&1025&&g&&f&&i.setStreamStyling(f,`${g}.Style`),e.$$.dirty&64&&n(5,l=o.split(",")),e.$$.dirty&128&&n(4,s=a)},[f,u,h,b,s,l,o,a,c,d,g,m,z]}class M extends i.SvelteComponent{constructor(t){super(),i.init(this,t,D,O,i.safe_not_equal,{tabs:6,tab:7,clientstyling:8,clientstylingurl:9,mbsource:10},H)}get tabs(){return this.$$.ctx[6]}set tabs(t){this.$$set({tabs:t}),i.flush()}get tab(){return this.$$.ctx[7]}set tab(t){this.$$set({tab:t}),i.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get mbsource(){return this.$$.ctx[10]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(M,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=M;
@@ -0,0 +1,272 @@
1
+ import { o as M, S as U, i as E, f as p, s as H, c as D, a as I, n as k, d as y, b as v, e as w, g as f, h as T, j as O, k as A, l as j, m as h, p as B, t as q, q as S, r as G, u as J, v as K } from "./CasinoTournamentsLimitedController-Cw8Q_fq9.js";
2
+ const N = (e) => (n) => {
3
+ Object.keys(e).map((i) => {
4
+ if (n.data && n.data.type == i) {
5
+ const { type: s, ...o } = n.data;
6
+ e[i](o);
7
+ }
8
+ });
9
+ }, P = (e) => {
10
+ const t = N(e);
11
+ M(() => (window.addEventListener("message", t, !1), () => {
12
+ window.removeEventListener("message", t);
13
+ }));
14
+ };
15
+ function Q(e) {
16
+ I(e, "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}");
17
+ }
18
+ function F(e, t, n) {
19
+ const i = e.slice();
20
+ return i[14] = t[n], i;
21
+ }
22
+ function C(e) {
23
+ let t, n = T(
24
+ /*__tabs*/
25
+ e[5]
26
+ ), i = [];
27
+ for (let s = 0; s < n.length; s += 1)
28
+ i[s] = z(F(e, n, s));
29
+ return {
30
+ c() {
31
+ t = w("ul");
32
+ for (let s = 0; s < i.length; s += 1)
33
+ i[s].c();
34
+ f(t, "part", "ul");
35
+ },
36
+ m(s, o) {
37
+ v(s, t, o);
38
+ for (let l = 0; l < i.length; l += 1)
39
+ i[l] && i[l].m(t, null);
40
+ },
41
+ p(s, o) {
42
+ if (o & /*__tab, __tabs, window, totalReceiver, textReceiver*/
43
+ 60) {
44
+ n = T(
45
+ /*__tabs*/
46
+ s[5]
47
+ );
48
+ let l;
49
+ for (l = 0; l < n.length; l += 1) {
50
+ const u = F(s, n, l);
51
+ i[l] ? i[l].p(u, o) : (i[l] = z(u), i[l].c(), i[l].m(t, null));
52
+ }
53
+ for (; l < i.length; l += 1)
54
+ i[l].d(1);
55
+ i.length = n.length;
56
+ }
57
+ },
58
+ d(s) {
59
+ s && y(t), O(i, s);
60
+ }
61
+ };
62
+ }
63
+ function L(e) {
64
+ let t, n, i = (
65
+ /*totalReceiver*/
66
+ e[2][
67
+ /*_tab*/
68
+ e[14]
69
+ ] + ""
70
+ ), s;
71
+ return {
72
+ c() {
73
+ t = w("sup"), n = w("span"), s = q(i), f(n, "part", "SupText"), f(t, "part", "sup");
74
+ },
75
+ m(o, l) {
76
+ v(o, t, l), h(t, n), h(n, s);
77
+ },
78
+ p(o, l) {
79
+ l & /*totalReceiver, __tabs*/
80
+ 36 && i !== (i = /*totalReceiver*/
81
+ o[2][
82
+ /*_tab*/
83
+ o[14]
84
+ ] + "") && j(s, i);
85
+ },
86
+ d(o) {
87
+ o && y(t);
88
+ }
89
+ };
90
+ }
91
+ function z(e) {
92
+ let t, n, i = (
93
+ /*textReceiver*/
94
+ e[3][
95
+ /*_tab*/
96
+ e[14]
97
+ ] + ""
98
+ ), s, o, l, u, d, g, c, r = (
99
+ /*totalReceiver*/
100
+ e[2][
101
+ /*_tab*/
102
+ e[14]
103
+ ] >= 0 && L(e)
104
+ );
105
+ function _() {
106
+ return (
107
+ /*click_handler*/
108
+ e[11](
109
+ /*_tab*/
110
+ e[14]
111
+ )
112
+ );
113
+ }
114
+ return {
115
+ c() {
116
+ t = w("li"), n = w("span"), s = q(i), o = S(), r && r.c(), l = S(), f(n, "part", "LiText"), f(t, "class", u = /*__tab*/
117
+ e[4] === /*_tab*/
118
+ e[14] ? "active" : ""), f(t, "part", d = `${/*_tab*/
119
+ e[14]} li ` + /*__tab*/
120
+ (e[4] === /*_tab*/
121
+ e[14] ? "active" : ""));
122
+ },
123
+ m(b, m) {
124
+ v(b, t, m), h(t, n), h(n, s), h(t, o), r && r.m(t, null), h(t, l), g || (c = B(t, "click", _), g = !0);
125
+ },
126
+ p(b, m) {
127
+ e = b, m & /*textReceiver, __tabs*/
128
+ 40 && i !== (i = /*textReceiver*/
129
+ e[3][
130
+ /*_tab*/
131
+ e[14]
132
+ ] + "") && j(s, i), /*totalReceiver*/
133
+ e[2][
134
+ /*_tab*/
135
+ e[14]
136
+ ] >= 0 ? r ? r.p(e, m) : (r = L(e), r.c(), r.m(t, l)) : r && (r.d(1), r = null), m & /*__tab, __tabs*/
137
+ 48 && u !== (u = /*__tab*/
138
+ e[4] === /*_tab*/
139
+ e[14] ? "active" : "") && f(t, "class", u), m & /*__tabs, __tab*/
140
+ 48 && d !== (d = `${/*_tab*/
141
+ e[14]} li ` + /*__tab*/
142
+ (e[4] === /*_tab*/
143
+ e[14] ? "active" : "")) && f(t, "part", d);
144
+ },
145
+ d(b) {
146
+ b && y(t), r && r.d(), g = !1, c();
147
+ }
148
+ };
149
+ }
150
+ function V(e) {
151
+ let t, n = (
152
+ /*isTitleInited*/
153
+ e[1] && C(e)
154
+ );
155
+ return {
156
+ c() {
157
+ t = w("div"), n && n.c(), f(t, "class", "casino-tournaments-tab"), f(t, "part", "CustomStylingContainer");
158
+ },
159
+ m(i, s) {
160
+ v(i, t, s), n && n.m(t, null), e[12](t);
161
+ },
162
+ p(i, [s]) {
163
+ /*isTitleInited*/
164
+ i[1] ? n ? n.p(i, s) : (n = C(i), n.c(), n.m(t, null)) : n && (n.d(1), n = null);
165
+ },
166
+ i: k,
167
+ o: k,
168
+ d(i) {
169
+ i && y(t), n && n.d(), e[12](null);
170
+ }
171
+ };
172
+ }
173
+ function W(e, t, n) {
174
+ let i, s, { tabs: o = "" } = t, { tab: l = void 0 } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { mbsource: g } = t, c, r = !1, _ = {}, b = {};
175
+ P({
176
+ TournamentsTabTotalUpdate: (a) => {
177
+ n(2, _ = {
178
+ ..._,
179
+ [a.state]: a.total
180
+ });
181
+ },
182
+ TournamentsTabLocaleTextUpdate: (a) => {
183
+ n(1, r = !0), n(3, b = { ...b, [a.state]: a.text });
184
+ }
185
+ }), M(() => (window.postMessage({ type: "TournamentsTabListenerLoaded" }, window.location.href), () => {
186
+ }));
187
+ const m = (a) => {
188
+ n(4, s = a), window.postMessage({ type: "TournamentsTabSwitch", tab: a }, window.location.href);
189
+ };
190
+ function R(a) {
191
+ A[a ? "unshift" : "push"](() => {
192
+ c = a, n(0, c);
193
+ });
194
+ }
195
+ return e.$$set = (a) => {
196
+ "tabs" in a && n(6, o = a.tabs), "tab" in a && n(7, l = a.tab), "clientstyling" in a && n(8, u = a.clientstyling), "clientstylingurl" in a && n(9, d = a.clientstylingurl), "mbsource" in a && n(10, g = a.mbsource);
197
+ }, e.$$.update = () => {
198
+ e.$$.dirty & /*clientstyling, customStylingContainer*/
199
+ 257 && u && c && G(c, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
200
+ 513 && d && c && J(c, d), e.$$.dirty & /*mbsource, customStylingContainer*/
201
+ 1025 && g && c && K(c, `${g}.Style`), e.$$.dirty & /*tabs*/
202
+ 64 && n(5, i = o.split(",")), e.$$.dirty & /*tab*/
203
+ 128 && n(4, s = l);
204
+ }, [
205
+ c,
206
+ r,
207
+ _,
208
+ b,
209
+ s,
210
+ i,
211
+ o,
212
+ l,
213
+ u,
214
+ d,
215
+ g,
216
+ m,
217
+ R
218
+ ];
219
+ }
220
+ class X extends U {
221
+ constructor(t) {
222
+ super(), E(
223
+ this,
224
+ t,
225
+ W,
226
+ V,
227
+ H,
228
+ {
229
+ tabs: 6,
230
+ tab: 7,
231
+ clientstyling: 8,
232
+ clientstylingurl: 9,
233
+ mbsource: 10
234
+ },
235
+ Q
236
+ );
237
+ }
238
+ get tabs() {
239
+ return this.$$.ctx[6];
240
+ }
241
+ set tabs(t) {
242
+ this.$$set({ tabs: t }), p();
243
+ }
244
+ get tab() {
245
+ return this.$$.ctx[7];
246
+ }
247
+ set tab(t) {
248
+ this.$$set({ tab: t }), p();
249
+ }
250
+ get clientstyling() {
251
+ return this.$$.ctx[8];
252
+ }
253
+ set clientstyling(t) {
254
+ this.$$set({ clientstyling: t }), p();
255
+ }
256
+ get clientstylingurl() {
257
+ return this.$$.ctx[9];
258
+ }
259
+ set clientstylingurl(t) {
260
+ this.$$set({ clientstylingurl: t }), p();
261
+ }
262
+ get mbsource() {
263
+ return this.$$.ctx[10];
264
+ }
265
+ set mbsource(t) {
266
+ this.$$set({ mbsource: t }), p();
267
+ }
268
+ }
269
+ D(X, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
270
+ export {
271
+ X as default
272
+ };
@@ -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-DHTqRj4u.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-BbgrqpWb.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-CiBWTEia.js").then((e) => e.C).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoTournamentsLimitedController-D6cASWeq.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
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoTournamentsLimitedController-Bfnn_Y5U.js";
1
+ import { C as s } from "../components/CasinoTournamentsLimitedController-Cw8Q_fq9.js";
2
2
  function o(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-limited-controller",
3
- "version": "1.67.3",
3
+ "version": "1.68.0",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-tournaments-limited-controller.cjs",
6
6
  "module": "esnext/casino-tournaments-limited-controller.js",