@everymatrix/casino-tournaments-slider-controller 0.0.263 → 0.0.266

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.
@@ -1,6 +1,6 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@everymatrix/casino-tournaments-rank')) :
3
- typeof define === 'function' && define.amd ? define(['@everymatrix/casino-tournaments-rank'], factory) :
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.app = factory());
5
5
  }(this, (function () { 'use strict';
6
6
 
@@ -5557,6 +5557,569 @@
5557
5557
  }(typeof globalThis === 'undefined' ? (typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : commonjsGlobal) : globalThis));
5558
5558
  });
5559
5559
 
5560
+ var img$3 = "data:image/svg+xml,%3csvg width='17' height='17' aria-hidden='true' focusable='false' data-prefix='fas' data-icon='award' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' class='svg-inline--fa fa-award fa-w-12 fa-3x'%3e %3cpath fill='currentColor' d='M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z' class=''%3e %3c/path%3e%3c/svg%3e";
5561
+
5562
+ var img$2 = "data:image/svg+xml,%3csvg width='17' height='17' aria-hidden='true' focusable='false' data-prefix='fas' data-icon='user' class='svg-inline--fa fa-user' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3e %3cpath fill='currentColor' d='M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z'%3e %3c/path%3e%3c/svg%3e";
5563
+
5564
+ var img$1 = "data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'%3e %3c/path%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";
5565
+
5566
+ var img = "data:image/svg+xml,%3csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";
5567
+
5568
+ /* ../casino-tournaments-rank/src/CasinoTournamentsRank.svelte generated by Svelte v3.37.0 */
5569
+ const file$1 = "../casino-tournaments-rank/src/CasinoTournamentsRank.svelte";
5570
+
5571
+ // (71:4) {#if showicon== 'true'}
5572
+ function create_if_block_1$1(ctx) {
5573
+ let span;
5574
+ let img;
5575
+ let img_src_value;
5576
+
5577
+ const block = {
5578
+ c: function create() {
5579
+ span = element("span");
5580
+ img = element("img");
5581
+ attr_dev(img, "alt", "user");
5582
+ if (img.src !== (img_src_value = img$2)) attr_dev(img, "src", img_src_value);
5583
+ add_location(img, file$1, 72, 6, 2402);
5584
+ attr_dev(span, "class", "Icon UserIcon");
5585
+ add_location(span, file$1, 71, 4, 2367);
5586
+ },
5587
+ m: function mount(target, anchor) {
5588
+ insert_dev(target, span, anchor);
5589
+ append_dev(span, img);
5590
+ },
5591
+ p: noop$1,
5592
+ d: function destroy(detaching) {
5593
+ if (detaching) detach_dev(span);
5594
+ }
5595
+ };
5596
+
5597
+ dispatch_dev("SvelteRegisterBlock", {
5598
+ block,
5599
+ id: create_if_block_1$1.name,
5600
+ type: "if",
5601
+ source: "(71:4) {#if showicon== 'true'}",
5602
+ ctx
5603
+ });
5604
+
5605
+ return block;
5606
+ }
5607
+
5608
+ // (82:4) {#if showicon== 'true'}
5609
+ function create_if_block$1(ctx) {
5610
+ let span;
5611
+ let img;
5612
+ let img_src_value;
5613
+
5614
+ const block = {
5615
+ c: function create() {
5616
+ span = element("span");
5617
+ img = element("img");
5618
+ attr_dev(img, "alt", "prize");
5619
+ if (img.src !== (img_src_value = img$3)) attr_dev(img, "src", img_src_value);
5620
+ add_location(img, file$1, 83, 6, 3084);
5621
+ attr_dev(span, "class", "Icon PrizeIcon");
5622
+ add_location(span, file$1, 82, 4, 3048);
5623
+ },
5624
+ m: function mount(target, anchor) {
5625
+ insert_dev(target, span, anchor);
5626
+ append_dev(span, img);
5627
+ },
5628
+ p: noop$1,
5629
+ d: function destroy(detaching) {
5630
+ if (detaching) detach_dev(span);
5631
+ }
5632
+ };
5633
+
5634
+ dispatch_dev("SvelteRegisterBlock", {
5635
+ block,
5636
+ id: create_if_block$1.name,
5637
+ type: "if",
5638
+ source: "(82:4) {#if showicon== 'true'}",
5639
+ ctx
5640
+ });
5641
+
5642
+ return block;
5643
+ }
5644
+
5645
+ function create_fragment$1(ctx) {
5646
+ let div2;
5647
+ let div0;
5648
+ let t0;
5649
+ let span0;
5650
+ let t1;
5651
+
5652
+ let t2_value = (/*overallrank*/ ctx[1] == 0
5653
+ ? "-"
5654
+ : /*userrank*/ ctx[0] ? /*userrank*/ ctx[0] : "-") + "";
5655
+
5656
+ let t2;
5657
+ let t3;
5658
+
5659
+ let t4_value = (/*overallrank*/ ctx[1] == 0
5660
+ ? "-"
5661
+ : /*overallrank*/ ctx[1]) + "";
5662
+
5663
+ let t4;
5664
+ let t5;
5665
+ let img0;
5666
+ let img0_src_value;
5667
+ let img0_class_value;
5668
+ let t6;
5669
+ let img1;
5670
+ let img1_src_value;
5671
+ let img1_class_value;
5672
+ let t7;
5673
+ let div1;
5674
+ let t8;
5675
+ let span1;
5676
+ let t9;
5677
+ let div1_class_value;
5678
+ let div2_class_value;
5679
+ let if_block0 = /*showicon*/ ctx[4] == "true" && create_if_block_1$1(ctx);
5680
+ let if_block1 = /*showicon*/ ctx[4] == "true" && create_if_block$1(ctx);
5681
+
5682
+ const block = {
5683
+ c: function create() {
5684
+ div2 = element("div");
5685
+ div0 = element("div");
5686
+ if (if_block0) if_block0.c();
5687
+ t0 = space();
5688
+ span0 = element("span");
5689
+ t1 = text(/*rankprefix*/ ctx[3]);
5690
+ t2 = text(t2_value);
5691
+ t3 = text("/");
5692
+ t4 = text(t4_value);
5693
+ t5 = space();
5694
+ img0 = element("img");
5695
+ t6 = space();
5696
+ img1 = element("img");
5697
+ t7 = space();
5698
+ div1 = element("div");
5699
+ if (if_block1) if_block1.c();
5700
+ t8 = space();
5701
+ span1 = element("span");
5702
+ t9 = text(/*prize*/ ctx[2]);
5703
+ this.c = noop$1;
5704
+ attr_dev(img0, "part", "Rank_Arror_UP");
5705
+ attr_dev(img0, "alt", "Rank Up");
5706
+ if (img0.src !== (img0_src_value = img$1)) attr_dev(img0, "src", img0_src_value);
5707
+ attr_dev(img0, "width", "20");
5708
+ attr_dev(img0, "height", "20");
5709
+
5710
+ attr_dev(img0, "class", img0_class_value = "svg Arrow Up " + (/*userRankChanged*/ ctx[6] && /*isRankingUp*/ ctx[7]
5711
+ ? "Show"
5712
+ : "Hidden"));
5713
+
5714
+ add_location(img0, file$1, 76, 6, 2611);
5715
+ attr_dev(img1, "part", "Rank_Arror_Down");
5716
+ attr_dev(img1, "alt", "Rank Down");
5717
+ if (img1.src !== (img1_src_value = img)) attr_dev(img1, "src", img1_src_value);
5718
+ attr_dev(img1, "width", "10");
5719
+ attr_dev(img1, "height", "10");
5720
+
5721
+ attr_dev(img1, "class", img1_class_value = "svg Arrow Down " + (/*userRankChanged*/ ctx[6] && !/*isRankingUp*/ ctx[7]
5722
+ ? "Show"
5723
+ : "Hidden"));
5724
+
5725
+ add_location(img1, file$1, 77, 6, 2777);
5726
+ attr_dev(span0, "class", "RankInfo");
5727
+ attr_dev(span0, "part", "RankText");
5728
+ add_location(span0, file$1, 75, 4, 2463);
5729
+ attr_dev(div0, "class", "RankSec");
5730
+ attr_dev(div0, "part", "Rank");
5731
+ add_location(div0, file$1, 69, 2, 2301);
5732
+ attr_dev(span1, "class", "RankInfo UserPrize");
5733
+ attr_dev(span1, "part", "PrizeText");
5734
+ add_location(span1, file$1, 86, 4, 3147);
5735
+ attr_dev(div1, "class", div1_class_value = "" + (/*displayin*/ ctx[5] + " PrizeSec"));
5736
+ attr_dev(div1, "part", "Prize");
5737
+ add_location(div1, file$1, 80, 2, 2968);
5738
+ attr_dev(div2, "class", div2_class_value = "" + (/*displayin*/ ctx[5] + " casino-tournaments-rank"));
5739
+ add_location(div2, file$1, 68, 0, 2249);
5740
+ },
5741
+ l: function claim(nodes) {
5742
+ throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
5743
+ },
5744
+ m: function mount(target, anchor) {
5745
+ insert_dev(target, div2, anchor);
5746
+ append_dev(div2, div0);
5747
+ if (if_block0) if_block0.m(div0, null);
5748
+ append_dev(div0, t0);
5749
+ append_dev(div0, span0);
5750
+ append_dev(span0, t1);
5751
+ append_dev(span0, t2);
5752
+ append_dev(span0, t3);
5753
+ append_dev(span0, t4);
5754
+ append_dev(span0, t5);
5755
+ append_dev(span0, img0);
5756
+ append_dev(span0, t6);
5757
+ append_dev(span0, img1);
5758
+ append_dev(div2, t7);
5759
+ append_dev(div2, div1);
5760
+ if (if_block1) if_block1.m(div1, null);
5761
+ append_dev(div1, t8);
5762
+ append_dev(div1, span1);
5763
+ append_dev(span1, t9);
5764
+ },
5765
+ p: function update(ctx, [dirty]) {
5766
+ if (/*showicon*/ ctx[4] == "true") {
5767
+ if (if_block0) {
5768
+ if_block0.p(ctx, dirty);
5769
+ } else {
5770
+ if_block0 = create_if_block_1$1(ctx);
5771
+ if_block0.c();
5772
+ if_block0.m(div0, t0);
5773
+ }
5774
+ } else if (if_block0) {
5775
+ if_block0.d(1);
5776
+ if_block0 = null;
5777
+ }
5778
+
5779
+ if (dirty & /*rankprefix*/ 8) set_data_dev(t1, /*rankprefix*/ ctx[3]);
5780
+
5781
+ if (dirty & /*overallrank, userrank*/ 3 && t2_value !== (t2_value = (/*overallrank*/ ctx[1] == 0
5782
+ ? "-"
5783
+ : /*userrank*/ ctx[0] ? /*userrank*/ ctx[0] : "-") + "")) set_data_dev(t2, t2_value);
5784
+
5785
+ if (dirty & /*overallrank*/ 2 && t4_value !== (t4_value = (/*overallrank*/ ctx[1] == 0
5786
+ ? "-"
5787
+ : /*overallrank*/ ctx[1]) + "")) set_data_dev(t4, t4_value);
5788
+
5789
+ if (dirty & /*userRankChanged, isRankingUp*/ 192 && img0_class_value !== (img0_class_value = "svg Arrow Up " + (/*userRankChanged*/ ctx[6] && /*isRankingUp*/ ctx[7]
5790
+ ? "Show"
5791
+ : "Hidden"))) {
5792
+ attr_dev(img0, "class", img0_class_value);
5793
+ }
5794
+
5795
+ if (dirty & /*userRankChanged, isRankingUp*/ 192 && img1_class_value !== (img1_class_value = "svg Arrow Down " + (/*userRankChanged*/ ctx[6] && !/*isRankingUp*/ ctx[7]
5796
+ ? "Show"
5797
+ : "Hidden"))) {
5798
+ attr_dev(img1, "class", img1_class_value);
5799
+ }
5800
+
5801
+ if (/*showicon*/ ctx[4] == "true") {
5802
+ if (if_block1) {
5803
+ if_block1.p(ctx, dirty);
5804
+ } else {
5805
+ if_block1 = create_if_block$1(ctx);
5806
+ if_block1.c();
5807
+ if_block1.m(div1, t8);
5808
+ }
5809
+ } else if (if_block1) {
5810
+ if_block1.d(1);
5811
+ if_block1 = null;
5812
+ }
5813
+
5814
+ if (dirty & /*prize*/ 4) set_data_dev(t9, /*prize*/ ctx[2]);
5815
+
5816
+ if (dirty & /*displayin*/ 32 && div1_class_value !== (div1_class_value = "" + (/*displayin*/ ctx[5] + " PrizeSec"))) {
5817
+ attr_dev(div1, "class", div1_class_value);
5818
+ }
5819
+
5820
+ if (dirty & /*displayin*/ 32 && div2_class_value !== (div2_class_value = "" + (/*displayin*/ ctx[5] + " casino-tournaments-rank"))) {
5821
+ attr_dev(div2, "class", div2_class_value);
5822
+ }
5823
+ },
5824
+ i: noop$1,
5825
+ o: noop$1,
5826
+ d: function destroy(detaching) {
5827
+ if (detaching) detach_dev(div2);
5828
+ if (if_block0) if_block0.d();
5829
+ if (if_block1) if_block1.d();
5830
+ }
5831
+ };
5832
+
5833
+ dispatch_dev("SvelteRegisterBlock", {
5834
+ block,
5835
+ id: create_fragment$1.name,
5836
+ type: "component",
5837
+ source: "",
5838
+ ctx
5839
+ });
5840
+
5841
+ return block;
5842
+ }
5843
+
5844
+ function instance$1($$self, $$props, $$invalidate) {
5845
+ let { $$slots: slots = {}, $$scope } = $$props;
5846
+ validate_slots("undefined", slots, []);
5847
+ let { rankprefix = "#" } = $$props;
5848
+ let { showicon = "true" } = $$props;
5849
+ let { tournamentid = "" } = $$props;
5850
+ let { overallrank = "0" } = $$props;
5851
+ let { userrank = "0" } = $$props;
5852
+ let { prize = "PrizeName" } = $$props;
5853
+ let { displayin = "row" } = $$props;
5854
+ let currentUserRank;
5855
+ let userRankChanged = false;
5856
+ let isRankingUp = true;
5857
+ let rankChangeTime1, rankChangeTime2;
5858
+ let rankChangeTimer;
5859
+ let lastRank;
5860
+
5861
+ const messageHandler = e => {
5862
+ if (!e.data) {
5863
+ return;
5864
+ }
5865
+
5866
+ if (e.data.type == `TournamentRankInfo_${tournamentid}`) {
5867
+ processRankChange(e.data.rankInfo);
5868
+ }
5869
+ };
5870
+
5871
+ const processRankChange = rankInfo => {
5872
+ let resetUserRankInfo = rankInfo => {
5873
+ $$invalidate(0, userrank = rankInfo.rank);
5874
+ $$invalidate(1, overallrank = rankInfo.overallRank);
5875
+ $$invalidate(2, prize = rankInfo.prize);
5876
+ };
5877
+
5878
+ if (!lastRank) {
5879
+ lastRank = currentUserRank;
5880
+ resetUserRankInfo(rankInfo);
5881
+ return; // first place bet, do not show change flag
5882
+ }
5883
+
5884
+ if (currentUserRank) {
5885
+ $$invalidate(6, userRankChanged = lastRank != rankInfo.rank);
5886
+ $$invalidate(7, isRankingUp = lastRank > rankInfo.rank);
5887
+ rankChangeTime1 = new Date().getTime(); //reset time1, make sure userrank change more than once during 5mins
5888
+
5889
+ rankChangeTimer = setTimeout(
5890
+ () => {
5891
+ rankChangeTime2 = new Date().getTime();
5892
+ let timeInterval = (rankChangeTime2 - rankChangeTime1) / 1000;
5893
+
5894
+ if (timeInterval > 4) {
5895
+ $$invalidate(6, userRankChanged = false);
5896
+ }
5897
+
5898
+ lastRank = currentUserRank;
5899
+ },
5900
+ 5000
5901
+ );
5902
+
5903
+ resetUserRankInfo(rankInfo);
5904
+ }
5905
+ };
5906
+
5907
+ onMount(() => {
5908
+ currentUserRank = userrank == undefined ? undefined : parseInt(userrank);
5909
+ lastRank = currentUserRank;
5910
+ $$invalidate(0, userrank = userrank == undefined ? "-" : userrank);
5911
+ window.addEventListener("message", messageHandler, true);
5912
+
5913
+ return () => {
5914
+ window.removeEventListener("message", messageHandler);
5915
+ clearTimeout(rankChangeTimer);
5916
+ };
5917
+ });
5918
+
5919
+ const writable_props = [
5920
+ "rankprefix",
5921
+ "showicon",
5922
+ "tournamentid",
5923
+ "overallrank",
5924
+ "userrank",
5925
+ "prize",
5926
+ "displayin"
5927
+ ];
5928
+
5929
+ Object.keys($$props).forEach(key => {
5930
+ if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
5931
+ });
5932
+
5933
+ $$self.$$set = $$props => {
5934
+ if ("rankprefix" in $$props) $$invalidate(3, rankprefix = $$props.rankprefix);
5935
+ if ("showicon" in $$props) $$invalidate(4, showicon = $$props.showicon);
5936
+ if ("tournamentid" in $$props) $$invalidate(8, tournamentid = $$props.tournamentid);
5937
+ if ("overallrank" in $$props) $$invalidate(1, overallrank = $$props.overallrank);
5938
+ if ("userrank" in $$props) $$invalidate(0, userrank = $$props.userrank);
5939
+ if ("prize" in $$props) $$invalidate(2, prize = $$props.prize);
5940
+ if ("displayin" in $$props) $$invalidate(5, displayin = $$props.displayin);
5941
+ };
5942
+
5943
+ $$self.$capture_state = () => ({
5944
+ onMount,
5945
+ prizeSvg: img$3,
5946
+ userSvg: img$2,
5947
+ arrowUpSvg: img$1,
5948
+ arrowDownSvg: img,
5949
+ rankprefix,
5950
+ showicon,
5951
+ tournamentid,
5952
+ overallrank,
5953
+ userrank,
5954
+ prize,
5955
+ displayin,
5956
+ currentUserRank,
5957
+ userRankChanged,
5958
+ isRankingUp,
5959
+ rankChangeTime1,
5960
+ rankChangeTime2,
5961
+ rankChangeTimer,
5962
+ lastRank,
5963
+ messageHandler,
5964
+ processRankChange
5965
+ });
5966
+
5967
+ $$self.$inject_state = $$props => {
5968
+ if ("rankprefix" in $$props) $$invalidate(3, rankprefix = $$props.rankprefix);
5969
+ if ("showicon" in $$props) $$invalidate(4, showicon = $$props.showicon);
5970
+ if ("tournamentid" in $$props) $$invalidate(8, tournamentid = $$props.tournamentid);
5971
+ if ("overallrank" in $$props) $$invalidate(1, overallrank = $$props.overallrank);
5972
+ if ("userrank" in $$props) $$invalidate(0, userrank = $$props.userrank);
5973
+ if ("prize" in $$props) $$invalidate(2, prize = $$props.prize);
5974
+ if ("displayin" in $$props) $$invalidate(5, displayin = $$props.displayin);
5975
+ if ("currentUserRank" in $$props) currentUserRank = $$props.currentUserRank;
5976
+ if ("userRankChanged" in $$props) $$invalidate(6, userRankChanged = $$props.userRankChanged);
5977
+ if ("isRankingUp" in $$props) $$invalidate(7, isRankingUp = $$props.isRankingUp);
5978
+ if ("rankChangeTime1" in $$props) rankChangeTime1 = $$props.rankChangeTime1;
5979
+ if ("rankChangeTime2" in $$props) rankChangeTime2 = $$props.rankChangeTime2;
5980
+ if ("rankChangeTimer" in $$props) rankChangeTimer = $$props.rankChangeTimer;
5981
+ if ("lastRank" in $$props) lastRank = $$props.lastRank;
5982
+ };
5983
+
5984
+ if ($$props && "$$inject" in $$props) {
5985
+ $$self.$inject_state($$props.$$inject);
5986
+ }
5987
+
5988
+ $$self.$$.update = () => {
5989
+ if ($$self.$$.dirty & /*userrank*/ 1) {
5990
+ currentUserRank = parseInt(userrank);
5991
+ }
5992
+ };
5993
+
5994
+ return [
5995
+ userrank,
5996
+ overallrank,
5997
+ prize,
5998
+ rankprefix,
5999
+ showicon,
6000
+ displayin,
6001
+ userRankChanged,
6002
+ isRankingUp,
6003
+ tournamentid
6004
+ ];
6005
+ }
6006
+
6007
+ class CasinoTournamentsRank extends SvelteElement {
6008
+ constructor(options) {
6009
+ super();
6010
+ this.shadowRoot.innerHTML = `<style>.row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}</style>`;
6011
+
6012
+ init(
6013
+ this,
6014
+ {
6015
+ target: this.shadowRoot,
6016
+ props: attribute_to_object(this.attributes),
6017
+ customElement: true
6018
+ },
6019
+ instance$1,
6020
+ create_fragment$1,
6021
+ safe_not_equal,
6022
+ {
6023
+ rankprefix: 3,
6024
+ showicon: 4,
6025
+ tournamentid: 8,
6026
+ overallrank: 1,
6027
+ userrank: 0,
6028
+ prize: 2,
6029
+ displayin: 5
6030
+ }
6031
+ );
6032
+
6033
+ if (options) {
6034
+ if (options.target) {
6035
+ insert_dev(options.target, this, options.anchor);
6036
+ }
6037
+
6038
+ if (options.props) {
6039
+ this.$set(options.props);
6040
+ flush();
6041
+ }
6042
+ }
6043
+ }
6044
+
6045
+ static get observedAttributes() {
6046
+ return [
6047
+ "rankprefix",
6048
+ "showicon",
6049
+ "tournamentid",
6050
+ "overallrank",
6051
+ "userrank",
6052
+ "prize",
6053
+ "displayin"
6054
+ ];
6055
+ }
6056
+
6057
+ get rankprefix() {
6058
+ return this.$$.ctx[3];
6059
+ }
6060
+
6061
+ set rankprefix(rankprefix) {
6062
+ this.$set({ rankprefix });
6063
+ flush();
6064
+ }
6065
+
6066
+ get showicon() {
6067
+ return this.$$.ctx[4];
6068
+ }
6069
+
6070
+ set showicon(showicon) {
6071
+ this.$set({ showicon });
6072
+ flush();
6073
+ }
6074
+
6075
+ get tournamentid() {
6076
+ return this.$$.ctx[8];
6077
+ }
6078
+
6079
+ set tournamentid(tournamentid) {
6080
+ this.$set({ tournamentid });
6081
+ flush();
6082
+ }
6083
+
6084
+ get overallrank() {
6085
+ return this.$$.ctx[1];
6086
+ }
6087
+
6088
+ set overallrank(overallrank) {
6089
+ this.$set({ overallrank });
6090
+ flush();
6091
+ }
6092
+
6093
+ get userrank() {
6094
+ return this.$$.ctx[0];
6095
+ }
6096
+
6097
+ set userrank(userrank) {
6098
+ this.$set({ userrank });
6099
+ flush();
6100
+ }
6101
+
6102
+ get prize() {
6103
+ return this.$$.ctx[2];
6104
+ }
6105
+
6106
+ set prize(prize) {
6107
+ this.$set({ prize });
6108
+ flush();
6109
+ }
6110
+
6111
+ get displayin() {
6112
+ return this.$$.ctx[5];
6113
+ }
6114
+
6115
+ set displayin(displayin) {
6116
+ this.$set({ displayin });
6117
+ flush();
6118
+ }
6119
+ }
6120
+
6121
+ !customElements.get('casino-tournaments-rank') && customElements.define('casino-tournaments-rank', CasinoTournamentsRank);
6122
+
5560
6123
  /* src/CasinoTournamentsSliderController.svelte generated by Svelte v3.37.0 */
5561
6124
 
5562
6125
  const { Object: Object_1, console: console_1 } = globals;