@everymatrix/casino-tournaments-tab 1.0.69 → 1.0.70

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 ot=Object.defineProperty,rt=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var T=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var F=(e,t,n)=>t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))D.call(t,n)&&F(e,n,t[n]);if(T)for(var n of T(t))I.call(t,n)&&F(e,n,t[n]);return e},S=(e,t)=>rt(e,ct(t));var J=(e,t)=>{var n={};for(var s in e)D.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&T)for(var s of T(e))t.indexOf(s)<0&&I.call(e,s)&&(n[s]=e[s]);return n};var h=(e,t,n)=>F(e,typeof t!="symbol"?t+"":t,n);var V=(e,t,n)=>new Promise((s,l)=>{var i=u=>{try{o(n.next(u))}catch(c){l(c)}},r=u=>{try{o(n.throw(u))}catch(c){l(c)}},o=u=>u.done?s(u.value):Promise.resolve(u.value).then(i,r);o((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function k(){}function tt(e){return e()}function q(){return Object.create(null)}function A(e){e.forEach(tt)}function et(e){return typeof e=="function"}function ut(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function ft(e){return Object.keys(e).length===0}function G(e){return e==null?"":e}function m(e,t){e.appendChild(t)}function at(e,t,n){const s=dt(e);if(!s.getElementById(t)){const l=_("style");l.id=t,l.textContent=n,ht(s,l)}}function dt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ht(e,t){return m(e.head||e,t),t.sheet}function M(e,t,n){e.insertBefore(t,n||null)}function L(e){e.parentNode&&e.parentNode.removeChild(e)}function $t(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function _(e){return document.createElement(e)}function H(e){return document.createTextNode(e)}function K(){return H(" ")}function gt(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function d(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function bt(e){return Array.from(e.childNodes)}function nt(e,t){t=""+t,e.data!==t&&(e.data=t)}function mt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let C;function E(e){C=e}function _t(){if(!C)throw new Error("Function called outside component initialization");return C}function pt(e){_t().$$.on_mount.push(e)}const y=[],R=[];let j=[];const Q=[],vt=Promise.resolve();let z=!1;function yt(){z||(z=!0,vt.then(w))}function B(e){j.push(e)}const P=new Set;let v=0;function w(){if(v!==0)return;const e=C;do{try{for(;v<y.length;){const t=y[v];v++,E(t),wt(t.$$)}}catch(t){throw y.length=0,v=0,t}for(E(null),y.length=0,v=0;R.length;)R.pop()();for(let t=0;t<j.length;t+=1){const n=j[t];P.has(n)||(P.add(n),n())}j.length=0}while(y.length);for(;Q.length;)Q.pop()();z=!1,P.clear(),E(e)}function wt(e){if(e.fragment!==null){e.update(),A(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(B)}}function jt(e){const t=[],n=[];j.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),j=t}const Et=new Set;function kt(e,t){e&&e.i&&(Et.delete(e),e.i(t))}function W(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Ct(e,t,n){const{fragment:s,after_update:l}=e.$$;s&&s.m(t,n),B(()=>{const i=e.$$.on_mount.map(tt).filter(et);e.$$.on_destroy?e.$$.on_destroy.push(...i):A(i),e.$$.on_mount=[]}),l.forEach(B)}function Lt(e,t){const n=e.$$;n.fragment!==null&&(jt(n.after_update),A(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Tt(e,t){e.$$.dirty[0]===-1&&(y.push(e),yt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function xt(e,t,n,s,l,i,r=null,o=[-1]){const u=C;E(e);const c=e.$$={fragment:null,ctx:[],props:i,update:k,not_equal:l,bound:q(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:q(),dirty:o,skip_bound:!1,root:t.target||u.$$.root};r&&r(c.root);let $=!1;if(c.ctx=n?n(e,t.props||{},(f,p,...b)=>{const g=b.length?b[0]:p;return c.ctx&&l(c.ctx[f],c.ctx[f]=g)&&(!c.skip_bound&&c.bound[f]&&c.bound[f](g),$&&Tt(e,f)),p}):[],c.update(),$=!0,A(c.before_update),c.fragment=s?s(c.ctx):!1,t.target){if(t.hydrate){const f=bt(t.target);c.fragment&&c.fragment.l(f),f.forEach(L)}else c.fragment&&c.fragment.c();t.intro&&kt(e.$$.fragment),Ct(e,t.target,t.anchor),w()}E(u)}let st;typeof HTMLElement=="function"&&(st=class extends HTMLElement{constructor(t,n,s){super();h(this,"$$ctor");h(this,"$$s");h(this,"$$c");h(this,"$$cn",!1);h(this,"$$d",{});h(this,"$$r",!1);h(this,"$$p_d",{});h(this,"$$l",{});h(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const l=this.$$c.$on(t,n);this.$$l_u.set(n,l)}super.addEventListener(t,n,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const l=this.$$l_u.get(n);l&&(l(),this.$$l_u.delete(n))}}connectedCallback(){return V(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let r;return{c:function(){r=_("slot"),i!=="default"&&d(r,"name",i)},m:function(c,$){M(c,r,$)},d:function(c){c&&L(r)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=mt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const r=this.$$g_p(i.name);r in this.$$d||(this.$$d[r]=O(r,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:S(x({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const l=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const r=O(i,this.$$d[i],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,r)}this.$$r=!1};this.$$c.$$.after_update.push(l),l();for(const i in this.$$l)for(const r of this.$$l[i]){const o=this.$$c.$on(i,r);this.$$l_u.set(r,o)}this.$$l={}}})}attributeChangedCallback(t,n,s){var l;this.$$r||(t=this.$$g_p(t),this.$$d[t]=O(t,s,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function O(e,t,n,s){var i;const l=(i=n[e])==null?void 0:i.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(l){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function St(e,t,n,s,l,i){let r=class extends st{constructor(){super(e,n,l),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Object.keys(t).forEach(o=>{Object.defineProperty(r.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var c;u=O(o,u,t),this.$$d[o]=u,(c=this.$$c)==null||c.$set({[o]:u})}})}),s.forEach(o=>{Object.defineProperty(r.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=r,r}class Ot{constructor(){h(this,"$$");h(this,"$$set")}$destroy(){Lt(this,1),this.$destroy=k}$on(t,n){if(!et(n))return k;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const l=s.indexOf(n);l!==-1&&s.splice(l,1)}}$set(t){this.$$set&&!ft(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const At="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(At);const Mt=e=>n=>{Object.keys(e).map(s=>{if(n.data&&n.data.type==s){const l=n.data,{type:i}=l,r=J(l,["type"]);e[s](r)}})},Nt=e=>{const t=Mt(e);pt(()=>(window.addEventListener("message",t,!1),()=>{window.removeEventListener("message",t)}))};function Ft(e){at(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}")}function X(e,t,n){const s=e.slice();return s[14]=t[n],s}function Y(e){let t,n,s=e[1][e[14]]+"",l;return{c(){t=_("sup"),n=_("span"),l=H(s),d(n,"part","SupText"),d(n,"class","svelte-1dj34fv"),d(t,"part","sup"),d(t,"class","svelte-1dj34fv")},m(i,r){M(i,t,r),m(t,n),m(n,l)},p(i,r){r&18&&s!==(s=i[1][i[14]]+"")&&nt(l,s)},d(i){i&&L(t)}}}function Z(e){let t,n,s=e[2][e[14]]+"",l,i,r,o,u,c,$,f=e[1][e[14]]>=0&&Y(e);function p(){return e[9](e[14])}return{c(){t=_("li"),n=_("span"),l=H(s),i=K(),f&&f.c(),r=K(),d(n,"part","LiText"),d(n,"class","svelte-1dj34fv"),d(t,"class",o=G(e[3]===e[14]?"active":"")+" svelte-1dj34fv"),d(t,"part",u=`${e[14]} li `+(e[3]===e[14]?"active":""))},m(b,g){M(b,t,g),m(t,n),m(n,l),m(t,i),f&&f.m(t,null),m(t,r),c||($=gt(t,"click",p),c=!0)},p(b,g){e=b,g&20&&s!==(s=e[2][e[14]]+"")&&nt(l,s),e[1][e[14]]>=0?f?f.p(e,g):(f=Y(e),f.c(),f.m(t,r)):f&&(f.d(1),f=null),g&24&&o!==(o=G(e[3]===e[14]?"active":"")+" svelte-1dj34fv")&&d(t,"class",o),g&24&&u!==(u=`${e[14]} li `+(e[3]===e[14]?"active":""))&&d(t,"part",u)},d(b){b&&L(t),f&&f.d(),c=!1,$()}}}function Pt(e){let t,n,s=W(e[4]),l=[];for(let i=0;i<s.length;i+=1)l[i]=Z(X(e,s,i));return{c(){t=_("div"),n=_("ul");for(let i=0;i<l.length;i+=1)l[i].c();d(n,"part","ul"),d(n,"class","svelte-1dj34fv"),d(t,"class","casino-tournaments-tab svelte-1dj34fv"),d(t,"part","CustomStylingContainer")},m(i,r){M(i,t,r),m(t,n);for(let o=0;o<l.length;o+=1)l[o]&&l[o].m(n,null);e[10](t)},p(i,[r]){if(r&30){s=W(i[4]);let o;for(o=0;o<s.length;o+=1){const u=X(i,s,o);l[o]?l[o].p(u,r):(l[o]=Z(u),l[o].c(),l[o].m(n,null))}for(;o<l.length;o+=1)l[o].d(1);l.length=s.length}},i:k,o:k,d(i){i&&L(t),$t(l,i),e[10](null)}}}function Rt(e,t,n){let s,l,{tabs:i=""}=t,{tab:r=void 0}=t,{clientstyling:o=""}=t,{clientstylingurl:u=""}=t,c,$={},f={};const p=()=>{let a=document.createElement("style");a.innerHTML=o,c.appendChild(a)},b=()=>{let a=new URL(u),U=document.createElement("style");fetch(a.href).then(N=>N.text()).then(N=>{U.innerHTML=N,setTimeout(()=>{c.appendChild(U)},1),setTimeout(()=>{},500)})};Nt({TournamentsTabTotalUpdate:a=>{n(1,$=S(x({},$),{[a.state]:a.total}))},TournamentsTabLocaleTextUpdate:a=>{n(2,f=S(x({},f),{[a.state]:a.text}))}});const g=a=>{n(3,l=a),window.postMessage({type:"TournamentsTabSwitch",tab:a},window.location.href)};function lt(a){R[a?"unshift":"push"](()=>{c=a,n(0,c)})}return e.$$set=a=>{"tabs"in a&&n(5,i=a.tabs),"tab"in a&&n(6,r=a.tab),"clientstyling"in a&&n(7,o=a.clientstyling),"clientstylingurl"in a&&n(8,u=a.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&129&&c&&o&&p(),e.$$.dirty&257&&c&&u&&b(),e.$$.dirty&32&&n(4,s=i.split(",")),e.$$.dirty&64&&n(3,l=r)},[c,$,f,l,s,i,r,o,u,g,lt]}class it extends Ot{constructor(t){super(),xt(this,t,Rt,Pt,ut,{tabs:5,tab:6,clientstyling:7,clientstylingurl:8},Ft)}get tabs(){return this.$$.ctx[5]}set tabs(t){this.$$set({tabs:t}),w()}get tab(){return this.$$.ctx[6]}set tab(t){this.$$set({tab:t}),w()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),w()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),w()}}St(it,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=it;
@@ -0,0 +1,737 @@
1
+ var lt = Object.defineProperty, ot = Object.defineProperties;
2
+ var rt = Object.getOwnPropertyDescriptors;
3
+ var x = Object.getOwnPropertySymbols;
4
+ var D = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
5
+ var M = (e, t, n) => t in e ? lt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, T = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ D.call(t, n) && M(e, n, t[n]);
8
+ if (x)
9
+ for (var n of x(t))
10
+ I.call(t, n) && M(e, n, t[n]);
11
+ return e;
12
+ }, O = (e, t) => ot(e, rt(t));
13
+ var J = (e, t) => {
14
+ var n = {};
15
+ for (var s in e)
16
+ D.call(e, s) && t.indexOf(s) < 0 && (n[s] = e[s]);
17
+ if (e != null && x)
18
+ for (var s of x(e))
19
+ t.indexOf(s) < 0 && I.call(e, s) && (n[s] = e[s]);
20
+ return n;
21
+ };
22
+ var h = (e, t, n) => M(e, typeof t != "symbol" ? t + "" : t, n);
23
+ var V = (e, t, n) => new Promise((s, l) => {
24
+ var i = (u) => {
25
+ try {
26
+ o(n.next(u));
27
+ } catch (c) {
28
+ l(c);
29
+ }
30
+ }, r = (u) => {
31
+ try {
32
+ o(n.throw(u));
33
+ } catch (c) {
34
+ l(c);
35
+ }
36
+ }, o = (u) => u.done ? s(u.value) : Promise.resolve(u.value).then(i, r);
37
+ o((n = n.apply(e, t)).next());
38
+ });
39
+ function k() {
40
+ }
41
+ function tt(e) {
42
+ return e();
43
+ }
44
+ function q() {
45
+ return /* @__PURE__ */ Object.create(null);
46
+ }
47
+ function A(e) {
48
+ e.forEach(tt);
49
+ }
50
+ function et(e) {
51
+ return typeof e == "function";
52
+ }
53
+ function ct(e, t) {
54
+ return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
55
+ }
56
+ function ut(e) {
57
+ return Object.keys(e).length === 0;
58
+ }
59
+ function G(e) {
60
+ return e == null ? "" : e;
61
+ }
62
+ function m(e, t) {
63
+ e.appendChild(t);
64
+ }
65
+ function ft(e, t, n) {
66
+ const s = at(e);
67
+ if (!s.getElementById(t)) {
68
+ const l = _("style");
69
+ l.id = t, l.textContent = n, dt(s, l);
70
+ }
71
+ }
72
+ function at(e) {
73
+ if (!e) return document;
74
+ const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
+ return t && /** @type {ShadowRoot} */
76
+ t.host ? (
77
+ /** @type {ShadowRoot} */
78
+ t
79
+ ) : e.ownerDocument;
80
+ }
81
+ function dt(e, t) {
82
+ return m(
83
+ /** @type {Document} */
84
+ e.head || e,
85
+ t
86
+ ), t.sheet;
87
+ }
88
+ function N(e, t, n) {
89
+ e.insertBefore(t, n || null);
90
+ }
91
+ function L(e) {
92
+ e.parentNode && e.parentNode.removeChild(e);
93
+ }
94
+ function ht(e, t) {
95
+ for (let n = 0; n < e.length; n += 1)
96
+ e[n] && e[n].d(t);
97
+ }
98
+ function _(e) {
99
+ return document.createElement(e);
100
+ }
101
+ function H(e) {
102
+ return document.createTextNode(e);
103
+ }
104
+ function K() {
105
+ return H(" ");
106
+ }
107
+ function $t(e, t, n, s) {
108
+ return e.addEventListener(t, n, s), () => e.removeEventListener(t, n, s);
109
+ }
110
+ function d(e, t, n) {
111
+ n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
112
+ }
113
+ function gt(e) {
114
+ return Array.from(e.childNodes);
115
+ }
116
+ function nt(e, t) {
117
+ t = "" + t, e.data !== t && (e.data = /** @type {string} */
118
+ t);
119
+ }
120
+ function bt(e) {
121
+ const t = {};
122
+ return e.childNodes.forEach(
123
+ /** @param {Element} node */
124
+ (n) => {
125
+ t[n.slot || "default"] = !0;
126
+ }
127
+ ), t;
128
+ }
129
+ let C;
130
+ function E(e) {
131
+ C = e;
132
+ }
133
+ function mt() {
134
+ if (!C) throw new Error("Function called outside component initialization");
135
+ return C;
136
+ }
137
+ function _t(e) {
138
+ mt().$$.on_mount.push(e);
139
+ }
140
+ const y = [], R = [];
141
+ let j = [];
142
+ const Q = [], pt = /* @__PURE__ */ Promise.resolve();
143
+ let z = !1;
144
+ function vt() {
145
+ z || (z = !0, pt.then(w));
146
+ }
147
+ function B(e) {
148
+ j.push(e);
149
+ }
150
+ const P = /* @__PURE__ */ new Set();
151
+ let v = 0;
152
+ function w() {
153
+ if (v !== 0)
154
+ return;
155
+ const e = C;
156
+ do {
157
+ try {
158
+ for (; v < y.length; ) {
159
+ const t = y[v];
160
+ v++, E(t), yt(t.$$);
161
+ }
162
+ } catch (t) {
163
+ throw y.length = 0, v = 0, t;
164
+ }
165
+ for (E(null), y.length = 0, v = 0; R.length; ) R.pop()();
166
+ for (let t = 0; t < j.length; t += 1) {
167
+ const n = j[t];
168
+ P.has(n) || (P.add(n), n());
169
+ }
170
+ j.length = 0;
171
+ } while (y.length);
172
+ for (; Q.length; )
173
+ Q.pop()();
174
+ z = !1, P.clear(), E(e);
175
+ }
176
+ function yt(e) {
177
+ if (e.fragment !== null) {
178
+ e.update(), A(e.before_update);
179
+ const t = e.dirty;
180
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(B);
181
+ }
182
+ }
183
+ function wt(e) {
184
+ const t = [], n = [];
185
+ j.forEach((s) => e.indexOf(s) === -1 ? t.push(s) : n.push(s)), n.forEach((s) => s()), j = t;
186
+ }
187
+ const jt = /* @__PURE__ */ new Set();
188
+ function Et(e, t) {
189
+ e && e.i && (jt.delete(e), e.i(t));
190
+ }
191
+ function W(e) {
192
+ return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
193
+ }
194
+ function kt(e, t, n) {
195
+ const { fragment: s, after_update: l } = e.$$;
196
+ s && s.m(t, n), B(() => {
197
+ const i = e.$$.on_mount.map(tt).filter(et);
198
+ e.$$.on_destroy ? e.$$.on_destroy.push(...i) : A(i), e.$$.on_mount = [];
199
+ }), l.forEach(B);
200
+ }
201
+ function Ct(e, t) {
202
+ const n = e.$$;
203
+ n.fragment !== null && (wt(n.after_update), A(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
204
+ }
205
+ function Lt(e, t) {
206
+ e.$$.dirty[0] === -1 && (y.push(e), vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
207
+ }
208
+ function xt(e, t, n, s, l, i, r = null, o = [-1]) {
209
+ const u = C;
210
+ E(e);
211
+ const c = e.$$ = {
212
+ fragment: null,
213
+ ctx: [],
214
+ // state
215
+ props: i,
216
+ update: k,
217
+ not_equal: l,
218
+ bound: q(),
219
+ // lifecycle
220
+ on_mount: [],
221
+ on_destroy: [],
222
+ on_disconnect: [],
223
+ before_update: [],
224
+ after_update: [],
225
+ context: new Map(t.context || (u ? u.$$.context : [])),
226
+ // everything else
227
+ callbacks: q(),
228
+ dirty: o,
229
+ skip_bound: !1,
230
+ root: t.target || u.$$.root
231
+ };
232
+ r && r(c.root);
233
+ let $ = !1;
234
+ if (c.ctx = n ? n(e, t.props || {}, (f, p, ...b) => {
235
+ const g = b.length ? b[0] : p;
236
+ return c.ctx && l(c.ctx[f], c.ctx[f] = g) && (!c.skip_bound && c.bound[f] && c.bound[f](g), $ && Lt(e, f)), p;
237
+ }) : [], c.update(), $ = !0, A(c.before_update), c.fragment = s ? s(c.ctx) : !1, t.target) {
238
+ if (t.hydrate) {
239
+ const f = gt(t.target);
240
+ c.fragment && c.fragment.l(f), f.forEach(L);
241
+ } else
242
+ c.fragment && c.fragment.c();
243
+ t.intro && Et(e.$$.fragment), kt(e, t.target, t.anchor), w();
244
+ }
245
+ E(u);
246
+ }
247
+ let st;
248
+ typeof HTMLElement == "function" && (st = class extends HTMLElement {
249
+ constructor(t, n, s) {
250
+ super();
251
+ /** The Svelte component constructor */
252
+ h(this, "$$ctor");
253
+ /** Slots */
254
+ h(this, "$$s");
255
+ /** The Svelte component instance */
256
+ h(this, "$$c");
257
+ /** Whether or not the custom element is connected */
258
+ h(this, "$$cn", !1);
259
+ /** Component props data */
260
+ h(this, "$$d", {});
261
+ /** `true` if currently in the process of reflecting component props back to attributes */
262
+ h(this, "$$r", !1);
263
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
264
+ h(this, "$$p_d", {});
265
+ /** @type {Record<string, Function[]>} Event listeners */
266
+ h(this, "$$l", {});
267
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
268
+ h(this, "$$l_u", /* @__PURE__ */ new Map());
269
+ this.$$ctor = t, this.$$s = n, s && this.attachShadow({ mode: "open" });
270
+ }
271
+ addEventListener(t, n, s) {
272
+ if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
273
+ const l = this.$$c.$on(t, n);
274
+ this.$$l_u.set(n, l);
275
+ }
276
+ super.addEventListener(t, n, s);
277
+ }
278
+ removeEventListener(t, n, s) {
279
+ if (super.removeEventListener(t, n, s), this.$$c) {
280
+ const l = this.$$l_u.get(n);
281
+ l && (l(), this.$$l_u.delete(n));
282
+ }
283
+ }
284
+ connectedCallback() {
285
+ return V(this, null, function* () {
286
+ if (this.$$cn = !0, !this.$$c) {
287
+ let t = function(i) {
288
+ return () => {
289
+ let r;
290
+ return {
291
+ c: function() {
292
+ r = _("slot"), i !== "default" && d(r, "name", i);
293
+ },
294
+ /**
295
+ * @param {HTMLElement} target
296
+ * @param {HTMLElement} [anchor]
297
+ */
298
+ m: function(c, $) {
299
+ N(c, r, $);
300
+ },
301
+ d: function(c) {
302
+ c && L(r);
303
+ }
304
+ };
305
+ };
306
+ };
307
+ if (yield Promise.resolve(), !this.$$cn || this.$$c)
308
+ return;
309
+ const n = {}, s = bt(this);
310
+ for (const i of this.$$s)
311
+ i in s && (n[i] = [t(i)]);
312
+ for (const i of this.attributes) {
313
+ const r = this.$$g_p(i.name);
314
+ r in this.$$d || (this.$$d[r] = S(r, i.value, this.$$p_d, "toProp"));
315
+ }
316
+ for (const i in this.$$p_d)
317
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
318
+ this.$$c = new this.$$ctor({
319
+ target: this.shadowRoot || this,
320
+ props: O(T({}, this.$$d), {
321
+ $$slots: n,
322
+ $$scope: {
323
+ ctx: []
324
+ }
325
+ })
326
+ });
327
+ const l = () => {
328
+ this.$$r = !0;
329
+ for (const i in this.$$p_d)
330
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
331
+ const r = S(
332
+ i,
333
+ this.$$d[i],
334
+ this.$$p_d,
335
+ "toAttribute"
336
+ );
337
+ r == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, r);
338
+ }
339
+ this.$$r = !1;
340
+ };
341
+ this.$$c.$$.after_update.push(l), l();
342
+ for (const i in this.$$l)
343
+ for (const r of this.$$l[i]) {
344
+ const o = this.$$c.$on(i, r);
345
+ this.$$l_u.set(r, o);
346
+ }
347
+ this.$$l = {};
348
+ }
349
+ });
350
+ }
351
+ // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
352
+ // and setting attributes through setAttribute etc, this is helpful
353
+ attributeChangedCallback(t, n, s) {
354
+ var l;
355
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = S(t, s, this.$$p_d, "toProp"), (l = this.$$c) == null || l.$set({ [t]: this.$$d[t] }));
356
+ }
357
+ disconnectedCallback() {
358
+ this.$$cn = !1, Promise.resolve().then(() => {
359
+ !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
360
+ });
361
+ }
362
+ $$g_p(t) {
363
+ return Object.keys(this.$$p_d).find(
364
+ (n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
365
+ ) || t;
366
+ }
367
+ });
368
+ function S(e, t, n, s) {
369
+ var i;
370
+ const l = (i = n[e]) == null ? void 0 : i.type;
371
+ if (t = l === "Boolean" && typeof t != "boolean" ? t != null : t, !s || !n[e])
372
+ return t;
373
+ if (s === "toAttribute")
374
+ switch (l) {
375
+ case "Object":
376
+ case "Array":
377
+ return t == null ? null : JSON.stringify(t);
378
+ case "Boolean":
379
+ return t ? "" : null;
380
+ case "Number":
381
+ return t == null ? null : t;
382
+ default:
383
+ return t;
384
+ }
385
+ else
386
+ switch (l) {
387
+ case "Object":
388
+ case "Array":
389
+ return t && JSON.parse(t);
390
+ case "Boolean":
391
+ return t;
392
+ case "Number":
393
+ return t != null ? +t : t;
394
+ default:
395
+ return t;
396
+ }
397
+ }
398
+ function Tt(e, t, n, s, l, i) {
399
+ let r = class extends st {
400
+ constructor() {
401
+ super(e, n, l), this.$$p_d = t;
402
+ }
403
+ static get observedAttributes() {
404
+ return Object.keys(t).map(
405
+ (o) => (t[o].attribute || o).toLowerCase()
406
+ );
407
+ }
408
+ };
409
+ return Object.keys(t).forEach((o) => {
410
+ Object.defineProperty(r.prototype, o, {
411
+ get() {
412
+ return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
413
+ },
414
+ set(u) {
415
+ var c;
416
+ u = S(o, u, t), this.$$d[o] = u, (c = this.$$c) == null || c.$set({ [o]: u });
417
+ }
418
+ });
419
+ }), s.forEach((o) => {
420
+ Object.defineProperty(r.prototype, o, {
421
+ get() {
422
+ var u;
423
+ return (u = this.$$c) == null ? void 0 : u[o];
424
+ }
425
+ });
426
+ }), e.element = /** @type {any} */
427
+ r, r;
428
+ }
429
+ class Ot {
430
+ constructor() {
431
+ /**
432
+ * ### PRIVATE API
433
+ *
434
+ * Do not use, may change at any time
435
+ *
436
+ * @type {any}
437
+ */
438
+ h(this, "$$");
439
+ /**
440
+ * ### PRIVATE API
441
+ *
442
+ * Do not use, may change at any time
443
+ *
444
+ * @type {any}
445
+ */
446
+ h(this, "$$set");
447
+ }
448
+ /** @returns {void} */
449
+ $destroy() {
450
+ Ct(this, 1), this.$destroy = k;
451
+ }
452
+ /**
453
+ * @template {Extract<keyof Events, string>} K
454
+ * @param {K} type
455
+ * @param {((e: Events[K]) => void) | null | undefined} callback
456
+ * @returns {() => void}
457
+ */
458
+ $on(t, n) {
459
+ if (!et(n))
460
+ return k;
461
+ const s = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
462
+ return s.push(n), () => {
463
+ const l = s.indexOf(n);
464
+ l !== -1 && s.splice(l, 1);
465
+ };
466
+ }
467
+ /**
468
+ * @param {Partial<Props>} props
469
+ * @returns {void}
470
+ */
471
+ $set(t) {
472
+ this.$$set && !ut(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
473
+ }
474
+ }
475
+ const St = "4";
476
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(St);
477
+ const At = (e) => (n) => {
478
+ Object.keys(e).map((s) => {
479
+ if (n.data && n.data.type == s) {
480
+ const l = n.data, { type: i } = l, r = J(l, ["type"]);
481
+ e[s](r);
482
+ }
483
+ });
484
+ }, Nt = (e) => {
485
+ const t = At(e);
486
+ _t(() => (window.addEventListener("message", t, !1), () => {
487
+ window.removeEventListener("message", t);
488
+ }));
489
+ };
490
+ function Ft(e) {
491
+ ft(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}");
492
+ }
493
+ function X(e, t, n) {
494
+ const s = e.slice();
495
+ return s[14] = t[n], s;
496
+ }
497
+ function Y(e) {
498
+ let t, n, s = (
499
+ /*totalReceiver*/
500
+ e[1][
501
+ /*_tab*/
502
+ e[14]
503
+ ] + ""
504
+ ), l;
505
+ return {
506
+ c() {
507
+ t = _("sup"), n = _("span"), l = H(s), d(n, "part", "SupText"), d(n, "class", "svelte-1dj34fv"), d(t, "part", "sup"), d(t, "class", "svelte-1dj34fv");
508
+ },
509
+ m(i, r) {
510
+ N(i, t, r), m(t, n), m(n, l);
511
+ },
512
+ p(i, r) {
513
+ r & /*totalReceiver, __tabs*/
514
+ 18 && s !== (s = /*totalReceiver*/
515
+ i[1][
516
+ /*_tab*/
517
+ i[14]
518
+ ] + "") && nt(l, s);
519
+ },
520
+ d(i) {
521
+ i && L(t);
522
+ }
523
+ };
524
+ }
525
+ function Z(e) {
526
+ let t, n, s = (
527
+ /*textReceiver*/
528
+ e[2][
529
+ /*_tab*/
530
+ e[14]
531
+ ] + ""
532
+ ), l, i, r, o, u, c, $, f = (
533
+ /*totalReceiver*/
534
+ e[1][
535
+ /*_tab*/
536
+ e[14]
537
+ ] >= 0 && Y(e)
538
+ );
539
+ function p() {
540
+ return (
541
+ /*click_handler*/
542
+ e[9](
543
+ /*_tab*/
544
+ e[14]
545
+ )
546
+ );
547
+ }
548
+ return {
549
+ c() {
550
+ t = _("li"), n = _("span"), l = H(s), i = K(), f && f.c(), r = K(), d(n, "part", "LiText"), d(n, "class", "svelte-1dj34fv"), d(t, "class", o = G(
551
+ /*__tab*/
552
+ e[3] === /*_tab*/
553
+ e[14] ? "active" : ""
554
+ ) + " svelte-1dj34fv"), d(t, "part", u = `${/*_tab*/
555
+ e[14]} li ` + /*__tab*/
556
+ (e[3] === /*_tab*/
557
+ e[14] ? "active" : ""));
558
+ },
559
+ m(b, g) {
560
+ N(b, t, g), m(t, n), m(n, l), m(t, i), f && f.m(t, null), m(t, r), c || ($ = $t(t, "click", p), c = !0);
561
+ },
562
+ p(b, g) {
563
+ e = b, g & /*textReceiver, __tabs*/
564
+ 20 && s !== (s = /*textReceiver*/
565
+ e[2][
566
+ /*_tab*/
567
+ e[14]
568
+ ] + "") && nt(l, s), /*totalReceiver*/
569
+ e[1][
570
+ /*_tab*/
571
+ e[14]
572
+ ] >= 0 ? f ? f.p(e, g) : (f = Y(e), f.c(), f.m(t, r)) : f && (f.d(1), f = null), g & /*__tab, __tabs*/
573
+ 24 && o !== (o = G(
574
+ /*__tab*/
575
+ e[3] === /*_tab*/
576
+ e[14] ? "active" : ""
577
+ ) + " svelte-1dj34fv") && d(t, "class", o), g & /*__tabs, __tab*/
578
+ 24 && u !== (u = `${/*_tab*/
579
+ e[14]} li ` + /*__tab*/
580
+ (e[3] === /*_tab*/
581
+ e[14] ? "active" : "")) && d(t, "part", u);
582
+ },
583
+ d(b) {
584
+ b && L(t), f && f.d(), c = !1, $();
585
+ }
586
+ };
587
+ }
588
+ function Mt(e) {
589
+ let t, n, s = W(
590
+ /*__tabs*/
591
+ e[4]
592
+ ), l = [];
593
+ for (let i = 0; i < s.length; i += 1)
594
+ l[i] = Z(X(e, s, i));
595
+ return {
596
+ c() {
597
+ t = _("div"), n = _("ul");
598
+ for (let i = 0; i < l.length; i += 1)
599
+ l[i].c();
600
+ d(n, "part", "ul"), d(n, "class", "svelte-1dj34fv"), d(t, "class", "casino-tournaments-tab svelte-1dj34fv"), d(t, "part", "CustomStylingContainer");
601
+ },
602
+ m(i, r) {
603
+ N(i, t, r), m(t, n);
604
+ for (let o = 0; o < l.length; o += 1)
605
+ l[o] && l[o].m(n, null);
606
+ e[10](t);
607
+ },
608
+ p(i, [r]) {
609
+ if (r & /*__tab, __tabs, window, totalReceiver, textReceiver*/
610
+ 30) {
611
+ s = W(
612
+ /*__tabs*/
613
+ i[4]
614
+ );
615
+ let o;
616
+ for (o = 0; o < s.length; o += 1) {
617
+ const u = X(i, s, o);
618
+ l[o] ? l[o].p(u, r) : (l[o] = Z(u), l[o].c(), l[o].m(n, null));
619
+ }
620
+ for (; o < l.length; o += 1)
621
+ l[o].d(1);
622
+ l.length = s.length;
623
+ }
624
+ },
625
+ i: k,
626
+ o: k,
627
+ d(i) {
628
+ i && L(t), ht(l, i), e[10](null);
629
+ }
630
+ };
631
+ }
632
+ function Pt(e, t, n) {
633
+ let s, l, { tabs: i = "" } = t, { tab: r = void 0 } = t, { clientstyling: o = "" } = t, { clientstylingurl: u = "" } = t, c, $ = {}, f = {};
634
+ const p = () => {
635
+ let a = document.createElement("style");
636
+ a.innerHTML = o, c.appendChild(a);
637
+ }, b = () => {
638
+ let a = new URL(u), U = document.createElement("style");
639
+ fetch(a.href).then((F) => F.text()).then((F) => {
640
+ U.innerHTML = F, setTimeout(
641
+ () => {
642
+ c.appendChild(U);
643
+ },
644
+ 1
645
+ ), setTimeout(
646
+ () => {
647
+ },
648
+ 500
649
+ );
650
+ });
651
+ };
652
+ Nt({
653
+ TournamentsTabTotalUpdate: (a) => {
654
+ n(1, $ = O(T({}, $), {
655
+ [a.state]: a.total
656
+ }));
657
+ },
658
+ TournamentsTabLocaleTextUpdate: (a) => {
659
+ n(2, f = O(T({}, f), { [a.state]: a.text }));
660
+ }
661
+ });
662
+ const g = (a) => {
663
+ n(3, l = a), window.postMessage({ type: "TournamentsTabSwitch", tab: a }, window.location.href);
664
+ };
665
+ function it(a) {
666
+ R[a ? "unshift" : "push"](() => {
667
+ c = a, n(0, c);
668
+ });
669
+ }
670
+ return e.$$set = (a) => {
671
+ "tabs" in a && n(5, i = a.tabs), "tab" in a && n(6, r = a.tab), "clientstyling" in a && n(7, o = a.clientstyling), "clientstylingurl" in a && n(8, u = a.clientstylingurl);
672
+ }, e.$$.update = () => {
673
+ e.$$.dirty & /*customStylingContainer, clientstyling*/
674
+ 129 && c && o && p(), e.$$.dirty & /*customStylingContainer, clientstylingurl*/
675
+ 257 && c && u && b(), e.$$.dirty & /*tabs*/
676
+ 32 && n(4, s = i.split(",")), e.$$.dirty & /*tab*/
677
+ 64 && n(3, l = r);
678
+ }, [
679
+ c,
680
+ $,
681
+ f,
682
+ l,
683
+ s,
684
+ i,
685
+ r,
686
+ o,
687
+ u,
688
+ g,
689
+ it
690
+ ];
691
+ }
692
+ class Rt extends Ot {
693
+ constructor(t) {
694
+ super(), xt(
695
+ this,
696
+ t,
697
+ Pt,
698
+ Mt,
699
+ ct,
700
+ {
701
+ tabs: 5,
702
+ tab: 6,
703
+ clientstyling: 7,
704
+ clientstylingurl: 8
705
+ },
706
+ Ft
707
+ );
708
+ }
709
+ get tabs() {
710
+ return this.$$.ctx[5];
711
+ }
712
+ set tabs(t) {
713
+ this.$$set({ tabs: t }), w();
714
+ }
715
+ get tab() {
716
+ return this.$$.ctx[6];
717
+ }
718
+ set tab(t) {
719
+ this.$$set({ tab: t }), w();
720
+ }
721
+ get clientstyling() {
722
+ return this.$$.ctx[7];
723
+ }
724
+ set clientstyling(t) {
725
+ this.$$set({ clientstyling: t }), w();
726
+ }
727
+ get clientstylingurl() {
728
+ return this.$$.ctx[8];
729
+ }
730
+ set clientstylingurl(t) {
731
+ this.$$set({ clientstylingurl: t }), w();
732
+ }
733
+ }
734
+ Tt(Rt, { tabs: {}, tab: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
735
+ export {
736
+ Rt as default
737
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-tab",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-tournaments-tab.cjs",
6
6
  "module": "es2015/casino-tournaments-tab.js",
@@ -11,8 +11,9 @@
11
11
  },
12
12
  "./es2015/casino-tournaments-tab.cjs": "./es2015/casino-tournaments-tab.cjs"
13
13
  },
14
- "files": [
15
- "es2015/"
14
+ "files": [
15
+ "es2015/",
16
+ "components"
16
17
  ],
17
18
  "publishConfig": {
18
19
  "access": "public"