@everymatrix/lottery-program-wof 1.23.1 → 1.24.0

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.
package/CHANGELOG.md CHANGED
@@ -3,4 +3,5 @@
3
3
 
4
4
  | Version | Release date | Impacted areas | Changes |
5
5
  | ------- | ------------ | ----------------------------- | --------------------------------------- |
6
+ | 1.23.1 | Thu Jan 04 2024 | lottery-program-wof | feat(FEW-282)(lottery-program-wof): add timeout for draw api |
6
7
  | 1.23.0 | Thu Dec 21 2023 | lottery-program-wof | feat(FEW-277)(lottery-program-wof): add condition to hide bonus |
@@ -10716,7 +10716,7 @@
10716
10716
  return child_ctx;
10717
10717
  }
10718
10718
 
10719
- // (100:10) {:else}
10719
+ // (101:10) {:else}
10720
10720
  function create_else_block(ctx) {
10721
10721
  let div;
10722
10722
  let p;
@@ -10728,9 +10728,9 @@
10728
10728
  div = element("div");
10729
10729
  p = element("p");
10730
10730
  t = text(t_value);
10731
- add_location(p, file, 101, 14, 3045);
10731
+ add_location(p, file, 102, 14, 3117);
10732
10732
  attr_dev(div, "class", "NoContent");
10733
- add_location(div, file, 100, 12, 3007);
10733
+ add_location(div, file, 101, 12, 3079);
10734
10734
  },
10735
10735
  m: function mount(target, anchor) {
10736
10736
  insert_dev(target, div, anchor);
@@ -10749,14 +10749,14 @@
10749
10749
  block,
10750
10750
  id: create_else_block.name,
10751
10751
  type: "else",
10752
- source: "(100:10) {:else}",
10752
+ source: "(101:10) {:else}",
10753
10753
  ctx
10754
10754
  });
10755
10755
 
10756
10756
  return block;
10757
10757
  }
10758
10758
 
10759
- // (90:10) {#if bonuses.length}
10759
+ // (91:10) {#if bonuses.length}
10760
10760
  function create_if_block_1(ctx) {
10761
10761
  let each_1_anchor;
10762
10762
  let each_value = /*bonuses*/ ctx[6];
@@ -10819,21 +10819,21 @@
10819
10819
  block,
10820
10820
  id: create_if_block_1.name,
10821
10821
  type: "if",
10822
- source: "(90:10) {#if bonuses.length}",
10822
+ source: "(91:10) {#if bonuses.length}",
10823
10823
  ctx
10824
10824
  });
10825
10825
 
10826
10826
  return block;
10827
10827
  }
10828
10828
 
10829
- // (87:8) {#if loading}
10829
+ // (88:8) {#if loading}
10830
10830
  function create_if_block(ctx) {
10831
10831
  let wof_loader;
10832
10832
 
10833
10833
  const block = {
10834
10834
  c: function create() {
10835
10835
  wof_loader = element("wof-loader");
10836
- add_location(wof_loader, file, 87, 10, 2621);
10836
+ add_location(wof_loader, file, 88, 10, 2693);
10837
10837
  },
10838
10838
  m: function mount(target, anchor) {
10839
10839
  insert_dev(target, wof_loader, anchor);
@@ -10848,14 +10848,14 @@
10848
10848
  block,
10849
10849
  id: create_if_block.name,
10850
10850
  type: "if",
10851
- source: "(87:8) {#if loading}",
10851
+ source: "(88:8) {#if loading}",
10852
10852
  ctx
10853
10853
  });
10854
10854
 
10855
10855
  return block;
10856
10856
  }
10857
10857
 
10858
- // (91:12) {#each bonuses as bonus}
10858
+ // (92:12) {#each bonuses as bonus}
10859
10859
  function create_each_block(ctx) {
10860
10860
  let lottery_program_wof_private_item;
10861
10861
 
@@ -10879,7 +10879,7 @@
10879
10879
  c: function create() {
10880
10880
  lottery_program_wof_private_item = element("lottery-program-wof-private-item");
10881
10881
  set_attributes(lottery_program_wof_private_item, lottery_program_wof_private_item_data);
10882
- add_location(lottery_program_wof_private_item, file, 91, 14, 2734);
10882
+ add_location(lottery_program_wof_private_item, file, 92, 14, 2806);
10883
10883
  },
10884
10884
  m: function mount(target, anchor) {
10885
10885
  insert_dev(target, lottery_program_wof_private_item, anchor);
@@ -10904,7 +10904,7 @@
10904
10904
  block,
10905
10905
  id: create_each_block.name,
10906
10906
  type: "each",
10907
- source: "(91:12) {#each bonuses as bonus}",
10907
+ source: "(92:12) {#each bonuses as bonus}",
10908
10908
  ctx
10909
10909
  });
10910
10910
 
@@ -10961,17 +10961,17 @@
10961
10961
  lottery_program_wof_private_outcomes = element("lottery-program-wof-private-outcomes");
10962
10962
  this.c = noop;
10963
10963
  attr_dev(div0, "class", "CommonContainer");
10964
- add_location(div0, file, 85, 6, 2559);
10964
+ add_location(div0, file, 86, 6, 2631);
10965
10965
  attr_dev(div1, "slot", "tab-Program");
10966
- add_location(div1, file, 84, 4, 2528);
10966
+ add_location(div1, file, 85, 4, 2600);
10967
10967
  set_attributes(lottery_program_wof_private_outcomes, lottery_program_wof_private_outcomes_data);
10968
- add_location(lottery_program_wof_private_outcomes, file, 108, 6, 3182);
10968
+ add_location(lottery_program_wof_private_outcomes, file, 109, 6, 3254);
10969
10969
  attr_dev(div2, "slot", "tab-History");
10970
- add_location(div2, file, 107, 4, 3151);
10970
+ add_location(div2, file, 108, 4, 3223);
10971
10971
  set_attributes(lottery_program_wof_private_tabs, lottery_program_wof_private_tabs_data);
10972
- add_location(lottery_program_wof_private_tabs, file, 83, 2, 2456);
10972
+ add_location(lottery_program_wof_private_tabs, file, 84, 2, 2528);
10973
10973
  attr_dev(div3, "class", "WofContainer");
10974
- add_location(div3, file, 82, 0, 2401);
10974
+ add_location(div3, file, 83, 0, 2473);
10975
10975
  },
10976
10976
  l: function claim(nodes) {
10977
10977
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -11081,6 +11081,12 @@
11081
11081
 
11082
11082
  const fetcher = async () => {
11083
11083
  $$invalidate(6, bonuses = await api.lotteries(endpoint, session));
11084
+
11085
+ _postMessage({
11086
+ type: 'WofStatus',
11087
+ avaliable: bonuses.length > 0
11088
+ });
11089
+
11084
11090
  _postMessage({ type: 'wof-private-bonuses', bonuses });
11085
11091
  };
11086
11092