@everymatrix/casino-tournaments-page-controller 1.74.2 → 1.74.4
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.
- package/components/{CasinoTournamentsDetails-CD1l412D.js → CasinoTournamentsDetails-BsekkKcF.js} +19 -19
- package/components/{CasinoTournamentsDetails-mcFh7vHI.js → CasinoTournamentsDetails-DPKqCPr7.js} +19 -19
- package/components/CasinoTournamentsPageController-AaQpF8iW.cjs +37 -0
- package/components/CasinoTournamentsPageController-B7tGUhTu.js +8547 -0
- package/components/CasinoTournamentsPageController-DqhbL_lu.js +8539 -0
- package/components/{CasinoTournamentsRank-DzhFRRsR.js → CasinoTournamentsRank-CNnWcewC.js} +21 -21
- package/components/{CasinoTournamentsRank-LlOGVyGx.js → CasinoTournamentsRank-Cc5pidJ-.js} +21 -21
- package/components/CasinoTournamentsTab-BhUqppkA.js +320 -0
- package/components/CasinoTournamentsTab-UV1F3GMS.cjs +1 -0
- package/components/CasinoTournamentsTab-_IDbc7rC.js +303 -0
- package/components/{CasinoTournamentsTable-DhyXvDOL.cjs → CasinoTournamentsTable-10_AWWZo.cjs} +1 -1
- package/components/{CasinoTournamentsTable-B3yyoBa_.js → CasinoTournamentsTable-CsIgIQG-.js} +2 -2
- package/components/{CasinoTournamentsTable-UYyiKGDs.js → CasinoTournamentsTable-X-rV7_Lz.js} +2 -2
- package/components/{CasinoTournamentsThumbnail-78tp9CyZ.js → CasinoTournamentsThumbnail-DH2Orb8Y.js} +19 -19
- package/components/{CasinoTournamentsThumbnail-D-4nXRLq.cjs → CasinoTournamentsThumbnail-DaJ4vbyp.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-CgxNqGtr.js → CasinoTournamentsThumbnail-lUyJI2DJ.js} +19 -19
- package/components/{CasinoTournamentsThumbnailController-5Wo13e9u.cjs → CasinoTournamentsThumbnailController-Cd8LJRCx.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailController-HpD8FbRA.js → CasinoTournamentsThumbnailController-FloLdZgl.js} +6 -6
- package/components/{CasinoTournamentsThumbnailController-DJ57Pr_X.js → CasinoTournamentsThumbnailController-vSOxGy9d.js} +6 -6
- package/components/{CasinoTournamentsThumbnailDuration-DYm_lbVh.cjs → CasinoTournamentsThumbnailDuration-CAA4mIiV.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-CUcihq_K.js → CasinoTournamentsThumbnailDuration-DWL7fNmG.js} +26 -26
- package/components/{CasinoTournamentsThumbnailDuration-DGbu10Lv.js → CasinoTournamentsThumbnailDuration-u8JSr0q-.js} +26 -26
- package/components/CasinoTournamentsThumbnailGames-BhcNQqZ7.cjs +1 -0
- package/components/CasinoTournamentsThumbnailGames-CgqVsZlB.js +424 -0
- package/components/CasinoTournamentsThumbnailGames-CqvpgOoi.js +421 -0
- package/components/{CasinoTournamentsThumbnailGamesSlider-B1CuvY9F.js → CasinoTournamentsThumbnailGamesSlider-CAYRXnXx.js} +44 -44
- package/components/{CasinoTournamentsThumbnailGamesSlider-BQAOmCwL.js → CasinoTournamentsThumbnailGamesSlider-Fi5QDmul.js} +44 -44
- package/components/{CasinoTournamentsThumbnailGamesSlider-Bm4joopU.cjs → CasinoTournamentsThumbnailGamesSlider-kmdZBPuV.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-Dfvs586O.js → CasinoTournamentsThumbnailPrizes-BL1HtN3p.js} +15 -15
- package/components/{CasinoTournamentsThumbnailPrizes-DjjyWWPZ.js → CasinoTournamentsThumbnailPrizes-C8iysP1o.js} +15 -15
- package/components/{CasinoTournamentsThumbnailPrizes-W_oLRTaY.cjs → CasinoTournamentsThumbnailPrizes-NroicTIN.cjs} +1 -1
- package/components/CasinoTournamentsThumbnailRule-BAatFJuT.cjs +10 -0
- package/components/CasinoTournamentsThumbnailRule-D9R1SMy6.js +620 -0
- package/components/CasinoTournamentsThumbnailRule-MDMyKumh.js +621 -0
- package/es2015/casino-tournaments-page-controller.cjs +1 -1
- package/es2015/casino-tournaments-page-controller.js +1 -1
- package/esnext/casino-tournaments-page-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsPageController-A2Co53Ej.js +0 -8642
- package/components/CasinoTournamentsPageController-BW0tQ9JT.js +0 -8649
- package/components/CasinoTournamentsPageController-JWctyFcT.cjs +0 -38
- package/components/CasinoTournamentsTab-CWhMQiQ0.cjs +0 -1
- package/components/CasinoTournamentsTab-CrDmK4lY.js +0 -292
- package/components/CasinoTournamentsTab-Ih-_3vfM.js +0 -272
- package/components/CasinoTournamentsThumbnailRule-BE6UoGqA.cjs +0 -1
- package/components/CasinoTournamentsThumbnailRule-CYoOnc7S.js +0 -1103
- package/components/CasinoTournamentsThumbnailRule-D0kbuwDt.js +0 -1103
|
@@ -14,8 +14,8 @@ var le = (r, e, t) => new Promise((n, i) => {
|
|
|
14
14
|
}, c = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(o, a);
|
|
15
15
|
c((t = t.apply(r, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { S as Ze, b as Qe, f as _, c as Ye, a as $e, d as et,
|
|
18
|
-
import { $ as ae, c as ft, a as ct, g as Ee, b as mt } from "./CasinoTournamentsPageController-
|
|
17
|
+
import { S as Ze, b as Qe, f as _, c as Ye, a as $e, d as et, g as y, e as S, k as l, j as h, l as p, m as k, n as Y, q as w, u as tt, v as nt, w as rt, x as it, y as ot, z as st, B as ue, E as lt, i as at, t as E, p as C, o as I, r as ut, h as D } from "./CasinoTournamentsDetails-BsekkKcF.js";
|
|
18
|
+
import { $ as ae, c as ft, a as ct, g as Ee, b as mt } from "./CasinoTournamentsPageController-B7tGUhTu.js";
|
|
19
19
|
function dt({ withLocale: r, translations: e }) {
|
|
20
20
|
ae.subscribe((t) => {
|
|
21
21
|
t == null && (ft.set(e), ae.set(r));
|
|
@@ -129,7 +129,7 @@ if (typeof window != "undefined") {
|
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
132
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-lUyJI2DJ.js").then(({ default: e }) => {
|
|
133
133
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", e.element);
|
|
134
134
|
});
|
|
135
135
|
}
|
|
@@ -145,7 +145,7 @@ if (typeof window != "undefined") {
|
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
148
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-DWL7fNmG.js").then(({ default: e }) => {
|
|
149
149
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
150
150
|
"casino-tournaments-thumbnail-duration",
|
|
151
151
|
e.element
|
|
@@ -164,7 +164,7 @@ if (typeof window != "undefined") {
|
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
167
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-C8iysP1o.js").then(({ default: e }) => {
|
|
168
168
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", e.element);
|
|
169
169
|
});
|
|
170
170
|
}
|
|
@@ -180,7 +180,7 @@ if (typeof window != "undefined") {
|
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
};
|
|
183
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
183
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-CAYRXnXx.js").then(
|
|
184
184
|
({ default: e }) => {
|
|
185
185
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
186
186
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Xe, b as Ve, f as k, c as Ze, a as Qe, d as Ye,
|
|
2
|
-
import { $ as le, c as at, a as ut, g as Se, b as ft } from "./CasinoTournamentsPageController-
|
|
1
|
+
import { S as Xe, b as Ve, f as k, c as Ze, a as Qe, d as Ye, g as y, e as S, k as l, j as d, l as p, m as _, n as Y, q as w, u as $e, v as et, w as tt, x as nt, y as rt, z as it, B as ae, E as ot, i as st, t as E, p as C, o as I, r as lt, h as D } from "./CasinoTournamentsDetails-DPKqCPr7.js";
|
|
2
|
+
import { $ as le, c as at, a as ut, g as Se, b as ft } from "./CasinoTournamentsPageController-DqhbL_lu.js";
|
|
3
3
|
function ct({ withLocale: r, translations: e }) {
|
|
4
4
|
le.subscribe((t) => {
|
|
5
5
|
t == null && (at.set(e), le.set(r));
|
|
@@ -113,7 +113,7 @@ if (typeof window < "u") {
|
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
116
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-DH2Orb8Y.js").then(({ default: e }) => {
|
|
117
117
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", e.element);
|
|
118
118
|
});
|
|
119
119
|
}
|
|
@@ -129,7 +129,7 @@ if (typeof window < "u") {
|
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
};
|
|
132
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
132
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-u8JSr0q-.js").then(({ default: e }) => {
|
|
133
133
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
134
134
|
"casino-tournaments-thumbnail-duration",
|
|
135
135
|
e.element
|
|
@@ -148,7 +148,7 @@ if (typeof window < "u") {
|
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
151
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-BL1HtN3p.js").then(({ default: e }) => {
|
|
152
152
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", e.element);
|
|
153
153
|
});
|
|
154
154
|
}
|
|
@@ -164,7 +164,7 @@ if (typeof window < "u") {
|
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
167
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-Fi5QDmul.js").then(
|
|
168
168
|
({ default: e }) => {
|
|
169
169
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
170
170
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),E=require("./CasinoTournamentsPageController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),E=require("./CasinoTournamentsPageController-AaQpF8iW.cjs");function C(r,e){E.addMessages(r,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}};function O(r){t.append_styles(r,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function z(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,k,y,m,w,p,b;function S(s,f){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?L:q}let T=S(r),_=T(r);function P(s,f){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return W;if(s[5]>0)return A;if(s[4]>0)return U}let v=P(r),c=v&&v(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),k=t.space(),y=t.element("div"),m=t.element("div"),_.c(),w=t.space(),c&&c.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(m,"class","ProgressBar"),t.attr(m,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,f){t.insert(s,e,f),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,k,f),t.insert(s,y,f),t.append(y,m),_.m(m,null),t.append(m,w),c&&c.m(m,null),p||(b=t.action_destroyer(r[9].call(null,y)),p=!0)},p(s,f){f&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),f&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),T===(T=S(s))&&_?_.p(s,f):(_.d(1),_=T(s),_&&(_.c(),_.m(m,w))),v===(v=P(s))&&c?c.p(s,f):(c&&c.d(1),c=v&&v(s),c&&(c.c(),c.m(m,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),_.d(),c&&c.d(),p=!1,b()}}}function q(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function L(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function N(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function U(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,g){t.insert(d,e,g),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,g){g&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),g&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function W(r){let e,n=r[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function G(r){let e,n=r[0]&&r[1]&&z(r);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),r[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=z(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),r[17](null)}}}function H(r,e,n){let a,l;t.component_subscribe(r,E.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:m=""}=e,{mbsource:w}=e,p,b="",S="",T="";const _=()=>{fetch(m).then(h=>h.json()).then(h=>{Object.keys(h).forEach(F=>{C(F,h[F])})}).catch(h=>{console.log(h)})};Object.keys(M).forEach(i=>{C(i,M[i])});const P=i=>new Date(i).getTime(),v=(i,h)=>(P(h)-P(i))/(1e3*60),c=()=>{const i=new Date;n(4,b=v(i,o)),n(5,S=v(i,u)),n(6,T=f(b))},s=i=>{const h={month:"long"};let F=new Date(i),B=new Intl.DateTimeFormat(g,h).format(F);return`${F.getDate()} ${B}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},f=i=>{const h=(B,D)=>B+" "+l(D),F=B=>{const D=Math.floor(B);return D<10?`0${D}`:`${D}`};if(i<1440){const B=i/60,D=i%60,x=(D-Math.floor(D))*60;return[B,D,x].map(I=>F(I)).join(":")}return h(Math.ceil(i/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&c()},1e3);return()=>{clearInterval(i)}});function R(i){t.binding_callbacks[i?"unshift":"push"](()=>{p=i,n(3,p)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,k=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,m=i.translationurl),"mbsource"in i&&n(16,w=i.mbsource)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const i=v(u,o),h=100/i;return Math.floor((i-b)*h)}),r.$$.dirty&19&&u&&o&&c()&&f(b),r.$$.dirty&4096&&g&&c(),r.$$.dirty&4112&&g&&f(b),r.$$.dirty&32768&&m&&_(),r.$$.dirty&8200&&k&&p&&t.setClientStyling(p,k),r.$$.dirty&16392&&y&&p&&t.setClientStylingURL(p,y),r.$$.dirty&65544&&w&&p&&t.setStreamStyling(p,`${w}.Style`)},[u,o,d,p,b,S,T,a,l,c,s,f,g,k,y,m,w,R]}class j extends t.SvelteComponent{constructor(e){super(),t.init(this,e,H,G,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:16},O)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(j,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=j;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as H, b as K, f as
|
|
2
|
-
import { a as it, b as st } from "./CasinoTournamentsPageController-
|
|
1
|
+
import { S as H, b as K, f as z, c as Y, a as Z, d as J, g as v, j as l, l as w, n as N, q as B, u as Q, v as V, w as X, x as $, t as M, e as L, m as y, E as tt, p as j, y as et, z as nt, F as O } from "./CasinoTournamentsDetails-BsekkKcF.js";
|
|
2
|
+
import { a as it, b as st } from "./CasinoTournamentsPageController-B7tGUhTu.js";
|
|
3
3
|
function U(n, t) {
|
|
4
4
|
it(n, t);
|
|
5
5
|
}
|
|
@@ -96,7 +96,7 @@ const q = {
|
|
|
96
96
|
function rt(n) {
|
|
97
97
|
J(n, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function x(n) {
|
|
100
100
|
let t, e, s = (
|
|
101
101
|
/*formatDate*/
|
|
102
102
|
n[10](
|
|
@@ -121,7 +121,7 @@ function A(n) {
|
|
|
121
121
|
)
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
|
-
let
|
|
124
|
+
let C = R(n), p = C(n);
|
|
125
125
|
function I(r, f) {
|
|
126
126
|
if (
|
|
127
127
|
/*status*/
|
|
@@ -163,7 +163,7 @@ function A(n) {
|
|
|
163
163
|
r[10](
|
|
164
164
|
/*enddate*/
|
|
165
165
|
r[1]
|
|
166
|
-
) + "") && j(g, d),
|
|
166
|
+
) + "") && j(g, d), C === (C = R(r)) && p ? p.p(r, f) : (p.d(1), p = C(r), p && (p.c(), p.m(m, P))), F === (F = I(r)) && c ? c.p(r, f) : (c && c.d(1), c = F && F(r), c && (c.c(), c.m(m, null)));
|
|
167
167
|
},
|
|
168
168
|
d(r) {
|
|
169
169
|
r && (B(t), B(T), B(b)), p.d(), c && c.d(), _ = !1, D();
|
|
@@ -317,7 +317,7 @@ function ft(n) {
|
|
|
317
317
|
let t, e = (
|
|
318
318
|
/*startdate*/
|
|
319
319
|
n[0] && /*enddate*/
|
|
320
|
-
n[1] &&
|
|
320
|
+
n[1] && x(n)
|
|
321
321
|
);
|
|
322
322
|
return {
|
|
323
323
|
c() {
|
|
@@ -329,7 +329,7 @@ function ft(n) {
|
|
|
329
329
|
p(s, [a]) {
|
|
330
330
|
/*startdate*/
|
|
331
331
|
s[0] && /*enddate*/
|
|
332
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
332
|
+
s[1] ? e ? e.p(s, a) : (e = x(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
333
333
|
},
|
|
334
334
|
i: N,
|
|
335
335
|
o: N,
|
|
@@ -341,7 +341,7 @@ function ft(n) {
|
|
|
341
341
|
function gt(n, t, e) {
|
|
342
342
|
let s, a;
|
|
343
343
|
Q(n, st, (i) => e(8, a = i));
|
|
344
|
-
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: m = "" } = t, { mbsource: P } = t, _, D = "", R = "",
|
|
344
|
+
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: m = "" } = t, { mbsource: P } = t, _, D = "", R = "", C = "";
|
|
345
345
|
const p = () => {
|
|
346
346
|
fetch(m).then((h) => h.json()).then((h) => {
|
|
347
347
|
Object.keys(h).forEach((S) => {
|
|
@@ -356,19 +356,19 @@ function gt(n, t, e) {
|
|
|
356
356
|
});
|
|
357
357
|
const I = (i) => new Date(i).getTime(), F = (i, h) => (I(h) - I(i)) / (1e3 * 60), c = () => {
|
|
358
358
|
const i = /* @__PURE__ */ new Date();
|
|
359
|
-
e(4, D = F(i, o)), e(5, R = F(i, u)), e(6,
|
|
359
|
+
e(4, D = F(i, o)), e(5, R = F(i, u)), e(6, C = f(D));
|
|
360
360
|
}, r = (i) => {
|
|
361
361
|
const h = { month: "long" };
|
|
362
|
-
let S = new Date(i),
|
|
363
|
-
return `${S.getDate()} ${
|
|
362
|
+
let S = new Date(i), E = new Intl.DateTimeFormat(g, h).format(S);
|
|
363
|
+
return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
364
364
|
}, f = (i) => {
|
|
365
|
-
const h = (
|
|
366
|
-
const k = Math.floor(
|
|
365
|
+
const h = (E, k) => E + " " + a(k), S = (E) => {
|
|
366
|
+
const k = Math.floor(E);
|
|
367
367
|
return k < 10 ? `0${k}` : `${k}`;
|
|
368
368
|
};
|
|
369
369
|
if (i < 1440) {
|
|
370
|
-
const
|
|
371
|
-
return [
|
|
370
|
+
const E = i / 60, k = i % 60, W = (k - Math.floor(k)) * 60;
|
|
371
|
+
return [E, k, W].map((G) => S(G)).join(":");
|
|
372
372
|
}
|
|
373
373
|
return h(Math.ceil(i / (60 * 24)), "days");
|
|
374
374
|
};
|
|
@@ -384,7 +384,7 @@ function gt(n, t, e) {
|
|
|
384
384
|
clearInterval(i);
|
|
385
385
|
};
|
|
386
386
|
});
|
|
387
|
-
function
|
|
387
|
+
function A(i) {
|
|
388
388
|
et[i ? "unshift" : "push"](() => {
|
|
389
389
|
_ = i, e(3, _);
|
|
390
390
|
});
|
|
@@ -413,7 +413,7 @@ function gt(n, t, e) {
|
|
|
413
413
|
_,
|
|
414
414
|
D,
|
|
415
415
|
R,
|
|
416
|
-
|
|
416
|
+
C,
|
|
417
417
|
s,
|
|
418
418
|
a,
|
|
419
419
|
c,
|
|
@@ -424,7 +424,7 @@ function gt(n, t, e) {
|
|
|
424
424
|
b,
|
|
425
425
|
m,
|
|
426
426
|
P,
|
|
427
|
-
|
|
427
|
+
A
|
|
428
428
|
];
|
|
429
429
|
}
|
|
430
430
|
class mt extends H {
|
|
@@ -452,49 +452,49 @@ class mt extends H {
|
|
|
452
452
|
return this.$$.ctx[0];
|
|
453
453
|
}
|
|
454
454
|
set startdate(t) {
|
|
455
|
-
this.$$set({ startdate: t }),
|
|
455
|
+
this.$$set({ startdate: t }), z();
|
|
456
456
|
}
|
|
457
457
|
get enddate() {
|
|
458
458
|
return this.$$.ctx[1];
|
|
459
459
|
}
|
|
460
460
|
set enddate(t) {
|
|
461
|
-
this.$$set({ enddate: t }),
|
|
461
|
+
this.$$set({ enddate: t }), z();
|
|
462
462
|
}
|
|
463
463
|
get status() {
|
|
464
464
|
return this.$$.ctx[2];
|
|
465
465
|
}
|
|
466
466
|
set status(t) {
|
|
467
|
-
this.$$set({ status: t }),
|
|
467
|
+
this.$$set({ status: t }), z();
|
|
468
468
|
}
|
|
469
469
|
get lang() {
|
|
470
470
|
return this.$$.ctx[12];
|
|
471
471
|
}
|
|
472
472
|
set lang(t) {
|
|
473
|
-
this.$$set({ lang: t }),
|
|
473
|
+
this.$$set({ lang: t }), z();
|
|
474
474
|
}
|
|
475
475
|
get clientstyling() {
|
|
476
476
|
return this.$$.ctx[13];
|
|
477
477
|
}
|
|
478
478
|
set clientstyling(t) {
|
|
479
|
-
this.$$set({ clientstyling: t }),
|
|
479
|
+
this.$$set({ clientstyling: t }), z();
|
|
480
480
|
}
|
|
481
481
|
get clientstylingurl() {
|
|
482
482
|
return this.$$.ctx[14];
|
|
483
483
|
}
|
|
484
484
|
set clientstylingurl(t) {
|
|
485
|
-
this.$$set({ clientstylingurl: t }),
|
|
485
|
+
this.$$set({ clientstylingurl: t }), z();
|
|
486
486
|
}
|
|
487
487
|
get translationurl() {
|
|
488
488
|
return this.$$.ctx[15];
|
|
489
489
|
}
|
|
490
490
|
set translationurl(t) {
|
|
491
|
-
this.$$set({ translationurl: t }),
|
|
491
|
+
this.$$set({ translationurl: t }), z();
|
|
492
492
|
}
|
|
493
493
|
get mbsource() {
|
|
494
494
|
return this.$$.ctx[16];
|
|
495
495
|
}
|
|
496
496
|
set mbsource(t) {
|
|
497
|
-
this.$$set({ mbsource: t }),
|
|
497
|
+
this.$$set({ mbsource: t }), z();
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
Y(mt, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as H, b as K, f as
|
|
2
|
-
import { a as it, b as st } from "./CasinoTournamentsPageController-
|
|
1
|
+
import { S as H, b as K, f as z, c as Y, a as Z, d as J, g as v, j as l, l as w, n as N, q as B, u as Q, v as V, w as X, x as $, t as M, e as L, m as y, E as tt, p as j, y as et, z as nt, F as O } from "./CasinoTournamentsDetails-DPKqCPr7.js";
|
|
2
|
+
import { a as it, b as st } from "./CasinoTournamentsPageController-DqhbL_lu.js";
|
|
3
3
|
function U(n, t) {
|
|
4
4
|
it(n, t);
|
|
5
5
|
}
|
|
@@ -96,7 +96,7 @@ const q = {
|
|
|
96
96
|
function rt(n) {
|
|
97
97
|
J(n, "svelte-6h4bfy", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}");
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function x(n) {
|
|
100
100
|
let t, e, s = (
|
|
101
101
|
/*formatDate*/
|
|
102
102
|
n[10](
|
|
@@ -121,7 +121,7 @@ function A(n) {
|
|
|
121
121
|
)
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
|
-
let
|
|
124
|
+
let C = R(n), p = C(n);
|
|
125
125
|
function I(r, f) {
|
|
126
126
|
if (
|
|
127
127
|
/*status*/
|
|
@@ -163,7 +163,7 @@ function A(n) {
|
|
|
163
163
|
r[10](
|
|
164
164
|
/*enddate*/
|
|
165
165
|
r[1]
|
|
166
|
-
) + "") && j(g, d),
|
|
166
|
+
) + "") && j(g, d), C === (C = R(r)) && p ? p.p(r, f) : (p.d(1), p = C(r), p && (p.c(), p.m(m, P))), F === (F = I(r)) && c ? c.p(r, f) : (c && c.d(1), c = F && F(r), c && (c.c(), c.m(m, null)));
|
|
167
167
|
},
|
|
168
168
|
d(r) {
|
|
169
169
|
r && (B(t), B(T), B(b)), p.d(), c && c.d(), _ = !1, D();
|
|
@@ -317,7 +317,7 @@ function ft(n) {
|
|
|
317
317
|
let t, e = (
|
|
318
318
|
/*startdate*/
|
|
319
319
|
n[0] && /*enddate*/
|
|
320
|
-
n[1] &&
|
|
320
|
+
n[1] && x(n)
|
|
321
321
|
);
|
|
322
322
|
return {
|
|
323
323
|
c() {
|
|
@@ -329,7 +329,7 @@ function ft(n) {
|
|
|
329
329
|
p(s, [a]) {
|
|
330
330
|
/*startdate*/
|
|
331
331
|
s[0] && /*enddate*/
|
|
332
|
-
s[1] ? e ? e.p(s, a) : (e =
|
|
332
|
+
s[1] ? e ? e.p(s, a) : (e = x(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
333
333
|
},
|
|
334
334
|
i: N,
|
|
335
335
|
o: N,
|
|
@@ -341,7 +341,7 @@ function ft(n) {
|
|
|
341
341
|
function gt(n, t, e) {
|
|
342
342
|
let s, a;
|
|
343
343
|
Q(n, st, (i) => e(8, a = i));
|
|
344
|
-
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: m = "" } = t, { mbsource: P } = t, _, D = "", R = "",
|
|
344
|
+
let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: T = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: m = "" } = t, { mbsource: P } = t, _, D = "", R = "", C = "";
|
|
345
345
|
const p = () => {
|
|
346
346
|
fetch(m).then((h) => h.json()).then((h) => {
|
|
347
347
|
Object.keys(h).forEach((S) => {
|
|
@@ -356,19 +356,19 @@ function gt(n, t, e) {
|
|
|
356
356
|
});
|
|
357
357
|
const I = (i) => new Date(i).getTime(), F = (i, h) => (I(h) - I(i)) / (1e3 * 60), c = () => {
|
|
358
358
|
const i = /* @__PURE__ */ new Date();
|
|
359
|
-
e(4, D = F(i, o)), e(5, R = F(i, u)), e(6,
|
|
359
|
+
e(4, D = F(i, o)), e(5, R = F(i, u)), e(6, C = f(D));
|
|
360
360
|
}, r = (i) => {
|
|
361
361
|
const h = { month: "long" };
|
|
362
|
-
let S = new Date(i),
|
|
363
|
-
return `${S.getDate()} ${
|
|
362
|
+
let S = new Date(i), E = new Intl.DateTimeFormat(g, h).format(S);
|
|
363
|
+
return `${S.getDate()} ${E}, ${S.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${S.getUTCFullYear()}`;
|
|
364
364
|
}, f = (i) => {
|
|
365
|
-
const h = (
|
|
366
|
-
const k = Math.floor(
|
|
365
|
+
const h = (E, k) => E + " " + a(k), S = (E) => {
|
|
366
|
+
const k = Math.floor(E);
|
|
367
367
|
return k < 10 ? `0${k}` : `${k}`;
|
|
368
368
|
};
|
|
369
369
|
if (i < 1440) {
|
|
370
|
-
const
|
|
371
|
-
return [
|
|
370
|
+
const E = i / 60, k = i % 60, W = (k - Math.floor(k)) * 60;
|
|
371
|
+
return [E, k, W].map((G) => S(G)).join(":");
|
|
372
372
|
}
|
|
373
373
|
return h(Math.ceil(i / (60 * 24)), "days");
|
|
374
374
|
};
|
|
@@ -384,7 +384,7 @@ function gt(n, t, e) {
|
|
|
384
384
|
clearInterval(i);
|
|
385
385
|
};
|
|
386
386
|
});
|
|
387
|
-
function
|
|
387
|
+
function A(i) {
|
|
388
388
|
et[i ? "unshift" : "push"](() => {
|
|
389
389
|
_ = i, e(3, _);
|
|
390
390
|
});
|
|
@@ -413,7 +413,7 @@ function gt(n, t, e) {
|
|
|
413
413
|
_,
|
|
414
414
|
D,
|
|
415
415
|
R,
|
|
416
|
-
|
|
416
|
+
C,
|
|
417
417
|
s,
|
|
418
418
|
a,
|
|
419
419
|
c,
|
|
@@ -424,7 +424,7 @@ function gt(n, t, e) {
|
|
|
424
424
|
b,
|
|
425
425
|
m,
|
|
426
426
|
P,
|
|
427
|
-
|
|
427
|
+
A
|
|
428
428
|
];
|
|
429
429
|
}
|
|
430
430
|
class mt extends H {
|
|
@@ -452,49 +452,49 @@ class mt extends H {
|
|
|
452
452
|
return this.$$.ctx[0];
|
|
453
453
|
}
|
|
454
454
|
set startdate(t) {
|
|
455
|
-
this.$$set({ startdate: t }),
|
|
455
|
+
this.$$set({ startdate: t }), z();
|
|
456
456
|
}
|
|
457
457
|
get enddate() {
|
|
458
458
|
return this.$$.ctx[1];
|
|
459
459
|
}
|
|
460
460
|
set enddate(t) {
|
|
461
|
-
this.$$set({ enddate: t }),
|
|
461
|
+
this.$$set({ enddate: t }), z();
|
|
462
462
|
}
|
|
463
463
|
get status() {
|
|
464
464
|
return this.$$.ctx[2];
|
|
465
465
|
}
|
|
466
466
|
set status(t) {
|
|
467
|
-
this.$$set({ status: t }),
|
|
467
|
+
this.$$set({ status: t }), z();
|
|
468
468
|
}
|
|
469
469
|
get lang() {
|
|
470
470
|
return this.$$.ctx[12];
|
|
471
471
|
}
|
|
472
472
|
set lang(t) {
|
|
473
|
-
this.$$set({ lang: t }),
|
|
473
|
+
this.$$set({ lang: t }), z();
|
|
474
474
|
}
|
|
475
475
|
get clientstyling() {
|
|
476
476
|
return this.$$.ctx[13];
|
|
477
477
|
}
|
|
478
478
|
set clientstyling(t) {
|
|
479
|
-
this.$$set({ clientstyling: t }),
|
|
479
|
+
this.$$set({ clientstyling: t }), z();
|
|
480
480
|
}
|
|
481
481
|
get clientstylingurl() {
|
|
482
482
|
return this.$$.ctx[14];
|
|
483
483
|
}
|
|
484
484
|
set clientstylingurl(t) {
|
|
485
|
-
this.$$set({ clientstylingurl: t }),
|
|
485
|
+
this.$$set({ clientstylingurl: t }), z();
|
|
486
486
|
}
|
|
487
487
|
get translationurl() {
|
|
488
488
|
return this.$$.ctx[15];
|
|
489
489
|
}
|
|
490
490
|
set translationurl(t) {
|
|
491
|
-
this.$$set({ translationurl: t }),
|
|
491
|
+
this.$$set({ translationurl: t }), z();
|
|
492
492
|
}
|
|
493
493
|
get mbsource() {
|
|
494
494
|
return this.$$.ctx[16];
|
|
495
495
|
}
|
|
496
496
|
set mbsource(t) {
|
|
497
|
-
this.$$set({ mbsource: t }),
|
|
497
|
+
this.$$set({ mbsource: t }), z();
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
Y(mt, { startdate: {}, enddate: {}, status: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsDetails-DVRJk4kX.cjs"),T=require("./CasinoTournamentsPageController-AaQpF8iW.cjs");require("../stencil/ui-image-CDCn_LHy.cjs");function I({withLocale:n,translations:t}){T.$locale.subscribe(a=>{a==null&&(T.$dictionary.set(t),T.$locale.set(n))})}function z(n,t){T.addMessages(n,t)}function D(n){T.$locale.set(n)}const B={en:{loading:"Loading, please wait ...",playNow:"Play Now",casino:"CASINO",sports:"SPORTSBOOK",contribution:"Contribution"}};function H(n){e.append_styles(n,"svelte-1jxmngn","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.hidden{display:none}.GamesWrapper .items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px);flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.GamesWrapper .item{height:100px;margin:0 4px;display:flex;justify-content:center;align-items:center}.GamesWrapper .item ui-image img{width:135px}.GamesWrapper .PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:var(--emw--font-size-medium, 0.7rem);cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.GamesWrapper .PlayNowButton:hover{opacity:0.8}.GamesWrapper .SportsPage{padding:30px 30px;color:var(--emw--color-gray-100, #B5B5B5)}.GamesWrapper .SportsPage li{text-decoration:underline}.GamesWrapper .SportsPage .Market{margin-top:var(--emw--spacing-medium, 20px);font-size:var(--emw--font-size-small, 12px)}.GamesTabNav{max-width:500px;min-width:300px;width:30%}.MobileClass .GamesTabNav{width:100%}")}function R(n,t,a){const i=n.slice();return i[19]=t[a],i}function q(n,t,a){const i=n.slice();return i[22]=t[a],i[24]=a,i}function F(n){let t,a;return{c(){t=e.element("div"),a=e.element("casino-tournaments-tab"),e.set_custom_element_data(a,"part","TournamentGames"),e.set_custom_element_data(a,"tabs","casino,sports"),e.set_custom_element_data(a,"tab","casino"),e.set_custom_element_data(a,"tid",M),e.set_custom_element_data(a,"clientstyling",n[0]),e.set_custom_element_data(a,"clientstylingurl",n[1]),e.set_custom_element_data(a,"mbsource",n[2]),e.attr(t,"class","GamesTabNav")},m(i,u){e.insert(i,t,u),e.append(t,a)},p(i,u){u&1&&e.set_custom_element_data(a,"clientstyling",i[0]),u&2&&e.set_custom_element_data(a,"clientstylingurl",i[1]),u&4&&e.set_custom_element_data(a,"mbsource",i[2])},d(i){i&&e.detach(t)}}}function E(n){let t,a,i=n[7]("playNow")+"",u,p,r,m,_,h,y,d,v;return{c(){t=e.element("div"),a=e.element("span"),u=e.text(i),p=e.space(),r=e.element("ui-image"),y=e.space(),e.attr(a,"class","PlayNowButton"),e.src_url_equal(r.src,m=n[22].thumbnail)||e.set_custom_element_data(r,"src",m),e.set_custom_element_data(r,"width","132px"),e.set_custom_element_data(r,"height","100px"),e.set_custom_element_data(r,"alt",_=n[22].name),e.set_custom_element_data(r,"title",h=n[22].name),e.attr(t,"class","item"),e.attr(t,"role","button"),e.attr(t,"tabindex","0")},m(o,b){e.insert(o,t,b),e.append(t,a),e.append(a,u),e.append(t,p),e.append(t,r),e.append(t,y),d||(v=e.listen(t,"click",function(){e.is_function(n[9](n[22]))&&n[9](n[22]).apply(this,arguments)}),d=!0)},p(o,b){n=o,b&128&&i!==(i=n[7]("playNow")+"")&&e.set_data(u,i),b&8&&!e.src_url_equal(r.src,m=n[22].thumbnail)&&e.set_custom_element_data(r,"src",m),b&8&&_!==(_=n[22].name)&&e.set_custom_element_data(r,"alt",_),b&8&&h!==(h=n[22].name)&&e.set_custom_element_data(r,"title",h)},d(o){o&&e.detach(t),d=!1,v()}}}function U(n){let t,a=n[19].rule+"",i,u,p=(n[19].excluded?"":n[7]("contribution"))+"",r;return{c(){t=e.element("li"),i=e.text(a),u=e.space(),r=e.text(p),e.attr(t,"part","li"),e.attr(t,"class","Market")},m(m,_){e.insert(m,t,_),e.append(t,i),e.append(t,u),e.append(t,r)},p(m,_){_&64&&a!==(a=m[19].rule+"")&&e.set_data(i,a),_&192&&p!==(p=(m[19].excluded?"":m[7]("contribution"))+"")&&e.set_data(r,p)},d(m){m&&e.detach(t)}}}function J(n){var k,S,L,C,N,s;let t,a,i,u,p,r,m,_,h,y,d=n[3]&&((S=(k=n[3])==null?void 0:k.wallet)==null?void 0:S.sports)&&((C=(L=n[3])==null?void 0:L.wallet)==null?void 0:C.casino)&&F(n),v=e.ensure_array_like(((s=(N=n[3])==null?void 0:N.games)==null?void 0:s.items)||[]),o=[];for(let l=0;l<v.length;l+=1)o[l]=E(q(n,v,l));let b=e.ensure_array_like(n[6]),g=[];for(let l=0;l<b.length;l+=1)g[l]=U(R(n,b,l));return{c(){t=e.element("div"),d&&d.c(),a=e.space(),i=e.element("div"),u=e.element("div"),p=e.element("div");for(let l=0;l<o.length;l+=1)o[l].c();m=e.space(),_=e.element("div"),h=e.element("ul");for(let l=0;l<g.length;l+=1)g[l].c();e.attr(p,"class","GameList items"),e.attr(u,"class",r="TabContent GamesContent "+(n[5]!="casino"?"hidden":"")),e.attr(h,"class","SportsPage"),e.attr(_,"class",y="TabContent GamesContent "+(n[5]!="sports"?"hidden":"")),e.attr(i,"class","GamesWrapper"),e.attr(t,"class",T.isMobile(n[8])?"MobileClass":"")},m(l,w){e.insert(l,t,w),d&&d.m(t,null),e.append(t,a),e.append(t,i),e.append(i,u),e.append(u,p);for(let f=0;f<o.length;f+=1)o[f]&&o[f].m(p,null);e.append(i,m),e.append(i,_),e.append(_,h);for(let f=0;f<g.length;f+=1)g[f]&&g[f].m(h,null);n[12](t)},p(l,[w]){var f,P,O,A,W,j;if(l[3]&&((P=(f=l[3])==null?void 0:f.wallet)!=null&&P.sports)&&((A=(O=l[3])==null?void 0:O.wallet)!=null&&A.casino)?d?d.p(l,w):(d=F(l),d.c(),d.m(t,a)):d&&(d.d(1),d=null),w&648){v=e.ensure_array_like(((j=(W=l[3])==null?void 0:W.games)==null?void 0:j.items)||[]);let c;for(c=0;c<v.length;c+=1){const G=q(l,v,c);o[c]?o[c].p(G,w):(o[c]=E(G),o[c].c(),o[c].m(p,null))}for(;c<o.length;c+=1)o[c].d(1);o.length=v.length}if(w&32&&r!==(r="TabContent GamesContent "+(l[5]!="casino"?"hidden":""))&&e.attr(u,"class",r),w&192){b=e.ensure_array_like(l[6]);let c;for(c=0;c<b.length;c+=1){const G=R(l,b,c);g[c]?g[c].p(G,w):(g[c]=U(G),g[c].c(),g[c].m(h,null))}for(;c<g.length;c+=1)g[c].d(1);g.length=b.length}w&32&&y!==(y="TabContent GamesContent "+(l[5]!="sports"?"hidden":""))&&e.attr(_,"class",y)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),d&&d.d(),e.destroy_each(o,l),e.destroy_each(g,l),n[12](null)}}}let M="gameTab";function K(n,t,a){let i;e.component_subscribe(n,T.$format,s=>a(7,i=s));let{clientstyling:u=""}=t,{clientstylingurl:p=""}=t,{mbsource:r}=t,{tournamentdetails:m}=t,{translationurl:_}=t,{lang:h="en"}=t,y="casino",d,v=window.navigator.userAgent,o;I({withLocale:"en",translations:{}});const b=()=>{fetch(_).then(s=>s.json()).then(s=>{Object.keys(s).forEach(l=>{z(l,s[l])})}).catch(s=>{console.log(s)})};Object.keys(B).forEach(s=>{z(s,B[s])});const g=()=>{D(h),setTimeout(()=>{k()},10)},k=()=>{window.postMessage({type:"TournamentsTabsLocalize",tabTitleTranslations:{casino:i("casino"),sports:i("sports")}},window.location.href)},S=s=>{window.postMessage({type:"TournamentGameAction",gameId:s.id,name:s.name,launchUrl:s.launchUrl},window.location.href)},L=()=>{var l,w;const s=(w=(l=m.metadata)==null?void 0:l.sports)==null?void 0:w.rules;if(s){a(5,y=m.wallet.casino?"casino":"sports");try{const f=JSON.parse(s);a(6,d=f[h]||f["*"])}catch(f){console.error("Error parsing tournament rules",f)}}},C=s=>{if(!s.data||!s.data.type)return;const l=s.data.tid||"";switch(s.data.type){case"TournamentsTabSwitch":l===M&&a(5,y=s.data.tab);break;case"TournamentsTabListenerLoaded":k();break;default:console.warn(`Unhandled message type: ${s.data.type}`);break}};e.onMount(()=>(window.postMessage({type:"TournamentsGamesListenerLoaded",gamesTabTid:M},window.location.href),window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}));function N(s){e.binding_callbacks[s?"unshift":"push"](()=>{o=s,a(4,o)})}return n.$$set=s=>{"clientstyling"in s&&a(0,u=s.clientstyling),"clientstylingurl"in s&&a(1,p=s.clientstylingurl),"mbsource"in s&&a(2,r=s.mbsource),"tournamentdetails"in s&&a(3,m=s.tournamentdetails),"translationurl"in s&&a(10,_=s.translationurl),"lang"in s&&a(11,h=s.lang)},n.$$.update=()=>{n.$$.dirty&8&&m&&L(),n.$$.dirty&2048&&h&&g(),n.$$.dirty&1024&&_&&b(),n.$$.dirty&17&&u&&o&&e.setClientStyling(o,u),n.$$.dirty&18&&p&&o&&e.setClientStylingURL(o,p),n.$$.dirty&20&&r&&o&&e.setStreamStyling(o,`${r}.Style`)},[u,p,r,m,o,y,d,i,v,S,_,h,N]}class x extends e.SvelteComponent{constructor(t){super(),e.init(this,t,K,J,e.safe_not_equal,{clientstyling:0,clientstylingurl:1,mbsource:2,tournamentdetails:3,translationurl:10,lang:11},H)}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get tournamentdetails(){return this.$$.ctx[3]}set tournamentdetails(t){this.$$set({tournamentdetails:t}),e.flush()}get translationurl(){return this.$$.ctx[10]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}}e.create_custom_element(x,{clientstyling:{},clientstylingurl:{},mbsource:{},tournamentdetails:{},translationurl:{},lang:{}},[],[],!0);exports.default=x;
|