@everymatrix/player-bonus-history 0.0.174 → 0.0.184

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.
@@ -37062,11 +37062,12 @@
37062
37062
 
37063
37063
  // (84:0) {:else}
37064
37064
  function create_else_block(ctx) {
37065
- let div4;
37065
+ let div5;
37066
37066
  let t0;
37067
37067
  let h2;
37068
37068
  let t1;
37069
37069
  let t2;
37070
+ let div3;
37070
37071
  let div2;
37071
37072
  let div0;
37072
37073
  let label0;
@@ -37081,7 +37082,7 @@
37081
37082
  let button;
37082
37083
  let t9;
37083
37084
  let t10;
37084
- let div3;
37085
+ let div4;
37085
37086
  let t11;
37086
37087
  let mounted;
37087
37088
  let dispose;
@@ -37098,12 +37099,13 @@
37098
37099
 
37099
37100
  const block = {
37100
37101
  c: function create() {
37101
- div4 = element("div");
37102
+ div5 = element("div");
37102
37103
  if (if_block0) if_block0.c();
37103
37104
  t0 = space();
37104
37105
  h2 = element("h2");
37105
37106
  t1 = text("Bonus History");
37106
37107
  t2 = space();
37108
+ div3 = element("div");
37107
37109
  div2 = element("div");
37108
37110
  div0 = element("div");
37109
37111
  label0 = element("label");
@@ -37120,53 +37122,58 @@
37120
37122
  button = element("button");
37121
37123
  t9 = text("Filter");
37122
37124
  t10 = space();
37123
- div3 = element("div");
37125
+ div4 = element("div");
37124
37126
  if_block1.c();
37125
37127
  t11 = space();
37126
37128
  if (if_block2) if_block2.c();
37127
37129
  attr_dev(h2, "class", "BonusesTitle " + (/*isMobile*/ ctx[11] ? "BonusesTitleNone" : ""));
37128
37130
  add_location(h2, file, 95, 4, 3670);
37129
37131
  attr_dev(label0, "for", "BonusCalendarStartDate");
37130
- add_location(label0, file, 99, 8, 3941);
37132
+ add_location(label0, file, 100, 10, 4033);
37131
37133
  set_custom_element_data(vaadin_date_picker0, "max", /*maxDate*/ ctx[2]);
37132
37134
  set_custom_element_data(vaadin_date_picker0, "value", /*lastMonth*/ ctx[3]);
37133
37135
  set_custom_element_data(vaadin_date_picker0, "placeholder", "From");
37134
- add_location(vaadin_date_picker0, file, 100, 8, 3999);
37136
+ set_custom_element_data(vaadin_date_picker0, "class", "VaadinDatePicker");
37137
+ add_location(vaadin_date_picker0, file, 101, 10, 4093);
37135
37138
  attr_dev(div0, "class", "BonusesCalendarStartDate " + (/*isMobile*/ ctx[11] ? "BonusesCalendarMobile" : ""));
37136
- add_location(div0, file, 98, 6, 3852);
37139
+ add_location(div0, file, 99, 8, 3942);
37137
37140
  attr_dev(label1, "for", "BonusesCalendarEndDate");
37138
- add_location(label1, file, 103, 8, 4224);
37141
+ add_location(label1, file, 104, 10, 4349);
37139
37142
  set_custom_element_data(vaadin_date_picker1, "max", /*maxDate*/ ctx[2]);
37140
37143
  set_custom_element_data(vaadin_date_picker1, "value", /*maxDate*/ ctx[2]);
37141
37144
  set_custom_element_data(vaadin_date_picker1, "placeholder", "To");
37142
- add_location(vaadin_date_picker1, file, 104, 8, 4280);
37145
+ set_custom_element_data(vaadin_date_picker1, "class", "VaadinDatePicker");
37146
+ add_location(vaadin_date_picker1, file, 105, 10, 4407);
37143
37147
  attr_dev(div1, "class", "BonusesCalendarEndDate " + (/*isMobile*/ ctx[11] ? "BonusesCalendarMobile" : ""));
37144
- add_location(div1, file, 102, 6, 4137);
37148
+ add_location(div1, file, 103, 8, 4260);
37145
37149
 
37146
- attr_dev(button, "class", "BonusesCalendarFilter " + (/*isMobile*/ ctx[11]
37147
- ? "BonusesCalendarFilterMobile"
37150
+ attr_dev(div2, "class", "BonusesCalendarContainer " + (/*isMobile*/ ctx[11]
37151
+ ? "BonusesCalendarContainerMobile"
37148
37152
  : ""));
37149
37153
 
37150
- add_location(button, file, 106, 6, 4412);
37154
+ add_location(div2, file, 98, 6, 3844);
37151
37155
 
37152
- attr_dev(div2, "class", "BonusesCalendarContainer " + (/*isMobile*/ ctx[11]
37153
- ? "BonusesCalendarContainerMobile"
37156
+ attr_dev(button, "class", "BonusesCalendarFilter " + (/*isMobile*/ ctx[11]
37157
+ ? "BonusesCalendarFilterMobile"
37154
37158
  : ""));
37155
37159
 
37156
- add_location(div2, file, 97, 4, 3756);
37157
- attr_dev(div3, "class", "BonusesGrid " + (/*isMobile*/ ctx[11] ? "BonusesGridMobile" : ""));
37158
- add_location(div3, file, 108, 4, 4560);
37159
- attr_dev(div4, "class", "BonusesWrapper " + (/*isMobile*/ ctx[11] ? "BonusesWrapperMobile" : ""));
37160
- add_location(div4, file, 84, 2, 3027);
37160
+ add_location(button, file, 108, 6, 4579);
37161
+ attr_dev(div3, "class", "BonusCalendarWrapper " + (/*isMobile*/ ctx[11] ? "BonusCalendarWrapperMobile" : ""));
37162
+ add_location(div3, file, 97, 4, 3756);
37163
+ attr_dev(div4, "class", "BonusesGrid " + (/*isMobile*/ ctx[11] ? "BonusesGridMobile" : ""));
37164
+ add_location(div4, file, 110, 4, 4727);
37165
+ attr_dev(div5, "class", "BonusesWrapper " + (/*isMobile*/ ctx[11] ? "BonusesWrapperMobile" : ""));
37166
+ add_location(div5, file, 84, 2, 3027);
37161
37167
  },
37162
37168
  m: function mount(target, anchor) {
37163
- insert_dev(target, div4, anchor);
37164
- if (if_block0) if_block0.m(div4, null);
37165
- append_dev(div4, t0);
37166
- append_dev(div4, h2);
37169
+ insert_dev(target, div5, anchor);
37170
+ if (if_block0) if_block0.m(div5, null);
37171
+ append_dev(div5, t0);
37172
+ append_dev(div5, h2);
37167
37173
  append_dev(h2, t1);
37168
- append_dev(div4, t2);
37169
- append_dev(div4, div2);
37174
+ append_dev(div5, t2);
37175
+ append_dev(div5, div3);
37176
+ append_dev(div3, div2);
37170
37177
  append_dev(div2, div0);
37171
37178
  append_dev(div0, label0);
37172
37179
  append_dev(div0, t4);
@@ -37178,14 +37185,14 @@
37178
37185
  append_dev(div1, t7);
37179
37186
  append_dev(div1, vaadin_date_picker1);
37180
37187
  /*vaadin_date_picker1_binding*/ ctx[20](vaadin_date_picker1);
37181
- append_dev(div2, t8);
37182
- append_dev(div2, button);
37188
+ append_dev(div3, t8);
37189
+ append_dev(div3, button);
37183
37190
  append_dev(button, t9);
37184
- append_dev(div4, t10);
37185
- append_dev(div4, div3);
37186
- if_block1.m(div3, null);
37187
- append_dev(div4, t11);
37188
- if (if_block2) if_block2.m(div4, null);
37191
+ append_dev(div5, t10);
37192
+ append_dev(div5, div4);
37193
+ if_block1.m(div4, null);
37194
+ append_dev(div5, t11);
37195
+ if (if_block2) if_block2.m(div5, null);
37189
37196
 
37190
37197
  if (!mounted) {
37191
37198
  dispose = listen_dev(button, "click", /*click_handler_1*/ ctx[21], false, false, false);
@@ -37219,7 +37226,7 @@
37219
37226
 
37220
37227
  if (if_block1) {
37221
37228
  if_block1.c();
37222
- if_block1.m(div3, null);
37229
+ if_block1.m(div4, null);
37223
37230
  }
37224
37231
  }
37225
37232
 
@@ -37229,7 +37236,7 @@
37229
37236
  } else {
37230
37237
  if_block2 = create_if_block_1(ctx);
37231
37238
  if_block2.c();
37232
- if_block2.m(div4, null);
37239
+ if_block2.m(div5, null);
37233
37240
  }
37234
37241
  } else if (if_block2) {
37235
37242
  if_block2.d(1);
@@ -37237,7 +37244,7 @@
37237
37244
  }
37238
37245
  },
37239
37246
  d: function destroy(detaching) {
37240
- if (detaching) detach_dev(div4);
37247
+ if (detaching) detach_dev(div5);
37241
37248
  if (if_block0) if_block0.d();
37242
37249
  /*vaadin_date_picker0_binding*/ ctx[19](null);
37243
37250
  /*vaadin_date_picker1_binding*/ ctx[20](null);
@@ -37373,7 +37380,7 @@
37373
37380
  return block;
37374
37381
  }
37375
37382
 
37376
- // (112:6) {:else}
37383
+ // (114:6) {:else}
37377
37384
  function create_else_block_1(ctx) {
37378
37385
  let each_1_anchor;
37379
37386
  let each_value_1 = /*bonusesList*/ ctx[9];
@@ -37434,14 +37441,14 @@
37434
37441
  block,
37435
37442
  id: create_else_block_1.name,
37436
37443
  type: "else",
37437
- source: "(112:6) {:else}",
37444
+ source: "(114:6) {:else}",
37438
37445
  ctx
37439
37446
  });
37440
37447
 
37441
37448
  return block;
37442
37449
  }
37443
37450
 
37444
- // (110:6) {#if bonusesList.length === 0}
37451
+ // (112:6) {#if bonusesList.length === 0}
37445
37452
  function create_if_block_2(ctx) {
37446
37453
  let p;
37447
37454
 
@@ -37449,7 +37456,7 @@
37449
37456
  c: function create() {
37450
37457
  p = element("p");
37451
37458
  p.textContent = "You have no bonuses at the moment.";
37452
- add_location(p, file, 110, 8, 4669);
37459
+ add_location(p, file, 112, 8, 4836);
37453
37460
  },
37454
37461
  m: function mount(target, anchor) {
37455
37462
  insert_dev(target, p, anchor);
@@ -37464,14 +37471,14 @@
37464
37471
  block,
37465
37472
  id: create_if_block_2.name,
37466
37473
  type: "if",
37467
- source: "(110:6) {#if bonusesList.length === 0}",
37474
+ source: "(112:6) {#if bonusesList.length === 0}",
37468
37475
  ctx
37469
37476
  });
37470
37477
 
37471
37478
  return block;
37472
37479
  }
37473
37480
 
37474
- // (123:10) {:else}
37481
+ // (125:10) {:else}
37475
37482
  function create_else_block_2(ctx) {
37476
37483
  let player_bonus_card;
37477
37484
  let player_bonus_card_bonuswalletid_value;
@@ -37496,7 +37503,7 @@
37496
37503
  set_custom_element_data(player_bonus_card, "bonuswageringamount", player_bonus_card_bonuswageringamount_value = /*bonus*/ ctx[36].totalWR);
37497
37504
  set_custom_element_data(player_bonus_card, "bonusremainingamount", player_bonus_card_bonusremainingamount_value = /*bonus*/ ctx[36].currentAmount);
37498
37505
  set_custom_element_data(player_bonus_card, "bonuscurrency", player_bonus_card_bonuscurrency_value = /*bonus*/ ctx[36].currency);
37499
- add_location(player_bonus_card, file, 123, 12, 5145);
37506
+ add_location(player_bonus_card, file, 125, 12, 5312);
37500
37507
  },
37501
37508
  m: function mount(target, anchor) {
37502
37509
  insert_dev(target, player_bonus_card, anchor);
@@ -37547,14 +37554,14 @@
37547
37554
  block,
37548
37555
  id: create_else_block_2.name,
37549
37556
  type: "else",
37550
- source: "(123:10) {:else}",
37557
+ source: "(125:10) {:else}",
37551
37558
  ctx
37552
37559
  });
