@everymatrix/player-account-gaming-limits-popup 0.0.162 → 0.0.163

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.
@@ -4448,15 +4448,19 @@
4448
4448
  m(lang, dict);
4449
4449
  }
4450
4450
 
4451
- const PlayerGamingLimitsTranslations = {
4451
+ const PlayerGamingLimitsPopupTranslations = {
4452
4452
  en: {
4453
4453
  popupText: {
4454
+ name: `Info`,
4454
4455
  amountChanged: `Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:`,
4456
+ defaultText: `Nulla ornare pulvinar dui. Nullam viverra, lacus vel consectetur euismod, ante lorem aliquam nisi, non faucibus nulla lacus sed sapien. Sed imperdiet tristique tincidunt.`
4455
4457
  }
4456
4458
  },
4457
4459
  ro: {
4458
4460
  popupText: {
4461
+ name: `Info`,
4459
4462
  amountChanged: `Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:`,
4463
+ defaultText: `Nulla ornare pulvinar dui. Nullam viverra, lacus vel consectetur euismod, ante lorem aliquam nisi, non faucibus nulla lacus sed sapien. Sed imperdiet tristique tincidunt.`
4460
4464
  }
4461
4465
  }
4462
4466
  };
@@ -4466,7 +4470,7 @@
4466
4470
  const { Object: Object_1 } = globals;
4467
4471
  const file = "src/PlayerAccountGamingLimitsPopup.svelte";
4468
4472
 
4469
- // (42:0) {#if showPopup}
4473
+ // (40:0) {#if showPopup}
4470
4474
  function create_if_block(ctx) {
4471
4475
  let section;
4472
4476
  let div5;
@@ -4474,6 +4478,7 @@
4474
4478
  let div0;
4475
4479
  let t1;
4476
4480
  let div1;
4481
+ let t2_value = /*$_*/ ctx[3]("popupText.name") + "";
4477
4482
  let t2;
4478
4483
  let t3;
4479
4484
  let div2;
@@ -4502,7 +4507,7 @@
4502
4507
  div0.textContent = "i";
4503
4508
  t1 = space();
4504
4509
  div1 = element("div");
4505
- t2 = text(/*infoname*/ ctx[2]);
4510
+ t2 = text(t2_value);
4506
4511
  t3 = space();
4507
4512
  div2 = element("div");
4508
4513
  svg = svg_element("svg");
@@ -4511,34 +4516,34 @@
4511
4516
  div4 = element("div");
4512
4517
  if_block.c();
4513
4518
  attr_dev(div0, "class", "InfoCardPopupIcon");
4514
- add_location(div0, file, 45, 8, 1569);
4519
+ add_location(div0, file, 43, 8, 1529);
4515
4520
  attr_dev(div1, "class", "InfoCardPopupTitle");
4516
- add_location(div1, file, 46, 8, 1616);
4521
+ add_location(div1, file, 44, 8, 1576);
4517
4522
  attr_dev(path, "stroke-linecap", "round");
4518
4523
  attr_dev(path, "stroke-linejoin", "round");
4519
4524
  attr_dev(path, "stroke-width", "2");
4520
4525
  attr_dev(path, "d", "M6 18L18 6M6 6l12 12");
4521
- add_location(path, file, 48, 120, 1873);
4526
+ add_location(path, file, 46, 120, 1845);
4522
4527
  attr_dev(svg, "class", "w-6 h-6");
4523
4528
  attr_dev(svg, "fill", "none");
4524
4529
  attr_dev(svg, "stroke", "currentColor");
4525
4530
  attr_dev(svg, "viewBox", "0 0 24 24");
4526
4531
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
4527
- add_location(svg, file, 48, 10, 1763);
4532
+ add_location(svg, file, 46, 10, 1735);
4528
4533
  attr_dev(div2, "class", "InfoCardPopupCloseButton");
4529
- add_location(div2, file, 47, 8, 1673);
4534
+ add_location(div2, file, 45, 8, 1645);
4530
4535
  attr_dev(div3, "class", "InfoCardPopupHeader");
4531
- add_location(div3, file, 44, 6, 1527);
4536
+ add_location(div3, file, 42, 6, 1487);
4532
4537
  attr_dev(div4, "class", "InfoCardPopupContentArea");
4533
- add_location(div4, file, 51, 6, 2016);
4538
+ add_location(div4, file, 49, 6, 1988);
4534
4539
 
4535
- attr_dev(div5, "class", div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[6] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
4540
+ attr_dev(div5, "class", div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[4] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
4536
4541
  ? "InfoCardPopupLimitChanged"
4537
4542
  : ""));
4538
4543
 
4539
- add_location(div5, file, 43, 4, 1387);
4540
- attr_dev(section, "class", /*isMobile*/ ctx[6] ? "InfoCardPopupMobileModal" : "");
4541
- add_location(section, file, 42, 2, 1322);
4544
+ add_location(div5, file, 41, 4, 1347);
4545
+ attr_dev(section, "class", /*isMobile*/ ctx[4] ? "InfoCardPopupMobileModal" : "");
4546
+ add_location(section, file, 40, 2, 1282);
4542
4547
  },
4543
4548
  m: function mount(target, anchor) {
4544
4549
  insert_dev(target, section, anchor);
@@ -4557,12 +4562,12 @@
4557
4562
  if_block.m(div4, null);
4558
4563
 
4559
4564
  if (!mounted) {
4560
- dispose = listen_dev(div2, "click", prevent_default(/*closeInfoPopup*/ ctx[7]), false, true, false);
4565
+ dispose = listen_dev(div2, "click", prevent_default(/*closeInfoPopup*/ ctx[5]), false, true, false);
4561
4566
  mounted = true;
4562
4567
  }
4563
4568
  },
4564
4569
  p: function update(ctx, dirty) {
4565
- if (dirty & /*infoname*/ 4) set_data_dev(t2, /*infoname*/ ctx[2]);
4570
+ if (dirty & /*$_*/ 8 && t2_value !== (t2_value = /*$_*/ ctx[3]("popupText.name") + "")) set_data_dev(t2, t2_value);
4566
4571
 
4567
4572
  if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
4568
4573
  if_block.p(ctx, dirty);
@@ -4576,7 +4581,7 @@
4576
4581
  }
4577
4582
  }
