@everymatrix/casino-tournaments-limited-controller 1.0.69 → 1.0.71

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 @@
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-2FFRBp34.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;
@@ -0,0 +1,283 @@
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-PXnqZ3Uw.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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-limited-controller",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-tournaments-limited-controller.cjs",
6
6
  "module": "es2015/casino-tournaments-limited-controller.js",
@@ -11,13 +11,14 @@
11
11
  },
12
12
  "./es2015/casino-tournaments-limited-controller.cjs": "./es2015/casino-tournaments-limited-controller.cjs"
13
13
  },
14
- "files": [
15
- "es2015/"
14
+ "files": [
15
+ "es2015/",
16
+ "components"
16
17
  ],
17
18
  "publishConfig": {
18
19
  "access": "public"
19
20
  },
20
21
  "dependencies": {
21
- "@everymatrix/casino-tournaments-tab": "1.0.69"
22
+ "@everymatrix/casino-tournaments-tab": "1.0.71"
22
23
  }
23
24
  }