@everymatrix/casino-categories-providers 1.0.15 → 1.1.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.
@@ -4803,7 +4803,7 @@
4803
4803
  return child_ctx;
4804
4804
  }
4805
4805
 
4806
- // (82:2) {:else}
4806
+ // (80:2) {:else}
4807
4807
  function create_else_block$1(ctx) {
4808
4808
  let div;
4809
4809
  let h40;
@@ -4852,11 +4852,11 @@
4852
4852
  }
4853
4853
 
4854
4854
  attr_dev(h40, "class", "CategoryTitle");
4855
- add_location(h40, file$2, 83, 4, 3049);
4855
+ add_location(h40, file$2, 81, 4, 2993);
4856
4856
  attr_dev(h41, "class", "CategoryTitle");
4857
- add_location(h41, file$2, 93, 4, 3531);
4857
+ add_location(h41, file$2, 91, 4, 3475);
4858
4858
  attr_dev(div, "class", "CasinoCategories");
4859
- add_location(div, file$2, 82, 2, 3014);
4859
+ add_location(div, file$2, 80, 2, 2958);
4860
4860
  },
4861
4861
  m: function mount(target, anchor) {
4862
4862
  insert_dev(target, div, anchor);
@@ -4941,14 +4941,14 @@
4941
4941
  block,
4942
4942
  id: create_else_block$1.name,
4943
4943
  type: "else",
4944
- source: "(82:2) {:else}",
4944
+ source: "(80:2) {:else}",
4945
4945
  ctx
4946
4946
  });
4947
4947
 
4948
4948
  return block;
4949
4949
  }
4950
4950
 
4951
- // (80:2) {#if isLoading}
4951
+ // (78:2) {#if isLoading}
4952
4952
  function create_if_block$1(ctx) {
4953
4953
  let p;
4954
4954
 
@@ -4957,7 +4957,7 @@
4957
4957
  p = element("p");
4958
4958
  p.textContent = "Loading, please wait...";
4959
4959
  attr_dev(p, "class", "Message");
4960
- add_location(p, file$2, 80, 2, 2955);
4960
+ add_location(p, file$2, 78, 2, 2899);
4961
4961
  },
4962
4962
  m: function mount(target, anchor) {
4963
4963
  insert_dev(target, p, anchor);
@@ -4972,14 +4972,14 @@
4972
4972
  block,
4973
4973
  id: create_if_block$1.name,
4974
4974
  type: "if",
4975
- source: "(80:2) {#if isLoading}",
4975
+ source: "(78:2) {#if isLoading}",
4976
4976
  ctx
4977
4977
  });
4978
4978
 
4979
4979
  return block;
4980
4980
  }
4981
4981
 
4982
- // (85:4) {#each topCategories as category}
4982
+ // (83:4) {#each topCategories as category}
4983
4983
  function create_each_block_1$1(ctx) {
4984
4984
  let div1;
4985
4985
  let img;
@@ -5021,17 +5021,17 @@
5021
5021
  if (!src_url_equal(img.src, img_src_value = /*category*/ ctx[24].icon)) attr_dev(img, "src", img_src_value);
5022
5022
  attr_dev(img, "alt", img_alt_value = /*category*/ ctx[24].name);
5023
5023
  attr_dev(img, "class", "CategoryImage");
5024
- add_location(img, file$2, 86, 6, 3235);
5025
- add_location(p0, file$2, 88, 8, 3403);
5026
- add_location(p1, file$2, 89, 8, 3434);
5024
+ add_location(img, file$2, 84, 6, 3179);
5025
+ add_location(p0, file$2, 86, 8, 3347);
5026
+ add_location(p1, file$2, 87, 8, 3378);
5027
5027
  attr_dev(div0, "class", "CategoryTextContainer");
5028
- add_location(div0, file$2, 87, 6, 3359);
5028
+ add_location(div0, file$2, 85, 6, 3303);
5029
5029
 
5030
5030
  attr_dev(div1, "class", div1_class_value = "Category " + (/*activecategory*/ ctx[0] === /*category*/ ctx[24].id
5031
5031
  ? "Active"
5032
5032
  : ""));
5033
5033
 
5034
- add_location(div1, file$2, 85, 4, 3157);
5034
+ add_location(div1, file$2, 83, 4, 3101);
5035
5035
  },
