@everymatrix/player-account-gaming-limits-popup 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.
|
@@ -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);
|
|
@@ -97,6 +105,14 @@
|
|
|
97
105
|
function set_current_component(component) {
|
|
98
106
|
current_component = component;
|
|
99
107
|
}
|
|
108
|
+
function get_current_component() {
|
|
109
|
+
if (!current_component)
|
|
110
|
+
throw new Error('Function called outside component initialization');
|
|
111
|
+
return current_component;
|
|
112
|
+
}
|
|
113
|
+
function onMount(fn) {
|
|
114
|
+
get_current_component().$$.on_mount.push(fn);
|
|
115
|
+
}
|
|
100
116
|
|
|
101
117
|
const dirty_components = [];
|
|
102
118
|
const binding_callbacks = [];
|
|
@@ -168,6 +184,12 @@
|
|
|
168
184
|
block.i(local);
|
|
169
185
|
}
|
|
170
186
|
}
|
|
187
|
+
|
|
188
|
+
const globals = (typeof window !== 'undefined'
|
|
189
|
+
? window
|
|
190
|
+
: typeof globalThis !== 'undefined'
|
|
191
|
+
? globalThis
|
|
192
|
+
: global);
|
|
171
193
|
function mount_component(component, target, anchor, customElement) {
|
|
172
194
|
const { fragment, on_mount, on_destroy, after_update } = component.$$;
|
|
173
195
|
fragment && fragment.m(target, anchor);
|
|
@@ -362,17 +384,17 @@
|
|
|
362
384
|
}
|
|
363
385
|
}
|
|
364
386
|
|
|
365
|
-
var global =
|
|
387
|
+
var global$1 =
|
|
366
388
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
367
389
|
(typeof self !== 'undefined' && self) ||
|
|
368
|
-
(typeof global !== 'undefined' && global);
|
|
390
|
+
(typeof global$1 !== 'undefined' && global$1);
|
|
369
391
|
|
|
370
392
|
var support = {
|
|
371
|
-
searchParams: 'URLSearchParams' in global,
|
|
372
|
-
iterable: 'Symbol' in global && 'iterator' in Symbol,
|
|
393
|
+
searchParams: 'URLSearchParams' in global$1,
|
|
394
|
+
iterable: 'Symbol' in global$1 && 'iterator' in Symbol,
|
|
373
395
|
blob:
|
|
374
|
-
'FileReader' in global &&
|
|
375
|
-
'Blob' in global &&
|
|
396
|
+
'FileReader' in global$1 &&
|
|
397
|
+
'Blob' in global$1 &&
|
|
376
398
|
(function() {
|
|
377
399
|
try {
|
|
378
400
|
new Blob();
|
|
@@ -381,8 +403,8 @@
|
|
|
381
403
|
return false
|
|
382
404
|
}
|
|
383
405
|
})(),
|
|
384
|
-
formData: 'FormData' in global,
|
|
385
|
-
arrayBuffer: 'ArrayBuffer' in global
|
|
406
|
+
formData: 'FormData' in global$1,
|
|
407
|
+
arrayBuffer: 'ArrayBuffer' in global$1
|
|
386
408
|
};
|
|
387
409
|
|
|
388
410
|
function isDataView(obj) {
|
|
@@ -847,7 +869,7 @@
|
|
|
847
869
|
return new Response(null, {status: status, headers: {location: url}})
|
|
848
870
|
};
|
|
849
871
|
|
|
850
|
-
var DOMException = global.DOMException;
|
|
872
|
+
var DOMException = global$1.DOMException;
|
|
851
873
|
try {
|
|
852
874
|
new DOMException();
|
|
853
875
|
} catch (err) {
|
|
@@ -908,7 +930,7 @@
|
|
|
908
930
|
|
|
909
931
|
function fixUrl(url) {
|
|
910
932
|
try {
|
|
911
|
-
return url === '' && global.location.href ? global.location.href : url
|
|
933
|
+
return url === '' && global$1.location.href ? global$1.location.href : url
|
|
912
934
|
} catch (e) {
|
|
913
935
|
return url
|
|
914
936
|
}
|
|
@@ -961,11 +983,11 @@
|
|
|
961
983
|
|
|
962
984
|
fetch.polyfill = true;
|
|
963
985
|
|
|
964
|
-
if (!global.fetch) {
|
|
965
|
-
global.fetch = fetch;
|
|
966
|
-
global.Headers = Headers;
|
|
967
|
-
global.Request = Request;
|
|
968
|
-
global.Response = Response;
|
|
986
|
+
if (!global$1.fetch) {
|
|
987
|
+
global$1.fetch = fetch;
|
|
988
|
+
global$1.Headers = Headers;
|
|
989
|
+
global$1.Request = Request;
|
|
990
|
+
global$1.Response = Response;
|
|
969
991
|
}
|
|
970
992
|
|
|
971
993
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
@@ -4396,7 +4418,7 @@
|
|
|
4396
4418
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4397
4419
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4398
4420
|
PERFORMANCE OF THIS SOFTWARE.
|
|
4399
|
-
***************************************************************************** */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)
|
|
4421
|
+
***************************************************************************** */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));
|
|
4400
4422
|
|
|
4401
4423
|
window.emWidgets = { topic };
|
|
4402
4424
|
|
|
@@ -4422,10 +4444,33 @@
|
|
|
4422
4444
|
return 'PC';
|
|
4423
4445
|
};
|
|
4424
4446
|
|
|
4447
|
+
function addNewMessages(lang, dict) {
|
|
4448
|
+
m(lang, dict);
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4451
|
+
const PlayerGamingLimitsPopupTranslations = {
|
|
4452
|
+
en: {
|
|
4453
|
+
popupText: {
|
|
4454
|
+
name: `Info`,
|
|
4455
|
+
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:`,
|
|
4456
|
+
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.`
|
|
4457
|
+
}
|
|
4458
|
+
},
|
|
4459
|
+
ro: {
|
|
4460
|
+
popupText: {
|
|
4461
|
+
name: `Info`,
|
|
4462
|
+
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:`,
|
|
4463
|
+
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.`
|
|
4464
|
+
}
|
|
4465
|
+
}
|
|
4466
|
+
};
|
|
4467
|
+
|
|
4425
4468
|
/* src/PlayerAccountGamingLimitsPopup.svelte generated by Svelte v3.37.0 */
|
|
4469
|
+
|
|
4470
|
+
const { Object: Object_1 } = globals;
|
|
4426
4471
|
const file = "src/PlayerAccountGamingLimitsPopup.svelte";
|
|
4427
4472
|
|
|
4428
|
-
// (
|
|
4473
|
+
// (40:0) {#if showPopup}
|
|
4429
4474
|
function create_if_block(ctx) {
|
|
4430
4475
|
let section;
|
|
4431
4476
|
let div5;
|
|
@@ -4433,6 +4478,7 @@
|
|
|
4433
4478
|
let div0;
|
|
4434
4479
|
let t1;
|
|
4435
4480
|
let div1;
|
|
4481
|
+
let t2_value = /*$_*/ ctx[3]("popupText.name") + "";
|
|
4436
4482
|
let t2;
|
|
4437
4483
|
let t3;
|
|
4438
4484
|
let div2;
|
|
@@ -4440,11 +4486,18 @@
|
|
|
4440
4486
|
let path;
|
|
4441
4487
|
let t4;
|
|
4442
4488
|
let div4;
|
|
4443
|
-
let
|
|
4444
|
-
let t5;
|
|
4489
|
+
let div5_class_value;
|
|
4445
4490
|
let mounted;
|
|
4446
4491
|
let dispose;
|
|
4447
4492
|
|
|
4493
|
+
function select_block_type(ctx, dirty) {
|
|
4494
|
+
if (/*iteminfoamount*/ ctx[0]) return create_if_block_1;
|
|
4495
|
+
return create_else_block;
|
|
4496
|
+
}
|
|
4497
|
+
|
|
4498
|
+
let current_block_type = select_block_type(ctx);
|
|
4499
|
+
let if_block = current_block_type(ctx);
|
|
4500
|
+
|
|
4448
4501
|
const block = {
|
|
4449
4502
|
c: function create() {
|
|
4450
4503
|
section = element("section");
|
|
@@ -4454,42 +4507,43 @@
|
|
|
4454
4507
|
div0.textContent = "i";
|
|
4455
4508
|
t1 = space();
|
|
4456
4509
|
div1 = element("div");
|
|
4457
|
-
t2 = text(
|
|
4510
|
+
t2 = text(t2_value);
|
|
4458
4511
|
t3 = space();
|
|
4459
4512
|
div2 = element("div");
|
|
4460
4513
|
svg = svg_element("svg");
|
|
4461
4514
|
path = svg_element("path");
|
|
4462
4515
|
t4 = space();
|
|
4463
4516
|
div4 = element("div");
|
|
4464
|
-
|
|
4465
|
-
t5 = text(/*infocontent*/ ctx[0]);
|
|
4517
|
+
if_block.c();
|
|
4466
4518
|
attr_dev(div0, "class", "InfoCardPopupIcon");
|
|
4467
|
-
add_location(div0, file,
|
|
4519
|
+
add_location(div0, file, 43, 8, 1529);
|
|
4468
4520
|
attr_dev(div1, "class", "InfoCardPopupTitle");
|
|
4469
|
-
add_location(div1, file,
|
|
4521
|
+
add_location(div1, file, 44, 8, 1576);
|
|
4470
4522
|
attr_dev(path, "stroke-linecap", "round");
|
|
4471
4523
|
attr_dev(path, "stroke-linejoin", "round");
|
|
4472
4524
|
attr_dev(path, "stroke-width", "2");
|
|
4473
4525
|
attr_dev(path, "d", "M6 18L18 6M6 6l12 12");
|
|
4474
|
-
add_location(path, file,
|
|
4526
|
+
add_location(path, file, 46, 120, 1845);
|
|
4475
4527
|
attr_dev(svg, "class", "w-6 h-6");
|
|
4476
4528
|
attr_dev(svg, "fill", "none");
|
|
4477
4529
|
attr_dev(svg, "stroke", "currentColor");
|
|
4478
4530
|
attr_dev(svg, "viewBox", "0 0 24 24");
|
|
4479
4531
|
attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
4480
|
-
add_location(svg, file,
|
|
4532
|
+
add_location(svg, file, 46, 10, 1735);
|
|
4481
4533
|
attr_dev(div2, "class", "InfoCardPopupCloseButton");
|
|
4482
|
-
add_location(div2, file,
|
|
4534
|
+
add_location(div2, file, 45, 8, 1645);
|
|
4483
4535
|
attr_dev(div3, "class", "InfoCardPopupHeader");
|
|
4484
|
-
add_location(div3, file,
|
|
4485
|
-
attr_dev(p, "class", "InfoCardPopupContent");
|
|
4486
|
-
add_location(p, file, 29, 8, 1287);
|
|
4536
|
+
add_location(div3, file, 42, 6, 1487);
|
|
4487
4537
|
attr_dev(div4, "class", "InfoCardPopupContentArea");
|
|
4488
|
-
add_location(div4, file,
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4538
|
+
add_location(div4, file, 49, 6, 1988);
|
|
4539
|
+
|
|
4540
|
+
attr_dev(div5, "class", div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[4] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
|
|
4541
|
+
? "InfoCardPopupLimitChanged"
|
|
4542
|
+
: ""));
|
|
4543
|
+
|
|
4544
|
+
add_location(div5, file, 41, 4, 1347);
|
|
4545
|
+
attr_dev(section, "class", /*isMobile*/ ctx[4] ? "InfoCardPopupMobileModal" : "");
|
|
4546
|
+
add_location(section, file, 40, 2, 1282);
|
|
4493
4547
|
},
|
|
4494
4548
|
m: function mount(target, anchor) {
|
|
4495
4549
|
insert_dev(target, section, anchor);
|
|
@@ -4505,20 +4559,37 @@
|
|
|
4505
4559
|
append_dev(svg, path);
|
|
4506
4560
|
append_dev(div5, t4);
|
|
4507
4561
|
append_dev(div5, div4);
|
|
4508
|
-
|
|
4509
|
-
append_dev(p, t5);
|
|
4562
|
+
if_block.m(div4, null);
|
|
4510
4563
|
|
|
4511
4564
|
if (!mounted) {
|
|
4512
|
-
dispose = listen_dev(div2, "click", prevent_default(/*closeInfoPopup*/ ctx[
|
|
4565
|
+
dispose = listen_dev(div2, "click", prevent_default(/*closeInfoPopup*/ ctx[5]), false, true, false);
|
|
4513
4566
|
mounted = true;
|
|
4514
4567
|
}
|
|
4515
4568
|
},
|
|
4516
4569
|
p: function update(ctx, dirty) {
|
|
4517
|
-
if (dirty &
|
|
4518
|
-
|
|
4570
|
+
if (dirty & /*$_*/ 8 && t2_value !== (t2_value = /*$_*/ ctx[3]("popupText.name") + "")) set_data_dev(t2, t2_value);
|
|
4571
|
+
|
|
4572
|
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
|
4573
|
+
if_block.p(ctx, dirty);
|
|
4574
|
+
} else {
|
|
4575
|
+
if_block.d(1);
|
|
4576
|
+
if_block = current_block_type(ctx);
|
|
4577
|
+
|
|
4578
|
+
if (if_block) {
|
|
4579
|
+
if_block.c();
|
|
4580
|
+
if_block.m(div4, null);
|
|
4581
|
+
}
|
|
4582
|
+
}
|
|
4583
|
+
|
|
4584
|
+
if (dirty & /*iteminfoamount*/ 1 && div5_class_value !== (div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[4] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
|
|
4585
|
+
? "InfoCardPopupLimitChanged"
|
|
4586
|
+
: ""))) {
|
|
4587
|
+
attr_dev(div5, "class", div5_class_value);
|
|
4588
|
+
}
|
|
4519
4589
|
},
|
|
4520
4590
|
d: function destroy(detaching) {
|
|
4521
4591
|
if (detaching) detach_dev(section);
|
|
4592
|
+
if_block.d();
|
|
4522
4593
|
mounted = false;
|
|
4523
4594
|
dispose();
|
|
4524
4595
|
}
|
|
@@ -4528,7 +4599,91 @@
|
|
|
4528
4599
|
block,
|
|
4529
4600
|
id: create_if_block.name,
|
|
4530
4601
|
type: "if",
|
|
4531
|
-
source: "(
|
|
4602
|
+
source: "(40:0) {#if showPopup}",
|
|
4603
|
+
ctx
|
|
4604
|
+
});
|
|
4605
|
+
|
|
4606
|
+
return block;
|
|
4607
|
+
}
|
|
4608
|
+
|
|
4609
|
+
// (53:8) {:else}
|
|
4610
|
+
function create_else_block(ctx) {
|
|
4611
|
+
let p;
|
|
4612
|
+
let t_value = /*$_*/ ctx[3]("popupText.defaultText") + "";
|
|
4613
|
+
let t;
|
|
4614
|
+
|
|
4615
|
+
const block = {
|
|
4616
|
+
c: function create() {
|
|
4617
|
+
p = element("p");
|
|
4618
|
+
t = text(t_value);
|
|
4619
|
+
attr_dev(p, "class", "InfoCardPopupContent");
|
|
4620
|
+
add_location(p, file, 53, 10, 2224);
|
|
4621
|
+
},
|
|
4622
|
+
m: function mount(target, anchor) {
|
|
4623
|
+
insert_dev(target, p, anchor);
|
|
4624
|
+
append_dev(p, t);
|
|
4625
|
+
},
|
|
4626
|
+
p: function update(ctx, dirty) {
|
|
4627
|
+
if (dirty & /*$_*/ 8 && t_value !== (t_value = /*$_*/ ctx[3]("popupText.defaultText") + "")) set_data_dev(t, t_value);
|
|
4628
|
+
},
|
|
4629
|
+
d: function destroy(detaching) {
|
|
4630
|
+
if (detaching) detach_dev(p);
|
|
4631
|
+
}
|
|
4632
|
+
};
|
|
4633
|
+
|
|
4634
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
4635
|
+
block,
|
|
4636
|
+
id: create_else_block.name,
|
|
4637
|
+
type: "else",
|
|
4638
|
+
source: "(53:8) {:else}",
|
|
4639
|
+
ctx
|
|
4640
|
+
});
|
|
4641
|
+
|
|
4642
|
+
return block;
|
|
4643
|
+
}
|
|
4644
|
+
|
|
4645
|
+
// (51:8) {#if iteminfoamount}
|
|
4646
|
+
function create_if_block_1(ctx) {
|
|
4647
|
+
let p;
|
|
4648
|
+
|
|
4649
|
+
let t_value = /*$_*/ ctx[3]("popupText.amountChanged", {
|
|
4650
|
+
values: {
|
|
4651
|
+
amount: /*iteminfoamount*/ ctx[0],
|
|
4652
|
+
currency: /*playercurrency*/ ctx[1]
|
|
4653
|
+
}
|
|
4654
|
+
}) + "";
|
|
4655
|
+
|
|
4656
|
+
let t;
|
|
4657
|
+
|
|
4658
|
+
const block = {
|
|
4659
|
+
c: function create() {
|
|
4660
|
+
p = element("p");
|
|
4661
|
+
t = text(t_value);
|
|
4662
|
+
attr_dev(p, "class", "InfoCardPopupContent");
|
|
4663
|
+
add_location(p, file, 51, 10, 2066);
|
|
4664
|
+
},
|
|
4665
|
+
m: function mount(target, anchor) {
|
|
4666
|
+
insert_dev(target, p, anchor);
|
|
4667
|
+
append_dev(p, t);
|
|
4668
|
+
},
|
|
4669
|
+
p: function update(ctx, dirty) {
|
|
4670
|
+
if (dirty & /*$_, iteminfoamount, playercurrency*/ 11 && t_value !== (t_value = /*$_*/ ctx[3]("popupText.amountChanged", {
|
|
4671
|
+
values: {
|
|
4672
|
+
amount: /*iteminfoamount*/ ctx[0],
|
|
4673
|
+
currency: /*playercurrency*/ ctx[1]
|
|
4674
|
+
}
|
|
4675
|
+
}) + "")) set_data_dev(t, t_value);
|
|
4676
|
+
},
|
|
4677
|
+
d: function destroy(detaching) {
|
|
4678
|
+
if (detaching) detach_dev(p);
|
|
4679
|
+
}
|
|
4680
|
+
};
|
|
4681
|
+
|
|
4682
|
+
dispatch_dev("SvelteRegisterBlock", {
|
|
4683
|
+
block,
|
|
4684
|
+
id: create_if_block_1.name,
|
|
4685
|
+
type: "if",
|
|
4686
|
+
source: "(51:8) {#if iteminfoamount}",
|
|
4532
4687
|
ctx
|
|
4533
4688
|
});
|
|
4534
4689
|
|
|
@@ -4586,11 +4741,20 @@
|
|
|
4586
4741
|
}
|
|
4587
4742
|
|
|
4588
4743
|
function instance($$self, $$props, $$invalidate) {
|
|
4744
|
+
let $_;
|
|
4745
|
+
validate_store(X, "_");
|
|
4746
|
+
component_subscribe($$self, X, $$value => $$invalidate(3, $_ = $$value));
|
|
4589
4747
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
4590
4748
|
validate_slots("undefined", slots, []);
|
|
4591
4749
|
let { showpopup = "" } = $$props;
|
|
4592
|
-
let {
|
|
4593
|
-
let {
|
|
4750
|
+
let { iteminfoamount = "" } = $$props;
|
|
4751
|
+
let { lang = "en" } = $$props;
|
|
4752
|
+
let { playercurrency = "USD" } = $$props;
|
|
4753
|
+
|
|
4754
|
+
Object.keys(PlayerGamingLimitsPopupTranslations).forEach(item => {
|
|
4755
|
+
addNewMessages(item, PlayerGamingLimitsPopupTranslations[item]);
|
|
4756
|
+
});
|
|
4757
|
+
|
|
4594
4758
|
let showPopup = false;
|
|
4595
4759
|
let userAgent = window.navigator.userAgent;
|
|
4596
4760
|
let isMobile = getDevice(userAgent) === "PC" ? false : true;
|
|
@@ -4600,48 +4764,74 @@
|
|
|
4600
4764
|
|
|
4601
4765
|
window.postMessage(
|
|
4602
4766
|
{
|
|
4603
|
-
type: "ClosePlayerAccountGamingLimitsPopup"
|
|
4604
|
-
showPopup
|
|
4767
|
+
type: "ClosePlayerAccountGamingLimitsPopup"
|
|
4605
4768
|
},
|
|
4606
4769
|
window.location.href
|
|
4607
4770
|
);
|
|
4608
4771
|
};
|
|
4609
4772
|
|
|
4773
|
+
const messageHandler = e => {
|
|
4774
|
+
if (e.data && e.data.type == "ClosePlayerAccountGamingLimitsPopup") {
|
|
4775
|
+
$$invalidate(2, showPopup = false);
|
|
4776
|
+
}
|
|
4777
|
+
};
|
|
4778
|
+
|
|
4610
4779
|
const initialLoad = () => {
|
|
4780
|
+
if (iteminfoamount < 0) {
|
|
4781
|
+
$$invalidate(0, iteminfoamount = "0");
|
|
4782
|
+
}
|
|
4783
|
+
|
|
4611
4784
|
$$invalidate(2, showPopup = showpopup);
|
|
4612
4785
|
};
|
|
4613
4786
|
|
|
4614
|
-
|
|
4787
|
+
onMount(() => {
|
|
4788
|
+
window.addEventListener("message", messageHandler, false);
|
|
4789
|
+
|
|
4790
|
+
return () => {
|
|
4791
|
+
window.removeEventListener("message", messageHandler);
|
|
4792
|
+
};
|
|
4793
|
+
});
|
|
4794
|
+
|
|
4795
|
+
const writable_props = ["showpopup", "iteminfoamount", "lang", "playercurrency"];
|
|
4615
4796
|
|
|
4616
|
-
|
|
4797
|
+
Object_1.keys($$props).forEach(key => {
|
|
4617
4798
|
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
|
|
4618
4799
|
});
|
|
4619
4800
|
|
|
4620
4801
|
$$self.$$set = $$props => {
|
|
4621
|
-
if ("showpopup" in $$props) $$invalidate(
|
|
4622
|
-
if ("
|
|
4623
|
-
if ("
|
|
4802
|
+
if ("showpopup" in $$props) $$invalidate(6, showpopup = $$props.showpopup);
|
|
4803
|
+
if ("iteminfoamount" in $$props) $$invalidate(0, iteminfoamount = $$props.iteminfoamount);
|
|
4804
|
+
if ("lang" in $$props) $$invalidate(7, lang = $$props.lang);
|
|
4805
|
+
if ("playercurrency" in $$props) $$invalidate(1, playercurrency = $$props.playercurrency);
|
|
4624
4806
|
};
|
|
4625
4807
|
|
|
4626
4808
|
$$self.$capture_state = () => ({
|
|
4627
|
-
|
|
4628
|
-
infocontent,
|
|
4629
|
-
infoname,
|
|
4809
|
+
onMount,
|
|
4630
4810
|
getDevice,
|
|
4811
|
+
_: X,
|
|
4812
|
+
addNewMessages,
|
|
4813
|
+
PlayerGamingLimitsPopupTranslations,
|
|
4814
|
+
showpopup,
|
|
4815
|
+
iteminfoamount,
|
|
4816
|
+
lang,
|
|
4817
|
+
playercurrency,
|
|
4631
4818
|
showPopup,
|
|
4632
4819
|
userAgent,
|
|
4633
4820
|
isMobile,
|
|
4634
4821
|
closeInfoPopup,
|
|
4635
|
-
|
|
4822
|
+
messageHandler,
|
|
4823
|
+
initialLoad,
|
|
4824
|
+
$_
|
|
4636
4825
|
});
|
|
4637
4826
|
|
|
4638
4827
|
$$self.$inject_state = $$props => {
|
|
4639
|
-
if ("showpopup" in $$props) $$invalidate(
|
|
4640
|
-
if ("
|
|
4641
|
-
if ("
|
|
4828
|
+
if ("showpopup" in $$props) $$invalidate(6, showpopup = $$props.showpopup);
|
|
4829
|
+
if ("iteminfoamount" in $$props) $$invalidate(0, iteminfoamount = $$props.iteminfoamount);
|
|
4830
|
+
if ("lang" in $$props) $$invalidate(7, lang = $$props.lang);
|
|
4831
|
+
if ("playercurrency" in $$props) $$invalidate(1, playercurrency = $$props.playercurrency);
|
|
4642
4832
|
if ("showPopup" in $$props) $$invalidate(2, showPopup = $$props.showPopup);
|
|
4643
4833
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
4644
|
-
if ("isMobile" in $$props) $$invalidate(
|
|
4834
|
+
if ("isMobile" in $$props) $$invalidate(4, isMobile = $$props.isMobile);
|
|
4645
4835
|
};
|
|
4646
4836
|
|
|
4647
4837
|
if ($$props && "$$inject" in $$props) {
|
|
@@ -4649,18 +4839,27 @@
|
|
|
4649
4839
|
}
|
|
4650
4840
|
|
|
4651
4841
|
$$self.$$.update = () => {
|
|
4652
|
-
if ($$self.$$.dirty & /*showpopup*/
|
|
4842
|
+
if ($$self.$$.dirty & /*showpopup*/ 64) {
|
|
4653
4843
|
showpopup && initialLoad();
|
|
4654
4844
|
}
|
|
4655
4845
|
};
|
|
4656
4846
|
|
|
4657
|
-
return [
|
|
4847
|
+
return [
|
|
4848
|
+
iteminfoamount,
|
|
4849
|
+
playercurrency,
|
|
4850
|
+
showPopup,
|
|
4851
|
+
$_,
|
|
4852
|
+
isMobile,
|
|
4853
|
+
closeInfoPopup,
|
|
4854
|
+
showpopup,
|
|
4855
|
+
lang
|
|
4856
|
+
];
|
|
4658
4857
|
}
|
|
4659
4858
|
|
|
4660
4859
|
class PlayerAccountGamingLimitsPopup extends SvelteElement {
|
|
4661
4860
|
constructor(options) {
|
|
4662
4861
|
super();
|
|
4663
|
-
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:
|
|
4862
|
+
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>`;
|
|
4664
4863
|
|
|
4665
4864
|
init(
|
|
4666
4865
|
this,
|
|
@@ -4673,9 +4872,10 @@
|
|
|
4673
4872
|
create_fragment,
|
|
4674
4873
|
safe_not_equal,
|
|
4675
4874
|
{
|
|
4676
|
-
showpopup:
|
|
4677
|
-
|
|
4678
|
-
|
|
4875
|
+
showpopup: 6,
|
|
4876
|
+
iteminfoamount: 0,
|
|
4877
|
+
lang: 7,
|
|
4878
|
+
playercurrency: 1
|
|
4679
4879
|
}
|
|
4680
4880
|
);
|
|
4681
4881
|
|
|
@@ -4692,11 +4892,11 @@
|
|
|
4692
4892
|
}
|
|
4693
4893
|
|
|
4694
4894
|
static get observedAttributes() {
|
|
4695
|
-
return ["showpopup", "
|
|
4895
|
+
return ["showpopup", "iteminfoamount", "lang", "playercurrency"];
|
|
4696
4896
|
}
|
|
4697
4897
|
|
|
4698
4898
|
get showpopup() {
|
|
4699
|
-
return this.$$.ctx[
|
|
4899
|
+
return this.$$.ctx[6];
|
|
4700
4900
|
}
|
|
4701
4901
|
|
|
4702
4902
|
set showpopup(showpopup) {
|
|
@@ -4704,21 +4904,30 @@
|
|
|
4704
4904
|
flush();
|
|
4705
4905
|
}
|
|
4706
4906
|
|
|
4707
|
-
get
|
|
4907
|
+
get iteminfoamount() {
|
|
4708
4908
|
return this.$$.ctx[0];
|
|
4709
4909
|
}
|
|
4710
4910
|
|
|
4711
|
-
set
|
|
4712
|
-
this.$set({
|
|
4911
|
+
set iteminfoamount(iteminfoamount) {
|
|
4912
|
+
this.$set({ iteminfoamount });
|
|
4913
|
+
flush();
|
|
4914
|
+
}
|
|
4915
|
+
|
|
4916
|
+
get lang() {
|
|
4917
|
+
return this.$$.ctx[7];
|
|
4918
|
+
}
|
|
4919
|
+
|
|
4920
|
+
set lang(lang) {
|
|
4921
|
+
this.$set({ lang });
|
|
4713
4922
|
flush();
|
|
4714
4923
|
}
|
|
4715
4924
|
|
|
4716
|
-
get
|
|
4925
|
+
get playercurrency() {
|
|
4717
4926
|
return this.$$.ctx[1];
|
|
4718
4927
|
}
|
|
4719
4928
|
|
|
4720
|
-
set
|
|
4721
|
-
this.$set({
|
|
4929
|
+
set playercurrency(playercurrency) {
|
|
4930
|
+
this.$set({ playercurrency });
|
|
4722
4931
|
flush();
|
|
4723
4932
|
}
|
|
4724
4933
|
}
|