@everymatrix/casino-categories-providers 0.0.345 → 0.0.347

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.
@@ -75,6 +75,9 @@
75
75
  function space() {
76
76
  return text(' ');
77
77
  }
78
+ function empty() {
79
+ return text('');
80
+ }
78
81
  function listen(node, event, handler, options) {
79
82
  node.addEventListener(event, handler, options);
80
83
  return () => node.removeEventListener(event, handler, options);
@@ -4562,8 +4565,8 @@
4562
4565
  },
4563
4566
  de: {
4564
4567
  Translations: {
4565
- categories: "Categories",
4566
- providers: "Suppliers",
4568
+ categories: "Kategorien",
4569
+ providers: "Anbieter",
4567
4570
  },
4568
4571
  },
4569
4572
  it: {
@@ -4598,8 +4601,8 @@
4598
4601
  },
4599
4602
  ro: {
4600
4603
  Translations: {
4601
- categories: "Categories",
4602
- providers: "Suppliers",
4604
+ categories: "Categorii",
4605
+ providers: "Furnizori",
4603
4606
  },
4604
4607
  },
4605
4608
  hr: {
@@ -4659,10 +4662,10 @@
4659
4662
  },
4660
4663
  de: {
4661
4664
  Translations: {
4662
- topCategories: "Top Categories",
4663
- otherCategories: "Other Categories",
4664
- loading: "Loading, please wait...",
4665
- games: "games",
4665
+ topCategories: "Top Kategorien",
4666
+ otherCategories: "Weitere Kategorien",
4667
+ loading: "Es lädt, bitte warten...",
4668
+ games: "Spiele",
4666
4669
  },
4667
4670
  },
4668
4671
  it: {
@@ -4707,10 +4710,10 @@
4707
4710
  },
4708
4711
  ro: {
4709
4712
  Translations: {
4710
- topCategories: "Top Categories",
4711
- otherCategories: "Other Categories",
4712
- loading: "Loading, please wait...",
4713
- games: "games",
4713
+ topCategories: "Categorii de top",
4714
+ otherCategories: "Alte categorii",
4715
+ loading: "Se incarca, te rugam asteapta…",
4716
+ games: "jocuri",
4714
4717
  },
4715
4718
  },
4716
4719
  hr: {
@@ -4774,14 +4777,14 @@
4774
4777
  return child_ctx;
4775
4778
  }
4776
4779
 