5036
5036
  m: function mount(target, anchor) {
5037
5037
  insert_dev(target, div1, anchor);
@@ -5083,14 +5083,14 @@
5083
5083
  block,
5084
5084
  id: create_each_block_1$1.name,
5085
5085
  type: "each",
5086
- source: "(85:4) {#each topCategories as category}",
5086
+ source: "(83:4) {#each topCategories as category}",
5087
5087
  ctx
5088
5088
  });
5089
5089
 
5090
5090
  return block;
5091
5091
  }
5092
5092
 
5093
- // (95:4) {#each otherCategories as category}
5093
+ // (93:4) {#each otherCategories as category}
5094
5094
  function create_each_block$1(ctx) {
5095
5095
  let div1;
5096
5096
  let img;
@@ -5134,17 +5134,17 @@
5134
5134
  if (!src_url_equal(img.src, img_src_value = /*category*/ ctx[24].icon)) attr_dev(img, "src", img_src_value);
5135
5135
  attr_dev(img, "alt", img_alt_value = /*category*/ ctx[24].name);
5136
5136
  attr_dev(img, "class", "CategoryImage");
5137
- add_location(img, file$2, 96, 6, 3722);
5138
- add_location(p0, file$2, 98, 8, 3889);
5139
- add_location(p1, file$2, 99, 8, 3920);
5137
+ add_location(img, file$2, 94, 6, 3666);
5138
+ add_location(p0, file$2, 96, 8, 3833);
5139
+ add_location(p1, file$2, 97, 8, 3864);
5140
5140
  attr_dev(div0, "class", "CategoryTextContainer");
5141
- add_location(div0, file$2, 97, 6, 3845);
5141
+ add_location(div0, file$2, 95, 6, 3789);
5142
5142
 
5143
5143
  attr_dev(div1, "class", div1_class_value = "Category " + (/*activecategory*/ ctx[0] === /*category*/ ctx[24].id
5144
5144
  ? "Active"
5145
5145
  : ""));
5146
5146
 
5147
- add_location(div1, file$2, 95, 4, 3643);
5147
+ add_location(div1, file$2, 93, 4, 3587);
5148
5148
  },
5149
5149
  m: function mount(target, anchor) {
5150
5150
  insert_dev(target, div1, anchor);
@@ -5197,7 +5197,7 @@
5197
5197
  block,
5198
5198
  id: create_each_block$1.name,
5199
5199
  type: "each",
5200
- source: "(95:4) {#each otherCategories as category}",
5200
+ source: "(93:4) {#each otherCategories as category}",
5201
5201
  ctx
5202
5202
  });
5203
5203
 
@@ -5220,7 +5220,7 @@
5220
5220
  div = element("div");
5221
5221
  if_block.c();
5222
5222
  this.c = noop;
5223
- add_location(div, file$2, 78, 0, 2894);
5223
+ add_location(div, file$2, 76, 0, 2838);
5224
5224
  },
5225
5225
  l: function claim(nodes) {
5226
5226
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -5346,21 +5346,19 @@
5346
5346
  fetch(url.href).then(res => res.text()).then(data => {
5347
5347
  cssFile.innerHTML = data;
5348
5348
 
5349
- if (customStylingContainer) {
5350
- setTimeout(
5351
- () => {
5352
- customStylingContainer.appendChild(cssFile);
5353
- },
5354
- 1
5355
- );
5356
-
5357
- setTimeout(
5358
- () => {
5359
- displayNone = false;
5360
- },
5361
- 500
5362
- );
5363
- }
5349
+ setTimeout(
5350
+ () => {
5351
+ customStylingContainer.appendChild(cssFile);
5352
+ },
5353
+ 1
5354
+ );
5355
+
5356
+ setTimeout(
5357
+ () => {
5358
+ displayNone = false;
5359
+ },
5360
+ 500
5361
+ );
5364
5362
  });
5365
5363
  };
5366
5364
 
@@ -5767,7 +5765,7 @@
5767
5765
  return child_ctx;
5768
5766
  }
5769
5767
 
5770
- // (80:4) {:else}
5768
+ // (78:4) {:else}
5771
5769
  function create_else_block(ctx) {
5772
5770
  let h40;
5773
5771
  let t0_value = /*$_*/ ctx[4]('Translations.popularProviders') + "";
@@ -5816,9 +5814,9 @@
5816
5814
 
5817
5815
  each1_anchor = empty();
5818
5816
  attr_dev(h40, "class", "ProviderTitle");
5819
- add_location(h40, file$1, 80, 4, 2874);
5817
+ add_location(h40, file$1, 78, 4, 2844);
5820
5818
  attr_dev(h41, "class", "ProviderTitle");
5821
- add_location(h41, file$1, 90, 6, 3364);
5819
+ add_location(h41, file$1, 88, 6, 3334);
5822
5820
  },
