@everymatrix/player-bonus-history 0.0.172 → 0.0.181

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.
@@ -10848,11 +10848,12 @@
10848
10848
 
10849
10849
  // (84:0) {:else}
10850
10850
  function create_else_block(ctx) {
10851
- let div4;
10851
+ let div5;
10852
10852
  let t0;
10853
10853
  let h2;
10854
10854
  let t1;
10855
10855
  let t2;
10856
+ let div3;
10856
10857
  let div2;
10857
10858
  let div0;
10858
10859
  let label0;
@@ -10867,7 +10868,7 @@
10867
10868
  let button;
10868
10869
  let t9;
10869
10870
  let t10;
10870
- let div3;
10871
+ let div4;
10871
10872
  let t11;
10872
10873
  let mounted;
10873
10874
  let dispose;
@@ -10884,12 +10885,13 @@
10884
10885
 
10885
10886
  const block = {
10886
10887
  c: function create() {
10887
- div4 = element("div");
10888
+ div5 = element("div");
10888
10889
  if (if_block0) if_block0.c();
10889
10890
  t0 = space();
10890
10891
  h2 = element("h2");
10891
10892
  t1 = text("Bonus History");
10892
10893
  t2 = space();
10894
+ div3 = element("div");
10893
10895
  div2 = element("div");
10894
10896
  div0 = element("div");
10895
10897
  label0 = element("label");
@@ -10906,53 +10908,58 @@
10906
10908
  button = element("button");
10907
10909
  t9 = text("Filter");
10908
10910
  t10 = space();
10909
- div3 = element("div");
10911
+ div4 = element("div");
10910
10912
  if_block1.c();
10911
10913
  t11 = space();
10912
10914
  if (if_block2) if_block2.c();
10913
10915
  attr_dev(h2, "class", "BonusesTitle " + (/*isMobile*/ ctx[11] ? "BonusesTitleNone" : ""));
10914
10916
  add_location(h2, file, 95, 4, 3670);
10915
10917
  attr_dev(label0, "for", "BonusCalendarStartDate");
10916
- add_location(label0, file, 99, 8, 3941);
10918
+ add_location(label0, file, 100, 10, 4033);
10917
10919
  set_custom_element_data(vaadin_date_picker0, "max", /*maxDate*/ ctx[2]);
10918
10920
  set_custom_element_data(vaadin_date_picker0, "value", /*lastMonth*/ ctx[3]);
10919
10921
  set_custom_element_data(vaadin_date_picker0, "placeholder", "From");
10920
- add_location(vaadin_date_picker0, file, 100, 8, 3999);
10922
+ set_custom_element_data(vaadin_date_picker0, "class", "VaadinDatePicker");
10923
+ add_location(vaadin_date_picker0, file, 101, 10, 4093);
10921
10924
  attr_dev(div0, "class", "BonusesCalendarStartDate " + (/*isMobile*/ ctx[11] ? "BonusesCalendarMobile" : ""));
10922
- add_location(div0, file, 98, 6, 3852);
10925
+ add_location(div0, file, 99, 8, 3942);
10923
10926
  attr_dev(label1, "for", "BonusesCalendarEndDate");
10924
- add_location(label1, file, 103, 8, 4224);
10927
+ add_location(label1, file, 104, 10, 4349);
10925
10928
  set_custom_element_data(vaadin_date_picker1, "max", /*maxDate*/ ctx[2]);
10926
10929
  set_custom_element_data(vaadin_date_picker1, "value", /*maxDate*/ ctx[2]);
10927
10930
  set_custom_element_data(vaadin_date_picker1, "placeholder", "To");
10928
- add_location(vaadin_date_picker1, file, 104, 8, 4280);
10931
+ set_custom_element_data(vaadin_date_picker1, "class", "VaadinDatePicker");
10932
+ add_location(vaadin_date_picker1, file, 105, 10, 4407);
10929
10933
  attr_dev(div1, "class", "BonusesCalendarEndDate " + (/*isMobile*/ ctx[11] ? "BonusesCalendarMobile" : ""));
10930
- add_location(div1, file, 102, 6, 4137);
10934
+ add_location(div1, file, 103, 8, 4260);
10931
10935
 
10932
- attr_dev(button, "class", "BonusesCalendarFilter " + (/*isMobile*/ ctx[11]
10933
- ? "BonusesCalendarFilterMobile"
10936
+ attr_dev(div2, "class", "BonusesCalendarContainer " + (/*isMobile*/ ctx[11]
10937
+ ? "BonusesCalendarContainerMobile"
10934
10938
  : ""));
10935
10939
 
10936
- add_location(button, file, 106, 6, 4412);
10940
+ add_location(div2, file, 98, 6, 3844);
10937
10941
 
10938
- attr_dev(div2, "class", "BonusesCalendarContainer " + (/*isMobile*/ ctx[11]
10939
- ? "BonusesCalendarContainerMobile"
10942
+ attr_dev(button, "class", "BonusesCalendarFilter " + (/*isMobile*/ ctx[11]
10943
+ ? "BonusesCalendarFilterMobile"
10940
10944
  : ""));
10941
10945
 
10942
- add_location(div2, file, 97, 4, 3756);
10943
- attr_dev(div3, "class", "BonusesGrid " + (/*isMobile*/ ctx[11] ? "BonusesGridMobile" : ""));
10944
- add_location(div3, file, 108, 4, 4560);
10945
- attr_dev(div4, "class", "BonusesWrapper " + (/*isMobile*/ ctx[11] ? "BonusesWrapperMobile" : ""));
10946
- add_location(div4, file, 84, 2, 3027);
10946
+ add_location(button, file, 108, 6, 4579);
10947
+ attr_dev(div3, "class", "BonusCalendarWrapper " + (/*isMobile*/ ctx[11] ? "BonusCalendarWrapperMobile" : ""));
10948
+ add_location(div3, file, 97, 4, 3756);
10949
+ attr_dev(div4, "class", "BonusesGrid " + (/*isMobile*/ ctx[11] ? "BonusesGridMobile" : ""));
10950
+ add_location(div4, file, 110, 4, 4727);
10951
+ attr_dev(div5, "class", "BonusesWrapper " + (/*isMobile*/ ctx[11] ? "BonusesWrapperMobile" : ""));
10952
+ add_location(div5, file, 84, 2, 3027);
10947
10953
  },
10948
10954
  m: function mount(target, anchor) {
10949
- insert_dev(target, div4, anchor);
10950
- if (if_block0) if_block0.m(div4, null);
10951
- append_dev(div4, t0);
10952
- append_dev(div4, h2);
10955
+ insert_dev(target, div5, anchor);
10956
+ if (if_block0) if_block0.m(div5, null);
10957
+ append_dev(div5, t0);
10958
+ append_dev(div5, h2);
10953
10959
  append_dev(h2, t1);
10954
- append_dev(div4, t2);
10955
- append_dev(div4, div2);
10960
+ append_dev(div5, t2);
10961
+ append_dev(div5, div3);
10962
+ append_dev(div3, div2);
10956
10963
  append_dev(div2, div0);
10957
10964
  append_dev(div0, label0);
10958
10965
  append_dev(div0, t4);
@@ -10964,14 +10971,14 @@
10964
10971
  append_dev(div1, t7);
10965
10972
  append_dev(div1, vaadin_date_picker1);
10966
10973
  /*vaadin_date_picker1_binding*/ ctx[20](vaadin_date_picker1);
10967
- append_dev(div2, t8);
10968
- append_dev(div2, button);
10974
+ append_dev(div3, t8);
10975
+ append_dev(div3, button);
10969
10976
  append_dev(button, t9);
10970
- append_dev(div4, t10);
10971
- append_dev(div4, div3);
10972
- if_block1.m(div3, null);
10973
- append_dev(div4, t11);
10974
- if (if_block2) if_block2.m(div4, null);
10977
+ append_dev(div5, t10);
10978
+ append_dev(div5, div4);
10979
+ if_block1.m(div4, null);
10980
+ append_dev(div5, t11);
10981
+ if (if_block2) if_block2.m(div5, null);
10975
10982
 
10976
10983
  if (!mounted) {
10977
10984
  dispose = listen_dev(button, "click", /*click_handler_1*/ ctx[21], false, false, false);
@@ -11005,7 +11012,7 @@
11005
11012
 
11006
11013
  if (if_block1) {
11007
11014
  if_block1.c();
11008
- if_block1.m(div3, null);
11015
+ if_block1.m(div4, null);
11009
11016
  }
11010
11017
  }
11011
11018
 
@@ -11015,7 +11022,7 @@
11015
11022
  } else {
11016
11023
  if_block2 = create_if_block_1(ctx);
11017
11024
  if_block2.c();
11018
- if_block2.m(div4, null);
11025
+ if_block2.m(div5, null);
11019
11026
  }
11020
11027
  } else if (if_block2) {
11021
11028
  if_block2.d(1);
@@ -11023,7 +11030,7 @@
11023
11030
  }
11024
11031
  },
11025
11032
  d: function destroy(detaching) {
11026
- if (detaching) detach_dev(div4);
11033
+ if (detaching) detach_dev(div5);
11027
11034
  if (if_block0) if_block0.d();
11028
11035
  /*vaadin_date_picker0_binding*/ ctx[19](null);
11029
11036
  /*vaadin_date_picker1_binding*/ ctx[20](null);
@@ -11159,7 +11166,7 @@
11159
11166
  return block;
11160
11167
  }
11161
11168
 
11162
- // (112:6) {:else}
11169
+ // (114:6) {:else}
11163
11170
  function create_else_block_1(ctx) {
11164
11171
  let each_1_anchor;
11165
11172
  let each_value_1 = /*bonusesList*/ ctx[9];
@@ -11220,14 +11227,14 @@
11220
11227
  block,
11221
11228
  id: create_else_block_1.name,
11222
11229
  type: "else",
11223
- source: "(112:6) {:else}",
11230
+ source: "(114:6) {:else}",
11224
11231
  ctx
11225
11232
  });
11226
11233
 
11227
11234
  return block;
11228
11235
  }
11229
11236
 
11230
- // (110:6) {#if bonusesList.length === 0}
11237
+ // (112:6) {#if bonusesList.length === 0}
11231
11238
  function create_if_block_2(ctx) {
11232
11239
  let p;
11233
11240
 
@@ -11235,7 +11242,7 @@
11235
11242
  c: function create() {
11236
11243
  p = element("p");
11237
11244
  p.textContent = "You have no bonuses at the moment.";
11238
- add_location(p, file, 110, 8, 4669);
11245
+ add_location(p, file, 112, 8, 4836);
11239
11246
  },
11240
11247
  m: function mount(target, anchor) {
11241
11248
  insert_dev(target, p, anchor);
@@ -11250,14 +11257,14 @@
11250
11257
  block,
11251
11258
  id: create_if_block_2.name,
11252
11259
  type: "if",
11253
- source: "(110:6) {#if bonusesList.length === 0}",
11260
+ source: "(112:6) {#if bonusesList.length === 0}",
11254
11261
  ctx
11255
11262
  });
11256
11263
 
11257
11264
  return block;
11258
11265
  }
11259
11266
 
11260
- // (123:10) {:else}
11267
+ // (125:10) {:else}
11261
11268
  function create_else_block_2(ctx) {
11262
11269
  let player_bonus_card;
11263
11270
  let player_bonus_card_bonuswalletid_value;
@@ -11282,7 +11289,7 @@
11282
11289
  set_custom_element_data(player_bonus_card, "bonuswageringamount", player_bonus_card_bonuswageringamount_value = /*bonus*/ ctx[36].totalWR);
11283
11290
  set_custom_element_data(player_bonus_card, "bonusremainingamount", player_bonus_card_bonusremainingamount_value = /*bonus*/ ctx[36].currentAmount);
11284
11291
  set_custom_element_data(player_bonus_card, "bonuscurrency", player_bonus_card_bonuscurrency_value = /*bonus*/ ctx[36].currency);
11285
- add_location(player_bonus_card, file, 123, 12, 5145);
11292
+ add_location(player_bonus_card, file, 125, 12, 5312);
11286
11293
  },
11287
11294
  m: function mount(target, anchor) {
11288
11295
  insert_dev(target, player_bonus_card, anchor);
@@ -11333,14 +11340,14 @@
11333
11340
  block,
11334
11341
  id: create_else_block_2.name,
11335
11342
  type: "else",
11336
- source: "(123:10) {:else}",
11343
+ source: "(125:10) {:else}",
11337
11344
  ctx
11338
11345
  });
