@everymatrix/player-account-gaming-limits-history-2 1.3.1 → 1.3.2

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.
@@ -617,30 +617,28 @@ PERFORMANCE OF THIS SOFTWARE.
617
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
- // (164:2) {:else}
621
- function mn(t){let e,r,n,i,o,s,b,g,v,E,_,T,w=/*$_*/t[9]("history.expandLimits")+"",A=/*lazyShowedHistoryArray*/t[6],B=[];for(let e=0;e<A.length;e+=1)B[e]=vn(pn(t,A,e));return{c(){e=l("div"),r=l("div"),n=l("button"),i=f(w),o=p(),s=c("svg"),b=c("path"),g=c("path"),v=p(),E=l("div");for(let t=0;t<B.length;t+=1)B[t].c();m(b,"d","M10.5 15l7.5 7.5 7.5-7.5z"),m(g,"d","M0 0h36v36h-36z"),m(g,"fill","none"),m(s,"class","ExpandArrow"),m(s,"xmlns","http://www.w3.org/2000/svg"),m(s,"width","36"),m(s,"height","36"),m(s,"viewBox","0 0 36 36"),m(s,"fill","#999"),y(s,"extended",/*extended*/t[8]),m(n,"class","ExpandButton"),m(E,"class","HistoryDisplayArea"),y(E,"hidden",/*hidden*/t[7]),m(r,"class","HistoryWrapper "+(/*isDesktop*/t[10]?"Desktop":"")),m(e,"class","player-account-gaming-limits-history-2")},m(h,l){u(h,e,l),a(e,r),a(r,n),a(n,i),a(n,o),a(n,s),a(s,b),a(s,g),a(r,v),a(r,E);for(let t=0;t<B.length;t+=1)B[t].m(E,null);var c,f,p,m;_||(c=n,f="click",p=/*toggleHistoryDisplayArea*/t[11],c.addEventListener(f,p,m),T=()=>c.removeEventListener(f,p,m),_=!0)},p(t,e){if(/*$_*/512&e[0]&&w!==(w=/*$_*/t[9]("history.expandLimits")+"")&&d(i,w),/*extended*/256&e[0]&&y(s,"extended",/*extended*/t[8]),/*numberofentries, limitContainer, lazyShowedHistoryArray, $_*/586&e[0]){let r;for(A=/*lazyShowedHistoryArray*/t[6],r=0;r<A.length;r+=1){const n=pn(t,A,r);B[r]?B[r].p(n,e):(B[r]=vn(n),B[r].c(),B[r].m(E,null))}for(;r<B.length;r+=1)B[r].d(1);B.length=A.length}/*hidden*/128&e[0]&&y(E,"hidden",/*hidden*/t[7])},d(t){t&&h(e),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(B,t),_=!1,T()}}}
622
- // (161:22)
620
+ // (163:2) {:else}
621
+ function mn(t){let e,r,n,i,o,s,b,g,v,E,_,T,w=/*$_*/t[9]("history.expandLimits")+"",A=/*lazyShowedHistoryArray*/t[7],B=[];for(let e=0;e<A.length;e+=1)B[e]=vn(pn(t,A,e));return{c(){e=l("div"),r=l("div"),n=l("button"),i=f(w),o=p(),s=c("svg"),b=c("path"),g=c("path"),v=p(),E=l("div");for(let t=0;t<B.length;t+=1)B[t].c();m(b,"d","M10.5 15l7.5 7.5 7.5-7.5z"),m(g,"d","M0 0h36v36h-36z"),m(g,"fill","none"),m(s,"class","ExpandArrow"),m(s,"xmlns","http://www.w3.org/2000/svg"),m(s,"width","36"),m(s,"height","36"),m(s,"viewBox","0 0 36 36"),m(s,"fill","#999"),y(s,"extended",/*extended*/t[8]),m(n,"class","ExpandButton"),m(E,"class","HistoryDisplayArea"),y(E,"hidden",/*hidden*/t[5]),m(r,"class","HistoryWrapper "+(/*isDesktop*/t[10]?"Desktop":"")),m(e,"class","player-account-gaming-limits-history-2")},m(h,l){u(h,e,l),a(e,r),a(r,n),a(n,i),a(n,o),a(n,s),a(s,b),a(s,g),a(r,v),a(r,E);for(let t=0;t<B.length;t+=1)B[t].m(E,null);var c,f,p,m;_||(c=n,f="click",p=/*toggleHistoryDisplayArea*/t[11],c.addEventListener(f,p,m),T=()=>c.removeEventListener(f,p,m),_=!0)},p(t,e){if(/*$_*/512&e[0]&&w!==(w=/*$_*/t[9]("history.expandLimits")+"")&&d(i,w),/*extended*/256&e[0]&&y(s,"extended",/*extended*/t[8]),/*numberofentries, limitContainer, lazyShowedHistoryArray, $_*/650&e[0]){let r;for(A=/*lazyShowedHistoryArray*/t[7],r=0;r<A.length;r+=1){const n=pn(t,A,r);B[r]?B[r].p(n,e):(B[r]=vn(n),B[r].c(),B[r].m(E,null))}for(;r<B.length;r+=1)B[r].d(1);B.length=A.length}/*hidden*/32&e[0]&&y(E,"hidden",/*hidden*/t[5])},d(t){t&&h(e),function(t,e){for(let r=0;r<t.length;r+=1)t[r]&&t[r].d(e)}(B,t),_=!1,T()}}}
622
+ // (160:22)
623
623
  function dn(e){return{c:t,m:t,p:t,d:t}}
