@everymatrix/casino-game-thumbnail 0.0.100 → 0.0.104

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.
@@ -4561,7 +4561,7 @@
4561
4561
  const { Object: Object_1 } = globals;
4562
4562
  const file = "src/CasinoGameThumbnail.svelte";
4563
4563
 
4564
- // (142:8) {#if fav}
4564
+ // (140:8) {#if fav}
4565
4565
  function create_if_block_5(ctx) {
4566
4566
  let show_if = !isMobile(/*userAgent*/ ctx[16]) && !/*gamefavorite*/ ctx[0] && /*isLoggedIn*/ ctx[9];
4567
4567
  let if_block_anchor;
@@ -4602,14 +4602,14 @@
4602
4602
  block,
4603
4603
  id: create_if_block_5.name,
4604
4604
  type: "if",
4605
- source: "(142:8) {#if fav}",
4605
+ source: "(140:8) {#if fav}",
4606
4606
  ctx
4607
4607
  });
4608
4608
 
4609
4609
  return block;
4610
4610
  }
4611
4611
 
4612
- // (143:10) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
4612
+ // (141:10) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
4613
4613
  function create_if_block_6(ctx) {
4614
4614
  let div;
4615
4615
  let svg;
@@ -4624,7 +4624,7 @@
4624
4624
  path = svg_element("path");
4625
4625
  set_style(path, "fill", "white");
4626
4626
  attr_dev(path, "d", "M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z");
4627
- add_location(path, file, 145, 112, 5027);
4627
+ add_location(path, file, 143, 112, 4924);
4628
4628
  attr_dev(svg, "version", "1.1");
4629
4629
  attr_dev(svg, "class", "UnfavoredIcon");
4630
4630
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
@@ -4634,9 +4634,9 @@
4634
4634
  attr_dev(svg, "viewBox", "0 0 512.001 512.001");
4635
4635
  set_style(svg, "enable-background", "new 0 0 512.001 512.001");
4636
4636
  attr_dev(svg, "xml:space", "preserve");
4637
- add_location(svg, file, 144, 14, 4778);
4637
+ add_location(svg, file, 142, 14, 4675);
4638
4638
  attr_dev(div, "class", "FavIconContainer");
4639
- add_location(div, file, 143, 12, 4687);
4639
+ add_location(div, file, 141, 12, 4584);
4640
4640
  },
4641
4641
  m: function mount(target, anchor) {
4642
4642
  insert_dev(target, div, anchor);
@@ -4660,14 +4660,14 @@
4660
4660
  block,
4661
4661
  id: create_if_block_6.name,
4662
4662
  type: "if",
4663
- source: "(143:10) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}",
4663
+ source: "(141:10) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}",
4664
4664
  ctx
4665
4665
  });
4666
4666
 
4667
4667
  return block;
4668
4668
  }
4669
4669
 
4670
- // (171:77)
4670
+ // (169:77)
4671
4671
  function create_if_block_4(ctx) {
4672
4672
  let div;
4673
4673
  let svg;
@@ -4680,16 +4680,16 @@
4680
4680
  path = svg_element("path");
4681
4681
  set_style(path, "fill", "white");
4682
4682
  attr_dev(path, "d", "m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z");
4683
- add_location(path, file, 173, 10, 7509);
4683
+ add_location(path, file, 171, 10, 7406);
4684
4684
  attr_dev(svg, "version", "1.1");
4685
4685
  attr_dev(svg, "class", "FavoredIcon");
4686
4686
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
4687
4687
  attr_dev(svg, "viewBox", "0 0 19.481 19.481");
4688
4688
  attr_dev(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
4689
4689
  attr_dev(svg, "enable-background", "new 0 0 19.481 19.481");
4690
- add_location(svg, file, 172, 8, 7311);
4690
+ add_location(svg, file, 170, 8, 7208);
4691
4691
  attr_dev(div, "class", "FavIconContainer");
4692
- add_location(div, file, 171, 6, 7272);
4692
+ add_location(div, file, 169, 6, 7169);
4693
4693
  },
4694
4694
  m: function mount(target, anchor) {
4695
4695
  insert_dev(target, div, anchor);
@@ -4706,14 +4706,14 @@
4706
4706
  block,
4707
4707
  id: create_if_block_4.name,
4708
4708
  type: "if",
4709
- source: "(171:77) ",
4709
+ source: "(169:77) ",
4710
4710
  ctx
4711
4711
  });
4712
4712
 
4713
4713
  return block;
4714
4714
  }
4715
4715
 