37553
37560
 
37554
37561
  return block;
37555
37562
  }
37556
37563
 
37557
- // (114:10) {#if bonus.type === 'freeRound'}
37564
+ // (116:10) {#if bonus.type === 'freeRound'}
37558
37565
  function create_if_block_3(ctx) {
37559
37566
  let player_bonus_card;
37560
37567
  let player_bonus_card_bonuswalletid_value;
@@ -37573,7 +37580,7 @@
37573
37580
  set_custom_element_data(player_bonus_card, "bonusname", player_bonus_card_bonusname_value = /*bonus*/ ctx[36].name);
37574
37581
  set_custom_element_data(player_bonus_card, "bonustype", player_bonus_card_bonustype_value = /*bonus*/ ctx[36].type);
37575
37582
  set_custom_element_data(player_bonus_card, "bonuscurrency", player_bonus_card_bonuscurrency_value = /*bonus*/ ctx[36].currency);
37576
- add_location(player_bonus_card, file, 114, 12, 4817);
37583
+ add_location(player_bonus_card, file, 116, 12, 4984);
37577
37584
  },
37578
37585
  m: function mount(target, anchor) {
37579
37586
  insert_dev(target, player_bonus_card, anchor);
@@ -37612,14 +37619,14 @@
37612
37619
  block,
37613
37620
  id: create_if_block_3.name,
37614
37621
  type: "if",
37615
- source: "(114:10) {#if bonus.type === 'freeRound'}",
37622
+ source: "(116:10) {#if bonus.type === 'freeRound'}",
37616
37623
  ctx
37617
37624
  });
