@everymatrix/casino-lobby 0.0.134 → 0.0.135

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.
@@ -4955,19 +4955,19 @@
4955
4955
 
4956
4956
  function get_each_context$3(ctx, list, i) {
4957
4957
  const child_ctx = ctx.slice();
4958
- child_ctx[20] = list[i];
4959
- child_ctx[22] = i;
4958
+ child_ctx[21] = list[i];
4959
+ child_ctx[23] = i;
4960
4960
  return child_ctx;
4961
4961
  }
4962
4962
 
4963
- // (74:6) {#if sliderdata.length > 0}
4963
+ // (75:6) {#if sliderdata.length > 0}
4964
4964
  function create_if_block$9(ctx) {
4965
4965
  let each_blocks = [];
4966
4966
  let each_1_lookup = new Map();
4967
4967
  let each_1_anchor;
4968
4968
  let each_value = /*sliderdata*/ ctx[0];
4969
4969
  validate_each_argument(each_value);
4970
- const get_key = ctx => /*item*/ ctx[20].id;
4970
+ const get_key = ctx => /*item*/ ctx[21].id;
4971
4971
  validate_each_keys(ctx, each_value, get_each_context$3, get_key);
4972
4972
 
4973
4973
  for (let i = 0; i < each_value.length; i += 1) {
@@ -5012,20 +5012,20 @@
5012
5012
  block,
5013
5013
  id: create_if_block$9.name,
5014
5014
  type: "if",
5015
- source: "(74:6) {#if sliderdata.length > 0}",
5015
+ source: "(75:6) {#if sliderdata.length > 0}",
5016
5016
  ctx
5017
5017
  });
5018
5018
 
5019
5019
  return block;
5020
5020
  }
5021
5021
 
5022
- // (79:12) {:else}
5022
+ // (80:12) {:else}
5023
5023
  function create_else_block$6(ctx) {
5024
- let t0_value = /*item*/ ctx[20].name + "";
5024
+ let t0_value = /*item*/ ctx[21].name + "";
5025
5025
  let t0;
5026
5026
  let t1;
5027
5027
 
5028
- let t2_value = (/*item*/ ctx[20].id === "FAVORITES"
5028
+ let t2_value = (/*item*/ ctx[21].id === "FAVORITES"
5029
5029
  ? "(" + /*favoritesnumber*/ ctx[1] + ")"
5030
5030
  : "") + "";
5031
5031
 
@@ -5043,9 +5043,9 @@
5043
5043
  insert_dev(target, t2, anchor);
5044
5044
  },
5045
5045
  p: function update(ctx, dirty) {
5046
- if (dirty & /*sliderdata*/ 1 && t0_value !== (t0_value = /*item*/ ctx[20].name + "")) set_data_dev(t0, t0_value);
5046
+ if (dirty & /*sliderdata*/ 1 && t0_value !== (t0_value = /*item*/ ctx[21].name + "")) set_data_dev(t0, t0_value);
5047
5047
 
5048
- if (dirty & /*sliderdata, favoritesnumber*/ 3 && t2_value !== (t2_value = (/*item*/ ctx[20].id === "FAVORITES"
5048
+ if (dirty & /*sliderdata, favoritesnumber*/ 3 && t2_value !== (t2_value = (/*item*/ ctx[21].id === "FAVORITES"
5049
5049
  ? "(" + /*favoritesnumber*/ ctx[1] + ")"
5050
5050
  : "") + "")) set_data_dev(t2, t2_value);
5051
5051
  },
@@ -5060,17 +5060,17 @@
5060
5060
  block,
5061
5061
  id: create_else_block$6.name,
5062
5062
  type: "else",
5063
- source: "(79:12) {:else}",
5063
+ source: "(80:12) {:else}",
5064
5064
  ctx
5065
5065
  });
5066
5066
 
5067
5067
  return block;
5068
5068
  }
5069
5069
 
5070
- // (77:12) {#if location === 'headerMain'}
5070
+ // (78:12) {#if location === 'headerMain'}
5071
5071
  function create_if_block_1$6(ctx) {
5072
5072
  let a;
5073
- let t_value = /*item*/ ctx[20].label + "";
5073
+ let t_value = /*item*/ ctx[21].label + "";
5074
5074
  let t;
5075
5075
  let a_href_value;
5076
5076
 
@@ -5078,17 +5078,17 @@
5078
5078
  c: function create() {
5079
5079
  a = element("a");
5080
5080
  t = text(t_value);
5081
- attr_dev(a, "href", a_href_value = /*item*/ ctx[20].path);
5082
- add_location(a, file$9, 77, 14, 2709);
5081
+ attr_dev(a, "href", a_href_value = /*item*/ ctx[21].path);
5082
+ add_location(a, file$9, 78, 14, 2741);
5083
5083
  },
5084
5084
  m: function mount(target, anchor) {
5085
5085
  insert_dev(target, a, anchor);
5086
5086
  append_dev(a, t);
5087
5087
  },
5088
5088
  p: function update(ctx, dirty) {
5089
- if (dirty & /*sliderdata*/ 1 && t_value !== (t_value = /*item*/ ctx[20].label + "")) set_data_dev(t, t_value);
5089
+ if (dirty & /*sliderdata*/ 1 && t_value !== (t_value = /*item*/ ctx[21].label + "")) set_data_dev(t, t_value);
5090
5090
 
5091
- if (dirty & /*sliderdata*/ 1 && a_href_value !== (a_href_value = /*item*/ ctx[20].path)) {
5091
+ if (dirty & /*sliderdata*/ 1 && a_href_value !== (a_href_value = /*item*/ ctx[21].path)) {
5092
5092
  attr_dev(a, "href", a_href_value);
5093
5093
  }
5094
5094
  },
@@ -5101,14 +5101,14 @@
5101
5101
  block,
5102
5102
  id: create_if_block_1$6.name,
5103
5103
  type: "if",
5104
- source: "(77:12) {#if location === 'headerMain'}",
5104
+ source: "(78:12) {#if location === 'headerMain'}",
5105
5105
  ctx
5106
5106
  });
5107
5107
 
5108
5108
  return block;
5109
5109
  }