5823
5821
  m: function mount(target, anchor) {
5824
5822
  insert_dev(target, h40, anchor);
@@ -5909,14 +5907,14 @@
5909
5907
  block,
5910
5908
  id: create_else_block.name,
5911
5909
  type: "else",
5912
- source: "(80:4) {:else}",
5910
+ source: "(78:4) {:else}",
5913
5911
  ctx
5914
5912
  });
5915
5913
 
5916
5914
  return block;
5917
5915
  }
5918
5916
 
5919
- // (78:4) {#if isLoading === true}
5917
+ // (76:4) {#if isLoading === true}
5920
5918
  function create_if_block(ctx) {
5921
5919
  let p;
5922
5920
  let t_value = /*$_*/ ctx[4]('Translations.loading') + "";
@@ -5927,7 +5925,7 @@
5927
5925
  p = element("p");
5928
5926
  t = text(t_value);
5929
5927
  attr_dev(p, "class", "Message");
5930
- add_location(p, file$1, 78, 6, 2804);
5928
+ add_location(p, file$1, 76, 6, 2774);
5931
5929
  },
5932
5930
  m: function mount(target, anchor) {
5933
5931
  insert_dev(target, p, anchor);
@@ -5945,14 +5943,14 @@
5945
5943
  block,
5946
5944
  id: create_if_block.name,
5947
5945
  type: "if",
5948
- source: "(78:4) {#if isLoading === true}",
5946
+ source: "(76:4) {#if isLoading === true}",
5949
5947
  ctx
5950
5948
  });
5951
5949
 
5952
5950
  return block;
5953
5951
  }
5954
5952
 
5955
- // (82:6) {#each topProviders as provider}
5953
+ // (80:6) {#each topProviders as provider}
5956
5954
  function create_each_block_1(ctx) {
5957
5955
  let div1;
5958
5956
  let img;
@@ -5993,13 +5991,13 @@
5993
5991
  if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[21].logo)) attr_dev(img, "src", img_src_value);
5994
5992
  attr_dev(img, "alt", img_alt_value = /*provider*/ ctx[21].name);
5995
5993
  attr_dev(img, "class", "ProviderImage");
5996
- add_location(img, file$1, 83, 8, 3100);
5997
- add_location(p0, file$1, 85, 10, 3226);
5998
- add_location(p1, file$1, 86, 10, 3259);
5994
+ add_location(img, file$1, 81, 8, 3070);
5995
+ add_location(p0, file$1, 83, 10, 3196);
5996
+ add_location(p1, file$1, 84, 10, 3229);
5999
5997
  attr_dev(div0, "class", "ProviderTextContainer");
6000
- add_location(div0, file$1, 84, 8, 3180);
5998
+ add_location(div0, file$1, 82, 8, 3150);
6001
5999
  attr_dev(div1, "class", "Provider");
6002
- add_location(div1, file$1, 82, 6, 2988);
6000
+ add_location(div1, file$1, 80, 6, 2958);
6003
6001
  },
6004
6002
  m: function mount(target, anchor) {
6005
6003
  insert_dev(target, div1, anchor);
@@ -6045,14 +6043,14 @@
6045
6043
  block,
6046
6044
  id: create_each_block_1.name,
6047
6045
  type: "each",
6048
- source: "(82:6) {#each topProviders as provider}",
6046
+ source: "(80:6) {#each topProviders as provider}",
6049
6047
  ctx
6050
6048
  });
6051
6049
 
6052
6050
  return block;
6053
6051
  }
6054
6052
 
6055
- // (92:6) {#each otherProviders as provider}
6053
+ // (90:6) {#each otherProviders as provider}
6056
6054
  function create_each_block(ctx) {
6057
6055
  let div1;
6058
6056
  let img;
@@ -6095,13 +6093,13 @@
6095
6093
  if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[21].logo)) attr_dev(img, "src", img_src_value);
6096
6094
  attr_dev(img, "alt", img_alt_value = /*provider*/ ctx[21].name);
6097
6095
  attr_dev(img, "class", "ProviderImage");
6098
- add_location(img, file$1, 93, 10, 3594);
6099
- add_location(p0, file$1, 95, 12, 3724);
6100
- add_location(p1, file$1, 96, 12, 3759);
6096
+ add_location(img, file$1, 91, 10, 3564);
6097
+ add_location(p0, file$1, 93, 12, 3694);
6098
+ add_location(p1, file$1, 94, 12, 3729);
6101
6099
  attr_dev(div0, "class", "ProviderTextContainer");