4777
- function get_each_context_1(ctx, list, i) {
4780
+ function get_each_context_1$1(ctx, list, i) {
4778
4781
  const child_ctx = ctx.slice();
4779
4782
  child_ctx[21] = list[i];
4780
4783
  return child_ctx;
4781
4784
  }
4782
4785
 
4783
4786
  // (65:2) {:else}
4784
- function create_else_block(ctx) {
4787
+ function create_else_block$1(ctx) {
4785
4788
  let div;
4786
4789
  let h40;
4787
4790
  let t0_value = /*$_*/ ctx[5]('Translations.topCategories') + "";
@@ -4797,7 +4800,7 @@
4797
4800
  let each_blocks_1 = [];
4798
4801
 
4799
4802
  for (let i = 0; i < each_value_1.length; i += 1) {
4800
- each_blocks_1[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
4803
+ each_blocks_1[i] = create_each_block_1$1(get_each_context_1$1(ctx, each_value_1, i));
4801
4804
  }
4802
4805
 
4803
4806
  let each_value = /*otherCategories*/ ctx[4];
@@ -4863,12 +4866,12 @@
4863
4866
  let i;
4864
4867
 
4865
4868
  for (i = 0; i < each_value_1.length; i += 1) {
4866
- const child_ctx = get_each_context_1(ctx, each_value_1, i);
4869
+ const child_ctx = get_each_context_1$1(ctx, each_value_1, i);
4867
4870
 
4868
4871
  if (each_blocks_1[i]) {
4869
4872
  each_blocks_1[i].p(child_ctx, dirty);
4870
4873
  } else {
4871
- each_blocks_1[i] = create_each_block_1(child_ctx);
4874
+ each_blocks_1[i] = create_each_block_1$1(child_ctx);
4872
4875
  each_blocks_1[i].c();
4873
4876
  each_blocks_1[i].m(div, t2);
4874
4877
  }
@@ -4916,7 +4919,7 @@
4916
4919
 
4917
4920
  dispatch_dev("SvelteRegisterBlock", {
4918
4921
  block,
4919
- id: create_else_block.name,
4922
+ id: create_else_block$1.name,
4920
4923
  type: "else",
4921
4924
  source: "(65:2) {:else}",
4922
4925
  ctx
@@ -4926,7 +4929,7 @@
4926
4929
  }
4927
4930
 
4928
4931
  // (63:2) {#if isLoading}
4929
- function create_if_block(ctx) {
4932
+ function create_if_block$1(ctx) {
4930
4933
  let p;
4931
4934
 
4932
4935
  const block = {
@@ -4947,7 +4950,7 @@
4947
4950
 
4948
4951
  dispatch_dev("SvelteRegisterBlock", {
4949
4952
  block,
4950
- id: create_if_block.name,
4953
+ id: create_if_block$1.name,
4951
4954
  type: "if",
4952
4955
  source: "(63:2) {#if isLoading}",
4953
4956
  ctx
@@ -4957,7 +4960,7 @@
4957
4960
  }
4958
4961
 
4959
4962
  // (68:4) {#each topCategories as category}
4960
- function create_each_block_1(ctx) {
4963
+ function create_each_block_1$1(ctx) {
4961
4964
  let div1;
4962
4965
  let img;
4963
4966
  let img_src_value;
@@ -5058,7 +5061,7 @@
5058
5061
 
5059
5062
  dispatch_dev("SvelteRegisterBlock", {
5060
5063
  block,
5061
- id: create_each_block_1.name,
5064
+ id: create_each_block_1$1.name,
5062
5065
  type: "each",
5063
5066
  source: "(68:4) {#each topCategories as category}",
5064
5067
  ctx
@@ -5185,8 +5188,8 @@
5185
5188
  let div;
5186
5189
 
5187
5190
  function select_block_type(ctx, dirty) {
5188
- if (/*isLoading*/ ctx[2]) return create_if_block;
5189
- return create_else_block;
5191
+ if (/*isLoading*/ ctx[2]) return create_if_block$1;
5192
+ return create_else_block$1;
5190
5193
  }
5191
5194
 
5192
5195
  let current_block_type = select_block_type(ctx);
@@ -5539,20 +5542,23 @@
5539
5542
  Translations: {
5540
5543
  popularProviders: "Popular Suppliers",
5541
5544
  otherProviders: "Other Suppliers",
5545
+ loading: "Loading, please wait...",
5542
5546
  games: "games",
5543
5547
  },
5544
5548
  },
5545
5549
  de: {
5546
5550
  Translations: {
5547
- popularProviders: "Popular Suppliers",
5548
- otherProviders: "Other Suppliers",
5549
- games: "games",
5551
+ popularProviders: "Beliebte Anbieter",
5552
+ otherProviders: "Weitere Anbieter",
5553
+ loading: "Es lädt, bitte warten...",
5554
+ games: "Spiele",
5550
5555
  },
5551
5556
  },
5552
5557
  it: {
5553
5558
  Translations: {
5554
5559
  popularProviders: "Popular Suppliers",
5555
5560
  otherProviders: "Other Suppliers",
5561
+ loading: "Loading, please wait",
5556
5562
  games: "games",
5557
5563
  },
5558
5564
  },
@@ -5560,6 +5566,7 @@
5560
5566
  Translations: {
5561
5567
  popularProviders: "Popular Suppliers",
5562
5568
  otherProviders: "Other Suppliers",
5569
+ loading: "Loading, please wait",
5563
5570
  games: "games",
5564
5571
  },
5565
5572
  },
@@ -5567,6 +5574,7 @@
5567
5574
  Translations: {
5568
5575
  popularProviders: "Popular Suppliers",
5569
5576
  otherProviders: "Other Suppliers",
5577
+ loading: "Loading, please wait",
5570
5578
  games: "games",
5571
5579
  },
5572
5580
  },
@@ -5574,6 +5582,7 @@
5574
5582
  Translations: {
5575
5583
  popularProviders: "Popular Suppliers",
5576
5584
  otherProviders: "Other Suppliers",
5585
+ loading: "Loading, please wait",
5577
5586
  games: "games",
5578
5587
  },
5579
5588
  },
@@ -5581,20 +5590,23 @@
5581
5590
  Translations: {
5582
5591
  popularProviders: "Popular Suppliers",
5583
5592
  otherProviders: "Other Suppliers",
5593
+ loading: "Loading, please wait",
5584
5594
  games: "games",
5585
5595
  },
5586
5596
  },
5587
5597
  ro: {
5588
5598
  Translations: {
5589
- popularProviders: "Popular Suppliers",
5590
- otherProviders: "Other Suppliers",
5591
- games: "games",
5599
+ popularProviders: "Furnizori de top",
5600
+ otherProviders: "Alti furnizori",
5601
+ loading: "Se incarca, te rugam asteapta…",
5602
+ games: "jocuri",
5592
5603
  },
5593
5604
  },
5594
5605
  hr: {
5595
5606
  Translations: {
5596
5607
  popularProviders: "Popular Suppliers",
5597
5608
  otherProviders: "Other Suppliers",
5609
+ loading: "Loading, please wait",
5598
5610
  games: "games",
5599
5611
  },
5600
5612
  },
@@ -5602,6 +5614,7 @@
5602
5614
  Translations: {
5603
5615
  popularProviders: "Popular Suppliers",
5604
5616
  otherProviders: "Other Suppliers",
5617
+ loading: "Loading, please wait",
5605
5618
  games: "games",
5606
5619
  },
5607
5620
  },
@@ -5609,6 +5622,7 @@
5609
5622
  Translations: {
5610
5623
  popularProviders: "Popular Suppliers",
5611
5624
  otherProviders: "Other Suppliers",
5625
+ loading: "Loading, please wait",
5612
5626
  games: "games",
5613
5627
  },
5614
5628
  },
@@ -5616,6 +5630,7 @@
5616
5630
  Translations: {
5617
5631
  popularProviders: "Popular Suppliers",
5618
5632
  otherProviders: "Other Suppliers",
5633
+ loading: "Loading, please wait",
5619
5634
  games: "games",
5620
5635
  },
5621
5636
  },
@@ -5623,6 +5638,7 @@
5623
5638
  Translations: {
5624
5639
  popularProviders: "Popular Suppliers",
5625
5640
  otherProviders: "Other Suppliers",
5641
+ loading: "Loading, please wait",
5626
5642
  games: "games",
5627
5643
  },
5628
5644
  },
@@ -5630,6 +5646,7 @@
5630
5646
  Translations: {
5631
5647
  popularProviders: "Popular Suppliers",
5632
5648
  otherProviders: "Other Suppliers",
5649
+ loading: "Loading, please wait",
5633
5650
  games: "games",
5634
5651
  },
5635
5652
  },
@@ -5650,11 +5667,302 @@
5650
5667
 
5651
5668
  function get_each_context(ctx, list, i) {
5652
5669
  const child_ctx = ctx.slice();
5653
- child_ctx[15] = list[i];
5670
+ child_ctx[20] = list[i];
5654
5671
  return child_ctx;
5655
5672
  }
5656
5673
 
5657
- // (59:2) {#each providers as provider}
5674
+ function get_each_context_1(ctx, list, i) {
5675
+ const child_ctx = ctx.slice();
5676
+ child_ctx[20] = list[i];
5677
+ return child_ctx;
5678
+ }
5679
+
5680
+ // (71:4) {:else}
5681
+ function create_else_block(ctx) {
5682
+ let h40;
5683
+ let t0_value = /*$_*/ ctx[4]('Translations.popularProviders') + "";
5684
+ let t0;
5685
+ let t1;
5686
+ let t2;
5687
+ let h41;
5688
+ let t3_value = /*$_*/ ctx[4]('Translations.otherProviders') + "";
5689
+ let t3;
5690
+ let t4;
5691
+ let each1_anchor;
5692
+ let each_value_1 = /*topProviders*/ ctx[0];
5693
+ validate_each_argument(each_value_1);
5694
+ let each_blocks_1 = [];
5695
+
5696
+ for (let i = 0; i < each_value_1.length; i += 1) {
5697
+ each_blocks_1[i] = create_each_block_1(get_each_context_1(ctx, each_value_1, i));
5698
+ }
5699
+
5700
+ let each_value = /*otherProviders*/ ctx[1];
5701
+ validate_each_argument(each_value);
5702
+ let each_blocks = [];
5703
+
5704
+ for (let i = 0; i < each_value.length; i += 1) {
5705
+ each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
5706
+ }
5707
+
5708
+ const block = {
5709
+ c: function create() {
5710
+ h40 = element("h4");
5711
+ t0 = text(t0_value);
5712
+ t1 = space();
5713
+
5714
+ for (let i = 0; i < each_blocks_1.length; i += 1) {
5715
+ each_blocks_1[i].c();
5716
+ }
5717
+
5718
+ t2 = space();
5719
+ h41 = element("h4");
5720
+ t3 = text(t3_value);
5721
+ t4 = space();
5722
+
5723
+ for (let i = 0; i < each_blocks.length; i += 1) {
5724
+ each_blocks[i].c();
5725
+ }
5726
+
5727
+ each1_anchor = empty();
5728
+ attr_dev(h40, "class", "ProviderTitle");
5729
+ add_location(h40, file$1, 71, 4, 2593);
5730
+ attr_dev(h41, "class", "ProviderTitle");
5731
+ add_location(h41, file$1, 81, 6, 3083);
5732
+ },
5733
+ m: function mount(target, anchor) {
5734
+ insert_dev(target, h40, anchor);
5735
+ append_dev(h40, t0);
5736
+ insert_dev(target, t1, anchor);
5737
+
5738
+ for (let i = 0; i < each_blocks_1.length; i += 1) {
5739
+ each_blocks_1[i].m(target, anchor);
5740
+ }
5741
+
5742
+ insert_dev(target, t2, anchor);
5743
+ insert_dev(target, h41, anchor);
5744
+ append_dev(h41, t3);
5745
+ insert_dev(target, t4, anchor);
5746
+
5747
+ for (let i = 0; i < each_blocks.length; i += 1) {
5748
+ each_blocks[i].m(target, anchor);
5749
+ }
5750
+
5751
+ insert_dev(target, each1_anchor, anchor);
5752
+ },
5753
+ p: function update(ctx, dirty) {
5754
+ if (dirty & /*$_*/ 16 && t0_value !== (t0_value = /*$_*/ ctx[4]('Translations.popularProviders') + "")) set_data_dev(t0, t0_value);
5755
+
5756
+ if (dirty & /*openGameProviderPage, topProviders, $_*/ 49) {
5757
+ each_value_1 = /*topProviders*/ ctx[0];
5758
+ validate_each_argument(each_value_1);
5759
+ let i;
5760
+
5761
+ for (i = 0; i < each_value_1.length; i += 1) {
5762
+ const child_ctx = get_each_context_1(ctx, each_value_1, i);
5763
+
5764
+ if (each_blocks_1[i]) {
5765
+ each_blocks_1[i].p(child_ctx, dirty);
5766
+ } else {
5767
+ each_blocks_1[i] = create_each_block_1(child_ctx);
5768
+ each_blocks_1[i].c();
5769
+ each_blocks_1[i].m(t2.parentNode, t2);
5770
+ }
5771
+ }
5772
+
5773
+ for (; i < each_blocks_1.length; i += 1) {
5774
+ each_blocks_1[i].d(1);
5775
+ }
5776
+
5777
+ each_blocks_1.length = each_value_1.length;
5778
+ }
5779
+
5780
+ if (dirty & /*$_*/ 16 && t3_value !== (t3_value = /*$_*/ ctx[4]('Translations.otherProviders') + "")) set_data_dev(t3, t3_value);
5781
+
5782
+ if (dirty & /*openGameProviderPage, otherProviders, $_*/ 50) {
5783
+ each_value = /*otherProviders*/ ctx[1];
5784
+ validate_each_argument(each_value);
5785
+ let i;
5786
+
5787
+ for (i = 0; i < each_value.length; i += 1) {
5788
+ const child_ctx = get_each_context(ctx, each_value, i);
5789
+
5790
+ if (each_blocks[i]) {
5791
+ each_blocks[i].p(child_ctx, dirty);
5792
+ } else {
5793
+ each_blocks[i] = create_each_block(child_ctx);
5794
+ each_blocks[i].c();
5795
+ each_blocks[i].m(each1_anchor.parentNode, each1_anchor);
5796
+ }
5797
+ }
5798
+
5799
+ for (; i < each_blocks.length; i += 1) {
5800
+ each_blocks[i].d(1);
5801
+ }
5802
+
5803
+ each_blocks.length = each_value.length;
5804
+ }
5805
+ },
5806
+ d: function destroy(detaching) {
5807
+ if (detaching) detach_dev(h40);
5808
+ if (detaching) detach_dev(t1);
5809
+ destroy_each(each_blocks_1, detaching);
5810
+ if (detaching) detach_dev(t2);
5811
+ if (detaching) detach_dev(h41);
5812
+ if (detaching) detach_dev(t4);
5813
+ destroy_each(each_blocks, detaching);
5814
+ if (detaching) detach_dev(each1_anchor);
5815
+ }
5816
+ };
5817
+
5818
+ dispatch_dev("SvelteRegisterBlock", {
5819
+ block,
5820
+ id: create_else_block.name,
5821
+ type: "else",
5822
+ source: "(71:4) {:else}",
5823
+ ctx
5824
+ });
5825
+
5826
+ return block;
5827
+ }
5828
+
5829
+ // (69:4) {#if isLoading === true}
5830
+ function create_if_block(ctx) {
5831
+ let p;
5832
+ let t_value = /*$_*/ ctx[4]('Translations.loading') + "";
5833
+ let t;
5834
+
5835
+ const block = {
5836
+ c: function create() {
5837
+ p = element("p");
5838
+ t = text(t_value);
5839
+ attr_dev(p, "class", "Message");
5840
+ add_location(p, file$1, 69, 6, 2523);
5841
+ },
5842
+ m: function mount(target, anchor) {
5843
+ insert_dev(target, p, anchor);
5844
+ append_dev(p, t);
5845
+ },
5846
+ p: function update(ctx, dirty) {
5847
+ if (dirty & /*$_*/ 16 && t_value !== (t_value = /*$_*/ ctx[4]('Translations.loading') + "")) set_data_dev(t, t_value);
5848
+ },
5849
+ d: function destroy(detaching) {
5850
+ if (detaching) detach_dev(p);
5851
+ }
5852
+ };
5853
+
5854
+ dispatch_dev("SvelteRegisterBlock", {
5855
+ block,
5856
+ id: create_if_block.name,
5857
+ type: "if",
5858
+ source: "(69:4) {#if isLoading === true}",
5859
+ ctx
5860
+ });
5861
+
5862
+ return block;
5863
+ }
5864
+
5865
+ // (73:6) {#each topProviders as provider}
5866
+ function create_each_block_1(ctx) {
5867
+ let div1;
5868
+ let img;
5869
+ let img_src_value;
5870
+ let img_alt_value;
5871
+ let t0;
5872
+ let div0;
5873
+ let p0;
5874
+ let t1_value = /*provider*/ ctx[20].name + "";
5875
+ let t1;
5876
+ let t2;
5877
+ let p1;
5878
+ let t3_value = /*provider*/ ctx[20].games.count + "";
5879
+ let t3;
5880
+ let t4;
5881
+ let t5_value = /*$_*/ ctx[4]('Translations.games') + "";
5882
+ let t5;
5883
+ let mounted;
5884
+ let dispose;
5885
+
5886
+ function click_handler() {
5887
+ return /*click_handler*/ ctx[11](/*provider*/ ctx[20]);
5888
+ }
5889
+
5890
+ const block = {
5891
+ c: function create() {
5892
+ div1 = element("div");
5893
+ img = element("img");
5894
+ t0 = space();
5895
+ div0 = element("div");
5896
+ p0 = element("p");
5897
+ t1 = text(t1_value);
5898
+ t2 = space();
5899
+ p1 = element("p");
5900
+ t3 = text(t3_value);
5901
+ t4 = space();
5902
+ t5 = text(t5_value);
5903
+ if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[20].logo)) attr_dev(img, "src", img_src_value);
5904
+ attr_dev(img, "alt", img_alt_value = /*provider*/ ctx[20].name);
5905
+ attr_dev(img, "class", "ProviderImage");
5906
+ add_location(img, file$1, 74, 8, 2819);
5907
+ add_location(p0, file$1, 76, 10, 2945);
5908
+ add_location(p1, file$1, 77, 10, 2978);
5909
+ attr_dev(div0, "class", "ProviderTextContainer");
5910
+ add_location(div0, file$1, 75, 8, 2899);
5911
+ attr_dev(div1, "class", "Provider");
5912
+ add_location(div1, file$1, 73, 6, 2707);
5913
+ },
5914
+ m: function mount(target, anchor) {
5915
+ insert_dev(target, div1, anchor);
5916
+ append_dev(div1, img);
5917
+ append_dev(div1, t0);
5918
+ append_dev(div1, div0);
5919
+ append_dev(div0, p0);
5920
+ append_dev(p0, t1);
5921
+ append_dev(div0, t2);
5922
+ append_dev(div0, p1);
5923
+ append_dev(p1, t3);
5924
+ append_dev(p1, t4);
5925
+ append_dev(p1, t5);
5926
+
5927
+ if (!mounted) {
5928
+ dispose = listen_dev(div1, "click", click_handler, false, false, false);
5929
+ mounted = true;
5930
+ }
5931
+ },
5932
+ p: function update(new_ctx, dirty) {
5933
+ ctx = new_ctx;
5934
+
5935
+ if (dirty & /*topProviders*/ 1 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[20].logo)) {
5936
+ attr_dev(img, "src", img_src_value);
5937
+ }
5938
+
5939
+ if (dirty & /*topProviders*/ 1 && img_alt_value !== (img_alt_value = /*provider*/ ctx[20].name)) {
5940
+ attr_dev(img, "alt", img_alt_value);
5941
+ }
5942
+
5943
+ if (dirty & /*topProviders*/ 1 && t1_value !== (t1_value = /*provider*/ ctx[20].name + "")) set_data_dev(t1, t1_value);
5944
+ if (dirty & /*topProviders*/ 1 && t3_value !== (t3_value = /*provider*/ ctx[20].games.count + "")) set_data_dev(t3, t3_value);
5945
+ if (dirty & /*$_*/ 16 && t5_value !== (t5_value = /*$_*/ ctx[4]('Translations.games') + "")) set_data_dev(t5, t5_value);
5946
+ },
5947
+ d: function destroy(detaching) {
5948
+ if (detaching) detach_dev(div1);
5949
+ mounted = false;
5950
+ dispose();
5951
+ }
5952
+ };
5953
+
5954
+ dispatch_dev("SvelteRegisterBlock", {
5955
+ block,
5956
+ id: create_each_block_1.name,
5957
+ type: "each",
5958
+ source: "(73:6) {#each topProviders as provider}",
5959
+ ctx
5960
+ });
5961
+
5962
+ return block;
5963
+ }
5964
+
5965
+ // (83:6) {#each otherProviders as provider}
5658
5966
  function create_each_block(ctx) {
5659
5967
  let div1;
5660
5968
  let img;
@@ -5663,21 +5971,21 @@
5663
5971
  let t0;
5664
5972
  let div0;
5665
5973
  let p0;
5666
- let t1_value = /*provider*/ ctx[15].name + "";
5974
+ let t1_value = /*provider*/ ctx[20].name + "";
5667
5975
  let t1;
5668
5976
  let t2;
5669
5977
  let p1;
5670
- let t3_value = /*provider*/ ctx[15].games.count + "";
5978
+ let t3_value = /*provider*/ ctx[20].games.count + "";
5671
5979
  let t3;
5672
5980
  let t4;
5673
- let t5_value = /*$_*/ ctx[1]('Translations.games') + "";
5981
+ let t5_value = /*$_*/ ctx[4]('Translations.games') + "";
5674
5982
  let t5;
5675
5983
  let t6;
5676
5984
  let mounted;
5677
5985
  let dispose;
5678
5986
 
5679
- function click_handler() {
5680
- return /*click_handler*/ ctx[8](/*provider*/ ctx[15]);
5987
+ function click_handler_1() {
5988
+ return /*click_handler_1*/ ctx[12](/*provider*/ ctx[20]);
5681
5989
  }
5682
5990
 
5683
5991
  const block = {
@@ -5694,16 +6002,16 @@
5694
6002
  t4 = space();
5695
6003
  t5 = text(t5_value);
5696
6004
  t6 = space();
5697
- if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[15].image)) attr_dev(img, "src", img_src_value);
5698
- attr_dev(img, "alt", img_alt_value = /*provider*/ ctx[15].name);
6005
+ if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[20].logo)) attr_dev(img, "src", img_src_value);
6006
+ attr_dev(img, "alt", img_alt_value = /*provider*/ ctx[20].name);
5699
6007
  attr_dev(img, "class", "ProviderImage");
