@everymatrix/casino-tournaments-tab 1.44.0 → 1.45.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 @@
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;