4578
4583
 
4579
- if (dirty & /*iteminfoamount*/ 1 && div5_class_value !== (div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[6] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
4584
+ if (dirty & /*iteminfoamount*/ 1 && div5_class_value !== (div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[4] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
4580
4585
  ? "InfoCardPopupLimitChanged"
4581
4586
  : ""))) {
4582
4587
  attr_dev(div5, "class", div5_class_value);
@@ -4594,31 +4599,32 @@
4594
4599
  block,
4595
4600
  id: create_if_block.name,
4596
4601
  type: "if",
4597
- source: "(42:0) {#if showPopup}",
4602
+ source: "(40:0) {#if showPopup}",
4598
4603
  ctx
4599
4604
  });
4600
4605
 
4601
4606
  return block;
4602
4607
  }
4603
4608
 
4604
- // (55:8) {:else}
4609
+ // (53:8) {:else}
4605
4610
  function create_else_block(ctx) {
4606
4611
  let p;
4612
+ let t_value = /*$_*/ ctx[3]("popupText.defaultText") + "";
4607
4613
  let t;
4608
4614
 
4609
4615
  const block = {
4610
4616
  c: function create() {
4611
4617
  p = element("p");
4612
- t = text(/*infocontent*/ ctx[1]);
4618
+ t = text(t_value);
4613
4619
  attr_dev(p, "class", "InfoCardPopupContent");
4614
- add_location(p, file, 55, 10, 2252);
4620
+ add_location(p, file, 53, 10, 2224);
4615
4621
  },
4616
4622
  m: function mount(target, anchor) {
4617
4623
  insert_dev(target, p, anchor);
4618
4624
  append_dev(p, t);
4619
4625
  },
4620
4626
  p: function update(ctx, dirty) {
4621
- if (dirty & /*infocontent*/ 2) set_data_dev(t, /*infocontent*/ ctx[1]);
4627
+ if (dirty & /*$_*/ 8 && t_value !== (t_value = /*$_*/ ctx[3]("popupText.defaultText") + "")) set_data_dev(t, t_value);
4622
4628
  },
4623
4629
  d: function destroy(detaching) {
4624
4630
  if (detaching) detach_dev(p);
@@ -4629,21 +4635,21 @@
4629
4635
  block,
4630
4636
  id: create_else_block.name,
4631
4637
  type: "else",
4632
- source: "(55:8) {:else}",
4638
+ source: "(53:8) {:else}",
4633
4639
  ctx
4634
4640
  });
4635
4641
 
4636
4642
  return block;
4637
4643
  }