6102
- add_location(div0, file$1, 94, 10, 3676);
6100
+ add_location(div0, file$1, 92, 10, 3646);
6103
6101
  attr_dev(div1, "class", "Provider");
6104
- add_location(div1, file$1, 92, 8, 3480);
6102
+ add_location(div1, file$1, 90, 8, 3450);
6105
6103
  },
6106
6104
  m: function mount(target, anchor) {
6107
6105
  insert_dev(target, div1, anchor);
@@ -6148,7 +6146,7 @@
6148
6146
  block,
6149
6147
  id: create_each_block.name,
6150
6148
  type: "each",
6151
- source: "(92:6) {#each otherProviders as provider}",
6149
+ source: "(90:6) {#each otherProviders as provider}",
6152
6150
  ctx
6153
6151
  });
6154
6152
 
@@ -6156,8 +6154,7 @@
6156
6154
  }
6157
6155
 
6158
6156
  function create_fragment$1(ctx) {
6159
- let div1;
6160
- let div0;
6157
+ let div;
6161
6158
 
6162
6159
  function select_block_type(ctx, dirty) {
6163
6160
  if (/*isLoading*/ ctx[3] === true) return create_if_block;
@@ -6169,22 +6166,19 @@
6169
6166
 
6170
6167
  const block = {
6171
6168
  c: function create() {
6172
- div1 = element("div");
6173
- div0 = element("div");
6169
+ div = element("div");
6174
6170
  if_block.c();
6175
6171
  this.c = noop;
6176
- attr_dev(div0, "class", "CasinoProviders");
6177
- add_location(div0, file$1, 76, 2, 2739);
6178
- add_location(div1, file$1, 75, 0, 2696);
6172
+ attr_dev(div, "class", "CasinoProviders");
6173
+ add_location(div, file$1, 74, 2, 2674);
6179
6174
  },
6180
6175
  l: function claim(nodes) {
6181
6176
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
6182
6177
  },
6183
6178
  m: function mount(target, anchor) {
6184
- insert_dev(target, div1, anchor);
6185
- append_dev(div1, div0);
6186
- if_block.m(div0, null);
6187
- /*div1_binding*/ ctx[14](div1);
6179
+ insert_dev(target, div, anchor);
6180
+ if_block.m(div, null);
6181
+ /*div_binding*/ ctx[14](div);
6188
6182
  },
6189
6183
  p: function update(ctx, [dirty]) {
6190
6184
  if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
@@ -6195,16 +6189,16 @@
6195
6189
 
6196
6190
  if (if_block) {
6197
6191
  if_block.c();
6198
- if_block.m(div0, null);
6192
+ if_block.m(div, null);
6199
6193
  }
6200
6194
  }
6201
6195
  },
6202
6196
  i: noop,
6203
6197
  o: noop,
6204
6198
  d: function destroy(detaching) {
6205
- if (detaching) detach_dev(div1);
6199
+ if (detaching) detach_dev(div);
6206
6200
  if_block.d();
6207
- /*div1_binding*/ ctx[14](null);
6201
+ /*div_binding*/ ctx[14](null);
6208
6202
  }
6209
6203
  };
6210
6204
 
@@ -6291,7 +6285,6 @@
6291
6285
  };
6292
6286
 
