@everymatrix/casino-header-controller 0.0.126 → 0.0.130
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.
|
@@ -4811,7 +4811,66 @@
|
|
|
4811
4811
|
return child_ctx;
|
|
4812
4812
|
}
|
|
4813
4813
|
|
|
4814
|
-
// (
|
|
4814
|
+
// (71:6) {#if sliderdata.length > 0}
|
|
4815
|
+
function create_if_block$3(ctx) {
|
|
4816
|
+
let each_blocks = [];
|
|
4817
|
+
let each_1_lookup = new Map();
|
|
4818
|
+
let each_1_anchor;
|
|
4819
|
+
let each_value = /*sliderdata*/ ctx[0];
|
|
4820
|
+
validate_each_argument(each_value);
|
|
4821
|
+
const get_key = ctx => /*item*/ ctx[20].id;
|
|
4822
|
+
validate_each_keys(ctx, each_value, get_each_context$2, get_key);
|
|
4823
|
+
|
|
4824
|
+
for (let i = 0; i < each_value.length; i += 1) {
|
|
4825
|
+
let child_ctx = get_each_context$2(ctx, each_value, i);
|
|
4826
|
+
let key = get_key(child_ctx);
|
|
4827
|
+
each_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));
|
|
4828
|
+
}
|
|
4829
|
+
|
|
4830
|
+
const block = {
|
|
4831
|
+
c: function create() {
|
|
4832
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
4833
|
+
each_blocks[i].c();
|
|
4834
|
+
}
|
|
4835
|
+
|
|
4836
|
+
each_1_anchor = empty();
|
|
4837
|
+
},
|
|
4838
|
+
m: function mount(target, anchor) {
|
|
4839
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
4840
|
+
each_blocks[i].m(target, anchor);
|
|
4841
|
+
}
|
|
4842
|
+
|
|
4843
|
+
insert_dev(target, each_1_anchor, anchor);
|
|
4844
|
+
},
|
|
4845
|
+
p: function update(ctx, dirty) {
|
|
4846
|
+
if (dirty & /*active, sliderdata, handleClick, location, favoritesnumber*/ 87) {
|
|
4847
|
+
each_value = /*sliderdata*/ ctx[0];
|
|
4848
|
+
validate_each_argument(each_value);
|
|
4849
|
+
validate_each_keys(ctx, each_value, get_each_context$2, get_key);
|
|
4850
|
+
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, each_1_anchor.parentNode, destroy_block, create_each_block$2, each_1_anchor, get_each_context$2);
|
|
4851
|
+
}
|
|
4852
|
+
},
|
|
4853
|
+
d: function destroy(detaching) {
|
|
4854
|
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
4855
|
+
each_blocks[i].d(detaching);
|
|
4856
|
+
}
|
|
4857
|
+
|
|
4858
|
+
if (detaching) detach_dev(each_1_anchor);
|
|
4859
|
+
}
|
|
4860
|
+
};
|
|
4861
|
+
|
|
4862
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
4863
|
+
block,
|
|
4864
|
+
id: create_if_block$3.name,
|
|
4865
|
+
type: "if",
|
|
4866
|
+
source: "(71:6) {#if sliderdata.length > 0}",
|
|
4867
|
+
ctx
|
|
4868
|
+
});
|
|
4869
|
+
|
|
4870
|
+
return block;
|
|
4871
|
+
}
|
|
4872
|
+
|
|
4873
|
+
// (76:12) {:else}
|
|
4815
4874
|
function create_else_block$1(ctx) {
|
|
4816
4875
|
let t0_value = /*item*/ ctx[20].name + "";
|
|
4817
4876
|
let t0;
|
|
@@ -4852,15 +4911,15 @@
|
|
|
4852
4911
|
block,
|
|
4853
4912
|
id: create_else_block$1.name,
|
|
4854
4913
|
type: "else",
|
|
4855
|
-
source: "(
|
|
4914
|
+
source: "(76:12) {:else}",
|
|
4856
4915
|
ctx
|
|
4857
4916
|
});
|
|
4858
4917
|
|
|
4859
4918
|
return block;
|
|
4860
4919
|
}
|
|
4861
4920
|
|
|
4862
|
-
// (
|
|
4863
|
-
function
|
|
4921
|
+
// (74:12) {#if location === 'headerMain'}
|
|
4922
|
+
function create_if_block_1$2(ctx) {
|
|
4864
4923
|
let a;
|
|
4865
4924
|
let t_value = /*item*/ ctx[20].label + "";
|
|
4866
4925
|
let t;
|
|
@@ -4871,7 +4930,7 @@
|
|
|
4871
4930
|
a = element("a");
|
|
4872
4931
|
t = text(t_value);
|
|
4873
4932
|
attr_dev(a, "href", a_href_value = /*item*/ ctx[20].path);
|
|
4874
|
-
add_location(a, file$3,
|
|
4933
|
+
add_location(a, file$3, 74, 14, 2613);
|
|
4875
4934
|
},
|
|
4876
4935
|
m: function mount(target, anchor) {
|
|
4877
4936
|
insert_dev(target, a, anchor);
|
|
@@ -4891,16 +4950,16 @@
|
|
|
4891
4950
|
|
|
4892
4951
|
dispatch_dev("SvelteRegisterBlock", {
|
|
4893
4952
|
block,
|
|
4894
|
-
id:
|
|
4953
|
+
id: create_if_block_1$2.name,
|
|
4895
4954
|
type: "if",
|
|
4896
|
-
source: "(
|
|
4955
|
+
source: "(74:12) {#if location === 'headerMain'}",
|
|
4897
4956
|
ctx
|
|
4898
4957
|
});
|
|
4899
4958
|
|
|
4900
4959
|
return block;
|
|
4901
4960
|
}
|
|
4902
4961
|
|
|
4903
|
-
// (
|
|
4962
|
+
// (72:8) {#each sliderdata as item, index (item.id)}
|
|
4904
4963
|
function create_each_block$2(key_1, ctx) {
|
|
4905
4964
|
let li;
|
|
4906
4965
|
let t;
|
|
@@ -4908,7 +4967,7 @@
|
|
|
4908
4967
|
let dispose;
|
|
4909
4968
|
|
|
4910
4969
|
function select_block_type(ctx, dirty) {
|
|
4911
|
-
if (/*location*/ ctx[2] === "headerMain") return
|
|
4970
|
+
if (/*location*/ ctx[2] === "headerMain") return create_if_block_1$2;
|
|
4912
4971
|
return create_else_block$1;
|
|
4913
4972
|
}
|
|
4914
4973
|
|
|
@@ -4928,7 +4987,7 @@
|
|
|
4928
4987
|
t = space();
|
|
4929
4988
|
attr_dev(li, "class", "CarouselItem");
|
|
4930
4989
|
toggle_class(li, "active", /*active*/ ctx[4] == /*index*/ ctx[22]);
|
|
4931
|
-
add_location(li, file$3,
|
|
4990
|
+
add_location(li, file$3, 72, 10, 2454);
|
|
4932
4991
|
this.first = li;
|
|
4933
4992
|
},
|
|
4934
4993
|
m: function mount(target, anchor) {
|
|
@@ -4972,7 +5031,7 @@
|
|
|
4972
5031
|
block,
|
|
4973
5032
|
id: create_each_block$2.name,
|
|
4974
5033
|
type: "each",
|
|
4975
|
-
source: "(
|
|
5034
|
+
source: "(72:8) {#each sliderdata as item, index (item.id)}",
|
|
4976
5035
|
ctx
|
|
4977
5036
|
});
|
|
4978
5037
|
|
|
@@ -4987,8 +5046,6 @@
|
|
|
4987
5046
|
let path0;
|
|
4988
5047
|
let t0;
|
|
4989
5048
|
let ul;
|
|
4990
|
-
let each_blocks = [];
|
|
4991
|
-
let each_1_lookup = new Map();
|
|
4992
5049
|
let t1;
|
|
4993
5050
|
let div1;
|
|
4994
5051
|
let svg1;
|
|
@@ -4996,16 +5053,7 @@
|
|
|
4996
5053
|
let div2_class_value;
|
|
4997
5054
|
let mounted;
|
|
4998
5055
|
let dispose;
|
|
4999
|
-
let
|
|
5000
|
-
validate_each_argument(each_value);
|
|
5001
|
-
const get_key = ctx => /*item*/ ctx[20].id;
|
|
5002
|
-
validate_each_keys(ctx, each_value, get_each_context$2, get_key);
|
|
5003
|
-
|
|
5004
|
-
for (let i = 0; i < each_value.length; i += 1) {
|
|
5005
|
-
let child_ctx = get_each_context$2(ctx, each_value, i);
|
|
5006
|
-
let key = get_key(child_ctx);
|
|
5007
|
-
each_1_lookup.set(key, each_blocks[i] = create_each_block$2(key, child_ctx));
|
|
5008
|
-
}
|
|
5056
|
+
let if_block = /*sliderdata*/ ctx[0].length > 0 && create_if_block$3(ctx);
|
|
5009
5057
|
|
|
5010
5058
|
const block = {
|
|
5011
5059
|
c: function create() {
|
|
@@ -5016,11 +5064,7 @@
|
|
|
5016
5064
|
path0 = svg_element("path");
|
|
5017
5065
|
t0 = space();
|
|
5018
5066
|
ul = element("ul");
|
|
5019
|
-
|
|
5020
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
5021
|
-
each_blocks[i].c();
|
|
5022
|
-
}
|
|
5023
|
-
|
|
5067
|
+
if (if_block) if_block.c();
|
|
5024
5068
|
t1 = space();
|
|
5025
5069
|
div1 = element("div");
|
|
5026
5070
|
svg1 = svg_element("svg");
|
|
@@ -5044,14 +5088,14 @@
|
|
|
5044
5088
|
attr_dev(path1, "stroke-linejoin", "round");
|
|
5045
5089
|
attr_dev(path1, "stroke-width", "2");
|
|
5046
5090
|
attr_dev(path1, "d", "M9 5l7 7-7 7");
|
|
5047
|
-
add_location(path1, file$3,
|
|
5091
|
+
add_location(path1, file$3, 85, 8, 3009);
|
|
5048
5092
|
attr_dev(svg1, "fill", "none");
|
|
5049
5093
|
attr_dev(svg1, "stroke", "currentColor");
|
|
5050
5094
|
attr_dev(svg1, "viewBox", "0 0 24 24");
|
|
5051
5095
|
attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg");
|
|
5052
|
-
add_location(svg1, file$3,
|
|
5096
|
+
add_location(svg1, file$3, 84, 6, 2906);
|
|
5053
5097
|
attr_dev(div1, "class", "CarouselRightArrow");
|
|
5054
|
-
add_location(div1, file$3,
|
|
5098
|
+
add_location(div1, file$3, 83, 4, 2834);
|
|
5055
5099
|
|
|
5056
5100
|
attr_dev(div2, "class", div2_class_value = "CarouselContainer " + (/*location*/ ctx[2] === "headerMain"
|
|
5057
5101
|
? "CarouselContainerHeaderMain"
|
|
@@ -5071,11 +5115,7 @@
|
|
|
5071
5115
|
append_dev(svg0, path0);
|
|
5072
5116
|
append_dev(div2, t0);
|
|
5073
5117
|
append_dev(div2, ul);
|
|
5074
|
-
|
|
5075
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
5076
|
-
each_blocks[i].m(ul, null);
|
|
5077
|
-
}
|
|
5078
|
-
|
|
5118
|
+
if (if_block) if_block.m(ul, null);
|
|
5079
5119
|
/*ul_binding*/ ctx[14](ul);
|
|
5080
5120
|
append_dev(div2, t1);
|
|
5081
5121
|
append_dev(div2, div1);
|
|
@@ -5093,11 +5133,17 @@
|
|
|
5093
5133
|
}
|
|
5094
5134
|
},
|
|
5095
5135
|
p: function update(ctx, [dirty]) {
|
|
5096
|
-
if (
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5136
|
+
if (/*sliderdata*/ ctx[0].length > 0) {
|
|
5137
|
+
if (if_block) {
|
|
5138
|
+
if_block.p(ctx, dirty);
|
|
5139
|
+
} else {
|
|
5140
|
+
if_block = create_if_block$3(ctx);
|
|
5141
|
+
if_block.c();
|
|
5142
|
+
if_block.m(ul, null);
|
|
5143
|
+
}
|
|
5144
|
+
} else if (if_block) {
|
|
5145
|
+
if_block.d(1);
|
|
5146
|
+
if_block = null;
|
|
5101
5147
|
}
|
|
5102
5148
|
|
|
5103
5149
|
if (dirty & /*location*/ 4 && div2_class_value !== (div2_class_value = "CarouselContainer " + (/*location*/ ctx[2] === "headerMain"
|
|
@@ -5110,11 +5156,7 @@
|
|
|
5110
5156
|
o: noop$1,
|
|
5111
5157
|
d: function destroy(detaching) {
|
|
5112
5158
|
if (detaching) detach_dev(div3);
|
|
5113
|
-
|
|
5114
|
-
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
5115
|
-
each_blocks[i].d();
|
|
5116
|
-
}
|
|
5117
|
-
|
|
5159
|
+
if (if_block) if_block.d();
|
|
5118
5160
|
/*ul_binding*/ ctx[14](null);
|
|
5119
5161
|
/*div3_binding*/ ctx[16](null);
|
|
5120
5162
|
mounted = false;
|