@everymatrix/casino-header-controller 0.0.158 → 0.0.162

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.
@@ -4814,24 +4814,46 @@
4814
4814
  );
4815
4815
  };
4816
4816
 
4817
+ /**
4818
+ * @name getDevice
4819
+ * @description A method that returns the type of the device
4820
+ * @param {String} userAgent window.navigator.userAgent
4821
+ * @returns {String} Android/iPhone/iPad/PC
4822
+ */
4823
+ const getDevice = (userAgent) => {
4824
+ if (userAgent.toLowerCase().match(/android/i)) {
4825
+ return 'Android';
4826
+ }
4827
+
4828
+ if (userAgent.toLowerCase().match(/iphone/i)) {
4829
+ return 'iPhone';
4830
+ }
4831
+
4832
+ if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
4833
+ return 'iPad';
4834
+ }
4835
+
4836
+ return 'PC';
4837
+ };
4838
+
4817
4839
  /* ../casino-slider/src/CasinoSlider.svelte generated by Svelte v3.37.0 */
4818
4840
  const file$3 = "../casino-slider/src/CasinoSlider.svelte";
4819
4841
 
4820
4842
  function get_each_context$2(ctx, list, i) {
4821
4843
  const child_ctx = ctx.slice();
4822
- child_ctx[21] = list[i];
4823
- child_ctx[23] = i;
4844
+ child_ctx[24] = list[i];
4845
+ child_ctx[26] = i;
4824
4846
  return child_ctx;
4825
4847
  }
4826
4848
 
