@everymatrix/casino-game-thumbnail 0.0.95 → 0.0.99

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.
@@ -4558,10 +4558,10 @@
4558
4558
 
4559
4559
  /* src/CasinoGameThumbnail.svelte generated by Svelte v3.37.0 */
4560
4560
 
4561
- const { Object: Object_1, console: console_1 } = globals;
4561
+ const { Object: Object_1 } = globals;
4562
4562
  const file = "src/CasinoGameThumbnail.svelte";
4563
4563
 
4564
- // (156:6) {#if fav}
4564
+ // (142: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: "(156:6) {#if fav}",
4605
+ source: "(142:8) {#if fav}",
4606
4606
  ctx
4607
4607
  });
4608
4608
 
4609
4609
  return block;
4610
4610
  }
4611
4611
 
4612
- // (157:8) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
4612
+ // (143:10) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}
4613
4613
  function create_if_block_6(ctx) {
4614
4614
  let div;
4615
4615
  let svg;
@@ -4623,8 +4623,8 @@
4623
4623
  svg = svg_element("svg");
4624
4624
  path = svg_element("path");
4625
4625
  set_style(path, "fill", "white");
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, 159, 110, 5484);
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);
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, 158, 12, 5237);
4637
+ add_location(svg, file, 144, 14, 4778);
4638
4638
  attr_dev(div, "class", "FavIconContainer");
4639
- add_location(div, file, 157, 10, 5148);
4639
+ add_location(div, file, 143, 12, 4687);
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: "(157:8) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}",
4663
+ source: "(143:10) {#if !isMobile(userAgent) && !gamefavorite && isLoggedIn}",
4664
4664
  ctx
4665
4665
  });
4666
4666
 
4667
4667
  return block;
4668
4668
  }
4669
4669
 
4670
- // (185:75)
4670
+ // (171: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, 187, 8, 7910);
4683
+ add_location(path, file, 173, 10, 7509);
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, 186, 6, 7714);
4690
+ add_location(svg, file, 172, 8, 7311);
4691
4691
  attr_dev(div, "class", "FavIconContainer");
4692
- add_location(div, file, 185, 4, 7677);
4692
+ add_location(div, file, 171, 6, 7272);
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: "(185:75) ",
4709
+ source: "(171:77) ",
4710
4710
  ctx
4711
4711
  });
4712
4712
 
4713
4713
  return block;
4714
4714
  }
4715
4715
 
4716
- // (179:2) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}
4716
+ // (165: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, 181, 8, 7234);
4731
+ add_location(path, file, 167, 10, 6821);
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, 180, 6, 7038);
4738
+ add_location(svg, file, 166, 8, 6623);
4739
4739
  attr_dev(div, "class", "FavIconContainer");
4740
- add_location(div, file, 179, 4, 6955);
4740
+ add_location(div, file, 165, 6, 6538);
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: "(179:2) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}",
4764
+ source: "(165:4) {#if !isMobile(userAgent) && gamefavorite && isLoggedIn && favorites}",
4765
4765
  ctx
4766
4766
  });
4767
4767
 
4768
4768
  return block;
4769
4769
  }
4770
4770
 
4771
- // (193:4) {#if gameisnew}
4771
+ // (179: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, 193, 6, 8337);
4782
+ add_location(span, file, 179, 8, 7948);
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: "(193:4) {#if gameisnew}",
4800
+ source: "(179:6) {#if gameisnew}",
4801
4801
  ctx
4802
4802
  });
4803
4803
 
4804
4804
  return block;
4805
4805
  }
4806
4806
 
4807
- // (196:4) {#if (parseInt(gamepopularity) > 0)}
4807
+ // (182: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, 196, 6, 8471);
4818
+ add_location(span, file, 182, 8, 8088);
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: "(196:4) {#if (parseInt(gamepopularity) > 0)}",
4836
+ source: "(182:6) {#if (parseInt(gamepopularity) > 0)}",
4837
4837
  ctx
4838
4838
  });
4839
4839
 
4840
4840
  return block;
4841
4841
  }
4842
4842
 
4843
- // (201:0) {#if showgamename}
4843
+ // (187: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, 201, 2, 8599);
4854
+ add_location(p, file, 187, 4, 8226);
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: "(201:0) {#if showgamename}",
4876
+ source: "(187:2) {#if showgamename}",
4877
4877
  ctx
