@everymatrix/player-bonus-history 0.0.162 → 0.0.166
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(factory) :
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@vaadin/vaadin-date-picker/vaadin-date-picker.js')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['@vaadin/vaadin-date-picker/vaadin-date-picker.js'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.app = factory());
|
|
5
5
|
}(this, (function () { 'use strict';
|
|
6
6
|
|
|
@@ -87,9 +87,6 @@
|
|
|
87
87
|
function children(element) {
|
|
88
88
|
return Array.from(element.childNodes);
|
|
89
89
|
}
|
|
90
|
-
function set_input_value(input, value) {
|
|
91
|
-
input.value = value == null ? '' : value;
|
|
92
|
-
}
|
|
93
90
|
function custom_event(type, detail) {
|
|
94
91
|
const e = document.createEvent('CustomEvent');
|
|
95
92
|
e.initCustomEvent(type, false, false, detail);
|
|
@@ -107,6 +104,14 @@
|
|
|
107
104
|
function set_current_component(component) {
|
|
108
105
|
current_component = component;
|
|
109
106
|
}
|
|
107
|
+
function get_current_component() {
|
|
108
|
+
if (!current_component)
|
|
109
|
+
throw new Error('Function called outside component initialization');
|
|
110
|
+
return current_component;
|
|
111
|
+
}
|
|
112
|
+
function onMount(fn) {
|
|
113
|
+
get_current_component().$$.on_mount.push(fn);
|
|
114
|
+
}
|
|
110
115
|
|
|
111
116
|
const dirty_components = [];
|
|
112
117
|
const binding_callbacks = [];
|
|
@@ -10151,11 +10156,11 @@
|
|
|
10151
10156
|
t3 = space();
|
|
10152
10157
|
t4 = text(/*bonuscurrency*/ ctx[6]);
|
|
10153
10158
|
attr_dev(p0, "class", "BonusCardRowTitle");
|
|
10154
|
-
add_location(p0, file$1, 46, 8,
|
|
10159
|
+
add_location(p0, file$1, 46, 8, 1787);
|
|
10155
10160
|
attr_dev(p1, "class", "BonusCardRowText");
|
|
10156
|
-
add_location(p1, file$1, 47, 8,
|
|
10161
|
+
add_location(p1, file$1, 47, 8, 1841);
|
|
10157
10162
|
attr_dev(div, "class", "BonusCardRow");
|
|
10158
|
-
add_location(div, file$1, 45, 6,
|
|
10163
|
+
add_location(div, file$1, 45, 6, 1752);
|
|
10159
10164
|
},
|
|
10160
10165
|
m: function mount(target, anchor) {
|
|
10161
10166
|
insert_dev(target, div, anchor);
|
|
@@ -10207,11 +10212,11 @@
|
|
|
10207
10212
|
t3 = space();
|
|
10208
10213
|
t4 = text(/*bonuscurrency*/ ctx[6]);
|
|
10209
10214
|
attr_dev(p0, "class", "BonusCardRowTitle");
|
|
10210
|
-
add_location(p0, file$1, 52, 8,
|
|
10215
|
+
add_location(p0, file$1, 52, 8, 2002);
|
|
10211
10216
|
attr_dev(p1, "class", "BonusCardRowText");
|
|
10212
|
-
add_location(p1, file$1, 53, 8,
|
|
10217
|
+
add_location(p1, file$1, 53, 8, 2059);
|
|
10213
10218
|
attr_dev(div, "class", "BonusCardRow");
|
|
10214
|
-
add_location(div, file$1, 51, 6,
|
|
10219
|
+
add_location(div, file$1, 51, 6, 1967);
|
|
10215
10220
|
},
|
|
10216
10221
|
m: function mount(target, anchor) {
|
|
10217
10222
|
insert_dev(target, div, anchor);
|
|
@@ -10263,11 +10268,11 @@
|
|
|
10263
10268
|
t3 = space();
|
|
10264
10269
|
t4 = text(/*bonuscurrency*/ ctx[6]);
|
|
10265
10270
|
attr_dev(p0, "class", "BonusCardRowTitle");
|
|
10266
|
-
add_location(p0, file$1, 58, 8,
|
|
10271
|
+
add_location(p0, file$1, 58, 8, 2229);
|
|
10267
10272
|
attr_dev(p1, "class", "BonusCardRowText");
|
|
10268
|
-
add_location(p1, file$1, 59, 8,
|
|
10273
|
+
add_location(p1, file$1, 59, 8, 2293);
|
|
10269
10274
|
attr_dev(div, "class", "BonusCardRow");
|
|
10270
|
-
add_location(div, file$1, 57, 6,
|
|
10275
|
+
add_location(div, file$1, 57, 6, 2194);
|
|
10271
10276
|
},
|
|
10272
10277
|
m: function mount(target, anchor) {
|
|
10273
10278
|
insert_dev(target, div, anchor);
|
|
@@ -10310,7 +10315,7 @@
|
|
|
10310
10315
|
button = element("button");
|
|
10311
10316
|
t = text("Forfeit Bonus");
|
|
10312
10317
|
attr_dev(button, "class", "DeleteBonus " + (/*isMobile*/ ctx[8] ? "DeleteBonusMobile" : ""));
|
|
10313
|
-
add_location(button, file$1, 64, 4,
|
|
10318
|
+
add_location(button, file$1, 64, 4, 2433);
|
|
10314
10319
|
},
|
|
10315
10320
|
m: function mount(target, anchor) {
|
|
10316
10321
|
insert_dev(target, button, anchor);
|
|
@@ -10409,9 +10414,9 @@
|
|
|
10409
10414
|
t15 = space();
|
|
10410
10415
|
if (if_block3) if_block3.c();
|
|
10411
10416
|
this.c = noop$1;
|
|
10412
|
-
add_location(span, file$1, 33, 49,
|
|
10417
|
+
add_location(span, file$1, 33, 49, 1072);
|
|
10413
10418
|
attr_dev(p0, "class", "BonusCardRowTitle");
|
|
10414
|
-
add_location(p0, file$1, 33, 6,
|
|
10419
|
+
add_location(p0, file$1, 33, 6, 1029);
|
|
10415
10420
|
|
|
10416
10421
|
attr_dev(p1, "class", p1_class_value = "BonusCardRowText BonusCardStatus TextCapitalize " + (/*bonusstatus*/ ctx[1] === "active" || /*bonusstatus*/ ctx[1] === "released"
|
|
10417
10422
|
? "StatusActive"
|
|
@@ -10421,25 +10426,25 @@
|
|
|
10421
10426
|
? "StatusForfeited"
|
|
10422
10427
|
: ""));
|
|
10423
10428
|
|
|
10424
|
-
add_location(p1, file$1, 34, 6,
|
|
10429
|
+
add_location(p1, file$1, 34, 6, 1143);
|
|
10425
10430
|
attr_dev(div0, "class", "BonusCardRow");
|
|
10426
|
-
add_location(div0, file$1, 32, 4,
|
|
10431
|
+
add_location(div0, file$1, 32, 4, 996);
|
|
10427
10432
|
attr_dev(p2, "class", "BonusCardRowTitle");
|
|
10428
|
-
add_location(p2, file$1, 37, 6,
|
|
10433
|
+
add_location(p2, file$1, 37, 6, 1453);
|
|
10429
10434
|
attr_dev(p3, "class", "BonusCardRowText");
|
|
10430
|
-
add_location(p3, file$1, 38, 6,
|
|
10435
|
+
add_location(p3, file$1, 38, 6, 1503);
|
|
10431
10436
|
attr_dev(div1, "class", "BonusCardRow");
|
|
10432
|
-
add_location(div1, file$1, 36, 4,
|
|
10437
|
+
add_location(div1, file$1, 36, 4, 1420);
|
|
10433
10438
|
attr_dev(p4, "class", "BonusCardRowTitle");
|
|
10434
|
-
add_location(p4, file$1, 41, 6,
|
|
10439
|
+
add_location(p4, file$1, 41, 6, 1595);
|
|
10435
10440
|
attr_dev(p5, "class", "BonusCardRowText TextCapitalize");
|
|
10436
|
-
add_location(p5, file$1, 42, 6,
|
|
10441
|
+
add_location(p5, file$1, 42, 6, 1645);
|
|
10437
10442
|
attr_dev(div2, "class", "BonusCardRow");
|
|
10438
|
-
add_location(div2, file$1, 40, 4,
|
|
10443
|
+
add_location(div2, file$1, 40, 4, 1562);
|
|
10439
10444
|
attr_dev(div3, "class", "BonusCardInfo");
|
|
10440
|
-
add_location(div3, file$1, 31, 2,
|
|
10445
|
+
add_location(div3, file$1, 31, 2, 964);
|
|
10441
10446
|
attr_dev(div4, "class", "BonusCard");
|
|
10442
|
-
add_location(div4, file$1, 30, 0,
|
|
10447
|
+
add_location(div4, file$1, 30, 0, 938);
|
|
10443
10448
|
},
|
|
10444
10449
|
l: function claim(nodes) {
|
|
10445
10450
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -10575,9 +10580,9 @@
|
|
|
10575
10580
|
let { bonusstatus = "" } = $$props;
|
|
10576
10581
|
let { bonusname = "" } = $$props;
|
|
10577
10582
|
let { bonustype = "" } = $$props;
|
|
10578
|
-
let { bonusamount } = $$props;
|
|
10579
|
-
let { bonuswageringamount } = $$props;
|
|
10580
|
-
let { bonusremainingamount } = $$props;
|
|
10583
|
+
let { bonusamount = "" } = $$props;
|
|
10584
|
+
let { bonuswageringamount = "" } = $$props;
|
|
10585
|
+
let { bonusremainingamount = "" } = $$props;
|
|
10581
10586
|
let { bonuscurrency = "" } = $$props;
|
|
10582
10587
|
let userAgent = window.navigator.userAgent;
|
|
10583
10588
|
let isMobile = getDevice(userAgent) === "PC" ? false : true;
|
|
@@ -10626,8 +10631,8 @@
|
|
|
10626
10631
|
};
|
|
10627
10632
|
|
|
10628
10633
|
$$self.$capture_state = () => ({
|
|
10629
|
-
moment,
|
|
10630
10634
|
getDevice,
|
|
10635
|
+
moment,
|
|
10631
10636
|
bonuswalletid,
|
|
10632
10637
|
bonusdate,
|
|
10633
10638
|
bonusstatus,
|
|
@@ -10713,21 +10718,6 @@
|
|
|
10713
10718
|
}
|
|
10714
10719
|
);
|
|
10715
10720
|
|
|
10716
|
-
const { ctx } = this.$$;
|
|
10717
|
-
const props = this.attributes;
|
|
10718
|
-
|
|
10719
|
-
if (/*bonusamount*/ ctx[3] === undefined && !("bonusamount" in props)) {
|
|
10720
|
-
console.warn("<undefined> was created without expected prop 'bonusamount'");
|
|
10721
|
-
}
|
|
10722
|
-
|
|
10723
|
-
if (/*bonuswageringamount*/ ctx[4] === undefined && !("bonuswageringamount" in props)) {
|
|
10724
|
-
console.warn("<undefined> was created without expected prop 'bonuswageringamount'");
|
|
10725
|
-
}
|
|
10726
|
-
|
|
10727
|
-
if (/*bonusremainingamount*/ ctx[5] === undefined && !("bonusremainingamount" in props)) {
|
|
10728
|
-
console.warn("<undefined> was created without expected prop 'bonusremainingamount'");
|
|
10729
|
-
}
|
|
10730
|
-
|
|
10731
10721
|
if (options) {
|
|
10732
10722
|
if (options.target) {
|
|
10733
10723
|
insert_dev(options.target, this, options.anchor);
|
|
@@ -10845,18 +10835,18 @@
|
|
|
10845
10835
|
|
|
10846
10836
|
function get_each_context(ctx, list, i) {
|
|
10847
10837
|
const child_ctx = ctx.slice();
|
|
10848
|
-
child_ctx[
|
|
10849
|
-
child_ctx[
|
|
10838
|
+
child_ctx[33] = list[i];
|
|
10839
|
+
child_ctx[35] = i;
|
|
10850
10840
|
return child_ctx;
|
|
10851
10841
|
}
|
|
10852
10842
|
|
|
10853
10843
|
function get_each_context_1(ctx, list, i) {
|
|
10854
10844
|
const child_ctx = ctx.slice();
|
|
10855
|
-
child_ctx[
|
|
10845
|
+
child_ctx[36] = list[i];
|
|
10856
10846
|
return child_ctx;
|
|
10857
10847
|
}
|
|
10858
10848
|
|
|
10859
|
-
// (
|
|
10849
|
+
// (84:0) {:else}
|
|
10860
10850
|
function create_else_block(ctx) {
|
|
10861
10851
|
let div4;
|
|
10862
10852
|
let t0;
|
|
@@ -10867,12 +10857,12 @@
|
|
|
10867
10857
|
let div0;
|
|
10868
10858
|
let label0;
|
|
10869
10859
|
let t4;
|
|
10870
|
-
let
|
|
10860
|
+
let vaadin_date_picker0;
|
|
10871
10861
|
let t5;
|
|
10872
10862
|
let div1;
|
|
10873
10863
|
let label1;
|
|
10874
10864
|
let t7;
|
|
10875
|
-
let
|
|
10865
|
+
let vaadin_date_picker1;
|
|
10876
10866
|
let t8;
|
|
10877
10867
|
let button;
|
|
10878
10868
|
let t9;
|
|
@@ -10881,16 +10871,16 @@
|
|
|
10881
10871
|
let t11;
|
|
10882
10872
|
let mounted;
|
|
10883
10873
|
let dispose;
|
|
10884
|
-
let if_block0 = /*isMobile*/ ctx[
|
|
10874
|
+
let if_block0 = /*isMobile*/ ctx[11] && create_if_block_4(ctx);
|
|
10885
10875
|
|
|
10886
10876
|
function select_block_type_1(ctx, dirty) {
|
|
10887
|
-
if (/*bonusesList*/ ctx[
|
|
10877
|
+
if (/*bonusesList*/ ctx[9].length === 0) return create_if_block_2;
|
|
10888
10878
|
return create_else_block_1;
|
|
10889
10879
|
}
|
|
10890
10880
|
|
|
10891
10881
|
let current_block_type = select_block_type_1(ctx);
|
|
10892
10882
|
let if_block1 = current_block_type(ctx);
|
|
10893
|
-
let if_block2 = /*bonusesList*/ ctx[
|
|
10883
|
+
let if_block2 = /*bonusesList*/ ctx[9].length !== 0 && create_if_block_1(ctx);
|
|
10894
10884
|
|
|
10895
10885
|
const block = {
|
|
10896
10886
|
c: function create() {
|
|
@@ -10905,13 +10895,13 @@
|
|
|
10905
10895
|
label0 = element("label");
|
|
10906
10896
|
label0.textContent = "From:";
|
|
10907
10897
|
t4 = space();
|
|
10908
|
-
|
|
10898
|
+
vaadin_date_picker0 = element("vaadin-date-picker");
|
|
10909
10899
|
t5 = space();
|
|
10910
10900
|
div1 = element("div");
|
|
10911
10901
|
label1 = element("label");
|
|
10912
10902
|
label1.textContent = "To:";
|
|
10913
10903
|
t7 = space();
|
|
10914
|
-
|
|
10904
|
+
vaadin_date_picker1 = element("vaadin-date-picker");
|
|
10915
10905
|
t8 = space();
|
|
10916
10906
|
button = element("button");
|
|
10917
10907
|
t9 = text("Filter");
|
|
@@ -10920,34 +10910,40 @@
|
|
|
10920
10910
|
if_block1.c();
|
|
10921
10911
|
t11 = space();
|
|
10922
10912
|
if (if_block2) if_block2.c();
|
|
10923
|
-
attr_dev(h2, "class", "BonusesTitle " + (/*isMobile*/ ctx[
|
|
10924
|
-
add_location(h2, file,
|
|
10913
|
+
attr_dev(h2, "class", "BonusesTitle " + (/*isMobile*/ ctx[11] ? "BonusesTitleNone" : ""));
|
|
10914
|
+
add_location(h2, file, 95, 4, 3670);
|
|
10925
10915
|
attr_dev(label0, "for", "BonusCalendarStartDate");
|
|
10926
|
-
add_location(label0, file,
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10916
|
+
add_location(label0, file, 98, 8, 3940);
|
|
10917
|
+
set_custom_element_data(vaadin_date_picker0, "max", /*maxDate*/ ctx[2]);
|
|
10918
|
+
set_custom_element_data(vaadin_date_picker0, "value", /*lastMonth*/ ctx[3]);
|
|
10919
|
+
set_custom_element_data(vaadin_date_picker0, "placeholder", "From");
|
|
10920
|
+
add_location(vaadin_date_picker0, file, 99, 8, 3998);
|
|
10921
|
+
attr_dev(div0, "class", "BonusesCalendarStartDate " + (/*isMobile*/ ctx[11] ? "BonusesCalendarMobile" : ""));
|
|
10922
|
+
add_location(div0, file, 97, 6, 3851);
|
|
10932
10923
|
attr_dev(label1, "for", "BonusesCalendarEndDate");
|
|
10933
|
-
add_location(label1, file,
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10924
|
+
add_location(label1, file, 102, 8, 4223);
|
|
10925
|
+
set_custom_element_data(vaadin_date_picker1, "max", /*maxDate*/ ctx[2]);
|
|
10926
|
+
set_custom_element_data(vaadin_date_picker1, "value", /*maxDate*/ ctx[2]);
|
|
10927
|
+
set_custom_element_data(vaadin_date_picker1, "placeholder", "To");
|
|
10928
|
+
add_location(vaadin_date_picker1, file, 103, 8, 4279);
|
|
10929
|
+
attr_dev(div1, "class", "BonusesCalendarEndDate " + (/*isMobile*/ ctx[11] ? "BonusesCalendarMobile" : ""));
|
|
10930
|
+
add_location(div1, file, 101, 6, 4136);
|
|
10931
|
+
|
|
10932
|
+
attr_dev(button, "class", "BonusesCalendarFilter " + (/*isMobile*/ ctx[11]
|
|
10933
|
+
? "BonusesCalendarFilterMobile"
|
|
10934
|
+
: ""));
|
|
10935
|
+
|
|
10936
|
+
add_location(button, file, 105, 6, 4411);
|
|
10937
|
+
|
|
10938
|
+
attr_dev(div2, "class", "BonusesCalendarContainer " + (/*isMobile*/ ctx[11]
|
|
10943
10939
|
? "BonusesCalendarContainerMobile"
|
|
10944
10940
|
: ""));
|
|
10945
10941
|
|
|
10946
|
-
add_location(div2, file,
|
|
10947
|
-
attr_dev(div3, "class", "BonusesGrid " + (/*isMobile*/ ctx[
|
|
10948
|
-
add_location(div3, file,
|
|
10949
|
-
attr_dev(div4, "class", "BonusesWrapper " + (/*isMobile*/ ctx[
|
|
10950
|
-
add_location(div4, file,
|
|
10942
|
+
add_location(div2, file, 96, 4, 3755);
|
|
10943
|
+
attr_dev(div3, "class", "BonusesGrid " + (/*isMobile*/ ctx[11] ? "BonusesGridMobile" : ""));
|
|
10944
|
+
add_location(div3, file, 107, 4, 4559);
|
|
10945
|
+
attr_dev(div4, "class", "BonusesWrapper " + (/*isMobile*/ ctx[11] ? "BonusesWrapperMobile" : ""));
|
|
10946
|
+
add_location(div4, file, 84, 2, 3027);
|
|
10951
10947
|
},
|
|
10952
10948
|
m: function mount(target, anchor) {
|
|
10953
10949
|
insert_dev(target, div4, anchor);
|
|
@@ -10960,14 +10956,14 @@
|
|
|
10960
10956
|
append_dev(div2, div0);
|
|
10961
10957
|
append_dev(div0, label0);
|
|
10962
10958
|
append_dev(div0, t4);
|
|
10963
|
-
append_dev(div0,
|
|
10964
|
-
|
|
10959
|
+
append_dev(div0, vaadin_date_picker0);
|
|
10960
|
+
/*vaadin_date_picker0_binding*/ ctx[19](vaadin_date_picker0);
|
|
10965
10961
|
append_dev(div2, t5);
|
|
10966
10962
|
append_dev(div2, div1);
|
|
10967
10963
|
append_dev(div1, label1);
|
|
10968
10964
|
append_dev(div1, t7);
|
|
10969
|
-
append_dev(div1,
|
|
10970
|
-
|
|
10965
|
+
append_dev(div1, vaadin_date_picker1);
|
|
10966
|
+
/*vaadin_date_picker1_binding*/ ctx[20](vaadin_date_picker1);
|
|
10971
10967
|
append_dev(div2, t8);
|
|
10972
10968
|
append_dev(div2, button);
|
|
10973
10969
|
append_dev(button, t9);
|
|
@@ -10978,24 +10974,27 @@
|
|
|
10978
10974
|
if (if_block2) if_block2.m(div4, null);
|
|
10979
10975
|
|
|
10980
10976
|
if (!mounted) {
|
|
10981
|
-
dispose = [
|
|
10982
|
-
listen_dev(input0, "input", /*input0_input_handler*/ ctx[17]),
|
|
10983
|
-
listen_dev(input1, "input", /*input1_input_handler*/ ctx[18]),
|
|
10984
|
-
listen_dev(button, "click", /*click_handler_1*/ ctx[19], false, false, false)
|
|
10985
|
-
];
|
|
10986
|
-
|
|
10977
|
+
dispose = listen_dev(button, "click", /*click_handler_1*/ ctx[21], false, false, false);
|
|
10987
10978
|
mounted = true;
|
|
10988
10979
|
}
|
|
10989
10980
|
},
|
|
10990
10981
|
p: function update(ctx, dirty) {
|
|
10991
|
-
if (/*isMobile*/ ctx[
|
|
10982
|
+
if (/*isMobile*/ ctx[11]) if_block0.p(ctx, dirty);
|
|
10983
|
+
|
|
10984
|
+
if (dirty[0] & /*maxDate*/ 4) {
|
|
10985
|
+
set_custom_element_data(vaadin_date_picker0, "max", /*maxDate*/ ctx[2]);
|
|
10986
|
+
}
|
|
10987
|
+
|
|
10988
|
+
if (dirty[0] & /*lastMonth*/ 8) {
|
|
10989
|
+
set_custom_element_data(vaadin_date_picker0, "value", /*lastMonth*/ ctx[3]);
|
|
10990
|
+
}
|
|
10992
10991
|
|
|
10993
|
-
if (dirty[0] & /*
|
|
10994
|
-
|
|
10992
|
+
if (dirty[0] & /*maxDate*/ 4) {
|
|
10993
|
+
set_custom_element_data(vaadin_date_picker1, "max", /*maxDate*/ ctx[2]);
|
|
10995
10994
|
}
|
|
10996
10995
|
|
|
10997
|
-
if (dirty[0] & /*
|
|
10998
|
-
|
|
10996
|
+
if (dirty[0] & /*maxDate*/ 4) {
|
|
10997
|
+
set_custom_element_data(vaadin_date_picker1, "value", /*maxDate*/ ctx[2]);
|
|
10999
10998
|
}
|
|
11000
10999
|
|
|
11001
11000
|
if (current_block_type === (current_block_type = select_block_type_1(ctx)) && if_block1) {
|
|
@@ -11010,7 +11009,7 @@
|
|
|
11010
11009
|
}
|
|
11011
11010
|
}
|
|
11012
11011
|
|
|
11013
|
-
if (/*bonusesList*/ ctx[
|
|
11012
|
+
if (/*bonusesList*/ ctx[9].length !== 0) {
|
|
11014
11013
|
if (if_block2) {
|
|
11015
11014
|
if_block2.p(ctx, dirty);
|
|
11016
11015
|
} else {
|
|
@@ -11026,10 +11025,12 @@
|
|
|
11026
11025
|
d: function destroy(detaching) {
|
|
11027
11026
|
if (detaching) detach_dev(div4);
|
|
11028
11027
|
if (if_block0) if_block0.d();
|
|
11028
|
+
/*vaadin_date_picker0_binding*/ ctx[19](null);
|
|
11029
|
+
/*vaadin_date_picker1_binding*/ ctx[20](null);
|
|
11029
11030
|
if_block1.d();
|
|
11030
11031
|
if (if_block2) if_block2.d();
|
|
11031
11032
|
mounted = false;
|
|
11032
|
-
|
|
11033
|
+
dispose();
|
|
11033
11034
|
}
|
|
11034
11035
|
};
|
|
11035
11036
|
|
|
@@ -11037,14 +11038,14 @@
|
|
|
11037
11038
|
block,
|
|
11038
11039
|
id: create_else_block.name,
|
|
11039
11040
|
type: "else",
|
|
11040
|
-
source: "(
|
|
11041
|
+
source: "(84:0) {:else}",
|
|
11041
11042
|
ctx
|
|
11042
11043
|
});
|
|
11043
11044
|
|
|
11044
11045
|
return block;
|
|
11045
11046
|
}
|
|
11046
11047
|
|
|
11047
|
-
// (
|
|
11048
|
+
// (82:0) {#if isLoading}
|
|
11048
11049
|
function create_if_block(ctx) {
|
|
11049
11050
|
let div;
|
|
11050
11051
|
|
|
@@ -11052,7 +11053,7 @@
|
|
|
11052
11053
|
c: function create() {
|
|
11053
11054
|
div = element("div");
|
|
11054
11055
|
attr_dev(div, "class", "ModalLoader");
|
|
11055
|
-
add_location(div, file,
|
|
11056
|
+
add_location(div, file, 82, 2, 2985);
|
|
11056
11057
|
},
|
|
11057
11058
|
m: function mount(target, anchor) {
|
|
11058
11059
|
insert_dev(target, div, anchor);
|
|
@@ -11067,14 +11068,14 @@
|
|
|
11067
11068
|
block,
|
|
11068
11069
|
id: create_if_block.name,
|
|
11069
11070
|
type: "if",
|
|
11070
|
-
source: "(
|
|
11071
|
+
source: "(82:0) {#if isLoading}",
|
|
11071
11072
|
ctx
|
|
11072
11073
|
});
|
|
11073
11074
|
|
|
11074
11075
|
return block;
|
|
11075
11076
|
}
|
|
11076
11077
|
|
|
11077
|
-
// (
|
|
11078
|
+
// (86:4) {#if isMobile}
|
|
11078
11079
|
function create_if_block_4(ctx) {
|
|
11079
11080
|
let div;
|
|
11080
11081
|
let svg;
|
|
@@ -11102,25 +11103,25 @@
|
|
|
11102
11103
|
t1 = space();
|
|
11103
11104
|
h2 = element("h2");
|
|
11104
11105
|
h2.textContent = "Bonus History";
|
|
11105
|
-
add_location(style, file,
|
|
11106
|
-
add_location(defs, file,
|
|
11106
|
+
add_location(style, file, 87, 97, 3282);
|
|
11107
|
+
add_location(defs, file, 87, 91, 3276);
|
|
11107
11108
|
attr_dev(path, "class", "aaa");
|
|
11108
11109
|
attr_dev(path, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z");
|
|
11109
11110
|
attr_dev(path, "transform", "translate(15 15) rotate(180)");
|
|
11110
|
-
add_location(path, file,
|
|
11111
|
+
add_location(path, file, 89, 12, 3415);
|
|
11111
11112
|
attr_dev(g0, "transform", "translate(20 158)");
|
|
11112
|
-
add_location(g0, file,
|
|
11113
|
+
add_location(g0, file, 88, 10, 3369);
|
|
11113
11114
|
attr_dev(g1, "transform", "translate(-20 -158)");
|
|
11114
|
-
add_location(g1, file,
|
|
11115
|
+
add_location(g1, file, 87, 138, 3323);
|
|
11115
11116
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
11116
11117
|
attr_dev(svg, "width", "15");
|
|
11117
11118
|
attr_dev(svg, "height", "15");
|
|
11118
11119
|
attr_dev(svg, "viewBox", "0 0 15 15");
|
|
11119
|
-
add_location(svg, file,
|
|
11120
|
+
add_location(svg, file, 87, 8, 3193);
|
|
11120
11121
|
attr_dev(h2, "class", "BonusesTitleMobile");
|
|
11121
|
-
add_location(h2, file,
|
|
11122
|
+
add_location(h2, file, 92, 8, 3593);
|
|
11122
11123
|
attr_dev(div, "class", "MenuReturnButton");
|
|
11123
|
-
add_location(div, file,
|
|
11124
|
+
add_location(div, file, 86, 6, 3122);
|
|
11124
11125
|
},
|
|
11125
11126
|
m: function mount(target, anchor) {
|
|
11126
11127
|
insert_dev(target, div, anchor);
|
|
@@ -11135,7 +11136,7 @@
|
|
|
11135
11136
|
append_dev(div, h2);
|
|
11136
11137
|
|
|
11137
11138
|
if (!mounted) {
|
|
11138
|
-
dispose = listen_dev(div, "click", /*click_handler*/ ctx[
|
|
11139
|
+
dispose = listen_dev(div, "click", /*click_handler*/ ctx[18], false, false, false);
|
|
11139
11140
|
mounted = true;
|
|
11140
11141
|
}
|
|
11141
11142
|
},
|
|
@@ -11151,17 +11152,17 @@
|
|
|
11151
11152
|
block,
|
|
11152
11153
|
id: create_if_block_4.name,
|
|
11153
11154
|
type: "if",
|
|
11154
|
-
source: "(
|
|
11155
|
+
source: "(86:4) {#if isMobile}",
|
|
11155
11156
|
ctx
|
|
11156
11157
|
});
|
|
11157
11158
|
|
|
11158
11159
|
return block;
|
|
11159
11160
|
}
|
|
11160
11161
|
|
|
11161
|
-
// (
|
|
11162
|
+
// (111:6) {:else}
|
|
11162
11163
|
function create_else_block_1(ctx) {
|
|
11163
11164
|
let each_1_anchor;
|
|
11164
|
-
let each_value_1 = /*bonusesList*/ ctx[
|
|
11165
|
+
let each_value_1 = /*bonusesList*/ ctx[9];
|
|
11165
11166
|
validate_each_argument(each_value_1);
|
|
11166
11167
|
let each_blocks = [];
|
|
11167
11168
|
|
|
@@ -11185,8 +11186,8 @@
|
|
|
11185
11186
|
insert_dev(target, each_1_anchor, anchor);
|
|
11186
11187
|
},
|
|
11187
11188
|
p: function update(ctx, dirty) {
|
|
11188
|
-
if (dirty[0] & /*bonusesList*/
|
|
11189
|
-
each_value_1 = /*bonusesList*/ ctx[
|
|
11189
|
+
if (dirty[0] & /*bonusesList*/ 512) {
|
|
11190
|
+
each_value_1 = /*bonusesList*/ ctx[9];
|
|
11190
11191
|
validate_each_argument(each_value_1);
|
|
11191
11192
|
let i;
|
|
11192
11193
|
|
|
@@ -11219,14 +11220,14 @@
|
|
|
11219
11220
|
block,
|
|
11220
11221
|
id: create_else_block_1.name,
|
|
11221
11222
|
type: "else",
|
|
11222
|
-
source: "(
|
|
11223
|
+
source: "(111:6) {:else}",
|
|
11223
11224
|
ctx
|
|
11224
11225
|
});
|
|
11225
11226
|
|
|
11226
11227
|
return block;
|
|
11227
11228
|
}
|
|
11228
11229
|
|
|
11229
|
-
// (
|
|
11230
|
+
// (109:6) {#if bonusesList.length === 0}
|
|
11230
11231
|
function create_if_block_2(ctx) {
|
|
11231
11232
|
let p;
|
|
11232
11233
|
|
|
@@ -11234,7 +11235,7 @@
|
|
|
11234
11235
|
c: function create() {
|
|
11235
11236
|
p = element("p");
|
|
11236
11237
|
p.textContent = "You have no bonuses at the moment.";
|
|
11237
|
-
add_location(p, file,
|
|
11238
|
+
add_location(p, file, 109, 8, 4668);
|
|
11238
11239
|
},
|
|
11239
11240
|
m: function mount(target, anchor) {
|
|
11240
11241
|
insert_dev(target, p, anchor);
|
|
@@ -11249,14 +11250,14 @@
|
|
|
11249
11250
|
block,
|
|
11250
11251
|
id: create_if_block_2.name,
|
|
11251
11252
|
type: "if",
|
|
11252
|
-
source: "(
|
|
11253
|
+
source: "(109:6) {#if bonusesList.length === 0}",
|
|
11253
11254
|
ctx
|
|
11254
11255
|
});
|
|
11255
11256
|
|
|
11256
11257
|
return block;
|
|
11257
11258
|
}
|
|
11258
11259
|
|
|
11259
|
-
// (
|
|
11260
|
+
// (122:10) {:else}
|
|
11260
11261
|
function create_else_block_2(ctx) {
|
|
11261
11262
|
let player_bonus_card;
|
|
11262
11263
|
let player_bonus_card_bonuswalletid_value;
|
|
@@ -11272,54 +11273,54 @@
|
|
|
11272
11273
|
const block = {
|
|
11273
11274
|
c: function create() {
|
|
11274
11275
|
player_bonus_card = element("player-bonus-card");
|
|
11275
|
-
set_custom_element_data(player_bonus_card, "bonuswalletid", player_bonus_card_bonuswalletid_value = /*bonus*/ ctx[
|
|
11276
|
-
set_custom_element_data(player_bonus_card, "bonusdate", player_bonus_card_bonusdate_value = /*bonus*/ ctx[
|
|
11277
|
-
set_custom_element_data(player_bonus_card, "bonusstatus", player_bonus_card_bonusstatus_value = /*bonus*/ ctx[
|
|
11278
|
-
set_custom_element_data(player_bonus_card, "bonusname", player_bonus_card_bonusname_value = /*bonus*/ ctx[
|
|
11279
|
-
set_custom_element_data(player_bonus_card, "bonustype", player_bonus_card_bonustype_value = /*bonus*/ ctx[
|
|
11280
|
-
set_custom_element_data(player_bonus_card, "bonusamount", player_bonus_card_bonusamount_value = /*bonus*/ ctx[
|
|
11281
|
-
set_custom_element_data(player_bonus_card, "bonuswageringamount", player_bonus_card_bonuswageringamount_value = /*bonus*/ ctx[
|
|
11282
|
-
set_custom_element_data(player_bonus_card, "bonusremainingamount", player_bonus_card_bonusremainingamount_value = /*bonus*/ ctx[
|
|
11283
|
-
set_custom_element_data(player_bonus_card, "bonuscurrency", player_bonus_card_bonuscurrency_value = /*bonus*/ ctx[
|
|
11284
|
-
add_location(player_bonus_card, file,
|
|
11276
|
+
set_custom_element_data(player_bonus_card, "bonuswalletid", player_bonus_card_bonuswalletid_value = /*bonus*/ ctx[36].walletId);
|
|
11277
|
+
set_custom_element_data(player_bonus_card, "bonusdate", player_bonus_card_bonusdate_value = /*bonus*/ ctx[36].granted);
|
|
11278
|
+
set_custom_element_data(player_bonus_card, "bonusstatus", player_bonus_card_bonusstatus_value = /*bonus*/ ctx[36].status);
|
|
11279
|
+
set_custom_element_data(player_bonus_card, "bonusname", player_bonus_card_bonusname_value = /*bonus*/ ctx[36].name);
|
|
11280
|
+
set_custom_element_data(player_bonus_card, "bonustype", player_bonus_card_bonustype_value = /*bonus*/ ctx[36].type);
|
|
11281
|
+
set_custom_element_data(player_bonus_card, "bonusamount", player_bonus_card_bonusamount_value = /*bonus*/ ctx[36].grantedAmount);
|
|
11282
|
+
set_custom_element_data(player_bonus_card, "bonuswageringamount", player_bonus_card_bonuswageringamount_value = /*bonus*/ ctx[36].totalWR);
|
|
11283
|
+
set_custom_element_data(player_bonus_card, "bonusremainingamount", player_bonus_card_bonusremainingamount_value = /*bonus*/ ctx[36].currentAmount);
|
|
11284
|
+
set_custom_element_data(player_bonus_card, "bonuscurrency", player_bonus_card_bonuscurrency_value = /*bonus*/ ctx[36].currency);
|
|
11285
|
+
add_location(player_bonus_card, file, 122, 12, 5144);
|
|
11285
11286
|
},
|
|
11286
11287
|
m: function mount(target, anchor) {
|
|
11287
11288
|
insert_dev(target, player_bonus_card, anchor);
|
|
11288
11289
|
},
|
|
11289
11290
|
p: function update(ctx, dirty) {
|
|
11290
|
-
if (dirty[0] & /*bonusesList*/
|
|
11291
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonuswalletid_value !== (player_bonus_card_bonuswalletid_value = /*bonus*/ ctx[36].walletId)) {
|
|
11291
11292
|
set_custom_element_data(player_bonus_card, "bonuswalletid", player_bonus_card_bonuswalletid_value);
|
|
11292
11293
|
}
|
|
11293
11294
|
|
|
11294
|
-
if (dirty[0] & /*bonusesList*/
|
|
11295
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonusdate_value !== (player_bonus_card_bonusdate_value = /*bonus*/ ctx[36].granted)) {
|
|
11295
11296
|
set_custom_element_data(player_bonus_card, "bonusdate", player_bonus_card_bonusdate_value);
|
|
11296
11297
|
}
|
|
11297
11298
|
|
|
11298
|
-
if (dirty[0] & /*bonusesList*/
|
|
11299
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonusstatus_value !== (player_bonus_card_bonusstatus_value = /*bonus*/ ctx[36].status)) {
|
|
11299
11300
|
set_custom_element_data(player_bonus_card, "bonusstatus", player_bonus_card_bonusstatus_value);
|
|
11300
11301
|
}
|
|
11301
11302
|
|
|
11302
|
-
if (dirty[0] & /*bonusesList*/
|
|
11303
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonusname_value !== (player_bonus_card_bonusname_value = /*bonus*/ ctx[36].name)) {
|
|
11303
11304
|
set_custom_element_data(player_bonus_card, "bonusname", player_bonus_card_bonusname_value);
|
|
11304
11305
|
}
|
|
11305
11306
|
|
|
11306
|
-
if (dirty[0] & /*bonusesList*/
|
|
11307
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonustype_value !== (player_bonus_card_bonustype_value = /*bonus*/ ctx[36].type)) {
|
|
11307
11308
|
set_custom_element_data(player_bonus_card, "bonustype", player_bonus_card_bonustype_value);
|
|
11308
11309
|
}
|
|
11309
11310
|
|
|
11310
|
-
if (dirty[0] & /*bonusesList*/
|
|
11311
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonusamount_value !== (player_bonus_card_bonusamount_value = /*bonus*/ ctx[36].grantedAmount)) {
|
|
11311
11312
|
set_custom_element_data(player_bonus_card, "bonusamount", player_bonus_card_bonusamount_value);
|
|
11312
11313
|
}
|
|
11313
11314
|
|
|
11314
|
-
if (dirty[0] & /*bonusesList*/
|
|
11315
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonuswageringamount_value !== (player_bonus_card_bonuswageringamount_value = /*bonus*/ ctx[36].totalWR)) {
|
|
11315
11316
|
set_custom_element_data(player_bonus_card, "bonuswageringamount", player_bonus_card_bonuswageringamount_value);
|
|
11316
11317
|
}
|
|
11317
11318
|
|
|
11318
|
-
if (dirty[0] & /*bonusesList*/
|
|
11319
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonusremainingamount_value !== (player_bonus_card_bonusremainingamount_value = /*bonus*/ ctx[36].currentAmount)) {
|
|
11319
11320
|
set_custom_element_data(player_bonus_card, "bonusremainingamount", player_bonus_card_bonusremainingamount_value);
|
|
11320
11321
|
}
|
|
11321
11322
|
|
|
11322
|
-
if (dirty[0] & /*bonusesList*/
|
|
11323
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonuscurrency_value !== (player_bonus_card_bonuscurrency_value = /*bonus*/ ctx[36].currency)) {
|
|
11323
11324
|
set_custom_element_data(player_bonus_card, "bonuscurrency", player_bonus_card_bonuscurrency_value);
|
|
11324
11325
|
}
|
|
11325
11326
|
},
|
|
@@ -11332,14 +11333,14 @@
|
|
|
11332
11333
|
block,
|
|
11333
11334
|
id: create_else_block_2.name,
|
|
11334
11335
|
type: "else",
|
|
11335
|
-
source: "(
|
|
11336
|
+
source: "(122:10) {:else}",
|
|
11336
11337
|
ctx
|
|
11337
11338
|
});
|
|
11338
11339
|
|
|
11339
11340
|
return block;
|
|
11340
11341
|
}
|
|
11341
11342
|
|
|
11342
|
-
// (
|
|
11343
|
+
// (113:10) {#if bonus.type === 'freeRound'}
|
|
11343
11344
|
function create_if_block_3(ctx) {
|
|
11344
11345
|
let player_bonus_card;
|
|
11345
11346
|
let player_bonus_card_bonuswalletid_value;
|
|
@@ -11352,39 +11353,39 @@
|
|
|
11352
11353
|
const block = {
|
|
11353
11354
|
c: function create() {
|
|
11354
11355
|
player_bonus_card = element("player-bonus-card");
|
|
11355
|
-
set_custom_element_data(player_bonus_card, "bonuswalletid", player_bonus_card_bonuswalletid_value = /*bonus*/ ctx[
|
|
11356
|
-
set_custom_element_data(player_bonus_card, "bonusdate", player_bonus_card_bonusdate_value = /*bonus*/ ctx[
|
|
11357
|
-
set_custom_element_data(player_bonus_card, "bonusstatus", player_bonus_card_bonusstatus_value = /*bonus*/ ctx[
|
|
11358
|
-
set_custom_element_data(player_bonus_card, "bonusname", player_bonus_card_bonusname_value = /*bonus*/ ctx[
|
|
11359
|
-
set_custom_element_data(player_bonus_card, "bonustype", player_bonus_card_bonustype_value = /*bonus*/ ctx[
|
|
11360
|
-
set_custom_element_data(player_bonus_card, "bonuscurrency", player_bonus_card_bonuscurrency_value = /*bonus*/ ctx[
|
|
11361
|
-
add_location(player_bonus_card, file,
|
|
11356
|
+
set_custom_element_data(player_bonus_card, "bonuswalletid", player_bonus_card_bonuswalletid_value = /*bonus*/ ctx[36].walletId);
|
|
11357
|
+
set_custom_element_data(player_bonus_card, "bonusdate", player_bonus_card_bonusdate_value = /*bonus*/ ctx[36].granted);
|
|
11358
|
+
set_custom_element_data(player_bonus_card, "bonusstatus", player_bonus_card_bonusstatus_value = /*bonus*/ ctx[36].status);
|
|
11359
|
+
set_custom_element_data(player_bonus_card, "bonusname", player_bonus_card_bonusname_value = /*bonus*/ ctx[36].name);
|
|
11360
|
+
set_custom_element_data(player_bonus_card, "bonustype", player_bonus_card_bonustype_value = /*bonus*/ ctx[36].type);
|
|
11361
|
+
set_custom_element_data(player_bonus_card, "bonuscurrency", player_bonus_card_bonuscurrency_value = /*bonus*/ ctx[36].currency);
|
|
11362
|
+
add_location(player_bonus_card, file, 113, 12, 4816);
|
|
11362
11363
|
},
|
|
11363
11364
|
m: function mount(target, anchor) {
|
|
11364
11365
|
insert_dev(target, player_bonus_card, anchor);
|
|
11365
11366
|
},
|
|
11366
11367
|
p: function update(ctx, dirty) {
|
|
11367
|
-
if (dirty[0] & /*bonusesList*/
|
|
11368
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonuswalletid_value !== (player_bonus_card_bonuswalletid_value = /*bonus*/ ctx[36].walletId)) {
|
|
11368
11369
|
set_custom_element_data(player_bonus_card, "bonuswalletid", player_bonus_card_bonuswalletid_value);
|
|
11369
11370
|
}
|
|
11370
11371
|
|
|
11371
|
-
if (dirty[0] & /*bonusesList*/
|
|
11372
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonusdate_value !== (player_bonus_card_bonusdate_value = /*bonus*/ ctx[36].granted)) {
|
|
11372
11373
|
set_custom_element_data(player_bonus_card, "bonusdate", player_bonus_card_bonusdate_value);
|
|
11373
11374
|
}
|
|
11374
11375
|
|
|
11375
|
-
if (dirty[0] & /*bonusesList*/
|
|
11376
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonusstatus_value !== (player_bonus_card_bonusstatus_value = /*bonus*/ ctx[36].status)) {
|
|
11376
11377
|
set_custom_element_data(player_bonus_card, "bonusstatus", player_bonus_card_bonusstatus_value);
|
|
11377
11378
|
}
|
|
11378
11379
|
|
|
11379
|
-
if (dirty[0] & /*bonusesList*/
|
|
11380
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonusname_value !== (player_bonus_card_bonusname_value = /*bonus*/ ctx[36].name)) {
|
|
11380
11381
|
set_custom_element_data(player_bonus_card, "bonusname", player_bonus_card_bonusname_value);
|
|
11381
11382
|
}
|
|
11382
11383
|
|
|
11383
|
-
if (dirty[0] & /*bonusesList*/
|
|
11384
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonustype_value !== (player_bonus_card_bonustype_value = /*bonus*/ ctx[36].type)) {
|
|
11384
11385
|
set_custom_element_data(player_bonus_card, "bonustype", player_bonus_card_bonustype_value);
|
|
11385
11386
|
}
|
|
11386
11387
|
|
|
11387
|
-
if (dirty[0] & /*bonusesList*/
|
|
11388
|
+
if (dirty[0] & /*bonusesList*/ 512 && player_bonus_card_bonuscurrency_value !== (player_bonus_card_bonuscurrency_value = /*bonus*/ ctx[36].currency)) {
|
|
11388
11389
|
set_custom_element_data(player_bonus_card, "bonuscurrency", player_bonus_card_bonuscurrency_value);
|
|
11389
11390
|
}
|
|
11390
11391
|
},
|
|
@@ -11397,19 +11398,19 @@
|
|
|
11397
11398
|
block,
|
|
11398
11399
|
id: create_if_block_3.name,
|
|
11399
11400
|
type: "if",
|
|
11400
|
-
source: "(
|
|
11401
|
+
source: "(113:10) {#if bonus.type === 'freeRound'}",
|
|
11401
11402
|
ctx
|
|
11402
11403
|
});
|
|
11403
11404
|
|
|
11404
11405
|
return block;
|
|
11405
11406
|
}
|
|
11406
11407
|
|
|
11407
|
-
// (
|
|
11408
|
+
// (112:8) {#each bonusesList as bonus}
|
|
11408
11409
|
function create_each_block_1(ctx) {
|
|
11409
11410
|
let if_block_anchor;
|
|
11410
11411
|
|
|
11411
11412
|
function select_block_type_2(ctx, dirty) {
|
|
11412
|
-
if (/*bonus*/ ctx[
|
|
11413
|
+
if (/*bonus*/ ctx[36].type === "freeRound") return create_if_block_3;
|
|
11413
11414
|
return create_else_block_2;
|
|
11414
11415
|
}
|
|
11415
11416
|
|
|
@@ -11448,14 +11449,14 @@
|
|
|
11448
11449
|
block,
|
|
11449
11450
|
id: create_each_block_1.name,
|
|
11450
11451
|
type: "each",
|
|
11451
|
-
source: "(
|
|
11452
|
+
source: "(112:8) {#each bonusesList as bonus}",
|
|
11452
11453
|
ctx
|
|
11453
11454
|
});
|
|
11454
11455
|
|
|
11455
11456
|
return block;
|
|
11456
11457
|
}
|
|
11457
11458
|
|
|
11458
|
-
// (
|
|
11459
|
+
// (138:4) {#if bonusesList.length !== 0}
|
|
11459
11460
|
function create_if_block_1(ctx) {
|
|
11460
11461
|
let div;
|
|
11461
11462
|
let span0;
|
|
@@ -11476,7 +11477,7 @@
|
|
|
11476
11477
|
let span3_class_value;
|
|
11477
11478
|
let mounted;
|
|
11478
11479
|
let dispose;
|
|
11479
|
-
let each_value = Array(/*numberOfPages*/ ctx[
|
|
11480
|
+
let each_value = Array(/*numberOfPages*/ ctx[7]);
|
|
11480
11481
|
validate_each_argument(each_value);
|
|
11481
11482
|
let each_blocks = [];
|
|
11482
11483
|
|
|
@@ -11504,28 +11505,28 @@
|
|
|
11504
11505
|
t6 = space();
|
|
11505
11506
|
span3 = element("span");
|
|
11506
11507
|
t7 = text(">|");
|
|
11507
|
-
attr_dev(span0, "class", span0_class_value = "BonusesFirst " + (/*currentPage*/ ctx[
|
|
11508
|
-
add_location(span0, file,
|
|
11509
|
-
attr_dev(span1, "class", span1_class_value = "BonusesPrev " + (/*currentPage*/ ctx[
|
|
11510
|
-
add_location(span1, file,
|
|
11508
|
+
attr_dev(span0, "class", span0_class_value = "BonusesFirst " + (/*currentPage*/ ctx[8] === 0 ? "Inactive" : ""));
|
|
11509
|
+
add_location(span0, file, 139, 8, 5791);
|
|
11510
|
+
attr_dev(span1, "class", span1_class_value = "BonusesPrev " + (/*currentPage*/ ctx[8] === 0 ? "Inactive" : ""));
|
|
11511
|
+
add_location(span1, file, 140, 8, 5913);
|
|
11511
11512
|
|
|
11512
|
-
attr_dev(span2, "class", span2_class_value = "BonusesNext " + (/*currentPage*/ ctx[
|
|
11513
|
+
attr_dev(span2, "class", span2_class_value = "BonusesNext " + (/*currentPage*/ ctx[8] === /*numberOfPages*/ ctx[7] - 1
|
|
11513
11514
|
? "Inactive"
|
|
11514
11515
|
: ""));
|
|
11515
11516
|
|
|
11516
|
-
add_location(span2, file,
|
|
11517
|
+
add_location(span2, file, 144, 8, 6243);
|
|
11517
11518
|
|
|
11518
|
-
attr_dev(span3, "class", span3_class_value = "BonusesLast " + (/*currentPage*/ ctx[
|
|
11519
|
+
attr_dev(span3, "class", span3_class_value = "BonusesLast " + (/*currentPage*/ ctx[8] === /*numberOfPages*/ ctx[7] - 1
|
|
11519
11520
|
? "Inactive"
|
|
11520
11521
|
: ""));
|
|
11521
11522
|
|
|
11522
|
-
add_location(span3, file,
|
|
11523
|
+
add_location(span3, file, 145, 8, 6390);
|
|
11523
11524
|
|
|
11524
|
-
attr_dev(div, "class", "BonusesPaginationWrapper " + (/*isMobile*/ ctx[
|
|
11525
|
+
attr_dev(div, "class", "BonusesPaginationWrapper " + (/*isMobile*/ ctx[11]
|
|
11525
11526
|
? "BonusesPaginationWrapperMobile"
|
|
11526
11527
|
: ""));
|
|
11527
11528
|
|
|
11528
|
-
add_location(div, file,
|
|
11529
|
+
add_location(div, file, 138, 6, 5693);
|
|
11529
11530
|
},
|
|
11530
11531
|
m: function mount(target, anchor) {
|
|
11531
11532
|
insert_dev(target, div, anchor);
|
|
@@ -11549,26 +11550,26 @@
|
|
|
11549
11550
|
|
|
11550
11551
|
if (!mounted) {
|
|
11551
11552
|
dispose = [
|
|
11552
|
-
listen_dev(span0, "click", /*click_handler_2*/ ctx[
|
|
11553
|
-
listen_dev(span1, "click", /*click_handler_3*/ ctx[
|
|
11554
|
-
listen_dev(span2, "click", /*click_handler_5*/ ctx[
|
|
11555
|
-
listen_dev(span3, "click", /*click_handler_6*/ ctx[
|
|
11553
|
+
listen_dev(span0, "click", /*click_handler_2*/ ctx[22], false, false, false),
|
|
11554
|
+
listen_dev(span1, "click", /*click_handler_3*/ ctx[23], false, false, false),
|
|
11555
|
+
listen_dev(span2, "click", /*click_handler_5*/ ctx[25], false, false, false),
|
|
11556
|
+
listen_dev(span3, "click", /*click_handler_6*/ ctx[26], false, false, false)
|
|
11556
11557
|
];
|
|
11557
11558
|
|
|
11558
11559
|
mounted = true;
|
|
11559
11560
|
}
|
|
11560
11561
|
},
|
|
11561
11562
|
p: function update(ctx, dirty) {
|
|
11562
|
-
if (dirty[0] & /*currentPage*/
|
|
11563
|
+
if (dirty[0] & /*currentPage*/ 256 && span0_class_value !== (span0_class_value = "BonusesFirst " + (/*currentPage*/ ctx[8] === 0 ? "Inactive" : ""))) {
|
|
11563
11564
|
attr_dev(span0, "class", span0_class_value);
|
|
11564
11565
|
}
|
|
11565
11566
|
|
|
11566
|
-
if (dirty[0] & /*currentPage*/
|
|
11567
|
+
if (dirty[0] & /*currentPage*/ 256 && span1_class_value !== (span1_class_value = "BonusesPrev " + (/*currentPage*/ ctx[8] === 0 ? "Inactive" : ""))) {
|
|
11567
11568
|
attr_dev(span1, "class", span1_class_value);
|
|
11568
11569
|
}
|
|
11569
11570
|
|
|
11570
|
-
if (dirty[0] & /*currentPage, getBonuses, bonusesPerPage, numberOfPages*/
|
|
11571
|
-
each_value = Array(/*numberOfPages*/ ctx[
|
|
11571
|
+
if (dirty[0] & /*currentPage, getBonuses, bonusesPerPage, numberOfPages*/ 20864) {
|
|
11572
|
+
each_value = Array(/*numberOfPages*/ ctx[7]);
|
|
11572
11573
|
validate_each_argument(each_value);
|
|
11573
11574
|
let i;
|
|
11574
11575
|
|
|
@@ -11591,13 +11592,13 @@
|
|
|
11591
11592
|
each_blocks.length = each_value.length;
|
|
11592
11593
|
}
|
|
11593
11594
|
|
|
11594
|
-
if (dirty[0] & /*currentPage, numberOfPages*/
|
|
11595
|
+
if (dirty[0] & /*currentPage, numberOfPages*/ 384 && span2_class_value !== (span2_class_value = "BonusesNext " + (/*currentPage*/ ctx[8] === /*numberOfPages*/ ctx[7] - 1
|
|
11595
11596
|
? "Inactive"
|
|
11596
11597
|
: ""))) {
|
|
11597
11598
|
attr_dev(span2, "class", span2_class_value);
|
|
11598
11599
|
}
|
|
11599
11600
|
|
|
11600
|
-
if (dirty[0] & /*currentPage, numberOfPages*/
|
|
11601
|
+
if (dirty[0] & /*currentPage, numberOfPages*/ 384 && span3_class_value !== (span3_class_value = "BonusesLast " + (/*currentPage*/ ctx[8] === /*numberOfPages*/ ctx[7] - 1
|
|
11601
11602
|
? "Inactive"
|
|
11602
11603
|
: ""))) {
|
|
11603
11604
|
attr_dev(span3, "class", span3_class_value);
|
|
@@ -11615,24 +11616,24 @@
|
|
|
11615
11616
|
block,
|
|
11616
11617
|
id: create_if_block_1.name,
|
|
11617
11618
|
type: "if",
|
|
11618
|
-
source: "(
|
|
11619
|
+
source: "(138:4) {#if bonusesList.length !== 0}",
|
|
11619
11620
|
ctx
|
|
11620
11621
|
});
|
|
11621
11622
|
|
|
11622
11623
|
return block;
|
|
11623
11624
|
}
|
|
11624
11625
|
|
|
11625
|
-
// (
|
|
11626
|
+
// (142:8) {#each Array(numberOfPages) as _, i}
|
|
11626
11627
|
function create_each_block(ctx) {
|
|
11627
11628
|
let span;
|
|
11628
|
-
let t_value = /*i*/ ctx[
|
|
11629
|
+
let t_value = /*i*/ ctx[35] + 1 + "";
|
|
11629
11630
|
let t;
|
|
11630
11631
|
let span_class_value;
|
|
11631
11632
|
let mounted;
|
|
11632
11633
|
let dispose;
|
|
11633
11634
|
|
|
11634
11635
|
function click_handler_4() {
|
|
11635
|
-
return /*click_handler_4*/ ctx[
|
|
11636
|
+
return /*click_handler_4*/ ctx[24](/*i*/ ctx[35]);
|
|
11636
11637
|
}
|
|
11637
11638
|
|
|
11638
11639
|
const block = {
|
|
@@ -11640,11 +11641,11 @@
|
|
|
11640
11641
|
span = element("span");
|
|
11641
11642
|
t = text(t_value);
|
|
11642
11643
|
|
|
11643
|
-
attr_dev(span, "class", span_class_value = "BonusesPage " + (/*i*/ ctx[
|
|
11644
|
+
attr_dev(span, "class", span_class_value = "BonusesPage " + (/*i*/ ctx[35] === /*currentPage*/ ctx[8]
|
|
11644
11645
|
? "BonusPageActive"
|
|
11645
11646
|
: ""));
|
|
11646
11647
|
|
|
11647
|
-
add_location(span, file,
|
|
11648
|
+
add_location(span, file, 142, 10, 6089);
|
|
11648
11649
|
},
|
|
11649
11650
|
m: function mount(target, anchor) {
|
|
11650
11651
|
insert_dev(target, span, anchor);
|
|
@@ -11658,7 +11659,7 @@
|
|
|
11658
11659
|
p: function update(new_ctx, dirty) {
|
|
11659
11660
|
ctx = new_ctx;
|
|
11660
11661
|
|
|
11661
|
-
if (dirty[0] & /*currentPage*/
|
|
11662
|
+
if (dirty[0] & /*currentPage*/ 256 && span_class_value !== (span_class_value = "BonusesPage " + (/*i*/ ctx[35] === /*currentPage*/ ctx[8]
|
|
11662
11663
|
? "BonusPageActive"
|
|
11663
11664
|
: ""))) {
|
|
11664
11665
|
attr_dev(span, "class", span_class_value);
|
|
@@ -11675,7 +11676,7 @@
|
|
|
11675
11676
|
block,
|
|
11676
11677
|
id: create_each_block.name,
|
|
11677
11678
|
type: "each",
|
|
11678
|
-
source: "(
|
|
11679
|
+
source: "(142:8) {#each Array(numberOfPages) as _, i}",
|
|
11679
11680
|
ctx
|
|
11680
11681
|
});
|
|
11681
11682
|
|
|
@@ -11686,7 +11687,7 @@
|
|
|
11686
11687
|
let if_block_anchor;
|
|
11687
11688
|
|
|
11688
11689
|
function select_block_type(ctx, dirty) {
|
|
11689
|
-
if (/*isLoading*/ ctx[
|
|
11690
|
+
if (/*isLoading*/ ctx[10]) return create_if_block;
|
|
11690
11691
|
return create_else_block;
|
|
11691
11692
|
}
|
|
11692
11693
|
|
|
@@ -11737,9 +11738,14 @@
|
|
|
11737
11738
|
let isLoading = false;
|
|
11738
11739
|
let userAgent = window.navigator.userAgent;
|
|
11739
11740
|
let isMobile = getDevice(userAgent) === "PC" ? false : true;
|
|
11740
|
-
let
|
|
11741
|
-
let
|
|
11742
|
-
let
|
|
11741
|
+
let startCalendar;
|
|
11742
|
+
let endCalendar;
|
|
11743
|
+
let maxDate;
|
|
11744
|
+
let lastMonth;
|
|
11745
|
+
maxDate = moment(new Date()).format("YYYY-MM-DD");
|
|
11746
|
+
lastMonth = moment(new Date()).subtract(3, "months").format("YYYY-MM-DD");
|
|
11747
|
+
let bonusCalendarStartDate = lastMonth;
|
|
11748
|
+
let bonusCalendarEndDate = maxDate;
|
|
11743
11749
|
let bonusesPrevPage = 0;
|
|
11744
11750
|
let bonusesNextPage = 0;
|
|
11745
11751
|
let bonusesLastPage = 0;
|
|
@@ -11753,6 +11759,13 @@
|
|
|
11753
11759
|
};
|
|
11754
11760
|
|
|
11755
11761
|
const getBonuses = offset => {
|
|
11762
|
+
let url = new URL(`${endpoint}/player/${playerid}/bonusWallet`);
|
|
11763
|
+
let startDate = new Date(bonusCalendarStartDate).toISOString();
|
|
11764
|
+
let endDate = new Date(bonusCalendarEndDate).toISOString();
|
|
11765
|
+
let filter = `status=closed,status=forfeited,status=released,status=expired,type=standard,type=cashback,type=freeround,type=freebet,type=wagering,granted=[${startDate}~${endDate}]`;
|
|
11766
|
+
url.searchParams.append("filter", filter);
|
|
11767
|
+
url.searchParams.append("pagination", `offset=${offset},limit=${bonusesPerPage}`);
|
|
11768
|
+
|
|
11756
11769
|
let options = {
|
|
11757
11770
|
method: "GET",
|
|
11758
11771
|
headers: {
|
|
@@ -11761,25 +11774,21 @@
|
|
|
11761
11774
|
}
|
|
11762
11775
|
};
|
|
11763
11776
|
|
|
11764
|
-
|
|
11765
|
-
url.searchParams.append("filter", filter);
|
|
11766
|
-
url.searchParams.append("pagination", `offset=${offset},limit=${bonusesPerPage}`);
|
|
11767
|
-
|
|
11768
|
-
fetch(url, options).then(res => res.json()).then(
|
|
11777
|
+
fetch(url.href, options).then(res => res.json()).then(
|
|
11769
11778
|
data => {
|
|
11770
|
-
$$invalidate(
|
|
11779
|
+
$$invalidate(7, numberOfPages = Math.ceil(data.total / bonusesPerPage));
|
|
11771
11780
|
|
|
11772
11781
|
if (offset - bonusesPerPage >= 0) {
|
|
11773
|
-
$$invalidate(
|
|
11782
|
+
$$invalidate(4, bonusesPrevPage = offset - bonusesPerPage);
|
|
11774
11783
|
}
|
|
11775
11784
|
|
|
11776
11785
|
if (offset + bonusesPerPage < data.total) {
|
|
11777
|
-
$$invalidate(
|
|
11786
|
+
$$invalidate(5, bonusesNextPage = offset + bonusesPerPage);
|
|
11778
11787
|
}
|
|
11779
11788
|
|
|
11780
|
-
$$invalidate(
|
|
11781
|
-
$$invalidate(
|
|
11782
|
-
$$invalidate(
|
|
11789
|
+
$$invalidate(6, bonusesLastPage = (numberOfPages - 1) * bonusesPerPage);
|
|
11790
|
+
$$invalidate(8, currentPage = offset / bonusesPerPage);
|
|
11791
|
+
$$invalidate(9, bonusesList = data.items);
|
|
11783
11792
|
},
|
|
11784
11793
|
err => {
|
|
11785
11794
|
console.error(err);
|
|
@@ -11787,6 +11796,26 @@
|
|
|
11787
11796
|
);
|
|
11788
11797
|
};
|
|
11789
11798
|
|
|
11799
|
+
const startCalendarHandler = e => {
|
|
11800
|
+
bonusCalendarStartDate = e.target.value;
|
|
11801
|
+
};
|
|
11802
|
+
|
|
11803
|
+
const endCalendarHandler = e => {
|
|
11804
|
+
bonusCalendarEndDate = e.target.value;
|
|
11805
|
+
};
|
|
11806
|
+
|
|
11807
|
+
const setCalendarEventListener = () => {
|
|
11808
|
+
startCalendar.addEventListener("change", startCalendarHandler, false);
|
|
11809
|
+
endCalendar.addEventListener("change", endCalendarHandler, false);
|
|
11810
|
+
};
|
|
11811
|
+
|
|
11812
|
+
onMount(() => {
|
|
11813
|
+
return () => {
|
|
11814
|
+
startCalendar.removeEventListener("change", startCalendarHandler);
|
|
11815
|
+
endCalendar.removeEventListener("change", endCalendarHandler);
|
|
11816
|
+
};
|
|
11817
|
+
});
|
|
11818
|
+
|
|
11790
11819
|
const writable_props = ["endpoint", "session", "playerid"];
|
|
11791
11820
|
|
|
11792
11821
|
Object.keys($$props).forEach(key => {
|
|
@@ -11795,14 +11824,18 @@
|
|
|
11795
11824
|
|
|
11796
11825
|
const click_handler = () => toggleScreen();
|
|
11797
11826
|
|
|
11798
|
-
function
|
|
11799
|
-
|
|
11800
|
-
|
|
11827
|
+
function vaadin_date_picker0_binding($$value) {
|
|
11828
|
+
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
11829
|
+
startCalendar = $$value;
|
|
11830
|
+
$$invalidate(0, startCalendar);
|
|
11831
|
+
});
|
|
11801
11832
|
}
|
|
11802
11833
|
|
|
11803
|
-
function
|
|
11804
|
-
|
|
11805
|
-
|
|
11834
|
+
function vaadin_date_picker1_binding($$value) {
|
|
11835
|
+
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
11836
|
+
endCalendar = $$value;
|
|
11837
|
+
$$invalidate(1, endCalendar);
|
|
11838
|
+
});
|
|
11806
11839
|
}
|
|
11807
11840
|
|
|
11808
11841
|
const click_handler_1 = () => getBonuses(0);
|
|
@@ -11813,22 +11846,27 @@
|
|
|
11813
11846
|
const click_handler_6 = () => getBonuses(bonusesLastPage);
|
|
11814
11847
|
|
|
11815
11848
|
$$self.$$set = $$props => {
|
|
11816
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
11817
|
-
if ("session" in $$props) $$invalidate(
|
|
11818
|
-
if ("playerid" in $$props) $$invalidate(
|
|
11849
|
+
if ("endpoint" in $$props) $$invalidate(15, endpoint = $$props.endpoint);
|
|
11850
|
+
if ("session" in $$props) $$invalidate(16, session = $$props.session);
|
|
11851
|
+
if ("playerid" in $$props) $$invalidate(17, playerid = $$props.playerid);
|
|
11819
11852
|
};
|
|
11820
11853
|
|
|
11821
11854
|
$$self.$capture_state = () => ({
|
|
11855
|
+
onMount,
|
|
11822
11856
|
getDevice,
|
|
11857
|
+
moment,
|
|
11823
11858
|
endpoint,
|
|
11824
11859
|
session,
|
|
11825
11860
|
playerid,
|
|
11826
11861
|
isLoading,
|
|
11827
11862
|
userAgent,
|
|
11828
11863
|
isMobile,
|
|
11864
|
+
startCalendar,
|
|
11865
|
+
endCalendar,
|
|
11866
|
+
maxDate,
|
|
11867
|
+
lastMonth,
|
|
11829
11868
|
bonusCalendarStartDate,
|
|
11830
|
-
|
|
11831
|
-
filter,
|
|
11869
|
+
bonusCalendarEndDate,
|
|
11832
11870
|
bonusesPrevPage,
|
|
11833
11871
|
bonusesNextPage,
|
|
11834
11872
|
bonusesLastPage,
|
|
@@ -11837,26 +11875,32 @@
|
|
|
11837
11875
|
currentPage,
|
|
11838
11876
|
bonusesList,
|
|
11839
11877
|
toggleScreen,
|
|
11840
|
-
getBonuses
|
|
11878
|
+
getBonuses,
|
|
11879
|
+
startCalendarHandler,
|
|
11880
|
+
endCalendarHandler,
|
|
11881
|
+
setCalendarEventListener
|
|
11841
11882
|
});
|
|
11842
11883
|
|
|
11843
11884
|
$$self.$inject_state = $$props => {
|
|
11844
|
-
if ("endpoint" in $$props) $$invalidate(
|
|
11845
|
-
if ("session" in $$props) $$invalidate(
|
|
11846
|
-
if ("playerid" in $$props) $$invalidate(
|
|
11847
|
-
if ("isLoading" in $$props) $$invalidate(
|
|
11885
|
+
if ("endpoint" in $$props) $$invalidate(15, endpoint = $$props.endpoint);
|
|
11886
|
+
if ("session" in $$props) $$invalidate(16, session = $$props.session);
|
|
11887
|
+
if ("playerid" in $$props) $$invalidate(17, playerid = $$props.playerid);
|
|
11888
|
+
if ("isLoading" in $$props) $$invalidate(10, isLoading = $$props.isLoading);
|
|
11848
11889
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
11849
|
-
if ("isMobile" in $$props) $$invalidate(
|
|
11850
|
-
if ("
|
|
11851
|
-
if ("
|
|
11852
|
-
if ("
|
|
11853
|
-
if ("
|
|
11854
|
-
if ("
|
|
11855
|
-
if ("
|
|
11856
|
-
if ("
|
|
11857
|
-
if ("
|
|
11858
|
-
if ("
|
|
11859
|
-
if ("
|
|
11890
|
+
if ("isMobile" in $$props) $$invalidate(11, isMobile = $$props.isMobile);
|
|
11891
|
+
if ("startCalendar" in $$props) $$invalidate(0, startCalendar = $$props.startCalendar);
|
|
11892
|
+
if ("endCalendar" in $$props) $$invalidate(1, endCalendar = $$props.endCalendar);
|
|
11893
|
+
if ("maxDate" in $$props) $$invalidate(2, maxDate = $$props.maxDate);
|
|
11894
|
+
if ("lastMonth" in $$props) $$invalidate(3, lastMonth = $$props.lastMonth);
|
|
11895
|
+
if ("bonusCalendarStartDate" in $$props) bonusCalendarStartDate = $$props.bonusCalendarStartDate;
|
|
11896
|
+
if ("bonusCalendarEndDate" in $$props) bonusCalendarEndDate = $$props.bonusCalendarEndDate;
|
|
11897
|
+
if ("bonusesPrevPage" in $$props) $$invalidate(4, bonusesPrevPage = $$props.bonusesPrevPage);
|
|
11898
|
+
if ("bonusesNextPage" in $$props) $$invalidate(5, bonusesNextPage = $$props.bonusesNextPage);
|
|
11899
|
+
if ("bonusesLastPage" in $$props) $$invalidate(6, bonusesLastPage = $$props.bonusesLastPage);
|
|
11900
|
+
if ("numberOfPages" in $$props) $$invalidate(7, numberOfPages = $$props.numberOfPages);
|
|
11901
|
+
if ("bonusesPerPage" in $$props) $$invalidate(12, bonusesPerPage = $$props.bonusesPerPage);
|
|
11902
|
+
if ("currentPage" in $$props) $$invalidate(8, currentPage = $$props.currentPage);
|
|
11903
|
+
if ("bonusesList" in $$props) $$invalidate(9, bonusesList = $$props.bonusesList);
|
|
11860
11904
|
};
|
|
11861
11905
|
|
|
11862
11906
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -11864,14 +11908,20 @@
|
|
|
11864
11908
|
}
|
|
11865
11909
|
|
|
11866
11910
|
$$self.$$.update = () => {
|
|
11867
|
-
if ($$self.$$.dirty[0] & /*
|
|
11911
|
+
if ($$self.$$.dirty[0] & /*startCalendar, endCalendar*/ 3) {
|
|
11912
|
+
startCalendar && endCalendar && setCalendarEventListener();
|
|
11913
|
+
}
|
|
11914
|
+
|
|
11915
|
+
if ($$self.$$.dirty[0] & /*session, playerid, endpoint*/ 229376) {
|
|
11868
11916
|
session && playerid && endpoint && getBonuses(0);
|
|
11869
11917
|
}
|
|
11870
11918
|
};
|
|
11871
11919
|
|
|
11872
11920
|
return [
|
|
11873
|
-
|
|
11874
|
-
|
|
11921
|
+
startCalendar,
|
|
11922
|
+
endCalendar,
|
|
11923
|
+
maxDate,
|
|
11924
|
+
lastMonth,
|
|
11875
11925
|
bonusesPrevPage,
|
|
11876
11926
|
bonusesNextPage,
|
|
11877
11927
|
bonusesLastPage,
|
|
@@ -11887,8 +11937,8 @@
|
|
|
11887
11937
|
session,
|
|
11888
11938
|
playerid,
|
|
11889
11939
|
click_handler,
|
|
11890
|
-
|
|
11891
|
-
|
|
11940
|
+
vaadin_date_picker0_binding,
|
|
11941
|
+
vaadin_date_picker1_binding,
|
|
11892
11942
|
click_handler_1,
|
|
11893
11943
|
click_handler_2,
|
|
11894
11944
|
click_handler_3,
|
|
@@ -11901,7 +11951,7 @@
|
|
|
11901
11951
|
class PlayerBonusHistory extends SvelteElement {
|
|
11902
11952
|
constructor(options) {
|
|
11903
11953
|
super();
|
|
11904
|
-
this.shadowRoot.innerHTML = `<style>.BonusesWrapper{color:#07072A;padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:#D0046C;display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:#D0046C}.BonusesTitle{font-size:26px;color:#D0046C;font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusesCalendarContainer{display:flex;gap:20px;padding-bottom:30px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:column}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:#58586B;display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.
|
|
11954
|
+
this.shadowRoot.innerHTML = `<style>.BonusesWrapper{color:#07072A;padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:#D0046C;display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:#D0046C}.BonusesTitle{font-size:26px;color:#D0046C;font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusesCalendarContainer{display:flex;gap:20px;padding-bottom:30px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:column}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:#58586B;display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:14px;font-weight:300}.BonusesCalendarFilter{background:#D0046C;border:1px solid #D0046C;color:#fff;cursor:pointer;border-radius:5px;width:120px;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%}.BonusesCalendarFilter:active{background:#9e0352}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:#D0046C;font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:#D1D1D1;cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:#58586B;font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:#fff;font-weight:700}</style>`;
|
|
11905
11955
|
|
|
11906
11956
|
init(
|
|
11907
11957
|
this,
|
|
@@ -11913,7 +11963,7 @@
|
|
|
11913
11963
|
instance,
|
|
11914
11964
|
create_fragment,
|
|
11915
11965
|
safe_not_equal,
|
|
11916
|
-
{ endpoint:
|
|
11966
|
+
{ endpoint: 15, session: 16, playerid: 17 },
|
|
11917
11967
|
[-1, -1]
|
|
11918
11968
|
);
|
|
11919
11969
|
|
|
@@ -11934,7 +11984,7 @@
|
|
|
11934
11984
|
}
|
|
11935
11985
|
|
|
11936
11986
|
get endpoint() {
|
|
11937
|
-
return this.$$.ctx[
|
|
11987
|
+
return this.$$.ctx[15];
|
|
11938
11988
|
}
|
|
11939
11989
|
|
|
11940
11990
|
set endpoint(endpoint) {
|
|
@@ -11943,7 +11993,7 @@
|
|
|
11943
11993
|
}
|
|
11944
11994
|
|
|
11945
11995
|
get session() {
|
|
11946
|
-
return this.$$.ctx[
|
|
11996
|
+
return this.$$.ctx[16];
|
|
11947
11997
|
}
|
|
11948
11998
|
|
|
11949
11999
|
set session(session) {
|
|
@@ -11952,7 +12002,7 @@
|
|
|
11952
12002
|
}
|
|
11953
12003
|
|
|
11954
12004
|
get playerid() {
|
|
11955
|
-
return this.$$.ctx[
|
|
12005
|
+
return this.$$.ctx[17];
|
|
11956
12006
|
}
|
|
11957
12007
|
|
|
11958
12008
|
set playerid(playerid) {
|