5700
- add_location(img, file$1, 60, 4, 1904);
5701
- add_location(p0, file$1, 62, 6, 2073);
5702
- add_location(p1, file$1, 63, 6, 2102);
6008
+ add_location(img, file$1, 84, 10, 3313);
6009
+ add_location(p0, file$1, 86, 12, 3443);
6010
+ add_location(p1, file$1, 87, 12, 3478);
5703
6011
  attr_dev(div0, "class", "ProviderTextContainer");
5704
- add_location(div0, file$1, 61, 4, 2031);
6012
+ add_location(div0, file$1, 85, 10, 3395);
5705
6013
  attr_dev(div1, "class", "Provider");
5706
- add_location(div1, file$1, 59, 2, 1877);
6014
+ add_location(div1, file$1, 83, 8, 3199);
5707
6015
  },
5708
6016
  m: function mount(target, anchor) {
5709
6017
  insert_dev(target, div1, anchor);
@@ -5720,24 +6028,24 @@
5720
6028
  append_dev(div1, t6);
5721
6029
 
5722
6030
  if (!mounted) {
5723
- dispose = listen_dev(img, "click", click_handler, false, false, false);
6031
+ dispose = listen_dev(div1, "click", click_handler_1, false, false, false);
5724
6032
  mounted = true;
5725
6033
  }
5726
6034
  },
