@everymatrix/player-account-gaming-limits-wrapper-2 0.0.367 → 0.0.368
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/README.md +30 -30
- package/dist/player-account-gaming-limits-wrapper-2.js +117 -112
- package/dist/player-account-gaming-limits-wrapper-2.js.map +1 -1
- package/documentation.md +61 -61
- package/index.html +43 -52
- package/index.js +1 -1
- package/package.json +2 -2
- package/public/reset.css +47 -47
- package/rollup.config.js +59 -59
- package/src/PlayerAccountGamingLimitsWrapper_2.svelte +168 -160
- package/src/index.ts +4 -4
- package/stories/PlayerAccountGamingLimitsWrapper_2.stories.js +13 -13
- package/tsconfig.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function i(){return Object.create(null)}function n(e){e.forEach(t)}function r(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(t,...i){if(null==t)return e;const n=t.subscribe(...i);return n.unsubscribe?()=>n.unsubscribe():n}function a(e,t,i){e.$$.on_destroy.push(s(t,i))}function l(e,t){e.appendChild(t)}function c(e,t,i){e.insertBefore(t,i||null)}function u(e){e.parentNode.removeChild(e)}function h(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function p(e){return document.createElement(e)}function m(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function d(e){return document.createTextNode(e)}function f(){return d(" ")}function g(){return d("")}function y(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function b(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function v(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:b(e,t,i)}function L(e){return""===e?null:+e}function E(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function T(e,t){e.value=null==t?"":t}function w(e,t,i,n){null===i?e.style.removeProperty(t):e.style.setProperty(t,i,n?"important":"")}function
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,(function(){"use strict";function e(){}function t(e){return e()}function i(){return Object.create(null)}function n(e){e.forEach(t)}function r(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(t,...i){if(null==t)return e;const n=t.subscribe(...i);return n.unsubscribe?()=>n.unsubscribe():n}function a(e,t,i){e.$$.on_destroy.push(s(t,i))}function l(e,t){e.appendChild(t)}function c(e,t,i){e.insertBefore(t,i||null)}function u(e){e.parentNode.removeChild(e)}function h(e,t){for(let i=0;i<e.length;i+=1)e[i]&&e[i].d(t)}function p(e){return document.createElement(e)}function m(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function d(e){return document.createTextNode(e)}function f(){return d(" ")}function g(){return d("")}function y(e,t,i,n){return e.addEventListener(t,i,n),()=>e.removeEventListener(t,i,n)}function b(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}function v(e,t,i){t in e?e[t]="boolean"==typeof e[t]&&""===i||i:b(e,t,i)}function L(e){return""===e?null:+e}function E(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function T(e,t){e.value=null==t?"":t}function w(e,t,i,n){null===i?e.style.removeProperty(t):e.style.setProperty(t,i,n?"important":"")}function x(e,t){for(let i=0;i<e.options.length;i+=1){const n=e.options[i];if(n.__value===t)return void(n.selected=!0)}e.selectedIndex=-1}function _(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}function A(e,t,i){e.classList[i?"add":"remove"](t)}function $(e){const t={};for(const i of e)t[i.name]=i.value;return t}let S;function P(e){S=e}const B=[],H=[],I=[],D=[],C=Promise.resolve();let O=!1;function N(e){I.push(e)}
|
|
2
2
|
// flush() calls callbacks in this order:
|
|
3
3
|
// 1. All beforeUpdate callbacks, in order: parents before children
|
|
4
4
|
// 2. All bind:this callbacks, in reverse order: children before parents.
|
|
@@ -189,7 +189,7 @@ e[e.tag=8]="tag"}(ae||(ae={})),function(e){e[e.number=0]="number",e[e.dateTime=1
|
|
|
189
189
|
* @public
|
|
190
190
|
* @param skeleton skeleton string
|
|
191
191
|
*/
|
|
192
|
-
function
|
|
192
|
+
function xe(e){var t={};return e.replace(we,(function(e){var i=e.length;switch(e[0]){
|
|
193
193
|
// Era
|
|
194
194
|
case"G":t.era=4===i?"long":5===i?"narrow":"short";break;
|
|
195
195
|
// Year
|
|
@@ -223,7 +223,7 @@ case"X":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
|
223
223
|
case"x":// 1, 2, 3, 4: The ISO8601 varios formats
|
|
224
224
|
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}
|
|
225
225
|
// @generated from regex-gen.ts
|
|
226
|
-
var
|
|
226
|
+
var _e=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var Ae=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,$e=/^(@+)?(\+|#+)?[rs]?$/g,Se=/(\*)(0+)|(#+)(0+)|(0+)/g,Pe=/^(0+)$/;function Be(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace($e,(function(e,i,n){
|
|
227
227
|
// @@@ case
|
|
228
228
|
return"string"!=typeof n?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):"+"===n?t.minimumSignificantDigits=i.length:"#"===i[0]?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+("string"==typeof n?n.length:0)),""})),t}function He(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Ie(e){
|
|
229
229
|
// Engineering
|
|
@@ -385,7 +385,7 @@ var h=et(l.style.slice(2));if("number"===s)return(y=this.parseNumberSkeletonFrom
|
|
|
385
385
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
386
386
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
387
387
|
// for unsupported patterns.
|
|
388
|
-
this.locale&&(p=function(e,t){for(var i="",n=0;n<e.length;n++){var r=e.charAt(n);if("j"===r){for(var o=0;n+1<e.length&&e.charAt(n+1)===r;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=Re(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)i+="a";for(;s-- >0;)i=l+i}else i+="J"===r?"H":r}return i}(h,this.locale));var m={type:le.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?
|
|
388
|
+
this.locale&&(p=function(e,t){for(var i="",n=0;n<e.length;n++){var r=e.charAt(n);if("j"===r){for(var o=0;n+1<e.length&&e.charAt(n+1)===r;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=Re(t);for("H"!=l&&"k"!=l||(a=0);a-- >0;)i+="a";for(;s-- >0;)i=l+i}else i+="J"===r?"H":r}return i}(h,this.locale));var m={type:le.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?xe(p):{}};return{val:{type:"date"===s?ae.date:ae.time,value:i,location:u,style:m},err:null}}
|
|
389
389
|
// Regular style or no style.
|
|
390
390
|
return{val:{type:"number"===s?ae.number:"date"===s?ae.date:ae.time,value:i,location:u,style:null!==(r=null==l?void 0:l.style)&&void 0!==r?r:null},err:null};case"plural":case"selectordinal":case"select":
|
|
391
391
|
// Parse this range:
|
|
@@ -411,7 +411,7 @@ e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePos
|
|
|
411
411
|
// Find the end of the quoted literal text.
|
|
412
412
|
this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(se.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ke(i,this.clonePosition()));this.bump();break;case 123/* `{` */:e+=1,this.bump();break;case 125/* `}` */:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var i=[];try{i=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");
|
|
413
413
|
// Parse the skeleton
|
|
414
|
-
for(var t=e.split(
|
|
414
|
+
for(var t=e.split(_e).filter((function(e){return e.length>0})),i=[],n=0,r=t;n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var s=o[0],a=o.slice(1),l=0,c=a;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");i.push({stem:s,options:a})}return i}(e)}catch(e){return this.error(se.INVALID_NUMBER_SKELETON,t)}return{val:{type:le.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?Ce(i):{}},err:null}},
|
|
415
415
|
/**
|
|
416
416
|
* @param nesting_level The current nesting level of messages.
|
|
417
417
|
* This can be positive when parsing message fragment in select or plural argument options.
|
|
@@ -512,7 +512,7 @@ e.MISSING_VALUE="MISSING_VALUE",
|
|
|
512
512
|
// When value supplied is invalid
|
|
513
513
|
e.INVALID_VALUE="INVALID_VALUE",
|
|
514
514
|
// When we need specific Intl API but it's not available
|
|
515
|
-
e.MISSING_INTL_API="MISSING_INTL_API"}(bt||(bt={}));var Et,Tt=/** @class */function(e){function t(t,i,n){var r=e.call(this,t)||this;return r.code=i,r.originalMessage=n,r}return oe(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),wt=/** @class */function(e){function t(t,i,n,r){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),bt.INVALID_VALUE,r)||this}return oe(t,e),t}(Tt),
|
|
515
|
+
e.MISSING_INTL_API="MISSING_INTL_API"}(bt||(bt={}));var Et,Tt=/** @class */function(e){function t(t,i,n){var r=e.call(this,t)||this;return r.code=i,r.originalMessage=n,r}return oe(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),wt=/** @class */function(e){function t(t,i,n,r){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),bt.INVALID_VALUE,r)||this}return oe(t,e),t}(Tt),xt=/** @class */function(e){function t(t,i,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),bt.INVALID_VALUE,n)||this}return oe(t,e),t}(Tt),_t=/** @class */function(e){function t(t,i){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),bt.MISSING_VALUE,i)||this}return oe(t,e),t}(Tt);function At(e){return"function"==typeof e}
|
|
516
516
|
// TODO(skeleton): add skeleton support
|
|
517
517
|
function $t(e,t,i,n,r,o,
|
|
518
518
|
// For debugging
|
|
@@ -525,11 +525,11 @@ if(he(u))a.push({type:Et.literal,value:u.value});else
|
|
|
525
525
|
// Replace `#` in plural rules with the actual numeric value.
|
|
526
526
|
if(be(u))"number"==typeof o&&a.push({type:Et.literal,value:i.getNumberFormat(t).format(o)});else{var h=u.value;
|
|
527
527
|
// Enforce that all required values are provided by the caller.
|
|
528
|
-
if(!r||!(h in r))throw new
|
|
528
|
+
if(!r||!(h in r))throw new _t(h,s);var p=r[h];if(pe(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),a.push({type:"string"==typeof p?Et.literal:Et.object,value:p});else
|
|
529
529
|
// Recursively format plural and select parts' option — which can be a
|
|
530
530
|
// nested pattern structure. The choosing of the option to use is
|
|
531
531
|
// abstracted-by and delegated-to the part helper object.
|
|
532
|
-
if(de(u)){var m="string"==typeof u.style?n.date[u.style]:Ee(u.style)?u.style.parsedOptions:void 0;a.push({type:Et.literal,value:i.getDateTimeFormat(t,m).format(p)})}else if(fe(u)){m="string"==typeof u.style?n.time[u.style]:Ee(u.style)?u.style.parsedOptions:n.time.medium;a.push({type:Et.literal,value:i.getDateTimeFormat(t,m).format(p)})}else if(me(u)){(m="string"==typeof u.style?n.number[u.style]:Le(u.style)?u.style.parsedOptions:void 0)&&m.scale&&(p*=m.scale||1),a.push({type:Et.literal,value:i.getNumberFormat(t,m).format(p)})}else{if(ve(u)){var d=u.children,f=u.value,g=r[f];if(!At(g))throw new
|
|
532
|
+
if(de(u)){var m="string"==typeof u.style?n.date[u.style]:Ee(u.style)?u.style.parsedOptions:void 0;a.push({type:Et.literal,value:i.getDateTimeFormat(t,m).format(p)})}else if(fe(u)){m="string"==typeof u.style?n.time[u.style]:Ee(u.style)?u.style.parsedOptions:n.time.medium;a.push({type:Et.literal,value:i.getDateTimeFormat(t,m).format(p)})}else if(me(u)){(m="string"==typeof u.style?n.number[u.style]:Le(u.style)?u.style.parsedOptions:void 0)&&m.scale&&(p*=m.scale||1),a.push({type:Et.literal,value:i.getNumberFormat(t,m).format(p)})}else{if(ve(u)){var d=u.children,f=u.value,g=r[f];if(!At(g))throw new xt(f,"function",s);var y=g($t(d,t,i,n,r,o).map((function(e){return e.value})));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map((function(e){return{type:"string"==typeof e?Et.literal:Et.object,value:e}})))}if(ge(u)){if(!(b=u.options[p]||u.options.other))throw new wt(u.value,p,Object.keys(u.options),s);a.push.apply(a,$t(b.value,t,i,n,r))}else if(ye(u)){var b;if(!(b=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new Tt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',bt.MISSING_INTL_API,s);var v=i.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));b=u.options[v]||u.options.other}if(!b)throw new wt(u.value,p,Object.keys(u.options),s);a.push.apply(a,$t(b.value,t,i,n,r,p-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var i=e[e.length-1];return i&&i.type===Et.literal&&t.type===Et.literal?i.value+=t.value:e.push(t),e}),[])}(a)}
|
|
533
533
|
/*
|
|
534
534
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
535
535
|
Copyrights licensed under the New BSD License.
|
|
@@ -570,7 +570,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
570
570
|
PERFORMANCE OF THIS SOFTWARE.
|
|
571
571
|
***************************************************************************** */function Vt(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}const zt={fallbackLocale: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,handleMissingMessage:void 0,ignoreTag:!0};function Xt(){return zt}const Kt=X(!1);let Yt;const Zt=X(null);function qt(e){return e.split("-").map(((e,t,i)=>i.slice(0,t+1).join("-"))).reverse()}function Jt(e,t=Xt().fallbackLocale){const i=qt(e);return t?[...new Set([...i,...qt(t)])]:i}function Qt(){return null!=Yt?Yt:void 0}Zt.subscribe((e=>{Yt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const ei=Object.assign(Object.assign({},Zt),{set:e=>{if(e&&function(e){if(null==e)return;const t=Jt(e);for(let e=0;e<t.length;e++){const i=t[e];if(Rt(i))return i}}(e)&&jt(e)){const{loadingDelay:t}=Xt();let i;return"undefined"!=typeof window&&null!=Qt()&&t?i=window.setTimeout((()=>Kt.set(!0)),t):Kt.set(!0),Wt(e).then((()=>{Zt.set(e)})).finally((()=>{clearTimeout(i),Kt.set(!1)}))}return Zt.set(e)}}),ti=e=>{const t=Object.create(null);return i=>{const n=JSON.stringify(i);return n in t?t[n]:t[n]=e(i)}},ii=(e,t)=>{const{formats:i}=Xt();if(e in i&&t in i[e])return i[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ni=ti((e=>{var{locale:t,format:i}=e,n=Vt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return i&&(n=ii("number",i)),new Intl.NumberFormat(t,n)})),ri=ti((e=>{var{locale:t,format:i}=e,n=Vt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return i?n=ii("date",i):0===Object.keys(n).length&&(n=ii("date","short")),new Intl.DateTimeFormat(t,n)})),oi=ti((e=>{var{locale:t,format:i}=e,n=Vt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return i?n=ii("time",i):0===Object.keys(n).length&&(n=ii("time","short")),new Intl.DateTimeFormat(t,n)})),si=ti(((e,t=Qt())=>new Ht(e,t,Xt().formats,{ignoreTag:Xt().ignoreTag}))),ai=(e,t={})=>{var i,n,r,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Qt(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Ct(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!==(o=null!==(r=null===(n=(i=Xt()).handleMissingMessage)||void 0===n?void 0:n.call(i,{locale:l,id:e,defaultValue:c}))&&void 0!==r?r:c)&&void 0!==o?o:e;if(!a)return u;let h=u;try{h=si(u,l).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},li=(e,t)=>((e={})=>{var{locale:t=Qt()}=e,i=Vt(e,["locale"]);return oi(Object.assign({locale:t},i))})(t).format(e),ci=(e,t)=>((e={})=>{var{locale:t=Qt()}=e,i=Vt(e,["locale"]);return ri(Object.assign({locale:t},i))})(t).format(e),ui=(e,t)=>((e={})=>{var{locale:t=Qt()}=e,i=Vt(e,["locale"]);return ni(Object.assign({locale:t},i))})(t).format(e),hi=(e,t=Qt())=>Ct(e,t),pi=K([ei,Nt],(()=>ai));K([ei],(()=>li)),K([ei],(()=>ci)),K([ei],(()=>ui)),K([ei,Nt],(()=>hi));const mi={en:{gamingLimits:{loadingText:"Loading, please wait...",Monthly:"month",Weekly:"week",Daily:"day",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Succesful"}},fr:{gamingLimits:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",per:"par",updateText:"sera appliqué sur",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit"}},ro:{gamingLimits:{loadingText:"Se incarca, va rugam asteptati...",Monthly:"luna",Weekly:"saptamana",Daily:"zi",per:"pe",updateText:"va intra in vigoare incepand cu",noLimitText:"Momentan nu este setata o limita.",limitType:"Tip Limita",period:"Perioada",amount:"Valoare",new:"Limita pe",limit:"noua",setLimit:"ACCEPTA LIMITA",loss:"Limita de Pierdere",deposit:"Limita de Depunere",wager:"Limita de Pariere",removeLimit:"ELIMINA",popupPendingUpdate:"Am primit cererea de a schimba limita. Schimbarea va intra in vigoare in data de",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount}{currency} pe {selectedPeriod}",popupTitle:"Limita schimbata",popupSuccess:"Succes!"}},es:{gamingLimits:{loadingText:"Cargando por favor espere..."}},pt:{gamingLimits:{loadingText:"Carregando, por favor espere..."}},de:{gamingLimits:{loadingText:"Laden, bitte warten..."}}};var di="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==di&&di,fi="URLSearchParams"in di,gi="Symbol"in di&&"iterator"in Symbol,yi="FileReader"in di&&"Blob"in di&&function(){try{return new Blob,!0}catch(e){return!1}}(),bi="FormData"in di,vi="ArrayBuffer"in di;if(vi)var Li=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Ei=ArrayBuffer.isView||function(e){return e&&Li.indexOf(Object.prototype.toString.call(e))>-1};function Ti(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function wi(e){return"string"!=typeof e&&(e=String(e)),e}
|
|
572
572
|
// Build a destructive iterator for the value list
|
|
573
|
-
function
|
|
573
|
+
function xi(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return gi&&(t[Symbol.iterator]=function(){return t}),t}function _i(e){this.map={},e instanceof _i?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function Ai(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function $i(e){return new Promise((function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}}))}function Si(e){var t=new FileReader,i=$i(t);return t.readAsArrayBuffer(e),i}function Pi(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Bi(){return this.bodyUsed=!1,this._initBody=function(e){var t;
|
|
574
574
|
/*
|
|
575
575
|
fetch-mock wraps the Response object in an ES6 Proxy to
|
|
576
576
|
provide useful test harness features such as flush. However, on
|
|
@@ -585,17 +585,17 @@ this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText
|
|
|
585
585
|
// IE 10-11 can't handle a DataView body.
|
|
586
586
|
this._bodyInit=new Blob([this._bodyArrayBuffer])):vi&&(ArrayBuffer.prototype.isPrototypeOf(e)||Ei(e))?this._bodyArrayBuffer=Pi(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):fi&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},yi&&(this.blob=function(){var e=Ai(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=Ai(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(Si)}),this.text=function(){var e,t,i,n=Ai(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=$i(t),t.readAsText(e),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},bi&&(this.formData=function(){return this.text().then(Di)}),this.json=function(){return this.text().then(JSON.parse)},this}
|
|
587
587
|
// HTTP methods whose capitalization should be normalized
|
|
588
|
-
|
|
588
|
+
_i.prototype.append=function(e,t){e=Ti(e),t=wi(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},_i.prototype.delete=function(e){delete this.map[Ti(e)]},_i.prototype.get=function(e){return e=Ti(e),this.has(e)?this.map[e]:null},_i.prototype.has=function(e){return this.map.hasOwnProperty(Ti(e))},_i.prototype.set=function(e,t){this.map[Ti(e)]=wi(t)},_i.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},_i.prototype.keys=function(){var e=[];return this.forEach((function(t,i){e.push(i)})),xi(e)},_i.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),xi(e)},_i.prototype.entries=function(){var e=[];return this.forEach((function(t,i){e.push([i,t])})),xi(e)},gi&&(_i.prototype[Symbol.iterator]=_i.prototype.entries);var Hi=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ii(e,t){if(!(this instanceof Ii))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,n,r=(t=t||{}).body;if(e instanceof Ii){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new _i(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new _i(t.headers)),this.method=(i=t.method||this.method||"GET",n=i.toUpperCase(),Hi.indexOf(n)>-1?n:i),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){
|
|
589
589
|
// Search for a '_' parameter in the query string
|
|
590
590
|
var o=/([?&])_=[^&]*/;if(o.test(this.url))
|
|
591
591
|
// If it already exists then set the value with the current time
|
|
592
|
-
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Di(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var i=e.split("="),n=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(r))}})),t}function Ci(e,t){if(!(this instanceof Ci))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new
|
|
592
|
+
this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function Di(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var i=e.split("="),n=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(r))}})),t}function Ci(e,t){if(!(this instanceof Ci))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new _i(t.headers),this.url=t.url||"",this._initBody(e)}Ii.prototype.clone=function(){return new Ii(this,{body:this._bodyInit})},Bi.call(Ii.prototype),Bi.call(Ci.prototype),Ci.prototype.clone=function(){return new Ci(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new _i(this.headers),url:this.url})},Ci.error=function(){var e=new Ci(null,{status:0,statusText:""});return e.type="error",e};var Oi=[301,302,303,307,308];Ci.redirect=function(e,t){if(-1===Oi.indexOf(t))throw new RangeError("Invalid status code");return new Ci(null,{status:t,headers:{location:e}})};var Ni=di.DOMException;try{new Ni}catch(e){(Ni=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack}).prototype=Object.create(Error.prototype),Ni.prototype.constructor=Ni}function Ri(e,t){return new Promise((function(i,n){var r=new Ii(e,t);if(r.signal&&r.signal.aborted)return n(new Ni("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}o.onload=function(){var e,t,n={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new _i,
|
|
593
593
|
// Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill
|
|
594
594
|
// https://github.com/github/fetch/issues/748
|
|
595
595
|
// https://github.com/zloirock/core-js/issues/751
|
|
596
|
-
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var i=e.split(":"),n=i.shift().trim();if(n){var r=i.join(":").trim();t.append(n,r)}})),t)};n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var r="response"in o?o.response:o.responseText;setTimeout((function(){i(new Ci(r,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){n(new Ni("Aborted","AbortError"))}),0)},o.open(r.method,function(e){try{return""===e&&di.location.href?di.location.href:e}catch(t){return e}}(r.url),!0),"include"===r.credentials?o.withCredentials=!0:"omit"===r.credentials&&(o.withCredentials=!1),"responseType"in o&&(yi?o.responseType="blob":vi&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof
|
|
596
|
+
e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var i=e.split(":"),n=i.shift().trim();if(n){var r=i.join(":").trim();t.append(n,r)}})),t)};n.url="responseURL"in o?o.responseURL:n.headers.get("X-Request-URL");var r="response"in o?o.response:o.responseText;setTimeout((function(){i(new Ci(r,n))}),0)},o.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){n(new Ni("Aborted","AbortError"))}),0)},o.open(r.method,function(e){try{return""===e&&di.location.href?di.location.href:e}catch(t){return e}}(r.url),!0),"include"===r.credentials?o.withCredentials=!0:"omit"===r.credentials&&(o.withCredentials=!1),"responseType"in o&&(yi?o.responseType="blob":vi&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof _i?r.headers.forEach((function(e,t){o.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){o.setRequestHeader(e,wi(t.headers[e]))})),r.signal&&(r.signal.addEventListener("abort",s),o.onreadystatechange=function(){
|
|
597
597
|
// DONE (success or failure)
|
|
598
|
-
4===o.readyState&&r.signal.removeEventListener("abort",s)}),o.send(void 0===r._bodyInit?null:r._bodyInit)}))}Ri.polyfill=!0,di.fetch||(di.fetch=Ri,di.Headers=
|
|
598
|
+
4===o.readyState&&r.signal.removeEventListener("abort",s)}),o.send(void 0===r._bodyInit?null:r._bodyInit)}))}Ri.polyfill=!0,di.fetch||(di.fetch=Ri,di.Headers=_i,di.Request=Ii,di.Response=Ci),
|
|
599
599
|
// the whatwg-fetch polyfill installs the fetch() function
|
|
600
600
|
// on the global object (window or self)
|
|
601
601
|
// Return that as the export for use in Webpack, Browserify etc.
|
|
@@ -623,163 +623,168 @@ var Mi=function(e,t){return Mi=Object.setPrototypeOf||{__proto__:[]}instanceof A
|
|
|
623
623
|
* @returns {Boolean} true or false
|
|
624
624
|
*/
|
|
625
625
|
const Tn=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
626
|
-
/*
|
|
627
|
-
// (
|
|
626
|
+
/* ../player-account-gaming-limits-page-2-gmcore/src/PlayerAccountGamingLimitsPage_2Gmcore.svelte generated by Svelte v3.48.0 */function wn(e,t,i){const n=e.slice();return n[46]=t[i],n}function xn(e,t,i){const n=e.slice();return n[49]=t[i],n}function _n(e,t,i){const n=e.slice();return n[49]=t[i],n}function An(e,t,i){const n=e.slice();return n[54]=t[i],n}
|
|
627
|
+
// (235:2) {#if popupVisible}
|
|
628
628
|
function $n(e){let t,i,n;function r(e,t){/*popupReady*/
|
|
629
629
|
return e[10]?Sn:Pn}let o=r(e),s=o(e);return{c(){t=p("div"),i=p("div"),s.c(),b(i,"class",n="PopupContainer "+(/*isDesktop*/e[13]?"Desktop":"")),b(t,"class","PopupOverlay")},m(e,n){c(e,t,n),l(t,i),s.m(i,null)},p(e,t){o===(o=r(e))&&s?s.p(e,t):(s.d(1),s=o(e),s&&(s.c(),s.m(i,null)))},d(e){e&&u(t),s.d()}}}
|
|
630
|
-
// (
|
|
631
|
-
function Sn(e){let t,i,r,o,s,a,h,g,v,L,T,_,
|
|
632
|
-
// (
|
|
630
|
+
// (240:6) {:else}
|
|
631
|
+
function Sn(e){let t,i,r,o,s,a,h,g,v,L,T,x,_,A,$,S,P,B,H,I,D,C,O,N,R=/*$_*/e[12]("gamingLimits.popupTitle")+"",M=/*$_*/e[12]("gamingLimits.popupSuccess")+"";return{c(){t=p("div"),i=p("span"),r=d(R),o=f(),s=p("button"),s.textContent="X",a=f(),h=p("div"),g=p("div"),v=m("svg"),L=m("defs"),T=m("style"),x=d(".fil0 {fill:black;fill-rule:nonzero}\n "),_=m("g"),A=m("polygon"),$=f(),S=p("p"),P=d(M),B=f(),H=p("p"),I=d(/*popupContent*/e[11]),D=f(),C=p("button"),C.textContent="OK",b(i,"class","PopupTitle"),b(s,"class","ClosePopup"),b(t,"class","PopupTitleWrapper"),b(T,"type","text/css"),b(A,"class","fil0"),b(A,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),b(v,"xmlns","http://www.w3.org/2000/svg"),b(v,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(v,"xml:space","preserve"),b(v,"version","1.1"),w(v,"shape-rendering","geometricPrecision"),w(v,"text-rendering","geometricPrecision"),w(v,"image-rendering","optimizeQuality"),b(v,"viewBox","0 0 90 69"),b(v,"x","0px"),b(v,"y","0px"),b(v,"fill-rule","evenodd"),b(v,"clip-rule","evenodd"),b(g,"class","ResultIconWrapper"),b(H,"class","DescriptionParagraph"),b(h,"class","DescriptionWrapper"),b(C,"class","ConfirmButton")},m(n,u){c(n,t,u),l(t,i),l(i,r),l(t,o),l(t,s),c(n,a,u),c(n,h,u),l(h,g),l(g,v),l(v,L),l(L,T),l(T,x),l(v,_),l(_,A),l(g,$),l(g,S),l(S,P),l(h,B),l(h,H),l(H,I),c(n,D,u),c(n,C,u),O||(N=[y(s,"click",/*closePopup*/e[19]),y(C,"click",/*closePopup*/e[19])],O=!0)},p(e,t){/*$_*/4096&t[0]&&R!==(R=/*$_*/e[12]("gamingLimits.popupTitle")+"")&&E(r,R),/*$_*/4096&t[0]&&M!==(M=/*$_*/e[12]("gamingLimits.popupSuccess")+"")&&E(P,M),/*popupContent*/2048&t[0]&&E(I,/*popupContent*/e[11])},d(e){e&&u(t),e&&u(a),e&&u(h),e&&u(D),e&&u(C),O=!1,n(N)}}}
|
|
632
|
+
// (238:6) {#if !popupReady}
|
|
633
633
|
function Pn(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){c(e,i,t)},p:e,d(e){e&&u(i)}}}
|
|
634
|
-
// (
|
|
635
|
-
function Bn(e){let t,i,r,o,s,a,m,g,v,w,_,
|
|
636
|
-
/*button_binding*/e[32]($),P||(B=[y(
|
|
634
|
+
// (269:2) {:else}
|
|
635
|
+
function Bn(e){let t,i,r,o,s,a,m,g,v,w,x,_,A,$,S,P,B,H=/*multiplePeriods*/e[6]?`${/*$_*/e[12]("gamingLimits.amount")}`:`${/*$_*/e[12]("gamingLimits.new")} ${/*$_*/e[12](`gamingLimits.${/*selectedPeriod*/e[2]}`)} ${/*$_*/e[12]("gamingLimits.limit")}`,I=/*$_*/e[12]("gamingLimits.setLimit")+"",D=/*availableLimits*/e[14],C=[];for(let t=0;t<D.length;t+=1)C[t]=Un(_n(e,D,t));let O=/*multipleLimits*/e[5]&&kn(e),N=/*multiplePeriods*/e[6]&&jn(e);return{c(){t=p("div"),i=p("div"),r=p("div");for(let e=0;e<C.length;e+=1)C[e].c();o=f(),s=p("form"),O&&O.c(),a=f(),N&&N.c(),m=f(),g=p("label"),v=p("span"),w=d(H),x=f(),_=p("input"),A=f(),$=p("button"),S=d(I),b(r,"class","LimitsList "+(/*isDesktop*/e[13]?"Desktop":"")),b(v,"class","LimitInputText"),b(_,"type","number"),b(g,"class","LimitAmountInputWrapper"),b($,"class","LimitSubmitButton"),b($,"type","button"),$.disabled=!0,b(s,"class","LimitsInteractionArea "+(/*isDesktop*/e[13]?"Desktop":"")),b(i,"class","LimitsPageContainer"),b(t,"class","player-account-gaming-limits-page-2-gmcore")},m(n,u){c(n,t,u),l(t,i),l(i,r);for(let e=0;e<C.length;e+=1)C[e].m(r,null);l(i,o),l(i,s),O&&O.m(s,null),l(s,a),N&&N.m(s,null),l(s,m),l(s,g),l(g,v),l(v,w),l(g,x),l(g,_),T(_,/*inputAmount*/e[3]),l(s,A),l(s,$),l($,S),
|
|
636
|
+
/*button_binding*/e[32]($),P||(B=[y(_,"input",/*input_input_handler*/e[31]),y(_,"keyup",/*updateInputValue*/e[17]),y($,"click",/*updateLimits*/e[16]),y(s,"submit",/*updateLimits*/e[16])],P=!0)},p(e,t){if(/*isDesktop, availableLimits, removeLimit, $_*/290816&t[0]){let i;for(D=/*availableLimits*/e[14],i=0;i<D.length;i+=1){const n=_n(e,D,i);C[i]?C[i].p(n,t):(C[i]=Un(n),C[i].c(),C[i].m(r,null))}for(;i<C.length;i+=1)C[i].d(1);C.length=D.length}/*multipleLimits*/e[5]?O?O.p(e,t):(O=kn(e),O.c(),O.m(s,a)):O&&(O.d(1),O=null),/*multiplePeriods*/e[6]?N?N.p(e,t):(N=jn(e),N.c(),N.m(s,m)):N&&(N.d(1),N=null),/*multiplePeriods, $_, selectedPeriod*/4164&t[0]&&H!==(H=/*multiplePeriods*/e[6]?`${/*$_*/e[12]("gamingLimits.amount")}`:`${/*$_*/e[12]("gamingLimits.new")} ${/*$_*/e[12](`gamingLimits.${/*selectedPeriod*/e[2]}`)} ${/*$_*/e[12]("gamingLimits.limit")}`)&&E(w,H),/*inputAmount*/8&t[0]&&L(_.value)!==/*inputAmount*/e[3]&&T(_,/*inputAmount*/e[3]),/*$_*/4096&t[0]&&I!==(I=/*$_*/e[12]("gamingLimits.setLimit")+"")&&E(S,I)},d(i){i&&u(t),h(C,i),O&&O.d(),N&&N.d()
|
|
637
637
|
/*button_binding*/,e[32](null),P=!1,n(B)}}}
|
|
638
|
-
// (
|
|
638
|
+
// (267:22)
|
|
639
639
|
function Hn(t){let i;return{c(){i=p("p"),i.textContent="500 Server error"},m(e,t){c(e,i,t)},p:e,d(e){e&&u(i)}}}
|
|
640
|
-
// (
|
|
640
|
+
// (266:22)
|
|
641
641
|
function In(t){return{c:e,m:e,p:e,d:e}}
|
|
642
|
-
// (
|
|
642
|
+
// (263:2) {#if isLoading && !popupVisible}
|
|
643
643
|
function Dn(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){c(e,i,t)},p:e,d(e){e&&u(i)}}}
|
|
644
|
-
// (
|
|
644
|
+
// (293:12) {:else}
|
|
645
645
|
function Cn(e){let t,i,n,r,o=/*$_*/e[12]("gamingLimits.noLimitText")+"";return{c(){t=p("div"),i=p("div"),n=p("div"),r=d(o),b(n,"class","LimitDetailsTextWrapper"),b(i,"class","LimitDetailsWrapper"),b(t,"class","LimitDetails")},m(e,o){c(e,t,o),l(t,i),l(i,n),l(n,r)},p(e,t){/*$_*/4096&t[0]&&o!==(o=/*$_*/e[12]("gamingLimits.noLimitText")+"")&&E(r,o)},d(e){e&&u(t)}}}
|
|
646
|
-
// (
|
|
646
|
+
// (277:12) {#if limit.currentLimits.length > 0}
|
|
647
647
|
function On(e){let t,i=/*limit*/e[49].currentLimits,n=[];for(let t=0;t<i.length;t+=1)n[t]=Mn(An(e,i,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,i){for(let t=0;t<n.length;t+=1)n[t].m(e,i);c(e,t,i)},p(e,r){if(/*removeLimit, availableLimits, $_*/282624&r[0]){let o;for(i=/*limit*/e[49].currentLimits,o=0;o<i.length;o+=1){const s=An(e,i,o);n[o]?n[o].p(s,r):(n[o]=Mn(s),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},d(e){h(n,e),e&&u(t)}}}
|
|
648
|
-
// (
|
|
648
|
+
// (284:54)
|
|
649
649
|
function Nn(e){let t,i,n=`${/*$_*/e[12]("gamingLimits.removedLimitText")} ${/*currentLimit*/e[54].expiryDate}`;return{c(){t=p("div"),i=d(n),b(t,"class","PendingLimit")},m(e,n){c(e,t,n),l(t,i)},p(e,t){/*$_*/4096&t[0]&&n!==(n=`${/*$_*/e[12]("gamingLimits.removedLimitText")} ${/*currentLimit*/e[54].expiryDate}`)&&E(i,n)},d(e){e&&u(t)}}}
|
|
650
|
-
// (
|
|
650
|
+
// (282:18) {#if currentLimit.isModified && currentLimit.updateAmount!= "-1"}
|
|
651
651
|
function Rn(e){let t,i,n=`${/*currentLimit*/e[54].updateAmount}${/*currentLimit*/e[54].currency} ${/*$_*/e[12]("gamingLimits.per")} ${/*$_*/e[12](`gamingLimits.${/*currentLimit*/e[54].period}`)} ${/*$_*/e[12]("gamingLimits.updateText")} ${/*currentLimit*/e[54].expiryDate}`;return{c(){t=p("div"),i=d(n),b(t,"class","PendingLimit")},m(e,n){c(e,t,n),l(t,i)},p(e,t){/*$_*/4096&t[0]&&n!==(n=`${/*currentLimit*/e[54].updateAmount}${/*currentLimit*/e[54].currency} ${/*$_*/e[12]("gamingLimits.per")} ${/*$_*/e[12](`gamingLimits.${/*currentLimit*/e[54].period}`)} ${/*$_*/e[12]("gamingLimits.updateText")} ${/*currentLimit*/e[54].expiryDate}`)&&E(i,n)},d(e){e&&u(t)}}}
|
|
652
|
-
// (
|
|
653
|
-
// (
|
|
652
|
+
// (288:16) {#if !currentLimit.isModified}
|
|
653
|
+
// (278:14) {#each limit.currentLimits as currentLimit}
|
|
654
654
|
function Mn(e){let t,i,n,r,o,s,a,h=`${/*currentLimit*/e[54].amount}${/*currentLimit*/e[54].currency} ${/*$_*/e[12]("gamingLimits.per")} ${/*$_*/e[12](`gamingLimits.${/*currentLimit*/e[54].period}`)}`;let m=function(e,t){/*currentLimit*/
|
|
655
655
|
return e[54].isModified&&/*currentLimit*/"-1"!=e[54].updateAmount?Rn:/*currentLimit*/e[54].isModified?Nn:void 0}(e),g=m&&m(e),v=!/*currentLimit*/e[54].isModified&&function(e){let t,i,n,r,o=/*$_*/e[12]("gamingLimits.removeLimit")+"";function s(){/*click_handler*/
|
|
656
656
|
return e[28](/*currentLimit*/e[54])}return{c(){t=p("button"),i=d(o),b(t,"class","RemoveLimitButton")},m(e,o){c(e,t,o),l(t,i),n||(r=y(t,"click",s),n=!0)},p(t,n){e=t,/*$_*/4096&n[0]&&o!==(o=/*$_*/e[12]("gamingLimits.removeLimit")+"")&&E(i,o)},d(e){e&&u(t),n=!1,r()}}}(e);return{c(){t=p("div"),i=p("div"),n=p("div"),r=d(h),o=f(),g&&g.c(),s=f(),v&&v.c(),a=f(),b(n,"class","CurrentLimit"),b(i,"class","LimitDetailsTextWrapper"),b(t,"class","LimitDetails")},m(e,u){c(e,t,u),l(t,i),l(i,n),l(n,r),l(i,o),g&&g.m(i,null),l(t,s),v&&v.m(t,null),l(t,a)},p(e,t){/*$_*/4096&t[0]&&h!==(h=`${/*currentLimit*/e[54].amount}${/*currentLimit*/e[54].currency} ${/*$_*/e[12]("gamingLimits.per")} ${/*$_*/e[12](`gamingLimits.${/*currentLimit*/e[54].period}`)}`)&&E(r,h),g&&g.p(e,t),/*currentLimit*/e[54].isModified||v.p(e,t)},d(e){e&&u(t),g&&g.d(),v&&v.d()}}}
|
|
657
|
-
// (
|
|
657
|
+
// (274:8) {#each availableLimits as limit}
|
|
658
658
|
function Un(e){let t,i,n,r,o,s,a=/*$_*/e[12](`gamingLimits.${/*limit*/e[49].value}`)+"";let h=function(e,t){/*limit*/
|
|
659
659
|
return e[49].currentLimits.length>0?On:Cn}(e),m=h(e);return{c(){t=p("div"),i=p("p"),n=d(a),r=f(),m.c(),o=f(),b(i,"class","LimitTitle"),b(t,"class",s="LimitWrapper "+(/*isDesktop*/e[13]?"Desktop":""))},m(e,s){c(e,t,s),l(t,i),l(i,n),l(t,r),m.m(t,null),l(t,o)},p(e,t){/*$_*/4096&t[0]&&a!==(a=/*$_*/e[12](`gamingLimits.${/*limit*/e[49].value}`)+"")&&E(n,a),m.p(e,t)},d(e){e&&u(t),m.d()}}}
|
|
660
|
-
// (
|
|
661
|
-
function kn(e){let t,i,r,o,s,a,m,g=/*$_*/e[12]("gamingLimits.limitType")+"",v=/*availableLimits*/e[14],L=[];for(let t=0;t<v.length;t+=1)L[t]=Gn(
|
|
662
|
-
// (
|
|
660
|
+
// (302:8) {#if multipleLimits}
|
|
661
|
+
function kn(e){let t,i,r,o,s,a,m,g=/*$_*/e[12]("gamingLimits.limitType")+"",v=/*availableLimits*/e[14],L=[];for(let t=0;t<v.length;t+=1)L[t]=Gn(xn(e,v,t));return{c(){t=p("label"),i=p("span"),r=d(g),o=f(),s=p("select");for(let e=0;e<L.length;e+=1)L[e].c();b(i,"class","LimitSelectText"),b(s,"name",""),b(s,"id",""),/*selectedLimit*/void 0===e[1]&&N((()=>/*select_change_handler*/e[29].call(s))),b(t,"class","LimitTypeDropdownWrapper")},m(n,u){c(n,t,u),l(t,i),l(i,r),l(t,o),l(t,s);for(let e=0;e<L.length;e+=1)L[e].m(s,null);x(s,/*selectedLimit*/e[1]),a||(m=[y(s,"change",/*select_change_handler*/e[29]),y(s,"change",/*updateLimitSelection*/e[15])],a=!0)},p(e,t){if(/*$_*/4096&t[0]&&g!==(g=/*$_*/e[12]("gamingLimits.limitType")+"")&&E(r,g),/*availableLimits*/16384&t[0]){let i;for(v=/*availableLimits*/e[14],i=0;i<v.length;i+=1){const n=xn(e,v,i);L[i]?L[i].p(n,t):(L[i]=Gn(n),L[i].c(),L[i].m(s,null))}for(;i<L.length;i+=1)L[i].d(1);L.length=v.length}/*selectedLimit, availableLimits*/16386&t[0]&&x(s,/*selectedLimit*/e[1])},d(e){e&&u(t),h(L,e),a=!1,n(m)}}}
|
|
662
|
+
// (305:12) {#each availableLimits as limit}
|
|
663
663
|
function Gn(t){let i,n,r,o=/*limit*/t[49].title+"";return{c(){i=p("option"),n=d(o),i.__value=r=/*limit*/t[49].value,i.value=i.__value},m(e,t){c(e,i,t),l(i,n)},p:e,d(e){e&&u(i)}}}
|
|
664
|
-
// (
|
|
665
|
-
function jn(e){let t,i,n,r,o,s,a,m=/*$_*/e[12]("gamingLimits.period")+"",g=V[/*selectedLimit*/e[1]].periods,v=[];for(let t=0;t<g.length;t+=1)v[t]=Fn(wn(e,g,t));return{c(){t=p("label"),i=p("span"),n=d(m),r=f(),o=p("select");for(let e=0;e<v.length;e+=1)v[e].c();b(i,"class","PeriodSelectText"),b(o,"name",""),b(o,"id",""),/*selectedPeriod*/void 0===e[2]&&N((()=>/*select_change_handler_1*/e[30].call(o))),b(t,"class","LimitPeriodDropdownWrapper")},m(u,h){c(u,t,h),l(t,i),l(i,n),l(t,r),l(t,o);for(let e=0;e<v.length;e+=1)v[e].m(o,null);
|
|
666
|
-
// (
|
|
664
|
+
// (311:8) {#if multiplePeriods}
|
|
665
|
+
function jn(e){let t,i,n,r,o,s,a,m=/*$_*/e[12]("gamingLimits.period")+"",g=V[/*selectedLimit*/e[1]].periods,v=[];for(let t=0;t<g.length;t+=1)v[t]=Fn(wn(e,g,t));return{c(){t=p("label"),i=p("span"),n=d(m),r=f(),o=p("select");for(let e=0;e<v.length;e+=1)v[e].c();b(i,"class","PeriodSelectText"),b(o,"name",""),b(o,"id",""),/*selectedPeriod*/void 0===e[2]&&N((()=>/*select_change_handler_1*/e[30].call(o))),b(t,"class","LimitPeriodDropdownWrapper")},m(u,h){c(u,t,h),l(t,i),l(i,n),l(t,r),l(t,o);for(let e=0;e<v.length;e+=1)v[e].m(o,null);x(o,/*selectedPeriod*/e[2]),s||(a=y(o,"change",/*select_change_handler_1*/e[30]),s=!0)},p(e,t){if(/*$_*/4096&t[0]&&m!==(m=/*$_*/e[12]("gamingLimits.period")+"")&&E(n,m),/*selectedLimit, $_*/4098&t[0]){let i;for(g=V[/*selectedLimit*/e[1]].periods,i=0;i<g.length;i+=1){const n=wn(e,g,i);v[i]?v[i].p(n,t):(v[i]=Fn(n),v[i].c(),v[i].m(o,null))}for(;i<v.length;i+=1)v[i].d(1);v.length=g.length}/*selectedPeriod, selectedLimit*/6&t[0]&&x(o,/*selectedPeriod*/e[2])},d(e){e&&u(t),h(v,e),s=!1,a()}}}
|
|
666
|
+
// (314:12) {#each limitsConfig[selectedLimit].periods as period}
|
|
667
667
|
function Fn(e){let t,i,n,r,o,s=/*$_*/e[12]("gamingLimits.per")+"",a=/*$_*/e[12](`gamingLimits.${/*period*/e[46]}`)+"";return{c(){t=p("option"),i=d(s),n=f(),r=d(a),t.__value=o=/*period*/e[46],t.value=t.__value,t.selected=!0},m(e,o){c(e,t,o),l(t,i),l(t,n),l(t,r)},p(e,n){/*$_*/4096&n[0]&&s!==(s=/*$_*/e[12]("gamingLimits.per")+"")&&E(i,s),/*$_, selectedLimit*/4098&n[0]&&a!==(a=/*$_*/e[12](`gamingLimits.${/*period*/e[46]}`)+"")&&E(r,a),/*selectedLimit, availableLimits*/16386&n[0]&&o!==(o=/*period*/e[46])&&(t.__value=o,t.value=t.__value)},d(e){e&&u(t)}}}function Wn(t){let i,n,r=/*popupVisible*/t[9]&&$n(t);function o(e,t){/*isLoading*/
|
|
668
668
|
return e[7]&&!/*popupVisible*/e[9]?Dn:/*isLoading*/e[7]?In:/*hasErrors*/e[8]?Hn:Bn}let s=o(t),a=s(t);return{c(){i=p("div"),r&&r.c(),n=f(),a.c(),this.c=e},m(e,o){c(e,i,o),r&&r.m(i,null),l(i,n),a.m(i,null),
|
|
669
669
|
/*div_binding*/t[33](i)},p(e,t){/*popupVisible*/e[9]?r?r.p(e,t):(r=$n(e),r.c(),r.m(i,n)):r&&(r.d(1),r=null),s===(s=o(e))&&a?a.p(e,t):(a.d(1),a=s(e),a&&(a.c(),a.m(i,null)))},i:e,o:e,d(e){e&&u(i),r&&r.d(),a.d(),
|
|
670
|
-
/*div_binding*/t[33](null)}}}function Vn(e,t,i){let n;a(e,pi,(e=>i(12,n=e)));let r,o,s,l,{lang:c="en"}=t,{currency:u=""}=t,{limits:h=""}=t,{session:p=""}=t,{userid:m=""}=t,{endpoint:d=""}=t,{clientstyling:f=""}=t,{clientstylingurl:g=""}=t,y=window.navigator.userAgent,b=!Tn(y),v=[],E="",T="",w=!1,
|
|
670
|
+
/*div_binding*/t[33](null)}}}function Vn(e,t,i){let n;a(e,pi,(e=>i(12,n=e)));let r,o,s,l,{lang:c="en"}=t,{currency:u=""}=t,{limits:h=""}=t,{session:p=""}=t,{userid:m=""}=t,{endpoint:d=""}=t,{clientstyling:f=""}=t,{clientstylingurl:g=""}=t,y=window.navigator.userAgent,b=!Tn(y),v=[],E="",T="",w=!1,x=!1,A=!0,$=!1,S=!1,P=!1,B="";const I={EUR:"€",RON:" lei"};Object.keys(mi).forEach((e=>{!function(e,t){Ut(e,t)}(e,mi[e])}));const D=()=>{let e=new URL(`v2/player/${m}/limits`,d),t={method:"GET",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,t).then((e=>{if(e.status>=300)throw i(7,A=!1),i(8,$=!0),new Error("There was an error fetching the limits");return e.json()})).then((e=>{l=e,S&&N(),C(l),i(7,A=!1),i(3,o=null)})).catch((e=>{console.log(e),i(7,A=!1),i(8,$=!0)}))},C=e=>{v.forEach((t=>{var i;t.currentLimits=[],
|
|
671
671
|
// this is not n^2, despite the nesting loop. It's max totalLimitType * totalPeriodType, so 4 * 3 = 12 operations tops
|
|
672
672
|
null===(i=e[V[t.value].callValue])||void 0===i||i.forEach(((i,n)=>{var r;const o=e[V[t.value].callValue][n];t.currentLimits.push({}),
|
|
673
673
|
// format the limit data
|
|
674
|
-
t.currentLimits[n].limitType=t.value,t.currentLimits[n].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount),t.currentLimits[n].currency=null!==(r=I[o.currency])&&void 0!==r?r:o.currency,t.currentLimits[n].period=o.period,t.currentLimits[n].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateAmount),t.currentLimits[n].isModified=o.isModified,t.currentLimits[n].expiryDate=`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})),t.currentLimits=O(t.currentLimits)}))},O=e=>{const t={Daily:0,Weekly:1,Monthly:2};return e.sort(((e,i)=>t[e.period]-t[i.period])),e},N=()=>{if(l){const e=l[V[E].callValue].filter((e=>e.period===T))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount);let r=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${E}`).toLowerCase()).replace("{updatedAmount}",t).replace("{currency}",I[e.currency]||e.currency).replace("{selectedPeriod}",n(`gamingLimits.${T}`).toLowerCase());i(11,B=e.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(e.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)}i(10,P=!0)},R=e=>{i(9,S=!0),i(7,A=!0);let t=new URL(`v2/player/${m}/limits/${{wager:"wagering",loss:"loss",deposit:"deposit"}[e.limitType]}?periods=${e.period}`,d),n={method:"DELETE",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,n).then((e=>e.json())).then((e=>{D()})).catch((e=>{console.log(e),i(8,$=!0)}))},M=()=>{var e;e=c,ei.set(e)};return e.$$set=e=>{"lang"in e&&i(20,c=e.lang),"currency"in e&&i(21,u=e.currency),"limits"in e&&i(22,h=e.limits),"session"in e&&i(23,p=e.session),"userid"in e&&i(24,m=e.userid),"endpoint"in e&&i(25,d=e.endpoint),"clientstyling"in e&&i(26,f=e.clientstyling),"clientstylingurl"in e&&i(27,g=e.clientstylingurl)},e.$$.update=()=>{/*limits*/4194304&e.$$.dirty[0]&&h&&(h.split(" ").forEach((e=>{V[e]?v.push(V[e]):console.error(`Unknown limit: ${e}`)})),
|
|
674
|
+
t.currentLimits[n].limitType=t.value,t.currentLimits[n].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount),t.currentLimits[n].currency=null!==(r=I[o.currency])&&void 0!==r?r:o.currency,t.currentLimits[n].period=o.period,t.currentLimits[n].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateAmount),t.currentLimits[n].isModified=o.isModified,t.currentLimits[n].expiryDate=`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})),t.currentLimits=O(t.currentLimits)}))},O=e=>{const t={Daily:0,Weekly:1,Monthly:2};return e.sort(((e,i)=>t[e.period]-t[i.period])),e},N=()=>{if(l){const e=l[V[E].callValue].filter((e=>e.period===T))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount);let r=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${E}`).toLowerCase()).replace("{updatedAmount}",t).replace("{currency}",I[e.currency]||e.currency).replace("{selectedPeriod}",n(`gamingLimits.${T}`).toLowerCase());i(11,B=e.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(e.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)}i(10,P=!0)},R=e=>{i(9,S=!0),i(7,A=!0);let t=new URL(`v2/player/${m}/limits/${{wager:"wagering",loss:"loss",deposit:"deposit"}[e.limitType]}?periods=${e.period}`,d),n={method:"DELETE",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,n).then((e=>e.json())).then((e=>{D()})).catch((e=>{console.log(e),i(7,A=!1),i(8,$=!0)}))},M=()=>{var e;e=c,ei.set(e)};return e.$$set=e=>{"lang"in e&&i(20,c=e.lang),"currency"in e&&i(21,u=e.currency),"limits"in e&&i(22,h=e.limits),"session"in e&&i(23,p=e.session),"userid"in e&&i(24,m=e.userid),"endpoint"in e&&i(25,d=e.endpoint),"clientstyling"in e&&i(26,f=e.clientstyling),"clientstylingurl"in e&&i(27,g=e.clientstylingurl)},e.$$.update=()=>{/*limits*/4194304&e.$$.dirty[0]&&h&&(h.split(" ").forEach((e=>{V[e]?v.push(V[e]):console.error(`Unknown limit: ${e}`)})),
|
|
675
675
|
//set default selected limit
|
|
676
|
-
i(1,E=v[0].value),i(2,T=V[E].periods[0]),i(5,w=v.length>1),i(6,
|
|
677
|
-
i(6,
|
|
678
|
-
/*
|
|
679
|
-
// (
|
|
676
|
+
i(1,E=v[0].value),i(2,T=V[E].periods[0]),i(5,w=v.length>1),i(6,x=V[E].periods.length>1)),/*lang*/1048576&e.$$.dirty[0]&&c&&M(),/*userid, session, endpoint*/58720256&e.$$.dirty[0]&&m&&p&&d&&D(),/*clientstylingurl*/134217728&e.$$.dirty[0]&&g&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,r&&(setTimeout((()=>{r.appendChild(t)}),1),setTimeout((()=>{}),500))}))})(),/*clientstyling*/67108864&e.$$.dirty[0]&&f&&(()=>{let e=document.createElement("style");e.innerHTML=f,r.appendChild(e)})()},[r,E,T,o,s,w,x,A,$,S,P,B,n,b,v,()=>{i(2,T=V[E].periods[0]),// select the first period by default until the user selects a different period
|
|
677
|
+
i(6,x=V[E].periods.length>1)},()=>{if(!(o>0))return;i(9,S=!0),i(7,A=!0);let e=new URL(`v2/player/${m}/limits`,d);const t={};t[V[E].callValue]=[{period:T,amount:o,currency:u}];let n={method:"PUT",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>e.json())).then((e=>{D()})).catch((e=>{console.log(e),i(7,A=!1),i(8,$=!0)}))},()=>{const e=o-Math.floor(o)==0;o>0&&e?s.removeAttribute("disabled"):s.setAttribute("disabled","true")},R,()=>{i(10,P=i(9,S=!1))},c,u,h,p,m,d,f,g,e=>R(e),function(){E=_(this),i(1,E),i(14,v)},function(){T=_(this),i(2,T),i(1,E)},function(){o=L(this.value),i(3,o)},function(e){H[e?"unshift":"push"]((()=>{s=e,i(4,s)}))},function(e){H[e?"unshift":"push"]((()=>{r=e,i(0,r)}))}]}!customElements.get("player-account-gaming-limits-page-2-gmcore")&&customElements.define("player-account-gaming-limits-page-2-gmcore",class extends W{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size:16px}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}select,input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:2px;border:1px solid #999}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gmcore{color:var(--emfe-w-color-white, #333)}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:63%;padding:0 12px;margin:0 auto}.LimitsList.Desktop{display:flex;flex-wrap:wrap;justify-content:space-between;width:63%;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:16px;border:1px solid #ccc;padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:#7ac317;color:#fff;border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:#ccc 1px solid}.LimitDetailsTextWrapper{font-size:16px;color:#666}.PendingLimit{color:#999}.LimitTitle{font-size:0.9rem}.PopupOverlay{position:absolute;top:0;left:0;background:#000;height:100vh;width:100vw;display:flex;justify-content:center;align-items:center}.PopupContainer{background:#fff;font-size:1rem;color:#333;width:80vw;height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:16px}.PopupTitleWrapper button{background:#fff;font-size:1rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:16px;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:#fff;color:#666;border:1px solid #ccc;border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:#f3f3fc}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px #7ac317;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1.0s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1.0s;animation-iteration-count:infinite;animation-timing-function:linear}</style>",F(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Vn,Wn,o,{lang:20,currency:21,limits:22,session:23,userid:24,endpoint:25,clientstyling:26,clientstylingurl:27},null,[-1,-1]),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[20]}set lang(e){this.$$set({lang:e}),U()}get currency(){return this.$$.ctx[21]}set currency(e){this.$$set({currency:e}),U()}get limits(){return this.$$.ctx[22]}set limits(e){this.$$set({limits:e}),U()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),U()}get userid(){return this.$$.ctx[24]}set userid(e){this.$$set({userid:e}),U()}get endpoint(){return this.$$.ctx[25]}set endpoint(e){this.$$set({endpoint:e}),U()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(e){this.$$set({clientstyling:e}),U()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),U()}});const zn={lugas:{title:"Deposit Limit",value:"lugas",callValue:"lugasLimit",callValue16:"Lugas",periods:["Monthly"]},deposit:{title:"Deposit Limit",value:"deposit",callValue:"depositLimits",callValue16:"Deposit",periods:["Daily","Weekly","Monthly"]},loss:{title:"Loss Limit",value:"loss",callValue:"lossLimits",callValue16:"Loss",periods:["Daily","Weekly","Monthly"]},wager:{title:"Wager Limit",value:"wager",callValue:"wageringLimits",callValue16:"Wagering",periods:["Monthly"]},stake:{title:"Stake Limit",value:"stake",callValue:"maxStake",callValue16:"MaxStake",periods:["None"]}};const Xn={en:{gamingLimits:{loadingText:"Loading, please wait...",Monthly:"month",Weekly:"week",Daily:"day",None:" ",noPeriod:".",per:"per",updateText:"will be applied on",removedLimitText:"The limit will be removed on",noLimitText:"There is currently no limit set.",lugasPrivacy:"The cross-provider LUGAS limit is not visible to providers.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit",stake:"Stake Limit",lugas:"Current Deposit Limit",removeLimit:"REMOVE",popupPendingUpdate:"We have received the request to change the limit. Please be aware that the update will only come into effect on",popupImmediateUpdate:"Your new {selectedLimit} is {updatedAmount}{currency} {per} {selectedPeriod}",popupTitle:"Limit changed",popupSuccess:"Succesful"}},fr:{gamingLimits:{loadingText:"Chargement, veuillez patienter...",Monthly:"mois",Weekly:"semaine",Daily:"jour",per:"par",updateText:"sera appliqué sur",noLimitText:"Aucune limite n'est actuellement définie.",limitType:"Limit Type",period:"Period",amount:"Amount",new:"New",limit:"limit",setLimit:"SET LIMIT",loss:"Loss Limit",deposit:"Deposit Limit",wager:"Wager Limit"}},ro:{gamingLimits:{loadingText:"Se incarca, va rugam asteptati...",Monthly:"luna",Weekly:"saptamana",Daily:"zi",per:"pe",updateText:"va intra in vigoare incepand cu",noLimitText:"Momentan nu este setata o limita.",limitType:"Tip Limita",period:"Perioada",amount:"Valoare",new:"Limita pe",limit:"noua",setLimit:"ACCEPTA LIMITA",loss:"Limita de Pierdere",deposit:"Limita de Depunere",wager:"Limita de Pariere",removeLimit:"ELIMINA",popupPendingUpdate:"Am primit cererea de a schimba limita. Schimbarea va intra in vigoare in data de",popupImmediateUpdate:"Noua {selectedLimit} este {updatedAmount}{currency} pe {selectedPeriod}",popupTitle:"Limita schimbata",popupSuccess:"Succes!"}},es:{gamingLimits:{loadingText:"Cargando por favor espere..."}},pt:{gamingLimits:{loadingText:"Carregando, por favor espere..."}},de:{gamingLimits:{loadingText:"Laden, bitte warten..."}}};
|
|
678
|
+
/* ../player-account-gaming-limits-page-2-gm16/src/PlayerAccountGamingLimitsPage_2Gm16.svelte generated by Svelte v3.48.0 */function Kn(e,t,i){const n=e.slice();return n[54]=t[i],n}function Yn(e,t,i){const n=e.slice();return n[57]=t[i],n}function Zn(e,t,i){const n=e.slice();return n[57]=t[i],n}function qn(e,t,i){const n=e.slice();return n[62]=t[i],n}
|
|
679
|
+
// (425:2) {#if popupVisible}
|
|
680
680
|
function Jn(e){let t,i,n;function r(e,t){/*popupReady*/
|
|
681
681
|
return e[10]?Qn:er}let o=r(e),s=o(e);return{c(){t=p("div"),i=p("div"),s.c(),b(i,"class",n="PopupContainer "+(/*isDesktop*/e[13]?"Desktop":"")),b(t,"class","PopupOverlay")},m(e,n){c(e,t,n),l(t,i),s.m(i,null)},p(e,t){o===(o=r(e))&&s?s.p(e,t):(s.d(1),s=o(e),s&&(s.c(),s.m(i,null)))},d(e){e&&u(t),s.d()}}}
|
|
682
|
-
// (
|
|
683
|
-
function Qn(e){let t,i,r,o,s,a,h,g,v,L,T,_,
|
|
684
|
-
// (
|
|
682
|
+
// (430:6) {:else}
|
|
683
|
+
function Qn(e){let t,i,r,o,s,a,h,g,v,L,T,x,_,A,$,S,P,B,H,I,D,C,O,N,R=/*$_*/e[12]("gamingLimits.popupTitle")+"",M=/*$_*/e[12]("gamingLimits.popupSuccess")+"";return{c(){t=p("div"),i=p("span"),r=d(R),o=f(),s=p("button"),s.textContent="X",a=f(),h=p("div"),g=p("div"),v=m("svg"),L=m("defs"),T=m("style"),x=d(".fil0 {fill:black;fill-rule:nonzero}\n "),_=m("g"),A=m("polygon"),$=f(),S=p("p"),P=d(M),B=f(),H=p("p"),I=d(/*popupContent*/e[11]),D=f(),C=p("button"),C.textContent="OK",b(i,"class","PopupTitle"),b(s,"class","ClosePopup"),b(t,"class","PopupTitleWrapper"),b(T,"type","text/css"),b(A,"class","fil0"),b(A,"points","0,38 10,25 36,47 78,0 90,11 37,69 "),b(v,"xmlns","http://www.w3.org/2000/svg"),b(v,"xmlns:xlink","http://www.w3.org/1999/xlink"),b(v,"xml:space","preserve"),b(v,"version","1.1"),w(v,"shape-rendering","geometricPrecision"),w(v,"text-rendering","geometricPrecision"),w(v,"image-rendering","optimizeQuality"),b(v,"viewBox","0 0 90 69"),b(v,"x","0px"),b(v,"y","0px"),b(v,"fill-rule","evenodd"),b(v,"clip-rule","evenodd"),b(g,"class","ResultIconWrapper"),b(H,"class","DescriptionParagraph"),b(h,"class","DescriptionWrapper"),b(C,"class","ConfirmButton")},m(n,u){c(n,t,u),l(t,i),l(i,r),l(t,o),l(t,s),c(n,a,u),c(n,h,u),l(h,g),l(g,v),l(v,L),l(L,T),l(T,x),l(v,_),l(_,A),l(g,$),l(g,S),l(S,P),l(h,B),l(h,H),l(H,I),c(n,D,u),c(n,C,u),O||(N=[y(s,"click",/*closePopup*/e[19]),y(C,"click",/*closePopup*/e[19])],O=!0)},p(e,t){/*$_*/4096&t[0]&&R!==(R=/*$_*/e[12]("gamingLimits.popupTitle")+"")&&E(r,R),/*$_*/4096&t[0]&&M!==(M=/*$_*/e[12]("gamingLimits.popupSuccess")+"")&&E(P,M),/*popupContent*/2048&t[0]&&E(I,/*popupContent*/e[11])},d(e){e&&u(t),e&&u(a),e&&u(h),e&&u(D),e&&u(C),O=!1,n(N)}}}
|
|
684
|
+
// (428:6) {#if !popupReady}
|
|
685
685
|
function er(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){c(e,i,t)},p:e,d(e){e&&u(i)}}}
|
|
686
|
-
// (
|
|
687
|
-
function tr(e){let t,i,r,o,s,a,m,g,v,w,_,
|
|
688
|
-
/*button_binding*/e[33]($),P||(B=[y(
|
|
686
|
+
// (459:2) {:else}
|
|
687
|
+
function tr(e){let t,i,r,o,s,a,m,g,v,w,x,_,A,$,S,P,B,H=/*multiplePeriods*/e[6]?`${/*$_*/e[12]("gamingLimits.amount")}`:`${/*$_*/e[12]("gamingLimits.new")} ${/*$_*/e[12](`gamingLimits.${/*selectedPeriod*/e[2]}`)} ${/*$_*/e[12]("gamingLimits.limit")}`,I=/*$_*/e[12]("gamingLimits.setLimit")+"",D=/*availableLimits*/e[14],C=[];for(let t=0;t<D.length;t+=1)C[t]=hr(Zn(e,D,t));let O=/*multipleLimits*/e[5]&&pr(e),N=/*multiplePeriods*/e[6]&&dr(e);return{c(){t=p("div"),i=p("div"),r=p("div");for(let e=0;e<C.length;e+=1)C[e].c();o=f(),s=p("form"),O&&O.c(),a=f(),N&&N.c(),m=f(),g=p("label"),v=p("span"),w=d(H),x=f(),_=p("input"),A=f(),$=p("button"),S=d(I),b(r,"class","LimitsList "+(/*isDesktop*/e[13]?"Desktop":"")),b(v,"class","LimitInputText"),b(_,"type","number"),b(g,"class","LimitAmountInputWrapper"),b($,"class","LimitSubmitButton"),b($,"type","button"),$.disabled=!0,b(s,"class","LimitsInteractionArea "+(/*isDesktop*/e[13]?"Desktop":"")),b(i,"class","LimitsPageContainer"),b(t,"class","player-account-gaming-limits-page-2-gm16")},m(n,u){c(n,t,u),l(t,i),l(i,r);for(let e=0;e<C.length;e+=1)C[e].m(r,null);l(i,o),l(i,s),O&&O.m(s,null),l(s,a),N&&N.m(s,null),l(s,m),l(s,g),l(g,v),l(v,w),l(g,x),l(g,_),T(_,/*inputAmount*/e[3]),l(s,A),l(s,$),l($,S),
|
|
688
|
+
/*button_binding*/e[33]($),P||(B=[y(_,"input",/*input_input_handler*/e[32]),y(_,"keyup",/*updateInputValue*/e[17]),y($,"click",/*updateLimitsSwitch*/e[16]),y(s,"submit",/*updateLimitsSwitch*/e[16])],P=!0)},p(e,t){if(/*isDesktop, availableLimits, removeLimit16, $_*/290816&t[0]){let i;for(D=/*availableLimits*/e[14],i=0;i<D.length;i+=1){const n=Zn(e,D,i);C[i]?C[i].p(n,t):(C[i]=hr(n),C[i].c(),C[i].m(r,null))}for(;i<C.length;i+=1)C[i].d(1);C.length=D.length}/*multipleLimits*/e[5]?O?O.p(e,t):(O=pr(e),O.c(),O.m(s,a)):O&&(O.d(1),O=null),/*multiplePeriods*/e[6]?N?N.p(e,t):(N=dr(e),N.c(),N.m(s,m)):N&&(N.d(1),N=null),/*multiplePeriods, $_, selectedPeriod*/4164&t[0]&&H!==(H=/*multiplePeriods*/e[6]?`${/*$_*/e[12]("gamingLimits.amount")}`:`${/*$_*/e[12]("gamingLimits.new")} ${/*$_*/e[12](`gamingLimits.${/*selectedPeriod*/e[2]}`)} ${/*$_*/e[12]("gamingLimits.limit")}`)&&E(w,H),/*inputAmount*/8&t[0]&&L(_.value)!==/*inputAmount*/e[3]&&T(_,/*inputAmount*/e[3]),/*$_*/4096&t[0]&&I!==(I=/*$_*/e[12]("gamingLimits.setLimit")+"")&&E(S,I)},d(i){i&&u(t),h(C,i),O&&O.d(),N&&N.d()
|
|
689
689
|
/*button_binding*/,e[33](null),P=!1,n(B)}}}
|
|
690
|
-
// (
|
|
690
|
+
// (457:22)
|
|
691
691
|
function ir(t){let i;return{c(){i=p("p"),i.textContent="500 Server error"},m(e,t){c(e,i,t)},p:e,d(e){e&&u(i)}}}
|
|
692
|
-
// (
|
|
692
|
+
// (456:22)
|
|
693
693
|
function nr(t){return{c:e,m:e,p:e,d:e}}
|
|
694
|
-
// (
|
|
694
|
+
// (453:2) {#if isLoading && !popupVisible}
|
|
695
695
|
function rr(t){let i;return{c(){i=p("div"),b(i,"class","LoadingIndicator")},m(e,t){c(e,i,t)},p:e,d(e){e&&u(i)}}}
|
|
696
|
-
// (
|
|
696
|
+
// (485:12) {:else}
|
|
697
697
|
function or(e){let t,i,n,r,o=/*$_*/e[12]("gamingLimits.noLimitText")+"";return{c(){t=p("div"),i=p("div"),n=p("div"),r=d(o),b(n,"class","LimitDetailsTextWrapper"),b(i,"class","LimitDetailsWrapper"),b(t,"class","LimitDetails")},m(e,o){c(e,t,o),l(t,i),l(i,n),l(n,r)},p(e,t){/*$_*/4096&t[0]&&o!==(o=/*$_*/e[12]("gamingLimits.noLimitText")+"")&&E(r,o)},d(e){e&&u(t)}}}
|
|
698
|
-
// (
|
|
698
|
+
// (483:46)
|
|
699
699
|
function sr(e){let t,i,n,r,o=/*$_*/e[12]("gamingLimits.lugasPrivacy")+"";return{c(){t=p("div"),i=p("div"),n=p("div"),r=d(o),b(n,"class","LimitDetailsTextWrapper"),b(i,"class","LimitDetailsWrapper"),b(t,"class","LimitDetails")},m(e,o){c(e,t,o),l(t,i),l(i,n),l(n,r)},p(e,t){/*$_*/4096&t[0]&&o!==(o=/*$_*/e[12]("gamingLimits.lugasPrivacy")+"")&&E(r,o)},d(e){e&&u(t)}}}
|
|
700
|
-
// (
|
|
701
|
-
function ar(e){let t,i=/*limit*/e[
|
|
702
|
-
// (
|
|
703
|
-
function lr(e){let t,i,n=`${/*$_*/e[12]("gamingLimits.removedLimitText")} ${/*currentLimit*/e[
|
|
704
|
-
// (
|
|
705
|
-
function cr(e){let t,i,n=`${/*currentLimit*/e[
|
|
706
|
-
// (
|
|
707
|
-
// (
|
|
708
|
-
function ur(e){let t,i,n,r,o,s,a,h=`${/*currentLimit*/e[
|
|
709
|
-
return e[
|
|
710
|
-
return e[29](/*currentLimit*/e[
|
|
711
|
-
// (
|
|
712
|
-
function hr(e){let t,i,n,r,o,s,a=/*$_*/e[12](`gamingLimits.${/*limit*/e[
|
|
713
|
-
return e[
|
|
714
|
-
// (
|
|
715
|
-
function pr(e){let t,i,r,o,s,a,m,g=/*$_*/e[12]("gamingLimits.limitType")+"",v=/*availableLimits*/e[14],L=[];for(let t=0;t<v.length;t+=1)L[t]=mr(Yn(e,v,t));return{c(){t=p("label"),i=p("span"),r=d(g),o=f(),s=p("select");for(let e=0;e<L.length;e+=1)L[e].c();b(i,"class","LimitSelectText"),b(s,"name",""),b(s,"id",""),/*selectedLimit*/void 0===e[1]&&N((()=>/*select_change_handler*/e[30].call(s))),b(t,"class","LimitTypeDropdownWrapper")},m(n,u){c(n,t,u),l(t,i),l(i,r),l(t,o),l(t,s);for(let e=0;e<L.length;e+=1)L[e].m(s,null);
|
|
716
|
-
// (
|
|
717
|
-
function mr(t){let i,n,r,o=/*limit*/t[
|
|
718
|
-
// (
|
|
719
|
-
function dr(e){let t,i,n,r,o,s,a,m=/*$_*/e[12]("gamingLimits.period")+"",g=zn[/*selectedLimit*/e[1]].periods,v=[];for(let t=0;t<g.length;t+=1)v[t]=fr(Kn(e,g,t));return{c(){t=p("label"),i=p("span"),n=d(m),r=f(),o=p("select");for(let e=0;e<v.length;e+=1)v[e].c();b(i,"class","PeriodSelectText"),b(o,"name",""),b(o,"id",""),/*selectedPeriod*/void 0===e[2]&&N((()=>/*select_change_handler_1*/e[31].call(o))),b(t,"class","LimitPeriodDropdownWrapper")},m(u,h){c(u,t,h),l(t,i),l(i,n),l(t,r),l(t,o);for(let e=0;e<v.length;e+=1)v[e].m(o,null);
|
|
720
|
-
// (
|
|
721
|
-
function fr(e){let t,i,n,r,o,s=/*$_*/e[12]("gamingLimits.per")+"",a=/*$_*/e[12](`gamingLimits.${/*period*/e[
|
|
700
|
+
// (467:12) {#if limit.currentLimits.length > 0}
|
|
701
|
+
function ar(e){let t,i=/*limit*/e[57].currentLimits,n=[];for(let t=0;t<i.length;t+=1)n[t]=ur(qn(e,i,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=g()},m(e,i){for(let t=0;t<n.length;t+=1)n[t].m(e,i);c(e,t,i)},p(e,r){if(/*removeLimit16, availableLimits, $_*/282624&r[0]){let o;for(i=/*limit*/e[57].currentLimits,o=0;o<i.length;o+=1){const s=qn(e,i,o);n[o]?n[o].p(s,r):(n[o]=ur(s),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},d(e){h(n,e),e&&u(t)}}}
|
|
702
|
+
// (474:54)
|
|
703
|
+
function lr(e){let t,i,n=`${/*$_*/e[12]("gamingLimits.removedLimitText")} ${/*currentLimit*/e[62].expiryDate}`;return{c(){t=p("div"),i=d(n),b(t,"class","PendingLimit")},m(e,n){c(e,t,n),l(t,i)},p(e,t){/*$_*/4096&t[0]&&n!==(n=`${/*$_*/e[12]("gamingLimits.removedLimitText")} ${/*currentLimit*/e[62].expiryDate}`)&&E(i,n)},d(e){e&&u(t)}}}
|
|
704
|
+
// (472:18) {#if currentLimit.isModified && +currentLimit.updateAmount > 0}
|
|
705
|
+
function cr(e){let t,i,n=`${/*currentLimit*/e[62].updateAmount}${/*currentLimit*/e[62].currency} ${/*currentLimit*/"None"===e[62].period?" ":/*$_*/e[12]("gamingLimits.per")} ${/*$_*/e[12](`gamingLimits.${/*currentLimit*/e[62].period}`)} ${/*$_*/e[12]("gamingLimits.updateText")} ${/*currentLimit*/e[62].expiryDate}`;return{c(){t=p("div"),i=d(n),b(t,"class","PendingLimit")},m(e,n){c(e,t,n),l(t,i)},p(e,t){/*$_*/4096&t[0]&&n!==(n=`${/*currentLimit*/e[62].updateAmount}${/*currentLimit*/e[62].currency} ${/*currentLimit*/"None"===e[62].period?" ":/*$_*/e[12]("gamingLimits.per")} ${/*$_*/e[12](`gamingLimits.${/*currentLimit*/e[62].period}`)} ${/*$_*/e[12]("gamingLimits.updateText")} ${/*currentLimit*/e[62].expiryDate}`)&&E(i,n)},d(e){e&&u(t)}}}
|
|
706
|
+
// (478:16) {#if !currentLimit.isModified}
|
|
707
|
+
// (468:14) {#each limit.currentLimits as currentLimit}
|
|
708
|
+
function ur(e){let t,i,n,r,o,s,a,h=`${/*currentLimit*/e[62].amount}${/*currentLimit*/e[62].currency} ${/*currentLimit*/"None"===e[62].period?" ":/*$_*/e[12]("gamingLimits.per")} ${/*$_*/e[12](`gamingLimits.${/*currentLimit*/e[62].period}`)}`;let m=function(e,t){/*currentLimit*/
|
|
709
|
+
return e[62].isModified&&+/*currentLimit*/e[62].updateAmount>0?cr:/*currentLimit*/e[62].isModified?lr:void 0}(e),g=m&&m(e),v=!/*currentLimit*/e[62].isModified&&function(e){let t,i,n,r,o=/*$_*/e[12]("gamingLimits.removeLimit")+"";function s(){/*click_handler*/
|
|
710
|
+
return e[29](/*currentLimit*/e[62])}return{c(){t=p("button"),i=d(o),b(t,"class","RemoveLimitButton")},m(e,o){c(e,t,o),l(t,i),n||(r=y(t,"click",s),n=!0)},p(t,n){e=t,/*$_*/4096&n[0]&&o!==(o=/*$_*/e[12]("gamingLimits.removeLimit")+"")&&E(i,o)},d(e){e&&u(t),n=!1,r()}}}(e);return{c(){t=p("div"),i=p("div"),n=p("div"),r=d(h),o=f(),g&&g.c(),s=f(),v&&v.c(),a=f(),b(n,"class","CurrentLimit"),b(i,"class","LimitDetailsTextWrapper"),b(t,"class","LimitDetails")},m(e,u){c(e,t,u),l(t,i),l(i,n),l(n,r),l(i,o),g&&g.m(i,null),l(t,s),v&&v.m(t,null),l(t,a)},p(e,t){/*$_*/4096&t[0]&&h!==(h=`${/*currentLimit*/e[62].amount}${/*currentLimit*/e[62].currency} ${/*currentLimit*/"None"===e[62].period?" ":/*$_*/e[12]("gamingLimits.per")} ${/*$_*/e[12](`gamingLimits.${/*currentLimit*/e[62].period}`)}`)&&E(r,h),g&&g.p(e,t),/*currentLimit*/e[62].isModified||v.p(e,t)},d(e){e&&u(t),g&&g.d(),v&&v.d()}}}
|
|
711
|
+
// (464:8) {#each availableLimits as limit}
|
|
712
|
+
function hr(e){let t,i,n,r,o,s,a=/*$_*/e[12](`gamingLimits.${/*limit*/e[57].value}`)+"";let h=function(e,t){/*limit*/
|
|
713
|
+
return e[57].currentLimits.length>0?ar:/*limit*/"lugas"===e[57].value?sr:or}(e),m=h(e);return{c(){t=p("div"),i=p("p"),n=d(a),r=f(),m.c(),o=f(),b(i,"class","LimitTitle"),b(t,"class",s="LimitWrapper "+(/*isDesktop*/e[13]?"Desktop":""))},m(e,s){c(e,t,s),l(t,i),l(i,n),l(t,r),m.m(t,null),l(t,o)},p(e,t){/*$_*/4096&t[0]&&a!==(a=/*$_*/e[12](`gamingLimits.${/*limit*/e[57].value}`)+"")&&E(n,a),m.p(e,t)},d(e){e&&u(t),m.d()}}}
|
|
714
|
+
// (494:8) {#if multipleLimits}
|
|
715
|
+
function pr(e){let t,i,r,o,s,a,m,g=/*$_*/e[12]("gamingLimits.limitType")+"",v=/*availableLimits*/e[14],L=[];for(let t=0;t<v.length;t+=1)L[t]=mr(Yn(e,v,t));return{c(){t=p("label"),i=p("span"),r=d(g),o=f(),s=p("select");for(let e=0;e<L.length;e+=1)L[e].c();b(i,"class","LimitSelectText"),b(s,"name",""),b(s,"id",""),/*selectedLimit*/void 0===e[1]&&N((()=>/*select_change_handler*/e[30].call(s))),b(t,"class","LimitTypeDropdownWrapper")},m(n,u){c(n,t,u),l(t,i),l(i,r),l(t,o),l(t,s);for(let e=0;e<L.length;e+=1)L[e].m(s,null);x(s,/*selectedLimit*/e[1]),a||(m=[y(s,"change",/*select_change_handler*/e[30]),y(s,"change",/*updateLimitSelection*/e[15])],a=!0)},p(e,t){if(/*$_*/4096&t[0]&&g!==(g=/*$_*/e[12]("gamingLimits.limitType")+"")&&E(r,g),/*availableLimits*/16384&t[0]){let i;for(v=/*availableLimits*/e[14],i=0;i<v.length;i+=1){const n=Yn(e,v,i);L[i]?L[i].p(n,t):(L[i]=mr(n),L[i].c(),L[i].m(s,null))}for(;i<L.length;i+=1)L[i].d(1);L.length=v.length}/*selectedLimit, availableLimits*/16386&t[0]&&x(s,/*selectedLimit*/e[1])},d(e){e&&u(t),h(L,e),a=!1,n(m)}}}
|
|
716
|
+
// (497:12) {#each availableLimits as limit}
|
|
717
|
+
function mr(t){let i,n,r,o=/*limit*/t[57].title+"";return{c(){i=p("option"),n=d(o),i.__value=r=/*limit*/t[57].value,i.value=i.__value},m(e,t){c(e,i,t),l(i,n)},p:e,d(e){e&&u(i)}}}
|
|
718
|
+
// (503:8) {#if multiplePeriods}
|
|
719
|
+
function dr(e){let t,i,n,r,o,s,a,m=/*$_*/e[12]("gamingLimits.period")+"",g=zn[/*selectedLimit*/e[1]].periods,v=[];for(let t=0;t<g.length;t+=1)v[t]=fr(Kn(e,g,t));return{c(){t=p("label"),i=p("span"),n=d(m),r=f(),o=p("select");for(let e=0;e<v.length;e+=1)v[e].c();b(i,"class","PeriodSelectText"),b(o,"name",""),b(o,"id",""),/*selectedPeriod*/void 0===e[2]&&N((()=>/*select_change_handler_1*/e[31].call(o))),b(t,"class","LimitPeriodDropdownWrapper")},m(u,h){c(u,t,h),l(t,i),l(i,n),l(t,r),l(t,o);for(let e=0;e<v.length;e+=1)v[e].m(o,null);x(o,/*selectedPeriod*/e[2]),s||(a=y(o,"change",/*select_change_handler_1*/e[31]),s=!0)},p(e,t){if(/*$_*/4096&t[0]&&m!==(m=/*$_*/e[12]("gamingLimits.period")+"")&&E(n,m),/*selectedLimit, $_*/4098&t[0]){let i;for(g=zn[/*selectedLimit*/e[1]].periods,i=0;i<g.length;i+=1){const n=Kn(e,g,i);v[i]?v[i].p(n,t):(v[i]=fr(n),v[i].c(),v[i].m(o,null))}for(;i<v.length;i+=1)v[i].d(1);v.length=g.length}/*selectedPeriod, selectedLimit*/6&t[0]&&x(o,/*selectedPeriod*/e[2])},d(e){e&&u(t),h(v,e),s=!1,a()}}}
|
|
720
|
+
// (506:12) {#each limitsConfig[selectedLimit].periods as period}
|
|
721
|
+
function fr(e){let t,i,n,r,o,s=/*$_*/e[12]("gamingLimits.per")+"",a=/*$_*/e[12](`gamingLimits.${/*period*/e[54]}`)+"";return{c(){t=p("option"),i=d(s),n=f(),r=d(a),t.__value=o=/*period*/e[54],t.value=t.__value,t.selected=!0},m(e,o){c(e,t,o),l(t,i),l(t,n),l(t,r)},p(e,n){/*$_*/4096&n[0]&&s!==(s=/*$_*/e[12]("gamingLimits.per")+"")&&E(i,s),/*$_, selectedLimit*/4098&n[0]&&a!==(a=/*$_*/e[12](`gamingLimits.${/*period*/e[54]}`)+"")&&E(r,a),/*selectedLimit, availableLimits*/16386&n[0]&&o!==(o=/*period*/e[54])&&(t.__value=o,t.value=t.__value)},d(e){e&&u(t)}}}function gr(t){let i,n,r=/*popupVisible*/t[9]&&Jn(t);function o(e,t){/*isLoading*/
|
|
722
722
|
return e[7]&&!/*popupVisible*/e[9]?rr:/*isLoading*/e[7]?nr:/*hasErrors*/e[8]?ir:tr}let s=o(t),a=s(t);return{c(){i=p("div"),r&&r.c(),n=f(),a.c(),this.c=e},m(e,o){c(e,i,o),r&&r.m(i,null),l(i,n),a.m(i,null),
|
|
723
723
|
/*div_binding*/t[34](i)},p(e,t){/*popupVisible*/e[9]?r?r.p(e,t):(r=Jn(e),r.c(),r.m(i,n)):r&&(r.d(1),r=null),s===(s=o(e))&&a?a.p(e,t):(a.d(1),a=s(e),a&&(a.c(),a.m(i,null)))},i:e,o:e,d(e){e&&u(i),r&&r.d(),a.d(),
|
|
724
|
-
/*div_binding*/t[34](null)}}}function yr(e,t,i){let n;a(e,pi,(e=>i(12,n=e)));let r,o,s,l,{lang:c="en"}=t,{currency:u=""}=t,{limits:h=""}=t,{session:p=""}=t,{userid:m=""}=t,{endpoint:d=""}=t,{apiversion:f=""}=t,{clientstyling:g=""}=t,{clientstylingurl:y=""}=t,b=window.navigator.userAgent,v=!Tn(b),E=[],T="",w="",
|
|
724
|
+
/*div_binding*/t[34](null)}}}function yr(e,t,i){let n;a(e,pi,(e=>i(12,n=e)));let r,o,s,l,{lang:c="en"}=t,{currency:u=""}=t,{limits:h=""}=t,{session:p=""}=t,{userid:m=""}=t,{endpoint:d=""}=t,{apiversion:f=""}=t,{clientstyling:g=""}=t,{clientstylingurl:y=""}=t,b=window.navigator.userAgent,v=!Tn(b),E=[],T="",w="",x=!1,A=!1,$=!0,S=!1,P=!1,B=!1,I="";
|
|
725
725
|
// Placed this here instead of translation file, because they are language agnostic
|
|
726
726
|
const D={EUR:"€",RON:" lei",USD:"$"};Object.keys(Xn).forEach((e=>{!function(e,t){Ut(e,t)}(e,Xn[e])}));
|
|
727
727
|
// Determine how many limits and what types are to be displayed
|
|
728
|
-
const C=()=>{let e=new URL(`v1/player/${m}/limits/monetary`,d),t={method:"GET",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,t).then((e=>e.json())).then((e=>{l=e,P&&M(),
|
|
728
|
+
const C=()=>{let e=new URL(`v1/player/${m}/limits/monetary`,d),t={method:"GET",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,t).then((e=>{if(e.status>=300)throw i(7,$=!1),i(8,S=!0),new Error("There was an error fetching the limits");return e.json()})).then((e=>{l=e,P&&M(),
|
|
729
729
|
// wrap these in a switch
|
|
730
|
-
"gmcore"===f&&O(l),"gm16"===f&&N(l),i(
|
|
730
|
+
"gmcore"===f&&O(l),"gm16"===f&&N(l),i(3,o=null)})).catch((e=>{console.error("Error LimitsWidget: ",e),i(8,S=!0)})).finally((()=>{i(7,$=!1)}))},O=e=>{E.forEach((t=>{var i;t.currentLimits=[],
|
|
731
731
|
// this is not n^2, despite the nesting loop. It's max totalLimitType * totalPeriodType, so 4 * 3 = 12 operations tops
|
|
732
732
|
null===(i=e[zn[t.value].callValue])||void 0===i||i.forEach(((i,n)=>{var r;const o=e[zn[t.value].callValue][n];t.currentLimits.push({}),
|
|
733
733
|
// format the limit data
|
|
734
734
|
t.currentLimits[n].limitType=t.value,t.currentLimits[n].amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.amount),t.currentLimits[n].currency=null!==(r=D[o.currency])&&void 0!==r?r:o.currency,t.currentLimits[n].period=o.period,t.currentLimits[n].updateAmount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(o.updateAmount),t.currentLimits[n].isModified=o.isModified,t.currentLimits[n].expiryDate=`${new Date(o.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`})),t.currentLimits=R(t.currentLimits)}))},N=e=>{E.forEach((t=>{var i;t.currentLimits=[];
|
|
735
735
|
// this is not n^2, despite the nesting loop. It's max totalLimitType * totalPeriodType, so 4 * 3 = 12 operations tops
|
|
736
|
-
for(const n of e.limits){if(n.type!==t.callValue16)continue;const e=n;t.currentLimits.push({limitType:t.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount),currency:null!==(i=D[e.currency])&&void 0!==i?i:e.currency,isModified:e.schedules.length>0,period:e.period,updateAmount:e.schedules.length>0?Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.schedules[0].updateAmount):"",expiryDate:e.schedules.length>0?`${new Date(e.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"",id:e.id})}t.currentLimits=R(t.currentLimits)}))},R=e=>{const t={Daily:0,Weekly:1,Monthly:2};return e.sort(((e,i)=>t[e.period]-t[i.period])),e},M=()=>{switch(f){case"gmcore":(()=>{if(l){const e=l[zn[T].callValue].filter((e=>e.period===w))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount);let r=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${T}`).toLowerCase()).replace("{updatedAmount}",t).replace("{currency}",D[e.currency]||e.currency).replace("{per}","None"===e.period?" ":n("gamingLimits.per")).replace("{selectedPeriod}",n(`gamingLimits.${w}`).toLowerCase());i(11,I=e.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(e.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)}i(10,B=!0)})();break;case"gm16":"lugas"===T?(i(11,I="Your LUGAS update request has been received."),i(10,B=!0)):(()=>{if(l){const e=l.limits.filter((e=>e.type===zn[T].callValue16&&e.period===w))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount),r=e.schedules.length>0?`${new Date(e.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"";let o=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${T}`).toLowerCase()).replace("{updatedAmount}",t).replace("{currency}",D[e.currency]||e.currency).replace("{per}","None"===e.period?" ":n("gamingLimits.per")).replace("{selectedPeriod}",n(`gamingLimits.${w}`).toLowerCase());i(11,I=e.schedules.length>0?`${n("gamingLimits.popupPendingUpdate")} ${r}`:o)}i(10,B=!0)})();break;default:throw new Error(`Invalid apiversion attribute: ${f}`)}},U=e=>{const t=new URL(`/v1/player/${m}/limits/monetary/${e.id}`,d);i(9,P=!0),i(7,$=!0);let n={method:"DELETE",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,n).then((e=>e.json())).then((e=>
|
|
736
|
+
for(const n of e.limits){if(n.type!==t.callValue16)continue;const e=n;t.currentLimits.push({limitType:t.value,amount:Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount),currency:null!==(i=D[e.currency])&&void 0!==i?i:e.currency,isModified:e.schedules.length>0,period:e.period,updateAmount:e.schedules.length>0?Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.schedules[0].updateAmount):"",expiryDate:e.schedules.length>0?`${new Date(e.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"",id:e.id})}t.currentLimits=R(t.currentLimits)}))},R=e=>{const t={Daily:0,Weekly:1,Monthly:2};return e.sort(((e,i)=>t[e.period]-t[i.period])),e},M=()=>{switch(f){case"gmcore":(()=>{if(l){const e=l[zn[T].callValue].filter((e=>e.period===w))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount);let r=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${T}`).toLowerCase()).replace("{updatedAmount}",t).replace("{currency}",D[e.currency]||e.currency).replace("{per}","None"===e.period?" ":n("gamingLimits.per")).replace("{selectedPeriod}",n(`gamingLimits.${w}`).toLowerCase());i(11,I=e.isModified?`${n("gamingLimits.popupPendingUpdate")} ${new Date(e.expiryDate).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:r)}i(10,B=!0)})();break;case"gm16":"lugas"===T?(i(11,I="Your LUGAS update request has been received."),i(10,B=!0)):(()=>{if(l){const e=l.limits.filter((e=>e.type===zn[T].callValue16&&e.period===w))[0],t=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.amount),r=e.schedules.length>0?`${new Date(e.schedules[0].applyAt).toLocaleDateString("en-de",{hour:"numeric",minute:"numeric"}).replaceAll("/",".")} (GMT)`:"";let o=n("gamingLimits.popupImmediateUpdate").replace("{selectedLimit}",n(`gamingLimits.${T}`).toLowerCase()).replace("{updatedAmount}",t).replace("{currency}",D[e.currency]||e.currency).replace("{per}","None"===e.period?" ":n("gamingLimits.per")).replace("{selectedPeriod}",n(`gamingLimits.${w}`).toLowerCase());i(11,I=e.schedules.length>0?`${n("gamingLimits.popupPendingUpdate")} ${r}`:o)}i(10,B=!0)})();break;default:throw new Error(`Invalid apiversion attribute: ${f}`)}},U=e=>{const t=new URL(`/v1/player/${m}/limits/monetary/${e.id}`,d);i(9,P=!0),i(7,$=!0);let n={method:"DELETE",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"}};fetch(t.href,n).then((e=>e.json())).then((e=>C())).catch((e=>{console.log(e),i(8,S=!0)}))},k=()=>{var e;e=c,ei.set(e)};return e.$$set=e=>{"lang"in e&&i(20,c=e.lang),"currency"in e&&i(21,u=e.currency),"limits"in e&&i(22,h=e.limits),"session"in e&&i(23,p=e.session),"userid"in e&&i(24,m=e.userid),"endpoint"in e&&i(25,d=e.endpoint),"apiversion"in e&&i(26,f=e.apiversion),"clientstyling"in e&&i(27,g=e.clientstyling),"clientstylingurl"in e&&i(28,y=e.clientstylingurl)},e.$$.update=()=>{/*limits*/4194304&e.$$.dirty[0]&&h&&(h.split(" ").forEach((e=>{zn[e]?E.push(zn[e]):console.error(`Unknown limit: ${e}`)})),
|
|
737
737
|
//set default selected limit
|
|
738
|
-
i(1,T=E[0].value),i(2,w=zn[T].periods[0]),i(5,
|
|
738
|
+
i(1,T=E[0].value),i(2,w=zn[T].periods[0]),i(5,x=E.length>1),i(6,A=zn[T].periods.length>1)),/*lang*/1048576&e.$$.dirty[0]&&c&&k(),/*userid, session, endpoint, apiversion*/125829120&e.$$.dirty[0]&&m&&p&&d&&f&&C(),/*clientstylingurl*/268435456&e.$$.dirty[0]&&y&&(()=>{let e=new URL(y),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,r&&setTimeout((()=>{r.appendChild(t)}),1)}))})(),/*clientstyling*/134217728&e.$$.dirty[0]&&g&&(()=>{let e=document.createElement("style");e.innerHTML=g,r.appendChild(e)})()},[r,T,w,o,s,x,A,$,S,P,B,I,n,v,E,()=>{i(2,w=zn[T].periods[0]),// select the first period by default until the user selects a different period
|
|
739
739
|
i(6,A=zn[T].periods.length>1)},()=>{switch(f){case"gmcore":(()=>{if(!(o>0))return;i(9,P=!0),i(7,$=!0);let e=new URL(`v2/player/${m}/limits`,d);const t={};t[zn[T].callValue]=[{period:"None"===zn[T].periods[0]?null:w,amount:o,currency:u}];let n={method:"PUT",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>e.json())).then((e=>{C()})).catch((e=>{console.log(e),i(8,S=!0)}))})();break;case"gm16":"lugas"===T?(()=>{if(!(o>0))return;i(9,P=!0),i(7,$=!0);const e=new URL(`v1/player/${m}/limit/lugas`,d),t={amount:o};let n={method:"PUT",headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(t)};fetch(e.href,n).then((e=>e.json())).then((e=>{C()})).catch((e=>{console.log(e),i(8,S=!0)}))})():(()=>{if(!(o>0))return;i(9,P=!0),i(7,$=!0);
|
|
740
740
|
// First check if the limit already exists by looking at currentLimits
|
|
741
741
|
const e=E.filter((e=>e.value===T))[0].currentLimits.filter((e=>e.period===w))[0],t=new URL(`v1/player/${m}/limits/monetary/${e?e.id:""}`,d),n=e?"PUT":"POST",r=e?{amount:o,skipCoolOff:!1}:{amount:o,currency:u,
|
|
742
742
|
// certain limits have a "None" period which corresponds to one day from a functionality PoV, but is differentiated in the API from "Daily" and need to be sent as null when POSTed
|
|
743
|
-
period:"None"===zn[T].periods[0]?null:w,type:zn[T].callValue16,products:["All"],walletTypes:["All"]};let s={method:n,headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,s).then((e=>e.json())).then((e=>{C()})).catch((e=>{console.log(e),i(8,S=!0)}))})();break;default:throw Error(`Invalid apiversion attribute: ${f}`)}},()=>{const e=o-Math.floor(o)==0;o>0&&e?s.removeAttribute("disabled"):s.setAttribute("disabled","true")},U,()=>{i(10,B=i(9,P=!1))},c,u,h,p,m,d,f,g,y,e=>U(e),function(){T=
|
|
744
|
-
/*
|
|
745
|
-
// (
|
|
746
|
-
function Lr(e){let t,i,n,r,o,s,a,g,v,L,T,w,
|
|
747
|
-
// (
|
|
743
|
+
period:"None"===zn[T].periods[0]?null:w,type:zn[T].callValue16,products:["All"],walletTypes:["All"]};let s={method:n,headers:{"X-SessionID":p,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(r)};fetch(t.href,s).then((e=>e.json())).then((e=>{C()})).catch((e=>{console.log(e),i(8,S=!0)}))})();break;default:throw Error(`Invalid apiversion attribute: ${f}`)}},()=>{const e=o-Math.floor(o)==0;o>0&&e?s.removeAttribute("disabled"):s.setAttribute("disabled","true")},U,()=>{i(10,B=i(9,P=!1))},c,u,h,p,m,d,f,g,y,e=>U(e),function(){T=_(this),i(1,T),i(14,E)},function(){w=_(this),i(2,w),i(1,T)},function(){o=L(this.value),i(3,o)},function(e){H[e?"unshift":"push"]((()=>{s=e,i(4,s)}))},function(e){H[e?"unshift":"push"]((()=>{r=e,i(0,r)}))}]}!customElements.get("player-account-gaming-limits-page-2-gm16")&&customElements.define("player-account-gaming-limits-page-2-gm16",class extends W{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size:16px}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}select,input{width:100%;height:38px;padding:8px 4px;padding-right:8px;margin:12px 0;border-radius:2px;border:1px solid #999}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.player-account-gaming-limits-page-2-gm16{background:#E8E9EB;color:var(--emfe-w-color-white, #333)}.LimitsInteractionArea{display:flex;flex-direction:column;margin-top:12px}.LimitsInteractionArea.Desktop{width:63%;padding:0 12px;margin:0 auto}.LimitsList.Desktop{display:flex;flex-wrap:wrap;justify-content:space-between;width:63%;margin:0 auto}.LimitWrapper{background:var(--emfe-w-color-white, #fff);font-size:16px;border:1px solid #ccc;padding:8px 12px;border-radius:4px}.LimitWrapper:not(:first-child){margin-top:12px}.LimitWrapper.Desktop{width:45%;margin:12px}.LimitSubmitButton,.ConfirmButton{background:#7ac317;color:#fff;border:0;border-radius:2px;padding:12px;cursor:pointer}.LimitSubmitButton:disabled,.ConfirmButton:disabled{background:rgba(116, 180, 27, 0.322);cursor:not-allowed}.LimitDetails{padding:12px 0 12px 4px}.LimitDetails:not(:last-child){border-bottom:#ccc 1px solid}.LimitDetailsTextWrapper{font-size:16px;color:#666}.PendingLimit{color:#999}.LimitTitle{font-size:0.9rem}.PopupOverlay{position:absolute;top:0;left:0;background:#000;height:100vh;width:100vw;display:flex;justify-content:center;align-items:center}.PopupContainer{background:#fff;font-size:1rem;color:#333;width:80vw;height:350px;padding:12px;border-radius:4px;display:flex;flex-direction:column;justify-content:space-between}.PopupContainer.Desktop{width:30vw}.PopupTitleWrapper{display:flex;justify-content:space-between;font-size:16px}.PopupTitleWrapper button{background:#fff;font-size:1rem;border:0;cursor:pointer}.DescriptionParagraph{text-align:center;font-size:16px;padding:12px}.ResultIconWrapper{display:flex;flex-direction:column;align-items:center}.ResultIconWrapper svg{height:auto;width:60px;margin:12px}.ResultIconWrapper p{color:#666}.LimitDetails{display:flex;justify-content:space-between;align-items:center}.RemoveLimitButton{height:28px;font-size:0.7rem;background:#fff;color:#666;border:1px solid #ccc;border-radius:4px;padding:0 4px;cursor:pointer}.RemoveLimitButton:hover{background:#f3f3fc}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.LoadingIndicator{width:100px;height:100px;margin:110px auto 0;border:solid 10px #7ac317;border-radius:50%;border-right-color:transparent;border-bottom-color:transparent;-webkit-transition:all 0.5s ease-in;-webkit-animation-name:rotate;-webkit-animation-duration:1.0s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;transition:all 0.5s ease-in;animation-name:rotate;animation-duration:1.0s;animation-iteration-count:infinite;animation-timing-function:linear}</style>",F(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},yr,gr,o,{lang:20,currency:21,limits:22,session:23,userid:24,endpoint:25,apiversion:26,clientstyling:27,clientstylingurl:28},null,[-1,-1,-1]),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["lang","currency","limits","session","userid","endpoint","apiversion","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[20]}set lang(e){this.$$set({lang:e}),U()}get currency(){return this.$$.ctx[21]}set currency(e){this.$$set({currency:e}),U()}get limits(){return this.$$.ctx[22]}set limits(e){this.$$set({limits:e}),U()}get session(){return this.$$.ctx[23]}set session(e){this.$$set({session:e}),U()}get userid(){return this.$$.ctx[24]}set userid(e){this.$$set({userid:e}),U()}get endpoint(){return this.$$.ctx[25]}set endpoint(e){this.$$set({endpoint:e}),U()}get apiversion(){return this.$$.ctx[26]}set apiversion(e){this.$$set({apiversion:e}),U()}get clientstyling(){return this.$$.ctx[27]}set clientstyling(e){this.$$set({clientstyling:e}),U()}get clientstylingurl(){return this.$$.ctx[28]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),U()}});const br={en:{history:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",loading:"Loading limits history...",error:"500 - Server Error",limitRemoved:"Limit removed"}},zh:{history:{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制"}},fr:{history:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée"}},ro:{history:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata"}}};
|
|
744
|
+
/* ../player-account-gaming-limits-history-2/src/PlayerAccountGamingLimitsHistory_2.svelte generated by Svelte v3.48.0 */function vr(e,t,i){const n=e.slice();return n[24]=t[i],n}
|
|
745
|
+
// (118:0) {:else}
|
|
746
|
+
function Lr(e){let t,i,n,r,o,s,a,g,v,L,T,w,x=/*$_*/e[7]("history.expandLimits")+"",_=/*historyArray*/e[4],$=[];for(let t=0;t<_.length;t+=1)$[t]=_r(vr(e,_,t));return{c(){t=p("div"),i=p("div"),n=p("button"),r=d(x),o=f(),s=m("svg"),a=m("path"),g=m("path"),v=f(),L=p("div");for(let e=0;e<$.length;e+=1)$[e].c();b(a,"d","M10.5 15l7.5 7.5 7.5-7.5z"),b(g,"d","M0 0h36v36h-36z"),b(g,"fill","none"),b(s,"class","ExpandArrow"),b(s,"xmlns","http://www.w3.org/2000/svg"),b(s,"width","36"),b(s,"height","36"),b(s,"viewBox","0 0 36 36"),b(s,"fill","#999"),A(s,"extended",/*extended*/e[6]),b(n,"class","ExpandButton"),b(L,"class","HistoryDisplayArea"),A(L,"hidden",/*hidden*/e[5]),b(i,"class","HistoryWrapper "+(/*isDesktop*/e[8]?"Desktop":"")),b(t,"class","player-account-gaming-limits-history-2")},m(u,h){c(u,t,h),l(t,i),l(i,n),l(n,r),l(n,o),l(n,s),l(s,a),l(s,g),l(i,v),l(i,L);for(let e=0;e<$.length;e+=1)$[e].m(L,null);T||(w=y(n,"click",/*toggleHistoryDisplayArea*/e[9]),T=!0)},p(e,t){if(/*$_*/128&t&&x!==(x=/*$_*/e[7]("history.expandLimits")+"")&&E(r,x),/*extended*/64&t&&A(s,"extended",/*extended*/e[6]),/*historyArray, $_*/144&t){let i;for(_=/*historyArray*/e[4],i=0;i<_.length;i+=1){const n=vr(e,_,i);$[i]?$[i].p(n,t):($[i]=_r(n),$[i].c(),$[i].m(L,null))}for(;i<$.length;i+=1)$[i].d(1);$.length=_.length}/*hidden*/32&t&&A(L,"hidden",/*hidden*/e[5])},d(e){e&&u(t),h($,e),T=!1,w()}}}
|
|
747
|
+
// (115:20)
|
|
748
748
|
function Er(t){return{c:e,m:e,p:e,d:e}}
|
|
749
|
-
// (
|
|
749
|
+
// (113:0) {#if hasErrors}
|
|
750
750
|
function Tr(e){let t,i,n=/*lang*/(e[0]?/*$_*/e[7]("history.error"):"500 Server Error")+"";return{c(){t=p("p"),i=d(n)},m(e,n){c(e,t,n),l(t,i)},p(e,t){/*lang, $_*/129&t&&n!==(n=/*lang*/(e[0]?/*$_*/e[7]("history.error"):"500 Server Error")+"")&&E(i,n)},d(e){e&&u(t)}}}
|
|
751
|
-
// (
|
|
752
|
-
function wr(e){let t,i,n,r,o,s,a,h,m,g,y,v,L=/*history*/e[24].type+"",T=/*history*/e[24].amount+"",w=/*history*/e[24].currency+"",
|
|
753
|
-
// (
|
|
754
|
-
function
|
|
755
|
-
// (
|
|
756
|
-
function
|
|
757
|
-
return e[24].removed?
|
|
751
|
+
// (130:8) {:else}
|
|
752
|
+
function wr(e){let t,i,n,r,o,s,a,h,m,g,y,v,L=/*history*/e[24].type+"",T=/*history*/e[24].amount+"",w=/*history*/e[24].currency+"",x=/*history*/e[24].period+"",_=/*history*/e[24].date+"";return{c(){t=p("div"),i=p("span"),n=p("span"),r=d(L),o=p("span"),s=d(T),a=f(),h=d(w),m=f(),g=d(x),y=p("span"),v=d(_),b(n,"class","LimitType"),b(o,"class","LimitAmountPeriod"),b(i,"class","GeneralLimitInformation"),b(y,"class","DateLimitInformation"),b(t,"class","HistoryRow")},m(e,u){c(e,t,u),l(t,i),l(i,n),l(n,r),l(i,o),l(o,s),l(o,a),l(o,h),l(o,m),l(o,g),l(t,y),l(y,v)},p(e,t){/*historyArray*/16&t&&L!==(L=/*history*/e[24].type+"")&&E(r,L),/*historyArray*/16&t&&T!==(T=/*history*/e[24].amount+"")&&E(s,T),/*historyArray*/16&t&&w!==(w=/*history*/e[24].currency+"")&&E(h,w),/*historyArray*/16&t&&x!==(x=/*history*/e[24].period+"")&&E(g,x),/*historyArray*/16&t&&_!==(_=/*history*/e[24].date+"")&&E(v,_)},d(e){e&&u(t)}}}
|
|
753
|
+
// (128:8) {#if history.removed}
|
|
754
|
+
function xr(e){let t,i,n,r,o,s,a,h,m=/*history*/e[24].type+"",f=/*$_*/e[7]("history.limitRemoved")+"",g=/*history*/e[24].date+"";return{c(){t=p("div"),i=p("span"),n=p("span"),r=d(m),o=p("span"),s=d(f),a=p("span"),h=d(g),b(n,"class","LimitType"),b(o,"class","LimitAmountPeriod"),b(i,"class","GeneralLimitInformation"),b(a,"class","DateLimitInformation"),b(t,"class","HistoryRow")},m(e,u){c(e,t,u),l(t,i),l(i,n),l(n,r),l(i,o),l(o,s),l(t,a),l(a,h)},p(e,t){/*historyArray*/16&t&&m!==(m=/*history*/e[24].type+"")&&E(r,m),/*$_*/128&t&&f!==(f=/*$_*/e[7]("history.limitRemoved")+"")&&E(s,f),/*historyArray*/16&t&&g!==(g=/*history*/e[24].date+"")&&E(h,g)},d(e){e&&u(t)}}}
|
|
755
|
+
// (127:6) {#each historyArray as history}
|
|
756
|
+
function _r(e){let t;function i(e,t){/*history*/
|
|
757
|
+
return e[24].removed?xr:wr}let n=i(e),r=n(e);return{c(){r.c(),t=g()},m(e,i){r.m(e,i),c(e,t,i)},p(e,o){n===(n=i(e))&&r?r.p(e,o):(r.d(1),r=n(e),r&&(r.c(),r.m(t.parentNode,t)))},d(e){r.d(e),e&&u(t)}}}function Ar(t){let i;function n(e,t){/*hasErrors*/
|
|
758
758
|
return e[2]?Tr:/*isLoading*/e[3]?Er:Lr}let r=n(t),o=r(t);return{c(){i=p("div"),o.c(),this.c=e},m(e,n){c(e,i,n),o.m(i,null),
|
|
759
759
|
/*div_binding*/t[15](i)},p(e,[t]){r===(r=n(e))&&o?o.p(e,t):(o.d(1),o=r(e),o&&(o.c(),o.m(i,null)))},i:e,o:e,d(e){e&&u(i),o.d(),
|
|
760
760
|
/*div_binding*/t[15](null)}}}function $r(e,t,i){let n;a(e,pi,(e=>i(7,n=e)));let r,o=window.navigator.userAgent,s=!Tn(o),{lang:l=""}=t,{userid:c=""}=t,{session:u=""}=t,{endpoint:h=""}=t,{clientstyling:p=""}=t,{clientstylingurl:m=""}=t,d=!1,f=!0,g=[],y=!0,b=!1,v={EUR:"€",RON:"lei"};Object.keys(br).forEach((e=>{!function(e,t){Ut(e,t)}(e,br[e])}));const L=e=>{const t=!!br[l];return e.map((e=>{let i={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return i.amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e.limitAmount),i.currency=t?v[e.limitCurrencyCode]:e.limitCurrencyCode,i.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(e.limitDate)),i.period=n(`history.${e.limitPeriod.toLowerCase()}`),i.type=n(`history.${e.limitType.split(" ")[0].toLowerCase()}`),i.removed=-1===e.limitAmount,i}))},E=()=>{var e;e=l,ei.set(e)};return e.$$set=e=>{"lang"in e&&i(0,l=e.lang),"userid"in e&&i(10,c=e.userid),"session"in e&&i(11,u=e.session),"endpoint"in e&&i(12,h=e.endpoint),"clientstyling"in e&&i(13,p=e.clientstyling),"clientstylingurl"in e&&i(14,m=e.clientstylingurl)},e.$$.update=()=>{/*endpoint, userid, session*/7168&e.$$.dirty&&h&&c&&u&&(()=>{let e=new URL(`v2/player/${c}/transactions/limit`,h);
|
|
761
761
|
// hardcoded values because there's no date filtering requirement for the widget. However, the API requires these values
|
|
762
|
-
e.searchParams.append("startDate","1970"),e.searchParams.append("endDate","2099");let t={method:"GET",headers:{"X-SessionID":u}};fetch(e.href,t).then((e=>e.json())).then((e=>{i(4,g=L(e)),i(3,f=!1)}),(e=>{console.error("There was an error",e),i(2,d=!0)}))})(),/*lang*/1&e.$$.dirty&&l&&E(),/*clientstylingurl*/16384&e.$$.dirty&&m&&(()=>{let e=new URL(m),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,r&&(setTimeout((()=>{r.appendChild(t)}),1),setTimeout((()=>{}),500))}))})(),/*clientstyling*/8192&e.$$.dirty&&p&&(()=>{let e=document.createElement("style");e.innerHTML=p,r.appendChild(e)})()},[l,r,d,f,g,y,b,n,s,()=>{i(5,y=!y),i(6,b=!b)},c,u,h,p,m,function(e){H[e?"unshift":"push"]((()=>{r=e,i(1,r)}))}]}
|
|
763
|
-
/* src
|
|
764
|
-
function Sr(e,t,i){const n=e.slice();return n[
|
|
765
|
-
// (
|
|
766
|
-
function Br(e){let t,i,n,r,o=/*limitTabs*/e[10].length>1&&Ir(e),s=/*limitTabs*/e[10],a=[];for(let t=0;t<s.length;t+=1)a[t]=
|
|
767
|
-
/*div_binding_1*/e[20](i),c(s,n,u),l&&l.m(s,u),c(s,r,u)},p(e,n){if(/*limitTabs*/e[10].length>1?o?o.p(e,n):(o=Ir(e),o.c(),o.m(t.parentNode,t)):o&&(o.d(1),o=null),/*lang, currency, limitTabs, userid, session, endpoint, apiversion*/1087&n
|
|
762
|
+
e.searchParams.append("startDate","1970"),e.searchParams.append("endDate","2099");let t={method:"GET",headers:{"X-SessionID":u}};fetch(e.href,t).then((e=>{if(e.status>=300)throw i(3,f=!1),i(2,d=!0),new Error("There was an error fetching the limits");return e.json()})).then((e=>{e.length&&i(4,g=L(e)),i(3,f=!1)}),(e=>{console.error("There was an error",e),i(2,d=!0)}))})(),/*lang*/1&e.$$.dirty&&l&&E(),/*clientstylingurl*/16384&e.$$.dirty&&m&&(()=>{let e=new URL(m),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,r&&(setTimeout((()=>{r.appendChild(t)}),1),setTimeout((()=>{}),500))}))})(),/*clientstyling*/8192&e.$$.dirty&&p&&(()=>{let e=document.createElement("style");e.innerHTML=p,r.appendChild(e)})()},[l,r,d,f,g,y,b,n,s,()=>{i(5,y=!y),i(6,b=!b)},c,u,h,p,m,function(e){H[e?"unshift":"push"]((()=>{r=e,i(1,r)}))}]}
|
|
763
|
+
/* src/PlayerAccountGamingLimitsWrapper_2.svelte generated by Svelte v3.48.0 */
|
|
764
|
+
function Sr(e,t,i){const n=e.slice();return n[25]=t[i],n}function Pr(e,t,i){const n=e.slice();return n[28]=t[i],n[30]=i,n}
|
|
765
|
+
// (68:2) {:else}
|
|
766
|
+
function Br(e){let t,i,n,r,o=/*limitTabs*/e[10].length>1&&Ir(e),s=/*limitTabs*/e[10],a=[];for(let t=0;t<s.length;t+=1)a[t]=Nr(Sr(e,s,t));let l=/*historyenabled*/"true"===e[6]&&Rr(e);return{c(){o&&o.c(),t=f(),i=p("div");for(let e=0;e<a.length;e+=1)a[e].c();n=f(),l&&l.c(),r=g(),b(i,"class","player-account-gaming-limits-wrapper-2")},m(s,u){o&&o.m(s,u),c(s,t,u),c(s,i,u);for(let e=0;e<a.length;e+=1)a[e].m(i,null);
|
|
767
|
+
/*div_binding_1*/e[20](i),c(s,n,u),l&&l.m(s,u),c(s,r,u)},p(e,n){if(/*limitTabs*/e[10].length>1?o?o.p(e,n):(o=Ir(e),o.c(),o.m(t.parentNode,t)):o&&(o.d(1),o=null),/*lang, currency, limitTabs, userid, session, endpoint, apiversion*/1087&n){let t;for(s=/*limitTabs*/e[10],t=0;t<s.length;t+=1){const r=Sr(e,s,t);a[t]?a[t].p(r,n):(a[t]=Nr(r),a[t].c(),a[t].m(i,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=s.length}/*historyenabled*/"true"===e[6]?l?l.p(e,n):(l=Rr(e),l.c(),l.m(r.parentNode,r)):l&&(l.d(1),l=null)},d(s){o&&o.d(s),s&&u(t),s&&u(i),h(a,s),
|
|
768
768
|
/*div_binding_1*/e[20](null),s&&u(n),l&&l.d(s),s&&u(r)}}}
|
|
769
|
-
// (
|
|
769
|
+
// (66:2) {#if isLoading}
|
|
770
770
|
function Hr(t){return{c:e,m:e,p:e,d:e}}
|
|
771
|
-
// (
|
|
771
|
+
// (69:4) {#if limitTabs.length > 1}
|
|
772
772
|
function Ir(e){let t,i=/*limitTabs*/e[10],n=[];for(let t=0;t<i.length;t+=1)n[t]=Dr(Pr(e,i,t));return{c(){t=p("div");for(let e=0;e<n.length;e+=1)n[e].c();b(t,"class","TabsContainer")},m(i,r){c(i,t,r);for(let e=0;e<n.length;e+=1)n[e].m(t,null);
|
|
773
|
-
/*div_binding*/e[19](t)},p(e,r){if(/*limitTabs, selectTab, tabLabelArray*/11264&r
|
|
773
|
+
/*div_binding*/e[19](t)},p(e,r){if(/*limitTabs, selectTab, tabLabelArray*/11264&r){let o;for(i=/*limitTabs*/e[10],o=0;o<i.length;o+=1){const s=Pr(e,i,o);n[o]?n[o].p(s,r):(n[o]=Dr(s),n[o].c(),n[o].m(t,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=i.length}},d(i){i&&u(t),h(n,i),
|
|
774
774
|
/*div_binding*/e[19](null)}}}
|
|
775
|
-
// (
|
|
776
|
-
function Dr(e){let t,i,n,r,o=/*tabLabelArray*/(e[11][/*i*/e[
|
|
777
|
-
return e[18](/*i*/e[
|
|
778
|
-
// (
|
|
779
|
-
function Cr(e){let t,i;return{c(){t=p("player-account-gaming-limits-page-2-gm16"),v(t,"class","hidden selected"),v(t,"lang",/*lang*/e[0]),v(t,"currency",/*currency*/e[4]),v(t,"limits",i=/*limits*/e[
|
|
780
|
-
// (
|
|
781
|
-
function Or(e){let t;return{c(){t=p("player-account-gaming-limits-
|
|
775
|
+
// (71:8) {#each limitTabs as limit,i}
|
|
776
|
+
function Dr(e){let t,i,n,r,o=/*tabLabelArray*/(e[11][/*i*/e[30]]??/*limit*/e[28])+"";function s(){/*click_handler*/
|
|
777
|
+
return e[18](/*i*/e[30])}return{c(){t=p("div"),i=d(o),b(t,"class","LimitsTab"),w(t,"width",100/ /*limitTabs*/e[10].length+"%")},m(e,o){c(e,t,o),l(t,i),n||(r=y(t,"click",s),n=!0)},p(n,r){e=n,/*tabLabelArray, limitTabs*/3072&r&&o!==(o=/*tabLabelArray*/(e[11][/*i*/e[30]]??/*limit*/e[28])+"")&&E(i,o),/*limitTabs*/1024&r&&w(t,"width",100/ /*limitTabs*/e[10].length+"%")},d(e){e&&u(t),n=!1,r()}}}
|
|
778
|
+
// (89:8) {:else}
|
|
779
|
+
function Cr(e){let t,i;return{c(){t=p("player-account-gaming-limits-page-2-gm16"),v(t,"class","hidden selected"),v(t,"lang",/*lang*/e[0]),v(t,"currency",/*currency*/e[4]),v(t,"limits",i=/*limits*/e[25]),v(t,"userid",/*userid*/e[1]),v(t,"session",/*session*/e[2]),v(t,"endpoint",/*endpoint*/e[3]),v(t,"apiversion",/*apiversion*/e[5])},m(e,i){c(e,t,i)},p(e,n){/*lang*/1&n&&v(t,"lang",/*lang*/e[0]),/*currency*/16&n&&v(t,"currency",/*currency*/e[4]),/*limitTabs*/1024&n&&i!==(i=/*limits*/e[25])&&v(t,"limits",i),/*userid*/2&n&&v(t,"userid",/*userid*/e[1]),/*session*/4&n&&v(t,"session",/*session*/e[2]),/*endpoint*/8&n&&v(t,"endpoint",/*endpoint*/e[3]),/*apiversion*/32&n&&v(t,"apiversion",/*apiversion*/e[5])},d(e){e&&u(t)}}}
|
|
780
|
+
// (79:8) {#if apiversion == 'gmcore'}
|
|
781
|
+
function Or(e){let t,i;return{c(){t=p("player-account-gaming-limits-page-2-gmcore"),v(t,"class","hidden selected"),v(t,"lang",/*lang*/e[0]),v(t,"currency",/*currency*/e[4]),v(t,"limits",i=/*limits*/e[25]),v(t,"userid",/*userid*/e[1]),v(t,"session",/*session*/e[2]),v(t,"endpoint",/*endpoint*/e[3]),v(t,"apiversion",/*apiversion*/e[5])},m(e,i){c(e,t,i)},p(e,n){/*lang*/1&n&&v(t,"lang",/*lang*/e[0]),/*currency*/16&n&&v(t,"currency",/*currency*/e[4]),/*limitTabs*/1024&n&&i!==(i=/*limits*/e[25])&&v(t,"limits",i),/*userid*/2&n&&v(t,"userid",/*userid*/e[1]),/*session*/4&n&&v(t,"session",/*session*/e[2]),/*endpoint*/8&n&&v(t,"endpoint",/*endpoint*/e[3]),/*apiversion*/32&n&&v(t,"apiversion",/*apiversion*/e[5])},d(e){e&&u(t)}}}
|
|
782
|
+
// (78:6) {#each limitTabs as limits}
|
|
783
|
+
function Nr(e){let t;function i(e,t){/*apiversion*/
|
|
784
|
+
return"gmcore"==e[5]?Or:Cr}let n=i(e),r=n(e);return{c(){r.c(),t=g()},m(e,i){r.m(e,i),c(e,t,i)},p(e,o){n===(n=i(e))&&r?r.p(e,o):(r.d(1),r=n(e),r&&(r.c(),r.m(t.parentNode,t)))},d(e){r.d(e),e&&u(t)}}}
|
|
785
|
+
// (102:4) {#if historyenabled === 'true'}
|
|
786
|
+
function Rr(e){let t;return{c(){t=p("player-account-gaming-limits-history-2"),v(t,"lang",/*lang*/e[0]),v(t,"userid",/*userid*/e[1]),v(t,"session",/*session*/e[2]),v(t,"endpoint",/*endpoint*/e[3])},m(e,i){c(e,t,i)},p(e,i){/*lang*/1&i&&v(t,"lang",/*lang*/e[0]),/*userid*/2&i&&v(t,"userid",/*userid*/e[1]),/*session*/4&i&&v(t,"session",/*session*/e[2]),/*endpoint*/8&i&&v(t,"endpoint",/*endpoint*/e[3])},d(e){e&&u(t)}}}function Mr(t){let i;function n(e,t){/*isLoading*/
|
|
782
787
|
return e[8]?Hr:Br}let r=n(t),o=r(t);return{c(){i=p("div"),o.c(),this.c=e},m(e,n){c(e,i,n),o.m(i,null),
|
|
783
|
-
/*div_binding_2*/t[21](i)},p(e,t){r===(r=n(e))&&o?o.p(e,t):(o.d(1),o=r(e),o&&(o.c(),o.m(i,null)))},i:e,o:e,d(e){e&&u(i),o.d(),
|
|
784
|
-
/*div_binding_2*/t[21](null)}}}function
|
|
788
|
+
/*div_binding_2*/t[21](i)},p(e,[t]){r===(r=n(e))&&o?o.p(e,t):(o.d(1),o=r(e),o&&(o.c(),o.m(i,null)))},i:e,o:e,d(e){e&&u(i),o.d(),
|
|
789
|
+
/*div_binding_2*/t[21](null)}}}function Ur(e,t,i){let n,r,o,s,{lang:a=""}=t,{userid:l=""}=t,{session:c=""}=t,{endpoint:u=""}=t,{currency:h=""}=t,{apiversion:p=""}=t,{includedlimits:m=""}=t,{tablabels:d=""}=t,{historyenabled:f="true"}=t,{clientstyling:g=""}=t,{clientstylingurl:y=""}=t,b=!0,v=[];const L=e=>{if(o.children.length>0)for(let t=0;t<o.children.length;t++)e===t?(o.children[t].classList.remove("hidden"),null==s||s.children[t].classList.add("selected")):(o.children[t].classList.add("hidden"),null==s||s.children[t].classList.remove("selected"))};return e.$$set=e=>{"lang"in e&&i(0,a=e.lang),"userid"in e&&i(1,l=e.userid),"session"in e&&i(2,c=e.session),"endpoint"in e&&i(3,u=e.endpoint),"currency"in e&&i(4,h=e.currency),"apiversion"in e&&i(5,p=e.apiversion),"includedlimits"in e&&i(14,m=e.includedlimits),"tablabels"in e&&i(15,d=e.tablabels),"historyenabled"in e&&i(6,f=e.historyenabled),"clientstyling"in e&&i(16,g=e.clientstyling),"clientstylingurl"in e&&i(17,y=e.clientstylingurl)},e.$$.update=()=>{/*mainContainer*/128&e.$$.dirty&&o&&L(0),/*clientstylingurl*/131072&e.$$.dirty&&y&&(()=>{let e=new URL(y),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,n&&setTimeout((()=>{n.appendChild(t)}),1)}))})(),/*clientstyling*/65536&e.$$.dirty&&g&&(()=>{let e=document.createElement("style");e.innerHTML=g,n.appendChild(e)})(),/*userid, session, endpoint, includedlimits, tablabels*/49166&e.$$.dirty&&l&&c&&u&&m&&d&&(i(10,v=m.split(",").map((e=>e.trim()))),i(11,r=d.split(",").map((e=>e.trim()))),i(8,b=!1))},[a,l,c,u,h,p,f,o,b,n,v,r,s,L,m,d,g,y,e=>L(e),function(e){H[e?"unshift":"push"]((()=>{s=e,i(12,s)}))},function(e){H[e?"unshift":"push"]((()=>{o=e,i(7,o)}))},function(e){H[e?"unshift":"push"]((()=>{n=e,i(9,n)}))}]}!customElements.get("player-account-gaming-limits-history-2")&&customElements.define("player-account-gaming-limits-history-2",class extends W{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';font-size:16px}*,*::before,*::after{color:#555;margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2{color:var(--emfe-w-color-white, #FFFFFF)}button{font-size:16px;background-color:#fff;border:0;padding:0}.ExpandButton{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.extended{transform:rotate(180deg)}.HistoryWrapper{display:flex;flex-direction:column}.HistoryWrapper.Desktop{width:63%;padding:0 12px;margin:12px auto}.hidden{display:none}.HistoryRow{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:#ccc 1px solid}.GeneralLimitInformation{display:flex;flex-direction:column;gap:4px}.LimitType{font-size:16px}.LimitAmountPeriod{color:#999}</style>",F(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},$r,Ar,o,{lang:0,userid:10,session:11,endpoint:12,clientstyling:13,clientstylingurl:14},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["lang","userid","session","endpoint","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),U()}get userid(){return this.$$.ctx[10]}set userid(e){this.$$set({userid:e}),U()}get session(){return this.$$.ctx[11]}set session(e){this.$$set({session:e}),U()}get endpoint(){return this.$$.ctx[12]}set endpoint(e){this.$$set({endpoint:e}),U()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),U()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),U()}});class kr extends W{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';color:#666}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TabsContainer{height:42px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid #ccc}.LimitsTab{font-size:18px;margin-bottom:3px;display:flex;justify-content:center;align-items:center;box-sizing:content-box}.hidden{display:none}.selected{border-bottom:3px solid #7ac317;color:#7ac317;margin:0}</style>",F(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},Ur,Mr,o,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,includedlimits:14,tablabels:15,historyenabled:6,clientstyling:16,clientstylingurl:17},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),U()))}static get observedAttributes(){return["lang","userid","session","endpoint","currency","apiversion","includedlimits","tablabels","historyenabled","clientstyling","clientstylingurl"]}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),U()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),U()}get session(){return this.$$.ctx[2]}set session(e){this.$$set({session:e}),U()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),U()}get currency(){return this.$$.ctx[4]}set currency(e){this.$$set({currency:e}),U()}get apiversion(){return this.$$.ctx[5]}set apiversion(e){this.$$set({apiversion:e}),U()}get includedlimits(){return this.$$.ctx[14]}set includedlimits(e){this.$$set({includedlimits:e}),U()}get tablabels(){return this.$$.ctx[15]}set tablabels(e){this.$$set({tablabels:e}),U()}get historyenabled(){return this.$$.ctx[6]}set historyenabled(e){this.$$set({historyenabled:e}),U()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),U()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),U()}}return!customElements.get("player-account-gaming-limits-wrapper-2")&&customElements.define("player-account-gaming-limits-wrapper-2",kr),kr}));
|
|
785
790
|
//# sourceMappingURL=player-account-gaming-limits-wrapper-2.js.map
|