@everymatrix/casino-filter-page 0.0.94 → 0.0.98

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.
@@ -4451,7 +4451,7 @@
4451
4451
  filters: {
4452
4452
  loading: 'Loading',
4453
4453
  filterModalTitle: 'Filter',
4454
- filterModalSubtitle: 'You can select multiple vendors',
4454
+ filterModalSubtitle: 'You can select multiple options',
4455
4455
  filterClear: 'Reset filter',
4456
4456
  filterApply: 'Done'
4457
4457
  }
@@ -4460,7 +4460,7 @@
4460
4460
  filters: {
4461
4461
  loading: 'Loading',
4462
4462
  filterModalTitle: 'Filter',
4463
- filterModalSubtitle: 'You can select multiple vendors',
4463
+ filterModalSubtitle: 'Mehrfachauswahl möglich',
4464
4464
  filterClear: 'Filter zurücksetzen',
4465
4465
  filterApply: 'Fertig'
4466
4466
  }
@@ -4469,7 +4469,7 @@
4469
4469
  filters: {
4470
4470
  loading: 'Loading',
4471
4471
  filterModalTitle: 'Filtro',
4472
- filterModalSubtitle: 'You can select multiple vendors',
4472
+ filterModalSubtitle: 'È possibile la selezione multipla',
4473
4473
  filterClear: 'Resetta il filtro',
4474
4474
  filterApply: 'Fatto'
4475
4475
  }
@@ -4523,7 +4523,7 @@
4523
4523
  filters: {
4524
4524
  loading: 'Učitavanje',
4525
4525
  filterModalTitle: 'Filter',
4526
- filterModalSubtitle: 'You can select multiple vendors',
4526
+ filterModalSubtitle: 'Možete odabrati više opcija',
4527
4527
  filterClear: 'Ponovno postavi filter',
4528
4528
  filterApply: 'Gotovo'
4529
4529
  }
@@ -4532,7 +4532,7 @@
4532
4532
  filters: {
4533
4533
  loading: 'betöltés',
4534
4534
  filterModalTitle: 'Szűrő',
4535
- filterModalSubtitle: 'You can select multiple vendors',
4535
+ filterModalSubtitle: 'Több lehetőséget is kiválaszthat',
4536
4536
  filterClear: 'Szűrő visszaállítása',
4537
4537
  filterApply: 'Kész'
4538
4538
  }
@@ -4541,7 +4541,7 @@
4541
4541
  filters: {
4542
4542
  loading: 'Ładowanie',
4543
4543
  filterModalTitle: 'Wyszukaj',
4544
- filterModalSubtitle: 'You can select multiple vendors',
4544
+ filterModalSubtitle: 'Możliwy wybór wielokrotny',
4545
4545
  filterClear: 'Wyłącz filtr',
4546
4546
  filterApply: 'Gotowe'
4547
4547
  }
@@ -4550,7 +4550,7 @@
4550
4550
  filters: {
4551
4551
  loading: 'A carregar',
4552
4552
  filterModalTitle: 'Filtrar',
4553
- filterModalSubtitle: 'You can select multiple vendors',
4553
+ filterModalSubtitle: 'Escolha múltipla possível',
4554
4554
  filterClear: 'Limpar filtro',
4555
4555
  filterApply: 'Feito'
4556
4556
  }
@@ -4559,7 +4559,7 @@
4559
4559
  filters: {
4560
4560
  loading: 'Loading',
4561
4561
  filterModalTitle: 'Filter',
4562
- filterModalSubtitle: 'You can select multiple vendors',
4562
+ filterModalSubtitle: 'Izberete lahko več možnosti',
4563
4563
  filterClear: 'Ponastavi filter',
4564
4564
  filterApply: 'Končano'
4565
4565
  }
@@ -4568,7 +4568,7 @@
4568
4568
  filters: {
4569
4569
  loading: 'Loading',
4570
4570
  filterModalTitle: 'Filter',
4571
- filterModalSubtitle: 'You can select multiple vendors',
4571
+ filterModalSubtitle: 'Moguć je višestruki izbor',
4572
4572
  filterClear: 'Resetujte filter',
4573
4573
  filterApply: 'Gotovo'
4574
4574
  }