5727
6035
  p: function update(new_ctx, dirty) {
5728
6036
  ctx = new_ctx;
5729
6037
 
5730
- if (dirty & /*providers*/ 1 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[15].image)) {
6038
+ if (dirty & /*otherProviders*/ 2 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[20].logo)) {
5731
6039
  attr_dev(img, "src", img_src_value);
5732
6040
  }
5733
6041
 
5734
- if (dirty & /*providers*/ 1 && img_alt_value !== (img_alt_value = /*provider*/ ctx[15].name)) {
6042
+ if (dirty & /*otherProviders*/ 2 && img_alt_value !== (img_alt_value = /*provider*/ ctx[20].name)) {
5735
6043
  attr_dev(img, "alt", img_alt_value);
5736
6044
  }
5737
6045
 
5738
- if (dirty & /*providers*/ 1 && t1_value !== (t1_value = /*provider*/ ctx[15].name + "")) set_data_dev(t1, t1_value);
5739
- if (dirty & /*providers*/ 1 && t3_value !== (t3_value = /*provider*/ ctx[15].games.count + "")) set_data_dev(t3, t3_value);
5740
- if (dirty & /*$_*/ 2 && t5_value !== (t5_value = /*$_*/ ctx[1]('Translations.games') + "")) set_data_dev(t5, t5_value);
6046
+ if (dirty & /*otherProviders*/ 2 && t1_value !== (t1_value = /*provider*/ ctx[20].name + "")) set_data_dev(t1, t1_value);
6047
+ if (dirty & /*otherProviders*/ 2 && t3_value !== (t3_value = /*provider*/ ctx[20].games.count + "")) set_data_dev(t3, t3_value);
6048
+ if (dirty & /*$_*/ 16 && t5_value !== (t5_value = /*$_*/ ctx[4]('Translations.games') + "")) set_data_dev(t5, t5_value);
5741
6049
  },