4827
- // (75:6) {#if sliderdata.length > 0}
4849
+ // (79:6) {#if sliderdata.length > 0}
4828
4850
  function create_if_block$3(ctx) {
4829
4851
  let each_blocks = [];
4830
4852
  let each_1_lookup = new Map();
4831
4853
  let each_1_anchor;
4832
4854
  let each_value = /*sliderdata*/ ctx[0];
4833
4855
  validate_each_argument(each_value);
4834
- const get_key = ctx => /*item*/ ctx[21].id;
4856
+ const get_key = ctx => /*item*/ ctx[24].id;
4835
4857
  validate_each_keys(ctx, each_value, get_each_context$2, get_key);
4836
4858
 
4837
4859
  for (let i = 0; i < each_value.length; i += 1) {
@@ -4856,7 +4878,7 @@
4856
4878
  insert_dev(target, each_1_anchor, anchor);
4857
4879
  },
4858
4880
  p: function update(ctx, dirty) {
4859
- if (dirty & /*active, sliderdata, handleClick, location, favoritesnumber*/ 87) {
4881
+ if (dirty & /*active, sliderdata, handleClick, location, favoritesnumber*/ 295) {
4860
4882
  each_value = /*sliderdata*/ ctx[0];
4861
4883
  validate_each_argument(each_value);
4862
4884
  validate_each_keys(ctx, each_value, get_each_context$2, get_key);
@@ -4876,20 +4898,20 @@
4876
4898
  block,
4877
4899
  id: create_if_block$3.name,
4878
4900
  type: "if",
4879
- source: "(75:6) {#if sliderdata.length > 0}",
4901
+ source: "(79:6) {#if sliderdata.length > 0}",
4880
4902
  ctx
4881
4903
  });
4882
4904
 
4883
4905
  return block;
4884
4906
  }
4885
4907
 
4886
- // (80:12) {:else}
4908
+ // (84:12) {:else}
4887
4909
  function create_else_block$1(ctx) {
4888
- let t0_value = /*item*/ ctx[21].name + "";
4910
+ let t0_value = /*item*/ ctx[24].name + "";
4889
4911
  let t0;
4890
4912
  let t1;
4891
4913
 
4892
- let t2_value = (/*item*/ ctx[21].id === "FAVORITES"
4914
+ let t2_value = (/*item*/ ctx[24].id === "FAVORITES"
4893
4915
  ? "(" + /*favoritesnumber*/ ctx[1] + ")"
4894
4916
  : "") + "";
4895
4917
 
@@ -4907,9 +4929,9 @@
4907
4929
  insert_dev(target, t2, anchor);
4908
4930
  },
4909
4931
  p: function update(ctx, dirty) {
4910
- if (dirty & /*sliderdata*/ 1 && t0_value !== (t0_value = /*item*/ ctx[21].name + "")) set_data_dev(t0, t0_value);
4932
+ if (dirty & /*sliderdata*/ 1 && t0_value !== (t0_value = /*item*/ ctx[24].name + "")) set_data_dev(t0, t0_value);
4911
4933
 
4912
- if (dirty & /*sliderdata, favoritesnumber*/ 3 && t2_value !== (t2_value = (/*item*/ ctx[21].id === "FAVORITES"
4934
+ if (dirty & /*sliderdata, favoritesnumber*/ 3 && t2_value !== (t2_value = (/*item*/ ctx[24].id === "FAVORITES"
4913
4935
  ? "(" + /*favoritesnumber*/ ctx[1] + ")"
4914
4936
  : "") + "")) set_data_dev(t2, t2_value);
4915
4937
  },
@@ -4924,17 +4946,17 @@
4924
4946
  block,
4925
4947
  id: create_else_block$1.name,
4926
4948
  type: "else",
4927
- source: "(80:12) {:else}",
4949
+ source: "(84:12) {:else}",
4928
4950
  ctx
4929
4951
  });
4930
4952
 
4931
4953
  return block;
4932
4954
  }
4933
4955
 
4934
- // (78:12) {#if location === 'headerMain'}
4956
+ // (82:12) {#if location === 'headerMain'}
4935
4957
  function create_if_block_1$2(ctx) {
4936
4958
  let a;
4937
- let t_value = /*item*/ ctx[21].label + "";
4959
+ let t_value = /*item*/ ctx[24].label + "";
4938
4960
  let t;
4939
4961
  let a_href_value;
4940
4962
 
@@ -4942,17 +4964,17 @@
4942
4964
  c: function create() {
4943
4965
  a = element("a");
4944
4966
  t = text(t_value);
4945
- attr_dev(a, "href", a_href_value = /*item*/ ctx[21].path);
4946
- add_location(a, file$3, 78, 14, 2741);
4967
+ attr_dev(a, "href", a_href_value = /*item*/ ctx[24].path);
4968
+ add_location(a, file$3, 82, 14, 3154);
4947
4969
  },
4948
4970
  m: function mount(target, anchor) {
4949
4971
  insert_dev(target, a, anchor);
4950
4972
  append_dev(a, t);
4951
4973
  },
4952
4974
  p: function update(ctx, dirty) {
4953
- if (dirty & /*sliderdata*/ 1 && t_value !== (t_value = /*item*/ ctx[21].label + "")) set_data_dev(t, t_value);
4975
+ if (dirty & /*sliderdata*/ 1 && t_value !== (t_value = /*item*/ ctx[24].label + "")) set_data_dev(t, t_value);
4954
4976
 
4955
- if (dirty & /*sliderdata*/ 1 && a_href_value !== (a_href_value = /*item*/ ctx[21].path)) {
4977
+ if (dirty & /*sliderdata*/ 1 && a_href_value !== (a_href_value = /*item*/ ctx[24].path)) {
4956
4978
  attr_dev(a, "href", a_href_value);
4957
4979
  }
4958
4980
  },
@@ -4965,14 +4987,14 @@
4965
4987
  block,
4966
4988
  id: create_if_block_1$2.name,
4967
4989
  type: "if",
4968
- source: "(78:12) {#if location === 'headerMain'}",
4990
+ source: "(82:12) {#if location === 'headerMain'}",
4969
4991
  ctx
4970
4992
  });
4971
4993
 
4972
4994
  return block;
4973
4995
  }
4974
4996
 
4975
- // (76:8) {#each sliderdata as item, index (item.id)}
4997
+ // (80:8) {#each sliderdata as item, index (item.id)}
4976
4998
  function create_each_block$2(key_1, ctx) {
4977
4999
  let li;
4978
5000
  let t;
@@ -4988,7 +5010,7 @@
4988
5010
  let if_block = current_block_type(ctx);
4989
5011
 
4990
5012
  function click_handler_1(...args) {
4991
- return /*click_handler_1*/ ctx[14](/*item*/ ctx[21], /*index*/ ctx[23], ...args);
5013
+ return /*click_handler_1*/ ctx[16](/*item*/ ctx[24], /*index*/ ctx[26], ...args);
4992
5014
  }
4993
5015
 
4994
5016
  const block = {
@@ -4999,8 +5021,8 @@
4999
5021
  if_block.c();
5000
5022
  t = space();
5001
5023
  attr_dev(li, "class", "CarouselItem");
5002
- toggle_class(li, "active", /*active*/ ctx[4] == /*index*/ ctx[23]);
5003
- add_location(li, file$3, 76, 10, 2582);
5024
+ toggle_class(li, "active", /*active*/ ctx[5] == /*index*/ ctx[26]);
5025
+ add_location(li, file$3, 80, 10, 2995);
5004
5026
  this.first = li;
5005
5027
  },
5006
5028
  m: function mount(target, anchor) {
@@ -5028,8 +5050,8 @@
5028
5050
  }
5029
5051
  }
5030
5052
 
5031
- if (dirty & /*active, sliderdata*/ 17) {
5032
- toggle_class(li, "active", /*active*/ ctx[4] == /*index*/ ctx[23]);
5053
+ if (dirty & /*active, sliderdata*/ 33) {
5054
+ toggle_class(li, "active", /*active*/ ctx[5] == /*index*/ ctx[26]);
5033
5055
  }
5034
5056
  },
5035
5057
  d: function destroy(detaching) {
@@ -5044,7 +5066,7 @@
5044
5066
  block,
5045
5067
  id: create_each_block$2.name,
5046
5068
  type: "each",
5047
- source: "(76:8) {#each sliderdata as item, index (item.id)}",
5069
+ source: "(80:8) {#each sliderdata as item, index (item.id)}",
5048
5070
  ctx
5049
5071
  });
