@everymatrix/casino-categories-providers 1.0.11 → 1.0.14
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.
|
@@ -4788,22 +4788,22 @@
|
|
|
4788
4788
|
|
|
4789
4789
|
/* ../casino-categories/src/CasinoCategories.svelte generated by Svelte v3.48.0 */
|
|
4790
4790
|
|
|
4791
|
-
const { Object: Object_1$2 } = globals;
|
|
4791
|
+
const { Object: Object_1$2, console: console_1$2 } = globals;
|
|
4792
4792
|
const file$2 = "../casino-categories/src/CasinoCategories.svelte";
|
|
4793
4793
|
|
|
4794
4794
|
function get_each_context$1(ctx, list, i) {
|
|
4795
4795
|
const child_ctx = ctx.slice();
|
|
4796
|
-
child_ctx[
|
|
4796
|
+
child_ctx[24] = list[i];
|
|
4797
4797
|
return child_ctx;
|
|
4798
4798
|
}
|
|
4799
4799
|
|
|
4800
4800
|
function get_each_context_1$1(ctx, list, i) {
|
|
4801
4801
|
const child_ctx = ctx.slice();
|
|
4802
|
-
child_ctx[
|
|
4802
|
+
child_ctx[24] = list[i];
|
|
4803
4803
|
return child_ctx;
|
|
4804
4804
|
}
|
|
4805
4805
|
|
|
4806
|
-
// (
|
|
4806
|
+
// (82:2) {:else}
|
|
4807
4807
|
function create_else_block$1(ctx) {
|
|
4808
4808
|
let div;
|
|
4809
4809
|
let h40;
|
|
@@ -4852,11 +4852,11 @@
|
|
|
4852
4852
|
}
|
|
4853
4853
|
|
|
4854
4854
|
attr_dev(h40, "class", "CategoryTitle");
|
|
4855
|
-
add_location(h40, file$2,
|
|
4855
|
+
add_location(h40, file$2, 83, 4, 3049);
|
|
4856
4856
|
attr_dev(h41, "class", "CategoryTitle");
|
|
4857
|
-
add_location(h41, file$2,
|
|
4857
|
+
add_location(h41, file$2, 93, 4, 3531);
|
|
4858
4858
|
attr_dev(div, "class", "CasinoCategories");
|
|
4859
|
-
add_location(div, file$2,
|
|
4859
|
+
add_location(div, file$2, 82, 2, 3014);
|
|
4860
4860
|
},
|
|
4861
4861
|
m: function mount(target, anchor) {
|
|
4862
4862
|
insert_dev(target, div, anchor);
|
|
@@ -4941,14 +4941,14 @@
|
|
|
4941
4941
|
block,
|
|
4942
4942
|
id: create_else_block$1.name,
|
|
4943
4943
|
type: "else",
|
|
4944
|
-
source: "(
|
|
4944
|
+
source: "(82:2) {:else}",
|
|
4945
4945
|
ctx
|
|
4946
4946
|
});
|
|
4947
4947
|
|
|
4948
4948
|
return block;
|
|
4949
4949
|
}
|
|
4950
4950
|
|
|
4951
|
-
// (
|
|
4951
|
+
// (80:2) {#if isLoading}
|
|
4952
4952
|
function create_if_block$1(ctx) {
|
|
4953
4953
|
let p;
|
|
4954
4954
|
|
|
@@ -4957,7 +4957,7 @@
|
|
|
4957
4957
|
p = element("p");
|
|
4958
4958
|
p.textContent = "Loading, please wait...";
|
|
4959
4959
|
attr_dev(p, "class", "Message");
|
|
4960
|
-
add_location(p, file$2,
|
|
4960
|
+
add_location(p, file$2, 80, 2, 2955);
|
|
4961
4961
|
},
|
|
4962
4962
|
m: function mount(target, anchor) {
|
|
4963
4963
|
insert_dev(target, p, anchor);
|
|
@@ -4972,14 +4972,14 @@
|
|
|
4972
4972
|
block,
|
|
4973
4973
|
id: create_if_block$1.name,
|
|
4974
4974
|
type: "if",
|
|
4975
|
-
source: "(
|
|
4975
|
+
source: "(80:2) {#if isLoading}",
|
|
4976
4976
|
ctx
|
|
4977
4977
|
});
|
|
4978
4978
|
|
|
4979
4979
|
return block;
|
|
4980
4980
|
}
|
|
4981
4981
|
|
|
4982
|
-
// (
|
|
4982
|
+
// (85:4) {#each topCategories as category}
|
|
4983
4983
|
function create_each_block_1$1(ctx) {
|
|
4984
4984
|
let div1;
|
|
4985
4985
|
let img;
|
|
@@ -4988,11 +4988,11 @@
|
|
|
4988
4988
|
let t0;
|
|
4989
4989
|
let div0;
|
|
4990
4990
|
let p0;
|
|
4991
|
-
let t1_value = /*category*/ ctx[
|
|
4991
|
+
let t1_value = /*category*/ ctx[24].name + "";
|
|
4992
4992
|
let t1;
|
|
4993
4993
|
let t2;
|
|
4994
4994
|
let p1;
|
|
4995
|
-
let t3_value = /*category*/ ctx[
|
|
4995
|
+
let t3_value = /*category*/ ctx[24].games.count + "";
|
|
4996
4996
|
let t3;
|
|
4997
4997
|
let t4;
|
|
4998
4998
|
let t5_value = /*$_*/ ctx[5]('Translations.games') + "";
|
|
@@ -5002,7 +5002,7 @@
|
|
|
5002
5002
|
let dispose;
|
|
5003
5003
|
|
|
5004
5004
|
function click_handler() {
|
|
5005
|
-
return /*click_handler*/ ctx[
|
|
5005
|
+
return /*click_handler*/ ctx[14](/*category*/ ctx[24]);
|
|
5006
5006
|
}
|
|
5007
5007
|
|
|
5008
5008
|
const block = {
|
|
@@ -5018,20 +5018,20 @@
|
|
|
5018
5018
|
t3 = text(t3_value);
|
|
5019
5019
|
t4 = space();
|
|
5020
5020
|
t5 = text(t5_value);
|
|
5021
|
-
if (!src_url_equal(img.src, img_src_value = /*category*/ ctx[
|
|
5022
|
-
attr_dev(img, "alt", img_alt_value = /*category*/ ctx[
|
|
5021
|
+
if (!src_url_equal(img.src, img_src_value = /*category*/ ctx[24].icon)) attr_dev(img, "src", img_src_value);
|
|
5022
|
+
attr_dev(img, "alt", img_alt_value = /*category*/ ctx[24].name);
|
|
5023
5023
|
attr_dev(img, "class", "CategoryImage");
|
|
5024
|
-
add_location(img, file$2,
|
|
5025
|
-
add_location(p0, file$2,
|
|
5026
|
-
add_location(p1, file$2,
|
|
5024
|
+
add_location(img, file$2, 86, 6, 3235);
|
|
5025
|
+
add_location(p0, file$2, 88, 8, 3403);
|
|
5026
|
+
add_location(p1, file$2, 89, 8, 3434);
|
|
5027
5027
|
attr_dev(div0, "class", "CategoryTextContainer");
|
|
5028
|
-
add_location(div0, file$2,
|
|
5028
|
+
add_location(div0, file$2, 87, 6, 3359);
|
|
5029
5029
|
|
|
5030
|
-
attr_dev(div1, "class", div1_class_value = "Category " + (/*activecategory*/ ctx[0] === /*category*/ ctx[
|
|
5030
|
+
attr_dev(div1, "class", div1_class_value = "Category " + (/*activecategory*/ ctx[0] === /*category*/ ctx[24].id
|
|
5031
5031
|
? "Active"
|
|
5032
5032
|
: ""));
|
|
5033
5033
|
|
|
5034
|
-
add_location(div1, file$2,
|
|
5034
|
+
add_location(div1, file$2, 85, 4, 3157);
|
|
5035
5035
|
},
|
|
5036
5036
|
m: function mount(target, anchor) {
|
|
5037
5037
|
insert_dev(target, div1, anchor);
|
|
@@ -5054,19 +5054,19 @@
|
|
|
5054
5054
|
p: function update(new_ctx, dirty) {
|
|
5055
5055
|
ctx = new_ctx;
|
|
5056
5056
|
|
|
5057
|
-
if (dirty & /*topCategories*/ 8 && !src_url_equal(img.src, img_src_value = /*category*/ ctx[
|
|
5057
|
+
if (dirty & /*topCategories*/ 8 && !src_url_equal(img.src, img_src_value = /*category*/ ctx[24].icon)) {
|
|
5058
5058
|
attr_dev(img, "src", img_src_value);
|
|
5059
5059
|
}
|
|
5060
5060
|
|
|
5061
|
-
if (dirty & /*topCategories*/ 8 && img_alt_value !== (img_alt_value = /*category*/ ctx[
|
|
5061
|
+
if (dirty & /*topCategories*/ 8 && img_alt_value !== (img_alt_value = /*category*/ ctx[24].name)) {
|
|
5062
5062
|
attr_dev(img, "alt", img_alt_value);
|
|
5063
5063
|
}
|
|
5064
5064
|
|
|
5065
|
-
if (dirty & /*topCategories*/ 8 && t1_value !== (t1_value = /*category*/ ctx[
|
|
5066
|
-
if (dirty & /*topCategories*/ 8 && t3_value !== (t3_value = /*category*/ ctx[
|
|
5065
|
+
if (dirty & /*topCategories*/ 8 && t1_value !== (t1_value = /*category*/ ctx[24].name + "")) set_data_dev(t1, t1_value);
|
|
5066
|
+
if (dirty & /*topCategories*/ 8 && t3_value !== (t3_value = /*category*/ ctx[24].games.count + "")) set_data_dev(t3, t3_value);
|
|
5067
5067
|
if (dirty & /*$_*/ 32 && t5_value !== (t5_value = /*$_*/ ctx[5]('Translations.games') + "")) set_data_dev(t5, t5_value);
|
|
5068
5068
|
|
|
5069
|
-
if (dirty & /*activecategory, topCategories*/ 9 && div1_class_value !== (div1_class_value = "Category " + (/*activecategory*/ ctx[0] === /*category*/ ctx[
|
|
5069
|
+
if (dirty & /*activecategory, topCategories*/ 9 && div1_class_value !== (div1_class_value = "Category " + (/*activecategory*/ ctx[0] === /*category*/ ctx[24].id
|
|
5070
5070
|
? "Active"
|
|
5071
5071
|
: ""))) {
|
|
5072
5072
|
attr_dev(div1, "class", div1_class_value);
|
|
@@ -5083,14 +5083,14 @@
|
|
|
5083
5083
|
block,
|
|
5084
5084
|
id: create_each_block_1$1.name,
|
|
5085
5085
|
type: "each",
|
|
5086
|
-
source: "(
|
|
5086
|
+
source: "(85:4) {#each topCategories as category}",
|
|
5087
5087
|
ctx
|
|
5088
5088
|
});
|
|
5089
5089
|
|
|
5090
5090
|
return block;
|
|
5091
5091
|
}
|
|
5092
5092
|
|
|
5093
|
-
// (
|
|
5093
|
+
// (95:4) {#each otherCategories as category}
|
|
5094
5094
|
function create_each_block$1(ctx) {
|
|
5095
5095
|
let div1;
|
|
5096
5096
|
let img;
|
|
@@ -5099,11 +5099,11 @@
|
|
|
5099
5099
|
let t0;
|
|
5100
5100
|
let div0;
|
|
5101
5101
|
let p0;
|
|
5102
|
-
let t1_value = /*category*/ ctx[
|
|
5102
|
+
let t1_value = /*category*/ ctx[24].name + "";
|
|
5103
5103
|
let t1;
|
|
5104
5104
|
let t2;
|
|
5105
5105
|
let p1;
|
|
5106
|
-
let t3_value = /*category*/ ctx[
|
|
5106
|
+
let t3_value = /*category*/ ctx[24].games.count + "";
|
|
5107
5107
|
let t3;
|
|
5108
5108
|
let t4;
|
|
5109
5109
|
let t5_value = /*$_*/ ctx[5]('Translations.games') + "";
|
|
@@ -5114,7 +5114,7 @@
|
|
|
5114
5114
|
let dispose;
|
|
5115
5115
|
|
|
5116
5116
|
function click_handler_1() {
|
|
5117
|
-
return /*click_handler_1*/ ctx[
|
|
5117
|
+
return /*click_handler_1*/ ctx[15](/*category*/ ctx[24]);
|
|
5118
5118
|
}
|
|
5119
5119
|
|
|
5120
5120
|
const block = {
|
|
@@ -5131,20 +5131,20 @@
|
|
|
5131
5131
|
t4 = space();
|
|
5132
5132
|
t5 = text(t5_value);
|
|
5133
5133
|
t6 = space();
|
|
5134
|
-
if (!src_url_equal(img.src, img_src_value = /*category*/ ctx[
|
|
5135
|
-
attr_dev(img, "alt", img_alt_value = /*category*/ ctx[
|
|
5134
|
+
if (!src_url_equal(img.src, img_src_value = /*category*/ ctx[24].icon)) attr_dev(img, "src", img_src_value);
|
|
5135
|
+
attr_dev(img, "alt", img_alt_value = /*category*/ ctx[24].name);
|
|
5136
5136
|
attr_dev(img, "class", "CategoryImage");
|
|
5137
|
-
add_location(img, file$2,
|
|
5138
|
-
add_location(p0, file$2,
|
|
5139
|
-
add_location(p1, file$2,
|
|
5137
|
+
add_location(img, file$2, 96, 6, 3722);
|
|
5138
|
+
add_location(p0, file$2, 98, 8, 3889);
|
|
5139
|
+
add_location(p1, file$2, 99, 8, 3920);
|
|
5140
5140
|
attr_dev(div0, "class", "CategoryTextContainer");
|
|
5141
|
-
add_location(div0, file$2,
|
|
5141
|
+
add_location(div0, file$2, 97, 6, 3845);
|
|
5142
5142
|
|
|
5143
|
-
attr_dev(div1, "class", div1_class_value = "Category " + (/*activecategory*/ ctx[0] === /*category*/ ctx[
|
|
5143
|
+
attr_dev(div1, "class", div1_class_value = "Category " + (/*activecategory*/ ctx[0] === /*category*/ ctx[24].id
|
|
5144
5144
|
? "Active"
|
|
5145
5145
|
: ""));
|
|
5146
5146
|
|
|
5147
|
-
add_location(div1, file$2,
|
|
5147
|
+
add_location(div1, file$2, 95, 4, 3643);
|
|
5148
5148
|
},
|
|
5149
5149
|
m: function mount(target, anchor) {
|
|
5150
5150
|
insert_dev(target, div1, anchor);
|
|
@@ -5168,19 +5168,19 @@
|
|
|
5168
5168
|
p: function update(new_ctx, dirty) {
|
|
5169
5169
|
ctx = new_ctx;
|
|
5170
5170
|
|
|
5171
|
-
if (dirty & /*otherCategories*/ 16 && !src_url_equal(img.src, img_src_value = /*category*/ ctx[
|
|
5171
|
+
if (dirty & /*otherCategories*/ 16 && !src_url_equal(img.src, img_src_value = /*category*/ ctx[24].icon)) {
|
|
5172
5172
|
attr_dev(img, "src", img_src_value);
|
|
5173
5173
|
}
|
|
5174
5174
|
|
|
5175
|
-
if (dirty & /*otherCategories*/ 16 && img_alt_value !== (img_alt_value = /*category*/ ctx[
|
|
5175
|
+
if (dirty & /*otherCategories*/ 16 && img_alt_value !== (img_alt_value = /*category*/ ctx[24].name)) {
|
|
5176
5176
|
attr_dev(img, "alt", img_alt_value);
|
|
5177
5177
|
}
|
|
5178
5178
|
|
|
5179
|
-
if (dirty & /*otherCategories*/ 16 && t1_value !== (t1_value = /*category*/ ctx[
|
|
5180
|
-
if (dirty & /*otherCategories*/ 16 && t3_value !== (t3_value = /*category*/ ctx[
|
|
5179
|
+
if (dirty & /*otherCategories*/ 16 && t1_value !== (t1_value = /*category*/ ctx[24].name + "")) set_data_dev(t1, t1_value);
|
|
5180
|
+
if (dirty & /*otherCategories*/ 16 && t3_value !== (t3_value = /*category*/ ctx[24].games.count + "")) set_data_dev(t3, t3_value);
|
|
5181
5181
|
if (dirty & /*$_*/ 32 && t5_value !== (t5_value = /*$_*/ ctx[5]('Translations.games') + "")) set_data_dev(t5, t5_value);
|
|
5182
5182
|
|
|
5183
|
-
if (dirty & /*activecategory, otherCategories*/ 17 && div1_class_value !== (div1_class_value = "Category " + (/*activecategory*/ ctx[0] === /*category*/ ctx[
|
|
5183
|
+
if (dirty & /*activecategory, otherCategories*/ 17 && div1_class_value !== (div1_class_value = "Category " + (/*activecategory*/ ctx[0] === /*category*/ ctx[24].id
|
|
5184
5184
|
? "Active"
|
|
5185
5185
|
: ""))) {
|
|
5186
5186
|
attr_dev(div1, "class", div1_class_value);
|
|
@@ -5197,7 +5197,7 @@
|
|
|
5197
5197
|
block,
|
|
5198
5198
|
id: create_each_block$1.name,
|
|
5199
5199
|
type: "each",
|
|
5200
|
-
source: "(
|
|
5200
|
+
source: "(95:4) {#each otherCategories as category}",
|
|
5201
5201
|
ctx
|
|
5202
5202
|
});
|
|
5203
5203
|
|
|
@@ -5220,7 +5220,7 @@
|
|
|
5220
5220
|
div = element("div");
|
|
5221
5221
|
if_block.c();
|
|
5222
5222
|
this.c = noop;
|
|
5223
|
-
add_location(div, file$2,
|
|
5223
|
+
add_location(div, file$2, 78, 0, 2894);
|
|
5224
5224
|
},
|
|
5225
5225
|
l: function claim(nodes) {
|
|
5226
5226
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -5228,7 +5228,7 @@
|
|
|
5228
5228
|
m: function mount(target, anchor) {
|
|
5229
5229
|
insert_dev(target, div, anchor);
|
|
5230
5230
|
if_block.m(div, null);
|
|
5231
|
-
/*div_binding*/ ctx[
|
|
5231
|
+
/*div_binding*/ ctx[16](div);
|
|
5232
5232
|
},
|
|
5233
5233
|
p: function update(ctx, [dirty]) {
|
|
5234
5234
|
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
@@ -5248,7 +5248,7 @@
|
|
|
5248
5248
|
d: function destroy(detaching) {
|
|
5249
5249
|
if (detaching) detach_dev(div);
|
|
5250
5250
|
if_block.d();
|
|
5251
|
-
/*div_binding*/ ctx[
|
|
5251
|
+
/*div_binding*/ ctx[16](null);
|
|
5252
5252
|
}
|
|
5253
5253
|
};
|
|
5254
5254
|
|
|
@@ -5276,6 +5276,7 @@
|
|
|
5276
5276
|
let { excludedflags = '' } = $$props;
|
|
5277
5277
|
let { clientstyling = '' } = $$props;
|
|
5278
5278
|
let { clientstylingurl = '' } = $$props;
|
|
5279
|
+
let { translationUrl = '' } = $$props;
|
|
5279
5280
|
let customStylingContainer;
|
|
5280
5281
|
let displayNone = false;
|
|
5281
5282
|
let isLoading = false;
|
|
@@ -5287,6 +5288,18 @@
|
|
|
5287
5288
|
addNewMessages$1(item, Translations$1[item]);
|
|
5288
5289
|
});
|
|
5289
5290
|
|
|
5291
|
+
const setTranslationUrl = () => {
|
|
5292
|
+
let url = translationUrl;
|
|
5293
|
+
|
|
5294
|
+
fetch(url).then(res => res.json()).then(res => {
|
|
5295
|
+
Object.keys(res).forEach(item => {
|
|
5296
|
+
addNewMessages$1(item, res[item]);
|
|
5297
|
+
});
|
|
5298
|
+
}).catch(err => {
|
|
5299
|
+
console.log(err);
|
|
5300
|
+
});
|
|
5301
|
+
};
|
|
5302
|
+
|
|
5290
5303
|
const getCategories = () => {
|
|
5291
5304
|
$$invalidate(2, isLoading = true);
|
|
5292
5305
|
const url = new URL(`${endpoint}/casino/groups/${datasource}`);
|
|
@@ -5358,11 +5371,12 @@
|
|
|
5358
5371
|
'activecategory',
|
|
5359
5372
|
'excludedflags',
|
|
5360
5373
|
'clientstyling',
|
|
5361
|
-
'clientstylingurl'
|
|
5374
|
+
'clientstylingurl',
|
|
5375
|
+
'translationUrl'
|
|
5362
5376
|
];
|
|
5363
5377
|
|
|
5364
5378
|
Object_1$2.keys($$props).forEach(key => {
|
|
5365
|
-
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot')
|
|
5379
|
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1$2.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
5366
5380
|
});
|
|
5367
5381
|
|
|
5368
5382
|
const click_handler = category => openGameCategory(category.id);
|
|
@@ -5383,6 +5397,7 @@
|
|
|
5383
5397
|
if ('excludedflags' in $$props) $$invalidate(10, excludedflags = $$props.excludedflags);
|
|
5384
5398
|
if ('clientstyling' in $$props) $$invalidate(11, clientstyling = $$props.clientstyling);
|
|
5385
5399
|
if ('clientstylingurl' in $$props) $$invalidate(12, clientstylingurl = $$props.clientstylingurl);
|
|
5400
|
+
if ('translationUrl' in $$props) $$invalidate(13, translationUrl = $$props.translationUrl);
|
|
5386
5401
|
};
|
|
5387
5402
|
|
|
5388
5403
|
$$self.$capture_state = () => ({
|
|
@@ -5397,12 +5412,14 @@
|
|
|
5397
5412
|
excludedflags,
|
|
5398
5413
|
clientstyling,
|
|
5399
5414
|
clientstylingurl,
|
|
5415
|
+
translationUrl,
|
|
5400
5416
|
customStylingContainer,
|
|
5401
5417
|
displayNone,
|
|
5402
5418
|
isLoading,
|
|
5403
5419
|
categories,
|
|
5404
5420
|
topCategories,
|
|
5405
5421
|
otherCategories,
|
|
5422
|
+
setTranslationUrl,
|
|
5406
5423
|
getCategories,
|
|
5407
5424
|
openGameCategory,
|
|
5408
5425
|
setActiveLanguage,
|
|
@@ -5419,6 +5436,7 @@
|
|
|
5419
5436
|
if ('excludedflags' in $$props) $$invalidate(10, excludedflags = $$props.excludedflags);
|
|
5420
5437
|
if ('clientstyling' in $$props) $$invalidate(11, clientstyling = $$props.clientstyling);
|
|
5421
5438
|
if ('clientstylingurl' in $$props) $$invalidate(12, clientstylingurl = $$props.clientstylingurl);
|
|
5439
|
+
if ('translationUrl' in $$props) $$invalidate(13, translationUrl = $$props.translationUrl);
|
|
5422
5440
|
if ('customStylingContainer' in $$props) $$invalidate(1, customStylingContainer = $$props.customStylingContainer);
|
|
5423
5441
|
if ('displayNone' in $$props) displayNone = $$props.displayNone;
|
|
5424
5442
|
if ('isLoading' in $$props) $$invalidate(2, isLoading = $$props.isLoading);
|
|
@@ -5435,6 +5453,10 @@
|
|
|
5435
5453
|
endpoint && datasource && getCategories();
|
|
5436
5454
|
}
|
|
5437
5455
|
|
|
5456
|
+
if ($$self.$$.dirty & /*translationUrl*/ 8192) {
|
|
5457
|
+
translationUrl && setTranslationUrl();
|
|
5458
|
+
}
|
|
5459
|
+
|
|
5438
5460
|
if ($$self.$$.dirty & /*lang*/ 512) {
|
|
5439
5461
|
lang && setActiveLanguage();
|
|
5440
5462
|
}
|
|
@@ -5462,6 +5484,7 @@
|
|
|
5462
5484
|
excludedflags,
|
|
5463
5485
|
clientstyling,
|
|
5464
5486
|
clientstylingurl,
|
|
5487
|
+
translationUrl,
|
|
5465
5488
|
click_handler,
|
|
5466
5489
|
click_handler_1,
|
|
5467
5490
|
div_binding
|
|
@@ -5490,7 +5513,8 @@
|
|
|
5490
5513
|
activecategory: 0,
|
|
5491
5514
|
excludedflags: 10,
|
|
5492
5515
|
clientstyling: 11,
|
|
5493
|
-
clientstylingurl: 12
|
|
5516
|
+
clientstylingurl: 12,
|
|
5517
|
+
translationUrl: 13
|
|
5494
5518
|
},
|
|
5495
5519
|
null
|
|
5496
5520
|
);
|
|
@@ -5515,7 +5539,8 @@
|
|
|
5515
5539
|
"activecategory",
|
|
5516
5540
|
"excludedflags",
|
|
5517
5541
|
"clientstyling",
|
|
5518
|
-
"clientstylingurl"
|
|
5542
|
+
"clientstylingurl",
|
|
5543
|
+
"translationUrl"
|
|
5519
5544
|
];
|
|
5520
5545
|
}
|
|
5521
5546
|
|
|
@@ -5581,6 +5606,15 @@
|
|
|
5581
5606
|
this.$$set({ clientstylingurl });
|
|
5582
5607
|
flush();
|
|
5583
5608
|
}
|
|
5609
|
+
|
|
5610
|
+
get translationUrl() {
|
|
5611
|
+
return this.$$.ctx[13];
|
|
5612
|
+
}
|
|
5613
|
+
|
|
5614
|
+
set translationUrl(translationUrl) {
|
|
5615
|
+
this.$$set({ translationUrl });
|
|
5616
|
+
flush();
|
|
5617
|
+
}
|
|
5584
5618
|
}
|
|
5585
5619
|
|
|
5586
5620
|
!customElements.get('casino-categories') && customElements.define('casino-categories', CasinoCategories);
|
|
@@ -5718,22 +5752,22 @@
|
|
|
5718
5752
|
|
|
5719
5753
|
/* ../casino-providers/src/CasinoProviders.svelte generated by Svelte v3.48.0 */
|
|
5720
5754
|
|
|
5721
|
-
const { Object: Object_1$1 } = globals;
|
|
5755
|
+
const { Object: Object_1$1, console: console_1$1 } = globals;
|
|
5722
5756
|
const file$1 = "../casino-providers/src/CasinoProviders.svelte";
|
|
5723
5757
|
|
|
5724
5758
|
function get_each_context(ctx, list, i) {
|
|
5725
5759
|
const child_ctx = ctx.slice();
|
|
5726
|
-
child_ctx[
|
|
5760
|
+
child_ctx[21] = list[i];
|
|
5727
5761
|
return child_ctx;
|
|
5728
5762
|
}
|
|
5729
5763
|
|
|
5730
5764
|
function get_each_context_1(ctx, list, i) {
|
|
5731
5765
|
const child_ctx = ctx.slice();
|
|
5732
|
-
child_ctx[
|
|
5766
|
+
child_ctx[21] = list[i];
|
|
5733
5767
|
return child_ctx;
|
|
5734
5768
|
}
|
|
5735
5769
|
|
|
5736
|
-
// (
|
|
5770
|
+
// (80:4) {:else}
|
|
5737
5771
|
function create_else_block(ctx) {
|
|
5738
5772
|
let h40;
|
|
5739
5773
|
let t0_value = /*$_*/ ctx[4]('Translations.popularProviders') + "";
|
|
@@ -5782,9 +5816,9 @@
|
|
|
5782
5816
|
|
|
5783
5817
|
each1_anchor = empty();
|
|
5784
5818
|
attr_dev(h40, "class", "ProviderTitle");
|
|
5785
|
-
add_location(h40, file$1,
|
|
5819
|
+
add_location(h40, file$1, 80, 4, 2874);
|
|
5786
5820
|
attr_dev(h41, "class", "ProviderTitle");
|
|
5787
|
-
add_location(h41, file$1,
|
|
5821
|
+
add_location(h41, file$1, 90, 6, 3364);
|
|
5788
5822
|
},
|
|
5789
5823
|
m: function mount(target, anchor) {
|
|
5790
5824
|
insert_dev(target, h40, anchor);
|
|
@@ -5875,14 +5909,14 @@
|
|
|
5875
5909
|
block,
|
|
5876
5910
|
id: create_else_block.name,
|
|
5877
5911
|
type: "else",
|
|
5878
|
-
source: "(
|
|
5912
|
+
source: "(80:4) {:else}",
|
|
5879
5913
|
ctx
|
|
5880
5914
|
});
|
|
5881
5915
|
|
|
5882
5916
|
return block;
|
|
5883
5917
|
}
|
|
5884
5918
|
|
|
5885
|
-
// (
|
|
5919
|
+
// (78:4) {#if isLoading === true}
|
|
5886
5920
|
function create_if_block(ctx) {
|
|
5887
5921
|
let p;
|
|
5888
5922
|
let t_value = /*$_*/ ctx[4]('Translations.loading') + "";
|
|
@@ -5893,7 +5927,7 @@
|
|
|
5893
5927
|
p = element("p");
|
|
5894
5928
|
t = text(t_value);
|
|
5895
5929
|
attr_dev(p, "class", "Message");
|
|
5896
|
-
add_location(p, file$1,
|
|
5930
|
+
add_location(p, file$1, 78, 6, 2804);
|
|
5897
5931
|
},
|
|
5898
5932
|
m: function mount(target, anchor) {
|
|
5899
5933
|
insert_dev(target, p, anchor);
|
|
@@ -5911,14 +5945,14 @@
|
|
|
5911
5945
|
block,
|
|
5912
5946
|
id: create_if_block.name,
|
|
5913
5947
|
type: "if",
|
|
5914
|
-
source: "(
|
|
5948
|
+
source: "(78:4) {#if isLoading === true}",
|
|
5915
5949
|
ctx
|
|
5916
5950
|
});
|
|
5917
5951
|
|
|
5918
5952
|
return block;
|
|
5919
5953
|
}
|
|
5920
5954
|
|
|
5921
|
-
// (
|
|
5955
|
+
// (82:6) {#each topProviders as provider}
|
|
5922
5956
|
function create_each_block_1(ctx) {
|
|
5923
5957
|
let div1;
|
|
5924
5958
|
let img;
|
|
@@ -5927,11 +5961,11 @@
|
|
|
5927
5961
|
let t0;
|
|
5928
5962
|
let div0;
|
|
5929
5963
|
let p0;
|
|
5930
|
-
let t1_value = /*provider*/ ctx[
|
|
5964
|
+
let t1_value = /*provider*/ ctx[21].name + "";
|
|
5931
5965
|
let t1;
|
|
5932
5966
|
let t2;
|
|
5933
5967
|
let p1;
|
|
5934
|
-
let t3_value = /*provider*/ ctx[
|
|
5968
|
+
let t3_value = /*provider*/ ctx[21].games.count + "";
|
|
5935
5969
|
let t3;
|
|
5936
5970
|
let t4;
|
|
5937
5971
|
let t5_value = /*$_*/ ctx[4]('Translations.games') + "";
|
|
@@ -5940,7 +5974,7 @@
|
|
|
5940
5974
|
let dispose;
|
|
5941
5975
|
|
|
5942
5976
|
function click_handler() {
|
|
5943
|
-
return /*click_handler*/ ctx[
|
|
5977
|
+
return /*click_handler*/ ctx[12](/*provider*/ ctx[21]);
|
|
5944
5978
|
}
|
|
5945
5979
|
|
|
5946
5980
|
const block = {
|
|
@@ -5956,16 +5990,16 @@
|
|
|
5956
5990
|
t3 = text(t3_value);
|
|
5957
5991
|
t4 = space();
|
|
5958
5992
|
t5 = text(t5_value);
|
|
5959
|
-
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[
|
|
5960
|
-
attr_dev(img, "alt", img_alt_value = /*provider*/ ctx[
|
|
5993
|
+
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[21].logo)) attr_dev(img, "src", img_src_value);
|
|
5994
|
+
attr_dev(img, "alt", img_alt_value = /*provider*/ ctx[21].name);
|
|
5961
5995
|
attr_dev(img, "class", "ProviderImage");
|
|
5962
|
-
add_location(img, file$1,
|
|
5963
|
-
add_location(p0, file$1,
|
|
5964
|
-
add_location(p1, file$1,
|
|
5996
|
+
add_location(img, file$1, 83, 8, 3100);
|
|
5997
|
+
add_location(p0, file$1, 85, 10, 3226);
|
|
5998
|
+
add_location(p1, file$1, 86, 10, 3259);
|
|
5965
5999
|
attr_dev(div0, "class", "ProviderTextContainer");
|
|
5966
|
-
add_location(div0, file$1,
|
|
6000
|
+
add_location(div0, file$1, 84, 8, 3180);
|
|
5967
6001
|
attr_dev(div1, "class", "Provider");
|
|
5968
|
-
add_location(div1, file$1,
|
|
6002
|
+
add_location(div1, file$1, 82, 6, 2988);
|
|
5969
6003
|
},
|
|
5970
6004
|
m: function mount(target, anchor) {
|
|
5971
6005
|
insert_dev(target, div1, anchor);
|
|
@@ -5988,16 +6022,16 @@
|
|
|
5988
6022
|
p: function update(new_ctx, dirty) {
|
|
5989
6023
|
ctx = new_ctx;
|
|
5990
6024
|
|
|
5991
|
-
if (dirty & /*topProviders*/ 2 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[
|
|
6025
|
+
if (dirty & /*topProviders*/ 2 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[21].logo)) {
|
|
5992
6026
|
attr_dev(img, "src", img_src_value);
|
|
5993
6027
|
}
|
|
5994
6028
|
|
|
5995
|
-
if (dirty & /*topProviders*/ 2 && img_alt_value !== (img_alt_value = /*provider*/ ctx[
|
|
6029
|
+
if (dirty & /*topProviders*/ 2 && img_alt_value !== (img_alt_value = /*provider*/ ctx[21].name)) {
|
|
5996
6030
|
attr_dev(img, "alt", img_alt_value);
|
|
5997
6031
|
}
|
|
5998
6032
|
|
|
5999
|
-
if (dirty & /*topProviders*/ 2 && t1_value !== (t1_value = /*provider*/ ctx[
|
|
6000
|
-
if (dirty & /*topProviders*/ 2 && t3_value !== (t3_value = /*provider*/ ctx[
|
|
6033
|
+
if (dirty & /*topProviders*/ 2 && t1_value !== (t1_value = /*provider*/ ctx[21].name + "")) set_data_dev(t1, t1_value);
|
|
6034
|
+
if (dirty & /*topProviders*/ 2 && t3_value !== (t3_value = /*provider*/ ctx[21].games.count + "")) set_data_dev(t3, t3_value);
|
|
6001
6035
|
if (dirty & /*$_*/ 16 && t5_value !== (t5_value = /*$_*/ ctx[4]('Translations.games') + "")) set_data_dev(t5, t5_value);
|
|
6002
6036
|
},
|
|
6003
6037
|
d: function destroy(detaching) {
|
|
@@ -6011,14 +6045,14 @@
|
|
|
6011
6045
|
block,
|
|
6012
6046
|
id: create_each_block_1.name,
|
|
6013
6047
|
type: "each",
|
|
6014
|
-
source: "(
|
|
6048
|
+
source: "(82:6) {#each topProviders as provider}",
|
|
6015
6049
|
ctx
|
|
6016
6050
|
});
|
|
6017
6051
|
|
|
6018
6052
|
return block;
|
|
6019
6053
|
}
|
|
6020
6054
|
|
|
6021
|
-
// (
|
|
6055
|
+
// (92:6) {#each otherProviders as provider}
|
|
6022
6056
|
function create_each_block(ctx) {
|
|
6023
6057
|
let div1;
|
|
6024
6058
|
let img;
|
|
@@ -6027,11 +6061,11 @@
|
|
|
6027
6061
|
let t0;
|
|
6028
6062
|
let div0;
|
|
6029
6063
|
let p0;
|
|
6030
|
-
let t1_value = /*provider*/ ctx[
|
|
6064
|
+
let t1_value = /*provider*/ ctx[21].name + "";
|
|
6031
6065
|
let t1;
|
|
6032
6066
|
let t2;
|
|
6033
6067
|
let p1;
|
|
6034
|
-
let t3_value = /*provider*/ ctx[
|
|
6068
|
+
let t3_value = /*provider*/ ctx[21].games.count + "";
|
|
6035
6069
|
let t3;
|
|
6036
6070
|
let t4;
|
|
6037
6071
|
let t5_value = /*$_*/ ctx[4]('Translations.games') + "";
|
|
@@ -6041,7 +6075,7 @@
|
|
|
6041
6075
|
let dispose;
|
|
6042
6076
|
|
|
6043
6077
|
function click_handler_1() {
|
|
6044
|
-
return /*click_handler_1*/ ctx[
|
|
6078
|
+
return /*click_handler_1*/ ctx[13](/*provider*/ ctx[21]);
|
|
6045
6079
|
}
|
|
6046
6080
|
|
|
6047
6081
|
const block = {
|
|
@@ -6058,16 +6092,16 @@
|
|
|
6058
6092
|
t4 = space();
|
|
6059
6093
|
t5 = text(t5_value);
|
|
6060
6094
|
t6 = space();
|
|
6061
|
-
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[
|
|
6062
|
-
attr_dev(img, "alt", img_alt_value = /*provider*/ ctx[
|
|
6095
|
+
if (!src_url_equal(img.src, img_src_value = /*provider*/ ctx[21].logo)) attr_dev(img, "src", img_src_value);
|
|
6096
|
+
attr_dev(img, "alt", img_alt_value = /*provider*/ ctx[21].name);
|
|
6063
6097
|
attr_dev(img, "class", "ProviderImage");
|
|
6064
|
-
add_location(img, file$1,
|
|
6065
|
-
add_location(p0, file$1,
|
|
6066
|
-
add_location(p1, file$1,
|
|
6098
|
+
add_location(img, file$1, 93, 10, 3594);
|
|
6099
|
+
add_location(p0, file$1, 95, 12, 3724);
|
|
6100
|
+
add_location(p1, file$1, 96, 12, 3759);
|
|
6067
6101
|
attr_dev(div0, "class", "ProviderTextContainer");
|
|
6068
|
-
add_location(div0, file$1,
|
|
6102
|
+
add_location(div0, file$1, 94, 10, 3676);
|
|
6069
6103
|
attr_dev(div1, "class", "Provider");
|
|
6070
|
-
add_location(div1, file$1,
|
|
6104
|
+
add_location(div1, file$1, 92, 8, 3480);
|
|
6071
6105
|
},
|
|
6072
6106
|
m: function mount(target, anchor) {
|
|
6073
6107
|
insert_dev(target, div1, anchor);
|
|
@@ -6091,16 +6125,16 @@
|
|
|
6091
6125
|
p: function update(new_ctx, dirty) {
|
|
6092
6126
|
ctx = new_ctx;
|
|
6093
6127
|
|
|
6094
|
-
if (dirty & /*otherProviders*/ 4 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[
|
|
6128
|
+
if (dirty & /*otherProviders*/ 4 && !src_url_equal(img.src, img_src_value = /*provider*/ ctx[21].logo)) {
|
|
6095
6129
|
attr_dev(img, "src", img_src_value);
|
|
6096
6130
|
}
|
|
6097
6131
|
|
|
6098
|
-
if (dirty & /*otherProviders*/ 4 && img_alt_value !== (img_alt_value = /*provider*/ ctx[
|
|
6132
|
+
if (dirty & /*otherProviders*/ 4 && img_alt_value !== (img_alt_value = /*provider*/ ctx[21].name)) {
|
|
6099
6133
|
attr_dev(img, "alt", img_alt_value);
|
|
6100
6134
|
}
|
|
6101
6135
|
|
|
6102
|
-
if (dirty & /*otherProviders*/ 4 && t1_value !== (t1_value = /*provider*/ ctx[
|
|
6103
|
-
if (dirty & /*otherProviders*/ 4 && t3_value !== (t3_value = /*provider*/ ctx[
|
|
6136
|
+
if (dirty & /*otherProviders*/ 4 && t1_value !== (t1_value = /*provider*/ ctx[21].name + "")) set_data_dev(t1, t1_value);
|
|
6137
|
+
if (dirty & /*otherProviders*/ 4 && t3_value !== (t3_value = /*provider*/ ctx[21].games.count + "")) set_data_dev(t3, t3_value);
|
|
6104
6138
|
if (dirty & /*$_*/ 16 && t5_value !== (t5_value = /*$_*/ ctx[4]('Translations.games') + "")) set_data_dev(t5, t5_value);
|
|
6105
6139
|
},
|
|
6106
6140
|
d: function destroy(detaching) {
|
|
@@ -6114,7 +6148,7 @@
|
|
|
6114
6148
|
block,
|
|
6115
6149
|
id: create_each_block.name,
|
|
6116
6150
|
type: "each",
|
|
6117
|
-
source: "(
|
|
6151
|
+
source: "(92:6) {#each otherProviders as provider}",
|
|
6118
6152
|
ctx
|
|
6119
6153
|
});
|
|
6120
6154
|
|
|
@@ -6140,8 +6174,8 @@
|
|
|
6140
6174
|
if_block.c();
|
|
6141
6175
|
this.c = noop;
|
|
6142
6176
|
attr_dev(div0, "class", "CasinoProviders");
|
|
6143
|
-
add_location(div0, file$1,
|
|
6144
|
-
add_location(div1, file$1,
|
|
6177
|
+
add_location(div0, file$1, 76, 2, 2739);
|
|
6178
|
+
add_location(div1, file$1, 75, 0, 2696);
|
|
6145
6179
|
},
|
|
6146
6180
|
l: function claim(nodes) {
|
|
6147
6181
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -6150,7 +6184,7 @@
|
|
|
6150
6184
|
insert_dev(target, div1, anchor);
|
|
6151
6185
|
append_dev(div1, div0);
|
|
6152
6186
|
if_block.m(div0, null);
|
|
6153
|
-
/*div1_binding*/ ctx[
|
|
6187
|
+
/*div1_binding*/ ctx[14](div1);
|
|
6154
6188
|
},
|
|
6155
6189
|
p: function update(ctx, [dirty]) {
|
|
6156
6190
|
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
@@ -6170,7 +6204,7 @@
|
|
|
6170
6204
|
d: function destroy(detaching) {
|
|
6171
6205
|
if (detaching) detach_dev(div1);
|
|
6172
6206
|
if_block.d();
|
|
6173
|
-
/*div1_binding*/ ctx[
|
|
6207
|
+
/*div1_binding*/ ctx[14](null);
|
|
6174
6208
|
}
|
|
6175
6209
|
};
|
|
6176
6210
|
|
|
@@ -6196,12 +6230,25 @@
|
|
|
6196
6230
|
let { lang = 'en' } = $$props;
|
|
6197
6231
|
let { clientstyling = '' } = $$props;
|
|
6198
6232
|
let { clientstylingurl = '' } = $$props;
|
|
6233
|
+
let { translationUrl = '' } = $$props;
|
|
6199
6234
|
let providers = [];
|
|
6200
6235
|
let topProviders = [];
|
|
6201
6236
|
let otherProviders = [];
|
|
6202
6237
|
let isLoading = false;
|
|
6203
6238
|
let customStylingContainer;
|
|
6204
6239
|
|
|
6240
|
+
const setTranslationUrl = () => {
|
|
6241
|
+
let url = translationUrl;
|
|
6242
|
+
|
|
6243
|
+
fetch(url).then(res => res.json()).then(res => {
|
|
6244
|
+
Object.keys(res).forEach(item => {
|
|
6245
|
+
addNewMessages(item, res[item]);
|
|
6246
|
+
});
|
|
6247
|
+
}).catch(err => {
|
|
6248
|
+
console.log(err);
|
|
6249
|
+
});
|
|
6250
|
+
};
|
|
6251
|
+
|
|
6205
6252
|
Object.keys(Translations).forEach(item => {
|
|
6206
6253
|
addNewMessages(item, Translations[item]);
|
|
6207
6254
|
});
|
|
@@ -6260,10 +6307,17 @@
|
|
|
6260
6307
|
});
|
|
6261
6308
|
};
|
|
6262
6309
|
|
|
6263
|
-
const writable_props = [
|
|
6310
|
+
const writable_props = [
|
|
6311
|
+
'endpoint',
|
|
6312
|
+
'datasource',
|
|
6313
|
+
'lang',
|
|
6314
|
+
'clientstyling',
|
|
6315
|
+
'clientstylingurl',
|
|
6316
|
+
'translationUrl'
|
|
6317
|
+
];
|
|
6264
6318
|
|
|
6265
6319
|
Object_1$1.keys($$props).forEach(key => {
|
|
6266
|
-
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot')
|
|
6320
|
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1$1.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
6267
6321
|
});
|
|
6268
6322
|
|
|
6269
6323
|
const click_handler = provider => openGameProviderPage(provider.id, provider.name, provider.logo);
|
|
@@ -6282,6 +6336,7 @@
|
|
|
6282
6336
|
if ('lang' in $$props) $$invalidate(8, lang = $$props.lang);
|
|
6283
6337
|
if ('clientstyling' in $$props) $$invalidate(9, clientstyling = $$props.clientstyling);
|
|
6284
6338
|
if ('clientstylingurl' in $$props) $$invalidate(10, clientstylingurl = $$props.clientstylingurl);
|
|
6339
|
+
if ('translationUrl' in $$props) $$invalidate(11, translationUrl = $$props.translationUrl);
|
|
6285
6340
|
};
|
|
6286
6341
|
|
|
6287
6342
|
$$self.$capture_state = () => ({
|
|
@@ -6294,11 +6349,13 @@
|
|
|
6294
6349
|
lang,
|
|
6295
6350
|
clientstyling,
|
|
6296
6351
|
clientstylingurl,
|
|
6352
|
+
translationUrl,
|
|
6297
6353
|
providers,
|
|
6298
6354
|
topProviders,
|
|
6299
6355
|
otherProviders,
|
|
6300
6356
|
isLoading,
|
|
6301
6357
|
customStylingContainer,
|
|
6358
|
+
setTranslationUrl,
|
|
6302
6359
|
getProviders,
|
|
6303
6360
|
openGameProviderPage,
|
|
6304
6361
|
setActiveLanguage,
|
|
@@ -6313,6 +6370,7 @@
|
|
|
6313
6370
|
if ('lang' in $$props) $$invalidate(8, lang = $$props.lang);
|
|
6314
6371
|
if ('clientstyling' in $$props) $$invalidate(9, clientstyling = $$props.clientstyling);
|
|
6315
6372
|
if ('clientstylingurl' in $$props) $$invalidate(10, clientstylingurl = $$props.clientstylingurl);
|
|
6373
|
+
if ('translationUrl' in $$props) $$invalidate(11, translationUrl = $$props.translationUrl);
|
|
6316
6374
|
if ('providers' in $$props) providers = $$props.providers;
|
|
6317
6375
|
if ('topProviders' in $$props) $$invalidate(1, topProviders = $$props.topProviders);
|
|
6318
6376
|
if ('otherProviders' in $$props) $$invalidate(2, otherProviders = $$props.otherProviders);
|
|
@@ -6333,6 +6391,10 @@
|
|
|
6333
6391
|
lang && setActiveLanguage();
|
|
6334
6392
|
}
|
|
6335
6393
|
|
|
6394
|
+
if ($$self.$$.dirty & /*translationUrl*/ 2048) {
|
|
6395
|
+
translationUrl && setTranslationUrl();
|
|
6396
|
+
}
|
|
6397
|
+
|
|
6336
6398
|
if ($$self.$$.dirty & /*clientstyling, customStylingContainer*/ 513) {
|
|
6337
6399
|
clientstyling && customStylingContainer && setClientStyling();
|
|
6338
6400
|
}
|
|
@@ -6354,6 +6416,7 @@
|
|
|
6354
6416
|
lang,
|
|
6355
6417
|
clientstyling,
|
|
6356
6418
|
clientstylingurl,
|
|
6419
|
+
translationUrl,
|
|
6357
6420
|
click_handler,
|
|
6358
6421
|
click_handler_1,
|
|
6359
6422
|
div1_binding
|
|
@@ -6380,7 +6443,8 @@
|
|
|
6380
6443
|
datasource: 7,
|
|
6381
6444
|
lang: 8,
|
|
6382
6445
|
clientstyling: 9,
|
|
6383
|
-
clientstylingurl: 10
|
|
6446
|
+
clientstylingurl: 10,
|
|
6447
|
+
translationUrl: 11
|
|
6384
6448
|
},
|
|
6385
6449
|
null
|
|
6386
6450
|
);
|
|
@@ -6398,7 +6462,14 @@
|
|
|
6398
6462
|
}
|
|
6399
6463
|
|
|
6400
6464
|
static get observedAttributes() {
|
|
6401
|
-
return [
|
|
6465
|
+
return [
|
|
6466
|
+
"endpoint",
|
|
6467
|
+
"datasource",
|
|
6468
|
+
"lang",
|
|
6469
|
+
"clientstyling",
|
|
6470
|
+
"clientstylingurl",
|
|
6471
|
+
"translationUrl"
|
|
6472
|
+
];
|
|
6402
6473
|
}
|
|
6403
6474
|
|
|
6404
6475
|
get endpoint() {
|
|
@@ -6445,13 +6516,22 @@
|
|
|
6445
6516
|
this.$$set({ clientstylingurl });
|
|
6446
6517
|
flush();
|
|
6447
6518
|
}
|
|
6519
|
+
|
|
6520
|
+
get translationUrl() {
|
|
6521
|
+
return this.$$.ctx[11];
|
|
6522
|
+
}
|
|
6523
|
+
|
|
6524
|
+
set translationUrl(translationUrl) {
|
|
6525
|
+
this.$$set({ translationUrl });
|
|
6526
|
+
flush();
|
|
6527
|
+
}
|
|
6448
6528
|
}
|
|
6449
6529
|
|
|
6450
6530
|
!customElements.get('casino-providers') && customElements.define('casino-providers', CasinoProviders);
|
|
6451
6531
|
|
|
6452
6532
|
/* src/CasinoCategoriesProviders.svelte generated by Svelte v3.48.0 */
|
|
6453
6533
|
|
|
6454
|
-
const { Object: Object_1 } = globals;
|
|
6534
|
+
const { Object: Object_1, console: console_1 } = globals;
|
|
6455
6535
|
const file = "src/CasinoCategoriesProviders.svelte";
|
|
6456
6536
|
|
|
6457
6537
|
function create_fragment(ctx) {
|
|
@@ -6496,11 +6576,11 @@
|
|
|
6496
6576
|
casino_providers = element("casino-providers");
|
|
6497
6577
|
this.c = noop;
|
|
6498
6578
|
attr_dev(button0, "class", button0_class_value = "HeaderButton " + (/*activeTab*/ ctx[10] === 'categories' ? 'Active' : ''));
|
|
6499
|
-
add_location(button0, file,
|
|
6579
|
+
add_location(button0, file, 68, 6, 2166);
|
|
6500
6580
|
attr_dev(button1, "class", button1_class_value = "HeaderButton " + (/*activeTab*/ ctx[10] === 'providers' ? 'Active' : ''));
|
|
6501
|
-
add_location(button1, file,
|
|
6581
|
+
add_location(button1, file, 71, 6, 2343);
|
|
6502
6582
|
attr_dev(div0, "class", "Header");
|
|
6503
|
-
add_location(div0, file,
|
|
6583
|
+
add_location(div0, file, 67, 4, 2139);
|
|
6504
6584
|
set_custom_element_data(casino_categories, "endpoint", /*endpointcategories*/ ctx[0]);
|
|
6505
6585
|
set_custom_element_data(casino_categories, "datasource", /*datasourcecategories*/ ctx[1]);
|
|
6506
6586
|
set_custom_element_data(casino_categories, "activecategory", /*activecategory*/ ctx[2]);
|
|
@@ -6508,28 +6588,28 @@
|
|
|
6508
6588
|
set_custom_element_data(casino_categories, "lang", /*lang*/ ctx[6]);
|
|
6509
6589
|
set_custom_element_data(casino_categories, "clientstyling", /*clientstyling*/ ctx[7]);
|
|
6510
6590
|
set_custom_element_data(casino_categories, "clientstylingurl", /*clientstylingurl*/ ctx[8]);
|
|
6511
|
-
add_location(casino_categories, file,
|
|
6591
|
+
add_location(casino_categories, file, 77, 6, 2598);
|
|
6512
6592
|
|
|
6513
6593
|
attr_dev(div1, "class", div1_class_value = /*activeTab*/ ctx[10] === 'providers'
|
|
6514
6594
|
? 'NotVisible'
|
|
6515
6595
|
: '');
|
|
6516
6596
|
|
|
6517
|
-
add_location(div1, file,
|
|
6597
|
+
add_location(div1, file, 76, 4, 2531);
|
|
6518
6598
|
set_custom_element_data(casino_providers, "endpoint", /*endpointproviders*/ ctx[3]);
|
|
6519
6599
|
set_custom_element_data(casino_providers, "datasource", /*datasourceproviders*/ ctx[4]);
|
|
6520
6600
|
set_custom_element_data(casino_providers, "lang", /*lang*/ ctx[6]);
|
|
6521
6601
|
set_custom_element_data(casino_providers, "clientstyling", /*clientstyling*/ ctx[7]);
|
|
6522
6602
|
set_custom_element_data(casino_providers, "clientstylingurl", /*clientstylingurl*/ ctx[8]);
|
|
6523
|
-
add_location(casino_providers, file,
|
|
6603
|
+
add_location(casino_providers, file, 88, 6, 2930);
|
|
6524
6604
|
|
|
6525
6605
|
attr_dev(div2, "class", div2_class_value = /*activeTab*/ ctx[10] === 'categories'
|
|
6526
6606
|
? 'NotVisible'
|
|
6527
6607
|
: '');
|
|
6528
6608
|
|
|
6529
|
-
add_location(div2, file,
|
|
6609
|
+
add_location(div2, file, 87, 4, 2862);
|
|
6530
6610
|
attr_dev(div3, "class", "CasinoCategoriesProviders");
|
|
6531
|
-
add_location(div3, file,
|
|
6532
|
-
add_location(div4, file,
|
|
6611
|
+
add_location(div3, file, 66, 2, 2095);
|
|
6612
|
+
add_location(div4, file, 65, 0, 2052);
|
|
6533
6613
|
},
|
|
6534
6614
|
l: function claim(nodes) {
|
|
6535
6615
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -6549,12 +6629,12 @@
|
|
|
6549
6629
|
append_dev(div3, t4);
|
|
6550
6630
|
append_dev(div3, div2);
|
|
6551
6631
|
append_dev(div2, casino_providers);
|
|
6552
|
-
/*div4_binding*/ ctx[
|
|
6632
|
+
/*div4_binding*/ ctx[16](div4);
|
|
6553
6633
|
|
|
6554
6634
|
if (!mounted) {
|
|
6555
6635
|
dispose = [
|
|
6556
|
-
listen_dev(button0, "click", /*click_handler*/ ctx[
|
|
6557
|
-
listen_dev(button1, "click", /*click_handler_1*/ ctx[
|
|
6636
|
+
listen_dev(button0, "click", /*click_handler*/ ctx[14], false, false, false),
|
|
6637
|
+
listen_dev(button1, "click", /*click_handler_1*/ ctx[15], false, false, false)
|
|
6558
6638
|
];
|
|
6559
6639
|
|
|
6560
6640
|
mounted = true;
|
|
@@ -6637,7 +6717,7 @@
|
|
|
6637
6717
|
o: noop,
|
|
6638
6718
|
d: function destroy(detaching) {
|
|
6639
6719
|
if (detaching) detach_dev(div4);
|
|
6640
|
-
/*div4_binding*/ ctx[
|
|
6720
|
+
/*div4_binding*/ ctx[16](null);
|
|
6641
6721
|
mounted = false;
|
|
6642
6722
|
run_all(dispose);
|
|
6643
6723
|
}
|
|
@@ -6669,10 +6749,23 @@
|
|
|
6669
6749
|
let { lang = 'en' } = $$props;
|
|
6670
6750
|
let { clientstyling = '' } = $$props;
|
|
6671
6751
|
let { clientstylingurl = '' } = $$props;
|
|
6752
|
+
let { translationUrl = '' } = $$props;
|
|
6672
6753
|
let activeTab = 'categories';
|
|
6673
6754
|
let customStylingContainer;
|
|
6674
6755
|
let displayNone = false;
|
|
6675
6756
|
|
|
6757
|
+
const setTranslationUrl = () => {
|
|
6758
|
+
let url = translationUrl;
|
|
6759
|
+
|
|
6760
|
+
fetch(url).then(res => res.json()).then(res => {
|
|
6761
|
+
Object.keys(res).forEach(item => {
|
|
6762
|
+
addNewMessages$2(item, res[item]);
|
|
6763
|
+
});
|
|
6764
|
+
}).catch(err => {
|
|
6765
|
+
console.log(err);
|
|
6766
|
+
});
|
|
6767
|
+
};
|
|
6768
|
+
|
|
6676
6769
|
Object.keys(Translations$2).forEach(item => {
|
|
6677
6770
|
addNewMessages$2(item, Translations$2[item]);
|
|
6678
6771
|
});
|
|
@@ -6727,11 +6820,12 @@
|
|
|
6727
6820
|
'excludedflags',
|
|
6728
6821
|
'lang',
|
|
6729
6822
|
'clientstyling',
|
|
6730
|
-
'clientstylingurl'
|
|
6823
|
+
'clientstylingurl',
|
|
6824
|
+
'translationUrl'
|
|
6731
6825
|
];
|
|
6732
6826
|
|
|
6733
6827
|
Object_1.keys($$props).forEach(key => {
|
|
6734
|
-
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot')
|
|
6828
|
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
6735
6829
|
});
|
|
6736
6830
|
|
|
6737
6831
|
const click_handler = () => toggleTab('categories');
|
|
@@ -6754,6 +6848,7 @@
|
|
|
6754
6848
|
if ('lang' in $$props) $$invalidate(6, lang = $$props.lang);
|
|
6755
6849
|
if ('clientstyling' in $$props) $$invalidate(7, clientstyling = $$props.clientstyling);
|
|
6756
6850
|
if ('clientstylingurl' in $$props) $$invalidate(8, clientstylingurl = $$props.clientstylingurl);
|
|
6851
|
+
if ('translationUrl' in $$props) $$invalidate(13, translationUrl = $$props.translationUrl);
|
|
6757
6852
|
};
|
|
6758
6853
|
|
|
6759
6854
|
$$self.$capture_state = () => ({
|
|
@@ -6770,9 +6865,11 @@
|
|
|
6770
6865
|
lang,
|
|
6771
6866
|
clientstyling,
|
|
6772
6867
|
clientstylingurl,
|
|
6868
|
+
translationUrl,
|
|
6773
6869
|
activeTab,
|
|
6774
6870
|
customStylingContainer,
|
|
6775
6871
|
displayNone,
|
|
6872
|
+
setTranslationUrl,
|
|
6776
6873
|
toggleTab,
|
|
6777
6874
|
setActiveLanguage,
|
|
6778
6875
|
setClientStyling,
|
|
@@ -6790,6 +6887,7 @@
|
|
|
6790
6887
|
if ('lang' in $$props) $$invalidate(6, lang = $$props.lang);
|
|
6791
6888
|
if ('clientstyling' in $$props) $$invalidate(7, clientstyling = $$props.clientstyling);
|
|
6792
6889
|
if ('clientstylingurl' in $$props) $$invalidate(8, clientstylingurl = $$props.clientstylingurl);
|
|
6890
|
+
if ('translationUrl' in $$props) $$invalidate(13, translationUrl = $$props.translationUrl);
|
|
6793
6891
|
if ('activeTab' in $$props) $$invalidate(10, activeTab = $$props.activeTab);
|
|
6794
6892
|
if ('customStylingContainer' in $$props) $$invalidate(9, customStylingContainer = $$props.customStylingContainer);
|
|
6795
6893
|
if ('displayNone' in $$props) displayNone = $$props.displayNone;
|
|
@@ -6800,6 +6898,10 @@
|
|
|
6800
6898
|
}
|
|
6801
6899
|
|
|
6802
6900
|
$$self.$$.update = () => {
|
|
6901
|
+
if ($$self.$$.dirty & /*translationUrl*/ 8192) {
|
|
6902
|
+
translationUrl && setTranslationUrl();
|
|
6903
|
+
}
|
|
6904
|
+
|
|
6803
6905
|
if ($$self.$$.dirty & /*lang*/ 64) {
|
|
6804
6906
|
lang && setActiveLanguage();
|
|
6805
6907
|
}
|
|
@@ -6827,6 +6929,7 @@
|
|
|
6827
6929
|
activeTab,
|
|
6828
6930
|
$_,
|
|
6829
6931
|
toggleTab,
|
|
6932
|
+
translationUrl,
|
|
6830
6933
|
click_handler,
|
|
6831
6934
|
click_handler_1,
|
|
6832
6935
|
div4_binding
|
|
@@ -6857,7 +6960,8 @@
|
|
|
6857
6960
|
excludedflags: 5,
|
|
6858
6961
|
lang: 6,
|
|
6859
6962
|
clientstyling: 7,
|
|
6860
|
-
clientstylingurl: 8
|
|
6963
|
+
clientstylingurl: 8,
|
|
6964
|
+
translationUrl: 13
|
|
6861
6965
|
},
|
|
6862
6966
|
null
|
|
6863
6967
|
);
|
|
@@ -6884,7 +6988,8 @@
|
|
|
6884
6988
|
"excludedflags",
|
|
6885
6989
|
"lang",
|
|
6886
6990
|
"clientstyling",
|
|
6887
|
-
"clientstylingurl"
|
|
6991
|
+
"clientstylingurl",
|
|
6992
|
+
"translationUrl"
|
|
6888
6993
|
];
|
|
6889
6994
|
}
|
|
6890
6995
|
|
|
@@ -6968,6 +7073,15 @@
|
|
|
6968
7073
|
this.$$set({ clientstylingurl });
|
|
6969
7074
|
flush();
|
|
6970
7075
|
}
|
|
7076
|
+
|
|
7077
|
+
get translationUrl() {
|
|
7078
|
+
return this.$$.ctx[13];
|
|
7079
|
+
}
|
|
7080
|
+
|
|
7081
|
+
set translationUrl(translationUrl) {
|
|
7082
|
+
this.$$set({ translationUrl });
|
|
7083
|
+
flush();
|
|
7084
|
+
}
|
|
6971
7085
|
}
|
|
6972
7086
|
|
|
6973
7087
|
!customElements.get('casino-categories-providers') && customElements.define('casino-categories-providers', CasinoCategoriesProviders);
|