37618
37625
 
37619
37626
  return block;
37620
37627
  }
37621
37628
 
37622
- // (113:8) {#each bonusesList as bonus}
37629
+ // (115:8) {#each bonusesList as bonus}
37623
37630
  function create_each_block_1(ctx) {
37624
37631
  let if_block_anchor;
37625
37632
 
@@ -37663,14 +37670,14 @@
37663
37670
  block,
37664
37671
  id: create_each_block_1.name,
37665
37672
  type: "each",
37666
- source: "(113:8) {#each bonusesList as bonus}",
37673
+ source: "(115:8) {#each bonusesList as bonus}",
37667
37674
  ctx
37668
37675
  });
37669
37676
 
37670
37677
  return block;
37671
37678
  }
37672
37679
 
37673
- // (139:4) {#if bonusesList.length !== 0}
37680
+ // (141:4) {#if bonusesList.length !== 0}
37674
37681
  function create_if_block_1(ctx) {
37675
37682
  let div;
37676
37683
  let span0;
@@ -37720,27 +37727,27 @@
37720
37727
  span3 = element("span");
37721
37728
  t7 = text(">|");
37722
37729
  attr_dev(span0, "class", span0_class_value = "BonusesFirst " + (/*currentPage*/ ctx[8] === 0 ? "Inactive" : ""));
37723
- add_location(span0, file, 140, 8, 5792);
37730
+ add_location(span0, file, 142, 8, 5959);
37724
37731
  attr_dev(span1, "class", span1_class_value = "BonusesPrev " + (/*currentPage*/ ctx[8] === 0 ? "Inactive" : ""));
37725
- add_location(span1, file, 141, 8, 5914);
37732
+ add_location(span1, file, 143, 8, 6081);
37726
37733
 
37727
37734
  attr_dev(span2, "class", span2_class_value = "BonusesNext " + (/*currentPage*/ ctx[8] === /*numberOfPages*/ ctx[7] - 1
37728
37735
  ? "Inactive"
37729
37736
  : ""));
37730
37737
 
37731
- add_location(span2, file, 145, 8, 6244);
37738
+ add_location(span2, file, 147, 8, 6411);
37732
37739
 
37733
37740
  attr_dev(span3, "class", span3_class_value = "BonusesLast " + (/*currentPage*/ ctx[8] === /*numberOfPages*/ ctx[7] - 1
37734
37741
  ? "Inactive"
37735
37742
  : ""));
37736
37743
 
37737
- add_location(span3, file, 146, 8, 6391);
37744
+ add_location(span3, file, 148, 8, 6558);
37738
37745
 
37739
37746
  attr_dev(div, "class", "BonusesPaginationWrapper " + (/*isMobile*/ ctx[11]
37740
37747
  ? "BonusesPaginationWrapperMobile"
37741
37748
  : ""));
37742
37749
 
37743
- add_location(div, file, 139, 6, 5694);
37750
+ add_location(div, file, 141, 6, 5861);
37744
37751
  },