4716
- // (165:4) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
4716
+ // (163:4) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
4717
4717
  function create_if_block_3(ctx) {
4718
4718
  let div;
4719
4719
  let svg;
@@ -4728,16 +4728,16 @@
4728
4728
  path = svg_element("path");
4729
4729
  set_style(path, "fill", "white");
4730
4730
  attr_dev(path, "d", "m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z");
4731
- add_location(path, file, 167, 10, 6821);
4731
+ add_location(path, file, 165, 10, 6718);
4732
4732
  attr_dev(svg, "version", "1.1");
4733
4733
  attr_dev(svg, "class", "FavoredIcon");
4734
4734
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
4735
4735
  attr_dev(svg, "viewBox", "0 0 19.481 19.481");
4736
4736
  attr_dev(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
4737
4737
  attr_dev(svg, "enable-background", "new 0 0 19.481 19.481");
4738
- add_location(svg, file, 166, 8, 6623);
4738
+ add_location(svg, file, 164, 8, 6520);
4739
4739
  attr_dev(div, "class", "FavIconContainer");
4740
- add_location(div, file, 165, 6, 6538);
4740
+ add_location(div, file, 163, 6, 6435);
4741
4741
  },
4742
4742
  m: function mount(target, anchor) {
4743
4743
  insert_dev(target, div, anchor);
@@ -4761,14 +4761,14 @@
4761
4761
  block,
4762
4762
  id: create_if_block_3.name,
4763
4763
  type: "if",
4764
- source: "(165:4) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}",
4764
+ source: "(163:4) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}",
4765
4765
  ctx
4766
4766
  });
4767
4767
 
4768
4768
  return block;
4769
4769
  }
4770
4770
 
4771
- // (179:6) {#if gameisnew}
4771
+ // (177:6) {#if gameisnew}
4772
4772
  function create_if_block_2(ctx) {
4773
4773
  let span;
4774
4774
  let t_value = /*$_*/ ctx[15]("gameThumbnail.new") + "";
@@ -4779,7 +4779,7 @@
4779
4779
  span = element("span");
4780
4780
  t = text(t_value);
4781
4781
  attr_dev(span, "class", "GameExtraInfoLabel NewGameTag");
4782
- add_location(span, file, 179, 8, 7948);
4782
+ add_location(span, file, 177, 8, 7845);
4783
4783
  },
4784
4784
  m: function mount(target, anchor) {
4785
4785
  insert_dev(target, span, anchor);
@@ -4797,14 +4797,14 @@
4797
4797
  block,
4798
4798
  id: create_if_block_2.name,
4799
4799
  type: "if",
4800
- source: "(179:6) {#if gameisnew}",
4800
+ source: "(177:6) {#if gameisnew}",
4801
4801
  ctx
4802
4802
  });
4803
4803
 
4804
4804
  return block;
4805
4805
  }
4806
4806
 
4807
- // (182:6) {#if (parseInt(gamepopularity) > 0)}
4807
+ // (180:6) {#if (parseInt(gamepopularity) > 0)}
4808
4808
  function create_if_block_1(ctx) {
4809
4809
  let span;
4810
4810
  let t_value = /*$_*/ ctx[15]("gameThumbnail.hot") + "";
@@ -4815,7 +4815,7 @@
4815
4815
  span = element("span");
4816
4816
  t = text(t_value);
4817
4817
  attr_dev(span, "class", "GameExtraInfoLabel PopularGameTag");
4818
- add_location(span, file, 182, 8, 8088);
4818
+ add_location(span, file, 180, 8, 7985);
4819
4819
  },
4820
4820
  m: function mount(target, anchor) {
4821
4821
  insert_dev(target, span, anchor);
@@ -4833,14 +4833,14 @@
4833
4833
  block,
4834
4834
  id: create_if_block_1.name,
4835
4835
  type: "if",
4836
- source: "(182:6) {#if (parseInt(gamepopularity) > 0)}",
4836
+ source: "(180:6) {#if (parseInt(gamepopularity) > 0)}",
4837
4837
  ctx
4838
4838
  });
4839
4839
 
4840
4840
  return block;
4841
4841
  }
4842
4842
 
4843
- // (187:2) {#if showgamename}
4843
+ // (185:2) {#if showgamename}
4844
4844
  function create_if_block(ctx) {
4845
4845
  let p;
4846
4846
  let t;
@@ -4851,7 +4851,7 @@
4851
4851
  t = text(/*gamename*/ ctx[3]);
4852
4852
  attr_dev(p, "class", "GameNameBelow");
4853
4853
  attr_dev(p, "title", /*gamename*/ ctx[3]);
4854
- add_location(p, file, 187, 4, 8226);
4854
+ add_location(p, file, 185, 4, 8123);
4855
4855
  },
4856
4856
  m: function mount(target, anchor) {
4857
4857
  insert_dev(target, p, anchor);
@@ -4873,7 +4873,7 @@
4873
4873
  block,
4874
4874
  id: create_if_block.name,
4875
4875
  type: "if",
4876
- source: "(187:2) {#if showgamename}",
4876
+ source: "(185:2) {#if showgamename}",
4877
4877
  ctx
4878
4878
  });