@@ -4586,7 +4586,7 @@
4586
4586
  return child_ctx;
4587
4587
  }
4588
4588
 
4589
- // (236:0) {:else}
4589
+ // (236:2) {:else}
4590
4590
  function create_else_block(ctx) {
4591
4591
  let div2;
4592
4592
  let section0;
@@ -4633,25 +4633,25 @@
4633
4633
  div1 = element("div");
4634
4634
  t6 = text(t6_value);
4635
4635
  attr_dev(h4, "class", "FilterHeaderTitle");
4636
- add_location(h4, file, 239, 8, 9965);
4636
+ add_location(h4, file, 239, 10, 9922);
4637
4637
  attr_dev(h5, "class", "FilterHeaderSubtitle");
4638
- add_location(h5, file, 240, 8, 10041);
4638
+ add_location(h5, file, 240, 10, 10000);
4639
4639
  attr_dev(div0, "class", "FilterHeaderDetails");
4640
- add_location(div0, file, 238, 6, 9923);
4640
+ add_location(div0, file, 238, 8, 9878);
4641
4641
  attr_dev(section0, "class", "FilterHeaderSection");
4642
- add_location(section0, file, 237, 4, 9879);
4642
+ add_location(section0, file, 237, 6, 9832);
4643
4643
  attr_dev(section1, "class", "FilterContentSection");
4644
- add_location(section1, file, 243, 4, 10147);
4644
+ add_location(section1, file, 243, 6, 10112);
4645
4645
 
4646
4646
  attr_dev(div1, "class", div1_class_value = "ApplyFiltersButton " + (!/*applyFilters*/ ctx[2]
4647
4647
  ? "ApplyFilterButtonDisabled"
4648
4648
  : ""));
4649
4649
 
4650
- add_location(div1, file, 263, 6, 10967);
4650
+ add_location(div1, file, 263, 8, 10972);
4651
4651
  attr_dev(section2, "class", "FilterFooterSection");
4652
- add_location(section2, file, 257, 4, 10703);
4652
+ add_location(section2, file, 257, 6, 10696);
4653
4653
  attr_dev(div2, "class", div2_class_value = "FilterModalContent " + (/*mobileView*/ ctx[1] ? "FilterModalMobileContent" : ""));
4654
- add_location(div2, file, 236, 2, 9760);
4654
+ add_location(div2, file, 236, 4, 9745);
4655
4655
  },
4656
4656
  m: function mount(target, anchor) {
4657
4657
  insert_dev(target, div2, anchor);
@@ -4671,7 +4671,6 @@
4671
4671
  append_dev(section2, t5);
4672
4672
  append_dev(section2, div1);
4673
4673
  append_dev(div1, t6);
4674
- /*div2_binding*/ ctx[20](div2);
4675
4674
 
4676
4675
  if (!mounted) {
4677
4676
  dispose = listen_dev(div1, "click", /*click_handler_2*/ ctx[19], false, false, false);
@@ -4724,7 +4723,6 @@
4724
4723
  if (detaching) detach_dev(div2);
4725
4724
  if (if_block0) if_block0.d();
4726
4725
  if (if_block1) if_block1.d();
4727
- /*div2_binding*/ ctx[20](null);
4728
4726
  mounted = false;
4729
4727
  dispose();
4730
4728
  }
@@ -4734,14 +4732,14 @@
4734
4732
  block,
4735
4733
  id: create_else_block.name,
4736
4734
  type: "else",
4737
- source: "(236:0) {:else}",
4735
+ source: "(236:2) {:else}",
4738
4736
  ctx
4739
4737
  });
4740
4738
 
4741
4739
  return block;
4742
4740
  }
4743
4741
 