37745
37752
  m: function mount(target, anchor) {
37746
37753
  insert_dev(target, div, anchor);
@@ -37830,14 +37837,14 @@
37830
37837
  block,
37831
37838
  id: create_if_block_1.name,
37832
37839
  type: "if",
37833
- source: "(139:4) {#if bonusesList.length !== 0}",
37840
+ source: "(141:4) {#if bonusesList.length !== 0}",
37834
37841
  ctx
37835
37842
  });
37836
37843
 
37837
37844
  return block;
37838
37845
  }
37839
37846
 
37840
- // (143:8) {#each Array(numberOfPages) as _, i}
37847
+ // (145:8) {#each Array(numberOfPages) as _, i}
37841
37848
  function create_each_block(ctx) {
37842
37849
  let span;
37843
37850
  let t_value = /*i*/ ctx[35] + 1 + "";
@@ -37859,7 +37866,7 @@
37859
37866
  ? "BonusPageActive"
37860
37867
  : ""));
37861
37868
 
37862
- add_location(span, file, 143, 10, 6090);
37869
+ add_location(span, file, 145, 10, 6257);
37863
37870
  },
37864
37871
  m: function mount(target, anchor) {
37865
37872
  insert_dev(target, span, anchor);
@@ -37890,7 +37897,7 @@
37890
37897
  block,
37891
37898
  id: create_each_block.name,
37892
37899
  type: "each",
37893
- source: "(143:8) {#each Array(numberOfPages) as _, i}",
37900
+ source: "(145:8) {#each Array(numberOfPages) as _, i}",
37894
37901
  ctx
37895
37902
  });
37896
37903
 
@@ -38165,7 +38172,7 @@
38165
38172
  class PlayerBonusHistory extends SvelteElement {
38166
38173
  constructor(options) {
38167
38174
  super();
38168
- 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:10px}.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>`;
38175
+ 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:10px}.MenuReturnButton svg{fill:#D0046C}.BonusesTitle{font-size:26px;color:#D0046C;font-weight:400}.BonusesTitleMobile{font-size:16px}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.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;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%}.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:36px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.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>`;
38169
38176
 
38170
38177
  init(
38171
38178
  this,