4878
4878
  });
4879
4879
 
@@ -4881,6 +4881,7 @@
4881
4881
  }
4882
4882
 
4883
4883
  function create_fragment(ctx) {
4884
+ let div4;
4884
4885
  let div3;
4885
4886
  let img;
4886
4887
  let img_src_value;
@@ -4908,7 +4909,6 @@
4908
4909
  let t9;
4909
4910
  let show_if = parseInt(/*gamepopularity*/ ctx[7]) > 0;
4910
4911
  let t10;
4911
- let if_block4_anchor;
4912
4912
  let mounted;
4913
4913
  let dispose;
4914
4914
  let if_block0 = /*fav*/ ctx[14] && create_if_block_5(ctx);
@@ -4928,6 +4928,7 @@
4928
4928
 
4929
4929
  const block = {
4930
4930
  c: function create() {
4931
+ div4 = element("div");
4931
4932
  div3 = element("div");
4932
4933
  img = element("img");
4933
4934
  t0 = space();
@@ -4952,34 +4953,35 @@
4952
4953
  if (if_block3) if_block3.c();
4953
4954
  t10 = space();
4954
4955
  if (if_block4) if_block4.c();
4955
- if_block4_anchor = empty();
4956
4956
  this.c = noop$1;
4957
4957
  if (img.src !== (img_src_value = /*gamethumbnail*/ ctx[2])) attr_dev(img, "src", img_src_value);
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, 152, 2, 4747);
4961
+ add_location(img, file, 138, 4, 4276);
4962
4962
  attr_dev(p, "class", "GameInfoName");
4963
4963
  attr_dev(p, "title", /*gamename*/ ctx[3]);
4964
- add_location(p, file, 171, 6, 6600);
4964
+ add_location(p, file, 157, 8, 6167);
4965
4965
  attr_dev(button, "class", "GameInfoBtn");
4966
- add_location(button, file, 172, 6, 6664);
4966
+ add_location(button, file, 158, 8, 6233);
4967
4967
  attr_dev(div0, "class", div0_class_value = "GameInfo " + (/*hover*/ ctx[10] ? "GameHovered" : ""));
4968
- add_location(div0, file, 154, 4, 5004);
4968
+ add_location(div0, file, 140, 6, 4537);
4969
4969
  attr_dev(span, "class", "GameInfoVendor");
4970
- add_location(span, file, 174, 4, 6789);
4970
+ add_location(span, file, 160, 6, 6362);
4971
4971
  attr_dev(div1, "class", "GameInfoWrapper");
4972
- add_location(div1, file, 153, 2, 4910);
4972
+ add_location(div1, file, 139, 4, 4441);
4973
4973
  attr_dev(div2, "class", "GameExtraInfo");
4974
- add_location(div2, file, 191, 2, 8283);
4974
+ add_location(div2, file, 177, 4, 7890);
4975
4975
  attr_dev(div3, "class", "GameContainer");
4976
- add_location(div3, file, 151, 0, 4574);
4976
+ add_location(div3, file, 137, 2, 4136);
4977
+ add_location(div4, file, 136, 0, 4093);
4977
4978
  },
4978
4979
  l: function claim(nodes) {
4979
4980
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
4980
4981
  },
4981
4982
  m: function mount(target, anchor) {
4982
- insert_dev(target, div3, anchor);
4983
+ insert_dev(target, div4, anchor);
4984
+ append_dev(div4, div3);
4983
4985
  append_dev(div3, img);
4984
4986
  /*img_binding*/ ctx[34](img);
4985
4987
  append_dev(div3, t0);
@@ -5002,10 +5004,9 @@
5002
5004
  if (if_block2) if_block2.m(div2, null);
5003
5005
  append_dev(div2, t9);
5004
5006
  if (if_block3) if_block3.m(div2, null);
5005
- /*div3_binding*/ ctx[40](div3);
5006
- insert_dev(target, t10, anchor);
5007
- if (if_block4) if_block4.m(target, anchor);
5008
- insert_dev(target, if_block4_anchor, anchor);
5007
+ append_dev(div4, t10);
5008
+ if (if_block4) if_block4.m(div4, null);
5009
+ /*div4_binding*/ ctx[40](div4);
5009
5010
 
5010
5011
  if (!mounted) {
5011
5012
  dispose = [
@@ -5103,7 +5104,7 @@
5103
5104
  } else {
5104
5105
  if_block4 = create_if_block(ctx);
5105
5106
  if_block4.c();
5106
- if_block4.m(if_block4_anchor.parentNode, if_block4_anchor);
5107
+ if_block4.m(div4, null);
5107
5108
  }
5108
5109
  } else if (if_block4) {
5109
5110
  if_block4.d(1);
@@ -5113,7 +5114,7 @@
5113
5114
  i: noop$1,
5114
5115
  o: noop$1,
5115
5116
  d: function destroy(detaching) {
5116
- if (detaching) detach_dev(div3);
5117
+ if (detaching) detach_dev(div4);
5117
5118
  /*img_binding*/ ctx[34](null);
5118
5119
  if (if_block0) if_block0.d();
5119
5120
 
@@ -5123,10 +5124,8 @@
5123
5124
 
5124
5125
  if (if_block2) if_block2.d();
5125
5126
  if (if_block3) if_block3.d();
5126
- /*div3_binding*/ ctx[40](null);
5127
- if (detaching) detach_dev(t10);
5128
- if (if_block4) if_block4.d(detaching);
5129
- if (detaching) detach_dev(if_block4_anchor);
5127
+ if (if_block4) if_block4.d();
5128
+ /*div4_binding*/ ctx[40](null);
5130
5129
  mounted = false;
5131
5130
  run_all(dispose);
5132
5131
  }
@@ -5274,20 +5273,6 @@
5274
5273
  $$invalidate(9, isLoggedIn = true);
5275
5274
  sessionID = session;
5276
5275
  playerID = userid;
5277
-
5278
- if (endpoint) {
5279
- checkSession(endpoint, session).then(
5280
- res => {
5281
- sessionID = res.data.Guid;
5282
- playerID = res.data.UserID;
5283
- $$invalidate(9, isLoggedIn = true);
5284
- },
5285
- err => {
5286
- $$invalidate(9, isLoggedIn = false);
5287
- console.error("err on session", err);
5288
- }
5289
- );
5290
- }
5291
5276
  };
5292
5277
 
5293
5278
  const setOnLoad = () => {
@@ -5321,19 +5306,14 @@
5321
5306
 
5322
5307
  const setClientStylingURL = () => {
5323
5308
  let cssFile = document.createElement("style");
5324
- cssFile.innerHTML = `@import ${clientstylingurl}`;
5325
5309
 
5326
- if (clientstylingurl) {
5327
- fetch(new URL(clientstylingurl)).then(res => res.text()).then(data => {
5328
- cssFile.innerHTML = data;
5310
+ fetch(new URL(clientstylingurl)).then(res => res.text()).then(data => {
5311
+ cssFile.innerHTML = data;
5329
5312
 
5330
- if (customStylingContainer) {
5331
- setTimeout(() => {
5332
- customStylingContainer.appendChild(cssFile);
5333
- });
5334
- }
5313
+ setTimeout(() => {
5314
+ customStylingContainer.appendChild(cssFile);
5335
5315
  });
5336
- }
5316
+ });
5337
5317
  };
5338
5318
 
5339
5319
  onMount(() => {
@@ -5366,7 +5346,7 @@
5366
5346
  ];
5367
5347
 
5368
5348
  Object_1.keys($$props).forEach(key => {
5369
- if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console_1.warn(`<undefined> was created with unknown prop '${key}'`);
5349
+ if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
5370
5350
  });
5371
5351
 
5372
5352
  function img_binding($$value) {
@@ -5382,7 +5362,7 @@
5382
5362
  const mouseleave_handler = () => leave();
5383
5363
  const click_handler_2 = () => toggleFavoriteGame(gameid);
5384
5364
 
5385
- function div3_binding($$value) {
5365
+ function div4_binding($$value) {
5386
5366
  binding_callbacks[$$value ? "unshift" : "push"](() => {
5387
5367
  customStylingContainer = $$value;
5388
5368
  $$invalidate(13, customStylingContainer);
@@ -5561,7 +5541,7 @@
5561
5541
  mouseenter_handler,
5562
5542
  mouseleave_handler,
5563
5543
  click_handler_2,
5564
- div3_binding
5544
+ div4_binding
5565
5545
  ];
5566
5546
  }
5567
5547