4638
4644
 
4639
- // (53:8) {#if iteminfoamount}
4645
+ // (51:8) {#if iteminfoamount}
4640
4646
  function create_if_block_1(ctx) {
4641
4647
  let p;
4642
4648
 
4643
- let t_value = /*$_*/ ctx[5]("popupText.amountChanged", {
4649
+ let t_value = /*$_*/ ctx[3]("popupText.amountChanged", {
4644
4650
  values: {
4645
4651
  amount: /*iteminfoamount*/ ctx[0],
4646
- currency: /*playercurrency*/ ctx[3]
4652
+ currency: /*playercurrency*/ ctx[1]
4647
4653
  }
4648
4654
  }) + "";
4649
4655
 
@@ -4654,17 +4660,17 @@
4654
4660
  p = element("p");
4655
4661
  t = text(t_value);
4656
4662
  attr_dev(p, "class", "InfoCardPopupContent");
4657
- add_location(p, file, 53, 10, 2094);
4663
+ add_location(p, file, 51, 10, 2066);
4658
4664
  },
4659
4665
  m: function mount(target, anchor) {
4660
4666
  insert_dev(target, p, anchor);
4661
4667
  append_dev(p, t);
4662
4668
  },
4663
4669
  p: function update(ctx, dirty) {
4664
- if (dirty & /*$_, iteminfoamount, playercurrency*/ 41 && t_value !== (t_value = /*$_*/ ctx[5]("popupText.amountChanged", {
4670
+ if (dirty & /*$_, iteminfoamount, playercurrency*/ 11 && t_value !== (t_value = /*$_*/ ctx[3]("popupText.amountChanged", {
4665
4671
  values: {
4666
4672
  amount: /*iteminfoamount*/ ctx[0],
4667
- currency: /*playercurrency*/ ctx[3]
4673
+ currency: /*playercurrency*/ ctx[1]
4668
4674
  }
4669
4675
  }) + "")) set_data_dev(t, t_value);
4670
4676
  },
@@ -4677,7 +4683,7 @@
4677
4683
  block,
4678
4684
  id: create_if_block_1.name,
4679
4685
  type: "if",
4680
- source: "(53:8) {#if iteminfoamount}",
4686
+ source: "(51:8) {#if iteminfoamount}",
4681
4687
  ctx
4682
4688
  });
4683
4689
 
@@ -4686,7 +4692,7 @@
4686
4692
 
4687
4693
  function create_fragment(ctx) {
4688
4694
  let if_block_anchor;
4689
- let if_block = /*showPopup*/ ctx[4] && create_if_block(ctx);
4695
+ let if_block = /*showPopup*/ ctx[2] && create_if_block(ctx);
4690
4696
 
4691
4697
  const block = {
4692
4698
  c: function create() {
@@ -4702,7 +4708,7 @@
4702
4708
  insert_dev(target, if_block_anchor, anchor);
4703
4709
  },
4704
4710
  p: function update(ctx, [dirty]) {
4705
- if (/*showPopup*/ ctx[4]) {
4711
+ if (/*showPopup*/ ctx[2]) {
4706
4712
  if (if_block) {
4707
4713
  if_block.p(ctx, dirty);
4708
4714
  } else {
@@ -4737,26 +4743,24 @@
4737
4743
  function instance($$self, $$props, $$invalidate) {
4738
4744
  let $_;
4739
4745
  validate_store(X, "_");
4740
- component_subscribe($$self, X, $$value => $$invalidate(5, $_ = $$value));
4746
+ component_subscribe($$self, X, $$value => $$invalidate(3, $_ = $$value));
4741
4747
  let { $$slots: slots = {}, $$scope } = $$props;
4742
4748
  validate_slots("undefined", slots, []);
4743
4749
  let { showpopup = "" } = $$props;
4744
- let { infocontent = "" } = $$props;
4745
- let { infoname = "" } = $$props;
4746
4750
  let { iteminfoamount = "" } = $$props;
4747
4751
  let { lang = "en" } = $$props;
4748
4752
  let { playercurrency = "USD" } = $$props;
4749
- let showPopup = false;
4750
4753
 
4751
- Object.keys(PlayerGamingLimitsTranslations).forEach(item => {
4752
- addNewMessages(item, PlayerGamingLimitsTranslations[item]);
4754
+ Object.keys(PlayerGamingLimitsPopupTranslations).forEach(item => {
4755
+ addNewMessages(item, PlayerGamingLimitsPopupTranslations[item]);
4753
4756
  });
4754
4757
 
4758
+ let showPopup = false;
4755
4759
  let userAgent = window.navigator.userAgent;
4756
4760
  let isMobile = getDevice(userAgent) === "PC" ? false : true;
4757
4761
 
4758
4762
  const closeInfoPopup = () => {
4759
- $$invalidate(4, showPopup = false);
4763
+ $$invalidate(2, showPopup = false);
4760
4764
 
4761
4765
  window.postMessage(
4762
4766
  {
@@ -4768,7 +4772,7 @@
4768
4772
 
4769
4773
  const messageHandler = e => {
4770
4774
  if (e.data && e.data.type == "ClosePlayerAccountGamingLimitsPopup") {
4771
- $$invalidate(4, showPopup = false);
4775
+ $$invalidate(2, showPopup = false);
4772
4776
  }
4773
4777
  };
4774
4778
 
@@ -4777,7 +4781,7 @@
4777
4781
  $$invalidate(0, iteminfoamount = "0");
4778
4782
  }
4779
4783
 
4780
- $$invalidate(4, showPopup = showpopup);
4784
+ $$invalidate(2, showPopup = showpopup);
4781
4785
  };
4782
4786
 
4783
4787
  onMount(() => {
@@ -4788,26 +4792,17 @@
4788
4792
  };
4789
4793
  });
4790
4794
 
4791
- const writable_props = [
4792
- "showpopup",
4793
- "infocontent",
4794
- "infoname",
4795
- "iteminfoamount",
4796
- "lang",
4797
- "playercurrency"
4798
- ];
4795
+ const writable_props = ["showpopup", "iteminfoamount", "lang", "playercurrency"];
4799
4796
 
4800
4797
  Object_1.keys($$props).forEach(key => {
4801
4798
  if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
4802
4799
  });
4803
4800
 
4804
4801
  $$self.$$set = $$props => {
4805
- if ("showpopup" in $$props) $$invalidate(8, showpopup = $$props.showpopup);
4806
- if ("infocontent" in $$props) $$invalidate(1, infocontent = $$props.infocontent);
4807
- if ("infoname" in $$props) $$invalidate(2, infoname = $$props.infoname);
4802
+ if ("showpopup" in $$props) $$invalidate(6, showpopup = $$props.showpopup);
4808
4803
  if ("iteminfoamount" in $$props) $$invalidate(0, iteminfoamount = $$props.iteminfoamount);
4809
- if ("lang" in $$props) $$invalidate(9, lang = $$props.lang);
4810
- if ("playercurrency" in $$props) $$invalidate(3, playercurrency = $$props.playercurrency);
4804
+ if ("lang" in $$props) $$invalidate(7, lang = $$props.lang);
4805
+ if ("playercurrency" in $$props) $$invalidate(1, playercurrency = $$props.playercurrency);
4811
4806
  };
4812
4807
 
4813
4808
  $$self.$capture_state = () => ({
@@ -4815,10 +4810,8 @@
4815
4810
  getDevice,
4816
4811
  _: X,
4817
4812
  addNewMessages,
4818
- PlayerGamingLimitsTranslations,
4813
+ PlayerGamingLimitsPopupTranslations,
4819
4814
  showpopup,
4820
- infocontent,
4821
- infoname,
4822
4815
  iteminfoamount,
4823
4816
  lang,
4824
4817
  playercurrency,
@@ -4832,15 +4825,13 @@
4832
4825
  });
4833
4826
 
4834
4827
  $$self.$inject_state = $$props => {
4835
- if ("showpopup" in $$props) $$invalidate(8, showpopup = $$props.showpopup);
4836
- if ("infocontent" in $$props) $$invalidate(1, infocontent = $$props.infocontent);
4837
- if ("infoname" in $$props) $$invalidate(2, infoname = $$props.infoname);
4828
+ if ("showpopup" in $$props) $$invalidate(6, showpopup = $$props.showpopup);
4838
4829
  if ("iteminfoamount" in $$props) $$invalidate(0, iteminfoamount = $$props.iteminfoamount);
4839
- if ("lang" in $$props) $$invalidate(9, lang = $$props.lang);
4840
- if ("playercurrency" in $$props) $$invalidate(3, playercurrency = $$props.playercurrency);
4841
- if ("showPopup" in $$props) $$invalidate(4, showPopup = $$props.showPopup);
4830
+ if ("lang" in $$props) $$invalidate(7, lang = $$props.lang);
4831
+ if ("playercurrency" in $$props) $$invalidate(1, playercurrency = $$props.playercurrency);
4832
+ if ("showPopup" in $$props) $$invalidate(2, showPopup = $$props.showPopup);
4842
4833
  if ("userAgent" in $$props) userAgent = $$props.userAgent;
4843
- if ("isMobile" in $$props) $$invalidate(6, isMobile = $$props.isMobile);
4834
+ if ("isMobile" in $$props) $$invalidate(4, isMobile = $$props.isMobile);
4844
4835
  };
4845
4836
 
4846
4837
  if ($$props && "$$inject" in $$props) {
@@ -4848,15 +4839,13 @@
4848
4839
  }
4849
4840
 
4850
4841
  $$self.$$.update = () => {
4851
- if ($$self.$$.dirty & /*showpopup*/ 256) {
4842
+ if ($$self.$$.dirty & /*showpopup*/ 64) {
4852
4843
  showpopup && initialLoad();
4853
4844
  }
4854
4845
  };
4855
4846
 
4856
4847
  return [
4857
4848
  iteminfoamount,
4858
- infocontent,
4859
- infoname,
4860
4849
  playercurrency,
4861
4850
  showPopup,
4862
4851
  $_,
@@ -4883,12 +4872,10 @@
4883
4872
  create_fragment,
4884
4873
  safe_not_equal,
4885
4874
  {
4886
- showpopup: 8,
4887
- infocontent: 1,
4888
- infoname: 2,
4875
+ showpopup: 6,
4889
4876
  iteminfoamount: 0,
4890
- lang: 9,
4891
- playercurrency: 3
4877
+ lang: 7,
4878
+ playercurrency: 1
4892
4879
  }
4893
4880
  );
4894
4881
 
@@ -4905,18 +4892,11 @@
4905
4892
  }
4906
4893
 
4907
4894
  static get observedAttributes() {
4908
- return [
4909
- "showpopup",
4910
- "infocontent",
4911
- "infoname",
4912
- "iteminfoamount",
4913
- "lang",
4914
- "playercurrency"
4915
- ];
4895
+ return ["showpopup", "iteminfoamount", "lang", "playercurrency"];
4916
4896
  }
4917
4897
 
4918
4898
  get showpopup() {
4919
- return this.$$.ctx[8];
4899
+ return this.$$.ctx[6];
4920
4900
  }
4921
4901
 
4922
4902
  set showpopup(showpopup) {
@@ -4924,24 +4904,6 @@
4924
4904
  flush();
4925
4905
  }
4926
4906
 
4927
- get infocontent() {
4928
- return this.$$.ctx[1];
4929
- }
4930
-
4931
- set infocontent(infocontent) {
4932
- this.$set({ infocontent });
4933
- flush();
4934
- }
4935
-
4936
- get infoname() {
4937
- return this.$$.ctx[2];
4938
- }
4939
-
4940
- set infoname(infoname) {
4941
- this.$set({ infoname });
4942
- flush();
4943
- }
4944
-
4945
4907
  get iteminfoamount() {
4946
4908
  return this.$$.ctx[0];
4947
4909
  }
@@ -4952,7 +4914,7 @@
4952
4914
  }
4953
4915
 
4954
4916
  get lang() {
4955
- return this.$$.ctx[9];
4917
+ return this.$$.ctx[7];
4956
4918
  }
4957
4919
 
4958
4920
  set lang(lang) {
@@ -4961,7 +4923,7 @@
4961
4923
  }
4962
4924
 
4963
4925
  get playercurrency() {
4964
- return this.$$.ctx[3];
4926
+ return this.$$.ctx[1];
4965
4927
  }
4966
4928
 
4967
4929
  set playercurrency(playercurrency) {