4744
- // (233:0) {#if isLoading}
4742
+ // (234:2) {#if isLoading}
4745
4743
  function create_if_block(ctx) {
4746
4744
  let div;
4747
4745
 
@@ -4749,7 +4747,7 @@
4749
4747
  c: function create() {
4750
4748
  div = element("div");
4751
4749
  attr_dev(div, "class", "lds-dual-ring");
4752
- add_location(div, file, 234, 2, 9716);
4750
+ add_location(div, file, 234, 4, 9697);
4753
4751
  },
4754
4752
  m: function mount(target, anchor) {
4755
4753
  insert_dev(target, div, anchor);
@@ -4764,14 +4762,14 @@
4764
4762
  block,
4765
4763
  id: create_if_block.name,
4766
4764
  type: "if",
4767
- source: "(233:0) {#if isLoading}",
4765
+ source: "(234:2) {#if isLoading}",
4768
4766
  ctx
4769
4767
  });
4770
4768
 
4771
4769
  return block;
4772
4770
  }
4773
4771
 
4774
- // (245:6) {#if vendorsArray}
4772
+ // (245:8) {#if vendorsArray}
4775
4773
  function create_if_block_3(ctx) {
4776
4774
  let each_1_anchor;
4777
4775
  let each_value = /*vendorsArray*/ ctx[0];
@@ -4832,14 +4830,14 @@
4832
4830
  block,
4833
4831
  id: create_if_block_3.name,
4834
4832
  type: "if",
4835
- source: "(245:6) {#if vendorsArray}",
4833
+ source: "(245:8) {#if vendorsArray}",
4836
4834
  ctx
4837
4835
  });
4838
4836
 
4839
4837
  return block;
4840
4838
  }
4841
4839
 
4842
- // (249:12) {#if vendor.isFilterSelected}
4840
+ // (249:14) {#if vendor.isFilterSelected}
4843
4841
  function create_if_block_4(ctx) {
4844
4842
  let div1;
4845
4843
  let div0;
@@ -4849,9 +4847,9 @@
4849
4847
  div1 = element("div");
4850
4848
  div0 = element("div");
4851
4849
  attr_dev(div0, "class", "CheckMark");
4852
- add_location(div0, file, 250, 16, 10570);
4850
+ add_location(div0, file, 250, 18, 10549);
4853
4851
  attr_dev(div1, "class", "FilterIconContainer");
4854
- add_location(div1, file, 249, 14, 10520);
4852
+ add_location(div1, file, 249, 16, 10497);
4855
4853
  },
4856
4854
  m: function mount(target, anchor) {
4857
4855
  insert_dev(target, div1, anchor);
@@ -4866,14 +4864,14 @@
4866
4864
  block,
4867
4865
  id: create_if_block_4.name,
4868
4866
  type: "if",
4869
- source: "(249:12) {#if vendor.isFilterSelected}",
4867
+ source: "(249:14) {#if vendor.isFilterSelected}",
4870
4868
  ctx
4871
4869
  });
4872
4870
 
4873
4871
  return block;
4874
4872
  }
4875
4873
 
4876
- // (246:8) {#each vendorsArray as vendor}
4874
+ // (246:10) {#each vendorsArray as vendor}
4877
4875
  function create_each_block(ctx) {
4878
4876
  let div;
4879
4877
  let img;
@@ -4900,13 +4898,13 @@
4900
4898
  attr_dev(img, "class", "VendorImage");
4901
4899
  if (img.src !== (img_src_value = /*vendor*/ ctx[32].image)) attr_dev(img, "src", img_src_value);
4902
4900
  attr_dev(img, "alt", img_alt_value = /*vendor*/ ctx[32].name);
4903
- add_location(img, file, 247, 12, 10395);
4901
+ add_location(img, file, 247, 14, 10368);
4904
4902
 
4905
4903
  attr_dev(div, "class", div_class_value = "VendorBox " + (/*vendor*/ ctx[32].isFilterSelected
4906
4904
  ? "VendorBoxSelected"
4907
4905
  : ""));
4908
4906
 
4909
- add_location(div, file, 246, 10, 10260);
4907
+ add_location(div, file, 246, 12, 10231);
4910
4908
  },
4911
4909
  m: function mount(target, anchor) {
4912
4910
  insert_dev(target, div, anchor);
@@ -4960,14 +4958,14 @@
4960
4958
  block,
4961
4959
  id: create_each_block.name,
4962
4960
  type: "each",
4963
- source: "(246:8) {#each vendorsArray as vendor}",
4961
+ source: "(246:10) {#each vendorsArray as vendor}",
4964
4962
  ctx
4965
4963
  });