5110
5110
 
5111
- // (75:8) {#each sliderdata as item, index (item.id)}
5111
+ // (76:8) {#each sliderdata as item, index (item.id)}
5112
5112
  function create_each_block$3(key_1, ctx) {
5113
5113
  let li;
5114
5114
  let t;
@@ -5124,7 +5124,7 @@
5124
5124
  let if_block = current_block_type(ctx);
5125
5125
 
5126
5126
  function click_handler_1(...args) {
5127
- return /*click_handler_1*/ ctx[13](/*item*/ ctx[20], /*index*/ ctx[22], ...args);
5127
+ return /*click_handler_1*/ ctx[14](/*item*/ ctx[21], /*index*/ ctx[23], ...args);
5128
5128
  }
5129
5129
 
5130
5130
  const block = {
@@ -5135,8 +5135,8 @@
5135
5135
  if_block.c();
5136
5136
  t = space();
5137
5137
  attr_dev(li, "class", "CarouselItem");
5138
- toggle_class(li, "active", /*active*/ ctx[4] == /*index*/ ctx[22]);
5139
- add_location(li, file$9, 75, 10, 2550);
5138
+ toggle_class(li, "active", /*active*/ ctx[4] == /*index*/ ctx[23]);
5139
+ add_location(li, file$9, 76, 10, 2582);
5140
5140
  this.first = li;
5141
5141
  },
5142
5142
  m: function mount(target, anchor) {
@@ -5165,7 +5165,7 @@
5165
5165
  }
5166
5166
 
5167
5167
  if (dirty & /*active, sliderdata*/ 17) {
5168
- toggle_class(li, "active", /*active*/ ctx[4] == /*index*/ ctx[22]);
5168
+ toggle_class(li, "active", /*active*/ ctx[4] == /*index*/ ctx[23]);
5169
5169
  }
5170
5170
  },
5171
5171
  d: function destroy(detaching) {
@@ -5180,7 +5180,7 @@
5180
5180
  block,
5181
5181
  id: create_each_block$3.name,
5182
5182
  type: "each",
5183
- source: "(75:8) {#each sliderdata as item, index (item.id)}",
5183
+ source: "(76:8) {#each sliderdata as item, index (item.id)}",
5184
5184
  ctx
5185
5185
  });
5186
5186
 
@@ -5223,35 +5223,35 @@
5223
5223
  attr_dev(path0, "stroke-linejoin", "round");
5224
5224
  attr_dev(path0, "stroke-width", "2");