11339
11346
 
11340
11347
  return block;
11341
11348
  }
11342
11349
 
11343
- // (114:10) {#if bonus.type === 'freeRound'}
11350
+ // (116:10) {#if bonus.type === 'freeRound'}
11344
11351
  function create_if_block_3(ctx) {
11345
11352
  let player_bonus_card;
11346
11353
  let player_bonus_card_bonuswalletid_value;
@@ -11359,7 +11366,7 @@
11359
11366
  set_custom_element_data(player_bonus_card, "bonusname", player_bonus_card_bonusname_value = /*bonus*/ ctx[36].name);
11360
11367
  set_custom_element_data(player_bonus_card, "bonustype", player_bonus_card_bonustype_value = /*bonus*/ ctx[36].type);
11361
11368
  set_custom_element_data(player_bonus_card, "bonuscurrency", player_bonus_card_bonuscurrency_value = /*bonus*/ ctx[36].currency);
11362
- add_location(player_bonus_card, file, 114, 12, 4817);
11369
+ add_location(player_bonus_card, file, 116, 12, 4984);
11363
11370
  },
11364
11371
  m: function mount(target, anchor) {
11365
11372
  insert_dev(target, player_bonus_card, anchor);
@@ -11398,14 +11405,14 @@
11398
11405
  block,
11399
11406
  id: create_if_block_3.name,
11400
11407
  type: "if",
11401
- source: "(114:10) {#if bonus.type === 'freeRound'}",
11408
+ source: "(116:10) {#if bonus.type === 'freeRound'}",
11402
11409
  ctx
11403
11410
  });