6293
6287
  const setClientStylingURL = () => {
6294
- displayNone = true;
6295
6288
  let url = new URL(clientstylingurl);
6296
6289
  let cssFile = document.createElement('style');
6297
6290
 
@@ -6323,7 +6316,7 @@
6323
6316
  const click_handler = provider => openGameProviderPage(provider.id, provider.name, provider.logo);
6324
6317
  const click_handler_1 = provider => openGameProviderPage(provider.id, provider.name, provider.logo);
6325
6318
 
6326
- function div1_binding($$value) {
6319
+ function div_binding($$value) {
6327
6320
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
6328
6321
  customStylingContainer = $$value;
6329
6322
  $$invalidate(0, customStylingContainer);
@@ -6419,7 +6412,7 @@
6419
6412
  translationUrl,
6420
6413
  click_handler,
6421
6414
  click_handler_1,
6422
- div1_binding
6415
+ div_binding
6423
6416
  ];
6424
6417
  }
6425
6418
 
@@ -6576,11 +6569,11 @@
6576
6569
  casino_providers = element("casino-providers");
6577
6570
  this.c = noop;
6578
6571
  attr_dev(button0, "class", button0_class_value = "HeaderButton " + (/*activeTab*/ ctx[10] === 'categories' ? 'Active' : ''));
6579
- add_location(button0, file, 68, 6, 2166);
6572
+ add_location(button0, file, 66, 6, 2110);
6580
6573
  attr_dev(button1, "class", button1_class_value = "HeaderButton " + (/*activeTab*/ ctx[10] === 'providers' ? 'Active' : ''));
6581
- add_location(button1, file, 71, 6, 2343);
6574
+ add_location(button1, file, 69, 6, 2287);
6582
6575
  attr_dev(div0, "class", "Header");
6583
- add_location(div0, file, 67, 4, 2139);
6576
+ add_location(div0, file, 65, 4, 2083);
6584
6577
  set_custom_element_data(casino_categories, "endpoint", /*endpointcategories*/ ctx[0]);
6585
6578
  set_custom_element_data(casino_categories, "datasource", /*datasourcecategories*/ ctx[1]);
6586
6579
  set_custom_element_data(casino_categories, "activecategory", /*activecategory*/ ctx[2]);
@@ -6588,28 +6581,28 @@
6588
6581
  set_custom_element_data(casino_categories, "lang", /*lang*/ ctx[6]);
6589
6582
  set_custom_element_data(casino_categories, "clientstyling", /*clientstyling*/ ctx[7]);
6590
6583
  set_custom_element_data(casino_categories, "clientstylingurl", /*clientstylingurl*/ ctx[8]);
6591
- add_location(casino_categories, file, 77, 6, 2598);
6584
+ add_location(casino_categories, file, 75, 6, 2542);
6592
6585
 
6593
6586
  attr_dev(div1, "class", div1_class_value = /*activeTab*/ ctx[10] === 'providers'
6594
6587
  ? 'NotVisible'
6595
6588
  : '');
6596
6589
 
6597
- add_location(div1, file, 76, 4, 2531);
6590
+ add_location(div1, file, 74, 4, 2475);
6598
6591
  set_custom_element_data(casino_providers, "endpoint", /*endpointproviders*/ ctx[3]);
6599
6592
  set_custom_element_data(casino_providers, "datasource", /*datasourceproviders*/ ctx[4]);
6600
6593
  set_custom_element_data(casino_providers, "lang", /*lang*/ ctx[6]);
6601
6594
  set_custom_element_data(casino_providers, "clientstyling", /*clientstyling*/ ctx[7]);
6602
6595
  set_custom_element_data(casino_providers, "clientstylingurl", /*clientstylingurl*/ ctx[8]);
6603
- add_location(casino_providers, file, 88, 6, 2930);
6596
+ add_location(casino_providers, file, 86, 6, 2874);
6604
6597
 
6605
6598
  attr_dev(div2, "class", div2_class_value = /*activeTab*/ ctx[10] === 'categories'
6606
6599
  ? 'NotVisible'
6607
6600
  : '');
6608
6601
 
6609
- add_location(div2, file, 87, 4, 2862);
6602
+ add_location(div2, file, 85, 4, 2806);
6610
6603
  attr_dev(div3, "class", "CasinoCategoriesProviders");
6611
- add_location(div3, file, 66, 2, 2095);
6612
- add_location(div4, file, 65, 0, 2052);
6604
+ add_location(div3, file, 64, 2, 2039);
6605
+ add_location(div4, file, 63, 0, 1996);
6613
6606
  },
6614
6607
  l: function claim(nodes) {
6615
6608
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -6793,21 +6786,19 @@
6793
6786
  fetch(url.href).then(res => res.text()).then(data => {
6794
6787
  cssFile.innerHTML = data;
6795
6788
 
6796
- if (customStylingContainer) {
6797
- setTimeout(
6798
- () => {
6799
- customStylingContainer.appendChild(cssFile);
6800
- },
6801
- 1
6802
- );
6803
-
6804
- setTimeout(
6805
- () => {
6806
- displayNone = false;
6807
- },
6808
- 500
6809
- );
6810
- }
6789
+ setTimeout(
6790
+ () => {
6791
+ customStylingContainer.appendChild(cssFile);
6792
+ },
6793
+ 1
6794
+ );
6795
+
6796
+ setTimeout(
6797
+ () => {
6798
+ displayNone = false;
6799
+ },
6800
+ 500
6801
+ );
6811
6802
  });
6812
6803
  };
6813
6804