4879
4879
 
@@ -4958,23 +4958,24 @@
4958
4958
  attr_dev(img, "class", img_class_value = "GameBg " + (/*hover*/ ctx[10] ? "GameContainerHovered" : "") + " " + (/*loaded*/ ctx[11] ? "Loaded" : ""));
4959
4959
  attr_dev(img, "alt", "game thumbnail");
4960
4960
  attr_dev(img, "loading", "lazy");
4961
- add_location(img, file, 138, 4, 4276);
4961
+ add_location(img, file, 136, 4, 4173);
4962
4962
  attr_dev(p, "class", "GameInfoName");
4963
4963
  attr_dev(p, "title", /*gamename*/ ctx[3]);
4964
- add_location(p, file, 157, 8, 6167);
4964
+ add_location(p, file, 155, 8, 6064);
4965
4965
  attr_dev(button, "class", "GameInfoBtn");
4966
- add_location(button, file, 158, 8, 6233);
4966
+ add_location(button, file, 156, 8, 6130);
4967
4967
  attr_dev(div0, "class", div0_class_value = "GameInfo " + (/*hover*/ ctx[10] ? "GameHovered" : ""));
4968
- add_location(div0, file, 140, 6, 4537);
4968
+ add_location(div0, file, 138, 6, 4434);
4969
4969
  attr_dev(span, "class", "GameInfoVendor");
4970
- add_location(span, file, 160, 6, 6362);
4970
+ add_location(span, file, 158, 6, 6259);
4971
4971
  attr_dev(div1, "class", "GameInfoWrapper");
4972
- add_location(div1, file, 139, 4, 4441);
4972
+ add_location(div1, file, 137, 4, 4338);
4973
4973
  attr_dev(div2, "class", "GameExtraInfo");
4974
- add_location(div2, file, 177, 4, 7890);
4975
- attr_dev(div3, "class", "GameContainer");
4976
- add_location(div3, file, 137, 2, 4136);
4977
- add_location(div4, file, 136, 0, 4093);
4974
+ add_location(div2, file, 175, 4, 7787);
4975
+ attr_dev(div3, "class", "GameInnerContainer");
4976
+ add_location(div3, file, 135, 2, 4028);
4977
+ attr_dev(div4, "class", "GameContainer");
4978
+ add_location(div4, file, 134, 0, 3963);
4978
4979
  },
4979
4980
  l: function claim(nodes) {
4980
4981
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -5220,9 +5221,6 @@
5220
5221
  if (searchitem) {
5221
5222
  window.postMessage({ type: "SearchedItemClicked", gameId }, window.location.href);
5222
5223
  }
5223
-
5224
- // @TODO Remove this for MostPlayed Mock
5225
- window.postMessage({ type: "MostPlayedGameAdd", gameId }, window.location.href);
5226
5224
  };
5227
5225
 
5228
5226
  const toggleFavoriteGame = id => {
@@ -5548,7 +5546,7 @@
5548
5546
  class CasinoGameThumbnail extends SvelteElement {
5549
5547
  constructor(options) {
5550
5548
  super();
5551
- this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:'Helvetica Neue', 'Helvetica', sans-serif}.GameContainer{display:flex;flex-direction:column;position:relative;width:100%;height:100%;overflow:hidden}.GameContainer .GameBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.GameContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65)}.GameContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:9.6px;text-align:center;font-size:17.6px}.GameContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6.4px;background:#DB2777;color:#FDF2F8;font-size:16px;border:2px solid #9D174D;border-radius:4.8px;cursor:pointer;transition:border 150ms ease-in-out}.GameContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid #F9A8D4}.GameContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:14.4px;font-weight:normal}.GameContainer:hover .GameInfoWrapper{display:block}.GameContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameContainer .GameExtraInfo{display:block;position:absolute;top:8px;left:8px}.GameContainer .GameExtraInfoLabel{font-size:11.2px;padding:3.2px;background-color:#DC2626;color:#FEF2F2;font-weight:bold;text-transform:uppercase;border-radius:4.8px}.GameNameBelow{color:#fff;position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer}</style>`;
5549
+ this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:'Helvetica Neue', 'Helvetica', sans-serif}.GameContainer{width:100%;height:100%}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65)}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:9.6px;text-align:center;font-size:17.6px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6.4px;background:#DB2777;color:#FDF2F8;font-size:16px;border:2px solid #9D174D;border-radius:4.8px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid #F9A8D4}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:14.4px;font-weight:normal}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;top:8px;left:8px}.GameInnerContainer .GameExtraInfoLabel{font-size:11.2px;padding:3.2px;background-color:#DC2626;color:#FEF2F2;font-weight:bold;text-transform:uppercase;border-radius:4.8px}.GameNameBelow{color:#fff;position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer}</style>`;
5552
5550
 
5553
5551
  init(
5554
5552
  this,