@everymatrix/casino-tournaments-tab 0.0.265

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,751 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.app = factory());
5
+ }(this, (function () { 'use strict';
6
+
7
+ function noop() { }
8
+ function add_location(element, file, line, column, char) {
9
+ element.__svelte_meta = {
10
+ loc: { file, line, column, char }
11
+ };
12
+ }
13
+ function run(fn) {
14
+ return fn();
15
+ }
16
+ function blank_object() {
17
+ return Object.create(null);
18
+ }
19
+ function run_all(fns) {
20
+ fns.forEach(run);
21
+ }
22
+ function is_function(thing) {
23
+ return typeof thing === 'function';
24
+ }
25
+ function safe_not_equal(a, b) {
26
+ return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
27
+ }
28
+ function is_empty(obj) {
29
+ return Object.keys(obj).length === 0;
30
+ }
31
+
32
+ function append(target, node) {
33
+ target.appendChild(node);
34
+ }
35
+ function insert(target, node, anchor) {
36
+ target.insertBefore(node, anchor || null);
37
+ }
38
+ function detach(node) {
39
+ node.parentNode.removeChild(node);
40
+ }
41
+ function destroy_each(iterations, detaching) {
42
+ for (let i = 0; i < iterations.length; i += 1) {
43
+ if (iterations[i])
44
+ iterations[i].d(detaching);
45
+ }
46
+ }
47
+ function element(name) {
48
+ return document.createElement(name);
49
+ }
50
+ function text(data) {
51
+ return document.createTextNode(data);
52
+ }
53
+ function space() {
54
+ return text(' ');
55
+ }
56
+ function listen(node, event, handler, options) {
57
+ node.addEventListener(event, handler, options);
58
+ return () => node.removeEventListener(event, handler, options);
59
+ }
60
+ function attr(node, attribute, value) {
61
+ if (value == null)
62
+ node.removeAttribute(attribute);
63
+ else if (node.getAttribute(attribute) !== value)
64
+ node.setAttribute(attribute, value);
65
+ }
66
+ function children(element) {
67
+ return Array.from(element.childNodes);
68
+ }
69
+ function custom_event(type, detail) {
70
+ const e = document.createEvent('CustomEvent');
71
+ e.initCustomEvent(type, false, false, detail);
72
+ return e;
73
+ }
74
+ function attribute_to_object(attributes) {
75
+ const result = {};
76
+ for (const attribute of attributes) {
77
+ result[attribute.name] = attribute.value;
78
+ }
79
+ return result;
80
+ }
81
+
82
+ let current_component;
83
+ function set_current_component(component) {
84
+ current_component = component;
85
+ }
86
+ function get_current_component() {
87
+ if (!current_component)
88
+ throw new Error('Function called outside component initialization');
89
+ return current_component;
90
+ }
91
+ function onMount(fn) {
92
+ get_current_component().$$.on_mount.push(fn);
93
+ }
94
+
95
+ const dirty_components = [];
96
+ const binding_callbacks = [];
97
+ const render_callbacks = [];
98
+ const flush_callbacks = [];
99
+ const resolved_promise = Promise.resolve();
100
+ let update_scheduled = false;
101
+ function schedule_update() {
102
+ if (!update_scheduled) {
103
+ update_scheduled = true;
104
+ resolved_promise.then(flush);
105
+ }
106
+ }
107
+ function add_render_callback(fn) {
108
+ render_callbacks.push(fn);
109
+ }
110
+ let flushing = false;
111
+ const seen_callbacks = new Set();
112
+ function flush() {
113
+ if (flushing)
114
+ return;
115
+ flushing = true;
116
+ do {
117
+ // first, call beforeUpdate functions
118
+ // and update components
119
+ for (let i = 0; i < dirty_components.length; i += 1) {
120
+ const component = dirty_components[i];
121
+ set_current_component(component);
122
+ update(component.$$);
123
+ }
124
+ set_current_component(null);
125
+ dirty_components.length = 0;
126
+ while (binding_callbacks.length)
127
+ binding_callbacks.pop()();
128
+ // then, once components are updated, call
129
+ // afterUpdate functions. This may cause
130
+ // subsequent updates...
131
+ for (let i = 0; i < render_callbacks.length; i += 1) {
132
+ const callback = render_callbacks[i];
133
+ if (!seen_callbacks.has(callback)) {
134
+ // ...so guard against infinite loops
135
+ seen_callbacks.add(callback);
136
+ callback();
137
+ }
138
+ }
139
+ render_callbacks.length = 0;
140
+ } while (dirty_components.length);
141
+ while (flush_callbacks.length) {
142
+ flush_callbacks.pop()();
143
+ }
144
+ update_scheduled = false;
145
+ flushing = false;
146
+ seen_callbacks.clear();
147
+ }
148
+ function update($$) {
149
+ if ($$.fragment !== null) {
150
+ $$.update();
151
+ run_all($$.before_update);
152
+ const dirty = $$.dirty;
153
+ $$.dirty = [-1];
154
+ $$.fragment && $$.fragment.p($$.ctx, dirty);
155
+ $$.after_update.forEach(add_render_callback);
156
+ }
157
+ }
158
+ const outroing = new Set();
159
+ function transition_in(block, local) {
160
+ if (block && block.i) {
161
+ outroing.delete(block);
162
+ block.i(local);
163
+ }
164
+ }
165
+
166
+ const globals = (typeof window !== 'undefined'
167
+ ? window
168
+ : typeof globalThis !== 'undefined'
169
+ ? globalThis
170
+ : global);
171
+ function mount_component(component, target, anchor, customElement) {
172
+ const { fragment, on_mount, on_destroy, after_update } = component.$$;
173
+ fragment && fragment.m(target, anchor);
174
+ if (!customElement) {
175
+ // onMount happens before the initial afterUpdate
176
+ add_render_callback(() => {
177
+ const new_on_destroy = on_mount.map(run).filter(is_function);
178
+ if (on_destroy) {
179
+ on_destroy.push(...new_on_destroy);
180
+ }
181
+ else {
182
+ // Edge case - component was destroyed immediately,
183
+ // most likely as a result of a binding initialising
184
+ run_all(new_on_destroy);
185
+ }
186
+ component.$$.on_mount = [];
187
+ });
188
+ }
189
+ after_update.forEach(add_render_callback);
190
+ }
191
+ function destroy_component(component, detaching) {
192
+ const $$ = component.$$;
193
+ if ($$.fragment !== null) {
194
+ run_all($$.on_destroy);
195
+ $$.fragment && $$.fragment.d(detaching);
196
+ // TODO null out other refs, including component.$$ (but need to
197
+ // preserve final state?)
198
+ $$.on_destroy = $$.fragment = null;
199
+ $$.ctx = [];
200
+ }
201
+ }
202
+ function make_dirty(component, i) {
203
+ if (component.$$.dirty[0] === -1) {
204
+ dirty_components.push(component);
205
+ schedule_update();
206
+ component.$$.dirty.fill(0);
207
+ }
208
+ component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
209
+ }
210
+ function init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {
211
+ const parent_component = current_component;
212
+ set_current_component(component);
213
+ const $$ = component.$$ = {
214
+ fragment: null,
215
+ ctx: null,
216
+ // state
217
+ props,
218
+ update: noop,
219
+ not_equal,
220
+ bound: blank_object(),
221
+ // lifecycle
222
+ on_mount: [],
223
+ on_destroy: [],
224
+ on_disconnect: [],
225
+ before_update: [],
226
+ after_update: [],
227
+ context: new Map(parent_component ? parent_component.$$.context : options.context || []),
228
+ // everything else
229
+ callbacks: blank_object(),
230
+ dirty,
231
+ skip_bound: false
232
+ };
233
+ let ready = false;
234
+ $$.ctx = instance
235
+ ? instance(component, options.props || {}, (i, ret, ...rest) => {
236
+ const value = rest.length ? rest[0] : ret;
237
+ if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
238
+ if (!$$.skip_bound && $$.bound[i])
239
+ $$.bound[i](value);
240
+ if (ready)
241
+ make_dirty(component, i);
242
+ }
243
+ return ret;
244
+ })
245
+ : [];
246
+ $$.update();
247
+ ready = true;
248
+ run_all($$.before_update);
249
+ // `false` as a special case of no DOM component
250
+ $$.fragment = create_fragment ? create_fragment($$.ctx) : false;
251
+ if (options.target) {
252
+ if (options.hydrate) {
253
+ const nodes = children(options.target);
254
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
255
+ $$.fragment && $$.fragment.l(nodes);
256
+ nodes.forEach(detach);
257
+ }
258
+ else {
259
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
260
+ $$.fragment && $$.fragment.c();
261
+ }
262
+ if (options.intro)
263
+ transition_in(component.$$.fragment);
264
+ mount_component(component, options.target, options.anchor, options.customElement);
265
+ flush();
266
+ }
267
+ set_current_component(parent_component);
268
+ }
269
+ let SvelteElement;
270
+ if (typeof HTMLElement === 'function') {
271
+ SvelteElement = class extends HTMLElement {
272
+ constructor() {
273
+ super();
274
+ this.attachShadow({ mode: 'open' });
275
+ }
276
+ connectedCallback() {
277
+ const { on_mount } = this.$$;
278
+ this.$$.on_disconnect = on_mount.map(run).filter(is_function);
279
+ // @ts-ignore todo: improve typings
280
+ for (const key in this.$$.slotted) {
281
+ // @ts-ignore todo: improve typings
282
+ this.appendChild(this.$$.slotted[key]);
283
+ }
284
+ }
285
+ attributeChangedCallback(attr, _oldValue, newValue) {
286
+ this[attr] = newValue;
287
+ }
288
+ disconnectedCallback() {
289
+ run_all(this.$$.on_disconnect);
290
+ }
291
+ $destroy() {
292
+ destroy_component(this, 1);
293
+ this.$destroy = noop;
294
+ }
295
+ $on(type, callback) {
296
+ // TODO should this delegate to addEventListener?
297
+ const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
298
+ callbacks.push(callback);
299
+ return () => {
300
+ const index = callbacks.indexOf(callback);
301
+ if (index !== -1)
302
+ callbacks.splice(index, 1);
303
+ };
304
+ }
305
+ $set($$props) {
306
+ if (this.$$set && !is_empty($$props)) {
307
+ this.$$.skip_bound = true;
308
+ this.$$set($$props);
309
+ this.$$.skip_bound = false;
310
+ }
311
+ }
312
+ };
313
+ }
314
+
315
+ function dispatch_dev(type, detail) {
316
+ document.dispatchEvent(custom_event(type, Object.assign({ version: '3.37.0' }, detail)));
317
+ }
318
+ function append_dev(target, node) {
319
+ dispatch_dev('SvelteDOMInsert', { target, node });
320
+ append(target, node);
321
+ }
322
+ function insert_dev(target, node, anchor) {
323
+ dispatch_dev('SvelteDOMInsert', { target, node, anchor });
324
+ insert(target, node, anchor);
325
+ }
326
+ function detach_dev(node) {
327
+ dispatch_dev('SvelteDOMRemove', { node });
328
+ detach(node);
329
+ }
330
+ function listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {
331
+ const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];
332
+ if (has_prevent_default)
333
+ modifiers.push('preventDefault');
334
+ if (has_stop_propagation)
335
+ modifiers.push('stopPropagation');
336
+ dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });
337
+ const dispose = listen(node, event, handler, options);
338
+ return () => {
339
+ dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });
340
+ dispose();
341
+ };
342
+ }
343
+ function attr_dev(node, attribute, value) {
344
+ attr(node, attribute, value);
345
+ if (value == null)
346
+ dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });
347
+ else
348
+ dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });
349
+ }
350
+ function set_data_dev(text, data) {
351
+ data = '' + data;
352
+ if (text.wholeText === data)
353
+ return;
354
+ dispatch_dev('SvelteDOMSetData', { node: text, data });
355
+ text.data = data;
356
+ }
357
+ function validate_each_argument(arg) {
358
+ if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {
359
+ let msg = '{#each} only iterates over array-like objects.';
360
+ if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {
361
+ msg += ' You can use a spread to convert this iterable into an array.';
362
+ }
363
+ throw new Error(msg);
364
+ }
365
+ }
366
+ function validate_slots(name, slot, keys) {
367
+ for (const slot_key of Object.keys(slot)) {
368
+ if (!~keys.indexOf(slot_key)) {
369
+ console.warn(`<${name}> received an unexpected slot "${slot_key}".`);
370
+ }
371
+ }
372
+ }
373
+
374
+ const composeMessageHandler = (listeners) => {
375
+ const handler = e => {
376
+ Object.keys(listeners).map(key => {
377
+ if (e.data && e.data.type == key) {
378
+ const {type, ...restData} = e.data;
379
+ listeners[key](restData);
380
+ }
381
+ });
382
+ };
383
+
384
+ return handler
385
+ };
386
+
387
+ const onMountMessageLifeCycle = (messageRegisters) => {
388
+
389
+ const messageHandler = composeMessageHandler(messageRegisters);
390
+
391
+ onMount(() => {
392
+ window.addEventListener('message', messageHandler, false);
393
+ return () => {
394
+ window.removeEventListener('message', messageHandler);
395
+ }
396
+ });
397
+ };
398
+
399
+ /* src/CasinoTournamentsTab.svelte generated by Svelte v3.37.0 */
400
+
401
+ const { Object: Object_1 } = globals;
402
+ const file = "src/CasinoTournamentsTab.svelte";
403
+
404
+ function get_each_context(ctx, list, i) {
405
+ const child_ctx = ctx.slice();
406
+ child_ctx[7] = list[i];
407
+ return child_ctx;
408
+ }
409
+
410
+ // (35:8) {#if totalReceiver[_tab] >= 0}
411
+ function create_if_block(ctx) {
412
+ let sup;
413
+ let span;
414
+ let t_value = /*totalReceiver*/ ctx[0][/*_tab*/ ctx[7]] + "";
415
+ let t;
416
+
417
+ const block = {
418
+ c: function create() {
419
+ sup = element("sup");
420
+ span = element("span");
421
+ t = text(t_value);
422
+ attr_dev(span, "part", "SupText");
423
+ add_location(span, file, 36, 10, 1110);
424
+ attr_dev(sup, "part", "sup");
425
+ add_location(sup, file, 35, 8, 1083);
426
+ },
427
+ m: function mount(target, anchor) {
428
+ insert_dev(target, sup, anchor);
429
+ append_dev(sup, span);
430
+ append_dev(span, t);
431
+ },
432
+ p: function update(ctx, dirty) {
433
+ if (dirty & /*totalReceiver, __tabs*/ 5 && t_value !== (t_value = /*totalReceiver*/ ctx[0][/*_tab*/ ctx[7]] + "")) set_data_dev(t, t_value);
434
+ },
435
+ d: function destroy(detaching) {
436
+ if (detaching) detach_dev(sup);
437
+ }
438
+ };
439
+
440
+ dispatch_dev("SvelteRegisterBlock", {
441
+ block,
442
+ id: create_if_block.name,
443
+ type: "if",
444
+ source: "(35:8) {#if totalReceiver[_tab] >= 0}",
445
+ ctx
446
+ });
447
+
448
+ return block;
449
+ }
450
+
451
+ // (22:4) {#each __tabs as _tab}
452
+ function create_each_block(ctx) {
453
+ let li;
454
+ let span;
455
+ let t0_value = /*textReceiver*/ ctx[1][/*_tab*/ ctx[7]] + "";
456
+ let t0;
457
+ let t1;
458
+ let t2;
459
+ let li_class_value;
460
+ let li_part_value;
461
+ let mounted;
462
+ let dispose;
463
+ let if_block = /*totalReceiver*/ ctx[0][/*_tab*/ ctx[7]] >= 0 && create_if_block(ctx);
464
+
465
+ function click_handler() {
466
+ return /*click_handler*/ ctx[6](/*_tab*/ ctx[7]);
467
+ }
468
+
469
+ const block = {
470
+ c: function create() {
471
+ li = element("li");
472
+ span = element("span");
473
+ t0 = text(t0_value);
474
+ t1 = space();
475
+ if (if_block) if_block.c();
476
+ t2 = space();
477
+ attr_dev(span, "part", "LiText");
478
+ add_location(span, file, 30, 8, 967);
479
+ attr_dev(li, "class", li_class_value = /*__tab*/ ctx[3] === /*_tab*/ ctx[7] ? "active" : "");
480
+ attr_dev(li, "part", li_part_value = `${/*_tab*/ ctx[7]} li`);
481
+ add_location(li, file, 22, 6, 739);
482
+ },
483
+ m: function mount(target, anchor) {
484
+ insert_dev(target, li, anchor);
485
+ append_dev(li, span);
486
+ append_dev(span, t0);
487
+ append_dev(li, t1);
488
+ if (if_block) if_block.m(li, null);
489
+ append_dev(li, t2);
490
+
491
+ if (!mounted) {
492
+ dispose = listen_dev(li, "click", click_handler, false, false, false);
493
+ mounted = true;
494
+ }
495
+ },
496
+ p: function update(new_ctx, dirty) {
497
+ ctx = new_ctx;
498
+ if (dirty & /*textReceiver, __tabs*/ 6 && t0_value !== (t0_value = /*textReceiver*/ ctx[1][/*_tab*/ ctx[7]] + "")) set_data_dev(t0, t0_value);
499
+
500
+ if (/*totalReceiver*/ ctx[0][/*_tab*/ ctx[7]] >= 0) {
501
+ if (if_block) {
502
+ if_block.p(ctx, dirty);
503
+ } else {
504
+ if_block = create_if_block(ctx);
505
+ if_block.c();
506
+ if_block.m(li, t2);
507
+ }
508
+ } else if (if_block) {
509
+ if_block.d(1);
510
+ if_block = null;
511
+ }
512
+
513
+ if (dirty & /*__tab, __tabs*/ 12 && li_class_value !== (li_class_value = /*__tab*/ ctx[3] === /*_tab*/ ctx[7] ? "active" : "")) {
514
+ attr_dev(li, "class", li_class_value);
515
+ }
516
+
517
+ if (dirty & /*__tabs*/ 4 && li_part_value !== (li_part_value = `${/*_tab*/ ctx[7]} li`)) {
518
+ attr_dev(li, "part", li_part_value);
519
+ }
520
+ },
521
+ d: function destroy(detaching) {
522
+ if (detaching) detach_dev(li);
523
+ if (if_block) if_block.d();
524
+ mounted = false;
525
+ dispose();
526
+ }
527
+ };
528
+
529
+ dispatch_dev("SvelteRegisterBlock", {
530
+ block,
531
+ id: create_each_block.name,
532
+ type: "each",
533
+ source: "(22:4) {#each __tabs as _tab}",
534
+ ctx
535
+ });
536
+
537
+ return block;
538
+ }
539
+
540
+ function create_fragment(ctx) {
541
+ let div;
542
+ let ul;
543
+ let each_value = /*__tabs*/ ctx[2];
544
+ validate_each_argument(each_value);
545
+ let each_blocks = [];
546
+
547
+ for (let i = 0; i < each_value.length; i += 1) {
548
+ each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
549
+ }
550
+
551
+ const block = {
552
+ c: function create() {
553
+ div = element("div");
554
+ ul = element("ul");
555
+
556
+ for (let i = 0; i < each_blocks.length; i += 1) {
557
+ each_blocks[i].c();
558
+ }
559
+
560
+ this.c = noop;
561
+ attr_dev(ul, "part", "ul");
562
+ add_location(ul, file, 20, 2, 691);
563
+ attr_dev(div, "class", "casino-tournaments-tab");
564
+ attr_dev(div, "part", "CustomStylingContainer");
565
+ add_location(div, file, 19, 0, 622);
566
+ },
567
+ l: function claim(nodes) {
568
+ throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
569
+ },
570
+ m: function mount(target, anchor) {
571
+ insert_dev(target, div, anchor);
572
+ append_dev(div, ul);
573
+
574
+ for (let i = 0; i < each_blocks.length; i += 1) {
575
+ each_blocks[i].m(ul, null);
576
+ }
577
+ },
578
+ p: function update(ctx, [dirty]) {
579
+ if (dirty & /*__tab, __tabs, window, totalReceiver, textReceiver*/ 15) {
580
+ each_value = /*__tabs*/ ctx[2];
581
+ validate_each_argument(each_value);
582
+ let i;
583
+
584
+ for (i = 0; i < each_value.length; i += 1) {
585
+ const child_ctx = get_each_context(ctx, each_value, i);
586
+
587
+ if (each_blocks[i]) {
588
+ each_blocks[i].p(child_ctx, dirty);
589
+ } else {
590
+ each_blocks[i] = create_each_block(child_ctx);
591
+ each_blocks[i].c();
592
+ each_blocks[i].m(ul, null);
593
+ }
594
+ }
595
+
596
+ for (; i < each_blocks.length; i += 1) {
597
+ each_blocks[i].d(1);
598
+ }
599
+
600
+ each_blocks.length = each_value.length;
601
+ }
602
+ },
603
+ i: noop,
604
+ o: noop,
605
+ d: function destroy(detaching) {
606
+ if (detaching) detach_dev(div);
607
+ destroy_each(each_blocks, detaching);
608
+ }
609
+ };
610
+
611
+ dispatch_dev("SvelteRegisterBlock", {
612
+ block,
613
+ id: create_fragment.name,
614
+ type: "component",
615
+ source: "",
616
+ ctx
617
+ });
618
+
619
+ return block;
620
+ }
621
+
622
+ function instance($$self, $$props, $$invalidate) {
623
+ let __tabs;
624
+ let __tab;
625
+ let { $$slots: slots = {}, $$scope } = $$props;
626
+ validate_slots("undefined", slots, []);
627
+ let { tabs = "" } = $$props; // 'tab1,tab2,tab3'
628
+ let { tab = undefined } = $$props; // 'tab1'
629
+ let totalReceiver = {};
630
+ let textReceiver = {};
631
+
632
+ onMountMessageLifeCycle({
633
+ TournamentsTabTotalUpdate: data => {
634
+ $$invalidate(0, totalReceiver = Object.assign(Object.assign({}, totalReceiver), { [data.state]: data.total }));
635
+ },
636
+ TournamentsTabLocaleTextUpdate: data => {
637
+ $$invalidate(1, textReceiver = Object.assign(Object.assign({}, textReceiver), { [data.state]: data.text }));
638
+ }
639
+ });
640
+
641
+ const writable_props = ["tabs", "tab"];
642
+
643
+ Object_1.keys($$props).forEach(key => {
644
+ if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
645
+ });
646
+
647
+ const click_handler = _tab => {
648
+ $$invalidate(3, __tab = _tab);
649
+ window.postMessage({ type: "TournamentsTabSwitch", tab: _tab });
650
+ };
651
+
652
+ $$self.$$set = $$props => {
653
+ if ("tabs" in $$props) $$invalidate(4, tabs = $$props.tabs);
654
+ if ("tab" in $$props) $$invalidate(5, tab = $$props.tab);
655
+ };
656
+
657
+ $$self.$capture_state = () => ({
658
+ onMountMessageLifeCycle,
659
+ tabs,
660
+ tab,
661
+ totalReceiver,
662
+ textReceiver,
663
+ __tabs,
664
+ __tab
665
+ });
666
+
667
+ $$self.$inject_state = $$props => {
668
+ if ("tabs" in $$props) $$invalidate(4, tabs = $$props.tabs);
669
+ if ("tab" in $$props) $$invalidate(5, tab = $$props.tab);
670
+ if ("totalReceiver" in $$props) $$invalidate(0, totalReceiver = $$props.totalReceiver);
671
+ if ("textReceiver" in $$props) $$invalidate(1, textReceiver = $$props.textReceiver);
672
+ if ("__tabs" in $$props) $$invalidate(2, __tabs = $$props.__tabs);
673
+ if ("__tab" in $$props) $$invalidate(3, __tab = $$props.__tab);
674
+ };
675
+
676
+ if ($$props && "$$inject" in $$props) {
677
+ $$self.$inject_state($$props.$$inject);
678
+ }
679
+
680
+ $$self.$$.update = () => {
681
+ if ($$self.$$.dirty & /*tabs*/ 16) {
682
+ $$invalidate(2, __tabs = tabs.split(","));
683
+ }
684
+
685
+ if ($$self.$$.dirty & /*tab*/ 32) {
686
+ $$invalidate(3, __tab = tab);
687
+ }
688
+ };
689
+
690
+ return [totalReceiver, textReceiver, __tabs, __tab, tabs, tab, click_handler];
691
+ }
692
+
693
+ class CasinoTournamentsTab extends SvelteElement {
694
+ constructor(options) {
695
+ super();
696
+ this.shadowRoot.innerHTML = `<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}</style>`;
697
+
698
+ init(
699
+ this,
700
+ {
701
+ target: this.shadowRoot,
702
+ props: attribute_to_object(this.attributes),
703
+ customElement: true
704
+ },
705
+ instance,
706
+ create_fragment,
707
+ safe_not_equal,
708
+ { tabs: 4, tab: 5 }
709
+ );
710
+
711
+ if (options) {
712
+ if (options.target) {
713
+ insert_dev(options.target, this, options.anchor);
714
+ }
715
+
716
+ if (options.props) {
717
+ this.$set(options.props);
718
+ flush();
719
+ }
720
+ }
721
+ }
722
+
723
+ static get observedAttributes() {
724
+ return ["tabs", "tab"];
725
+ }
726
+
727
+ get tabs() {
728
+ return this.$$.ctx[4];
729
+ }
730
+
731
+ set tabs(tabs) {
732
+ this.$set({ tabs });
733
+ flush();
734
+ }
735
+
736
+ get tab() {
737
+ return this.$$.ctx[5];
738
+ }
739
+
740
+ set tab(tab) {
741
+ this.$set({ tab });
742
+ flush();
743
+ }
744
+ }
745
+
746
+ !customElements.get('casino-tournaments-tab') && customElements.define('casino-tournaments-tab', CasinoTournamentsTab);
747
+
748
+ return CasinoTournamentsTab;
749
+
750
+ })));
751
+ //# sourceMappingURL=casino-tournaments-tab.js.map