5050
5072
 
@@ -5064,6 +5086,8 @@
5064
5086
  let svg1;
5065
5087
  let path1;
5066
5088
  let div2_class_value;
5089
+ let div2_style_value;
5090
+ let div3_class_value;
5067
5091
  let mounted;
5068
5092
  let dispose;
5069
5093
  let if_block = /*sliderdata*/ ctx[0].length > 0 && create_if_block$3(ctx);
@@ -5087,35 +5111,44 @@
5087
5111
  attr_dev(path0, "stroke-linejoin", "round");
5088
5112
  attr_dev(path0, "stroke-width", "2");
5089
5113
  attr_dev(path0, "d", "M15 19l-7-7 7-7");
5090
- add_location(path0, file$3, 69, 8, 2311);
5114
+ add_location(path0, file$3, 73, 8, 2724);
5091
5115
  attr_dev(svg0, "fill", "none");
5092
5116
  attr_dev(svg0, "stroke", "currentColor");
5093
5117
  attr_dev(svg0, "viewBox", "0 0 24 24");
5094
5118
  attr_dev(svg0, "xmlns", "http://www.w3.org/2000/svg");
5095
- add_location(svg0, file$3, 68, 6, 2208);
5119
+ add_location(svg0, file$3, 72, 6, 2621);
5096
5120
  attr_dev(div0, "class", "CarouselLeftArrow");
5097
- add_location(div0, file$3, 67, 4, 2138);
5121
+ add_location(div0, file$3, 71, 4, 2551);
5098
5122
  attr_dev(ul, "class", "CarouselItems");
5099
- add_location(ul, file$3, 73, 4, 2438);
5123
+ add_location(ul, file$3, 77, 4, 2851);
5100
5124
  attr_dev(path1, "stroke-linecap", "round");
