@everymatrix/casino-tournaments-page-controller 0.0.112 → 0.0.116
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.
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
function is_empty(obj) {
|
|
29
29
|
return Object.keys(obj).length === 0;
|
|
30
30
|
}
|
|
31
|
+
function validate_store(store, name) {
|
|
32
|
+
if (store != null && typeof store.subscribe !== 'function') {
|
|
33
|
+
throw new Error(`'${name}' is not a store with a 'subscribe' method`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
31
36
|
function subscribe(store, ...callbacks) {
|
|
32
37
|
if (store == null) {
|
|
33
38
|
return noop$1;
|
|
@@ -35,6 +40,9 @@
|
|
|
35
40
|
const unsub = store.subscribe(...callbacks);
|
|
36
41
|
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
|
|
37
42
|
}
|
|
43
|
+
function component_subscribe(component, store, callback) {
|
|
44
|
+
component.$$.on_destroy.push(subscribe(store, callback));
|
|
45
|
+
}
|
|
38
46
|
function action_destroyer(action_result) {
|
|
39
47
|
return action_result && is_function(action_result.destroy) ? action_result.destroy : noop$1;
|
|
40
48
|
}
|
|
@@ -192,6 +200,12 @@
|
|
|
192
200
|
block.i(local);
|
|
193
201
|
}
|
|
194
202
|
}
|
|
203
|
+
|
|
204
|
+
const globals = (typeof window !== 'undefined'
|
|
205
|
+
? window
|
|
206
|
+
: typeof globalThis !== 'undefined'
|
|
207
|
+
? globalThis
|
|
208
|
+
: global);
|
|
195
209
|
function mount_component(component, target, anchor, customElement) {
|
|
196
210
|
const { fragment, on_mount, on_destroy, after_update } = component.$$;
|
|
197
211
|
fragment && fragment.m(target, anchor);
|
|
@@ -399,17 +413,17 @@
|
|
|
399
413
|
}
|
|
400
414
|
}
|
|
401
415
|
|
|
402
|
-
var global =
|
|
416
|
+
var global$1 =
|
|
403
417
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
404
418
|
(typeof self !== 'undefined' && self) ||
|
|
405
|
-
(typeof global !== 'undefined' && global);
|
|
419
|
+
(typeof global$1 !== 'undefined' && global$1);
|
|
406
420
|
|
|
407
421
|
var support = {
|
|
408
|
-
searchParams: 'URLSearchParams' in global,
|
|
409
|
-
iterable: 'Symbol' in global && 'iterator' in Symbol,
|
|
422
|
+
searchParams: 'URLSearchParams' in global$1,
|
|
423
|
+
iterable: 'Symbol' in global$1 && 'iterator' in Symbol,
|
|
410
424
|
blob:
|
|
411
|
-
'FileReader' in global &&
|
|
412
|
-
'Blob' in global &&
|
|
425
|
+
'FileReader' in global$1 &&
|
|
426
|
+
'Blob' in global$1 &&
|
|
413
427
|
(function() {
|
|
414
428
|
try {
|
|
415
429
|
new Blob();
|
|
@@ -418,8 +432,8 @@
|
|
|
418
432
|
return false
|
|
419
433
|
}
|
|
420
434
|
})(),
|
|
421
|
-
formData: 'FormData' in global,
|
|
422
|
-
arrayBuffer: 'ArrayBuffer' in global
|
|
435
|
+
formData: 'FormData' in global$1,
|
|
436
|
+
arrayBuffer: 'ArrayBuffer' in global$1
|
|
423
437
|
};
|
|
424
438
|
|
|
425
439
|
function isDataView(obj) {
|
|
@@ -884,7 +898,7 @@
|
|
|
884
898
|
return new Response(null, {status: status, headers: {location: url}})
|
|
885
899
|
};
|
|
886
900
|
|
|
887
|
-
var DOMException = global.DOMException;
|
|
901
|
+
var DOMException = global$1.DOMException;
|
|
888
902
|
try {
|
|
889
903
|
new DOMException();
|
|
890
904
|
} catch (err) {
|
|
@@ -945,7 +959,7 @@
|
|
|
945
959
|
|
|
946
960
|
function fixUrl(url) {
|
|
947
961
|
try {
|
|
948
|
-
return url === '' && global.location.href ? global.location.href : url
|
|
962
|
+
return url === '' && global$1.location.href ? global$1.location.href : url
|
|
949
963
|
} catch (e) {
|
|
950
964
|
return url
|
|
951
965
|
}
|
|
@@ -998,11 +1012,11 @@
|
|
|
998
1012
|
|
|
999
1013
|
fetch$1.polyfill = true;
|
|
1000
1014
|
|
|
1001
|
-
if (!global.fetch) {
|
|
1002
|
-
global.fetch = fetch$1;
|
|
1003
|
-
global.Headers = Headers$1;
|
|
1004
|
-
global.Request = Request$1;
|
|
1005
|
-
global.Response = Response;
|
|
1015
|
+
if (!global$1.fetch) {
|
|
1016
|
+
global$1.fetch = fetch$1;
|
|
1017
|
+
global$1.Headers = Headers$1;
|
|
1018
|
+
global$1.Request = Request$1;
|
|
1019
|
+
global$1.Response = Response;
|
|
1006
1020
|
}
|
|
1007
1021
|
|
|
1008
1022
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
@@ -4433,7 +4447,7 @@
|
|
|
4433
4447
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4434
4448
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4435
4449
|
PERFORMANCE OF THIS SOFTWARE.
|
|
4436
|
-
***************************************************************************** */function v(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);}return t}const O={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};function j(){return O}const k=writable(!1);let L;const T=writable(null);function x(e){return e.split("-").map(((e,n,t)=>t.slice(0,n+1).join("-"))).reverse()}function E(e,n=j().fallbackLocale){const t=x(e);return n?[...new Set([...t,...x(n)])]:t}function D(){return L}T.subscribe((e=>{L=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e);}));const M=T.set;T.set=e=>{if(function(e){if(null==e)return;const n=E(e);for(let e=0;e<n.length;e++){const t=n[e];if(u(t))return t}}(e)&&w(e)){const{loadingDelay:n}=j();let t;return "undefined"!=typeof window&&null!=D()&&n?t=window.setTimeout((()=>k.set(!0)),n):k.set(!0),b(e).then((()=>{M(e);})).finally((()=>{clearTimeout(t),k.set(!1);}))}return M(e)},T.update=e=>M(e(L));const Z=e=>{const n=Object.create(null);return t=>{const o=JSON.stringify(t);return o in n?n[o]:n[o]=e(t)}},C=(e,n)=>{const{formats:t}=j();if(e in t&&n in t[e])return t[e][n];throw new Error(`[svelte-i18n] Unknown "${n}" ${e} format.`)},G=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(o=C("number",t)),new Intl.NumberFormat(n,o)})),J=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?o=C("date",t):0===Object.keys(o).length&&(o=C("date","short")),new Intl.DateTimeFormat(n,o)})),U=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?o=C("time",t):0===Object.keys(o).length&&(o=C("time","short")),new Intl.DateTimeFormat(n,o)})),_=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return G(Object.assign({locale:n},t))},q=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return J(Object.assign({locale:n},t))},B=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return U(Object.assign({locale:n},t))},H=Z(((e,n=D())=>new IntlMessageFormat(e,n,j().formats,{ignoreTag:j().ignoreTag}))),K=(e,n={})=>{"object"==typeof e&&(e=(n=e).id);const{values:t,locale:o=D(),default:r}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=a(e,o);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else j().warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${E(o).join('", "')}".${w(D())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=r||e;if(!t)return i;let l=i;try{l=H(i,o).format(t);}catch(n){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,n.message);}return l},Q=(e,n)=>B(n).format(e),R=(e,n)=>q(n).format(e),V=(e,n)=>_(n).format(e),W=(e,n=D())=>a(e,n)
|
|
4450
|
+
***************************************************************************** */function v(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);}return t}const O={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};function j(){return O}const k=writable(!1);let L;const T=writable(null);function x(e){return e.split("-").map(((e,n,t)=>t.slice(0,n+1).join("-"))).reverse()}function E(e,n=j().fallbackLocale){const t=x(e);return n?[...new Set([...t,...x(n)])]:t}function D(){return L}T.subscribe((e=>{L=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e);}));const M=T.set;T.set=e=>{if(function(e){if(null==e)return;const n=E(e);for(let e=0;e<n.length;e++){const t=n[e];if(u(t))return t}}(e)&&w(e)){const{loadingDelay:n}=j();let t;return "undefined"!=typeof window&&null!=D()&&n?t=window.setTimeout((()=>k.set(!0)),n):k.set(!0),b(e).then((()=>{M(e);})).finally((()=>{clearTimeout(t),k.set(!1);}))}return M(e)},T.update=e=>M(e(L));const Z=e=>{const n=Object.create(null);return t=>{const o=JSON.stringify(t);return o in n?n[o]:n[o]=e(t)}},C=(e,n)=>{const{formats:t}=j();if(e in t&&n in t[e])return t[e][n];throw new Error(`[svelte-i18n] Unknown "${n}" ${e} format.`)},G=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(o=C("number",t)),new Intl.NumberFormat(n,o)})),J=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?o=C("date",t):0===Object.keys(o).length&&(o=C("date","short")),new Intl.DateTimeFormat(n,o)})),U=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?o=C("time",t):0===Object.keys(o).length&&(o=C("time","short")),new Intl.DateTimeFormat(n,o)})),_=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return G(Object.assign({locale:n},t))},q=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return J(Object.assign({locale:n},t))},B=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return U(Object.assign({locale:n},t))},H=Z(((e,n=D())=>new IntlMessageFormat(e,n,j().formats,{ignoreTag:j().ignoreTag}))),K=(e,n={})=>{"object"==typeof e&&(e=(n=e).id);const{values:t,locale:o=D(),default:r}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=a(e,o);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else j().warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${E(o).join('", "')}".${w(D())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=r||e;if(!t)return i;let l=i;try{l=H(i,o).format(t);}catch(n){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,n.message);}return l},Q=(e,n)=>B(n).format(e),R=(e,n)=>q(n).format(e),V=(e,n)=>_(n).format(e),W=(e,n=D())=>a(e,n),X=derived([T,s],(()=>K));derived([T],(()=>Q));derived([T],(()=>R));derived([T],(()=>V));derived([T,s],(()=>W));
|
|
4437
4451
|
|
|
4438
4452
|
const outgoingRequests = {};
|
|
4439
4453
|
const cacheStore = {};
|
|
@@ -4597,6 +4611,44 @@
|
|
|
4597
4611
|
});
|
|
4598
4612
|
}
|
|
4599
4613
|
|
|
4614
|
+
function setupI18n({ withLocale: _locale, translations }) {
|
|
4615
|
+
T.subscribe((data) => {
|
|
4616
|
+
if (data == null) {
|
|
4617
|
+
s.set(translations);
|
|
4618
|
+
T.set(_locale);
|
|
4619
|
+
}
|
|
4620
|
+
}); // maybe we will need this to make sure that the i18n is set up only once
|
|
4621
|
+
/*dictionary.set(translations);
|
|
4622
|
+
locale.set(_locale);*/
|
|
4623
|
+
}
|
|
4624
|
+
|
|
4625
|
+
function addNewMessages$5(lang, dict) {
|
|
4626
|
+
m(lang, dict);
|
|
4627
|
+
}
|
|
4628
|
+
|
|
4629
|
+
function setLocale$1(_locale) {
|
|
4630
|
+
T.set(_locale);
|
|
4631
|
+
}
|
|
4632
|
+
|
|
4633
|
+
const TournamentsPageTranslations = {
|
|
4634
|
+
en: {
|
|
4635
|
+
tournamentsPage: {
|
|
4636
|
+
loading: 'Loading, please wait ...',
|
|
4637
|
+
back: 'Back',
|
|
4638
|
+
previous: 'Previous',
|
|
4639
|
+
next: 'Next',
|
|
4640
|
+
}
|
|
4641
|
+
},
|
|
4642
|
+
tr: {
|
|
4643
|
+
tournamentsPage: {
|
|
4644
|
+
loading: 'Loading, please wait ...',
|
|
4645
|
+
back: 'Back',
|
|
4646
|
+
previous: 'Previous',
|
|
4647
|
+
next: 'Next',
|
|
4648
|
+
}
|
|
4649
|
+
},
|
|
4650
|
+
};
|
|
4651
|
+
|
|
4600
4652
|
/* ../../node_modules/@everymatrix/casino-tournaments-page/src/CasinoTournamentsPage.svelte generated by Svelte v3.37.0 */
|
|
4601
4653
|
|
|
4602
4654
|
const file$8 = "../../node_modules/@everymatrix/casino-tournaments-page/src/CasinoTournamentsPage.svelte";
|
|
@@ -5063,10 +5115,64 @@
|
|
|
5063
5115
|
|
|
5064
5116
|
!customElements.get('casino-tournaments-details') && customElements.define('casino-tournaments-details', CasinoTournamentsDetails);
|
|
5065
5117
|
|
|
5118
|
+
function addNewMessages$4(lang, dict) {
|
|
5119
|
+
m(lang, dict);
|
|
5120
|
+
}
|
|
5121
|
+
|
|
5122
|
+
const TournamentsThControllerTranslations = {
|
|
5123
|
+
en: {
|
|
5124
|
+
tournamentsThController: {
|
|
5125
|
+
login: 'Log in',
|
|
5126
|
+
register: 'Register',
|
|
5127
|
+
details: 'Details',
|
|
5128
|
+
enrolled: 'Enrolled',
|
|
5129
|
+
join: 'Join',
|
|
5130
|
+
joinerror: 'There was an error joining the tournament - '
|
|
5131
|
+
}
|
|
5132
|
+
},
|
|
5133
|
+
tr: {
|
|
5134
|
+
tournamentsThController: {
|
|
5135
|
+
login: 'Giriş',
|
|
5136
|
+
register: 'Kayıt Ol',
|
|
5137
|
+
details: 'Detaylar',
|
|
5138
|
+
enrolled: 'Kayıtlı',
|
|
5139
|
+
join: 'Katıl',
|
|
5140
|
+
joinerror: 'Turnuvaya katılım ile ilgili bir hata oluştu - '
|
|
5141
|
+
}
|
|
5142
|
+
},
|
|
5143
|
+
};
|
|
5144
|
+
|
|
5145
|
+
function addNewMessages$3(lang, dict) {
|
|
5146
|
+
m(lang, dict);
|
|
5147
|
+
}
|
|
5148
|
+
|
|
5149
|
+
const TournamentsThumbnailTranslations = {
|
|
5150
|
+
en: {
|
|
5151
|
+
tournamentsThumbnail: {
|
|
5152
|
+
enrolled: 'Enrolled',
|
|
5153
|
+
scoreCriteria: 'Score Criteria',
|
|
5154
|
+
minbet: 'min bet counts: ',
|
|
5155
|
+
seegames: 'You can see the games',
|
|
5156
|
+
here: 'here'
|
|
5157
|
+
}
|
|
5158
|
+
},
|
|
5159
|
+
tr: {
|
|
5160
|
+
tournamentsThumbnail: {
|
|
5161
|
+
enrolled: 'Kayıtlı',
|
|
5162
|
+
scoreCriteria: 'Skor kriteri',
|
|
5163
|
+
minbet: 'en düşük bahis sayısı: ',
|
|
5164
|
+
seegames: 'Oyunları görebilirsiniz',
|
|
5165
|
+
here: 'burada'
|
|
5166
|
+
}
|
|
5167
|
+
},
|
|
5168
|
+
};
|
|
5169
|
+
|
|
5066
5170
|
/* ../casino-tournaments-thumbnail/src/CasinoTournamentsThumbnail.svelte generated by Svelte v3.37.0 */
|
|
5171
|
+
|
|
5172
|
+
const { Object: Object_1$5 } = globals;
|
|
5067
5173
|
const file$6 = "../casino-tournaments-thumbnail/src/CasinoTournamentsThumbnail.svelte";
|
|
5068
5174
|
|
|
5069
|
-
// (
|
|
5175
|
+
// (74:2) {#if status}
|
|
5070
5176
|
function create_if_block_6$3(ctx) {
|
|
5071
5177
|
let div;
|
|
5072
5178
|
let t;
|
|
@@ -5078,14 +5184,14 @@
|
|
|
5078
5184
|
div = element("div");
|
|
5079
5185
|
t = text(/*shownStatus*/ ctx[12]);
|
|
5080
5186
|
attr_dev(div, "class", "Status");
|
|
5081
|
-
add_location(div, file$6,
|
|
5187
|
+
add_location(div, file$6, 74, 4, 2238);
|
|
5082
5188
|
},
|
|
5083
5189
|
m: function mount(target, anchor) {
|
|
5084
5190
|
insert_dev(target, div, anchor);
|
|
5085
5191
|
append_dev(div, t);
|
|
5086
5192
|
|
|
5087
5193
|
if (!mounted) {
|
|
5088
|
-
dispose = action_destroyer(/*matchStatus*/ ctx[
|
|
5194
|
+
dispose = action_destroyer(/*matchStatus*/ ctx[15].call(null, div));
|
|
5089
5195
|
mounted = true;
|
|
5090
5196
|
}
|
|
5091
5197
|
},
|
|
@@ -5103,14 +5209,14 @@
|
|
|
5103
5209
|
block,
|
|
5104
5210
|
id: create_if_block_6$3.name,
|
|
5105
5211
|
type: "if",
|
|
5106
|
-
source: "(
|
|
5212
|
+
source: "(74:2) {#if status}",
|
|
5107
5213
|
ctx
|
|
5108
5214
|
});
|
|
5109
5215
|
|
|
5110
5216
|
return block;
|
|
5111
5217
|
}
|
|
5112
5218
|
|
|
5113
|
-
// (
|
|
5219
|
+
// (78:2) {#if showenrolled == 'true'}
|
|
5114
5220
|
function create_if_block_4$4(ctx) {
|
|
5115
5221
|
let if_block_anchor;
|
|
5116
5222
|
let if_block = /*userenrolled*/ ctx[5] && create_if_block_5$3(ctx);
|
|
@@ -5126,7 +5232,9 @@
|
|
|
5126
5232
|
},
|
|
5127
5233
|
p: function update(ctx, dirty) {
|
|
5128
5234
|
if (/*userenrolled*/ ctx[5]) {
|
|
5129
|
-
if (if_block)
|
|
5235
|
+
if (if_block) {
|
|
5236
|
+
if_block.p(ctx, dirty);
|
|
5237
|
+
} else {
|
|
5130
5238
|
if_block = create_if_block_5$3(ctx);
|
|
5131
5239
|
if_block.c();
|
|
5132
5240
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -5146,26 +5254,32 @@
|
|
|
5146
5254
|
block,
|
|
5147
5255
|
id: create_if_block_4$4.name,
|
|
5148
5256
|
type: "if",
|
|
5149
|
-
source: "(
|
|
5257
|
+
source: "(78:2) {#if showenrolled == 'true'}",
|
|
5150
5258
|
ctx
|
|
5151
5259
|
});
|
|
5152
5260
|
|
|
5153
5261
|
return block;
|
|
5154
5262
|
}
|
|
5155
5263
|
|
|
5156
|
-
// (
|
|
5264
|
+
// (79:4) {#if userenrolled}
|
|
5157
5265
|
function create_if_block_5$3(ctx) {
|
|
5158
5266
|
let div;
|
|
5267
|
+
let t_value = /*$_*/ ctx[13]("tournamentsThumbnail.enrolled") + "";
|
|
5268
|
+
let t;
|
|
5159
5269
|
|
|
5160
5270
|
const block = {
|
|
5161
5271
|
c: function create() {
|
|
5162
5272
|
div = element("div");
|
|
5163
|
-
|
|
5273
|
+
t = text(t_value);
|
|
5164
5274
|
attr_dev(div, "class", "Enrolled");
|
|
5165
|
-
add_location(div, file$6,
|
|
5275
|
+
add_location(div, file$6, 79, 6, 2363);
|
|
5166
5276
|
},
|
|
5167
5277
|
m: function mount(target, anchor) {
|
|
5168
5278
|
insert_dev(target, div, anchor);
|
|
5279
|
+
append_dev(div, t);
|
|
5280
|
+
},
|
|
5281
|
+
p: function update(ctx, dirty) {
|
|
5282
|
+
if (dirty & /*$_*/ 8192 && t_value !== (t_value = /*$_*/ ctx[13]("tournamentsThumbnail.enrolled") + "")) set_data_dev(t, t_value);
|
|
5169
5283
|
},
|
|
5170
5284
|
d: function destroy(detaching) {
|
|
5171
5285
|
if (detaching) detach_dev(div);
|
|
@@ -5176,14 +5290,14 @@
|
|
|
5176
5290
|
block,
|
|
5177
5291
|
id: create_if_block_5$3.name,
|
|
5178
5292
|
type: "if",
|
|
5179
|
-
source: "(
|
|
5293
|
+
source: "(79:4) {#if userenrolled}",
|
|
5180
5294
|
ctx
|
|
5181
5295
|
});
|
|
5182
5296
|
|
|
5183
5297
|
return block;
|
|
5184
5298
|
}
|
|
5185
5299
|
|
|
5186
|
-
// (
|
|
5300
|
+
// (85:2) {:else}
|
|
5187
5301
|
function create_else_block$5(ctx) {
|
|
5188
5302
|
let div;
|
|
5189
5303
|
let div_class_value;
|
|
@@ -5199,13 +5313,13 @@
|
|
|
5199
5313
|
: ""));
|
|
5200
5314
|
|
|
5201
5315
|
set_style(div, "background", "url('https://i.stack.imgur.com/y9DpT.jpg') center no-repeat");
|
|
5202
|
-
add_location(div, file$6,
|
|
5316
|
+
add_location(div, file$6, 85, 4, 2619);
|
|
5203
5317
|
},
|
|
5204
5318
|
m: function mount(target, anchor) {
|
|
5205
5319
|
insert_dev(target, div, anchor);
|
|
5206
5320
|
|
|
5207
5321
|
if (!mounted) {
|
|
5208
|
-
dispose = action_destroyer(/*matchStatus*/ ctx[
|
|
5322
|
+
dispose = action_destroyer(/*matchStatus*/ ctx[15].call(null, div));
|
|
5209
5323
|
mounted = true;
|
|
5210
5324
|
}
|
|
5211
5325
|
},
|
|
@@ -5227,14 +5341,14 @@
|
|
|
5227
5341
|
block,
|
|
5228
5342
|
id: create_else_block$5.name,
|
|
5229
5343
|
type: "else",
|
|
5230
|
-
source: "(
|
|
5344
|
+
source: "(85:2) {:else}",
|
|
5231
5345
|
ctx
|
|
5232
5346
|
});
|
|
5233
5347
|
|
|
5234
5348
|
return block;
|
|
5235
5349
|
}
|
|
5236
5350
|
|
|
5237
|
-
// (
|
|
5351
|
+
// (83:2) {#if thumbnail}
|
|
5238
5352
|
function create_if_block_3$4(ctx) {
|
|
5239
5353
|
let div;
|
|
5240
5354
|
let div_class_value;
|
|
@@ -5250,13 +5364,13 @@
|
|
|
5250
5364
|
: ""));
|
|
5251
5365
|
|
|
5252
5366
|
set_style(div, "background", "url('" + /*thumbnail*/ ctx[4] + "')");
|
|
5253
|
-
add_location(div, file$6,
|
|
5367
|
+
add_location(div, file$6, 83, 4, 2469);
|
|
5254
5368
|
},
|
|
5255
5369
|
m: function mount(target, anchor) {
|
|
5256
5370
|
insert_dev(target, div, anchor);
|
|
5257
5371
|
|
|
5258
5372
|
if (!mounted) {
|
|
5259
|
-
dispose = action_destroyer(/*matchStatus*/ ctx[
|
|
5373
|
+
dispose = action_destroyer(/*matchStatus*/ ctx[15].call(null, div));
|
|
5260
5374
|
mounted = true;
|
|
5261
5375
|
}
|
|
5262
5376
|
},
|
|
@@ -5282,14 +5396,14 @@
|
|
|
5282
5396
|
block,
|
|
5283
5397
|
id: create_if_block_3$4.name,
|
|
5284
5398
|
type: "if",
|
|
5285
|
-
source: "(
|
|
5399
|
+
source: "(83:2) {#if thumbnail}",
|
|
5286
5400
|
ctx
|
|
5287
5401
|
});
|
|
5288
5402
|
|
|
5289
5403
|
return block;
|
|
5290
5404
|
}
|
|
5291
5405
|
|
|
5292
|
-
// (
|
|
5406
|
+
// (91:4) {#if startdate}
|
|
5293
5407
|
function create_if_block_2$4(ctx) {
|
|
5294
5408
|
let div;
|
|
5295
5409
|
let t;
|
|
@@ -5302,14 +5416,14 @@
|
|
|
5302
5416
|
div = element("div");
|
|
5303
5417
|
t = text(/*shownDate*/ ctx[10]);
|
|
5304
5418
|
attr_dev(div, "class", "Date");
|
|
5305
|
-
add_location(div, file$6,
|
|
5419
|
+
add_location(div, file$6, 91, 6, 2892);
|
|
5306
5420
|
},
|
|
5307
5421
|
m: function mount(target, anchor) {
|
|
5308
5422
|
insert_dev(target, div, anchor);
|
|
5309
5423
|
append_dev(div, t);
|
|
5310
5424
|
|
|
5311
5425
|
if (!mounted) {
|
|
5312
|
-
dispose = action_destroyer(formatDate_action = /*formatDate*/ ctx[
|
|
5426
|
+
dispose = action_destroyer(formatDate_action = /*formatDate*/ ctx[14].call(null, div, /*startdate*/ ctx[1]));
|
|
5313
5427
|
mounted = true;
|
|
5314
5428
|
}
|
|
5315
5429
|
},
|
|
@@ -5328,26 +5442,31 @@
|
|
|
5328
5442
|
block,
|
|
5329
5443
|
id: create_if_block_2$4.name,
|
|
5330
5444
|
type: "if",
|
|
5331
|
-
source: "(
|
|
5445
|
+
source: "(91:4) {#if startdate}",
|
|
5332
5446
|
ctx
|
|
5333
5447
|
});
|
|
5334
5448
|
|
|
5335
5449
|
return block;
|
|
5336
5450
|
}
|
|
5337
5451
|
|
|
5338
|
-
// (
|
|
5452
|
+
// (95:4) {#if isLoggedIn}
|
|
5339
5453
|
function create_if_block$6(ctx) {
|
|
5340
5454
|
let div0;
|
|
5341
5455
|
let p0;
|
|
5456
|
+
let t0_value = /*$_*/ ctx[13]("tournamentsThumbnail.enrolled") + "";
|
|
5342
5457
|
let t0;
|
|
5343
5458
|
let t1;
|
|
5344
5459
|
let t2;
|
|
5345
5460
|
let t3;
|
|
5461
|
+
let t4;
|
|
5346
5462
|
let div1;
|
|
5347
5463
|
let p1;
|
|
5348
|
-
let
|
|
5349
|
-
let a;
|
|
5464
|
+
let t5_value = /*$_*/ ctx[13]("tournamentsThumbnail.seegames") + "";
|
|
5350
5465
|
let t5;
|
|
5466
|
+
let t6;
|
|
5467
|
+
let a;
|
|
5468
|
+
let t7_value = /*$_*/ ctx[13]("tournamentsThumbnail.here") + "";
|
|
5469
|
+
let t7;
|
|
5351
5470
|
let mounted;
|
|
5352
5471
|
let dispose;
|
|
5353
5472
|
let if_block = /*scorecriteria*/ ctx[6] == "BetCount" && create_if_block_1$4(ctx);
|
|
@@ -5356,25 +5475,27 @@
|
|
|
5356
5475
|
c: function create() {
|
|
5357
5476
|
div0 = element("div");
|
|
5358
5477
|
p0 = element("p");
|
|
5359
|
-
t0 = text(
|
|
5360
|
-
t1 = text(
|
|
5361
|
-
t2 =
|
|
5362
|
-
if (if_block) if_block.c();
|
|
5478
|
+
t0 = text(t0_value);
|
|
5479
|
+
t1 = text(": ");
|
|
5480
|
+
t2 = text(/*scorecriteria*/ ctx[6]);
|
|
5363
5481
|
t3 = space();
|
|
5482
|
+
if (if_block) if_block.c();
|
|
5483
|
+
t4 = space();
|
|
5364
5484
|
div1 = element("div");
|
|
5365
5485
|
p1 = element("p");
|
|
5366
|
-
|
|
5486
|
+
t5 = text(t5_value);
|
|
5487
|
+
t6 = space();
|
|
5367
5488
|
a = element("a");
|
|
5368
|
-
|
|
5369
|
-
add_location(p0, file$6,
|
|
5489
|
+
t7 = text(t7_value);
|
|
5490
|
+
add_location(p0, file$6, 96, 8, 3029);
|
|
5370
5491
|
attr_dev(div0, "class", "ScoreCriteria");
|
|
5371
|
-
add_location(div0, file$6,
|
|
5492
|
+
add_location(div0, file$6, 95, 6, 2993);
|
|
5372
5493
|
attr_dev(a, "href", /*gameurl*/ ctx[9]);
|
|
5373
5494
|
attr_dev(a, "target", "_blank");
|
|
5374
|
-
add_location(a, file$6,
|
|
5375
|
-
add_location(p1, file$6,
|
|
5495
|
+
add_location(a, file$6, 105, 49, 3325);
|
|
5496
|
+
add_location(p1, file$6, 105, 8, 3284);
|
|
5376
5497
|
attr_dev(div1, "class", "Games");
|
|
5377
|
-
add_location(div1, file$6,
|
|
5498
|
+
add_location(div1, file$6, 104, 6, 3256);
|
|
5378
5499
|
},
|
|
5379
5500
|
m: function mount(target, anchor) {
|
|
5380
5501
|
insert_dev(target, div0, anchor);
|
|
@@ -5382,21 +5503,24 @@
|
|
|
5382
5503
|
append_dev(p0, t0);
|
|
5383
5504
|
append_dev(p0, t1);
|
|
5384
5505
|
append_dev(p0, t2);
|
|
5506
|
+
append_dev(p0, t3);
|
|
5385
5507
|
if (if_block) if_block.m(p0, null);
|
|
5386
|
-
insert_dev(target,
|
|
5508
|
+
insert_dev(target, t4, anchor);
|
|
5387
5509
|
insert_dev(target, div1, anchor);
|
|
5388
5510
|
append_dev(div1, p1);
|
|
5389
|
-
append_dev(p1,
|
|
5511
|
+
append_dev(p1, t5);
|
|
5512
|
+
append_dev(p1, t6);
|
|
5390
5513
|
append_dev(p1, a);
|
|
5391
|
-
append_dev(a,
|
|
5514
|
+
append_dev(a, t7);
|
|
5392
5515
|
|
|
5393
5516
|
if (!mounted) {
|
|
5394
|
-
dispose = listen_dev(a, "click", /*click_handler*/ ctx[
|
|
5517
|
+
dispose = listen_dev(a, "click", /*click_handler*/ ctx[19], false, false, false);
|
|
5395
5518
|
mounted = true;
|
|
5396
5519
|
}
|
|
5397
5520
|
},
|
|
5398
5521
|
p: function update(ctx, dirty) {
|
|
5399
|
-
if (dirty &
|
|
5522
|
+
if (dirty & /*$_*/ 8192 && t0_value !== (t0_value = /*$_*/ ctx[13]("tournamentsThumbnail.enrolled") + "")) set_data_dev(t0, t0_value);
|
|
5523
|
+
if (dirty & /*scorecriteria*/ 64) set_data_dev(t2, /*scorecriteria*/ ctx[6]);
|
|
5400
5524
|
|
|
5401
5525
|
if (/*scorecriteria*/ ctx[6] == "BetCount") {
|
|
5402
5526
|
if (if_block) {
|
|
@@ -5411,6 +5535,9 @@
|
|
|
5411
5535
|
if_block = null;
|
|
5412
5536
|
}
|
|
5413
5537
|
|
|
5538
|
+
if (dirty & /*$_*/ 8192 && t5_value !== (t5_value = /*$_*/ ctx[13]("tournamentsThumbnail.seegames") + "")) set_data_dev(t5, t5_value);
|
|
5539
|
+
if (dirty & /*$_*/ 8192 && t7_value !== (t7_value = /*$_*/ ctx[13]("tournamentsThumbnail.here") + "")) set_data_dev(t7, t7_value);
|
|
5540
|
+
|
|
5414
5541
|
if (dirty & /*gameurl*/ 512) {
|
|
5415
5542
|
attr_dev(a, "href", /*gameurl*/ ctx[9]);
|
|
5416
5543
|
}
|
|
@@ -5418,7 +5545,7 @@
|
|
|
5418
5545
|
d: function destroy(detaching) {
|
|
5419
5546
|
if (detaching) detach_dev(div0);
|
|
5420
5547
|
if (if_block) if_block.d();
|
|
5421
|
-
if (detaching) detach_dev(
|
|
5548
|
+
if (detaching) detach_dev(t4);
|
|
5422
5549
|
if (detaching) detach_dev(div1);
|
|
5423
5550
|
mounted = false;
|
|
5424
5551
|
dispose();
|
|
@@ -5429,37 +5556,47 @@
|
|
|
5429
5556
|
block,
|
|
5430
5557
|
id: create_if_block$6.name,
|
|
5431
5558
|
type: "if",
|
|
5432
|
-
source: "(
|
|
5559
|
+
source: "(95:4) {#if isLoggedIn}",
|
|
5433
5560
|
ctx
|
|
5434
5561
|
});
|
|
5435
5562
|
|
|
5436
5563
|
return block;
|
|
5437
5564
|
}
|
|
5438
5565
|
|
|
5439
|
-
// (
|
|
5566
|
+
// (99:10) {#if scorecriteria == 'BetCount'}
|
|
5440
5567
|
function create_if_block_1$4(ctx) {
|
|
5441
5568
|
let t0;
|
|
5569
|
+
let t1_value = /*$_*/ ctx[13]("tournamentsThumbnail.minbet") + "";
|
|
5442
5570
|
let t1;
|
|
5443
5571
|
let t2;
|
|
5572
|
+
let t3;
|
|
5573
|
+
let t4;
|
|
5444
5574
|
|
|
5445
5575
|
const block = {
|
|
5446
5576
|
c: function create() {
|
|
5447
|
-
t0 = text("(
|
|
5448
|
-
t1 = text(
|
|
5449
|
-
t2 = text("
|
|
5577
|
+
t0 = text("(");
|
|
5578
|
+
t1 = text(t1_value);
|
|
5579
|
+
t2 = text(": ");
|
|
5580
|
+
t3 = text(/*minbetcount*/ ctx[7]);
|
|
5581
|
+
t4 = text(")");
|
|
5450
5582
|
},
|
|
5451
5583
|
m: function mount(target, anchor) {
|
|
5452
5584
|
insert_dev(target, t0, anchor);
|
|
5453
5585
|
insert_dev(target, t1, anchor);
|
|
5454
5586
|
insert_dev(target, t2, anchor);
|
|
5587
|
+
insert_dev(target, t3, anchor);
|
|
5588
|
+
insert_dev(target, t4, anchor);
|
|
5455
5589
|
},
|
|
5456
5590
|
p: function update(ctx, dirty) {
|
|
5457
|
-
if (dirty &
|
|
5591
|
+
if (dirty & /*$_*/ 8192 && t1_value !== (t1_value = /*$_*/ ctx[13]("tournamentsThumbnail.minbet") + "")) set_data_dev(t1, t1_value);
|
|
5592
|
+
if (dirty & /*minbetcount*/ 128) set_data_dev(t3, /*minbetcount*/ ctx[7]);
|
|
5458
5593
|
},
|
|
5459
5594
|
d: function destroy(detaching) {
|
|
5460
5595
|
if (detaching) detach_dev(t0);
|
|
5461
5596
|
if (detaching) detach_dev(t1);
|
|
5462
5597
|
if (detaching) detach_dev(t2);
|
|
5598
|
+
if (detaching) detach_dev(t3);
|
|
5599
|
+
if (detaching) detach_dev(t4);
|
|
5463
5600
|
}
|
|
5464
5601
|
};
|
|
5465
5602
|
|
|
@@ -5467,7 +5604,7 @@
|
|
|
5467
5604
|
block,
|
|
5468
5605
|
id: create_if_block_1$4.name,
|
|
5469
5606
|
type: "if",
|
|
5470
|
-
source: "(
|
|
5607
|
+
source: "(99:10) {#if scorecriteria == 'BetCount'}",
|
|
5471
5608
|
ctx
|
|
5472
5609
|
});
|
|
5473
5610
|
|
|
@@ -5515,11 +5652,11 @@
|
|
|
5515
5652
|
if (if_block4) if_block4.c();
|
|
5516
5653
|
this.c = noop$1;
|
|
5517
5654
|
attr_dev(div0, "class", "Title");
|
|
5518
|
-
add_location(div0, file$6,
|
|
5655
|
+
add_location(div0, file$6, 89, 4, 2833);
|
|
5519
5656
|
attr_dev(div1, "class", "Details");
|
|
5520
|
-
add_location(div1, file$6,
|
|
5657
|
+
add_location(div1, file$6, 88, 2, 2807);
|
|
5521
5658
|
attr_dev(div2, "class", "Thumbnail");
|
|
5522
|
-
add_location(div2, file$6,
|
|
5659
|
+
add_location(div2, file$6, 72, 0, 2195);
|
|
5523
5660
|
},
|
|
5524
5661
|
l: function claim(nodes) {
|
|
5525
5662
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -5631,6 +5768,9 @@
|
|
|
5631
5768
|
}
|
|
5632
5769
|
|
|
5633
5770
|
function instance$6($$self, $$props, $$invalidate) {
|
|
5771
|
+
let $_;
|
|
5772
|
+
validate_store(X, "_");
|
|
5773
|
+
component_subscribe($$self, X, $$value => $$invalidate(13, $_ = $$value));
|
|
5634
5774
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
5635
5775
|
validate_slots("undefined", slots, []);
|
|
5636
5776
|
let { session = "" } = $$props;
|
|
@@ -5655,6 +5795,10 @@
|
|
|
5655
5795
|
let playerID = "";
|
|
5656
5796
|
let shownStatus = "";
|
|
5657
5797
|
|
|
5798
|
+
Object.keys(TournamentsThumbnailTranslations).forEach(item => {
|
|
5799
|
+
addNewMessages$3(item, TournamentsThumbnailTranslations[item]);
|
|
5800
|
+
});
|
|
5801
|
+
|
|
5658
5802
|
const messageHandler = e => {
|
|
5659
5803
|
if (e.data && e.data.type == "SessionID") {
|
|
5660
5804
|
$$invalidate(11, isLoggedIn = true);
|
|
@@ -5726,15 +5870,15 @@
|
|
|
5726
5870
|
"gameurl"
|
|
5727
5871
|
];
|
|
5728
5872
|
|
|
5729
|
-
|
|
5873
|
+
Object_1$5.keys($$props).forEach(key => {
|
|
5730
5874
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
5731
5875
|
});
|
|
5732
5876
|
|
|
5733
5877
|
const click_handler = () => tournamentGamesClicked();
|
|
5734
5878
|
|
|
5735
5879
|
$$self.$$set = $$props => {
|
|
5736
|
-
if ("session" in $$props) $$invalidate(
|
|
5737
|
-
if ("userid" in $$props) $$invalidate(
|
|
5880
|
+
if ("session" in $$props) $$invalidate(17, session = $$props.session);
|
|
5881
|
+
if ("userid" in $$props) $$invalidate(18, userid = $$props.userid);
|
|
5738
5882
|
if ("title" in $$props) $$invalidate(0, title = $$props.title);
|
|
5739
5883
|
if ("startdate" in $$props) $$invalidate(1, startdate = $$props.startdate);
|
|
5740
5884
|
if ("status" in $$props) $$invalidate(2, status = $$props.status);
|
|
@@ -5749,6 +5893,9 @@
|
|
|
5749
5893
|
|
|
5750
5894
|
$$self.$capture_state = () => ({
|
|
5751
5895
|
onMount,
|
|
5896
|
+
_: X,
|
|
5897
|
+
addNewMessages: addNewMessages$3,
|
|
5898
|
+
TournamentsThumbnailTranslations,
|
|
5752
5899
|
session,
|
|
5753
5900
|
userid,
|
|
5754
5901
|
title,
|
|
@@ -5771,12 +5918,13 @@
|
|
|
5771
5918
|
formatDate,
|
|
5772
5919
|
matchStatus,
|
|
5773
5920
|
tournamentGamesClicked,
|
|
5774
|
-
setSession
|
|
5921
|
+
setSession,
|
|
5922
|
+
$_
|
|
5775
5923
|
});
|
|
5776
5924
|
|
|
5777
5925
|
$$self.$inject_state = $$props => {
|
|
5778
|
-
if ("session" in $$props) $$invalidate(
|
|
5779
|
-
if ("userid" in $$props) $$invalidate(
|
|
5926
|
+
if ("session" in $$props) $$invalidate(17, session = $$props.session);
|
|
5927
|
+
if ("userid" in $$props) $$invalidate(18, userid = $$props.userid);
|
|
5780
5928
|
if ("title" in $$props) $$invalidate(0, title = $$props.title);
|
|
5781
5929
|
if ("startdate" in $$props) $$invalidate(1, startdate = $$props.startdate);
|
|
5782
5930
|
if ("status" in $$props) $$invalidate(2, status = $$props.status);
|
|
@@ -5800,7 +5948,7 @@
|
|
|
5800
5948
|
}
|
|
5801
5949
|
|
|
5802
5950
|
$$self.$$.update = () => {
|
|
5803
|
-
if ($$self.$$.dirty & /*session*/
|
|
5951
|
+
if ($$self.$$.dirty & /*session*/ 131072) {
|
|
5804
5952
|
session && setSession();
|
|
5805
5953
|
}
|
|
5806
5954
|
};
|
|
@@ -5819,6 +5967,7 @@
|
|
|
5819
5967
|
shownDate,
|
|
5820
5968
|
isLoggedIn,
|
|
5821
5969
|
shownStatus,
|
|
5970
|
+
$_,
|
|
5822
5971
|
formatDate,
|
|
5823
5972
|
matchStatus,
|
|
5824
5973
|
tournamentGamesClicked,
|
|
@@ -5844,8 +5993,8 @@
|
|
|
5844
5993
|
create_fragment$6,
|
|
5845
5994
|
safe_not_equal,
|
|
5846
5995
|
{
|
|
5847
|
-
session:
|
|
5848
|
-
userid:
|
|
5996
|
+
session: 17,
|
|
5997
|
+
userid: 18,
|
|
5849
5998
|
title: 0,
|
|
5850
5999
|
startdate: 1,
|
|
5851
6000
|
status: 2,
|
|
@@ -5889,7 +6038,7 @@
|
|
|
5889
6038
|
}
|
|
5890
6039
|
|
|
5891
6040
|
get session() {
|
|
5892
|
-
return this.$$.ctx[
|
|
6041
|
+
return this.$$.ctx[17];
|
|
5893
6042
|
}
|
|
5894
6043
|
|
|
5895
6044
|
set session(session) {
|
|
@@ -5898,7 +6047,7 @@
|
|
|
5898
6047
|
}
|
|
5899
6048
|
|
|
5900
6049
|
get userid() {
|
|
5901
|
-
return this.$$.ctx[
|
|
6050
|
+
return this.$$.ctx[18];
|
|
5902
6051
|
}
|
|
5903
6052
|
|
|
5904
6053
|
set userid(userid) {
|
|
@@ -5999,11 +6148,43 @@
|
|
|
5999
6148
|
|
|
6000
6149
|
!customElements.get('casino-tournaments-thumbnail') && customElements.define('casino-tournaments-thumbnail', CasinoTournamentsThumbnail);
|
|
6001
6150
|
|
|
6151
|
+
function addNewMessages$2(lang, dict) {
|
|
6152
|
+
m(lang, dict);
|
|
6153
|
+
}
|
|
6154
|
+
|
|
6155
|
+
function setLocale(_locale) {
|
|
6156
|
+
T.set(_locale);
|
|
6157
|
+
}
|
|
6158
|
+
|
|
6159
|
+
const TournamentsDurationTranslations = {
|
|
6160
|
+
en: {
|
|
6161
|
+
tournamentsDuration: {
|
|
6162
|
+
finished: 'Finished',
|
|
6163
|
+
starting: 'Starting in ',
|
|
6164
|
+
days: 'days',
|
|
6165
|
+
minutesleft: 'minutes left',
|
|
6166
|
+
hoursleft: 'hours left',
|
|
6167
|
+
daysleft: 'days left'
|
|
6168
|
+
}
|
|
6169
|
+
},
|
|
6170
|
+
tr: {
|
|
6171
|
+
tournamentsDuration: {
|
|
6172
|
+
finished: 'Sona ermiş',
|
|
6173
|
+
starting: 'Başlamasına ',
|
|
6174
|
+
days: 'gün',
|
|
6175
|
+
minutesleft: 'dakika kaldı',
|
|
6176
|
+
hoursleft: 'saat kaldı',
|
|
6177
|
+
daysleft: 'gün kaldı'
|
|
6178
|
+
}
|
|
6179
|
+
},
|
|
6180
|
+
};
|
|
6181
|
+
|
|
6002
6182
|
/* ../casino-tournaments-thumbnail-duration/src/CasinoTournmanetsThumbnailDuration.svelte generated by Svelte v3.37.0 */
|
|
6003
6183
|
|
|
6184
|
+
const { Object: Object_1$4 } = globals;
|
|
6004
6185
|
const file$5 = "../casino-tournaments-thumbnail-duration/src/CasinoTournmanetsThumbnailDuration.svelte";
|
|
6005
6186
|
|
|
6006
|
-
// (
|
|
6187
|
+
// (71:2) {#if startdate && enddate}
|
|
6007
6188
|
function create_if_block$5(ctx) {
|
|
6008
6189
|
let div2;
|
|
6009
6190
|
let div0;
|
|
@@ -6037,13 +6218,13 @@
|
|
|
6037
6218
|
div3 = element("div");
|
|
6038
6219
|
if_block.c();
|
|
6039
6220
|
attr_dev(div0, "class", "StartDate");
|
|
6040
|
-
add_location(div0, file$5,
|
|
6221
|
+
add_location(div0, file$5, 72, 6, 2439);
|
|
6041
6222
|
attr_dev(div1, "class", "EndDate");
|
|
6042
|
-
add_location(div1, file$5,
|
|
6223
|
+
add_location(div1, file$5, 73, 6, 2506);
|
|
6043
6224
|
attr_dev(div2, "class", "TournamentDates");
|
|
6044
|
-
add_location(div2, file$5,
|
|
6225
|
+
add_location(div2, file$5, 71, 4, 2403);
|
|
6045
6226
|
attr_dev(div3, "class", "ProgressBar");
|
|
6046
|
-
add_location(div3, file$5,
|
|
6227
|
+
add_location(div3, file$5, 75, 4, 2576);
|
|
6047
6228
|
},
|
|
6048
6229
|
m: function mount(target, anchor) {
|
|
6049
6230
|
insert_dev(target, div2, anchor);
|
|
@@ -6058,9 +6239,9 @@
|
|
|
6058
6239
|
|
|
6059
6240
|
if (!mounted) {
|
|
6060
6241
|
dispose = [
|
|
6061
|
-
action_destroyer(/*formatStartDate*/ ctx[
|
|
6062
|
-
action_destroyer(/*formatEndDate*/ ctx[
|
|
6063
|
-
action_destroyer(/*getDuration*/ ctx[
|
|
6242
|
+
action_destroyer(/*formatStartDate*/ ctx[12].call(null, div0)),
|
|
6243
|
+
action_destroyer(/*formatEndDate*/ ctx[13].call(null, div1)),
|
|
6244
|
+
action_destroyer(/*getDuration*/ ctx[14].call(null, div3))
|
|
6064
6245
|
];
|
|
6065
6246
|
|
|
6066
6247
|
mounted = true;
|
|
@@ -6096,14 +6277,14 @@
|
|
|
6096
6277
|
block,
|
|
6097
6278
|
id: create_if_block$5.name,
|
|
6098
6279
|
type: "if",
|
|
6099
|
-
source: "(
|
|
6280
|
+
source: "(71:2) {#if startdate && enddate}",
|
|
6100
6281
|
ctx
|
|
6101
6282
|
});
|
|
6102
6283
|
|
|
6103
6284
|
return block;
|
|
6104
6285
|
}
|
|
6105
6286
|
|
|
6106
|
-
// (
|
|
6287
|
+
// (84:8) {:else}
|
|
6107
6288
|
function create_else_block$4(ctx) {
|
|
6108
6289
|
let div;
|
|
6109
6290
|
let t;
|
|
@@ -6118,7 +6299,7 @@
|
|
|
6118
6299
|
if_block_anchor = empty();
|
|
6119
6300
|
attr_dev(div, "class", "ProgressBarFill");
|
|
6120
6301
|
set_style(div, "width", /*progress*/ ctx[7] + "%");
|
|
6121
|
-
add_location(div, file$5,
|
|
6302
|
+
add_location(div, file$5, 84, 10, 3089);
|
|
6122
6303
|
},
|
|
6123
6304
|
m: function mount(target, anchor) {
|
|
6124
6305
|
insert_dev(target, div, anchor);
|
|
@@ -6156,34 +6337,40 @@
|
|
|
6156
6337
|
block,
|
|
6157
6338
|
id: create_else_block$4.name,
|
|
6158
6339
|
type: "else",
|
|
6159
|
-
source: "(
|
|
6340
|
+
source: "(84:8) {:else}",
|
|
6160
6341
|
ctx
|
|
6161
6342
|
});
|
|
6162
6343
|
|
|
6163
6344
|
return block;
|
|
6164
6345
|
}
|
|
6165
6346
|
|
|
6166
|
-
// (
|
|
6347
|
+
// (81:8) {#if tournamentUntilStartDays > 0}
|
|
6167
6348
|
function create_if_block_2$3(ctx) {
|
|
6168
6349
|
let div0;
|
|
6169
6350
|
let t0;
|
|
6170
6351
|
let div1;
|
|
6352
|
+
let t1_value = /*$_*/ ctx[11]("tournamentsDuration.starting") + "";
|
|
6171
6353
|
let t1;
|
|
6172
6354
|
let t2;
|
|
6173
6355
|
let t3;
|
|
6356
|
+
let t4;
|
|
6357
|
+
let t5_value = /*$_*/ ctx[11]("tournamentsDuration.days") + "";
|
|
6358
|
+
let t5;
|
|
6174
6359
|
|
|
6175
6360
|
const block = {
|
|
6176
6361
|
c: function create() {
|
|
6177
6362
|
div0 = element("div");
|
|
6178
6363
|
t0 = space();
|
|
6179
6364
|
div1 = element("div");
|
|
6180
|
-
t1 = text(
|
|
6181
|
-
t2 =
|
|
6182
|
-
t3 = text(
|
|
6365
|
+
t1 = text(t1_value);
|
|
6366
|
+
t2 = space();
|
|
6367
|
+
t3 = text(/*tournamentUntilStartDays*/ ctx[6]);
|
|
6368
|
+
t4 = space();
|
|
6369
|
+
t5 = text(t5_value);
|
|
6183
6370
|
attr_dev(div0, "class", "ProgressBarFillStarting");
|
|
6184
|
-
add_location(div0, file$5,
|
|
6371
|
+
add_location(div0, file$5, 81, 10, 2883);
|
|
6185
6372
|
attr_dev(div1, "class", "Remaining");
|
|
6186
|
-
add_location(div1, file$5,
|
|
6373
|
+
add_location(div1, file$5, 82, 10, 2937);
|
|
6187
6374
|
},
|
|
6188
6375
|
m: function mount(target, anchor) {
|
|
6189
6376
|
insert_dev(target, div0, anchor);
|
|
@@ -6192,9 +6379,13 @@
|
|
|
6192
6379
|
append_dev(div1, t1);
|
|
6193
6380
|
append_dev(div1, t2);
|
|
6194
6381
|
append_dev(div1, t3);
|
|
6382
|
+
append_dev(div1, t4);
|
|
6383
|
+
append_dev(div1, t5);
|
|
6195
6384
|
},
|
|
6196
6385
|
p: function update(ctx, dirty) {
|
|
6197
|
-
if (dirty &
|
|
6386
|
+
if (dirty & /*$_*/ 2048 && t1_value !== (t1_value = /*$_*/ ctx[11]("tournamentsDuration.starting") + "")) set_data_dev(t1, t1_value);
|
|
6387
|
+
if (dirty & /*tournamentUntilStartDays*/ 64) set_data_dev(t3, /*tournamentUntilStartDays*/ ctx[6]);
|
|
6388
|
+
if (dirty & /*$_*/ 2048 && t5_value !== (t5_value = /*$_*/ ctx[11]("tournamentsDuration.days") + "")) set_data_dev(t5, t5_value);
|
|
6198
6389
|
},
|
|
6199
6390
|
d: function destroy(detaching) {
|
|
6200
6391
|
if (detaching) detach_dev(div0);
|
|
@@ -6207,36 +6398,41 @@
|
|
|
6207
6398
|
block,
|
|
6208
6399
|
id: create_if_block_2$3.name,
|
|
6209
6400
|
type: "if",
|
|
6210
|
-
source: "(
|
|
6401
|
+
source: "(81:8) {#if tournamentUntilStartDays > 0}",
|
|
6211
6402
|
ctx
|
|
6212
6403
|
});
|
|
6213
6404
|
|
|
6214
6405
|
return block;
|
|
6215
6406
|
}
|
|
6216
6407
|
|
|
6217
|
-
// (
|
|
6408
|
+
// (77:6) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}
|
|
6218
6409
|
function create_if_block_1$3(ctx) {
|
|
6219
6410
|
let div0;
|
|
6220
6411
|
let t0;
|
|
6221
6412
|
let div1;
|
|
6413
|
+
let t1_value = /*$_*/ ctx[11]("tournamentsDuration.finished") + "";
|
|
6414
|
+
let t1;
|
|
6222
6415
|
|
|
6223
6416
|
const block = {
|
|
6224
6417
|
c: function create() {
|
|
6225
6418
|
div0 = element("div");
|
|
6226
6419
|
t0 = space();
|
|
6227
6420
|
div1 = element("div");
|
|
6228
|
-
|
|
6421
|
+
t1 = text(t1_value);
|
|
6229
6422
|
attr_dev(div0, "class", "ProgressBarFillEnd");
|
|
6230
|
-
add_location(div0, file$5,
|
|
6423
|
+
add_location(div0, file$5, 77, 8, 2704);
|
|
6231
6424
|
attr_dev(div1, "class", "Finished");
|
|
6232
|
-
add_location(div1, file$5,
|
|
6425
|
+
add_location(div1, file$5, 78, 8, 2751);
|
|
6233
6426
|
},
|
|
6234
6427
|
m: function mount(target, anchor) {
|
|
6235
6428
|
insert_dev(target, div0, anchor);
|
|
6236
6429
|
insert_dev(target, t0, anchor);
|
|
6237
6430
|
insert_dev(target, div1, anchor);
|
|
6431
|
+
append_dev(div1, t1);
|
|
6432
|
+
},
|
|
6433
|
+
p: function update(ctx, dirty) {
|
|
6434
|
+
if (dirty & /*$_*/ 2048 && t1_value !== (t1_value = /*$_*/ ctx[11]("tournamentsDuration.finished") + "")) set_data_dev(t1, t1_value);
|
|
6238
6435
|
},
|
|
6239
|
-
p: noop$1,
|
|
6240
6436
|
d: function destroy(detaching) {
|
|
6241
6437
|
if (detaching) detach_dev(div0);
|
|
6242
6438
|
if (detaching) detach_dev(t0);
|
|
@@ -6248,14 +6444,14 @@
|
|
|
6248
6444
|
block,
|
|
6249
6445
|
id: create_if_block_1$3.name,
|
|
6250
6446
|
type: "if",
|
|
6251
|
-
source: "(
|
|
6447
|
+
source: "(77:6) {#if status == 'Finished' || status == 'Closing' || status == 'Closed'}",
|
|
6252
6448
|
ctx
|
|
6253
6449
|
});
|
|
6254
6450
|
|
|
6255
6451
|
return block;
|
|
6256
6452
|
}
|
|
6257
6453
|
|
|
6258
|
-
// (
|
|
6454
|
+
// (86:10) {#if tournamentLeftDays > 0}
|
|
6259
6455
|
function create_if_block_3$3(ctx) {
|
|
6260
6456
|
let t0;
|
|
6261
6457
|
let t1;
|
|
@@ -6335,34 +6531,39 @@
|
|
|
6335
6531
|
block,
|
|
6336
6532
|
id: create_if_block_3$3.name,
|
|
6337
6533
|
type: "if",
|
|
6338
|
-
source: "(
|
|
6534
|
+
source: "(86:10) {#if tournamentLeftDays > 0}",
|
|
6339
6535
|
ctx
|
|
6340
6536
|
});
|
|
6341
6537
|
|
|
6342
6538
|
return block;
|
|
6343
6539
|
}
|
|
6344
6540
|
|
|
6345
|
-
// (
|
|
6541
|
+
// (87:12) {#if diffMinutes}
|
|
6346
6542
|
function create_if_block_6$2(ctx) {
|
|
6347
6543
|
let div;
|
|
6348
6544
|
let t0;
|
|
6349
6545
|
let t1;
|
|
6546
|
+
let t2_value = /*$_*/ ctx[11]("tournamentsDuration.minutesleft") + "";
|
|
6547
|
+
let t2;
|
|
6350
6548
|
|
|
6351
6549
|
const block = {
|
|
6352
6550
|
c: function create() {
|
|
6353
6551
|
div = element("div");
|
|
6354
6552
|
t0 = text(/*tournamentLeftDays*/ ctx[5]);
|
|
6355
|
-
t1 =
|
|
6553
|
+
t1 = space();
|
|
6554
|
+
t2 = text(t2_value);
|
|
6356
6555
|
attr_dev(div, "class", "Remaining");
|
|
6357
|
-
add_location(div, file$5,
|
|
6556
|
+
add_location(div, file$5, 87, 14, 3234);
|
|
6358
6557
|
},
|
|
6359
6558
|
m: function mount(target, anchor) {
|
|
6360
6559
|
insert_dev(target, div, anchor);
|
|
6361
6560
|
append_dev(div, t0);
|
|
6362
6561
|
append_dev(div, t1);
|
|
6562
|
+
append_dev(div, t2);
|
|
6363
6563
|
},
|
|
6364
6564
|
p: function update(ctx, dirty) {
|
|
6365
6565
|
if (dirty & /*tournamentLeftDays*/ 32) set_data_dev(t0, /*tournamentLeftDays*/ ctx[5]);
|
|
6566
|
+
if (dirty & /*$_*/ 2048 && t2_value !== (t2_value = /*$_*/ ctx[11]("tournamentsDuration.minutesleft") + "")) set_data_dev(t2, t2_value);
|
|
6366
6567
|
},
|
|
6367
6568
|
d: function destroy(detaching) {
|
|
6368
6569
|
if (detaching) detach_dev(div);
|
|
@@ -6373,34 +6574,39 @@
|
|
|
6373
6574
|
block,
|
|
6374
6575
|
id: create_if_block_6$2.name,
|
|
6375
6576
|
type: "if",
|
|
6376
|
-
source: "(
|
|
6577
|
+
source: "(87:12) {#if diffMinutes}",
|
|
6377
6578
|
ctx
|
|
6378
6579
|
});
|
|
6379
6580
|
|
|
6380
6581
|
return block;
|
|
6381
6582
|
}
|
|
6382
6583
|
|
|
6383
|
-
// (
|
|
6584
|
+
// (90:12) {#if diffHours}
|
|
6384
6585
|
function create_if_block_5$2(ctx) {
|
|
6385
6586
|
let div;
|
|
6386
6587
|
let t0;
|
|
6387
6588
|
let t1;
|
|
6589
|
+
let t2_value = /*$_*/ ctx[11]("tournamentsDuration.hoursleft") + "";
|
|
6590
|
+
let t2;
|
|
6388
6591
|
|
|
6389
6592
|
const block = {
|
|
6390
6593
|
c: function create() {
|
|
6391
6594
|
div = element("div");
|
|
6392
6595
|
t0 = text(/*tournamentLeftDays*/ ctx[5]);
|
|
6393
|
-
t1 =
|
|
6596
|
+
t1 = space();
|
|
6597
|
+
t2 = text(t2_value);
|
|
6394
6598
|
attr_dev(div, "class", "Remaining");
|
|
6395
|
-
add_location(div, file$5,
|
|
6599
|
+
add_location(div, file$5, 90, 14, 3384);
|
|
6396
6600
|
},
|
|
6397
6601
|
m: function mount(target, anchor) {
|
|
6398
6602
|
insert_dev(target, div, anchor);
|
|
6399
6603
|
append_dev(div, t0);
|
|
6400
6604
|
append_dev(div, t1);
|
|
6605
|
+
append_dev(div, t2);
|
|
6401
6606
|
},
|
|
6402
6607
|
p: function update(ctx, dirty) {
|
|
6403
6608
|
if (dirty & /*tournamentLeftDays*/ 32) set_data_dev(t0, /*tournamentLeftDays*/ ctx[5]);
|
|
6609
|
+
if (dirty & /*$_*/ 2048 && t2_value !== (t2_value = /*$_*/ ctx[11]("tournamentsDuration.hoursleft") + "")) set_data_dev(t2, t2_value);
|
|
6404
6610
|
},
|
|
6405
6611
|
d: function destroy(detaching) {
|
|
6406
6612
|
if (detaching) detach_dev(div);
|
|
@@ -6411,34 +6617,39 @@
|
|
|
6411
6617
|
block,
|
|
6412
6618
|
id: create_if_block_5$2.name,
|
|
6413
6619
|
type: "if",
|
|
6414
|
-
source: "(
|
|
6620
|
+
source: "(90:12) {#if diffHours}",
|
|
6415
6621
|
ctx
|
|
6416
6622
|
});
|
|
6417
6623
|
|
|
6418
6624
|
return block;
|
|
6419
6625
|
}
|
|
6420
6626
|
|
|
6421
|
-
// (
|
|
6627
|
+
// (93:12) {#if diffDays}
|
|
6422
6628
|
function create_if_block_4$3(ctx) {
|
|
6423
6629
|
let div;
|
|
6424
6630
|
let t0;
|
|
6425
6631
|
let t1;
|
|
6632
|
+
let t2_value = /*$_*/ ctx[11]("tournamentsDuration.daysleft") + "";
|
|
6633
|
+
let t2;
|
|
6426
6634
|
|
|
6427
6635
|
const block = {
|
|
6428
6636
|
c: function create() {
|
|
6429
6637
|
div = element("div");
|
|
6430
6638
|
t0 = text(/*tournamentLeftDays*/ ctx[5]);
|
|
6431
|
-
t1 =
|
|
6639
|
+
t1 = space();
|
|
6640
|
+
t2 = text(t2_value);
|
|
6432
6641
|
attr_dev(div, "class", "Remaining");
|
|
6433
|
-
add_location(div, file$5,
|
|
6642
|
+
add_location(div, file$5, 93, 14, 3531);
|
|
6434
6643
|
},
|
|
6435
6644
|
m: function mount(target, anchor) {
|
|
6436
6645
|
insert_dev(target, div, anchor);
|
|
6437
6646
|
append_dev(div, t0);
|
|
6438
6647
|
append_dev(div, t1);
|
|
6648
|
+
append_dev(div, t2);
|
|
6439
6649
|
},
|
|
6440
6650
|
p: function update(ctx, dirty) {
|
|
6441
6651
|
if (dirty & /*tournamentLeftDays*/ 32) set_data_dev(t0, /*tournamentLeftDays*/ ctx[5]);
|
|
6652
|
+
if (dirty & /*$_*/ 2048 && t2_value !== (t2_value = /*$_*/ ctx[11]("tournamentsDuration.daysleft") + "")) set_data_dev(t2, t2_value);
|
|
6442
6653
|
},
|
|
6443
6654
|
d: function destroy(detaching) {
|
|
6444
6655
|
if (detaching) detach_dev(div);
|
|
@@ -6449,7 +6660,7 @@
|
|
|
6449
6660
|
block,
|
|
6450
6661
|
id: create_if_block_4$3.name,
|
|
6451
6662
|
type: "if",
|
|
6452
|
-
source: "(
|
|
6663
|
+
source: "(93:12) {#if diffDays}",
|
|
6453
6664
|
ctx
|
|
6454
6665
|
});
|
|
6455
6666
|
|
|
@@ -6466,7 +6677,7 @@
|
|
|
6466
6677
|
if (if_block) if_block.c();
|
|
6467
6678
|
this.c = noop$1;
|
|
6468
6679
|
attr_dev(div, "class", "TournamentDuration");
|
|
6469
|
-
add_location(div, file$5,
|
|
6680
|
+
add_location(div, file$5, 69, 0, 2337);
|
|
6470
6681
|
},
|
|
6471
6682
|
l: function claim(nodes) {
|
|
6472
6683
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -6509,6 +6720,9 @@
|
|
|
6509
6720
|
}
|
|
6510
6721
|
|
|
6511
6722
|
function instance$5($$self, $$props, $$invalidate) {
|
|
6723
|
+
let $_;
|
|
6724
|
+
validate_store(X, "_");
|
|
6725
|
+
component_subscribe($$self, X, $$value => $$invalidate(11, $_ = $$value));
|
|
6512
6726
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
6513
6727
|
validate_slots("undefined", slots, []);
|
|
6514
6728
|
let { startdate = "" } = $$props;
|
|
@@ -6525,6 +6739,10 @@
|
|
|
6525
6739
|
let diffHours = false;
|
|
6526
6740
|
let diffDays = false;
|
|
6527
6741
|
|
|
6742
|
+
Object.keys(TournamentsDurationTranslations).forEach(item => {
|
|
6743
|
+
addNewMessages$2(item, TournamentsDurationTranslations[item]);
|
|
6744
|
+
});
|
|
6745
|
+
|
|
6528
6746
|
const formatDate = date => {
|
|
6529
6747
|
const dateOptions = { month: "long" };
|
|
6530
6748
|
let currentDate = new Date(date);
|
|
@@ -6578,7 +6796,7 @@
|
|
|
6578
6796
|
|
|
6579
6797
|
const writable_props = ["startdate", "enddate", "status"];
|
|
6580
6798
|
|
|
6581
|
-
|
|
6799
|
+
Object_1$4.keys($$props).forEach(key => {
|
|
6582
6800
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
6583
6801
|
});
|
|
6584
6802
|
|
|
@@ -6589,6 +6807,10 @@
|
|
|
6589
6807
|
};
|
|
6590
6808
|
|
|
6591
6809
|
$$self.$capture_state = () => ({
|
|
6810
|
+
_: X,
|
|
6811
|
+
addNewMessages: addNewMessages$2,
|
|
6812
|
+
setLocale,
|
|
6813
|
+
TournamentsDurationTranslations,
|
|
6592
6814
|
startdate,
|
|
6593
6815
|
enddate,
|
|
6594
6816
|
status,
|
|
@@ -6606,7 +6828,8 @@
|
|
|
6606
6828
|
formatStartDate,
|
|
6607
6829
|
formatEndDate,
|
|
6608
6830
|
diffTwoDates,
|
|
6609
|
-
getDuration
|
|
6831
|
+
getDuration,
|
|
6832
|
+
$_
|
|
6610
6833
|
});
|
|
6611
6834
|
|
|
6612
6835
|
$$self.$inject_state = $$props => {
|
|
@@ -6641,6 +6864,7 @@
|
|
|
6641
6864
|
diffMinutes,
|
|
6642
6865
|
diffHours,
|
|
6643
6866
|
diffDays,
|
|
6867
|
+
$_,
|
|
6644
6868
|
formatStartDate,
|
|
6645
6869
|
formatEndDate,
|
|
6646
6870
|
getDuration
|
|
@@ -6711,17 +6935,38 @@
|
|
|
6711
6935
|
|
|
6712
6936
|
!customElements.get('casino-tournaments-thumbnail-duration') && customElements.define('casino-tournaments-thumbnail-duration', CasinoTournmanetsThumbnailDuration);
|
|
6713
6937
|
|
|
6938
|
+
function addNewMessages$1(lang, dict) {
|
|
6939
|
+
m(lang, dict);
|
|
6940
|
+
}
|
|
6941
|
+
|
|
6942
|
+
const TournamentsPrizesTranslations = {
|
|
6943
|
+
en: {
|
|
6944
|
+
tournamentsPrizes: {
|
|
6945
|
+
prizes: 'Prizes',
|
|
6946
|
+
noprizes: 'No available prizes'
|
|
6947
|
+
}
|
|
6948
|
+
},
|
|
6949
|
+
tr: {
|
|
6950
|
+
tournamentsPrizes: {
|
|
6951
|
+
prizes: 'Prizes',
|
|
6952
|
+
noprizes: 'No available prizes'
|
|
6953
|
+
}
|
|
6954
|
+
},
|
|
6955
|
+
};
|
|
6956
|
+
|
|
6714
6957
|
/* ../casino-tournaments-thumbnail-prizes/src/CasinoTournamentsThumbnailPrizes.svelte generated by Svelte v3.37.0 */
|
|
6958
|
+
|
|
6959
|
+
const { Object: Object_1$3 } = globals;
|
|
6715
6960
|
const file$4 = "../casino-tournaments-thumbnail-prizes/src/CasinoTournamentsThumbnailPrizes.svelte";
|
|
6716
6961
|
|
|
6717
6962
|
function get_each_context$3(ctx, list, i) {
|
|
6718
6963
|
const child_ctx = ctx.slice();
|
|
6719
|
-
child_ctx[
|
|
6720
|
-
child_ctx[
|
|
6964
|
+
child_ctx[4] = list[i];
|
|
6965
|
+
child_ctx[6] = i;
|
|
6721
6966
|
return child_ctx;
|
|
6722
6967
|
}
|
|
6723
6968
|
|
|
6724
|
-
// (
|
|
6969
|
+
// (28:2) {#if prizes}
|
|
6725
6970
|
function create_if_block$4(ctx) {
|
|
6726
6971
|
let div;
|
|
6727
6972
|
let each_value = /*prizes*/ ctx[0];
|
|
@@ -6751,7 +6996,7 @@
|
|
|
6751
6996
|
}
|
|
6752
6997
|
|
|
6753
6998
|
attr_dev(div, "class", "Prizes");
|
|
6754
|
-
add_location(div, file$4,
|
|
6999
|
+
add_location(div, file$4, 28, 4, 1781);
|
|
6755
7000
|
},
|
|
6756
7001
|
m: function mount(target, anchor) {
|
|
6757
7002
|
insert_dev(target, div, anchor);
|
|
@@ -6765,7 +7010,7 @@
|
|
|
6765
7010
|
}
|
|
6766
7011
|
},
|
|
6767
7012
|
p: function update(ctx, dirty) {
|
|
6768
|
-
if (dirty & /*prizes*/
|
|
7013
|
+
if (dirty & /*prizes, $_*/ 3) {
|
|
6769
7014
|
each_value = /*prizes*/ ctx[0];
|
|
6770
7015
|
validate_each_argument(each_value);
|
|
6771
7016
|
let i;
|
|
@@ -6788,15 +7033,15 @@
|
|
|
6788
7033
|
|
|
6789
7034
|
each_blocks.length = each_value.length;
|
|
6790
7035
|
|
|
6791
|
-
if (each_value.length) {
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
each_1_else = null;
|
|
6795
|
-
}
|
|
6796
|
-
} else if (!each_1_else) {
|
|
7036
|
+
if (!each_value.length && each_1_else) {
|
|
7037
|
+
each_1_else.p(ctx, dirty);
|
|
7038
|
+
} else if (!each_value.length) {
|
|
6797
7039
|
each_1_else = create_else_block$3(ctx);
|
|
6798
7040
|
each_1_else.c();
|
|
6799
7041
|
each_1_else.m(div, null);
|
|
7042
|
+
} else if (each_1_else) {
|
|
7043
|
+
each_1_else.d(1);
|
|
7044
|
+
each_1_else = null;
|
|
6800
7045
|
}
|
|
6801
7046
|
}
|
|
6802
7047
|
},
|
|
@@ -6811,25 +7056,31 @@
|
|
|
6811
7056
|
block,
|
|
6812
7057
|
id: create_if_block$4.name,
|
|
6813
7058
|
type: "if",
|
|
6814
|
-
source: "(
|
|
7059
|
+
source: "(28:2) {#if prizes}",
|
|
6815
7060
|
ctx
|
|
6816
7061
|
});
|
|
6817
7062
|
|
|
6818
7063
|
return block;
|
|
6819
7064
|
}
|
|
6820
7065
|
|
|
6821
|
-
// (
|
|
7066
|
+
// (34:6) {:else}
|
|
6822
7067
|
function create_else_block$3(ctx) {
|
|
6823
7068
|
let p;
|
|
7069
|
+
let t_value = /*$_*/ ctx[1]("tournamentsPrizes.noprizes") + "";
|
|
7070
|
+
let t;
|
|
6824
7071
|
|
|
6825
7072
|
const block = {
|
|
6826
7073
|
c: function create() {
|
|
6827
7074
|
p = element("p");
|
|
6828
|
-
|
|
6829
|
-
add_location(p, file$4,
|
|
7075
|
+
t = text(t_value);
|
|
7076
|
+
add_location(p, file$4, 34, 8, 1973);
|
|
6830
7077
|
},
|
|
6831
7078
|
m: function mount(target, anchor) {
|
|
6832
7079
|
insert_dev(target, p, anchor);
|
|
7080
|
+
append_dev(p, t);
|
|
7081
|
+
},
|
|
7082
|
+
p: function update(ctx, dirty) {
|
|
7083
|
+
if (dirty & /*$_*/ 2 && t_value !== (t_value = /*$_*/ ctx[1]("tournamentsPrizes.noprizes") + "")) set_data_dev(t, t_value);
|
|
6833
7084
|
},
|
|
6834
7085
|
d: function destroy(detaching) {
|
|
6835
7086
|
if (detaching) detach_dev(p);
|
|
@@ -6840,22 +7091,22 @@
|
|
|
6840
7091
|
block,
|
|
6841
7092
|
id: create_else_block$3.name,
|
|
6842
7093
|
type: "else",
|
|
6843
|
-
source: "(
|
|
7094
|
+
source: "(34:6) {:else}",
|
|
6844
7095
|
ctx
|
|
6845
7096
|
});
|
|
6846
7097
|
|
|
6847
7098
|
return block;
|
|
6848
7099
|
}
|
|
6849
7100
|
|
|
6850
|
-
// (
|
|
7101
|
+
// (30:6) {#each prizes as prize, index}
|
|
6851
7102
|
function create_each_block$3(ctx) {
|
|
6852
7103
|
let div;
|
|
6853
7104
|
let p;
|
|
6854
7105
|
let span;
|
|
6855
|
-
let t0_value = /*prize*/ ctx[
|
|
7106
|
+
let t0_value = /*prize*/ ctx[4].rank + "";
|
|
6856
7107
|
let t0;
|
|
6857
7108
|
let t1;
|
|
6858
|
-
let t2_value = /*prize*/ ctx[
|
|
7109
|
+
let t2_value = /*prize*/ ctx[4].name + "";
|
|
6859
7110
|
let t2;
|
|
6860
7111
|
let t3;
|
|
6861
7112
|
|
|
@@ -6868,10 +7119,10 @@
|
|
|
6868
7119
|
t1 = space();
|
|
6869
7120
|
t2 = text(t2_value);
|
|
6870
7121
|
t3 = space();
|
|
6871
|
-
add_location(span, file$4,
|
|
6872
|
-
add_location(p, file$4,
|
|
6873
|
-
attr_dev(div, "class", "Prize Prize" + /*index*/ ctx[
|
|
6874
|
-
add_location(div, file$4,
|
|
7122
|
+
add_location(span, file$4, 31, 13, 1893);
|
|
7123
|
+
add_location(p, file$4, 31, 10, 1890);
|
|
7124
|
+
attr_dev(div, "class", "Prize Prize" + /*index*/ ctx[6]);
|
|
7125
|
+
add_location(div, file$4, 30, 8, 1847);
|
|
6875
7126
|
},
|
|
6876
7127
|
m: function mount(target, anchor) {
|
|
6877
7128
|
insert_dev(target, div, anchor);
|
|
@@ -6883,8 +7134,8 @@
|
|
|
6883
7134
|
append_dev(div, t3);
|
|
6884
7135
|
},
|
|
6885
7136
|
p: function update(ctx, dirty) {
|
|
6886
|
-
if (dirty & /*prizes*/ 1 && t0_value !== (t0_value = /*prize*/ ctx[
|
|
6887
|
-
if (dirty & /*prizes*/ 1 && t2_value !== (t2_value = /*prize*/ ctx[
|
|
7137
|
+
if (dirty & /*prizes*/ 1 && t0_value !== (t0_value = /*prize*/ ctx[4].rank + "")) set_data_dev(t0, t0_value);
|
|
7138
|
+
if (dirty & /*prizes*/ 1 && t2_value !== (t2_value = /*prize*/ ctx[4].name + "")) set_data_dev(t2, t2_value);
|
|
6888
7139
|
},
|
|
6889
7140
|
d: function destroy(detaching) {
|
|
6890
7141
|
if (detaching) detach_dev(div);
|
|
@@ -6895,7 +7146,7 @@
|
|
|
6895
7146
|
block,
|
|
6896
7147
|
id: create_each_block$3.name,
|
|
6897
7148
|
type: "each",
|
|
6898
|
-
source: "(
|
|
7149
|
+
source: "(30:6) {#each prizes as prize, index}",
|
|
6899
7150
|
ctx
|
|
6900
7151
|
});
|
|
6901
7152
|
|
|
@@ -6911,6 +7162,8 @@
|
|
|
6911
7162
|
let path;
|
|
6912
7163
|
let t1;
|
|
6913
7164
|
let p;
|
|
7165
|
+
let t2_value = /*$_*/ ctx[1]("tournamentsPrizes.prizes") + "";
|
|
7166
|
+
let t2;
|
|
6914
7167
|
let t3;
|
|
6915
7168
|
let if_block = /*prizes*/ ctx[0] && create_if_block$4(ctx);
|
|
6916
7169
|
|
|
@@ -6924,25 +7177,25 @@
|
|
|
6924
7177
|
path = svg_element("path");
|
|
6925
7178
|
t1 = space();
|
|
6926
7179
|
p = element("p");
|
|
6927
|
-
|
|
7180
|
+
t2 = text(t2_value);
|
|
6928
7181
|
t3 = space();
|
|
6929
7182
|
if (if_block) if_block.c();
|
|
6930
7183
|
this.c = noop$1;
|
|
6931
|
-
add_location(style, file$4,
|
|
6932
|
-
add_location(defs, file$4,
|
|
7184
|
+
add_location(style, file$4, 25, 99, 829);
|
|
7185
|
+
add_location(defs, file$4, 25, 93, 823);
|
|
6933
7186
|
attr_dev(path, "class", "a");
|
|
6934
7187
|
attr_dev(path, "d", "M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z");
|
|
6935
7188
|
attr_dev(path, "transform", "translate(-5.999 -9.76)");
|
|
6936
|
-
add_location(path, file$4,
|
|
7189
|
+
add_location(path, file$4, 25, 135, 865);
|
|
6937
7190
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
6938
7191
|
attr_dev(svg, "width", "30");
|
|
6939
7192
|
attr_dev(svg, "height", "27.454");
|
|
6940
7193
|
attr_dev(svg, "viewBox", "0 0 30 27.454");
|
|
6941
|
-
add_location(svg, file$4,
|
|
7194
|
+
add_location(svg, file$4, 25, 2, 732);
|
|
6942
7195
|
attr_dev(p, "class", "PrizesTitle");
|
|
6943
|
-
add_location(p, file$4,
|
|
7196
|
+
add_location(p, file$4, 26, 2, 1702);
|
|
6944
7197
|
attr_dev(div, "class", "TournamentPrizes");
|
|
6945
|
-
add_location(div, file$4,
|
|
7198
|
+
add_location(div, file$4, 24, 0, 699);
|
|
6946
7199
|
},
|
|
6947
7200
|
l: function claim(nodes) {
|
|
6948
7201
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -6956,10 +7209,13 @@
|
|
|
6956
7209
|
append_dev(svg, path);
|
|
6957
7210
|
append_dev(div, t1);
|
|
6958
7211
|
append_dev(div, p);
|
|
7212
|
+
append_dev(p, t2);
|
|
6959
7213
|
append_dev(div, t3);
|
|
6960
7214
|
if (if_block) if_block.m(div, null);
|
|
6961
7215
|
},
|
|
6962
7216
|
p: function update(ctx, [dirty]) {
|
|
7217
|
+
if (dirty & /*$_*/ 2 && t2_value !== (t2_value = /*$_*/ ctx[1]("tournamentsPrizes.prizes") + "")) set_data_dev(t2, t2_value);
|
|
7218
|
+
|
|
6963
7219
|
if (/*prizes*/ ctx[0]) {
|
|
6964
7220
|
if (if_block) {
|
|
6965
7221
|
if_block.p(ctx, dirty);
|
|
@@ -6993,11 +7249,18 @@
|
|
|
6993
7249
|
}
|
|
6994
7250
|
|
|
6995
7251
|
function instance$4($$self, $$props, $$invalidate) {
|
|
7252
|
+
let $_;
|
|
7253
|
+
validate_store(X, "_");
|
|
7254
|
+
component_subscribe($$self, X, $$value => $$invalidate(1, $_ = $$value));
|
|
6996
7255
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
6997
7256
|
validate_slots("undefined", slots, []);
|
|
6998
7257
|
let { tourid = "" } = $$props;
|
|
6999
7258
|
let prizes = undefined;
|
|
7000
7259
|
|
|
7260
|
+
Object.keys(TournamentsPrizesTranslations).forEach(item => {
|
|
7261
|
+
addNewMessages$1(item, TournamentsPrizesTranslations[item]);
|
|
7262
|
+
});
|
|
7263
|
+
|
|
7001
7264
|
const messageHandler = e => {
|
|
7002
7265
|
if (e.data && e.data.type == `TournamentPrizes_${tourid}`) {
|
|
7003
7266
|
$$invalidate(0, prizes = e.data.prizes);
|
|
@@ -7014,18 +7277,27 @@
|
|
|
7014
7277
|
|
|
7015
7278
|
const writable_props = ["tourid"];
|
|
7016
7279
|
|
|
7017
|
-
|
|
7280
|
+
Object_1$3.keys($$props).forEach(key => {
|
|
7018
7281
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
7019
7282
|
});
|
|
7020
7283
|
|
|
7021
7284
|
$$self.$$set = $$props => {
|
|
7022
|
-
if ("tourid" in $$props) $$invalidate(
|
|
7285
|
+
if ("tourid" in $$props) $$invalidate(2, tourid = $$props.tourid);
|
|
7023
7286
|
};
|
|
7024
7287
|
|
|
7025
|
-
$$self.$capture_state = () => ({
|
|
7288
|
+
$$self.$capture_state = () => ({
|
|
7289
|
+
onMount,
|
|
7290
|
+
_: X,
|
|
7291
|
+
addNewMessages: addNewMessages$1,
|
|
7292
|
+
TournamentsPrizesTranslations,
|
|
7293
|
+
tourid,
|
|
7294
|
+
prizes,
|
|
7295
|
+
messageHandler,
|
|
7296
|
+
$_
|
|
7297
|
+
});
|
|
7026
7298
|
|
|
7027
7299
|
$$self.$inject_state = $$props => {
|
|
7028
|
-
if ("tourid" in $$props) $$invalidate(
|
|
7300
|
+
if ("tourid" in $$props) $$invalidate(2, tourid = $$props.tourid);
|
|
7029
7301
|
if ("prizes" in $$props) $$invalidate(0, prizes = $$props.prizes);
|
|
7030
7302
|
};
|
|
7031
7303
|
|
|
@@ -7033,7 +7305,7 @@
|
|
|
7033
7305
|
$$self.$inject_state($$props.$$inject);
|
|
7034
7306
|
}
|
|
7035
7307
|
|
|
7036
|
-
return [prizes, tourid];
|
|
7308
|
+
return [prizes, $_, tourid];
|
|
7037
7309
|
}
|
|
7038
7310
|
|
|
7039
7311
|
class CasinoTournamentsThumbnailPrizes extends SvelteElement {
|
|
@@ -7051,7 +7323,7 @@
|
|
|
7051
7323
|
instance$4,
|
|
7052
7324
|
create_fragment$4,
|
|
7053
7325
|
safe_not_equal,
|
|
7054
|
-
{ tourid:
|
|
7326
|
+
{ tourid: 2 }
|
|
7055
7327
|
);
|
|
7056
7328
|
|
|
7057
7329
|
if (options) {
|
|
@@ -7071,7 +7343,7 @@
|
|
|
7071
7343
|
}
|
|
7072
7344
|
|
|
7073
7345
|
get tourid() {
|
|
7074
|
-
return this.$$.ctx[
|
|
7346
|
+
return this.$$.ctx[2];
|
|
7075
7347
|
}
|
|
7076
7348
|
|
|
7077
7349
|
set tourid(tourid) {
|
|
@@ -7731,9 +8003,11 @@
|
|
|
7731
8003
|
!customElements.get('casino-tournaments-thumbnail-games-slider') && customElements.define('casino-tournaments-thumbnail-games-slider', CasinoTournamentsThumbnailGamesSlider);
|
|
7732
8004
|
|
|
7733
8005
|
/* ../casino-tournaments-thumbnail-controller/src/CasinoTournamentsThumbnailController.svelte generated by Svelte v3.37.0 */
|
|
8006
|
+
|
|
8007
|
+
const { Object: Object_1$2 } = globals;
|
|
7734
8008
|
const file$2 = "../casino-tournaments-thumbnail-controller/src/CasinoTournamentsThumbnailController.svelte";
|
|
7735
8009
|
|
|
7736
|
-
// (
|
|
8010
|
+
// (198:0) {:else}
|
|
7737
8011
|
function create_else_block$2(ctx) {
|
|
7738
8012
|
let div1;
|
|
7739
8013
|
let casino_tournaments_thumbnail;
|
|
@@ -7781,11 +8055,11 @@
|
|
|
7781
8055
|
set_custom_element_data(casino_tournaments_thumbnail, "userenrolled", /*userenrolled*/ ctx[19]);
|
|
7782
8056
|
set_custom_element_data(casino_tournaments_thumbnail, "showenrolled", /*showenrolled*/ ctx[5]);
|
|
7783
8057
|
set_custom_element_data(casino_tournaments_thumbnail, "gameurl", /*gameurl*/ ctx[23]);
|
|
7784
|
-
add_location(casino_tournaments_thumbnail, file$2,
|
|
8058
|
+
add_location(casino_tournaments_thumbnail, file$2, 199, 4, 6063);
|
|
7785
8059
|
attr_dev(div0, "class", "TournamentButtons");
|
|
7786
|
-
add_location(div0, file$2,
|
|
8060
|
+
add_location(div0, file$2, 228, 4, 6874);
|
|
7787
8061
|
attr_dev(div1, "class", div1_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
|
|
7788
|
-
add_location(div1, file$2,
|
|
8062
|
+
add_location(div1, file$2, 198, 2, 5965);
|
|
7789
8063
|
},
|
|
7790
8064
|
m: function mount(target, anchor) {
|
|
7791
8065
|
insert_dev(target, div1, anchor);
|
|
@@ -7921,14 +8195,14 @@
|
|
|
7921
8195
|
block,
|
|
7922
8196
|
id: create_else_block$2.name,
|
|
7923
8197
|
type: "else",
|
|
7924
|
-
source: "(
|
|
8198
|
+
source: "(198:0) {:else}",
|
|
7925
8199
|
ctx
|
|
7926
8200
|
});
|
|
7927
8201
|
|
|
7928
8202
|
return block;
|
|
7929
8203
|
}
|
|
7930
8204
|
|
|
7931
|
-
// (
|
|
8205
|
+
// (181:0) {#if isLoading}
|
|
7932
8206
|
function create_if_block$2(ctx) {
|
|
7933
8207
|
let div11;
|
|
7934
8208
|
let div10;
|
|
@@ -7973,29 +8247,29 @@
|
|
|
7973
8247
|
t6 = space();
|
|
7974
8248
|
div7 = element("div");
|
|
7975
8249
|
attr_dev(div0, "class", "ph-picture");
|
|
7976
|
-
add_location(div0, file$2,
|
|
8250
|
+
add_location(div0, file$2, 184, 10, 5527);
|
|
7977
8251
|
attr_dev(div1, "class", "ph-col-6 big");
|
|
7978
|
-
add_location(div1, file$2,
|
|
8252
|
+
add_location(div1, file$2, 186, 12, 5601);
|
|
7979
8253
|
attr_dev(div2, "class", "ph-col-4 empty big");
|
|
7980
|
-
add_location(div2, file$2,
|
|
8254
|
+
add_location(div2, file$2, 187, 12, 5646);
|
|
7981
8255
|
attr_dev(div3, "class", "ph-col-4");
|
|
7982
|
-
add_location(div3, file$2,
|
|
8256
|
+
add_location(div3, file$2, 188, 12, 5697);
|
|
7983
8257
|
attr_dev(div4, "class", "ph-col-8 empty");
|
|
7984
|
-
add_location(div4, file$2,
|
|
8258
|
+
add_location(div4, file$2, 189, 12, 5738);
|
|
7985
8259
|
attr_dev(div5, "class", "ph-col-6");
|
|
7986
|
-
add_location(div5, file$2,
|
|
8260
|
+
add_location(div5, file$2, 190, 12, 5785);
|
|
7987
8261
|
attr_dev(div6, "class", "ph-col-6 empty");
|
|
7988
|
-
add_location(div6, file$2,
|
|
8262
|
+
add_location(div6, file$2, 191, 12, 5826);
|
|
7989
8263
|
attr_dev(div7, "class", "ph-col-12");
|
|
7990
|
-
add_location(div7, file$2,
|
|
8264
|
+
add_location(div7, file$2, 192, 12, 5873);
|
|
7991
8265
|
attr_dev(div8, "class", "ph-row");
|
|
7992
|
-
add_location(div8, file$2,
|
|
8266
|
+
add_location(div8, file$2, 185, 10, 5568);
|
|
7993
8267
|
attr_dev(div9, "class", "ph-col-12");
|
|
7994
|
-
add_location(div9, file$2,
|
|
8268
|
+
add_location(div9, file$2, 183, 8, 5493);
|
|
7995
8269
|
attr_dev(div10, "class", "ph-item");
|
|
7996
|
-
add_location(div10, file$2,
|
|
8270
|
+
add_location(div10, file$2, 182, 6, 5463);
|
|
7997
8271
|
attr_dev(div11, "class", div11_class_value = "TournamentCard " + (/*maxwidth*/ ctx[6] ? "CardMaxWidth" : "") + (/*fullsize*/ ctx[7] ? "CardFullSize" : ""));
|
|
7998
|
-
add_location(div11, file$2,
|
|
8272
|
+
add_location(div11, file$2, 181, 2, 5363);
|
|
7999
8273
|
},
|
|
8000
8274
|
m: function mount(target, anchor) {
|
|
8001
8275
|
insert_dev(target, div11, anchor);
|
|
@@ -8032,14 +8306,14 @@
|
|
|
8032
8306
|
block,
|
|
8033
8307
|
id: create_if_block$2.name,
|
|
8034
8308
|
type: "if",
|
|
8035
|
-
source: "(
|
|
8309
|
+
source: "(181:0) {#if isLoading}",
|
|
8036
8310
|
ctx
|
|
8037
8311
|
});
|
|
8038
8312
|
|
|
8039
8313
|
return block;
|
|
8040
8314
|
}
|
|
8041
8315
|
|
|
8042
|
-
// (
|
|
8316
|
+
// (215:4) {#if isLoggedIn}
|
|
8043
8317
|
function create_if_block_10$1(ctx) {
|
|
8044
8318
|
let t;
|
|
8045
8319
|
let casino_tournaments_thumbnail_duration;
|
|
@@ -8053,7 +8327,7 @@
|
|
|
8053
8327
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "status", /*status*/ ctx[16]);
|
|
8054
8328
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "startdate", /*startdate*/ ctx[14]);
|
|
8055
8329
|
set_custom_element_data(casino_tournaments_thumbnail_duration, "enddate", /*enddate*/ ctx[15]);
|
|
8056
|
-
add_location(casino_tournaments_thumbnail_duration, file$2,
|
|
8330
|
+
add_location(casino_tournaments_thumbnail_duration, file$2, 222, 6, 6693);
|
|
8057
8331
|
},
|
|
8058
8332
|
m: function mount(target, anchor) {
|
|
8059
8333
|
if (if_block) if_block.m(target, anchor);
|
|
@@ -8097,14 +8371,14 @@
|
|
|
8097
8371
|
block,
|
|
8098
8372
|
id: create_if_block_10$1.name,
|
|
8099
8373
|
type: "if",
|
|
8100
|
-
source: "(
|
|
8374
|
+
source: "(215:4) {#if isLoggedIn}",
|
|
8101
8375
|
ctx
|
|
8102
8376
|
});
|
|
8103
8377
|
|
|
8104
8378
|
return block;
|
|
8105
8379
|
}
|
|
8106
8380
|
|
|
8107
|
-
// (
|
|
8381
|
+
// (216:6) {#if tourid}
|
|
8108
8382
|
function create_if_block_11$1(ctx) {
|
|
8109
8383
|
let casino_tournaments_thumbnail_prizes;
|
|
8110
8384
|
let sendTournamentPrizes_action;
|
|
@@ -8115,13 +8389,13 @@
|
|
|
8115
8389
|
c: function create() {
|
|
8116
8390
|
casino_tournaments_thumbnail_prizes = element("casino-tournaments-thumbnail-prizes");
|
|
8117
8391
|
set_custom_element_data(casino_tournaments_thumbnail_prizes, "tourid", /*tourid*/ ctx[17]);
|
|
8118
|
-
add_location(casino_tournaments_thumbnail_prizes, file$2,
|
|
8392
|
+
add_location(casino_tournaments_thumbnail_prizes, file$2, 216, 8, 6511);
|
|
8119
8393
|
},
|
|
8120
8394
|
m: function mount(target, anchor) {
|
|
8121
8395
|
insert_dev(target, casino_tournaments_thumbnail_prizes, anchor);
|
|
8122
8396
|
|
|
8123
8397
|
if (!mounted) {
|
|
8124
|
-
dispose = action_destroyer(sendTournamentPrizes_action = /*sendTournamentPrizes*/ ctx[
|
|
8398
|
+
dispose = action_destroyer(sendTournamentPrizes_action = /*sendTournamentPrizes*/ ctx[29].call(null, casino_tournaments_thumbnail_prizes, /*tourid*/ ctx[17]));
|
|
8125
8399
|
mounted = true;
|
|
8126
8400
|
}
|
|
8127
8401
|
},
|
|
@@ -8143,14 +8417,14 @@
|
|
|
8143
8417
|
block,
|
|
8144
8418
|
id: create_if_block_11$1.name,
|
|
8145
8419
|
type: "if",
|
|
8146
|
-
source: "(
|
|
8420
|
+
source: "(216:6) {#if tourid}",
|
|
8147
8421
|
ctx
|
|
8148
8422
|
});
|
|
8149
8423
|
|
|
8150
8424
|
return block;
|
|
8151
8425
|
}
|
|
8152
8426
|
|
|
8153
|
-
// (
|
|
8427
|
+
// (255:10) {#if showdetails == 'true'}
|
|
8154
8428
|
function create_if_block_9$1(ctx) {
|
|
8155
8429
|
let button;
|
|
8156
8430
|
let mounted;
|
|
@@ -8161,13 +8435,13 @@
|
|
|
8161
8435
|
button = element("button");
|
|
8162
8436
|
button.textContent = "Details";
|
|
8163
8437
|
attr_dev(button, "class", "DetailsLargeButton");
|
|
8164
|
-
add_location(button, file$2,
|
|
8438
|
+
add_location(button, file$2, 255, 12, 8490);
|
|
8165
8439
|
},
|
|
8166
8440
|
m: function mount(target, anchor) {
|
|
8167
8441
|
insert_dev(target, button, anchor);
|
|
8168
8442
|
|
|
8169
8443
|
if (!mounted) {
|
|
8170
|
-
dispose = listen_dev(button, "click", /*click_handler_4*/ ctx[
|
|
8444
|
+
dispose = listen_dev(button, "click", /*click_handler_4*/ ctx[41], false, false, false);
|
|
8171
8445
|
mounted = true;
|
|
8172
8446
|
}
|
|
8173
8447
|
},
|
|
@@ -8183,14 +8457,14 @@
|
|
|
8183
8457
|
block,
|
|
8184
8458
|
id: create_if_block_9$1.name,
|
|
8185
8459
|
type: "if",
|
|
8186
|
-
source: "(
|
|
8460
|
+
source: "(255:10) {#if showdetails == 'true'}",
|
|
8187
8461
|
ctx
|
|
8188
8462
|
});
|
|
8189
8463
|
|
|
8190
8464
|
return block;
|
|
8191
8465
|
}
|
|
8192
8466
|
|
|
8193
|
-
// (
|
|
8467
|
+
// (234:8) {#if status != 'Closed' && status != 'Closing'}
|
|
8194
8468
|
function create_if_block_4$2(ctx) {
|
|
8195
8469
|
let t;
|
|
8196
8470
|
let if_block1_anchor;
|
|
@@ -8255,48 +8529,57 @@
|
|
|
8255
8529
|
block,
|
|
8256
8530
|
id: create_if_block_4$2.name,
|
|
8257
8531
|
type: "if",
|
|
8258
|
-
source: "(
|
|
8532
|
+
source: "(234:8) {#if status != 'Closed' && status != 'Closing'}",
|
|
8259
8533
|
ctx
|
|
8260
8534
|
});
|
|
8261
8535
|
|
|
8262
8536
|
return block;
|
|
8263
8537
|
}
|
|
8264
8538
|
|
|
8265
|
-
// (
|
|
8539
|
+
// (230:6) {#if !isLoggedIn}
|
|
8266
8540
|
function create_if_block_3$2(ctx) {
|
|
8267
8541
|
let button0;
|
|
8542
|
+
let t0_value = /*$_*/ ctx[24]("tournamentsThController.login") + "";
|
|
8543
|
+
let t0;
|
|
8268
8544
|
let t1;
|
|
8269
8545
|
let button1;
|
|
8546
|
+
let t2_value = /*$_*/ ctx[24]("tournamentsThController.register") + "";
|
|
8547
|
+
let t2;
|
|
8270
8548
|
let mounted;
|
|
8271
8549
|
let dispose;
|
|
8272
8550
|
|
|
8273
8551
|
const block = {
|
|
8274
8552
|
c: function create() {
|
|
8275
8553
|
button0 = element("button");
|
|
8276
|
-
|
|
8554
|
+
t0 = text(t0_value);
|
|
8277
8555
|
t1 = space();
|
|
8278
8556
|
button1 = element("button");
|
|
8279
|
-
|
|
8557
|
+
t2 = text(t2_value);
|
|
8280
8558
|
attr_dev(button0, "class", "LoginButton");
|
|
8281
|
-
add_location(button0, file$2,
|
|
8559
|
+
add_location(button0, file$2, 230, 8, 6938);
|
|
8282
8560
|
attr_dev(button1, "class", "RegisterButton");
|
|
8283
|
-
add_location(button1, file$2,
|
|
8561
|
+
add_location(button1, file$2, 231, 8, 7052);
|
|
8284
8562
|
},
|
|
8285
8563
|
m: function mount(target, anchor) {
|
|
8286
8564
|
insert_dev(target, button0, anchor);
|
|
8565
|
+
append_dev(button0, t0);
|
|
8287
8566
|
insert_dev(target, t1, anchor);
|
|
8288
8567
|
insert_dev(target, button1, anchor);
|
|
8568
|
+
append_dev(button1, t2);
|
|
8289
8569
|
|
|
8290
8570
|
if (!mounted) {
|
|
8291
8571
|
dispose = [
|
|
8292
|
-
listen_dev(button0, "click", /*click_handler*/ ctx[
|
|
8293
|
-
listen_dev(button1, "click", /*click_handler_1*/ ctx[
|
|
8572
|
+
listen_dev(button0, "click", /*click_handler*/ ctx[37], false, false, false),
|
|
8573
|
+
listen_dev(button1, "click", /*click_handler_1*/ ctx[38], false, false, false)
|
|
8294
8574
|
];
|
|
8295
8575
|
|
|
8296
8576
|
mounted = true;
|
|
8297
8577
|
}
|
|
8298
8578
|
},
|
|
8299
|
-
p:
|
|
8579
|
+
p: function update(ctx, dirty) {
|
|
8580
|
+
if (dirty[0] & /*$_*/ 16777216 && t0_value !== (t0_value = /*$_*/ ctx[24]("tournamentsThController.login") + "")) set_data_dev(t0, t0_value);
|
|
8581
|
+
if (dirty[0] & /*$_*/ 16777216 && t2_value !== (t2_value = /*$_*/ ctx[24]("tournamentsThController.register") + "")) set_data_dev(t2, t2_value);
|
|
8582
|
+
},
|
|
8300
8583
|
d: function destroy(detaching) {
|
|
8301
8584
|
if (detaching) detach_dev(button0);
|
|
8302
8585
|
if (detaching) detach_dev(t1);
|
|
@@ -8310,35 +8593,40 @@
|
|
|
8310
8593
|
block,
|
|
8311
8594
|
id: create_if_block_3$2.name,
|
|
8312
8595
|
type: "if",
|
|
8313
|
-
source: "(
|
|
8596
|
+
source: "(230:6) {#if !isLoggedIn}",
|
|
8314
8597
|
ctx
|
|
8315
8598
|
});
|
|
8316
8599
|
|
|
8317
8600
|
return block;
|
|
8318
8601
|
}
|
|
8319
8602
|
|
|
8320
|
-
// (
|
|
8603
|
+
// (235:10) {#if showdetails == 'true'}
|
|
8321
8604
|
function create_if_block_8$1(ctx) {
|
|
8322
8605
|
let button;
|
|
8606
|
+
let t_value = /*$_*/ ctx[24]("tournamentsThController.details") + "";
|
|
8607
|
+
let t;
|
|
8323
8608
|
let mounted;
|
|
8324
8609
|
let dispose;
|
|
8325
8610
|
|
|
8326
8611
|
const block = {
|
|
8327
8612
|
c: function create() {
|
|
8328
8613
|
button = element("button");
|
|
8329
|
-
|
|
8614
|
+
t = text(t_value);
|
|
8330
8615
|
attr_dev(button, "class", "DetailsButton");
|
|
8331
|
-
add_location(button, file$2,
|
|
8616
|
+
add_location(button, file$2, 235, 12, 7287);
|
|
8332
8617
|
},
|
|
8333
8618
|
m: function mount(target, anchor) {
|
|
8334
8619
|
insert_dev(target, button, anchor);
|
|
8620
|
+
append_dev(button, t);
|
|
8335
8621
|
|
|
8336
8622
|
if (!mounted) {
|
|
8337
|
-
dispose = listen_dev(button, "click", /*click_handler_2*/ ctx[
|
|
8623
|
+
dispose = listen_dev(button, "click", /*click_handler_2*/ ctx[39], false, false, false);
|
|
8338
8624
|
mounted = true;
|
|
8339
8625
|
}
|
|
8340
8626
|
},
|
|
8341
|
-
p:
|
|
8627
|
+
p: function update(ctx, dirty) {
|
|
8628
|
+
if (dirty[0] & /*$_*/ 16777216 && t_value !== (t_value = /*$_*/ ctx[24]("tournamentsThController.details") + "")) set_data_dev(t, t_value);
|
|
8629
|
+
},
|
|
8342
8630
|
d: function destroy(detaching) {
|
|
8343
8631
|
if (detaching) detach_dev(button);
|
|
8344
8632
|
mounted = false;
|
|
@@ -8350,14 +8638,14 @@
|
|
|
8350
8638
|
block,
|
|
8351
8639
|
id: create_if_block_8$1.name,
|
|
8352
8640
|
type: "if",
|
|
8353
|
-
source: "(
|
|
8641
|
+
source: "(235:10) {#if showdetails == 'true'}",
|
|
8354
8642
|
ctx
|
|
8355
8643
|
});
|
|
8356
8644
|
|
|
8357
8645
|
return block;
|
|
8358
8646
|
}
|
|
8359
8647
|
|
|
8360
|
-
// (
|
|
8648
|
+
// (242:10) {:else}
|
|
8361
8649
|
function create_else_block_1$1(ctx) {
|
|
8362
8650
|
let button;
|
|
8363
8651
|
let button_class_value;
|
|
@@ -8378,19 +8666,21 @@
|
|
|
8378
8666
|
if_block.c();
|
|
8379
8667
|
attr_dev(button, "class", button_class_value = "JoinButton " + (/*fullsize*/ ctx[7] ? "JoinButtonFullSize" : ""));
|
|
8380
8668
|
button.disabled = /*errorJoin*/ ctx[11];
|
|
8381
|
-
add_location(button, file$2,
|
|
8669
|
+
add_location(button, file$2, 242, 12, 7650);
|
|
8382
8670
|
},
|
|
8383
8671
|
m: function mount(target, anchor) {
|
|
8384
8672
|
insert_dev(target, button, anchor);
|
|
8385
8673
|
if_block.m(button, null);
|
|
8386
8674
|
|
|
8387
8675
|
if (!mounted) {
|
|
8388
|
-
dispose = listen_dev(button, "click", /*click_handler_3*/ ctx[
|
|
8676
|
+
dispose = listen_dev(button, "click", /*click_handler_3*/ ctx[40], false, false, false);
|
|
8389
8677
|
mounted = true;
|
|
8390
8678
|
}
|
|
8391
8679
|
},
|
|
8392
8680
|
p: function update(ctx, dirty) {
|
|
8393
|
-
if (current_block_type
|
|
8681
|
+
if (current_block_type === (current_block_type = select_block_type_3(ctx)) && if_block) {
|
|
8682
|
+
if_block.p(ctx, dirty);
|
|
8683
|
+
} else {
|
|
8394
8684
|
if_block.d(1);
|
|
8395
8685
|
if_block = current_block_type(ctx);
|
|
8396
8686
|
|
|
@@ -8420,14 +8710,14 @@
|
|
|
8420
8710
|
block,
|
|
8421
8711
|
id: create_else_block_1$1.name,
|
|
8422
8712
|
type: "else",
|
|
8423
|
-
source: "(
|
|
8713
|
+
source: "(242:10) {:else}",
|
|
8424
8714
|
ctx
|
|
8425
8715
|
});
|
|
8426
8716
|
|
|
8427
8717
|
return block;
|
|
8428
8718
|
}
|
|
8429
8719
|
|
|
8430
|
-
// (
|
|
8720
|
+
// (238:10) {#if userenrolled == true}
|
|
8431
8721
|
function create_if_block_5$1(ctx) {
|
|
8432
8722
|
let if_block_anchor;
|
|
8433
8723
|
let if_block = /*showdetails*/ ctx[3] == "true" && create_if_block_6$1(ctx);
|
|
@@ -8443,7 +8733,9 @@
|
|
|
8443
8733
|
},
|
|
8444
8734
|
p: function update(ctx, dirty) {
|
|
8445
8735
|
if (/*showdetails*/ ctx[3] == "true") {
|
|
8446
|
-
if (if_block)
|
|
8736
|
+
if (if_block) {
|
|
8737
|
+
if_block.p(ctx, dirty);
|
|
8738
|
+
} else {
|
|
8447
8739
|
if_block = create_if_block_6$1(ctx);
|
|
8448
8740
|
if_block.c();
|
|
8449
8741
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -8463,16 +8755,18 @@
|
|
|
8463
8755
|
block,
|
|
8464
8756
|
id: create_if_block_5$1.name,
|
|
8465
8757
|
type: "if",
|
|
8466
|
-
source: "(
|
|
8758
|
+
source: "(238:10) {#if userenrolled == true}",
|
|
8467
8759
|
ctx
|
|
8468
8760
|
});
|
|
8469
8761
|
|
|
8470
8762
|
return block;
|
|
8471
8763
|
}
|
|
8472
8764
|
|
|
8473
|
-
// (
|
|
8765
|
+
// (248:14) {:else}
|
|
8474
8766
|
function create_else_block_2$1(ctx) {
|
|
8475
8767
|
let span;
|
|
8768
|
+
let t0_value = /*$_*/ ctx[24]("tournamentsThController.join") + "";
|
|
8769
|
+
let t0;
|
|
8476
8770
|
let t1;
|
|
8477
8771
|
let svg;
|
|
8478
8772
|
let defs;
|
|
@@ -8484,7 +8778,7 @@
|
|
|
8484
8778
|
const block = {
|
|
8485
8779
|
c: function create() {
|
|
8486
8780
|
span = element("span");
|
|
8487
|
-
|
|
8781
|
+
t0 = text(t0_value);
|
|
8488
8782
|
t1 = space();
|
|
8489
8783
|
svg = svg_element("svg");
|
|
8490
8784
|
defs = svg_element("defs");
|
|
@@ -8492,23 +8786,24 @@
|
|
|
8492
8786
|
t2 = text(".a{fill:#fff;}");
|
|
8493
8787
|
g = svg_element("g");
|
|
8494
8788
|
path = svg_element("path");
|
|
8495
|
-
add_location(span, file$2,
|
|
8496
|
-
add_location(style, file$2,
|
|
8497
|
-
add_location(defs, file$2,
|
|
8789
|
+
add_location(span, file$2, 248, 16, 7986);
|
|
8790
|
+
add_location(style, file$2, 249, 105, 8141);
|
|
8791
|
+
add_location(defs, file$2, 249, 99, 8135);
|
|
8498
8792
|
attr_dev(path, "class", "a");
|
|
8499
8793
|
attr_dev(path, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z");
|
|
8500
8794
|
attr_dev(path, "transform", "translate(26 26) rotate(180)");
|
|
8501
|
-
add_location(path, file$2,
|
|
8795
|
+
add_location(path, file$2, 249, 185, 8221);
|
|
8502
8796
|
attr_dev(g, "transform", "translate(26 26) rotate(180)");
|
|
8503
|
-
add_location(g, file$2,
|
|
8797
|
+
add_location(g, file$2, 249, 141, 8177);
|
|
8504
8798
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
8505
8799
|
attr_dev(svg, "width", "26");
|
|
8506
8800
|
attr_dev(svg, "height", "26");
|
|
8507
8801
|
attr_dev(svg, "viewBox", "0 0 26 26");
|
|
8508
|
-
add_location(svg, file$2,
|
|
8802
|
+
add_location(svg, file$2, 249, 16, 8052);
|
|
8509
8803
|
},
|
|
8510
8804
|
m: function mount(target, anchor) {
|
|
8511
8805
|
insert_dev(target, span, anchor);
|
|
8806
|
+
append_dev(span, t0);
|
|
8512
8807
|
insert_dev(target, t1, anchor);
|
|
8513
8808
|
insert_dev(target, svg, anchor);
|
|
8514
8809
|
append_dev(svg, defs);
|
|
@@ -8517,6 +8812,9 @@
|
|
|
8517
8812
|
append_dev(svg, g);
|
|
8518
8813
|
append_dev(g, path);
|
|
8519
8814
|
},
|
|
8815
|
+
p: function update(ctx, dirty) {
|
|
8816
|
+
if (dirty[0] & /*$_*/ 16777216 && t0_value !== (t0_value = /*$_*/ ctx[24]("tournamentsThController.join") + "")) set_data_dev(t0, t0_value);
|
|
8817
|
+
},
|
|
8520
8818
|
d: function destroy(detaching) {
|
|
8521
8819
|
if (detaching) detach_dev(span);
|
|
8522
8820
|
if (detaching) detach_dev(t1);
|
|
@@ -8528,14 +8826,14 @@
|
|
|
8528
8826
|
block,
|
|
8529
8827
|
id: create_else_block_2$1.name,
|
|
8530
8828
|
type: "else",
|
|
8531
|
-
source: "(
|
|
8829
|
+
source: "(248:14) {:else}",
|
|
8532
8830
|
ctx
|
|
8533
8831
|
});
|
|
8534
8832
|
|
|
8535
8833
|
return block;
|
|
8536
8834
|
}
|
|
8537
8835
|
|
|
8538
|
-
// (
|
|
8836
|
+
// (244:14) {#if joinButtonLoading == true}
|
|
8539
8837
|
function create_if_block_7$1(ctx) {
|
|
8540
8838
|
let svg;
|
|
8541
8839
|
let circle;
|
|
@@ -8547,14 +8845,15 @@
|
|
|
8547
8845
|
attr_dev(circle, "cx", "20");
|
|
8548
8846
|
attr_dev(circle, "cy", "20");
|
|
8549
8847
|
attr_dev(circle, "r", "18");
|
|
8550
|
-
add_location(circle, file$2,
|
|
8848
|
+
add_location(circle, file$2, 245, 18, 7884);
|
|
8551
8849
|
attr_dev(svg, "class", "spinner");
|
|
8552
|
-
add_location(svg, file$2,
|
|
8850
|
+
add_location(svg, file$2, 244, 16, 7844);
|
|
8553
8851
|
},
|
|
8554
8852
|
m: function mount(target, anchor) {
|
|
8555
8853
|
insert_dev(target, svg, anchor);
|
|
8556
8854
|
append_dev(svg, circle);
|
|
8557
8855
|
},
|
|
8856
|
+
p: noop$1,
|
|
8558
8857
|
d: function destroy(detaching) {
|
|
8559
8858
|
if (detaching) detach_dev(svg);
|
|
8560
8859
|
}
|
|
@@ -8564,27 +8863,33 @@
|
|
|
8564
8863
|
block,
|
|
8565
8864
|
id: create_if_block_7$1.name,
|
|
8566
8865
|
type: "if",
|
|
8567
|
-
source: "(
|
|
8866
|
+
source: "(244:14) {#if joinButtonLoading == true}",
|
|
8568
8867
|
ctx
|
|
8569
8868
|
});
|
|
8570
8869
|
|
|
8571
8870
|
return block;
|
|
8572
8871
|
}
|
|
8573
8872
|
|
|
8574
|
-
// (
|
|
8873
|
+
// (239:12) {#if showdetails == 'true'}
|
|
8575
8874
|
function create_if_block_6$1(ctx) {
|
|
8576
8875
|
let button;
|
|
8876
|
+
let t_value = /*$_*/ ctx[24]("tournamentsThController.enrolled") + "";
|
|
8877
|
+
let t;
|
|
8577
8878
|
|
|
8578
8879
|
const block = {
|
|
8579
8880
|
c: function create() {
|
|
8580
8881
|
button = element("button");
|
|
8581
|
-
|
|
8882
|
+
t = text(t_value);
|
|
8582
8883
|
attr_dev(button, "class", "EnrolledButton");
|
|
8583
8884
|
button.disabled = true;
|
|
8584
|
-
add_location(button, file$2,
|
|
8885
|
+
add_location(button, file$2, 239, 14, 7512);
|
|
8585
8886
|
},
|
|
8586
8887
|
m: function mount(target, anchor) {
|
|
8587
8888
|
insert_dev(target, button, anchor);
|
|
8889
|
+
append_dev(button, t);
|
|
8890
|
+
},
|
|
8891
|
+
p: function update(ctx, dirty) {
|
|
8892
|
+
if (dirty[0] & /*$_*/ 16777216 && t_value !== (t_value = /*$_*/ ctx[24]("tournamentsThController.enrolled") + "")) set_data_dev(t, t_value);
|
|
8588
8893
|
},
|
|
8589
8894
|
d: function destroy(detaching) {
|
|
8590
8895
|
if (detaching) detach_dev(button);
|
|
@@ -8595,34 +8900,39 @@
|
|
|
8595
8900
|
block,
|
|
8596
8901
|
id: create_if_block_6$1.name,
|
|
8597
8902
|
type: "if",
|
|
8598
|
-
source: "(
|
|
8903
|
+
source: "(239:12) {#if showdetails == 'true'}",
|
|
8599
8904
|
ctx
|
|
8600
8905
|
});
|
|
8601
8906
|
|
|
8602
8907
|
return block;
|
|
8603
8908
|
}
|
|
8604
8909
|
|
|
8605
|
-
// (
|
|
8910
|
+
// (261:4) {#if errorJoin}
|
|
8606
8911
|
function create_if_block_2$2(ctx) {
|
|
8607
8912
|
let span;
|
|
8913
|
+
let t0_value = /*$_*/ ctx[24]("tournamentsThController.joinerror") + "";
|
|
8608
8914
|
let t0;
|
|
8609
8915
|
let t1;
|
|
8916
|
+
let t2;
|
|
8610
8917
|
|
|
8611
8918
|
const block = {
|
|
8612
8919
|
c: function create() {
|
|
8613
8920
|
span = element("span");
|
|
8614
|
-
t0 = text(
|
|
8615
|
-
t1 =
|
|
8921
|
+
t0 = text(t0_value);
|
|
8922
|
+
t1 = space();
|
|
8923
|
+
t2 = text(/*errorJoinText*/ ctx[12]);
|
|
8616
8924
|
attr_dev(span, "class", "ErrorText");
|
|
8617
|
-
add_location(span, file$2,
|
|
8925
|
+
add_location(span, file$2, 261, 6, 8660);
|
|
8618
8926
|
},
|
|
8619
8927
|
m: function mount(target, anchor) {
|
|
8620
8928
|
insert_dev(target, span, anchor);
|
|
8621
8929
|
append_dev(span, t0);
|
|
8622
8930
|
append_dev(span, t1);
|
|
8931
|
+
append_dev(span, t2);
|
|
8623
8932
|
},
|
|
8624
8933
|
p: function update(ctx, dirty) {
|
|
8625
|
-
if (dirty[0] &
|
|
8934
|
+
if (dirty[0] & /*$_*/ 16777216 && t0_value !== (t0_value = /*$_*/ ctx[24]("tournamentsThController.joinerror") + "")) set_data_dev(t0, t0_value);
|
|
8935
|
+
if (dirty[0] & /*errorJoinText*/ 4096) set_data_dev(t2, /*errorJoinText*/ ctx[12]);
|
|
8626
8936
|
},
|
|
8627
8937
|
d: function destroy(detaching) {
|
|
8628
8938
|
if (detaching) detach_dev(span);
|
|
@@ -8633,14 +8943,14 @@
|
|
|
8633
8943
|
block,
|
|
8634
8944
|
id: create_if_block_2$2.name,
|
|
8635
8945
|
type: "if",
|
|
8636
|
-
source: "(
|
|
8946
|
+
source: "(261:4) {#if errorJoin}",
|
|
8637
8947
|
ctx
|
|
8638
8948
|
});
|
|
8639
8949
|
|
|
8640
8950
|
return block;
|
|
8641
8951
|
}
|
|
8642
8952
|
|
|
8643
|
-
// (
|
|
8953
|
+
// (264:4) {#if showslider == "true"}
|
|
8644
8954
|
function create_if_block_1$2(ctx) {
|
|
8645
8955
|
let casino_tournaments_thumbnail_games_slider;
|
|
8646
8956
|
|
|
@@ -8650,7 +8960,7 @@
|
|
|
8650
8960
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "tournamenturl", /*tournamenturl*/ ctx[2]);
|
|
8651
8961
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "scrollby", "2");
|
|
8652
8962
|
set_custom_element_data(casino_tournaments_thumbnail_games_slider, "pagfactor", "130");
|
|
8653
|
-
add_location(casino_tournaments_thumbnail_games_slider, file$2,
|
|
8963
|
+
add_location(casino_tournaments_thumbnail_games_slider, file$2, 264, 6, 8796);
|
|
8654
8964
|
},
|
|
8655
8965
|
m: function mount(target, anchor) {
|
|
8656
8966
|
insert_dev(target, casino_tournaments_thumbnail_games_slider, anchor);
|
|
@@ -8669,7 +8979,7 @@
|
|
|
8669
8979
|
block,
|
|
8670
8980
|
id: create_if_block_1$2.name,
|
|
8671
8981
|
type: "if",
|
|
8672
|
-
source: "(
|
|
8982
|
+
source: "(264:4) {#if showslider == \\\"true\\\"}",
|
|
8673
8983
|
ctx
|
|
8674
8984
|
});
|
|
8675
8985
|
|
|
@@ -8733,6 +9043,9 @@
|
|
|
8733
9043
|
}
|
|
8734
9044
|
|
|
8735
9045
|
function instance$2($$self, $$props, $$invalidate) {
|
|
9046
|
+
let $_;
|
|
9047
|
+
validate_store(X, "_");
|
|
9048
|
+
component_subscribe($$self, X, $$value => $$invalidate(24, $_ = $$value));
|
|
8736
9049
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
8737
9050
|
validate_slots("undefined", slots, []);
|
|
8738
9051
|
let { session = "" } = $$props;
|
|
@@ -8775,6 +9088,10 @@
|
|
|
8775
9088
|
let wallet = [];
|
|
8776
9089
|
let gameurl = "#";
|
|
8777
9090
|
|
|
9091
|
+
Object.keys(TournamentsThControllerTranslations).forEach(item => {
|
|
9092
|
+
addNewMessages$4(item, TournamentsThControllerTranslations[item]);
|
|
9093
|
+
});
|
|
9094
|
+
|
|
8778
9095
|
const messageHandler = e => {
|
|
8779
9096
|
if (e.data && e.data.type == "UserSessionID") {
|
|
8780
9097
|
$$invalidate(8, isLoggedIn = true);
|
|
@@ -8835,7 +9152,7 @@
|
|
|
8835
9152
|
|
|
8836
9153
|
if (wallet && wallet.length >= 1) {
|
|
8837
9154
|
body = {
|
|
8838
|
-
language:
|
|
9155
|
+
language: lang,
|
|
8839
9156
|
bonusCode: wallet[0].code,
|
|
8840
9157
|
currency
|
|
8841
9158
|
};
|
|
@@ -8952,7 +9269,7 @@
|
|
|
8952
9269
|
"currency"
|
|
8953
9270
|
];
|
|
8954
9271
|
|
|
8955
|
-
|
|
9272
|
+
Object_1$2.keys($$props).forEach(key => {
|
|
8956
9273
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
8957
9274
|
});
|
|
8958
9275
|
|
|
@@ -8966,23 +9283,26 @@
|
|
|
8966
9283
|
if ("session" in $$props) $$invalidate(0, session = $$props.session);
|
|
8967
9284
|
if ("userid" in $$props) $$invalidate(1, userid = $$props.userid);
|
|
8968
9285
|
if ("tournamenturl" in $$props) $$invalidate(2, tournamenturl = $$props.tournamenturl);
|
|
8969
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
9286
|
+
if ("endpoint" in $$props) $$invalidate(30, endpoint = $$props.endpoint);
|
|
8970
9287
|
if ("showdetails" in $$props) $$invalidate(3, showdetails = $$props.showdetails);
|
|
8971
9288
|
if ("showslider" in $$props) $$invalidate(4, showslider = $$props.showslider);
|
|
8972
9289
|
if ("showenrolled" in $$props) $$invalidate(5, showenrolled = $$props.showenrolled);
|
|
8973
9290
|
if ("maxwidth" in $$props) $$invalidate(6, maxwidth = $$props.maxwidth);
|
|
8974
9291
|
if ("fullsize" in $$props) $$invalidate(7, fullsize = $$props.fullsize);
|
|
8975
|
-
if ("lang" in $$props) $$invalidate(
|
|
8976
|
-
if ("loginevent" in $$props) $$invalidate(
|
|
8977
|
-
if ("registerevent" in $$props) $$invalidate(
|
|
8978
|
-
if ("loginurl" in $$props) $$invalidate(
|
|
8979
|
-
if ("registerurl" in $$props) $$invalidate(
|
|
8980
|
-
if ("currency" in $$props) $$invalidate(
|
|
9292
|
+
if ("lang" in $$props) $$invalidate(31, lang = $$props.lang);
|
|
9293
|
+
if ("loginevent" in $$props) $$invalidate(32, loginevent = $$props.loginevent);
|
|
9294
|
+
if ("registerevent" in $$props) $$invalidate(33, registerevent = $$props.registerevent);
|
|
9295
|
+
if ("loginurl" in $$props) $$invalidate(34, loginurl = $$props.loginurl);
|
|
9296
|
+
if ("registerurl" in $$props) $$invalidate(35, registerurl = $$props.registerurl);
|
|
9297
|
+
if ("currency" in $$props) $$invalidate(36, currency = $$props.currency);
|
|
8981
9298
|
};
|
|
8982
9299
|
|
|
8983
9300
|
$$self.$capture_state = () => ({
|
|
8984
9301
|
onMount,
|
|
8985
9302
|
getDevice,
|
|
9303
|
+
_: X,
|
|
9304
|
+
addNewMessages: addNewMessages$4,
|
|
9305
|
+
TournamentsThControllerTranslations,
|
|
8986
9306
|
xhrFetch,
|
|
8987
9307
|
session,
|
|
8988
9308
|
userid,
|
|
@@ -9029,25 +9349,26 @@
|
|
|
9029
9349
|
matchData,
|
|
9030
9350
|
getData,
|
|
9031
9351
|
setSession,
|
|
9032
|
-
initialLoad
|
|
9352
|
+
initialLoad,
|
|
9353
|
+
$_
|
|
9033
9354
|
});
|
|
9034
9355
|
|
|
9035
9356
|
$$self.$inject_state = $$props => {
|
|
9036
9357
|
if ("session" in $$props) $$invalidate(0, session = $$props.session);
|
|
9037
9358
|
if ("userid" in $$props) $$invalidate(1, userid = $$props.userid);
|
|
9038
9359
|
if ("tournamenturl" in $$props) $$invalidate(2, tournamenturl = $$props.tournamenturl);
|
|
9039
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
9360
|
+
if ("endpoint" in $$props) $$invalidate(30, endpoint = $$props.endpoint);
|
|
9040
9361
|
if ("showdetails" in $$props) $$invalidate(3, showdetails = $$props.showdetails);
|
|
9041
9362
|
if ("showslider" in $$props) $$invalidate(4, showslider = $$props.showslider);
|
|
9042
9363
|
if ("showenrolled" in $$props) $$invalidate(5, showenrolled = $$props.showenrolled);
|
|
9043
9364
|
if ("maxwidth" in $$props) $$invalidate(6, maxwidth = $$props.maxwidth);
|
|
9044
9365
|
if ("fullsize" in $$props) $$invalidate(7, fullsize = $$props.fullsize);
|
|
9045
|
-
if ("lang" in $$props) $$invalidate(
|
|
9046
|
-
if ("loginevent" in $$props) $$invalidate(
|
|
9047
|
-
if ("registerevent" in $$props) $$invalidate(
|
|
9048
|
-
if ("loginurl" in $$props) $$invalidate(
|
|
9049
|
-
if ("registerurl" in $$props) $$invalidate(
|
|
9050
|
-
if ("currency" in $$props) $$invalidate(
|
|
9366
|
+
if ("lang" in $$props) $$invalidate(31, lang = $$props.lang);
|
|
9367
|
+
if ("loginevent" in $$props) $$invalidate(32, loginevent = $$props.loginevent);
|
|
9368
|
+
if ("registerevent" in $$props) $$invalidate(33, registerevent = $$props.registerevent);
|
|
9369
|
+
if ("loginurl" in $$props) $$invalidate(34, loginurl = $$props.loginurl);
|
|
9370
|
+
if ("registerurl" in $$props) $$invalidate(35, registerurl = $$props.registerurl);
|
|
9371
|
+
if ("currency" in $$props) $$invalidate(36, currency = $$props.currency);
|
|
9051
9372
|
if ("sessionTopic" in $$props) sessionTopic = $$props.sessionTopic;
|
|
9052
9373
|
if ("isLoggedIn" in $$props) $$invalidate(8, isLoggedIn = $$props.isLoggedIn);
|
|
9053
9374
|
if ("sessionID" in $$props) sessionID = $$props.sessionID;
|
|
@@ -9110,6 +9431,7 @@
|
|
|
9110
9431
|
minbetcount,
|
|
9111
9432
|
wallet,
|
|
9112
9433
|
gameurl,
|
|
9434
|
+
$_,
|
|
9113
9435
|
loginAction,
|
|
9114
9436
|
registerAction,
|
|
9115
9437
|
detailsAction,
|
|
@@ -9149,18 +9471,18 @@
|
|
|
9149
9471
|
session: 0,
|
|
9150
9472
|
userid: 1,
|
|
9151
9473
|
tournamenturl: 2,
|
|
9152
|
-
endpoint:
|
|
9474
|
+
endpoint: 30,
|
|
9153
9475
|
showdetails: 3,
|
|
9154
9476
|
showslider: 4,
|
|
9155
9477
|
showenrolled: 5,
|
|
9156
9478
|
maxwidth: 6,
|
|
9157
9479
|
fullsize: 7,
|
|
9158
|
-
lang:
|
|
9159
|
-
loginevent:
|
|
9160
|
-
registerevent:
|
|
9161
|
-
loginurl:
|
|
9162
|
-
registerurl:
|
|
9163
|
-
currency:
|
|
9480
|
+
lang: 31,
|
|
9481
|
+
loginevent: 32,
|
|
9482
|
+
registerevent: 33,
|
|
9483
|
+
loginurl: 34,
|
|
9484
|
+
registerurl: 35,
|
|
9485
|
+
currency: 36
|
|
9164
9486
|
},
|
|
9165
9487
|
[-1, -1]
|
|
9166
9488
|
);
|
|
@@ -9225,7 +9547,7 @@
|
|
|
9225
9547
|
}
|
|
9226
9548
|
|
|
9227
9549
|
get endpoint() {
|
|
9228
|
-
return this.$$.ctx[
|
|
9550
|
+
return this.$$.ctx[30];
|
|
9229
9551
|
}
|
|
9230
9552
|
|
|
9231
9553
|
set endpoint(endpoint) {
|
|
@@ -9279,7 +9601,7 @@
|
|
|
9279
9601
|
}
|
|
9280
9602
|
|
|
9281
9603
|
get lang() {
|
|
9282
|
-
return this.$$.ctx[
|
|
9604
|
+
return this.$$.ctx[31];
|
|
9283
9605
|
}
|
|
9284
9606
|
|
|
9285
9607
|
set lang(lang) {
|
|
@@ -9288,7 +9610,7 @@
|
|
|
9288
9610
|
}
|
|
9289
9611
|
|
|
9290
9612
|
get loginevent() {
|
|
9291
|
-
return this.$$.ctx[
|
|
9613
|
+
return this.$$.ctx[32];
|
|
9292
9614
|
}
|
|
9293
9615
|
|
|
9294
9616
|
set loginevent(loginevent) {
|
|
@@ -9297,7 +9619,7 @@
|
|
|
9297
9619
|
}
|
|
9298
9620
|
|
|
9299
9621
|
get registerevent() {
|
|
9300
|
-
return this.$$.ctx[
|
|
9622
|
+
return this.$$.ctx[33];
|
|
9301
9623
|
}
|
|
9302
9624
|
|
|
9303
9625
|
set registerevent(registerevent) {
|
|
@@ -9306,7 +9628,7 @@
|
|
|
9306
9628
|
}
|
|
9307
9629
|
|
|
9308
9630
|
get loginurl() {
|
|
9309
|
-
return this.$$.ctx[
|
|
9631
|
+
return this.$$.ctx[34];
|
|
9310
9632
|
}
|
|
9311
9633
|
|
|
9312
9634
|
set loginurl(loginurl) {
|
|
@@ -9315,7 +9637,7 @@
|
|
|
9315
9637
|
}
|
|
9316
9638
|
|
|
9317
9639
|
get registerurl() {
|
|
9318
|
-
return this.$$.ctx[
|
|
9640
|
+
return this.$$.ctx[35];
|
|
9319
9641
|
}
|
|
9320
9642
|
|
|
9321
9643
|
set registerurl(registerurl) {
|
|
@@ -9324,7 +9646,7 @@
|
|
|
9324
9646
|
}
|
|
9325
9647
|
|
|
9326
9648
|
get currency() {
|
|
9327
|
-
return this.$$.ctx[
|
|
9649
|
+
return this.$$.ctx[36];
|
|
9328
9650
|
}
|
|
9329
9651
|
|
|
9330
9652
|
set currency(currency) {
|
|
@@ -9335,34 +9657,61 @@
|
|
|
9335
9657
|
|
|
9336
9658
|
!customElements.get('casino-tournaments-thumbnail-controller') && customElements.define('casino-tournaments-thumbnail-controller', CasinoTournamentsThumbnailController);
|
|
9337
9659
|
|
|
9660
|
+
function addNewMessages(lang, dict) {
|
|
9661
|
+
m(lang, dict);
|
|
9662
|
+
}
|
|
9663
|
+
|
|
9664
|
+
const TournamentsTableTranslations = {
|
|
9665
|
+
en: {
|
|
9666
|
+
tournamentsTable: {
|
|
9667
|
+
leaderboard: 'Leaderboard',
|
|
9668
|
+
score: 'Score',
|
|
9669
|
+
betcounts: 'Bet Counts',
|
|
9670
|
+
qualified: 'Qualified',
|
|
9671
|
+
nowinners: 'No winners for the time being. Be one of them!'
|
|
9672
|
+
}
|
|
9673
|
+
},
|
|
9674
|
+
tr: {
|
|
9675
|
+
tournamentsTable: {
|
|
9676
|
+
leaderboard: 'Leaderboard',
|
|
9677
|
+
score: 'Score',
|
|
9678
|
+
betcounts: 'Bet Counts',
|
|
9679
|
+
qualified: 'Qualified',
|
|
9680
|
+
nowinners: 'No winners for the time being. Be one of them!'
|
|
9681
|
+
}
|
|
9682
|
+
},
|
|
9683
|
+
};
|
|
9684
|
+
|
|
9338
9685
|
/* ../casino-tournaments-table/src/CasinoTournamentsTable.svelte generated by Svelte v3.37.0 */
|
|
9686
|
+
|
|
9687
|
+
const { Object: Object_1$1 } = globals;
|
|
9339
9688
|
const file$1 = "../casino-tournaments-table/src/CasinoTournamentsTable.svelte";
|
|
9340
9689
|
|
|
9341
9690
|
function get_each_context_3(ctx, list, i) {
|
|
9342
9691
|
const child_ctx = ctx.slice();
|
|
9343
|
-
child_ctx[
|
|
9692
|
+
child_ctx[12] = list[i];
|
|
9344
9693
|
return child_ctx;
|
|
9345
9694
|
}
|
|
9346
9695
|
|
|
9347
9696
|
function get_each_context_1(ctx, list, i) {
|
|
9348
9697
|
const child_ctx = ctx.slice();
|
|
9349
|
-
child_ctx[
|
|
9698
|
+
child_ctx[24] = list[i];
|
|
9350
9699
|
return child_ctx;
|
|
9351
9700
|
}
|
|
9352
9701
|
|
|
9353
9702
|
function get_each_context_2(ctx, list, i) {
|
|
9354
9703
|
const child_ctx = ctx.slice();
|
|
9355
|
-
child_ctx[
|
|
9704
|
+
child_ctx[12] = list[i];
|
|
9356
9705
|
return child_ctx;
|
|
9357
9706
|
}
|
|
9358
9707
|
|
|
9359
9708
|
function get_each_context$1(ctx, list, i) {
|
|
9360
9709
|
const child_ctx = ctx.slice();
|
|
9361
|
-
child_ctx[
|
|
9710
|
+
child_ctx[24] = list[i];
|
|
9362
9711
|
return child_ctx;
|
|
9363
9712
|
}
|
|
9364
9713
|
|
|
9365
|
-
// (
|
|
9714
|
+
// (228:4) {:else}
|
|
9366
9715
|
function create_else_block_5(ctx) {
|
|
9367
9716
|
let div;
|
|
9368
9717
|
let table;
|
|
@@ -9372,6 +9721,8 @@
|
|
|
9372
9721
|
let tbody;
|
|
9373
9722
|
let tr1;
|
|
9374
9723
|
let td;
|
|
9724
|
+
let t1_value = /*$_*/ ctx[8]("tournamentsTable.nowinners") + "";
|
|
9725
|
+
let t1;
|
|
9375
9726
|
let each_value_3 = /*columns*/ ctx[3];
|
|
9376
9727
|
validate_each_argument(each_value_3);
|
|
9377
9728
|
let each_blocks = [];
|
|
@@ -9395,17 +9746,17 @@
|
|
|
9395
9746
|
tbody = element("tbody");
|
|
9396
9747
|
tr1 = element("tr");
|
|
9397
9748
|
td = element("td");
|
|
9398
|
-
|
|
9399
|
-
add_location(tr0, file$1,
|
|
9400
|
-
add_location(thead, file$1,
|
|
9749
|
+
t1 = text(t1_value);
|
|
9750
|
+
add_location(tr0, file$1, 231, 12, 7883);
|
|
9751
|
+
add_location(thead, file$1, 230, 10, 7863);
|
|
9401
9752
|
attr_dev(td, "colspan", "3");
|
|
9402
|
-
add_location(td, file$1,
|
|
9403
|
-
add_location(tr1, file$1,
|
|
9404
|
-
add_location(tbody, file$1,
|
|
9753
|
+
add_location(td, file$1, 247, 14, 8364);
|
|
9754
|
+
add_location(tr1, file$1, 246, 12, 8345);
|
|
9755
|
+
add_location(tbody, file$1, 245, 10, 8325);
|
|
9405
9756
|
attr_dev(table, "class", "LeftTable");
|
|
9406
|
-
add_location(table, file$1,
|
|
9757
|
+
add_location(table, file$1, 229, 8, 7827);
|
|
9407
9758
|
attr_dev(div, "class", "TournamentsTable");
|
|
9408
|
-
add_location(div, file$1,
|
|
9759
|
+
add_location(div, file$1, 228, 6, 7788);
|
|
9409
9760
|
},
|
|
9410
9761
|
m: function mount(target, anchor) {
|
|
9411
9762
|
insert_dev(target, div, anchor);
|
|
@@ -9421,9 +9772,10 @@
|
|
|
9421
9772
|
append_dev(table, tbody);
|
|
9422
9773
|
append_dev(tbody, tr1);
|
|
9423
9774
|
append_dev(tr1, td);
|
|
9775
|
+
append_dev(td, t1);
|
|
9424
9776
|
},
|
|
9425
9777
|
p: function update(ctx, dirty) {
|
|
9426
|
-
if (dirty[0] & /*sort, sortBy, columns, sortable*/
|
|
9778
|
+
if (dirty[0] & /*sort, sortBy, columns, sortable*/ 1161) {
|
|
9427
9779
|
each_value_3 = /*columns*/ ctx[3];
|
|
9428
9780
|
validate_each_argument(each_value_3);
|
|
9429
9781
|
let i;
|
|
@@ -9446,6 +9798,8 @@
|
|
|
9446
9798
|
|
|
9447
9799
|
each_blocks.length = each_value_3.length;
|
|
9448
9800
|
}
|
|
9801
|
+
|
|
9802
|
+
if (dirty[0] & /*$_*/ 256 && t1_value !== (t1_value = /*$_*/ ctx[8]("tournamentsTable.nowinners") + "")) set_data_dev(t1, t1_value);
|
|
9449
9803
|
},
|
|
9450
9804
|
d: function destroy(detaching) {
|
|
9451
9805
|
if (detaching) detach_dev(div);
|
|
@@ -9457,17 +9811,19 @@
|
|
|
9457
9811
|
block,
|
|
9458
9812
|
id: create_else_block_5.name,
|
|
9459
9813
|
type: "else",
|
|
9460
|
-
source: "(
|
|
9814
|
+
source: "(228:4) {:else}",
|
|
9461
9815
|
ctx
|
|
9462
9816
|
});
|
|
9463
9817
|
|
|
9464
9818
|
return block;
|
|
9465
9819
|
}
|
|
9466
9820
|
|
|
9467
|
-
// (
|
|
9821
|
+
// (205:2) {#if isMobile(userAgent) == true}
|
|
9468
9822
|
function create_if_block_9(ctx) {
|
|
9469
9823
|
let div3;
|
|
9470
9824
|
let div0;
|
|
9825
|
+
let t0_value = /*$_*/ ctx[8]("tournamentsTable.leaderboard") + "";
|
|
9826
|
+
let t0;
|
|
9471
9827
|
let t1;
|
|
9472
9828
|
let div2;
|
|
9473
9829
|
let div1;
|
|
@@ -9489,7 +9845,7 @@
|
|
|
9489
9845
|
c: function create() {
|
|
9490
9846
|
div3 = element("div");
|
|
9491
9847
|
div0 = element("div");
|
|
9492
|
-
|
|
9848
|
+
t0 = text(t0_value);
|
|
9493
9849
|
t1 = space();
|
|
9494
9850
|
div2 = element("div");
|
|
9495
9851
|
div1 = element("div");
|
|
@@ -9498,17 +9854,18 @@
|
|
|
9498
9854
|
if (if_block1) if_block1.c();
|
|
9499
9855
|
if_block1_anchor = empty();
|
|
9500
9856
|
attr_dev(div0, "class", "Leaderboard");
|
|
9501
|
-
add_location(div0, file$1,
|
|
9857
|
+
add_location(div0, file$1, 206, 6, 6803);
|
|
9502
9858
|
attr_dev(div1, "class", "CollapseButton");
|
|
9503
|
-
add_location(div1, file$1,
|
|
9504
|
-
attr_dev(div2, "class", "RightButton " + (isMobile(/*userAgent*/ ctx[
|
|
9505
|
-
add_location(div2, file$1,
|
|
9859
|
+
add_location(div1, file$1, 208, 8, 6956);
|
|
9860
|
+
attr_dev(div2, "class", "RightButton " + (isMobile(/*userAgent*/ ctx[9]) ? "MobileClass" : ""));
|
|
9861
|
+
add_location(div2, file$1, 207, 6, 6877);
|
|
9506
9862
|
attr_dev(div3, "class", "LeaderboardContainer");
|
|
9507
|
-
add_location(div3, file$1,
|
|
9863
|
+
add_location(div3, file$1, 205, 4, 6762);
|
|
9508
9864
|
},
|
|
9509
9865
|
m: function mount(target, anchor) {
|
|
9510
9866
|
insert_dev(target, div3, anchor);
|
|
9511
9867
|
append_dev(div3, div0);
|
|
9868
|
+
append_dev(div0, t0);
|
|
9512
9869
|
append_dev(div3, t1);
|
|
9513
9870
|
append_dev(div3, div2);
|
|
9514
9871
|
append_dev(div2, div1);
|
|
@@ -9518,11 +9875,13 @@
|
|
|
9518
9875
|
insert_dev(target, if_block1_anchor, anchor);
|
|
9519
9876
|
|
|
9520
9877
|
if (!mounted) {
|
|
9521
|
-
dispose = listen_dev(div1, "click", /*click_handler_3*/ ctx[
|
|
9878
|
+
dispose = listen_dev(div1, "click", /*click_handler_3*/ ctx[18], false, false, false);
|
|
9522
9879
|
mounted = true;
|
|
9523
9880
|
}
|
|
9524
9881
|
},
|
|
9525
9882
|
p: function update(ctx, dirty) {
|
|
9883
|
+
if (dirty[0] & /*$_*/ 256 && t0_value !== (t0_value = /*$_*/ ctx[8]("tournamentsTable.leaderboard") + "")) set_data_dev(t0, t0_value);
|
|
9884
|
+
|
|
9526
9885
|
if (current_block_type !== (current_block_type = select_block_type_5(ctx))) {
|
|
9527
9886
|
if_block0.d(1);
|
|
9528
9887
|
if_block0 = current_block_type(ctx);
|
|
@@ -9534,7 +9893,9 @@
|
|
|
9534
9893
|
}
|
|
9535
9894
|
|
|
9536
9895
|
if (/*showTable*/ ctx[5]) {
|
|
9537
|
-
if (if_block1)
|
|
9896
|
+
if (if_block1) {
|
|
9897
|
+
if_block1.p(ctx, dirty);
|
|
9898
|
+
} else {
|
|
9538
9899
|
if_block1 = create_if_block_10(ctx);
|
|
9539
9900
|
if_block1.c();
|
|
9540
9901
|
if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
|
|
@@ -9559,19 +9920,19 @@
|
|
|
9559
9920
|
block,
|
|
9560
9921
|
id: create_if_block_9.name,
|
|
9561
9922
|
type: "if",
|
|
9562
|
-
source: "(
|
|
9923
|
+
source: "(205:2) {#if isMobile(userAgent) == true}",
|
|
9563
9924
|
ctx
|
|
9564
9925
|
});
|
|
9565
9926
|
|
|
9566
9927
|
return block;
|
|
9567
9928
|
}
|
|
9568
9929
|
|
|
9569
|
-
// (
|
|
9930
|
+
// (89:0) {#if data.length > 0 || firstRowData}
|
|
9570
9931
|
function create_if_block$1(ctx) {
|
|
9571
9932
|
let if_block_anchor;
|
|
9572
9933
|
|
|
9573
9934
|
function select_block_type_1(ctx, dirty) {
|
|
9574
|
-
if (isMobile(/*userAgent*/ ctx[
|
|
9935
|
+
if (isMobile(/*userAgent*/ ctx[9]) == true) return create_if_block_1$1;
|
|
9575
9936
|
return create_else_block_1;
|
|
9576
9937
|
}
|
|
9577
9938
|
|
|
@@ -9600,17 +9961,17 @@
|
|
|
9600
9961
|
block,
|
|
9601
9962
|
id: create_if_block$1.name,
|
|
9602
9963
|
type: "if",
|
|
9603
|
-
source: "(
|
|
9964
|
+
source: "(89:0) {#if data.length > 0 || firstRowData}",
|
|
9604
9965
|
ctx
|
|
9605
9966
|
});
|
|
9606
9967
|
|
|
9607
9968
|
return block;
|
|
9608
9969
|
}
|
|
9609
9970
|
|
|
9610
|
-
// (
|
|
9971
|
+
// (239:18) {:else}
|
|
9611
9972
|
function create_else_block_6(ctx) {
|
|
9612
9973
|
let p;
|
|
9613
|
-
let t_value = /*column*/ ctx[
|
|
9974
|
+
let t_value = /*column*/ ctx[12] + "";
|
|
9614
9975
|
let t;
|
|
9615
9976
|
|
|
9616
9977
|
const block = {
|
|
@@ -9618,14 +9979,14 @@
|
|
|
9618
9979
|
p = element("p");
|
|
9619
9980
|
t = text(t_value);
|
|
9620
9981
|
attr_dev(p, "data-sort", /*sort*/ ctx[7]);
|
|
9621
|
-
add_location(p, file$1,
|
|
9982
|
+
add_location(p, file$1, 239, 20, 8177);
|
|
9622
9983
|
},
|
|
9623
9984
|
m: function mount(target, anchor) {
|
|
9624
9985
|
insert_dev(target, p, anchor);
|
|
9625
9986
|
append_dev(p, t);
|
|
9626
9987
|
},
|
|
9627
9988
|
p: function update(ctx, dirty) {
|
|
9628
|
-
if (dirty[0] & /*columns*/ 8 && t_value !== (t_value = /*column*/ ctx[
|
|
9989
|
+
if (dirty[0] & /*columns*/ 8 && t_value !== (t_value = /*column*/ ctx[12] + "")) set_data_dev(t, t_value);
|
|
9629
9990
|
|
|
9630
9991
|
if (dirty[0] & /*sort*/ 128) {
|
|
9631
9992
|
attr_dev(p, "data-sort", /*sort*/ ctx[7]);
|
|
@@ -9640,23 +10001,23 @@
|
|
|
9640
10001
|
block,
|
|
9641
10002
|
id: create_else_block_6.name,
|
|
9642
10003
|
type: "else",
|
|
9643
|
-
source: "(
|
|
10004
|
+
source: "(239:18) {:else}",
|
|
9644
10005
|
ctx
|
|
9645
10006
|
});
|
|
9646
10007
|
|
|
9647
10008
|
return block;
|
|
9648
10009
|
}
|
|
9649
10010
|
|
|
9650
|
-
// (
|
|
10011
|
+
// (235:18) {#if sortable == 'true'}
|
|
9651
10012
|
function create_if_block_12(ctx) {
|
|
9652
10013
|
let button;
|
|
9653
|
-
let t_value = /*column*/ ctx[
|
|
10014
|
+
let t_value = /*column*/ ctx[12] + "";
|
|
9654
10015
|
let t;
|
|
9655
10016
|
let mounted;
|
|
9656
10017
|
let dispose;
|
|
9657
10018
|
|
|
9658
10019
|
function click_handler_4() {
|
|
9659
|
-
return /*click_handler_4*/ ctx[
|
|
10020
|
+
return /*click_handler_4*/ ctx[19](/*column*/ ctx[12]);
|
|
9660
10021
|
}
|
|
9661
10022
|
|
|
9662
10023
|
const block = {
|
|
@@ -9664,7 +10025,7 @@
|
|
|
9664
10025
|
button = element("button");
|
|
9665
10026
|
t = text(t_value);
|
|
9666
10027
|
attr_dev(button, "data-sort", /*sort*/ ctx[7]);
|
|
9667
|
-
add_location(button, file$1,
|
|
10028
|
+
add_location(button, file$1, 235, 20, 8012);
|
|
9668
10029
|
},
|
|
9669
10030
|
m: function mount(target, anchor) {
|
|
9670
10031
|
insert_dev(target, button, anchor);
|
|
@@ -9677,7 +10038,7 @@
|
|
|
9677
10038
|
},
|
|
9678
10039
|
p: function update(new_ctx, dirty) {
|
|
9679
10040
|
ctx = new_ctx;
|
|
9680
|
-
if (dirty[0] & /*columns*/ 8 && t_value !== (t_value = /*column*/ ctx[
|
|
10041
|
+
if (dirty[0] & /*columns*/ 8 && t_value !== (t_value = /*column*/ ctx[12] + "")) set_data_dev(t, t_value);
|
|
9681
10042
|
|
|
9682
10043
|
if (dirty[0] & /*sort*/ 128) {
|
|
9683
10044
|
attr_dev(button, "data-sort", /*sort*/ ctx[7]);
|
|
@@ -9694,14 +10055,14 @@
|
|
|
9694
10055
|
block,
|
|
9695
10056
|
id: create_if_block_12.name,
|
|
9696
10057
|
type: "if",
|
|
9697
|
-
source: "(
|
|
10058
|
+
source: "(235:18) {#if sortable == 'true'}",
|
|
9698
10059
|
ctx
|
|
9699
10060
|
});
|
|
9700
10061
|
|
|
9701
10062
|
return block;
|
|
9702
10063
|
}
|
|
9703
10064
|
|
|
9704
|
-
// (
|
|
10065
|
+
// (233:14) {#each columns as column}
|
|
9705
10066
|
function create_each_block_3(ctx) {
|
|
9706
10067
|
let th;
|
|
9707
10068
|
let t;
|
|
@@ -9719,7 +10080,7 @@
|
|
|
9719
10080
|
th = element("th");
|
|
9720
10081
|
if_block.c();
|
|
9721
10082
|
t = space();
|
|
9722
|
-
add_location(th, file$1,
|
|
10083
|
+
add_location(th, file$1, 233, 16, 7944);
|
|
9723
10084
|
},
|
|
9724
10085
|
m: function mount(target, anchor) {
|
|
9725
10086
|
insert_dev(target, th, anchor);
|
|
@@ -9749,14 +10110,14 @@
|
|
|
9749
10110
|
block,
|
|
9750
10111
|
id: create_each_block_3.name,
|
|
9751
10112
|
type: "each",
|
|
9752
|
-
source: "(
|
|
10113
|
+
source: "(233:14) {#each columns as column}",
|
|
9753
10114
|
ctx
|
|
9754
10115
|
});
|
|
9755
10116
|
|
|
9756
10117
|
return block;
|
|
9757
10118
|
}
|
|
9758
10119
|
|
|
9759
|
-
// (
|
|
10120
|
+
// (214:10) {:else}
|
|
9760
10121
|
function create_else_block_4(ctx) {
|
|
9761
10122
|
let svg;
|
|
9762
10123
|
let path;
|
|
@@ -9766,7 +10127,7 @@
|
|
|
9766
10127
|
svg = svg_element("svg");
|
|
9767
10128
|
path = svg_element("path");
|
|
9768
10129
|
attr_dev(path, "d", "M6 9l6 6 6-6");
|
|
9769
|
-
add_location(path, file$1,
|
|
10130
|
+
add_location(path, file$1, 215, 14, 7515);
|
|
9770
10131
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
9771
10132
|
attr_dev(svg, "width", "24");
|
|
9772
10133
|
attr_dev(svg, "height", "24");
|
|
@@ -9776,7 +10137,7 @@
|
|
|
9776
10137
|
attr_dev(svg, "stroke-width", "2");
|
|
9777
10138
|
attr_dev(svg, "stroke-linecap", "round");
|
|
9778
10139
|
attr_dev(svg, "stroke-linejoin", "round");
|
|
9779
|
-
add_location(svg, file$1,
|
|
10140
|
+
add_location(svg, file$1, 214, 12, 7324);
|
|
9780
10141
|
},
|
|
9781
10142
|
m: function mount(target, anchor) {
|
|
9782
10143
|
insert_dev(target, svg, anchor);
|
|
@@ -9791,14 +10152,14 @@
|
|
|
9791
10152
|
block,
|
|
9792
10153
|
id: create_else_block_4.name,
|
|
9793
10154
|
type: "else",
|
|
9794
|
-
source: "(
|
|
10155
|
+
source: "(214:10) {:else}",
|
|
9795
10156
|
ctx
|
|
9796
10157
|
});
|
|
9797
10158
|
|
|
9798
10159
|
return block;
|
|
9799
10160
|
}
|
|
9800
10161
|
|
|
9801
|
-
// (
|
|
10162
|
+
// (210:10) {#if showTable}
|
|
9802
10163
|
function create_if_block_11(ctx) {
|
|
9803
10164
|
let svg;
|
|
9804
10165
|
let path;
|
|
@@ -9808,7 +10169,7 @@
|
|
|
9808
10169
|
svg = svg_element("svg");
|
|
9809
10170
|
path = svg_element("path");
|
|
9810
10171
|
attr_dev(path, "d", "M18 15l-6-6-6 6");
|
|
9811
|
-
add_location(path, file$1,
|
|
10172
|
+
add_location(path, file$1, 211, 14, 7247);
|
|
9812
10173
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
9813
10174
|
attr_dev(svg, "width", "24");
|
|
9814
10175
|
attr_dev(svg, "height", "24");
|
|
@@ -9818,7 +10179,7 @@
|
|
|
9818
10179
|
attr_dev(svg, "stroke-width", "2");
|
|
9819
10180
|
attr_dev(svg, "stroke-linecap", "round");
|
|
9820
10181
|
attr_dev(svg, "stroke-linejoin", "round");
|
|
9821
|
-
add_location(svg, file$1,
|
|
10182
|
+
add_location(svg, file$1, 210, 12, 7056);
|
|
9822
10183
|
},
|
|
9823
10184
|
m: function mount(target, anchor) {
|
|
9824
10185
|
insert_dev(target, svg, anchor);
|
|
@@ -9833,35 +10194,41 @@
|
|
|
9833
10194
|
block,
|
|
9834
10195
|
id: create_if_block_11.name,
|
|
9835
10196
|
type: "if",
|
|
9836
|
-
source: "(
|
|
10197
|
+
source: "(210:10) {#if showTable}",
|
|
9837
10198
|
ctx
|
|
9838
10199
|
});
|
|
9839
10200
|
|
|
9840
10201
|
return block;
|
|
9841
10202
|
}
|
|
9842
10203
|
|
|
9843
|
-
// (
|
|
10204
|
+
// (223:4) {#if showTable}
|
|
9844
10205
|
function create_if_block_10(ctx) {
|
|
9845
10206
|
let div1;
|
|
9846
10207
|
let div0;
|
|
9847
10208
|
let p;
|
|
10209
|
+
let t_value = /*$_*/ ctx[8]("tournamentsTable.nowinners") + "";
|
|
10210
|
+
let t;
|
|
9848
10211
|
|
|
9849
10212
|
const block = {
|
|
9850
10213
|
c: function create() {
|
|
9851
10214
|
div1 = element("div");
|
|
9852
10215
|
div0 = element("div");
|
|
9853
10216
|
p = element("p");
|
|
9854
|
-
|
|
9855
|
-
add_location(p, file$1,
|
|
10217
|
+
t = text(t_value);
|
|
10218
|
+
add_location(p, file$1, 224, 31, 7699);
|
|
9856
10219
|
attr_dev(div0, "class", "TableUser");
|
|
9857
|
-
add_location(div0, file$1,
|
|
10220
|
+
add_location(div0, file$1, 224, 8, 7676);
|
|
9858
10221
|
attr_dev(div1, "class", "TableContent");
|
|
9859
|
-
add_location(div1, file$1,
|
|
10222
|
+
add_location(div1, file$1, 223, 6, 7641);
|
|
9860
10223
|
},
|
|
9861
10224
|
m: function mount(target, anchor) {
|
|
9862
10225
|
insert_dev(target, div1, anchor);
|
|
9863
10226
|
append_dev(div1, div0);
|
|
9864
10227
|
append_dev(div0, p);
|
|
10228
|
+
append_dev(p, t);
|
|
10229
|
+
},
|
|
10230
|
+
p: function update(ctx, dirty) {
|
|
10231
|
+
if (dirty[0] & /*$_*/ 256 && t_value !== (t_value = /*$_*/ ctx[8]("tournamentsTable.nowinners") + "")) set_data_dev(t, t_value);
|
|
9865
10232
|
},
|
|
9866
10233
|
d: function destroy(detaching) {
|
|
9867
10234
|
if (detaching) detach_dev(div1);
|
|
@@ -9872,14 +10239,14 @@
|
|
|
9872
10239
|
block,
|
|
9873
10240
|
id: create_if_block_10.name,
|
|
9874
10241
|
type: "if",
|
|
9875
|
-
source: "(
|
|
10242
|
+
source: "(223:4) {#if showTable}",
|
|
9876
10243
|
ctx
|
|
9877
10244
|
});
|
|
9878
10245
|
|
|
9879
10246
|
return block;
|
|
9880
10247
|
}
|
|
9881
10248
|
|
|
9882
|
-
// (
|
|
10249
|
+
// (152:2) {:else}
|
|
9883
10250
|
function create_else_block_1(ctx) {
|
|
9884
10251
|
let div2;
|
|
9885
10252
|
let table;
|
|
@@ -9932,17 +10299,17 @@
|
|
|
9932
10299
|
div1 = element("div");
|
|
9933
10300
|
div0 = element("div");
|
|
9934
10301
|
if_block2.c();
|
|
9935
|
-
add_location(tr, file$1,
|
|
9936
|
-
add_location(thead, file$1,
|
|
9937
|
-
add_location(tbody, file$1,
|
|
10302
|
+
add_location(tr, file$1, 155, 10, 4949);
|
|
10303
|
+
add_location(thead, file$1, 154, 8, 4931);
|
|
10304
|
+
add_location(tbody, file$1, 169, 8, 5363);
|
|
9938
10305
|
attr_dev(table, "class", "LeftTable");
|
|
9939
|
-
add_location(table, file$1,
|
|
10306
|
+
add_location(table, file$1, 153, 6, 4897);
|
|
9940
10307
|
attr_dev(div0, "class", "CollapseButton");
|
|
9941
|
-
add_location(div0, file$1,
|
|
10308
|
+
add_location(div0, file$1, 189, 8, 6048);
|
|
9942
10309
|
attr_dev(div1, "class", "RightButton");
|
|
9943
|
-
add_location(div1, file$1,
|
|
10310
|
+
add_location(div1, file$1, 188, 6, 6014);
|
|
9944
10311
|
attr_dev(div2, "class", "TournamentsTable");
|
|
9945
|
-
add_location(div2, file$1,
|
|
10312
|
+
add_location(div2, file$1, 152, 4, 4860);
|
|
9946
10313
|
},
|
|
9947
10314
|
m: function mount(target, anchor) {
|
|
9948
10315
|
insert_dev(target, div2, anchor);
|
|
@@ -9965,12 +10332,12 @@
|
|
|
9965
10332
|
if_block2.m(div0, null);
|
|
9966
10333
|
|
|
9967
10334
|
if (!mounted) {
|
|
9968
|
-
dispose = listen_dev(div0, "click", /*click_handler_2*/ ctx[
|
|
10335
|
+
dispose = listen_dev(div0, "click", /*click_handler_2*/ ctx[17], false, false, false);
|
|
9969
10336
|
mounted = true;
|
|
9970
10337
|
}
|
|
9971
10338
|
},
|
|
9972
10339
|
p: function update(ctx, dirty) {
|
|
9973
|
-
if (dirty[0] & /*sort, sortBy, columns, sortable*/
|
|
10340
|
+
if (dirty[0] & /*sort, sortBy, columns, sortable*/ 1161) {
|
|
9974
10341
|
each_value_2 = /*columns*/ ctx[3];
|
|
9975
10342
|
validate_each_argument(each_value_2);
|
|
9976
10343
|
let i;
|
|
@@ -10045,17 +10412,19 @@
|
|
|
10045
10412
|
block,
|
|
10046
10413
|
id: create_else_block_1.name,
|
|
10047
10414
|
type: "else",
|
|
10048
|
-
source: "(
|
|
10415
|
+
source: "(152:2) {:else}",
|
|
10049
10416
|
ctx
|
|
10050
10417
|
});
|
|
10051
10418
|
|
|
10052
10419
|
return block;
|
|
10053
10420
|
}
|
|
10054
10421
|
|
|
10055
|
-
// (
|
|
10422
|
+
// (90:2) {#if isMobile(userAgent) == true}
|
|
10056
10423
|
function create_if_block_1$1(ctx) {
|
|
10057
10424
|
let div3;
|
|
10058
10425
|
let div0;
|
|
10426
|
+
let t0_value = /*$_*/ ctx[8]("tournamentsTable.leaderboard") + "";
|
|
10427
|
+
let t0;
|
|
10059
10428
|
let t1;
|
|
10060
10429
|
let div2;
|
|
10061
10430
|
let div1;
|
|
@@ -10079,7 +10448,7 @@
|
|
|
10079
10448
|
c: function create() {
|
|
10080
10449
|
div3 = element("div");
|
|
10081
10450
|
div0 = element("div");
|
|
10082
|
-
|
|
10451
|
+
t0 = text(t0_value);
|
|
10083
10452
|
t1 = space();
|
|
10084
10453
|
div2 = element("div");
|
|
10085
10454
|
div1 = element("div");
|
|
@@ -10090,17 +10459,18 @@
|
|
|
10090
10459
|
if (if_block2) if_block2.c();
|
|
10091
10460
|
if_block2_anchor = empty();
|
|
10092
10461
|
attr_dev(div0, "class", "Leaderboard");
|
|
10093
|
-
add_location(div0, file$1,
|
|
10462
|
+
add_location(div0, file$1, 91, 6, 2699);
|
|
10094
10463
|
attr_dev(div1, "class", "CollapseButton");
|
|
10095
|
-
add_location(div1, file$1,
|
|
10096
|
-
attr_dev(div2, "class", "RightButton " + (isMobile(/*userAgent*/ ctx[
|
|
10097
|
-
add_location(div2, file$1,
|
|
10464
|
+
add_location(div1, file$1, 93, 8, 2852);
|
|
10465
|
+
attr_dev(div2, "class", "RightButton " + (isMobile(/*userAgent*/ ctx[9]) ? "MobileClass" : ""));
|
|
10466
|
+
add_location(div2, file$1, 92, 6, 2773);
|
|
10098
10467
|
attr_dev(div3, "class", "LeaderboardContainer");
|
|
10099
|
-
add_location(div3, file$1,
|
|
10468
|
+
add_location(div3, file$1, 90, 4, 2658);
|
|
10100
10469
|
},
|
|
10101
10470
|
m: function mount(target, anchor) {
|
|
10102
10471
|
insert_dev(target, div3, anchor);
|
|
10103
10472
|
append_dev(div3, div0);
|
|
10473
|
+
append_dev(div0, t0);
|
|
10104
10474
|
append_dev(div3, t1);
|
|
10105
10475
|
append_dev(div3, div2);
|
|
10106
10476
|
append_dev(div2, div1);
|
|
@@ -10112,11 +10482,13 @@
|
|
|
10112
10482
|
insert_dev(target, if_block2_anchor, anchor);
|
|
10113
10483
|
|
|
10114
10484
|
if (!mounted) {
|
|
10115
|
-
dispose = listen_dev(div1, "click", /*click_handler*/ ctx[
|
|
10485
|
+
dispose = listen_dev(div1, "click", /*click_handler*/ ctx[15], false, false, false);
|
|
10116
10486
|
mounted = true;
|
|
10117
10487
|
}
|
|
10118
10488
|
},
|
|
10119
10489
|
p: function update(ctx, dirty) {
|
|
10490
|
+
if (dirty[0] & /*$_*/ 256 && t0_value !== (t0_value = /*$_*/ ctx[8]("tournamentsTable.leaderboard") + "")) set_data_dev(t0, t0_value);
|
|
10491
|
+
|
|
10120
10492
|
if (current_block_type !== (current_block_type = select_block_type_2(ctx))) {
|
|
10121
10493
|
if_block0.d(1);
|
|
10122
10494
|
if_block0 = current_block_type(ctx);
|
|
@@ -10170,17 +10542,17 @@
|
|
|
10170
10542
|
block,
|
|
10171
10543
|
id: create_if_block_1$1.name,
|
|
10172
10544
|
type: "if",
|
|
10173
|
-
source: "(
|
|
10545
|
+
source: "(90:2) {#if isMobile(userAgent) == true}",
|
|
10174
10546
|
ctx
|
|
10175
10547
|
});
|
|
10176
10548
|
|
|
10177
10549
|
return block;
|
|
10178
10550
|
}
|
|
10179
10551
|
|
|
10180
|
-
// (
|
|
10552
|
+
// (163:16) {:else}
|
|
10181
10553
|
function create_else_block_3(ctx) {
|
|
10182
10554
|
let p;
|
|
10183
|
-
let t_value = /*column*/ ctx[
|
|
10555
|
+
let t_value = /*column*/ ctx[12] + "";
|
|
10184
10556
|
let t;
|
|
10185
10557
|
|
|
10186
10558
|
const block = {
|
|
@@ -10188,14 +10560,14 @@
|
|
|
10188
10560
|
p = element("p");
|
|
10189
10561
|
t = text(t_value);
|
|
10190
10562
|
attr_dev(p, "data-sort", /*sort*/ ctx[7]);
|
|
10191
|
-
add_location(p, file$1,
|
|
10563
|
+
add_location(p, file$1, 163, 18, 5227);
|
|
10192
10564
|
},
|
|
10193
10565
|
m: function mount(target, anchor) {
|
|
10194
10566
|
insert_dev(target, p, anchor);
|
|
10195
10567
|
append_dev(p, t);
|
|
10196
10568
|
},
|
|
10197
10569
|
p: function update(ctx, dirty) {
|
|
10198
|
-
if (dirty[0] & /*columns*/ 8 && t_value !== (t_value = /*column*/ ctx[
|
|
10570
|
+
if (dirty[0] & /*columns*/ 8 && t_value !== (t_value = /*column*/ ctx[12] + "")) set_data_dev(t, t_value);
|
|
10199
10571
|
|
|
10200
10572
|
if (dirty[0] & /*sort*/ 128) {
|
|
10201
10573
|
attr_dev(p, "data-sort", /*sort*/ ctx[7]);
|
|
@@ -10210,23 +10582,23 @@
|
|
|
10210
10582
|
block,
|
|
10211
10583
|
id: create_else_block_3.name,
|
|
10212
10584
|
type: "else",
|
|
10213
|
-
source: "(
|
|
10585
|
+
source: "(163:16) {:else}",
|
|
10214
10586
|
ctx
|
|
10215
10587
|
});
|
|
10216
10588
|
|
|
10217
10589
|
return block;
|
|
10218
10590
|
}
|
|
10219
10591
|
|
|
10220
|
-
// (
|
|
10592
|
+
// (159:16) {#if sortable == 'true'}
|
|
10221
10593
|
function create_if_block_8(ctx) {
|
|
10222
10594
|
let button;
|
|
10223
|
-
let t_value = /*column*/ ctx[
|
|
10595
|
+
let t_value = /*column*/ ctx[12] + "";
|
|
10224
10596
|
let t;
|
|
10225
10597
|
let mounted;
|
|
10226
10598
|
let dispose;
|
|
10227
10599
|
|
|
10228
10600
|
function click_handler_1() {
|
|
10229
|
-
return /*click_handler_1*/ ctx[
|
|
10601
|
+
return /*click_handler_1*/ ctx[16](/*column*/ ctx[12]);
|
|
10230
10602
|
}
|
|
10231
10603
|
|
|
10232
10604
|
const block = {
|
|
@@ -10234,7 +10606,7 @@
|
|
|
10234
10606
|
button = element("button");
|
|
10235
10607
|
t = text(t_value);
|
|
10236
10608
|
attr_dev(button, "data-sort", /*sort*/ ctx[7]);
|
|
10237
|
-
add_location(button, file$1,
|
|
10609
|
+
add_location(button, file$1, 159, 18, 5070);
|
|
10238
10610
|
},
|
|
10239
10611
|
m: function mount(target, anchor) {
|
|
10240
10612
|
insert_dev(target, button, anchor);
|
|
@@ -10247,7 +10619,7 @@
|
|
|
10247
10619
|
},
|
|
10248
10620
|
p: function update(new_ctx, dirty) {
|
|
10249
10621
|
ctx = new_ctx;
|
|
10250
|
-
if (dirty[0] & /*columns*/ 8 && t_value !== (t_value = /*column*/ ctx[
|
|
10622
|
+
if (dirty[0] & /*columns*/ 8 && t_value !== (t_value = /*column*/ ctx[12] + "")) set_data_dev(t, t_value);
|
|
10251
10623
|
|
|
10252
10624
|
if (dirty[0] & /*sort*/ 128) {
|
|
10253
10625
|
attr_dev(button, "data-sort", /*sort*/ ctx[7]);
|
|
@@ -10264,14 +10636,14 @@
|
|
|
10264
10636
|
block,
|
|
10265
10637
|
id: create_if_block_8.name,
|
|
10266
10638
|
type: "if",
|
|
10267
|
-
source: "(
|
|
10639
|
+
source: "(159:16) {#if sortable == 'true'}",
|
|
10268
10640
|
ctx
|
|
10269
10641
|
});
|
|
10270
10642
|
|
|
10271
10643
|
return block;
|
|
10272
10644
|
}
|
|
10273
10645
|
|
|
10274
|
-
// (
|
|
10646
|
+
// (157:12) {#each columns as column}
|
|
10275
10647
|
function create_each_block_2(ctx) {
|
|
10276
10648
|
let th;
|
|
10277
10649
|
let t;
|
|
@@ -10289,7 +10661,7 @@
|
|
|
10289
10661
|
th = element("th");
|
|
10290
10662
|
if_block.c();
|
|
10291
10663
|
t = space();
|
|
10292
|
-
add_location(th, file$1,
|
|
10664
|
+
add_location(th, file$1, 157, 14, 5006);
|
|
10293
10665
|
},
|
|
10294
10666
|
m: function mount(target, anchor) {
|
|
10295
10667
|
insert_dev(target, th, anchor);
|
|
@@ -10319,14 +10691,14 @@
|
|
|
10319
10691
|
block,
|
|
10320
10692
|
id: create_each_block_2.name,
|
|
10321
10693
|
type: "each",
|
|
10322
|
-
source: "(
|
|
10694
|
+
source: "(157:12) {#each columns as column}",
|
|
10323
10695
|
ctx
|
|
10324
10696
|
});
|
|
10325
10697
|
|
|
10326
10698
|
return block;
|
|
10327
10699
|
}
|
|
10328
10700
|
|
|
10329
|
-
// (
|
|
10701
|
+
// (171:10) {#if firstrow == 'true' && firstRowData}
|
|
10330
10702
|
function create_if_block_7(ctx) {
|
|
10331
10703
|
let tr;
|
|
10332
10704
|
let td0;
|
|
@@ -10360,15 +10732,15 @@
|
|
|
10360
10732
|
td2 = element("td");
|
|
10361
10733
|
div = element("div");
|
|
10362
10734
|
t5 = text(t5_value);
|
|
10363
|
-
add_location(em, file$1,
|
|
10364
|
-
add_location(strong, file$1,
|
|
10365
|
-
add_location(td0, file$1,
|
|
10366
|
-
add_location(td1, file$1,
|
|
10735
|
+
add_location(em, file$1, 172, 26, 5483);
|
|
10736
|
+
add_location(strong, file$1, 172, 18, 5475);
|
|
10737
|
+
add_location(td0, file$1, 172, 14, 5471);
|
|
10738
|
+
add_location(td1, file$1, 173, 14, 5545);
|
|
10367
10739
|
attr_dev(div, "class", "Flex");
|
|
10368
|
-
add_location(div, file$1,
|
|
10369
|
-
add_location(td2, file$1,
|
|
10740
|
+
add_location(div, file$1, 174, 18, 5592);
|
|
10741
|
+
add_location(td2, file$1, 174, 14, 5588);
|
|
10370
10742
|
attr_dev(tr, "class", "FirstRow");
|
|
10371
|
-
add_location(tr, file$1,
|
|
10743
|
+
add_location(tr, file$1, 171, 12, 5434);
|
|
10372
10744
|
},
|
|
10373
10745
|
m: function mount(target, anchor) {
|
|
10374
10746
|
insert_dev(target, tr, anchor);
|
|
@@ -10399,14 +10771,14 @@
|
|
|
10399
10771
|
block,
|
|
10400
10772
|
id: create_if_block_7.name,
|
|
10401
10773
|
type: "if",
|
|
10402
|
-
source: "(
|
|
10774
|
+
source: "(171:10) {#if firstrow == 'true' && firstRowData}",
|
|
10403
10775
|
ctx
|
|
10404
10776
|
});
|
|
10405
10777
|
|
|
10406
10778
|
return block;
|
|
10407
10779
|
}
|
|
10408
10780
|
|
|
10409
|
-
// (
|
|
10781
|
+
// (178:10) {#if showTable}
|
|
10410
10782
|
function create_if_block_6(ctx) {
|
|
10411
10783
|
let each_1_anchor;
|
|
10412
10784
|
let each_value_1 = /*display*/ ctx[6];
|
|
@@ -10467,30 +10839,30 @@
|
|
|
10467
10839
|
block,
|
|
10468
10840
|
id: create_if_block_6.name,
|
|
10469
10841
|
type: "if",
|
|
10470
|
-
source: "(
|
|
10842
|
+
source: "(178:10) {#if showTable}",
|
|
10471
10843
|
ctx
|
|
10472
10844
|
});
|
|
10473
10845
|
|
|
10474
10846
|
return block;
|
|
10475
10847
|
}
|
|
10476
10848
|
|
|
10477
|
-
// (
|
|
10849
|
+
// (179:12) {#each display as row}
|
|
10478
10850
|
function create_each_block_1(ctx) {
|
|
10479
10851
|
let tr;
|
|
10480
10852
|
let td0;
|
|
10481
10853
|
let strong;
|
|
10482
10854
|
let em;
|
|
10483
10855
|
let t0;
|
|
10484
|
-
let t1_value = /*row*/ ctx[
|
|
10856
|
+
let t1_value = /*row*/ ctx[24].Position + "";
|
|
10485
10857
|
let t1;
|
|
10486
10858
|
let t2;
|
|
10487
10859
|
let td1;
|
|
10488
|
-
let t3_value = /*row*/ ctx[
|
|
10860
|
+
let t3_value = /*row*/ ctx[24].Name + "";
|
|
10489
10861
|
let t3;
|
|
10490
10862
|
let t4;
|
|
10491
10863
|
let td2;
|
|
10492
10864
|
let div;
|
|
10493
|
-
let t5_value = /*row*/ ctx[
|
|
10865
|
+
let t5_value = /*row*/ ctx[24].Score + "";
|
|
10494
10866
|
let t5;
|
|
10495
10867
|
let t6;
|
|
10496
10868
|
|
|
@@ -10510,14 +10882,14 @@
|
|
|
10510
10882
|
div = element("div");
|
|
10511
10883
|
t5 = text(t5_value);
|
|
10512
10884
|
t6 = space();
|
|
10513
|
-
add_location(em, file$1,
|
|
10514
|
-
add_location(strong, file$1,
|
|
10515
|
-
add_location(td0, file$1,
|
|
10516
|
-
add_location(td1, file$1,
|
|
10885
|
+
add_location(em, file$1, 180, 28, 5784);
|
|
10886
|
+
add_location(strong, file$1, 180, 20, 5776);
|
|
10887
|
+
add_location(td0, file$1, 180, 16, 5772);
|
|
10888
|
+
add_location(td1, file$1, 181, 16, 5839);
|
|
10517
10889
|
attr_dev(div, "class", "Flex");
|
|
10518
|
-
add_location(div, file$1,
|
|
10519
|
-
add_location(td2, file$1,
|
|
10520
|
-
add_location(tr, file$1,
|
|
10890
|
+
add_location(div, file$1, 182, 20, 5879);
|
|
10891
|
+
add_location(td2, file$1, 182, 16, 5875);
|
|
10892
|
+
add_location(tr, file$1, 179, 14, 5751);
|
|
10521
10893
|
},
|
|
10522
10894
|
m: function mount(target, anchor) {
|
|
10523
10895
|
insert_dev(target, tr, anchor);
|
|
@@ -10536,9 +10908,9 @@
|
|
|
10536
10908
|
append_dev(tr, t6);
|
|
10537
10909
|
},
|
|
10538
10910
|
p: function update(ctx, dirty) {
|
|
10539
|
-
if (dirty[0] & /*display*/ 64 && t1_value !== (t1_value = /*row*/ ctx[
|
|
10540
|
-
if (dirty[0] & /*display*/ 64 && t3_value !== (t3_value = /*row*/ ctx[
|
|
10541
|
-
if (dirty[0] & /*display*/ 64 && t5_value !== (t5_value = /*row*/ ctx[
|
|
10911
|
+
if (dirty[0] & /*display*/ 64 && t1_value !== (t1_value = /*row*/ ctx[24].Position + "")) set_data_dev(t1, t1_value);
|
|
10912
|
+
if (dirty[0] & /*display*/ 64 && t3_value !== (t3_value = /*row*/ ctx[24].Name + "")) set_data_dev(t3, t3_value);
|
|
10913
|
+
if (dirty[0] & /*display*/ 64 && t5_value !== (t5_value = /*row*/ ctx[24].Score + "")) set_data_dev(t5, t5_value);
|
|
10542
10914
|
},
|
|
10543
10915
|
d: function destroy(detaching) {
|
|
10544
10916
|
if (detaching) detach_dev(tr);
|
|
@@ -10549,14 +10921,14 @@
|
|
|
10549
10921
|
block,
|
|
10550
10922
|
id: create_each_block_1.name,
|
|
10551
10923
|
type: "each",
|
|
10552
|
-
source: "(
|
|
10924
|
+
source: "(179:12) {#each display as row}",
|
|
10553
10925
|
ctx
|
|
10554
10926
|
});
|
|
10555
10927
|
|
|
10556
10928
|
return block;
|
|
10557
10929
|
}
|
|
10558
10930
|
|
|
10559
|
-
// (
|
|
10931
|
+
// (195:10) {:else}
|
|
10560
10932
|
function create_else_block_2(ctx) {
|
|
10561
10933
|
let svg;
|
|
10562
10934
|
let path;
|
|
@@ -10566,7 +10938,7 @@
|
|
|
10566
10938
|
svg = svg_element("svg");
|
|
10567
10939
|
path = svg_element("path");
|
|
10568
10940
|
attr_dev(path, "d", "M6 9l6 6 6-6");
|
|
10569
|
-
add_location(path, file$1,
|
|
10941
|
+
add_location(path, file$1, 196, 14, 6607);
|
|
10570
10942
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
10571
10943
|
attr_dev(svg, "width", "24");
|
|
10572
10944
|
attr_dev(svg, "height", "24");
|
|
@@ -10576,7 +10948,7 @@
|
|
|
10576
10948
|
attr_dev(svg, "stroke-width", "2");
|
|
10577
10949
|
attr_dev(svg, "stroke-linecap", "round");
|
|
10578
10950
|
attr_dev(svg, "stroke-linejoin", "round");
|
|
10579
|
-
add_location(svg, file$1,
|
|
10951
|
+
add_location(svg, file$1, 195, 12, 6416);
|
|
10580
10952
|
},
|
|
10581
10953
|
m: function mount(target, anchor) {
|
|
10582
10954
|
insert_dev(target, svg, anchor);
|
|
@@ -10591,14 +10963,14 @@
|
|
|
10591
10963
|
block,
|
|
10592
10964
|
id: create_else_block_2.name,
|
|
10593
10965
|
type: "else",
|
|
10594
|
-
source: "(
|
|
10966
|
+
source: "(195:10) {:else}",
|
|
10595
10967
|
ctx
|
|
10596
10968
|
});
|
|
10597
10969
|
|
|
10598
10970
|
return block;
|
|
10599
10971
|
}
|
|
10600
10972
|
|
|
10601
|
-
// (
|
|
10973
|
+
// (191:10) {#if showTable}
|
|
10602
10974
|
function create_if_block_5(ctx) {
|
|
10603
10975
|
let svg;
|
|
10604
10976
|
let path;
|
|
@@ -10608,7 +10980,7 @@
|
|
|
10608
10980
|
svg = svg_element("svg");
|
|
10609
10981
|
path = svg_element("path");
|
|
10610
10982
|
attr_dev(path, "d", "M18 15l-6-6-6 6");
|
|
10611
|
-
add_location(path, file$1,
|
|
10983
|
+
add_location(path, file$1, 192, 14, 6339);
|
|
10612
10984
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
10613
10985
|
attr_dev(svg, "width", "24");
|
|
10614
10986
|
attr_dev(svg, "height", "24");
|
|
@@ -10618,7 +10990,7 @@
|
|
|
10618
10990
|
attr_dev(svg, "stroke-width", "2");
|
|
10619
10991
|
attr_dev(svg, "stroke-linecap", "round");
|
|
10620
10992
|
attr_dev(svg, "stroke-linejoin", "round");
|
|
10621
|
-
add_location(svg, file$1,
|
|
10993
|
+
add_location(svg, file$1, 191, 12, 6148);
|
|
10622
10994
|
},
|
|
10623
10995
|
m: function mount(target, anchor) {
|
|
10624
10996
|
insert_dev(target, svg, anchor);
|
|
@@ -10633,14 +11005,14 @@
|
|
|
10633
11005
|
block,
|
|
10634
11006
|
id: create_if_block_5.name,
|
|
10635
11007
|
type: "if",
|
|
10636
|
-
source: "(
|
|
11008
|
+
source: "(191:10) {#if showTable}",
|
|
10637
11009
|
ctx
|
|
10638
11010
|
});
|
|
10639
11011
|
|
|
10640
11012
|
return block;
|
|
10641
11013
|
}
|
|
10642
11014
|
|
|
10643
|
-
// (
|
|
11015
|
+
// (99:10) {:else}
|
|
10644
11016
|
function create_else_block$1(ctx) {
|
|
10645
11017
|
let svg;
|
|
10646
11018
|
let path;
|
|
@@ -10650,7 +11022,7 @@
|
|
|
10650
11022
|
svg = svg_element("svg");
|
|
10651
11023
|
path = svg_element("path");
|
|
10652
11024
|
attr_dev(path, "d", "M6 9l6 6 6-6");
|
|
10653
|
-
add_location(path, file$1,
|
|
11025
|
+
add_location(path, file$1, 100, 14, 3411);
|
|
10654
11026
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
10655
11027
|
attr_dev(svg, "width", "24");
|
|
10656
11028
|
attr_dev(svg, "height", "24");
|
|
@@ -10660,7 +11032,7 @@
|
|
|
10660
11032
|
attr_dev(svg, "stroke-width", "2");
|
|
10661
11033
|
attr_dev(svg, "stroke-linecap", "round");
|
|
10662
11034
|
attr_dev(svg, "stroke-linejoin", "round");
|
|
10663
|
-
add_location(svg, file$1,
|
|
11035
|
+
add_location(svg, file$1, 99, 12, 3220);
|
|
10664
11036
|
},
|
|
10665
11037
|
m: function mount(target, anchor) {
|
|
10666
11038
|
insert_dev(target, svg, anchor);
|
|
@@ -10675,14 +11047,14 @@
|
|
|
10675
11047
|
block,
|
|
10676
11048
|
id: create_else_block$1.name,
|
|
10677
11049
|
type: "else",
|
|
10678
|
-
source: "(
|
|
11050
|
+
source: "(99:10) {:else}",
|
|
10679
11051
|
ctx
|
|
10680
11052
|
});
|
|
10681
11053
|
|
|
10682
11054
|
return block;
|
|
10683
11055
|
}
|
|
10684
11056
|
|
|
10685
|
-
// (
|
|
11057
|
+
// (95:10) {#if showTable}
|
|
10686
11058
|
function create_if_block_4$1(ctx) {
|
|
10687
11059
|
let svg;
|
|
10688
11060
|
let path;
|
|
@@ -10692,7 +11064,7 @@
|
|
|
10692
11064
|
svg = svg_element("svg");
|
|
10693
11065
|
path = svg_element("path");
|
|
10694
11066
|
attr_dev(path, "d", "M18 15l-6-6-6 6");
|
|
10695
|
-
add_location(path, file$1,
|
|
11067
|
+
add_location(path, file$1, 96, 14, 3143);
|
|
10696
11068
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
10697
11069
|
attr_dev(svg, "width", "24");
|
|
10698
11070
|
attr_dev(svg, "height", "24");
|
|
@@ -10702,7 +11074,7 @@
|
|
|
10702
11074
|
attr_dev(svg, "stroke-width", "2");
|
|
10703
11075
|
attr_dev(svg, "stroke-linecap", "round");
|
|
10704
11076
|
attr_dev(svg, "stroke-linejoin", "round");
|
|
10705
|
-
add_location(svg, file$1,
|
|
11077
|
+
add_location(svg, file$1, 95, 12, 2952);
|
|
10706
11078
|
},
|
|
10707
11079
|
m: function mount(target, anchor) {
|
|
10708
11080
|
insert_dev(target, svg, anchor);
|
|
@@ -10717,14 +11089,14 @@
|
|
|
10717
11089
|
block,
|
|
10718
11090
|
id: create_if_block_4$1.name,
|
|
10719
11091
|
type: "if",
|
|
10720
|
-
source: "(
|
|
11092
|
+
source: "(95:10) {#if showTable}",
|
|
10721
11093
|
ctx
|
|
10722
11094
|
});
|
|
10723
11095
|
|
|
10724
11096
|
return block;
|
|
10725
11097
|
}
|
|
10726
11098
|
|
|
10727
|
-
// (
|
|
11099
|
+
// (108:4) {#if firstrow == 'true' && firstRowData}
|
|
10728
11100
|
function create_if_block_3$1(ctx) {
|
|
10729
11101
|
let div3;
|
|
10730
11102
|
let div0;
|
|
@@ -10738,6 +11110,8 @@
|
|
|
10738
11110
|
let div2;
|
|
10739
11111
|
let div1;
|
|
10740
11112
|
let p0;
|
|
11113
|
+
let t3_value = /*$_*/ ctx[8]("tournamentsTable.score") + "";
|
|
11114
|
+
let t3;
|
|
10741
11115
|
let t4;
|
|
10742
11116
|
let p1;
|
|
10743
11117
|
let t5_value = /*firstRowData*/ ctx[4].Score + "";
|
|
@@ -10755,21 +11129,21 @@
|
|
|
10755
11129
|
div2 = element("div");
|
|
10756
11130
|
div1 = element("div");
|
|
10757
11131
|
p0 = element("p");
|
|
10758
|
-
|
|
11132
|
+
t3 = text(t3_value);
|
|
10759
11133
|
t4 = space();
|
|
10760
11134
|
p1 = element("p");
|
|
10761
11135
|
t5 = text(t5_value);
|
|
10762
|
-
add_location(span0, file$1,
|
|
10763
|
-
add_location(span1, file$1,
|
|
11136
|
+
add_location(span0, file$1, 109, 31, 3641);
|
|
11137
|
+
add_location(span1, file$1, 109, 67, 3677);
|
|
10764
11138
|
attr_dev(div0, "class", "TableUser");
|
|
10765
|
-
add_location(div0, file$1,
|
|
10766
|
-
add_location(p0, file$1,
|
|
10767
|
-
add_location(p1, file$1,
|
|
10768
|
-
add_location(div1, file$1,
|
|
11139
|
+
add_location(div0, file$1, 109, 8, 3618);
|
|
11140
|
+
add_location(p0, file$1, 113, 12, 3784);
|
|
11141
|
+
add_location(p1, file$1, 114, 12, 3834);
|
|
11142
|
+
add_location(div1, file$1, 112, 10, 3766);
|
|
10769
11143
|
attr_dev(div2, "class", "TableUserDetails");
|
|
10770
|
-
add_location(div2, file$1,
|
|
11144
|
+
add_location(div2, file$1, 111, 8, 3725);
|
|
10771
11145
|
attr_dev(div3, "class", "TableContent TableContentFirstRow");
|
|
10772
|
-
add_location(div3, file$1,
|
|
11146
|
+
add_location(div3, file$1, 108, 6, 3562);
|
|
10773
11147
|
},
|
|
10774
11148
|
m: function mount(target, anchor) {
|
|
10775
11149
|
insert_dev(target, div3, anchor);
|
|
@@ -10782,6 +11156,7 @@
|
|
|
10782
11156
|
append_dev(div3, div2);
|
|
10783
11157
|
append_dev(div2, div1);
|
|
10784
11158
|
append_dev(div1, p0);
|
|
11159
|
+
append_dev(p0, t3);
|
|
10785
11160
|
append_dev(div1, t4);
|
|
10786
11161
|
append_dev(div1, p1);
|
|
10787
11162
|
append_dev(p1, t5);
|
|
@@ -10789,6 +11164,7 @@
|
|
|
10789
11164
|
p: function update(ctx, dirty) {
|
|
10790
11165
|
if (dirty[0] & /*firstRowData*/ 16 && t0_value !== (t0_value = /*firstRowData*/ ctx[4].Position + "")) set_data_dev(t0, t0_value);
|
|
10791
11166
|
if (dirty[0] & /*firstRowData*/ 16 && t1_value !== (t1_value = /*firstRowData*/ ctx[4].Name + "")) set_data_dev(t1, t1_value);
|
|
11167
|
+
if (dirty[0] & /*$_*/ 256 && t3_value !== (t3_value = /*$_*/ ctx[8]("tournamentsTable.score") + "")) set_data_dev(t3, t3_value);
|
|
10792
11168
|
if (dirty[0] & /*firstRowData*/ 16 && t5_value !== (t5_value = /*firstRowData*/ ctx[4].Score + "")) set_data_dev(t5, t5_value);
|
|
10793
11169
|
},
|
|
10794
11170
|
d: function destroy(detaching) {
|
|
@@ -10800,14 +11176,14 @@
|
|
|
10800
11176
|
block,
|
|
10801
11177
|
id: create_if_block_3$1.name,
|
|
10802
11178
|
type: "if",
|
|
10803
|
-
source: "(
|
|
11179
|
+
source: "(108:4) {#if firstrow == 'true' && firstRowData}",
|
|
10804
11180
|
ctx
|
|
10805
11181
|
});
|
|
10806
11182
|
|
|
10807
11183
|
return block;
|
|
10808
11184
|
}
|
|
10809
11185
|
|
|
10810
|
-
// (
|
|
11186
|
+
// (129:4) {#if showTable}
|
|
10811
11187
|
function create_if_block_2$1(ctx) {
|
|
10812
11188
|
let each_1_anchor;
|
|
10813
11189
|
let each_value = /*display*/ ctx[6];
|
|
@@ -10834,7 +11210,7 @@
|
|
|
10834
11210
|
insert_dev(target, each_1_anchor, anchor);
|
|
10835
11211
|
},
|
|
10836
11212
|
p: function update(ctx, dirty) {
|
|
10837
|
-
if (dirty[0] & /*display*/
|
|
11213
|
+
if (dirty[0] & /*display, $_*/ 320) {
|
|
10838
11214
|
each_value = /*display*/ ctx[6];
|
|
10839
11215
|
validate_each_argument(each_value);
|
|
10840
11216
|
let i;
|
|
@@ -10868,30 +11244,32 @@
|
|
|
10868
11244
|
block,
|
|
10869
11245
|
id: create_if_block_2$1.name,
|
|
10870
11246
|
type: "if",
|
|
10871
|
-
source: "(
|
|
11247
|
+
source: "(129:4) {#if showTable}",
|
|
10872
11248
|
ctx
|
|
10873
11249
|
});
|
|
10874
11250
|
|
|
10875
11251
|
return block;
|
|
10876
11252
|
}
|
|
10877
11253
|
|
|
10878
|
-
// (
|
|
11254
|
+
// (130:6) {#each display as row}
|
|
10879
11255
|
function create_each_block$1(ctx) {
|
|
10880
11256
|
let div3;
|
|
10881
11257
|
let div0;
|
|
10882
11258
|
let span0;
|
|
10883
|
-
let t0_value = /*row*/ ctx[
|
|
11259
|
+
let t0_value = /*row*/ ctx[24].Position + "";
|
|
10884
11260
|
let t0;
|
|
10885
11261
|
let span1;
|
|
10886
|
-
let t1_value = /*row*/ ctx[
|
|
11262
|
+
let t1_value = /*row*/ ctx[24].Name + "";
|
|
10887
11263
|
let t1;
|
|
10888
11264
|
let t2;
|
|
10889
11265
|
let div2;
|
|
10890
11266
|
let div1;
|
|
10891
11267
|
let p0;
|
|
11268
|
+
let t3_value = /*$_*/ ctx[8]("tournamentsTable.score") + "";
|
|
11269
|
+
let t3;
|
|
10892
11270
|
let t4;
|
|
10893
11271
|
let p1;
|
|
10894
|
-
let t5_value = /*row*/ ctx[
|
|
11272
|
+
let t5_value = /*row*/ ctx[24].Score + "";
|
|
10895
11273
|
let t5;
|
|
10896
11274
|
let t6;
|
|
10897
11275
|
|
|
@@ -10907,22 +11285,22 @@
|
|
|
10907
11285
|
div2 = element("div");
|
|
10908
11286
|
div1 = element("div");
|
|
10909
11287
|
p0 = element("p");
|
|
10910
|
-
|
|
11288
|
+
t3 = text(t3_value);
|
|
10911
11289
|
t4 = space();
|
|
10912
11290
|
p1 = element("p");
|
|
10913
11291
|
t5 = text(t5_value);
|
|
10914
11292
|
t6 = space();
|
|
10915
|
-
add_location(span0, file$1,
|
|
10916
|
-
add_location(span1, file$1,
|
|
11293
|
+
add_location(span0, file$1, 131, 33, 4298);
|
|
11294
|
+
add_location(span1, file$1, 131, 60, 4325);
|
|
10917
11295
|
attr_dev(div0, "class", "TableUser");
|
|
10918
|
-
add_location(div0, file$1,
|
|
10919
|
-
add_location(p0, file$1,
|
|
10920
|
-
add_location(p1, file$1,
|
|
10921
|
-
add_location(div1, file$1,
|
|
11296
|
+
add_location(div0, file$1, 131, 10, 4275);
|
|
11297
|
+
add_location(p0, file$1, 135, 14, 4429);
|
|
11298
|
+
add_location(p1, file$1, 136, 14, 4481);
|
|
11299
|
+
add_location(div1, file$1, 134, 12, 4409);
|
|
10922
11300
|
attr_dev(div2, "class", "TableUserDetails");
|
|
10923
|
-
add_location(div2, file$1,
|
|
11301
|
+
add_location(div2, file$1, 133, 10, 4366);
|
|
10924
11302
|
attr_dev(div3, "class", "TableContent");
|
|
10925
|
-
add_location(div3, file$1,
|
|
11303
|
+
add_location(div3, file$1, 130, 8, 4238);
|
|
10926
11304
|
},
|
|
10927
11305
|
m: function mount(target, anchor) {
|
|
10928
11306
|
insert_dev(target, div3, anchor);
|
|
@@ -10935,15 +11313,17 @@
|
|
|
10935
11313
|
append_dev(div3, div2);
|
|
10936
11314
|
append_dev(div2, div1);
|
|
10937
11315
|
append_dev(div1, p0);
|
|
11316
|
+
append_dev(p0, t3);
|
|
10938
11317
|
append_dev(div1, t4);
|
|
10939
11318
|
append_dev(div1, p1);
|
|
10940
11319
|
append_dev(p1, t5);
|
|
10941
11320
|
append_dev(div3, t6);
|
|
10942
11321
|
},
|
|
10943
11322
|
p: function update(ctx, dirty) {
|
|
10944
|
-
if (dirty[0] & /*display*/ 64 && t0_value !== (t0_value = /*row*/ ctx[
|
|
10945
|
-
if (dirty[0] & /*display*/ 64 && t1_value !== (t1_value = /*row*/ ctx[
|
|
10946
|
-
if (dirty[0] &
|
|
11323
|
+
if (dirty[0] & /*display*/ 64 && t0_value !== (t0_value = /*row*/ ctx[24].Position + "")) set_data_dev(t0, t0_value);
|
|
11324
|
+
if (dirty[0] & /*display*/ 64 && t1_value !== (t1_value = /*row*/ ctx[24].Name + "")) set_data_dev(t1, t1_value);
|
|
11325
|
+
if (dirty[0] & /*$_*/ 256 && t3_value !== (t3_value = /*$_*/ ctx[8]("tournamentsTable.score") + "")) set_data_dev(t3, t3_value);
|
|
11326
|
+
if (dirty[0] & /*display*/ 64 && t5_value !== (t5_value = /*row*/ ctx[24].Score + "")) set_data_dev(t5, t5_value);
|
|
10947
11327
|
},
|
|
10948
11328
|
d: function destroy(detaching) {
|
|
10949
11329
|
if (detaching) detach_dev(div3);
|
|
@@ -10954,7 +11334,7 @@
|
|
|
10954
11334
|
block,
|
|
10955
11335
|
id: create_each_block$1.name,
|
|
10956
11336
|
type: "each",
|
|
10957
|
-
source: "(
|
|
11337
|
+
source: "(130:6) {#each display as row}",
|
|
10958
11338
|
ctx
|
|
10959
11339
|
});
|
|
10960
11340
|
|
|
@@ -10967,7 +11347,7 @@
|
|
|
10967
11347
|
|
|
10968
11348
|
function select_block_type(ctx, dirty) {
|
|
10969
11349
|
if (/*data*/ ctx[2].length > 0 || /*firstRowData*/ ctx[4]) return create_if_block$1;
|
|
10970
|
-
if (show_if == null) show_if = !!(isMobile(/*userAgent*/ ctx[
|
|
11350
|
+
if (show_if == null) show_if = !!(isMobile(/*userAgent*/ ctx[9]) == true);
|
|
10971
11351
|
if (show_if) return create_if_block_9;
|
|
10972
11352
|
return create_else_block_5;
|
|
10973
11353
|
}
|
|
@@ -11023,6 +11403,9 @@
|
|
|
11023
11403
|
function instance$1($$self, $$props, $$invalidate) {
|
|
11024
11404
|
let display;
|
|
11025
11405
|
let sort;
|
|
11406
|
+
let $_;
|
|
11407
|
+
validate_store(X, "_");
|
|
11408
|
+
component_subscribe($$self, X, $$value => $$invalidate(8, $_ = $$value));
|
|
11026
11409
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
11027
11410
|
validate_slots("undefined", slots, []);
|
|
11028
11411
|
let { sortable = false } = $$props;
|
|
@@ -11036,6 +11419,10 @@
|
|
|
11036
11419
|
let showTable = true;
|
|
11037
11420
|
let userAgent = window.navigator.userAgent;
|
|
11038
11421
|
|
|
11422
|
+
Object.keys(TournamentsTableTranslations).forEach(item => {
|
|
11423
|
+
addNewMessages(item, TournamentsTableTranslations[item]);
|
|
11424
|
+
});
|
|
11425
|
+
|
|
11039
11426
|
const messageHandler = e => {
|
|
11040
11427
|
if (e.data && e.data.type === "CasinoTableData") {
|
|
11041
11428
|
$$invalidate(2, data = e.data.tableData);
|
|
@@ -11057,9 +11444,9 @@
|
|
|
11057
11444
|
const sameColumn = column === sortColumn;
|
|
11058
11445
|
const currentlyAscending = sortDirection === "ASC";
|
|
11059
11446
|
const unsetSort = sameColumn && !currentlyAscending;
|
|
11060
|
-
$$invalidate(
|
|
11447
|
+
$$invalidate(13, sortColumn = unsetSort ? null : column);
|
|
11061
11448
|
|
|
11062
|
-
$$invalidate(
|
|
11449
|
+
$$invalidate(14, sortDirection = unsetSort
|
|
11063
11450
|
? null
|
|
11064
11451
|
: sameColumn && currentlyAscending ? "DESC" : "ASC");
|
|
11065
11452
|
};
|
|
@@ -11119,7 +11506,7 @@
|
|
|
11119
11506
|
|
|
11120
11507
|
const writable_props = ["sortable", "firstrow"];
|
|
11121
11508
|
|
|
11122
|
-
|
|
11509
|
+
Object_1$1.keys($$props).forEach(key => {
|
|
11123
11510
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
11124
11511
|
});
|
|
11125
11512
|
|
|
@@ -11138,6 +11525,9 @@
|
|
|
11138
11525
|
onMount,
|
|
11139
11526
|
getDevice,
|
|
11140
11527
|
isMobile,
|
|
11528
|
+
_: X,
|
|
11529
|
+
addNewMessages,
|
|
11530
|
+
TournamentsTableTranslations,
|
|
11141
11531
|
sortable,
|
|
11142
11532
|
firstrow,
|
|
11143
11533
|
columns,
|
|
@@ -11155,7 +11545,8 @@
|
|
|
11155
11545
|
sortData,
|
|
11156
11546
|
collapseTable,
|
|
11157
11547
|
display,
|
|
11158
|
-
sort
|
|
11548
|
+
sort,
|
|
11549
|
+
$_
|
|
11159
11550
|
});
|
|
11160
11551
|
|
|
11161
11552
|
$$self.$inject_state = $$props => {
|
|
@@ -11163,12 +11554,12 @@
|
|
|
11163
11554
|
if ("firstrow" in $$props) $$invalidate(1, firstrow = $$props.firstrow);
|
|
11164
11555
|
if ("columns" in $$props) $$invalidate(3, columns = $$props.columns);
|
|
11165
11556
|
if ("data" in $$props) $$invalidate(2, data = $$props.data);
|
|
11166
|
-
if ("sortColumn" in $$props) $$invalidate(
|
|
11167
|
-
if ("sortDirection" in $$props) $$invalidate(
|
|
11168
|
-
if ("column" in $$props) $$invalidate(
|
|
11557
|
+
if ("sortColumn" in $$props) $$invalidate(13, sortColumn = $$props.sortColumn);
|
|
11558
|
+
if ("sortDirection" in $$props) $$invalidate(14, sortDirection = $$props.sortDirection);
|
|
11559
|
+
if ("column" in $$props) $$invalidate(12, column = $$props.column);
|
|
11169
11560
|
if ("firstRowData" in $$props) $$invalidate(4, firstRowData = $$props.firstRowData);
|
|
11170
11561
|
if ("showTable" in $$props) $$invalidate(5, showTable = $$props.showTable);
|
|
11171
|
-
if ("userAgent" in $$props) $$invalidate(
|
|
11562
|
+
if ("userAgent" in $$props) $$invalidate(9, userAgent = $$props.userAgent);
|
|
11172
11563
|
if ("display" in $$props) $$invalidate(6, display = $$props.display);
|
|
11173
11564
|
if ("sort" in $$props) $$invalidate(7, sort = $$props.sort);
|
|
11174
11565
|
};
|
|
@@ -11178,11 +11569,11 @@
|
|
|
11178
11569
|
}
|
|
11179
11570
|
|
|
11180
11571
|
$$self.$$.update = () => {
|
|
11181
|
-
if ($$self.$$.dirty[0] & /*sortColumn, sortDirection, data*/
|
|
11572
|
+
if ($$self.$$.dirty[0] & /*sortColumn, sortDirection, data*/ 24580) {
|
|
11182
11573
|
$$invalidate(6, display = sortColumn && sortDirection ? sortData() : [...data]);
|
|
11183
11574
|
}
|
|
11184
11575
|
|
|
11185
|
-
if ($$self.$$.dirty[0] & /*sortColumn, sortDirection*/
|
|
11576
|
+
if ($$self.$$.dirty[0] & /*sortColumn, sortDirection*/ 24576) {
|
|
11186
11577
|
$$invalidate(7, sort = column === sortColumn ? sortDirection : null);
|
|
11187
11578
|
}
|
|
11188
11579
|
};
|
|
@@ -11196,6 +11587,7 @@
|
|
|
11196
11587
|
showTable,
|
|
11197
11588
|
display,
|
|
11198
11589
|
sort,
|
|
11590
|
+
$_,
|
|
11199
11591
|
userAgent,
|
|
11200
11592
|
sortBy,
|
|
11201
11593
|
collapseTable,
|
|
@@ -11267,15 +11659,17 @@
|
|
|
11267
11659
|
!customElements.get('casino-tournaments-table') && customElements.define('casino-tournaments-table', CasinoTournamentsTable);
|
|
11268
11660
|
|
|
11269
11661
|
/* src/CasinoTournamentsPageController.svelte generated by Svelte v3.37.0 */
|
|
11662
|
+
|
|
11663
|
+
const { Object: Object_1 } = globals;
|
|
11270
11664
|
const file = "src/CasinoTournamentsPageController.svelte";
|
|
11271
11665
|
|
|
11272
11666
|
function get_each_context(ctx, list, i) {
|
|
11273
11667
|
const child_ctx = ctx.slice();
|
|
11274
|
-
child_ctx[
|
|
11668
|
+
child_ctx[32] = list[i];
|
|
11275
11669
|
return child_ctx;
|
|
11276
11670
|
}
|
|
11277
11671
|
|
|
11278
|
-
// (
|
|
11672
|
+
// (164:0) {:else}
|
|
11279
11673
|
function create_else_block(ctx) {
|
|
11280
11674
|
let div5;
|
|
11281
11675
|
let div1;
|
|
@@ -11284,6 +11678,8 @@
|
|
|
11284
11678
|
let path;
|
|
11285
11679
|
let t0;
|
|
11286
11680
|
let p;
|
|
11681
|
+
let t1_value = /*$_*/ ctx[9]("tournamentsPage.back") + "";
|
|
11682
|
+
let t1;
|
|
11287
11683
|
let t2;
|
|
11288
11684
|
let div4;
|
|
11289
11685
|
let div2;
|
|
@@ -11307,7 +11703,7 @@
|
|
|
11307
11703
|
path = svg_element("path");
|
|
11308
11704
|
t0 = space();
|
|
11309
11705
|
p = element("p");
|
|
11310
|
-
|
|
11706
|
+
t1 = text(t1_value);
|
|
11311
11707
|
t2 = space();
|
|
11312
11708
|
div4 = element("div");
|
|
11313
11709
|
div2 = element("div");
|
|
@@ -11321,35 +11717,35 @@
|
|
|
11321
11717
|
attr_dev(path, "stroke-linejoin", "round");
|
|
11322
11718
|
attr_dev(path, "stroke-width", "2");
|
|
11323
11719
|
attr_dev(path, "d", "M15 19l-7-7 7-7");
|
|
11324
|
-
add_location(path, file,
|
|
11720
|
+
add_location(path, file, 169, 10, 5771);
|
|
11325
11721
|
attr_dev(svg, "fill", "none");
|
|
11326
11722
|
attr_dev(svg, "stroke", "currentColor");
|
|
11327
11723
|
attr_dev(svg, "width", "24");
|
|
11328
11724
|
attr_dev(svg, "height", "24");
|
|
11329
11725
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
11330
11726
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
11331
|
-
add_location(svg, file,
|
|
11332
|
-
add_location(p, file,
|
|
11727
|
+
add_location(svg, file, 168, 8, 5643);
|
|
11728
|
+
add_location(p, file, 171, 8, 5892);
|
|
11333
11729
|
attr_dev(div0, "class", "BackButton");
|
|
11334
|
-
add_location(div0, file,
|
|
11730
|
+
add_location(div0, file, 167, 6, 5584);
|
|
11335
11731
|
attr_dev(div1, "class", "TopButtons");
|
|
11336
|
-
add_location(div1, file,
|
|
11732
|
+
add_location(div1, file, 166, 4, 5553);
|
|
11337
11733
|
|
|
11338
|
-
attr_dev(div2, "class", div2_class_value = "" + ((isMobile(/*userAgent*/ ctx[
|
|
11734
|
+
attr_dev(div2, "class", div2_class_value = "" + ((isMobile(/*userAgent*/ ctx[10]) ? "MobileClass" : "") + (/*showleaderboard*/ ctx[0] == "true"
|
|
11339
11735
|
? "TournamentCardDetails"
|
|
11340
11736
|
: "FullSize")));
|
|
11341
11737
|
|
|
11342
|
-
add_location(div2, file,
|
|
11738
|
+
add_location(div2, file, 190, 6, 6772);
|
|
11343
11739
|
|
|
11344
11740
|
attr_dev(div3, "class", div3_class_value = /*showleaderboard*/ ctx[0] == "true"
|
|
11345
11741
|
? "TournamentTableDetails "
|
|
11346
11742
|
: "DisplayNone");
|
|
11347
11743
|
|
|
11348
|
-
add_location(div3, file,
|
|
11349
|
-
attr_dev(div4, "class", "TournamentContentDetails " + (isMobile(/*userAgent*/ ctx[
|
|
11350
|
-
add_location(div4, file,
|
|
11744
|
+
add_location(div3, file, 212, 6, 7618);
|
|
11745
|
+
attr_dev(div4, "class", "TournamentContentDetails " + (isMobile(/*userAgent*/ ctx[10]) ? "MobileClass" : ""));
|
|
11746
|
+
add_location(div4, file, 189, 4, 6684);
|
|
11351
11747
|
attr_dev(div5, "class", "TournamentsPage");
|
|
11352
|
-
add_location(div5, file,
|
|
11748
|
+
add_location(div5, file, 164, 2, 5518);
|
|
11353
11749
|
},
|
|
11354
11750
|
m: function mount(target, anchor) {
|
|
11355
11751
|
insert_dev(target, div5, anchor);
|
|
@@ -11359,6 +11755,7 @@
|
|
|
11359
11755
|
append_dev(svg, path);
|
|
11360
11756
|
append_dev(div0, t0);
|
|
11361
11757
|
append_dev(div0, p);
|
|
11758
|
+
append_dev(p, t1);
|
|
11362
11759
|
append_dev(div5, t2);
|
|
11363
11760
|
append_dev(div5, div4);
|
|
11364
11761
|
append_dev(div4, div2);
|
|
@@ -11370,11 +11767,13 @@
|
|
|
11370
11767
|
if (if_block2) if_block2.m(div3, null);
|
|
11371
11768
|
|
|
11372
11769
|
if (!mounted) {
|
|
11373
|
-
dispose = listen_dev(div0, "click", /*click_handler*/ ctx[
|
|
11770
|
+
dispose = listen_dev(div0, "click", /*click_handler*/ ctx[16], false, false, false);
|
|
11374
11771
|
mounted = true;
|
|
11375
11772
|
}
|
|
11376
11773
|
},
|
|
11377
11774
|
p: function update(ctx, dirty) {
|
|
11775
|
+
if (dirty[0] & /*$_*/ 512 && t1_value !== (t1_value = /*$_*/ ctx[9]("tournamentsPage.back") + "")) set_data_dev(t1, t1_value);
|
|
11776
|
+
|
|
11378
11777
|
if (/*tournamentDetails*/ ctx[7]) {
|
|
11379
11778
|
if (if_block0) {
|
|
11380
11779
|
if_block0.p(ctx, dirty);
|
|
@@ -11401,7 +11800,7 @@
|
|
|
11401
11800
|
if_block1 = null;
|
|
11402
11801
|
}
|
|
11403
11802
|
|
|
11404
|
-
if (dirty[0] & /*showleaderboard*/ 1 && div2_class_value !== (div2_class_value = "" + ((isMobile(/*userAgent*/ ctx[
|
|
11803
|
+
if (dirty[0] & /*showleaderboard*/ 1 && div2_class_value !== (div2_class_value = "" + ((isMobile(/*userAgent*/ ctx[10]) ? "MobileClass" : "") + (/*showleaderboard*/ ctx[0] == "true"
|
|
11405
11804
|
? "TournamentCardDetails"
|
|
11406
11805
|
: "FullSize")))) {
|
|
11407
11806
|
attr_dev(div2, "class", div2_class_value);
|
|
@@ -11440,27 +11839,32 @@
|
|
|
11440
11839
|
block,
|
|
11441
11840
|
id: create_else_block.name,
|
|
11442
11841
|
type: "else",
|
|
11443
|
-
source: "(
|
|
11842
|
+
source: "(164:0) {:else}",
|
|
11444
11843
|
ctx
|
|
11445
11844
|
});
|
|
11446
11845
|
|
|
11447
11846
|
return block;
|
|
11448
11847
|
}
|
|
11449
11848
|
|
|
11450
|
-
// (
|
|
11849
|
+
// (162:0) {#if isLoading}
|
|
11451
11850
|
function create_if_block(ctx) {
|
|
11452
11851
|
let p;
|
|
11852
|
+
let t_value = /*$_*/ ctx[9]("tournamentsPage.loading") + "";
|
|
11853
|
+
let t;
|
|
11453
11854
|
|
|
11454
11855
|
const block = {
|
|
11455
11856
|
c: function create() {
|
|
11456
11857
|
p = element("p");
|
|
11457
|
-
|
|
11458
|
-
add_location(p, file,
|
|
11858
|
+
t = text(t_value);
|
|
11859
|
+
add_location(p, file, 162, 2, 5469);
|
|
11459
11860
|
},
|
|
11460
11861
|
m: function mount(target, anchor) {
|
|
11461
11862
|
insert_dev(target, p, anchor);
|
|
11863
|
+
append_dev(p, t);
|
|
11864
|
+
},
|
|
11865
|
+
p: function update(ctx, dirty) {
|
|
11866
|
+
if (dirty[0] & /*$_*/ 512 && t_value !== (t_value = /*$_*/ ctx[9]("tournamentsPage.loading") + "")) set_data_dev(t, t_value);
|
|
11462
11867
|
},
|
|
11463
|
-
p: noop$1,
|
|
11464
11868
|
d: function destroy(detaching) {
|
|
11465
11869
|
if (detaching) detach_dev(p);
|
|
11466
11870
|
}
|
|
@@ -11470,14 +11874,14 @@
|
|
|
11470
11874
|
block,
|
|
11471
11875
|
id: create_if_block.name,
|
|
11472
11876
|
type: "if",
|
|
11473
|
-
source: "(
|
|
11877
|
+
source: "(162:0) {#if isLoading}",
|
|
11474
11878
|
ctx
|
|
11475
11879
|
});
|
|
11476
11880
|
|
|
11477
11881
|
return block;
|
|
11478
11882
|
}
|
|
11479
11883
|
|
|
11480
|
-
// (
|
|
11884
|
+
// (192:8) {#if tournamentDetails}
|
|
11481
11885
|
function create_if_block_4(ctx) {
|
|
11482
11886
|
let casino_tournaments_thumbnail_controller;
|
|
11483
11887
|
let casino_tournaments_thumbnail_controller_tournamenturl_value;
|
|
@@ -11495,7 +11899,7 @@
|
|
|
11495
11899
|
set_custom_element_data(casino_tournaments_thumbnail_controller, "showenrolled", "true");
|
|
11496
11900
|
set_custom_element_data(casino_tournaments_thumbnail_controller, "fullsize", casino_tournaments_thumbnail_controller_fullsize_value = !!/*showleaderboard*/ ctx[0]);
|
|
11497
11901
|
set_custom_element_data(casino_tournaments_thumbnail_controller, "currency", /*currency*/ ctx[4]);
|
|
11498
|
-
add_location(casino_tournaments_thumbnail_controller, file,
|
|
11902
|
+
add_location(casino_tournaments_thumbnail_controller, file, 192, 10, 6937);
|
|
11499
11903
|
},
|
|
11500
11904
|
m: function mount(target, anchor) {
|
|
11501
11905
|
insert_dev(target, casino_tournaments_thumbnail_controller, anchor);
|
|
@@ -11534,14 +11938,14 @@
|
|
|
11534
11938
|
block,
|
|
11535
11939
|
id: create_if_block_4.name,
|
|
11536
11940
|
type: "if",
|
|
11537
|
-
source: "(
|
|
11941
|
+
source: "(192:8) {#if tournamentDetails}",
|
|
11538
11942
|
ctx
|
|
11539
11943
|
});
|
|
11540
11944
|
|
|
11541
11945
|
return block;
|
|
11542
11946
|
}
|
|
11543
11947
|
|
|
11544
|
-
// (
|
|
11948
|
+
// (205:8) {#if tournamentDescription.length > 0}
|
|
11545
11949
|
function create_if_block_3(ctx) {
|
|
11546
11950
|
let each_1_anchor;
|
|
11547
11951
|
let each_value = /*tournamentDescription*/ ctx[6];
|
|
@@ -11602,14 +12006,14 @@
|
|
|
11602
12006
|
block,
|
|
11603
12007
|
id: create_if_block_3.name,
|
|
11604
12008
|
type: "if",
|
|
11605
|
-
source: "(
|
|
12009
|
+
source: "(205:8) {#if tournamentDescription.length > 0}",
|
|
11606
12010
|
ctx
|
|
11607
12011
|
});
|
|
11608
12012
|
|
|
11609
12013
|
return block;
|
|
11610
12014
|
}
|
|
11611
12015
|
|
|
11612
|
-
// (
|
|
12016
|
+
// (206:10) {#each tournamentDescription as desc}
|
|
11613
12017
|
function create_each_block(ctx) {
|
|
11614
12018
|
let casino_tournaments_details;
|
|
11615
12019
|
let casino_tournaments_details_title_value;
|
|
@@ -11618,19 +12022,19 @@
|
|
|
11618
12022
|
const block = {
|
|
11619
12023
|
c: function create() {
|
|
11620
12024
|
casino_tournaments_details = element("casino-tournaments-details");
|
|
11621
|
-
set_custom_element_data(casino_tournaments_details, "title", casino_tournaments_details_title_value = /*desc*/ ctx[
|
|
11622
|
-
set_custom_element_data(casino_tournaments_details, "text", casino_tournaments_details_text_value = /*desc*/ ctx[
|
|
11623
|
-
add_location(casino_tournaments_details, file,
|
|
12025
|
+
set_custom_element_data(casino_tournaments_details, "title", casino_tournaments_details_title_value = /*desc*/ ctx[32].title);
|
|
12026
|
+
set_custom_element_data(casino_tournaments_details, "text", casino_tournaments_details_text_value = /*desc*/ ctx[32].description);
|
|
12027
|
+
add_location(casino_tournaments_details, file, 206, 12, 7452);
|
|
11624
12028
|
},
|
|
11625
12029
|
m: function mount(target, anchor) {
|
|
11626
12030
|
insert_dev(target, casino_tournaments_details, anchor);
|
|
11627
12031
|
},
|
|
11628
12032
|
p: function update(ctx, dirty) {
|
|
11629
|
-
if (dirty[0] & /*tournamentDescription*/ 64 && casino_tournaments_details_title_value !== (casino_tournaments_details_title_value = /*desc*/ ctx[
|
|
12033
|
+
if (dirty[0] & /*tournamentDescription*/ 64 && casino_tournaments_details_title_value !== (casino_tournaments_details_title_value = /*desc*/ ctx[32].title)) {
|
|
11630
12034
|
set_custom_element_data(casino_tournaments_details, "title", casino_tournaments_details_title_value);
|
|
11631
12035
|
}
|
|
11632
12036
|
|
|
11633
|
-
if (dirty[0] & /*tournamentDescription*/ 64 && casino_tournaments_details_text_value !== (casino_tournaments_details_text_value = /*desc*/ ctx[
|
|
12037
|
+
if (dirty[0] & /*tournamentDescription*/ 64 && casino_tournaments_details_text_value !== (casino_tournaments_details_text_value = /*desc*/ ctx[32].description)) {
|
|
11634
12038
|
set_custom_element_data(casino_tournaments_details, "text", casino_tournaments_details_text_value);
|
|
11635
12039
|
}
|
|
11636
12040
|
},
|
|
@@ -11643,14 +12047,14 @@
|
|
|
11643
12047
|
block,
|
|
11644
12048
|
id: create_each_block.name,
|
|
11645
12049
|
type: "each",
|
|
11646
|
-
source: "(
|
|
12050
|
+
source: "(206:10) {#each tournamentDescription as desc}",
|
|
11647
12051
|
ctx
|
|
11648
12052
|
});
|
|
11649
12053
|
|
|
11650
12054
|
return block;
|
|
11651
12055
|
}
|
|
11652
12056
|
|
|
11653
|
-
// (
|
|
12057
|
+
// (214:8) {#if showleaderboard == "true"}
|
|
11654
12058
|
function create_if_block_1(ctx) {
|
|
11655
12059
|
let if_block_anchor;
|
|
11656
12060
|
let if_block = /*showTable*/ ctx[8] == true && create_if_block_2(ctx);
|
|
@@ -11686,14 +12090,14 @@
|
|
|
11686
12090
|
block,
|
|
11687
12091
|
id: create_if_block_1.name,
|
|
11688
12092
|
type: "if",
|
|
11689
|
-
source: "(
|
|
12093
|
+
source: "(214:8) {#if showleaderboard == \\\"true\\\"}",
|
|
11690
12094
|
ctx
|
|
11691
12095
|
});
|
|
11692
12096
|
|
|
11693
12097
|
return block;
|
|
11694
12098
|
}
|
|
11695
12099
|
|
|
11696
|
-
// (
|
|
12100
|
+
// (215:10) {#if showTable == true}
|
|
11697
12101
|
function create_if_block_2(ctx) {
|
|
11698
12102
|
let casino_tournaments_table;
|
|
11699
12103
|
|
|
@@ -11702,7 +12106,7 @@
|
|
|
11702
12106
|
casino_tournaments_table = element("casino-tournaments-table");
|
|
11703
12107
|
set_custom_element_data(casino_tournaments_table, "firstrow", "true");
|
|
11704
12108
|
set_custom_element_data(casino_tournaments_table, "sortable", "false");
|
|
11705
|
-
add_location(casino_tournaments_table, file,
|
|
12109
|
+
add_location(casino_tournaments_table, file, 215, 12, 7790);
|
|
11706
12110
|
},
|
|
11707
12111
|
m: function mount(target, anchor) {
|
|
11708
12112
|
insert_dev(target, casino_tournaments_table, anchor);
|
|
@@ -11716,7 +12120,7 @@
|
|
|
11716
12120
|
block,
|
|
11717
12121
|
id: create_if_block_2.name,
|
|
11718
12122
|
type: "if",
|
|
11719
|
-
source: "(
|
|
12123
|
+
source: "(215:10) {#if showTable == true}",
|
|
11720
12124
|
ctx
|
|
11721
12125
|
});
|
|
11722
12126
|
|
|
@@ -11780,6 +12184,9 @@
|
|
|
11780
12184
|
}
|
|
11781
12185
|
|
|
11782
12186
|
function instance($$self, $$props, $$invalidate) {
|
|
12187
|
+
let $_;
|
|
12188
|
+
validate_store(X, "_");
|
|
12189
|
+
component_subscribe($$self, X, $$value => $$invalidate(9, $_ = $$value));
|
|
11783
12190
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
11784
12191
|
validate_slots("undefined", slots, []);
|
|
11785
12192
|
let { session = "" } = $$props;
|
|
@@ -11806,6 +12213,11 @@
|
|
|
11806
12213
|
let showTable = false;
|
|
11807
12214
|
let firstRowData = {};
|
|
11808
12215
|
let firstRowAvailable = false;
|
|
12216
|
+
setupI18n({ withLocale: "en", translations: {} });
|
|
12217
|
+
|
|
12218
|
+
Object.keys(TournamentsPageTranslations).forEach(item => {
|
|
12219
|
+
addNewMessages$5(item, TournamentsPageTranslations[item]);
|
|
12220
|
+
});
|
|
11809
12221
|
|
|
11810
12222
|
// @TODO this must be configurable
|
|
11811
12223
|
const tableColumns = ["Position", "Name", "Score"];
|
|
@@ -11925,6 +12337,7 @@
|
|
|
11925
12337
|
};
|
|
11926
12338
|
|
|
11927
12339
|
const initialLoad = () => {
|
|
12340
|
+
setLocale$1(lang);
|
|
11928
12341
|
getData(endpoint, tourid);
|
|
11929
12342
|
getTableData(endpoint, tourid);
|
|
11930
12343
|
};
|
|
@@ -11957,7 +12370,7 @@
|
|
|
11957
12370
|
"currency"
|
|
11958
12371
|
];
|
|
11959
12372
|
|
|
11960
|
-
|
|
12373
|
+
Object_1.keys($$props).forEach(key => {
|
|
11961
12374
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
11962
12375
|
});
|
|
11963
12376
|
|
|
@@ -11966,12 +12379,12 @@
|
|
|
11966
12379
|
$$self.$$set = $$props => {
|
|
11967
12380
|
if ("session" in $$props) $$invalidate(1, session = $$props.session);
|
|
11968
12381
|
if ("userid" in $$props) $$invalidate(2, userid = $$props.userid);
|
|
11969
|
-
if ("tourid" in $$props) $$invalidate(
|
|
12382
|
+
if ("tourid" in $$props) $$invalidate(12, tourid = $$props.tourid);
|
|
11970
12383
|
if ("endpoint" in $$props) $$invalidate(3, endpoint = $$props.endpoint);
|
|
11971
12384
|
if ("showleaderboard" in $$props) $$invalidate(0, showleaderboard = $$props.showleaderboard);
|
|
11972
|
-
if ("cmsendpoint" in $$props) $$invalidate(
|
|
11973
|
-
if ("lang" in $$props) $$invalidate(
|
|
11974
|
-
if ("navigationbackbutton" in $$props) $$invalidate(
|
|
12385
|
+
if ("cmsendpoint" in $$props) $$invalidate(13, cmsendpoint = $$props.cmsendpoint);
|
|
12386
|
+
if ("lang" in $$props) $$invalidate(14, lang = $$props.lang);
|
|
12387
|
+
if ("navigationbackbutton" in $$props) $$invalidate(15, navigationbackbutton = $$props.navigationbackbutton);
|
|
11975
12388
|
if ("currency" in $$props) $$invalidate(4, currency = $$props.currency);
|
|
11976
12389
|
};
|
|
11977
12390
|
|
|
@@ -11980,6 +12393,11 @@
|
|
|
11980
12393
|
isMobile,
|
|
11981
12394
|
getDevice,
|
|
11982
12395
|
checkSession,
|
|
12396
|
+
_: X,
|
|
12397
|
+
addNewMessages: addNewMessages$5,
|
|
12398
|
+
setLocale: setLocale$1,
|
|
12399
|
+
setupI18n,
|
|
12400
|
+
TournamentsPageTranslations,
|
|
11983
12401
|
session,
|
|
11984
12402
|
userid,
|
|
11985
12403
|
tourid,
|
|
@@ -12009,18 +12427,19 @@
|
|
|
12009
12427
|
goBack,
|
|
12010
12428
|
setSession,
|
|
12011
12429
|
initialLoad,
|
|
12012
|
-
getDataFromCMS
|
|
12430
|
+
getDataFromCMS,
|
|
12431
|
+
$_
|
|
12013
12432
|
});
|
|
12014
12433
|
|
|
12015
12434
|
$$self.$inject_state = $$props => {
|
|
12016
12435
|
if ("session" in $$props) $$invalidate(1, session = $$props.session);
|
|
12017
12436
|
if ("userid" in $$props) $$invalidate(2, userid = $$props.userid);
|
|
12018
|
-
if ("tourid" in $$props) $$invalidate(
|
|
12437
|
+
if ("tourid" in $$props) $$invalidate(12, tourid = $$props.tourid);
|
|
12019
12438
|
if ("endpoint" in $$props) $$invalidate(3, endpoint = $$props.endpoint);
|
|
12020
12439
|
if ("showleaderboard" in $$props) $$invalidate(0, showleaderboard = $$props.showleaderboard);
|
|
12021
|
-
if ("cmsendpoint" in $$props) $$invalidate(
|
|
12022
|
-
if ("lang" in $$props) $$invalidate(
|
|
12023
|
-
if ("navigationbackbutton" in $$props) $$invalidate(
|
|
12440
|
+
if ("cmsendpoint" in $$props) $$invalidate(13, cmsendpoint = $$props.cmsendpoint);
|
|
12441
|
+
if ("lang" in $$props) $$invalidate(14, lang = $$props.lang);
|
|
12442
|
+
if ("navigationbackbutton" in $$props) $$invalidate(15, navigationbackbutton = $$props.navigationbackbutton);
|
|
12024
12443
|
if ("currency" in $$props) $$invalidate(4, currency = $$props.currency);
|
|
12025
12444
|
if ("sessionTopic" in $$props) sessionTopic = $$props.sessionTopic;
|
|
12026
12445
|
if ("isLoggedIn" in $$props) isLoggedIn = $$props.isLoggedIn;
|
|
@@ -12030,7 +12449,7 @@
|
|
|
12030
12449
|
if ("tournamentDescription" in $$props) $$invalidate(6, tournamentDescription = $$props.tournamentDescription);
|
|
12031
12450
|
if ("tournamentDetails" in $$props) $$invalidate(7, tournamentDetails = $$props.tournamentDetails);
|
|
12032
12451
|
if ("tournamentTableData" in $$props) tournamentTableData = $$props.tournamentTableData;
|
|
12033
|
-
if ("userAgent" in $$props) $$invalidate(
|
|
12452
|
+
if ("userAgent" in $$props) $$invalidate(10, userAgent = $$props.userAgent);
|
|
12034
12453
|
if ("showTable" in $$props) $$invalidate(8, showTable = $$props.showTable);
|
|
12035
12454
|
if ("firstRowData" in $$props) firstRowData = $$props.firstRowData;
|
|
12036
12455
|
if ("firstRowAvailable" in $$props) firstRowAvailable = $$props.firstRowAvailable;
|
|
@@ -12045,11 +12464,11 @@
|
|
|
12045
12464
|
session && userid && setSession();
|
|
12046
12465
|
}
|
|
12047
12466
|
|
|
12048
|
-
if ($$self.$$.dirty[0] & /*tourid, endpoint, session*/
|
|
12049
|
-
tourid && endpoint && session && initialLoad();
|
|
12467
|
+
if ($$self.$$.dirty[0] & /*tourid, endpoint, session, lang*/ 20490) {
|
|
12468
|
+
tourid && endpoint && session && lang && initialLoad();
|
|
12050
12469
|
}
|
|
12051
12470
|
|
|
12052
|
-
if ($$self.$$.dirty[0] & /*tourid, cmsendpoint*/
|
|
12471
|
+
if ($$self.$$.dirty[0] & /*tourid, cmsendpoint*/ 12288) {
|
|
12053
12472
|
tourid && cmsendpoint && getDataFromCMS();
|
|
12054
12473
|
}
|
|
12055
12474
|
};
|
|
@@ -12064,6 +12483,7 @@
|
|
|
12064
12483
|
tournamentDescription,
|
|
12065
12484
|
tournamentDetails,
|
|
12066
12485
|
showTable,
|
|
12486
|
+
$_,
|
|
12067
12487
|
userAgent,
|
|
12068
12488
|
goBack,
|
|
12069
12489
|
tourid,
|
|
@@ -12092,12 +12512,12 @@
|
|
|
12092
12512
|
{
|
|
12093
12513
|
session: 1,
|
|
12094
12514
|
userid: 2,
|
|
12095
|
-
tourid:
|
|
12515
|
+
tourid: 12,
|
|
12096
12516
|
endpoint: 3,
|
|
12097
12517
|
showleaderboard: 0,
|
|
12098
|
-
cmsendpoint:
|
|
12099
|
-
lang:
|
|
12100
|
-
navigationbackbutton:
|
|
12518
|
+
cmsendpoint: 13,
|
|
12519
|
+
lang: 14,
|
|
12520
|
+
navigationbackbutton: 15,
|
|
12101
12521
|
currency: 4
|
|
12102
12522
|
},
|
|
12103
12523
|
[-1, -1]
|
|
@@ -12148,7 +12568,7 @@
|
|
|
12148
12568
|
}
|
|
12149
12569
|
|
|
12150
12570
|
get tourid() {
|
|
12151
|
-
return this.$$.ctx[
|
|
12571
|
+
return this.$$.ctx[12];
|
|
12152
12572
|
}
|
|
12153
12573
|
|
|
12154
12574
|
set tourid(tourid) {
|
|
@@ -12175,7 +12595,7 @@
|
|
|
12175
12595
|
}
|
|
12176
12596
|
|
|
12177
12597
|
get cmsendpoint() {
|
|
12178
|
-
return this.$$.ctx[
|
|
12598
|
+
return this.$$.ctx[13];
|
|
12179
12599
|
}
|
|
12180
12600
|
|
|
12181
12601
|
set cmsendpoint(cmsendpoint) {
|
|
@@ -12184,7 +12604,7 @@
|
|
|
12184
12604
|
}
|
|
12185
12605
|
|
|
12186
12606
|
get lang() {
|
|
12187
|
-
return this.$$.ctx[
|
|
12607
|
+
return this.$$.ctx[14];
|
|
12188
12608
|
}
|
|
12189
12609
|
|
|
12190
12610
|
set lang(lang) {
|
|
@@ -12193,7 +12613,7 @@
|
|
|
12193
12613
|
}
|
|
12194
12614
|
|
|
12195
12615
|
get navigationbackbutton() {
|
|
12196
|
-
return this.$$.ctx[
|
|
12616
|
+
return this.$$.ctx[15];
|
|
12197
12617
|
}
|
|
12198
12618
|
|
|
12199
12619
|
set navigationbackbutton(navigationbackbutton) {
|