@everymatrix/casino-search 1.6.0 → 1.7.0
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.
- package/dist/casino-search.js +44 -40
- package/dist/casino-search.js.map +1 -1
- package/package.json +2 -2
- package/src/CasinoSearch.svelte +8 -5
- package/src/translations.js +2 -2
package/dist/casino-search.js
CHANGED
|
@@ -4634,7 +4634,7 @@
|
|
|
4634
4634
|
noRecentSearches: "No recent searches yet. Search for any of our games.",
|
|
4635
4635
|
},
|
|
4636
4636
|
},
|
|
4637
|
-
zh: {
|
|
4637
|
+
'zh-hk': {
|
|
4638
4638
|
Translations: {
|
|
4639
4639
|
recentSearch: "最近的搜索",
|
|
4640
4640
|
loading: "加载请稍候",
|
|
@@ -4684,7 +4684,7 @@
|
|
|
4684
4684
|
noRecentSearches: "Pas encore de recherches récentes. Recherchez l'un de nos jeux.",
|
|
4685
4685
|
},
|
|
4686
4686
|
},
|
|
4687
|
-
|
|
4687
|
+
|
|
4688
4688
|
|
|
4689
4689
|
es: {
|
|
4690
4690
|
Translations: {
|
|
@@ -12003,7 +12003,7 @@
|
|
|
12003
12003
|
dealer: 'Dealer',
|
|
12004
12004
|
},
|
|
12005
12005
|
},
|
|
12006
|
-
zh: {
|
|
12006
|
+
'zh-hk': {
|
|
12007
12007
|
gameThumbnail: {
|
|
12008
12008
|
playNow: '現在開始!',
|
|
12009
12009
|
new: '新的',
|
|
@@ -15178,7 +15178,7 @@
|
|
|
15178
15178
|
return child_ctx;
|
|
15179
15179
|
}
|
|
15180
15180
|
|
|
15181
|
-
// (
|
|
15181
|
+
// (294:4) {:else}
|
|
15182
15182
|
function create_else_block(ctx) {
|
|
15183
15183
|
let t0;
|
|
15184
15184
|
let div;
|
|
@@ -15204,7 +15204,7 @@
|
|
|
15204
15204
|
t1 = space();
|
|
15205
15205
|
if (if_block2) if_block2.c();
|
|
15206
15206
|
attr_dev(div, "class", div_class_value = "SearchResultsContainer " + (/*searchActive*/ ctx[13] == true ? '' : 'NotVisible'));
|
|
15207
|
-
add_location(div, file,
|
|
15207
|
+
add_location(div, file, 304, 6, 10644);
|
|
15208
15208
|
},
|
|
15209
15209
|
m: function mount(target, anchor) {
|
|
15210
15210
|
if (if_block0) if_block0.m(target, anchor);
|
|
@@ -15273,14 +15273,14 @@
|
|
|
15273
15273
|
block,
|
|
15274
15274
|
id: create_else_block.name,
|
|
15275
15275
|
type: "else",
|
|
15276
|
-
source: "(
|
|
15276
|
+
source: "(294:4) {:else}",
|
|
15277
15277
|
ctx
|
|
15278
15278
|
});
|
|
15279
15279
|
|
|
15280
15280
|
return block;
|
|
15281
15281
|
}
|
|
15282
15282
|
|
|
15283
|
-
// (
|
|
15283
|
+
// (292:4) {#if isLoading}
|
|
15284
15284
|
function create_if_block(ctx) {
|
|
15285
15285
|
let p;
|
|
15286
15286
|
let t_value = /*$_*/ ctx[17]('Translations.loading') + "";
|
|
@@ -15290,7 +15290,7 @@
|
|
|
15290
15290
|
c: function create() {
|
|
15291
15291
|
p = element("p");
|
|
15292
15292
|
t = text(t_value);
|
|
15293
|
-
add_location(p, file,
|
|
15293
|
+
add_location(p, file, 292, 6, 10136);
|
|
15294
15294
|
},
|
|
15295
15295
|
m: function mount(target, anchor) {
|
|
15296
15296
|
insert_dev(target, p, anchor);
|
|
@@ -15308,14 +15308,14 @@
|
|
|
15308
15308
|
block,
|
|
15309
15309
|
id: create_if_block.name,
|
|
15310
15310
|
type: "if",
|
|
15311
|
-
source: "(
|
|
15311
|
+
source: "(292:4) {#if isLoading}",
|
|
15312
15312
|
ctx
|
|
15313
15313
|
});
|
|
15314
15314
|
|
|
15315
15315
|
return block;
|
|
15316
15316
|
}
|
|
15317
15317
|
|
|
15318
|
-
// (
|
|
15318
|
+
// (302:40)
|
|
15319
15319
|
function create_if_block_5(ctx) {
|
|
15320
15320
|
let p;
|
|
15321
15321
|
let t_value = /*$_*/ ctx[17]('Translations.searchResult') + "";
|
|
@@ -15326,7 +15326,7 @@
|
|
|
15326
15326
|
p = element("p");
|
|
15327
15327
|
t = text(t_value);
|
|
15328
15328
|
attr_dev(p, "class", "SearchMessage");
|
|
15329
|
-
add_location(p, file,
|
|
15329
|
+
add_location(p, file, 302, 8, 10562);
|
|
15330
15330
|
},
|
|
15331
15331
|
m: function mount(target, anchor) {
|
|
15332
15332
|
insert_dev(target, p, anchor);
|
|
@@ -15344,14 +15344,14 @@
|
|
|
15344
15344
|
block,
|
|
15345
15345
|
id: create_if_block_5.name,
|
|
15346
15346
|
type: "if",
|
|
15347
|
-
source: "(
|
|
15347
|
+
source: "(302:40) ",
|
|
15348
15348
|
ctx
|
|
15349
15349
|
});
|
|
15350
15350
|
|
|
15351
15351
|
return block;
|
|
15352
15352
|
}
|
|
15353
15353
|
|
|
15354
|
-
// (
|
|
15354
|
+
// (295:6) {#if searchActive == true && searchValue.length < 2}
|
|
15355
15355
|
function create_if_block_3(ctx) {
|
|
15356
15356
|
let p;
|
|
15357
15357
|
let t0_value = /*$_*/ ctx[17]('Translations.recentSearch') + "";
|
|
@@ -15368,7 +15368,7 @@
|
|
|
15368
15368
|
if (if_block) if_block.c();
|
|
15369
15369
|
if_block_anchor = empty();
|
|
15370
15370
|
attr_dev(p, "class", "SearchMessage");
|
|
15371
|
-
add_location(p, file,
|
|
15371
|
+
add_location(p, file, 295, 8, 10251);
|
|
15372
15372
|
},
|
|
15373
15373
|
m: function mount(target, anchor) {
|
|
15374
15374
|
insert_dev(target, p, anchor);
|
|
@@ -15405,14 +15405,14 @@
|
|
|
15405
15405
|
block,
|
|
15406
15406
|
id: create_if_block_3.name,
|
|
15407
15407
|
type: "if",
|
|
15408
|
-
source: "(
|
|
15408
|
+
source: "(295:6) {#if searchActive == true && searchValue.length < 2}",
|
|
15409
15409
|
ctx
|
|
15410
15410
|
});
|
|
15411
15411
|
|
|
15412
15412
|
return block;
|
|
15413
15413
|
}
|
|
15414
15414
|
|
|
15415
|
-
// (
|
|
15415
|
+
// (297:10) {#if searchArray.length == 0}
|
|
15416
15416
|
function create_if_block_4(ctx) {
|
|
15417
15417
|
let div;
|
|
15418
15418
|
let p;
|
|
@@ -15425,9 +15425,9 @@
|
|
|
15425
15425
|
p = element("p");
|
|
15426
15426
|
t = text(t_value);
|
|
15427
15427
|
attr_dev(p, "class", "SearchMessage");
|
|
15428
|
-
add_location(p, file,
|
|
15428
|
+
add_location(p, file, 298, 12, 10412);
|
|
15429
15429
|
attr_dev(div, "class", "ResultsContainerError");
|
|
15430
|
-
add_location(div, file,
|
|
15430
|
+
add_location(div, file, 297, 10, 10364);
|
|
15431
15431
|
},
|
|
15432
15432
|
m: function mount(target, anchor) {
|
|
15433
15433
|
insert_dev(target, div, anchor);
|
|
@@ -15446,14 +15446,14 @@
|
|
|
15446
15446
|
block,
|
|
15447
15447
|
id: create_if_block_4.name,
|
|
15448
15448
|
type: "if",
|
|
15449
|
-
source: "(
|
|
15449
|
+
source: "(297:10) {#if searchArray.length == 0}",
|
|
15450
15450
|
ctx
|
|
15451
15451
|
});
|
|
15452
15452
|
|
|
15453
15453
|
return block;
|
|
15454
15454
|
}
|
|
15455
15455
|
|
|
15456
|
-
// (
|
|
15456
|
+
// (306:8) {#if searchCancelled === false}
|
|
15457
15457
|
function create_if_block_2(ctx) {
|
|
15458
15458
|
let each_1_anchor;
|
|
15459
15459
|
let each_value = /*searchArray*/ ctx[11];
|
|
@@ -15514,14 +15514,14 @@
|
|
|
15514
15514
|
block,
|
|
15515
15515
|
id: create_if_block_2.name,
|
|
15516
15516
|
type: "if",
|
|
15517
|
-
source: "(
|
|
15517
|
+
source: "(306:8) {#if searchCancelled === false}",
|
|
15518
15518
|
ctx
|
|
15519
15519
|
});
|
|
15520
15520
|
|
|
15521
15521
|
return block;
|
|
15522
15522
|
}
|
|
15523
15523
|
|
|
15524
|
-
// (
|
|
15524
|
+
// (307:10) {#each searchArray as game}
|
|
15525
15525
|
function create_each_block(ctx) {
|
|
15526
15526
|
let casino_game_thumbnail;
|
|
15527
15527
|
let casino_game_thumbnail_gamethumbnail_value;
|
|
@@ -15562,7 +15562,7 @@
|
|
|
15562
15562
|
set_custom_element_data(casino_game_thumbnail, "clientstyling", /*clientstyling*/ ctx[2]);
|
|
15563
15563
|
set_custom_element_data(casino_game_thumbnail, "clientstylingurl", /*clientstylingurl*/ ctx[3]);
|
|
15564
15564
|
set_custom_element_data(casino_game_thumbnail, "gamepagemodalurl", /*gamepagemodalurl*/ ctx[6]);
|
|
15565
|
-
add_location(casino_game_thumbnail, file,
|
|
15565
|
+
add_location(casino_game_thumbnail, file, 307, 12, 10813);
|
|
15566
15566
|
},
|
|
15567
15567
|
m: function mount(target, anchor) {
|
|
15568
15568
|
insert_dev(target, casino_game_thumbnail, anchor);
|
|
@@ -15659,14 +15659,14 @@
|
|
|
15659
15659
|
block,
|
|
15660
15660
|
id: create_each_block.name,
|
|
15661
15661
|
type: "each",
|
|
15662
|
-
source: "(
|
|
15662
|
+
source: "(307:10) {#each searchArray as game}",
|
|
15663
15663
|
ctx
|
|
15664
15664
|
});
|
|
15665
15665
|
|
|
15666
15666
|
return block;
|
|
15667
15667
|
}
|
|
15668
15668
|
|
|
15669
|
-
// (
|
|
15669
|
+
// (332:8) {#if searchValue.length >= 2 && searchArray.length == 0}
|
|
15670
15670
|
function create_if_block_1(ctx) {
|
|
15671
15671
|
let div;
|
|
15672
15672
|
let p0;
|
|
@@ -15686,10 +15686,10 @@
|
|
|
15686
15686
|
p1 = element("p");
|
|
15687
15687
|
t2 = text(t2_value);
|
|
15688
15688
|
attr_dev(p0, "class", "SearchMessage");
|
|
15689
|
-
add_location(p0, file,
|
|
15690
|
-
add_location(p1, file,
|
|
15689
|
+
add_location(p0, file, 333, 12, 11862);
|
|
15690
|
+
add_location(p1, file, 334, 12, 11933);
|
|
15691
15691
|
attr_dev(div, "class", "ResultsContainerError");
|
|
15692
|
-
add_location(div, file,
|
|
15692
|
+
add_location(div, file, 332, 10, 11814);
|
|
15693
15693
|
},
|
|
15694
15694
|
m: function mount(target, anchor) {
|
|
15695
15695
|
insert_dev(target, div, anchor);
|
|
@@ -15712,7 +15712,7 @@
|
|
|
15712
15712
|
block,
|
|
15713
15713
|
id: create_if_block_1.name,
|
|
15714
15714
|
type: "if",
|
|
15715
|
-
source: "(
|
|
15715
|
+
source: "(332:8) {#if searchValue.length >= 2 && searchArray.length == 0}",
|
|
15716
15716
|
ctx
|
|
15717
15717
|
});
|
|
15718
15718
|
|
|
@@ -15777,47 +15777,47 @@
|
|
|
15777
15777
|
attr_dev(path0, "stroke-linecap", "round");
|
|
15778
15778
|
attr_dev(path0, "stroke-linejoin", "round");
|
|
15779
15779
|
attr_dev(path0, "d", "m10.48 10.985 2.21 2.373");
|
|
15780
|
-
add_location(path0, file,
|
|
15780
|
+
add_location(path0, file, 277, 10, 9113);
|
|
15781
15781
|
attr_dev(circle, "cx", "6.5");
|
|
15782
15782
|
attr_dev(circle, "cy", "6.5");
|
|
15783
15783
|
attr_dev(circle, "r", "5.75");
|
|
15784
15784
|
attr_dev(circle, "stroke", "#212121");
|
|
15785
15785
|
attr_dev(circle, "stroke-width", "1.5");
|
|
15786
|
-
add_location(circle, file,
|
|
15786
|
+
add_location(circle, file, 278, 10, 9241);
|
|
15787
15787
|
attr_dev(svg0, "width", "14");
|
|
15788
15788
|
attr_dev(svg0, "height", "15");
|
|
15789
15789
|
attr_dev(svg0, "fill", "none");
|
|
15790
15790
|
attr_dev(svg0, "xmlns", "http://www.w3.org/2000/svg");
|
|
15791
|
-
add_location(svg0, file,
|
|
15791
|
+
add_location(svg0, file, 276, 8, 9027);
|
|
15792
15792
|
attr_dev(div0, "class", "SearchIcon");
|
|
15793
|
-
add_location(div0, file,
|
|
15793
|
+
add_location(div0, file, 275, 6, 8994);
|
|
15794
15794
|
attr_dev(input, "class", input_class_value = "SearchInput " + (/*searchCancelled*/ ctx[9] ? '' : 'SearchAnimation'));
|
|
15795
15795
|
attr_dev(input, "type", "search");
|
|
15796
15796
|
attr_dev(input, "placeholder", input_placeholder_value = /*$_*/ ctx[17]('Translations.placeHolderSearchGames'));
|
|
15797
|
-
add_location(input, file,
|
|
15797
|
+
add_location(input, file, 281, 8, 9350);
|
|
15798
15798
|
attr_dev(path1, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8");
|
|
15799
15799
|
attr_dev(path1, "stroke", "#717171");
|
|
15800
15800
|
attr_dev(path1, "stroke-width", "2");
|
|
15801
15801
|
attr_dev(path1, "stroke-linecap", "round");
|
|
15802
15802
|
attr_dev(path1, "stroke-linejoin", "round");
|
|
15803
|
-
add_location(path1, file,
|
|
15803
|
+
add_location(path1, file, 284, 12, 9780);
|
|
15804
15804
|
attr_dev(svg1, "width", "11");
|
|
15805
15805
|
attr_dev(svg1, "height", "11");
|
|
15806
15806
|
attr_dev(svg1, "fill", "none");
|
|
15807
15807
|
attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg");
|
|
15808
|
-
add_location(svg1, file,
|
|
15808
|
+
add_location(svg1, file, 283, 10, 9692);
|
|
15809
15809
|
attr_dev(span, "class", span_class_value = "SearchClearButton " + (/*searchValue*/ ctx[8].length != 0 ? '' : 'NotVisible'));
|
|
15810
|
-
add_location(span, file,
|
|
15810
|
+
add_location(span, file, 282, 8, 9571);
|
|
15811
15811
|
attr_dev(small, "class", small_class_value = "SearchCancelButton " + (/*searchCancelled*/ ctx[9] ? 'NotVisible' : ''));
|
|
15812
|
-
add_location(small, file,
|
|
15812
|
+
add_location(small, file, 287, 6, 9943);
|
|
15813
15813
|
attr_dev(div1, "class", "Search");
|
|
15814
|
-
add_location(div1, file,
|
|
15814
|
+
add_location(div1, file, 274, 4, 8967);
|
|
15815
15815
|
|
|
15816
15816
|
attr_dev(div2, "class", "" + ((getDevice(/*userAgent*/ ctx[18]) !== 'PC'
|
|
15817
15817
|
? ''
|
|
15818
15818
|
: 'Desktop') + " CasinoSearch"));
|
|
15819
15819
|
|
|
15820
|
-
add_location(div2, file,
|
|
15820
|
+
add_location(div2, file, 273, 2, 8850);
|
|
15821
15821
|
},
|
|
15822
15822
|
l: function claim(nodes) {
|
|
15823
15823
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -15972,6 +15972,10 @@
|
|
|
15972
15972
|
$$invalidate(16, playerID = e.data.userid);
|
|
15973
15973
|
$$invalidate(27, isLoggedIn = true);
|
|
15974
15974
|
}
|
|
15975
|
+
|
|
15976
|
+
if (e.data.type == 'CategoryChange') {
|
|
15977
|
+
cancelSearch();
|
|
15978
|
+
}
|
|
15975
15979
|
};
|
|
15976
15980
|
|
|
15977
15981
|
const onFocus = () => {
|