11404
11411
 
11405
11412
  return block;
11406
11413
  }
11407
11414
 
11408
- // (113:8) {#each bonusesList as bonus}
11415
+ // (115:8) {#each bonusesList as bonus}
11409
11416
  function create_each_block_1(ctx) {
11410
11417
  let if_block_anchor;
11411
11418
 
@@ -11449,14 +11456,14 @@
11449
11456
  block,
11450
11457
  id: create_each_block_1.name,
11451
11458
  type: "each",
11452
- source: "(113:8) {#each bonusesList as bonus}",
11459
+ source: "(115:8) {#each bonusesList as bonus}",
11453
11460
  ctx
11454
11461
  });
11455
11462
 
11456
11463
  return block;
11457
11464
  }
11458
11465
 
11459
- // (139:4) {#if bonusesList.length !== 0}
11466
+ // (141:4) {#if bonusesList.length !== 0}
11460
11467
  function create_if_block_1(ctx) {
11461
11468
  let div;
11462
11469
  let span0;
@@ -11506,27 +11513,27 @@
11506
11513
  span3 = element("span");
11507
11514
  t7 = text(">|");
11508
11515
  attr_dev(span0, "class", span0_class_value = "BonusesFirst " + (/*currentPage*/ ctx[8] === 0 ? "Inactive" : ""));
11509
- add_location(span0, file, 140, 8, 5792);
11516
+ add_location(span0, file, 142, 8, 5959);
11510
11517
  attr_dev(span1, "class", span1_class_value = "BonusesPrev " + (/*currentPage*/ ctx[8] === 0 ? "Inactive" : ""));
11511
- add_location(span1, file, 141, 8, 5914);
11518
+ add_location(span1, file, 143, 8, 6081);
11512
11519
 
11513
11520
  attr_dev(span2, "class", span2_class_value = "BonusesNext " + (/*currentPage*/ ctx[8] === /*numberOfPages*/ ctx[7] - 1
11514
11521
  ? "Inactive"
11515
11522
  : ""));
11516
11523
 
11517
- add_location(span2, file, 145, 8, 6244);
11524
+ add_location(span2, file, 147, 8, 6411);
11518
11525
 
11519
11526
  attr_dev(span3, "class", span3_class_value = "BonusesLast " + (/*currentPage*/ ctx[8] === /*numberOfPages*/ ctx[7] - 1
11520
11527
  ? "Inactive"
11521
11528
  : ""));
11522
11529
 
11523
- add_location(span3, file, 146, 8, 6391);
11530
+ add_location(span3, file, 148, 8, 6558);
11524
11531
 
11525
11532
  attr_dev(div, "class", "BonusesPaginationWrapper " + (/*isMobile*/ ctx[11]
11526
11533
  ? "BonusesPaginationWrapperMobile"
11527
11534
  : ""));
11528
11535
 
11529
- add_location(div, file, 139, 6, 5694);
11536
+ add_location(div, file, 141, 6, 5861);
11530
11537
  },
