@everymatrix/player-account-gaming-limits-group-edit 0.0.160 → 0.0.164
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.
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
function is_empty(obj) {
|
|
30
30
|
return Object.keys(obj).length === 0;
|
|
31
31
|
}
|
|
32
|
+
function validate_store(store, name) {
|
|
33
|
+
if (store != null && typeof store.subscribe !== 'function') {
|
|
34
|
+
throw new Error(`'${name}' is not a store with a 'subscribe' method`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
32
37
|
function subscribe(store, ...callbacks) {
|
|
33
38
|
if (store == null) {
|
|
34
39
|
return noop$1;
|
|
@@ -36,6 +41,9 @@
|
|
|
36
41
|
const unsub = store.subscribe(...callbacks);
|
|
37
42
|
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
|
|
38
43
|
}
|
|
44
|
+
function component_subscribe(component, store, callback) {
|
|
45
|
+
component.$$.on_destroy.push(subscribe(store, callback));
|
|
46
|
+
}
|
|
39
47
|
|
|
40
48
|
const is_client = typeof window !== 'undefined';
|
|
41
49
|
let now = is_client
|
|
@@ -459,6 +467,12 @@
|
|
|
459
467
|
}
|
|
460
468
|
};
|
|
461
469
|
}
|
|
470
|
+
|
|
471
|
+
const globals = (typeof window !== 'undefined'
|
|
472
|
+
? window
|
|
473
|
+
: typeof globalThis !== 'undefined'
|
|
474
|
+
? globalThis
|
|
475
|
+
: global);
|
|
462
476
|
function mount_component(component, target, anchor, customElement) {
|
|
463
477
|
const { fragment, on_mount, on_destroy, after_update } = component.$$;
|
|
464
478
|
fragment && fragment.m(target, anchor);
|
|
@@ -4716,7 +4730,7 @@
|
|
|
4716
4730
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4717
4731
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4718
4732
|
PERFORMANCE OF THIS SOFTWARE.
|
|
4719
|
-
***************************************************************************** */function v(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);}return t}const O={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};function j(){return O}const k=writable(!1);let L;const T=writable(null);function x(e){return e.split("-").map(((e,n,t)=>t.slice(0,n+1).join("-"))).reverse()}function E(e,n=j().fallbackLocale){const t=x(e);return n?[...new Set([...t,...x(n)])]:t}function D(){return L}T.subscribe((e=>{L=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e);}));const M=T.set;T.set=e=>{if(function(e){if(null==e)return;const n=E(e);for(let e=0;e<n.length;e++){const t=n[e];if(u(t))return t}}(e)&&w(e)){const{loadingDelay:n}=j();let t;return "undefined"!=typeof window&&null!=D()&&n?t=window.setTimeout((()=>k.set(!0)),n):k.set(!0),b(e).then((()=>{M(e);})).finally((()=>{clearTimeout(t),k.set(!1);}))}return M(e)},T.update=e=>M(e(L));const Z=e=>{const n=Object.create(null);return t=>{const o=JSON.stringify(t);return o in n?n[o]:n[o]=e(t)}},C=(e,n)=>{const{formats:t}=j();if(e in t&&n in t[e])return t[e][n];throw new Error(`[svelte-i18n] Unknown "${n}" ${e} format.`)},G=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(o=C("number",t)),new Intl.NumberFormat(n,o)})),J=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?o=C("date",t):0===Object.keys(o).length&&(o=C("date","short")),new Intl.DateTimeFormat(n,o)})),U=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?o=C("time",t):0===Object.keys(o).length&&(o=C("time","short")),new Intl.DateTimeFormat(n,o)})),_=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return G(Object.assign({locale:n},t))},q=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return J(Object.assign({locale:n},t))},B=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return U(Object.assign({locale:n},t))},H=Z(((e,n=D())=>new IntlMessageFormat(e,n,j().formats,{ignoreTag:j().ignoreTag}))),K=(e,n={})=>{"object"==typeof e&&(e=(n=e).id);const{values:t,locale:o=D(),default:r}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=a(e,o);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else j().warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${E(o).join('", "')}".${w(D())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=r||e;if(!t)return i;let l=i;try{l=H(i,o).format(t);}catch(n){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,n.message);}return l},Q=(e,n)=>B(n).format(e),R=(e,n)=>q(n).format(e),V=(e,n)=>_(n).format(e),W=(e,n=D())=>a(e,n)
|
|
4733
|
+
***************************************************************************** */function v(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);}return t}const O={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};function j(){return O}const k=writable(!1);let L;const T=writable(null);function x(e){return e.split("-").map(((e,n,t)=>t.slice(0,n+1).join("-"))).reverse()}function E(e,n=j().fallbackLocale){const t=x(e);return n?[...new Set([...t,...x(n)])]:t}function D(){return L}T.subscribe((e=>{L=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e);}));const M=T.set;T.set=e=>{if(function(e){if(null==e)return;const n=E(e);for(let e=0;e<n.length;e++){const t=n[e];if(u(t))return t}}(e)&&w(e)){const{loadingDelay:n}=j();let t;return "undefined"!=typeof window&&null!=D()&&n?t=window.setTimeout((()=>k.set(!0)),n):k.set(!0),b(e).then((()=>{M(e);})).finally((()=>{clearTimeout(t),k.set(!1);}))}return M(e)},T.update=e=>M(e(L));const Z=e=>{const n=Object.create(null);return t=>{const o=JSON.stringify(t);return o in n?n[o]:n[o]=e(t)}},C=(e,n)=>{const{formats:t}=j();if(e in t&&n in t[e])return t[e][n];throw new Error(`[svelte-i18n] Unknown "${n}" ${e} format.`)},G=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(o=C("number",t)),new Intl.NumberFormat(n,o)})),J=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?o=C("date",t):0===Object.keys(o).length&&(o=C("date","short")),new Intl.DateTimeFormat(n,o)})),U=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?o=C("time",t):0===Object.keys(o).length&&(o=C("time","short")),new Intl.DateTimeFormat(n,o)})),_=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return G(Object.assign({locale:n},t))},q=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return J(Object.assign({locale:n},t))},B=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return U(Object.assign({locale:n},t))},H=Z(((e,n=D())=>new IntlMessageFormat(e,n,j().formats,{ignoreTag:j().ignoreTag}))),K=(e,n={})=>{"object"==typeof e&&(e=(n=e).id);const{values:t,locale:o=D(),default:r}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=a(e,o);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else j().warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${E(o).join('", "')}".${w(D())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=r||e;if(!t)return i;let l=i;try{l=H(i,o).format(t);}catch(n){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,n.message);}return l},Q=(e,n)=>B(n).format(e),R=(e,n)=>q(n).format(e),V=(e,n)=>_(n).format(e),W=(e,n=D())=>a(e,n),X=derived([T,s],(()=>K));derived([T],(()=>Q));derived([T],(()=>R));derived([T],(()=>V));derived([T,s],(()=>W));
|
|
4720
4734
|
|
|
4721
4735
|
window.emWidgets = { topic };
|
|
4722
4736
|
|
|
@@ -4742,6 +4756,47 @@
|
|
|
4742
4756
|
return 'PC';
|
|
4743
4757
|
};
|
|
4744
4758
|
|
|
4759
|
+
function addNewMessages$2(lang, dict) {
|
|
4760
|
+
m(lang, dict);
|
|
4761
|
+
}
|
|
4762
|
+
|
|
4763
|
+
const PlayerGamingLimitsEditTranslations = {
|
|
4764
|
+
en: {
|
|
4765
|
+
editText: {
|
|
4766
|
+
back: `Back to Gaming Limits`,
|
|
4767
|
+
limit: `Limit`,
|
|
4768
|
+
amount: `Amount`,
|
|
4769
|
+
noLimit: `No limit`,
|
|
4770
|
+
changeLimitsText: `Are you sure you want to change the {limit}s?`,
|
|
4771
|
+
success: `Success lorem Ipsum is simply dummy text of the printing and typesetting industry.`,
|
|
4772
|
+
remove: `You have requested to remove this limit. This will be applied on `,
|
|
4773
|
+
invalidInputMessageLimit: `The amount needs to be between 0 and 99,999,999.`,
|
|
4774
|
+
invalidInputMessageTime: `The time amount needs to be greater than {minTime} and below {maxTime} minutes.`,
|
|
4775
|
+
expirationDate: `Expiration Date:`,
|
|
4776
|
+
save: `Save`,
|
|
4777
|
+
changedLimitTextBefore: `Your limit has been changed or increased:`,
|
|
4778
|
+
changedLimitTextAfter: `. You will have to wait for the expiration date for your new limit to take effect`
|
|
4779
|
+
}
|
|
4780
|
+
},
|
|
4781
|
+
ro: {
|
|
4782
|
+
editText: {
|
|
4783
|
+
back: `Back to Gaming Limits`,
|
|
4784
|
+
limit: `Limit`,
|
|
4785
|
+
amount: `Amount`,
|
|
4786
|
+
noLimit: `No limit`,
|
|
4787
|
+
changeLimitsText: `Are you sure you want to change the {limit}s?`,
|
|
4788
|
+
success: `Success lorem Ipsum is simply dummy text of the printing and typesetting industry.`,
|
|
4789
|
+
remove: `You have requested to remove this limit. This will be applied on `,
|
|
4790
|
+
invalidInputMessageLimit: `The amount needs to be between 0 and 99,999,999.`,
|
|
4791
|
+
invalidInputMessageTime: `The time amount needs to be greater than {minTime} and below {maxTime} minutes.`,
|
|
4792
|
+
expirationDate: `Expiration Date:`,
|
|
4793
|
+
save: `Save`,
|
|
4794
|
+
changedLimitTextBefore: `Your limit has been changed or increased:`,
|
|
4795
|
+
changedLimitTextAfter: `. You will have to wait for the expiration date for your new limit to take effect`
|
|
4796
|
+
}
|
|
4797
|
+
}
|
|
4798
|
+
};
|
|
4799
|
+
|
|
4745
4800
|
var moment = createCommonjsModule(function (module, exports) {
|
|
4746
4801
|
(function (global, factory) {
|
|
4747
4802
|
module.exports = factory() ;
|
|
@@ -10406,10 +10461,33 @@
|
|
|
10406
10461
|
})));
|
|
10407
10462
|
});
|
|
10408
10463
|
|
|
10464
|
+
function addNewMessages$1(lang, dict) {
|
|
10465
|
+
m(lang, dict);
|
|
10466
|
+
}
|
|
10467
|
+
|
|
10468
|
+
const PlayerGamingLimitsPopupTranslations = {
|
|
10469
|
+
en: {
|
|
10470
|
+
popupText: {
|
|
10471
|
+
name: `Info`,
|
|
10472
|
+
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:`,
|
|
10473
|
+
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.`
|
|
10474
|
+
}
|
|
10475
|
+
},
|
|
10476
|
+
ro: {
|
|
10477
|
+
popupText: {
|
|
10478
|
+
name: `Info`,
|
|
10479
|
+
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:`,
|
|
10480
|
+
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.`
|
|
10481
|
+
}
|
|
10482
|
+
}
|
|
10483
|
+
};
|
|
10484
|
+
|
|
10409
10485
|
/* ../player-account-gaming-limits-popup/src/PlayerAccountGamingLimitsPopup.svelte generated by Svelte v3.37.0 */
|
|
10486
|
+
|
|
10487
|
+
const { Object: Object_1$2 } = globals;
|
|
10410
10488
|
const file$3 = "../player-account-gaming-limits-popup/src/PlayerAccountGamingLimitsPopup.svelte";
|
|
10411
10489
|
|
|
10412
|
-
// (
|
|
10490
|
+
// (40:0) {#if showPopup}
|
|
10413
10491
|
function create_if_block$2(ctx) {
|
|
10414
10492
|
let section;
|
|
10415
10493
|
let div5;
|
|
@@ -10417,6 +10495,7 @@
|
|
|
10417
10495
|
let div0;
|
|
10418
10496
|
let t1;
|
|
10419
10497
|
let div1;
|
|
10498
|
+
let t2_value = /*$_*/ ctx[3]("popupText.name") + "";
|
|
10420
10499
|
let t2;
|
|
10421
10500
|
let t3;
|
|
10422
10501
|
let div2;
|
|
@@ -10424,11 +10503,18 @@
|
|
|
10424
10503
|
let path;
|
|
10425
10504
|
let t4;
|
|
10426
10505
|
let div4;
|
|
10427
|
-
let
|
|
10428
|
-
let t5;
|
|
10506
|
+
let div5_class_value;
|
|
10429
10507
|
let mounted;
|
|
10430
10508
|
let dispose;
|
|
10431
10509
|
|
|
10510
|
+
function select_block_type(ctx, dirty) {
|
|
10511
|
+
if (/*iteminfoamount*/ ctx[0]) return create_if_block_1$1;
|
|
10512
|
+
return create_else_block$1;
|
|
10513
|
+
}
|
|
10514
|
+
|
|
10515
|
+
let current_block_type = select_block_type(ctx);
|
|
10516
|
+
let if_block = current_block_type(ctx);
|
|
10517
|
+
|
|
10432
10518
|
const block = {
|
|
10433
10519
|
c: function create() {
|
|
10434
10520
|
section = element("section");
|
|
@@ -10438,42 +10524,43 @@
|
|
|
10438
10524
|
div0.textContent = "i";
|
|
10439
10525
|
t1 = space();
|
|
10440
10526
|
div1 = element("div");
|
|
10441
|
-
t2 = text(
|
|
10527
|
+
t2 = text(t2_value);
|
|
10442
10528
|
t3 = space();
|
|
10443
10529
|
div2 = element("div");
|
|
10444
10530
|
svg = svg_element("svg");
|
|
10445
10531
|
path = svg_element("path");
|
|
10446
10532
|
t4 = space();
|
|
10447
10533
|
div4 = element("div");
|
|
10448
|
-
|
|
10449
|
-
t5 = text(/*infocontent*/ ctx[0]);
|
|
10534
|
+
if_block.c();
|
|
10450
10535
|
attr_dev(div0, "class", "InfoCardPopupIcon");
|
|
10451
|
-
add_location(div0, file$3,
|
|
10536
|
+
add_location(div0, file$3, 43, 8, 1529);
|
|
10452
10537
|
attr_dev(div1, "class", "InfoCardPopupTitle");
|
|
10453
|
-
add_location(div1, file$3,
|
|
10538
|
+
add_location(div1, file$3, 44, 8, 1576);
|
|
10454
10539
|
attr_dev(path, "stroke-linecap", "round");
|
|
10455
10540
|
attr_dev(path, "stroke-linejoin", "round");
|
|
10456
10541
|
attr_dev(path, "stroke-width", "2");
|
|
10457
10542
|
attr_dev(path, "d", "M6 18L18 6M6 6l12 12");
|
|
10458
|
-
add_location(path, file$3,
|
|
10543
|
+
add_location(path, file$3, 46, 120, 1845);
|
|
10459
10544
|
attr_dev(svg, "class", "w-6 h-6");
|
|
10460
10545
|
attr_dev(svg, "fill", "none");
|
|
10461
10546
|
attr_dev(svg, "stroke", "currentColor");
|
|
10462
10547
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
10463
10548
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
10464
|
-
add_location(svg, file$3,
|
|
10549
|
+
add_location(svg, file$3, 46, 10, 1735);
|
|
10465
10550
|
attr_dev(div2, "class", "InfoCardPopupCloseButton");
|
|
10466
|
-
add_location(div2, file$3,
|
|
10551
|
+
add_location(div2, file$3, 45, 8, 1645);
|
|
10467
10552
|
attr_dev(div3, "class", "InfoCardPopupHeader");
|
|
10468
|
-
add_location(div3, file$3,
|
|
10469
|
-
attr_dev(p, "class", "InfoCardPopupContent");
|
|
10470
|
-
add_location(p, file$3, 29, 8, 1287);
|
|
10553
|
+
add_location(div3, file$3, 42, 6, 1487);
|
|
10471
10554
|
attr_dev(div4, "class", "InfoCardPopupContentArea");
|
|
10472
|
-
add_location(div4, file$3,
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10555
|
+
add_location(div4, file$3, 49, 6, 1988);
|
|
10556
|
+
|
|
10557
|
+
attr_dev(div5, "class", div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[4] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
|
|
10558
|
+
? "InfoCardPopupLimitChanged"
|
|
10559
|
+
: ""));
|
|
10560
|
+
|
|
10561
|
+
add_location(div5, file$3, 41, 4, 1347);
|
|
10562
|
+
attr_dev(section, "class", /*isMobile*/ ctx[4] ? "InfoCardPopupMobileModal" : "");
|
|
10563
|
+
add_location(section, file$3, 40, 2, 1282);
|
|
10477
10564
|
},
|
|
10478
10565
|
m: function mount(target, anchor) {
|
|
10479
10566
|
insert_dev(target, section, anchor);
|
|
@@ -10489,20 +10576,37 @@
|
|
|
10489
10576
|
append_dev(svg, path);
|
|
10490
10577
|
append_dev(div5, t4);
|
|
10491
10578
|
append_dev(div5, div4);
|
|
10492
|
-
|
|
10493
|
-
append_dev(p, t5);
|
|
10579
|
+
if_block.m(div4, null);
|
|
10494
10580
|
|
|
10495
10581
|
if (!mounted) {
|
|
10496
|
-
dispose = listen_dev(div2, "click", prevent_default(/*closeInfoPopup*/ ctx[
|
|
10582
|
+
dispose = listen_dev(div2, "click", prevent_default(/*closeInfoPopup*/ ctx[5]), false, true, false);
|
|
10497
10583
|
mounted = true;
|
|
10498
10584
|
}
|
|
10499
10585
|
},
|
|
10500
10586
|
p: function update(ctx, dirty) {
|
|
10501
|
-
if (dirty &
|
|
10502
|
-
|
|
10587
|
+
if (dirty & /*$_*/ 8 && t2_value !== (t2_value = /*$_*/ ctx[3]("popupText.name") + "")) set_data_dev(t2, t2_value);
|
|
10588
|
+
|
|
10589
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
10590
|
+
if_block.p(ctx, dirty);
|
|
10591
|
+
} else {
|
|
10592
|
+
if_block.d(1);
|
|
10593
|
+
if_block = current_block_type(ctx);
|
|
10594
|
+
|
|
10595
|
+
if (if_block) {
|
|
10596
|
+
if_block.c();
|
|
10597
|
+
if_block.m(div4, null);
|
|
10598
|
+
}
|
|
10599
|
+
}
|
|
10600
|
+
|
|
10601
|
+
if (dirty & /*iteminfoamount*/ 1 && div5_class_value !== (div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[4] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
|
|
10602
|
+
? "InfoCardPopupLimitChanged"
|
|
10603
|
+
: ""))) {
|
|
10604
|
+
attr_dev(div5, "class", div5_class_value);
|
|
10605
|
+
}
|
|
10503
10606
|
},
|
|
10504
10607
|
d: function destroy(detaching) {
|
|
10505
10608
|
if (detaching) detach_dev(section);
|
|
10609
|
+
if_block.d();
|
|
10506
10610
|
mounted = false;
|
|
10507
10611
|
dispose();
|
|
10508
10612
|
}
|
|
@@ -10512,7 +10616,91 @@
|
|
|
10512
10616
|
block,
|
|
10513
10617
|
id: create_if_block$2.name,
|
|
10514
10618
|
type: "if",
|
|
10515
|
-
source: "(
|
|
10619
|
+
source: "(40:0) {#if showPopup}",
|
|
10620
|
+
ctx
|
|
10621
|
+
});
|
|
10622
|
+
|
|
10623
|
+
return block;
|
|
10624
|
+
}
|
|
10625
|
+
|
|
10626
|
+
// (53:8) {:else}
|
|
10627
|
+
function create_else_block$1(ctx) {
|
|
10628
|
+
let p;
|
|
10629
|
+
let t_value = /*$_*/ ctx[3]("popupText.defaultText") + "";
|
|
10630
|
+
let t;
|
|
10631
|
+
|
|
10632
|
+
const block = {
|
|
10633
|
+
c: function create() {
|
|
10634
|
+
p = element("p");
|
|
10635
|
+
t = text(t_value);
|
|
10636
|
+
attr_dev(p, "class", "InfoCardPopupContent");
|
|
10637
|
+
add_location(p, file$3, 53, 10, 2224);
|
|
10638
|
+
},
|
|
10639
|
+
m: function mount(target, anchor) {
|
|
10640
|
+
insert_dev(target, p, anchor);
|
|
10641
|
+
append_dev(p, t);
|
|
10642
|
+
},
|
|
10643
|
+
p: function update(ctx, dirty) {
|
|
10644
|
+
if (dirty & /*$_*/ 8 && t_value !== (t_value = /*$_*/ ctx[3]("popupText.defaultText") + "")) set_data_dev(t, t_value);
|
|
10645
|
+
},
|
|
10646
|
+
d: function destroy(detaching) {
|
|
10647
|
+
if (detaching) detach_dev(p);
|
|
10648
|
+
}
|
|
10649
|
+
};
|
|
10650
|
+
|
|
10651
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
10652
|
+
block,
|
|
10653
|
+
id: create_else_block$1.name,
|
|
10654
|
+
type: "else",
|
|
10655
|
+
source: "(53:8) {:else}",
|
|
10656
|
+
ctx
|
|
10657
|
+
});
|
|
10658
|
+
|
|
10659
|
+
return block;
|
|
10660
|
+
}
|
|
10661
|
+
|
|
10662
|
+
// (51:8) {#if iteminfoamount}
|
|
10663
|
+
function create_if_block_1$1(ctx) {
|
|
10664
|
+
let p;
|
|
10665
|
+
|
|
10666
|
+
let t_value = /*$_*/ ctx[3]("popupText.amountChanged", {
|
|
10667
|
+
values: {
|
|
10668
|
+
amount: /*iteminfoamount*/ ctx[0],
|
|
10669
|
+
currency: /*playercurrency*/ ctx[1]
|
|
10670
|
+
}
|
|
10671
|
+
}) + "";
|
|
10672
|
+
|
|
10673
|
+
let t;
|
|
10674
|
+
|
|
10675
|
+
const block = {
|
|
10676
|
+
c: function create() {
|
|
10677
|
+
p = element("p");
|
|
10678
|
+
t = text(t_value);
|
|
10679
|
+
attr_dev(p, "class", "InfoCardPopupContent");
|
|
10680
|
+
add_location(p, file$3, 51, 10, 2066);
|
|
10681
|
+
},
|
|
10682
|
+
m: function mount(target, anchor) {
|
|
10683
|
+
insert_dev(target, p, anchor);
|
|
10684
|
+
append_dev(p, t);
|
|
10685
|
+
},
|
|
10686
|
+
p: function update(ctx, dirty) {
|
|
10687
|
+
if (dirty & /*$_, iteminfoamount, playercurrency*/ 11 && t_value !== (t_value = /*$_*/ ctx[3]("popupText.amountChanged", {
|
|
10688
|
+
values: {
|
|
10689
|
+
amount: /*iteminfoamount*/ ctx[0],
|
|
10690
|
+
currency: /*playercurrency*/ ctx[1]
|
|
10691
|
+
}
|
|
10692
|
+
}) + "")) set_data_dev(t, t_value);
|
|
10693
|
+
},
|
|
10694
|
+
d: function destroy(detaching) {
|
|
10695
|
+
if (detaching) detach_dev(p);
|
|
10696
|
+
}
|
|
10697
|
+
};
|
|
10698
|
+
|
|
10699
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
10700
|
+
block,
|
|
10701
|
+
id: create_if_block_1$1.name,
|
|
10702
|
+
type: "if",
|
|
10703
|
+
source: "(51:8) {#if iteminfoamount}",
|
|
10516
10704
|
ctx
|
|
10517
10705
|
});
|
|
10518
10706
|
|
|
@@ -10570,11 +10758,20 @@
|
|
|
10570
10758
|
}
|
|
10571
10759
|
|
|
10572
10760
|
function instance$3($$self, $$props, $$invalidate) {
|
|
10761
|
+
let $_;
|
|
10762
|
+
validate_store(X, "_");
|
|
10763
|
+
component_subscribe($$self, X, $$value => $$invalidate(3, $_ = $$value));
|
|
10573
10764
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
10574
10765
|
validate_slots("undefined", slots, []);
|
|
10575
10766
|
let { showpopup = "" } = $$props;
|
|
10576
|
-
let {
|
|
10577
|
-
let {
|
|
10767
|
+
let { iteminfoamount = "" } = $$props;
|
|
10768
|
+
let { lang = "en" } = $$props;
|
|
10769
|
+
let { playercurrency = "USD" } = $$props;
|
|
10770
|
+
|
|
10771
|
+
Object.keys(PlayerGamingLimitsPopupTranslations).forEach(item => {
|
|
10772
|
+
addNewMessages$1(item, PlayerGamingLimitsPopupTranslations[item]);
|
|
10773
|
+
});
|
|
10774
|
+
|
|
10578
10775
|
let showPopup = false;
|
|
10579
10776
|
let userAgent = window.navigator.userAgent;
|
|
10580
10777
|
let isMobile = getDevice(userAgent) === "PC" ? false : true;
|
|
@@ -10584,48 +10781,74 @@
|
|
|
10584
10781
|
|
|
10585
10782
|
window.postMessage(
|
|
10586
10783
|
{
|
|
10587
|
-
type: "ClosePlayerAccountGamingLimitsPopup"
|
|
10588
|
-
showPopup
|
|
10784
|
+
type: "ClosePlayerAccountGamingLimitsPopup"
|
|
10589
10785
|
},
|
|
10590
10786
|
window.location.href
|
|
10591
10787
|
);
|
|
10592
10788
|
};
|
|
10593
10789
|
|
|
10790
|
+
const messageHandler = e => {
|
|
10791
|
+
if (e.data && e.data.type == "ClosePlayerAccountGamingLimitsPopup") {
|
|
10792
|
+
$$invalidate(2, showPopup = false);
|
|
10793
|
+
}
|
|
10794
|
+
};
|
|
10795
|
+
|
|
10594
10796
|
const initialLoad = () => {
|
|
10797
|
+
if (iteminfoamount < 0) {
|
|
10798
|
+
$$invalidate(0, iteminfoamount = "0");
|
|
10799
|
+
}
|
|
10800
|
+
|
|
10595
10801
|
$$invalidate(2, showPopup = showpopup);
|
|
10596
10802
|
};
|
|
10597
10803
|
|
|
10598
|
-
|
|
10804
|
+
onMount(() => {
|
|
10805
|
+
window.addEventListener("message", messageHandler, false);
|
|
10599
10806
|
|
|
10600
|
-
|
|
10807
|
+
return () => {
|
|
10808
|
+
window.removeEventListener("message", messageHandler);
|
|
10809
|
+
};
|
|
10810
|
+
});
|
|
10811
|
+
|
|
10812
|
+
const writable_props = ["showpopup", "iteminfoamount", "lang", "playercurrency"];
|
|
10813
|
+
|
|
10814
|
+
Object_1$2.keys($$props).forEach(key => {
|
|
10601
10815
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
10602
10816
|
});
|
|
10603
10817
|
|
|
10604
10818
|
$$self.$$set = $$props => {
|
|
10605
|
-
if ("showpopup" in $$props) $$invalidate(
|
|
10606
|
-
if ("
|
|
10607
|
-
if ("
|
|
10819
|
+
if ("showpopup" in $$props) $$invalidate(6, showpopup = $$props.showpopup);
|
|
10820
|
+
if ("iteminfoamount" in $$props) $$invalidate(0, iteminfoamount = $$props.iteminfoamount);
|
|
10821
|
+
if ("lang" in $$props) $$invalidate(7, lang = $$props.lang);
|
|
10822
|
+
if ("playercurrency" in $$props) $$invalidate(1, playercurrency = $$props.playercurrency);
|
|
10608
10823
|
};
|
|
10609
10824
|
|
|
10610
10825
|
$$self.$capture_state = () => ({
|
|
10611
|
-
|
|
10612
|
-
infocontent,
|
|
10613
|
-
infoname,
|
|
10826
|
+
onMount,
|
|
10614
10827
|
getDevice,
|
|
10828
|
+
_: X,
|
|
10829
|
+
addNewMessages: addNewMessages$1,
|
|
10830
|
+
PlayerGamingLimitsPopupTranslations,
|
|
10831
|
+
showpopup,
|
|
10832
|
+
iteminfoamount,
|
|
10833
|
+
lang,
|
|
10834
|
+
playercurrency,
|
|
10615
10835
|
showPopup,
|
|
10616
10836
|
userAgent,
|
|
10617
10837
|
isMobile,
|
|
10618
10838
|
closeInfoPopup,
|
|
10619
|
-
|
|
10839
|
+
messageHandler,
|
|
10840
|
+
initialLoad,
|
|
10841
|
+
$_
|
|
10620
10842
|
});
|
|
10621
10843
|
|
|
10622
10844
|
$$self.$inject_state = $$props => {
|
|
10623
|
-
if ("showpopup" in $$props) $$invalidate(
|
|
10624
|
-
if ("
|
|
10625
|
-
if ("
|
|
10845
|
+
if ("showpopup" in $$props) $$invalidate(6, showpopup = $$props.showpopup);
|
|
10846
|
+
if ("iteminfoamount" in $$props) $$invalidate(0, iteminfoamount = $$props.iteminfoamount);
|
|
10847
|
+
if ("lang" in $$props) $$invalidate(7, lang = $$props.lang);
|
|
10848
|
+
if ("playercurrency" in $$props) $$invalidate(1, playercurrency = $$props.playercurrency);
|
|
10626
10849
|
if ("showPopup" in $$props) $$invalidate(2, showPopup = $$props.showPopup);
|
|
10627
10850
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
10628
|
-
if ("isMobile" in $$props) $$invalidate(
|
|
10851
|
+
if ("isMobile" in $$props) $$invalidate(4, isMobile = $$props.isMobile);
|
|
10629
10852
|
};
|
|
10630
10853
|
|
|
10631
10854
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -10633,18 +10856,27 @@
|
|
|
10633
10856
|
}
|
|
10634
10857
|
|
|
10635
10858
|
$$self.$$.update = () => {
|
|
10636
|
-
if ($$self.$$.dirty & /*showpopup*/
|
|
10859
|
+
if ($$self.$$.dirty & /*showpopup*/ 64) {
|
|
10637
10860
|
showpopup && initialLoad();
|
|
10638
10861
|
}
|
|
10639
10862
|
};
|
|
10640
10863
|
|
|
10641
|
-
return [
|
|
10864
|
+
return [
|
|
10865
|
+
iteminfoamount,
|
|
10866
|
+
playercurrency,
|
|
10867
|
+
showPopup,
|
|
10868
|
+
$_,
|
|
10869
|
+
isMobile,
|
|
10870
|
+
closeInfoPopup,
|
|
10871
|
+
showpopup,
|
|
10872
|
+
lang
|
|
10873
|
+
];
|
|
10642
10874
|
}
|
|
10643
10875
|
|
|
10644
10876
|
class PlayerAccountGamingLimitsPopup extends SvelteElement {
|
|
10645
10877
|
constructor(options) {
|
|
10646
10878
|
super();
|
|
10647
|
-
this.shadowRoot.innerHTML = `<style>.InfoCardPopupMobileModal:after{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);content:''}.InfoCardPopupWrapper{width:200px;padding:20px;color:#000;background:#fff;box-shadow:0px 4px 12px #00000012;border-radius:0.3125;display:block;position:absolute;top:
|
|
10879
|
+
this.shadowRoot.innerHTML = `<style>.InfoCardPopupMobileModal:after{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);content:''}.InfoCardPopupLimitChanged{background:#FFFFF8}.InfoCardPopupWrapper{width:200px;padding:20px;color:#000;background:#fff;box-shadow:0px 4px 12px #00000012;border-radius:0.3125;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:#FFF transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid #000;align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:#FD2839;fill:#FD2839}</style>`;
|
|
10648
10880
|
|
|
10649
10881
|
init(
|
|
10650
10882
|
this,
|
|
@@ -10657,9 +10889,10 @@
|
|
|
10657
10889
|
create_fragment$3,
|
|
10658
10890
|
safe_not_equal,
|
|
10659
10891
|
{
|
|
10660
|
-
showpopup:
|
|
10661
|
-
|
|
10662
|
-
|
|
10892
|
+
showpopup: 6,
|
|
10893
|
+
iteminfoamount: 0,
|
|
10894
|
+
lang: 7,
|
|
10895
|
+
playercurrency: 1
|
|
10663
10896
|
}
|
|
10664
10897
|
);
|
|
10665
10898
|
|
|
@@ -10676,11 +10909,11 @@
|
|
|
10676
10909
|
}
|
|
10677
10910
|
|
|
10678
10911
|
static get observedAttributes() {
|
|
10679
|
-
return ["showpopup", "
|
|
10912
|
+
return ["showpopup", "iteminfoamount", "lang", "playercurrency"];
|
|
10680
10913
|
}
|
|
10681
10914
|
|
|
10682
10915
|
get showpopup() {
|
|
10683
|
-
return this.$$.ctx[
|
|
10916
|
+
return this.$$.ctx[6];
|
|
10684
10917
|
}
|
|
10685
10918
|
|
|
10686
10919
|
set showpopup(showpopup) {
|
|
@@ -10688,21 +10921,30 @@
|
|
|
10688
10921
|
flush();
|
|
10689
10922
|
}
|
|
10690
10923
|
|
|
10691
|
-
get
|
|
10924
|
+
get iteminfoamount() {
|
|
10692
10925
|
return this.$$.ctx[0];
|
|
10693
10926
|
}
|
|
10694
10927
|
|
|
10695
|
-
set
|
|
10696
|
-
this.$set({
|
|
10928
|
+
set iteminfoamount(iteminfoamount) {
|
|
10929
|
+
this.$set({ iteminfoamount });
|
|
10930
|
+
flush();
|
|
10931
|
+
}
|
|
10932
|
+
|
|
10933
|
+
get lang() {
|
|
10934
|
+
return this.$$.ctx[7];
|
|
10935
|
+
}
|
|
10936
|
+
|
|
10937
|
+
set lang(lang) {
|
|
10938
|
+
this.$set({ lang });
|
|
10697
10939
|
flush();
|
|
10698
10940
|
}
|
|
10699
10941
|
|
|
10700
|
-
get
|
|
10942
|
+
get playercurrency() {
|
|
10701
10943
|
return this.$$.ctx[1];
|
|
10702
10944
|
}
|
|
10703
10945
|
|
|
10704
|
-
set
|
|
10705
|
-
this.$set({
|
|
10946
|
+
set playercurrency(playercurrency) {
|
|
10947
|
+
this.$set({ playercurrency });
|
|
10706
10948
|
flush();
|
|
10707
10949
|
}
|
|
10708
10950
|
}
|
|
@@ -10983,7 +11225,28 @@
|
|
|
10983
11225
|
|
|
10984
11226
|
!customElements.get('player-account-modal') && customElements.define('player-account-modal', PlayerAccountModal);
|
|
10985
11227
|
|
|
11228
|
+
function addNewMessages(lang, dict) {
|
|
11229
|
+
m(lang, dict);
|
|
11230
|
+
}
|
|
11231
|
+
|
|
11232
|
+
const PlayerGamingLimitsModalTranslations = {
|
|
11233
|
+
en: {
|
|
11234
|
+
modalText: {
|
|
11235
|
+
cancel: `Cancel`,
|
|
11236
|
+
confirm: `Confirm`,
|
|
11237
|
+
}
|
|
11238
|
+
},
|
|
11239
|
+
ro: {
|
|
11240
|
+
modalText: {
|
|
11241
|
+
cancel: `Cancel`,
|
|
11242
|
+
confirm: `Confirm`,
|
|
11243
|
+
}
|
|
11244
|
+
}
|
|
11245
|
+
};
|
|
11246
|
+
|
|
10986
11247
|
/* ../player-account-gaming-limits-confirmation-modal/src/PlayerAccountGamingLimitsConfirmationModal.svelte generated by Svelte v3.37.0 */
|
|
11248
|
+
|
|
11249
|
+
const { Object: Object_1$1 } = globals;
|
|
10987
11250
|
const file$1 = "../player-account-gaming-limits-confirmation-modal/src/PlayerAccountGamingLimitsConfirmationModal.svelte";
|
|
10988
11251
|
|
|
10989
11252
|
function create_fragment$1(ctx) {
|
|
@@ -10999,8 +11262,12 @@
|
|
|
10999
11262
|
let t2;
|
|
11000
11263
|
let div1;
|
|
11001
11264
|
let button0;
|
|
11265
|
+
let t3_value = /*$_*/ ctx[1]("modalText.cancel") + "";
|
|
11266
|
+
let t3;
|
|
11002
11267
|
let t4;
|
|
11003
11268
|
let button1;
|
|
11269
|
+
let t5_value = /*$_*/ ctx[1]("modalText.confirm") + "";
|
|
11270
|
+
let t5;
|
|
11004
11271
|
let mounted;
|
|
11005
11272
|
let dispose;
|
|
11006
11273
|
|
|
@@ -11018,43 +11285,43 @@
|
|
|
11018
11285
|
t2 = space();
|
|
11019
11286
|
div1 = element("div");
|
|
11020
11287
|
button0 = element("button");
|
|
11021
|
-
|
|
11288
|
+
t3 = text(t3_value);
|
|
11022
11289
|
t4 = space();
|
|
11023
11290
|
button1 = element("button");
|
|
11024
|
-
|
|
11291
|
+
t5 = text(t5_value);
|
|
11025
11292
|
this.c = noop$1;
|
|
11026
11293
|
attr_dev(path, "stroke-linecap", "round");
|
|
11027
11294
|
attr_dev(path, "stroke-linejoin", "round");
|
|
11028
11295
|
attr_dev(path, "stroke-width", "2");
|
|
11029
11296
|
attr_dev(path, "d", "M6 18L18 6M6 6l12 12");
|
|
11030
|
-
add_location(path, file$1,
|
|
11297
|
+
add_location(path, file$1, 66, 116, 2763);
|
|
11031
11298
|
attr_dev(svg, "class", "w-6 h-6");
|
|
11032
11299
|
attr_dev(svg, "fill", "none");
|
|
11033
11300
|
attr_dev(svg, "stroke", "currentColor");
|
|
11034
11301
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
11035
11302
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
11036
|
-
add_location(svg, file$1,
|
|
11303
|
+
add_location(svg, file$1, 66, 6, 2653);
|
|
11037
11304
|
attr_dev(slot, "name", "close");
|
|
11038
|
-
add_location(slot, file$1,
|
|
11305
|
+
add_location(slot, file$1, 65, 4, 2627);
|
|
11039
11306
|
attr_dev(span, "class", "ModalCloseBtn");
|
|
11040
11307
|
attr_dev(span, "role", "button");
|
|
11041
|
-
add_location(span, file$1,
|
|
11308
|
+
add_location(span, file$1, 64, 2, 2563);
|
|
11042
11309
|
attr_dev(div0, "class", "GamingLimitsConfirmationContent");
|
|
11043
|
-
add_location(div0, file$1,
|
|
11310
|
+
add_location(div0, file$1, 70, 4, 2948);
|
|
11044
11311
|
attr_dev(button0, "class", "GamingLimitsCancelButton");
|
|
11045
|
-
add_location(button0, file$1,
|
|
11312
|
+
add_location(button0, file$1, 72, 6, 3071);
|
|
11046
11313
|
attr_dev(button1, "class", "GamingLimitsConfirmButton");
|
|
11047
|
-
add_location(button1, file$1,
|
|
11314
|
+
add_location(button1, file$1, 73, 6, 3177);
|
|
11048
11315
|
attr_dev(div1, "class", "GamingLimitsConfirmationControlArea");
|
|
11049
|
-
add_location(div1, file$1,
|
|
11316
|
+
add_location(div1, file$1, 71, 4, 3015);
|
|
11050
11317
|
attr_dev(div2, "class", "GamingLimitsConfirmationContainer");
|
|
11051
|
-
add_location(div2, file$1,
|
|
11318
|
+
add_location(div2, file$1, 69, 2, 2896);
|
|
11052
11319
|
|
|
11053
|
-
attr_dev(div3, "class", "GamingLimitsConfirmationWrapper " + (/*isMobile*/ ctx[
|
|
11320
|
+
attr_dev(div3, "class", "GamingLimitsConfirmationWrapper " + (/*isMobile*/ ctx[2]
|
|
11054
11321
|
? "GamingLimitsConfirmationMobileWrapper"
|
|
11055
11322
|
: ""));
|
|
11056
11323
|
|
|
11057
|
-
add_location(div3, file$1,
|
|
11324
|
+
add_location(div3, file$1, 63, 0, 2457);
|
|
11058
11325
|
},
|
|
11059
11326
|
l: function claim(nodes) {
|
|
11060
11327
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -11072,14 +11339,16 @@
|
|
|
11072
11339
|
append_dev(div2, t2);
|
|
11073
11340
|
append_dev(div2, div1);
|
|
11074
11341
|
append_dev(div1, button0);
|
|
11342
|
+
append_dev(button0, t3);
|
|
11075
11343
|
append_dev(div1, t4);
|
|
11076
11344
|
append_dev(div1, button1);
|
|
11345
|
+
append_dev(button1, t5);
|
|
11077
11346
|
|
|
11078
11347
|
if (!mounted) {
|
|
11079
11348
|
dispose = [
|
|
11080
|
-
listen_dev(span, "click", /*close*/ ctx[
|
|
11081
|
-
listen_dev(button0, "click", /*cancelChanges*/ ctx[
|
|
11082
|
-
listen_dev(button1, "click", /*confirmChanges*/ ctx[
|
|
11349
|
+
listen_dev(span, "click", /*close*/ ctx[3], false, false, false),
|
|
11350
|
+
listen_dev(button0, "click", /*cancelChanges*/ ctx[5], false, false, false),
|
|
11351
|
+
listen_dev(button1, "click", /*confirmChanges*/ ctx[4], false, false, false)
|
|
11083
11352
|
];
|
|
11084
11353
|
|
|
11085
11354
|
mounted = true;
|
|
@@ -11087,6 +11356,8 @@
|
|
|
11087
11356
|
},
|
|
11088
11357
|
p: function update(ctx, [dirty]) {
|
|
11089
11358
|
if (dirty & /*modaltext*/ 1) set_data_dev(t1, /*modaltext*/ ctx[0]);
|
|
11359
|
+
if (dirty & /*$_*/ 2 && t3_value !== (t3_value = /*$_*/ ctx[1]("modalText.cancel") + "")) set_data_dev(t3, t3_value);
|
|
11360
|
+
if (dirty & /*$_*/ 2 && t5_value !== (t5_value = /*$_*/ ctx[1]("modalText.confirm") + "")) set_data_dev(t5, t5_value);
|
|
11090
11361
|
},
|
|
11091
11362
|
i: noop$1,
|
|
11092
11363
|
o: noop$1,
|
|
@@ -11109,11 +11380,18 @@
|
|
|
11109
11380
|
}
|
|
11110
11381
|
|
|
11111
11382
|
function instance$1($$self, $$props, $$invalidate) {
|
|
11383
|
+
let $_;
|
|
11384
|
+
validate_store(X, "_");
|
|
11385
|
+
component_subscribe($$self, X, $$value => $$invalidate(1, $_ = $$value));
|
|
11112
11386
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
11113
11387
|
validate_slots("undefined", slots, []);
|
|
11114
11388
|
let { modaltext = "Are you sure that you want to perform this action?" } = $$props;
|
|
11115
11389
|
let { modalsource = "" } = $$props;
|
|
11116
11390
|
|
|
11391
|
+
Object.keys(PlayerGamingLimitsModalTranslations).forEach(item => {
|
|
11392
|
+
addNewMessages(item, PlayerGamingLimitsModalTranslations[item]);
|
|
11393
|
+
});
|
|
11394
|
+
|
|
11117
11395
|
// helper variables
|
|
11118
11396
|
let userAgent = window.navigator.userAgent;
|
|
11119
11397
|
|
|
@@ -11188,18 +11466,21 @@
|
|
|
11188
11466
|
|
|
11189
11467
|
const writable_props = ["modaltext", "modalsource"];
|
|
11190
11468
|
|
|
11191
|
-
|
|
11469
|
+
Object_1$1.keys($$props).forEach(key => {
|
|
11192
11470
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
11193
11471
|
});
|
|
11194
11472
|
|
|
11195
11473
|
$$self.$$set = $$props => {
|
|
11196
11474
|
if ("modaltext" in $$props) $$invalidate(0, modaltext = $$props.modaltext);
|
|
11197
|
-
if ("modalsource" in $$props) $$invalidate(
|
|
11475
|
+
if ("modalsource" in $$props) $$invalidate(6, modalsource = $$props.modalsource);
|
|
11198
11476
|
};
|
|
11199
11477
|
|
|
11200
11478
|
$$self.$capture_state = () => ({
|
|
11201
11479
|
onMount,
|
|
11202
11480
|
getDevice,
|
|
11481
|
+
_: X,
|
|
11482
|
+
addNewMessages,
|
|
11483
|
+
PlayerGamingLimitsModalTranslations,
|
|
11203
11484
|
modaltext,
|
|
11204
11485
|
modalsource,
|
|
11205
11486
|
userAgent,
|
|
@@ -11211,14 +11492,15 @@
|
|
|
11211
11492
|
cancelChanges,
|
|
11212
11493
|
obtainLimitCategoryName,
|
|
11213
11494
|
messageHandler,
|
|
11214
|
-
initialLoad
|
|
11495
|
+
initialLoad,
|
|
11496
|
+
$_
|
|
11215
11497
|
});
|
|
11216
11498
|
|
|
11217
11499
|
$$self.$inject_state = $$props => {
|
|
11218
11500
|
if ("modaltext" in $$props) $$invalidate(0, modaltext = $$props.modaltext);
|
|
11219
|
-
if ("modalsource" in $$props) $$invalidate(
|
|
11501
|
+
if ("modalsource" in $$props) $$invalidate(6, modalsource = $$props.modalsource);
|
|
11220
11502
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
11221
|
-
if ("isMobile" in $$props) $$invalidate(
|
|
11503
|
+
if ("isMobile" in $$props) $$invalidate(2, isMobile = $$props.isMobile);
|
|
11222
11504
|
if ("limitItemData" in $$props) limitItemData = $$props.limitItemData;
|
|
11223
11505
|
if ("limitName" in $$props) limitName = $$props.limitName;
|
|
11224
11506
|
};
|
|
@@ -11228,10 +11510,10 @@
|
|
|
11228
11510
|
}
|
|
11229
11511
|
|
|
11230
11512
|
$$self.$$.update = () => {
|
|
11231
|
-
if ($$self.$$.dirty & /*modaltext, modalsource*/
|
|
11513
|
+
if ($$self.$$.dirty & /*modaltext, modalsource*/ 65) ;
|
|
11232
11514
|
};
|
|
11233
11515
|
|
|
11234
|
-
return [modaltext, isMobile, close, confirmChanges, cancelChanges, modalsource];
|
|
11516
|
+
return [modaltext, $_, isMobile, close, confirmChanges, cancelChanges, modalsource];
|
|
11235
11517
|
}
|
|
11236
11518
|
|
|
11237
11519
|
class PlayerAccountGamingLimitsConfirmationModal extends SvelteElement {
|
|
@@ -11249,7 +11531,7 @@
|
|
|
11249
11531
|
instance$1,
|
|
11250
11532
|
create_fragment$1,
|
|
11251
11533
|
safe_not_equal,
|
|
11252
|
-
{ modaltext: 0, modalsource:
|
|
11534
|
+
{ modaltext: 0, modalsource: 6 }
|
|
11253
11535
|
);
|
|
11254
11536
|
|
|
11255
11537
|
if (options) {
|
|
@@ -11278,7 +11560,7 @@
|
|
|
11278
11560
|
}
|
|
11279
11561
|
|
|
11280
11562
|
get modalsource() {
|
|
11281
|
-
return this.$$.ctx[
|
|
11563
|
+
return this.$$.ctx[6];
|
|
11282
11564
|
}
|
|
11283
11565
|
|
|
11284
11566
|
set modalsource(modalsource) {
|
|
@@ -11290,68 +11572,75 @@
|
|
|
11290
11572
|
!customElements.get('player-account-gaming-limits-confirmation-modal') && customElements.define('player-account-gaming-limits-confirmation-modal', PlayerAccountGamingLimitsConfirmationModal);
|
|
11291
11573
|
|
|
11292
11574
|
/* src/PlayerAccountGamingLimitsGroupEdit.svelte generated by Svelte v3.37.0 */
|
|
11575
|
+
|
|
11576
|
+
const { Object: Object_1 } = globals;
|
|
11293
11577
|
const file = "src/PlayerAccountGamingLimitsGroupEdit.svelte";
|
|
11294
11578
|
|
|
11295
11579
|
function get_each_context_2(ctx, list, i) {
|
|
11296
11580
|
const child_ctx = ctx.slice();
|
|
11297
|
-
child_ctx[
|
|
11298
|
-
child_ctx[
|
|
11299
|
-
child_ctx[
|
|
11581
|
+
child_ctx[54] = list[i];
|
|
11582
|
+
child_ctx[55] = list;
|
|
11583
|
+
child_ctx[50] = i;
|
|
11300
11584
|
return child_ctx;
|
|
11301
11585
|
}
|
|
11302
11586
|
|
|
11303
11587
|
function get_each_context_3(ctx, list, i) {
|
|
11304
11588
|
const child_ctx = ctx.slice();
|
|
11305
|
-
child_ctx[
|
|
11589
|
+
child_ctx[48] = list[i];
|
|
11306
11590
|
return child_ctx;
|
|
11307
11591
|
}
|
|
11308
11592
|
|
|
11309
11593
|
function get_each_context_4(ctx, list, i) {
|
|
11310
11594
|
const child_ctx = ctx.slice();
|
|
11311
|
-
child_ctx[
|
|
11595
|
+
child_ctx[48] = list[i];
|
|
11312
11596
|
return child_ctx;
|
|
11313
11597
|
}
|
|
11314
11598
|
|
|
11315
11599
|
function get_each_context(ctx, list, i) {
|
|
11316
11600
|
const child_ctx = ctx.slice();
|
|
11317
|
-
child_ctx[
|
|
11318
|
-
child_ctx[
|
|
11319
|
-
child_ctx[
|
|
11601
|
+
child_ctx[48] = list[i];
|
|
11602
|
+
child_ctx[49] = list;
|
|
11603
|
+
child_ctx[50] = i;
|
|
11320
11604
|
return child_ctx;
|
|
11321
11605
|
}
|
|
11322
11606
|
|
|
11323
11607
|
function get_each_context_1(ctx, list, i) {
|
|
11324
11608
|
const child_ctx = ctx.slice();
|
|
11325
|
-
child_ctx[
|
|
11609
|
+
child_ctx[51] = list[i];
|
|
11326
11610
|
return child_ctx;
|
|
11327
11611
|
}
|
|
11328
11612
|
|
|
11329
11613
|
function get_each_context_5(ctx, list, i) {
|
|
11330
11614
|
const child_ctx = ctx.slice();
|
|
11331
|
-
child_ctx[
|
|
11332
|
-
child_ctx[
|
|
11615
|
+
child_ctx[48] = list[i];
|
|
11616
|
+
child_ctx[50] = i;
|
|
11333
11617
|
return child_ctx;
|
|
11334
11618
|
}
|
|
11335
11619
|
|
|
11336
|
-
// (
|
|
11620
|
+
// (433:2) {#if showsuccessnotification}
|
|
11337
11621
|
function create_if_block_17(ctx) {
|
|
11338
11622
|
let div;
|
|
11339
11623
|
let p;
|
|
11624
|
+
let t_value = /*$_*/ ctx[17]("editText.success") + "";
|
|
11625
|
+
let t;
|
|
11340
11626
|
|
|
11341
11627
|
const block = {
|
|
11342
11628
|
c: function create() {
|
|
11343
11629
|
div = element("div");
|
|
11344
11630
|
p = element("p");
|
|
11345
|
-
|
|
11346
|
-
add_location(p, file,
|
|
11631
|
+
t = text(t_value);
|
|
11632
|
+
add_location(p, file, 434, 6, 18409);
|
|
11347
11633
|
attr_dev(div, "class", "AccountEditLimitSuccessfulChangeContainer");
|
|
11348
|
-
add_location(div, file,
|
|
11634
|
+
add_location(div, file, 433, 4, 18347);
|
|
11349
11635
|
},
|
|
11350
11636
|
m: function mount(target, anchor) {
|
|
11351
11637
|
insert_dev(target, div, anchor);
|
|
11352
11638
|
append_dev(div, p);
|
|
11639
|
+
append_dev(p, t);
|
|
11640
|
+
},
|
|
11641
|
+
p: function update(ctx, dirty) {
|
|
11642
|
+
if (dirty[0] & /*$_*/ 131072 && t_value !== (t_value = /*$_*/ ctx[17]("editText.success") + "")) set_data_dev(t, t_value);
|
|
11353
11643
|
},
|
|
11354
|
-
p: noop$1,
|
|
11355
11644
|
d: function destroy(detaching) {
|
|
11356
11645
|
if (detaching) detach_dev(div);
|
|
11357
11646
|
}
|
|
@@ -11361,19 +11650,19 @@
|
|
|
11361
11650
|
block,
|
|
11362
11651
|
id: create_if_block_17.name,
|
|
11363
11652
|
type: "if",
|
|
11364
|
-
source: "(
|
|
11653
|
+
source: "(433:2) {#if showsuccessnotification}",
|
|
11365
11654
|
ctx
|
|
11366
11655
|
});
|
|
11367
11656
|
|
|
11368
11657
|
return block;
|
|
11369
11658
|
}
|
|
11370
11659
|
|
|
11371
|
-
// (
|
|
11660
|
+
// (438:2) {#if showdeletenotification}
|
|
11372
11661
|
function create_if_block_14(ctx) {
|
|
11373
11662
|
let div;
|
|
11374
11663
|
|
|
11375
11664
|
function select_block_type(ctx, dirty) {
|
|
11376
|
-
if (/*isArray*/ ctx[
|
|
11665
|
+
if (/*isArray*/ ctx[10]) return create_if_block_15;
|
|
11377
11666
|
return create_else_block_2;
|
|
11378
11667
|
}
|
|
11379
11668
|
|
|
@@ -11385,7 +11674,7 @@
|
|
|
11385
11674
|
div = element("div");
|
|
11386
11675
|
if_block.c();
|
|
11387
11676
|
attr_dev(div, "class", "AccountEditLimitSuccessfulChangeContainer");
|
|
11388
|
-
add_location(div, file,
|
|
11677
|
+
add_location(div, file, 438, 4, 18495);
|
|
11389
11678
|
},
|
|
11390
11679
|
m: function mount(target, anchor) {
|
|
11391
11680
|
insert_dev(target, div, anchor);
|
|
@@ -11414,16 +11703,17 @@
|
|
|
11414
11703
|
block,
|
|
11415
11704
|
id: create_if_block_14.name,
|
|
11416
11705
|
type: "if",
|
|
11417
|
-
source: "(
|
|
11706
|
+
source: "(438:2) {#if showdeletenotification}",
|
|
11418
11707
|
ctx
|
|
11419
11708
|
});
|
|
11420
11709
|
|
|
11421
11710
|
return block;
|
|
11422
11711
|
}
|
|
11423
11712
|
|
|
11424
|
-
// (
|
|
11713
|
+
// (446:6) {:else}
|
|
11425
11714
|
function create_else_block_2(ctx) {
|
|
11426
11715
|
let p;
|
|
11716
|
+
let t0_value = /*$_*/ ctx[17]("editText.remove") + "";
|
|
11427
11717
|
let t0;
|
|
11428
11718
|
let t1;
|
|
11429
11719
|
|
|
@@ -11436,10 +11726,10 @@
|
|
|
11436
11726
|
const block = {
|
|
11437
11727
|
c: function create() {
|
|
11438
11728
|
p = element("p");
|
|
11439
|
-
t0 = text(
|
|
11729
|
+
t0 = text(t0_value);
|
|
11440
11730
|
t1 = space();
|
|
11441
11731
|
t2 = text(t2_value);
|
|
11442
|
-
add_location(p, file,
|
|
11732
|
+
add_location(p, file, 446, 8, 18880);
|
|
11443
11733
|
},
|
|
11444
11734
|
m: function mount(target, anchor) {
|
|
11445
11735
|
insert_dev(target, p, anchor);
|
|
@@ -11448,6 +11738,8 @@
|
|
|
11448
11738
|
append_dev(p, t2);
|
|
11449
11739
|
},
|
|
11450
11740
|
p: function update(ctx, dirty) {
|
|
11741
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.remove") + "")) set_data_dev(t0, t0_value);
|
|
11742
|
+
|
|
11451
11743
|
if (dirty[0] & /*limitsdata*/ 1 && t2_value !== (t2_value = (/*limitsdata*/ ctx[0].expiryDate
|
|
11452
11744
|
? moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
|
|
11453
11745
|
: "N/A") + "")) set_data_dev(t2, t2_value);
|
|
@@ -11461,17 +11753,17 @@
|
|
|
11461
11753
|
block,
|
|
11462
11754
|
id: create_else_block_2.name,
|
|
11463
11755
|
type: "else",
|
|
11464
|
-
source: "(
|
|
11756
|
+
source: "(446:6) {:else}",
|
|
11465
11757
|
ctx
|
|
11466
11758
|
});
|
|
11467
11759
|
|
|
11468
11760
|
return block;
|
|
11469
11761
|
}
|
|
11470
11762
|
|
|
11471
|
-
// (
|
|
11763
|
+
// (440:6) {#if isArray}
|
|
11472
11764
|
function create_if_block_15(ctx) {
|
|
11473
11765
|
let each_1_anchor;
|
|
11474
|
-
let each_value_5 = /*limitsUpdateData*/ ctx[
|
|
11766
|
+
let each_value_5 = /*limitsUpdateData*/ ctx[13];
|
|
11475
11767
|
validate_each_argument(each_value_5);
|
|
11476
11768
|
let each_blocks = [];
|
|
11477
11769
|
|
|
@@ -11495,8 +11787,8 @@
|
|
|
11495
11787
|
insert_dev(target, each_1_anchor, anchor);
|
|
11496
11788
|
},
|
|
11497
11789
|
p: function update(ctx, dirty) {
|
|
11498
|
-
if (dirty[0] & /*limitsUpdateData,
|
|
11499
|
-
each_value_5 = /*limitsUpdateData*/ ctx[
|
|
11790
|
+
if (dirty[0] & /*limitsUpdateData, $_, storedData*/ 204800) {
|
|
11791
|
+
each_value_5 = /*limitsUpdateData*/ ctx[13];
|
|
11500
11792
|
validate_each_argument(each_value_5);
|
|
11501
11793
|
let i;
|
|
11502
11794
|
|
|
@@ -11529,21 +11821,22 @@
|
|
|
11529
11821
|
block,
|
|
11530
11822
|
id: create_if_block_15.name,
|
|
11531
11823
|
type: "if",
|
|
11532
|
-
source: "(
|
|
11824
|
+
source: "(440:6) {#if isArray}",
|
|
11533
11825
|
ctx
|
|
11534
11826
|
});
|
|
11535
11827
|
|
|
11536
11828
|
return block;
|
|
11537
11829
|
}
|
|
11538
11830
|
|
|
11539
|
-
// (
|
|
11831
|
+
// (442:10) {#if selectData.period == storedData[index].periodName}
|
|
11540
11832
|
function create_if_block_16(ctx) {
|
|
11541
11833
|
let p;
|
|
11834
|
+
let t0_value = /*$_*/ ctx[17]("editText.remove") + "";
|
|
11542
11835
|
let t0;
|
|
11543
11836
|
let t1;
|
|
11544
11837
|
|
|
11545
|
-
let t2_value = (/*selectData*/ ctx[
|
|
11546
|
-
? moment(/*selectData*/ ctx[
|
|
11838
|
+
let t2_value = (/*selectData*/ ctx[48].expiryDate
|
|
11839
|
+
? moment(/*selectData*/ ctx[48].expiryDate).format("D/M/YYYY - h:mm A")
|
|
11547
11840
|
: "N/A") + "";
|
|
11548
11841
|
|
|
11549
11842
|
let t2;
|
|
@@ -11551,10 +11844,10 @@
|
|
|
11551
11844
|
const block = {
|
|
11552
11845
|
c: function create() {
|
|
11553
11846
|
p = element("p");
|
|
11554
|
-
t0 = text(
|
|
11847
|
+
t0 = text(t0_value);
|
|
11555
11848
|
t1 = space();
|
|
11556
11849
|
t2 = text(t2_value);
|
|
11557
|
-
add_location(p, file,
|
|
11850
|
+
add_location(p, file, 442, 12, 18703);
|
|
11558
11851
|
},
|
|
11559
11852
|
m: function mount(target, anchor) {
|
|
11560
11853
|
insert_dev(target, p, anchor);
|
|
@@ -11563,8 +11856,10 @@
|
|
|
11563
11856
|
append_dev(p, t2);
|
|
11564
11857
|
},
|
|
11565
11858
|
p: function update(ctx, dirty) {
|
|
11566
|
-
if (dirty[0] &
|
|
11567
|
-
|
|
11859
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.remove") + "")) set_data_dev(t0, t0_value);
|
|
11860
|
+
|
|
11861
|
+
if (dirty[0] & /*limitsUpdateData*/ 8192 && t2_value !== (t2_value = (/*selectData*/ ctx[48].expiryDate
|
|
11862
|
+
? moment(/*selectData*/ ctx[48].expiryDate).format("D/M/YYYY - h:mm A")
|
|
11568
11863
|
: "N/A") + "")) set_data_dev(t2, t2_value);
|
|
11569
11864
|
},
|
|
11570
11865
|
d: function destroy(detaching) {
|
|
@@ -11576,17 +11871,17 @@
|
|
|
11576
11871
|
block,
|
|
11577
11872
|
id: create_if_block_16.name,
|
|
11578
11873
|
type: "if",
|
|
11579
|
-
source: "(
|
|
11874
|
+
source: "(442:10) {#if selectData.period == storedData[index].periodName}",
|
|
11580
11875
|
ctx
|
|
11581
11876
|
});
|
|
11582
11877
|
|
|
11583
11878
|
return block;
|
|
11584
11879
|
}
|
|
11585
11880
|
|
|
11586
|
-
// (
|
|
11881
|
+
// (441:8) {#each limitsUpdateData as selectData, index}
|
|
11587
11882
|
function create_each_block_5(ctx) {
|
|
11588
11883
|
let if_block_anchor;
|
|
11589
|
-
let if_block = /*selectData*/ ctx[
|
|
11884
|
+
let if_block = /*selectData*/ ctx[48].period == /*storedData*/ ctx[16][/*index*/ ctx[50]].periodName && create_if_block_16(ctx);
|
|
11590
11885
|
|
|
11591
11886
|
const block = {
|
|
11592
11887
|
c: function create() {
|
|
@@ -11598,7 +11893,7 @@
|
|
|
11598
11893
|
insert_dev(target, if_block_anchor, anchor);
|
|
11599
11894
|
},
|
|
11600
11895
|
p: function update(ctx, dirty) {
|
|
11601
|
-
if (/*selectData*/ ctx[
|
|
11896
|
+
if (/*selectData*/ ctx[48].period == /*storedData*/ ctx[16][/*index*/ ctx[50]].periodName) {
|
|
11602
11897
|
if (if_block) {
|
|
11603
11898
|
if_block.p(ctx, dirty);
|
|
11604
11899
|
} else {
|
|
@@ -11621,19 +11916,19 @@
|
|
|
11621
11916
|
block,
|
|
11622
11917
|
id: create_each_block_5.name,
|
|
11623
11918
|
type: "each",
|
|
11624
|
-
source: "(
|
|
11919
|
+
source: "(441:8) {#each limitsUpdateData as selectData, index}",
|
|
11625
11920
|
ctx
|
|
11626
11921
|
});
|
|
11627
11922
|
|
|
11628
11923
|
return block;
|
|
11629
11924
|
}
|
|
11630
11925
|
|
|
11631
|
-
// (
|
|
11926
|
+
// (451:2) {#if showLimits}
|
|
11632
11927
|
function create_if_block(ctx) {
|
|
11633
11928
|
let div;
|
|
11634
11929
|
|
|
11635
11930
|
function select_block_type_1(ctx, dirty) {
|
|
11636
|
-
if (/*isArray*/ ctx[
|
|
11931
|
+
if (/*isArray*/ ctx[10]) return create_if_block_1;
|
|
11637
11932
|
return create_else_block_1;
|
|
11638
11933
|
}
|
|
11639
11934
|
|
|
@@ -11645,7 +11940,7 @@
|
|
|
11645
11940
|
div = element("div");
|
|
11646
11941
|
if_block.c();
|
|
11647
11942
|
attr_dev(div, "class", "AccountEditContent");
|
|
11648
|
-
add_location(div, file,
|
|
11943
|
+
add_location(div, file, 451, 2, 19055);
|
|
11649
11944
|
},
|
|
11650
11945
|
m: function mount(target, anchor) {
|
|
11651
11946
|
insert_dev(target, div, anchor);
|
|
@@ -11674,14 +11969,14 @@
|
|
|
11674
11969
|
block,
|
|
11675
11970
|
id: create_if_block.name,
|
|
11676
11971
|
type: "if",
|
|
11677
|
-
source: "(
|
|
11972
|
+
source: "(451:2) {#if showLimits}",
|
|
11678
11973
|
ctx
|
|
11679
11974
|
});
|
|
11680
11975
|
|
|
11681
11976
|
return block;
|
|
11682
11977
|
}
|
|
11683
11978
|
|
|
11684
|
-
// (
|
|
11979
|
+
// (492:4) {:else}
|
|
11685
11980
|
function create_else_block_1(ctx) {
|
|
11686
11981
|
let div1;
|
|
11687
11982
|
let div0;
|
|
@@ -11692,7 +11987,7 @@
|
|
|
11692
11987
|
let t2;
|
|
11693
11988
|
let mounted;
|
|
11694
11989
|
let dispose;
|
|
11695
|
-
let each_value_4 = /*periodValues*/ ctx[
|
|
11990
|
+
let each_value_4 = /*periodValues*/ ctx[21];
|
|
11696
11991
|
validate_each_argument(each_value_4);
|
|
11697
11992
|
let each_blocks_1 = [];
|
|
11698
11993
|
|
|
@@ -11700,7 +11995,7 @@
|
|
|
11700
11995
|
each_blocks_1[i] = create_each_block_4(get_each_context_4(ctx, each_value_4, i));
|
|
11701
11996
|
}
|
|
11702
11997
|
|
|
11703
|
-
let each_value_2 = /*storedData*/ ctx[
|
|
11998
|
+
let each_value_2 = /*storedData*/ ctx[16];
|
|
11704
11999
|
validate_each_argument(each_value_2);
|
|
11705
12000
|
let each_blocks = [];
|
|
11706
12001
|
|
|
@@ -11728,15 +12023,15 @@
|
|
|
11728
12023
|
}
|
|
11729
12024
|
|
|
11730
12025
|
attr_dev(p, "class", "AccountEditLimitsTitle");
|
|
11731
|
-
add_location(p, file,
|
|
12026
|
+
add_location(p, file, 494, 10, 22230);
|
|
11732
12027
|
attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[18] ? "TimeoutSelectMobile" : ""));
|
|
11733
|
-
select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[
|
|
11734
|
-
if (/*limitsUpdateData*/ ctx[
|
|
11735
|
-
add_location(select, file,
|
|
12028
|
+
select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true;
|
|
12029
|
+
if (/*limitsUpdateData*/ ctx[13].period === void 0) add_render_callback(() => /*select_change_handler_1*/ ctx[29].call(select));
|
|
12030
|
+
add_location(select, file, 495, 10, 22284);
|
|
11736
12031
|
attr_dev(div0, "class", "AccountEditLimitsSplitSection");
|
|
11737
|
-
add_location(div0, file,
|
|
12032
|
+
add_location(div0, file, 493, 8, 22176);
|
|
11738
12033
|
attr_dev(div1, "class", "AccountEditLimitsContainer");
|
|
11739
|
-
add_location(div1, file,
|
|
12034
|
+
add_location(div1, file, 492, 6, 22127);
|
|
11740
12035
|
},
|
|
11741
12036
|
m: function mount(target, anchor) {
|
|
11742
12037
|
insert_dev(target, div1, anchor);
|
|
@@ -11749,7 +12044,7 @@
|
|
|
11749
12044
|
each_blocks_1[i].m(select, null);
|
|
11750
12045
|
}
|
|
11751
12046
|
|
|
11752
|
-
select_option(select, /*limitsUpdateData*/ ctx[
|
|
12047
|
+
select_option(select, /*limitsUpdateData*/ ctx[13].period);
|
|
11753
12048
|
append_dev(div1, t2);
|
|
11754
12049
|
|
|
11755
12050
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
@@ -11758,12 +12053,12 @@
|
|
|
11758
12053
|
|
|
11759
12054
|
if (!mounted) {
|
|
11760
12055
|
dispose = [
|
|
11761
|
-
listen_dev(select, "change", /*select_change_handler_1*/ ctx[
|
|
12056
|
+
listen_dev(select, "change", /*select_change_handler_1*/ ctx[29]),
|
|
11762
12057
|
listen_dev(
|
|
11763
12058
|
select,
|
|
11764
12059
|
"change",
|
|
11765
12060
|
function () {
|
|
11766
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
12061
|
+
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);
|
|
11767
12062
|
},
|
|
11768
12063
|
false,
|
|
11769
12064
|
false,
|
|
@@ -11777,8 +12072,8 @@
|
|
|
11777
12072
|
p: function update(new_ctx, dirty) {
|
|
11778
12073
|
ctx = new_ctx;
|
|
11779
12074
|
|
|
11780
|
-
if (dirty[0] & /*periodValues*/
|
|
11781
|
-
each_value_4 = /*periodValues*/ ctx[
|
|
12075
|
+
if (dirty[0] & /*periodValues*/ 2097152) {
|
|
12076
|
+
each_value_4 = /*periodValues*/ ctx[21];
|
|
11782
12077
|
validate_each_argument(each_value_4);
|
|
11783
12078
|
let i;
|
|
11784
12079
|
|
|
@@ -11801,16 +12096,16 @@
|
|
|
11801
12096
|
each_blocks_1.length = each_value_4.length;
|
|
11802
12097
|
}
|
|
11803
12098
|
|
|
11804
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
12099
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && select_disabled_value !== (select_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true)) {
|
|
11805
12100
|
prop_dev(select, "disabled", select_disabled_value);
|
|
11806
12101
|
}
|
|
11807
12102
|
|
|
11808
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
11809
|
-
select_option(select, /*limitsUpdateData*/ ctx[
|
|
12103
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344) {
|
|
12104
|
+
select_option(select, /*limitsUpdateData*/ ctx[13].period);
|
|
11810
12105
|
}
|
|
11811
12106
|
|
|
11812
|
-
if (dirty[0] &
|
|
11813
|
-
each_value_2 = /*storedData*/ ctx[
|
|
12107
|
+
if (dirty[0] & /*$_, playercurrency, limitsdata, limitsUpdateData, invalidIndex, storedData, checkUserInputAmount, updatedLimitValues, isMobile, lossLimitPredefinedValues*/ 35106833) {
|
|
12108
|
+
each_value_2 = /*storedData*/ ctx[16];
|
|
11814
12109
|
validate_each_argument(each_value_2);
|
|
11815
12110
|
let i;
|
|
11816
12111
|
|
|
@@ -11846,17 +12141,17 @@
|
|
|
11846
12141
|
block,
|
|
11847
12142
|
id: create_else_block_1.name,
|
|
11848
12143
|
type: "else",
|
|
11849
|
-
source: "(
|
|
12144
|
+
source: "(492:4) {:else}",
|
|
11850
12145
|
ctx
|
|
11851
12146
|
});
|
|
11852
12147
|
|
|
11853
12148
|
return block;
|
|
11854
12149
|
}
|
|
11855
12150
|
|
|
11856
|
-
// (
|
|
12151
|
+
// (453:4) {#if (isArray)}
|
|
11857
12152
|
function create_if_block_1(ctx) {
|
|
11858
12153
|
let div;
|
|
11859
|
-
let each_value = /*limitsUpdateData*/ ctx[
|
|
12154
|
+
let each_value = /*limitsUpdateData*/ ctx[13];
|
|
11860
12155
|
validate_each_argument(each_value);
|
|
11861
12156
|
let each_blocks = [];
|
|
11862
12157
|
|
|
@@ -11873,7 +12168,7 @@
|
|
|
11873
12168
|
}
|
|
11874
12169
|
|
|
11875
12170
|
attr_dev(div, "class", "AccountEditLimitsContainer");
|
|
11876
|
-
add_location(div, file,
|
|
12171
|
+
add_location(div, file, 453, 6, 19179);
|
|
11877
12172
|
},
|
|
11878
12173
|
m: function mount(target, anchor) {
|
|
11879
12174
|
insert_dev(target, div, anchor);
|
|
@@ -11883,8 +12178,8 @@
|
|
|
11883
12178
|
}
|
|
11884
12179
|
},
|
|
11885
12180
|
p: function update(ctx, dirty) {
|
|
11886
|
-
if (dirty[0] &
|
|
11887
|
-
each_value = /*limitsUpdateData*/ ctx[
|
|
12181
|
+
if (dirty[0] & /*$_, limitsUpdateData, playercurrency, invalidIndexes, storedData, checkUserInputAmount, updatedLimitValues, limitname, minTimeValue, maxTimeValue, isMobile, depositPredefinedValues*/ 34580888) {
|
|
12182
|
+
each_value = /*limitsUpdateData*/ ctx[13];
|
|
11888
12183
|
validate_each_argument(each_value);
|
|
11889
12184
|
let i;
|
|
11890
12185
|
|
|
@@ -11917,26 +12212,26 @@
|
|
|
11917
12212
|
block,
|
|
11918
12213
|
id: create_if_block_1.name,
|
|
11919
12214
|
type: "if",
|
|
11920
|
-
source: "(
|
|
12215
|
+
source: "(453:4) {#if (isArray)}",
|
|
11921
12216
|
ctx
|
|
11922
12217
|
});
|
|
11923
12218
|
|
|
11924
12219
|
return block;
|
|
11925
12220
|
}
|
|
11926
12221
|
|
|
11927
|
-
// (
|
|
12222
|
+
// (497:12) {#each periodValues as selectData}
|
|
11928
12223
|
function create_each_block_4(ctx) {
|
|
11929
12224
|
let option;
|
|
11930
|
-
let t_value = /*selectData*/ ctx[
|
|
12225
|
+
let t_value = /*selectData*/ ctx[48] + "";
|
|
11931
12226
|
let t;
|
|
11932
12227
|
|
|
11933
12228
|
const block = {
|
|
11934
12229
|
c: function create() {
|
|
11935
12230
|
option = element("option");
|
|
11936
12231
|
t = text(t_value);
|
|
11937
|
-
option.__value = /*selectData*/ ctx[
|
|
12232
|
+
option.__value = /*selectData*/ ctx[48];
|
|
11938
12233
|
option.value = option.__value;
|
|
11939
|
-
add_location(option, file,
|
|
12234
|
+
add_location(option, file, 497, 14, 22585);
|
|
11940
12235
|
},
|
|
11941
12236
|
m: function mount(target, anchor) {
|
|
11942
12237
|
insert_dev(target, option, anchor);
|
|
@@ -11952,20 +12247,24 @@
|
|
|
11952
12247
|
block,
|
|
11953
12248
|
id: create_each_block_4.name,
|
|
11954
12249
|
type: "each",
|
|
11955
|
-
source: "(
|
|
12250
|
+
source: "(497:12) {#each periodValues as selectData}",
|
|
11956
12251
|
ctx
|
|
11957
12252
|
});
|
|
11958
12253
|
|
|
11959
12254
|
return block;
|
|
11960
12255
|
}
|
|
11961
12256
|
|
|
11962
|
-
// (
|
|
12257
|
+
// (503:10) {#if limitsUpdateData.period === savedData.periodName}
|
|
11963
12258
|
function create_if_block_9(ctx) {
|
|
11964
12259
|
let div1;
|
|
11965
12260
|
let p;
|
|
12261
|
+
let t0_value = /*$_*/ ctx[17]("editText.amount") + "";
|
|
12262
|
+
let t0;
|
|
11966
12263
|
let t1;
|
|
11967
12264
|
let select;
|
|
11968
12265
|
let option;
|
|
12266
|
+
let t2_value = /*$_*/ ctx[17]("editText.noLimit") + "";
|
|
12267
|
+
let t2;
|
|
11969
12268
|
let select_disabled_value;
|
|
11970
12269
|
let t3;
|
|
11971
12270
|
let div0;
|
|
@@ -11973,7 +12272,7 @@
|
|
|
11973
12272
|
let t5;
|
|
11974
12273
|
let mounted;
|
|
11975
12274
|
let dispose;
|
|
11976
|
-
let each_value_3 = /*lossLimitPredefinedValues*/ ctx[
|
|
12275
|
+
let each_value_3 = /*lossLimitPredefinedValues*/ ctx[20];
|
|
11977
12276
|
validate_each_argument(each_value_3);
|
|
11978
12277
|
let each_blocks = [];
|
|
11979
12278
|
|
|
@@ -11982,21 +12281,21 @@
|
|
|
11982
12281
|
}
|
|
11983
12282
|
|
|
11984
12283
|
function select_change_handler_2() {
|
|
11985
|
-
/*select_change_handler_2*/ ctx[
|
|
12284
|
+
/*select_change_handler_2*/ ctx[30].call(select, /*each_value_2*/ ctx[55], /*index*/ ctx[50]);
|
|
11986
12285
|
}
|
|
11987
12286
|
|
|
11988
|
-
let if_block0 = /*savedData*/ ctx[
|
|
11989
|
-
let if_block1 = /*limitsUpdateData*/ ctx[
|
|
12287
|
+
let if_block0 = /*savedData*/ ctx[54].amount === "Custom" && create_if_block_11(ctx);
|
|
12288
|
+
let if_block1 = /*limitsUpdateData*/ ctx[13].isModified === true && create_if_block_10(ctx);
|
|
11990
12289
|
|
|
11991
12290
|
const block = {
|
|
11992
12291
|
c: function create() {
|
|
11993
12292
|
div1 = element("div");
|
|
11994
12293
|
p = element("p");
|
|
11995
|
-
|
|
12294
|
+
t0 = text(t0_value);
|
|
11996
12295
|
t1 = space();
|
|
11997
12296
|
select = element("select");
|
|
11998
12297
|
option = element("option");
|
|
11999
|
-
|
|
12298
|
+
t2 = text(t2_value);
|
|
12000
12299
|
|
|
12001
12300
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
12002
12301
|
each_blocks[i].c();
|
|
@@ -12009,34 +12308,36 @@
|
|
|
12009
12308
|
if (if_block1) if_block1.c();
|
|
12010
12309
|
t5 = space();
|
|
12011
12310
|
attr_dev(p, "class", "AccountEditLimitsTitle");
|
|
12012
|
-
add_location(p, file,
|
|
12311
|
+
add_location(p, file, 504, 14, 22871);
|
|
12013
12312
|
option.__value = "";
|
|
12014
12313
|
option.value = option.__value;
|
|
12015
12314
|
option.disabled = true;
|
|
12016
12315
|
option.selected = true;
|
|
12017
12316
|
option.hidden = true;
|
|
12018
|
-
add_location(option, file,
|
|
12317
|
+
add_location(option, file, 506, 16, 23189);
|
|
12019
12318
|
attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[18] ? "TimeoutSelectMobile" : ""));
|
|
12020
|
-
select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[
|
|
12021
|
-
if (/*savedData*/ ctx[
|
|
12022
|
-
add_location(select, file,
|
|
12319
|
+
select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true;
|
|
12320
|
+
if (/*savedData*/ ctx[54].amount === void 0) add_render_callback(select_change_handler_2);
|
|
12321
|
+
add_location(select, file, 505, 14, 22947);
|
|
12023
12322
|
attr_dev(div0, "class", "AccountEditLimitsInputContainer");
|
|
12024
|
-
add_location(div0, file,
|
|
12323
|
+
add_location(div0, file, 511, 14, 23581);
|
|
12025
12324
|
attr_dev(div1, "class", "AccountEditLimitsSplitSection");
|
|
12026
|
-
add_location(div1, file,
|
|
12325
|
+
add_location(div1, file, 503, 12, 22813);
|
|
12027
12326
|
},
|
|
12028
12327
|
m: function mount(target, anchor) {
|
|
12029
12328
|
insert_dev(target, div1, anchor);
|
|
12030
12329
|
append_dev(div1, p);
|
|
12330
|
+
append_dev(p, t0);
|
|
12031
12331
|
append_dev(div1, t1);
|
|
12032
12332
|
append_dev(div1, select);
|
|
12033
12333
|
append_dev(select, option);
|
|
12334
|
+
append_dev(option, t2);
|
|
12034
12335
|
|
|
12035
12336
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
12036
12337
|
each_blocks[i].m(select, null);
|
|
12037
12338
|
}
|
|
12038
12339
|
|
|
12039
|
-
select_option(select, /*savedData*/ ctx[
|
|
12340
|
+
select_option(select, /*savedData*/ ctx[54].amount);
|
|
12040
12341
|
append_dev(div1, t3);
|
|
12041
12342
|
append_dev(div1, div0);
|
|
12042
12343
|
if (if_block0) if_block0.m(div0, null);
|
|
@@ -12051,7 +12352,7 @@
|
|
|
12051
12352
|
select,
|
|
12052
12353
|
"change",
|
|
12053
12354
|
function () {
|
|
12054
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
12355
|
+
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);
|
|
12055
12356
|
},
|
|
12056
12357
|
false,
|
|
12057
12358
|
false,
|
|
@@ -12064,9 +12365,11 @@
|
|
|
12064
12365
|
},
|
|
12065
12366
|
p: function update(new_ctx, dirty) {
|
|
12066
12367
|
ctx = new_ctx;
|
|
12368
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.amount") + "")) set_data_dev(t0, t0_value);
|
|
12369
|
+
if (dirty[0] & /*$_*/ 131072 && t2_value !== (t2_value = /*$_*/ ctx[17]("editText.noLimit") + "")) set_data_dev(t2, t2_value);
|
|
12067
12370
|
|
|
12068
|
-
if (dirty[0] & /*lossLimitPredefinedValues,
|
|
12069
|
-
each_value_3 = /*lossLimitPredefinedValues*/ ctx[
|
|
12371
|
+
if (dirty[0] & /*lossLimitPredefinedValues, playercurrency*/ 1048592) {
|
|
12372
|
+
each_value_3 = /*lossLimitPredefinedValues*/ ctx[20];
|
|
12070
12373
|
validate_each_argument(each_value_3);
|
|
12071
12374
|
let i;
|
|
12072
12375
|
|
|
@@ -12089,15 +12392,15 @@
|
|
|
12089
12392
|
each_blocks.length = each_value_3.length;
|
|
12090
12393
|
}
|
|
12091
12394
|
|
|
12092
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
12395
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && select_disabled_value !== (select_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true)) {
|
|
12093
12396
|
prop_dev(select, "disabled", select_disabled_value);
|
|
12094
12397
|
}
|
|
12095
12398
|
|
|
12096
|
-
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/
|
|
12097
|
-
select_option(select, /*savedData*/ ctx[
|
|
12399
|
+
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 1114112) {
|
|
12400
|
+
select_option(select, /*savedData*/ ctx[54].amount);
|
|
12098
12401
|
}
|
|
12099
12402
|
|
|
12100
|
-
if (/*savedData*/ ctx[
|
|
12403
|
+
if (/*savedData*/ ctx[54].amount === "Custom") {
|
|
12101
12404
|
if (if_block0) {
|
|
12102
12405
|
if_block0.p(ctx, dirty);
|
|
12103
12406
|
} else {
|
|
@@ -12110,7 +12413,7 @@
|
|
|
12110
12413
|
if_block0 = null;
|
|
12111
12414
|
}
|
|
12112
12415
|
|
|
12113
|
-
if (/*limitsUpdateData*/ ctx[
|
|
12416
|
+
if (/*limitsUpdateData*/ ctx[13].isModified === true) {
|
|
12114
12417
|
if (if_block1) {
|
|
12115
12418
|
if_block1.p(ctx, dirty);
|
|
12116
12419
|
} else {
|
|
@@ -12137,27 +12440,26 @@
|
|
|
12137
12440
|
block,
|
|
12138
12441
|
id: create_if_block_9.name,
|
|
12139
12442
|
type: "if",
|
|
12140
|
-
source: "(
|
|
12443
|
+
source: "(503:10) {#if limitsUpdateData.period === savedData.periodName}",
|
|
12141
12444
|
ctx
|
|
12142
12445
|
});
|
|
12143
12446
|
|
|
12144
12447
|
return block;
|
|
12145
12448
|
}
|
|
12146
12449
|
|
|
12147
|
-
// (
|
|
12450
|
+
// (509:58) {#if selectData !== "No limit" && selectData !== "Custom"}
|
|
12148
12451
|
function create_if_block_13(ctx) {
|
|
12149
|
-
let t_value = /*limitsUpdateData*/ ctx[14].currency + "";
|
|
12150
12452
|
let t;
|
|
12151
12453
|
|
|
12152
12454
|
const block = {
|
|
12153
12455
|
c: function create() {
|
|
12154
|
-
t = text(
|
|
12456
|
+
t = text(/*playercurrency*/ ctx[4]);
|
|
12155
12457
|
},
|
|
12156
12458
|
m: function mount(target, anchor) {
|
|
12157
12459
|
insert_dev(target, t, anchor);
|
|
12158
12460
|
},
|
|
12159
12461
|
p: function update(ctx, dirty) {
|
|
12160
|
-
if (dirty[0] & /*
|
|
12462
|
+
if (dirty[0] & /*playercurrency*/ 16) set_data_dev(t, /*playercurrency*/ ctx[4]);
|
|
12161
12463
|
},
|
|
12162
12464
|
d: function destroy(detaching) {
|
|
12163
12465
|
if (detaching) detach_dev(t);
|
|
@@ -12168,20 +12470,20 @@
|
|
|
12168
12470
|
block,
|
|
12169
12471
|
id: create_if_block_13.name,
|
|
12170
12472
|
type: "if",
|
|
12171
|
-
source: "(
|
|
12473
|
+
source: "(509:58) {#if selectData !== \\\"No limit\\\" && selectData !== \\\"Custom\\\"}",
|
|
12172
12474
|
ctx
|
|
12173
12475
|
});
|
|
12174
12476
|
|
|
12175
12477
|
return block;
|
|
12176
12478
|
}
|
|
12177
12479
|
|
|
12178
|
-
// (
|
|
12480
|
+
// (508:16) {#each lossLimitPredefinedValues as selectData}
|
|
12179
12481
|
function create_each_block_3(ctx) {
|
|
12180
12482
|
let option;
|
|
12181
|
-
let t0_value = /*selectData*/ ctx[
|
|
12483
|
+
let t0_value = /*selectData*/ ctx[48] + "";
|
|
12182
12484
|
let t0;
|
|
12183
12485
|
let t1;
|
|
12184
|
-
let if_block = /*selectData*/ ctx[
|
|
12486
|
+
let if_block = /*selectData*/ ctx[48] !== "No limit" && /*selectData*/ ctx[48] !== "Custom" && create_if_block_13(ctx);
|
|
12185
12487
|
|
|
12186
12488
|
const block = {
|
|
12187
12489
|
c: function create() {
|
|
@@ -12189,9 +12491,9 @@
|
|
|
12189
12491
|
t0 = text(t0_value);
|
|
12190
12492
|
t1 = space();
|
|
12191
12493
|
if (if_block) if_block.c();
|
|
12192
|
-
option.__value = /*selectData*/ ctx[
|
|
12494
|
+
option.__value = /*selectData*/ ctx[48];
|
|
12193
12495
|
option.value = option.__value;
|
|
12194
|
-
add_location(option, file,
|
|
12496
|
+
add_location(option, file, 508, 18, 23347);
|
|
12195
12497
|
},
|
|
12196
12498
|
m: function mount(target, anchor) {
|
|
12197
12499
|
insert_dev(target, option, anchor);
|
|
@@ -12200,7 +12502,7 @@
|
|
|
12200
12502
|
if (if_block) if_block.m(option, null);
|
|
12201
12503
|
},
|
|
12202
12504
|
p: function update(ctx, dirty) {
|
|
12203
|
-
if (/*selectData*/ ctx[
|
|
12505
|
+
if (/*selectData*/ ctx[48] !== "No limit" && /*selectData*/ ctx[48] !== "Custom") if_block.p(ctx, dirty);
|
|
12204
12506
|
},
|
|
12205
12507
|
d: function destroy(detaching) {
|
|
12206
12508
|
if (detaching) detach_dev(option);
|
|
@@ -12212,14 +12514,14 @@
|
|
|
12212
12514
|
block,
|
|
12213
12515
|
id: create_each_block_3.name,
|
|
12214
12516
|
type: "each",
|
|
12215
|
-
source: "(
|
|
12517
|
+
source: "(508:16) {#each lossLimitPredefinedValues as selectData}",
|
|
12216
12518
|
ctx
|
|
12217
12519
|
});
|
|
12218
12520
|
|
|
12219
12521
|
return block;
|
|
12220
12522
|
}
|
|
12221
12523
|
|
|
12222
|
-
// (
|
|
12524
|
+
// (513:16) {#if savedData.amount === "Custom"}
|
|
12223
12525
|
function create_if_block_11(ctx) {
|
|
12224
12526
|
let input;
|
|
12225
12527
|
let input_disabled_value;
|
|
@@ -12229,10 +12531,10 @@
|
|
|
12229
12531
|
let dispose;
|
|
12230
12532
|
|
|
12231
12533
|
function input_input_handler_2() {
|
|
12232
|
-
/*input_input_handler_2*/ ctx[
|
|
12534
|
+
/*input_input_handler_2*/ ctx[31].call(input, /*each_value_2*/ ctx[55], /*index*/ ctx[50]);
|
|
12233
12535
|
}
|
|
12234
12536
|
|
|
12235
|
-
let if_block = /*invalidIndex*/ ctx[
|
|
12537
|
+
let if_block = /*invalidIndex*/ ctx[12] === true && create_if_block_12(ctx);
|
|
12236
12538
|
|
|
12237
12539
|
const block = {
|
|
12238
12540
|
c: function create() {
|
|
@@ -12242,12 +12544,12 @@
|
|
|
12242
12544
|
if_block_anchor = empty();
|
|
12243
12545
|
attr_dev(input, "type", "number");
|
|
12244
12546
|
attr_dev(input, "class", "AccountEditField");
|
|
12245
|
-
input.disabled = input_disabled_value = /*limitsUpdateData*/ ctx[
|
|
12246
|
-
add_location(input, file,
|
|
12547
|
+
input.disabled = input_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true;
|
|
12548
|
+
add_location(input, file, 513, 18, 23697);
|
|
12247
12549
|
},
|
|
12248
12550
|
m: function mount(target, anchor) {
|
|
12249
12551
|
insert_dev(target, input, anchor);
|
|
12250
|
-
set_input_value(input, /*savedData*/ ctx[
|
|
12552
|
+
set_input_value(input, /*savedData*/ ctx[54].value);
|
|
12251
12553
|
insert_dev(target, t, anchor);
|
|
12252
12554
|
if (if_block) if_block.m(target, anchor);
|
|
12253
12555
|
insert_dev(target, if_block_anchor, anchor);
|
|
@@ -12258,7 +12560,7 @@
|
|
|
12258
12560
|
input,
|
|
12259
12561
|
"keyup",
|
|
12260
12562
|
function () {
|
|
12261
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
12563
|
+
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);
|
|
12262
12564
|
},
|
|
12263
12565
|
false,
|
|
12264
12566
|
false,
|
|
@@ -12273,16 +12575,18 @@
|
|
|
12273
12575
|
p: function update(new_ctx, dirty) {
|
|
12274
12576
|
ctx = new_ctx;
|
|
12275
12577
|
|
|
12276
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
12578
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && input_disabled_value !== (input_disabled_value = /*limitsUpdateData*/ ctx[13].isModified === true)) {
|
|
12277
12579
|
prop_dev(input, "disabled", input_disabled_value);
|
|
12278
12580
|
}
|
|
12279
12581
|
|
|
12280
|
-
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/
|
|
12281
|
-
set_input_value(input, /*savedData*/ ctx[
|
|
12582
|
+
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 1114112 && to_number(input.value) !== /*savedData*/ ctx[54].value) {
|
|
12583
|
+
set_input_value(input, /*savedData*/ ctx[54].value);
|
|
12282
12584
|
}
|
|
12283
12585
|
|
|
12284
|
-
if (/*invalidIndex*/ ctx[
|
|
12285
|
-
if (if_block)
|
|
12586
|
+
if (/*invalidIndex*/ ctx[12] === true) {
|
|
12587
|
+
if (if_block) {
|
|
12588
|
+
if_block.p(ctx, dirty);
|
|
12589
|
+
} else {
|
|
12286
12590
|
if_block = create_if_block_12(ctx);
|
|
12287
12591
|
if_block.c();
|
|
12288
12592
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -12306,31 +12610,37 @@
|
|
|
12306
12610
|
block,
|
|
12307
12611
|
id: create_if_block_11.name,
|
|
12308
12612
|
type: "if",
|
|
12309
|
-
source: "(
|
|
12613
|
+
source: "(513:16) {#if savedData.amount === \\\"Custom\\\"}",
|
|
12310
12614
|
ctx
|
|
12311
12615
|
});
|
|
12312
12616
|
|
|
12313
12617
|
return block;
|
|
12314
12618
|
}
|
|
12315
12619
|
|
|
12316
|
-
// (
|
|
12620
|
+
// (515:18) {#if invalidIndex === true}
|
|
12317
12621
|
function create_if_block_12(ctx) {
|
|
12318
12622
|
let p;
|
|
12319
12623
|
let span;
|
|
12624
|
+
let t_value = /*$_*/ ctx[17]("editText.invalidInputMessageLimit") + "";
|
|
12625
|
+
let t;
|
|
12320
12626
|
|
|
12321
12627
|
const block = {
|
|
12322
12628
|
c: function create() {
|
|
12323
12629
|
p = element("p");
|
|
12324
12630
|
span = element("span");
|
|
12325
|
-
|
|
12631
|
+
t = text(t_value);
|
|
12326
12632
|
attr_dev(span, "class", "InvalidInput InvalidSingleRow");
|
|
12327
|
-
add_location(span, file,
|
|
12633
|
+
add_location(span, file, 516, 20, 24015);
|
|
12328
12634
|
attr_dev(p, "class", "AccountEditWarningText");
|
|
12329
|
-
add_location(p, file,
|
|
12635
|
+
add_location(p, file, 515, 18, 23960);
|
|
12330
12636
|
},
|
|
12331
12637
|
m: function mount(target, anchor) {
|
|
12332
12638
|
insert_dev(target, p, anchor);
|
|
12333
12639
|
append_dev(p, span);
|
|
12640
|
+
append_dev(span, t);
|
|
12641
|
+
},
|
|
12642
|
+
p: function update(ctx, dirty) {
|
|
12643
|
+
if (dirty[0] & /*$_*/ 131072 && t_value !== (t_value = /*$_*/ ctx[17]("editText.invalidInputMessageLimit") + "")) set_data_dev(t, t_value);
|
|
12334
12644
|
},
|
|
12335
12645
|
d: function destroy(detaching) {
|
|
12336
12646
|
if (detaching) detach_dev(p);
|
|
@@ -12341,35 +12651,32 @@
|
|
|
12341
12651
|
block,
|
|
12342
12652
|
id: create_if_block_12.name,
|
|
12343
12653
|
type: "if",
|
|
12344
|
-
source: "(
|
|
12654
|
+
source: "(515:18) {#if invalidIndex === true}",
|
|
12345
12655
|
ctx
|
|
12346
12656
|
});
|
|
12347
12657
|
|
|
12348
12658
|
return block;
|
|
12349
12659
|
}
|
|
12350
12660
|
|
|
12351
|
-
// (
|
|
12661
|
+
// (521:16) {#if limitsUpdateData.isModified === true}
|
|
12352
12662
|
function create_if_block_10(ctx) {
|
|
12353
12663
|
let p0;
|
|
12664
|
+
let t0_value = /*$_*/ ctx[17]("editText.expirationDate") + "";
|
|
12354
12665
|
let t0;
|
|
12666
|
+
let t1;
|
|
12355
12667
|
let span0;
|
|
12356
12668
|
|
|
12357
|
-
let
|
|
12669
|
+
let t2_value = (/*limitsdata*/ ctx[0].expiryDate
|
|
12358
12670
|
? moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
|
|
12359
12671
|
: "N/A") + "";
|
|
12360
12672
|
|
|
12361
|
-
let t1;
|
|
12362
12673
|
let t2;
|
|
12674
|
+
let t3;
|
|
12363
12675
|
let div;
|
|
12364
12676
|
let p1;
|
|
12365
12677
|
let span1;
|
|
12366
12678
|
let span2;
|
|
12367
|
-
let
|
|
12368
|
-
|
|
12369
|
-
let t5_value = (/*limitsUpdateData*/ ctx[14].currency
|
|
12370
|
-
? /*limitsUpdateData*/ ctx[14].currency
|
|
12371
|
-
: "") + "";
|
|
12372
|
-
|
|
12679
|
+
let t5_value = /*$_*/ ctx[17]("editText.changedLimitTextBefore") + "";
|
|
12373
12680
|
let t5;
|
|
12374
12681
|
let t6;
|
|
12375
12682
|
|
|
@@ -12379,66 +12686,76 @@
|
|
|
12379
12686
|
|
|
12380
12687
|
let t7;
|
|
12381
12688
|
let t8;
|
|
12689
|
+
let t9;
|
|
12690
|
+
let t10_value = /*$_*/ ctx[17]("editText.changedLimitTextAfter") + "";
|
|
12691
|
+
let t10;
|
|
12382
12692
|
|
|
12383
12693
|
const block = {
|
|
12384
12694
|
c: function create() {
|
|
12385
12695
|
p0 = element("p");
|
|
12386
|
-
t0 = text(
|
|
12696
|
+
t0 = text(t0_value);
|
|
12697
|
+
t1 = space();
|
|
12387
12698
|
span0 = element("span");
|
|
12388
|
-
|
|
12389
|
-
|
|
12699
|
+
t2 = text(t2_value);
|
|
12700
|
+
t3 = space();
|
|
12390
12701
|
div = element("div");
|
|
12391
12702
|
p1 = element("p");
|
|
12392
12703
|
span1 = element("span");
|
|
12393
12704
|
span1.textContent = "i";
|
|
12394
12705
|
span2 = element("span");
|
|
12395
|
-
t4 = text("Your limit has been changed or increased: ");
|
|
12396
12706
|
t5 = text(t5_value);
|
|
12397
12707
|
t6 = space();
|
|
12398
12708
|
t7 = text(t7_value);
|
|
12399
|
-
t8 =
|
|
12400
|
-
|
|
12709
|
+
t8 = space();
|
|
12710
|
+
t9 = text(/*playercurrency*/ ctx[4]);
|
|
12711
|
+
t10 = text(t10_value);
|
|
12712
|
+
add_location(span0, file, 521, 89, 24325);
|
|
12401
12713
|
attr_dev(p0, "class", "AccountEditLimitsExpiryDate");
|
|
12402
|
-
add_location(p0, file,
|
|
12714
|
+
add_location(p0, file, 521, 18, 24254);
|
|
12403
12715
|
attr_dev(span1, "class", "AccountEditLimitChangePeriodIcon");
|
|
12404
|
-
add_location(span1, file,
|
|
12405
|
-
add_location(span2, file,
|
|
12406
|
-
add_location(p1, file,
|
|
12716
|
+
add_location(span1, file, 523, 23, 24528);
|
|
12717
|
+
add_location(span2, file, 523, 78, 24583);
|
|
12718
|
+
add_location(p1, file, 523, 20, 24525);
|
|
12407
12719
|
attr_dev(div, "class", "AccountEditLimitsPeriodChangeContainer");
|
|
12408
|
-
add_location(div, file,
|
|
12720
|
+
add_location(div, file, 522, 18, 24452);
|
|
12409
12721
|
},
|
|
12410
12722
|
m: function mount(target, anchor) {
|
|
12411
12723
|
insert_dev(target, p0, anchor);
|
|
12412
12724
|
append_dev(p0, t0);
|
|
12725
|
+
append_dev(p0, t1);
|
|
12413
12726
|
append_dev(p0, span0);
|
|
12414
|
-
append_dev(span0,
|
|
12415
|
-
insert_dev(target,
|
|
12727
|
+
append_dev(span0, t2);
|
|
12728
|
+
insert_dev(target, t3, anchor);
|
|
12416
12729
|
insert_dev(target, div, anchor);
|
|
12417
12730
|
append_dev(div, p1);
|
|
12418
12731
|
append_dev(p1, span1);
|
|
12419
12732
|
append_dev(p1, span2);
|
|
12420
|
-
append_dev(span2, t4);
|
|
12421
12733
|
append_dev(span2, t5);
|
|
12422
12734
|
append_dev(span2, t6);
|
|
12423
12735
|
append_dev(span2, t7);
|
|
12424
12736
|
append_dev(span2, t8);
|
|
12737
|
+
append_dev(span2, t9);
|
|
12738
|
+
append_dev(span2, t10);
|
|
12425
12739
|
},
|
|
12426
12740
|
p: function update(ctx, dirty) {
|
|
12427
|
-
if (dirty[0] &
|
|
12741
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.expirationDate") + "")) set_data_dev(t0, t0_value);
|
|
12742
|
+
|
|
12743
|
+
if (dirty[0] & /*limitsdata*/ 1 && t2_value !== (t2_value = (/*limitsdata*/ ctx[0].expiryDate
|
|
12428
12744
|
? moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
|
|
12429
|
-
: "N/A") + "")) set_data_dev(
|
|
12745
|
+
: "N/A") + "")) set_data_dev(t2, t2_value);
|
|
12430
12746
|
|
|
12431
|
-
if (dirty[0] &
|
|
12432
|
-
? /*limitsUpdateData*/ ctx[14].currency
|
|
12433
|
-
: "") + "")) set_data_dev(t5, t5_value);
|
|
12747
|
+
if (dirty[0] & /*$_*/ 131072 && t5_value !== (t5_value = /*$_*/ ctx[17]("editText.changedLimitTextBefore") + "")) set_data_dev(t5, t5_value);
|
|
12434
12748
|
|
|
12435
12749
|
if (dirty[0] & /*limitsdata*/ 1 && t7_value !== (t7_value = (/*limitsdata*/ ctx[0].updateAmount > 0
|
|
12436
12750
|
? /*limitsdata*/ ctx[0].updateAmount
|
|
12437
12751
|
: 0) + "")) set_data_dev(t7, t7_value);
|
|
12752
|
+
|
|
12753
|
+
if (dirty[0] & /*playercurrency*/ 16) set_data_dev(t9, /*playercurrency*/ ctx[4]);
|
|
12754
|
+
if (dirty[0] & /*$_*/ 131072 && t10_value !== (t10_value = /*$_*/ ctx[17]("editText.changedLimitTextAfter") + "")) set_data_dev(t10, t10_value);
|
|
12438
12755
|
},
|
|
12439
12756
|
d: function destroy(detaching) {
|
|
12440
12757
|
if (detaching) detach_dev(p0);
|
|
12441
|
-
if (detaching) detach_dev(
|
|
12758
|
+
if (detaching) detach_dev(t3);
|
|
12442
12759
|
if (detaching) detach_dev(div);
|
|
12443
12760
|
}
|
|
12444
12761
|
};
|
|
@@ -12447,17 +12764,17 @@
|
|
|
12447
12764
|
block,
|
|
12448
12765
|
id: create_if_block_10.name,
|
|
12449
12766
|
type: "if",
|
|
12450
|
-
source: "(
|
|
12767
|
+
source: "(521:16) {#if limitsUpdateData.isModified === true}",
|
|
12451
12768
|
ctx
|
|
12452
12769
|
});
|
|
12453
12770
|
|
|
12454
12771
|
return block;
|
|
12455
12772
|
}
|
|
12456
12773
|
|
|
12457
|
-
// (
|
|
12774
|
+
// (502:8) {#each storedData as savedData, index}
|
|
12458
12775
|
function create_each_block_2(ctx) {
|
|
12459
12776
|
let if_block_anchor;
|
|
12460
|
-
let if_block = /*limitsUpdateData*/ ctx[
|
|
12777
|
+
let if_block = /*limitsUpdateData*/ ctx[13].period === /*savedData*/ ctx[54].periodName && create_if_block_9(ctx);
|
|
12461
12778
|
|
|
12462
12779
|
const block = {
|
|
12463
12780
|
c: function create() {
|
|
@@ -12469,7 +12786,7 @@
|
|
|
12469
12786
|
insert_dev(target, if_block_anchor, anchor);
|
|
12470
12787
|
},
|
|
12471
12788
|
p: function update(ctx, dirty) {
|
|
12472
|
-
if (/*limitsUpdateData*/ ctx[
|
|
12789
|
+
if (/*limitsUpdateData*/ ctx[13].period === /*savedData*/ ctx[54].periodName) {
|
|
12473
12790
|
if (if_block) {
|
|
12474
12791
|
if_block.p(ctx, dirty);
|
|
12475
12792
|
} else {
|
|
@@ -12492,24 +12809,26 @@
|
|
|
12492
12809
|
block,
|
|
12493
12810
|
id: create_each_block_2.name,
|
|
12494
12811
|
type: "each",
|
|
12495
|
-
source: "(
|
|
12812
|
+
source: "(502:8) {#each storedData as savedData, index}",
|
|
12496
12813
|
ctx
|
|
12497
12814
|
});
|
|
12498
12815
|
|
|
12499
12816
|
return block;
|
|
12500
12817
|
}
|
|
12501
12818
|
|
|
12502
|
-
// (
|
|
12819
|
+
// (458:12) {#if selectData.period == storedData[index].periodName}
|
|
12503
12820
|
function create_if_block_2(ctx) {
|
|
12504
12821
|
let select;
|
|
12505
12822
|
let option;
|
|
12823
|
+
let t0_value = /*$_*/ ctx[17]("editText.noLimit") + "";
|
|
12824
|
+
let t0;
|
|
12506
12825
|
let select_disabled_value;
|
|
12507
12826
|
let t1;
|
|
12508
12827
|
let t2;
|
|
12509
12828
|
let if_block1_anchor;
|
|
12510
12829
|
let mounted;
|
|
12511
12830
|
let dispose;
|
|
12512
|
-
let each_value_1 = /*depositPredefinedValues*/ ctx[
|
|
12831
|
+
let each_value_1 = /*depositPredefinedValues*/ ctx[19][/*index*/ ctx[50]].values;
|
|
12513
12832
|
validate_each_argument(each_value_1);
|
|
12514
12833
|
let each_blocks = [];
|
|
12515
12834
|
|
|
@@ -12518,17 +12837,17 @@
|
|
|
12518
12837
|
}
|
|
12519
12838
|
|
|
12520
12839
|
function select_change_handler() {
|
|
12521
|
-
/*select_change_handler*/ ctx[
|
|
12840
|
+
/*select_change_handler*/ ctx[26].call(select, /*index*/ ctx[50]);
|
|
12522
12841
|
}
|
|
12523
12842
|
|
|
12524
|
-
let if_block0 = /*storedData*/ ctx[
|
|
12525
|
-
let if_block1 = /*selectData*/ ctx[
|
|
12843
|
+
let if_block0 = /*storedData*/ ctx[16][/*index*/ ctx[50]].amount === "Custom" && create_if_block_4(ctx);
|
|
12844
|
+
let if_block1 = /*selectData*/ ctx[48].isModified === true && create_if_block_3(ctx);
|
|
12526
12845
|
|
|
12527
12846
|
const block = {
|
|
12528
12847
|
c: function create() {
|
|
12529
12848
|
select = element("select");
|
|
12530
12849
|
option = element("option");
|
|
12531
|
-
|
|
12850
|
+
t0 = text(t0_value);
|
|
12532
12851
|
|
|
12533
12852
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
12534
12853
|
each_blocks[i].c();
|
|
@@ -12544,21 +12863,22 @@
|
|
|
12544
12863
|
option.disabled = true;
|
|
12545
12864
|
option.selected = true;
|
|
12546
12865
|
option.hidden = true;
|
|
12547
|
-
add_location(option, file,
|
|
12866
|
+
add_location(option, file, 459, 16, 19727);
|
|
12548
12867
|
attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[18] ? "TimeoutSelectMobile" : ""));
|
|
12549
|
-
select.disabled = select_disabled_value = /*selectData*/ ctx[
|
|
12550
|
-
if (/*storedData*/ ctx[
|
|
12551
|
-
add_location(select, file,
|
|
12868
|
+
select.disabled = select_disabled_value = /*selectData*/ ctx[48].isModified === true;
|
|
12869
|
+
if (/*storedData*/ ctx[16][/*index*/ ctx[50]].amount === void 0) add_render_callback(select_change_handler);
|
|
12870
|
+
add_location(select, file, 458, 14, 19471);
|
|
12552
12871
|
},
|
|
12553
12872
|
m: function mount(target, anchor) {
|
|
12554
12873
|
insert_dev(target, select, anchor);
|
|
12555
12874
|
append_dev(select, option);
|
|
12875
|
+
append_dev(option, t0);
|
|
12556
12876
|
|
|
12557
12877
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
12558
12878
|
each_blocks[i].m(select, null);
|
|
12559
12879
|
}
|
|
12560
12880
|
|
|
12561
|
-
select_option(select, /*storedData*/ ctx[
|
|
12881
|
+
select_option(select, /*storedData*/ ctx[16][/*index*/ ctx[50]].amount);
|
|
12562
12882
|
insert_dev(target, t1, anchor);
|
|
12563
12883
|
if (if_block0) if_block0.m(target, anchor);
|
|
12564
12884
|
insert_dev(target, t2, anchor);
|
|
@@ -12572,7 +12892,7 @@
|
|
|
12572
12892
|
select,
|
|
12573
12893
|
"change",
|
|
12574
12894
|
function () {
|
|
12575
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
12895
|
+
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);
|
|
12576
12896
|
},
|
|
12577
12897
|
false,
|
|
12578
12898
|
false,
|
|
@@ -12585,9 +12905,10 @@
|
|
|
12585
12905
|
},
|
|
12586
12906
|
p: function update(new_ctx, dirty) {
|
|
12587
12907
|
ctx = new_ctx;
|
|
12908
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.noLimit") + "")) set_data_dev(t0, t0_value);
|
|
12588
12909
|
|
|
12589
|
-
if (dirty[0] & /*depositPredefinedValues, limitname,
|
|
12590
|
-
each_value_1 = /*depositPredefinedValues*/ ctx[
|
|
12910
|
+
if (dirty[0] & /*depositPredefinedValues, limitname, playercurrency*/ 524312) {
|
|
12911
|
+
each_value_1 = /*depositPredefinedValues*/ ctx[19][/*index*/ ctx[50]].values;
|
|
12591
12912
|
validate_each_argument(each_value_1);
|
|
12592
12913
|
let i;
|
|
12593
12914
|
|
|
@@ -12610,15 +12931,15 @@
|
|
|
12610
12931
|
each_blocks.length = each_value_1.length;
|
|
12611
12932
|
}
|
|
12612
12933
|
|
|
12613
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
12934
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && select_disabled_value !== (select_disabled_value = /*selectData*/ ctx[48].isModified === true)) {
|
|
12614
12935
|
prop_dev(select, "disabled", select_disabled_value);
|
|
12615
12936
|
}
|
|
12616
12937
|
|
|
12617
|
-
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/
|
|
12618
|
-
select_option(select, /*storedData*/ ctx[
|
|
12938
|
+
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 1114112) {
|
|
12939
|
+
select_option(select, /*storedData*/ ctx[16][/*index*/ ctx[50]].amount);
|
|
12619
12940
|
}
|
|
12620
12941
|
|
|
12621
|
-
if (/*storedData*/ ctx[
|
|
12942
|
+
if (/*storedData*/ ctx[16][/*index*/ ctx[50]].amount === "Custom") {
|
|
12622
12943
|
if (if_block0) {
|
|
12623
12944
|
if_block0.p(ctx, dirty);
|
|
12624
12945
|
} else {
|
|
@@ -12631,7 +12952,7 @@
|
|
|
12631
12952
|
if_block0 = null;
|
|
12632
12953
|
}
|
|
12633
12954
|
|
|
12634
|
-
if (/*selectData*/ ctx[
|
|
12955
|
+
if (/*selectData*/ ctx[48].isModified === true) {
|
|
12635
12956
|
if (if_block1) {
|
|
12636
12957
|
if_block1.p(ctx, dirty);
|
|
12637
12958
|
} else {
|
|
@@ -12661,17 +12982,17 @@
|
|
|
12661
12982
|
block,
|
|
12662
12983
|
id: create_if_block_2.name,
|
|
12663
12984
|
type: "if",
|
|
12664
|
-
source: "(
|
|
12985
|
+
source: "(458:12) {#if selectData.period == storedData[index].periodName}",
|
|
12665
12986
|
ctx
|
|
12666
12987
|
});
|
|
12667
12988
|
|
|
12668
12989
|
return block;
|
|
12669
12990
|
}
|
|
12670
12991
|
|
|
12671
|
-
// (
|
|
12992
|
+
// (462:66) {#if predefinedData !== "No limit" && predefinedData !== "Custom"}
|
|
12672
12993
|
function create_if_block_8(ctx) {
|
|
12673
|
-
let t_value = (/*limitname*/ ctx[
|
|
12674
|
-
? /*
|
|
12994
|
+
let t_value = (/*limitname*/ ctx[3] !== "Time Limit"
|
|
12995
|
+
? /*playercurrency*/ ctx[4]
|
|
12675
12996
|
: " minutes") + "";
|
|
12676
12997
|
|
|
12677
12998
|
let t;
|
|
@@ -12684,8 +13005,8 @@
|
|
|
12684
13005
|
insert_dev(target, t, anchor);
|
|
12685
13006
|
},
|
|
12686
13007
|
p: function update(ctx, dirty) {
|
|
12687
|
-
if (dirty[0] & /*limitname,
|
|
12688
|
-
? /*
|
|
13008
|
+
if (dirty[0] & /*limitname, playercurrency*/ 24 && t_value !== (t_value = (/*limitname*/ ctx[3] !== "Time Limit"
|
|
13009
|
+
? /*playercurrency*/ ctx[4]
|
|
12689
13010
|
: " minutes") + "")) set_data_dev(t, t_value);
|
|
12690
13011
|
},
|
|
12691
13012
|
d: function destroy(detaching) {
|
|
@@ -12697,20 +13018,20 @@
|
|
|
12697
13018
|
block,
|
|
12698
13019
|
id: create_if_block_8.name,
|
|
12699
13020
|
type: "if",
|
|
12700
|
-
source: "(
|
|
13021
|
+
source: "(462:66) {#if predefinedData !== \\\"No limit\\\" && predefinedData !== \\\"Custom\\\"}",
|
|
12701
13022
|
ctx
|
|
12702
13023
|
});
|
|
12703
13024
|
|
|
12704
13025
|
return block;
|
|
12705
13026
|
}
|
|
12706
13027
|
|
|
12707
|
-
// (
|
|
13028
|
+
// (461:16) {#each depositPredefinedValues[index].values as predefinedData}
|
|
12708
13029
|
function create_each_block_1(ctx) {
|
|
12709
13030
|
let option;
|
|
12710
|
-
let t0_value = /*predefinedData*/ ctx[
|
|
13031
|
+
let t0_value = /*predefinedData*/ ctx[51] + "";
|
|
12711
13032
|
let t0;
|
|
12712
13033
|
let t1;
|
|
12713
|
-
let if_block = /*predefinedData*/ ctx[
|
|
13034
|
+
let if_block = /*predefinedData*/ ctx[51] !== "No limit" && /*predefinedData*/ ctx[51] !== "Custom" && create_if_block_8(ctx);
|
|
12714
13035
|
|
|
12715
13036
|
const block = {
|
|
12716
13037
|
c: function create() {
|
|
@@ -12718,9 +13039,9 @@
|
|
|
12718
13039
|
t0 = text(t0_value);
|
|
12719
13040
|
t1 = space();
|
|
12720
13041
|
if (if_block) if_block.c();
|
|
12721
|
-
option.__value = /*predefinedData*/ ctx[
|
|
13042
|
+
option.__value = /*predefinedData*/ ctx[51];
|
|
12722
13043
|
option.value = option.__value;
|
|
12723
|
-
add_location(option, file,
|
|
13044
|
+
add_location(option, file, 461, 18, 19901);
|
|
12724
13045
|
},
|
|
12725
13046
|
m: function mount(target, anchor) {
|
|
12726
13047
|
insert_dev(target, option, anchor);
|
|
@@ -12729,7 +13050,7 @@
|
|
|
12729
13050
|
if (if_block) if_block.m(option, null);
|
|
12730
13051
|
},
|
|
12731
13052
|
p: function update(ctx, dirty) {
|
|
12732
|
-
if (/*predefinedData*/ ctx[
|
|
13053
|
+
if (/*predefinedData*/ ctx[51] !== "No limit" && /*predefinedData*/ ctx[51] !== "Custom") if_block.p(ctx, dirty);
|
|
12733
13054
|
},
|
|
12734
13055
|
d: function destroy(detaching) {
|
|
12735
13056
|
if (detaching) detach_dev(option);
|
|
@@ -12741,19 +13062,19 @@
|
|
|
12741
13062
|
block,
|
|
12742
13063
|
id: create_each_block_1.name,
|
|
12743
13064
|
type: "each",
|
|
12744
|
-
source: "(
|
|
13065
|
+
source: "(461:16) {#each depositPredefinedValues[index].values as predefinedData}",
|
|
12745
13066
|
ctx
|
|
12746
13067
|
});
|
|
12747
13068
|
|
|
12748
13069
|
return block;
|
|
12749
13070
|
}
|
|
12750
13071
|
|
|
12751
|
-
// (
|
|
13072
|
+
// (465:14) {#if storedData[index].amount === "Custom"}
|
|
12752
13073
|
function create_if_block_4(ctx) {
|
|
12753
13074
|
let if_block_anchor;
|
|
12754
13075
|
|
|
12755
13076
|
function select_block_type_2(ctx, dirty) {
|
|
12756
|
-
if (/*limitname*/ ctx[
|
|
13077
|
+
if (/*limitname*/ ctx[3] === "Deposit Limit") return create_if_block_5;
|
|
12757
13078
|
return create_else_block;
|
|
12758
13079
|
}
|
|
12759
13080
|
|
|
@@ -12792,14 +13113,14 @@
|
|
|
12792
13113
|
block,
|
|
12793
13114
|
id: create_if_block_4.name,
|
|
12794
13115
|
type: "if",
|
|
12795
|
-
source: "(
|
|
13116
|
+
source: "(465:14) {#if storedData[index].amount === \\\"Custom\\\"}",
|
|
12796
13117
|
ctx
|
|
12797
13118
|
});
|
|
12798
13119
|
|
|
12799
13120
|
return block;
|
|
12800
13121
|
}
|
|
12801
13122
|
|
|
12802
|
-
// (
|
|
13123
|
+
// (473:16) {:else}
|
|
12803
13124
|
function create_else_block(ctx) {
|
|
12804
13125
|
let input;
|
|
12805
13126
|
let input_disabled_value;
|
|
@@ -12809,10 +13130,10 @@
|
|
|
12809
13130
|
let dispose;
|
|
12810
13131
|
|
|
12811
13132
|
function input_input_handler_1() {
|
|
12812
|
-
/*input_input_handler_1*/ ctx[
|
|
13133
|
+
/*input_input_handler_1*/ ctx[28].call(input, /*index*/ ctx[50]);
|
|
12813
13134
|
}
|
|
12814
13135
|
|
|
12815
|
-
let if_block = /*invalidIndexes*/ ctx[
|
|
13136
|
+
let if_block = /*invalidIndexes*/ ctx[11][/*index*/ ctx[50]] == 1 && create_if_block_7(ctx);
|
|
12816
13137
|
|
|
12817
13138
|
const block = {
|
|
12818
13139
|
c: function create() {
|
|
@@ -12822,14 +13143,14 @@
|
|
|
12822
13143
|
if (if_block) if_block.c();
|
|
12823
13144
|
attr_dev(input, "type", "number");
|
|
12824
13145
|
attr_dev(input, "class", "AccountEditField");
|
|
12825
|
-
input.disabled = input_disabled_value = /*selectData*/ ctx[
|
|
12826
|
-
add_location(input, file,
|
|
13146
|
+
input.disabled = input_disabled_value = /*selectData*/ ctx[48].isModified === true;
|
|
13147
|
+
add_location(input, file, 473, 18, 20762);
|
|
12827
13148
|
attr_dev(p, "class", "AccountEditWarningText");
|
|
12828
|
-
add_location(p, file,
|
|
13149
|
+
add_location(p, file, 474, 18, 20992);
|
|
12829
13150
|
},
|
|
12830
13151
|
m: function mount(target, anchor) {
|
|
12831
13152
|
insert_dev(target, input, anchor);
|
|
12832
|
-
set_input_value(input, /*storedData*/ ctx[
|
|
13153
|
+
set_input_value(input, /*storedData*/ ctx[16][/*index*/ ctx[50]].value);
|
|
12833
13154
|
insert_dev(target, t, anchor);
|
|
12834
13155
|
insert_dev(target, p, anchor);
|
|
12835
13156
|
if (if_block) if_block.m(p, null);
|
|
@@ -12840,7 +13161,7 @@
|
|
|
12840
13161
|
input,
|
|
12841
13162
|
"keyup",
|
|
12842
13163
|
function () {
|
|
12843
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
13164
|
+
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);
|
|
12844
13165
|
},
|
|
12845
13166
|
false,
|
|
12846
13167
|
false,
|
|
@@ -12855,15 +13176,15 @@
|
|
|
12855
13176
|
p: function update(new_ctx, dirty) {
|
|
12856
13177
|
ctx = new_ctx;
|
|
12857
13178
|
|
|
12858
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
13179
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && input_disabled_value !== (input_disabled_value = /*selectData*/ ctx[48].isModified === true)) {
|
|
12859
13180
|
prop_dev(input, "disabled", input_disabled_value);
|
|
12860
13181
|
}
|
|
12861
13182
|
|
|
12862
|
-
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/
|
|
12863
|
-
set_input_value(input, /*storedData*/ ctx[
|
|
13183
|
+
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 1114112 && to_number(input.value) !== /*storedData*/ ctx[16][/*index*/ ctx[50]].value) {
|
|
13184
|
+
set_input_value(input, /*storedData*/ ctx[16][/*index*/ ctx[50]].value);
|
|
12864
13185
|
}
|
|
12865
13186
|
|
|
12866
|
-
if (/*invalidIndexes*/ ctx[
|
|
13187
|
+
if (/*invalidIndexes*/ ctx[11][/*index*/ ctx[50]] == 1) {
|
|
12867
13188
|
if (if_block) {
|
|
12868
13189
|
if_block.p(ctx, dirty);
|
|
12869
13190
|
} else {
|
|
@@ -12890,14 +13211,14 @@
|
|
|
12890
13211
|
block,
|
|
12891
13212
|
id: create_else_block.name,
|
|
12892
13213
|
type: "else",
|
|
12893
|
-
source: "(
|
|
13214
|
+
source: "(473:16) {:else}",
|
|
12894
13215
|
ctx
|
|
12895
13216
|
});
|
|
12896
13217
|
|
|
12897
13218
|
return block;
|
|
12898
13219
|
}
|
|
12899
13220
|
|
|
12900
|
-
// (
|
|
13221
|
+
// (466:16) {#if limitname === "Deposit Limit"}
|
|
12901
13222
|
function create_if_block_5(ctx) {
|
|
12902
13223
|
let input;
|
|
12903
13224
|
let input_disabled_value;
|
|
@@ -12907,10 +13228,10 @@
|
|
|
12907
13228
|
let dispose;
|
|
12908
13229
|
|
|
12909
13230
|
function input_input_handler() {
|
|
12910
|
-
/*input_input_handler*/ ctx[
|
|
13231
|
+
/*input_input_handler*/ ctx[27].call(input, /*index*/ ctx[50]);
|
|
12911
13232
|
}
|
|
12912
13233
|
|
|
12913
|
-
let if_block = /*invalidIndexes*/ ctx[
|
|
13234
|
+
let if_block = /*invalidIndexes*/ ctx[11][/*index*/ ctx[50]] == 1 && create_if_block_6(ctx);
|
|
12914
13235
|
|
|
12915
13236
|
const block = {
|
|
12916
13237
|
c: function create() {
|
|
@@ -12920,14 +13241,14 @@
|
|
|
12920
13241
|
if (if_block) if_block.c();
|
|
12921
13242
|
attr_dev(input, "type", "number");
|
|
12922
13243
|
attr_dev(input, "class", "AccountEditField");
|
|
12923
|
-
input.disabled = input_disabled_value = /*selectData*/ ctx[
|
|
12924
|
-
add_location(input, file,
|
|
13244
|
+
input.disabled = input_disabled_value = /*selectData*/ ctx[48].isModified === true;
|
|
13245
|
+
add_location(input, file, 466, 18, 20264);
|
|
12925
13246
|
attr_dev(p, "class", "AccountEditWarningText");
|
|
12926
|
-
add_location(p, file,
|
|
13247
|
+
add_location(p, file, 467, 18, 20495);
|
|
12927
13248
|
},
|
|
12928
13249
|
m: function mount(target, anchor) {
|
|
12929
13250
|
insert_dev(target, input, anchor);
|
|
12930
|
-
set_input_value(input, /*storedData*/ ctx[
|
|
13251
|
+
set_input_value(input, /*storedData*/ ctx[16][/*index*/ ctx[50]].value);
|
|
12931
13252
|
insert_dev(target, t, anchor);
|
|
12932
13253
|
insert_dev(target, p, anchor);
|
|
12933
13254
|
if (if_block) if_block.m(p, null);
|
|
@@ -12938,7 +13259,7 @@
|
|
|
12938
13259
|
input,
|
|
12939
13260
|
"keyup",
|
|
12940
13261
|
function () {
|
|
12941
|
-
if (is_function(/*checkUserInputAmount*/ ctx[
|
|
13262
|
+
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);
|
|
12942
13263
|
},
|
|
12943
13264
|
false,
|
|
12944
13265
|
false,
|
|
@@ -12953,16 +13274,18 @@
|
|
|
12953
13274
|
p: function update(new_ctx, dirty) {
|
|
12954
13275
|
ctx = new_ctx;
|
|
12955
13276
|
|
|
12956
|
-
if (dirty[0] & /*limitsUpdateData, periodValues*/
|
|
13277
|
+
if (dirty[0] & /*limitsUpdateData, periodValues*/ 2105344 && input_disabled_value !== (input_disabled_value = /*selectData*/ ctx[48].isModified === true)) {
|
|
12957
13278
|
prop_dev(input, "disabled", input_disabled_value);
|
|
12958
13279
|
}
|
|
12959
13280
|
|
|
12960
|
-
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/
|
|
12961
|
-
set_input_value(input, /*storedData*/ ctx[
|
|
13281
|
+
if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 1114112 && to_number(input.value) !== /*storedData*/ ctx[16][/*index*/ ctx[50]].value) {
|
|
13282
|
+
set_input_value(input, /*storedData*/ ctx[16][/*index*/ ctx[50]].value);
|
|
12962
13283
|
}
|
|
12963
13284
|
|
|
12964
|
-
if (/*invalidIndexes*/ ctx[
|
|
12965
|
-
if (if_block)
|
|
13285
|
+
if (/*invalidIndexes*/ ctx[11][/*index*/ ctx[50]] == 1) {
|
|
13286
|
+
if (if_block) {
|
|
13287
|
+
if_block.p(ctx, dirty);
|
|
13288
|
+
} else {
|
|
12966
13289
|
if_block = create_if_block_6(ctx);
|
|
12967
13290
|
if_block.c();
|
|
12968
13291
|
if_block.m(p, null);
|
|
@@ -12986,44 +13309,44 @@
|
|
|
12986
13309
|
block,
|
|
12987
13310
|
id: create_if_block_5.name,
|
|
12988
13311
|
type: "if",
|
|
12989
|
-
source: "(
|
|
13312
|
+
source: "(466:16) {#if limitname === \\\"Deposit Limit\\\"}",
|
|
12990
13313
|
ctx
|
|
12991
13314
|
});
|
|
12992
13315
|
|
|
12993
13316
|
return block;
|
|
12994
13317
|
}
|
|
12995
13318
|
|
|
12996
|
-
// (
|
|
13319
|
+
// (476:20) {#if invalidIndexes[index] == 1}
|
|
12997
13320
|
function create_if_block_7(ctx) {
|
|
12998
13321
|
let p;
|
|
12999
|
-
|
|
13000
|
-
let
|
|
13001
|
-
|
|
13002
|
-
|
|
13003
|
-
|
|
13322
|
+
|
|
13323
|
+
let t_value = /*$_*/ ctx[17]("editText.invalidInputMessageTime", {
|
|
13324
|
+
values: {
|
|
13325
|
+
minTime: /*minTimeValue*/ ctx[7],
|
|
13326
|
+
maxTime: /*maxTimeValue*/ ctx[8]
|
|
13327
|
+
}
|
|
13328
|
+
}) + "";
|
|
13329
|
+
|
|
13330
|
+
let t;
|
|
13004
13331
|
|
|
13005
13332
|
const block = {
|
|
13006
13333
|
c: function create() {
|
|
13007
13334
|
p = element("p");
|
|
13008
|
-
|
|
13009
|
-
t1 = text(/*minTimeValue*/ ctx[8]);
|
|
13010
|
-
t2 = text(" and below ");
|
|
13011
|
-
t3 = text(/*maxTimeValue*/ ctx[9]);
|
|
13012
|
-
t4 = text(" minutes.");
|
|
13335
|
+
t = text(t_value);
|
|
13013
13336
|
attr_dev(p, "class", "InvalidInput");
|
|
13014
|
-
add_location(p, file,
|
|
13337
|
+
add_location(p, file, 476, 22, 21102);
|
|
13015
13338
|
},
|
|
13016
13339
|
m: function mount(target, anchor) {
|
|
13017
13340
|
insert_dev(target, p, anchor);
|
|
13018
|
-
append_dev(p,
|
|
13019
|
-
append_dev(p, t1);
|
|
13020
|
-
append_dev(p, t2);
|
|
13021
|
-
append_dev(p, t3);
|
|
13022
|
-
append_dev(p, t4);
|
|
13341
|
+
append_dev(p, t);
|
|
13023
13342
|
},
|
|
13024
13343
|
p: function update(ctx, dirty) {
|
|
13025
|
-
if (dirty[0] &
|
|
13026
|
-
|
|
13344
|
+
if (dirty[0] & /*$_, minTimeValue, maxTimeValue*/ 131456 && t_value !== (t_value = /*$_*/ ctx[17]("editText.invalidInputMessageTime", {
|
|
13345
|
+
values: {
|
|
13346
|
+
minTime: /*minTimeValue*/ ctx[7],
|
|
13347
|
+
maxTime: /*maxTimeValue*/ ctx[8]
|
|
13348
|
+
}
|
|
13349
|
+
}) + "")) set_data_dev(t, t_value);
|
|
13027
13350
|
},
|
|
13028
13351
|
d: function destroy(detaching) {
|
|
13029
13352
|
if (detaching) detach_dev(p);
|
|
@@ -13034,26 +13357,32 @@
|
|
|
13034
13357
|
block,
|
|
13035
13358
|
id: create_if_block_7.name,
|
|
13036
13359
|
type: "if",
|
|
13037
|
-
source: "(
|
|
13360
|
+
source: "(476:20) {#if invalidIndexes[index] == 1}",
|
|
13038
13361
|
ctx
|
|
13039
13362
|
});
|
|
13040
13363
|
|
|
13041
13364
|
return block;
|
|
13042
13365
|
}
|
|
13043
13366
|
|
|
13044
|
-
// (
|
|
13367
|
+
// (469:20) {#if invalidIndexes[index] == 1}
|
|
13045
13368
|
function create_if_block_6(ctx) {
|
|
13046
13369
|
let p;
|
|
13370
|
+
let t_value = /*$_*/ ctx[17]("editText.invalidInputMessageLimit") + "";
|
|
13371
|
+
let t;
|
|
13047
13372
|
|
|
13048
13373
|
const block = {
|
|
13049
13374
|
c: function create() {
|
|
13050
13375
|
p = element("p");
|
|
13051
|
-
|
|
13376
|
+
t = text(t_value);
|
|
13052
13377
|
attr_dev(p, "class", "InvalidInput");
|
|
13053
|
-
add_location(p, file,
|
|
13378
|
+
add_location(p, file, 469, 18, 20601);
|
|
13054
13379
|
},
|
|
13055
13380
|
m: function mount(target, anchor) {
|
|
13056
13381
|
insert_dev(target, p, anchor);
|
|
13382
|
+
append_dev(p, t);
|
|
13383
|
+
},
|
|
13384
|
+
p: function update(ctx, dirty) {
|
|
13385
|
+
if (dirty[0] & /*$_*/ 131072 && t_value !== (t_value = /*$_*/ ctx[17]("editText.invalidInputMessageLimit") + "")) set_data_dev(t, t_value);
|
|
13057
13386
|
},
|
|
13058
13387
|
d: function destroy(detaching) {
|
|
13059
13388
|
if (detaching) detach_dev(p);
|
|
@@ -13064,108 +13393,119 @@
|
|
|
13064
13393
|
block,
|
|
13065
13394
|
id: create_if_block_6.name,
|
|
13066
13395
|
type: "if",
|
|
13067
|
-
source: "(
|
|
13396
|
+
source: "(469:20) {#if invalidIndexes[index] == 1}",
|
|
13068
13397
|
ctx
|
|
13069
13398
|
});
|
|
13070
13399
|
|
|
13071
13400
|
return block;
|
|
13072
13401
|
}
|
|
13073
13402
|
|
|
13074
|
-
// (
|
|
13403
|
+
// (482:14) {#if selectData.isModified === true}
|
|
13075
13404
|
function create_if_block_3(ctx) {
|
|
13076
13405
|
let p0;
|
|
13406
|
+
let t0_value = /*$_*/ ctx[17]("editText.expirationDate") + "";
|
|
13077
13407
|
let t0;
|
|
13408
|
+
let t1;
|
|
13078
13409
|
let span0;
|
|
13079
13410
|
|
|
13080
|
-
let
|
|
13081
|
-
? moment(/*selectData*/ ctx[
|
|
13411
|
+
let t2_value = (/*selectData*/ ctx[48].expiryDate
|
|
13412
|
+
? moment(/*selectData*/ ctx[48].expiryDate).format("D/M/YYYY - h:mm A")
|
|
13082
13413
|
: "N/A") + "";
|
|
13083
13414
|
|
|
13084
|
-
let t1;
|
|
13085
13415
|
let t2;
|
|
13416
|
+
let t3;
|
|
13086
13417
|
let div;
|
|
13087
13418
|
let p1;
|
|
13088
13419
|
let span1;
|
|
13089
13420
|
let span2;
|
|
13090
|
-
let
|
|
13091
|
-
|
|
13092
|
-
let t5_value = (/*selectData*/ ctx[50].minutes !== undefined
|
|
13093
|
-
? " minutes"
|
|
13094
|
-
: /*selectData*/ ctx[50].currency
|
|
13095
|
-
? /*selectData*/ ctx[50].currency
|
|
13096
|
-
: "") + "";
|
|
13097
|
-
|
|
13421
|
+
let t5_value = /*$_*/ ctx[17]("editText.changedLimitTextBefore") + "";
|
|
13098
13422
|
let t5;
|
|
13099
13423
|
let t6;
|
|
13100
13424
|
|
|
13101
|
-
let t7_value = (/*selectData*/ ctx[
|
|
13102
|
-
? /*selectData*/ ctx[
|
|
13425
|
+
let t7_value = (/*selectData*/ ctx[48].updateAmount > 0
|
|
13426
|
+
? /*selectData*/ ctx[48].updateAmount
|
|
13103
13427
|
: 0) + "";
|
|
13104
13428
|
|
|
13105
13429
|
let t7;
|
|
13106
13430
|
let t8;
|
|
13107
13431
|
|
|
13432
|
+
let t9_value = (/*selectData*/ ctx[48].minutes !== undefined
|
|
13433
|
+
? " minutes"
|
|
13434
|
+
: /*playercurrency*/ ctx[4]) + "";
|
|
13435
|
+
|
|
13436
|
+
let t9;
|
|
13437
|
+
let t10_value = /*$_*/ ctx[17]("editText.changedLimitTextAfter") + "";
|
|
13438
|
+
let t10;
|
|
13439
|
+
|
|
13108
13440
|
const block = {
|
|
13109
13441
|
c: function create() {
|
|
13110
13442
|
p0 = element("p");
|
|
13111
|
-
t0 = text(
|
|
13443
|
+
t0 = text(t0_value);
|
|
13444
|
+
t1 = space();
|
|
13112
13445
|
span0 = element("span");
|
|
13113
|
-
|
|
13114
|
-
|
|
13446
|
+
t2 = text(t2_value);
|
|
13447
|
+
t3 = space();
|
|
13115
13448
|
div = element("div");
|
|
13116
13449
|
p1 = element("p");
|
|
13117
13450
|
span1 = element("span");
|
|
13118
13451
|
span1.textContent = "i";
|
|
13119
13452
|
span2 = element("span");
|
|
13120
|
-
t4 = text("Your limit has been changed or increased: ");
|
|
13121
13453
|
t5 = text(t5_value);
|
|
13122
13454
|
t6 = space();
|
|
13123
13455
|
t7 = text(t7_value);
|
|
13124
|
-
t8 =
|
|
13125
|
-
|
|
13456
|
+
t8 = space();
|
|
13457
|
+
t9 = text(t9_value);
|
|
13458
|
+
t10 = text(t10_value);
|
|
13459
|
+
add_location(span0, file, 482, 87, 21460);
|
|
13126
13460
|
attr_dev(p0, "class", "AccountEditLimitsExpiryDate");
|
|
13127
|
-
add_location(p0, file,
|
|
13461
|
+
add_location(p0, file, 482, 16, 21389);
|
|
13128
13462
|
attr_dev(span1, "class", "AccountEditLimitChangePeriodIcon");
|
|
13129
|
-
add_location(span1, file,
|
|
13130
|
-
add_location(span2, file,
|
|
13131
|
-
add_location(p1, file,
|
|
13463
|
+
add_location(span1, file, 484, 19, 21657);
|
|
13464
|
+
add_location(span2, file, 484, 74, 21712);
|
|
13465
|
+
add_location(p1, file, 484, 16, 21654);
|
|
13132
13466
|
attr_dev(div, "class", "AccountEditLimitsPeriodChangeContainer");
|
|
13133
|
-
add_location(div, file,
|
|
13467
|
+
add_location(div, file, 483, 16, 21585);
|
|
13134
13468
|
},
|
|
13135
13469
|
m: function mount(target, anchor) {
|
|
13136
13470
|
insert_dev(target, p0, anchor);
|
|
13137
13471
|
append_dev(p0, t0);
|
|
13472
|
+
append_dev(p0, t1);
|
|
13138
13473
|
append_dev(p0, span0);
|
|
13139
|
-
append_dev(span0,
|
|
13140
|
-
insert_dev(target,
|
|
13474
|
+
append_dev(span0, t2);
|
|
13475
|
+
insert_dev(target, t3, anchor);
|
|
13141
13476
|
insert_dev(target, div, anchor);
|
|
13142
13477
|
append_dev(div, p1);
|
|
13143
13478
|
append_dev(p1, span1);
|
|
13144
13479
|
append_dev(p1, span2);
|
|
13145
|
-
append_dev(span2, t4);
|
|
13146
13480
|
append_dev(span2, t5);
|
|
13147
13481
|
append_dev(span2, t6);
|
|
13148
13482
|
append_dev(span2, t7);
|
|
13149
13483
|
append_dev(span2, t8);
|
|
13484
|
+
append_dev(span2, t9);
|
|
13485
|
+
append_dev(span2, t10);
|
|
13150
13486
|
},
|
|
13151
13487
|
p: function update(ctx, dirty) {
|
|
13152
|
-
if (dirty[0] &
|
|
13153
|
-
? moment(/*selectData*/ ctx[50].expiryDate).format("D/M/YYYY - h:mm A")
|
|
13154
|
-
: "N/A") + "")) set_data_dev(t1, t1_value);
|
|
13488
|
+
if (dirty[0] & /*$_*/ 131072 && t0_value !== (t0_value = /*$_*/ ctx[17]("editText.expirationDate") + "")) set_data_dev(t0, t0_value);
|
|
13155
13489
|
|
|
13156
|
-
if (dirty[0] & /*limitsUpdateData*/
|
|
13157
|
-
? "
|
|
13158
|
-
:
|
|
13159
|
-
|
|
13160
|
-
|
|
13490
|
+
if (dirty[0] & /*limitsUpdateData*/ 8192 && t2_value !== (t2_value = (/*selectData*/ ctx[48].expiryDate
|
|
13491
|
+
? moment(/*selectData*/ ctx[48].expiryDate).format("D/M/YYYY - h:mm A")
|
|
13492
|
+
: "N/A") + "")) set_data_dev(t2, t2_value);
|
|
13493
|
+
|
|
13494
|
+
if (dirty[0] & /*$_*/ 131072 && t5_value !== (t5_value = /*$_*/ ctx[17]("editText.changedLimitTextBefore") + "")) set_data_dev(t5, t5_value);
|
|
13161
13495
|
|
|
13162
|
-
if (dirty[0] & /*limitsUpdateData*/
|
|
13163
|
-
? /*selectData*/ ctx[
|
|
13496
|
+
if (dirty[0] & /*limitsUpdateData*/ 8192 && t7_value !== (t7_value = (/*selectData*/ ctx[48].updateAmount > 0
|
|
13497
|
+
? /*selectData*/ ctx[48].updateAmount
|
|
13164
13498
|
: 0) + "")) set_data_dev(t7, t7_value);
|
|
13499
|
+
|
|
13500
|
+
if (dirty[0] & /*limitsUpdateData, playercurrency*/ 8208 && t9_value !== (t9_value = (/*selectData*/ ctx[48].minutes !== undefined
|
|
13501
|
+
? " minutes"
|
|
13502
|
+
: /*playercurrency*/ ctx[4]) + "")) set_data_dev(t9, t9_value);
|
|
13503
|
+
|
|
13504
|
+
if (dirty[0] & /*$_*/ 131072 && t10_value !== (t10_value = /*$_*/ ctx[17]("editText.changedLimitTextAfter") + "")) set_data_dev(t10, t10_value);
|
|
13165
13505
|
},
|
|
13166
13506
|
d: function destroy(detaching) {
|
|
13167
13507
|
if (detaching) detach_dev(p0);
|
|
13168
|
-
if (detaching) detach_dev(
|
|
13508
|
+
if (detaching) detach_dev(t3);
|
|
13169
13509
|
if (detaching) detach_dev(div);
|
|
13170
13510
|
}
|
|
13171
13511
|
};
|
|
@@ -13174,22 +13514,22 @@
|
|
|
13174
13514
|
block,
|
|
13175
13515
|
id: create_if_block_3.name,
|
|
13176
13516
|
type: "if",
|
|
13177
|
-
source: "(
|
|
13517
|
+
source: "(482:14) {#if selectData.isModified === true}",
|
|
13178
13518
|
ctx
|
|
13179
13519
|
});
|
|
13180
13520
|
|
|
13181
13521
|
return block;
|
|
13182
13522
|
}
|
|
13183
13523
|
|
|
13184
|
-
// (
|
|
13524
|
+
// (455:8) {#each limitsUpdateData as selectData, index}
|
|
13185
13525
|
function create_each_block(ctx) {
|
|
13186
13526
|
let div;
|
|
13187
13527
|
let p;
|
|
13188
|
-
let t0_value = /*selectData*/ ctx[
|
|
13528
|
+
let t0_value = /*selectData*/ ctx[48].period + "";
|
|
13189
13529
|
let t0;
|
|
13190
13530
|
let t1;
|
|
13191
13531
|
let t2;
|
|
13192
|
-
let if_block = /*selectData*/ ctx[
|
|
13532
|
+
let if_block = /*selectData*/ ctx[48].period == /*storedData*/ ctx[16][/*index*/ ctx[50]].periodName && create_if_block_2(ctx);
|
|
13193
13533
|
|
|
13194
13534
|
const block = {
|
|
13195
13535
|
c: function create() {
|
|
@@ -13200,9 +13540,9 @@
|
|
|
13200
13540
|
if (if_block) if_block.c();
|
|
13201
13541
|
t2 = space();
|
|
13202
13542
|
attr_dev(p, "class", "AccountEditLimitsTitle");
|
|
13203
|
-
add_location(p, file,
|
|
13543
|
+
add_location(p, file, 456, 12, 19331);
|
|
13204
13544
|
attr_dev(div, "class", "AccountEditLimitsBox");
|
|
13205
|
-
add_location(div, file,
|
|
13545
|
+
add_location(div, file, 455, 10, 19284);
|
|
13206
13546
|
},
|
|
13207
13547
|
m: function mount(target, anchor) {
|
|
13208
13548
|
insert_dev(target, div, anchor);
|
|
@@ -13213,9 +13553,9 @@
|
|
|
13213
13553
|
append_dev(div, t2);
|
|
13214
13554
|
},
|
|
13215
13555
|
p: function update(ctx, dirty) {
|
|
13216
|
-
if (dirty[0] & /*limitsUpdateData*/
|
|
13556
|
+
if (dirty[0] & /*limitsUpdateData*/ 8192 && t0_value !== (t0_value = /*selectData*/ ctx[48].period + "")) set_data_dev(t0, t0_value);
|
|
13217
13557
|
|
|
13218
|
-
if (/*selectData*/ ctx[
|
|
13558
|
+
if (/*selectData*/ ctx[48].period == /*storedData*/ ctx[16][/*index*/ ctx[50]].periodName) {
|
|
13219
13559
|
if (if_block) {
|
|
13220
13560
|
if_block.p(ctx, dirty);
|
|
13221
13561
|
} else {
|
|
@@ -13238,7 +13578,7 @@
|
|
|
13238
13578
|
block,
|
|
13239
13579
|
id: create_each_block.name,
|
|
13240
13580
|
type: "each",
|
|
13241
|
-
source: "(
|
|
13581
|
+
source: "(455:8) {#each limitsUpdateData as selectData, index}",
|
|
13242
13582
|
ctx
|
|
13243
13583
|
});
|
|
13244
13584
|
|
|
@@ -13253,10 +13593,12 @@
|
|
|
13253
13593
|
let path;
|
|
13254
13594
|
let t0;
|
|
13255
13595
|
let span0;
|
|
13596
|
+
let t1_value = /*$_*/ ctx[17]("editText.back") + "";
|
|
13597
|
+
let t1;
|
|
13256
13598
|
let t2;
|
|
13257
13599
|
let div2;
|
|
13258
13600
|
let h6;
|
|
13259
|
-
let t3_value = (/*limitsdata*/ ctx[0] ? /*limitname*/ ctx[
|
|
13601
|
+
let t3_value = (/*limitsdata*/ ctx[0] ? /*limitname*/ ctx[3] : "") + "";
|
|
13260
13602
|
let t3;
|
|
13261
13603
|
let t4;
|
|
13262
13604
|
let div1;
|
|
@@ -13269,6 +13611,7 @@
|
|
|
13269
13611
|
let t10;
|
|
13270
13612
|
let div3;
|
|
13271
13613
|
let button;
|
|
13614
|
+
let t11_value = /*$_*/ ctx[17]("editText.save") + "";
|
|
13272
13615
|
let t11;
|
|
13273
13616
|
let button_class_value;
|
|
13274
13617
|
let button_disabled_value;
|
|
@@ -13277,9 +13620,9 @@
|
|
|
13277
13620
|
let player_account_gaming_limits_confirmation_modal;
|
|
13278
13621
|
let mounted;
|
|
13279
13622
|
let dispose;
|
|
13280
|
-
let if_block0 = /*showsuccessnotification*/ ctx[
|
|
13281
|
-
let if_block1 = /*
|
|
13282
|
-
let if_block2 = /*showLimits*/ ctx[
|
|
13623
|
+
let if_block0 = /*showsuccessnotification*/ ctx[1] && create_if_block_17(ctx);
|
|
13624
|
+
let if_block1 = /*showdeletenotification*/ ctx[2] && create_if_block_14(ctx);
|
|
13625
|
+
let if_block2 = /*showLimits*/ ctx[6] && create_if_block(ctx);
|
|
13283
13626
|
|
|
13284
13627
|
const block = {
|
|
13285
13628
|
c: function create() {
|
|
@@ -13290,7 +13633,7 @@
|
|
|
13290
13633
|
path = svg_element("path");
|
|
13291
13634
|
t0 = space();
|
|
13292
13635
|
span0 = element("span");
|
|
13293
|
-
|
|
13636
|
+
t1 = text(t1_value);
|
|
13294
13637
|
t2 = space();
|
|
13295
13638
|
div2 = element("div");
|
|
13296
13639
|
h6 = element("h6");
|
|
@@ -13310,15 +13653,15 @@
|
|
|
13310
13653
|
t10 = space();
|
|
13311
13654
|
div3 = element("div");
|
|
13312
13655
|
button = element("button");
|
|
13313
|
-
t11 = text(
|
|
13656
|
+
t11 = text(t11_value);
|
|
13314
13657
|
t12 = space();
|
|
13315
13658
|
player_account_modal = element("player-account-modal");
|
|
13316
13659
|
player_account_gaming_limits_confirmation_modal = element("player-account-gaming-limits-confirmation-modal");
|
|
13317
13660
|
this.c = noop$1;
|
|
13318
13661
|
attr_dev(path, "id", "Chevron_Right");
|
|
13319
13662
|
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");
|
|
13320
|
-
add_location(path, file,
|
|
13321
|
-
add_location(g, file,
|
|
13663
|
+
add_location(path, file, 418, 8, 17593);
|
|
13664
|
+
add_location(g, file, 417, 6, 17581);
|
|
13322
13665
|
attr_dev(svg, "version", "1.1");
|
|
13323
13666
|
attr_dev(svg, "id", "Capa_1");
|
|
13324
13667
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
@@ -13330,40 +13673,38 @@
|
|
|
13330
13673
|
attr_dev(svg, "xml:space", "preserve");
|
|
13331
13674
|
attr_dev(svg, "width", "18px");
|
|
13332
13675
|
attr_dev(svg, "fill", "#58586B");
|
|
13333
|
-
add_location(svg, file,
|
|
13334
|
-
add_location(span0, file,
|
|
13676
|
+
add_location(svg, file, 415, 4, 17313);
|
|
13677
|
+
add_location(span0, file, 423, 4, 17924);
|
|
13335
13678
|
attr_dev(div0, "class", "AccountEditBackButton");
|
|
13336
|
-
add_location(div0, file,
|
|
13337
|
-
add_location(h6, file,
|
|
13679
|
+
add_location(div0, file, 414, 2, 17238);
|
|
13680
|
+
add_location(h6, file, 426, 4, 18012);
|
|
13338
13681
|
attr_dev(span1, "class", "AccountEditLimitsIcon");
|
|
13339
|
-
add_location(span1, file,
|
|
13340
|
-
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[
|
|
13341
|
-
|
|
13342
|
-
set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
|
|
13343
|
-
add_location(player_account_gaming_limits_popup, file, 436, 6, 18455);
|
|
13682
|
+
add_location(span1, file, 428, 6, 18104);
|
|
13683
|
+
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[5]);
|
|
13684
|
+
add_location(player_account_gaming_limits_popup, file, 429, 6, 18195);
|
|
13344
13685
|
attr_dev(div1, "class", "AccountEditLimitsIconWrapper");
|
|
13345
|
-
add_location(div1, file,
|
|
13686
|
+
add_location(div1, file, 427, 4, 18055);
|
|
13346
13687
|
attr_dev(div2, "class", "AccountEditLimitsHeader");
|
|
13347
|
-
add_location(div2, file,
|
|
13688
|
+
add_location(div2, file, 425, 2, 17970);
|
|
13348
13689
|
|
|
13349
|
-
attr_dev(button, "class", button_class_value = "AccountEditLimitsSaveButton " + (/*hasDifferences*/ ctx[
|
|
13690
|
+
attr_dev(button, "class", button_class_value = "AccountEditLimitsSaveButton " + (/*hasDifferences*/ ctx[14]
|
|
13350
13691
|
? ""
|
|
13351
13692
|
: "AccountEditLimitsButtonDisabled"));
|
|
13352
13693
|
|
|
13353
|
-
button.disabled = button_disabled_value = !/*hasDifferences*/ ctx[
|
|
13354
|
-
add_location(button, file,
|
|
13694
|
+
button.disabled = button_disabled_value = !/*hasDifferences*/ ctx[14];
|
|
13695
|
+
add_location(button, file, 535, 4, 24963);
|
|
13355
13696
|
attr_dev(div3, "class", "AccountEditLimitsControlArea");
|
|
13356
|
-
add_location(div3, file,
|
|
13697
|
+
add_location(div3, file, 534, 2, 24916);
|
|
13357
13698
|
|
|
13358
13699
|
attr_dev(div4, "class", "AccountEditLimitsWrapper " + (/*isMobile*/ ctx[18]
|
|
13359
13700
|
? "AccountEditLimitsMobileWrapper"
|
|
13360
13701
|
: ""));
|
|
13361
13702
|
|
|
13362
|
-
add_location(div4, file,
|
|
13363
|
-
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[
|
|
13703
|
+
add_location(div4, file, 413, 0, 17146);
|
|
13704
|
+
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[9]);
|
|
13364
13705
|
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modalsource", "groupEdit");
|
|
13365
|
-
add_location(player_account_gaming_limits_confirmation_modal, file,
|
|
13366
|
-
add_location(player_account_modal, file,
|
|
13706
|
+
add_location(player_account_gaming_limits_confirmation_modal, file, 540, 2, 25211);
|
|
13707
|
+
add_location(player_account_modal, file, 539, 0, 25186);
|
|
13367
13708
|
},
|
|
13368
13709
|
l: function claim(nodes) {
|
|
13369
13710
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -13376,6 +13717,7 @@
|
|
|
13376
13717
|
append_dev(g, path);
|
|
13377
13718
|
append_dev(div0, t0);
|
|
13378
13719
|
append_dev(div0, span0);
|
|
13720
|
+
append_dev(span0, t1);
|
|
13379
13721
|
append_dev(div4, t2);
|
|
13380
13722
|
append_dev(div4, div2);
|
|
13381
13723
|
append_dev(div2, h6);
|
|
@@ -13401,30 +13743,23 @@
|
|
|
13401
13743
|
|
|
13402
13744
|
if (!mounted) {
|
|
13403
13745
|
dispose = [
|
|
13404
|
-
listen_dev(div0, "click", /*switchToLimitsGroupView*/ ctx[
|
|
13405
|
-
listen_dev(span1, "click", prevent_default(/*openInfoPopup*/ ctx[
|
|
13406
|
-
listen_dev(button, "click", /*click_handler*/ ctx[
|
|
13746
|
+
listen_dev(div0, "click", /*switchToLimitsGroupView*/ ctx[23], false, false, false),
|
|
13747
|
+
listen_dev(span1, "click", prevent_default(/*openInfoPopup*/ ctx[22]), false, true, false),
|
|
13748
|
+
listen_dev(button, "click", /*click_handler*/ ctx[32], false, false, false)
|
|
13407
13749
|
];
|
|
13408
13750
|
|
|
13409
13751
|
mounted = true;
|
|
13410
13752
|
}
|
|
13411
13753
|
},
|
|
13412
13754
|
p: function update(ctx, dirty) {
|
|
13413
|
-
if (dirty[0] &
|
|
13414
|
-
|
|
13415
|
-
if (dirty[0] & /*showPopup*/ 64) {
|
|
13416
|
-
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[6]);
|
|
13417
|
-
}
|
|
13418
|
-
|
|
13419
|
-
if (dirty[0] & /*infocontent*/ 4) {
|
|
13420
|
-
set_custom_element_data(player_account_gaming_limits_popup, "infocontent", /*infocontent*/ ctx[2]);
|
|
13421
|
-
}
|
|
13755
|
+
if (dirty[0] & /*$_*/ 131072 && t1_value !== (t1_value = /*$_*/ ctx[17]("editText.back") + "")) set_data_dev(t1, t1_value);
|
|
13756
|
+
if (dirty[0] & /*limitsdata, limitname*/ 9 && t3_value !== (t3_value = (/*limitsdata*/ ctx[0] ? /*limitname*/ ctx[3] : "") + "")) set_data_dev(t3, t3_value);
|
|
13422
13757
|
|
|
13423
|
-
if (dirty[0] & /*
|
|
13424
|
-
set_custom_element_data(player_account_gaming_limits_popup, "
|
|
13758
|
+
if (dirty[0] & /*showPopup*/ 32) {
|
|
13759
|
+
set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[5]);
|
|
13425
13760
|
}
|
|
13426
13761
|
|
|
13427
|
-
if (/*showsuccessnotification*/ ctx[
|
|
13762
|
+
if (/*showsuccessnotification*/ ctx[1]) {
|
|
13428
13763
|
if (if_block0) {
|
|
13429
13764
|
if_block0.p(ctx, dirty);
|
|
13430
13765
|
} else {
|
|
@@ -13437,7 +13772,7 @@
|
|
|
13437
13772
|
if_block0 = null;
|
|
13438
13773
|
}
|
|
13439
13774
|
|
|
13440
|
-
if (/*
|
|
13775
|
+
if (/*showdeletenotification*/ ctx[2]) {
|
|
13441
13776
|
if (if_block1) {
|
|
13442
13777
|
if_block1.p(ctx, dirty);
|
|
13443
13778
|
} else {
|
|
@@ -13450,7 +13785,7 @@
|
|
|
13450
13785
|
if_block1 = null;
|
|
13451
13786
|
}
|
|
13452
13787
|
|
|
13453
|
-
if (/*showLimits*/ ctx[
|
|
13788
|
+
if (/*showLimits*/ ctx[6]) {
|
|
13454
13789
|
if (if_block2) {
|
|
13455
13790
|
if_block2.p(ctx, dirty);
|
|
13456
13791
|
} else {
|
|
@@ -13463,18 +13798,20 @@
|
|
|
13463
13798
|
if_block2 = null;
|
|
13464
13799
|
}
|
|
13465
13800
|
|
|
13466
|
-
if (dirty[0] &
|
|
13801
|
+
if (dirty[0] & /*$_*/ 131072 && t11_value !== (t11_value = /*$_*/ ctx[17]("editText.save") + "")) set_data_dev(t11, t11_value);
|
|
13802
|
+
|
|
13803
|
+
if (dirty[0] & /*hasDifferences*/ 16384 && button_class_value !== (button_class_value = "AccountEditLimitsSaveButton " + (/*hasDifferences*/ ctx[14]
|
|
13467
13804
|
? ""
|
|
13468
13805
|
: "AccountEditLimitsButtonDisabled"))) {
|
|
13469
13806
|
attr_dev(button, "class", button_class_value);
|
|
13470
13807
|
}
|
|
13471
13808
|
|
|
13472
|
-
if (dirty[0] & /*hasDifferences*/
|
|
13809
|
+
if (dirty[0] & /*hasDifferences*/ 16384 && button_disabled_value !== (button_disabled_value = !/*hasDifferences*/ ctx[14])) {
|
|
13473
13810
|
prop_dev(button, "disabled", button_disabled_value);
|
|
13474
13811
|
}
|
|
13475
13812
|
|
|
13476
|
-
if (dirty[0] & /*changeLimitsText*/
|
|
13477
|
-
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[
|
|
13813
|
+
if (dirty[0] & /*changeLimitsText*/ 512) {
|
|
13814
|
+
set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[9]);
|
|
13478
13815
|
}
|
|
13479
13816
|
},
|
|
13480
13817
|
i: noop$1,
|
|
@@ -13503,14 +13840,21 @@
|
|
|
13503
13840
|
}
|
|
13504
13841
|
|
|
13505
13842
|
function instance($$self, $$props, $$invalidate) {
|
|
13843
|
+
let $_;
|
|
13844
|
+
validate_store(X, "_");
|
|
13845
|
+
component_subscribe($$self, X, $$value => $$invalidate(17, $_ = $$value));
|
|
13506
13846
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
13507
13847
|
validate_slots("undefined", slots, []);
|
|
13508
13848
|
let { limitsdata = [] } = $$props;
|
|
13509
|
-
let { infoname = "" } = $$props;
|
|
13510
|
-
let { infocontent = "" } = $$props;
|
|
13511
13849
|
let { showsuccessnotification = false } = $$props;
|
|
13512
|
-
let {
|
|
13850
|
+
let { showdeletenotification = false } = $$props;
|
|
13513
13851
|
let { limitname = "" } = $$props;
|
|
13852
|
+
let { playercurrency = "" } = $$props;
|
|
13853
|
+
|
|
13854
|
+
Object.keys(PlayerGamingLimitsEditTranslations).forEach(item => {
|
|
13855
|
+
addNewMessages$2(item, PlayerGamingLimitsEditTranslations[item]);
|
|
13856
|
+
});
|
|
13857
|
+
|
|
13514
13858
|
let showPopup = false;
|
|
13515
13859
|
let showLimits = true;
|
|
13516
13860
|
let saveChangesConfirmed = false;
|
|
@@ -13526,11 +13870,6 @@
|
|
|
13526
13870
|
let invalidIndexes = new Array(3).fill(0); // create array of flags for periods, all set to false, used for validation purposes
|
|
13527
13871
|
let invalidIndex = false;
|
|
13528
13872
|
|
|
13529
|
-
// general role variables
|
|
13530
|
-
let successText = "Success lorem Ipsum is simply dummy text of the printing and typesetting industry.";
|
|
13531
|
-
|
|
13532
|
-
let removeText = "You have requested to remove this limit. This will be applied on ";
|
|
13533
|
-
|
|
13534
13873
|
// variables used in the case when the response is an object - wagering limit & loss limit cases
|
|
13535
13874
|
let limitsUpdateData = {};
|
|
13536
13875
|
|
|
@@ -13604,7 +13943,7 @@
|
|
|
13604
13943
|
let periodValues = ["Daily", "Weekly", "Monthly"];
|
|
13605
13944
|
|
|
13606
13945
|
const openInfoPopup = () => {
|
|
13607
|
-
$$invalidate(
|
|
13946
|
+
$$invalidate(5, showPopup = true);
|
|
13608
13947
|
};
|
|
13609
13948
|
|
|
13610
13949
|
const switchToLimitsGroupView = () => {
|
|
@@ -13639,7 +13978,7 @@
|
|
|
13639
13978
|
} else {
|
|
13640
13979
|
storedData.forEach(data => {
|
|
13641
13980
|
if (limitsUpdateData.period === data.periodName) {
|
|
13642
|
-
$$invalidate(
|
|
13981
|
+
$$invalidate(13, limitsUpdateData.amount = data.value, limitsUpdateData);
|
|
13643
13982
|
}
|
|
13644
13983
|
});
|
|
13645
13984
|
}
|
|
@@ -13685,7 +14024,7 @@
|
|
|
13685
14024
|
);
|
|
13686
14025
|
}
|
|
13687
14026
|
|
|
13688
|
-
$$invalidate(
|
|
14027
|
+
$$invalidate(14, hasDifferences = false);
|
|
13689
14028
|
}
|
|
13690
14029
|
};
|
|
13691
14030
|
|
|
@@ -13695,111 +14034,111 @@
|
|
|
13695
14034
|
switch (data.amount) {
|
|
13696
14035
|
case "Custom":
|
|
13697
14036
|
if (limitname == "Time Limit") {
|
|
13698
|
-
$$invalidate(
|
|
14037
|
+
$$invalidate(7, minTimeValue = 60);
|
|
13699
14038
|
|
|
13700
14039
|
if (data.periodName === "Daily") {
|
|
13701
|
-
$$invalidate(
|
|
14040
|
+
$$invalidate(8, maxTimeValue = 1440);
|
|
13702
14041
|
} else if (data.periodName == "Weekly") {
|
|
13703
|
-
$$invalidate(
|
|
14042
|
+
$$invalidate(8, maxTimeValue = 10080);
|
|
13704
14043
|
} else {
|
|
13705
|
-
$$invalidate(
|
|
14044
|
+
$$invalidate(8, maxTimeValue = 43200);
|
|
13706
14045
|
}
|
|
13707
14046
|
|
|
13708
14047
|
if (data.value && regexValidators.time.test(data.value) && (data.value > minTimeValue && data.value <= maxTimeValue)) {
|
|
13709
|
-
$$invalidate(
|
|
14048
|
+
$$invalidate(11, invalidIndexes[index] = 0, invalidIndexes);
|
|
13710
14049
|
let item = referenceArray[index];
|
|
13711
14050
|
|
|
13712
14051
|
if (data.periodName == item.period && data.value == item.amount) {
|
|
13713
|
-
$$invalidate(
|
|
14052
|
+
$$invalidate(14, hasDifferences = false);
|
|
13714
14053
|
updateValues(data, referenceArray);
|
|
13715
14054
|
} else {
|
|
13716
|
-
$$invalidate(
|
|
14055
|
+
$$invalidate(14, hasDifferences = true);
|
|
13717
14056
|
}
|
|
13718
14057
|
} else {
|
|
13719
|
-
$$invalidate(
|
|
13720
|
-
$$invalidate(
|
|
14058
|
+
$$invalidate(11, invalidIndexes[index] = 1, invalidIndexes);
|
|
14059
|
+
$$invalidate(14, hasDifferences = false);
|
|
13721
14060
|
}
|
|
13722
14061
|
} else if (data.value && regexValidators.amount.test(data.value)) {
|
|
13723
|
-
$$invalidate(
|
|
14062
|
+
$$invalidate(11, invalidIndexes[index] = 0, invalidIndexes);
|
|
13724
14063
|
|
|
13725
14064
|
if (data.periodName == referenceArray[index].period && data.value == referenceArray[index].amount) {
|
|
13726
|
-
$$invalidate(
|
|
14065
|
+
$$invalidate(14, hasDifferences = hasDifferences ? true : false);
|
|
13727
14066
|
updateValues(data, referenceArray);
|
|
13728
14067
|
} else {
|
|
13729
|
-
$$invalidate(
|
|
14068
|
+
$$invalidate(14, hasDifferences = true);
|
|
13730
14069
|
}
|
|
13731
14070
|
|
|
13732
14071
|
// for deposit limits, check if all limits are different from 0 before allowing any data submission
|
|
13733
14072
|
storedData.forEach(dataSet => {
|
|
13734
14073
|
if (dataSet.value == 0) {
|
|
13735
|
-
$$invalidate(
|
|
14074
|
+
$$invalidate(14, hasDifferences = false);
|
|
13736
14075
|
}
|
|
13737
14076
|
});
|
|
13738
14077
|
} else {
|
|
13739
|
-
$$invalidate(
|
|
13740
|
-
$$invalidate(
|
|
14078
|
+
$$invalidate(11, invalidIndexes[index] = 1, invalidIndexes);
|
|
14079
|
+
$$invalidate(14, hasDifferences = false);
|
|
13741
14080
|
}
|
|
13742
14081
|
break;
|
|
13743
14082
|
default:
|
|
13744
14083
|
if (data.periodName == referenceArray[index].period) {
|
|
13745
14084
|
updateValues(data, referenceArray);
|
|
13746
14085
|
|
|
13747
|
-
$$invalidate(
|
|
14086
|
+
$$invalidate(14, hasDifferences = data.value == referenceArray[index].amount
|
|
13748
14087
|
? false
|
|
13749
14088
|
: true);
|
|
13750
14089
|
} else {
|
|
13751
|
-
$$invalidate(
|
|
14090
|
+
$$invalidate(14, hasDifferences = true);
|
|
13752
14091
|
}
|
|
13753
14092
|
// for deposit limits, check if all limits are different from 0 before allowing any data submission
|
|
13754
14093
|
storedData.forEach(dataSet => {
|
|
13755
14094
|
if (dataSet.value == 0) {
|
|
13756
|
-
$$invalidate(
|
|
14095
|
+
$$invalidate(14, hasDifferences = false);
|
|
13757
14096
|
}
|
|
13758
14097
|
});
|
|
13759
14098
|
break;
|
|
13760
14099
|
}
|
|
13761
14100
|
} else {
|
|
13762
14101
|
if (limitsUpdateData.period != referenceArray.period) {
|
|
13763
|
-
$$invalidate(
|
|
14102
|
+
$$invalidate(14, hasDifferences = true);
|
|
13764
14103
|
|
|
13765
14104
|
if (data.amount == "Custom") {
|
|
13766
14105
|
if (data.value && regexValidators.amount.test(data.value)) {
|
|
13767
|
-
$$invalidate(
|
|
14106
|
+
$$invalidate(12, invalidIndex = false);
|
|
13768
14107
|
|
|
13769
14108
|
if (limitsUpdateData.period == referenceArray.period && data.value == referenceArray.amount) {
|
|
13770
|
-
$$invalidate(
|
|
14109
|
+
$$invalidate(14, hasDifferences = false);
|
|
13771
14110
|
updateValues(data, referenceArray);
|
|
13772
14111
|
} else {
|
|
13773
|
-
$$invalidate(
|
|
14112
|
+
$$invalidate(14, hasDifferences = true);
|
|
13774
14113
|
}
|
|
13775
14114
|
} else {
|
|
13776
|
-
$$invalidate(
|
|
13777
|
-
$$invalidate(
|
|
14115
|
+
$$invalidate(12, invalidIndex = true);
|
|
14116
|
+
$$invalidate(14, hasDifferences = false);
|
|
13778
14117
|
}
|
|
13779
14118
|
}
|
|
13780
14119
|
} else {
|
|
13781
14120
|
switch (data.amount) {
|
|
13782
14121
|
case "Custom":
|
|
13783
14122
|
if (data.value && regexValidators.amount.test(data.value)) {
|
|
13784
|
-
$$invalidate(
|
|
14123
|
+
$$invalidate(12, invalidIndex = false);
|
|
13785
14124
|
|
|
13786
14125
|
if (limitsUpdateData.period == referenceArray.period && data.value == referenceArray.amount) {
|
|
13787
|
-
$$invalidate(
|
|
14126
|
+
$$invalidate(14, hasDifferences = hasDifferences ? true : false);
|
|
13788
14127
|
updateValues(data, referenceArray);
|
|
13789
14128
|
} else {
|
|
13790
|
-
$$invalidate(
|
|
14129
|
+
$$invalidate(14, hasDifferences = true);
|
|
13791
14130
|
}
|
|
13792
14131
|
} else {
|
|
13793
|
-
$$invalidate(
|
|
13794
|
-
$$invalidate(
|
|
14132
|
+
$$invalidate(12, invalidIndex = true);
|
|
14133
|
+
$$invalidate(14, hasDifferences = false);
|
|
13795
14134
|
}
|
|
13796
14135
|
break;
|
|
13797
14136
|
default:
|
|
13798
14137
|
if (limitsUpdateData.period == referenceArray.period) {
|
|
13799
14138
|
updateValues(data, referenceArray);
|
|
13800
|
-
$$invalidate(
|
|
14139
|
+
$$invalidate(14, hasDifferences = data.value == referenceArray.amount ? false : true);
|
|
13801
14140
|
} else {
|
|
13802
|
-
$$invalidate(
|
|
14141
|
+
$$invalidate(14, hasDifferences = true);
|
|
13803
14142
|
}
|
|
13804
14143
|
break;
|
|
13805
14144
|
}
|
|
@@ -13877,14 +14216,14 @@
|
|
|
13877
14216
|
currentLimitType.forEach(defaultValuesData => {
|
|
13878
14217
|
if (dataSet.period === defaultValuesData.periodName) {
|
|
13879
14218
|
if (limitname === "Time Limit") {
|
|
13880
|
-
$$invalidate(
|
|
14219
|
+
$$invalidate(7, minTimeValue = 60);
|
|
13881
14220
|
|
|
13882
14221
|
if (dataSet.periodName === "Daily") {
|
|
13883
|
-
$$invalidate(
|
|
14222
|
+
$$invalidate(8, maxTimeValue = 1440);
|
|
13884
14223
|
} else if (dataSet.periodName == "Weekly") {
|
|
13885
|
-
$$invalidate(
|
|
14224
|
+
$$invalidate(8, maxTimeValue = 10080);
|
|
13886
14225
|
} else {
|
|
13887
|
-
$$invalidate(
|
|
14226
|
+
$$invalidate(8, maxTimeValue = 43200);
|
|
13888
14227
|
}
|
|
13889
14228
|
}
|
|
13890
14229
|
|
|
@@ -13932,27 +14271,18 @@
|
|
|
13932
14271
|
? "wagering limit"
|
|
13933
14272
|
: "loss limit";
|
|
13934
14273
|
|
|
13935
|
-
$$invalidate(
|
|
14274
|
+
$$invalidate(9, changeLimitsText = $_("editText.changeLimitsText", { values: { limit: limitType } }));
|
|
13936
14275
|
};
|
|
13937
14276
|
|
|
13938
14277
|
const initialLoad = () => {
|
|
13939
14278
|
setLimitModalTexts();
|
|
13940
|
-
$$invalidate(
|
|
13941
|
-
|
|
13942
|
-
// add currency EUR by default, if the data does not have a set currency
|
|
13943
|
-
if (isArray) {
|
|
13944
|
-
limitsdata.forEach(periodObject => {
|
|
13945
|
-
if (!periodObject.currency) {
|
|
13946
|
-
periodObject.currency = "EUR";
|
|
13947
|
-
}
|
|
13948
|
-
});
|
|
13949
|
-
}
|
|
14279
|
+
$$invalidate(10, isArray = Array.isArray(limitsdata));
|
|
13950
14280
|
|
|
13951
14281
|
// used for validation
|
|
13952
|
-
$$invalidate(
|
|
14282
|
+
$$invalidate(15, updatedLimitValues = JSON.parse(JSON.stringify(limitsdata)));
|
|
13953
14283
|
|
|
13954
14284
|
// use limitsUpdateData in order to populate select & input fields
|
|
13955
|
-
$$invalidate(
|
|
14285
|
+
$$invalidate(13, limitsUpdateData = JSON.parse(JSON.stringify(limitsdata)));
|
|
13956
14286
|
|
|
13957
14287
|
// extra check - if there are values outside the array set, automatically set them to Custom value and populate the appropriate input field
|
|
13958
14288
|
currentLimitType = limitname === "Wagering Limit"
|
|
@@ -13973,23 +14303,23 @@
|
|
|
13973
14303
|
if (e.data) {
|
|
13974
14304
|
switch (e.data.type) {
|
|
13975
14305
|
case "ClosePlayerAccountGamingLimitsPopup":
|
|
13976
|
-
$$invalidate(
|
|
14306
|
+
$$invalidate(5, showPopup = false);
|
|
13977
14307
|
break;
|
|
13978
14308
|
case "GamingLimitsConfirmChanges":
|
|
13979
14309
|
saveChangesConfirmed = true;
|
|
13980
14310
|
saveLimits();
|
|
13981
14311
|
break;
|
|
13982
14312
|
case "CancelGamingLimitsChanges":
|
|
13983
|
-
$$invalidate(
|
|
14313
|
+
$$invalidate(6, showLimits = false);
|
|
13984
14314
|
// rerender select in order to reset select values
|
|
13985
14315
|
setTimeout(
|
|
13986
14316
|
() => {
|
|
13987
|
-
$$invalidate(
|
|
14317
|
+
$$invalidate(6, showLimits = true);
|
|
13988
14318
|
},
|
|
13989
14319
|
10
|
|
13990
14320
|
);
|
|
13991
14321
|
initialLoad();
|
|
13992
|
-
$$invalidate(
|
|
14322
|
+
$$invalidate(14, hasDifferences = false);
|
|
13993
14323
|
saveChangesConfirmed = false;
|
|
13994
14324
|
break;
|
|
13995
14325
|
}
|
|
@@ -14006,74 +14336,74 @@
|
|
|
14006
14336
|
|
|
14007
14337
|
const writable_props = [
|
|
14008
14338
|
"limitsdata",
|
|
14009
|
-
"infoname",
|
|
14010
|
-
"infocontent",
|
|
14011
14339
|
"showsuccessnotification",
|
|
14012
|
-
"
|
|
14013
|
-
"limitname"
|
|
14340
|
+
"showdeletenotification",
|
|
14341
|
+
"limitname",
|
|
14342
|
+
"playercurrency"
|
|
14014
14343
|
];
|
|
14015
14344
|
|
|
14016
|
-
|
|
14345
|
+
Object_1.keys($$props).forEach(key => {
|
|
14017
14346
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
14018
14347
|
});
|
|
14019
14348
|
|
|
14020
14349
|
function select_change_handler(index) {
|
|
14021
14350
|
storedData[index].amount = select_value(this);
|
|
14022
|
-
$$invalidate(
|
|
14023
|
-
$$invalidate(
|
|
14351
|
+
$$invalidate(16, storedData);
|
|
14352
|
+
$$invalidate(20, lossLimitPredefinedValues);
|
|
14024
14353
|
}
|
|
14025
14354
|
|
|
14026
14355
|
function input_input_handler(index) {
|
|
14027
14356
|
storedData[index].value = to_number(this.value);
|
|
14028
|
-
$$invalidate(
|
|
14029
|
-
$$invalidate(
|
|
14357
|
+
$$invalidate(16, storedData);
|
|
14358
|
+
$$invalidate(20, lossLimitPredefinedValues);
|
|
14030
14359
|
}
|
|
14031
14360
|
|
|
14032
14361
|
function input_input_handler_1(index) {
|
|
14033
14362
|
storedData[index].value = to_number(this.value);
|
|
14034
|
-
$$invalidate(
|
|
14035
|
-
$$invalidate(
|
|
14363
|
+
$$invalidate(16, storedData);
|
|
14364
|
+
$$invalidate(20, lossLimitPredefinedValues);
|
|
14036
14365
|
}
|
|
14037
14366
|
|
|
14038
14367
|
function select_change_handler_1() {
|
|
14039
14368
|
limitsUpdateData.period = select_value(this);
|
|
14040
|
-
$$invalidate(
|
|
14041
|
-
$$invalidate(
|
|
14369
|
+
$$invalidate(13, limitsUpdateData);
|
|
14370
|
+
$$invalidate(21, periodValues);
|
|
14042
14371
|
}
|
|
14043
14372
|
|
|
14044
14373
|
function select_change_handler_2(each_value_2, index) {
|
|
14045
14374
|
each_value_2[index].amount = select_value(this);
|
|
14046
|
-
$$invalidate(
|
|
14047
|
-
$$invalidate(
|
|
14375
|
+
$$invalidate(16, storedData);
|
|
14376
|
+
$$invalidate(20, lossLimitPredefinedValues);
|
|
14048
14377
|
}
|
|
14049
14378
|
|
|
14050
14379
|
function input_input_handler_2(each_value_2, index) {
|
|
14051
14380
|
each_value_2[index].value = to_number(this.value);
|
|
14052
|
-
$$invalidate(
|
|
14053
|
-
$$invalidate(
|
|
14381
|
+
$$invalidate(16, storedData);
|
|
14382
|
+
$$invalidate(20, lossLimitPredefinedValues);
|
|
14054
14383
|
}
|
|
14055
14384
|
|
|
14056
14385
|
const click_handler = () => confirmGamingLimitsChanges();
|
|
14057
14386
|
|
|
14058
14387
|
$$self.$$set = $$props => {
|
|
14059
14388
|
if ("limitsdata" in $$props) $$invalidate(0, limitsdata = $$props.limitsdata);
|
|
14060
|
-
if ("
|
|
14061
|
-
if ("
|
|
14062
|
-
if ("
|
|
14063
|
-
if ("
|
|
14064
|
-
if ("limitname" in $$props) $$invalidate(5, limitname = $$props.limitname);
|
|
14389
|
+
if ("showsuccessnotification" in $$props) $$invalidate(1, showsuccessnotification = $$props.showsuccessnotification);
|
|
14390
|
+
if ("showdeletenotification" in $$props) $$invalidate(2, showdeletenotification = $$props.showdeletenotification);
|
|
14391
|
+
if ("limitname" in $$props) $$invalidate(3, limitname = $$props.limitname);
|
|
14392
|
+
if ("playercurrency" in $$props) $$invalidate(4, playercurrency = $$props.playercurrency);
|
|
14065
14393
|
};
|
|
14066
14394
|
|
|
14067
14395
|
$$self.$capture_state = () => ({
|
|
14068
14396
|
onMount,
|
|
14069
14397
|
getDevice,
|
|
14398
|
+
_: X,
|
|
14399
|
+
addNewMessages: addNewMessages$2,
|
|
14400
|
+
PlayerGamingLimitsEditTranslations,
|
|
14070
14401
|
moment,
|
|
14071
14402
|
limitsdata,
|
|
14072
|
-
infoname,
|
|
14073
|
-
infocontent,
|
|
14074
14403
|
showsuccessnotification,
|
|
14075
|
-
|
|
14404
|
+
showdeletenotification,
|
|
14076
14405
|
limitname,
|
|
14406
|
+
playercurrency,
|
|
14077
14407
|
showPopup,
|
|
14078
14408
|
showLimits,
|
|
14079
14409
|
saveChangesConfirmed,
|
|
@@ -14085,8 +14415,6 @@
|
|
|
14085
14415
|
isArray,
|
|
14086
14416
|
invalidIndexes,
|
|
14087
14417
|
invalidIndex,
|
|
14088
|
-
successText,
|
|
14089
|
-
removeText,
|
|
14090
14418
|
limitsUpdateData,
|
|
14091
14419
|
currentLimitType,
|
|
14092
14420
|
hasDifferences,
|
|
@@ -14110,40 +14438,38 @@
|
|
|
14110
14438
|
populateFieldsData,
|
|
14111
14439
|
setLimitModalTexts,
|
|
14112
14440
|
initialLoad,
|
|
14113
|
-
messageHandler
|
|
14441
|
+
messageHandler,
|
|
14442
|
+
$_
|
|
14114
14443
|
});
|
|
14115
14444
|
|
|
14116
14445
|
$$self.$inject_state = $$props => {
|
|
14117
14446
|
if ("limitsdata" in $$props) $$invalidate(0, limitsdata = $$props.limitsdata);
|
|
14118
|
-
if ("
|
|
14119
|
-
if ("
|
|
14120
|
-
if ("
|
|
14121
|
-
if ("
|
|
14122
|
-
if ("
|
|
14123
|
-
if ("
|
|
14124
|
-
if ("showLimits" in $$props) $$invalidate(7, showLimits = $$props.showLimits);
|
|
14447
|
+
if ("showsuccessnotification" in $$props) $$invalidate(1, showsuccessnotification = $$props.showsuccessnotification);
|
|
14448
|
+
if ("showdeletenotification" in $$props) $$invalidate(2, showdeletenotification = $$props.showdeletenotification);
|
|
14449
|
+
if ("limitname" in $$props) $$invalidate(3, limitname = $$props.limitname);
|
|
14450
|
+
if ("playercurrency" in $$props) $$invalidate(4, playercurrency = $$props.playercurrency);
|
|
14451
|
+
if ("showPopup" in $$props) $$invalidate(5, showPopup = $$props.showPopup);
|
|
14452
|
+
if ("showLimits" in $$props) $$invalidate(6, showLimits = $$props.showLimits);
|
|
14125
14453
|
if ("saveChangesConfirmed" in $$props) saveChangesConfirmed = $$props.saveChangesConfirmed;
|
|
14126
|
-
if ("minTimeValue" in $$props) $$invalidate(
|
|
14127
|
-
if ("maxTimeValue" in $$props) $$invalidate(
|
|
14128
|
-
if ("changeLimitsText" in $$props) $$invalidate(
|
|
14454
|
+
if ("minTimeValue" in $$props) $$invalidate(7, minTimeValue = $$props.minTimeValue);
|
|
14455
|
+
if ("maxTimeValue" in $$props) $$invalidate(8, maxTimeValue = $$props.maxTimeValue);
|
|
14456
|
+
if ("changeLimitsText" in $$props) $$invalidate(9, changeLimitsText = $$props.changeLimitsText);
|
|
14129
14457
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
14130
14458
|
if ("isMobile" in $$props) $$invalidate(18, isMobile = $$props.isMobile);
|
|
14131
|
-
if ("isArray" in $$props) $$invalidate(
|
|
14132
|
-
if ("invalidIndexes" in $$props) $$invalidate(
|
|
14133
|
-
if ("invalidIndex" in $$props) $$invalidate(
|
|
14134
|
-
if ("
|
|
14135
|
-
if ("removeText" in $$props) $$invalidate(20, removeText = $$props.removeText);
|
|
14136
|
-
if ("limitsUpdateData" in $$props) $$invalidate(14, limitsUpdateData = $$props.limitsUpdateData);
|
|
14459
|
+
if ("isArray" in $$props) $$invalidate(10, isArray = $$props.isArray);
|
|
14460
|
+
if ("invalidIndexes" in $$props) $$invalidate(11, invalidIndexes = $$props.invalidIndexes);
|
|
14461
|
+
if ("invalidIndex" in $$props) $$invalidate(12, invalidIndex = $$props.invalidIndex);
|
|
14462
|
+
if ("limitsUpdateData" in $$props) $$invalidate(13, limitsUpdateData = $$props.limitsUpdateData);
|
|
14137
14463
|
if ("currentLimitType" in $$props) currentLimitType = $$props.currentLimitType;
|
|
14138
|
-
if ("hasDifferences" in $$props) $$invalidate(
|
|
14139
|
-
if ("updatedLimitValues" in $$props) $$invalidate(
|
|
14464
|
+
if ("hasDifferences" in $$props) $$invalidate(14, hasDifferences = $$props.hasDifferences);
|
|
14465
|
+
if ("updatedLimitValues" in $$props) $$invalidate(15, updatedLimitValues = $$props.updatedLimitValues);
|
|
14140
14466
|
if ("validCurrentAmount" in $$props) validCurrentAmount = $$props.validCurrentAmount;
|
|
14141
|
-
if ("storedData" in $$props) $$invalidate(
|
|
14142
|
-
if ("depositPredefinedValues" in $$props) $$invalidate(
|
|
14467
|
+
if ("storedData" in $$props) $$invalidate(16, storedData = $$props.storedData);
|
|
14468
|
+
if ("depositPredefinedValues" in $$props) $$invalidate(19, depositPredefinedValues = $$props.depositPredefinedValues);
|
|
14143
14469
|
if ("wageringLimitPredefinedValues" in $$props) wageringLimitPredefinedValues = $$props.wageringLimitPredefinedValues;
|
|
14144
|
-
if ("lossLimitPredefinedValues" in $$props) $$invalidate(
|
|
14470
|
+
if ("lossLimitPredefinedValues" in $$props) $$invalidate(20, lossLimitPredefinedValues = $$props.lossLimitPredefinedValues);
|
|
14145
14471
|
if ("timeLimitPredefinedValues" in $$props) timeLimitPredefinedValues = $$props.timeLimitPredefinedValues;
|
|
14146
|
-
if ("periodValues" in $$props) $$invalidate(
|
|
14472
|
+
if ("periodValues" in $$props) $$invalidate(21, periodValues = $$props.periodValues);
|
|
14147
14473
|
};
|
|
14148
14474
|
|
|
14149
14475
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -14151,22 +14477,21 @@
|
|
|
14151
14477
|
}
|
|
14152
14478
|
|
|
14153
14479
|
$$self.$$.update = () => {
|
|
14154
|
-
if ($$self.$$.dirty[0] & /*showsuccessnotification,
|
|
14155
|
-
showsuccessnotification &&
|
|
14480
|
+
if ($$self.$$.dirty[0] & /*showsuccessnotification, showdeletenotification*/ 6) {
|
|
14481
|
+
showsuccessnotification && showdeletenotification && initialLoad();
|
|
14156
14482
|
}
|
|
14157
14483
|
|
|
14158
|
-
if ($$self.$$.dirty[0] & /*limitsdata
|
|
14159
|
-
limitsdata &&
|
|
14484
|
+
if ($$self.$$.dirty[0] & /*limitsdata*/ 1) {
|
|
14485
|
+
limitsdata && initialLoad();
|
|
14160
14486
|
}
|
|
14161
14487
|
};
|
|
14162
14488
|
|
|
14163
14489
|
return [
|
|
14164
14490
|
limitsdata,
|
|
14165
|
-
infoname,
|
|
14166
|
-
infocontent,
|
|
14167
14491
|
showsuccessnotification,
|
|
14168
|
-
|
|
14492
|
+
showdeletenotification,
|
|
14169
14493
|
limitname,
|
|
14494
|
+
playercurrency,
|
|
14170
14495
|
showPopup,
|
|
14171
14496
|
showLimits,
|
|
14172
14497
|
minTimeValue,
|
|
@@ -14179,9 +14504,8 @@
|
|
|
14179
14504
|
hasDifferences,
|
|
14180
14505
|
updatedLimitValues,
|
|
14181
14506
|
storedData,
|
|
14507
|
+
$_,
|
|
14182
14508
|
isMobile,
|
|
14183
|
-
successText,
|
|
14184
|
-
removeText,
|
|
14185
14509
|
depositPredefinedValues,
|
|
14186
14510
|
lossLimitPredefinedValues,
|
|
14187
14511
|
periodValues,
|
|
@@ -14216,13 +14540,12 @@
|
|
|
14216
14540
|
safe_not_equal,
|
|
14217
14541
|
{
|
|
14218
14542
|
limitsdata: 0,
|
|
14219
|
-
|
|
14220
|
-
|
|
14221
|
-
|
|
14222
|
-
|
|
14223
|
-
limitname: 5
|
|
14543
|
+
showsuccessnotification: 1,
|
|
14544
|
+
showdeletenotification: 2,
|
|
14545
|
+
limitname: 3,
|
|
14546
|
+
playercurrency: 4
|
|
14224
14547
|
},
|
|
14225
|
-
[-1, -1
|
|
14548
|
+
[-1, -1]
|
|
14226
14549
|
);
|
|
14227
14550
|
|
|
14228
14551
|
if (options) {
|
|
@@ -14240,11 +14563,10 @@
|
|
|
14240
14563
|
static get observedAttributes() {
|
|
14241
14564
|
return [
|
|
14242
14565
|
"limitsdata",
|
|
14243
|
-
"infoname",
|
|
14244
|
-
"infocontent",
|
|
14245
14566
|
"showsuccessnotification",
|
|
14246
|
-
"
|
|
14247
|
-
"limitname"
|
|
14567
|
+
"showdeletenotification",
|
|
14568
|
+
"limitname",
|
|
14569
|
+
"playercurrency"
|
|
14248
14570
|
];
|
|
14249
14571
|
}
|
|
14250
14572
|
|
|
@@ -14257,48 +14579,39 @@
|
|
|
14257
14579
|
flush();
|
|
14258
14580
|
}
|
|
14259
14581
|
|
|
14260
|
-
get
|
|
14582
|
+
get showsuccessnotification() {
|
|
14261
14583
|
return this.$$.ctx[1];
|
|
14262
14584
|
}
|
|
14263
14585
|
|
|
14264
|
-
set
|
|
14265
|
-
this.$set({
|
|
14586
|
+
set showsuccessnotification(showsuccessnotification) {
|
|
14587
|
+
this.$set({ showsuccessnotification });
|
|
14266
14588
|
flush();
|
|
14267
14589
|
}
|
|
14268
14590
|
|
|
14269
|
-
get
|
|
14591
|
+
get showdeletenotification() {
|
|
14270
14592
|
return this.$$.ctx[2];
|
|
14271
14593
|
}
|
|
14272
14594
|
|
|
14273
|
-
set
|
|
14274
|
-
this.$set({
|
|
14595
|
+
set showdeletenotification(showdeletenotification) {
|
|
14596
|
+
this.$set({ showdeletenotification });
|
|
14275
14597
|
flush();
|
|
14276
14598
|
}
|
|
14277
14599
|
|
|
14278
|
-
get
|
|
14600
|
+
get limitname() {
|
|
14279
14601
|
return this.$$.ctx[3];
|
|
14280
14602
|
}
|
|
14281
14603
|
|
|
14282
|
-
set
|
|
14283
|
-
this.$set({
|
|
14604
|
+
set limitname(limitname) {
|
|
14605
|
+
this.$set({ limitname });
|
|
14284
14606
|
flush();
|
|
14285
14607
|
}
|
|
14286
14608
|
|
|
14287
|
-
get
|
|
14609
|
+
get playercurrency() {
|
|
14288
14610
|
return this.$$.ctx[4];
|
|
14289
14611
|
}
|
|
14290
14612
|
|
|
14291
|
-
set
|
|
14292
|
-
this.$set({
|
|
14293
|
-
flush();
|
|
14294
|
-
}
|
|
14295
|
-
|
|
14296
|
-
get limitname() {
|
|
14297
|
-
return this.$$.ctx[5];
|
|
14298
|
-
}
|
|
14299
|
-
|
|
14300
|
-
set limitname(limitname) {
|
|
14301
|
-
this.$set({ limitname });
|
|
14613
|
+
set playercurrency(playercurrency) {
|
|
14614
|
+
this.$set({ playercurrency });
|
|
14302
14615
|
flush();
|
|
14303
14616
|
}
|
|
14304
14617
|
}
|