@everymatrix/casino-collections-providers 1.39.1 → 1.39.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.
@@ -635,40 +635,42 @@ self.fetch.bind(self);
|
|
635
635
|
var zr=function(e,t){return zr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},zr(e,t)};function Kr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}zr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Yr(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zr(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function Wr(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function qr(e){return"function"==typeof e}function Jr(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError;var Qr=Jr((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function en(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var tn=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=Yr(i),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else i.remove(this);var l=this.initialTeardown;if(qr(l))try{l()}catch(e){o=e instanceof Qr?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var u=Yr(c),h=u.next();!h.done;h=u.next()){var f=h.value;try{on(f)}catch(e){o=null!=o?o:[],e instanceof Qr?o=Wr(Wr([],Zr(o)),Zr(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}}if(o)throw new Qr(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)on(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&en(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&en(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),rn=tn.EMPTY;function nn(e){return e instanceof tn||e&&"closed"in e&&qr(e.remove)&&qr(e.add)&&qr(e.unsubscribe)}function on(e){qr(e)?e():e.unsubscribe()}var sn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},an={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=an.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,Wr([e,t],Zr(r))):setTimeout.apply(void 0,Wr([e,t],Zr(r)))},clearTimeout:function(e){var t=an.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ln(){}var cn=null;function un(e){if(sn.useDeprecatedSynchronousErrorHandling){var t=!cn;if(t&&(cn={errorThrown:!1,error:null}),e(),t){var r=cn,n=r.errorThrown,o=r.error;if(cn=null,n)throw o}}else e()}var hn=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,nn(t)&&t.add(r)):r.destination=gn,r}return Kr(t,e),t.create=function(e,t,r){return new mn(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},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(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tn),fn=Function.prototype.bind;function pn(e,t){return fn.call(e,t)}var dn=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){yn(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){yn(e)}else yn(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){yn(e)}},e}(),mn=function(e){function t(t,r,n){var o,i,s=e.call(this)||this;qr(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&sn.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&pn(t.next,i),error:t.error&&pn(t.error,i),complete:t.complete&&pn(t.complete,i)}):o=t;return s.destination=new dn(o),s}return Kr(t,e),t}(hn);function yn(e){var t;t=e,an.setTimeout((function(){throw t}))}var gn={closed:!0,next:ln,error:function(e){throw e},complete:ln},bn="function"==typeof Symbol&&Symbol.observable||"@@observable";function vn(e){return e}var En=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof hn||function(e){return e&&qr(e.next)&&qr(e.error)&&qr(e.complete)}(n)&&nn(n)?e:new mn(e,t,r);return un((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=_n(t))((function(t,n){var o=new mn({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[bn]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?vn:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=_n(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function _n(e){var t;return null!==(t=null!=e?e:sn.Promise)&&void 0!==t?t:Promise}var wn=Jr((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Tn=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return Kr(t,e),t.prototype.lift=function(e){var t=new An(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new wn},t.prototype.next=function(e){var t=this;un((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=Yr(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;un((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;un((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?rn:(this.currentObservers=null,i.push(e),new tn((function(){t.currentObservers=null,en(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new En;return e.source=this,e},t.create=function(e,t){return new An(e,t)},t}(En),An=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return Kr(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:rn},t}(Tn),Sn={now:function(){return(Sn.delegate||Date).now()},delegate:void 0},Bn=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=Sn);var o=e.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=n,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return Kr(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,o=r._buffer,i=r._infiniteTimeWindow,s=r._timestampProvider,a=r._windowTime;n||(o.push(t),!i&&o.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,o=e._infiniteTimeWindow,i=(o?1:2)*t;if(t<1/0&&i<n.length&&n.splice(0,n.length-i),!o){for(var s=r.now(),a=0,l=1;l<n.length&&n[l]<=s;l+=2)a=l;a&&n.splice(0,a+1)}},t}(Tn);let Hn=[],Cn={};window.emWidgets={topic:(e,t=0)=>{if(-1==Hn.indexOf(e)){let r=new Bn(t);Cn[e]=r,Hn.push(e)}return Cn[e]}};
|
636
636
|
/* src/CasinoCollectionsProviders.svelte generated by Svelte v3.59.2 */
|
637
637
|
function Pn(e,t,r){const n=e.slice();return n[39]=t[r],n}function Ln(e,t,r){const n=e.slice();return n[42]=t[r],n}
|
638
|
-
// (
|
639
|
-
function On(e){let t,r,o,i,s,a,l,c
|
640
|
-
/*
|
641
|
-
/*
|
642
|
-
// (
|
638
|
+
// (152:4) {:else}
|
639
|
+
function On(e){let t,r,n,o,i,s,a,l,c=/*type*/("vendor"==e[0]?/*$_*/e[10]("providers"):/*$_*/e[10]("collections"))+"",g=/*numberOfSlides*/e[7]>/*numberOfVisibleSlides*/e[8]&&Nn(e),E=/*gameCategories*/e[3],_=[];for(let t=0;t<E.length;t+=1)_[t]=Gn(Pn(e,E,t));return{c(){t=d("div"),r=d("div"),n=d("p"),o=m(c),i=y(),g&&g.c(),s=y(),a=d("div");for(let e=0;e<_.length;e+=1)_[e].c();b(n,"class","Title"),b(r,"class","CategoriesHeader"),b(a,"class","CategoriesSlider"),b(t,"class",l="CasinoCollectionsProviders "+(/*mobile*/e[9]?"Mobile":"")+" "+(/*type*/"vendor"===e[0]?"Providers":"Collections"))},m(l,c){h(l,t,c),u(t,r),u(r,n),u(n,o),u(r,i),g&&g.m(r,null),u(t,s),u(t,a);for(let e=0;e<_.length;e+=1)_[e]&&_[e].m(a,null);
|
640
|
+
/*div1_binding*/e[25](a)},p(e,n){if(/*type, $_*/1025&n[0]&&c!==(c=/*type*/("vendor"==e[0]?/*$_*/e[10]("providers"):/*$_*/e[10]("collections"))+"")&&v(o,c),/*numberOfSlides*/e[7]>/*numberOfVisibleSlides*/e[8]?g?g.p(e,n):(g=Nn(e),g.c(),g.m(r,null)):g&&(g.d(1),g=null),/*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/24590&n[0]){let t;for(E=/*gameCategories*/e[3],t=0;t<E.length;t+=1){const r=Pn(e,E,t);_[t]?_[t].p(r,n):(_[t]=Gn(r),_[t].c(),_[t].m(a,null))}for(;t<_.length;t+=1)_[t].d(1);_.length=E.length}/*mobile, type*/513&n[0]&&l!==(l="CasinoCollectionsProviders "+(/*mobile*/e[9]?"Mobile":"")+" "+(/*type*/"vendor"===e[0]?"Providers":"Collections"))&&b(t,"class",l)},d(r){r&&f(t),g&&g.d(),p(_,r),
|
641
|
+
/*div1_binding*/e[25](null)}}}
|
642
|
+
// (150:4) {#if isLoading}
|
643
643
|
function In(t){let r;return{c(){r=d("div"),b(r,"class","LoadingSpinner")},m(e,t){h(e,r,t)},p:e,d(e){e&&f(r)}}}
|
644
|
-
// (
|
645
|
-
function Nn(
|
646
|
-
// (179:
|
647
|
-
function Rn(e){let t,r,n;return{c(){t=d("
|
648
|
-
// (
|
649
|
-
function xn(e){let t,r,n
|
650
|
-
// (
|
651
|
-
function Mn(e){let t,r,n,o,
|
652
|
-
|
644
|
+
// (156:10) {#if numberOfSlides > numberOfVisibleSlides}
|
645
|
+
function Nn(t){let r,o,i,s,a,l;return{c(){r=d("div"),o=d("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',i=y(),s=d("button"),s.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',b(r,"class","ButtonsContainer")},m(e,n){h(e,r,n),u(r,o),u(r,i),u(r,s),a||(l=[g(o,"click",/*click_handler*/t[21]),g(s,"click",/*click_handler_1*/t[22])],a=!0)},p:e,d(e){e&&f(r),a=!1,n(l)}}}
|
646
|
+
// (179:47)
|
647
|
+
function Rn(e){let t,r,n=/*category*/e[39].name+"";return{c(){t=d("p"),r=m(n),b(t,"class","CategorySlideTitle")},m(e,n){h(e,t,n),u(t,r)},p(e,t){/*gameCategories*/8&t[0]&&n!==(n=/*category*/e[39].name+"")&&v(r,n)},d(e){e&&f(t)}}}
|
648
|
+
// (177:16) {#if titletype == 'logo'}
|
649
|
+
function xn(e){let t,r,n;return{c(){t=d("img"),b(t,"class","CategorySlideLogo"),l(t.src,r=/*category*/e[39].icon)||b(t,"src",r),b(t,"alt",n=/*category*/e[39].name+" icon")},m(e,r){h(e,t,r)},p(e,o){/*gameCategories*/8&o[0]&&!l(t.src,r=/*category*/e[39].icon)&&b(t,"src",r),/*gameCategories*/8&o[0]&&n!==(n=/*category*/e[39].name+" icon")&&b(t,"alt",n)},d(e){e&&f(t)}}}
|
650
|
+
// (187:18) {#if collectionprovidersgamenames == 'true'}
|
651
|
+
function Mn(e){let t,r,n,o=/*game*/e[42].name+"";return{c(){t=d("p"),r=m(o),b(t,"title",n=/*game*/e[42].name)},m(e,n){h(e,t,n),u(t,r)},p(e,i){/*gameCategories*/8&i[0]&&o!==(o=/*game*/e[42].name+"")&&v(r,o),/*gameCategories*/8&i[0]&&n!==(n=/*game*/e[42].name)&&b(t,"title",n)},d(e){e&&f(t)}}}
|
652
|
+
// (184:16) {#each category.games as game}
|
653
|
+
function Un(e){let t,r,n,o,i,s,a,c;function p(){/*click_handler_2*/
|
654
|
+
return e[23](/*game*/e[42])}let m=/*collectionprovidersgamenames*/"true"==e[2]&&Mn(e);return{c(){t=d("div"),r=d("img"),i=y(),m&&m.c(),s=y(),b(r,"class","CategorySlideGameImage"),l(r.src,n=/*game*/e[42].defaultThumbnail)||b(r,"src",n),b(r,"alt",o=/*game*/e[42].name),b(t,"class","CategorySlideGames")},m(e,n){var o;h(e,t,n),u(t,r),u(t,i),m&&m.m(t,null),u(t,s),a||(c=g(r,"click",(o=p,function(e){
|
653
655
|
// @ts-ignore
|
654
|
-
return e.stopPropagation(),o.call(this,e)})),a=!0)},p(i,a){e=i,/*gameCategories*/8&a[0]&&!l(r.src,n=/*game*/e[42].defaultThumbnail)&&b(r,"src",n),/*gameCategories*/8&a[0]&&o!==(o=/*game*/e[42].name)&&b(r,"alt",o),/*collectionprovidersgamenames*/"true"==e[2]?m?m.p(e,a):(m=
|
655
|
-
// (
|
656
|
-
function
|
657
|
-
return"logo"==e[1]?
|
658
|
-
return e[
|
656
|
+
return e.stopPropagation(),o.call(this,e)})),a=!0)},p(i,a){e=i,/*gameCategories*/8&a[0]&&!l(r.src,n=/*game*/e[42].defaultThumbnail)&&b(r,"src",n),/*gameCategories*/8&a[0]&&o!==(o=/*game*/e[42].name)&&b(r,"alt",o),/*collectionprovidersgamenames*/"true"==e[2]?m?m.p(e,a):(m=Mn(e),m.c(),m.m(t,s)):m&&(m.d(1),m=null)},d(e){e&&f(t),m&&m.d(),a=!1,c()}}}
|
657
|
+
// (173:10) {#each gameCategories as category}
|
658
|
+
function Gn(e){let t,r,n,o,i,s,a,l,c;function m(e,t){/*titletype*/
|
659
|
+
return"logo"==e[1]?xn:/*titletype*/"title"==e[1]?Rn:void 0}let v=m(e),_=v&&v(e),w=/*category*/e[39].games,T=[];for(let t=0;t<w.length;t+=1)T[t]=Un(Ln(e,w,t));function A(){/*click_handler_3*/
|
660
|
+
return e[24](/*category*/e[39])}return{c(){t=d("div"),r=d("div"),n=d("div"),_&&_.c(),o=y(),i=d("div");for(let e=0;e<T.length;e+=1)T[e].c();a=y(),b(n,"class","CategorySlideTopContainer"),b(i,"class","CategorySlideGameContainer"),b(r,"class",s="CategorySlide "+(/*category*/"vendor"==e[39]?.flag[0]?"CategorySlideNoHighlight":"")),E(r,"background-image","url("+/*category*/e[39]?.background+")"),E(r,"background-size","cover"),b(t,"class","CategoriesSliderWrapper Animation")},m(e,s){h(e,t,s),u(t,r),u(r,n),_&&_.m(n,null),u(r,o),u(r,i);for(let e=0;e<T.length;e+=1)T[e]&&T[e].m(i,null);u(t,a),l||(c=g(r,"click",A),l=!0)},p(t,o){if(v===(v=m(e=t))&&_?_.p(e,o):(_&&_.d(1),_=v&&v(e),_&&(_.c(),_.m(n,null))),/*gameCategories, collectionprovidersgamenames, openGame*/8204&o[0]){let t;for(w=/*category*/e[39].games,t=0;t<w.length;t+=1){const r=Ln(e,w,t);T[t]?T[t].p(r,o):(T[t]=Un(r),T[t].c(),T[t].m(i,null))}for(;t<T.length;t+=1)T[t].d(1);T.length=w.length}/*gameCategories*/8&o[0]&&s!==(s="CategorySlide "+(/*category*/"vendor"==e[39]?.flag[0]?"CategorySlideNoHighlight":""))&&b(r,"class",s),/*gameCategories*/8&o[0]&&E(r,"background-image","url("+/*category*/e[39]?.background+")")},d(e){e&&f(t),_&&_.d(),p(T,e),l=!1,c()}}}function Dn(t){let r;function n(e,t){/*isLoading*/
|
659
661
|
return e[6]?In:On}let o=n(t),i=o(t);return{c(){r=d("div"),i.c(),this.c=e},m(e,n){h(e,r,n),i.m(r,null),
|
660
|
-
/*div_binding*/t[
|
661
|
-
/*div_binding*/t[
|
662
|
+
/*div_binding*/t[26](r)},p(e,t){o===(o=n(e))&&i?i.p(e,t):(i.d(1),i=o(e),i&&(i.c(),i.m(r,null)))},i:e,o:e,d(e){e&&f(r),i.d(),
|
663
|
+
/*div_binding*/t[26](null)}}}function kn(e,t,r){let n;var o,i;o=vr,i=e=>r(10,n=e),e.$$.on_destroy.push(c(o,i));let s,a,l,u,h,{endpoint:f=""}=t,{datasource:p=""}=t,{lang:d=""}=t,{type:m=""}=t,{titletype:y=""}=t,{clientstyling:g=""}=t,{clientstylingurl:b=""}=t,{translationurl:v=""}=t,{collectionprovidersgamenames:E=""}=t,_=[],w=!0,A=0,B=0,H=0,C=window.navigator.userAgent;Object.keys(_r).forEach((e=>{Er(e,_r[e])}));const P=e=>{
|
662
664
|
//store each slide HTML element in an array
|
663
665
|
l=[...s.children],
|
664
666
|
//iterate the array of elements and translate each of them by 100% times the index to create the slider
|
665
667
|
l.forEach(((t,r)=>{t.style.transform=`translateX(${100*(e?r-e:r)}%)`})),l.map((e=>a=e.getBoundingClientRect().width)),L()},L=()=>{
|
666
668
|
//needed for finding the beginning and end of the slider
|
667
|
-
H=Math.
|
669
|
+
r(8,H=Math.floor(s.offsetWidth/a))},O=()=>{
|
668
670
|
//in order to go to a specific slide, position all the slides relative to one of them, one which is determined by sliderScrollLeft and sliderScrollRight
|
669
|
-
P(A)},I=()=>{
|
671
|
+
P(A)},I=()=>{0===A?A=B-H:A-H<-1?A=0:A--,O()},N=()=>{A===B-H?A=0:B-H<A+1?A=B-H:A++,O()},R=(e,t,r,n)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:e,launchUrl:t,gameName:r,subVendor:n},window.location.href),
|
670
672
|
//Analytics event
|
671
|
-
"function"==typeof gtag&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${r}`})},x=e=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:e},window.location.href)},M=()=>{var e;e=d,Qt.set(e)};T((()=>{r(
|
673
|
+
"function"==typeof gtag&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${r}`})},x=e=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:e},window.location.href)},M=()=>{var e;e=d,Qt.set(e)};T((()=>{r(9,h=(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)))(C))}));return e.$$set=e=>{"endpoint"in e&&r(15,f=e.endpoint),"datasource"in e&&r(16,p=e.datasource),"lang"in e&&r(17,d=e.lang),"type"in e&&r(0,m=e.type),"titletype"in e&&r(1,y=e.titletype),"clientstyling"in e&&r(18,g=e.clientstyling),"clientstylingurl"in e&&r(19,b=e.clientstylingurl),"translationurl"in e&&r(20,v=e.translationurl),"collectionprovidersgamenames"in e&&r(2,E=e.collectionprovidersgamenames)},e.$$.update=()=>{/*endpoint, datasource, lang*/229376&e.$$.dirty[0]&&f&&p&&d&&(()=>{const e=new URL(`${f}/v2/casino/groups/${p}`);e.searchParams.append("language",d),e.searchParams.append("expand","games"),fetch(e.href).then((e=>e.json())).then((e=>{r(6,w=!1);let t=e.items.filter((e=>e.flags==m));r(3,_=t.map((e=>{var t,r,n;return{id:e.id,name:e.name,icon:e.icon?e.icon:null===(n=null===(r=null===(t=e.vendors)||void 0===t?void 0:t.items[0])||void 0===r?void 0:r.subVendors[0])||void 0===n?void 0:n.logo,games:e.games.items.slice(0,4).map((e=>e)),background:e.background,flag:e.flags}}))),r(7,B=_.length)}))})(),/*gameCategories, categoriesSlider*/24&e.$$.dirty[0]&&
|
672
674
|
//making sure we have something to position, before trying to
|
673
|
-
_&&s&&P(),/*lang*/
|
675
|
+
_&&s&&P(),/*lang*/131072&e.$$.dirty[0]&&d&&M(),/*clientstyling, customStylingContainer*/262176&e.$$.dirty[0]&&g&&u&&(()=>{let e=document.createElement("style");e.innerHTML=g,u.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/524320&e.$$.dirty[0]&&b&&u&&(()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{u.appendChild(t)}),1)}))})(),/*translationurl*/1048576&e.$$.dirty[0]&&v&&fetch(v).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,y,E,_,s,u,w,B,H,h,n,I,N,R,x,f,p,d,g,b,v,()=>I(),()=>N(),e=>R(e.gameId,e.launchUrl,e.name,e.subVendor),e=>x(e.id),function(e){S[e?"unshift":"push"]((()=>{s=e,r(4,s)}))},function(e){S[e?"unshift":"push"]((()=>{u=e,r(5,u)}))}]}class $n extends D{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-casino-typography, var(--emfe-w-color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},kn,Dn,i,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["endpoint","datasource","lang","type","titletype","clientstyling","clientstylingurl","translationurl","collectionprovidersgamenames"]}get endpoint(){return this.$$.ctx[15]}set endpoint(e){this.$$set({endpoint:e}),N()}get datasource(){return this.$$.ctx[16]}set datasource(e){this.$$set({datasource:e}),N()}get lang(){return this.$$.ctx[17]}set lang(e){this.$$set({lang:e}),N()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),N()}get titletype(){return this.$$.ctx[1]}set titletype(e){this.$$set({titletype:e}),N()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get translationurl(){return this.$$.ctx[20]}set translationurl(e){this.$$set({translationurl:e}),N()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(e){this.$$set({collectionprovidersgamenames:e}),N()}}return!customElements.get("casino-collections-providers")&&customElements.define("casino-collections-providers",$n),$n}));
|
674
676
|
//# sourceMappingURL=casino-collections-providers.js.map
|