4966
4964
 
4967
4965
  return block;
4968
4966
  }
4969
4967
 
4970
- // (259:6) {#if provisionalVendorArray}
4968
+ // (259:8) {#if provisionalVendorArray}
4971
4969
  function create_if_block_1(ctx) {
4972
4970
  let if_block_anchor;
4973
4971
  let if_block = /*provisionalVendorArray*/ ctx[3].length && create_if_block_2(ctx);
@@ -5005,14 +5003,14 @@
5005
5003
  block,
5006
5004
  id: create_if_block_1.name,
5007
5005
  type: "if",
5008
- source: "(259:6) {#if provisionalVendorArray}",
5006
+ source: "(259:8) {#if provisionalVendorArray}",
5009
5007
  ctx
5010
5008
  });
5011
5009
 
5012
5010
  return block;
5013
5011
  }
5014
5012
 
5015
- // (260:8) {#if provisionalVendorArray.length}
5013
+ // (260:10) {#if provisionalVendorArray.length}
5016
5014
  function create_if_block_2(ctx) {
5017
5015
  let div;
5018
5016
  let t_value = /*$_*/ ctx[6]("filters.filterClear") + "";
@@ -5025,7 +5023,7 @@
5025
5023
  div = element("div");
5026
5024
  t = text(t_value);
5027
5025
  attr_dev(div, "class", "ClearFiltersButton");
5028
- add_location(div, file, 260, 10, 10830);
5026
+ add_location(div, file, 260, 12, 10829);
5029
5027
  },
5030
5028
  m: function mount(target, anchor) {
5031
5029
  insert_dev(target, div, anchor);
@@ -5050,7 +5048,7 @@
5050
5048
  block,
5051
5049
  id: create_if_block_2.name,
5052
5050
  type: "if",
5053
- source: "(260:8) {#if provisionalVendorArray.length}",
5051
+ source: "(260:10) {#if provisionalVendorArray.length}",
5054
5052
  ctx
5055
5053
  });
5056
5054
 
@@ -5058,7 +5056,7 @@
5058
5056
  }
5059
5057
 
