@everymatrix/player-account-gaming-limits-history-2 1.85.17 → 1.85.19
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/components/{PlayerAccountGamingLimitsHistory2-DEe7I19b.cjs → PlayerAccountGamingLimitsHistory2-BX_4Ee1b.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-DdKheHwE.js → PlayerAccountGamingLimitsHistory2-DNiWf7Z8.js} +3 -0
- package/components/{PlayerAccountGamingLimitsHistory2-Cfvacyt5.js → PlayerAccountGamingLimitsHistory2-kolYKLqb.js} +3 -0
- package/es2015/player-account-gaming-limits-history-2.cjs +1 -1
- package/es2015/player-account-gaming-limits-history-2.js +1 -1
- package/esnext/player-account-gaming-limits-history-2.js +1 -1
- package/package.json +1 -1
|
@@ -15,4 +15,4 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
15
15
|
PERFORMANCE OF THIS SOFTWARE.
|
|
16
16
|
***************************************************************************** */var at=function(e,t){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},at(e,t)};function me(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");at(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function ut(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function lt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),n,o=[],s;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)o.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}return o}function ht(e,t,r){if(arguments.length===2)for(var i=0,n=t.length,o;i<n;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||t)}function F(e){return typeof e=="function"}function _r(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ze=_r(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
17
17
|
`+r.map(function(i,n){return n+1+") "+i.toString()}).join(`
|
|
18
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function ct(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ne=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=ut(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(d){t={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var h=this.initialTeardown;if(F(h))try{h()}catch(d){o=d instanceof Ze?d.errors:[d]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var f=ut(c),p=f.next();!p.done;p=f.next()){var y=p.value;try{$t(y)}catch(d){o=o!=null?o:[],d instanceof Ze?o=ht(ht([],lt(o)),lt(d.errors)):o.push(d)}}}catch(d){i={error:d}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(i)throw i.error}}}if(o)throw new Ze(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)$t(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&ct(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ct(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),xr=Ne.EMPTY;function Tr(e){return e instanceof Ne||e&&"closed"in e&&F(e.remove)&&F(e.add)&&F(e.unsubscribe)}function $t(e){F(e)?e():e.unsubscribe()}var so={Promise:void 0},ao={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,ht([e,t],lt(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function uo(e){ao.setTimeout(function(){throw e})}function Ut(){}function Le(e){e()}var Lr=function(e){me(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Tr(r)&&r.add(i)):i.destination=co,i}return t.create=function(r,i,n){return new ft(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ne),lo=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Ee(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Ee(i)}else Ee(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Ee(r)}},e}(),ft=function(e){me(t,e);function t(r,i,n){var o=e.call(this)||this,s;return F(r)||!r?s={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0}:s=r,o.destination=new lo(s),o}return t}(Lr);function Ee(e){uo(e)}function ho(e){throw e}var co={closed:!0,next:Ut,error:ho,complete:Ut},fo=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function mo(e){return e}function po(e){return e.length===0?mo:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var Gt=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,o=go(t)?t:new ft(t,r,i);return Le(function(){var s=n,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?n._subscribe(o):n._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Ft(r),new r(function(n,o){var s=new ft({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:n});i.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[fo]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return po(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Ft(t),new t(function(i,n){var o;r.subscribe(function(s){return o=s},function(s){return n(s)},function(){return i(o)})})},e.create=function(t){return new e(t)},e}();function Ft(e){var t;return(t=e!=null?e:so.Promise)!==null&&t!==void 0?t:Promise}function yo(e){return e&&F(e.next)&&F(e.error)&&F(e.complete)}function go(e){return e&&e instanceof Lr||yo(e)&&Tr(e)}var bo=_r(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Sr=function(e){me(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new jt(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new bo},t.prototype.next=function(r){var i=this;Le(function(){var n,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=ut(i.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;Le(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;Le(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,o=n.hasError,s=n.isStopped,a=n.observers;return o||s?xr:(this.currentObservers=null,a.push(r),new Ne(function(){i.currentObservers=null,ct(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,o=i.thrownError,s=i.isStopped;n?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Gt;return r.source=this,r},t.create=function(r,i){return new jt(r,i)},t}(Gt),jt=function(e){me(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:xr},t}(Sr),wr={now:function(){return(wr.delegate||Date).now()},delegate:void 0},vo=function(e){me(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=wr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=i,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(r){var i=this,n=i.isStopped,o=i._buffer,s=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;n||(o.push(r),!s&&o.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,o=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=o?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*i;if(i<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=n.now(),u=0,h=1;h<o.length&&o[h]<=l;h+=2)u=h;u&&o.splice(0,u+1)}},t}(Sr);const kt=[],Vt={},Eo=(e,t=0)=>{if(kt.indexOf(e)==-1){const r=new vo(t);Vt[e]=r,kt.push(e)}return Vt[e]};window.emWidgets={topic:Eo};const _o=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));function xo(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function To(e,t){const r=new URL(t);fetch(r.href).then(i=>i.text()).then(i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Lo(e,t,r){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,n=>{i.innerHTML=n,e&&e.appendChild(i)})}}function So(e){Zr(e,"svelte-19ml84y",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}')}function Wt(e,t,r){const i=e.slice();return i[37]=t[r],i[38]=t,i[39]=r,i}function wo(e){let t,r,i,n=e[9]("expandLimits")+"",o,s,a,l,u,h,c,f,p,y=Tt(e[7]),d=[];for(let v=0;v<y.length;v+=1)d[v]=Xt(Wt(e,y,v));return{c(){t=P("div"),r=P("div"),i=P("button"),o=G(n),s=Qe(),a=Ue("svg"),l=Ue("path"),u=Ue("path"),h=Qe(),c=P("div");for(let v=0;v<d.length;v+=1)d[v].c();_(l,"d","M10.5 15l7.5 7.5 7.5-7.5z"),_(l,"class","svelte-19ml84y"),_(u,"d","M0 0h36v36h-36z"),_(u,"fill","none"),_(u,"class","svelte-19ml84y"),_(a,"class","ExpandArrow svelte-19ml84y"),_(a,"xmlns","http://www.w3.org/2000/svg"),_(a,"width","36"),_(a,"height","36"),_(a,"viewBox","0 0 36 36"),_(a,"fill","#999"),be(a,"extended",e[8]),_(i,"class","ExpandButton svelte-19ml84y"),_(c,"class","HistoryDisplayArea svelte-19ml84y"),be(c,"hidden",e[5]),_(r,"class","HistoryWrapper "+(e[10]?"Desktop":"")+" svelte-19ml84y"),_(t,"class","player-account-gaming-limits-history-2 svelte-19ml84y")},m(v,H){X(v,t,H),x(t,r),x(r,i),x(i,o),x(i,s),x(i,a),x(a,l),x(a,u),x(r,h),x(r,c);for(let g=0;g<d.length;g+=1)d[g]&&d[g].m(c,null);f||(p=qr(i,"click",e[11]),f=!0)},p(v,H){if(H[0]&512&&n!==(n=v[9]("expandLimits")+"")&&k(o,n),H[0]&256&&be(a,"extended",v[8]),H[0]&650){y=Tt(v[7]);let g;for(g=0;g<y.length;g+=1){const S=Wt(v,y,g);d[g]?d[g].p(S,H):(d[g]=Xt(S),d[g].c(),d[g].m(c,null))}for(;g<d.length;g+=1)d[g].d(1);d.length=y.length}H[0]&32&&be(c,"hidden",v[5])},d(v){v&&V(t),Jr(d,v),f=!1,p()}}}function Ao(e){return{c:I,m:I,p:I,d:I}}function Po(e){let t,r=(e[0]?e[9]("error"):"500 Server Error")+"",i;return{c(){t=P("p"),i=G(r),_(t,"class","svelte-19ml84y")},m(n,o){X(n,t,o),x(t,i)},p(n,o){o[0]&513&&r!==(r=(n[0]?n[9]("error"):"500 Server Error")+"")&&k(i,r)},d(n){n&&V(t)}}}function Ho(e){let t,r,i,n=e[37].type+"",o,s,a=e[37].amount+"",l,u,h=e[37].date+"",c;return{c(){t=P("div"),r=P("span"),i=P("span"),o=G(n),s=P("span"),l=G(a),u=P("span"),c=G(h),_(i,"class","LimitType svelte-19ml84y"),_(s,"class","LimitAmountPeriod svelte-19ml84y"),_(r,"class","GeneralLimitInformation svelte-19ml84y"),_(u,"class","DateLimitInformation svelte-19ml84y"),_(t,"class","HistoryRow svelte-19ml84y")},m(f,p){X(f,t,p),x(t,r),x(r,i),x(i,o),x(r,s),x(s,l),x(t,u),x(u,c)},p(f,p){p[0]&128&&n!==(n=f[37].type+"")&&k(o,n),p[0]&128&&a!==(a=f[37].amount+"")&&k(l,a),p[0]&128&&h!==(h=f[37].date+"")&&k(c,h)},d(f){f&&V(t)}}}function Oo(e){let t,r,i,n=e[37].type+"",o,s,a=e[9]("limitRemoved")+"",l,u,h=e[37].date+"",c;return{c(){t=P("div"),r=P("span"),i=P("span"),o=G(n),s=P("span"),l=G(a),u=P("span"),c=G(h),_(i,"class","LimitType svelte-19ml84y"),_(s,"class","LimitAmountPeriod svelte-19ml84y"),_(r,"class","GeneralLimitInformation svelte-19ml84y"),_(u,"class","DateLimitInformation svelte-19ml84y"),_(t,"class","HistoryRow svelte-19ml84y")},m(f,p){X(f,t,p),x(t,r),x(r,i),x(i,o),x(r,s),x(s,l),x(t,u),x(u,c)},p(f,p){p[0]&128&&n!==(n=f[37].type+"")&&k(o,n),p[0]&512&&a!==(a=f[9]("limitRemoved")+"")&&k(l,a),p[0]&128&&h!==(h=f[37].date+"")&&k(c,h)},d(f){f&&V(t)}}}function Xt(e){let t,r,i,n=e[39];function o(h,c){return h[37].removed?Oo:Ho}let s=o(e),a=s(e);const l=()=>e[22](t,n),u=()=>e[22](null,n);return{c(){t=P("div"),a.c(),r=Qe(),_(t,"class",i=_t(e[39]>+e[1]?"LimitContainer":"")+" svelte-19ml84y")},m(h,c){X(h,t,c),a.m(t,null),x(t,r),l()},p(h,c){e=h,s===(s=o(e))&&a?a.p(e,c):(a.d(1),a=s(e),a&&(a.c(),a.m(t,r))),c[0]&2&&i!==(i=_t(e[39]>+e[1]?"LimitContainer":"")+" svelte-19ml84y")&&_(t,"class",i),n!==e[39]&&(u(),n=e[39],l())},d(h){h&&V(t),a.d(),u()}}}function Io(e){let t;function r(o,s){return o[6]?Po:o[4]?Ao:wo}let i=r(e),n=i(e);return{c(){t=P("div"),n.c(),_(t,"class","svelte-19ml84y")},m(o,s){X(o,t,s),n.m(t,null),e[23](t)},p(o,s){i===(i=r(o))&&n?n.p(o,s):(n.d(1),n=i(o),n&&(n.c(),n.m(t,null)))},i:I,o:I,d(o){o&&V(t),n.d(),e[23](null)}}}function Bo(e,t,r){let i;zr(e,no,m=>r(9,i=m));let n=window.navigator.userAgent,o=!_o(n),{lang:s=""}=t,{userid:a=""}=t,{session:l=""}=t,{endpoint:u=""}=t,{apiversion:h=""}=t,{numberofentries:c="10"}=t,{customcurrencysymbols:f=""}=t,{limitformat:p=""}=t,{clientstyling:y=""}=t,{clientstylingurl:d=""}=t,{mbsource:v}=t,{translationurl:H=""}=t,g,S=new Array,D=parseInt(c,10),R=!1,$=!0,W=[],pe=[],de=!0,Re=!1,oe={EUR:"€",RON:"lei",TRY:"₺"};const Pr=()=>{fetch(H).then(T=>T.json()).then(T=>{Object.keys(T).forEach(C=>{Dt(C,T[C])})}).catch(T=>{console.log(T)})};Object.keys(ze).forEach(m=>{Dt(m,ze[m])});const Hr=()=>{let m=h==="gmcore"?`/v2/player/${a}/transactions/limit`:`/v1/player/${a}/limits/monetary/history`,T=new URL(m,u);T.searchParams.append("startDate",`${new Date("2022").toISOString()}`),T.searchParams.append("endDate",`${new Date("2099").toISOString()}`),T.searchParams.append("limit","10000");let C={method:"GET",headers:{"X-SessionID":l}};fetch(T.href,C).then(A=>{if(A.status>=300)throw r(4,$=!1),r(6,R=!0),new Error("There was an error fetching the limits");return A.json()}).then(A=>{A.length&&(W=Or(A),r(7,pe=W.slice(0,D))),r(4,$=!1)},A=>{console.error("There was an error",A),r(6,R=!0)})},Or=m=>{const T=!!ze[s];return m.map(A=>{let U={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return U.amount=Ir(A),U.currency=T?oe[A.limitCurrencyCode]:A.limitCurrencyCode,U.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(A.limitDate)),U.period=i(`${A.limitPeriod.toLowerCase()}`),U.type=h==="gmcore"?i(`historyLimitType${A.limitType.split(" ")[0]}`):i(`historyLimitType${A.limitType.split(" ")[0]}`)+" "+i(`historyProductType${A.limitProductType}`),U.removed=A.limitAmount===-1,U})},Ir=m=>{let T=p||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(m.limitAmount);if(!p){let Gr=oe[m.limitCurrencyCode]||m.limitCurrencyCode;return`${T}${Gr}`}typeof m.limitAmount=="string"&&m.limitAmount.includes(",")&&(m.limitAmount=m.limitAmount.replaceAll(",",""));const C=T.match(/\{(\d+)decimals\}/),A=C?parseInt(C[1],10):2,U=C?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let ye=parseFloat(m.limitAmount).toFixed(A);const[$r,Me]=p.includes(".")?[",","."]:[".",","];let[De,Ur]=ye.split(".");return De=De.replace(/\B(?=(\d{3})+(?!\d))/g,$r),ye=`${De}${Me}${Ur}`,T=T.replace("{currency}",oe[m.limitCurrencyCode]||m.limitCurrencyCode).replace("{amount}",ye.split(Me)[0]).replace(U,ye.split(Me)[1]),T},Br=()=>{r(5,de=!de),r(8,Re=!Re)};let yt=new IntersectionObserver(m=>{m.forEach(T=>{T.isIntersecting&&(D+=parseInt(c,10)||10,pe.length<W.length&&r(7,pe=W.slice(0,D)))})});const Cr=()=>{yt.observe(S[S.length-1])},Nr=()=>{if(!f)return;let m={};f.split(",").forEach(T=>{let C=T.split(":");m[C[0].trim()]=C[1].trim()}),oe=ge(ge({},oe),m)},Rr=()=>{oo(s)};ri(()=>()=>{yt.unobserve(S[S.length-1])});function Mr(m,T){Se[m?"unshift":"push"](()=>{S[T]=m,r(3,S)})}function Dr(m){Se[m?"unshift":"push"](()=>{g=m,r(2,g)})}return e.$$set=m=>{"lang"in m&&r(0,s=m.lang),"userid"in m&&r(12,a=m.userid),"session"in m&&r(13,l=m.session),"endpoint"in m&&r(14,u=m.endpoint),"apiversion"in m&&r(15,h=m.apiversion),"numberofentries"in m&&r(1,c=m.numberofentries),"customcurrencysymbols"in m&&r(16,f=m.customcurrencysymbols),"limitformat"in m&&r(17,p=m.limitformat),"clientstyling"in m&&r(18,y=m.clientstyling),"clientstylingurl"in m&&r(19,d=m.clientstylingurl),"mbsource"in m&&r(20,v=m.mbsource),"translationurl"in m&&r(21,H=m.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&65536&&f&&Nr(),e.$$.dirty[0]&61440&&u&&a&&l&&h&&Hr(),e.$$.dirty[0]&56&&S[0]&&!$&&!de&&Cr(),e.$$.dirty[0]&1&&s&&Rr(),e.$$.dirty[0]&262148&&y&&g&&xo(g,y),e.$$.dirty[0]&524292&&d&&g&&To(g,d),e.$$.dirty[0]&1048580&&v&&g&&Lo(g,`${v}.Style`),e.$$.dirty[0]&2097156&&H&&g&&Pr()},[s,c,g,S,$,de,R,pe,Re,i,o,Br,a,l,u,h,f,p,y,d,v,H,Mr,Dr]}class Ar extends pi{constructor(t){super(),fi(this,t,Bo,Io,Zt,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,limitformat:17,clientstyling:18,clientstylingurl:19,mbsource:20,translationurl:21},So,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),B()}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),B()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),B()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),B()}get apiversion(){return this.$$.ctx[15]}set apiversion(t){this.$$set({apiversion:t}),B()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(t){this.$$set({numberofentries:t}),B()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),B()}get limitformat(){return this.$$.ctx[17]}set limitformat(t){this.$$set({limitformat:t}),B()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),B()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),B()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),B()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),B()}}mi(Ar,{lang:{},userid:{},session:{},endpoint:{},apiversion:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=Ar;
|
|
18
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function ct(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ne=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,n,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=ut(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(d){t={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var h=this.initialTeardown;if(F(h))try{h()}catch(d){o=d instanceof Ze?d.errors:[d]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var f=ut(c),p=f.next();!p.done;p=f.next()){var y=p.value;try{$t(y)}catch(d){o=o!=null?o:[],d instanceof Ze?o=ht(ht([],lt(o)),lt(d.errors)):o.push(d)}}}catch(d){i={error:d}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(i)throw i.error}}}if(o)throw new Ze(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)$t(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&ct(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ct(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),xr=Ne.EMPTY;function Tr(e){return e instanceof Ne||e&&"closed"in e&&F(e.remove)&&F(e.add)&&F(e.unsubscribe)}function $t(e){F(e)?e():e.unsubscribe()}var so={Promise:void 0},ao={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,ht([e,t],lt(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function uo(e){ao.setTimeout(function(){throw e})}function Ut(){}function Le(e){e()}var Lr=function(e){me(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Tr(r)&&r.add(i)):i.destination=co,i}return t.create=function(r,i,n){return new ft(r,i,n)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ne),lo=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){Ee(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){Ee(i)}else Ee(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Ee(r)}},e}(),ft=function(e){me(t,e);function t(r,i,n){var o=e.call(this)||this,s;return F(r)||!r?s={next:r!=null?r:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0}:s=r,o.destination=new lo(s),o}return t}(Lr);function Ee(e){uo(e)}function ho(e){throw e}var co={closed:!0,next:Ut,error:ho,complete:Ut},fo=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function mo(e){return e}function po(e){return e.length===0?mo:e.length===1?e[0]:function(r){return e.reduce(function(i,n){return n(i)},r)}}var Gt=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var n=this,o=go(t)?t:new ft(t,r,i);return Le(function(){var s=n,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?n._subscribe(o):n._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=Ft(r),new r(function(n,o){var s=new ft({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:n});i.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[fo]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return po(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Ft(t),new t(function(i,n){var o;r.subscribe(function(s){return o=s},function(s){return n(s)},function(){return i(o)})})},e.create=function(t){return new e(t)},e}();function Ft(e){var t;return(t=e!=null?e:so.Promise)!==null&&t!==void 0?t:Promise}function yo(e){return e&&F(e.next)&&F(e.error)&&F(e.complete)}function go(e){return e&&e instanceof Lr||yo(e)&&Tr(e)}var bo=_r(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Sr=function(e){me(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new jt(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new bo},t.prototype.next=function(r){var i=this;Le(function(){var n,o;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var s=ut(i.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(r)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(r){var i=this;Le(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var n=i.observers;n.length;)n.shift().error(r)}})},t.prototype.complete=function(){var r=this;Le(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,n=this,o=n.hasError,s=n.isStopped,a=n.observers;return o||s?xr:(this.currentObservers=null,a.push(r),new Ne(function(){i.currentObservers=null,ct(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,n=i.hasError,o=i.thrownError,s=i.isStopped;n?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new Gt;return r.source=this,r},t.create=function(r,i){return new jt(r,i)},t}(Gt),jt=function(e){me(t,e);function t(r,i){var n=e.call(this)||this;return n.destination=r,n.source=i,n}return t.prototype.next=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,r)},t.prototype.error=function(r){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&n!==void 0?n:xr},t}(Sr),wr={now:function(){return(wr.delegate||Date).now()},delegate:void 0},vo=function(e){me(t,e);function t(r,i,n){r===void 0&&(r=1/0),i===void 0&&(i=1/0),n===void 0&&(n=wr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=i,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=i===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,i),o}return t.prototype.next=function(r){var i=this,n=i.isStopped,o=i._buffer,s=i._infiniteTimeWindow,a=i._timestampProvider,l=i._windowTime;n||(o.push(r),!s&&o.push(a.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(r),n=this,o=n._infiniteTimeWindow,s=n._buffer,a=s.slice(),l=0;l<a.length&&!r.closed;l+=o?1:2)r.next(a[l]);return this._checkFinalizedStatuses(r),i},t.prototype._trimBuffer=function(){var r=this,i=r._bufferSize,n=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*i;if(i<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var l=n.now(),u=0,h=1;h<o.length&&o[h]<=l;h+=2)u=h;u&&o.splice(0,u+1)}},t}(Sr);const kt=[],Vt={},Eo=(e,t=0)=>{if(kt.indexOf(e)==-1){const r=new vo(t);Vt[e]=r,kt.push(e)}return Vt[e]};window.emWidgets={topic:Eo};const _o=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));String(Number.MAX_SAFE_INTEGER).length;function xo(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function To(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(i=>i.text()).then(i=>{const n=document.createElement("style");n.innerHTML=i,e&&e.appendChild(n)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Lo(e,t,r){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,n=>{i.innerHTML=n,e&&e.appendChild(i)})}}function So(e){Zr(e,"svelte-19ml84y",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}')}function Wt(e,t,r){const i=e.slice();return i[37]=t[r],i[38]=t,i[39]=r,i}function wo(e){let t,r,i,n=e[9]("expandLimits")+"",o,s,a,l,u,h,c,f,p,y=Tt(e[7]),d=[];for(let v=0;v<y.length;v+=1)d[v]=Xt(Wt(e,y,v));return{c(){t=P("div"),r=P("div"),i=P("button"),o=G(n),s=Qe(),a=Ue("svg"),l=Ue("path"),u=Ue("path"),h=Qe(),c=P("div");for(let v=0;v<d.length;v+=1)d[v].c();_(l,"d","M10.5 15l7.5 7.5 7.5-7.5z"),_(l,"class","svelte-19ml84y"),_(u,"d","M0 0h36v36h-36z"),_(u,"fill","none"),_(u,"class","svelte-19ml84y"),_(a,"class","ExpandArrow svelte-19ml84y"),_(a,"xmlns","http://www.w3.org/2000/svg"),_(a,"width","36"),_(a,"height","36"),_(a,"viewBox","0 0 36 36"),_(a,"fill","#999"),be(a,"extended",e[8]),_(i,"class","ExpandButton svelte-19ml84y"),_(c,"class","HistoryDisplayArea svelte-19ml84y"),be(c,"hidden",e[5]),_(r,"class","HistoryWrapper "+(e[10]?"Desktop":"")+" svelte-19ml84y"),_(t,"class","player-account-gaming-limits-history-2 svelte-19ml84y")},m(v,H){X(v,t,H),x(t,r),x(r,i),x(i,o),x(i,s),x(i,a),x(a,l),x(a,u),x(r,h),x(r,c);for(let g=0;g<d.length;g+=1)d[g]&&d[g].m(c,null);f||(p=qr(i,"click",e[11]),f=!0)},p(v,H){if(H[0]&512&&n!==(n=v[9]("expandLimits")+"")&&k(o,n),H[0]&256&&be(a,"extended",v[8]),H[0]&650){y=Tt(v[7]);let g;for(g=0;g<y.length;g+=1){const S=Wt(v,y,g);d[g]?d[g].p(S,H):(d[g]=Xt(S),d[g].c(),d[g].m(c,null))}for(;g<d.length;g+=1)d[g].d(1);d.length=y.length}H[0]&32&&be(c,"hidden",v[5])},d(v){v&&V(t),Jr(d,v),f=!1,p()}}}function Ao(e){return{c:I,m:I,p:I,d:I}}function Po(e){let t,r=(e[0]?e[9]("error"):"500 Server Error")+"",i;return{c(){t=P("p"),i=G(r),_(t,"class","svelte-19ml84y")},m(n,o){X(n,t,o),x(t,i)},p(n,o){o[0]&513&&r!==(r=(n[0]?n[9]("error"):"500 Server Error")+"")&&k(i,r)},d(n){n&&V(t)}}}function Ho(e){let t,r,i,n=e[37].type+"",o,s,a=e[37].amount+"",l,u,h=e[37].date+"",c;return{c(){t=P("div"),r=P("span"),i=P("span"),o=G(n),s=P("span"),l=G(a),u=P("span"),c=G(h),_(i,"class","LimitType svelte-19ml84y"),_(s,"class","LimitAmountPeriod svelte-19ml84y"),_(r,"class","GeneralLimitInformation svelte-19ml84y"),_(u,"class","DateLimitInformation svelte-19ml84y"),_(t,"class","HistoryRow svelte-19ml84y")},m(f,p){X(f,t,p),x(t,r),x(r,i),x(i,o),x(r,s),x(s,l),x(t,u),x(u,c)},p(f,p){p[0]&128&&n!==(n=f[37].type+"")&&k(o,n),p[0]&128&&a!==(a=f[37].amount+"")&&k(l,a),p[0]&128&&h!==(h=f[37].date+"")&&k(c,h)},d(f){f&&V(t)}}}function Oo(e){let t,r,i,n=e[37].type+"",o,s,a=e[9]("limitRemoved")+"",l,u,h=e[37].date+"",c;return{c(){t=P("div"),r=P("span"),i=P("span"),o=G(n),s=P("span"),l=G(a),u=P("span"),c=G(h),_(i,"class","LimitType svelte-19ml84y"),_(s,"class","LimitAmountPeriod svelte-19ml84y"),_(r,"class","GeneralLimitInformation svelte-19ml84y"),_(u,"class","DateLimitInformation svelte-19ml84y"),_(t,"class","HistoryRow svelte-19ml84y")},m(f,p){X(f,t,p),x(t,r),x(r,i),x(i,o),x(r,s),x(s,l),x(t,u),x(u,c)},p(f,p){p[0]&128&&n!==(n=f[37].type+"")&&k(o,n),p[0]&512&&a!==(a=f[9]("limitRemoved")+"")&&k(l,a),p[0]&128&&h!==(h=f[37].date+"")&&k(c,h)},d(f){f&&V(t)}}}function Xt(e){let t,r,i,n=e[39];function o(h,c){return h[37].removed?Oo:Ho}let s=o(e),a=s(e);const l=()=>e[22](t,n),u=()=>e[22](null,n);return{c(){t=P("div"),a.c(),r=Qe(),_(t,"class",i=_t(e[39]>+e[1]?"LimitContainer":"")+" svelte-19ml84y")},m(h,c){X(h,t,c),a.m(t,null),x(t,r),l()},p(h,c){e=h,s===(s=o(e))&&a?a.p(e,c):(a.d(1),a=s(e),a&&(a.c(),a.m(t,r))),c[0]&2&&i!==(i=_t(e[39]>+e[1]?"LimitContainer":"")+" svelte-19ml84y")&&_(t,"class",i),n!==e[39]&&(u(),n=e[39],l())},d(h){h&&V(t),a.d(),u()}}}function Io(e){let t;function r(o,s){return o[6]?Po:o[4]?Ao:wo}let i=r(e),n=i(e);return{c(){t=P("div"),n.c(),_(t,"class","svelte-19ml84y")},m(o,s){X(o,t,s),n.m(t,null),e[23](t)},p(o,s){i===(i=r(o))&&n?n.p(o,s):(n.d(1),n=i(o),n&&(n.c(),n.m(t,null)))},i:I,o:I,d(o){o&&V(t),n.d(),e[23](null)}}}function Bo(e,t,r){let i;zr(e,no,m=>r(9,i=m));let n=window.navigator.userAgent,o=!_o(n),{lang:s=""}=t,{userid:a=""}=t,{session:l=""}=t,{endpoint:u=""}=t,{apiversion:h=""}=t,{numberofentries:c="10"}=t,{customcurrencysymbols:f=""}=t,{limitformat:p=""}=t,{clientstyling:y=""}=t,{clientstylingurl:d=""}=t,{mbsource:v}=t,{translationurl:H=""}=t,g,S=new Array,D=parseInt(c,10),R=!1,$=!0,W=[],pe=[],de=!0,Re=!1,oe={EUR:"€",RON:"lei",TRY:"₺"};const Pr=()=>{fetch(H).then(T=>T.json()).then(T=>{Object.keys(T).forEach(C=>{Dt(C,T[C])})}).catch(T=>{console.log(T)})};Object.keys(ze).forEach(m=>{Dt(m,ze[m])});const Hr=()=>{let m=h==="gmcore"?`/v2/player/${a}/transactions/limit`:`/v1/player/${a}/limits/monetary/history`,T=new URL(m,u);T.searchParams.append("startDate",`${new Date("2022").toISOString()}`),T.searchParams.append("endDate",`${new Date("2099").toISOString()}`),T.searchParams.append("limit","10000");let C={method:"GET",headers:{"X-SessionID":l}};fetch(T.href,C).then(A=>{if(A.status>=300)throw r(4,$=!1),r(6,R=!0),new Error("There was an error fetching the limits");return A.json()}).then(A=>{A.length&&(W=Or(A),r(7,pe=W.slice(0,D))),r(4,$=!1)},A=>{console.error("There was an error",A),r(6,R=!0)})},Or=m=>{const T=!!ze[s];return m.map(A=>{let U={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return U.amount=Ir(A),U.currency=T?oe[A.limitCurrencyCode]:A.limitCurrencyCode,U.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(A.limitDate)),U.period=i(`${A.limitPeriod.toLowerCase()}`),U.type=h==="gmcore"?i(`historyLimitType${A.limitType.split(" ")[0]}`):i(`historyLimitType${A.limitType.split(" ")[0]}`)+" "+i(`historyProductType${A.limitProductType}`),U.removed=A.limitAmount===-1,U})},Ir=m=>{let T=p||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(m.limitAmount);if(!p){let Gr=oe[m.limitCurrencyCode]||m.limitCurrencyCode;return`${T}${Gr}`}typeof m.limitAmount=="string"&&m.limitAmount.includes(",")&&(m.limitAmount=m.limitAmount.replaceAll(",",""));const C=T.match(/\{(\d+)decimals\}/),A=C?parseInt(C[1],10):2,U=C?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let ye=parseFloat(m.limitAmount).toFixed(A);const[$r,Me]=p.includes(".")?[",","."]:[".",","];let[De,Ur]=ye.split(".");return De=De.replace(/\B(?=(\d{3})+(?!\d))/g,$r),ye=`${De}${Me}${Ur}`,T=T.replace("{currency}",oe[m.limitCurrencyCode]||m.limitCurrencyCode).replace("{amount}",ye.split(Me)[0]).replace(U,ye.split(Me)[1]),T},Br=()=>{r(5,de=!de),r(8,Re=!Re)};let yt=new IntersectionObserver(m=>{m.forEach(T=>{T.isIntersecting&&(D+=parseInt(c,10)||10,pe.length<W.length&&r(7,pe=W.slice(0,D)))})});const Cr=()=>{yt.observe(S[S.length-1])},Nr=()=>{if(!f)return;let m={};f.split(",").forEach(T=>{let C=T.split(":");m[C[0].trim()]=C[1].trim()}),oe=ge(ge({},oe),m)},Rr=()=>{oo(s)};ri(()=>()=>{yt.unobserve(S[S.length-1])});function Mr(m,T){Se[m?"unshift":"push"](()=>{S[T]=m,r(3,S)})}function Dr(m){Se[m?"unshift":"push"](()=>{g=m,r(2,g)})}return e.$$set=m=>{"lang"in m&&r(0,s=m.lang),"userid"in m&&r(12,a=m.userid),"session"in m&&r(13,l=m.session),"endpoint"in m&&r(14,u=m.endpoint),"apiversion"in m&&r(15,h=m.apiversion),"numberofentries"in m&&r(1,c=m.numberofentries),"customcurrencysymbols"in m&&r(16,f=m.customcurrencysymbols),"limitformat"in m&&r(17,p=m.limitformat),"clientstyling"in m&&r(18,y=m.clientstyling),"clientstylingurl"in m&&r(19,d=m.clientstylingurl),"mbsource"in m&&r(20,v=m.mbsource),"translationurl"in m&&r(21,H=m.translationurl)},e.$$.update=()=>{e.$$.dirty[0]&65536&&f&&Nr(),e.$$.dirty[0]&61440&&u&&a&&l&&h&&Hr(),e.$$.dirty[0]&56&&S[0]&&!$&&!de&&Cr(),e.$$.dirty[0]&1&&s&&Rr(),e.$$.dirty[0]&262148&&y&&g&&xo(g,y),e.$$.dirty[0]&524292&&d&&g&&To(g,d),e.$$.dirty[0]&1048580&&v&&g&&Lo(g,`${v}.Style`),e.$$.dirty[0]&2097156&&H&&g&&Pr()},[s,c,g,S,$,de,R,pe,Re,i,o,Br,a,l,u,h,f,p,y,d,v,H,Mr,Dr]}class Ar extends pi{constructor(t){super(),fi(this,t,Bo,Io,Zt,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,limitformat:17,clientstyling:18,clientstylingurl:19,mbsource:20,translationurl:21},So,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),B()}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),B()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),B()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),B()}get apiversion(){return this.$$.ctx[15]}set apiversion(t){this.$$set({apiversion:t}),B()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(t){this.$$set({numberofentries:t}),B()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),B()}get limitformat(){return this.$$.ctx[17]}set limitformat(t){this.$$set({limitformat:t}),B()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),B()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),B()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),B()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),B()}}mi(Ar,{lang:{},userid:{},session:{},endpoint:{},apiversion:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=Ar;
|
|
@@ -4525,6 +4525,7 @@ const kt = [], Vt = {}, vo = (e, t = 0) => {
|
|
|
4525
4525
|
};
|
|
4526
4526
|
window.emWidgets = { topic: vo };
|
|
4527
4527
|
const Eo = (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));
|
|
4528
|
+
String(Number.MAX_SAFE_INTEGER).length;
|
|
4528
4529
|
function _o(e, t) {
|
|
4529
4530
|
if (e) {
|
|
4530
4531
|
const r = document.createElement("style");
|
|
@@ -4532,6 +4533,8 @@ function _o(e, t) {
|
|
|
4532
4533
|
}
|
|
4533
4534
|
}
|
|
4534
4535
|
function xo(e, t) {
|
|
4536
|
+
if (!e || !t)
|
|
4537
|
+
return;
|
|
4535
4538
|
const r = new URL(t);
|
|
4536
4539
|
fetch(r.href).then((i) => i.text()).then((i) => {
|
|
4537
4540
|
const n = document.createElement("style");
|
|
@@ -4488,6 +4488,7 @@ const Dt = [], $t = {}, ao = (e, t = 0) => {
|
|
|
4488
4488
|
};
|
|
4489
4489
|
window.emWidgets = { topic: ao };
|
|
4490
4490
|
const uo = (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));
|
|
4491
|
+
String(Number.MAX_SAFE_INTEGER).length;
|
|
4491
4492
|
function lo(e, t) {
|
|
4492
4493
|
if (e) {
|
|
4493
4494
|
const r = document.createElement("style");
|
|
@@ -4495,6 +4496,8 @@ function lo(e, t) {
|
|
|
4495
4496
|
}
|
|
4496
4497
|
}
|
|
4497
4498
|
function ho(e, t) {
|
|
4499
|
+
if (!e || !t)
|
|
4500
|
+
return;
|
|
4498
4501
|
const r = new URL(t);
|
|
4499
4502
|
fetch(r.href).then((i) => i.text()).then((i) => {
|
|
4500
4503
|
const n = document.createElement("style");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountGamingLimitsHistory2-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountGamingLimitsHistory2-BX_4Ee1b.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-history-2")&&customElements.define("player-account-gaming-limits-history-2",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerAccountGamingLimitsHistory2-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerAccountGamingLimitsHistory2-DNiWf7Z8.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-account-gaming-limits-history-2") && customElements.define(
|
|
15
15
|
"player-account-gaming-limits-history-2",
|
|
16
16
|
t.element
|
package/package.json
CHANGED