@everymatrix/player-account-gaming-limits-info-card 0.0.162 → 0.0.166
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.
|
@@ -4756,29 +4756,92 @@
|
|
|
4756
4756
|
return 'PC';
|
|
4757
4757
|
};
|
|
4758
4758
|
|
|
4759
|
-
function addNewMessages(lang, dict) {
|
|
4759
|
+
function addNewMessages$3(lang, dict) {
|
|
4760
4760
|
m(lang, dict);
|
|
4761
4761
|
}
|
|
4762
4762
|
|
|
4763
|
-
const
|
|
4763
|
+
const PlayerGamingLimitsCardTranslations = {
|
|
4764
|
+
en: {
|
|
4765
|
+
cardText: {
|
|
4766
|
+
name: `Info`,
|
|
4767
|
+
amountChanged: `Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:`,
|
|
4768
|
+
daily: `Daily`,
|
|
4769
|
+
weekly: `Weekly`,
|
|
4770
|
+
monthly: `Monthly`,
|
|
4771
|
+
removeLimitText: `Are you sure you want to remove the {limit}?`,
|
|
4772
|
+
removeLimitsText: `Are you sure you want to remove all the {limit}s?`,
|
|
4773
|
+
minutes: `minutes`,
|
|
4774
|
+
noLimit: `No limit`,
|
|
4775
|
+
expirationDate: `Expiration date`,
|
|
4776
|
+
notAvailable: `N/A`,
|
|
4777
|
+
edit: `Edit`,
|
|
4778
|
+
removeLimits: `Remove Limits`,
|
|
4779
|
+
depositLimit: `Deposit Limit`,
|
|
4780
|
+
timeLimit: `Time Limit`,
|
|
4781
|
+
wageringLimit: `Wagering Limit`,
|
|
4782
|
+
timeLimitLower: `time limit`,
|
|
4783
|
+
depositLimitLower: `deposit limit`,
|
|
4784
|
+
wageringLimitLower: `wagering limit`,
|
|
4785
|
+
lossLimitLower: `loss limit`,
|
|
4786
|
+
time: `time`,
|
|
4787
|
+
currency: `currency`
|
|
4788
|
+
}
|
|
4789
|
+
},
|
|
4790
|
+
ro: {
|
|
4791
|
+
cardText: {
|
|
4792
|
+
name: `Info`,
|
|
4793
|
+
amountChanged: `Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:`,
|
|
4794
|
+
daily: `Daily`,
|
|
4795
|
+
weekly: `Weekly`,
|
|
4796
|
+
monthly: `Monthly`,
|
|
4797
|
+
removeLimitText: `Are you sure you want to remove the {limit}?`,
|
|
4798
|
+
removeLimitsText: `Are you sure you want to remove all the {limit}s?`,
|
|
4799
|
+
minutes: `minutes`,
|
|
4800
|
+
noLimit: `No limit`,
|
|
4801
|
+
expirationDate: `Expiration date`,
|
|
4802
|
+
notAvailable: `N/A`,
|
|
4803
|
+
edit: `Edit`,
|
|
4804
|
+
removeLimits: `Remove Limits`,
|
|
4805
|
+
depositLimit: `Deposit Limit`,
|
|
4806
|
+
timeLimit: `Time Limit`,
|
|
4807
|
+
wageringLimit: `Wagering Limit`,
|
|
4808
|
+
timeLimitLower: `time limit`,
|
|
4809
|
+
depositLimitLower: `deposit limit`,
|
|
4810
|
+
wageringLimitLower: `wagering limit`,
|
|
4811
|
+
lossLimitLower: `loss limit`,
|
|
4812
|
+
time: `time`,
|
|
4813
|
+
currency: `currency`
|
|
4814
|
+
}
|
|
4815
|
+
}
|
|
4816
|
+
};
|
|
4817
|
+
|
|
4818
|
+
function addNewMessages$2(lang, dict) {
|
|
4819
|
+
m(lang, dict);
|
|
4820
|
+
}
|
|
4821
|
+
|
|
4822
|
+
const PlayerGamingLimitsPopupTranslations = {
|
|
4764
4823
|
en: {
|
|
4765
4824
|
popupText: {
|
|
4825
|
+
name: `Info`,
|
|
4766
4826
|
amountChanged: `Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:`,
|
|
4827
|
+
defaultText: `Nulla ornare pulvinar dui. Nullam viverra, lacus vel consectetur euismod, ante lorem aliquam nisi, non faucibus nulla lacus sed sapien. Sed imperdiet tristique tincidunt.`
|
|
4767
4828
|
}
|
|
4768
4829
|
},
|
|
4769
4830
|
ro: {
|
|
4770
4831
|
popupText: {
|
|
4832
|
+
name: `Info`,
|
|
4771
4833
|
amountChanged: `Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:`,
|
|
4834
|
+
defaultText: `Nulla ornare pulvinar dui. Nullam viverra, lacus vel consectetur euismod, ante lorem aliquam nisi, non faucibus nulla lacus sed sapien. Sed imperdiet tristique tincidunt.`
|
|
4772
4835
|
}
|
|
4773
4836
|
}
|
|
4774
4837
|
};
|
|
4775
4838
|
|
|
4776
4839
|
/* ../player-account-gaming-limits-popup/src/PlayerAccountGamingLimitsPopup.svelte generated by Svelte v3.37.0 */
|
|
4777
4840
|
|
|
4778
|
-
const { Object: Object_1 } = globals;
|
|
4841
|
+
const { Object: Object_1$3 } = globals;
|
|
4779
4842
|
const file$4 = "../player-account-gaming-limits-popup/src/PlayerAccountGamingLimitsPopup.svelte";
|
|
4780
4843
|
|
|
4781
|
-
// (
|
|
4844
|
+
// (40:0) {#if showPopup}
|
|
4782
4845
|
function create_if_block$3(ctx) {
|
|
4783
4846
|
let section;
|
|
4784
4847
|
let div5;
|
|
@@ -4786,6 +4849,7 @@
|
|
|
4786
4849
|
let div0;
|
|
4787
4850
|
let t1;
|
|
4788
4851
|
let div1;
|
|
4852
|
+
let t2_value = /*$_*/ ctx[3]("popupText.name") + "";
|
|
4789
4853
|
let t2;
|
|
4790
4854
|
let t3;
|
|
4791
4855
|
let div2;
|
|
@@ -4814,7 +4878,7 @@
|
|
|
4814
4878
|
div0.textContent = "i";
|
|
4815
4879
|
t1 = space();
|
|
4816
4880
|
div1 = element("div");
|
|
4817
|
-
t2 = text(
|
|
4881
|
+
t2 = text(t2_value);
|
|
4818
4882
|
t3 = space();
|
|
4819
4883
|
div2 = element("div");
|
|
4820
4884
|
svg = svg_element("svg");
|
|
@@ -4823,34 +4887,34 @@
|
|
|
4823
4887
|
div4 = element("div");
|
|
4824
4888
|
if_block.c();
|
|
4825
4889
|
attr_dev(div0, "class", "InfoCardPopupIcon");
|
|
4826
|
-
add_location(div0, file$4,
|
|
4890
|
+
add_location(div0, file$4, 43, 8, 1529);
|
|
4827
4891
|
attr_dev(div1, "class", "InfoCardPopupTitle");
|
|
4828
|
-
add_location(div1, file$4,
|
|
4892
|
+
add_location(div1, file$4, 44, 8, 1576);
|
|
4829
4893
|
attr_dev(path, "stroke-linecap", "round");
|
|
4830
4894
|
attr_dev(path, "stroke-linejoin", "round");
|
|
4831
4895
|
attr_dev(path, "stroke-width", "2");
|
|
4832
4896
|
attr_dev(path, "d", "M6 18L18 6M6 6l12 12");
|
|
4833
|
-
add_location(path, file$4,
|
|
4897
|
+
add_location(path, file$4, 46, 120, 1845);
|
|
4834
4898
|
attr_dev(svg, "class", "w-6 h-6");
|
|
4835
4899
|
attr_dev(svg, "fill", "none");
|
|
4836
4900
|
attr_dev(svg, "stroke", "currentColor");
|
|
4837
4901
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
4838
4902
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4839
|
-
add_location(svg, file$4,
|
|
4903
|
+
add_location(svg, file$4, 46, 10, 1735);
|
|
4840
4904
|
attr_dev(div2, "class", "InfoCardPopupCloseButton");
|
|
4841
|
-
add_location(div2, file$4,
|
|
4905
|
+
add_location(div2, file$4, 45, 8, 1645);
|
|
4842
4906
|
attr_dev(div3, "class", "InfoCardPopupHeader");
|
|
4843
|
-
add_location(div3, file$4,
|
|
4907
|
+
add_location(div3, file$4, 42, 6, 1487);
|
|
4844
4908
|
attr_dev(div4, "class", "InfoCardPopupContentArea");
|
|
4845
|
-
add_location(div4, file$4,
|
|
4909
|
+
add_location(div4, file$4, 49, 6, 1988);
|
|
4846
4910
|
|
|
4847
|
-
attr_dev(div5, "class", div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[
|
|
4911
|
+
attr_dev(div5, "class", div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[4] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
|
|
4848
4912
|
? "InfoCardPopupLimitChanged"
|
|
4849
4913
|
: ""));
|
|
4850
4914
|
|
|
4851
|
-
add_location(div5, file$4,
|
|
4852
|
-
attr_dev(section, "class", /*isMobile*/ ctx[
|
|
4853
|
-
add_location(section, file$4,
|
|
4915
|
+
add_location(div5, file$4, 41, 4, 1347);
|
|
4916
|
+
attr_dev(section, "class", /*isMobile*/ ctx[4] ? "InfoCardPopupMobileModal" : "");
|
|
4917
|
+
add_location(section, file$4, 40, 2, 1282);
|
|
4854
4918
|
},
|
|
4855
4919
|
m: function mount(target, anchor) {
|
|
4856
4920
|
insert_dev(target, section, anchor);
|
|
@@ -4869,12 +4933,12 @@
|
|
|
4869
4933
|
if_block.m(div4, null);
|
|
4870
4934
|
|
|
4871
4935
|
if (!mounted) {
|
|
4872
|
-
dispose = listen_dev(div2, "click", prevent_default(/*closeInfoPopup*/ ctx[
|
|
4936
|
+
dispose = listen_dev(div2, "click", prevent_default(/*closeInfoPopup*/ ctx[5]), false, true, false);
|
|
4873
4937
|
mounted = true;
|
|
4874
4938
|
}
|
|
4875
4939
|
},
|
|
4876
4940
|
p: function update(ctx, dirty) {
|
|
4877
|
-
if (dirty &
|
|
4941
|
+
if (dirty & /*$_*/ 8 && t2_value !== (t2_value = /*$_*/ ctx[3]("popupText.name") + "")) set_data_dev(t2, t2_value);
|
|
4878
4942
|
|
|
4879
4943
|
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
4880
4944
|
if_block.p(ctx, dirty);
|
|
@@ -4888,7 +4952,7 @@
|
|
|
4888
4952
|
}
|
|
4889
4953
|
}
|
|
4890
4954
|
|
|
4891
|
-
if (dirty & /*iteminfoamount*/ 1 && div5_class_value !== (div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[
|
|
4955
|
+
if (dirty & /*iteminfoamount*/ 1 && div5_class_value !== (div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[4] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
|
|
4892
4956
|
? "InfoCardPopupLimitChanged"
|
|
4893
4957
|
: ""))) {
|
|
4894
4958
|
attr_dev(div5, "class", div5_class_value);
|
|
@@ -4906,31 +4970,32 @@
|
|
|
4906
4970
|
block,
|
|
4907
4971
|
id: create_if_block$3.name,
|
|
4908
4972
|
type: "if",
|
|
4909
|
-
source: "(
|
|
4973
|
+
source: "(40:0) {#if showPopup}",
|
|
4910
4974
|
ctx
|
|
4911
4975
|
});
|
|
4912
4976
|
|
|
4913
4977
|
return block;
|
|
4914
4978
|
}
|
|
4915
4979
|
|
|
4916
|
-
// (
|
|
4980
|
+
// (53:8) {:else}
|
|
4917
4981
|
function create_else_block$2(ctx) {
|
|
4918
4982
|
let p;
|
|
4983
|
+
let t_value = /*$_*/ ctx[3]("popupText.defaultText") + "";
|
|
4919
4984
|
let t;
|
|
4920
4985
|
|
|
4921
4986
|
const block = {
|
|
4922
4987
|
c: function create() {
|
|
4923
4988
|
p = element("p");
|
|
4924
|
-
t = text(
|
|
4989
|
+
t = text(t_value);
|
|
4925
4990
|
attr_dev(p, "class", "InfoCardPopupContent");
|
|
4926
|
-
add_location(p, file$4,
|
|
4991
|
+
add_location(p, file$4, 53, 10, 2224);
|
|
4927
4992
|
},
|
|
4928
4993
|
m: function mount(target, anchor) {
|
|
4929
4994
|
insert_dev(target, p, anchor);
|
|
4930
4995
|
append_dev(p, t);
|
|
4931
4996
|
},
|
|
4932
4997
|
p: function update(ctx, dirty) {
|
|
4933
|
-
if (dirty &
|
|
4998
|
+
if (dirty & /*$_*/ 8 && t_value !== (t_value = /*$_*/ ctx[3]("popupText.defaultText") + "")) set_data_dev(t, t_value);
|
|
4934
4999
|
},
|
|
4935
5000
|
d: function destroy(detaching) {
|
|
4936
5001
|
if (detaching) detach_dev(p);
|
|
@@ -4941,21 +5006,21 @@
|
|
|
4941
5006
|
block,
|
|
4942
5007
|
id: create_else_block$2.name,
|
|
4943
5008
|
type: "else",
|
|
4944
|
-
source: "(
|
|
5009
|
+
source: "(53:8) {:else}",
|
|
4945
5010
|
ctx
|
|
4946
5011
|
});
|
|
4947
5012
|
|
|
4948
5013
|
return block;
|
|
4949
5014
|
}
|
|
4950
5015
|
|
|
4951
|
-
// (
|
|
5016
|
+
// (51:8) {#if iteminfoamount}
|
|
4952
5017
|
function create_if_block_1$2(ctx) {
|
|
4953
5018
|
let p;
|
|
4954
5019
|
|
|
4955
|
-
let t_value = /*$_*/ ctx[
|
|
5020
|
+
let t_value = /*$_*/ ctx[3]("popupText.amountChanged", {
|
|
4956
5021
|
values: {
|
|
4957
5022
|
amount: /*iteminfoamount*/ ctx[0],
|
|
4958
|
-
currency: /*playercurrency*/ ctx[
|
|
5023
|
+
currency: /*playercurrency*/ ctx[1]
|
|
4959
5024
|
}
|
|
4960
5025
|
}) + "";
|
|
4961
5026
|
|
|
@@ -4966,17 +5031,17 @@
|
|
|
4966
5031
|
p = element("p");
|
|
4967
5032
|
t = text(t_value);
|
|
4968
5033
|
attr_dev(p, "class", "InfoCardPopupContent");
|
|
4969
|
-
add_location(p, file$4,
|
|
5034
|
+
add_location(p, file$4, 51, 10, 2066);
|
|
4970
5035
|
},
|
|
4971
5036
|
m: function mount(target, anchor) {
|
|
4972
5037
|
insert_dev(target, p, anchor);
|
|
4973
5038
|
append_dev(p, t);
|
|
4974
5039
|
},
|
|
4975
5040
|
p: function update(ctx, dirty) {
|
|
4976
|
-
if (dirty & /*$_, iteminfoamount, playercurrency*/
|
|
5041
|
+
if (dirty & /*$_, iteminfoamount, playercurrency*/ 11 && t_value !== (t_value = /*$_*/ ctx[3]("popupText.amountChanged", {
|
|
4977
5042
|
values: {
|
|
4978
5043
|
amount: /*iteminfoamount*/ ctx[0],
|
|
4979
|
-
currency: /*playercurrency*/ ctx[
|
|
5044
|
+
currency: /*playercurrency*/ ctx[1]
|
|
4980
5045
|
}
|
|
4981
5046
|
}) + "")) set_data_dev(t, t_value);
|
|
4982
5047
|
},
|
|
@@ -4989,7 +5054,7 @@
|
|
|
4989
5054
|
block,
|
|
4990
5055
|
id: create_if_block_1$2.name,
|
|
4991
5056
|
type: "if",
|
|
4992
|
-
source: "(
|
|
5057
|
+
source: "(51:8) {#if iteminfoamount}",
|
|
4993
5058
|
ctx
|
|
4994
5059
|
});
|
|
4995
5060
|
|
|
@@ -4998,7 +5063,7 @@
|
|
|
4998
5063
|
|
|
4999
5064
|
function create_fragment$4(ctx) {
|
|
5000
5065
|
let if_block_anchor;
|
|
5001
|
-
let if_block = /*showPopup*/ ctx[
|
|
5066
|
+
let if_block = /*showPopup*/ ctx[2] && create_if_block$3(ctx);
|
|
5002
5067
|
|
|
5003
5068
|
const block = {
|
|
5004
5069
|
c: function create() {
|
|
@@ -5014,7 +5079,7 @@
|
|
|
5014
5079
|
insert_dev(target, if_block_anchor, anchor);
|
|
5015
5080
|
},
|
|
5016
5081
|
p: function update(ctx, [dirty]) {
|
|
5017
|
-
if (/*showPopup*/ ctx[
|
|
5082
|
+
if (/*showPopup*/ ctx[2]) {
|
|
5018
5083
|
if (if_block) {
|
|
5019
5084
|
if_block.p(ctx, dirty);
|
|
5020
5085
|
} else {
|
|
@@ -5049,26 +5114,24 @@
|
|
|
5049
5114
|
function instance$4($$self, $$props, $$invalidate) {
|
|
5050
5115
|
let $_;
|
|
5051
5116
|
validate_store(X, "_");
|
|
5052
|
-
component_subscribe($$self, X, $$value => $$invalidate(
|
|
5117
|
+
component_subscribe($$self, X, $$value => $$invalidate(3, $_ = $$value));
|
|
5053
5118
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
5054
5119
|
validate_slots("undefined", slots, []);
|
|
5055
5120
|
let { showpopup = "" } = $$props;
|
|
5056
|
-
let { infocontent = "" } = $$props;
|
|
5057
|
-
let { infoname = "" } = $$props;
|
|
5058
5121
|
let { iteminfoamount = "" } = $$props;
|
|
5059
5122
|
let { lang = "en" } = $$props;
|
|
5060
5123
|
let { playercurrency = "USD" } = $$props;
|
|
5061
|
-
let showPopup = false;
|
|
5062
5124
|
|
|
5063
|
-
Object.keys(
|
|
5064
|
-
addNewMessages(item,
|
|
5125
|
+
Object.keys(PlayerGamingLimitsPopupTranslations).forEach(item => {
|
|
5126
|
+
addNewMessages$2(item, PlayerGamingLimitsPopupTranslations[item]);
|
|
5065
5127
|
});
|
|
5066
5128
|
|
|
5129
|
+
let showPopup = false;
|
|
5067
5130
|
let userAgent = window.navigator.userAgent;
|
|
5068
5131
|
let isMobile = getDevice(userAgent) === "PC" ? false : true;
|
|
5069
5132
|
|
|
5070
5133
|
const closeInfoPopup = () => {
|
|
5071
|
-
$$invalidate(
|
|
5134
|
+
$$invalidate(2, showPopup = false);
|
|
5072
5135
|
|
|
5073
5136
|
window.postMessage(
|
|
5074
5137
|
{
|
|
@@ -5080,7 +5143,7 @@
|
|
|
5080
5143
|
|
|
5081
5144
|
const messageHandler = e => {
|
|
5082
5145
|
if (e.data && e.data.type == "ClosePlayerAccountGamingLimitsPopup") {
|
|
5083
|
-
$$invalidate(
|
|
5146
|
+
$$invalidate(2, showPopup = false);
|
|
5084
5147
|
}
|
|
5085
5148
|
};
|
|
5086
5149
|
|
|
@@ -5089,7 +5152,7 @@
|
|
|
5089
5152
|
$$invalidate(0, iteminfoamount = "0");
|
|
5090
5153
|
}
|
|
5091
5154
|
|
|
5092
|
-
$$invalidate(
|
|
5155
|
+
$$invalidate(2, showPopup = showpopup);
|
|
5093
5156
|
};
|
|
5094
5157
|
|
|
5095
5158
|
onMount(() => {
|
|
@@ -5100,37 +5163,26 @@
|
|
|
5100
5163
|
};
|
|
5101
5164
|
});
|
|
5102
5165
|
|
|
5103
|
-
const writable_props = [
|
|
5104
|
-
"showpopup",
|
|
5105
|
-
"infocontent",
|
|
5106
|
-
"infoname",
|
|
5107
|
-
"iteminfoamount",
|
|
5108
|
-
"lang",
|
|
5109
|
-
"playercurrency"
|
|
5110
|
-
];
|
|
5166
|
+
const writable_props = ["showpopup", "iteminfoamount", "lang", "playercurrency"];
|
|
5111
5167
|
|
|
5112
|
-
Object_1.keys($$props).forEach(key => {
|
|
5168
|
+
Object_1$3.keys($$props).forEach(key => {
|
|
5113
5169
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
5114
5170
|
});
|
|
5115
5171
|
|
|
5116
5172
|
$$self.$$set = $$props => {
|
|
5117
|
-
if ("showpopup" in $$props) $$invalidate(
|
|
5118
|
-
if ("infocontent" in $$props) $$invalidate(1, infocontent = $$props.infocontent);
|
|
5119
|
-
if ("infoname" in $$props) $$invalidate(2, infoname = $$props.infoname);
|
|
5173
|
+
if ("showpopup" in $$props) $$invalidate(6, showpopup = $$props.showpopup);
|
|
5120
5174
|
if ("iteminfoamount" in $$props) $$invalidate(0, iteminfoamount = $$props.iteminfoamount);
|
|
5121
|
-
if ("lang" in $$props) $$invalidate(
|
|
5122
|
-
if ("playercurrency" in $$props) $$invalidate(
|
|
5175
|
+
if ("lang" in $$props) $$invalidate(7, lang = $$props.lang);
|
|
5176
|
+
if ("playercurrency" in $$props) $$invalidate(1, playercurrency = $$props.playercurrency);
|
|
5123
5177
|
};
|
|
5124
5178
|
|
|
5125
5179
|
$$self.$capture_state = () => ({
|
|
5126
5180
|
onMount,
|
|
5127
5181
|
getDevice,
|
|
5128
5182
|
_: X,
|
|
5129
|
-
addNewMessages,
|
|
5130
|
-
|
|
5183
|
+
addNewMessages: addNewMessages$2,
|
|
5184
|
+
PlayerGamingLimitsPopupTranslations,
|
|
5131
5185
|
showpopup,
|
|
5132
|
-
infocontent,
|
|
5133
|
-
infoname,
|
|
5134
5186
|
iteminfoamount,
|
|
5135
5187
|
lang,
|
|
5136
5188
|
playercurrency,
|
|
@@ -5144,15 +5196,13 @@
|
|
|
5144
5196
|
});
|
|
5145
5197
|
|
|
5146
5198
|
$$self.$inject_state = $$props => {
|
|
5147
|
-
if ("showpopup" in $$props) $$invalidate(
|
|
5148
|
-
if ("infocontent" in $$props) $$invalidate(1, infocontent = $$props.infocontent);
|
|
5149
|
-
if ("infoname" in $$props) $$invalidate(2, infoname = $$props.infoname);
|
|
5199
|
+
if ("showpopup" in $$props) $$invalidate(6, showpopup = $$props.showpopup);
|
|
5150
5200
|
if ("iteminfoamount" in $$props) $$invalidate(0, iteminfoamount = $$props.iteminfoamount);
|
|
5151
|
-
if ("lang" in $$props) $$invalidate(
|
|
5152
|
-
if ("playercurrency" in $$props) $$invalidate(
|
|
5153
|
-
if ("showPopup" in $$props) $$invalidate(
|
|
5201
|
+
if ("lang" in $$props) $$invalidate(7, lang = $$props.lang);
|
|
5202
|
+
if ("playercurrency" in $$props) $$invalidate(1, playercurrency = $$props.playercurrency);
|
|
5203
|
+
if ("showPopup" in $$props) $$invalidate(2, showPopup = $$props.showPopup);
|
|
5154
5204
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
5155
|
-
if ("isMobile" in $$props) $$invalidate(
|
|
5205
|
+
if ("isMobile" in $$props) $$invalidate(4, isMobile = $$props.isMobile);
|
|
5156
5206
|
};
|
|
5157
5207
|
|
|
5158
5208
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -5160,15 +5210,13 @@
|
|
|
5160
5210
|
}
|
|
5161
5211
|
|
|
5162
5212
|
$$self.$$.update = () => {
|
|
5163
|
-
if ($$self.$$.dirty & /*showpopup*/
|
|
5213
|
+
if ($$self.$$.dirty & /*showpopup*/ 64) {
|
|
5164
5214
|
showpopup && initialLoad();
|
|
5165
5215
|
}
|
|
5166
5216
|
};
|
|
5167
5217
|
|
|
5168
5218
|
return [
|
|
5169
5219
|
iteminfoamount,
|
|
5170
|
-
infocontent,
|
|
5171
|
-
infoname,
|
|
5172
5220
|
playercurrency,
|
|
5173
5221
|
showPopup,
|
|
5174
5222
|
$_,
|
|
@@ -5195,12 +5243,10 @@
|
|
|
5195
5243
|
create_fragment$4,
|
|
5196
5244
|
safe_not_equal,
|
|
5197
5245
|
{
|
|
5198
|
-
showpopup:
|
|
5199
|
-
infocontent: 1,
|
|
5200
|
-
infoname: 2,
|
|
5246
|
+
showpopup: 6,
|
|
5201
5247
|
iteminfoamount: 0,
|
|
5202
|
-
lang:
|
|
5203
|
-
playercurrency:
|
|
5248
|
+
lang: 7,
|
|
5249
|
+
playercurrency: 1
|
|
5204
5250
|
}
|
|
5205
5251
|
);
|
|
5206
5252
|
|
|
@@ -5217,18 +5263,11 @@
|
|
|
5217
5263
|
}
|
|
5218
5264
|
|
|
5219
5265
|
static get observedAttributes() {
|
|
5220
|
-
return [
|
|
5221
|
-
"showpopup",
|
|
5222
|
-
"infocontent",
|
|
5223
|
-
"infoname",
|
|
5224
|
-
"iteminfoamount",
|
|
5225
|
-
"lang",
|
|
5226
|
-
"playercurrency"
|
|
5227
|
-
];
|
|
5266
|
+
return ["showpopup", "iteminfoamount", "lang", "playercurrency"];
|
|
5228
5267
|
}
|
|
5229
5268
|
|
|
5230
5269
|
get showpopup() {
|
|
5231
|
-
return this.$$.ctx[
|
|
5270
|
+
return this.$$.ctx[6];
|
|
5232
5271
|
}
|
|
5233
5272
|
|
|
5234
5273
|
set showpopup(showpopup) {
|
|
@@ -5236,24 +5275,6 @@
|
|
|
5236
5275
|
flush();
|
|
5237
5276
|
}
|
|
5238
5277
|
|
|
5239
|
-
get infocontent() {
|
|
5240
|
-
return this.$$.ctx[1];
|
|
5241
|
-
}
|
|
5242
|
-
|
|
5243
|
-
set infocontent(infocontent) {
|
|
5244
|
-
this.$set({ infocontent });
|
|
5245
|
-
flush();
|
|
5246
|
-
}
|
|
5247
|
-
|
|
5248
|
-
get infoname() {
|
|
5249
|
-
return this.$$.ctx[2];
|
|
5250
|
-
}
|
|
5251
|
-
|
|
5252
|
-
set infoname(infoname) {
|
|
5253
|
-
this.$set({ infoname });
|
|
5254
|
-
flush();
|
|
5255
|
-
}
|
|
5256
|
-
|
|
5257
5278
|
get iteminfoamount() {
|
|
5258
5279
|
return this.$$.ctx[0];
|
|
5259
5280
|
}
|
|
@@ -5264,7 +5285,7 @@
|
|
|
5264
5285
|
}
|
|
5265
5286
|
|
|
5266
5287
|
get lang() {
|
|
5267
|
-
return this.$$.ctx[
|
|
5288
|
+
return this.$$.ctx[7];
|
|
5268
5289
|
}
|
|
5269
5290
|
|
|
5270
5291
|
set lang(lang) {
|
|
@@ -5273,7 +5294,7 @@
|
|
|
5273
5294
|
}
|
|
5274
5295
|
|
|
5275
5296
|
get playercurrency() {
|
|
5276
|
-
return this.$$.ctx[
|
|
5297
|
+
return this.$$.ctx[1];
|
|
5277
5298
|
}
|
|
5278
5299
|
|
|
5279
5300
|
set playercurrency(playercurrency) {
|
|
@@ -5284,6 +5305,47 @@
|
|
|
5284
5305
|
|
|
5285
5306
|
!customElements.get('player-account-gaming-limits-popup') && customElements.define('player-account-gaming-limits-popup', PlayerAccountGamingLimitsPopup);
|
|
5286
5307
|
|
|
5308
|
+
function addNewMessages$1(lang, dict) {
|
|
5309
|
+
m(lang, dict);
|
|
5310
|
+
}
|
|
5311
|
+
|
|
5312
|
+
const PlayerGamingLimitsEditTranslations = {
|
|
5313
|
+
en: {
|
|
5314
|
+
editText: {
|
|
5315
|
+
back: `Back to Gaming Limits`,
|
|
5316
|
+
limit: `Limit`,
|
|
5317
|
+
amount: `Amount`,
|
|
5318
|
+
noLimit: `No limit`,
|
|
5319
|
+
changeLimitsText: `Are you sure you want to change the {limit}s?`,
|
|
5320
|
+
success: `Success lorem Ipsum is simply dummy text of the printing and typesetting industry.`,
|
|
5321
|
+
remove: `You have requested to remove this limit. This will be applied on `,
|
|
5322
|
+
invalidInputMessageLimit: `The amount needs to be between 0 and 99,999,999.`,
|
|
5323
|
+
invalidInputMessageTime: `The time amount needs to be greater than {minTime} and below {maxTime} minutes.`,
|
|
5324
|
+
expirationDate: `Expiration Date:`,
|
|
5325
|
+
save: `Save`,
|
|
5326
|
+
changedLimitTextBefore: `Your limit has been changed or increased:`,
|
|
5327
|
+
changedLimitTextAfter: `. You will have to wait for the expiration date for your new limit to take effect`
|
|
5328
|
+
}
|
|
5329
|
+
},
|
|
5330
|
+
ro: {
|
|
5331
|
+
editText: {
|
|
5332
|
+
back: `Back to Gaming Limits`,
|
|
5333
|
+
limit: `Limit`,
|
|
5334
|
+
amount: `Amount`,
|
|
5335
|
+
noLimit: `No limit`,
|
|
5336
|
+
changeLimitsText: `Are you sure you want to change the {limit}s?`,
|
|
5337
|
+
success: `Success lorem Ipsum is simply dummy text of the printing and typesetting industry.`,
|
|
5338
|
+
remove: `You have requested to remove this limit. This will be applied on `,
|
|
5339
|
+
invalidInputMessageLimit: `The amount needs to be between 0 and 99,999,999.`,
|
|
5340
|
+
invalidInputMessageTime: `The time amount needs to be greater than {minTime} and below {maxTime} minutes.`,
|
|
5341
|
+
expirationDate: `Expiration Date:`,
|
|
5342
|
+
save: `Save`,
|
|
5343
|
+
changedLimitTextBefore: `Your limit has been changed or increased:`,
|
|
5344
|
+
changedLimitTextAfter: `. You will have to wait for the expiration date for your new limit to take effect`
|
|
5345
|
+
}
|
|
5346
|
+
}
|
|
5347
|
+
};
|
|
5348
|
+
|
|
5287
5349
|
var moment = createCommonjsModule(function (module, exports) {
|
|
5288
5350
|
(function (global, factory) {
|
|
5289
5351
|
module.exports = factory() ;
|
|
@@ -11222,7 +11284,28 @@
|
|
|
11222
11284
|
|
|
11223
11285
|
!customElements.get('player-account-modal') && customElements.define('player-account-modal', PlayerAccountModal);
|
|
11224
11286
|
|
|
11287
|
+
function addNewMessages(lang, dict) {
|
|
11288
|
+
m(lang, dict);
|
|
11289
|
+
}
|
|
11290
|
+
|
|
11291
|
+
const PlayerGamingLimitsModalTranslations = {
|
|
11292
|
+
en: {
|
|
11293
|
+
modalText: {
|
|
11294
|
+
cancel: `Cancel`,
|
|
11295
|
+
confirm: `Confirm`,
|
|
11296
|
+
}
|
|
11297
|
+
},
|
|
11298
|
+
ro: {
|
|
11299
|
+
modalText: {
|
|
11300
|
+
cancel: `Cancel`,
|
|
11301
|
+
confirm: `Confirm`,
|
|
11302
|
+
}
|
|
11303
|
+
}
|
|
11304
|
+
};
|
|
11305
|
+
|
|
11225
11306
|
/* ../player-account-gaming-limits-confirmation-modal/src/PlayerAccountGamingLimitsConfirmationModal.svelte generated by Svelte v3.37.0 */
|
|
11307
|
+
|
|
11308
|
+
const { Object: Object_1$2 } = globals;
|
|
11226
11309
|
const file$2 = "../player-account-gaming-limits-confirmation-modal/src/PlayerAccountGamingLimitsConfirmationModal.svelte";
|
|
11227
11310
|
|
|
11228
11311
|
function create_fragment$2(ctx) {
|
|
@@ -11238,8 +11321,12 @@
|
|
|
11238
11321
|
let t2;
|
|
11239
11322
|
let div1;
|
|
11240
11323
|
let button0;
|
|
11324
|
+
let t3_value = /*$_*/ ctx[1]("modalText.cancel") + "";
|
|
11325
|
+
let t3;
|
|
11241
11326
|
let t4;
|
|
11242
11327
|
let button1;
|
|
11328
|
+
let t5_value = /*$_*/ ctx[1]("modalText.confirm") + "";
|
|
11329
|
+
let t5;
|
|
11243
11330
|
let mounted;
|
|
11244
11331
|
let dispose;
|
|
11245
11332
|
|
|
@@ -11257,43 +11344,43 @@
|
|
|
11257
11344
|
t2 = space();
|
|
11258
11345
|
div1 = element("div");
|
|
11259
11346
|
button0 = element("button");
|
|
11260
|
-
|
|
11347
|
+
t3 = text(t3_value);
|
|
11261
11348
|
t4 = space();
|
|
11262
11349
|
button1 = element("button");
|
|
11263
|
-
|
|
11350
|
+
t5 = text(t5_value);
|
|
11264
11351
|
this.c = noop$1;
|
|
11265
11352
|
attr_dev(path, "stroke-linecap", "round");
|
|
11266
11353
|
attr_dev(path, "stroke-linejoin", "round");
|
|
11267
11354
|
attr_dev(path, "stroke-width", "2");
|
|
11268
11355
|
attr_dev(path, "d", "M6 18L18 6M6 6l12 12");
|
|
11269
|
-
add_location(path, file$2,
|
|
11356
|
+
add_location(path, file$2, 66, 116, 2763);
|
|
11270
11357
|
attr_dev(svg, "class", "w-6 h-6");
|
|
11271
11358
|
attr_dev(svg, "fill", "none");
|
|
11272
11359
|
attr_dev(svg, "stroke", "currentColor");
|
|
11273
11360
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
11274
11361
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
11275
|
-
add_location(svg, file$2,
|
|
11362
|
+
add_location(svg, file$2, 66, 6, 2653);
|
|
11276
11363
|
attr_dev(slot, "name", "close");
|
|
11277
|
-
add_location(slot, file$2,
|
|
11364
|
+
add_location(slot, file$2, 65, 4, 2627);
|
|
11278
11365
|
attr_dev(span, "class", "ModalCloseBtn");
|
|
11279
11366
|
attr_dev(span, "role", "button");
|
|
11280
|
-
add_location(span, file$2,
|
|
11367
|
+
add_location(span, file$2, 64, 2, 2563);
|
|
11281
11368
|
attr_dev(div0, "class", "GamingLimitsConfirmationContent");
|
|
11282
|
-
add_location(div0, file$2,
|
|
11369
|
+
add_location(div0, file$2, 70, 4, 2948);
|
|
11283
11370
|
attr_dev(button0, "class", "GamingLimitsCancelButton");
|
|
11284
|
-
add_location(button0, file$2,
|
|
11371
|
+
add_location(button0, file$2, 72, 6, 3071);
|
|
11285
11372
|
attr_dev(button1, "class", "GamingLimitsConfirmButton");
|
|
11286
|
-
add_location(button1, file$2,
|
|
11373
|
+
add_location(button1, file$2, 73, 6, 3177);
|
|
11287
11374
|
attr_dev(div1, "class", "GamingLimitsConfirmationControlArea");
|
|
11288
|
-
add_location(div1, file$2,
|
|
11375
|
+
add_location(div1, file$2, 71, 4, 3015);
|
|
11289
11376
|
attr_dev(div2, "class", "GamingLimitsConfirmationContainer");
|
|
11290
|
-
add_location(div2, file$2,
|
|
11377
|
+
add_location(div2, file$2, 69, 2, 2896);
|
|
11291
11378
|
|
|
11292
|
-
attr_dev(div3, "class", "GamingLimitsConfirmationWrapper " + (/*isMobile*/ ctx[
|
|
11379
|
+
attr_dev(div3, "class", "GamingLimitsConfirmationWrapper " + (/*isMobile*/ ctx[2]
|
|
11293
11380
|
? "GamingLimitsConfirmationMobileWrapper"
|
|
11294
11381
|
: ""));
|
|
11295
11382
|
|
|
11296
|
-
add_location(div3, file$2,
|
|
11383
|
+
add_location(div3, file$2, 63, 0, 2457);
|
|
11297
11384
|
},
|
|
11298
11385
|
l: function claim(nodes) {
|
|
11299
11386
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -11311,14 +11398,16 @@
|
|
|
11311
11398
|
append_dev(div2, t2);
|
|
11312
11399
|
append_dev(div2, div1);
|
|
11313
11400
|
append_dev(div1, button0);
|
|
11401
|
+
append_dev(button0, t3);
|
|
11314
11402
|
append_dev(div1, t4);
|
|
11315
11403
|
append_dev(div1, button1);
|
|
11404
|
+
append_dev(button1, t5);
|
|
11316
11405
|
|
|
11317
11406
|
if (!mounted) {
|
|
11318
11407
|
dispose = [
|
|
11319
|
-
listen_dev(span, "click", /*close*/ ctx[
|
|
11320
|
-
listen_dev(button0, "click", /*cancelChanges*/ ctx[
|
|
11321
|
-
listen_dev(button1, "click", /*confirmChanges*/ ctx[
|
|
11408
|
+
listen_dev(span, "click", /*close*/ ctx[3], false, false, false),
|
|
11409
|
+
listen_dev(button0, "click", /*cancelChanges*/ ctx[5], false, false, false),
|
|
11410
|
+
listen_dev(button1, "click", /*confirmChanges*/ ctx[4], false, false, false)
|
|
11322
11411
|
];
|
|
11323
11412
|
|
|
11324
11413
|
mounted = true;
|
|
@@ -11326,6 +11415,8 @@
|
|
|
11326
11415
|
},
|
|
11327
11416
|
p: function update(ctx, [dirty]) {
|
|
11328
11417
|
if (dirty & /*modaltext*/ 1) set_data_dev(t1, /*modaltext*/ ctx[0]);
|
|
11418
|
+
if (dirty & /*$_*/ 2 && t3_value !== (t3_value = /*$_*/ ctx[1]("modalText.cancel") + "")) set_data_dev(t3, t3_value);
|
|
11419
|
+
if (dirty & /*$_*/ 2 && t5_value !== (t5_value = /*$_*/ ctx[1]("modalText.confirm") + "")) set_data_dev(t5, t5_value);
|
|
11329
11420
|
},
|
|
11330
11421
|
i: noop$1,
|
|
11331
11422
|
o: noop$1,
|
|
@@ -11348,11 +11439,18 @@
|
|
|
11348
11439
|
}
|
|
11349
11440
|
|
|
11350
11441
|
function instance$2($$self, $$props, $$invalidate) {
|
|
11442
|
+
let $_;
|
|
11443
|
+
validate_store(X, "_");
|
|
11444
|
+
component_subscribe($$self, X, $$value => $$invalidate(1, $_ = $$value));
|
|
11351
11445
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
11352
11446
|
validate_slots("undefined", slots, []);
|
|
11353
11447
|
let { modaltext = "Are you sure that you want to perform this action?" } = $$props;
|
|
11354
11448
|
let { modalsource = "" } = $$props;
|
|
11355
11449
|
|
|
11450
|
+
Object.keys(PlayerGamingLimitsModalTranslations).forEach(item => {
|
|
11451
|
+
addNewMessages(item, PlayerGamingLimitsModalTranslations[item]);
|
|
11452
|
+
});
|
|
11453
|
+
|
|
11356
11454
|
// helper variables
|
|
11357
11455
|
let userAgent = window.navigator.userAgent;
|
|
11358
11456
|
|
|
@@ -11427,18 +11525,21 @@
|
|
|
11427
11525
|
|
|
11428
11526
|
const writable_props = ["modaltext", "modalsource"];
|
|
11429
11527
|
|
|
11430
|
-
|
|
11528
|
+
Object_1$2.keys($$props).forEach(key => {
|
|
11431
11529
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
11432
11530
|
});
|
|
11433
11531
|
|
|
11434
11532
|
$$self.$$set = $$props => {
|
|
11435
11533
|
if ("modaltext" in $$props) $$invalidate(0, modaltext = $$props.modaltext);
|
|
11436
|
-
if ("modalsource" in $$props) $$invalidate(
|
|
11534
|
+
if ("modalsource" in $$props) $$invalidate(6, modalsource = $$props.modalsource);
|
|
11437
11535
|
};
|
|
11438
11536
|
|
|
11439
11537
|
$$self.$capture_state = () => ({
|
|
11440
11538
|
onMount,
|
|
11441
11539
|
getDevice,
|
|
11540
|
+
_: X,
|
|
11541
|
+
addNewMessages,
|
|
11542
|
+
PlayerGamingLimitsModalTranslations,
|
|
11442
11543
|
modaltext,
|
|
11443
11544
|
modalsource,
|
|
11444
11545
|
userAgent,
|
|
@@ -11450,14 +11551,15 @@
|
|
|
11450
11551
|
cancelChanges,
|
|
11451
11552
|
obtainLimitCategoryName,
|
|
11452
11553
|
messageHandler,
|
|
11453
|
-
initialLoad
|
|
11554
|
+
initialLoad,
|
|
11555
|
+
$_
|
|
11454
11556
|
});
|
|
11455
11557
|
|
|
11456
11558
|
$$self.$inject_state = $$props => {
|
|
11457
11559
|
if ("modaltext" in $$props) $$invalidate(0, modaltext = $$props.modaltext);
|
|
11458
|
-
if ("modalsource" in $$props) $$invalidate(
|
|
11560
|
+
if ("modalsource" in $$props) $$invalidate(6, modalsource = $$props.modalsource);
|
|
11459
11561
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
11460
|
-
if ("isMobile" in $$props) $$invalidate(
|
|
11562
|
+
if ("isMobile" in $$props) $$invalidate(2, isMobile = $$props.isMobile);
|
|
11461
11563
|
if ("limitItemData" in $$props) limitItemData = $$props.limitItemData;
|
|
11462
11564
|
if ("limitName" in $$props) limitName = $$props.limitName;
|
|
11463
11565
|
};
|
|
@@ -11467,10 +11569,10 @@
|
|
|
11467
11569
|
}
|
|
11468
11570
|
|
|
11469
11571
|
$$self.$$.update = () => {
|
|
11470
|
-
if ($$self.$$.dirty & /*modaltext, modalsource*/
|
|
11572
|
+
if ($$self.$$.dirty & /*modaltext, modalsource*/ 65) ;
|
|
11471
11573
|
};
|
|
11472
11574
|
|
|
11473
|
-
return [modaltext, isMobile, close, confirmChanges, cancelChanges, modalsource];
|
|
11575
|
+
return [modaltext, $_, isMobile, close, confirmChanges, cancelChanges, modalsource];
|
|
11474
11576
|
}
|
|
11475
11577
|
|
|
11476
11578
|
class PlayerAccountGamingLimitsConfirmationModal extends SvelteElement {
|
|
@@ -11488,7 +11590,7 @@
|
|
|
11488
11590
|
instance$2,
|
|
11489
11591
|
create_fragment$2,
|
|
11490
11592
|
safe_not_equal,
|
|
11491
|
-
{ modaltext: 0, modalsource:
|
|
11593
|
+
{ modaltext: 0, modalsource: 6 }
|
|
11492
11594
|
);
|
|
11493
11595
|
|
|
11494
11596
|
if (options) {
|
|
@@ -11517,7 +11619,7 @@
|
|
|
11517
11619
|
}
|
|
11518
11620
|
|
|
11519
11621
|
get modalsource() {
|
|
11520
|
-
return this.$$.ctx[
|
|
11622
|
+
return this.$$.ctx[6];
|
|
11521
11623
|
}
|
|
11522
11624
|
|
|
11523
11625
|
set modalsource(modalsource) {
|
|
@@ -11529,68 +11631,75 @@
|
|
|
11529
11631
|
!customElements.get('player-account-gaming-limits-confirmation-modal') && customElements.define('player-account-gaming-limits-confirmation-modal', PlayerAccountGamingLimitsConfirmationModal);
|
|
11530
11632
|
|
|
11531
11633
|
/* ../player-account-gaming-limits-group-edit/src/PlayerAccountGamingLimitsGroupEdit.svelte generated by Svelte v3.37.0 */
|
|
11634
|
+
|
|
11635
|
+
const { Object: Object_1$1 } = globals;
|
|
11532
11636
|
const file$1 = "../player-account-gaming-limits-group-edit/src/PlayerAccountGamingLimitsGroupEdit.svelte";
|
|
11533
11637
|
|
|
11534
11638
|
function get_each_context_2(ctx, list, i) {
|
|
11535
11639
|
const child_ctx = ctx.slice();
|
|
11536
|
-
child_ctx[
|
|
11537
|
-
child_ctx[
|
|
11538
|
-
child_ctx[
|
|
11640
|
+
child_ctx[54] = list[i];
|
|
11641
|
+
child_ctx[55] = list;
|
|
11642
|
+
child_ctx[50] = i;
|
|
11539
11643
|
return child_ctx;
|
|
11540
11644
|
}
|
|
11541
11645
|
|
|
11542
11646
|
function get_each_context_3(ctx, list, i) {
|
|
11543
11647
|
const child_ctx = ctx.slice();
|
|
11544
|
-
child_ctx[
|
|
11648
|
+
child_ctx[48] = list[i];
|
|
11545
11649
|
return child_ctx;
|
|
11546
11650
|
}
|
|
11547
11651
|
|
|
11548
11652
|
function get_each_context_4(ctx, list, i) {
|
|
11549
11653
|
const child_ctx = ctx.slice();
|
|
11550
|
-
child_ctx[
|
|
11654
|
+
child_ctx[48] = list[i];
|
|
11551
11655
|
return child_ctx;
|
|
11552
11656
|
}
|
|
11553
11657
|
|
|
11554
11658
|
function get_each_context$1(ctx, list, i) {
|
|
11555
11659
|
const child_ctx = ctx.slice();
|
|
11556
|
-
child_ctx[
|
|
11557
|
-
child_ctx[
|
|
11558
|
-
child_ctx[
|
|
11660
|
+
child_ctx[48] = list[i];
|
|
11661
|
+
child_ctx[49] = list;
|
|
11662
|
+
child_ctx[50] = i;
|
|
11559
11663
|
return child_ctx;
|
|
11560
11664
|
}
|
|
11561
11665
|
|
|
11562
11666
|
function get_each_context_1$1(ctx, list, i) {
|
|
11563
11667
|
const child_ctx = ctx.slice();
|
|
11564
|
-
child_ctx[
|
|
11668
|
+
child_ctx[51] = list[i];
|
|
11565
11669
|
return child_ctx;
|
|
11566
11670
|
}
|
|
11567
11671
|
|
|
11568
11672
|
function get_each_context_5(ctx, list, i) {
|
|
11569
11673
|
const child_ctx = ctx.slice();
|
|
11570
|
-
child_ctx[
|
|
11571
|
-
child_ctx[
|
|
11674
|
+
child_ctx[48] = list[i];
|
|
11675
|
+
child_ctx[50] = i;
|
|
11572
11676
|
return child_ctx;
|
|
11573
11677
|
}
|
|
11574
11678
|
|
|
11575
|
-
// (
|
|
11679
|
+
// (433:2) {#if showsuccessnotification}
|
|
11576
11680
|
function create_if_block_17(ctx) {
|
|
11577
11681
|
let div;
|
|
11578
11682
|
let p;
|
|
11683
|
+
let t_value = /*$_*/ ctx[17]("editText.success") + "";
|
|
11684
|
+
let t;
|
|
11579
11685
|
|
|
11580
11686
|
const block = {
|
|
11581
11687
|
c: function create() {
|
|
11582
11688
|
div = element("div");
|
|
11583
11689
|
p = element("p");
|
|
11584
|
-
|
|
11585
|
-
add_location(p, file$1,
|
|
11690
|
+
t = text(t_value);
|
|
11691
|
+
add_location(p, file$1, 434, 6, 18409);
|
|
11586
11692
|
attr_dev(div, "class", "AccountEditLimitSuccessfulChangeContainer");
|
|
11587
|
-
add_location(div, file$1,
|
|
11693
|
+
add_location(div, file$1, 433, 4, 18347);
|
|
11588
11694
|
},
|
|
11589
11695
|
m: function mount(target, anchor) {
|
|
11590
11696
|
insert_dev(target, div, anchor);
|
|
11591
11697
|
append_dev(div, p);
|
|
11698
|
+
append_dev(p, t);
|
|
11699
|
+
},
|
|
11700
|
+
p: function update(ctx, dirty) {
|
|
11701
|
+
if (dirty[0] & /*$_*/ 131072 && t_value !== (t_value = /*$_*/ ctx[17]("editText.success") + "")) set_data_dev(t, t_value);
|
|
11592
11702
|
},
|
|
11593
|
-
p: noop$1,
|
|
11594
11703
|
d: function destroy(detaching) {
|
|
11595
11704
|
if (detaching) detach_dev(div);
|
|
11596
11705
|
}
|
|
@@ -11600,19 +11709,19 @@
|
|
|
11600
11709
|
block,
|
|
11601
11710
|
id: create_if_block_17.name,
|
|
11602
11711
|
type: "if",
|
|
11603
|
-
source: "(
|
|
11712
|
+
source: "(433:2) {#if showsuccessnotification}",
|
|
11604
11713
|
ctx
|
|
11605
11714
|
});
|
|
11606
11715
|
|
|
11607
11716
|
return block;
|
|
11608
11717
|
}
|
|
11609
11718
|
|
|
11610
|
-
// (
|
|
11719
|
+
// (438:2) {#if showdeletenotification}
|
|
11611
11720
|
function create_if_block_14(ctx) {
|
|
11612
11721
|
let div;
|
|
11613
11722
|
|
|
11614
11723
|
function select_block_type(ctx, dirty) {
|
|
11615
|
-
if (/*isArray*/ ctx[
|
|
11724
|
+
if (/*isArray*/ ctx[10]) return create_if_block_15;
|
|
11616
11725
|
return create_else_block_2$1;
|
|
11617
11726
|
}
|
|
11618
11727
|
|
|
@@ -11624,7 +11733,7 @@
|
|
|
11624
11733
|
div = element("div");
|
|
11625
11734
|
if_block.c();
|
|
11626
11735
|
attr_dev(div, "class", "AccountEditLimitSuccessfulChangeContainer");
|
|
11627
|
-
add_location(div, file$1,
|
|
11736
|
+
add_location(div, file$1, 438, 4, 18495);
|
|
11628
11737
|
},
|
|
11629
11738
|
m: function mount(target, anchor) {
|
|
11630
11739
|
insert_dev(target, div, anchor);
|
|
@@ -11653,16 +11762,17 @@
|
|
|
11653
11762
|
block,
|
|
11654
11763
|
id: create_if_block_14.name,
|
|
11655
11764
|
type: "if",
|
|
11656
|
-
source: "(
|
|
11765
|
+
source: "(438:2) {#if showdeletenotification}",
|
|
11657
11766
|
ctx
|
|
11658
11767
|
});
|
|
11659
11768
|
|
|
11660
11769
|
return block;
|
|
11661
11770
|
}
|
|
11662
11771
|
|
|
11663
|
-
// (
|
|
11772
|
+
// (446:6) {:else}
|
|
11664
11773
|
function create_else_block_2$1(ctx) {
|
|
11665
11774
|
let p;
|
|
11775
|
+
let t0_value = /*$_*/ ctx[17]("editText.remove") + "";
|
|
11666
11776
|
let t0;
|
|
11667
11777
|
let t1;
|
|
11668
11778
|
|
|
@@ -11675,10 +11785,10 @@
|
|
|
11675
11785
|
const block = {
|
|
11676
11786
|
c: function create() {
|
|
11677
11787
|
p = element("p");
|
|
11678
|
-
t0 = text(
|
|
11788
|
+
t0 = text(t0_value);
|
|
11679
11789
|
t1 = space();
|
|
11680
11790
|
t2 = text(t2_value);
|
|
11681
|
-
add_location(p, file$1,
|
|
11791
|
+
add_location(p, file$1, 446, 8, 18880);
|
|
11682
11792
|
},
|
|
11683
11793
|
m: function mount(target, anchor) {
|
|
11684
11794
|
insert_dev(target, p, anchor);
|
|
@@ -11687,6 +11797,8 @@
|
|
|
11687
11797
|
append_dev(p, t2);
|
|
11688
11798
|
},
|
|
11689
11799
|
p: function update(ctx, dirty) {
|
|
11800
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.remove") + "")) set_data_dev(t0, t0_value);
|
|
11801
|
+
|
|
11690
11802
|
if (dirty[0] & /*limitsdata*/ 1 && t2_value !== (t2_value = (/*limitsdata*/ ctx[0].expiryDate
|
|
11691
11803
|
? moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
|
|
11692
11804
|
: "N/A") + "")) set_data_dev(t2, t2_value);
|
|
@@ -11700,17 +11812,17 @@
|
|
|
11700
11812
|
block,
|
|
11701
11813
|
id: create_else_block_2$1.name,
|
|
11702
11814
|
type: "else",
|
|
11703
|
-
source: "(
|
|
11815
|
+
source: "(446:6) {:else}",
|
|
11704
11816
|
ctx
|
|
11705
11817
|
});
|
|
11706
11818
|
|
|
11707
11819
|
return block;
|
|
11708
11820
|
}
|
|
11709
11821
|
|
|
11710
|
-
// (
|
|
11822
|
+
// (440:6) {#if isArray}
|
|
11711
11823
|
function create_if_block_15(ctx) {
|
|
11712
11824
|
let each_1_anchor;
|
|
11713
|
-
let each_value_5 = /*limitsUpdateData*/ ctx[
|
|
11825
|
+
let each_value_5 = /*limitsUpdateData*/ ctx[13];
|
|
11714
11826
|
validate_each_argument(each_value_5);
|
|
11715
11827
|
let each_blocks = [];
|
|
11716
11828
|
|
|
@@ -11734,8 +11846,8 @@
|
|
|
11734
11846
|
insert_dev(target, each_1_anchor, anchor);
|
|
11735
11847
|
},
|
|
11736
11848
|
p: function update(ctx, dirty) {
|
|
11737
|
-
if (dirty[0] & /*limitsUpdateData,
|
|
11738
|
-
each_value_5 = /*limitsUpdateData*/ ctx[
|
|
11849
|
+
if (dirty[0] & /*limitsUpdateData, $_, storedData*/ 204800) {
|
|
11850
|
+
each_value_5 = /*limitsUpdateData*/ ctx[13];
|
|
11739
11851
|
validate_each_argument(each_value_5);
|
|
11740
11852
|
let i;
|
|
11741
11853
|
|
|
@@ -11768,21 +11880,22 @@
|
|
|
11768
11880
|
block,
|
|
11769
11881
|
id: create_if_block_15.name,
|
|
11770
11882
|
type: "if",
|
|
11771
|
-
source: "(
|
|
11883
|
+
source: "(440:6) {#if isArray}",
|
|
11772
11884
|
ctx
|
|
11773
11885
|
});
|
|
11774
11886
|
|
|
11775
11887
|
return block;
|
|
11776
11888
|
}
|
|
11777
11889
|
|
|
11778
|
-
// (
|
|
11890
|
+
// (442:10) {#if selectData.period == storedData[index].periodName}
|
|
11779
11891
|
function create_if_block_16(ctx) {
|
|
11780
11892
|
let p;
|
|
11893
|
+
let t0_value = /*$_*/ ctx[17]("editText.remove") + "";
|
|
11781
11894
|
let t0;
|
|
11782
11895
|
let t1;
|
|
11783
11896
|
|
|
11784
|
-
let t2_value = (/*selectData*/ ctx[
|
|
11785
|
-
? moment(/*selectData*/ ctx[
|
|
11897
|
+
let t2_value = (/*selectData*/ ctx[48].expiryDate
|
|
11898
|
+
? moment(/*selectData*/ ctx[48].expiryDate).format("D/M/YYYY - h:mm A")
|
|
11786
11899
|
: "N/A") + "";
|
|
11787
11900
|
|
|
11788
11901
|
let t2;
|
|
@@ -11790,10 +11903,10 @@
|
|
|
11790
11903
|
const block = {
|
|
11791
11904
|
c: function create() {
|
|
11792
11905
|
p = element("p");
|
|
11793
|
-
t0 = text(
|
|
11906
|
+
t0 = text(t0_value);
|
|
11794
11907
|
t1 = space();
|
|
11795
11908
|
t2 = text(t2_value);
|
|
11796
|
-
add_location(p, file$1,
|
|
11909
|
+
add_location(p, file$1, 442, 12, 18703);
|
|
11797
11910
|
},
|
|
11798
11911
|
m: function mount(target, anchor) {
|
|
11799
11912
|
insert_dev(target, p, anchor);
|
|
@@ -11802,8 +11915,10 @@
|
|
|
11802
11915
|
append_dev(p, t2);
|
|
11803
11916
|
},
|
|
11804
11917
|
p: function update(ctx, dirty) {
|
|
11805
|
-
if (dirty[0] &
|
|
11806
|
-
|
|
11918
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.remove") + "")) set_data_dev(t0, t0_value);
|
|
11919
|
+
|
|
11920
|
+
if (dirty[0] & /*limitsUpdateData*/ 8192 && t2_value !== (t2_value = (/*selectData*/ ctx[48].expiryDate
|
|
11921
|
+
? moment(/*selectData*/ ctx[48].expiryDate).format("D/M/YYYY - h:mm A")
|
|
11807
11922
|
: "N/A") + "")) set_data_dev(t2, t2_value);
|
|
11808
11923
|
},
|
|
11809
11924
|
d: function destroy(detaching) {
|
|
@@ -11815,17 +11930,17 @@
|
|
|
11815
11930
|
block,
|
|
11816
11931
|
id: create_if_block_16.name,
|
|
11817
11932
|
type: "if",
|
|
11818
|
-
source: "(
|
|
11933
|
+
source: "(442:10) {#if selectData.period == storedData[index].periodName}",
|
|
11819
11934
|
ctx
|
|
11820
11935
|
});
|
|
11821
11936
|
|
|
11822
11937
|
return block;
|
|
11823
11938
|
}
|
|
11824
11939
|
|
|
11825
|
-
// (
|
|
11940
|
+
// (441:8) {#each limitsUpdateData as selectData, index}
|
|
11826
11941
|
function create_each_block_5(ctx) {
|
|
11827
11942
|
let if_block_anchor;
|
|
11828
|
-
let if_block = /*selectData*/ ctx[
|
|
11943
|
+
let if_block = /*selectData*/ ctx[48].period == /*storedData*/ ctx[16][/*index*/ ctx[50]].periodName && create_if_block_16(ctx);
|
|
11829
11944
|
|
|
11830
11945
|
const block = {
|
|
11831
11946
|
c: function create() {
|
|
@@ -11837,7 +11952,7 @@
|
|
|
11837
11952
|
insert_dev(target, if_block_anchor, anchor);
|
|
11838
11953
|
},
|
|
11839
11954
|
p: function update(ctx, dirty) {
|
|
11840
|
-
if (/*selectData*/ ctx[
|
|
11955
|
+
if (/*selectData*/ ctx[48].period == /*storedData*/ ctx[16][/*index*/ ctx[50]].periodName) {
|
|
11841
11956
|
if (if_block) {
|
|
11842
11957
|
if_block.p(ctx, dirty);
|
|
11843
11958
|
} else {
|
|
@@ -11860,19 +11975,19 @@
|
|
|
11860
11975
|
block,
|
|
11861
11976
|
id: create_each_block_5.name,
|
|
11862
11977
|
type: "each",
|
|
11863
|
-
source: "(
|
|
11978
|
+
source: "(441:8) {#each limitsUpdateData as selectData, index}",
|
|
11864
11979
|
ctx
|
|
11865
11980
|
});
|
|
11866
11981
|
|
|
11867
11982
|
return block;
|
|
11868
11983
|
}
|
|
11869
11984
|
|
|
11870
|
-
// (
|
|
11985
|
+
// (451:2) {#if showLimits}
|
|
11871
11986
|
function create_if_block$1(ctx) {
|
|
11872
11987
|
let div;
|
|
11873
11988
|
|
|
11874
11989
|
function select_block_type_1(ctx, dirty) {
|
|
11875
|
-
if (/*isArray*/ ctx[
|
|
11990
|
+
if (/*isArray*/ ctx[10]) return create_if_block_1$1;
|
|
11876
11991
|
return create_else_block_1$1;
|
|
11877
11992
|
}
|
|
11878
11993
|
|
|
@@ -11884,7 +11999,7 @@
|
|
|
11884
11999
|
div = element("div");
|
|
11885
12000
|
if_block.c();
|
|
11886
12001
|
attr_dev(div, "class", "AccountEditContent");
|
|
11887
|
-
add_location(div, file$1,
|
|
12002
|
+
add_location(div, file$1, 451, 2, 19055);
|
|
11888
12003
|
},
|
|
11889
12004
|
m: function mount(target, anchor) {
|
|
11890
12005
|
insert_dev(target, div, anchor);
|
|
@@ -11913,14 +12028,14 @@
|
|
|
11913
12028
|
block,
|
|
11914
12029
|
id: create_if_block$1.name,
|
|
11915
12030
|
type: "if",
|
|
11916
|
-
source: "(
|
|
12031
|
+
source: "(451:2) {#if showLimits}",
|
|
11917
12032
|
ctx
|
|
11918
12033
|
});
|
|
11919
12034
|
|
|
11920
12035
|
return block;
|
|
11921
12036
|
}
|
|
11922
12037
|
|
|
11923
|
-
// (
|
|
12038
|
+
// (492:4) {:else}
|
|
11924
12039
|
function create_else_block_1$1(ctx) {
|
|
11925
12040
|
let div1;
|
|
11926
12041
|
let div0;
|
|
@@ -11931,7 +12046,7 @@
|
|
|
11931
12046
|
let t2;
|
|
11932
12047
|
let mounted;
|
|
11933
12048
|
let dispose;
|
|
11934
|
-
let each_value_4 = /*periodValues*/ ctx[
|
|
12049
|
+
let each_value_4 = /*periodValues*/ ctx[21];
|
|
11935
12050
|
validate_each_argument(each_value_4);
|
|
11936
12051
|
let each_blocks_1 = [];
|
|
11937
12052
|
|
|
@@ -11939,7 +12054,7 @@
|
|
|
11939
12054
|
each_blocks_1[i] = create_each_block_4(get_each_context_4(ctx, each_value_4, i));
|
|
11940
12055
|
}
|
|
11941
12056
|
|
|
11942
|
-
let each_value_2 = /*storedData*/ ctx[
|
|
12057
|
+
let each_value_2 = /*storedData*/ ctx[16];
|
|
11943
12058
|
validate_each_argument(each_value_2);
|
|
11944
12059
|
let each_blocks = [];
|
|
11945
12060
|
|
|
@@ -11967,15 +12082,15 @@
|
|
|
11967
12082
|
}
|
|
11968
12083
|
|
|
11969
12084
|
attr_dev(p, "class", "AccountEditLimitsTitle");
|
|
11970
|
-
add_location(p, file$1,
|
|
11971
|
-
attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[
|
|
11972
|
-
select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[
|
|
11973
|
-
if (/*limitsUpdateData*/ ctx[
|
|
11974
|
-
add_location(select, file$1,
|
|
12085
|
+
add_location(p, file$1, 494, 10, 22230);
|
|
12086
|
+
attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[18] ? "TimeoutSelectMobile" : ""));
|
|
12087
|
+
select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true;
|
|
12088
|
+
if (/*limitsUpdateData*/ ctx[13].period === void 0) add_render_callback(() => /*select_change_handler_1*/ ctx[29].call(select));
|
|
12089
|
+
add_location(select, file$1, 495, 10, 22284);
|
|
11975
12090
|
attr_dev(div0, "class", "AccountEditLimitsSplitSection");
|
|
11976
|
-
add_location(div0, file$1,
|
|
12091
|
+
add_location(div0, file$1, 493, 8, 22176);
|
|
11977
12092
|
attr_dev(div1, "class", "AccountEditLimitsContainer");
|
|
11978
|
-
add_location(div1, file$1,
|
|
12093
|
+
add_location(div1, file$1, 492, 6, 22127);
|
|
11979
12094
|
},
|
|
11980
12095
|
m: function mount(target, anchor) {
|
|
11981
12096
|
insert_dev(target, div1, anchor);
|
|
@@ -11988,7 +12103,7 @@
|
|
|
11988
12103
|
each_blocks_1[i].m(select, null);
|
|
11989
12104
|
}
|
|
11990
12105
|
|
|
11991
|
-
select_option(select, /*limitsUpdateData*/ ctx[
|
|
12106
|
+
select_option(select, /*limitsUpdateData*/ ctx[13].period);
|
|
11992
12107
|
append_dev(div1, t2);
|
|
11993
12108
|
|
|
11994
12109
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
@@ -11997,12 +12112,12 @@
|
|
|
11997
12112
|
|
|
11998
12113
|
if (!mounted) {
|
|
11999
12114
|
dispose = [
|
|
12000
|
-
listen_dev(select, "change", /*select_change_handler_1*/ ctx[
|
|
12115
|
+
listen_dev(select, "change", /*select_change_handler_1*/ ctx[29]),
|
|
12001
12116
|
listen_dev(
|
|
12002
12117
|
select,
|
|
12003
12118
|
"change",
|
|
12004
12119
|
function () {
|
|
12005
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
12120
|
+
if (is_function(/*checkUserInputAmount*/ ctx[25](/*limitsUpdateData*/ ctx[13], 0, false, /*updatedLimitValues*/ ctx[15]))) /*checkUserInputAmount*/ ctx[25](/*limitsUpdateData*/ ctx[13], 0, false, /*updatedLimitValues*/ ctx[15]).apply(this, arguments);
|
|
12006
12121
|
},
|
|
12007
12122
|
false,
|
|
12008
12123
|
false,
|
|
@@ -12016,8 +12131,8 @@
|
|
|
12016
12131
|
p: function update(new_ctx, dirty) {
|
|
12017
12132
|
ctx = new_ctx;
|
|
12018
12133
|
|
|
12019
|
-
if (dirty[0] & /*periodValues*/
|
|
12020
|
-
each_value_4 = /*periodValues*/ ctx[
|
|
12134
|
+
if (dirty[0] & /*periodValues*/ 2097152) {
|
|
12135
|
+
each_value_4 = /*periodValues*/ ctx[21];
|
|
12021
12136
|
validate_each_argument(each_value_4);
|
|
12022
12137
|
let i;
|
|
12023
12138
|
|
|
@@ -12040,16 +12155,16 @@
|
|
|
12040
12155
|
each_blocks_1.length = each_value_4.length;
|
|
12041
12156
|
}
|
|
12042
12157
|
|
|
12043
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
12158
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && select_disabled_value !== (select_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true)) {
|
|
12044
12159
|
prop_dev(select, "disabled", select_disabled_value);
|
|
12045
12160
|
}
|
|
12046
12161
|
|
|
12047
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
12048
|
-
select_option(select, /*limitsUpdateData*/ ctx[
|
|
12162
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344) {
|
|
12163
|
+
select_option(select, /*limitsUpdateData*/ ctx[13].period);
|
|
12049
12164
|
}
|
|
12050
12165
|
|
|
12051
|
-
if (dirty[0] &
|
|
12052
|
-
each_value_2 = /*storedData*/ ctx[
|
|
12166
|
+
if (dirty[0] & /*$_, playercurrency, limitsdata, limitsUpdateData, invalidIndex, storedData, checkUserInputAmount, updatedLimitValues, isMobile, lossLimitPredefinedValues*/ 35106833) {
|
|
12167
|
+
each_value_2 = /*storedData*/ ctx[16];
|
|
12053
12168
|
validate_each_argument(each_value_2);
|
|
12054
12169
|
let i;
|
|
12055
12170
|
|
|
@@ -12085,17 +12200,17 @@
|
|
|
12085
12200
|
block,
|
|
12086
12201
|
id: create_else_block_1$1.name,
|
|
12087
12202
|
type: "else",
|
|
12088
|
-
source: "(
|
|
12203
|
+
source: "(492:4) {:else}",
|
|
12089
12204
|
ctx
|
|
12090
12205
|
});
|
|
12091
12206
|
|
|
12092
12207
|
return block;
|
|
12093
12208
|
}
|
|
12094
12209
|
|
|
12095
|
-
// (
|
|
12210
|
+
// (453:4) {#if (isArray)}
|
|
12096
12211
|
function create_if_block_1$1(ctx) {
|
|
12097
12212
|
let div;
|
|
12098
|
-
let each_value = /*limitsUpdateData*/ ctx[
|
|
12213
|
+
let each_value = /*limitsUpdateData*/ ctx[13];
|
|
12099
12214
|
validate_each_argument(each_value);
|
|
12100
12215
|
let each_blocks = [];
|
|
12101
12216
|
|
|
@@ -12112,7 +12227,7 @@
|
|
|
12112
12227
|
}
|
|
12113
12228
|
|
|
12114
12229
|
attr_dev(div, "class", "AccountEditLimitsContainer");
|
|
12115
|
-
add_location(div, file$1,
|
|
12230
|
+
add_location(div, file$1, 453, 6, 19179);
|
|
12116
12231
|
},
|
|
12117
12232
|
m: function mount(target, anchor) {
|
|
12118
12233
|
insert_dev(target, div, anchor);
|
|
@@ -12122,8 +12237,8 @@
|
|
|
12122
12237
|
}
|
|
12123
12238
|
},
|
|
12124
12239
|
p: function update(ctx, dirty) {
|
|
12125
|
-
if (dirty[0] &
|
|
12126
|
-
each_value = /*limitsUpdateData*/ ctx[
|
|
12240
|
+
if (dirty[0] & /*$_, limitsUpdateData, playercurrency, invalidIndexes, storedData, checkUserInputAmount, updatedLimitValues, limitname, minTimeValue, maxTimeValue, isMobile, depositPredefinedValues*/ 34580888) {
|
|
12241
|
+
each_value = /*limitsUpdateData*/ ctx[13];
|
|
12127
12242
|
validate_each_argument(each_value);
|
|
12128
12243
|
let i;
|
|
12129
12244
|
|
|
@@ -12156,26 +12271,26 @@
|
|
|
12156
12271
|
block,
|
|
12157
12272
|
id: create_if_block_1$1.name,
|
|
12158
12273
|
type: "if",
|
|
12159
|
-
source: "(
|
|
12274
|
+
source: "(453:4) {#if (isArray)}",
|
|
12160
12275
|
ctx
|
|
12161
12276
|
});
|
|
12162
12277
|
|
|
12163
12278
|
return block;
|
|
12164
12279
|
}
|
|
12165
12280
|
|
|
12166
|
-
// (
|
|
12281
|
+
// (497:12) {#each periodValues as selectData}
|
|
12167
12282
|
function create_each_block_4(ctx) {
|
|
12168
12283
|
let option;
|
|
12169
|
-
let t_value = /*selectData*/ ctx[
|
|
12284
|
+
let t_value = /*selectData*/ ctx[48] + "";
|
|
12170
12285
|
let t;
|
|
12171
12286
|
|
|
12172
12287
|
const block = {
|
|
12173
12288
|
c: function create() {
|
|
12174
12289
|
option = element("option");
|
|
12175
12290
|
t = text(t_value);
|
|
12176
|
-
option.__value = /*selectData*/ ctx[
|
|
12291
|
+
option.__value = /*selectData*/ ctx[48];
|
|
12177
12292
|
option.value = option.__value;
|
|
12178
|
-
add_location(option, file$1,
|
|
12293
|
+
add_location(option, file$1, 497, 14, 22585);
|
|
12179
12294
|
},
|
|
12180
12295
|
m: function mount(target, anchor) {
|
|
12181
12296
|
insert_dev(target, option, anchor);
|
|
@@ -12191,20 +12306,24 @@
|
|
|
12191
12306
|
block,
|
|
12192
12307
|
id: create_each_block_4.name,
|
|
12193
12308
|
type: "each",
|
|
12194
|
-
source: "(
|
|
12309
|
+
source: "(497:12) {#each periodValues as selectData}",
|
|
12195
12310
|
ctx
|
|
12196
12311
|
});
|
|
12197
12312
|
|
|
12198
12313
|
return block;
|
|
12199
12314
|
}
|
|
12200
12315
|
|
|
12201
|
-
// (
|
|
12316
|
+
// (503:10) {#if limitsUpdateData.period === savedData.periodName}
|
|
12202
12317
|
function create_if_block_9$1(ctx) {
|
|
12203
12318
|
let div1;
|
|
12204
12319
|
let p;
|
|
12320
|
+
let t0_value = /*$_*/ ctx[17]("editText.amount") + "";
|
|
12321
|
+
let t0;
|
|
12205
12322
|
let t1;
|
|
12206
12323
|
let select;
|
|
12207
12324
|
let option;
|
|
12325
|
+
let t2_value = /*$_*/ ctx[17]("editText.noLimit") + "";
|
|
12326
|
+
let t2;
|
|
12208
12327
|
let select_disabled_value;
|
|
12209
12328
|
let t3;
|
|
12210
12329
|
let div0;
|
|
@@ -12212,7 +12331,7 @@
|
|
|
12212
12331
|
let t5;
|
|
12213
12332
|
let mounted;
|
|
12214
12333
|
let dispose;
|
|
12215
|
-
let each_value_3 = /*lossLimitPredefinedValues*/ ctx[
|
|
12334
|
+
let each_value_3 = /*lossLimitPredefinedValues*/ ctx[20];
|
|
12216
12335
|
validate_each_argument(each_value_3);
|
|
12217
12336
|
let each_blocks = [];
|
|
12218
12337
|
|
|
@@ -12221,21 +12340,21 @@
|
|
|
12221
12340
|
}
|
|
12222
12341
|
|
|
12223
12342
|
function select_change_handler_2() {
|
|
12224
|
-
/*select_change_handler_2*/ ctx[
|
|
12343
|
+
/*select_change_handler_2*/ ctx[30].call(select, /*each_value_2*/ ctx[55], /*index*/ ctx[50]);
|
|
12225
12344
|
}
|
|
12226
12345
|
|
|
12227
|
-
let if_block0 = /*savedData*/ ctx[
|
|
12228
|
-
let if_block1 = /*limitsUpdateData*/ ctx[
|
|
12346
|
+
let if_block0 = /*savedData*/ ctx[54].amount === "Custom" && create_if_block_11$1(ctx);
|
|
12347
|
+
let if_block1 = /*limitsUpdateData*/ ctx[13].isModified === true && create_if_block_10$1(ctx);
|
|
12229
12348
|
|
|
12230
12349
|
const block = {
|
|
12231
12350
|
c: function create() {
|
|
12232
12351
|
div1 = element("div");
|
|
12233
12352
|
p = element("p");
|
|
12234
|
-
|
|
12353
|
+
t0 = text(t0_value);
|
|
12235
12354
|
t1 = space();
|
|
12236
12355
|
select = element("select");
|
|
12237
12356
|
option = element("option");
|
|
12238
|
-
|
|
12357
|
+
t2 = text(t2_value);
|
|
12239
12358
|
|
|
12240
12359
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
12241
12360
|
each_blocks[i].c();
|
|
@@ -12248,34 +12367,36 @@
|
|
|
12248
12367
|
if (if_block1) if_block1.c();
|
|
12249
12368
|
t5 = space();
|
|
12250
12369
|
attr_dev(p, "class", "AccountEditLimitsTitle");
|
|
12251
|
-
add_location(p, file$1,
|
|
12370
|
+
add_location(p, file$1, 504, 14, 22871);
|
|
12252
12371
|
option.__value = "";
|
|
12253
12372
|
option.value = option.__value;
|
|
12254
12373
|
option.disabled = true;
|
|
12255
12374
|
option.selected = true;
|
|
12256
12375
|
option.hidden = true;
|
|
12257
|
-
add_location(option, file$1,
|
|
12258
|
-
attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[
|
|
12259
|
-
select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[
|
|
12260
|
-
if (/*savedData*/ ctx[
|
|
12261
|
-
add_location(select, file$1,
|
|
12376
|
+
add_location(option, file$1, 506, 16, 23189);
|
|
12377
|
+
attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[18] ? "TimeoutSelectMobile" : ""));
|
|
12378
|
+
select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true;
|
|
12379
|
+
if (/*savedData*/ ctx[54].amount === void 0) add_render_callback(select_change_handler_2);
|
|
12380
|
+
add_location(select, file$1, 505, 14, 22947);
|
|
12262
12381
|
attr_dev(div0, "class", "AccountEditLimitsInputContainer");
|
|
12263
|
-
add_location(div0, file$1,
|
|
12382
|
+
add_location(div0, file$1, 511, 14, 23581);
|
|
12264
12383
|
attr_dev(div1, "class", "AccountEditLimitsSplitSection");
|
|
12265
|
-
add_location(div1, file$1,
|
|
12384
|
+
add_location(div1, file$1, 503, 12, 22813);
|
|
12266
12385
|
},
|
|
12267
12386
|
m: function mount(target, anchor) {
|
|
12268
12387
|
insert_dev(target, div1, anchor);
|
|
12269
12388
|
append_dev(div1, p);
|
|
12389
|
+
append_dev(p, t0);
|
|
12270
12390
|
append_dev(div1, t1);
|
|
12271
12391
|
append_dev(div1, select);
|
|
12272
12392
|
append_dev(select, option);
|
|
12393
|
+
append_dev(option, t2);
|
|
12273
12394
|
|
|
12274
12395
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
12275
12396
|
each_blocks[i].m(select, null);
|
|
12276
12397
|
}
|
|
12277
12398
|
|
|
12278
|
-
select_option(select, /*savedData*/ ctx[
|
|
12399
|
+
select_option(select, /*savedData*/ ctx[54].amount);
|
|
12279
12400
|
append_dev(div1, t3);
|
|
12280
12401
|
append_dev(div1, div0);
|
|
12281
12402
|
if (if_block0) if_block0.m(div0, null);
|
|
@@ -12290,7 +12411,7 @@
|
|
|
12290
12411
|
select,
|
|
12291
12412
|
"change",
|
|
12292
12413
|
function () {
|
|
12293
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
12414
|
+
if (is_function(/*checkUserInputAmount*/ ctx[25](/*savedData*/ ctx[54], 0, false, /*updatedLimitValues*/ ctx[15]))) /*checkUserInputAmount*/ ctx[25](/*savedData*/ ctx[54], 0, false, /*updatedLimitValues*/ ctx[15]).apply(this, arguments);
|
|
12294
12415
|
},
|
|
12295
12416
|
false,
|
|
12296
12417
|
false,
|
|
@@ -12303,9 +12424,11 @@
|
|
|
12303
12424
|
},
|
|
12304
12425
|
p: function update(new_ctx, dirty) {
|
|
12305
12426
|
ctx = new_ctx;
|
|
12427
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.amount") + "")) set_data_dev(t0, t0_value);
|
|
12428
|
+
if (dirty[0] & /*$_*/ 131072 && t2_value !== (t2_value = /*$_*/ ctx[17]("editText.noLimit") + "")) set_data_dev(t2, t2_value);
|
|
12306
12429
|
|
|
12307
|
-
if (dirty[0] & /*lossLimitPredefinedValues, playercurrency*/
|
|
12308
|
-
each_value_3 = /*lossLimitPredefinedValues*/ ctx[
|
|
12430
|
+
if (dirty[0] & /*lossLimitPredefinedValues, playercurrency*/ 1048592) {
|
|
12431
|
+
each_value_3 = /*lossLimitPredefinedValues*/ ctx[20];
|
|
12309
12432
|
validate_each_argument(each_value_3);
|
|
12310
12433
|
let i;
|
|
12311
12434
|
|
|
@@ -12328,15 +12451,15 @@
|
|
|
12328
12451
|
each_blocks.length = each_value_3.length;
|
|
12329
12452
|
}
|
|
12330
12453
|
|
|
12331
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
12454
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && select_disabled_value !== (select_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true)) {
|
|
12332
12455
|
prop_dev(select, "disabled", select_disabled_value);
|
|
12333
12456
|
}
|
|
12334
12457
|
|
|
12335
|
-
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/
|
|
12336
|
-
select_option(select, /*savedData*/ ctx[
|
|
12458
|
+
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 1114112) {
|
|
12459
|
+
select_option(select, /*savedData*/ ctx[54].amount);
|
|
12337
12460
|
}
|
|
12338
12461
|
|
|
12339
|
-
if (/*savedData*/ ctx[
|
|
12462
|
+
if (/*savedData*/ ctx[54].amount === "Custom") {
|
|
12340
12463
|
if (if_block0) {
|
|
12341
12464
|
if_block0.p(ctx, dirty);
|
|
12342
12465
|
} else {
|
|
@@ -12349,7 +12472,7 @@
|
|
|
12349
12472
|
if_block0 = null;
|
|
12350
12473
|
}
|
|
12351
12474
|
|
|
12352
|
-
if (/*limitsUpdateData*/ ctx[
|
|
12475
|
+
if (/*limitsUpdateData*/ ctx[13].isModified === true) {
|
|
12353
12476
|
if (if_block1) {
|
|
12354
12477
|
if_block1.p(ctx, dirty);
|
|
12355
12478
|
} else {
|
|
@@ -12376,26 +12499,26 @@
|
|
|
12376
12499
|
block,
|
|
12377
12500
|
id: create_if_block_9$1.name,
|
|
12378
12501
|
type: "if",
|
|
12379
|
-
source: "(
|
|
12502
|
+
source: "(503:10) {#if limitsUpdateData.period === savedData.periodName}",
|
|
12380
12503
|
ctx
|
|
12381
12504
|
});
|
|
12382
12505
|
|
|
12383
12506
|
return block;
|
|
12384
12507
|
}
|
|
12385
12508
|
|
|
12386
|
-
// (
|
|
12509
|
+
// (509:58) {#if selectData !== "No limit" && selectData !== "Custom"}
|
|
12387
12510
|
function create_if_block_13(ctx) {
|
|
12388
12511
|
let t;
|
|
12389
12512
|
|
|
12390
12513
|
const block = {
|
|
12391
12514
|
c: function create() {
|
|
12392
|
-
t = text(/*playercurrency*/ ctx[
|
|
12515
|
+
t = text(/*playercurrency*/ ctx[4]);
|
|
12393
12516
|
},
|
|
12394
12517
|
m: function mount(target, anchor) {
|
|
12395
12518
|
insert_dev(target, t, anchor);
|
|
12396
12519
|
},
|
|
12397
12520
|
p: function update(ctx, dirty) {
|
|
12398
|
-
if (dirty[0] & /*playercurrency*/
|
|
12521
|
+
if (dirty[0] & /*playercurrency*/ 16) set_data_dev(t, /*playercurrency*/ ctx[4]);
|
|
12399
12522
|
},
|
|
12400
12523
|
d: function destroy(detaching) {
|
|
12401
12524
|
if (detaching) detach_dev(t);
|
|
@@ -12406,20 +12529,20 @@
|
|
|
12406
12529
|
block,
|
|
12407
12530
|
id: create_if_block_13.name,
|
|
12408
12531
|
type: "if",
|
|
12409
|
-
source: "(
|
|
12532
|
+
source: "(509:58) {#if selectData !== \\\"No limit\\\" && selectData !== \\\"Custom\\\"}",
|
|
12410
12533
|
ctx
|
|
12411
12534
|
});
|
|
12412
12535
|
|
|
12413
12536
|
return block;
|
|
12414
12537
|
}
|
|
12415
12538
|
|
|
12416
|
-
// (
|
|
12539
|
+
// (508:16) {#each lossLimitPredefinedValues as selectData}
|
|
12417
12540
|
function create_each_block_3(ctx) {
|
|
12418
12541
|
let option;
|
|
12419
|
-
let t0_value = /*selectData*/ ctx[
|
|
12542
|
+
let t0_value = /*selectData*/ ctx[48] + "";
|
|
12420
12543
|
let t0;
|
|
12421
12544
|
let t1;
|
|
12422
|
-
let if_block = /*selectData*/ ctx[
|
|
12545
|
+
let if_block = /*selectData*/ ctx[48] !== "No limit" && /*selectData*/ ctx[48] !== "Custom" && create_if_block_13(ctx);
|
|
12423
12546
|
|
|
12424
12547
|
const block = {
|
|
12425
12548
|
c: function create() {
|
|
@@ -12427,9 +12550,9 @@
|
|
|
12427
12550
|
t0 = text(t0_value);
|
|
12428
12551
|
t1 = space();
|
|
12429
12552
|
if (if_block) if_block.c();
|
|
12430
|
-
option.__value = /*selectData*/ ctx[
|
|
12553
|
+
option.__value = /*selectData*/ ctx[48];
|
|
12431
12554
|
option.value = option.__value;
|
|
12432
|
-
add_location(option, file$1,
|
|
12555
|
+
add_location(option, file$1, 508, 18, 23347);
|
|
12433
12556
|
},
|
|
12434
12557
|
m: function mount(target, anchor) {
|
|
12435
12558
|
insert_dev(target, option, anchor);
|
|
@@ -12438,7 +12561,7 @@
|
|
|
12438
12561
|
if (if_block) if_block.m(option, null);
|
|
12439
12562
|
},
|
|
12440
12563
|
p: function update(ctx, dirty) {
|
|
12441
|
-
if (/*selectData*/ ctx[
|
|
12564
|
+
if (/*selectData*/ ctx[48] !== "No limit" && /*selectData*/ ctx[48] !== "Custom") if_block.p(ctx, dirty);
|
|
12442
12565
|
},
|
|
12443
12566
|
d: function destroy(detaching) {
|
|
12444
12567
|
if (detaching) detach_dev(option);
|
|
@@ -12450,14 +12573,14 @@
|
|
|
12450
12573
|
block,
|
|
12451
12574
|
id: create_each_block_3.name,
|
|
12452
12575
|
type: "each",
|
|
12453
|
-
source: "(
|
|
12576
|
+
source: "(508:16) {#each lossLimitPredefinedValues as selectData}",
|
|
12454
12577
|
ctx
|
|
12455
12578
|
});
|
|
12456
12579
|
|
|
12457
12580
|
return block;
|
|
12458
12581
|
}
|
|
12459
12582
|
|
|
12460
|
-
// (
|
|
12583
|
+
// (513:16) {#if savedData.amount === "Custom"}
|
|
12461
12584
|
function create_if_block_11$1(ctx) {
|
|
12462
12585
|
let input;
|
|
12463
12586
|
let input_disabled_value;
|
|
@@ -12467,10 +12590,10 @@
|
|
|
12467
12590
|
let dispose;
|
|
12468
12591
|
|
|
12469
12592
|
function input_input_handler_2() {
|
|
12470
|
-
/*input_input_handler_2*/ ctx[
|
|
12593
|
+
/*input_input_handler_2*/ ctx[31].call(input, /*each_value_2*/ ctx[55], /*index*/ ctx[50]);
|
|
12471
12594
|
}
|
|
12472
12595
|
|
|
12473
|
-
let if_block = /*invalidIndex*/ ctx[
|
|
12596
|
+
let if_block = /*invalidIndex*/ ctx[12] === true && create_if_block_12$1(ctx);
|
|
12474
12597
|
|
|
12475
12598
|
const block = {
|
|
12476
12599
|
c: function create() {
|
|
@@ -12480,12 +12603,12 @@
|
|
|
12480
12603
|
if_block_anchor = empty();
|
|
12481
12604
|
attr_dev(input, "type", "number");
|
|
12482
12605
|
attr_dev(input, "class", "AccountEditField");
|
|
12483
|
-
input.disabled = input_disabled_value = /*limitsUpdateData*/ ctx[
|
|
12484
|
-
add_location(input, file$1,
|
|
12606
|
+
input.disabled = input_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true;
|
|
12607
|
+
add_location(input, file$1, 513, 18, 23697);
|
|
12485
12608
|
},
|
|
12486
12609
|
m: function mount(target, anchor) {
|
|
12487
12610
|
insert_dev(target, input, anchor);
|
|
12488
|
-
set_input_value(input, /*savedData*/ ctx[
|
|
12611
|
+
set_input_value(input, /*savedData*/ ctx[54].value);
|
|
12489
12612
|
insert_dev(target, t, anchor);
|
|
12490
12613
|
if (if_block) if_block.m(target, anchor);
|
|
12491
12614
|
insert_dev(target, if_block_anchor, anchor);
|
|
@@ -12496,7 +12619,7 @@
|
|
|
12496
12619
|
input,
|
|
12497
12620
|
"keyup",
|
|
12498
12621
|
function () {
|
|
12499
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
12622
|
+
if (is_function(/*checkUserInputAmount*/ ctx[25](/*savedData*/ ctx[54], 0, false, /*updatedLimitValues*/ ctx[15]))) /*checkUserInputAmount*/ ctx[25](/*savedData*/ ctx[54], 0, false, /*updatedLimitValues*/ ctx[15]).apply(this, arguments);
|
|
12500
12623
|
},
|
|
12501
12624
|
false,
|
|
12502
12625
|
false,
|
|
@@ -12511,16 +12634,18 @@
|
|
|
12511
12634
|
p: function update(new_ctx, dirty) {
|
|
12512
12635
|
ctx = new_ctx;
|
|
12513
12636
|
|
|
12514
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
12637
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && input_disabled_value !== (input_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true)) {
|
|
12515
12638
|
prop_dev(input, "disabled", input_disabled_value);
|
|
12516
12639
|
}
|
|
12517
12640
|
|
|
12518
|
-
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/
|
|
12519
|
-
set_input_value(input, /*savedData*/ ctx[
|
|
12641
|
+
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 1114112 && to_number(input.value) !== /*savedData*/ ctx[54].value) {
|
|
12642
|
+
set_input_value(input, /*savedData*/ ctx[54].value);
|
|
12520
12643
|
}
|
|
12521
12644
|
|
|
12522
|
-
if (/*invalidIndex*/ ctx[
|
|
12523
|
-
if (if_block)
|
|
12645
|
+
if (/*invalidIndex*/ ctx[12] === true) {
|
|
12646
|
+
if (if_block) {
|
|
12647
|
+
if_block.p(ctx, dirty);
|
|
12648
|
+
} else {
|
|
12524
12649
|
if_block = create_if_block_12$1(ctx);
|
|
12525
12650
|
if_block.c();
|
|
12526
12651
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -12544,31 +12669,37 @@
|
|
|
12544
12669
|
block,
|
|
12545
12670
|
id: create_if_block_11$1.name,
|
|
12546
12671
|
type: "if",
|
|
12547
|
-
source: "(
|
|
12672
|
+
source: "(513:16) {#if savedData.amount === \\\"Custom\\\"}",
|
|
12548
12673
|
ctx
|
|
12549
12674
|
});
|
|
12550
12675
|
|
|
12551
12676
|
return block;
|
|
12552
12677
|
}
|
|
12553
12678
|
|
|
12554
|
-
// (
|
|
12679
|
+
// (515:18) {#if invalidIndex === true}
|
|
12555
12680
|
function create_if_block_12$1(ctx) {
|
|
12556
12681
|
let p;
|
|
12557
12682
|
let span;
|
|
12683
|
+
let t_value = /*$_*/ ctx[17]("editText.invalidInputMessageLimit") + "";
|
|
12684
|
+
let t;
|
|
12558
12685
|
|
|
12559
12686
|
const block = {
|
|
12560
12687
|
c: function create() {
|
|
12561
12688
|
p = element("p");
|
|
12562
12689
|
span = element("span");
|
|
12563
|
-
|
|
12690
|
+
t = text(t_value);
|
|
12564
12691
|
attr_dev(span, "class", "InvalidInput InvalidSingleRow");
|
|
12565
|
-
add_location(span, file$1,
|
|
12692
|
+
add_location(span, file$1, 516, 20, 24015);
|
|
12566
12693
|
attr_dev(p, "class", "AccountEditWarningText");
|
|
12567
|
-
add_location(p, file$1,
|
|
12694
|
+
add_location(p, file$1, 515, 18, 23960);
|
|
12568
12695
|
},
|
|
12569
12696
|
m: function mount(target, anchor) {
|
|
12570
12697
|
insert_dev(target, p, anchor);
|
|
12571
12698
|
append_dev(p, span);
|
|
12699
|
+
append_dev(span, t);
|
|
12700
|
+
},
|
|
12701
|
+
p: function update(ctx, dirty) {
|
|
12702
|
+
if (dirty[0] & /*$_*/ 131072 && t_value !== (t_value = /*$_*/ ctx[17]("editText.invalidInputMessageLimit") + "")) set_data_dev(t, t_value);
|
|
12572
12703
|
},
|
|
12573
12704
|
d: function destroy(detaching) {
|
|
12574
12705
|
if (detaching) detach_dev(p);
|
|
@@ -12579,97 +12710,111 @@
|
|
|
12579
12710
|
block,
|
|
12580
12711
|
id: create_if_block_12$1.name,
|
|
12581
12712
|
type: "if",
|
|
12582
|
-
source: "(
|
|
12713
|
+
source: "(515:18) {#if invalidIndex === true}",
|
|
12583
12714
|
ctx
|
|
12584
12715
|
});
|
|
12585
12716
|
|
|
12586
12717
|
return block;
|
|
12587
12718
|
}
|
|
12588
12719
|
|
|
12589
|
-
// (
|
|
12720
|
+
// (521:16) {#if limitsUpdateData.isModified === true}
|
|
12590
12721
|
function create_if_block_10$1(ctx) {
|
|
12591
12722
|
let p0;
|
|
12723
|
+
let t0_value = /*$_*/ ctx[17]("editText.expirationDate") + "";
|
|
12592
12724
|
let t0;
|
|
12725
|
+
let t1;
|
|
12593
12726
|
let span0;
|
|
12594
12727
|
|
|
12595
|
-
let
|
|
12728
|
+
let t2_value = (/*limitsdata*/ ctx[0].expiryDate
|
|
12596
12729
|
? moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
|
|
12597
12730
|
: "N/A") + "";
|
|
12598
12731
|
|
|
12599
|
-
let t1;
|
|
12600
12732
|
let t2;
|
|
12733
|
+
let t3;
|
|
12601
12734
|
let div;
|
|
12602
12735
|
let p1;
|
|
12603
12736
|
let span1;
|
|
12604
12737
|
let span2;
|
|
12605
|
-
let
|
|
12738
|
+
let t5_value = /*$_*/ ctx[17]("editText.changedLimitTextBefore") + "";
|
|
12739
|
+
let t5;
|
|
12740
|
+
let t6;
|
|
12606
12741
|
|
|
12607
|
-
let
|
|
12742
|
+
let t7_value = (/*limitsdata*/ ctx[0].updateAmount > 0
|
|
12608
12743
|
? /*limitsdata*/ ctx[0].updateAmount
|
|
12609
12744
|
: 0) + "";
|
|
12610
12745
|
|
|
12611
|
-
let t5;
|
|
12612
|
-
let t6;
|
|
12613
12746
|
let t7;
|
|
12614
12747
|
let t8;
|
|
12748
|
+
let t9;
|
|
12749
|
+
let t10_value = /*$_*/ ctx[17]("editText.changedLimitTextAfter") + "";
|
|
12750
|
+
let t10;
|
|
12615
12751
|
|
|
12616
12752
|
const block = {
|
|
12617
12753
|
c: function create() {
|
|
12618
12754
|
p0 = element("p");
|
|
12619
|
-
t0 = text(
|
|
12755
|
+
t0 = text(t0_value);
|
|
12756
|
+
t1 = space();
|
|
12620
12757
|
span0 = element("span");
|
|
12621
|
-
|
|
12622
|
-
|
|
12758
|
+
t2 = text(t2_value);
|
|
12759
|
+
t3 = space();
|
|
12623
12760
|
div = element("div");
|
|
12624
12761
|
p1 = element("p");
|
|
12625
12762
|
span1 = element("span");
|
|
12626
12763
|
span1.textContent = "i";
|
|
12627
12764
|
span2 = element("span");
|
|
12628
|
-
t4 = text("Your limit has been changed or increased: ");
|
|
12629
12765
|
t5 = text(t5_value);
|
|
12630
12766
|
t6 = space();
|
|
12631
|
-
t7 = text(
|
|
12632
|
-
t8 =
|
|
12633
|
-
|
|
12767
|
+
t7 = text(t7_value);
|
|
12768
|
+
t8 = space();
|
|
12769
|
+
t9 = text(/*playercurrency*/ ctx[4]);
|
|
12770
|
+
t10 = text(t10_value);
|
|
12771
|
+
add_location(span0, file$1, 521, 89, 24325);
|
|
12634
12772
|
attr_dev(p0, "class", "AccountEditLimitsExpiryDate");
|
|
12635
|
-
add_location(p0, file$1,
|
|
12773
|
+
add_location(p0, file$1, 521, 18, 24254);
|
|
12636
12774
|
attr_dev(span1, "class", "AccountEditLimitChangePeriodIcon");
|
|
12637
|
-
add_location(span1, file$1,
|
|
12638
|
-
add_location(span2, file$1,
|
|
12639
|
-
add_location(p1, file$1,
|
|
12775
|
+
add_location(span1, file$1, 523, 23, 24528);
|
|
12776
|
+
add_location(span2, file$1, 523, 78, 24583);
|
|
12777
|
+
add_location(p1, file$1, 523, 20, 24525);
|
|
12640
12778
|
attr_dev(div, "class", "AccountEditLimitsPeriodChangeContainer");
|
|
12641
|
-
add_location(div, file$1,
|
|
12779
|
+
add_location(div, file$1, 522, 18, 24452);
|
|
12642
12780
|
},
|
|
12643
12781
|
m: function mount(target, anchor) {
|
|
12644
12782
|
insert_dev(target, p0, anchor);
|
|
12645
12783
|
append_dev(p0, t0);
|
|
12784
|
+
append_dev(p0, t1);
|
|
12646
12785
|
append_dev(p0, span0);
|
|
12647
|
-
append_dev(span0,
|
|
12648
|
-
insert_dev(target,
|
|
12786
|
+
append_dev(span0, t2);
|
|
12787
|
+
insert_dev(target, t3, anchor);
|
|
12649
12788
|
insert_dev(target, div, anchor);
|
|
12650
12789
|
append_dev(div, p1);
|
|
12651
12790
|
append_dev(p1, span1);
|
|
12652
12791
|
append_dev(p1, span2);
|
|
12653
|
-
append_dev(span2, t4);
|
|
12654
12792
|
append_dev(span2, t5);
|
|
12655
12793
|
append_dev(span2, t6);
|
|
12656
12794
|
append_dev(span2, t7);
|
|
12657
12795
|
append_dev(span2, t8);
|
|
12796
|
+
append_dev(span2, t9);
|
|
12797
|
+
append_dev(span2, t10);
|
|
12658
12798
|
},
|
|
12659
12799
|
p: function update(ctx, dirty) {
|
|
12660
|
-
if (dirty[0] &
|
|
12800
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.expirationDate") + "")) set_data_dev(t0, t0_value);
|
|
12801
|
+
|
|
12802
|
+
if (dirty[0] & /*limitsdata*/ 1 && t2_value !== (t2_value = (/*limitsdata*/ ctx[0].expiryDate
|
|
12661
12803
|
? moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
|
|
12662
|
-
: "N/A") + "")) set_data_dev(
|
|
12804
|
+
: "N/A") + "")) set_data_dev(t2, t2_value);
|
|
12663
12805
|
|
|
12664
|
-
if (dirty[0] &
|
|
12806
|
+
if (dirty[0] & /*$_*/ 131072 && t5_value !== (t5_value = /*$_*/ ctx[17]("editText.changedLimitTextBefore") + "")) set_data_dev(t5, t5_value);
|
|
12807
|
+
|
|
12808
|
+
if (dirty[0] & /*limitsdata*/ 1 && t7_value !== (t7_value = (/*limitsdata*/ ctx[0].updateAmount > 0
|
|
12665
12809
|
? /*limitsdata*/ ctx[0].updateAmount
|
|
12666
|
-
: 0) + "")) set_data_dev(
|
|
12810
|
+
: 0) + "")) set_data_dev(t7, t7_value);
|
|
12667
12811
|
|
|
12668
|
-
if (dirty[0] & /*playercurrency*/
|
|
12812
|
+
if (dirty[0] & /*playercurrency*/ 16) set_data_dev(t9, /*playercurrency*/ ctx[4]);
|
|
12813
|
+
if (dirty[0] & /*$_*/ 131072 && t10_value !== (t10_value = /*$_*/ ctx[17]("editText.changedLimitTextAfter") + "")) set_data_dev(t10, t10_value);
|
|
12669
12814
|
},
|
|
12670
12815
|
d: function destroy(detaching) {
|
|
12671
12816
|
if (detaching) detach_dev(p0);
|
|
12672
|
-
if (detaching) detach_dev(
|
|
12817
|
+
if (detaching) detach_dev(t3);
|
|
12673
12818
|
if (detaching) detach_dev(div);
|
|
12674
12819
|
}
|
|
12675
12820
|
};
|
|
@@ -12678,17 +12823,17 @@
|
|
|
12678
12823
|
block,
|
|
12679
12824
|
id: create_if_block_10$1.name,
|
|
12680
12825
|
type: "if",
|
|
12681
|
-
source: "(
|
|
12826
|
+
source: "(521:16) {#if limitsUpdateData.isModified === true}",
|
|
12682
12827
|
ctx
|
|
12683
12828
|
});
|
|
12684
12829
|
|
|
12685
12830
|
return block;
|
|
12686
12831
|
}
|
|
12687
12832
|
|
|
12688
|
-
// (
|
|
12833
|
+
// (502:8) {#each storedData as savedData, index}
|
|
12689
12834
|
function create_each_block_2(ctx) {
|
|
12690
12835
|
let if_block_anchor;
|
|
12691
|
-
let if_block = /*limitsUpdateData*/ ctx[
|
|
12836
|
+
let if_block = /*limitsUpdateData*/ ctx[13].period === /*savedData*/ ctx[54].periodName && create_if_block_9$1(ctx);
|
|
12692
12837
|
|
|
12693
12838
|
const block = {
|
|
12694
12839
|
c: function create() {
|
|
@@ -12700,7 +12845,7 @@
|
|
|
12700
12845
|
insert_dev(target, if_block_anchor, anchor);
|
|
12701
12846
|
},
|
|
12702
12847
|
p: function update(ctx, dirty) {
|
|
12703
|
-
if (/*limitsUpdateData*/ ctx[
|
|
12848
|
+
if (/*limitsUpdateData*/ ctx[13].period === /*savedData*/ ctx[54].periodName) {
|
|
12704
12849
|
if (if_block) {
|
|
12705
12850
|
if_block.p(ctx, dirty);
|
|
12706
12851
|
} else {
|
|
@@ -12723,24 +12868,26 @@
|
|
|
12723
12868
|
block,
|
|
12724
12869
|
id: create_each_block_2.name,
|
|
12725
12870
|
type: "each",
|
|
12726
|
-
source: "(
|
|
12871
|
+
source: "(502:8) {#each storedData as savedData, index}",
|
|
12727
12872
|
ctx
|
|
12728
12873
|
});
|
|
12729
12874
|
|
|
12730
12875
|
return block;
|
|
12731
12876
|
}
|
|
12732
12877
|
|
|
12733
|
-
// (
|
|
12878
|
+
// (458:12) {#if selectData.period == storedData[index].periodName}
|
|
12734
12879
|
function create_if_block_2$1(ctx) {
|
|
12735
12880
|
let select;
|
|
12736
12881
|
let option;
|
|
12882
|
+
let t0_value = /*$_*/ ctx[17]("editText.noLimit") + "";
|
|
12883
|
+
let t0;
|
|
12737
12884
|
let select_disabled_value;
|
|
12738
12885
|
let t1;
|
|
12739
12886
|
let t2;
|
|
12740
12887
|
let if_block1_anchor;
|
|
12741
12888
|
let mounted;
|
|
12742
12889
|
let dispose;
|
|
12743
|
-
let each_value_1 = /*depositPredefinedValues*/ ctx[
|
|
12890
|
+
let each_value_1 = /*depositPredefinedValues*/ ctx[19][/*index*/ ctx[50]].values;
|
|
12744
12891
|
validate_each_argument(each_value_1);
|
|
12745
12892
|
let each_blocks = [];
|
|
12746
12893
|
|
|
@@ -12749,17 +12896,17 @@
|
|
|
12749
12896
|
}
|
|
12750
12897
|
|
|
12751
12898
|
function select_change_handler() {
|
|
12752
|
-
/*select_change_handler*/ ctx[
|
|
12899
|
+
/*select_change_handler*/ ctx[26].call(select, /*index*/ ctx[50]);
|
|
12753
12900
|
}
|
|
12754
12901
|
|
|
12755
|
-
let if_block0 = /*storedData*/ ctx[
|
|
12756
|
-
let if_block1 = /*selectData*/ ctx[
|
|
12902
|
+
let if_block0 = /*storedData*/ ctx[16][/*index*/ ctx[50]].amount === "Custom" && create_if_block_4$1(ctx);
|
|
12903
|
+
let if_block1 = /*selectData*/ ctx[48].isModified === true && create_if_block_3$1(ctx);
|
|
12757
12904
|
|
|
12758
12905
|
const block = {
|
|
12759
12906
|
c: function create() {
|
|
12760
12907
|
select = element("select");
|
|
12761
12908
|
option = element("option");
|
|
12762
|
-
|
|
12909
|
+
t0 = text(t0_value);
|
|
12763
12910
|
|
|
12764
12911
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
12765
12912
|
each_blocks[i].c();
|
|
@@ -12775,21 +12922,22 @@
|
|
|
12775
12922
|
option.disabled = true;
|
|
12776
12923
|
option.selected = true;
|
|
12777
12924
|
option.hidden = true;
|
|
12778
|
-
add_location(option, file$1,
|
|
12779
|
-
attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[
|
|
12780
|
-
select.disabled = select_disabled_value = /*selectData*/ ctx[
|
|
12781
|
-
if (/*storedData*/ ctx[
|
|
12782
|
-
add_location(select, file$1,
|
|
12925
|
+
add_location(option, file$1, 459, 16, 19727);
|
|
12926
|
+
attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[18] ? "TimeoutSelectMobile" : ""));
|
|
12927
|
+
select.disabled = select_disabled_value = /*selectData*/ ctx[48].isModified === true;
|
|
12928
|
+
if (/*storedData*/ ctx[16][/*index*/ ctx[50]].amount === void 0) add_render_callback(select_change_handler);
|
|
12929
|
+
add_location(select, file$1, 458, 14, 19471);
|
|
12783
12930
|
},
|
|
12784
12931
|
m: function mount(target, anchor) {
|
|
12785
12932
|
insert_dev(target, select, anchor);
|
|
12786
12933
|
append_dev(select, option);
|
|
12934
|
+
append_dev(option, t0);
|
|
12787
12935
|
|
|
12788
12936
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
12789
12937
|
each_blocks[i].m(select, null);
|
|
12790
12938
|
}
|
|
12791
12939
|
|
|
12792
|
-
select_option(select, /*storedData*/ ctx[
|
|
12940
|
+
select_option(select, /*storedData*/ ctx[16][/*index*/ ctx[50]].amount);
|
|
12793
12941
|
insert_dev(target, t1, anchor);
|
|
12794
12942
|
if (if_block0) if_block0.m(target, anchor);
|
|
12795
12943
|
insert_dev(target, t2, anchor);
|
|
@@ -12803,7 +12951,7 @@
|
|
|
12803
12951
|
select,
|
|
12804
12952
|
"change",
|
|
12805
12953
|
function () {
|
|
12806
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
12954
|
+
if (is_function(/*checkUserInputAmount*/ ctx[25](/*storedData*/ ctx[16][/*index*/ ctx[50]], /*index*/ ctx[50], false, /*updatedLimitValues*/ ctx[15]))) /*checkUserInputAmount*/ ctx[25](/*storedData*/ ctx[16][/*index*/ ctx[50]], /*index*/ ctx[50], false, /*updatedLimitValues*/ ctx[15]).apply(this, arguments);
|
|
12807
12955
|
},
|
|
12808
12956
|
false,
|
|
12809
12957
|
false,
|
|
@@ -12816,9 +12964,10 @@
|
|
|
12816
12964
|
},
|
|
12817
12965
|
p: function update(new_ctx, dirty) {
|
|
12818
12966
|
ctx = new_ctx;
|
|
12967
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.noLimit") + "")) set_data_dev(t0, t0_value);
|
|
12819
12968
|
|
|
12820
|
-
if (dirty[0] & /*depositPredefinedValues, limitname, playercurrency*/
|
|
12821
|
-
each_value_1 = /*depositPredefinedValues*/ ctx[
|
|
12969
|
+
if (dirty[0] & /*depositPredefinedValues, limitname, playercurrency*/ 524312) {
|
|
12970
|
+
each_value_1 = /*depositPredefinedValues*/ ctx[19][/*index*/ ctx[50]].values;
|
|
12822
12971
|
validate_each_argument(each_value_1);
|
|
12823
12972
|
let i;
|
|
12824
12973
|
|
|
@@ -12841,15 +12990,15 @@
|
|
|
12841
12990
|
each_blocks.length = each_value_1.length;
|
|
12842
12991
|
}
|
|
12843
12992
|
|
|
12844
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
12993
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && select_disabled_value !== (select_disabled_value = /*selectData*/ ctx[48].isModified === true)) {
|
|
12845
12994
|
prop_dev(select, "disabled", select_disabled_value);
|
|
12846
12995
|
}
|
|
12847
12996
|
|
|
12848
|
-
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/
|
|
12849
|
-
select_option(select, /*storedData*/ ctx[
|
|
12997
|
+
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 1114112) {
|
|
12998
|
+
select_option(select, /*storedData*/ ctx[16][/*index*/ ctx[50]].amount);
|
|
12850
12999
|
}
|
|
12851
13000
|
|
|
12852
|
-
if (/*storedData*/ ctx[
|
|
13001
|
+
if (/*storedData*/ ctx[16][/*index*/ ctx[50]].amount === "Custom") {
|
|
12853
13002
|
if (if_block0) {
|
|
12854
13003
|
if_block0.p(ctx, dirty);
|
|
12855
13004
|
} else {
|
|
@@ -12862,7 +13011,7 @@
|
|
|
12862
13011
|
if_block0 = null;
|
|
12863
13012
|
}
|
|
12864
13013
|
|
|
12865
|
-
if (/*selectData*/ ctx[
|
|
13014
|
+
if (/*selectData*/ ctx[48].isModified === true) {
|
|
12866
13015
|
if (if_block1) {
|
|
12867
13016
|
if_block1.p(ctx, dirty);
|
|
12868
13017
|
} else {
|
|
@@ -12892,17 +13041,17 @@
|
|
|
12892
13041
|
block,
|
|
12893
13042
|
id: create_if_block_2$1.name,
|
|
12894
13043
|
type: "if",
|
|
12895
|
-
source: "(
|
|
13044
|
+
source: "(458:12) {#if selectData.period == storedData[index].periodName}",
|
|
12896
13045
|
ctx
|
|
12897
13046
|
});
|
|
12898
13047
|
|
|
12899
13048
|
return block;
|
|
12900
13049
|
}
|
|
12901
13050
|
|
|
12902
|
-
// (
|
|
13051
|
+
// (462:66) {#if predefinedData !== "No limit" && predefinedData !== "Custom"}
|
|
12903
13052
|
function create_if_block_8$1(ctx) {
|
|
12904
|
-
let t_value = (/*limitname*/ ctx[
|
|
12905
|
-
? /*playercurrency*/ ctx[
|
|
13053
|
+
let t_value = (/*limitname*/ ctx[3] !== "Time Limit"
|
|
13054
|
+
? /*playercurrency*/ ctx[4]
|
|
12906
13055
|
: " minutes") + "";
|
|
12907
13056
|
|
|
12908
13057
|
let t;
|
|
@@ -12915,8 +13064,8 @@
|
|
|
12915
13064
|
insert_dev(target, t, anchor);
|
|
12916
13065
|
},
|
|
12917
13066
|
p: function update(ctx, dirty) {
|
|
12918
|
-
if (dirty[0] & /*limitname, playercurrency*/
|
|
12919
|
-
? /*playercurrency*/ ctx[
|
|
13067
|
+
if (dirty[0] & /*limitname, playercurrency*/ 24 && t_value !== (t_value = (/*limitname*/ ctx[3] !== "Time Limit"
|
|
13068
|
+
? /*playercurrency*/ ctx[4]
|
|
12920
13069
|
: " minutes") + "")) set_data_dev(t, t_value);
|
|
12921
13070
|
},
|
|
12922
13071
|
d: function destroy(detaching) {
|
|
@@ -12928,20 +13077,20 @@
|
|
|
12928
13077
|
block,
|
|
12929
13078
|
id: create_if_block_8$1.name,
|
|
12930
13079
|
type: "if",
|
|
12931
|
-
source: "(
|
|
13080
|
+
source: "(462:66) {#if predefinedData !== \\\"No limit\\\" && predefinedData !== \\\"Custom\\\"}",
|
|
12932
13081
|
ctx
|
|
12933
13082
|
});
|
|
12934
13083
|
|
|
12935
13084
|
return block;
|
|
12936
13085
|
}
|
|
12937
13086
|
|
|
12938
|
-
// (
|
|
13087
|
+
// (461:16) {#each depositPredefinedValues[index].values as predefinedData}
|
|
12939
13088
|
function create_each_block_1$1(ctx) {
|
|
12940
13089
|
let option;
|
|
12941
|
-
let t0_value = /*predefinedData*/ ctx[
|
|
13090
|
+
let t0_value = /*predefinedData*/ ctx[51] + "";
|
|
12942
13091
|
let t0;
|
|
12943
13092
|
let t1;
|
|
12944
|
-
let if_block = /*predefinedData*/ ctx[
|
|
13093
|
+
let if_block = /*predefinedData*/ ctx[51] !== "No limit" && /*predefinedData*/ ctx[51] !== "Custom" && create_if_block_8$1(ctx);
|
|
12945
13094
|
|
|
12946
13095
|
const block = {
|
|
12947
13096
|
c: function create() {
|
|
@@ -12949,9 +13098,9 @@
|
|
|
12949
13098
|
t0 = text(t0_value);
|
|
12950
13099
|
t1 = space();
|
|
12951
13100
|
if (if_block) if_block.c();
|
|
12952
|
-
option.__value = /*predefinedData*/ ctx[
|
|
13101
|
+
option.__value = /*predefinedData*/ ctx[51];
|
|
12953
13102
|
option.value = option.__value;
|
|
12954
|
-
add_location(option, file$1,
|
|
13103
|
+
add_location(option, file$1, 461, 18, 19901);
|
|
12955
13104
|
},
|
|
12956
13105
|
m: function mount(target, anchor) {
|
|
12957
13106
|
insert_dev(target, option, anchor);
|
|
@@ -12960,7 +13109,7 @@
|
|
|
12960
13109
|
if (if_block) if_block.m(option, null);
|
|
12961
13110
|
},
|
|
12962
13111
|
p: function update(ctx, dirty) {
|
|
12963
|
-
if (/*predefinedData*/ ctx[
|
|
13112
|
+
if (/*predefinedData*/ ctx[51] !== "No limit" && /*predefinedData*/ ctx[51] !== "Custom") if_block.p(ctx, dirty);
|
|
12964
13113
|
},
|
|
12965
13114
|
d: function destroy(detaching) {
|
|
12966
13115
|
if (detaching) detach_dev(option);
|
|
@@ -12972,19 +13121,19 @@
|
|
|
12972
13121
|
block,
|
|
12973
13122
|
id: create_each_block_1$1.name,
|
|
12974
13123
|
type: "each",
|
|
12975
|
-
source: "(
|
|
13124
|
+
source: "(461:16) {#each depositPredefinedValues[index].values as predefinedData}",
|
|
12976
13125
|
ctx
|
|
12977
13126
|
});
|
|
12978
13127
|
|
|
12979
13128
|
return block;
|
|
12980
13129
|
}
|
|
12981
13130
|
|
|
12982
|
-
// (
|
|
13131
|
+
// (465:14) {#if storedData[index].amount === "Custom"}
|
|
12983
13132
|
function create_if_block_4$1(ctx) {
|
|
12984
13133
|
let if_block_anchor;
|
|
12985
13134
|
|
|
12986
13135
|
function select_block_type_2(ctx, dirty) {
|
|
12987
|
-
if (/*limitname*/ ctx[
|
|
13136
|
+
if (/*limitname*/ ctx[3] === "Deposit Limit") return create_if_block_5$1;
|
|
12988
13137
|
return create_else_block$1;
|
|
12989
13138
|
}
|
|
12990
13139
|
|
|
@@ -13023,14 +13172,14 @@
|
|
|
13023
13172
|
block,
|
|
13024
13173
|
id: create_if_block_4$1.name,
|
|
13025
13174
|
type: "if",
|
|
13026
|
-
source: "(
|
|
13175
|
+
source: "(465:14) {#if storedData[index].amount === \\\"Custom\\\"}",
|
|
13027
13176
|
ctx
|
|
13028
13177
|
});
|
|
13029
13178
|
|
|
13030
13179
|
return block;
|
|
13031
13180
|
}
|
|
13032
13181
|
|
|
13033
|
-
// (
|
|
13182
|
+
// (473:16) {:else}
|
|
13034
13183
|
function create_else_block$1(ctx) {
|
|
13035
13184
|
let input;
|
|
13036
13185
|
let input_disabled_value;
|
|
@@ -13040,10 +13189,10 @@
|
|
|
13040
13189
|
let dispose;
|
|
13041
13190
|
|
|
13042
13191
|
function input_input_handler_1() {
|
|
13043
|
-
/*input_input_handler_1*/ ctx[
|
|
13192
|
+
/*input_input_handler_1*/ ctx[28].call(input, /*index*/ ctx[50]);
|
|
13044
13193
|
}
|
|
13045
13194
|
|
|
13046
|
-
let if_block = /*invalidIndexes*/ ctx[
|
|
13195
|
+
let if_block = /*invalidIndexes*/ ctx[11][/*index*/ ctx[50]] == 1 && create_if_block_7$1(ctx);
|
|
13047
13196
|
|
|
13048
13197
|
const block = {
|
|
13049
13198
|
c: function create() {
|
|
@@ -13053,14 +13202,14 @@
|
|
|
13053
13202
|
if (if_block) if_block.c();
|
|
13054
13203
|
attr_dev(input, "type", "number");
|
|
13055
13204
|
attr_dev(input, "class", "AccountEditField");
|
|
13056
|
-
input.disabled = input_disabled_value = /*selectData*/ ctx[
|
|
13057
|
-
add_location(input, file$1,
|
|
13205
|
+
input.disabled = input_disabled_value = /*selectData*/ ctx[48].isModified === true;
|
|
13206
|
+
add_location(input, file$1, 473, 18, 20762);
|
|
13058
13207
|
attr_dev(p, "class", "AccountEditWarningText");
|
|
13059
|
-
add_location(p, file$1,
|
|
13208
|
+
add_location(p, file$1, 474, 18, 20992);
|
|
13060
13209
|
},
|
|
13061
13210
|
m: function mount(target, anchor) {
|
|
13062
13211
|
insert_dev(target, input, anchor);
|
|
13063
|
-
set_input_value(input, /*storedData*/ ctx[
|
|
13212
|
+
set_input_value(input, /*storedData*/ ctx[16][/*index*/ ctx[50]].value);
|
|
13064
13213
|
insert_dev(target, t, anchor);
|
|
13065
13214
|
insert_dev(target, p, anchor);
|
|
13066
13215
|
if (if_block) if_block.m(p, null);
|
|
@@ -13071,7 +13220,7 @@
|
|
|
13071
13220
|
input,
|
|
13072
13221
|
"keyup",
|
|
13073
13222
|
function () {
|
|
13074
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
13223
|
+
if (is_function(/*checkUserInputAmount*/ ctx[25](/*storedData*/ ctx[16][/*index*/ ctx[50]], /*index*/ ctx[50], true, /*updatedLimitValues*/ ctx[15]))) /*checkUserInputAmount*/ ctx[25](/*storedData*/ ctx[16][/*index*/ ctx[50]], /*index*/ ctx[50], true, /*updatedLimitValues*/ ctx[15]).apply(this, arguments);
|
|
13075
13224
|
},
|
|
13076
13225
|
false,
|
|
13077
13226
|
false,
|
|
@@ -13086,15 +13235,15 @@
|
|
|
13086
13235
|
p: function update(new_ctx, dirty) {
|
|
13087
13236
|
ctx = new_ctx;
|
|
13088
13237
|
|
|
13089
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
13238
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && input_disabled_value !== (input_disabled_value = /*selectData*/ ctx[48].isModified === true)) {
|
|
13090
13239
|
prop_dev(input, "disabled", input_disabled_value);
|
|
13091
13240
|
}
|
|
13092
13241
|
|
|
13093
|
-
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/
|
|
13094
|
-
set_input_value(input, /*storedData*/ ctx[
|
|
13242
|
+
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 1114112 && to_number(input.value) !== /*storedData*/ ctx[16][/*index*/ ctx[50]].value) {
|
|
13243
|
+
set_input_value(input, /*storedData*/ ctx[16][/*index*/ ctx[50]].value);
|
|
13095
13244
|
}
|
|
13096
13245
|
|
|
13097
|
-
if (/*invalidIndexes*/ ctx[
|
|
13246
|
+
if (/*invalidIndexes*/ ctx[11][/*index*/ ctx[50]] == 1) {
|
|
13098
13247
|
if (if_block) {
|
|
13099
13248
|
if_block.p(ctx, dirty);
|
|
13100
13249
|
} else {
|
|
@@ -13121,14 +13270,14 @@
|
|
|
13121
13270
|
block,
|
|
13122
13271
|
id: create_else_block$1.name,
|
|
13123
13272
|
type: "else",
|
|
13124
|
-
source: "(
|
|
13273
|
+
source: "(473:16) {:else}",
|
|
13125
13274
|
ctx
|
|
13126
13275
|
});
|
|
13127
13276
|
|
|
13128
13277
|
return block;
|
|
13129
13278
|
}
|
|
13130
13279
|
|
|
13131
|
-
// (
|
|
13280
|
+
// (466:16) {#if limitname === "Deposit Limit"}
|
|
13132
13281
|
function create_if_block_5$1(ctx) {
|
|
13133
13282
|
let input;
|
|
13134
13283
|
let input_disabled_value;
|
|
@@ -13138,10 +13287,10 @@
|
|
|
13138
13287
|
let dispose;
|
|
13139
13288
|
|
|
13140
13289
|
function input_input_handler() {
|
|
13141
|
-
/*input_input_handler*/ ctx[
|
|
13290
|
+
/*input_input_handler*/ ctx[27].call(input, /*index*/ ctx[50]);
|
|
13142
13291
|
}
|
|
13143
13292
|
|
|
13144
|
-
let if_block = /*invalidIndexes*/ ctx[
|
|
13293
|
+
let if_block = /*invalidIndexes*/ ctx[11][/*index*/ ctx[50]] == 1 && create_if_block_6$1(ctx);
|
|
13145
13294
|
|
|
13146
13295
|
const block = {
|
|
13147
13296
|
c: function create() {
|
|
@@ -13151,14 +13300,14 @@
|
|
|
13151
13300
|
if (if_block) if_block.c();
|
|
13152
13301
|
attr_dev(input, "type", "number");
|
|
13153
13302
|
attr_dev(input, "class", "AccountEditField");
|
|
13154
|
-
input.disabled = input_disabled_value = /*selectData*/ ctx[
|
|
13155
|
-
add_location(input, file$1,
|
|
13303
|
+
input.disabled = input_disabled_value = /*selectData*/ ctx[48].isModified === true;
|
|
13304
|
+
add_location(input, file$1, 466, 18, 20264);
|
|
13156
13305
|
attr_dev(p, "class", "AccountEditWarningText");
|
|
13157
|
-
add_location(p, file$1,
|
|
13306
|
+
add_location(p, file$1, 467, 18, 20495);
|
|
13158
13307
|
},
|
|
13159
13308
|
m: function mount(target, anchor) {
|
|
13160
13309
|
insert_dev(target, input, anchor);
|
|
13161
|
-
set_input_value(input, /*storedData*/ ctx[
|
|
13310
|
+
set_input_value(input, /*storedData*/ ctx[16][/*index*/ ctx[50]].value);
|
|
13162
13311
|
insert_dev(target, t, anchor);
|
|
13163
13312
|
insert_dev(target, p, anchor);
|
|
13164
13313
|
if (if_block) if_block.m(p, null);
|
|
@@ -13169,7 +13318,7 @@
|
|
|
13169
13318
|
input,
|
|
13170
13319
|
"keyup",
|
|
13171
13320
|
function () {
|
|
13172
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
13321
|
+
if (is_function(/*checkUserInputAmount*/ ctx[25](/*storedData*/ ctx[16][/*index*/ ctx[50]], /*index*/ ctx[50], false, /*updatedLimitValues*/ ctx[15]))) /*checkUserInputAmount*/ ctx[25](/*storedData*/ ctx[16][/*index*/ ctx[50]], /*index*/ ctx[50], false, /*updatedLimitValues*/ ctx[15]).apply(this, arguments);
|
|
13173
13322
|
},
|
|
13174
13323
|
false,
|
|
13175
13324
|
false,
|
|
@@ -13184,16 +13333,18 @@
|
|
|
13184
13333
|
p: function update(new_ctx, dirty) {
|
|
13185
13334
|
ctx = new_ctx;
|
|
13186
13335
|
|
|
13187
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
13336
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && input_disabled_value !== (input_disabled_value = /*selectData*/ ctx[48].isModified === true)) {
|
|
13188
13337
|
prop_dev(input, "disabled", input_disabled_value);
|
|
13189
13338
|
}
|
|
13190
13339
|
|
|
13191
|
-
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/
|
|
13192
|
-
set_input_value(input, /*storedData*/ ctx[
|
|
13340
|
+
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 1114112 && to_number(input.value) !== /*storedData*/ ctx[16][/*index*/ ctx[50]].value) {
|
|
13341
|
+
set_input_value(input, /*storedData*/ ctx[16][/*index*/ ctx[50]].value);
|
|
13193
13342
|
}
|
|
13194
13343
|
|
|
13195
|
-
if (/*invalidIndexes*/ ctx[
|
|
13196
|
-
if (if_block)
|
|
13344
|
+
if (/*invalidIndexes*/ ctx[11][/*index*/ ctx[50]] == 1) {
|
|
13345
|
+
if (if_block) {
|
|
13346
|
+
if_block.p(ctx, dirty);
|
|
13347
|
+
} else {
|
|
13197
13348
|
if_block = create_if_block_6$1(ctx);
|
|
13198
13349
|
if_block.c();
|
|
13199
13350
|
if_block.m(p, null);
|
|
@@ -13217,44 +13368,44 @@
|
|
|
13217
13368
|
block,
|
|
13218
13369
|
id: create_if_block_5$1.name,
|
|
13219
13370
|
type: "if",
|
|
13220
|
-
source: "(
|
|
13371
|
+
source: "(466:16) {#if limitname === \\\"Deposit Limit\\\"}",
|
|
13221
13372
|
ctx
|
|
13222
13373
|
});
|
|
13223
13374
|
|
|
13224
13375
|
return block;
|
|
13225
13376
|
}
|
|
13226
13377
|
|
|
13227
|
-
// (
|
|
13378
|
+
// (476:20) {#if invalidIndexes[index] == 1}
|
|
13228
13379
|
function create_if_block_7$1(ctx) {
|
|
13229
13380
|
let p;
|
|
13230
|
-
|
|
13231
|
-
let
|
|
13232
|
-
|
|
13233
|
-
|
|
13234
|
-
|
|
13381
|
+
|
|
13382
|
+
let t_value = /*$_*/ ctx[17]("editText.invalidInputMessageTime", {
|
|
13383
|
+
values: {
|
|
13384
|
+
minTime: /*minTimeValue*/ ctx[7],
|
|
13385
|
+
maxTime: /*maxTimeValue*/ ctx[8]
|
|
13386
|
+
}
|
|
13387
|
+
}) + "";
|
|
13388
|
+
|
|
13389
|
+
let t;
|
|
13235
13390
|
|
|
13236
13391
|
const block = {
|
|
13237
13392
|
c: function create() {
|
|
13238
13393
|
p = element("p");
|
|
13239
|
-
|
|
13240
|
-
t1 = text(/*minTimeValue*/ ctx[9]);
|
|
13241
|
-
t2 = text(" and below ");
|
|
13242
|
-
t3 = text(/*maxTimeValue*/ ctx[10]);
|
|
13243
|
-
t4 = text(" minutes.");
|
|
13394
|
+
t = text(t_value);
|
|
13244
13395
|
attr_dev(p, "class", "InvalidInput");
|
|
13245
|
-
add_location(p, file$1,
|
|
13396
|
+
add_location(p, file$1, 476, 22, 21102);
|
|
13246
13397
|
},
|
|
13247
13398
|
m: function mount(target, anchor) {
|
|
13248
13399
|
insert_dev(target, p, anchor);
|
|
13249
|
-
append_dev(p,
|
|
13250
|
-
append_dev(p, t1);
|
|
13251
|
-
append_dev(p, t2);
|
|
13252
|
-
append_dev(p, t3);
|
|
13253
|
-
append_dev(p, t4);
|
|
13400
|
+
append_dev(p, t);
|
|
13254
13401
|
},
|
|
13255
13402
|
p: function update(ctx, dirty) {
|
|
13256
|
-
if (dirty[0] &
|
|
13257
|
-
|
|
13403
|
+
if (dirty[0] & /*$_, minTimeValue, maxTimeValue*/ 131456 && t_value !== (t_value = /*$_*/ ctx[17]("editText.invalidInputMessageTime", {
|
|
13404
|
+
values: {
|
|
13405
|
+
minTime: /*minTimeValue*/ ctx[7],
|
|
13406
|
+
maxTime: /*maxTimeValue*/ ctx[8]
|
|
13407
|
+
}
|
|
13408
|
+
}) + "")) set_data_dev(t, t_value);
|
|
13258
13409
|
},
|
|
13259
13410
|
d: function destroy(detaching) {
|
|
13260
13411
|
if (detaching) detach_dev(p);
|
|
@@ -13265,26 +13416,32 @@
|
|
|
13265
13416
|
block,
|
|
13266
13417
|
id: create_if_block_7$1.name,
|
|
13267
13418
|
type: "if",
|
|
13268
|
-
source: "(
|
|
13419
|
+
source: "(476:20) {#if invalidIndexes[index] == 1}",
|
|
13269
13420
|
ctx
|
|
13270
13421
|
});
|
|
13271
13422
|
|
|
13272
13423
|
return block;
|
|
13273
13424
|
}
|
|
13274
13425
|
|
|
13275
|
-
// (
|
|
13426
|
+
// (469:20) {#if invalidIndexes[index] == 1}
|
|
13276
13427
|
function create_if_block_6$1(ctx) {
|
|
13277
13428
|
let p;
|
|
13429
|
+
let t_value = /*$_*/ ctx[17]("editText.invalidInputMessageLimit") + "";
|
|
13430
|
+
let t;
|
|
13278
13431
|
|
|
13279
13432
|
const block = {
|
|
13280
13433
|
c: function create() {
|
|
13281
13434
|
p = element("p");
|
|
13282
|
-
|
|
13435
|
+
t = text(t_value);
|
|
13283
13436
|
attr_dev(p, "class", "InvalidInput");
|
|
13284
|
-
add_location(p, file$1,
|
|
13437
|
+
add_location(p, file$1, 469, 18, 20601);
|
|
13285
13438
|
},
|
|
13286
13439
|
m: function mount(target, anchor) {
|
|
13287
13440
|
insert_dev(target, p, anchor);
|
|
13441
|
+
append_dev(p, t);
|
|
13442
|
+
},
|
|
13443
|
+
p: function update(ctx, dirty) {
|
|
13444
|
+
if (dirty[0] & /*$_*/ 131072 && t_value !== (t_value = /*$_*/ ctx[17]("editText.invalidInputMessageLimit") + "")) set_data_dev(t, t_value);
|
|
13288
13445
|
},
|
|
13289
13446
|
d: function destroy(detaching) {
|
|
13290
13447
|
if (detaching) detach_dev(p);
|
|
@@ -13295,104 +13452,119 @@
|
|
|
13295
13452
|
block,
|
|
13296
13453
|
id: create_if_block_6$1.name,
|
|
13297
13454
|
type: "if",
|
|
13298
|
-
source: "(
|
|
13455
|
+
source: "(469:20) {#if invalidIndexes[index] == 1}",
|
|
13299
13456
|
ctx
|
|
13300
13457
|
});
|
|
13301
13458
|
|
|
13302
13459
|
return block;
|
|
13303
13460
|
}
|
|
13304
13461
|
|
|
13305
|
-
// (
|
|
13462
|
+
// (482:14) {#if selectData.isModified === true}
|
|
13306
13463
|
function create_if_block_3$1(ctx) {
|
|
13307
13464
|
let p0;
|
|
13465
|
+
let t0_value = /*$_*/ ctx[17]("editText.expirationDate") + "";
|
|
13308
13466
|
let t0;
|
|
13467
|
+
let t1;
|
|
13309
13468
|
let span0;
|
|
13310
13469
|
|
|
13311
|
-
let
|
|
13312
|
-
? moment(/*selectData*/ ctx[
|
|
13470
|
+
let t2_value = (/*selectData*/ ctx[48].expiryDate
|
|
13471
|
+
? moment(/*selectData*/ ctx[48].expiryDate).format("D/M/YYYY - h:mm A")
|
|
13313
13472
|
: "N/A") + "";
|
|
13314
13473
|
|
|
13315
|
-
let t1;
|
|
13316
13474
|
let t2;
|
|
13475
|
+
let t3;
|
|
13317
13476
|
let div;
|
|
13318
13477
|
let p1;
|
|
13319
13478
|
let span1;
|
|
13320
13479
|
let span2;
|
|
13321
|
-
let
|
|
13322
|
-
|
|
13323
|
-
let t5_value = (/*selectData*/ ctx[51].updateAmount > 0
|
|
13324
|
-
? /*selectData*/ ctx[51].updateAmount
|
|
13325
|
-
: 0) + "";
|
|
13326
|
-
|
|
13480
|
+
let t5_value = /*$_*/ ctx[17]("editText.changedLimitTextBefore") + "";
|
|
13327
13481
|
let t5;
|
|
13328
13482
|
let t6;
|
|
13329
13483
|
|
|
13330
|
-
let t7_value = (/*selectData*/ ctx[
|
|
13331
|
-
?
|
|
13332
|
-
:
|
|
13484
|
+
let t7_value = (/*selectData*/ ctx[48].updateAmount > 0
|
|
13485
|
+
? /*selectData*/ ctx[48].updateAmount
|
|
13486
|
+
: 0) + "";
|
|
13333
13487
|
|
|
13334
13488
|
let t7;
|
|
13335
13489
|
let t8;
|
|
13336
13490
|
|
|
13491
|
+
let t9_value = (/*selectData*/ ctx[48].minutes !== undefined
|
|
13492
|
+
? " minutes"
|
|
13493
|
+
: /*playercurrency*/ ctx[4]) + "";
|
|
13494
|
+
|
|
13495
|
+
let t9;
|
|
13496
|
+
let t10_value = /*$_*/ ctx[17]("editText.changedLimitTextAfter") + "";
|
|
13497
|
+
let t10;
|
|
13498
|
+
|
|
13337
13499
|
const block = {
|
|
13338
13500
|
c: function create() {
|
|
13339
13501
|
p0 = element("p");
|
|
13340
|
-
t0 = text(
|
|
13502
|
+
t0 = text(t0_value);
|
|
13503
|
+
t1 = space();
|
|
13341
13504
|
span0 = element("span");
|
|
13342
|
-
|
|
13343
|
-
|
|
13505
|
+
t2 = text(t2_value);
|
|
13506
|
+
t3 = space();
|
|
13344
13507
|
div = element("div");
|
|
13345
13508
|
p1 = element("p");
|
|
13346
13509
|
span1 = element("span");
|
|
13347
13510
|
span1.textContent = "i";
|
|
13348
13511
|
span2 = element("span");
|
|
13349
|
-
t4 = text("Your limit has been changed or increased: ");
|
|
13350
13512
|
t5 = text(t5_value);
|
|
13351
13513
|
t6 = space();
|
|
13352
13514
|
t7 = text(t7_value);
|
|
13353
|
-
t8 =
|
|
13354
|
-
|
|
13515
|
+
t8 = space();
|
|
13516
|
+
t9 = text(t9_value);
|
|
13517
|
+
t10 = text(t10_value);
|
|
13518
|
+
add_location(span0, file$1, 482, 87, 21460);
|
|
13355
13519
|
attr_dev(p0, "class", "AccountEditLimitsExpiryDate");
|
|
13356
|
-
add_location(p0, file$1,
|
|
13520
|
+
add_location(p0, file$1, 482, 16, 21389);
|
|
13357
13521
|
attr_dev(span1, "class", "AccountEditLimitChangePeriodIcon");
|
|
13358
|
-
add_location(span1, file$1,
|
|
13359
|
-
add_location(span2, file$1,
|
|
13360
|
-
add_location(p1, file$1,
|
|
13522
|
+
add_location(span1, file$1, 484, 19, 21657);
|
|
13523
|
+
add_location(span2, file$1, 484, 74, 21712);
|
|
13524
|
+
add_location(p1, file$1, 484, 16, 21654);
|
|
13361
13525
|
attr_dev(div, "class", "AccountEditLimitsPeriodChangeContainer");
|
|
13362
|
-
add_location(div, file$1,
|
|
13526
|
+
add_location(div, file$1, 483, 16, 21585);
|
|
13363
13527
|
},
|
|
13364
13528
|
m: function mount(target, anchor) {
|
|
13365
13529
|
insert_dev(target, p0, anchor);
|
|
13366
13530
|
append_dev(p0, t0);
|
|
13531
|
+
append_dev(p0, t1);
|
|
13367
13532
|
append_dev(p0, span0);
|
|
13368
|
-
append_dev(span0,
|
|
13369
|
-
insert_dev(target,
|
|
13533
|
+
append_dev(span0, t2);
|
|
13534
|
+
insert_dev(target, t3, anchor);
|
|
13370
13535
|
insert_dev(target, div, anchor);
|
|
13371
13536
|
append_dev(div, p1);
|
|
13372
13537
|
append_dev(p1, span1);
|
|
13373
13538
|
append_dev(p1, span2);
|
|
13374
|
-
append_dev(span2, t4);
|
|
13375
13539
|
append_dev(span2, t5);
|
|
13376
13540
|
append_dev(span2, t6);
|
|
13377
13541
|
append_dev(span2, t7);
|
|
13378
13542
|
append_dev(span2, t8);
|
|
13543
|
+
append_dev(span2, t9);
|
|
13544
|
+
append_dev(span2, t10);
|
|
13379
13545
|
},
|
|
13380
13546
|
p: function update(ctx, dirty) {
|
|
13381
|
-
if (dirty[0] &
|
|
13382
|
-
|
|
13383
|
-
|
|
13547
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.expirationDate") + "")) set_data_dev(t0, t0_value);
|
|
13548
|
+
|
|
13549
|
+
if (dirty[0] & /*limitsUpdateData*/ 8192 && t2_value !== (t2_value = (/*selectData*/ ctx[48].expiryDate
|
|
13550
|
+
? moment(/*selectData*/ ctx[48].expiryDate).format("D/M/YYYY - h:mm A")
|
|
13551
|
+
: "N/A") + "")) set_data_dev(t2, t2_value);
|
|
13552
|
+
|
|
13553
|
+
if (dirty[0] & /*$_*/ 131072 && t5_value !== (t5_value = /*$_*/ ctx[17]("editText.changedLimitTextBefore") + "")) set_data_dev(t5, t5_value);
|
|
13384
13554
|
|
|
13385
|
-
if (dirty[0] & /*limitsUpdateData*/
|
|
13386
|
-
? /*selectData*/ ctx[
|
|
13387
|
-
: 0) + "")) set_data_dev(
|
|
13555
|
+
if (dirty[0] & /*limitsUpdateData*/ 8192 && t7_value !== (t7_value = (/*selectData*/ ctx[48].updateAmount > 0
|
|
13556
|
+
? /*selectData*/ ctx[48].updateAmount
|
|
13557
|
+
: 0) + "")) set_data_dev(t7, t7_value);
|
|
13388
13558
|
|
|
13389
|
-
if (dirty[0] & /*limitsUpdateData, playercurrency*/
|
|
13559
|
+
if (dirty[0] & /*limitsUpdateData, playercurrency*/ 8208 && t9_value !== (t9_value = (/*selectData*/ ctx[48].minutes !== undefined
|
|
13390
13560
|
? " minutes"
|
|
13391
|
-
: /*playercurrency*/ ctx[
|
|
13561
|
+
: /*playercurrency*/ ctx[4]) + "")) set_data_dev(t9, t9_value);
|
|
13562
|
+
|
|
13563
|
+
if (dirty[0] & /*$_*/ 131072 && t10_value !== (t10_value = /*$_*/ ctx[17]("editText.changedLimitTextAfter") + "")) set_data_dev(t10, t10_value);
|
|
13392
13564
|
},
|
|
13393
13565
|
d: function destroy(detaching) {
|
|
13394
13566
|
if (detaching) detach_dev(p0);
|
|
13395
|
-
if (detaching) detach_dev(
|
|
13567
|
+
if (detaching) detach_dev(t3);
|
|
13396
13568
|
if (detaching) detach_dev(div);
|
|
13397
13569
|
}
|
|
13398
13570
|
};
|
|
@@ -13401,22 +13573,22 @@
|
|
|
13401
13573
|
block,
|
|
13402
13574
|
id: create_if_block_3$1.name,
|
|
13403
13575
|
type: "if",
|
|
13404
|
-
source: "(
|
|
13576
|
+
source: "(482:14) {#if selectData.isModified === true}",
|
|
13405
13577
|
ctx
|
|
13406
13578
|
});
|
|
13407
13579
|
|
|
13408
13580
|
return block;
|
|
13409
13581
|
}
|
|
13410
13582
|
|
|
13411
|
-
// (
|
|
13583
|
+
// (455:8) {#each limitsUpdateData as selectData, index}
|
|
13412
13584
|
function create_each_block$1(ctx) {
|
|
13413
13585
|
let div;
|
|
13414
13586
|
let p;
|
|
13415
|
-
let t0_value = /*selectData*/ ctx[
|
|
13587
|
+
let t0_value = /*selectData*/ ctx[48].period + "";
|
|
13416
13588
|
let t0;
|
|
13417
13589
|
let t1;
|
|
13418
13590
|
let t2;
|
|
13419
|
-
let if_block = /*selectData*/ ctx[
|
|
13591
|
+
let if_block = /*selectData*/ ctx[48].period == /*storedData*/ ctx[16][/*index*/ ctx[50]].periodName && create_if_block_2$1(ctx);
|
|
13420
13592
|
|
|
13421
13593
|
const block = {
|
|
13422
13594
|
c: function create() {
|
|
@@ -13427,9 +13599,9 @@
|
|
|
13427
13599
|
if (if_block) if_block.c();
|
|
13428
13600
|
t2 = space();
|
|
13429
13601
|
attr_dev(p, "class", "AccountEditLimitsTitle");
|
|
13430
|
-
add_location(p, file$1,
|
|
13602
|
+
add_location(p, file$1, 456, 12, 19331);
|
|
13431
13603
|
attr_dev(div, "class", "AccountEditLimitsBox");
|
|
13432
|
-
add_location(div, file$1,
|
|
13604
|
+
add_location(div, file$1, 455, 10, 19284);
|
|
13433
13605
|
},
|
|
13434
13606
|
m: function mount(target, anchor) {
|
|
13435
13607
|
insert_dev(target, div, anchor);
|
|
@@ -13440,9 +13612,9 @@
|
|
|
13440
13612
|
append_dev(div, t2);
|
|
13441
13613
|
},
|
|
13442
13614
|
p: function update(ctx, dirty) {
|
|
13443
|
-
if (dirty[0] & /*limitsUpdateData*/
|
|
13615
|
+
if (dirty[0] & /*limitsUpdateData*/ 8192 && t0_value !== (t0_value = /*selectData*/ ctx[48].period + "")) set_data_dev(t0, t0_value);
|
|
13444
13616
|
|
|
13445
|
-
if (/*selectData*/ ctx[
|
|
13617
|
+
if (/*selectData*/ ctx[48].period == /*storedData*/ ctx[16][/*index*/ ctx[50]].periodName) {
|
|
13446
13618
|
if (if_block) {
|
|
13447
13619
|
if_block.p(ctx, dirty);
|
|
13448
13620
|
} else {
|
|
@@ -13465,7 +13637,7 @@
|
|
|
13465
13637
|
block,
|
|
13466
13638
|
id: create_each_block$1.name,
|
|
13467
13639
|
type: "each",
|
|
13468
|
-
source: "(
|
|
13640
|
+
source: "(455:8) {#each limitsUpdateData as selectData, index}",
|
|
13469
13641
|
ctx
|
|
13470
13642
|
});
|
|
13471
13643
|
|
|
@@ -13480,10 +13652,12 @@
|
|
|
13480
13652
|
let path;
|
|
13481
13653
|
let t0;
|
|
13482
13654
|
let span0;
|
|
13655
|
+
let t1_value = /*$_*/ ctx[17]("editText.back") + "";
|
|
13656
|
+
let t1;
|
|
13483
13657
|
let t2;
|
|
13484
13658
|
let div2;
|
|
13485
13659
|
let h6;
|
|
13486
|
-
let t3_value = (/*limitsdata*/ ctx[0] ? /*limitname*/ ctx[
|
|
13660
|
+
let t3_value = (/*limitsdata*/ ctx[0] ? /*limitname*/ ctx[3] : "") + "";
|
|
13487
13661
|
let t3;
|
|
13488
13662
|
let t4;
|
|
13489
13663
|
let div1;
|
|
@@ -13496,6 +13670,7 @@
|
|
|
13496
13670
|
let t10;
|
|
13497
13671
|
let div3;
|
|
13498
13672
|
let button;
|
|
13673
|
+
let t11_value = /*$_*/ ctx[17]("editText.save") + "";
|
|
13499
13674
|
let t11;
|
|
13500
13675
|
let button_class_value;
|
|
13501
13676
|
let button_disabled_value;
|
|
@@ -13504,9 +13679,9 @@
|
|
|
13504
13679
|
let player_account_gaming_limits_confirmation_modal;
|
|
13505
13680
|
let mounted;
|
|
13506
13681
|
let dispose;
|
|
13507
|
-
let if_block0 = /*showsuccessnotification*/ ctx[
|
|
13508
|
-
let if_block1 = /*showdeletenotification*/ ctx[
|
|
13509
|
-
let if_block2 = /*showLimits*/ ctx[
|
|
13682
|
+
let if_block0 = /*showsuccessnotification*/ ctx[1] && create_if_block_17(ctx);
|
|
13683
|
+
let if_block1 = /*showdeletenotification*/ ctx[2] && create_if_block_14(ctx);
|
|
13684
|
+
let if_block2 = /*showLimits*/ ctx[6] && create_if_block$1(ctx);
|
|
13510
13685
|
|
|
13511
13686
|
const block = {
|
|
13512
13687
|
c: function create() {
|
|
@@ -13517,7 +13692,7 @@
|
|
|
13517
13692
|
path = svg_element("path");
|
|
13518
13693
|
t0 = space();
|
|
13519
13694
|
span0 = element("span");
|
|
13520
|
-
|
|
13695
|
+
t1 = text(t1_value);
|
|
13521
13696
|
t2 = space();
|
|
13522
13697
|
div2 = element("div");
|
|
13523
13698
|
h6 = element("h6");
|
|
@@ -13537,15 +13712,15 @@
|
|
|
13537
13712
|
t10 = space();
|
|
13538
13713
|
div3 = element("div");
|
|
13539
13714
|
button = element("button");
|
|
13540
|
-
t11 = text(
|
|
13715
|
+
t11 = text(t11_value);
|
|
13541
13716
|
t12 = space();
|
|
13542
13717
|
player_account_modal = element("player-account-modal");
|
|
13543
13718
|
player_account_gaming_limits_confirmation_modal = element("player-account-gaming-limits-confirmation-modal");
|
|
13544
13719
|
this.c = noop$1;
|
|
13545
13720
|
attr_dev(path, "id", "Chevron_Right");
|
|
13546
13721
|
attr_dev(path, "d", "M57.633,129.007L165.93,237.268c4.752,4.74,12.451,4.74,17.215,0c4.752-4.74,4.752-12.439,0-17.179\n l-99.707-99.671l99.695-99.671c4.752-4.74,4.752-12.439,0-17.191c-4.752-4.74-12.463-4.74-17.215,0L57.621,111.816\n C52.942,116.507,52.942,124.327,57.633,129.007z");
|
|
13547
|
-
add_location(path, file$1,
|
|
13548
|
-
add_location(g, file$1,
|
|
13722
|
+
add_location(path, file$1, 418, 8, 17593);
|
|
13723
|
+
add_location(g, file$1, 417, 6, 17581);
|
|
13549
13724
|
attr_dev(svg, "version", "1.1");
|
|
13550
13725
|
attr_dev(svg, "id", "Capa_1");
|
|
13551
13726
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
@@ -13557,40 +13732,38 @@
|
|
|
13557
13732
|
attr_dev(svg, "xml:space", "preserve");
|
|
13558
13733
|
attr_dev(svg, "width", "18px");
|
|
13559
13734
|
attr_dev(svg, "fill", "#58586B");
|
|
13560
|
-
add_location(svg, file$1,
|
|
13561
|
-
add_location(span0, file$1,
|
|
13735
|
+
add_location(svg, file$1, 415, 4, 17313);
|
|
13736
|
+
add_location(span0, file$1, 423, 4, 17924);
|
|
13562
13737
|
attr_dev(div0, "class", "AccountEditBackButton");
|
|
13563
|
-
add_location(div0, file$1,
|
|
13564
|
-
add_location(h6, file$1,
|
|
13738
|
+
add_location(div0, file$1, 414, 2, 17238);
|
|
13739
|
+
add_location(h6, file$1, 426, 4, 18012);
|
|
13565
13740
|
attr_dev(span1, "class", "AccountEditLimitsIcon");
|
|
13566
|
-
add_location(span1, file$1,
|
|
13567
|
-
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[
|
|
13568
|
-
|
|
13569
|
-
set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
|
|
13570
|
-
add_location(player_account_gaming_limits_popup, file$1, 437, 6, 18489);
|
|
13741
|
+
add_location(span1, file$1, 428, 6, 18104);
|
|
13742
|
+
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[5]);
|
|
13743
|
+
add_location(player_account_gaming_limits_popup, file$1, 429, 6, 18195);
|
|
13571
13744
|
attr_dev(div1, "class", "AccountEditLimitsIconWrapper");
|
|
13572
|
-
add_location(div1, file$1,
|
|
13745
|
+
add_location(div1, file$1, 427, 4, 18055);
|
|
13573
13746
|
attr_dev(div2, "class", "AccountEditLimitsHeader");
|
|
13574
|
-
add_location(div2, file$1,
|
|
13747
|
+
add_location(div2, file$1, 425, 2, 17970);
|
|
13575
13748
|
|
|
13576
|
-
attr_dev(button, "class", button_class_value = "AccountEditLimitsSaveButton " + (/*hasDifferences*/ ctx[
|
|
13749
|
+
attr_dev(button, "class", button_class_value = "AccountEditLimitsSaveButton " + (/*hasDifferences*/ ctx[14]
|
|
13577
13750
|
? ""
|
|
13578
13751
|
: "AccountEditLimitsButtonDisabled"));
|
|
13579
13752
|
|
|
13580
|
-
button.disabled = button_disabled_value = !/*hasDifferences*/ ctx[
|
|
13581
|
-
add_location(button, file$1,
|
|
13753
|
+
button.disabled = button_disabled_value = !/*hasDifferences*/ ctx[14];
|
|
13754
|
+
add_location(button, file$1, 535, 4, 24963);
|
|
13582
13755
|
attr_dev(div3, "class", "AccountEditLimitsControlArea");
|
|
13583
|
-
add_location(div3, file$1,
|
|
13756
|
+
add_location(div3, file$1, 534, 2, 24916);
|
|
13584
13757
|
|
|
13585
|
-
attr_dev(div4, "class", "AccountEditLimitsWrapper " + (/*isMobile*/ ctx[
|
|
13758
|
+
attr_dev(div4, "class", "AccountEditLimitsWrapper " + (/*isMobile*/ ctx[18]
|
|
13586
13759
|
? "AccountEditLimitsMobileWrapper"
|
|
13587
13760
|
: ""));
|
|
13588
13761
|
|
|
13589
|
-
add_location(div4, file$1,
|
|
13590
|
-
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[
|
|
13762
|
+
add_location(div4, file$1, 413, 0, 17146);
|
|
13763
|
+
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[9]);
|
|
13591
13764
|
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modalsource", "groupEdit");
|
|
13592
|
-
add_location(player_account_gaming_limits_confirmation_modal, file$1,
|
|
13593
|
-
add_location(player_account_modal, file$1,
|
|
13765
|
+
add_location(player_account_gaming_limits_confirmation_modal, file$1, 540, 2, 25211);
|
|
13766
|
+
add_location(player_account_modal, file$1, 539, 0, 25186);
|
|
13594
13767
|
},
|
|
13595
13768
|
l: function claim(nodes) {
|
|
13596
13769
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -13603,6 +13776,7 @@
|
|
|
13603
13776
|
append_dev(g, path);
|
|
13604
13777
|
append_dev(div0, t0);
|
|
13605
13778
|
append_dev(div0, span0);
|
|
13779
|
+
append_dev(span0, t1);
|
|
13606
13780
|
append_dev(div4, t2);
|
|
13607
13781
|
append_dev(div4, div2);
|
|
13608
13782
|
append_dev(div2, h6);
|
|
@@ -13628,30 +13802,23 @@
|
|
|
13628
13802
|
|
|
13629
13803
|
if (!mounted) {
|
|
13630
13804
|
dispose = [
|
|
13631
|
-
listen_dev(div0, "click", /*switchToLimitsGroupView*/ ctx[
|
|
13632
|
-
listen_dev(span1, "click", prevent_default(/*openInfoPopup*/ ctx[
|
|
13633
|
-
listen_dev(button, "click", /*click_handler*/ ctx[
|
|
13805
|
+
listen_dev(div0, "click", /*switchToLimitsGroupView*/ ctx[23], false, false, false),
|
|
13806
|
+
listen_dev(span1, "click", prevent_default(/*openInfoPopup*/ ctx[22]), false, true, false),
|
|
13807
|
+
listen_dev(button, "click", /*click_handler*/ ctx[32], false, false, false)
|
|
13634
13808
|
];
|
|
13635
13809
|
|
|
13636
13810
|
mounted = true;
|
|
13637
13811
|
}
|
|
13638
13812
|
},
|
|
13639
13813
|
p: function update(ctx, dirty) {
|
|
13640
|
-
if (dirty[0] &
|
|
13641
|
-
|
|
13642
|
-
if (dirty[0] & /*showPopup*/ 128) {
|
|
13643
|
-
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[7]);
|
|
13644
|
-
}
|
|
13814
|
+
if (dirty[0] & /*$_*/ 131072 && t1_value !== (t1_value = /*$_*/ ctx[17]("editText.back") + "")) set_data_dev(t1, t1_value);
|
|
13815
|
+
if (dirty[0] & /*limitsdata, limitname*/ 9 && t3_value !== (t3_value = (/*limitsdata*/ ctx[0] ? /*limitname*/ ctx[3] : "") + "")) set_data_dev(t3, t3_value);
|
|
13645
13816
|
|
|
13646
|
-
if (dirty[0] & /*
|
|
13647
|
-
set_custom_element_data(player_account_gaming_limits_popup, "
|
|
13817
|
+
if (dirty[0] & /*showPopup*/ 32) {
|
|
13818
|
+
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[5]);
|
|
13648
13819
|
}
|
|
13649
13820
|
|
|
13650
|
-
if (
|
|
13651
|
-
set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
|
|
13652
|
-
}
|
|
13653
|
-
|
|
13654
|
-
if (/*showsuccessnotification*/ ctx[3]) {
|
|
13821
|
+
if (/*showsuccessnotification*/ ctx[1]) {
|
|
13655
13822
|
if (if_block0) {
|
|
13656
13823
|
if_block0.p(ctx, dirty);
|
|
13657
13824
|
} else {
|
|
@@ -13664,7 +13831,7 @@
|
|
|
13664
13831
|
if_block0 = null;
|
|
13665
13832
|
}
|
|
13666
13833
|
|
|
13667
|
-
if (/*showdeletenotification*/ ctx[
|
|
13834
|
+
if (/*showdeletenotification*/ ctx[2]) {
|
|
13668
13835
|
if (if_block1) {
|
|
13669
13836
|
if_block1.p(ctx, dirty);
|
|
13670
13837
|
} else {
|
|
@@ -13677,7 +13844,7 @@
|
|
|
13677
13844
|
if_block1 = null;
|
|
13678
13845
|
}
|
|
13679
13846
|
|
|
13680
|
-
if (/*showLimits*/ ctx[
|
|
13847
|
+
if (/*showLimits*/ ctx[6]) {
|
|
13681
13848
|
if (if_block2) {
|
|
13682
13849
|
if_block2.p(ctx, dirty);
|
|
13683
13850
|
} else {
|
|
@@ -13690,18 +13857,20 @@
|
|
|
13690
13857
|
if_block2 = null;
|
|
13691
13858
|
}
|
|
13692
13859
|
|
|
13693
|
-
if (dirty[0] &
|
|
13860
|
+
if (dirty[0] & /*$_*/ 131072 && t11_value !== (t11_value = /*$_*/ ctx[17]("editText.save") + "")) set_data_dev(t11, t11_value);
|
|
13861
|
+
|
|
13862
|
+
if (dirty[0] & /*hasDifferences*/ 16384 && button_class_value !== (button_class_value = "AccountEditLimitsSaveButton " + (/*hasDifferences*/ ctx[14]
|
|
13694
13863
|
? ""
|
|
13695
13864
|
: "AccountEditLimitsButtonDisabled"))) {
|
|
13696
13865
|
attr_dev(button, "class", button_class_value);
|
|
13697
13866
|
}
|
|
13698
13867
|
|
|
13699
|
-
if (dirty[0] & /*hasDifferences*/
|
|
13868
|
+
if (dirty[0] & /*hasDifferences*/ 16384 && button_disabled_value !== (button_disabled_value = !/*hasDifferences*/ ctx[14])) {
|
|
13700
13869
|
prop_dev(button, "disabled", button_disabled_value);
|
|
13701
13870
|
}
|
|
13702
13871
|
|
|
13703
|
-
if (dirty[0] & /*changeLimitsText*/
|
|
13704
|
-
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[
|
|
13872
|
+
if (dirty[0] & /*changeLimitsText*/ 512) {
|
|
13873
|
+
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[9]);
|
|
13705
13874
|
}
|
|
13706
13875
|
},
|
|
13707
13876
|
i: noop$1,
|
|
@@ -13730,15 +13899,21 @@
|
|
|
13730
13899
|
}
|
|
13731
13900
|
|
|
13732
13901
|
function instance$1($$self, $$props, $$invalidate) {
|
|
13902
|
+
let $_;
|
|
13903
|
+
validate_store(X, "_");
|
|
13904
|
+
component_subscribe($$self, X, $$value => $$invalidate(17, $_ = $$value));
|
|
13733
13905
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
13734
13906
|
validate_slots("undefined", slots, []);
|
|
13735
13907
|
let { limitsdata = [] } = $$props;
|
|
13736
|
-
let { infoname = "" } = $$props;
|
|
13737
|
-
let { infocontent = "" } = $$props;
|
|
13738
13908
|
let { showsuccessnotification = false } = $$props;
|
|
13739
13909
|
let { showdeletenotification = false } = $$props;
|
|
13740
13910
|
let { limitname = "" } = $$props;
|
|
13741
13911
|
let { playercurrency = "" } = $$props;
|
|
13912
|
+
|
|
13913
|
+
Object.keys(PlayerGamingLimitsEditTranslations).forEach(item => {
|
|
13914
|
+
addNewMessages$1(item, PlayerGamingLimitsEditTranslations[item]);
|
|
13915
|
+
});
|
|
13916
|
+
|
|
13742
13917
|
let showPopup = false;
|
|
13743
13918
|
let showLimits = true;
|
|
13744
13919
|
let saveChangesConfirmed = false;
|
|
@@ -13754,11 +13929,6 @@
|
|
|
13754
13929
|
let invalidIndexes = new Array(3).fill(0); // create array of flags for periods, all set to false, used for validation purposes
|
|
13755
13930
|
let invalidIndex = false;
|
|
13756
13931
|
|
|
13757
|
-
// general role variables
|
|
13758
|
-
let successText = "Success lorem Ipsum is simply dummy text of the printing and typesetting industry.";
|
|
13759
|
-
|
|
13760
|
-
let removeText = "You have requested to remove this limit. This will be applied on ";
|
|
13761
|
-
|
|
13762
13932
|
// variables used in the case when the response is an object - wagering limit & loss limit cases
|
|
13763
13933
|
let limitsUpdateData = {};
|
|
13764
13934
|
|
|
@@ -13832,7 +14002,7 @@
|
|
|
13832
14002
|
let periodValues = ["Daily", "Weekly", "Monthly"];
|
|
13833
14003
|
|
|
13834
14004
|
const openInfoPopup = () => {
|
|
13835
|
-
$$invalidate(
|
|
14005
|
+
$$invalidate(5, showPopup = true);
|
|
13836
14006
|
};
|
|
13837
14007
|
|
|
13838
14008
|
const switchToLimitsGroupView = () => {
|
|
@@ -13867,7 +14037,7 @@
|
|
|
13867
14037
|
} else {
|
|
13868
14038
|
storedData.forEach(data => {
|
|
13869
14039
|
if (limitsUpdateData.period === data.periodName) {
|
|
13870
|
-
$$invalidate(
|
|
14040
|
+
$$invalidate(13, limitsUpdateData.amount = data.value, limitsUpdateData);
|
|
13871
14041
|
}
|
|
13872
14042
|
});
|
|
13873
14043
|
}
|
|
@@ -13913,7 +14083,7 @@
|
|
|
13913
14083
|
);
|
|
13914
14084
|
}
|
|
13915
14085
|
|
|
13916
|
-
$$invalidate(
|
|
14086
|
+
$$invalidate(14, hasDifferences = false);
|
|
13917
14087
|
}
|
|
13918
14088
|
};
|
|
13919
14089
|
|
|
@@ -13923,111 +14093,111 @@
|
|
|
13923
14093
|
switch (data.amount) {
|
|
13924
14094
|
case "Custom":
|
|
13925
14095
|
if (limitname == "Time Limit") {
|
|
13926
|
-
$$invalidate(
|
|
14096
|
+
$$invalidate(7, minTimeValue = 60);
|
|
13927
14097
|
|
|
13928
14098
|
if (data.periodName === "Daily") {
|
|
13929
|
-
$$invalidate(
|
|
14099
|
+
$$invalidate(8, maxTimeValue = 1440);
|
|
13930
14100
|
} else if (data.periodName == "Weekly") {
|
|
13931
|
-
$$invalidate(
|
|
14101
|
+
$$invalidate(8, maxTimeValue = 10080);
|
|
13932
14102
|
} else {
|
|
13933
|
-
$$invalidate(
|
|
14103
|
+
$$invalidate(8, maxTimeValue = 43200);
|
|
13934
14104
|
}
|
|
13935
14105
|
|
|
13936
14106
|
if (data.value && regexValidators.time.test(data.value) && (data.value > minTimeValue && data.value <= maxTimeValue)) {
|
|
13937
|
-
$$invalidate(
|
|
14107
|
+
$$invalidate(11, invalidIndexes[index] = 0, invalidIndexes);
|
|
13938
14108
|
let item = referenceArray[index];
|
|
13939
14109
|
|
|
13940
14110
|
if (data.periodName == item.period && data.value == item.amount) {
|
|
13941
|
-
$$invalidate(
|
|
14111
|
+
$$invalidate(14, hasDifferences = false);
|
|
13942
14112
|
updateValues(data, referenceArray);
|
|
13943
14113
|
} else {
|
|
13944
|
-
$$invalidate(
|
|
14114
|
+
$$invalidate(14, hasDifferences = true);
|
|
13945
14115
|
}
|
|
13946
14116
|
} else {
|
|
13947
|
-
$$invalidate(
|
|
13948
|
-
$$invalidate(
|
|
14117
|
+
$$invalidate(11, invalidIndexes[index] = 1, invalidIndexes);
|
|
14118
|
+
$$invalidate(14, hasDifferences = false);
|
|
13949
14119
|
}
|
|
13950
14120
|
} else if (data.value && regexValidators.amount.test(data.value)) {
|
|
13951
|
-
$$invalidate(
|
|
14121
|
+
$$invalidate(11, invalidIndexes[index] = 0, invalidIndexes);
|
|
13952
14122
|
|
|
13953
14123
|
if (data.periodName == referenceArray[index].period && data.value == referenceArray[index].amount) {
|
|
13954
|
-
$$invalidate(
|
|
14124
|
+
$$invalidate(14, hasDifferences = hasDifferences ? true : false);
|
|
13955
14125
|
updateValues(data, referenceArray);
|
|
13956
14126
|
} else {
|
|
13957
|
-
$$invalidate(
|
|
14127
|
+
$$invalidate(14, hasDifferences = true);
|
|
13958
14128
|
}
|
|
13959
14129
|
|
|
13960
14130
|
// for deposit limits, check if all limits are different from 0 before allowing any data submission
|
|
13961
14131
|
storedData.forEach(dataSet => {
|
|
13962
14132
|
if (dataSet.value == 0) {
|
|
13963
|
-
$$invalidate(
|
|
14133
|
+
$$invalidate(14, hasDifferences = false);
|
|
13964
14134
|
}
|
|
13965
14135
|
});
|
|
13966
14136
|
} else {
|
|
13967
|
-
$$invalidate(
|
|
13968
|
-
$$invalidate(
|
|
14137
|
+
$$invalidate(11, invalidIndexes[index] = 1, invalidIndexes);
|
|
14138
|
+
$$invalidate(14, hasDifferences = false);
|
|
13969
14139
|
}
|
|
13970
14140
|
break;
|
|
13971
14141
|
default:
|
|
13972
14142
|
if (data.periodName == referenceArray[index].period) {
|
|
13973
14143
|
updateValues(data, referenceArray);
|
|
13974
14144
|
|
|
13975
|
-
$$invalidate(
|
|
14145
|
+
$$invalidate(14, hasDifferences = data.value == referenceArray[index].amount
|
|
13976
14146
|
? false
|
|
13977
14147
|
: true);
|
|
13978
14148
|
} else {
|
|
13979
|
-
$$invalidate(
|
|
14149
|
+
$$invalidate(14, hasDifferences = true);
|
|
13980
14150
|
}
|
|
13981
14151
|
// for deposit limits, check if all limits are different from 0 before allowing any data submission
|
|
13982
14152
|
storedData.forEach(dataSet => {
|
|
13983
14153
|
if (dataSet.value == 0) {
|
|
13984
|
-
$$invalidate(
|
|
14154
|
+
$$invalidate(14, hasDifferences = false);
|
|
13985
14155
|
}
|
|
13986
14156
|
});
|
|
13987
14157
|
break;
|
|
13988
14158
|
}
|
|
13989
14159
|
} else {
|
|
13990
14160
|
if (limitsUpdateData.period != referenceArray.period) {
|
|
13991
|
-
$$invalidate(
|
|
14161
|
+
$$invalidate(14, hasDifferences = true);
|
|
13992
14162
|
|
|
13993
14163
|
if (data.amount == "Custom") {
|
|
13994
14164
|
if (data.value && regexValidators.amount.test(data.value)) {
|
|
13995
|
-
$$invalidate(
|
|
14165
|
+
$$invalidate(12, invalidIndex = false);
|
|
13996
14166
|
|
|
13997
14167
|
if (limitsUpdateData.period == referenceArray.period && data.value == referenceArray.amount) {
|
|
13998
|
-
$$invalidate(
|
|
14168
|
+
$$invalidate(14, hasDifferences = false);
|
|
13999
14169
|
updateValues(data, referenceArray);
|
|
14000
14170
|
} else {
|
|
14001
|
-
$$invalidate(
|
|
14171
|
+
$$invalidate(14, hasDifferences = true);
|
|
14002
14172
|
}
|
|
14003
14173
|
} else {
|
|
14004
|
-
$$invalidate(
|
|
14005
|
-
$$invalidate(
|
|
14174
|
+
$$invalidate(12, invalidIndex = true);
|
|
14175
|
+
$$invalidate(14, hasDifferences = false);
|
|
14006
14176
|
}
|
|
14007
14177
|
}
|
|
14008
14178
|
} else {
|
|
14009
14179
|
switch (data.amount) {
|
|
14010
14180
|
case "Custom":
|
|
14011
14181
|
if (data.value && regexValidators.amount.test(data.value)) {
|
|
14012
|
-
$$invalidate(
|
|
14182
|
+
$$invalidate(12, invalidIndex = false);
|
|
14013
14183
|
|
|
14014
14184
|
if (limitsUpdateData.period == referenceArray.period && data.value == referenceArray.amount) {
|
|
14015
|
-
$$invalidate(
|
|
14185
|
+
$$invalidate(14, hasDifferences = hasDifferences ? true : false);
|
|
14016
14186
|
updateValues(data, referenceArray);
|
|
14017
14187
|
} else {
|
|
14018
|
-
$$invalidate(
|
|
14188
|
+
$$invalidate(14, hasDifferences = true);
|
|
14019
14189
|
}
|
|
14020
14190
|
} else {
|
|
14021
|
-
$$invalidate(
|
|
14022
|
-
$$invalidate(
|
|
14191
|
+
$$invalidate(12, invalidIndex = true);
|
|
14192
|
+
$$invalidate(14, hasDifferences = false);
|
|
14023
14193
|
}
|
|
14024
14194
|
break;
|
|
14025
14195
|
default:
|
|
14026
14196
|
if (limitsUpdateData.period == referenceArray.period) {
|
|
14027
14197
|
updateValues(data, referenceArray);
|
|
14028
|
-
$$invalidate(
|
|
14198
|
+
$$invalidate(14, hasDifferences = data.value == referenceArray.amount ? false : true);
|
|
14029
14199
|
} else {
|
|
14030
|
-
$$invalidate(
|
|
14200
|
+
$$invalidate(14, hasDifferences = true);
|
|
14031
14201
|
}
|
|
14032
14202
|
break;
|
|
14033
14203
|
}
|
|
@@ -14105,14 +14275,14 @@
|
|
|
14105
14275
|
currentLimitType.forEach(defaultValuesData => {
|
|
14106
14276
|
if (dataSet.period === defaultValuesData.periodName) {
|
|
14107
14277
|
if (limitname === "Time Limit") {
|
|
14108
|
-
$$invalidate(
|
|
14278
|
+
$$invalidate(7, minTimeValue = 60);
|
|
14109
14279
|
|
|
14110
14280
|
if (dataSet.periodName === "Daily") {
|
|
14111
|
-
$$invalidate(
|
|
14281
|
+
$$invalidate(8, maxTimeValue = 1440);
|
|
14112
14282
|
} else if (dataSet.periodName == "Weekly") {
|
|
14113
|
-
$$invalidate(
|
|
14283
|
+
$$invalidate(8, maxTimeValue = 10080);
|
|
14114
14284
|
} else {
|
|
14115
|
-
$$invalidate(
|
|
14285
|
+
$$invalidate(8, maxTimeValue = 43200);
|
|
14116
14286
|
}
|
|
14117
14287
|
}
|
|
14118
14288
|
|
|
@@ -14160,27 +14330,18 @@
|
|
|
14160
14330
|
? "wagering limit"
|
|
14161
14331
|
: "loss limit";
|
|
14162
14332
|
|
|
14163
|
-
$$invalidate(
|
|
14333
|
+
$$invalidate(9, changeLimitsText = $_("editText.changeLimitsText", { values: { limit: limitType } }));
|
|
14164
14334
|
};
|
|
14165
14335
|
|
|
14166
14336
|
const initialLoad = () => {
|
|
14167
14337
|
setLimitModalTexts();
|
|
14168
|
-
$$invalidate(
|
|
14169
|
-
|
|
14170
|
-
// add currency EUR by default, if the data does not have a set currency
|
|
14171
|
-
if (isArray) {
|
|
14172
|
-
limitsdata.forEach(periodObject => {
|
|
14173
|
-
if (!periodObject.currency) {
|
|
14174
|
-
periodObject.currency = "EUR";
|
|
14175
|
-
}
|
|
14176
|
-
});
|
|
14177
|
-
}
|
|
14338
|
+
$$invalidate(10, isArray = Array.isArray(limitsdata));
|
|
14178
14339
|
|
|
14179
14340
|
// used for validation
|
|
14180
|
-
$$invalidate(
|
|
14341
|
+
$$invalidate(15, updatedLimitValues = JSON.parse(JSON.stringify(limitsdata)));
|
|
14181
14342
|
|
|
14182
14343
|
// use limitsUpdateData in order to populate select & input fields
|
|
14183
|
-
$$invalidate(
|
|
14344
|
+
$$invalidate(13, limitsUpdateData = JSON.parse(JSON.stringify(limitsdata)));
|
|
14184
14345
|
|
|
14185
14346
|
// extra check - if there are values outside the array set, automatically set them to Custom value and populate the appropriate input field
|
|
14186
14347
|
currentLimitType = limitname === "Wagering Limit"
|
|
@@ -14201,23 +14362,23 @@
|
|
|
14201
14362
|
if (e.data) {
|
|
14202
14363
|
switch (e.data.type) {
|
|
14203
14364
|
case "ClosePlayerAccountGamingLimitsPopup":
|
|
14204
|
-
$$invalidate(
|
|
14365
|
+
$$invalidate(5, showPopup = false);
|
|
14205
14366
|
break;
|
|
14206
14367
|
case "GamingLimitsConfirmChanges":
|
|
14207
14368
|
saveChangesConfirmed = true;
|
|
14208
14369
|
saveLimits();
|
|
14209
14370
|
break;
|
|
14210
14371
|
case "CancelGamingLimitsChanges":
|
|
14211
|
-
$$invalidate(
|
|
14372
|
+
$$invalidate(6, showLimits = false);
|
|
14212
14373
|
// rerender select in order to reset select values
|
|
14213
14374
|
setTimeout(
|
|
14214
14375
|
() => {
|
|
14215
|
-
$$invalidate(
|
|
14376
|
+
$$invalidate(6, showLimits = true);
|
|
14216
14377
|
},
|
|
14217
14378
|
10
|
|
14218
14379
|
);
|
|
14219
14380
|
initialLoad();
|
|
14220
|
-
$$invalidate(
|
|
14381
|
+
$$invalidate(14, hasDifferences = false);
|
|
14221
14382
|
saveChangesConfirmed = false;
|
|
14222
14383
|
break;
|
|
14223
14384
|
}
|
|
@@ -14234,73 +14395,70 @@
|
|
|
14234
14395
|
|
|
14235
14396
|
const writable_props = [
|
|
14236
14397
|
"limitsdata",
|
|
14237
|
-
"infoname",
|
|
14238
|
-
"infocontent",
|
|
14239
14398
|
"showsuccessnotification",
|
|
14240
14399
|
"showdeletenotification",
|
|
14241
14400
|
"limitname",
|
|
14242
14401
|
"playercurrency"
|
|
14243
14402
|
];
|
|
14244
14403
|
|
|
14245
|
-
|
|
14404
|
+
Object_1$1.keys($$props).forEach(key => {
|
|
14246
14405
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
14247
14406
|
});
|
|
14248
14407
|
|
|
14249
14408
|
function select_change_handler(index) {
|
|
14250
14409
|
storedData[index].amount = select_value(this);
|
|
14251
|
-
$$invalidate(
|
|
14252
|
-
$$invalidate(
|
|
14410
|
+
$$invalidate(16, storedData);
|
|
14411
|
+
$$invalidate(20, lossLimitPredefinedValues);
|
|
14253
14412
|
}
|
|
14254
14413
|
|
|
14255
14414
|
function input_input_handler(index) {
|
|
14256
14415
|
storedData[index].value = to_number(this.value);
|
|
14257
|
-
$$invalidate(
|
|
14258
|
-
$$invalidate(
|
|
14416
|
+
$$invalidate(16, storedData);
|
|
14417
|
+
$$invalidate(20, lossLimitPredefinedValues);
|
|
14259
14418
|
}
|
|
14260
14419
|
|
|
14261
14420
|
function input_input_handler_1(index) {
|
|
14262
14421
|
storedData[index].value = to_number(this.value);
|
|
14263
|
-
$$invalidate(
|
|
14264
|
-
$$invalidate(
|
|
14422
|
+
$$invalidate(16, storedData);
|
|
14423
|
+
$$invalidate(20, lossLimitPredefinedValues);
|
|
14265
14424
|
}
|
|
14266
14425
|
|
|
14267
14426
|
function select_change_handler_1() {
|
|
14268
14427
|
limitsUpdateData.period = select_value(this);
|
|
14269
|
-
$$invalidate(
|
|
14270
|
-
$$invalidate(
|
|
14428
|
+
$$invalidate(13, limitsUpdateData);
|
|
14429
|
+
$$invalidate(21, periodValues);
|
|
14271
14430
|
}
|
|
14272
14431
|
|
|
14273
14432
|
function select_change_handler_2(each_value_2, index) {
|
|
14274
14433
|
each_value_2[index].amount = select_value(this);
|
|
14275
|
-
$$invalidate(
|
|
14276
|
-
$$invalidate(
|
|
14434
|
+
$$invalidate(16, storedData);
|
|
14435
|
+
$$invalidate(20, lossLimitPredefinedValues);
|
|
14277
14436
|
}
|
|
14278
14437
|
|
|
14279
14438
|
function input_input_handler_2(each_value_2, index) {
|
|
14280
14439
|
each_value_2[index].value = to_number(this.value);
|
|
14281
|
-
$$invalidate(
|
|
14282
|
-
$$invalidate(
|
|
14440
|
+
$$invalidate(16, storedData);
|
|
14441
|
+
$$invalidate(20, lossLimitPredefinedValues);
|
|
14283
14442
|
}
|
|
14284
14443
|
|
|
14285
14444
|
const click_handler = () => confirmGamingLimitsChanges();
|
|
14286
14445
|
|
|
14287
14446
|
$$self.$$set = $$props => {
|
|
14288
14447
|
if ("limitsdata" in $$props) $$invalidate(0, limitsdata = $$props.limitsdata);
|
|
14289
|
-
if ("
|
|
14290
|
-
if ("
|
|
14291
|
-
if ("
|
|
14292
|
-
if ("
|
|
14293
|
-
if ("limitname" in $$props) $$invalidate(5, limitname = $$props.limitname);
|
|
14294
|
-
if ("playercurrency" in $$props) $$invalidate(6, playercurrency = $$props.playercurrency);
|
|
14448
|
+
if ("showsuccessnotification" in $$props) $$invalidate(1, showsuccessnotification = $$props.showsuccessnotification);
|
|
14449
|
+
if ("showdeletenotification" in $$props) $$invalidate(2, showdeletenotification = $$props.showdeletenotification);
|
|
14450
|
+
if ("limitname" in $$props) $$invalidate(3, limitname = $$props.limitname);
|
|
14451
|
+
if ("playercurrency" in $$props) $$invalidate(4, playercurrency = $$props.playercurrency);
|
|
14295
14452
|
};
|
|
14296
14453
|
|
|
14297
14454
|
$$self.$capture_state = () => ({
|
|
14298
14455
|
onMount,
|
|
14299
14456
|
getDevice,
|
|
14457
|
+
_: X,
|
|
14458
|
+
addNewMessages: addNewMessages$1,
|
|
14459
|
+
PlayerGamingLimitsEditTranslations,
|
|
14300
14460
|
moment,
|
|
14301
14461
|
limitsdata,
|
|
14302
|
-
infoname,
|
|
14303
|
-
infocontent,
|
|
14304
14462
|
showsuccessnotification,
|
|
14305
14463
|
showdeletenotification,
|
|
14306
14464
|
limitname,
|
|
@@ -14316,8 +14474,6 @@
|
|
|
14316
14474
|
isArray,
|
|
14317
14475
|
invalidIndexes,
|
|
14318
14476
|
invalidIndex,
|
|
14319
|
-
successText,
|
|
14320
|
-
removeText,
|
|
14321
14477
|
limitsUpdateData,
|
|
14322
14478
|
currentLimitType,
|
|
14323
14479
|
hasDifferences,
|
|
@@ -14341,41 +14497,38 @@
|
|
|
14341
14497
|
populateFieldsData,
|
|
14342
14498
|
setLimitModalTexts,
|
|
14343
14499
|
initialLoad,
|
|
14344
|
-
messageHandler
|
|
14500
|
+
messageHandler,
|
|
14501
|
+
$_
|
|
14345
14502
|
});
|
|
14346
14503
|
|
|
14347
14504
|
$$self.$inject_state = $$props => {
|
|
14348
14505
|
if ("limitsdata" in $$props) $$invalidate(0, limitsdata = $$props.limitsdata);
|
|
14349
|
-
if ("
|
|
14350
|
-
if ("
|
|
14351
|
-
if ("
|
|
14352
|
-
if ("
|
|
14353
|
-
if ("
|
|
14354
|
-
if ("
|
|
14355
|
-
if ("showPopup" in $$props) $$invalidate(7, showPopup = $$props.showPopup);
|
|
14356
|
-
if ("showLimits" in $$props) $$invalidate(8, showLimits = $$props.showLimits);
|
|
14506
|
+
if ("showsuccessnotification" in $$props) $$invalidate(1, showsuccessnotification = $$props.showsuccessnotification);
|
|
14507
|
+
if ("showdeletenotification" in $$props) $$invalidate(2, showdeletenotification = $$props.showdeletenotification);
|
|
14508
|
+
if ("limitname" in $$props) $$invalidate(3, limitname = $$props.limitname);
|
|
14509
|
+
if ("playercurrency" in $$props) $$invalidate(4, playercurrency = $$props.playercurrency);
|
|
14510
|
+
if ("showPopup" in $$props) $$invalidate(5, showPopup = $$props.showPopup);
|
|
14511
|
+
if ("showLimits" in $$props) $$invalidate(6, showLimits = $$props.showLimits);
|
|
14357
14512
|
if ("saveChangesConfirmed" in $$props) saveChangesConfirmed = $$props.saveChangesConfirmed;
|
|
14358
|
-
if ("minTimeValue" in $$props) $$invalidate(
|
|
14359
|
-
if ("maxTimeValue" in $$props) $$invalidate(
|
|
14360
|
-
if ("changeLimitsText" in $$props) $$invalidate(
|
|
14513
|
+
if ("minTimeValue" in $$props) $$invalidate(7, minTimeValue = $$props.minTimeValue);
|
|
14514
|
+
if ("maxTimeValue" in $$props) $$invalidate(8, maxTimeValue = $$props.maxTimeValue);
|
|
14515
|
+
if ("changeLimitsText" in $$props) $$invalidate(9, changeLimitsText = $$props.changeLimitsText);
|
|
14361
14516
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
14362
|
-
if ("isMobile" in $$props) $$invalidate(
|
|
14363
|
-
if ("isArray" in $$props) $$invalidate(
|
|
14364
|
-
if ("invalidIndexes" in $$props) $$invalidate(
|
|
14365
|
-
if ("invalidIndex" in $$props) $$invalidate(
|
|
14366
|
-
if ("
|
|
14367
|
-
if ("removeText" in $$props) $$invalidate(21, removeText = $$props.removeText);
|
|
14368
|
-
if ("limitsUpdateData" in $$props) $$invalidate(15, limitsUpdateData = $$props.limitsUpdateData);
|
|
14517
|
+
if ("isMobile" in $$props) $$invalidate(18, isMobile = $$props.isMobile);
|
|
14518
|
+
if ("isArray" in $$props) $$invalidate(10, isArray = $$props.isArray);
|
|
14519
|
+
if ("invalidIndexes" in $$props) $$invalidate(11, invalidIndexes = $$props.invalidIndexes);
|
|
14520
|
+
if ("invalidIndex" in $$props) $$invalidate(12, invalidIndex = $$props.invalidIndex);
|
|
14521
|
+
if ("limitsUpdateData" in $$props) $$invalidate(13, limitsUpdateData = $$props.limitsUpdateData);
|
|
14369
14522
|
if ("currentLimitType" in $$props) currentLimitType = $$props.currentLimitType;
|
|
14370
|
-
if ("hasDifferences" in $$props) $$invalidate(
|
|
14371
|
-
if ("updatedLimitValues" in $$props) $$invalidate(
|
|
14523
|
+
if ("hasDifferences" in $$props) $$invalidate(14, hasDifferences = $$props.hasDifferences);
|
|
14524
|
+
if ("updatedLimitValues" in $$props) $$invalidate(15, updatedLimitValues = $$props.updatedLimitValues);
|
|
14372
14525
|
if ("validCurrentAmount" in $$props) validCurrentAmount = $$props.validCurrentAmount;
|
|
14373
|
-
if ("storedData" in $$props) $$invalidate(
|
|
14374
|
-
if ("depositPredefinedValues" in $$props) $$invalidate(
|
|
14526
|
+
if ("storedData" in $$props) $$invalidate(16, storedData = $$props.storedData);
|
|
14527
|
+
if ("depositPredefinedValues" in $$props) $$invalidate(19, depositPredefinedValues = $$props.depositPredefinedValues);
|
|
14375
14528
|
if ("wageringLimitPredefinedValues" in $$props) wageringLimitPredefinedValues = $$props.wageringLimitPredefinedValues;
|
|
14376
|
-
if ("lossLimitPredefinedValues" in $$props) $$invalidate(
|
|
14529
|
+
if ("lossLimitPredefinedValues" in $$props) $$invalidate(20, lossLimitPredefinedValues = $$props.lossLimitPredefinedValues);
|
|
14377
14530
|
if ("timeLimitPredefinedValues" in $$props) timeLimitPredefinedValues = $$props.timeLimitPredefinedValues;
|
|
14378
|
-
if ("periodValues" in $$props) $$invalidate(
|
|
14531
|
+
if ("periodValues" in $$props) $$invalidate(21, periodValues = $$props.periodValues);
|
|
14379
14532
|
};
|
|
14380
14533
|
|
|
14381
14534
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -14383,19 +14536,17 @@
|
|
|
14383
14536
|
}
|
|
14384
14537
|
|
|
14385
14538
|
$$self.$$.update = () => {
|
|
14386
|
-
if ($$self.$$.dirty[0] & /*showsuccessnotification, showdeletenotification*/
|
|
14539
|
+
if ($$self.$$.dirty[0] & /*showsuccessnotification, showdeletenotification*/ 6) {
|
|
14387
14540
|
showsuccessnotification && showdeletenotification && initialLoad();
|
|
14388
14541
|
}
|
|
14389
14542
|
|
|
14390
|
-
if ($$self.$$.dirty[0] & /*limitsdata
|
|
14391
|
-
limitsdata &&
|
|
14543
|
+
if ($$self.$$.dirty[0] & /*limitsdata*/ 1) {
|
|
14544
|
+
limitsdata && initialLoad();
|
|
14392
14545
|
}
|
|
14393
14546
|
};
|
|
14394
14547
|
|
|
14395
14548
|
return [
|
|
14396
14549
|
limitsdata,
|
|
14397
|
-
infoname,
|
|
14398
|
-
infocontent,
|
|
14399
14550
|
showsuccessnotification,
|
|
14400
14551
|
showdeletenotification,
|
|
14401
14552
|
limitname,
|
|
@@ -14412,9 +14563,8 @@
|
|
|
14412
14563
|
hasDifferences,
|
|
14413
14564
|
updatedLimitValues,
|
|
14414
14565
|
storedData,
|
|
14566
|
+
$_,
|
|
14415
14567
|
isMobile,
|
|
14416
|
-
successText,
|
|
14417
|
-
removeText,
|
|
14418
14568
|
depositPredefinedValues,
|
|
14419
14569
|
lossLimitPredefinedValues,
|
|
14420
14570
|
periodValues,
|
|
@@ -14449,14 +14599,12 @@
|
|
|
14449
14599
|
safe_not_equal,
|
|
14450
14600
|
{
|
|
14451
14601
|
limitsdata: 0,
|
|
14452
|
-
|
|
14453
|
-
|
|
14454
|
-
|
|
14455
|
-
|
|
14456
|
-
limitname: 5,
|
|
14457
|
-
playercurrency: 6
|
|
14602
|
+
showsuccessnotification: 1,
|
|
14603
|
+
showdeletenotification: 2,
|
|
14604
|
+
limitname: 3,
|
|
14605
|
+
playercurrency: 4
|
|
14458
14606
|
},
|
|
14459
|
-
[-1, -1
|
|
14607
|
+
[-1, -1]
|
|
14460
14608
|
);
|
|
14461
14609
|
|
|
14462
14610
|
if (options) {
|
|
@@ -14474,8 +14622,6 @@
|
|
|
14474
14622
|
static get observedAttributes() {
|
|
14475
14623
|
return [
|
|
14476
14624
|
"limitsdata",
|
|
14477
|
-
"infoname",
|
|
14478
|
-
"infocontent",
|
|
14479
14625
|
"showsuccessnotification",
|
|
14480
14626
|
"showdeletenotification",
|
|
14481
14627
|
"limitname",
|
|
@@ -14492,26 +14638,8 @@
|
|
|
14492
14638
|
flush();
|
|
14493
14639
|
}
|
|
14494
14640
|
|
|
14495
|
-
get infoname() {
|
|
14496
|
-
return this.$$.ctx[1];
|
|
14497
|
-
}
|
|
14498
|
-
|
|
14499
|
-
set infoname(infoname) {
|
|
14500
|
-
this.$set({ infoname });
|
|
14501
|
-
flush();
|
|
14502
|
-
}
|
|
14503
|
-
|
|
14504
|
-
get infocontent() {
|
|
14505
|
-
return this.$$.ctx[2];
|
|
14506
|
-
}
|
|
14507
|
-
|
|
14508
|
-
set infocontent(infocontent) {
|
|
14509
|
-
this.$set({ infocontent });
|
|
14510
|
-
flush();
|
|
14511
|
-
}
|
|
14512
|
-
|
|
14513
14641
|
get showsuccessnotification() {
|
|
14514
|
-
return this.$$.ctx[
|
|
14642
|
+
return this.$$.ctx[1];
|
|
14515
14643
|
}
|
|
14516
14644
|
|
|
14517
14645
|
set showsuccessnotification(showsuccessnotification) {
|
|
@@ -14520,7 +14648,7 @@
|
|
|
14520
14648
|
}
|
|
14521
14649
|
|
|
14522
14650
|
get showdeletenotification() {
|
|
14523
|
-
return this.$$.ctx[
|
|
14651
|
+
return this.$$.ctx[2];
|
|
14524
14652
|
}
|
|
14525
14653
|
|
|
14526
14654
|
set showdeletenotification(showdeletenotification) {
|
|
@@ -14529,7 +14657,7 @@
|
|
|
14529
14657
|
}
|
|
14530
14658
|
|
|
14531
14659
|
get limitname() {
|
|
14532
|
-
return this.$$.ctx[
|
|
14660
|
+
return this.$$.ctx[3];
|
|
14533
14661
|
}
|
|
14534
14662
|
|
|
14535
14663
|
set limitname(limitname) {
|
|
@@ -14538,7 +14666,7 @@
|
|
|
14538
14666
|
}
|
|
14539
14667
|
|
|
14540
14668
|
get playercurrency() {
|
|
14541
|
-
return this.$$.ctx[
|
|
14669
|
+
return this.$$.ctx[4];
|
|
14542
14670
|
}
|
|
14543
14671
|
|
|
14544
14672
|
set playercurrency(playercurrency) {
|
|
@@ -14550,29 +14678,31 @@
|
|
|
14550
14678
|
!customElements.get('player-account-gaming-limits-group-edit') && customElements.define('player-account-gaming-limits-group-edit', PlayerAccountGamingLimitsGroupEdit);
|
|
14551
14679
|
|
|
14552
14680
|
/* src/PlayerAccountGamingLimitsInfoCard.svelte generated by Svelte v3.37.0 */
|
|
14681
|
+
|
|
14682
|
+
const { Object: Object_1 } = globals;
|
|
14553
14683
|
const file = "src/PlayerAccountGamingLimitsInfoCard.svelte";
|
|
14554
14684
|
|
|
14555
14685
|
function get_each_context_1(ctx, list, i) {
|
|
14556
14686
|
const child_ctx = ctx.slice();
|
|
14557
|
-
child_ctx[
|
|
14558
|
-
child_ctx[
|
|
14687
|
+
child_ctx[33] = list[i];
|
|
14688
|
+
child_ctx[35] = i;
|
|
14559
14689
|
return child_ctx;
|
|
14560
14690
|
}
|
|
14561
14691
|
|
|
14562
14692
|
function get_each_context(ctx, list, i) {
|
|
14563
14693
|
const child_ctx = ctx.slice();
|
|
14564
|
-
child_ctx[
|
|
14565
|
-
child_ctx[
|
|
14694
|
+
child_ctx[33] = list[i];
|
|
14695
|
+
child_ctx[35] = i;
|
|
14566
14696
|
return child_ctx;
|
|
14567
14697
|
}
|
|
14568
14698
|
|
|
14569
|
-
// (
|
|
14699
|
+
// (179:0) {:else}
|
|
14570
14700
|
function create_else_block(ctx) {
|
|
14571
14701
|
let div7;
|
|
14572
14702
|
let div6;
|
|
14573
14703
|
let div1;
|
|
14574
14704
|
let h5;
|
|
14575
|
-
let t0_value = (/*limitsdata*/ ctx[0] ? /*limitname*/ ctx[
|
|
14705
|
+
let t0_value = (/*limitsdata*/ ctx[0] ? /*limitname*/ ctx[1] : "") + "";
|
|
14576
14706
|
let t0;
|
|
14577
14707
|
let t1;
|
|
14578
14708
|
let div0;
|
|
@@ -14588,6 +14718,8 @@
|
|
|
14588
14718
|
let t5;
|
|
14589
14719
|
let div4;
|
|
14590
14720
|
let button;
|
|
14721
|
+
let t6_value = /*$_*/ ctx[10]("cardText.edit") + "";
|
|
14722
|
+
let t6;
|
|
14591
14723
|
let t7;
|
|
14592
14724
|
let t8;
|
|
14593
14725
|
let mounted;
|
|
@@ -14601,8 +14733,8 @@
|
|
|
14601
14733
|
|
|
14602
14734
|
let current_block_type = select_block_type_1(ctx, [-1]);
|
|
14603
14735
|
let if_block0 = current_block_type(ctx);
|
|
14604
|
-
let if_block1 = !/*amountIsUnset*/ ctx[
|
|
14605
|
-
let if_block2 = /*openLimitsModal*/ ctx[
|
|
14736
|
+
let if_block1 = !/*amountIsUnset*/ ctx[4] && !/*limitsdata*/ ctx[0].isModified && /*changeableDataset*/ ctx[9] && create_if_block_2(ctx);
|
|
14737
|
+
let if_block2 = /*openLimitsModal*/ ctx[6] && create_if_block_1(ctx);
|
|
14606
14738
|
|
|
14607
14739
|
const block = {
|
|
14608
14740
|
c: function create() {
|
|
@@ -14625,36 +14757,34 @@
|
|
|
14625
14757
|
t5 = space();
|
|
14626
14758
|
div4 = element("div");
|
|
14627
14759
|
button = element("button");
|
|
14628
|
-
|
|
14760
|
+
t6 = text(t6_value);
|
|
14629
14761
|
t7 = space();
|
|
14630
14762
|
if (if_block1) if_block1.c();
|
|
14631
14763
|
t8 = space();
|
|
14632
14764
|
if (if_block2) if_block2.c();
|
|
14633
|
-
add_location(h5, file,
|
|
14765
|
+
add_location(h5, file, 182, 8, 7005);
|
|
14634
14766
|
attr_dev(span, "class", "InfoCardIcon");
|
|
14635
|
-
add_location(span, file,
|
|
14636
|
-
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[
|
|
14637
|
-
|
|
14638
|
-
|
|
14639
|
-
add_location(
|
|
14640
|
-
attr_dev(
|
|
14641
|
-
add_location(
|
|
14642
|
-
attr_dev(div1, "class", "InfoCardHeader " + (/*isMobile*/ ctx[13] ? "InfoCardMobileHeader" : ""));
|
|
14643
|
-
add_location(div1, file, 179, 6, 6329);
|
|
14767
|
+
add_location(span, file, 184, 10, 7142);
|
|
14768
|
+
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[3][0]);
|
|
14769
|
+
add_location(player_account_gaming_limits_popup, file, 185, 12, 7239);
|
|
14770
|
+
attr_dev(div0, "class", "InfoCardIconWrapper " + (/*isMobile*/ ctx[12] ? "InfoCardIconMobileWrapper" : ""));
|
|
14771
|
+
add_location(div0, file, 183, 8, 7052);
|
|
14772
|
+
attr_dev(div1, "class", "InfoCardHeader " + (/*isMobile*/ ctx[12] ? "InfoCardMobileHeader" : ""));
|
|
14773
|
+
add_location(div1, file, 181, 6, 6926);
|
|
14644
14774
|
attr_dev(div2, "class", "InfoCardTableRow");
|
|
14645
|
-
add_location(div2, file,
|
|
14775
|
+
add_location(div2, file, 191, 10, 7449);
|
|
14646
14776
|
attr_dev(div3, "class", "InfoCardTableWrapper");
|
|
14647
|
-
add_location(div3, file,
|
|
14777
|
+
add_location(div3, file, 190, 8, 7404);
|
|
14648
14778
|
attr_dev(button, "class", "InfoCardEditButton");
|
|
14649
|
-
add_location(button, file,
|
|
14779
|
+
add_location(button, file, 285, 10, 13401);
|
|
14650
14780
|
attr_dev(div4, "class", "InfoCardControlArea");
|
|
14651
|
-
add_location(div4, file,
|
|
14781
|
+
add_location(div4, file, 284, 8, 13357);
|
|
14652
14782
|
attr_dev(div5, "class", "InfoCard");
|
|
14653
|
-
add_location(div5, file,
|
|
14783
|
+
add_location(div5, file, 189, 6, 7373);
|
|
14654
14784
|
attr_dev(div6, "class", "InfoCardWrapper");
|
|
14655
|
-
add_location(div6, file,
|
|
14785
|
+
add_location(div6, file, 180, 4, 6890);
|
|
14656
14786
|
attr_dev(div7, "class", "InfoCardSection");
|
|
14657
|
-
add_location(div7, file,
|
|
14787
|
+
add_location(div7, file, 179, 2, 6856);
|
|
14658
14788
|
},
|
|
14659
14789
|
m: function mount(target, anchor) {
|
|
14660
14790
|
insert_dev(target, div7, anchor);
|
|
@@ -14675,6 +14805,7 @@
|
|
|
14675
14805
|
append_dev(div5, t5);
|
|
14676
14806
|
append_dev(div5, div4);
|
|
14677
14807
|
append_dev(div4, button);
|
|
14808
|
+
append_dev(button, t6);
|
|
14678
14809
|
append_dev(div4, t7);
|
|
14679
14810
|
if (if_block1) if_block1.m(div4, null);
|
|
14680
14811
|
append_dev(div7, t8);
|
|
@@ -14682,28 +14813,20 @@
|
|
|
14682
14813
|
|
|
14683
14814
|
if (!mounted) {
|
|
14684
14815
|
dispose = [
|
|
14685
|
-
listen_dev(span, "click", prevent_default(/*click_handler*/ ctx[
|
|
14686
|
-
listen_dev(button, "click", /*click_handler_3*/ ctx[
|
|
14816
|
+
listen_dev(span, "click", prevent_default(/*click_handler*/ ctx[18]), false, true, false),
|
|
14817
|
+
listen_dev(button, "click", /*click_handler_3*/ ctx[21], false, false, false)
|
|
14687
14818
|
];
|
|
14688
14819
|
|
|
14689
14820
|
mounted = true;
|
|
14690
14821
|
}
|
|
14691
14822
|
},
|
|
14692
14823
|
p: function update(ctx, dirty) {
|
|
14693
|
-
if (dirty[0] & /*limitsdata, limitname*/
|
|
14824
|
+
if (dirty[0] & /*limitsdata, limitname*/ 3 && t0_value !== (t0_value = (/*limitsdata*/ ctx[0] ? /*limitname*/ ctx[1] : "") + "")) set_data_dev(t0, t0_value);
|
|
14694
14825
|
|
|
14695
|
-
if (dirty[0] & /*showPopup*/
|
|
14826
|
+
if (dirty[0] & /*showPopup*/ 8 && player_account_gaming_limits_popup_showpopup_value !== (player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[3][0])) {
|
|
14696
14827
|
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value);
|
|
14697
14828
|
}
|
|
14698
14829
|
|
|
14699
|
-
if (dirty[0] & /*infocontent*/ 4) {
|
|
14700
|
-
set_custom_element_data(player_account_gaming_limits_popup, "infocontent", /*infocontent*/ ctx[2]);
|
|
14701
|
-
}
|
|
14702
|
-
|
|
14703
|
-
if (dirty[0] & /*infoname*/ 2) {
|
|
14704
|
-
set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
|
|
14705
|
-
}
|
|
14706
|
-
|
|
14707
14830
|
if (current_block_type === (current_block_type = select_block_type_1(ctx, dirty)) && if_block0) {
|
|
14708
14831
|
if_block0.p(ctx, dirty);
|
|
14709
14832
|
} else {
|
|
@@ -14716,7 +14839,9 @@
|
|
|
14716
14839
|
}
|
|
14717
14840
|
}
|
|
14718
14841
|
|
|
14719
|
-
if (
|
|
14842
|
+
if (dirty[0] & /*$_*/ 1024 && t6_value !== (t6_value = /*$_*/ ctx[10]("cardText.edit") + "")) set_data_dev(t6, t6_value);
|
|
14843
|
+
|
|
14844
|
+
if (!/*amountIsUnset*/ ctx[4] && !/*limitsdata*/ ctx[0].isModified && /*changeableDataset*/ ctx[9]) {
|
|
14720
14845
|
if (if_block1) {
|
|
14721
14846
|
if_block1.p(ctx, dirty);
|
|
14722
14847
|
} else {
|
|
@@ -14729,7 +14854,7 @@
|
|
|
14729
14854
|
if_block1 = null;
|
|
14730
14855
|
}
|
|
14731
14856
|
|
|
14732
|
-
if (/*openLimitsModal*/ ctx[
|
|
14857
|
+
if (/*openLimitsModal*/ ctx[6]) {
|
|
14733
14858
|
if (if_block2) {
|
|
14734
14859
|
if_block2.p(ctx, dirty);
|
|
14735
14860
|
} else {
|
|
@@ -14756,14 +14881,14 @@
|
|
|
14756
14881
|
block,
|
|
14757
14882
|
id: create_else_block.name,
|
|
14758
14883
|
type: "else",
|
|
14759
|
-
source: "(
|
|
14884
|
+
source: "(179:0) {:else}",
|
|
14760
14885
|
ctx
|
|
14761
14886
|
});
|
|
14762
14887
|
|
|
14763
14888
|
return block;
|
|
14764
14889
|
}
|
|
14765
14890
|
|
|
14766
|
-
// (
|
|
14891
|
+
// (177:0) {#if isLoading}
|
|
14767
14892
|
function create_if_block(ctx) {
|
|
14768
14893
|
let div;
|
|
14769
14894
|
|
|
@@ -14771,7 +14896,7 @@
|
|
|
14771
14896
|
c: function create() {
|
|
14772
14897
|
div = element("div");
|
|
14773
14898
|
attr_dev(div, "class", "ModalLoader");
|
|
14774
|
-
add_location(div, file,
|
|
14899
|
+
add_location(div, file, 177, 2, 6814);
|
|
14775
14900
|
},
|
|
14776
14901
|
m: function mount(target, anchor) {
|
|
14777
14902
|
insert_dev(target, div, anchor);
|
|
@@ -14786,14 +14911,14 @@
|
|
|
14786
14911
|
block,
|
|
14787
14912
|
id: create_if_block.name,
|
|
14788
14913
|
type: "if",
|
|
14789
|
-
source: "(
|
|
14914
|
+
source: "(177:0) {#if isLoading}",
|
|
14790
14915
|
ctx
|
|
14791
14916
|
});
|
|
14792
14917
|
|
|
14793
14918
|
return block;
|
|
14794
14919
|
}
|
|
14795
14920
|
|
|
14796
|
-
// (
|
|
14921
|
+
// (265:12) {:else}
|
|
14797
14922
|
function create_else_block_5(ctx) {
|
|
14798
14923
|
let div6;
|
|
14799
14924
|
let div2;
|
|
@@ -14819,12 +14944,14 @@
|
|
|
14819
14944
|
let t5;
|
|
14820
14945
|
let div5;
|
|
14821
14946
|
let div3;
|
|
14947
|
+
let t6_value = /*$_*/ ctx[10]("cardText.expirationDate") + "";
|
|
14948
|
+
let t6;
|
|
14822
14949
|
let t7;
|
|
14823
14950
|
let div4;
|
|
14824
14951
|
|
|
14825
14952
|
let t8_value = (/*limitsdata*/ ctx[0] && /*limitsdata*/ ctx[0].expiryDate
|
|
14826
|
-
? moment(/*limitsdata*/ ctx[0].expiryDate).year() > /*currentDate*/ ctx[
|
|
14827
|
-
? /*currentDate*/ ctx[
|
|
14953
|
+
? moment(/*limitsdata*/ ctx[0].expiryDate).year() > /*currentDate*/ ctx[13].year() + 30
|
|
14954
|
+
? /*currentDate*/ ctx[13].add(5, "years").format("D/M/YYYY - h:mm A")
|
|
14828
14955
|
: moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
|
|
14829
14956
|
: "N/A") + "";
|
|
14830
14957
|
|
|
@@ -14845,26 +14972,26 @@
|
|
|
14845
14972
|
t5 = space();
|
|
14846
14973
|
div5 = element("div");
|
|
14847
14974
|
div3 = element("div");
|
|
14848
|
-
|
|
14975
|
+
t6 = text(t6_value);
|
|
14849
14976
|
t7 = space();
|
|
14850
14977
|
div4 = element("div");
|
|
14851
14978
|
t8 = text(t8_value);
|
|
14852
14979
|
attr_dev(div0, "class", "InfoCardRowTitle");
|
|
14853
|
-
add_location(div0, file,
|
|
14980
|
+
add_location(div0, file, 268, 18, 12474);
|
|
14854
14981
|
attr_dev(span, "class", "InfoCardCurrency");
|
|
14855
|
-
add_location(span, file,
|
|
14982
|
+
add_location(span, file, 273, 20, 12714);
|
|
14856
14983
|
attr_dev(div1, "class", "InfoCardRowValue");
|
|
14857
|
-
add_location(div1, file,
|
|
14984
|
+
add_location(div1, file, 271, 18, 12606);
|
|
14858
14985
|
attr_dev(div2, "class", "InfoCardRow InfoMainRow");
|
|
14859
|
-
add_location(div2, file,
|
|
14986
|
+
add_location(div2, file, 267, 16, 12418);
|
|
14860
14987
|
attr_dev(div3, "class", "InfoCardRowTitle");
|
|
14861
|
-
add_location(div3, file,
|
|
14988
|
+
add_location(div3, file, 277, 18, 12900);
|
|
14862
14989
|
attr_dev(div4, "class", "InfoCardRowValue");
|
|
14863
|
-
add_location(div4, file,
|
|
14990
|
+
add_location(div4, file, 278, 18, 12986);
|
|
14864
14991
|
attr_dev(div5, "class", "InfoCardRow");
|
|
14865
|
-
add_location(div5, file,
|
|
14992
|
+
add_location(div5, file, 276, 16, 12856);
|
|
14866
14993
|
attr_dev(div6, "class", "InfoCardBox");
|
|
14867
|
-
add_location(div6, file,
|
|
14994
|
+
add_location(div6, file, 266, 14, 12376);
|
|
14868
14995
|
},
|
|
14869
14996
|
m: function mount(target, anchor) {
|
|
14870
14997
|
insert_dev(target, div6, anchor);
|
|
@@ -14880,6 +15007,7 @@
|
|
|
14880
15007
|
append_dev(div6, t5);
|
|
14881
15008
|
append_dev(div6, div5);
|
|
14882
15009
|
append_dev(div5, div3);
|
|
15010
|
+
append_dev(div3, t6);
|
|
14883
15011
|
append_dev(div5, t7);
|
|
14884
15012
|
append_dev(div5, div4);
|
|
14885
15013
|
append_dev(div4, t8);
|
|
@@ -14895,9 +15023,11 @@
|
|
|
14895
15023
|
? /*limitsdata*/ ctx[0].currency
|
|
14896
15024
|
: "") + "")) set_data_dev(t4, t4_value);
|
|
14897
15025
|
|
|
15026
|
+
if (dirty[0] & /*$_*/ 1024 && t6_value !== (t6_value = /*$_*/ ctx[10]("cardText.expirationDate") + "")) set_data_dev(t6, t6_value);
|
|
15027
|
+
|
|
14898
15028
|
if (dirty[0] & /*limitsdata*/ 1 && t8_value !== (t8_value = (/*limitsdata*/ ctx[0] && /*limitsdata*/ ctx[0].expiryDate
|
|
14899
|
-
? moment(/*limitsdata*/ ctx[0].expiryDate).year() > /*currentDate*/ ctx[
|
|
14900
|
-
? /*currentDate*/ ctx[
|
|
15029
|
+
? moment(/*limitsdata*/ ctx[0].expiryDate).year() > /*currentDate*/ ctx[13].year() + 30
|
|
15030
|
+
? /*currentDate*/ ctx[13].add(5, "years").format("D/M/YYYY - h:mm A")
|
|
14901
15031
|
: moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
|
|
14902
15032
|
: "N/A") + "")) set_data_dev(t8, t8_value);
|
|
14903
15033
|
},
|
|
@@ -14910,19 +15040,19 @@
|
|
|
14910
15040
|
block,
|
|
14911
15041
|
id: create_else_block_5.name,
|
|
14912
15042
|
type: "else",
|
|
14913
|
-
source: "(
|
|
15043
|
+
source: "(265:12) {:else}",
|
|
14914
15044
|
ctx
|
|
14915
15045
|
});
|
|
14916
15046
|
|
|
14917
15047
|
return block;
|
|
14918
15048
|
}
|
|
14919
15049
|
|
|
14920
|
-
// (
|
|
15050
|
+
// (193:12) {#if Array.isArray(limitsdata)}
|
|
14921
15051
|
function create_if_block_3(ctx) {
|
|
14922
15052
|
let if_block_anchor;
|
|
14923
15053
|
|
|
14924
15054
|
function select_block_type_2(ctx, dirty) {
|
|
14925
|
-
if (/*limitname*/ ctx[
|
|
15055
|
+
if (/*limitname*/ ctx[1] === "Time Limit") return create_if_block_4;
|
|
14926
15056
|
return create_else_block_3;
|
|
14927
15057
|
}
|
|
14928
15058
|
|
|
@@ -14961,14 +15091,14 @@
|
|
|
14961
15091
|
block,
|
|
14962
15092
|
id: create_if_block_3.name,
|
|
14963
15093
|
type: "if",
|
|
14964
|
-
source: "(
|
|
15094
|
+
source: "(193:12) {#if Array.isArray(limitsdata)}",
|
|
14965
15095
|
ctx
|
|
14966
15096
|
});
|
|
14967
15097
|
|
|
14968
15098
|
return block;
|
|
14969
15099
|
}
|
|
14970
15100
|
|
|
14971
|
-
// (
|
|
15101
|
+
// (233:14) {:else}
|
|
14972
15102
|
function create_else_block_3(ctx) {
|
|
14973
15103
|
let each_1_anchor;
|
|
14974
15104
|
let each_value_1 = /*limitsdata*/ ctx[0];
|
|
@@ -14995,7 +15125,7 @@
|
|
|
14995
15125
|
insert_dev(target, each_1_anchor, anchor);
|
|
14996
15126
|
},
|
|
14997
15127
|
p: function update(ctx, dirty) {
|
|
14998
|
-
if (dirty[0] & /*removeItemLimit, limitsdata, limitname, isMobile, showPopup,
|
|
15128
|
+
if (dirty[0] & /*removeItemLimit, limitsdata, limitname, isMobile, showPopup, playercurrency, openInfoPopup, currentDate, $_*/ 209935) {
|
|
14999
15129
|
each_value_1 = /*limitsdata*/ ctx[0];
|
|
15000
15130
|
validate_each_argument(each_value_1);
|
|
15001
15131
|
let i;
|
|
@@ -15029,14 +15159,14 @@
|
|
|
15029
15159
|
block,
|
|
15030
15160
|
id: create_else_block_3.name,
|
|
15031
15161
|
type: "else",
|
|
15032
|
-
source: "(
|
|
15162
|
+
source: "(233:14) {:else}",
|
|
15033
15163
|
ctx
|
|
15034
15164
|
});
|
|
15035
15165
|
|
|
15036
15166
|
return block;
|
|
15037
15167
|
}
|
|
15038
15168
|
|
|
15039
|
-
// (
|
|
15169
|
+
// (195:14) {#if limitname === 'Time Limit'}
|
|
15040
15170
|
function create_if_block_4(ctx) {
|
|
15041
15171
|
let each_1_anchor;
|
|
15042
15172
|
let each_value = /*limitsdata*/ ctx[0];
|
|
@@ -15063,7 +15193,7 @@
|
|
|
15063
15193
|
insert_dev(target, each_1_anchor, anchor);
|
|
15064
15194
|
},
|
|
15065
15195
|
p: function update(ctx, dirty) {
|
|
15066
|
-
if (dirty[0] & /*removeItemLimit, limitsdata, limitname, isMobile, showPopup,
|
|
15196
|
+
if (dirty[0] & /*removeItemLimit, limitsdata, limitname, isMobile, showPopup, openInfoPopup, currentDate, $_*/ 209931) {
|
|
15067
15197
|
each_value = /*limitsdata*/ ctx[0];
|
|
15068
15198
|
validate_each_argument(each_value);
|
|
15069
15199
|
let i;
|
|
@@ -15097,28 +15227,33 @@
|
|
|
15097
15227
|
block,
|
|
15098
15228
|
id: create_if_block_4.name,
|
|
15099
15229
|
type: "if",
|
|
15100
|
-
source: "(
|
|
15230
|
+
source: "(195:14) {#if limitname === 'Time Limit'}",
|
|
15101
15231
|
ctx
|
|
15102
15232
|
});
|
|
15103
15233
|
|
|
15104
15234
|
return block;
|
|
15105
15235
|
}
|
|
15106
15236
|
|
|
15107
|
-
// (
|
|
15237
|
+
// (249:24) {:else}
|
|
15108
15238
|
function create_else_block_4(ctx) {
|
|
15109
15239
|
let div;
|
|
15240
|
+
let t_value = /*$_*/ ctx[10]("cardText.notAvailable") + "";
|
|
15241
|
+
let t;
|
|
15110
15242
|
|
|
15111
15243
|
const block = {
|
|
15112
15244
|
c: function create() {
|
|
15113
15245
|
div = element("div");
|
|
15114
|
-
|
|
15246
|
+
t = text(t_value);
|
|
15115
15247
|
attr_dev(div, "class", "InfoCardRowValue");
|
|
15116
|
-
add_location(div, file,
|
|
15248
|
+
add_location(div, file, 249, 26, 11317);
|
|
15117
15249
|
},
|
|
15118
15250
|
m: function mount(target, anchor) {
|
|
15119
15251
|
insert_dev(target, div, anchor);
|
|
15252
|
+
append_dev(div, t);
|
|
15253
|
+
},
|
|
15254
|
+
p: function update(ctx, dirty) {
|
|
15255
|
+
if (dirty[0] & /*$_*/ 1024 && t_value !== (t_value = /*$_*/ ctx[10]("cardText.notAvailable") + "")) set_data_dev(t, t_value);
|
|
15120
15256
|
},
|
|
15121
|
-
p: noop$1,
|
|
15122
15257
|
d: function destroy(detaching) {
|
|
15123
15258
|
if (detaching) detach_dev(div);
|
|
15124
15259
|
}
|
|
@@ -15128,21 +15263,21 @@
|
|
|
15128
15263
|
block,
|
|
15129
15264
|
id: create_else_block_4.name,
|
|
15130
15265
|
type: "else",
|
|
15131
|
-
source: "(
|
|
15266
|
+
source: "(249:24) {:else}",
|
|
15132
15267
|
ctx
|
|
15133
15268
|
});
|
|
15134
15269
|
|
|
15135
15270
|
return block;
|
|
15136
15271
|
}
|
|
15137
15272
|
|
|
15138
|
-
// (
|
|
15273
|
+
// (247:24) {#if itemInfo.expiryDate}
|
|
15139
15274
|
function create_if_block_12(ctx) {
|
|
15140
15275
|
let div;
|
|
15141
15276
|
|
|
15142
|
-
let t_value = (/*itemInfo*/ ctx[
|
|
15143
|
-
? moment(/*itemInfo*/ ctx[
|
|
15144
|
-
? /*currentDate*/ ctx[
|
|
15145
|
-
: moment(/*itemInfo*/ ctx[
|
|
15277
|
+
let t_value = (/*itemInfo*/ ctx[33]
|
|
15278
|
+
? moment(/*itemInfo*/ ctx[33].expiryDate).year() > /*currentDate*/ ctx[13].year() + 30
|
|
15279
|
+
? /*currentDate*/ ctx[13].add(5, "years").format("D/M/YYYY - h:mm A")
|
|
15280
|
+
: moment(/*itemInfo*/ ctx[33].expiryDate).format("D/M/YYYY - h:mm A")
|
|
15146
15281
|
: "N/A") + "";
|
|
15147
15282
|
|
|
15148
15283
|
let t;
|
|
@@ -15152,17 +15287,17 @@
|
|
|
15152
15287
|
div = element("div");
|
|
15153
15288
|
t = text(t_value);
|
|
15154
15289
|
attr_dev(div, "class", "InfoCardRowValue");
|
|
15155
|
-
add_location(div, file,
|
|
15290
|
+
add_location(div, file, 247, 26, 11021);
|
|
15156
15291
|
},
|
|
15157
15292
|
m: function mount(target, anchor) {
|
|
15158
15293
|
insert_dev(target, div, anchor);
|
|
15159
15294
|
append_dev(div, t);
|
|
15160
15295
|
},
|
|
15161
15296
|
p: function update(ctx, dirty) {
|
|
15162
|
-
if (dirty[0] & /*limitsdata*/ 1 && t_value !== (t_value = (/*itemInfo*/ ctx[
|
|
15163
|
-
? moment(/*itemInfo*/ ctx[
|
|
15164
|
-
? /*currentDate*/ ctx[
|
|
15165
|
-
: moment(/*itemInfo*/ ctx[
|
|
15297
|
+
if (dirty[0] & /*limitsdata*/ 1 && t_value !== (t_value = (/*itemInfo*/ ctx[33]
|
|
15298
|
+
? moment(/*itemInfo*/ ctx[33].expiryDate).year() > /*currentDate*/ ctx[13].year() + 30
|
|
15299
|
+
? /*currentDate*/ ctx[13].add(5, "years").format("D/M/YYYY - h:mm A")
|
|
15300
|
+
: moment(/*itemInfo*/ ctx[33].expiryDate).format("D/M/YYYY - h:mm A")
|
|
15166
15301
|
: "N/A") + "")) set_data_dev(t, t_value);
|
|
15167
15302
|
},
|
|
15168
15303
|
d: function destroy(detaching) {
|
|
@@ -15174,14 +15309,14 @@
|
|
|
15174
15309
|
block,
|
|
15175
15310
|
id: create_if_block_12.name,
|
|
15176
15311
|
type: "if",
|
|
15177
|
-
source: "(
|
|
15312
|
+
source: "(247:24) {#if itemInfo.expiryDate}",
|
|
15178
15313
|
ctx
|
|
15179
15314
|
});
|
|
15180
15315
|
|
|
15181
15316
|
return block;
|
|
15182
15317
|
}
|
|
15183
15318
|
|
|
15184
|
-
// (
|
|
15319
|
+
// (256:85)
|
|
15185
15320
|
function create_if_block_11(ctx) {
|
|
15186
15321
|
let div;
|
|
15187
15322
|
let span;
|
|
@@ -15193,7 +15328,7 @@
|
|
|
15193
15328
|
let dispose;
|
|
15194
15329
|
|
|
15195
15330
|
function click_handler_2() {
|
|
15196
|
-
return /*click_handler_2*/ ctx[
|
|
15331
|
+
return /*click_handler_2*/ ctx[20](/*index*/ ctx[35]);
|
|
15197
15332
|
}
|
|
15198
15333
|
|
|
15199
15334
|
const block = {
|
|
@@ -15204,15 +15339,13 @@
|
|
|
15204
15339
|
t1 = space();
|
|
15205
15340
|
player_account_gaming_limits_popup = element("player-account-gaming-limits-popup");
|
|
15206
15341
|
attr_dev(span, "class", "InfoCardIcon");
|
|
15207
|
-
add_location(span, file,
|
|
15208
|
-
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[
|
|
15209
|
-
set_custom_element_data(player_account_gaming_limits_popup, "
|
|
15210
|
-
set_custom_element_data(player_account_gaming_limits_popup, "
|
|
15211
|
-
|
|
15212
|
-
|
|
15213
|
-
add_location(
|
|
15214
|
-
attr_dev(div, "class", "InfoCardIconWrapper " + (/*isMobile*/ ctx[13] ? "InfoCardIconMobileWrapper" : ""));
|
|
15215
|
-
add_location(div, file, 254, 22, 11115);
|
|
15342
|
+
add_location(span, file, 257, 24, 11883);
|
|
15343
|
+
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[3][/*index*/ ctx[35] + 1]);
|
|
15344
|
+
set_custom_element_data(player_account_gaming_limits_popup, "iteminfoamount", player_account_gaming_limits_popup_iteminfoamount_value = /*itemInfo*/ ctx[33].updateAmount);
|
|
15345
|
+
set_custom_element_data(player_account_gaming_limits_popup, "playercurrency", /*playercurrency*/ ctx[2]);
|
|
15346
|
+
add_location(player_account_gaming_limits_popup, file, 258, 26, 12002);
|
|
15347
|
+
attr_dev(div, "class", "InfoCardIconWrapper " + (/*isMobile*/ ctx[12] ? "InfoCardIconMobileWrapper" : ""));
|
|
15348
|
+
add_location(div, file, 256, 22, 11779);
|
|
15216
15349
|
},
|
|
15217
15350
|
m: function mount(target, anchor) {
|
|
15218
15351
|
insert_dev(target, div, anchor);
|
|
@@ -15228,24 +15361,16 @@
|
|
|
15228
15361
|
p: function update(new_ctx, dirty) {
|
|
15229
15362
|
ctx = new_ctx;
|
|
15230
15363
|
|
|
15231
|
-
if (dirty[0] & /*showPopup*/
|
|
15364
|
+
if (dirty[0] & /*showPopup*/ 8 && player_account_gaming_limits_popup_showpopup_value !== (player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[3][/*index*/ ctx[35] + 1])) {
|
|
15232
15365
|
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value);
|
|
15233
15366
|
}
|
|
15234
15367
|
|
|
15235
|
-
if (dirty[0] & /*
|
|
15236
|
-
set_custom_element_data(player_account_gaming_limits_popup, "infocontent", /*infocontent*/ ctx[2]);
|
|
15237
|
-
}
|
|
15238
|
-
|
|
15239
|
-
if (dirty[0] & /*infoname*/ 2) {
|
|
15240
|
-
set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
|
|
15241
|
-
}
|
|
15242
|
-
|
|
15243
|
-
if (dirty[0] & /*limitsdata*/ 1 && player_account_gaming_limits_popup_iteminfoamount_value !== (player_account_gaming_limits_popup_iteminfoamount_value = /*itemInfo*/ ctx[35].updateAmount)) {
|
|
15368
|
+
if (dirty[0] & /*limitsdata*/ 1 && player_account_gaming_limits_popup_iteminfoamount_value !== (player_account_gaming_limits_popup_iteminfoamount_value = /*itemInfo*/ ctx[33].updateAmount)) {
|
|
15244
15369
|
set_custom_element_data(player_account_gaming_limits_popup, "iteminfoamount", player_account_gaming_limits_popup_iteminfoamount_value);
|
|
15245
15370
|
}
|
|
15246
15371
|
|
|
15247
|
-
if (dirty[0] & /*playercurrency*/
|
|
15248
|
-
set_custom_element_data(player_account_gaming_limits_popup, "playercurrency", /*playercurrency*/ ctx[
|
|
15372
|
+
if (dirty[0] & /*playercurrency*/ 4) {
|
|
15373
|
+
set_custom_element_data(player_account_gaming_limits_popup, "playercurrency", /*playercurrency*/ ctx[2]);
|
|
15249
15374
|
}
|
|
15250
15375
|
},
|
|
15251
15376
|
d: function destroy(detaching) {
|
|
@@ -15259,14 +15384,14 @@
|
|
|
15259
15384
|
block,
|
|
15260
15385
|
id: create_if_block_11.name,
|
|
15261
15386
|
type: "if",
|
|
15262
|
-
source: "(
|
|
15387
|
+
source: "(256:85) ",
|
|
15263
15388
|
ctx
|
|
15264
15389
|
});
|
|
15265
15390
|
|
|
15266
15391
|
return block;
|
|
15267
15392
|
}
|
|
15268
15393
|
|
|
15269
|
-
// (
|
|
15394
|
+
// (254:20) {#if itemInfo.amount != 'No limit' && !itemInfo.isModified}
|
|
15270
15395
|
function create_if_block_10(ctx) {
|
|
15271
15396
|
let div;
|
|
15272
15397
|
let span;
|
|
@@ -15277,9 +15402,9 @@
|
|
|
15277
15402
|
c: function create() {
|
|
15278
15403
|
div = element("div");
|
|
15279
15404
|
span = element("span");
|
|
15280
|
-
add_location(span, file,
|
|
15405
|
+
add_location(span, file, 254, 102, 11651);
|
|
15281
15406
|
attr_dev(div, "class", "InfoCardRemoveIcon");
|
|
15282
|
-
add_location(div, file,
|
|
15407
|
+
add_location(div, file, 254, 22, 11571);
|
|
15283
15408
|
},
|
|
15284
15409
|
m: function mount(target, anchor) {
|
|
15285
15410
|
insert_dev(target, div, anchor);
|
|
@@ -15290,7 +15415,7 @@
|
|
|
15290
15415
|
div,
|
|
15291
15416
|
"click",
|
|
15292
15417
|
function () {
|
|
15293
|
-
if (is_function(/*removeItemLimit*/ ctx[
|
|
15418
|
+
if (is_function(/*removeItemLimit*/ ctx[16](/*itemInfo*/ ctx[33], /*limitname*/ ctx[1]))) /*removeItemLimit*/ ctx[16](/*itemInfo*/ ctx[33], /*limitname*/ ctx[1]).apply(this, arguments);
|
|
15294
15419
|
},
|
|
15295
15420
|
false,
|
|
15296
15421
|
false,
|
|
@@ -15314,42 +15439,44 @@
|
|
|
15314
15439
|
block,
|
|
15315
15440
|
id: create_if_block_10.name,
|
|
15316
15441
|
type: "if",
|
|
15317
|
-
source: "(
|
|
15442
|
+
source: "(254:20) {#if itemInfo.amount != 'No limit' && !itemInfo.isModified}",
|
|
15318
15443
|
ctx
|
|
15319
15444
|
});
|
|
15320
15445
|
|
|
15321
15446
|
return block;
|
|
15322
15447
|
}
|
|
15323
15448
|
|
|
15324
|
-
// (
|
|
15449
|
+
// (235:16) {#each limitsdata as itemInfo, index}
|
|
15325
15450
|
function create_each_block_1(ctx) {
|
|
15326
15451
|
let div6;
|
|
15327
15452
|
let div5;
|
|
15328
15453
|
let div2;
|
|
15329
15454
|
let div0;
|
|
15330
|
-
let t0_value = (/*itemInfo*/ ctx[
|
|
15455
|
+
let t0_value = (/*itemInfo*/ ctx[33] ? /*itemInfo*/ ctx[33].period : "") + "";
|
|
15331
15456
|
let t0;
|
|
15332
15457
|
let t1;
|
|
15333
15458
|
let div1;
|
|
15334
|
-
let t2_value = (/*itemInfo*/ ctx[
|
|
15459
|
+
let t2_value = (/*itemInfo*/ ctx[33] ? /*itemInfo*/ ctx[33].amount : 0) + "";
|
|
15335
15460
|
let t2;
|
|
15336
15461
|
let t3;
|
|
15337
15462
|
let span;
|
|
15338
15463
|
|
|
15339
|
-
let t4_value = (/*itemInfo*/ ctx[
|
|
15340
|
-
? /*itemInfo*/ ctx[
|
|
15464
|
+
let t4_value = (/*itemInfo*/ ctx[33]
|
|
15465
|
+
? /*itemInfo*/ ctx[33].currency
|
|
15341
15466
|
: "") + "";
|
|
15342
15467
|
|
|
15343
15468
|
let t4;
|
|
15344
15469
|
let t5;
|
|
15345
15470
|
let div4;
|
|
15346
15471
|
let div3;
|
|
15472
|
+
let t6_value = /*$_*/ ctx[10]("cardText.expirationDate") + "";
|
|
15473
|
+
let t6;
|
|
15347
15474
|
let t7;
|
|
15348
15475
|
let t8;
|
|
15349
15476
|
let t9;
|
|
15350
15477
|
|
|
15351
15478
|
function select_block_type_6(ctx, dirty) {
|
|
15352
|
-
if (/*itemInfo*/ ctx[
|
|
15479
|
+
if (/*itemInfo*/ ctx[33].expiryDate) return create_if_block_12;
|
|
15353
15480
|
return create_else_block_4;
|
|
15354
15481
|
}
|
|
15355
15482
|
|
|
@@ -15357,8 +15484,8 @@
|
|
|
15357
15484
|
let if_block0 = current_block_type(ctx);
|
|
15358
15485
|
|
|
15359
15486
|
function select_block_type_7(ctx, dirty) {
|
|
15360
|
-
if (/*itemInfo*/ ctx[
|
|
15361
|
-
if (/*itemInfo*/ ctx[
|
|
15487
|
+
if (/*itemInfo*/ ctx[33].amount != "No limit" && !/*itemInfo*/ ctx[33].isModified) return create_if_block_10;
|
|
15488
|
+
if (/*itemInfo*/ ctx[33].amount != "No limit" && /*itemInfo*/ ctx[33].isModified) return create_if_block_11;
|
|
15362
15489
|
}
|
|
15363
15490
|
|
|
15364
15491
|
let current_block_type_1 = select_block_type_7(ctx);
|
|
@@ -15380,28 +15507,28 @@
|
|
|
15380
15507
|
t5 = space();
|
|
15381
15508
|
div4 = element("div");
|
|
15382
15509
|
div3 = element("div");
|
|
15383
|
-
|
|
15510
|
+
t6 = text(t6_value);
|
|
15384
15511
|
t7 = space();
|
|
15385
15512
|
if_block0.c();
|
|
15386
15513
|
t8 = space();
|
|
15387
15514
|
if (if_block1) if_block1.c();
|
|
15388
15515
|
t9 = space();
|
|
15389
15516
|
attr_dev(div0, "class", "InfoCardRowTitle");
|
|
15390
|
-
add_location(div0, file,
|
|
15517
|
+
add_location(div0, file, 238, 24, 10461);
|
|
15391
15518
|
attr_dev(span, "class", "InfoCardCurrency");
|
|
15392
|
-
add_location(span, file,
|
|
15519
|
+
add_location(span, file, 241, 26, 10671);
|
|
15393
15520
|
attr_dev(div1, "class", "InfoCardRowValue");
|
|
15394
|
-
add_location(div1, file,
|
|
15521
|
+
add_location(div1, file, 239, 24, 10555);
|
|
15395
15522
|
attr_dev(div2, "class", "InfoCardRow InfoMainRow");
|
|
15396
|
-
add_location(div2, file,
|
|
15523
|
+
add_location(div2, file, 237, 22, 10399);
|
|
15397
15524
|
attr_dev(div3, "class", "InfoCardRowTitle");
|
|
15398
|
-
add_location(div3, file,
|
|
15525
|
+
add_location(div3, file, 245, 24, 10877);
|
|
15399
15526
|
attr_dev(div4, "class", "InfoCardRow");
|
|
15400
|
-
add_location(div4, file,
|
|
15527
|
+
add_location(div4, file, 244, 22, 10827);
|
|
15401
15528
|
attr_dev(div5, "class", "InfoCardRowContainer");
|
|
15402
|
-
add_location(div5, file,
|
|
15529
|
+
add_location(div5, file, 236, 20, 10342);
|
|
15403
15530
|
attr_dev(div6, "class", "InfoCardBox InfoCardMultipleItems");
|
|
15404
|
-
add_location(div6, file,
|
|
15531
|
+
add_location(div6, file, 235, 18, 10274);
|
|
15405
15532
|
},
|
|
15406
15533
|
m: function mount(target, anchor) {
|
|
15407
15534
|
insert_dev(target, div6, anchor);
|
|
@@ -15418,6 +15545,7 @@
|
|
|
15418
15545
|
append_dev(div5, t5);
|
|
15419
15546
|
append_dev(div5, div4);
|
|
15420
15547
|
append_dev(div4, div3);
|
|
15548
|
+
append_dev(div3, t6);
|
|
15421
15549
|
append_dev(div4, t7);
|
|
15422
15550
|
if_block0.m(div4, null);
|
|
15423
15551
|
append_dev(div6, t8);
|
|
@@ -15425,13 +15553,15 @@
|
|
|
15425
15553
|
append_dev(div6, t9);
|
|
15426
15554
|
},
|
|
15427
15555
|
p: function update(ctx, dirty) {
|
|
15428
|
-
if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[
|
|
15429
|
-
if (dirty[0] & /*limitsdata*/ 1 && t2_value !== (t2_value = (/*itemInfo*/ ctx[
|
|
15556
|
+
if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[33] ? /*itemInfo*/ ctx[33].period : "") + "")) set_data_dev(t0, t0_value);
|
|
15557
|
+
if (dirty[0] & /*limitsdata*/ 1 && t2_value !== (t2_value = (/*itemInfo*/ ctx[33] ? /*itemInfo*/ ctx[33].amount : 0) + "")) set_data_dev(t2, t2_value);
|
|
15430
15558
|
|
|
15431
|
-
if (dirty[0] & /*limitsdata*/ 1 && t4_value !== (t4_value = (/*itemInfo*/ ctx[
|
|
15432
|
-
? /*itemInfo*/ ctx[
|
|
15559
|
+
if (dirty[0] & /*limitsdata*/ 1 && t4_value !== (t4_value = (/*itemInfo*/ ctx[33]
|
|
15560
|
+
? /*itemInfo*/ ctx[33].currency
|
|
15433
15561
|
: "") + "")) set_data_dev(t4, t4_value);
|
|
15434
15562
|
|
|
15563
|
+
if (dirty[0] & /*$_*/ 1024 && t6_value !== (t6_value = /*$_*/ ctx[10]("cardText.expirationDate") + "")) set_data_dev(t6, t6_value);
|
|
15564
|
+
|
|
15435
15565
|
if (current_block_type === (current_block_type = select_block_type_6(ctx)) && if_block0) {
|
|
15436
15566
|
if_block0.p(ctx, dirty);
|
|
15437
15567
|
} else {
|
|
@@ -15470,28 +15600,33 @@
|
|
|
15470
15600
|
block,
|
|
15471
15601
|
id: create_each_block_1.name,
|
|
15472
15602
|
type: "each",
|
|
15473
|
-
source: "(
|
|
15603
|
+
source: "(235:16) {#each limitsdata as itemInfo, index}",
|
|
15474
15604
|
ctx
|
|
15475
15605
|
});
|
|
15476
15606
|
|
|
15477
15607
|
return block;
|
|
15478
15608
|
}
|
|
15479
15609
|
|
|
15480
|
-
// (
|
|
15610
|
+
// (208:26) {:else}
|
|
15481
15611
|
function create_else_block_2(ctx) {
|
|
15482
15612
|
let span;
|
|
15613
|
+
let t_value = /*$_*/ ctx[10]("cardText.noLimit") + "";
|
|
15614
|
+
let t;
|
|
15483
15615
|
|
|
15484
15616
|
const block = {
|
|
15485
15617
|
c: function create() {
|
|
15486
15618
|
span = element("span");
|
|
15487
|
-
|
|
15619
|
+
t = text(t_value);
|
|
15488
15620
|
attr_dev(span, "class", "InfoCardCurrency");
|
|
15489
|
-
add_location(span, file,
|
|
15621
|
+
add_location(span, file, 208, 28, 8435);
|
|
15490
15622
|
},
|
|
15491
15623
|
m: function mount(target, anchor) {
|
|
15492
15624
|
insert_dev(target, span, anchor);
|
|
15625
|
+
append_dev(span, t);
|
|
15626
|
+
},
|
|
15627
|
+
p: function update(ctx, dirty) {
|
|
15628
|
+
if (dirty[0] & /*$_*/ 1024 && t_value !== (t_value = /*$_*/ ctx[10]("cardText.noLimit") + "")) set_data_dev(t, t_value);
|
|
15493
15629
|
},
|
|
15494
|
-
p: noop$1,
|
|
15495
15630
|
d: function destroy(detaching) {
|
|
15496
15631
|
if (detaching) detach_dev(span);
|
|
15497
15632
|
}
|
|
@@ -15501,20 +15636,20 @@
|
|
|
15501
15636
|
block,
|
|
15502
15637
|
id: create_else_block_2.name,
|
|
15503
15638
|
type: "else",
|
|
15504
|
-
source: "(
|
|
15639
|
+
source: "(208:26) {:else}",
|
|
15505
15640
|
ctx
|
|
15506
15641
|
});
|
|
15507
15642
|
|
|
15508
15643
|
return block;
|
|
15509
15644
|
}
|
|
15510
15645
|
|
|
15511
|
-
// (
|
|
15646
|
+
// (203:26) {#if itemInfo.amount !== 0}
|
|
15512
15647
|
function create_if_block_8(ctx) {
|
|
15513
|
-
let t0_value = (/*itemInfo*/ ctx[
|
|
15648
|
+
let t0_value = (/*itemInfo*/ ctx[33] ? /*itemInfo*/ ctx[33].amount : 0) + "";
|
|
15514
15649
|
let t0;
|
|
15515
15650
|
let t1;
|
|
15516
15651
|
let if_block_anchor;
|
|
15517
|
-
let if_block = /*itemInfo*/ ctx[
|
|
15652
|
+
let if_block = /*itemInfo*/ ctx[33].amount != "No limit" && create_if_block_9(ctx);
|
|
15518
15653
|
|
|
15519
15654
|
const block = {
|
|
15520
15655
|
c: function create() {
|
|
@@ -15530,10 +15665,12 @@
|
|
|
15530
15665
|
insert_dev(target, if_block_anchor, anchor);
|
|
15531
15666
|
},
|
|
15532
15667
|
p: function update(ctx, dirty) {
|
|
15533
|
-
if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[
|
|
15668
|
+
if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[33] ? /*itemInfo*/ ctx[33].amount : 0) + "")) set_data_dev(t0, t0_value);
|
|
15534
15669
|
|
|
15535
|
-
if (/*itemInfo*/ ctx[
|
|
15536
|
-
if (if_block)
|
|
15670
|
+
if (/*itemInfo*/ ctx[33].amount != "No limit") {
|
|
15671
|
+
if (if_block) {
|
|
15672
|
+
if_block.p(ctx, dirty);
|
|
15673
|
+
} else {
|
|
15537
15674
|
if_block = create_if_block_9(ctx);
|
|
15538
15675
|
if_block.c();
|
|
15539
15676
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -15555,26 +15692,32 @@
|
|
|
15555
15692
|
block,
|
|
15556
15693
|
id: create_if_block_8.name,
|
|
15557
15694
|
type: "if",
|
|
15558
|
-
source: "(
|
|
15695
|
+
source: "(203:26) {#if itemInfo.amount !== 0}",
|
|
15559
15696
|
ctx
|
|
15560
15697
|
});
|
|
15561
15698
|
|
|
15562
15699
|
return block;
|
|
15563
15700
|
}
|
|
15564
15701
|
|
|
15565
|
-
// (
|
|
15702
|
+
// (205:28) {#if itemInfo.amount != 'No limit'}
|
|
15566
15703
|
function create_if_block_9(ctx) {
|
|
15567
15704
|
let span;
|
|
15705
|
+
let t_value = /*$_*/ ctx[10]("cardText.minutes") + "";
|
|
15706
|
+
let t;
|
|
15568
15707
|
|
|
15569
15708
|
const block = {
|
|
15570
15709
|
c: function create() {
|
|
15571
15710
|
span = element("span");
|
|
15572
|
-
|
|
15711
|
+
t = text(t_value);
|
|
15573
15712
|
attr_dev(span, "class", "InfoCardCurrency");
|
|
15574
|
-
add_location(span, file,
|
|
15713
|
+
add_location(span, file, 205, 30, 8276);
|
|
15575
15714
|
},
|
|
15576
15715
|
m: function mount(target, anchor) {
|
|
15577
15716
|
insert_dev(target, span, anchor);
|
|
15717
|
+
append_dev(span, t);
|
|
15718
|
+
},
|
|
15719
|
+
p: function update(ctx, dirty) {
|
|
15720
|
+
if (dirty[0] & /*$_*/ 1024 && t_value !== (t_value = /*$_*/ ctx[10]("cardText.minutes") + "")) set_data_dev(t, t_value);
|
|
15578
15721
|
},
|
|
15579
15722
|
d: function destroy(detaching) {
|
|
15580
15723
|
if (detaching) detach_dev(span);
|
|
@@ -15585,28 +15728,33 @@
|
|
|
15585
15728
|
block,
|
|
15586
15729
|
id: create_if_block_9.name,
|
|
15587
15730
|
type: "if",
|
|
15588
|
-
source: "(
|
|
15731
|
+
source: "(205:28) {#if itemInfo.amount != 'No limit'}",
|
|
15589
15732
|
ctx
|
|
15590
15733
|
});
|
|
15591
15734
|
|
|
15592
15735
|
return block;
|
|
15593
15736
|
}
|
|
15594
15737
|
|
|
15595
|
-
// (
|
|
15738
|
+
// (218:24) {:else}
|
|
15596
15739
|
function create_else_block_1(ctx) {
|
|
15597
15740
|
let div;
|
|
15741
|
+
let t_value = /*$_*/ ctx[10]("cardText.notAvailable") + "";
|
|
15742
|
+
let t;
|
|
15598
15743
|
|
|
15599
15744
|
const block = {
|
|
15600
15745
|
c: function create() {
|
|
15601
15746
|
div = element("div");
|
|
15602
|
-
|
|
15747
|
+
t = text(t_value);
|
|
15603
15748
|
attr_dev(div, "class", "InfoCardRowValue");
|
|
15604
|
-
add_location(div, file,
|
|
15749
|
+
add_location(div, file, 218, 26, 9178);
|
|
15605
15750
|
},
|
|
15606
15751
|
m: function mount(target, anchor) {
|
|
15607
15752
|
insert_dev(target, div, anchor);
|
|
15753
|
+
append_dev(div, t);
|
|
15754
|
+
},
|
|
15755
|
+
p: function update(ctx, dirty) {
|
|
15756
|
+
if (dirty[0] & /*$_*/ 1024 && t_value !== (t_value = /*$_*/ ctx[10]("cardText.notAvailable") + "")) set_data_dev(t, t_value);
|
|
15608
15757
|
},
|
|
15609
|
-
p: noop$1,
|
|
15610
15758
|
d: function destroy(detaching) {
|
|
15611
15759
|
if (detaching) detach_dev(div);
|
|
15612
15760
|
}
|
|
@@ -15616,21 +15764,21 @@
|
|
|
15616
15764
|
block,
|
|
15617
15765
|
id: create_else_block_1.name,
|
|
15618
15766
|
type: "else",
|
|
15619
|
-
source: "(
|
|
15767
|
+
source: "(218:24) {:else}",
|
|
15620
15768
|
ctx
|
|
15621
15769
|
});
|
|
15622
15770
|
|
|
15623
15771
|
return block;
|
|
15624
15772
|
}
|
|
15625
15773
|
|
|
15626
|
-
// (
|
|
15774
|
+
// (216:24) {#if itemInfo.expiryDate}
|
|
15627
15775
|
function create_if_block_7(ctx) {
|
|
15628
15776
|
let div;
|
|
15629
15777
|
|
|
15630
|
-
let t_value = (/*itemInfo*/ ctx[
|
|
15631
|
-
? moment(/*itemInfo*/ ctx[
|
|
15632
|
-
? /*currentDate*/ ctx[
|
|
15633
|
-
: moment(/*itemInfo*/ ctx[
|
|
15778
|
+
let t_value = (/*itemInfo*/ ctx[33]
|
|
15779
|
+
? moment(/*itemInfo*/ ctx[33].expiryDate).year() > /*currentDate*/ ctx[13].year() + 30
|
|
15780
|
+
? /*currentDate*/ ctx[13].add(5, "years").format("D/M/YYYY - h:mm A")
|
|
15781
|
+
: moment(/*itemInfo*/ ctx[33].expiryDate).format("D/M/YYYY - h:mm A")
|
|
15634
15782
|
: "N/A") + "";
|
|
15635
15783
|
|
|
15636
15784
|
let t;
|
|
@@ -15640,17 +15788,17 @@
|
|
|
15640
15788
|
div = element("div");
|
|
15641
15789
|
t = text(t_value);
|
|
15642
15790
|
attr_dev(div, "class", "InfoCardRowValue");
|
|
15643
|
-
add_location(div, file,
|
|
15791
|
+
add_location(div, file, 216, 26, 8882);
|
|
15644
15792
|
},
|
|
15645
15793
|
m: function mount(target, anchor) {
|
|
15646
15794
|
insert_dev(target, div, anchor);
|
|
15647
15795
|
append_dev(div, t);
|
|
15648
15796
|
},
|
|
15649
15797
|
p: function update(ctx, dirty) {
|
|
15650
|
-
if (dirty[0] & /*limitsdata*/ 1 && t_value !== (t_value = (/*itemInfo*/ ctx[
|
|
15651
|
-
? moment(/*itemInfo*/ ctx[
|
|
15652
|
-
? /*currentDate*/ ctx[
|
|
15653
|
-
: moment(/*itemInfo*/ ctx[
|
|
15798
|
+
if (dirty[0] & /*limitsdata*/ 1 && t_value !== (t_value = (/*itemInfo*/ ctx[33]
|
|
15799
|
+
? moment(/*itemInfo*/ ctx[33].expiryDate).year() > /*currentDate*/ ctx[13].year() + 30
|
|
15800
|
+
? /*currentDate*/ ctx[13].add(5, "years").format("D/M/YYYY - h:mm A")
|
|
15801
|
+
: moment(/*itemInfo*/ ctx[33].expiryDate).format("D/M/YYYY - h:mm A")
|
|
15654
15802
|
: "N/A") + "")) set_data_dev(t, t_value);
|
|
15655
15803
|
},
|
|
15656
15804
|
d: function destroy(detaching) {
|
|
@@ -15662,14 +15810,14 @@
|
|
|
15662
15810
|
block,
|
|
15663
15811
|
id: create_if_block_7.name,
|
|
15664
15812
|
type: "if",
|
|
15665
|
-
source: "(
|
|
15813
|
+
source: "(216:24) {#if itemInfo.expiryDate}",
|
|
15666
15814
|
ctx
|
|
15667
15815
|
});
|
|
15668
15816
|
|
|
15669
15817
|
return block;
|
|
15670
15818
|
}
|
|
15671
15819
|
|
|
15672
|
-
// (
|
|
15820
|
+
// (225:85)
|
|
15673
15821
|
function create_if_block_6(ctx) {
|
|
15674
15822
|
let div;
|
|
15675
15823
|
let span;
|
|
@@ -15681,7 +15829,7 @@
|
|
|
15681
15829
|
let dispose;
|
|
15682
15830
|
|
|
15683
15831
|
function click_handler_1() {
|
|
15684
|
-
return /*click_handler_1*/ ctx[
|
|
15832
|
+
return /*click_handler_1*/ ctx[19](/*index*/ ctx[35]);
|
|
15685
15833
|
}
|
|
15686
15834
|
|
|
15687
15835
|
const block = {
|
|
@@ -15692,15 +15840,13 @@
|
|
|
15692
15840
|
t1 = space();
|
|
15693
15841
|
player_account_gaming_limits_popup = element("player-account-gaming-limits-popup");
|
|
15694
15842
|
attr_dev(span, "class", "InfoCardIcon");
|
|
15695
|
-
add_location(span, file,
|
|
15696
|
-
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[
|
|
15697
|
-
set_custom_element_data(player_account_gaming_limits_popup, "
|
|
15698
|
-
set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
|
|
15699
|
-
set_custom_element_data(player_account_gaming_limits_popup, "iteminfoamount", player_account_gaming_limits_popup_iteminfoamount_value = /*itemInfo*/ ctx[35].updateMinutes);
|
|
15843
|
+
add_location(span, file, 226, 24, 9744);
|
|
15844
|
+
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[3][/*index*/ ctx[35] + 1]);
|
|
15845
|
+
set_custom_element_data(player_account_gaming_limits_popup, "iteminfoamount", player_account_gaming_limits_popup_iteminfoamount_value = /*itemInfo*/ ctx[33].updateMinutes);
|
|
15700
15846
|
set_custom_element_data(player_account_gaming_limits_popup, "playercurrency", "minutes");
|
|
15701
|
-
add_location(player_account_gaming_limits_popup, file,
|
|
15702
|
-
attr_dev(div, "class", "InfoCardIconWrapper " + (/*isMobile*/ ctx[
|
|
15703
|
-
add_location(div, file,
|
|
15847
|
+
add_location(player_account_gaming_limits_popup, file, 227, 26, 9863);
|
|
15848
|
+
attr_dev(div, "class", "InfoCardIconWrapper " + (/*isMobile*/ ctx[12] ? "InfoCardIconMobileWrapper" : ""));
|
|
15849
|
+
add_location(div, file, 225, 22, 9640);
|
|
15704
15850
|
},
|
|
15705
15851
|
m: function mount(target, anchor) {
|
|
15706
15852
|
insert_dev(target, div, anchor);
|
|
@@ -15716,19 +15862,11 @@
|
|
|
15716
15862
|
p: function update(new_ctx, dirty) {
|
|
15717
15863
|
ctx = new_ctx;
|
|
15718
15864
|
|
|
15719
|
-
if (dirty[0] & /*showPopup*/
|
|
15865
|
+
if (dirty[0] & /*showPopup*/ 8 && player_account_gaming_limits_popup_showpopup_value !== (player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[3][/*index*/ ctx[35] + 1])) {
|
|
15720
15866
|
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value);
|
|
15721
15867
|
}
|
|
15722
15868
|
|
|
15723
|
-
if (dirty[0] & /*
|
|
15724
|
-
set_custom_element_data(player_account_gaming_limits_popup, "infocontent", /*infocontent*/ ctx[2]);
|
|
15725
|
-
}
|
|
15726
|
-
|
|
15727
|
-
if (dirty[0] & /*infoname*/ 2) {
|
|
15728
|
-
set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
|
|
15729
|
-
}
|
|
15730
|
-
|
|
15731
|
-
if (dirty[0] & /*limitsdata*/ 1 && player_account_gaming_limits_popup_iteminfoamount_value !== (player_account_gaming_limits_popup_iteminfoamount_value = /*itemInfo*/ ctx[35].updateMinutes)) {
|
|
15869
|
+
if (dirty[0] & /*limitsdata*/ 1 && player_account_gaming_limits_popup_iteminfoamount_value !== (player_account_gaming_limits_popup_iteminfoamount_value = /*itemInfo*/ ctx[33].updateMinutes)) {
|
|
15732
15870
|
set_custom_element_data(player_account_gaming_limits_popup, "iteminfoamount", player_account_gaming_limits_popup_iteminfoamount_value);
|
|
15733
15871
|
}
|
|
15734
15872
|
},
|
|
@@ -15743,14 +15881,14 @@
|
|
|
15743
15881
|
block,
|
|
15744
15882
|
id: create_if_block_6.name,
|
|
15745
15883
|
type: "if",
|
|
15746
|
-
source: "(
|
|
15884
|
+
source: "(225:85) ",
|
|
15747
15885
|
ctx
|
|
15748
15886
|
});
|
|
15749
15887
|
|
|
15750
15888
|
return block;
|
|
15751
15889
|
}
|
|
15752
15890
|
|
|
15753
|
-
// (
|
|
15891
|
+
// (223:20) {#if itemInfo.amount != 'No limit' && !itemInfo.isModified}
|
|
15754
15892
|
function create_if_block_5(ctx) {
|
|
15755
15893
|
let div;
|
|
15756
15894
|
let span;
|
|
@@ -15761,9 +15899,9 @@
|
|
|
15761
15899
|
c: function create() {
|
|
15762
15900
|
div = element("div");
|
|
15763
15901
|
span = element("span");
|
|
15764
|
-
add_location(span, file,
|
|
15902
|
+
add_location(span, file, 223, 102, 9512);
|
|
15765
15903
|
attr_dev(div, "class", "InfoCardRemoveIcon");
|
|
15766
|
-
add_location(div, file,
|
|
15904
|
+
add_location(div, file, 223, 22, 9432);
|
|
15767
15905
|
},
|
|
15768
15906
|
m: function mount(target, anchor) {
|
|
15769
15907
|
insert_dev(target, div, anchor);
|
|
@@ -15774,7 +15912,7 @@
|
|
|
15774
15912
|
div,
|
|
15775
15913
|
"click",
|
|
15776
15914
|
function () {
|
|
15777
|
-
if (is_function(/*removeItemLimit*/ ctx[
|
|
15915
|
+
if (is_function(/*removeItemLimit*/ ctx[16](/*itemInfo*/ ctx[33], /*limitname*/ ctx[1]))) /*removeItemLimit*/ ctx[16](/*itemInfo*/ ctx[33], /*limitname*/ ctx[1]).apply(this, arguments);
|
|
15778
15916
|
},
|
|
15779
15917
|
false,
|
|
15780
15918
|
false,
|
|
@@ -15798,32 +15936,34 @@
|
|
|
15798
15936
|
block,
|
|
15799
15937
|
id: create_if_block_5.name,
|
|
15800
15938
|
type: "if",
|
|
15801
|
-
source: "(
|
|
15939
|
+
source: "(223:20) {#if itemInfo.amount != 'No limit' && !itemInfo.isModified}",
|
|
15802
15940
|
ctx
|
|
15803
15941
|
});
|
|
15804
15942
|
|
|
15805
15943
|
return block;
|
|
15806
15944
|
}
|
|
15807
15945
|
|
|
15808
|
-
// (
|
|
15946
|
+
// (196:16) {#each limitsdata as itemInfo, index}
|
|
15809
15947
|
function create_each_block(ctx) {
|
|
15810
15948
|
let div6;
|
|
15811
15949
|
let div5;
|
|
15812
15950
|
let div2;
|
|
15813
15951
|
let div0;
|
|
15814
|
-
let t0_value = (/*itemInfo*/ ctx[
|
|
15952
|
+
let t0_value = (/*itemInfo*/ ctx[33] ? /*itemInfo*/ ctx[33].period : "") + "";
|
|
15815
15953
|
let t0;
|
|
15816
15954
|
let t1;
|
|
15817
15955
|
let div1;
|
|
15818
15956
|
let t2;
|
|
15819
15957
|
let div4;
|
|
15820
15958
|
let div3;
|
|
15959
|
+
let t3_value = /*$_*/ ctx[10]("cardText.expirationDate") + "";
|
|
15960
|
+
let t3;
|
|
15821
15961
|
let t4;
|
|
15822
15962
|
let t5;
|
|
15823
15963
|
let t6;
|
|
15824
15964
|
|
|
15825
15965
|
function select_block_type_3(ctx, dirty) {
|
|
15826
|
-
if (/*itemInfo*/ ctx[
|
|
15966
|
+
if (/*itemInfo*/ ctx[33].amount !== 0) return create_if_block_8;
|
|
15827
15967
|
return create_else_block_2;
|
|
15828
15968
|
}
|
|
15829
15969
|
|
|
@@ -15831,7 +15971,7 @@
|
|
|
15831
15971
|
let if_block0 = current_block_type(ctx);
|
|
15832
15972
|
|
|
15833
15973
|
function select_block_type_4(ctx, dirty) {
|
|
15834
|
-
if (/*itemInfo*/ ctx[
|
|
15974
|
+
if (/*itemInfo*/ ctx[33].expiryDate) return create_if_block_7;
|
|
15835
15975
|
return create_else_block_1;
|
|
15836
15976
|
}
|
|
15837
15977
|
|
|
@@ -15839,8 +15979,8 @@
|
|
|
15839
15979
|
let if_block1 = current_block_type_1(ctx);
|
|
15840
15980
|
|
|
15841
15981
|
function select_block_type_5(ctx, dirty) {
|
|
15842
|
-
if (/*itemInfo*/ ctx[
|
|
15843
|
-
if (/*itemInfo*/ ctx[
|
|
15982
|
+
if (/*itemInfo*/ ctx[33].amount != "No limit" && !/*itemInfo*/ ctx[33].isModified) return create_if_block_5;
|
|
15983
|
+
if (/*itemInfo*/ ctx[33].amount != "No limit" && /*itemInfo*/ ctx[33].isModified) return create_if_block_6;
|
|
15844
15984
|
}
|
|
15845
15985
|
|
|
15846
15986
|
let current_block_type_2 = select_block_type_5(ctx);
|
|
@@ -15859,26 +15999,26 @@
|
|
|
15859
15999
|
t2 = space();
|
|
15860
16000
|
div4 = element("div");
|
|
15861
16001
|
div3 = element("div");
|
|
15862
|
-
|
|
16002
|
+
t3 = text(t3_value);
|
|
15863
16003
|
t4 = space();
|
|
15864
16004
|
if_block1.c();
|
|
15865
16005
|
t5 = space();
|
|
15866
16006
|
if (if_block2) if_block2.c();
|
|
15867
16007
|
t6 = space();
|
|
15868
16008
|
attr_dev(div0, "class", "InfoCardRowTitle");
|
|
15869
|
-
add_location(div0, file,
|
|
16009
|
+
add_location(div0, file, 199, 24, 7864);
|
|
15870
16010
|
attr_dev(div1, "class", "InfoCardRowValue");
|
|
15871
|
-
add_location(div1, file,
|
|
16011
|
+
add_location(div1, file, 200, 24, 7958);
|
|
15872
16012
|
attr_dev(div2, "class", "InfoCardRow InfoMainRow");
|
|
15873
|
-
add_location(div2, file,
|
|
16013
|
+
add_location(div2, file, 198, 22, 7802);
|
|
15874
16014
|
attr_dev(div3, "class", "InfoCardRowTitle");
|
|
15875
|
-
add_location(div3, file,
|
|
16015
|
+
add_location(div3, file, 213, 24, 8662);
|
|
15876
16016
|
attr_dev(div4, "class", "InfoCardRow");
|
|
15877
|
-
add_location(div4, file,
|
|
16017
|
+
add_location(div4, file, 212, 22, 8612);
|
|
15878
16018
|
attr_dev(div5, "class", "InfoCardRowContainer");
|
|
15879
|
-
add_location(div5, file,
|
|
16019
|
+
add_location(div5, file, 197, 20, 7745);
|
|
15880
16020
|
attr_dev(div6, "class", "InfoCardBox InfoCardMultipleItems");
|
|
15881
|
-
add_location(div6, file,
|
|
16021
|
+
add_location(div6, file, 196, 18, 7677);
|
|
15882
16022
|
},
|
|
15883
16023
|
m: function mount(target, anchor) {
|
|
15884
16024
|
insert_dev(target, div6, anchor);
|
|
@@ -15892,6 +16032,7 @@
|
|
|
15892
16032
|
append_dev(div5, t2);
|
|
15893
16033
|
append_dev(div5, div4);
|
|
15894
16034
|
append_dev(div4, div3);
|
|
16035
|
+
append_dev(div3, t3);
|
|
15895
16036
|
append_dev(div4, t4);
|
|
15896
16037
|
if_block1.m(div4, null);
|
|
15897
16038
|
append_dev(div6, t5);
|
|
@@ -15899,7 +16040,7 @@
|
|
|
15899
16040
|
append_dev(div6, t6);
|
|
15900
16041
|
},
|
|
15901
16042
|
p: function update(ctx, dirty) {
|
|
15902
|
-
if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[
|
|
16043
|
+
if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[33] ? /*itemInfo*/ ctx[33].period : "") + "")) set_data_dev(t0, t0_value);
|
|
15903
16044
|
|
|
15904
16045
|
if (current_block_type === (current_block_type = select_block_type_3(ctx)) && if_block0) {
|
|
15905
16046
|
if_block0.p(ctx, dirty);
|
|
@@ -15913,6 +16054,8 @@
|
|
|
15913
16054
|
}
|
|
15914
16055
|
}
|
|
15915
16056
|
|
|
16057
|
+
if (dirty[0] & /*$_*/ 1024 && t3_value !== (t3_value = /*$_*/ ctx[10]("cardText.expirationDate") + "")) set_data_dev(t3, t3_value);
|
|
16058
|
+
|
|
15916
16059
|
if (current_block_type_1 === (current_block_type_1 = select_block_type_4(ctx)) && if_block1) {
|
|
15917
16060
|
if_block1.p(ctx, dirty);
|
|
15918
16061
|
} else {
|
|
@@ -15952,35 +16095,40 @@
|
|
|
15952
16095
|
block,
|
|
15953
16096
|
id: create_each_block.name,
|
|
15954
16097
|
type: "each",
|
|
15955
|
-
source: "(
|
|
16098
|
+
source: "(196:16) {#each limitsdata as itemInfo, index}",
|
|
15956
16099
|
ctx
|
|
15957
16100
|
});
|
|
15958
16101
|
|
|
15959
16102
|
return block;
|
|
15960
16103
|
}
|
|
15961
16104
|
|
|
15962
|
-
// (
|
|
16105
|
+
// (287:10) {#if !amountIsUnset && !limitsdata.isModified && changeableDataset}
|
|
15963
16106
|
function create_if_block_2(ctx) {
|
|
15964
16107
|
let button;
|
|
16108
|
+
let t_value = /*$_*/ ctx[10]("cardText.removeLimits") + "";
|
|
16109
|
+
let t;
|
|
15965
16110
|
let mounted;
|
|
15966
16111
|
let dispose;
|
|
15967
16112
|
|
|
15968
16113
|
const block = {
|
|
15969
16114
|
c: function create() {
|
|
15970
16115
|
button = element("button");
|
|
15971
|
-
|
|
16116
|
+
t = text(t_value);
|
|
15972
16117
|
attr_dev(button, "class", "InfoCardRemoveButton");
|
|
15973
|
-
add_location(button, file,
|
|
16118
|
+
add_location(button, file, 287, 12, 13599);
|
|
15974
16119
|
},
|
|
15975
16120
|
m: function mount(target, anchor) {
|
|
15976
16121
|
insert_dev(target, button, anchor);
|
|
16122
|
+
append_dev(button, t);
|
|
15977
16123
|
|
|
15978
16124
|
if (!mounted) {
|
|
15979
|
-
dispose = listen_dev(button, "click", /*click_handler_4*/ ctx[
|
|
16125
|
+
dispose = listen_dev(button, "click", /*click_handler_4*/ ctx[22], false, false, false);
|
|
15980
16126
|
mounted = true;
|
|
15981
16127
|
}
|
|
15982
16128
|
},
|
|
15983
|
-
p:
|
|
16129
|
+
p: function update(ctx, dirty) {
|
|
16130
|
+
if (dirty[0] & /*$_*/ 1024 && t_value !== (t_value = /*$_*/ ctx[10]("cardText.removeLimits") + "")) set_data_dev(t, t_value);
|
|
16131
|
+
},
|
|
15984
16132
|
d: function destroy(detaching) {
|
|
15985
16133
|
if (detaching) detach_dev(button);
|
|
15986
16134
|
mounted = false;
|
|
@@ -15992,14 +16140,14 @@
|
|
|
15992
16140
|
block,
|
|
15993
16141
|
id: create_if_block_2.name,
|
|
15994
16142
|
type: "if",
|
|
15995
|
-
source: "(
|
|
16143
|
+
source: "(287:10) {#if !amountIsUnset && !limitsdata.isModified && changeableDataset}",
|
|
15996
16144
|
ctx
|
|
15997
16145
|
});
|
|
15998
16146
|
|
|
15999
16147
|
return block;
|
|
16000
16148
|
}
|
|
16001
16149
|
|
|
16002
|
-
// (
|
|
16150
|
+
// (293:4) {#if openLimitsModal}
|
|
16003
16151
|
function create_if_block_1(ctx) {
|
|
16004
16152
|
let player_account_modal;
|
|
16005
16153
|
let player_account_gaming_limits_confirmation_modal;
|
|
@@ -16010,22 +16158,22 @@
|
|
|
16010
16158
|
player_account_modal = element("player-account-modal");
|
|
16011
16159
|
player_account_gaming_limits_confirmation_modal = element("player-account-gaming-limits-confirmation-modal");
|
|
16012
16160
|
|
|
16013
|
-
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", player_account_gaming_limits_confirmation_modal_modaltext_value = /*removeAllLimits*/ ctx[
|
|
16014
|
-
? /*removeAllLimitsText*/ ctx[
|
|
16015
|
-
: /*removeLimitText*/ ctx[
|
|
16161
|
+
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", player_account_gaming_limits_confirmation_modal_modaltext_value = /*removeAllLimits*/ ctx[5]
|
|
16162
|
+
? /*removeAllLimitsText*/ ctx[7]
|
|
16163
|
+
: /*removeLimitText*/ ctx[8]);
|
|
16016
16164
|
|
|
16017
16165
|
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modalsource", "infoCard");
|
|
16018
|
-
add_location(player_account_gaming_limits_confirmation_modal, file,
|
|
16019
|
-
add_location(player_account_modal, file,
|
|
16166
|
+
add_location(player_account_gaming_limits_confirmation_modal, file, 294, 8, 13835);
|
|
16167
|
+
add_location(player_account_modal, file, 293, 6, 13804);
|
|
16020
16168
|
},
|
|
16021
16169
|
m: function mount(target, anchor) {
|
|
16022
16170
|
insert_dev(target, player_account_modal, anchor);
|
|
16023
16171
|
append_dev(player_account_modal, player_account_gaming_limits_confirmation_modal);
|
|
16024
16172
|
},
|
|
16025
16173
|
p: function update(ctx, dirty) {
|
|
16026
|
-
if (dirty[0] & /*removeAllLimits, removeAllLimitsText, removeLimitText*/
|
|
16027
|
-
? /*removeAllLimitsText*/ ctx[
|
|
16028
|
-
: /*removeLimitText*/ ctx[
|
|
16174
|
+
if (dirty[0] & /*removeAllLimits, removeAllLimitsText, removeLimitText*/ 416 && player_account_gaming_limits_confirmation_modal_modaltext_value !== (player_account_gaming_limits_confirmation_modal_modaltext_value = /*removeAllLimits*/ ctx[5]
|
|
16175
|
+
? /*removeAllLimitsText*/ ctx[7]
|
|
16176
|
+
: /*removeLimitText*/ ctx[8])) {
|
|
16029
16177
|
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", player_account_gaming_limits_confirmation_modal_modaltext_value);
|
|
16030
16178
|
}
|
|
16031
16179
|
},
|
|
@@ -16038,7 +16186,7 @@
|
|
|
16038
16186
|
block,
|
|
16039
16187
|
id: create_if_block_1.name,
|
|
16040
16188
|
type: "if",
|
|
16041
|
-
source: "(
|
|
16189
|
+
source: "(293:4) {#if openLimitsModal}",
|
|
16042
16190
|
ctx
|
|
16043
16191
|
});
|
|
16044
16192
|
|
|
@@ -16049,7 +16197,7 @@
|
|
|
16049
16197
|
let if_block_anchor;
|
|
16050
16198
|
|
|
16051
16199
|
function select_block_type(ctx, dirty) {
|
|
16052
|
-
if (/*isLoading*/ ctx[
|
|
16200
|
+
if (/*isLoading*/ ctx[11]) return create_if_block;
|
|
16053
16201
|
return create_else_block;
|
|
16054
16202
|
}
|
|
16055
16203
|
|
|
@@ -16092,17 +16240,22 @@
|
|
|
16092
16240
|
}
|
|
16093
16241
|
|
|
16094
16242
|
function instance($$self, $$props, $$invalidate) {
|
|
16243
|
+
let $_;
|
|
16244
|
+
validate_store(X, "_");
|
|
16245
|
+
component_subscribe($$self, X, $$value => $$invalidate(10, $_ = $$value));
|
|
16095
16246
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
16096
16247
|
validate_slots("undefined", slots, []);
|
|
16097
16248
|
let { limitsdata = "" } = $$props;
|
|
16098
|
-
let { infoname = "" } = $$props;
|
|
16099
|
-
let { infocontent = "" } = $$props;
|
|
16100
16249
|
let { limitname = "" } = $$props;
|
|
16101
16250
|
let { playercurrency = "" } = $$props;
|
|
16102
|
-
|
|
16251
|
+
|
|
16252
|
+
Object.keys(PlayerGamingLimitsCardTranslations).forEach(item => {
|
|
16253
|
+
addNewMessages$3(item, PlayerGamingLimitsCardTranslations[item]);
|
|
16254
|
+
});
|
|
16255
|
+
|
|
16103
16256
|
let isLoading = false;
|
|
16104
16257
|
let showPopup = new Array(5).fill(0);
|
|
16105
|
-
let periodLimitsArray = ["
|
|
16258
|
+
let periodLimitsArray = [$_("cardText.daily"), $_("cardText.weekly"), $_("cardText.monthly")];
|
|
16106
16259
|
let amountIsUnset = true;
|
|
16107
16260
|
let removeAllLimits = true;
|
|
16108
16261
|
let openLimitsModal = false;
|
|
@@ -16125,8 +16278,8 @@
|
|
|
16125
16278
|
};
|
|
16126
16279
|
|
|
16127
16280
|
const removeLimits = resetData => {
|
|
16128
|
-
$$invalidate(
|
|
16129
|
-
$$invalidate(
|
|
16281
|
+
$$invalidate(6, openLimitsModal = true);
|
|
16282
|
+
$$invalidate(5, removeAllLimits = true);
|
|
16130
16283
|
window.postMessage({ type: "ShowLimitsConfirmationModal" }, window.location.href);
|
|
16131
16284
|
|
|
16132
16285
|
window.postMessage(
|
|
@@ -16140,8 +16293,8 @@
|
|
|
16140
16293
|
};
|
|
16141
16294
|
|
|
16142
16295
|
const removeItemLimit = (itemData, limitName) => {
|
|
16143
|
-
$$invalidate(
|
|
16144
|
-
$$invalidate(
|
|
16296
|
+
$$invalidate(6, openLimitsModal = true);
|
|
16297
|
+
$$invalidate(5, removeAllLimits = false);
|
|
16145
16298
|
window.postMessage({ type: "ShowLimitsConfirmationModal" }, window.location.href);
|
|
16146
16299
|
|
|
16147
16300
|
window.postMessage(
|
|
@@ -16164,7 +16317,7 @@
|
|
|
16164
16317
|
|
|
16165
16318
|
setTimeout(
|
|
16166
16319
|
() => {
|
|
16167
|
-
$$invalidate(
|
|
16320
|
+
$$invalidate(3, showPopup[index] = true, showPopup);
|
|
16168
16321
|
},
|
|
16169
16322
|
50
|
|
16170
16323
|
);
|
|
@@ -16183,25 +16336,25 @@
|
|
|
16183
16336
|
|
|
16184
16337
|
limitsArray.forEach(itemData => {
|
|
16185
16338
|
if (itemData.period === limitsData) {
|
|
16186
|
-
if (itemData.amount !== "
|
|
16339
|
+
if (itemData.amount !== $_("cardText.noLimit")) $$invalidate(4, amountIsUnset = false);
|
|
16187
16340
|
}
|
|
16188
16341
|
});
|
|
16189
16342
|
});
|
|
16190
16343
|
|
|
16191
16344
|
periodLimitsArray.forEach(addedPeriod => {
|
|
16192
16345
|
// add missing fields as fields with default values
|
|
16193
|
-
if (limitsArray.name === "
|
|
16194
|
-
insertDefaultPeriodData(limitsArray, safekeepLimitsArray.indexOf(addedPeriod), addedPeriod, "time");
|
|
16346
|
+
if (limitsArray.name === $_("cardText.timeLimit")) {
|
|
16347
|
+
insertDefaultPeriodData(limitsArray, safekeepLimitsArray.indexOf(addedPeriod), addedPeriod, $_("cardText.time"));
|
|
16195
16348
|
} else {
|
|
16196
|
-
insertDefaultPeriodData(limitsArray, safekeepLimitsArray.indexOf(addedPeriod), addedPeriod, "currency");
|
|
16349
|
+
insertDefaultPeriodData(limitsArray, safekeepLimitsArray.indexOf(addedPeriod), addedPeriod, $_("cardText.currency"));
|
|
16197
16350
|
}
|
|
16198
16351
|
});
|
|
16199
16352
|
};
|
|
16200
16353
|
|
|
16201
16354
|
const addDefaultValues = data => {
|
|
16202
16355
|
return {
|
|
16203
|
-
period: "
|
|
16204
|
-
amount: "
|
|
16356
|
+
period: $_("cardText.daily"),
|
|
16357
|
+
amount: $_("cardText.noLimit"),
|
|
16205
16358
|
currency: "",
|
|
16206
16359
|
isModified: false,
|
|
16207
16360
|
expiryDate: ""
|
|
@@ -16211,7 +16364,7 @@
|
|
|
16211
16364
|
const insertDefaultPeriodData = (array, index, addedPeriod, type) => {
|
|
16212
16365
|
let defaultLimitValues = {};
|
|
16213
16366
|
|
|
16214
|
-
if (type === "time") {
|
|
16367
|
+
if (type === $_("cardText.time")) {
|
|
16215
16368
|
defaultLimitValues = {
|
|
16216
16369
|
period: addedPeriod,
|
|
16217
16370
|
minutes: 0,
|
|
@@ -16222,7 +16375,7 @@
|
|
|
16222
16375
|
} else {
|
|
16223
16376
|
defaultLimitValues = {
|
|
16224
16377
|
period: addedPeriod,
|
|
16225
|
-
amount: "
|
|
16378
|
+
amount: $_("cardText.noLimit"),
|
|
16226
16379
|
currency: "",
|
|
16227
16380
|
isModified: false,
|
|
16228
16381
|
expiryDate: ""
|
|
@@ -16233,11 +16386,11 @@
|
|
|
16233
16386
|
};
|
|
16234
16387
|
|
|
16235
16388
|
const orderByPeriod = (a, b) => {
|
|
16236
|
-
if (a.period === "
|
|
16389
|
+
if (a.period === $_("cardText.weekly") && b.period === $_("cardText.daily") || a.period === $_("cardText.monthly") && b.period === $_("cardText.daily") || a.period === $_("cardText.monthly") && b.period === $_("cardText.weekly")) {
|
|
16237
16390
|
return 1;
|
|
16238
16391
|
}
|
|
16239
16392
|
|
|
16240
|
-
if (a.period === "
|
|
16393
|
+
if (a.period === $_("cardText.daily") && b.period === $_("cardText.weekly") || a.period === $_("cardText.daily") && b.period === $_("cardText.monthly") || a.period === $_("cardText.weekly") && b.period === $_("cardText.monthly")) {
|
|
16241
16394
|
return -1;
|
|
16242
16395
|
}
|
|
16243
16396
|
|
|
@@ -16247,22 +16400,22 @@
|
|
|
16247
16400
|
const setLimitModalTexts = () => {
|
|
16248
16401
|
let limitType = "";
|
|
16249
16402
|
|
|
16250
|
-
limitType = limitname === "
|
|
16251
|
-
? "
|
|
16252
|
-
: limitname === "
|
|
16253
|
-
? "
|
|
16254
|
-
: limitname === "
|
|
16255
|
-
? "
|
|
16256
|
-
: "
|
|
16403
|
+
limitType = limitname === $_("cardText.timeLimit")
|
|
16404
|
+
? $_("cardText.timeLimitLower")
|
|
16405
|
+
: limitname === $_("cardText.depositLimit")
|
|
16406
|
+
? $_("cardText.depositLimitLower")
|
|
16407
|
+
: limitname === $_("cardText.wageringLimit")
|
|
16408
|
+
? $_("cardText.wageringLimitLower")
|
|
16409
|
+
: $_("cardText.lossLimitLower");
|
|
16257
16410
|
|
|
16258
|
-
$$invalidate(
|
|
16259
|
-
$$invalidate(
|
|
16411
|
+
$$invalidate(7, removeAllLimitsText = $_("cardText.removeLimitsText", { values: { limit: limitType } }));
|
|
16412
|
+
$$invalidate(8, removeLimitText = $_("cardText.removeLimitText", { values: { limit: limitType } }));
|
|
16260
16413
|
};
|
|
16261
16414
|
|
|
16262
16415
|
const alterableDataset = data => {
|
|
16263
16416
|
data.forEach(dataItem => {
|
|
16264
16417
|
if (dataItem.isModified) {
|
|
16265
|
-
$$invalidate(
|
|
16418
|
+
$$invalidate(9, changeableDataset = false);
|
|
16266
16419
|
}
|
|
16267
16420
|
});
|
|
16268
16421
|
};
|
|
@@ -16270,7 +16423,7 @@
|
|
|
16270
16423
|
const initialLoad = () => {
|
|
16271
16424
|
setLimitModalTexts();
|
|
16272
16425
|
|
|
16273
|
-
if (limitname === "
|
|
16426
|
+
if (limitname === $_("cardText.depositLimit") || limitname === $_("cardText.timeLimit")) {
|
|
16274
16427
|
if (Array.isArray(limitsdata)) {
|
|
16275
16428
|
alterableDataset(limitsdata);
|
|
16276
16429
|
|
|
@@ -16283,9 +16436,14 @@
|
|
|
16283
16436
|
} else {
|
|
16284
16437
|
if (!limitsdata.hasOwnProperty("period")) {
|
|
16285
16438
|
$$invalidate(0, limitsdata = addDefaultValues());
|
|
16286
|
-
|
|
16439
|
+
|
|
16440
|
+
$$invalidate(4, amountIsUnset = limitsdata.amount == $_("cardText.noLimit")
|
|
16441
|
+
? true
|
|
16442
|
+
: false);
|
|
16287
16443
|
} else {
|
|
16288
|
-
$$invalidate(
|
|
16444
|
+
$$invalidate(4, amountIsUnset = limitsdata.amount == $_("cardText.noLimit")
|
|
16445
|
+
? true
|
|
16446
|
+
: false);
|
|
16289
16447
|
}
|
|
16290
16448
|
}
|
|
16291
16449
|
};
|
|
@@ -16294,11 +16452,11 @@
|
|
|
16294
16452
|
if (e.data) {
|
|
16295
16453
|
switch (e.data.type) {
|
|
16296
16454
|
case "ClosePlayerAccountGamingLimitsPopup":
|
|
16297
|
-
$$invalidate(
|
|
16455
|
+
$$invalidate(3, showPopup = new Array(5).fill(0));
|
|
16298
16456
|
break;
|
|
16299
16457
|
case "ModalClosed":
|
|
16300
|
-
$$invalidate(
|
|
16301
|
-
$$invalidate(
|
|
16458
|
+
$$invalidate(6, openLimitsModal = false);
|
|
16459
|
+
$$invalidate(5, removeAllLimits = false);
|
|
16302
16460
|
break;
|
|
16303
16461
|
}
|
|
16304
16462
|
}
|
|
@@ -16312,16 +16470,9 @@
|
|
|
16312
16470
|
};
|
|
16313
16471
|
});
|
|
16314
16472
|
|
|
16315
|
-
const writable_props = [
|
|
16316
|
-
"limitsdata",
|
|
16317
|
-
"infoname",
|
|
16318
|
-
"infocontent",
|
|
16319
|
-
"limitname",
|
|
16320
|
-
"playercurrency",
|
|
16321
|
-
"showdeletenotification"
|
|
16322
|
-
];
|
|
16473
|
+
const writable_props = ["limitsdata", "limitname", "playercurrency"];
|
|
16323
16474
|
|
|
16324
|
-
|
|
16475
|
+
Object_1.keys($$props).forEach(key => {
|
|
16325
16476
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
16326
16477
|
});
|
|
16327
16478
|
|
|
@@ -16333,23 +16484,20 @@
|
|
|
16333
16484
|
|
|
16334
16485
|
$$self.$$set = $$props => {
|
|
16335
16486
|
if ("limitsdata" in $$props) $$invalidate(0, limitsdata = $$props.limitsdata);
|
|
16336
|
-
if ("
|
|
16337
|
-
if ("
|
|
16338
|
-
if ("limitname" in $$props) $$invalidate(3, limitname = $$props.limitname);
|
|
16339
|
-
if ("playercurrency" in $$props) $$invalidate(4, playercurrency = $$props.playercurrency);
|
|
16340
|
-
if ("showdeletenotification" in $$props) $$invalidate(19, showdeletenotification = $$props.showdeletenotification);
|
|
16487
|
+
if ("limitname" in $$props) $$invalidate(1, limitname = $$props.limitname);
|
|
16488
|
+
if ("playercurrency" in $$props) $$invalidate(2, playercurrency = $$props.playercurrency);
|
|
16341
16489
|
};
|
|
16342
16490
|
|
|
16343
16491
|
$$self.$capture_state = () => ({
|
|
16344
16492
|
onMount,
|
|
16345
16493
|
getDevice,
|
|
16494
|
+
_: X,
|
|
16495
|
+
addNewMessages: addNewMessages$3,
|
|
16496
|
+
PlayerGamingLimitsCardTranslations,
|
|
16346
16497
|
moment,
|
|
16347
16498
|
limitsdata,
|
|
16348
|
-
infoname,
|
|
16349
|
-
infocontent,
|
|
16350
16499
|
limitname,
|
|
16351
16500
|
playercurrency,
|
|
16352
|
-
showdeletenotification,
|
|
16353
16501
|
isLoading,
|
|
16354
16502
|
showPopup,
|
|
16355
16503
|
periodLimitsArray,
|
|
@@ -16373,28 +16521,26 @@
|
|
|
16373
16521
|
setLimitModalTexts,
|
|
16374
16522
|
alterableDataset,
|
|
16375
16523
|
initialLoad,
|
|
16376
|
-
messageHandler
|
|
16524
|
+
messageHandler,
|
|
16525
|
+
$_
|
|
16377
16526
|
});
|
|
16378
16527
|
|
|
16379
16528
|
$$self.$inject_state = $$props => {
|
|
16380
16529
|
if ("limitsdata" in $$props) $$invalidate(0, limitsdata = $$props.limitsdata);
|
|
16381
|
-
if ("
|
|
16382
|
-
if ("
|
|
16383
|
-
if ("
|
|
16384
|
-
if ("
|
|
16385
|
-
if ("showdeletenotification" in $$props) $$invalidate(19, showdeletenotification = $$props.showdeletenotification);
|
|
16386
|
-
if ("isLoading" in $$props) $$invalidate(12, isLoading = $$props.isLoading);
|
|
16387
|
-
if ("showPopup" in $$props) $$invalidate(5, showPopup = $$props.showPopup);
|
|
16530
|
+
if ("limitname" in $$props) $$invalidate(1, limitname = $$props.limitname);
|
|
16531
|
+
if ("playercurrency" in $$props) $$invalidate(2, playercurrency = $$props.playercurrency);
|
|
16532
|
+
if ("isLoading" in $$props) $$invalidate(11, isLoading = $$props.isLoading);
|
|
16533
|
+
if ("showPopup" in $$props) $$invalidate(3, showPopup = $$props.showPopup);
|
|
16388
16534
|
if ("periodLimitsArray" in $$props) periodLimitsArray = $$props.periodLimitsArray;
|
|
16389
|
-
if ("amountIsUnset" in $$props) $$invalidate(
|
|
16390
|
-
if ("removeAllLimits" in $$props) $$invalidate(
|
|
16391
|
-
if ("openLimitsModal" in $$props) $$invalidate(
|
|
16535
|
+
if ("amountIsUnset" in $$props) $$invalidate(4, amountIsUnset = $$props.amountIsUnset);
|
|
16536
|
+
if ("removeAllLimits" in $$props) $$invalidate(5, removeAllLimits = $$props.removeAllLimits);
|
|
16537
|
+
if ("openLimitsModal" in $$props) $$invalidate(6, openLimitsModal = $$props.openLimitsModal);
|
|
16392
16538
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
16393
|
-
if ("isMobile" in $$props) $$invalidate(
|
|
16394
|
-
if ("removeAllLimitsText" in $$props) $$invalidate(
|
|
16395
|
-
if ("removeLimitText" in $$props) $$invalidate(
|
|
16396
|
-
if ("changeableDataset" in $$props) $$invalidate(
|
|
16397
|
-
if ("currentDate" in $$props) $$invalidate(
|
|
16539
|
+
if ("isMobile" in $$props) $$invalidate(12, isMobile = $$props.isMobile);
|
|
16540
|
+
if ("removeAllLimitsText" in $$props) $$invalidate(7, removeAllLimitsText = $$props.removeAllLimitsText);
|
|
16541
|
+
if ("removeLimitText" in $$props) $$invalidate(8, removeLimitText = $$props.removeLimitText);
|
|
16542
|
+
if ("changeableDataset" in $$props) $$invalidate(9, changeableDataset = $$props.changeableDataset);
|
|
16543
|
+
if ("currentDate" in $$props) $$invalidate(13, currentDate = $$props.currentDate);
|
|
16398
16544
|
};
|
|
16399
16545
|
|
|
16400
16546
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -16402,15 +16548,13 @@
|
|
|
16402
16548
|
}
|
|
16403
16549
|
|
|
16404
16550
|
$$self.$$.update = () => {
|
|
16405
|
-
if ($$self.$$.dirty[0] & /*limitsdata,
|
|
16406
|
-
limitsdata &&
|
|
16551
|
+
if ($$self.$$.dirty[0] & /*limitsdata, limitname*/ 3) {
|
|
16552
|
+
limitsdata && limitname && initialLoad();
|
|
16407
16553
|
}
|
|
16408
16554
|
};
|
|
16409
16555
|
|
|
16410
16556
|
return [
|
|
16411
16557
|
limitsdata,
|
|
16412
|
-
infoname,
|
|
16413
|
-
infocontent,
|
|
16414
16558
|
limitname,
|
|
16415
16559
|
playercurrency,
|
|
16416
16560
|
showPopup,
|
|
@@ -16420,6 +16564,7 @@
|
|
|
16420
16564
|
removeAllLimitsText,
|
|
16421
16565
|
removeLimitText,
|
|
16422
16566
|
changeableDataset,
|
|
16567
|
+
$_,
|
|
16423
16568
|
isLoading,
|
|
16424
16569
|
isMobile,
|
|
16425
16570
|
currentDate,
|
|
@@ -16427,7 +16572,6 @@
|
|
|
16427
16572
|
removeLimits,
|
|
16428
16573
|
removeItemLimit,
|
|
16429
16574
|
openInfoPopup,
|
|
16430
|
-
showdeletenotification,
|
|
16431
16575
|
click_handler,
|
|
16432
16576
|
click_handler_1,
|
|
16433
16577
|
click_handler_2,
|
|
@@ -16453,11 +16597,8 @@
|
|
|
16453
16597
|
safe_not_equal,
|
|
16454
16598
|
{
|
|
16455
16599
|
limitsdata: 0,
|
|
16456
|
-
|
|
16457
|
-
|
|
16458
|
-
limitname: 3,
|
|
16459
|
-
playercurrency: 4,
|
|
16460
|
-
showdeletenotification: 19
|
|
16600
|
+
limitname: 1,
|
|
16601
|
+
playercurrency: 2
|
|
16461
16602
|
},
|
|
16462
16603
|
[-1, -1]
|
|
16463
16604
|
);
|
|
@@ -16475,14 +16616,7 @@
|
|
|
16475
16616
|
}
|
|
16476
16617
|
|
|
16477
16618
|
static get observedAttributes() {
|
|
16478
|
-
return [
|
|
16479
|
-
"limitsdata",
|
|
16480
|
-
"infoname",
|
|
16481
|
-
"infocontent",
|
|
16482
|
-
"limitname",
|
|
16483
|
-
"playercurrency",
|
|
16484
|
-
"showdeletenotification"
|
|
16485
|
-
];
|
|
16619
|
+
return ["limitsdata", "limitname", "playercurrency"];
|
|
16486
16620
|
}
|
|
16487
16621
|
|
|
16488
16622
|
get limitsdata() {
|
|
@@ -16494,26 +16628,8 @@
|
|
|
16494
16628
|
flush();
|
|
16495
16629
|
}
|
|
16496
16630
|
|
|
16497
|
-
get infoname() {
|
|
16498
|
-
return this.$$.ctx[1];
|
|
16499
|
-
}
|
|
16500
|
-
|
|
16501
|
-
set infoname(infoname) {
|
|
16502
|
-
this.$set({ infoname });
|
|
16503
|
-
flush();
|
|
16504
|
-
}
|
|
16505
|
-
|
|
16506
|
-
get infocontent() {
|
|
16507
|
-
return this.$$.ctx[2];
|
|
16508
|
-
}
|
|
16509
|
-
|
|
16510
|
-
set infocontent(infocontent) {
|
|
16511
|
-
this.$set({ infocontent });
|
|
16512
|
-
flush();
|
|
16513
|
-
}
|
|
16514
|
-
|
|
16515
16631
|
get limitname() {
|
|
16516
|
-
return this.$$.ctx[
|
|
16632
|
+
return this.$$.ctx[1];
|
|
16517
16633
|
}
|
|
16518
16634
|
|
|
16519
16635
|
set limitname(limitname) {
|
|
@@ -16522,22 +16638,13 @@
|
|
|
16522
16638
|
}
|
|
16523
16639
|
|
|
16524
16640
|
get playercurrency() {
|
|
16525
|
-
return this.$$.ctx[
|
|
16641
|
+
return this.$$.ctx[2];
|
|
16526
16642
|
}
|
|
16527
16643
|
|
|
16528
16644
|
set playercurrency(playercurrency) {
|
|
16529
16645
|
this.$set({ playercurrency });
|
|
16530
16646
|
flush();
|
|
16531
16647
|
}
|
|
16532
|
-
|
|
16533
|
-
get showdeletenotification() {
|
|
16534
|
-
return this.$$.ctx[19];
|
|
16535
|
-
}
|
|
16536
|
-
|
|
16537
|
-
set showdeletenotification(showdeletenotification) {
|
|
16538
|
-
this.$set({ showdeletenotification });
|
|
16539
|
-
flush();
|
|
16540
|
-
}
|
|
16541
16648
|
}
|
|
16542
16649
|
|
|
16543
16650
|
!customElements.get('player-account-gaming-limits-info-card') && customElements.define('player-account-gaming-limits-info-card', PlayerAccountGamingLimitsInfoCard);
|