5225
5225
  attr_dev(path0, "d", "M15 19l-7-7 7-7");
5226
- add_location(path0, file$9, 68, 8, 2279);
5226
+ add_location(path0, file$9, 69, 8, 2311);
5227
5227
  attr_dev(svg0, "fill", "none");
5228
5228
  attr_dev(svg0, "stroke", "currentColor");
5229
5229
  attr_dev(svg0, "viewBox", "0 0 24 24");
5230
5230
  attr_dev(svg0, "xmlns", "http://www.w3.org/2000/svg");
5231
- add_location(svg0, file$9, 67, 6, 2176);
5231
+ add_location(svg0, file$9, 68, 6, 2208);
5232
5232
  attr_dev(div0, "class", "CarouselLeftArrow");
5233
- add_location(div0, file$9, 66, 4, 2106);
5233
+ add_location(div0, file$9, 67, 4, 2138);
5234
5234
  attr_dev(ul, "class", "CarouselItems");
5235
- add_location(ul, file$9, 72, 4, 2406);
5235
+ add_location(ul, file$9, 73, 4, 2438);
5236
5236
  attr_dev(path1, "stroke-linecap", "round");
5237
5237
  attr_dev(path1, "stroke-linejoin", "round");
5238
5238
  attr_dev(path1, "stroke-width", "2");
5239
5239
  attr_dev(path1, "d", "M9 5l7 7-7 7");
5240
- add_location(path1, file$9, 88, 8, 3105);
5240
+ add_location(path1, file$9, 89, 8, 3137);
5241
5241
  attr_dev(svg1, "fill", "none");
5242
5242
  attr_dev(svg1, "stroke", "currentColor");
5243
5243
  attr_dev(svg1, "viewBox", "0 0 24 24");
5244
5244
  attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg");
5245
- add_location(svg1, file$9, 87, 6, 3002);
5245
+ add_location(svg1, file$9, 88, 6, 3034);
5246
5246
  attr_dev(div1, "class", "CarouselRightArrow");
5247
- add_location(div1, file$9, 86, 4, 2930);
5247
+ add_location(div1, file$9, 87, 4, 2962);
5248
5248
 
5249
5249
  attr_dev(div2, "class", div2_class_value = "CarouselContainer " + (/*location*/ ctx[2] === "headerMain"
5250
5250
  ? "CarouselContainerHeaderMain"
5251
5251
  : ""));
5252
5252
 
5253
- add_location(div2, file$9, 65, 2, 2001);
5254
- add_location(div3, file$9, 64, 0, 1958);
5253
+ add_location(div2, file$9, 66, 2, 2033);
5254
+ add_location(div3, file$9, 65, 0, 1990);
5255
5255
  },
5256
5256
  l: function claim(nodes) {
5257
5257
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -5265,17 +5265,17 @@
5265
5265
  append_dev(div2, t0);
5266
5266
  append_dev(div2, ul);
5267
5267
  if (if_block) if_block.m(ul, null);
5268
- /*ul_binding*/ ctx[14](ul);
5268
+ /*ul_binding*/ ctx[15](ul);
5269
5269
  append_dev(div2, t1);
5270
5270
  append_dev(div2, div1);
5271
5271
  append_dev(div1, svg1);
5272
5272
  append_dev(svg1, path1);
5273
- /*div3_binding*/ ctx[16](div3);
5273
+ /*div3_binding*/ ctx[17](div3);
5274
5274
 
5275
5275
  if (!mounted) {
5276
5276
  dispose = [
5277
- listen_dev(div0, "click", /*click_handler*/ ctx[12], false, false, false),
5278
- listen_dev(div1, "click", /*click_handler_2*/ ctx[15], false, false, false)
5277
+ listen_dev(div0, "click", /*click_handler*/ ctx[13], false, false, false),
5278
+ listen_dev(div1, "click", /*click_handler_2*/ ctx[16], false, false, false)
5279
5279
  ];
5280
5280
 
5281
5281
  mounted = true;
@@ -5306,8 +5306,8 @@
5306
5306
  d: function destroy(detaching) {
5307
5307
  if (detaching) detach_dev(div3);
5308
5308
  if (if_block) if_block.d();
5309
- /*ul_binding*/ ctx[14](null);
5310
- /*div3_binding*/ ctx[16](null);
5309
+ /*ul_binding*/ ctx[15](null);
5310
+ /*div3_binding*/ ctx[17](null);
5311
5311
  mounted = false;
5312
5312
  run_all(dispose);
5313
5313
  }
@@ -5333,6 +5333,7 @@
5333
5333
  let { location = "" } = $$props;
5334
5334
  let { clientstyling = "" } = $$props;
5335
5335
  let { clientstylingurl = "" } = $$props;
5336
+ let { identify = "" } = $$props;
5336
5337
  let carousel;
5337
5338
  let active;
5338
5339
  let customStylingContainer;
@@ -5353,7 +5354,7 @@
5353
5354
  : 0);
5354
5355
  }