5060
5058
  function create_fragment(ctx) {
5061
- let if_block_anchor;
5059
+ let div;
5062
5060
 
5063
5061
  function select_block_type(ctx, dirty) {
5064
5062
  if (/*isLoading*/ ctx[4]) return create_if_block;
@@ -5070,16 +5068,18 @@
5070
5068
 
5071
5069
  const block = {
5072
5070
  c: function create() {
5071
+ div = element("div");
5073
5072
  if_block.c();
5074
- if_block_anchor = empty();
5075
5073
  this.c = noop$1;
5074
+ add_location(div, file, 232, 0, 9634);
5076
5075
  },
5077
5076
  l: function claim(nodes) {
5078
5077
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
5079
5078
  },
5080
5079
  m: function mount(target, anchor) {
5081
- if_block.m(target, anchor);
5082
- insert_dev(target, if_block_anchor, anchor);
5080
+ insert_dev(target, div, anchor);
5081
+ if_block.m(div, null);
5082
+ /*div_binding*/ ctx[20](div);
5083
5083
  },
5084
5084
  p: function update(ctx, dirty) {
5085
5085
  if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
@@ -5090,15 +5090,16 @@
5090
5090
 
5091
5091
  if (if_block) {
5092
5092
  if_block.c();
5093
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
5093
+ if_block.m(div, null);
5094
5094
  }
5095
5095
  }
5096
5096
  },
5097
5097
  i: noop$1,
5098
5098
  o: noop$1,
5099
5099
  d: function destroy(detaching) {
5100
- if_block.d(detaching);
5101
- if (detaching) detach_dev(if_block_anchor);
5100
+ if (detaching) detach_dev(div);
5101
+ if_block.d();
5102
+ /*div_binding*/ ctx[20](null);
5102
5103
  }
5103
5104
  };
5104
5105
 
@@ -5194,12 +5195,12 @@
5194
5195
  break;
5195
5196
  case "AvailableVendors":
5196
5197
  $$invalidate(0, vendorsArray = e.data.venArray);
5197
- $$invalidate(3, provisionalVendorArray = vendorsArray.reduce((a, o) => (o.isFilterSelected && a.push(o.id), a), []));
5198
+ $$invalidate(3, provisionalVendorArray = vendorsArray.reduce((arr, obj) => (obj.isFilterSelected && arr.push(obj.id), arr), []));
5198
5199
  break;
5199
5200
  case "UpdateSelectedVendorFilters":
5200
5201
  $$invalidate(0, vendorsArray = e.data.venArray);
5201
5202
  if (vendorsArray) {
5202
- $$invalidate(3, provisionalVendorArray = vendorsArray.reduce((a, o) => (o.isFilterSelected && a.push(o.id), a), []));
5203
+ $$invalidate(3, provisionalVendorArray = vendorsArray.reduce((arr, obj) => (obj.isFilterSelected && arr.push(obj.id), arr), []));
5203
5204
  }
5204
5205
  break;
5205
5206
  case "ClearVendorFilters":
@@ -5208,8 +5209,8 @@
5208
5209
  $$invalidate(2, applyFilters = false);
5209
5210
  break;
5210
5211
  case "ModalClosed":
5211
- vendorsArray.forEach(ven => {
5212
- ven.isFilterSelected = false;
5212
+ vendorsArray.forEach(vendor => {
5213
+ vendor.isFilterSelected = false;
5213
5214
  });
5214
5215
  window.postMessage({ type: "UpdateFilters", vendorsArray }, window.location.href);
5215
5216
  break;
@@ -5306,9 +5307,11 @@
5306
5307
  window.postMessage({ type: "ClearFilters", vendorsArray }, window.location.href);
5307
5308
  filtersMarkedForClearance = true;
5308
5309
 
5309
- $$invalidate(2, applyFilters = !provisionalVendorArray.length && checkArrayEquality(provisionalVendorArray, previousFilterSelection)
5310
- ? false
5311
- : true);
5310
+ // check if there are any differences between current and previous selections
5311
+ $$invalidate(2, applyFilters = checkArrayEquality(provisionalVendorArray, previousFilterSelection));
5312
+
5313
+ // clear current array
5314
+ $$invalidate(3, provisionalVendorArray = []);
5312
5315
 
5313
5316
  if (filters !== null) {
5314
5317
  filters = JSON.parse(filters);
@@ -5342,19 +5345,16 @@
5342
5345
 
5343
5346
  const setClientStylingURL = () => {
5344
5347
  let cssFile = document.createElement("style");
5345
- cssFile.innerHTML = `@import ${clientstylingurl}`;
5346
5348
 
5347
- if (clientstylingurl) {
5348
- fetch(new URL(clientstylingurl)).then(res => res.text()).then(data => {
5349
- cssFile.innerHTML = data;
5349
+ fetch(new URL(clientstylingurl)).then(res => res.text()).then(data => {
5350
+ cssFile.innerHTML = data;
5350
5351
 
5351
- if (customStylingContainer) {
5352
- setTimeout(() => {
5353
- customStylingContainer.appendChild(cssFile);
5354
- });
5355
- }
5356
- });
5357
- }
5352
+ if (customStylingContainer) {
5353
+ setTimeout(() => {
5354
+ customStylingContainer.appendChild(cssFile);
5355
+ });
5356
+ }
5357
+ });
5358
5358
  };
5359
5359
 
5360
5360
  onMount(() => {
@@ -5387,7 +5387,7 @@
5387
5387
  const click_handler_1 = () => clearVendorFilter();
5388
5388
  const click_handler_2 = () => applyVendorFilter();
5389
5389
 
5390
- function div2_binding($$value) {
5390
+ function div_binding($$value) {
5391
5391
  binding_callbacks[$$value ? "unshift" : "push"](() => {
5392
5392
  customStylingContainer = $$value;
5393
5393
  $$invalidate(5, customStylingContainer);
@@ -5497,7 +5497,7 @@
5497
5497
  click_handler,
5498
5498
  click_handler_1,
5499
5499
  click_handler_2,
5500
- div2_binding
5500
+ div_binding
5501
5501
  ];
5502
5502
  }
5503
5503