5742
6050
  d: function destroy(detaching) {
5743
6051
  if (detaching) detach_dev(div1);
@@ -5750,7 +6058,7 @@
5750
6058
  block,
5751
6059
  id: create_each_block.name,
5752
6060
  type: "each",
5753
- source: "(59:2) {#each providers as provider}",
6061
+ source: "(83:6) {#each otherProviders as provider}",
5754
6062
  ctx
5755
6063
  });
5756
6064
 
@@ -5758,76 +6066,55 @@
5758
6066
  }
5759
6067
 
5760
6068
  function create_fragment$1(ctx) {
5761
- let div;
5762
- let h4;
5763
- let t1;
5764
- let each_value = /*providers*/ ctx[0];
5765
- validate_each_argument(each_value);
5766
- let each_blocks = [];
6069
+ let div1;
6070
+ let div0;
5767
6071
 
5768
- for (let i = 0; i < each_value.length; i += 1) {
5769
- each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
6072
+ function select_block_type(ctx, dirty) {
6073
+ if (/*isLoading*/ ctx[2] === true) return create_if_block;
6074
+ return create_else_block;
5770
6075
  }
5771
6076
 
6077
+ let current_block_type = select_block_type(ctx);
6078
+ let if_block = current_block_type(ctx);
6079
+
5772
6080
  const block = {
5773
6081
  c: function create() {
5774
- div = element("div");
5775
- h4 = element("h4");
5776
- h4.textContent = "Providers";
5777
- t1 = space();
5778
-
5779
- for (let i = 0; i < each_blocks.length; i += 1) {
5780
- each_blocks[i].c();
5781
- }
5782
-
6082
+ div1 = element("div");
6083
+ div0 = element("div");
6084
+ if_block.c();
5783
6085
  this.c = noop;
5784
- attr_dev(h4, "class", "ProviderTitle");
5785
- add_location(h4, file$1, 57, 2, 1802);
5786
- attr_dev(div, "class", "CasinoProviders");
5787
- add_location(div, file$1, 56, 0, 1770);
6086
+ attr_dev(div0, "class", "CasinoProviders");
6087
+ add_location(div0, file$1, 67, 2, 2458);
6088
+ add_location(div1, file$1, 66, 0, 2415);
5788
6089
  },
5789
6090
  l: function claim(nodes) {
5790
6091
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
5791
6092
  },
5792
6093
  m: function mount(target, anchor) {
5793
- insert_dev(target, div, anchor);
5794
- append_dev(div, h4);
5795
- append_dev(div, t1);
5796
-
5797
- for (let i = 0; i < each_blocks.length; i += 1) {
5798
- each_blocks[i].m(div, null);
5799
- }
6094
+ insert_dev(target, div1, anchor);
6095
+ append_dev(div1, div0);
6096
+ if_block.m(div0, null);
6097
+ /*div1_binding*/ ctx[13](div1);
5800
6098
  },
5801
6099
  p: function update(ctx, [dirty]) {
5802
- if (dirty & /*$_, providers, openGameProviderPage*/ 7) {
5803
- each_value = /*providers*/ ctx[0];
5804
- validate_each_argument(each_value);
5805
- let i;
5806
-
5807
- for (i = 0; i < each_value.length; i += 1) {
5808
- const child_ctx = get_each_context(ctx, each_value, i);
5809
-
5810
- if (each_blocks[i]) {
5811
- each_blocks[i].p(child_ctx, dirty);
5812
- } else {
5813
- each_blocks[i] = create_each_block(child_ctx);
5814
- each_blocks[i].c();
5815
- each_blocks[i].m(div, null);
5816
- }
5817
- }
6100
+ if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
6101
+ if_block.p(ctx, dirty);
6102
+ } else {
6103
+ if_block.d(1);
6104
+ if_block = current_block_type(ctx);
5818
6105
 
5819
- for (; i < each_blocks.length; i += 1) {
5820
- each_blocks[i].d(1);
6106
+ if (if_block) {
6107
+ if_block.c();
6108
+ if_block.m(div0, null);
5821
6109
  }
5822
-
5823
- each_blocks.length = each_value.length;
5824
6110
  }
5825
6111
  },
5826
6112
  i: noop,
5827
6113
  o: noop,
5828
6114
  d: function destroy(detaching) {
5829
- if (detaching) detach_dev(div);
5830
- destroy_each(each_blocks, detaching);
6115
+ if (detaching) detach_dev(div1);
6116
+ if_block.d();
6117
+ /*div1_binding*/ ctx[13](null);
5831
6118
  }
5832
6119
  };
5833
6120
 
@@ -5845,7 +6132,7 @@
5845
6132
  function instance$1($$self, $$props, $$invalidate) {
5846
6133
  let $_;
5847
6134
  validate_store(Y, '_');
5848
- component_subscribe($$self, Y, $$value => $$invalidate(1, $_ = $$value));
6135
+ component_subscribe($$self, Y, $$value => $$invalidate(4, $_ = $$value));
5849
6136
  let { $$slots: slots = {}, $$scope } = $$props;
5850
6137
  validate_slots('undefined', slots, []);
5851
6138
  let { endpoint = '' } = $$props;
@@ -5854,6 +6141,9 @@
5854
6141
  let { clientstyling = '' } = $$props;
5855
6142
  let { clientstylingurl = '' } = $$props;
5856
6143
  let providers = [];
6144
+ let topProviders = [];
6145
+ let otherProviders = [];
6146
+ let isLoading = false;
5857
6147
  let customStylingContainer;
5858
6148
  let displayNone = false;
5859
6149
 
@@ -5862,18 +6152,30 @@
5862
6152
  });
5863
6153
 
5864
6154
  const getProviders = () => {
5865
- let url = new URL(`${endpoint}`);
5866
- url.searchParams.append('language', lang);
5867
- url.searchParams.append('datasource', datasource);
6155
+ $$invalidate(2, isLoading = true);
6156
+ const url = new URL(`${endpoint}/casino/vendors`);
6157
+ url.searchParams.append("datasource", datasource);
6158
+ url.searchParams.append("language", lang);
6159
+ url.searchParams.append("fields", "id,name,displayName,subVendors,isTopVendor,logo,games");
5868
6160
 
5869
- fetch(url.href).then(res => res.json()).then(data => {
5870
- providers.push(...data.items);
5871
- $$invalidate(0, providers);
6161
+ fetch(url).then(res => res.json()).then(data => {
6162
+ $$invalidate(2, isLoading = false);
6163
+ providers = data.items.map(item => item);
6164
+ $$invalidate(0, topProviders = providers.filter(provider => provider.isTopVendor === true));
6165
+ $$invalidate(1, otherProviders = providers.filter(provider => provider.isTopVendor === false));
6166
+ let allSubVendors = [];
6167
+ allSubVendors = providers.flatMap(item => item.subVendors);
6168
+ otherProviders.push(...allSubVendors.filter(subVendor => subVendor.games.count > 0));
5872
6169
  });
5873
6170
  };
5874
6171
 
5875
- const openGameProviderPage = providerId => {
5876
- window.postMessage({ type: 'OpenGameProvider', providerId });
6172
+ const openGameProviderPage = (providerId, providerName, providerLogo) => {
6173
+ window.postMessage({
6174
+ type: 'OpenGameProvider',
6175
+ providerId,
6176
+ providerName,
6177
+ providerLogo
6178
+ });
5877
6179
  };
5878
6180
 
5879
6181
  const setActiveLanguage = () => {
@@ -5918,14 +6220,22 @@
5918
6220
  if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<undefined> was created with unknown prop '${key}'`);
5919
6221
  });
5920
6222
 
5921
- const click_handler = provider => openGameProviderPage(provider.id);
6223
+ const click_handler = provider => openGameProviderPage(provider.id, provider.name, provider.logo);
6224
+ const click_handler_1 = provider => openGameProviderPage(provider.id, provider.name, provider.logo);
6225
+
6226
+ function div1_binding($$value) {
6227
+ binding_callbacks[$$value ? 'unshift' : 'push'](() => {
6228
+ customStylingContainer = $$value;
6229
+ $$invalidate(3, customStylingContainer);
6230
+ });
6231
+ }
5922
6232
 
5923
6233
  $$self.$$set = $$props => {
5924
- if ('endpoint' in $$props) $$invalidate(3, endpoint = $$props.endpoint);
5925
- if ('datasource' in $$props) $$invalidate(4, datasource = $$props.datasource);
5926
- if ('lang' in $$props) $$invalidate(5, lang = $$props.lang);
5927
- if ('clientstyling' in $$props) $$invalidate(6, clientstyling = $$props.clientstyling);
5928
- if ('clientstylingurl' in $$props) $$invalidate(7, clientstylingurl = $$props.clientstylingurl);
6234
+ if ('endpoint' in $$props) $$invalidate(6, endpoint = $$props.endpoint);
6235
+ if ('datasource' in $$props) $$invalidate(7, datasource = $$props.datasource);
6236
+ if ('lang' in $$props) $$invalidate(8, lang = $$props.lang);
6237
+ if ('clientstyling' in $$props) $$invalidate(9, clientstyling = $$props.clientstyling);
6238
+ if ('clientstylingurl' in $$props) $$invalidate(10, clientstylingurl = $$props.clientstylingurl);
5929
6239
  };
5930
6240
 
5931
6241
  $$self.$capture_state = () => ({
@@ -5939,6 +6249,9 @@
5939
6249
  clientstyling,
5940
6250
  clientstylingurl,
5941
6251
  providers,
6252
+ topProviders,
6253
+ otherProviders,
6254
+ isLoading,
5942
6255
  customStylingContainer,
5943
6256
  displayNone,
5944
6257
  getProviders,
@@ -5950,13 +6263,16 @@
5950
6263
  });
5951
6264
 
5952
6265
  $$self.$inject_state = $$props => {
5953
- if ('endpoint' in $$props) $$invalidate(3, endpoint = $$props.endpoint);
5954
- if ('datasource' in $$props) $$invalidate(4, datasource = $$props.datasource);
5955
- if ('lang' in $$props) $$invalidate(5, lang = $$props.lang);
5956
- if ('clientstyling' in $$props) $$invalidate(6, clientstyling = $$props.clientstyling);
5957
- if ('clientstylingurl' in $$props) $$invalidate(7, clientstylingurl = $$props.clientstylingurl);
5958
- if ('providers' in $$props) $$invalidate(0, providers = $$props.providers);
5959
- if ('customStylingContainer' in $$props) customStylingContainer = $$props.customStylingContainer;
6266
+ if ('endpoint' in $$props) $$invalidate(6, endpoint = $$props.endpoint);
6267
+ if ('datasource' in $$props) $$invalidate(7, datasource = $$props.datasource);
6268
+ if ('lang' in $$props) $$invalidate(8, lang = $$props.lang);
6269
+ if ('clientstyling' in $$props) $$invalidate(9, clientstyling = $$props.clientstyling);
6270
+ if ('clientstylingurl' in $$props) $$invalidate(10, clientstylingurl = $$props.clientstylingurl);
6271
+ if ('providers' in $$props) providers = $$props.providers;
6272
+ if ('topProviders' in $$props) $$invalidate(0, topProviders = $$props.topProviders);
6273
+ if ('otherProviders' in $$props) $$invalidate(1, otherProviders = $$props.otherProviders);
6274
+ if ('isLoading' in $$props) $$invalidate(2, isLoading = $$props.isLoading);
6275
+ if ('customStylingContainer' in $$props) $$invalidate(3, customStylingContainer = $$props.customStylingContainer);
5960
6276
  if ('displayNone' in $$props) displayNone = $$props.displayNone;
5961
6277
  };
5962
6278
 
@@ -5965,25 +6281,28 @@
5965
6281
  }
5966
6282
 
5967
6283
  $$self.$$.update = () => {
5968
- if ($$self.$$.dirty & /*endpoint, lang*/ 40) {
5969
- endpoint && lang && getProviders();
6284
+ if ($$self.$$.dirty & /*endpoint, lang, datasource*/ 448) {
6285
+ endpoint && lang && datasource && getProviders();
5970
6286
  }
5971
6287
 
5972
- if ($$self.$$.dirty & /*lang*/ 32) {
6288
+ if ($$self.$$.dirty & /*lang*/ 256) {
5973
6289
  lang && setActiveLanguage();
5974
6290
  }
5975
6291
 
5976
- if ($$self.$$.dirty & /*clientstyling*/ 64) {
6292
+ if ($$self.$$.dirty & /*clientstyling*/ 512) {
5977
6293
  clientstyling && setClientStyling();
5978
6294
  }
5979
6295
 
5980
- if ($$self.$$.dirty & /*clientstylingurl*/ 128) {
6296
+ if ($$self.$$.dirty & /*clientstylingurl*/ 1024) {
5981
6297
  clientstylingurl && setClientStylingURL();
5982
6298
  }
5983
6299
  };
5984
6300
 
5985
6301
  return [
5986
- providers,
6302
+ topProviders,
6303
+ otherProviders,
6304
+ isLoading,
6305
+ customStylingContainer,
5987
6306
  $_,
5988
6307
  openGameProviderPage,
5989
6308
  endpoint,
@@ -5991,14 +6310,16 @@
5991
6310
  lang,
5992
6311
  clientstyling,
5993
6312
  clientstylingurl,
5994
- click_handler
6313
+ click_handler,
6314
+ click_handler_1,
6315
+ div1_binding
5995
6316
  ];
5996
6317
  }
5997
6318
 
5998
6319
  class CasinoProviders extends SvelteElement {
5999
6320
  constructor(options) {
6000
6321
  super();
6001
- this.shadowRoot.innerHTML = `<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px}.ProviderTextContainer p:first-child{font-weight:600}.ProviderTextContainer p:last-child{color:#828282;font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:.5px solid #f3f3f3;overflow:hidden}</style>`;
6322
+ this.shadowRoot.innerHTML = `<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px}.ProviderTextContainer p:first-child{font-weight:600}.ProviderTextContainer p:last-child{color:#828282;font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:.5px solid #e4e2e2;overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}</style>`;
6002
6323
 
6003
6324
  init(
6004
6325
  this,
@@ -6011,11 +6332,11 @@
6011
6332
  create_fragment$1,
6012
6333
  safe_not_equal,
6013
6334
  {
6014
- endpoint: 3,
6015
- datasource: 4,
6016
- lang: 5,
6017
- clientstyling: 6,
6018
- clientstylingurl: 7
6335
+ endpoint: 6,
6336
+ datasource: 7,
6337
+ lang: 8,
6338
+ clientstyling: 9,
6339
+ clientstylingurl: 10
6019
6340
  },
6020
6341
  null
6021
6342
  );
@@ -6037,7 +6358,7 @@
6037
6358
  }
6038
6359
 
6039
6360
  get endpoint() {
6040
- return this.$$.ctx[3];
6361
+ return this.$$.ctx[6];
6041
6362
  }
6042
6363
 
6043
6364
  set endpoint(endpoint) {
@@ -6046,7 +6367,7 @@
6046
6367
  }
6047
6368
 
6048
6369
  get datasource() {
6049
- return this.$$.ctx[4];
6370
+ return this.$$.ctx[7];
6050
6371
  }
6051
6372
 
6052
6373
  set datasource(datasource) {
@@ -6055,7 +6376,7 @@
6055
6376
  }
6056
6377
 
6057
6378
  get lang() {
6058
- return this.$$.ctx[5];
6379
+ return this.$$.ctx[8];
6059
6380
  }
6060
6381
 
6061
6382
  set lang(lang) {
@@ -6064,7 +6385,7 @@
6064
6385
  }
6065
6386
 
6066
6387
  get clientstyling() {
6067
- return this.$$.ctx[6];
6388
+ return this.$$.ctx[9];
6068
6389
  }
6069
6390
 
6070
6391
  set clientstyling(clientstyling) {
@@ -6073,7 +6394,7 @@
6073
6394
  }
6074
6395
 
6075
6396
  get clientstylingurl() {
6076
- return this.$$.ctx[7];
6397
+ return this.$$.ctx[10];
6077
6398
  }
6078
6399
 
6079
6400
  set clientstylingurl(clientstylingurl) {