@everymatrix/casino-filter-modal 0.0.95 → 0.0.99
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.
|
@@ -4745,7 +4745,7 @@
|
|
|
4745
4745
|
const { console: console_1 } = globals;
|
|
4746
4746
|
const file = "src/CasinoFilterModal.svelte";
|
|
4747
4747
|
|
|
4748
|
-
// (
|
|
4748
|
+
// (85:2) {#if show}
|
|
4749
4749
|
function create_if_block(ctx) {
|
|
4750
4750
|
let div1;
|
|
4751
4751
|
let div0;
|
|
@@ -4776,29 +4776,29 @@
|
|
|
4776
4776
|
attr_dev(path, "stroke-linejoin", "round");
|
|
4777
4777
|
attr_dev(path, "stroke-width", "2");
|
|
4778
4778
|
attr_dev(path, "d", "M6 18L18 6M6 6l12 12");
|
|
4779
|
-
add_location(path, file,
|
|
4779
|
+
add_location(path, file, 96, 122, 3056);
|
|
4780
4780
|
attr_dev(svg, "class", "w-6 h-6");
|
|
4781
4781
|
attr_dev(svg, "fill", "none");
|
|
4782
4782
|
attr_dev(svg, "stroke", "currentColor");
|
|
4783
4783
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
4784
4784
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4785
|
-
add_location(svg, file,
|
|
4785
|
+
add_location(svg, file, 96, 12, 2946);
|
|
4786
4786
|
attr_dev(slot0, "name", "close");
|
|
4787
|
-
add_location(slot0, file,
|
|
4787
|
+
add_location(slot0, file, 95, 10, 2914);
|
|
4788
4788
|
attr_dev(span, "class", "FilterModalCloseBtn");
|
|
4789
4789
|
attr_dev(span, "role", "button");
|
|
4790
|
-
add_location(span, file,
|
|
4791
|
-
add_location(slot1, file,
|
|
4790
|
+
add_location(span, file, 94, 8, 2838);
|
|
4791
|
+
add_location(slot1, file, 100, 8, 3208);
|
|
4792
4792
|
|
|
4793
4793
|
attr_dev(div0, "class", div0_class_value = "FilterModalContainer " + (/*mobileView*/ ctx[2]
|
|
4794
4794
|
? "FilterModalMobileContainer"
|
|
4795
4795
|
: ""));
|
|
4796
4796
|
|
|
4797
|
-
add_location(div0, file,
|
|
4797
|
+
add_location(div0, file, 93, 6, 2746);
|
|
4798
4798
|
attr_dev(div1, "class", "FilterModalWindow");
|
|
4799
4799
|
attr_dev(div1, "id", "FilterModal");
|
|
4800
4800
|
add_render_callback(() => /*div1_elementresize_handler*/ ctx[14].call(div1));
|
|
4801
|
-
add_location(div1, file,
|
|
4801
|
+
add_location(div1, file, 85, 4, 2524);
|
|
4802
4802
|
},
|
|
4803
4803
|
m: function mount(target, anchor) {
|
|
4804
4804
|
insert_dev(target, div1, anchor);
|
|
@@ -4856,7 +4856,7 @@
|
|
|
4856
4856
|
block,
|
|
4857
4857
|
id: create_if_block.name,
|
|
4858
4858
|
type: "if",
|
|
4859
|
-
source: "(
|
|
4859
|
+
source: "(85:2) {#if show}",
|
|
4860
4860
|
ctx
|
|
4861
4861
|
});
|
|
4862
4862
|
|
|
@@ -4873,7 +4873,7 @@
|
|
|
4873
4873
|
div = element("div");
|
|
4874
4874
|
if (if_block) if_block.c();
|
|
4875
4875
|
this.c = noop$1;
|
|
4876
|
-
add_location(div, file,
|
|
4876
|
+
add_location(div, file, 83, 0, 2466);
|
|
4877
4877
|
},
|
|
4878
4878
|
l: function claim(nodes) {
|
|
4879
4879
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -4984,23 +4984,17 @@
|
|
|
4984
4984
|
};
|
|
4985
4985
|
|
|
4986
4986
|
const setSession = () => {
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
err => {
|
|
4999
|
-
isLoggedIn = false;
|
|
5000
|
-
console.error("err on session", err);
|
|
5001
|
-
}
|
|
5002
|
-
);
|
|
5003
|
-
}
|
|
4987
|
+
checkSession(endpoint, session).then(
|
|
4988
|
+
res => {
|
|
4989
|
+
sessionID = res.Guid;
|
|
4990
|
+
playerID = res.UserID;
|
|
4991
|
+
isLoggedIn = true;
|
|
4992
|
+
},
|
|
4993
|
+
err => {
|
|
4994
|
+
isLoggedIn = false;
|
|
4995
|
+
console.error("err on session", err);
|
|
4996
|
+
}
|
|
4997
|
+
);
|
|
5004
4998
|
};
|
|
5005
4999
|
|
|
5006
5000
|
const setClientStyling = () => {
|
|
@@ -5016,19 +5010,11 @@
|
|
|
5016
5010
|
|
|
5017
5011
|
const setClientStylingURL = () => {
|
|
5018
5012
|
let cssFile = document.createElement("style");
|
|
5019
|
-
cssFile.innerHTML = `@import ${clientstylingurl}`;
|
|
5020
5013
|
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
if (customStylingContainer) {
|
|
5026
|
-
setTimeout(() => {
|
|
5027
|
-
customStylingContainer.appendChild(cssFile);
|
|
5028
|
-
});
|
|
5029
|
-
}
|
|
5030
|
-
});
|
|
5031
|
-
}
|
|
5014
|
+
fetch(new URL(clientstylingurl)).then(res => res.text()).then(data => {
|
|
5015
|
+
cssFile.innerHTML = data;
|
|
5016
|
+
customStylingContainer.appendChild(cssFile);
|
|
5017
|
+
});
|
|
5032
5018
|
};
|
|
5033
5019
|
|
|
5034
5020
|
onMount(() => {
|
|
@@ -5157,6 +5143,10 @@
|
|
|
5157
5143
|
if ($$self.$$.dirty & /*clientstylingurl*/ 2048) {
|
|
5158
5144
|
clientstylingurl && setClientStylingURL();
|
|
5159
5145
|
}
|
|
5146
|
+
|
|
5147
|
+
if ($$self.$$.dirty & /*show*/ 1) {
|
|
5148
|
+
show && setClientStylingURL();
|
|
5149
|
+
}
|
|
5160
5150
|
};
|
|
5161
5151
|
|
|
5162
5152
|
return [
|