@everymatrix/player-account-gaming-limits-history-2 1.2.1 → 1.3.0
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.
|
@@ -44,7 +44,7 @@ d.fragment&&d.fragment.c();s.intro&&((b=o.$$.fragment)&&b.i&&(C.delete(b),b.i(E)
|
|
|
44
44
|
S((()=>{const r=u.map(e).filter(i);h?h.push(...r):
|
|
45
45
|
// Edge case - component was destroyed immediately,
|
|
46
46
|
// most likely as a result of a binding initialising
|
|
47
|
-
n(r),t.$$.on_mount=[]})),l.forEach(S)}(o,s.target,s.anchor,s.customElement),O()}var b,E;v(m)}let
|
|
47
|
+
n(r),t.$$.on_mount=[]})),l.forEach(S)}(o,s.target,s.anchor,s.customElement),O()}var b,E;v(m)}let M;"function"==typeof HTMLElement&&(M=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);
|
|
48
48
|
// @ts-ignore todo: improve typings
|
|
49
49
|
for(const t in this.$$.slotted)
|
|
50
50
|
// @ts-ignore todo: improve typings
|
|
@@ -53,7 +53,7 @@ this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}d
|
|
|
53
53
|
// preserve final state?)
|
|
54
54
|
r.on_destroy=r.fragment=null,r.ctx=[])}(this,1),this.$destroy=t}$on(t,e){
|
|
55
55
|
// TODO should this delegate to addEventListener?
|
|
56
|
-
const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const
|
|
56
|
+
const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});const U=[];
|
|
57
57
|
/**
|
|
58
58
|
* Creates a `Readable` store that allows reading by subscription.
|
|
59
59
|
* @param value initial value
|
|
@@ -65,7 +65,7 @@ const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{co
|
|
|
65
65
|
* @param {StartStopNotifier=}start start and stop notifications for subscriptions
|
|
66
66
|
*/
|
|
67
67
|
function x(e,r=t){let n;const i=new Set;function s(t){if(o(e,t)&&(e=t,n)){// store is ready
|
|
68
|
-
const t=!
|
|
68
|
+
const t=!U.length;for(const t of i)t[1](),U.push(t,e);if(t){for(let t=0;t<U.length;t+=2)U[t][0](U[t+1]);U.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(o,a=t){const u=[o,a];return i.add(u),1===i.size&&(n=r(s)||t),o(e),()=>{i.delete(u),0===i.size&&(n(),n=null)}}}}function D(e,r,o){const a=!Array.isArray(e),u=a?[e]:e,h=r.length<2;return l=e=>{let o=!1;const l=[];let c=0,f=t;const p=()=>{if(c)return;f();const n=r(a?l[0]:l,e);h?e(n):f=i(n)?n:t},m=u.map(((t,e)=>s(t,(t=>{l[e]=t,c&=~(1<<e),o&&p()}),(()=>{c|=1<<e}))));return o=!0,p(),function(){n(m),f()}},{subscribe:x(o,l).subscribe};var l}var G=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===k}(t)}
|
|
69
69
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
70
70
|
(t)};var k="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function $(t,e){return!1!==e.clone&&e.isMergeableObject(t)?X((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function F(t,e,r){return t.concat(e).map((function(t){return $(t,r)}))}function j(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}(t))}function V(t,e){try{return e in t}catch(t){return!1}}
|
|
71
71
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
@@ -272,7 +272,7 @@ e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12"
|
|
|
272
272
|
var r,n=t.language;return"root"!==n&&(r=t.maximize().region),(Ht[r||""]||Ht[n||""]||Ht["".concat(n,"-001")]||Ht["001"])[0]}var Lt=new RegExp("^".concat(ft.source,"*")),Pt=new RegExp("".concat(ft.source,"*$"));function Ot(t,e){return{start:t,end:e}}
|
|
273
273
|
// #region Ponyfills
|
|
274
274
|
// Consolidate these variables up top for easier toggling during debugging
|
|
275
|
-
var It=!!String.prototype.startsWith,Ct=!!String.fromCodePoint,Nt=!!Object.fromEntries,Rt=!!String.prototype.codePointAt,
|
|
275
|
+
var It=!!String.prototype.startsWith,Ct=!!String.fromCodePoint,Nt=!!Object.fromEntries,Rt=!!String.prototype.codePointAt,Mt=!!String.prototype.trimStart,Ut=!!String.prototype.trimEnd,xt=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Dt=!0;try{
|
|
276
276
|
/**
|
|
277
277
|
* legacy Edge or Xbox One browser
|
|
278
278
|
* Unicode flag support: supported
|
|
@@ -287,9 +287,9 @@ function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n
|
|
|
287
287
|
Nt?Object.fromEntries:// Ponyfill
|
|
288
288
|
function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],s=i[1];e[o]=s}return e},jt=Rt?// Native
|
|
289
289
|
function(t,e){return t.codePointAt(e)}:// IE 11
|
|
290
|
-
function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Vt=
|
|
290
|
+
function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Vt=Mt?// Native
|
|
291
291
|
function(t){return t.trimStart()}:// Ponyfill
|
|
292
|
-
function(t){return t.replace(Lt,"")},zt=
|
|
292
|
+
function(t){return t.replace(Lt,"")},zt=Ut?// Native
|
|
293
293
|
function(t){return t.trimEnd()}:// Ponyfill
|
|
294
294
|
function(t){return t.replace(Pt,"")};
|
|
295
295
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
@@ -567,7 +567,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
567
567
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
568
568
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
569
569
|
PERFORMANCE OF THIS SOFTWARE.
|
|
570
|
-
***************************************************************************** */function
|
|
570
|
+
***************************************************************************** */function Me(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}const Ue={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 xe(){return Ue}const De=x(!1);let Ge;const ke=x(null);function $e(t){return t.split("-").map(((t,e,r)=>r.slice(0,e+1).join("-"))).reverse()}function Fe(t,e=xe().fallbackLocale){const r=$e(t);return e?[...new Set([...r,...$e(e)])]:r}function je(){return null!=Ge?Ge:void 0}ke.subscribe((t=>{Ge=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Ve=Object.assign(Object.assign({},ke),{set:t=>{if(t&&function(t){if(null==t)return;const e=Fe(t);for(let t=0;t<e.length;t++){const r=e[t];if(Se(r))return r}}(t)&&Ce(t)){const{loadingDelay:e}=xe();let r;return"undefined"!=typeof window&&null!=je()&&e?r=window.setTimeout((()=>De.set(!0)),e):De.set(!0),Re(t).then((()=>{ke.set(t)})).finally((()=>{clearTimeout(r),De.set(!1)}))}return ke.set(t)}}),ze=t=>{const e=Object.create(null);return r=>{const n=JSON.stringify(r);return n in e?e[n]:e[n]=t(r)}},Xe=(t,e)=>{const{formats:r}=xe();if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Ke=ze((t=>{var{locale:e,format:r}=t,n=Me(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Xe("number",r)),new Intl.NumberFormat(e,n)})),Ye=ze((t=>{var{locale:e,format:r}=t,n=Me(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Xe("date",r):0===Object.keys(n).length&&(n=Xe("date","short")),new Intl.DateTimeFormat(e,n)})),We=ze((t=>{var{locale:e,format:r}=t,n=Me(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Xe("time",r):0===Object.keys(n).length&&(n=Xe("time","short")),new Intl.DateTimeFormat(e,n)})),Ze=ze(((t,e=je())=>new _e(t,e,xe().formats,{ignoreTag:xe().ignoreTag}))),qe=(t,e={})=>{var r,n,i,o;let s=e;"object"==typeof t&&(s=t,t=s.id);const{values:a,locale:u=je(),default:h}=s;if(null==u)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Ae(t,u);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!==(o=null!==(i=null===(n=(r=xe()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:u,id:t,defaultValue:h}))&&void 0!==i?i:h)&&void 0!==o?o:t;if(!a)return l;let c=l;try{c=Ze(l,u).format(a)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return c},Je=(t,e)=>((t={})=>{var{locale:e=je()}=t,r=Me(t,["locale"]);return We(Object.assign({locale:e},r))})(e).format(t),Qe=(t,e)=>((t={})=>{var{locale:e=je()}=t,r=Me(t,["locale"]);return Ye(Object.assign({locale:e},r))})(e).format(t),tr=(t,e)=>((t={})=>{var{locale:e=je()}=t,r=Me(t,["locale"]);return Ke(Object.assign({locale:e},r))})(e).format(t),er=(t,e=je())=>Ae(t,e),rr=D([Ve,He],(()=>qe));function nr(t,e){Pe(t,e)}D([Ve],(()=>Je)),D([Ve],(()=>Qe)),D([Ve],(()=>tr)),D([Ve,He],(()=>er));const ir={en:{history:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed"}},de:{history:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt"}},hr:{history:{expandLimits:"POVIJEST OGRANIČENJA",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje uloga",max:"Ograničenje uloga",loading:"Učitavanje...",error:"Došlo je do pogreške. Molimo pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno"}},sl:{history:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen"}},pl:{history:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit"}},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"}}};var or="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==or&&or,sr="URLSearchParams"in or,ar="Symbol"in or&&"iterator"in Symbol,ur="FileReader"in or&&"Blob"in or&&function(){try{return new Blob,!0}catch(t){return!1}}(),hr="FormData"in or,lr="ArrayBuffer"in or;if(lr)var cr=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],fr=ArrayBuffer.isView||function(t){return t&&cr.indexOf(Object.prototype.toString.call(t))>-1};function pr(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function mr(t){return"string"!=typeof t&&(t=String(t)),t}
|
|
571
571
|
// Build a destructive iterator for the value list
|
|
572
572
|
function dr(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return ar&&(e[Symbol.iterator]=function(){return e}),e}function yr(t){this.map={},t instanceof yr?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function br(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function gr(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function vr(t){var e=new FileReader,r=gr(e);return e.readAsArrayBuffer(t),r}function Er(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function _r(){return this.bodyUsed=!1,this._initBody=function(t){var e;
|
|
573
573
|
/*
|
|
@@ -614,7 +614,7 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
614
614
|
PERFORMANCE OF THIS SOFTWARE.
|
|
615
615
|
***************************************************************************** */
|
|
616
616
|
/* global Reflect, Promise */
|
|
617
|
-
var Pr=function(t,e){return Pr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Pr(t,e)};function Or(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Pr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Ir(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cr(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Nr(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function Rr(t){return"function"==typeof t}function Ur(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Mr=Ur((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function xr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Dr=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Ir(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(Rr(u))try{u()}catch(t){i=t instanceof Mr?t.errors:[t]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var l=Ir(h),c=l.next();!c.done;c=l.next()){var f=c.value;try{$r(f)}catch(t){i=null!=i?i:[],t instanceof Mr?i=Nr(Nr([],Cr(i)),Cr(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Mr(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)$r(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&xr(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&xr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),Gr=Dr.EMPTY;function kr(t){return t instanceof Dr||t&&"closed"in t&&Rr(t.remove)&&Rr(t.add)&&Rr(t.unsubscribe)}function $r(t){Rr(t)?t():t.unsubscribe()}var Fr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},jr={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=jr.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Nr([t,e],Cr(r))):setTimeout.apply(void 0,Nr([t,e],Cr(r)))},clearTimeout:function(t){var e=jr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Vr(){}var zr=null;function Xr(t){if(Fr.useDeprecatedSynchronousErrorHandling){var e=!zr;if(e&&(zr={errorThrown:!1,error:null}),t(),e){var r=zr,n=r.errorThrown,i=r.error;if(zr=null,n)throw i}}else t()}var Kr=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,kr(e)&&e.add(r)):r.destination=Qr,r}return Or(e,t),e.create=function(t,e,r){return new qr(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Dr),Yr=Function.prototype.bind;function Wr(t,e){return Yr.call(t,e)}var Zr=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Jr(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Jr(t)}else Jr(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Jr(t)}},t}(),qr=function(t){function e(e,r,n){var i,o,s=t.call(this)||this;Rr(e)||!e?i={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Fr.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&Wr(e.next,o),error:e.error&&Wr(e.error,o),complete:e.complete&&Wr(e.complete,o)}):i=e;return s.destination=new Zr(i),s}return Or(e,t),e}(Kr);function Jr(t){var e;e=t,jr.setTimeout((function(){throw e}))}var Qr={closed:!0,next:Vr,error:function(t){throw t},complete:Vr},tn="function"==typeof Symbol&&Symbol.observable||"@@observable";function en(t){return t}function rn(t){return 0===t.length?en:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var nn=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,i=this,o=(n=t)&&n instanceof Kr||function(t){return t&&Rr(t.next)&&Rr(t.error)&&Rr(t.complete)}(n)&&kr(n)?t:new qr(t,e,r);return Xr((function(){var t=i,e=t.operator,r=t.source;o.add(e?e.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=on(e))((function(e,n){var i=new qr({next:function(e){try{t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:e});r.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[tn]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return rn(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=on(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function on(t){var e;return null!==(e=null!=t?t:Fr.Promise)&&void 0!==e?e:Promise}var sn=Ur((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),an=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Or(e,t),e.prototype.lift=function(t){var e=new un(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new sn},e.prototype.next=function(t){var e=this;Xr((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=Ir(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;Xr((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;Xr((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?Gr:(this.currentObservers=null,o.push(t),new Dr((function(){e.currentObservers=null,xr(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,i=e.isStopped;r?t.error(n):i&&t.complete()},e.prototype.asObservable=function(){var t=new nn;return t.source=this,t},e.create=function(t,e){return new un(t,e)},e}(nn),un=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return Or(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:Gr},e}(an),hn={now:function(){return(hn.delegate||Date).now()},delegate:void 0},ln=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=hn);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return Or(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(e),!o&&i.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,u=1;u<n.length&&n[u]<=s;u+=2)a=u;a&&n.splice(0,a+1)}},e}(an);let cn=[],fn={};window.emWidgets={topic:(t,e=0)=>{if(-1==cn.indexOf(t)){let r=new ln(e);fn[t]=r,cn.push(t)}return fn[t]}};
|
|
617
|
+
var Pr=function(t,e){return Pr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},Pr(t,e)};function Or(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Pr(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Ir(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Cr(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Nr(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function Rr(t){return"function"==typeof t}function Mr(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Ur=Mr((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function xr(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Dr=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Ir(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(Rr(u))try{u()}catch(t){i=t instanceof Ur?t.errors:[t]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var l=Ir(h),c=l.next();!c.done;c=l.next()){var f=c.value;try{$r(f)}catch(t){i=null!=i?i:[],t instanceof Ur?i=Nr(Nr([],Cr(i)),Cr(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Ur(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)$r(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&xr(e,t)},t.prototype.remove=function(e){var r=this._finalizers;r&&xr(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),Gr=Dr.EMPTY;function kr(t){return t instanceof Dr||t&&"closed"in t&&Rr(t.remove)&&Rr(t.add)&&Rr(t.unsubscribe)}function $r(t){Rr(t)?t():t.unsubscribe()}var Fr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},jr={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=jr.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,Nr([t,e],Cr(r))):setTimeout.apply(void 0,Nr([t,e],Cr(r)))},clearTimeout:function(t){var e=jr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Vr(){}var zr=null;function Xr(t){if(Fr.useDeprecatedSynchronousErrorHandling){var e=!zr;if(e&&(zr={errorThrown:!1,error:null}),t(),e){var r=zr,n=r.errorThrown,i=r.error;if(zr=null,n)throw i}}else t()}var Kr=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,kr(e)&&e.add(r)):r.destination=Qr,r}return Or(e,t),e.create=function(t,e,r){return new qr(t,e,r)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Dr),Yr=Function.prototype.bind;function Wr(t,e){return Yr.call(t,e)}var Zr=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Jr(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Jr(t)}else Jr(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Jr(t)}},t}(),qr=function(t){function e(e,r,n){var i,o,s=t.call(this)||this;Rr(e)||!e?i={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&Fr.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&Wr(e.next,o),error:e.error&&Wr(e.error,o),complete:e.complete&&Wr(e.complete,o)}):i=e;return s.destination=new Zr(i),s}return Or(e,t),e}(Kr);function Jr(t){var e;e=t,jr.setTimeout((function(){throw e}))}var Qr={closed:!0,next:Vr,error:function(t){throw t},complete:Vr},tn="function"==typeof Symbol&&Symbol.observable||"@@observable";function en(t){return t}function rn(t){return 0===t.length?en:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var nn=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n,i=this,o=(n=t)&&n instanceof Kr||function(t){return t&&Rr(t.next)&&Rr(t.error)&&Rr(t.complete)}(n)&&kr(n)?t:new qr(t,e,r);return Xr((function(){var t=i,e=t.operator,r=t.source;o.add(e?e.call(o,r):r?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=on(e))((function(e,n){var i=new qr({next:function(e){try{t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:e});r.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[tn]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return rn(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=on(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function on(t){var e;return null!==(e=null!=t?t:Fr.Promise)&&void 0!==e?e:Promise}var sn=Mr((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),an=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Or(e,t),e.prototype.lift=function(t){var e=new un(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new sn},e.prototype.next=function(t){var e=this;Xr((function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=Ir(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},e.prototype.error=function(t){var e=this;Xr((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}}))},e.prototype.complete=function(){var t=this;Xr((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this,n=r.hasError,i=r.isStopped,o=r.observers;return n||i?Gr:(this.currentObservers=null,o.push(t),new Dr((function(){e.currentObservers=null,xr(o,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,r=e.hasError,n=e.thrownError,i=e.isStopped;r?t.error(n):i&&t.complete()},e.prototype.asObservable=function(){var t=new nn;return t.source=this,t},e.create=function(t,e){return new un(t,e)},e}(nn),un=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return Or(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:Gr},e}(an),hn={now:function(){return(hn.delegate||Date).now()},delegate:void 0},ln=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=hn);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return Or(e,t),e.prototype.next=function(e){var r=this,n=r.isStopped,i=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(i.push(e),!o&&i.push(s.now()+a)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,r=t._timestampProvider,n=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<n.length&&n.splice(0,n.length-o),!i){for(var s=r.now(),a=0,u=1;u<n.length&&n[u]<=s;u+=2)a=u;a&&n.splice(0,a+1)}},e}(an);let cn=[],fn={};window.emWidgets={topic:(t,e=0)=>{if(-1==cn.indexOf(t)){let r=new ln(e);fn[t]=r,cn.push(t)}return fn[t]}};
|
|
618
618
|
/* src/PlayerAccountGamingLimitsHistory_2.svelte generated by Svelte v3.48.0 */
|
|
619
619
|
function pn(t,e,r){const n=t.slice();return n[34]=e[r],n[35]=e,n[36]=r,n}
|
|
620
620
|
// (164:2) {:else}
|
|
@@ -632,9 +632,9 @@ function vn(t){let e,r,n,i=/*index*/t[36];function o(t,e){/*history*/
|
|
|
632
632
|
return t[34].removed?gn:bn}let s=o(t),c=s(t);const f=()=>/*div_binding*/t[19](e,i),d=()=>/*div_binding*/t[19](null,i);return{c(){e=l("div"),c.c(),r=p(),m(e,"class",n=/*index*/t[36]>+/*numberofentries*/t[1]?"LimitContainer":"")},m(t,n){u(t,e,n),c.m(e,null),a(e,r),f()},p(a,u){s===(s=o(t=a))&&c?c.p(t,u):(c.d(1),c=s(t),c&&(c.c(),c.m(e,r))),/*numberofentries*/2&u[0]&&n!==(n=/*index*/t[36]>+/*numberofentries*/t[1]?"LimitContainer":"")&&m(e,"class",n),i!==/*index*/t[36]&&(d(),i=/*index*/t[36],f())},d(t){t&&h(e),c.d(),d()}}}function En(e){let r;function n(t,e){/*hasErrors*/
|
|
633
633
|
return t[5]?yn:/*isLoading*/t[4]?dn:mn}let i=n(e),o=i(e);return{c(){r=l("div"),o.c(),this.c=t},m(t,n){u(t,r,n),o.m(r,null),
|
|
634
634
|
/*div_binding_1*/e[20](r)},p(t,e){i===(i=n(t))&&o?o.p(t,e):(o.d(1),o=i(t),o&&(o.c(),o.m(r,null)))},i:t,o:t,d(t){t&&h(r),o.d(),
|
|
635
|
-
/*div_binding_1*/e[20](null)}}}function _n(t,e,r){let n;var i,o;i=rr,o=t=>r(9,n=t),t.$$.on_destroy.push(s(i,o));let a,u=!(t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(window.navigator.userAgent),{lang:h=""}=e,{userid:l=""}=e,{session:c=""}=e,{endpoint:f=""}=e,{apiversion:p=""}=e,{numberofentries:m="10"}=e,{clientstyling:d=""}=e,{clientstylingurl:y=""}=e,{
|
|
635
|
+
/*div_binding_1*/e[20](null)}}}function _n(t,e,r){let n;var i,o;i=rr,o=t=>r(9,n=t),t.$$.on_destroy.push(s(i,o));let a,u=!(t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(window.navigator.userAgent),{lang:h=""}=e,{userid:l=""}=e,{session:c=""}=e,{endpoint:f=""}=e,{apiversion:p=""}=e,{numberofentries:m="10"}=e,{clientstyling:d=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,g=new Array,v=parseInt(m),_=!1,w=!0,A=[],B=[],H=!0,S=!1,L={EUR:"€",RON:"lei"};Object.keys(ir).forEach((t=>{nr(t,ir[t])}));const P=t=>{const e=!!ir[h];return t.map((t=>{let r={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return r.amount=Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(t.limitAmount),r.currency=e?L[t.limitCurrencyCode]:t.limitCurrencyCode,r.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(t.limitDate)),r.period=n(`history.${t.limitPeriod.toLowerCase()}`),r.type=-1===n(`history.${t.limitType.split(" ")[0].toLowerCase()}${t.limitProductType}`).indexOf(".")?n(`history.${t.limitType.split(" ")[0].toLowerCase()}${t.limitProductType}`):n(`history.${t.limitType.split(" ")[0].toLowerCase()}`),r.removed=-1===t.limitAmount,r}))};
|
|
636
636
|
// IntersectionObserver used for showing more limit entries, keep in mind that the API is extremely slow: 3s
|
|
637
|
-
let O=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(v+=+m,B.length<A.length&&r(6,B=A.slice(0,v)))}))}));const I=()=>{var t;t=h,Ve.set(t)};return E((()=>()=>{O.unobserve(g[g.length-1])})),t.$$set=t=>{"lang"in t&&r(0,h=t.lang),"userid"in t&&r(12,l=t.userid),"session"in t&&r(13,c=t.session),"endpoint"in t&&r(14,f=t.endpoint),"apiversion"in t&&r(15,p=t.apiversion),"numberofentries"in t&&r(1,m=t.numberofentries),"clientstyling"in t&&r(16,d=t.clientstyling),"clientstylingurl"in t&&r(17,y=t.clientstylingurl),"
|
|
637
|
+
let O=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(v+=+m,B.length<A.length&&r(6,B=A.slice(0,v)))}))}));const I=()=>{var t;t=h,Ve.set(t)};return E((()=>()=>{O.unobserve(g[g.length-1])})),t.$$set=t=>{"lang"in t&&r(0,h=t.lang),"userid"in t&&r(12,l=t.userid),"session"in t&&r(13,c=t.session),"endpoint"in t&&r(14,f=t.endpoint),"apiversion"in t&&r(15,p=t.apiversion),"numberofentries"in t&&r(1,m=t.numberofentries),"clientstyling"in t&&r(16,d=t.clientstyling),"clientstylingurl"in t&&r(17,y=t.clientstylingurl),"translationurl"in t&&r(18,b=t.translationurl)},t.$$.update=()=>{/*endpoint, userid, session, apiversion*/61440&t.$$.dirty[0]&&f&&l&&c&&p&&(()=>{let t=new URL("gmcore"===p?`v2/player/${l}/transactions/limit`:`v1/player/${l}/limits/monetary/history`,f);
|
|
638
638
|
// hardcoded values because there's no date filtering requirement for the widget. However, the API requires these values
|
|
639
639
|
t.searchParams.append("startDate",`${new Date("2022").toISOString()}`),t.searchParams.append("endDate",`${new Date("2099").toISOString()}`),t.searchParams.append("limit","10000");let e={method:"GET",headers:{"X-SessionID":c}};fetch(t.href,e).then((t=>{if(t.status>=300)throw r(4,w=!1),r(5,_=!0),new Error("There was an error fetching the limits");return t.json()})).then((t=>{t.length&&(A=P(t),
|
|
640
640
|
// API is slow and so this is the only viable way for UX purposes, for now
|
|
@@ -642,5 +642,5 @@ r(6,B=A.slice(0,v))),r(4,w=!1)}),(t=>{console.error("There was an error",t),r(5,
|
|
|
642
642
|
//setup observer only after there is a limit element in the limits array
|
|
643
643
|
g[0]&&!w&&
|
|
644
644
|
// observe the last element of the list
|
|
645
|
-
O.observe(g[g.length-1]),/*lang*/1&t.$$.dirty[0]&&h&&I(),/*clientstylingurl*/131072&t.$$.dirty[0]&&y&&(()=>{let t=new URL(y),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,a&&(setTimeout((()=>{a.appendChild(e)}),1),setTimeout((()=>{}),500))}))})(),/*clientstyling, customStylingContainer*/65540&t.$$.dirty[0]&&d&&a&&(()=>{let t=document.createElement("style");t.innerHTML=d,a.appendChild(t)})(),/*
|
|
645
|
+
O.observe(g[g.length-1]),/*lang*/1&t.$$.dirty[0]&&h&&I(),/*clientstylingurl*/131072&t.$$.dirty[0]&&y&&(()=>{let t=new URL(y),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,a&&(setTimeout((()=>{a.appendChild(e)}),1),setTimeout((()=>{}),500))}))})(),/*clientstyling, customStylingContainer*/65540&t.$$.dirty[0]&&d&&a&&(()=>{let t=document.createElement("style");t.innerHTML=d,a.appendChild(t)})(),/*translationurl, customStylingContainer*/262148&t.$$.dirty[0]&&b&&a&&fetch(b).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{nr(e,t[e])}))})).catch((t=>{console.log(t)}))},[h,m,a,g,w,_,B,H,S,n,u,()=>{r(7,H=!H),r(8,S=!S)},l,c,f,p,d,y,b,function(t,e){T[t?"unshift":"push"]((()=>{g[e]=t,r(3,g)}))},function(t){T[t?"unshift":"push"]((()=>{a=t,r(2,a)}))}]}class Tn extends M{constructor(t){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:1.3rem}*,*::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:1rem;border:0;padding:0}.ExpandButton{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton svg{width:28px;height:auto;margin-left:-4px}.extended{transform:rotate(180deg)}.HistoryWrapper{display:flex;flex-direction:column}.HistoryWrapper.Desktop{width:320px;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:1.3rem}.LimitAmountPeriod{color:#999}.LimitContainer{animation:animateEntry 0.7s ease-in}@keyframes animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}</style>",R(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},_n,En,o,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,clientstyling:16,clientstylingurl:17,translationurl:18},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["lang","userid","session","endpoint","apiversion","numberofentries","clientstyling","clientstylingurl","translationurl"]}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),O()}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),O()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),O()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),O()}get apiversion(){return this.$$.ctx[15]}set apiversion(t){this.$$set({apiversion:t}),O()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(t){this.$$set({numberofentries:t}),O()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(t){this.$$set({clientstyling:t}),O()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),O()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl:t}),O()}}!customElements.get("player-account-gaming-limits-history-2")&&customElements.define("player-account-gaming-limits-history-2",Tn),module.exports=Tn;
|
|
646
646
|
//# sourceMappingURL=player-account-gaming-limits-history-2.js.map
|