5101
5125
  attr_dev(path1, "stroke-linejoin", "round");
5102
5126
  attr_dev(path1, "stroke-width", "2");
5103
5127
  attr_dev(path1, "d", "M9 5l7 7-7 7");
5104
- add_location(path1, file$3, 89, 8, 3137);
5128
+ add_location(path1, file$3, 93, 8, 3550);
5105
5129
  attr_dev(svg1, "fill", "none");
5106
5130
  attr_dev(svg1, "stroke", "currentColor");
5107
5131
  attr_dev(svg1, "viewBox", "0 0 24 24");
5108
5132
  attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg");
5109
- add_location(svg1, file$3, 88, 6, 3034);
5133
+ add_location(svg1, file$3, 92, 6, 3447);
5110
5134
  attr_dev(div1, "class", "CarouselRightArrow");
5111
- add_location(div1, file$3, 87, 4, 2962);
5135
+ add_location(div1, file$3, 91, 4, 3375);
5112
5136
 
5113
- attr_dev(div2, "class", div2_class_value = "CarouselContainer " + (/*location*/ ctx[2] === "headerMain"
5137
+ attr_dev(div2, "class", div2_class_value = "CarouselContainer " + (/*isMobile*/ ctx[7] ? "CarouselContainerMobile" : "") + " " + (/*location*/ ctx[2] === "headerMain"
5114
5138
  ? "CarouselContainerHeaderMain"
5115
5139
  : ""));
5116
5140
 
5117
- add_location(div2, file$3, 66, 2, 2033);
5118
- add_location(div3, file$3, 65, 0, 1990);
5141
+ attr_dev(div2, "style", div2_style_value = /*location*/ ctx[2] === "headerMain"
5142
+ ? "max-width: auto"
5143
+ : `max-width: ${/*containermaxwidth*/ ctx[3]}px`);
5144
+
5145
+ add_location(div2, file$3, 70, 2, 2304);
5146
+
5147
+ attr_dev(div3, "class", div3_class_value = "CarouselWrapper " + (/*location*/ ctx[2] === "headerMain"
5148
+ ? "CarouselWrapperHeaderMain"
5149
+ : ""));
5150
+
5151
+ add_location(div3, file$3, 69, 0, 2170);
5119
5152
  },
5120
5153
  l: function claim(nodes) {
5121
5154
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -5129,17 +5162,17 @@
5129
5162
  append_dev(div2, t0);
5130
5163
  append_dev(div2, ul);
5131
5164
  if (if_block) if_block.m(ul, null);
5132
- /*ul_binding*/ ctx[15](ul);
5165
+ /*ul_binding*/ ctx[17](ul);
5133
5166
  append_dev(div2, t1);
5134
5167
  append_dev(div2, div1);
5135
5168
  append_dev(div1, svg1);
5136
5169
  append_dev(svg1, path1);
5137
- /*div3_binding*/ ctx[17](div3);
5170
+ /*div3_binding*/ ctx[19](div3);
5138
5171
 
5139
5172
  if (!mounted) {
5140
5173
  dispose = [
5141
- listen_dev(div0, "click", /*click_handler*/ ctx[13], false, false, false),
5142
- listen_dev(div1, "click", /*click_handler_2*/ ctx[16], false, false, false)
5174
+ listen_dev(div0, "click", /*click_handler*/ ctx[15], false, false, false),
5175
+ listen_dev(div1, "click", /*click_handler_2*/ ctx[18], false, false, false)
5143
5176
  ];
5144
5177
 
5145
5178
  mounted = true;
@@ -5159,19 +5192,31 @@
5159
5192
  if_block = null;
5160
5193
  }
5161
5194
 
5162
- if (dirty & /*location*/ 4 && div2_class_value !== (div2_class_value = "CarouselContainer " + (/*location*/ ctx[2] === "headerMain"
5195
+ if (dirty & /*location*/ 4 && div2_class_value !== (div2_class_value = "CarouselContainer " + (/*isMobile*/ ctx[7] ? "CarouselContainerMobile" : "") + " " + (/*location*/ ctx[2] === "headerMain"
5163
5196
  ? "CarouselContainerHeaderMain"
5164
5197
  : ""))) {
5165
5198
  attr_dev(div2, "class", div2_class_value);
5166
5199
  }
5200
+
5201
+ if (dirty & /*location, containermaxwidth*/ 12 && div2_style_value !== (div2_style_value = /*location*/ ctx[2] === "headerMain"
5202
+ ? "max-width: auto"
5203
+ : `max-width: ${/*containermaxwidth*/ ctx[3]}px`)) {
5204
+ attr_dev(div2, "style", div2_style_value);
5205
+ }
5206
+
5207
+ if (dirty & /*location*/ 4 && div3_class_value !== (div3_class_value = "CarouselWrapper " + (/*location*/ ctx[2] === "headerMain"
5208
+ ? "CarouselWrapperHeaderMain"
5209
+ : ""))) {
5210
+ attr_dev(div3, "class", div3_class_value);
5211
+ }
5167
5212
  },
5168
5213
  i: noop$1,
5169
5214
  o: noop$1,
5170
5215
  d: function destroy(detaching) {
5171
5216
  if (detaching) detach_dev(div3);
5172
5217
  if (if_block) if_block.d();
5173
- /*ul_binding*/ ctx[15](null);
5174
- /*div3_binding*/ ctx[17](null);
5218
+ /*ul_binding*/ ctx[17](null);
5219
+ /*div3_binding*/ ctx[19](null);
5175
5220
  mounted = false;
5176
5221
  run_all(dispose);
5177
5222
  }
@@ -5198,6 +5243,9 @@
5198
5243
  let { clientstyling = "" } = $$props;
5199
5244
  let { clientstylingurl = "" } = $$props;
5200
5245
  let { identity = "" } = $$props;
5246
+ let { containermaxwidth = "" } = $$props;
5247
+ let userAgent = window.navigator.userAgent;
5248
+ let isMobile = getDevice(userAgent) === "PC" ? false : true;
5201
5249
  let carousel;
5202
5250
  let active;
5203
5251
  let customStylingContainer;
@@ -5205,13 +5253,13 @@
5205
5253
  // Clicking on the slider item will trigger this method and send a postmessage on window
5206
5254
  // @TODO itemId type fix
5207
5255
  let handleClick = (itemId, index) => {
5208
- $$invalidate(4, active = index);
5256
+ $$invalidate(5, active = index);
5209
5257
  window.postMessage({ type: onclickeventname, itemId, index }, window.location.href);
5210
5258
  };
5211
5259
 
5212
5260
  const messageHandler = e => {
5213
5261
  if (e.data && e.data.type == "SetSliderIndex") {
5214
- $$invalidate(4, active = e.data.categoryData
5262
+ $$invalidate(5, active = e.data.categoryData
5215
5263
  ? sliderdata.map(e => {
5216
5264
  return e.id;
5217
5265
  }).indexOf(e.data.categoryData.id)
@@ -5219,7 +5267,7 @@
5219
5267
  }
5220
5268
 
5221
5269
  if (e.data && e.data.type == `SetSliderIndex_${identity}`) {
5222
- $$invalidate(4, active = e.data.index);
5270
+ $$invalidate(5, active = e.data.index);
5223
5271
  }
5224
5272
  };
5225
5273
 
@@ -5272,7 +5320,8 @@
5272
5320
  "location",
5273
5321
  "clientstyling",
5274
5322
  "clientstylingurl",
5275
- "identity"
5323
+ "identity",
5324
+ "containermaxwidth"
5276
5325
  ];
5277
5326
 
5278
5327
  Object.keys($$props).forEach(key => {
@@ -5285,7 +5334,7 @@
5285
5334
  function ul_binding($$value) {
5286
5335
  binding_callbacks[$$value ? "unshift" : "push"](() => {
5287
5336
  carousel = $$value;
5288
- $$invalidate(3, carousel);
5337
+ $$invalidate(4, carousel);
5289
5338
  });
5290
5339
  }
5291
5340
 
@@ -5294,22 +5343,24 @@
5294
5343
  function div3_binding($$value) {
5295
5344
  binding_callbacks[$$value ? "unshift" : "push"](() => {
5296
5345
  customStylingContainer = $$value;
5297
- $$invalidate(5, customStylingContainer);
5346
+ $$invalidate(6, customStylingContainer);
5298
5347
  });
5299
5348
  }
5300
5349
 
5301
5350
  $$self.$$set = $$props => {
5302
5351
  if ("sliderdata" in $$props) $$invalidate(0, sliderdata = $$props.sliderdata);
5303
- if ("onclickeventname" in $$props) $$invalidate(9, onclickeventname = $$props.onclickeventname);
5352
+ if ("onclickeventname" in $$props) $$invalidate(11, onclickeventname = $$props.onclickeventname);
5304
5353
  if ("favoritesnumber" in $$props) $$invalidate(1, favoritesnumber = $$props.favoritesnumber);
5305
5354
  if ("location" in $$props) $$invalidate(2, location = $$props.location);
5306
- if ("clientstyling" in $$props) $$invalidate(10, clientstyling = $$props.clientstyling);
5307
- if ("clientstylingurl" in $$props) $$invalidate(11, clientstylingurl = $$props.clientstylingurl);
5308
- if ("identity" in $$props) $$invalidate(12, identity = $$props.identity);
5355
+ if ("clientstyling" in $$props) $$invalidate(12, clientstyling = $$props.clientstyling);
5356
+ if ("clientstylingurl" in $$props) $$invalidate(13, clientstylingurl = $$props.clientstylingurl);
5357
+ if ("identity" in $$props) $$invalidate(14, identity = $$props.identity);
5358
+ if ("containermaxwidth" in $$props) $$invalidate(3, containermaxwidth = $$props.containermaxwidth);
5309
5359
  };
5310
5360
 
5311
5361
  $$self.$capture_state = () => ({
5312
5362
  onMount,
5363
+ getDevice,
5313
5364
  sliderdata,
5314
5365
  onclickeventname,
5315
5366
  favoritesnumber,
@@ -5317,6 +5368,9 @@
5317
5368
  clientstyling,
5318
5369
  clientstylingurl,
5319
5370
  identity,
5371
+ containermaxwidth,
5372
+ userAgent,
5373
+ isMobile,
5320
5374
  carousel,
5321
5375
  active,
5322
5376
  customStylingContainer,
@@ -5330,18 +5384,21 @@
5330
5384
 
5331
5385
  $$self.$inject_state = $$props => {
5332
5386
  if ("sliderdata" in $$props) $$invalidate(0, sliderdata = $$props.sliderdata);
5333
- if ("onclickeventname" in $$props) $$invalidate(9, onclickeventname = $$props.onclickeventname);
5387
+ if ("onclickeventname" in $$props) $$invalidate(11, onclickeventname = $$props.onclickeventname);
5334
5388
  if ("favoritesnumber" in $$props) $$invalidate(1, favoritesnumber = $$props.favoritesnumber);
5335
5389
  if ("location" in $$props) $$invalidate(2, location = $$props.location);
5336
- if ("clientstyling" in $$props) $$invalidate(10, clientstyling = $$props.clientstyling);
5337
- if ("clientstylingurl" in $$props) $$invalidate(11, clientstylingurl = $$props.clientstylingurl);
5338
- if ("identity" in $$props) $$invalidate(12, identity = $$props.identity);
5339
- if ("carousel" in $$props) $$invalidate(3, carousel = $$props.carousel);
5340
- if ("active" in $$props) $$invalidate(4, active = $$props.active);
5341
- if ("customStylingContainer" in $$props) $$invalidate(5, customStylingContainer = $$props.customStylingContainer);
5342
- if ("handleClick" in $$props) $$invalidate(6, handleClick = $$props.handleClick);
5343
- if ("scrollLeft" in $$props) $$invalidate(7, scrollLeft = $$props.scrollLeft);
5344
- if ("scrollRight" in $$props) $$invalidate(8, scrollRight = $$props.scrollRight);
5390
+ if ("clientstyling" in $$props) $$invalidate(12, clientstyling = $$props.clientstyling);
5391
+ if ("clientstylingurl" in $$props) $$invalidate(13, clientstylingurl = $$props.clientstylingurl);
5392
+ if ("identity" in $$props) $$invalidate(14, identity = $$props.identity);
5393
+ if ("containermaxwidth" in $$props) $$invalidate(3, containermaxwidth = $$props.containermaxwidth);
5394
+ if ("userAgent" in $$props) userAgent = $$props.userAgent;
5395
+ if ("isMobile" in $$props) $$invalidate(7, isMobile = $$props.isMobile);
5396
+ if ("carousel" in $$props) $$invalidate(4, carousel = $$props.carousel);
5397
+ if ("active" in $$props) $$invalidate(5, active = $$props.active);
5398
+ if ("customStylingContainer" in $$props) $$invalidate(6, customStylingContainer = $$props.customStylingContainer);
5399
+ if ("handleClick" in $$props) $$invalidate(8, handleClick = $$props.handleClick);
5400
+ if ("scrollLeft" in $$props) $$invalidate(9, scrollLeft = $$props.scrollLeft);
5401
+ if ("scrollRight" in $$props) $$invalidate(10, scrollRight = $$props.scrollRight);
5345
5402
  };
5346
5403
 
5347
5404
  if ($$props && "$$inject" in $$props) {
@@ -5349,11 +5406,11 @@
5349
5406
  }
5350
5407
 
5351
5408
  $$self.$$.update = () => {
5352
- if ($$self.$$.dirty & /*clientstyling*/ 1024) {
5409
+ if ($$self.$$.dirty & /*clientstyling*/ 4096) {
5353
5410
  clientstyling && setClientStyling();
5354
5411
  }
5355
5412
 
5356
- if ($$self.$$.dirty & /*clientstylingurl*/ 2048) {
5413
+ if ($$self.$$.dirty & /*clientstylingurl*/ 8192) {
5357
5414
  clientstylingurl && setClientStylingURL();
5358
5415
  }
5359
5416
  };
@@ -5362,9 +5419,11 @@
5362
5419
  sliderdata,
5363
5420
  favoritesnumber,
5364
5421
  location,
5422
+ containermaxwidth,
5365
5423
  carousel,
5366
5424
  active,
5367
5425
  customStylingContainer,
5426
+ isMobile,
5368
5427
  handleClick,
5369
5428
  scrollLeft,
5370
5429
  scrollRight,
@@ -5383,7 +5442,7 @@
5383
5442
  class CasinoSlider extends SvelteElement {
5384
5443
  constructor(options) {
5385
5444
  super();
5386
- this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:'Helvetica Neue', 'Helvetica', sans-serif}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;background:#D0046C;background:-webkit-linear-gradient(to left, #FD2839, #D0046C);background:linear-gradient(to left, #FD2839, #D0046C);color:#ffffff}.CarouselContainer .CarouselItems{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;overflow-x:scroll;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselItems::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems .CarouselItem{display:flex;height:100%;align-items:center;padding:12.8px 19.2px;font-size:16px;text-align:center;line-height:25.6px;transition:all 150ms ease-in-out}.CarouselContainer .CarouselItems .CarouselItem:hover,.CarouselContainer .CarouselItems .CarouselItem.active{background:#07072a;cursor:pointer}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:rgba(255, 255, 255, 0.3)}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:38.4px}.CarouselContainer .CarouselLeftArrow:hover,.CarouselContainer .CarouselRightArrow:hover{cursor:pointer}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active{background:transparent}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a{border-top:1px solid #D0046C;color:#D0046C}.CarouselContainerHeaderMain{background:transparent}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:#fff;text-decoration:none}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}</style>`;
5445
+ this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:'Helvetica Neue', 'Helvetica', sans-serif}.CarouselWrapper{background:#D0046C;background:-webkit-linear-gradient(to left, #FD2839, #D0046C);background:linear-gradient(to left, #FD2839, #D0046C)}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;width:100%;color:#ffffff;margin:0 auto;padding:0 10px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer .CarouselItems{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;overflow-x:scroll;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselItems::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems .CarouselItem{display:flex;height:100%;align-items:center;padding:12.8px 19.2px;font-size:16px;text-align:center;line-height:25.6px;transition:all 150ms ease-in-out;white-space:nowrap}.CarouselContainer .CarouselItems .CarouselItem:hover,.CarouselContainer .CarouselItems .CarouselItem.active{background:#07072a;cursor:pointer}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:rgba(255, 255, 255, 0.3)}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:38.4px}.CarouselContainer .CarouselLeftArrow:hover,.CarouselContainer .CarouselRightArrow:hover{cursor:pointer}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active{background:transparent}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a{border-top:1px solid #D0046C;color:#D0046C}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:#fff;text-decoration:none}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}</style>`;
5387
5446
 
5388
5447
  init(
5389
5448
  this,
@@ -5397,12 +5456,13 @@
5397
5456
  safe_not_equal,
5398
5457
  {
5399
5458
  sliderdata: 0,
5400
- onclickeventname: 9,
5459
+ onclickeventname: 11,
5401
5460
  favoritesnumber: 1,
5402
5461
  location: 2,
5403
- clientstyling: 10,
5404
- clientstylingurl: 11,
5405
- identity: 12
5462
+ clientstyling: 12,
5463
+ clientstylingurl: 13,
5464
+ identity: 14,
5465
+ containermaxwidth: 3
5406
5466
  }
5407
5467
  );
5408
5468
 
@@ -5426,7 +5486,8 @@
5426
5486
  "location",
5427
5487
  "clientstyling",
5428
5488
  "clientstylingurl",
5429
- "identity"
5489
+ "identity",
5490
+ "containermaxwidth"
5430
5491
  ];
5431
5492
  }
5432
5493
 
@@ -5440,7 +5501,7 @@
5440
5501
  }
5441
5502
 
5442
5503
  get onclickeventname() {
5443
- return this.$$.ctx[9];
5504
+ return this.$$.ctx[11];
5444
5505
  }
5445
5506
 
5446
5507
  set onclickeventname(onclickeventname) {
@@ -5467,7 +5528,7 @@
5467
5528
  }
5468
5529
 
5469
5530
  get clientstyling() {
5470
- return this.$$.ctx[10];
5531
+ return this.$$.ctx[12];
5471
5532
  }
5472
5533
 
5473
5534
  set clientstyling(clientstyling) {
@@ -5476,7 +5537,7 @@
5476
5537
  }
5477
5538
 
5478
5539
  get clientstylingurl() {
5479
- return this.$$.ctx[11];
5540
+ return this.$$.ctx[13];
5480
5541
  }
5481
5542
 
5482
5543
  set clientstylingurl(clientstylingurl) {
@@ -5485,13 +5546,22 @@
5485
5546
  }
5486
5547
 
5487
5548
  get identity() {
5488
- return this.$$.ctx[12];
5549
+ return this.$$.ctx[14];
5489
5550
  }
5490
5551
 
5491
5552
  set identity(identity) {
5492
5553
  this.$set({ identity });
5493
5554
  flush();
5494
5555
  }
5556
+
5557
+ get containermaxwidth() {
5558
+ return this.$$.ctx[3];
5559
+ }
5560
+
5561
+ set containermaxwidth(containermaxwidth) {
5562
+ this.$set({ containermaxwidth });
5563
+ flush();
5564
+ }
5495
5565
  }
5496
5566
 
5497
5567
  !customElements.get('casino-slider') && customElements.define('casino-slider', CasinoSlider);