@everymatrix/lottery-program-wof 1.24.4 → 1.24.6
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.
|
@@ -6355,18 +6355,18 @@
|
|
|
6355
6355
|
|
|
6356
6356
|
function get_each_context$4(ctx, list, i) {
|
|
6357
6357
|
const child_ctx = ctx.slice();
|
|
6358
|
-
child_ctx[
|
|
6358
|
+
child_ctx[11] = list[i];
|
|
6359
6359
|
return child_ctx;
|
|
6360
6360
|
}
|
|
6361
6361
|
|
|
6362
6362
|
function get_each_context_1$2(ctx, list, i) {
|
|
6363
6363
|
const child_ctx = ctx.slice();
|
|
6364
|
-
child_ctx[
|
|
6365
|
-
child_ctx[
|
|
6364
|
+
child_ctx[11] = list[i];
|
|
6365
|
+
child_ctx[15] = i;
|
|
6366
6366
|
return child_ctx;
|
|
6367
6367
|
}
|
|
6368
6368
|
|
|
6369
|
-
// (
|
|
6369
|
+
// (27:0) {#if isshowhistory === 'true'}
|
|
6370
6370
|
function create_if_block_1$3(ctx) {
|
|
6371
6371
|
let section;
|
|
6372
6372
|
let ul;
|
|
@@ -6387,9 +6387,9 @@
|
|
|
6387
6387
|
each_blocks[i].c();
|
|
6388
6388
|
}
|
|
6389
6389
|
|
|
6390
|
-
add_location(ul, file$5,
|
|
6390
|
+
add_location(ul, file$5, 28, 2, 844);
|
|
6391
6391
|
attr_dev(section, "class", "TabBar");
|
|
6392
|
-
add_location(section, file$5,
|
|
6392
|
+
add_location(section, file$5, 27, 0, 791);
|
|
6393
6393
|
},
|
|
6394
6394
|
m: function mount(target, anchor) {
|
|
6395
6395
|
insert_dev(target, section, anchor);
|
|
@@ -6401,10 +6401,10 @@
|
|
|
6401
6401
|
}
|
|
6402
6402
|
}
|
|
6403
6403
|
|
|
6404
|
-
/*section_binding*/ ctx[
|
|
6404
|
+
/*section_binding*/ ctx[10](section);
|
|
6405
6405
|
},
|
|
6406
6406
|
p: function update(ctx, dirty) {
|
|
6407
|
-
if (dirty & /*Object, Tab, tab,
|
|
6407
|
+
if (dirty & /*Object, Tab, tab, onTabClick, $_*/ 28) {
|
|
6408
6408
|
each_value_1 = Object.keys(Tab);
|
|
6409
6409
|
validate_each_argument(each_value_1);
|
|
6410
6410
|
let i;
|
|
@@ -6431,7 +6431,7 @@
|
|
|
6431
6431
|
d: function destroy(detaching) {
|
|
6432
6432
|
if (detaching) detach_dev(section);
|
|
6433
6433
|
destroy_each(each_blocks, detaching);
|
|
6434
|
-
/*section_binding*/ ctx[
|
|
6434
|
+
/*section_binding*/ ctx[10](null);
|
|
6435
6435
|
}
|
|
6436
6436
|
};
|
|
6437
6437
|
|
|
@@ -6439,25 +6439,25 @@
|
|
|
6439
6439
|
block,
|
|
6440
6440
|
id: create_if_block_1$3.name,
|
|
6441
6441
|
type: "if",
|
|
6442
|
-
source: "(
|
|
6442
|
+
source: "(27:0) {#if isshowhistory === 'true'}",
|
|
6443
6443
|
ctx
|
|
6444
6444
|
});
|
|
6445
6445
|
|
|
6446
6446
|
return block;
|
|
6447
6447
|
}
|
|
6448
6448
|
|
|
6449
|
-
// (
|
|
6449
|
+
// (30:4) {#each Object.keys(Tab) as _tab, i}
|
|
6450
6450
|
function create_each_block_1$2(ctx) {
|
|
6451
6451
|
let li;
|
|
6452
6452
|
let span;
|
|
6453
|
-
let t0_value = /*$_*/ ctx[3](`wof.${/*_tab*/ ctx[
|
|
6453
|
+
let t0_value = /*$_*/ ctx[3](`wof.${/*_tab*/ ctx[11]}`) + "";
|
|
6454
6454
|
let t0;
|
|
6455
6455
|
let t1;
|
|
6456
6456
|
let mounted;
|
|
6457
6457
|
let dispose;
|
|
6458
6458
|
|
|
6459
6459
|
function click_handler() {
|
|
6460
|
-
return /*click_handler*/ ctx[
|
|
6460
|
+
return /*click_handler*/ ctx[9](/*_tab*/ ctx[11]);
|
|
6461
6461
|
}
|
|
6462
6462
|
|
|
6463
6463
|
const block = {
|
|
@@ -6466,10 +6466,10 @@
|
|
|
6466
6466
|
span = element("span");
|
|
6467
6467
|
t0 = text(t0_value);
|
|
6468
6468
|
t1 = space();
|
|
6469
|
-
add_location(span, file$5,
|
|
6469
|
+
add_location(span, file$5, 35, 6, 1005);
|
|
6470
6470
|
attr_dev(li, "class", "TabItem");
|
|
6471
|
-
toggle_class(li, "active", /*_tab*/ ctx[
|
|
6472
|
-
add_location(li, file$5,
|
|
6471
|
+
toggle_class(li, "active", /*_tab*/ ctx[11] === /*tab*/ ctx[2]);
|
|
6472
|
+
add_location(li, file$5, 30, 4, 893);
|
|
6473
6473
|
},
|
|
6474
6474
|
m: function mount(target, anchor) {
|
|
6475
6475
|
insert_dev(target, li, anchor);
|
|
@@ -6478,16 +6478,16 @@
|
|
|
6478
6478
|
append_dev(li, t1);
|
|
6479
6479
|
|
|
6480
6480
|
if (!mounted) {
|
|
6481
|
-
dispose = listen_dev(
|
|
6481
|
+
dispose = listen_dev(li, "click", click_handler, false, false, false, false);
|
|
6482
6482
|
mounted = true;
|
|
6483
6483
|
}
|
|
6484
6484
|
},
|
|
6485
6485
|
p: function update(new_ctx, dirty) {
|
|
6486
6486
|
ctx = new_ctx;
|
|
6487
|
-
if (dirty & /*$_*/ 8 && t0_value !== (t0_value = /*$_*/ ctx[3](`wof.${/*_tab*/ ctx[
|
|
6487
|
+
if (dirty & /*$_*/ 8 && t0_value !== (t0_value = /*$_*/ ctx[3](`wof.${/*_tab*/ ctx[11]}`) + "")) set_data_dev(t0, t0_value);
|
|
6488
6488
|
|
|
6489
6489
|
if (dirty & /*Object, Tab, tab*/ 4) {
|
|
6490
|
-
toggle_class(li, "active", /*_tab*/ ctx[
|
|
6490
|
+
toggle_class(li, "active", /*_tab*/ ctx[11] === /*tab*/ ctx[2]);
|
|
6491
6491
|
}
|
|
6492
6492
|
},
|
|
6493
6493
|
d: function destroy(detaching) {
|
|
@@ -6501,22 +6501,22 @@
|
|
|
6501
6501
|
block,
|
|
6502
6502
|
id: create_each_block_1$2.name,
|
|
6503
6503
|
type: "each",
|
|
6504
|
-
source: "(
|
|
6504
|
+
source: "(30:4) {#each Object.keys(Tab) as _tab, i}",
|
|
6505
6505
|
ctx
|
|
6506
6506
|
});
|
|
6507
6507
|
|
|
6508
6508
|
return block;
|
|
6509
6509
|
}
|
|
6510
6510
|
|
|
6511
|
-
// (
|
|
6511
|
+
// (46:2) {#if tab === _tab}
|
|
6512
6512
|
function create_if_block$4(ctx) {
|
|
6513
6513
|
let slot;
|
|
6514
6514
|
|
|
6515
6515
|
const block = {
|
|
6516
6516
|
c: function create() {
|
|
6517
6517
|
slot = element("slot");
|
|
6518
|
-
attr_dev(slot, "name", `tab-${/*_tab*/ ctx[
|
|
6519
|
-
add_location(slot, file$5,
|
|
6518
|
+
attr_dev(slot, "name", `tab-${/*_tab*/ ctx[11]}`);
|
|
6519
|
+
add_location(slot, file$5, 46, 4, 1160);
|
|
6520
6520
|
},
|
|
6521
6521
|
m: function mount(target, anchor) {
|
|
6522
6522
|
insert_dev(target, slot, anchor);
|
|
@@ -6531,17 +6531,17 @@
|
|
|
6531
6531
|
block,
|
|
6532
6532
|
id: create_if_block$4.name,
|
|
6533
6533
|
type: "if",
|
|
6534
|
-
source: "(
|
|
6534
|
+
source: "(46:2) {#if tab === _tab}",
|
|
6535
6535
|
ctx
|
|
6536
6536
|
});
|
|
6537
6537
|
|
|
6538
6538
|
return block;
|
|
6539
6539
|
}
|
|
6540
6540
|
|
|
6541
|
-
// (
|
|
6541
|
+
// (45:0) {#each Object.keys(Tab) as _tab}
|
|
6542
6542
|
function create_each_block$4(ctx) {
|
|
6543
6543
|
let if_block_anchor;
|
|
6544
|
-
let if_block = /*tab*/ ctx[2] === /*_tab*/ ctx[
|
|
6544
|
+
let if_block = /*tab*/ ctx[2] === /*_tab*/ ctx[11] && create_if_block$4(ctx);
|
|
6545
6545
|
|
|
6546
6546
|
const block = {
|
|
6547
6547
|
c: function create() {
|
|
@@ -6553,7 +6553,7 @@
|
|
|
6553
6553
|
insert_dev(target, if_block_anchor, anchor);
|
|
6554
6554
|
},
|
|
6555
6555
|
p: function update(ctx, dirty) {
|
|
6556
|
-
if (/*tab*/ ctx[2] === /*_tab*/ ctx[
|
|
6556
|
+
if (/*tab*/ ctx[2] === /*_tab*/ ctx[11]) {
|
|
6557
6557
|
if (if_block) {
|
|
6558
6558
|
if_block.p(ctx, dirty);
|
|
6559
6559
|
} else {
|
|
@@ -6576,7 +6576,7 @@
|
|
|
6576
6576
|
block,
|
|
6577
6577
|
id: create_each_block$4.name,
|
|
6578
6578
|
type: "each",
|
|
6579
|
-
source: "(
|
|
6579
|
+
source: "(45:0) {#each Object.keys(Tab) as _tab}",
|
|
6580
6580
|
ctx
|
|
6581
6581
|
});
|
|
6582
6582
|
|
|
@@ -6694,13 +6694,8 @@
|
|
|
6694
6694
|
let { isshowhistory = 'true' } = $$props;
|
|
6695
6695
|
let rootContainer;
|
|
6696
6696
|
let tab = Tab.Program;
|
|
6697
|
-
const writable_props = ['lang', 'endpoint', 'session', 'clientstyling', 'isshowhistory'];
|
|
6698
|
-
|
|
6699
|
-
Object_1$1.keys($$props).forEach(key => {
|
|
6700
|
-
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<lottery-program-wof-private-tabs> was created with unknown prop '${key}'`);
|
|
6701
|
-
});
|
|
6702
6697
|
|
|
6703
|
-
const
|
|
6698
|
+
const onTabClick = _tab => {
|
|
6704
6699
|
switch (_tab) {
|
|
6705
6700
|
case Tab.Program:
|
|
6706
6701
|
break;
|
|
@@ -6709,10 +6704,17 @@
|
|
|
6709
6704
|
break;
|
|
6710
6705
|
}
|
|
6711
6706
|
|
|
6712
|
-
//@ts-ignore
|
|
6713
6707
|
$$invalidate(2, tab = _tab);
|
|
6714
6708
|
};
|
|
6715
6709
|
|
|
6710
|
+
const writable_props = ['lang', 'endpoint', 'session', 'clientstyling', 'isshowhistory'];
|
|
6711
|
+
|
|
6712
|
+
Object_1$1.keys($$props).forEach(key => {
|
|
6713
|
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<lottery-program-wof-private-tabs> was created with unknown prop '${key}'`);
|
|
6714
|
+
});
|
|
6715
|
+
|
|
6716
|
+
const click_handler = _tab => onTabClick(_tab);
|
|
6717
|
+
|
|
6716
6718
|
function section_binding($$value) {
|
|
6717
6719
|
binding_callbacks[$$value ? 'unshift' : 'push'](() => {
|
|
6718
6720
|
rootContainer = $$value;
|
|
@@ -6721,10 +6723,10 @@
|
|
|
6721
6723
|
}
|
|
6722
6724
|
|
|
6723
6725
|
$$self.$$set = $$props => {
|
|
6724
|
-
if ('lang' in $$props) $$invalidate(
|
|
6725
|
-
if ('endpoint' in $$props) $$invalidate(
|
|
6726
|
-
if ('session' in $$props) $$invalidate(
|
|
6727
|
-
if ('clientstyling' in $$props) $$invalidate(
|
|
6726
|
+
if ('lang' in $$props) $$invalidate(5, lang = $$props.lang);
|
|
6727
|
+
if ('endpoint' in $$props) $$invalidate(6, endpoint = $$props.endpoint);
|
|
6728
|
+
if ('session' in $$props) $$invalidate(7, session = $$props.session);
|
|
6729
|
+
if ('clientstyling' in $$props) $$invalidate(8, clientstyling = $$props.clientstyling);
|
|
6728
6730
|
if ('isshowhistory' in $$props) $$invalidate(0, isshowhistory = $$props.isshowhistory);
|
|
6729
6731
|
};
|
|
6730
6732
|
|
|
@@ -6741,14 +6743,15 @@
|
|
|
6741
6743
|
isshowhistory,
|
|
6742
6744
|
rootContainer,
|
|
6743
6745
|
tab,
|
|
6746
|
+
onTabClick,
|
|
6744
6747
|
$_
|
|
6745
6748
|
});
|
|
6746
6749
|
|
|
6747
6750
|
$$self.$inject_state = $$props => {
|
|
6748
|
-
if ('lang' in $$props) $$invalidate(
|
|
6749
|
-
if ('endpoint' in $$props) $$invalidate(
|
|
6750
|
-
if ('session' in $$props) $$invalidate(
|
|
6751
|
-
if ('clientstyling' in $$props) $$invalidate(
|
|
6751
|
+
if ('lang' in $$props) $$invalidate(5, lang = $$props.lang);
|
|
6752
|
+
if ('endpoint' in $$props) $$invalidate(6, endpoint = $$props.endpoint);
|
|
6753
|
+
if ('session' in $$props) $$invalidate(7, session = $$props.session);
|
|
6754
|
+
if ('clientstyling' in $$props) $$invalidate(8, clientstyling = $$props.clientstyling);
|
|
6752
6755
|
if ('isshowhistory' in $$props) $$invalidate(0, isshowhistory = $$props.isshowhistory);
|
|
6753
6756
|
if ('rootContainer' in $$props) $$invalidate(1, rootContainer = $$props.rootContainer);
|
|
6754
6757
|
if ('tab' in $$props) $$invalidate(2, tab = $$props.tab);
|
|
@@ -6759,7 +6762,7 @@
|
|
|
6759
6762
|
}
|
|
6760
6763
|
|
|
6761
6764
|
$$self.$$.update = () => {
|
|
6762
|
-
if ($$self.$$.dirty & /*clientstyling, rootContainer*/
|
|
6765
|
+
if ($$self.$$.dirty & /*clientstyling, rootContainer*/ 258) {
|
|
6763
6766
|
clientstyling && rootContainer && setClientStyling(rootContainer, clientstyling);
|
|
6764
6767
|
}
|
|
6765
6768
|
};
|
|
@@ -6769,6 +6772,7 @@
|
|
|
6769
6772
|
rootContainer,
|
|
6770
6773
|
tab,
|
|
6771
6774
|
$_,
|
|
6775
|
+
onTabClick,
|
|
6772
6776
|
lang,
|
|
6773
6777
|
endpoint,
|
|
6774
6778
|
session,
|
|
@@ -6782,7 +6786,7 @@
|
|
|
6782
6786
|
constructor(options) {
|
|
6783
6787
|
super();
|
|
6784
6788
|
const style = document.createElement('style');
|
|
6785
|
-
style.textContent = `:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";width:100%}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TabBar{width:100%;display:flex;align-items:center;flex-direction:column;padding:20px 0}.TabBar ul{max-width:600px;width:100%}.TabBar ul li{color:#FFFFFF;display:inline-block
|
|
6789
|
+
style.textContent = `:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";width:100%}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TabBar{width:100%;display:flex;align-items:center;flex-direction:column;padding:20px 0}.TabBar ul{max-width:600px;width:100%}.TabBar ul li{color:#FFFFFF;display:inline-block}.TabBar ul{border-bottom:3px #ccc solid}.TabBar ul li{padding:6px 10px;cursor:pointer}.TabBar ul li.active{border-bottom:3px #d46666 solid;margin-bottom:-6px}`;
|
|
6786
6790
|
this.shadowRoot.appendChild(style);
|
|
6787
6791
|
|
|
6788
6792
|
init(
|
|
@@ -6796,10 +6800,10 @@
|
|
|
6796
6800
|
create_fragment$5,
|
|
6797
6801
|
safe_not_equal,
|
|
6798
6802
|
{
|
|
6799
|
-
lang:
|
|
6800
|
-
endpoint:
|
|
6801
|
-
session:
|
|
6802
|
-
clientstyling:
|
|
6803
|
+
lang: 5,
|
|
6804
|
+
endpoint: 6,
|
|
6805
|
+
session: 7,
|
|
6806
|
+
clientstyling: 8,
|
|
6803
6807
|
isshowhistory: 0
|
|
6804
6808
|
},
|
|
6805
6809
|
null
|
|
@@ -6822,7 +6826,7 @@
|
|
|
6822
6826
|
}
|
|
6823
6827
|
|
|
6824
6828
|
get lang() {
|
|
6825
|
-
return this.$$.ctx[
|
|
6829
|
+
return this.$$.ctx[5];
|
|
6826
6830
|
}
|
|
6827
6831
|
|
|
6828
6832
|
set lang(lang) {
|
|
@@ -6831,7 +6835,7 @@
|
|
|
6831
6835
|
}
|
|
6832
6836
|
|
|
6833
6837
|
get endpoint() {
|
|
6834
|
-
return this.$$.ctx[
|
|
6838
|
+
return this.$$.ctx[6];
|
|
6835
6839
|
}
|
|
6836
6840
|
|
|
6837
6841
|
set endpoint(endpoint) {
|
|
@@ -6840,7 +6844,7 @@
|
|
|
6840
6844
|
}
|
|
6841
6845
|
|
|
6842
6846
|
get session() {
|
|
6843
|
-
return this.$$.ctx[
|
|
6847
|
+
return this.$$.ctx[7];
|
|
6844
6848
|
}
|
|
6845
6849
|
|
|
6846
6850
|
set session(session) {
|
|
@@ -6849,7 +6853,7 @@
|
|
|
6849
6853
|
}
|
|
6850
6854
|
|
|
6851
6855
|
get clientstyling() {
|
|
6852
|
-
return this.$$.ctx[
|
|
6856
|
+
return this.$$.ctx[8];
|
|
6853
6857
|
}
|
|
6854
6858
|
|
|
6855
6859
|
set clientstyling(clientstyling) {
|