11531
11538
  m: function mount(target, anchor) {
11532
11539
  insert_dev(target, div, anchor);
@@ -11616,14 +11623,14 @@
11616
11623
  block,
11617
11624
  id: create_if_block_1.name,
11618
11625
  type: "if",
11619
- source: "(139:4) {#if bonusesList.length !== 0}",
11626
+ source: "(141:4) {#if bonusesList.length !== 0}",
11620
11627
  ctx
11621
11628
  });
11622
11629
 
11623
11630
  return block;
11624
11631
  }
11625
11632
 
11626
- // (143:8) {#each Array(numberOfPages) as _, i}
11633
+ // (145:8) {#each Array(numberOfPages) as _, i}
11627
11634
  function create_each_block(ctx) {
11628
11635
  let span;
11629
11636
  let t_value = /*i*/ ctx[35] + 1 + "";
@@ -11645,7 +11652,7 @@
11645
11652
  ? "BonusPageActive"
11646
11653
  : ""));
11647
11654
 
11648
- add_location(span, file, 143, 10, 6090);
11655
+ add_location(span, file, 145, 10, 6257);
11649
11656
  },
11650
11657
  m: function mount(target, anchor) {
11651
11658
  insert_dev(target, span, anchor);
@@ -11676,7 +11683,7 @@
11676
11683
  block,
11677
11684
  id: create_each_block.name,
11678
11685
  type: "each",
11679
- source: "(143:8) {#each Array(numberOfPages) as _, i}",
11686
+ source: "(145:8) {#each Array(numberOfPages) as _, i}",
11680
11687
  ctx
11681
11688
  });
11682
11689
 
@@ -11951,7 +11958,7 @@
11951
11958
  class PlayerBonusHistory extends SvelteElement {
11952
11959
  constructor(options) {
11953
11960
  super();
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: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>`;
11961
+ 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>`;
11955
11962
 
11956
11963
  init(
11957
11964
  this,