624
- // (159:2) {#if hasErrors}
624
+ // (158:2) {#if hasErrors}
625
625
  function yn(t){let e,r,n=/*lang*/(t[0]?/*$_*/t[9]("history.error"):"500 Server Error")+"";return{c(){e=l("p"),r=f(n)},m(t,n){u(t,e,n),a(e,r)},p(t,e){/*lang, $_*/513&e[0]&&n!==(n=/*lang*/(t[0]?/*$_*/t[9]("history.error"):"500 Server Error")+"")&&d(r,n)},d(t){t&&h(e)}}}
626
- // (178:14) {:else}
627
- function bn(t){let e,r,n,i,o,s,c,y,b,g,v,E,_=/*history*/t[34].type+"",T=/*history*/t[34].amount+"",w=/*history*/t[34].currency+"",A=/*history*/t[34].period+"",B=/*history*/t[34].date+"";return{c(){e=l("div"),r=l("span"),n=l("span"),i=f(_),o=l("span"),s=f(T),c=p(),y=f(w),b=p(),g=f(A),v=l("span"),E=f(B),m(n,"class","LimitType"),m(o,"class","LimitAmountPeriod"),m(r,"class","GeneralLimitInformation"),m(v,"class","DateLimitInformation"),m(e,"class","HistoryRow")},m(t,h){u(t,e,h),a(e,r),a(r,n),a(n,i),a(r,o),a(o,s),a(o,c),a(o,y),a(o,b),a(o,g),a(e,v),a(v,E)},p(t,e){/*lazyShowedHistoryArray*/64&e[0]&&_!==(_=/*history*/t[34].type+"")&&d(i,_),/*lazyShowedHistoryArray*/64&e[0]&&T!==(T=/*history*/t[34].amount+"")&&d(s,T),/*lazyShowedHistoryArray*/64&e[0]&&w!==(w=/*history*/t[34].currency+"")&&d(y,w),/*lazyShowedHistoryArray*/64&e[0]&&A!==(A=/*history*/t[34].period+"")&&d(g,A),/*lazyShowedHistoryArray*/64&e[0]&&B!==(B=/*history*/t[34].date+"")&&d(E,B)},d(t){t&&h(e)}}}
628
- // (176:14) {#if history.removed}
629
- function gn(t){let e,r,n,i,o,s,c,p,y=/*history*/t[34].type+"",b=/*$_*/t[9]("history.limitRemoved")+"",g=/*history*/t[34].date+"";return{c(){e=l("div"),r=l("span"),n=l("span"),i=f(y),o=l("span"),s=f(b),c=l("span"),p=f(g),m(n,"class","LimitType"),m(o,"class","LimitAmountPeriod"),m(r,"class","GeneralLimitInformation"),m(c,"class","DateLimitInformation"),m(e,"class","HistoryRow")},m(t,h){u(t,e,h),a(e,r),a(r,n),a(n,i),a(r,o),a(o,s),a(e,c),a(c,p)},p(t,e){/*lazyShowedHistoryArray*/64&e[0]&&y!==(y=/*history*/t[34].type+"")&&d(i,y),/*$_*/512&e[0]&&b!==(b=/*$_*/t[9]("history.limitRemoved")+"")&&d(s,b),/*lazyShowedHistoryArray*/64&e[0]&&g!==(g=/*history*/t[34].date+"")&&d(p,g)},d(t){t&&h(e)}}}
630
- // (174:10) {#each lazyShowedHistoryArray as history, index}
626
+ // (177:14) {:else}
627
+ function bn(t){let e,r,n,i,o,s,c,y,b,g,v,E,_=/*history*/t[34].type+"",T=/*history*/t[34].amount+"",w=/*history*/t[34].currency+"",A=/*history*/t[34].period+"",B=/*history*/t[34].date+"";return{c(){e=l("div"),r=l("span"),n=l("span"),i=f(_),o=l("span"),s=f(T),c=p(),y=f(w),b=p(),g=f(A),v=l("span"),E=f(B),m(n,"class","LimitType"),m(o,"class","LimitAmountPeriod"),m(r,"class","GeneralLimitInformation"),m(v,"class","DateLimitInformation"),m(e,"class","HistoryRow")},m(t,h){u(t,e,h),a(e,r),a(r,n),a(n,i),a(r,o),a(o,s),a(o,c),a(o,y),a(o,b),a(o,g),a(e,v),a(v,E)},p(t,e){/*lazyShowedHistoryArray*/128&e[0]&&_!==(_=/*history*/t[34].type+"")&&d(i,_),/*lazyShowedHistoryArray*/128&e[0]&&T!==(T=/*history*/t[34].amount+"")&&d(s,T),/*lazyShowedHistoryArray*/128&e[0]&&w!==(w=/*history*/t[34].currency+"")&&d(y,w),/*lazyShowedHistoryArray*/128&e[0]&&A!==(A=/*history*/t[34].period+"")&&d(g,A),/*lazyShowedHistoryArray*/128&e[0]&&B!==(B=/*history*/t[34].date+"")&&d(E,B)},d(t){t&&h(e)}}}
628
+ // (175:14) {#if history.removed}
629
+ function gn(t){let e,r,n,i,o,s,c,p,y=/*history*/t[34].type+"",b=/*$_*/t[9]("history.limitRemoved")+"",g=/*history*/t[34].date+"";return{c(){e=l("div"),r=l("span"),n=l("span"),i=f(y),o=l("span"),s=f(b),c=l("span"),p=f(g),m(n,"class","LimitType"),m(o,"class","LimitAmountPeriod"),m(r,"class","GeneralLimitInformation"),m(c,"class","DateLimitInformation"),m(e,"class","HistoryRow")},m(t,h){u(t,e,h),a(e,r),a(r,n),a(n,i),a(r,o),a(o,s),a(e,c),a(c,p)},p(t,e){/*lazyShowedHistoryArray*/128&e[0]&&y!==(y=/*history*/t[34].type+"")&&d(i,y),/*$_*/512&e[0]&&b!==(b=/*$_*/t[9]("history.limitRemoved")+"")&&d(s,b),/*lazyShowedHistoryArray*/128&e[0]&&g!==(g=/*history*/t[34].date+"")&&d(p,g)},d(t){t&&h(e)}}}
630
+ // (173:10) {#each lazyShowedHistoryArray as history, index}
631
631
  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
- 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),
633
+ return t[6]?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,{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}))};
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,10),_=!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),"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);
637
+ let O=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(v+=parseInt(m,10)||10,B.length<A.length&&r(7,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
- 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),
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(6,_=!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
641
- r(6,B=A.slice(0,v))),r(4,w=!1)}),(t=>{console.error("There was an error",t),r(5,_=!0)}))})(),/*limitContainer, isLoading*/24&t.$$.dirty[0]&&
641
+ r(7,B=A.slice(0,v))),r(4,w=!1)}),(t=>{console.error("There was an error",t),r(6,_=!0)}))})(),/*limitContainer, isLoading, hidden*/56&t.$$.dirty[0]&&
642
642
  //setup observer only after there is a limit element in the limits array
643
- g[0]&&!w&&
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)})(),/*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;
643
+ g[0]&&!w&&!H&&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,H,_,B,S,n,u,()=>{r(5,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
644
  //# sourceMappingURL=player-account-gaming-limits-history-2.js.map