5355
5356
 
5356
- if (e.data && e.data.type == "SetActiveSliderIndex") {
5357
+ if (e.data && e.data.type == `SetSliderIndex_${identify}`) {
5357
5358
  $$invalidate(4, active = e.data.index);
5358
5359
  }
5359
5360
  };
@@ -5406,7 +5407,8 @@
5406
5407
  "favoritesnumber",
5407
5408
  "location",
5408
5409
  "clientstyling",
5409
- "clientstylingurl"
5410
+ "clientstylingurl",
5411
+ "identify"
5410
5412
  ];
5411
5413
 
5412
5414
  Object.keys($$props).forEach(key => {
@@ -5439,6 +5441,7 @@
5439
5441
  if ("location" in $$props) $$invalidate(2, location = $$props.location);
5440
5442
  if ("clientstyling" in $$props) $$invalidate(10, clientstyling = $$props.clientstyling);
5441
5443
  if ("clientstylingurl" in $$props) $$invalidate(11, clientstylingurl = $$props.clientstylingurl);
5444
+ if ("identify" in $$props) $$invalidate(12, identify = $$props.identify);
5442
5445
  };
5443
5446
 
5444
5447
  $$self.$capture_state = () => ({
@@ -5449,6 +5452,7 @@
5449
5452
  location,
5450
5453
  clientstyling,
5451
5454
  clientstylingurl,
5455
+ identify,
5452
5456
  carousel,
5453
5457
  active,
5454
5458
  customStylingContainer,
@@ -5467,6 +5471,7 @@
5467
5471
  if ("location" in $$props) $$invalidate(2, location = $$props.location);
5468
5472
  if ("clientstyling" in $$props) $$invalidate(10, clientstyling = $$props.clientstyling);
5469
5473
  if ("clientstylingurl" in $$props) $$invalidate(11, clientstylingurl = $$props.clientstylingurl);
5474
+ if ("identify" in $$props) $$invalidate(12, identify = $$props.identify);
5470
5475
  if ("carousel" in $$props) $$invalidate(3, carousel = $$props.carousel);
5471
5476
  if ("active" in $$props) $$invalidate(4, active = $$props.active);
5472
5477
  if ("customStylingContainer" in $$props) $$invalidate(5, customStylingContainer = $$props.customStylingContainer);
@@ -5502,6 +5507,7 @@
5502
5507
  onclickeventname,
5503
5508
  clientstyling,
5504
5509
  clientstylingurl,
5510
+ identify,
5505
5511
  click_handler,
5506
5512
  click_handler_1,
5507
5513
  ul_binding,
@@ -5531,7 +5537,8 @@
5531
5537
  favoritesnumber: 1,
5532
5538
  location: 2,
5533
5539
  clientstyling: 10,
5534
- clientstylingurl: 11
5540
+ clientstylingurl: 11,
5541
+ identify: 12
5535
5542
  }
5536
5543
  );
5537
5544
 
@@ -5554,7 +5561,8 @@
5554
5561
  "favoritesnumber",
5555
5562
  "location",
5556
5563
  "clientstyling",
5557
- "clientstylingurl"
5564
+ "clientstylingurl",
5565
+ "identify"
5558
5566
  ];
5559
5567
  }
5560
5568
 
@@ -5611,6 +5619,15 @@
5611
5619
  this.$set({ clientstylingurl });
5612
5620
  flush();
5613
5621
  }
5622
+
5623
+ get identify() {
5624
+ return this.$$.ctx[12];
5625
+ }
5626
+
5627
+ set identify(identify) {
5628
+ this.$set({ identify });
5629
+ flush();
5630
+ }
5614
5631
  }
5615
5632
 
5616
5633
  !customElements.get('casino-slider') && customElements.define('casino-slider', CasinoSlider);