@everymatrix/player-account-gaming-limits-confirmation-modal 0.0.161 → 0.0.165
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/player-account-gaming-limits-confirmation-modal.js +95 -41
- package/dist/player-account-gaming-limits-confirmation-modal.js.map +1 -1
- package/package.json +2 -2
- package/src/PlayerAccountGamingLimitsConfirmationModal.svelte +8 -2
- package/src/i18n.js +27 -0
- package/src/translations.js +14 -0
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
function is_empty(obj) {
|
|
29
29
|
return Object.keys(obj).length === 0;
|
|
30
30
|
}
|
|
31
|
+
function validate_store(store, name) {
|
|
32
|
+
if (store != null && typeof store.subscribe !== 'function') {
|
|
33
|
+
throw new Error(`'${name}' is not a store with a 'subscribe' method`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
31
36
|
function subscribe(store, ...callbacks) {
|
|
32
37
|
if (store == null) {
|
|
33
38
|
return noop$1;
|
|
@@ -35,6 +40,9 @@
|
|
|
35
40
|
const unsub = store.subscribe(...callbacks);
|
|
36
41
|
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
|
|
37
42
|
}
|
|
43
|
+
function component_subscribe(component, store, callback) {
|
|
44
|
+
component.$$.on_destroy.push(subscribe(store, callback));
|
|
45
|
+
}
|
|
38
46
|
|
|
39
47
|
function append(target, node) {
|
|
40
48
|
target.appendChild(node);
|
|
@@ -166,6 +174,12 @@
|
|
|
166
174
|
block.i(local);
|
|
167
175
|
}
|
|
168
176
|
}
|
|
177
|
+
|
|
178
|
+
const globals = (typeof window !== 'undefined'
|
|
179
|
+
? window
|
|
180
|
+
: typeof globalThis !== 'undefined'
|
|
181
|
+
? globalThis
|
|
182
|
+
: global);
|
|
169
183
|
function mount_component(component, target, anchor, customElement) {
|
|
170
184
|
const { fragment, on_mount, on_destroy, after_update } = component.$$;
|
|
171
185
|
fragment && fragment.m(target, anchor);
|
|
@@ -360,17 +374,17 @@
|
|
|
360
374
|
}
|
|
361
375
|
}
|
|
362
376
|
|
|
363
|
-
var global =
|
|
377
|
+
var global$1 =
|
|
364
378
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
365
379
|
(typeof self !== 'undefined' && self) ||
|
|
366
|
-
(typeof global !== 'undefined' && global);
|
|
380
|
+
(typeof global$1 !== 'undefined' && global$1);
|
|
367
381
|
|
|
368
382
|
var support = {
|
|
369
|
-
searchParams: 'URLSearchParams' in global,
|
|
370
|
-
iterable: 'Symbol' in global && 'iterator' in Symbol,
|
|
383
|
+
searchParams: 'URLSearchParams' in global$1,
|
|
384
|
+
iterable: 'Symbol' in global$1 && 'iterator' in Symbol,
|
|
371
385
|
blob:
|
|
372
|
-
'FileReader' in global &&
|
|
373
|
-
'Blob' in global &&
|
|
386
|
+
'FileReader' in global$1 &&
|
|
387
|
+
'Blob' in global$1 &&
|
|
374
388
|
(function() {
|
|
375
389
|
try {
|
|
376
390
|
new Blob();
|
|
@@ -379,8 +393,8 @@
|
|
|
379
393
|
return false
|
|
380
394
|
}
|
|
381
395
|
})(),
|
|
382
|
-
formData: 'FormData' in global,
|
|
383
|
-
arrayBuffer: 'ArrayBuffer' in global
|
|
396
|
+
formData: 'FormData' in global$1,
|
|
397
|
+
arrayBuffer: 'ArrayBuffer' in global$1
|
|
384
398
|
};
|
|
385
399
|
|
|
386
400
|
function isDataView(obj) {
|
|
@@ -845,7 +859,7 @@
|
|
|
845
859
|
return new Response(null, {status: status, headers: {location: url}})
|
|
846
860
|
};
|
|
847
861
|
|
|
848
|
-
var DOMException = global.DOMException;
|
|
862
|
+
var DOMException = global$1.DOMException;
|
|
849
863
|
try {
|
|
850
864
|
new DOMException();
|
|
851
865
|
} catch (err) {
|
|
@@ -906,7 +920,7 @@
|
|
|
906
920
|
|
|
907
921
|
function fixUrl(url) {
|
|
908
922
|
try {
|
|
909
|
-
return url === '' && global.location.href ? global.location.href : url
|
|
923
|
+
return url === '' && global$1.location.href ? global$1.location.href : url
|
|
910
924
|
} catch (e) {
|
|
911
925
|
return url
|
|
912
926
|
}
|
|
@@ -959,11 +973,11 @@
|
|
|
959
973
|
|
|
960
974
|
fetch.polyfill = true;
|
|
961
975
|
|
|
962
|
-
if (!global.fetch) {
|
|
963
|
-
global.fetch = fetch;
|
|
964
|
-
global.Headers = Headers;
|
|
965
|
-
global.Request = Request;
|
|
966
|
-
global.Response = Response;
|
|
976
|
+
if (!global$1.fetch) {
|
|
977
|
+
global$1.fetch = fetch;
|
|
978
|
+
global$1.Headers = Headers;
|
|
979
|
+
global$1.Request = Request;
|
|
980
|
+
global$1.Response = Response;
|
|
967
981
|
}
|
|
968
982
|
|
|
969
983
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
@@ -4394,7 +4408,7 @@
|
|
|
4394
4408
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4395
4409
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4396
4410
|
PERFORMANCE OF THIS SOFTWARE.
|
|
4397
|
-
***************************************************************************** */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)
|
|
4411
|
+
***************************************************************************** */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));
|
|
4398
4412
|
|
|
4399
4413
|
window.emWidgets = { topic };
|
|
4400
4414
|
|
|
@@ -4420,7 +4434,28 @@
|
|
|
4420
4434
|
return 'PC';
|
|
4421
4435
|
};
|
|
4422
4436
|
|
|
4437
|
+
function addNewMessages(lang, dict) {
|
|
4438
|
+
m(lang, dict);
|
|
4439
|
+
}
|
|
4440
|
+
|
|
4441
|
+
const PlayerGamingLimitsModalTranslations = {
|
|
4442
|
+
en: {
|
|
4443
|
+
modalText: {
|
|
4444
|
+
cancel: `Cancel`,
|
|
4445
|
+
confirm: `Confirm`,
|
|
4446
|
+
}
|
|
4447
|
+
},
|
|
4448
|
+
ro: {
|
|
4449
|
+
modalText: {
|
|
4450
|
+
cancel: `Cancel`,
|
|
4451
|
+
confirm: `Confirm`,
|
|
4452
|
+
}
|
|
4453
|
+
}
|
|
4454
|
+
};
|
|
4455
|
+
|
|
4423
4456
|
/* src/PlayerAccountGamingLimitsConfirmationModal.svelte generated by Svelte v3.37.0 */
|
|
4457
|
+
|
|
4458
|
+
const { Object: Object_1 } = globals;
|
|
4424
4459
|
const file = "src/PlayerAccountGamingLimitsConfirmationModal.svelte";
|
|
4425
4460
|
|
|
4426
4461
|
function create_fragment(ctx) {
|
|
@@ -4436,8 +4471,12 @@
|
|
|
4436
4471
|
let t2;
|
|
4437
4472
|
let div1;
|
|
4438
4473
|
let button0;
|
|
4474
|
+
let t3_value = /*$_*/ ctx[1]("modalText.cancel") + "";
|
|
4475
|
+
let t3;
|
|
4439
4476
|
let t4;
|
|
4440
4477
|
let button1;
|
|
4478
|
+
let t5_value = /*$_*/ ctx[1]("modalText.confirm") + "";
|
|
4479
|
+
let t5;
|
|
4441
4480
|
let mounted;
|
|
4442
4481
|
let dispose;
|
|
4443
4482
|
|
|
@@ -4455,43 +4494,43 @@
|
|
|
4455
4494
|
t2 = space();
|
|
4456
4495
|
div1 = element("div");
|
|
4457
4496
|
button0 = element("button");
|
|
4458
|
-
|
|
4497
|
+
t3 = text(t3_value);
|
|
4459
4498
|
t4 = space();
|
|
4460
4499
|
button1 = element("button");
|
|
4461
|
-
|
|
4500
|
+
t5 = text(t5_value);
|
|
4462
4501
|
this.c = noop$1;
|
|
4463
4502
|
attr_dev(path, "stroke-linecap", "round");
|
|
4464
4503
|
attr_dev(path, "stroke-linejoin", "round");
|
|
4465
4504
|
attr_dev(path, "stroke-width", "2");
|
|
4466
4505
|
attr_dev(path, "d", "M6 18L18 6M6 6l12 12");
|
|
4467
|
-
add_location(path, file,
|
|
4506
|
+
add_location(path, file, 66, 116, 2763);
|
|
4468
4507
|
attr_dev(svg, "class", "w-6 h-6");
|
|
4469
4508
|
attr_dev(svg, "fill", "none");
|
|
4470
4509
|
attr_dev(svg, "stroke", "currentColor");
|
|
4471
4510
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
4472
4511
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4473
|
-
add_location(svg, file,
|
|
4512
|
+
add_location(svg, file, 66, 6, 2653);
|
|
4474
4513
|
attr_dev(slot, "name", "close");
|
|
4475
|
-
add_location(slot, file,
|
|
4514
|
+
add_location(slot, file, 65, 4, 2627);
|
|
4476
4515
|
attr_dev(span, "class", "ModalCloseBtn");
|
|
4477
4516
|
attr_dev(span, "role", "button");
|
|
4478
|
-
add_location(span, file,
|
|
4517
|
+
add_location(span, file, 64, 2, 2563);
|
|
4479
4518
|
attr_dev(div0, "class", "GamingLimitsConfirmationContent");
|
|
4480
|
-
add_location(div0, file,
|
|
4519
|
+
add_location(div0, file, 70, 4, 2948);
|
|
4481
4520
|
attr_dev(button0, "class", "GamingLimitsCancelButton");
|
|
4482
|
-
add_location(button0, file,
|
|
4521
|
+
add_location(button0, file, 72, 6, 3071);
|
|
4483
4522
|
attr_dev(button1, "class", "GamingLimitsConfirmButton");
|
|
4484
|
-
add_location(button1, file,
|
|
4523
|
+
add_location(button1, file, 73, 6, 3177);
|
|
4485
4524
|
attr_dev(div1, "class", "GamingLimitsConfirmationControlArea");
|
|
4486
|
-
add_location(div1, file,
|
|
4525
|
+
add_location(div1, file, 71, 4, 3015);
|
|
4487
4526
|
attr_dev(div2, "class", "GamingLimitsConfirmationContainer");
|
|
4488
|
-
add_location(div2, file,
|
|
4527
|
+
add_location(div2, file, 69, 2, 2896);
|
|
4489
4528
|
|
|
4490
|
-
attr_dev(div3, "class", "GamingLimitsConfirmationWrapper " + (/*isMobile*/ ctx[
|
|
4529
|
+
attr_dev(div3, "class", "GamingLimitsConfirmationWrapper " + (/*isMobile*/ ctx[2]
|
|
4491
4530
|
? "GamingLimitsConfirmationMobileWrapper"
|
|
4492
4531
|
: ""));
|
|
4493
4532
|
|
|
4494
|
-
add_location(div3, file,
|
|
4533
|
+
add_location(div3, file, 63, 0, 2457);
|
|
4495
4534
|
},
|
|
4496
4535
|
l: function claim(nodes) {
|
|
4497
4536
|
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
@@ -4509,14 +4548,16 @@
|
|
|
4509
4548
|
append_dev(div2, t2);
|
|
4510
4549
|
append_dev(div2, div1);
|
|
4511
4550
|
append_dev(div1, button0);
|
|
4551
|
+
append_dev(button0, t3);
|
|
4512
4552
|
append_dev(div1, t4);
|
|
4513
4553
|
append_dev(div1, button1);
|
|
4554
|
+
append_dev(button1, t5);
|
|
4514
4555
|
|
|
4515
4556
|
if (!mounted) {
|
|
4516
4557
|
dispose = [
|
|
4517
|
-
listen_dev(span, "click", /*close*/ ctx[
|
|
4518
|
-
listen_dev(button0, "click", /*cancelChanges*/ ctx[
|
|
4519
|
-
listen_dev(button1, "click", /*confirmChanges*/ ctx[
|
|
4558
|
+
listen_dev(span, "click", /*close*/ ctx[3], false, false, false),
|
|
4559
|
+
listen_dev(button0, "click", /*cancelChanges*/ ctx[5], false, false, false),
|
|
4560
|
+
listen_dev(button1, "click", /*confirmChanges*/ ctx[4], false, false, false)
|
|
4520
4561
|
];
|
|
4521
4562
|
|
|
4522
4563
|
mounted = true;
|
|
@@ -4524,6 +4565,8 @@
|
|
|
4524
4565
|
},
|
|
4525
4566
|
p: function update(ctx, [dirty]) {
|
|
4526
4567
|
if (dirty & /*modaltext*/ 1) set_data_dev(t1, /*modaltext*/ ctx[0]);
|
|
4568
|
+
if (dirty & /*$_*/ 2 && t3_value !== (t3_value = /*$_*/ ctx[1]("modalText.cancel") + "")) set_data_dev(t3, t3_value);
|
|
4569
|
+
if (dirty & /*$_*/ 2 && t5_value !== (t5_value = /*$_*/ ctx[1]("modalText.confirm") + "")) set_data_dev(t5, t5_value);
|
|
4527
4570
|
},
|
|
4528
4571
|
i: noop$1,
|
|
4529
4572
|
o: noop$1,
|
|
@@ -4546,11 +4589,18 @@
|
|
|
4546
4589
|
}
|
|
4547
4590
|
|
|
4548
4591
|
function instance($$self, $$props, $$invalidate) {
|
|
4592
|
+
let $_;
|
|
4593
|
+
validate_store(X, "_");
|
|
4594
|
+
component_subscribe($$self, X, $$value => $$invalidate(1, $_ = $$value));
|
|
4549
4595
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
4550
4596
|
validate_slots("undefined", slots, []);
|
|
4551
4597
|
let { modaltext = "Are you sure that you want to perform this action?" } = $$props;
|
|
4552
4598
|
let { modalsource = "" } = $$props;
|
|
4553
4599
|
|
|
4600
|
+
Object.keys(PlayerGamingLimitsModalTranslations).forEach(item => {
|
|
4601
|
+
addNewMessages(item, PlayerGamingLimitsModalTranslations[item]);
|
|
4602
|
+
});
|
|
4603
|
+
|
|
4554
4604
|
// helper variables
|
|
4555
4605
|
let userAgent = window.navigator.userAgent;
|
|
4556
4606
|
|
|
@@ -4625,18 +4675,21 @@
|
|
|
4625
4675
|
|
|
4626
4676
|
const writable_props = ["modaltext", "modalsource"];
|
|
4627
4677
|
|
|
4628
|
-
|
|
4678
|
+
Object_1.keys($$props).forEach(key => {
|
|
4629
4679
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
4630
4680
|
});
|
|
4631
4681
|
|
|
4632
4682
|
$$self.$$set = $$props => {
|
|
4633
4683
|
if ("modaltext" in $$props) $$invalidate(0, modaltext = $$props.modaltext);
|
|
4634
|
-
if ("modalsource" in $$props) $$invalidate(
|
|
4684
|
+
if ("modalsource" in $$props) $$invalidate(6, modalsource = $$props.modalsource);
|
|
4635
4685
|
};
|
|
4636
4686
|
|
|
4637
4687
|
$$self.$capture_state = () => ({
|
|
4638
4688
|
onMount,
|
|
4639
4689
|
getDevice,
|
|
4690
|
+
_: X,
|
|
4691
|
+
addNewMessages,
|
|
4692
|
+
PlayerGamingLimitsModalTranslations,
|
|
4640
4693
|
modaltext,
|
|
4641
4694
|
modalsource,
|
|
4642
4695
|
userAgent,
|
|
@@ -4648,14 +4701,15 @@
|
|
|
4648
4701
|
cancelChanges,
|
|
4649
4702
|
obtainLimitCategoryName,
|
|
4650
4703
|
messageHandler,
|
|
4651
|
-
initialLoad
|
|
4704
|
+
initialLoad,
|
|
4705
|
+
$_
|
|
4652
4706
|
});
|
|
4653
4707
|
|
|
4654
4708
|
$$self.$inject_state = $$props => {
|
|
4655
4709
|
if ("modaltext" in $$props) $$invalidate(0, modaltext = $$props.modaltext);
|
|
4656
|
-
if ("modalsource" in $$props) $$invalidate(
|
|
4710
|
+
if ("modalsource" in $$props) $$invalidate(6, modalsource = $$props.modalsource);
|
|
4657
4711
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
4658
|
-
if ("isMobile" in $$props) $$invalidate(
|
|
4712
|
+
if ("isMobile" in $$props) $$invalidate(2, isMobile = $$props.isMobile);
|
|
4659
4713
|
if ("limitItemData" in $$props) limitItemData = $$props.limitItemData;
|
|
4660
4714
|
if ("limitName" in $$props) limitName = $$props.limitName;
|
|
4661
4715
|
};
|
|
@@ -4665,10 +4719,10 @@
|
|
|
4665
4719
|
}
|
|
4666
4720
|
|
|
4667
4721
|
$$self.$$.update = () => {
|
|
4668
|
-
if ($$self.$$.dirty & /*modaltext, modalsource*/
|
|
4722
|
+
if ($$self.$$.dirty & /*modaltext, modalsource*/ 65) ;
|
|
4669
4723
|
};
|
|
4670
4724
|
|
|
4671
|
-
return [modaltext, isMobile, close, confirmChanges, cancelChanges, modalsource];
|
|
4725
|
+
return [modaltext, $_, isMobile, close, confirmChanges, cancelChanges, modalsource];
|
|
4672
4726
|
}
|
|
4673
4727
|
|
|
4674
4728
|
class PlayerAccountGamingLimitsConfirmationModal extends SvelteElement {
|
|
@@ -4686,7 +4740,7 @@
|
|
|
4686
4740
|
instance,
|
|
4687
4741
|
create_fragment,
|
|
4688
4742
|
safe_not_equal,
|
|
4689
|
-
{ modaltext: 0, modalsource:
|
|
4743
|
+
{ modaltext: 0, modalsource: 6 }
|
|
4690
4744
|
);
|
|
4691
4745
|
|
|
4692
4746
|
if (options) {
|
|
@@ -4715,7 +4769,7 @@
|
|
|
4715
4769
|
}
|
|
4716
4770
|
|
|
4717
4771
|
get modalsource() {
|
|
4718
|
-
return this.$$.ctx[
|
|
4772
|
+
return this.$$.ctx[6];
|
|
4719
4773
|
}
|
|
4720
4774
|
|
|
4721
4775
|
set modalsource(modalsource) {
|