@everymatrix/casino-collections-providers 1.63.3 → 1.64.1
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/{CasinoCollectionsProviders-Bx2LMh1s.cjs → CasinoCollectionsProviders-BDhWKZsF.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-BvCE1CcG.js → CasinoCollectionsProviders-Dk0oppKx.js} +1 -1
- package/components/{CasinoCollectionsProviders-BtbkRi_X.js → CasinoCollectionsProviders-Dr6Zug99.js} +1 -1
- package/es2015/casino-collections-providers.cjs +1 -1
- package/es2015/casino-collections-providers.js +1 -1
- package/esnext/casino-collections-providers.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 tt=function(e,t){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},tt(e,t)};function ce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tt(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function rt(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")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 nt(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function it(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||t)}function F(e){return typeof e=="function"}function Br(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var ke=Br(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
17
17
|
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
18
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function ot(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Le=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=rt(s),h=a.next();!h.done;h=a.next()){var l=h.value;l.remove(this)}}catch(b){t={error:b}}finally{try{h&&!h.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(F(u))try{u()}catch(b){o=b instanceof ke?b.errors:[b]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var c=rt(f),d=c.next();!d.done;d=c.next()){var m=d.value;try{Ft(m)}catch(b){o=o!=null?o:[],b instanceof ke?o=it(it([],nt(o)),nt(b.errors)):o.push(b)}}}catch(b){n={error:b}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}if(o)throw new ke(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Ft(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)&&ot(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ot(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ar=Le.EMPTY;function Or(e){return e instanceof Le||e&&"closed"in e&&F(e.remove)&&F(e.add)&&F(e.unsubscribe)}function Ft(e){F(e)?e():e.unsubscribe()}var fo={Promise:void 0},po={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,it([e,t],nt(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function mo(e){po.setTimeout(function(){throw e})}function jt(){}function ve(e){e()}var Lr=function(e){ce(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Or(r)&&r.add(n)):n.destination=vo,n}return t.create=function(r,n,i){return new st(r,n,i)},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}(Le),bo=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(n){pe(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){pe(n)}else pe(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){pe(r)}},e}(),st=function(e){ce(t,e);function t(r,n,i){var o=e.call(this)||this,s;return F(r)||!r?s={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0}:s=r,o.destination=new bo(s),o}return t}(Lr);function pe(e){mo(e)}function go(e){throw e}var vo={closed:!0,next:jt,error:go,complete:jt},yo=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _o(e){return e}function Eo(e){return e.length===0?_o:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var kt=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,n){var i=this,o=So(t)?t:new st(t,r,n);return ve(function(){var s=i,a=s.operator,h=s.source;o.add(a?a.call(o,h):h?i._subscribe(o):i._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 n=this;return r=Vt(r),new r(function(i,o){var s=new st({next:function(a){try{t(a)}catch(h){o(h),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[yo]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Eo(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Vt(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function Vt(e){var t;return(t=e!=null?e:fo.Promise)!==null&&t!==void 0?t:Promise}function xo(e){return e&&F(e.next)&&F(e.error)&&F(e.complete)}function So(e){return e&&e instanceof Lr||xo(e)&&Or(e)}var wo=Br(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ir=function(e){ce(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 n=new Xt(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new wo},t.prototype.next=function(r){var n=this;ve(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=rt(n.currentObservers),a=s.next();!a.done;a=s.next()){var h=a.value;h.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;ve(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;ve(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.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 n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Ar:(this.currentObservers=null,a.push(r),new Le(function(){n.currentObservers=null,ot(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new kt;return r.source=this,r},t.create=function(r,n){return new Xt(r,n)},t}(kt),Xt=function(e){ce(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Ar},t}(Ir),Nr={now:function(){return(Nr.delegate||Date).now()},delegate:void 0},To=function(e){ce(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Nr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,h=n._windowTime;i||(o.push(r),!s&&o.push(a.now()+h)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),h=0;h<a.length&&!r.closed;h+=o?1:2)r.next(a[h]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var h=i.now(),l=0,u=1;u<o.length&&o[u]<=h;u+=2)l=u;l&&o.splice(0,l+1)}},t}(Ir);const Wt=[],zt={},Ho=(e,t=0)=>{if(Wt.indexOf(e)==-1){const r=new To(t);zt[e]=r,Wt.push(e)}return zt[e]};window.emWidgets={topic:Ho};const Co=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 Po(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Bo(e,t){const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Ao(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function Oo(e){tn(e,"svelte-ci1i8",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--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(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;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(--emw--casino-typography, var(--emw--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:70px;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:60px;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(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function Zt(e,t,r){const n=e.slice();return n[41]=t[r],n}function Qt(e,t,r){const n=e.slice();return n[44]=t[r],n}function Lo(e){let t,r,n,i=(e[0]==="vendor"?e[10]("providers"):e[10]("collections"))+"",o,s,a,h,l,u=e[7]>e[8]&&Jt(e),f=xe(e[3]),c=[];for(let d=0;d<f.length;d+=1)c[d]=Kt(Zt(e,f,d));return{c(){t=P("div"),r=P("div"),n=P("p"),o=He(i),s=V(),u&&u.c(),a=V(),h=P("div");for(let d=0;d<c.length;d+=1)c[d].c();E(n,"class","Title"),E(r,"class","CategoriesHeader"),E(h,"class","CategoriesSlider"),E(t,"class",l="CasinoCollectionsProviders "+(e[9]?"Mobile":"")+" "+(e[0]==="vendor"?"Providers":"Collections"))},m(d,m){U(d,t,m),C(t,r),C(r,n),C(n,o),C(r,s),u&&u.m(r,null),C(t,a),C(t,h);for(let b=0;b<c.length;b+=1)c[b]&&c[b].m(h,null);e[25](h)},p(d,m){if(m[0]&1025&&i!==(i=(d[0]==="vendor"?d[10]("providers"):d[10]("collections"))+"")&&ut(o,i),d[7]>d[8]?u?u.p(d,m):(u=Jt(d),u.c(),u.m(r,null)):u&&(u.d(1),u=null),m[0]&24590){f=xe(d[3]);let b;for(b=0;b<f.length;b+=1){const g=Zt(d,f,b);c[b]?c[b].p(g,m):(c[b]=Kt(g),c[b].c(),c[b].m(h,null))}for(;b<c.length;b+=1)c[b].d(1);c.length=f.length}m[0]&513&&l!==(l="CasinoCollectionsProviders "+(d[9]?"Mobile":"")+" "+(d[0]==="vendor"?"Providers":"Collections"))&&E(t,"class",l)},d(d){d&&R(t),u&&u.d(),nr(c,d),e[25](null)}}}function Io(e){let t;return{c(){t=P("div"),E(t,"class","LoadingSpinner")},m(r,n){U(r,t,n)},p:I,d(r){r&&R(t)}}}function Jt(e){let t,r,n,i,o,s;return{c(){t=P("div"),r=P("button"),r.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>',n=V(),i=P("button"),i.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>',E(t,"class","ButtonsContainer")},m(a,h){U(a,t,h),C(t,r),C(t,n),C(t,i),o||(s=[_e(r,"click",e[11]),_e(i,"click",e[12])],o=!0)},p:I,d(a){a&&R(t),o=!1,te(s)}}}function No(e){let t,r=e[41].name+"",n;return{c(){t=P("p"),n=He(r),E(t,"class","CategorySlideTitle")},m(i,o){U(i,t,o),C(t,n)},p(i,o){o[0]&8&&r!==(r=i[41].name+"")&&ut(n,r)},d(i){i&&R(t)}}}function Mo(e){let t,r,n;return{c(){t=P("img"),E(t,"class","CategorySlideLogo"),ye(t.src,r=e[41].icon)||E(t,"src",r),E(t,"alt",n=e[41].name+" icon")},m(i,o){U(i,t,o)},p(i,o){o[0]&8&&!ye(t.src,r=i[41].icon)&&E(t,"src",r),o[0]&8&&n!==(n=i[41].name+" icon")&&E(t,"alt",n)},d(i){i&&R(t)}}}function qt(e){let t,r=e[44].name+"",n,i;return{c(){t=P("p"),n=He(r),E(t,"title",i=e[44].name)},m(o,s){U(o,t,s),C(t,n)},p(o,s){s[0]&8&&r!==(r=o[44].name+"")&&ut(n,r),s[0]&8&&i!==(i=o[44].name)&&E(t,"title",i)},d(o){o&&R(t)}}}function Yt(e){let t,r,n,i,o,s,a,h;function l(){return e[23](e[44])}let u=e[2]=="true"&&qt(e);return{c(){t=P("div"),r=P("img"),o=V(),u&&u.c(),s=V(),E(r,"class","CategorySlideGameImage"),ye(r.src,n=e[44].defaultThumbnail)||E(r,"src",n),E(r,"alt",i=e[44].name),E(t,"class","CategorySlideGames")},m(f,c){U(f,t,c),C(t,r),C(t,o),u&&u.m(t,null),C(t,s),a||(h=_e(r,"click",on(l)),a=!0)},p(f,c){e=f,c[0]&8&&!ye(r.src,n=e[44].defaultThumbnail)&&E(r,"src",n),c[0]&8&&i!==(i=e[44].name)&&E(r,"alt",i),e[2]=="true"?u?u.p(e,c):(u=qt(e),u.c(),u.m(t,s)):u&&(u.d(1),u=null)},d(f){f&&R(t),u&&u.d(),a=!1,h()}}}function Kt(e){let t,r,n,i,o,s,a,h,l;function u(g,_){if(g[1]==="logo")return Mo;if(g[1]==="title")return No}let f=u(e),c=f&&f(e),d=xe(e[41].games),m=[];for(let g=0;g<d.length;g+=1)m[g]=Yt(Qt(e,d,g));function b(){return e[24](e[41])}return{c(){var g,_;t=P("div"),r=P("div"),n=P("div"),c&&c.c(),i=V(),o=P("div");for(let x=0;x<m.length;x+=1)m[x].c();a=V(),E(n,"class","CategorySlideTopContainer"),E(o,"class","CategorySlideGameContainer"),E(r,"class",s="CategorySlide "+(((g=e[41])==null?void 0:g.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),Me(r,"background-image","url("+((_=e[41])==null?void 0:_.background)+")"),Me(r,"background-size","cover"),E(t,"class","CategoriesSliderWrapper Animation")},m(g,_){U(g,t,_),C(t,r),C(r,n),c&&c.m(n,null),C(r,i),C(r,o);for(let x=0;x<m.length;x+=1)m[x]&&m[x].m(o,null);C(t,a),h||(l=_e(r,"click",b),h=!0)},p(g,_){var x,T;if(e=g,f===(f=u(e))&&c?c.p(e,_):(c&&c.d(1),c=f&&f(e),c&&(c.c(),c.m(n,null))),_[0]&8204){d=xe(e[41].games);let H;for(H=0;H<d.length;H+=1){const O=Qt(e,d,H);m[H]?m[H].p(O,_):(m[H]=Yt(O),m[H].c(),m[H].m(o,null))}for(;H<m.length;H+=1)m[H].d(1);m.length=d.length}_[0]&8&&s!==(s="CategorySlide "+(((x=e[41])==null?void 0:x.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&E(r,"class",s),_[0]&8&&Me(r,"background-image","url("+((T=e[41])==null?void 0:T.background)+")")},d(g){g&&R(t),c&&c.d(),nr(m,g),h=!1,l()}}}function Ro(e){let t;function r(o,s){return o[6]?Io:Lo}let n=r(e),i=n(e);return{c(){t=P("div"),i.c()},m(o,s){U(o,t,s),i.m(t,null),e[26](t)},p(o,s){n===(n=r(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(t,null)))},i:I,o:I,d(o){o&&R(t),i.d(),e[26](null)}}}function $o(e,t,r){let n;en(e,ho,p=>r(10,n=p));let{endpoint:i=""}=t,{datasource:o=""}=t,{lang:s=""}=t,{type:a=""}=t,{titletype:h=""}=t,{clientstyling:l=""}=t,{clientstylingurl:u=""}=t,{translationurl:f=""}=t,{collectionprovidersgamenames:c=""}=t,{mbsource:d}=t,m=[],b=!0,g,_=0,x=0,T=0,H,O,k=0,W=50,Ie=!1,$,Rr=window.navigator.userAgent,ct;const $r=()=>{fetch(f).then(B=>B.json()).then(B=>{Object.keys(B).forEach(D=>{Ut(D,B[D])})}).catch(B=>{console.log(B)})};Object.keys(Dt).forEach(p=>{Ut(p,Dt[p])});const ft=()=>{const p=new URL(`${i}/v2/casino/groups/${o}`);p.searchParams.append("language",s),p.searchParams.append("expand","games"),p.searchParams.append("filter",`$and(flags=${a})`),p.searchParams.append("pagination",`offset=${k},limit=${W}`),fetch(p.href).then(B=>B.json()).then(B=>{r(6,b=!1),B.total>W&&(k+=50,W+=50,r(22,Ie=!0));let D=B.items.map(L=>{var gt,vt,yt;return{id:L.id,name:L.name,icon:L.icon?L.icon:(yt=(vt=(gt=L.vendors)==null?void 0:gt.items[0])==null?void 0:vt.subVendors[0])==null?void 0:yt.logo,games:L.games.items.slice(0,4).map(zr=>zr),background:L.background,flag:L.flags}});r(3,m=[...m,...D]),r(7,x=m.length),Gr()})},Gr=()=>{const p=$.getRootNode().host;p.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:p}}))},dt=p=>{var B;O=[...g.children],O.forEach((D,L)=>{D.style.transform=`translateX(${100*(p?L-p:L)}%)`}),H=(B=O[0])==null?void 0:B.getBoundingClientRect().width,Ur()},Ur=()=>{r(8,T=Math.floor(g.clientWidth/H))},pt=()=>{dt(_)},Dr=()=>{_===0?_=x-T:_-T<-1?_=0:_--,pt()},Fr=()=>{_===x-T?_=0:x-T<_+1?_=x-T:_++,pt()},mt=(p,B,D,L)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:p,launchUrl:B,gameName:D,subVendor:L},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${D}`})},bt=p=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:p},window.location.href)},jr=()=>{co(s)};ln(()=>(r(9,ct=Co(Rr)),()=>{}));const kr=p=>mt(p.gameId,p.launchUrl,p.name,p.subVendor),Vr=p=>bt(p.id);function Xr(p){Ee[p?"unshift":"push"](()=>{g=p,r(4,g)})}function Wr(p){Ee[p?"unshift":"push"](()=>{$=p,r(5,$)})}return e.$$set=p=>{"endpoint"in p&&r(15,i=p.endpoint),"datasource"in p&&r(16,o=p.datasource),"lang"in p&&r(17,s=p.lang),"type"in p&&r(0,a=p.type),"titletype"in p&&r(1,h=p.titletype),"clientstyling"in p&&r(18,l=p.clientstyling),"clientstylingurl"in p&&r(19,u=p.clientstylingurl),"translationurl"in p&&r(20,f=p.translationurl),"collectionprovidersgamenames"in p&&r(2,c=p.collectionprovidersgamenames),"mbsource"in p&&r(21,d=p.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&229376&&i&&o&&s&&ft(),e.$$.dirty[0]&24&&m&&g&&dt(),e.$$.dirty[0]&131072&&s&&jr(),e.$$.dirty[0]&262176&&l&&$&&Po($,l),e.$$.dirty[0]&524320&&u&&$&&Bo($,u),e.$$.dirty[0]&2097184&&$&&Ao($,`${d}.Style`),e.$$.dirty[0]&1048576&&f&&$r(),e.$$.dirty[0]&4194304&&Ie&&ft()},[a,h,c,m,g,$,b,x,T,ct,n,Dr,Fr,mt,bt,i,o,s,l,u,f,d,Ie,kr,Vr,Xr,Wr]}class Mr extends En{constructor(t){super(),yn(this,t,$o,Ro,tr,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},Oo,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),M()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),M()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),M()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),M()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),M()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),M()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),M()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),M()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),M()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),M()}}_n(Mr,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=Mr;
|
18
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function ot(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Le=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=rt(s),h=a.next();!h.done;h=a.next()){var l=h.value;l.remove(this)}}catch(b){t={error:b}}finally{try{h&&!h.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(F(u))try{u()}catch(b){o=b instanceof ke?b.errors:[b]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var c=rt(f),d=c.next();!d.done;d=c.next()){var m=d.value;try{Ft(m)}catch(b){o=o!=null?o:[],b instanceof ke?o=it(it([],nt(o)),nt(b.errors)):o.push(b)}}}catch(b){n={error:b}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}if(o)throw new ke(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Ft(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)&&ot(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ot(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Ar=Le.EMPTY;function Or(e){return e instanceof Le||e&&"closed"in e&&F(e.remove)&&F(e.add)&&F(e.unsubscribe)}function Ft(e){F(e)?e():e.unsubscribe()}var fo={Promise:void 0},po={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,it([e,t],nt(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function mo(e){po.setTimeout(function(){throw e})}function jt(){}function ve(e){e()}var Lr=function(e){ce(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Or(r)&&r.add(n)):n.destination=vo,n}return t.create=function(r,n,i){return new st(r,n,i)},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}(Le),bo=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(n){pe(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){pe(n)}else pe(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){pe(r)}},e}(),st=function(e){ce(t,e);function t(r,n,i){var o=e.call(this)||this,s;return F(r)||!r?s={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0}:s=r,o.destination=new bo(s),o}return t}(Lr);function pe(e){mo(e)}function go(e){throw e}var vo={closed:!0,next:jt,error:go,complete:jt},yo=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function _o(e){return e}function Eo(e){return e.length===0?_o:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var kt=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,n){var i=this,o=So(t)?t:new st(t,r,n);return ve(function(){var s=i,a=s.operator,h=s.source;o.add(a?a.call(o,h):h?i._subscribe(o):i._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 n=this;return r=Vt(r),new r(function(i,o){var s=new st({next:function(a){try{t(a)}catch(h){o(h),s.unsubscribe()}},error:o,complete:i});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[yo]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Eo(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Vt(t),new t(function(n,i){var o;r.subscribe(function(s){return o=s},function(s){return i(s)},function(){return n(o)})})},e.create=function(t){return new e(t)},e}();function Vt(e){var t;return(t=e!=null?e:fo.Promise)!==null&&t!==void 0?t:Promise}function xo(e){return e&&F(e.next)&&F(e.error)&&F(e.complete)}function So(e){return e&&e instanceof Lr||xo(e)&&Or(e)}var wo=Br(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ir=function(e){ce(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 n=new Xt(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new wo},t.prototype.next=function(r){var n=this;ve(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=rt(n.currentObservers),a=s.next();!a.done;a=s.next()){var h=a.value;h.next(r)}}catch(l){i={error:l}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;ve(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;ve(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.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 n=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Ar:(this.currentObservers=null,a.push(r),new Le(function(){n.currentObservers=null,ot(a,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,o=n.thrownError,s=n.isStopped;i?r.error(o):s&&r.complete()},t.prototype.asObservable=function(){var r=new kt;return r.source=this,r},t.create=function(r,n){return new Xt(r,n)},t}(kt),Xt=function(e){ce(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Ar},t}(Ir),Nr={now:function(){return(Nr.delegate||Date).now()},delegate:void 0},To=function(e){ce(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Nr);var o=e.call(this)||this;return o._bufferSize=r,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,r),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(r){var n=this,i=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,a=n._timestampProvider,h=n._windowTime;i||(o.push(r),!s&&o.push(a.now()+h)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),h=0;h<a.length&&!r.closed;h+=o?1:2)r.next(a[h]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,o=r._buffer,s=r._infiniteTimeWindow,a=(s?1:2)*n;if(n<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var h=i.now(),l=0,u=1;u<o.length&&o[u]<=h;u+=2)l=u;l&&o.splice(0,l+1)}},t}(Ir);const Wt=[],zt={},Ho=(e,t=0)=>{if(Wt.indexOf(e)==-1){const r=new To(t);zt[e]=r,Wt.push(e)}return zt[e]};window.emWidgets={topic:Ho};const Co=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 Po(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function Bo(e,t){const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Ao(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function Oo(e){tn(e,"svelte-nnjza6",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--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(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;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:var(--emw--border-radius-medium, 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(--emw--casino-typography, var(--emw--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:var(--emw--border-radius-medium, 10px);width:70px;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:var(--emw--border-radius-medium, 10px);width:60px;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(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function Zt(e,t,r){const n=e.slice();return n[41]=t[r],n}function Qt(e,t,r){const n=e.slice();return n[44]=t[r],n}function Lo(e){let t,r,n,i=(e[0]==="vendor"?e[10]("providers"):e[10]("collections"))+"",o,s,a,h,l,u=e[7]>e[8]&&Jt(e),f=xe(e[3]),c=[];for(let d=0;d<f.length;d+=1)c[d]=Kt(Zt(e,f,d));return{c(){t=P("div"),r=P("div"),n=P("p"),o=He(i),s=V(),u&&u.c(),a=V(),h=P("div");for(let d=0;d<c.length;d+=1)c[d].c();E(n,"class","Title"),E(r,"class","CategoriesHeader"),E(h,"class","CategoriesSlider"),E(t,"class",l="CasinoCollectionsProviders "+(e[9]?"Mobile":"")+" "+(e[0]==="vendor"?"Providers":"Collections"))},m(d,m){U(d,t,m),C(t,r),C(r,n),C(n,o),C(r,s),u&&u.m(r,null),C(t,a),C(t,h);for(let b=0;b<c.length;b+=1)c[b]&&c[b].m(h,null);e[25](h)},p(d,m){if(m[0]&1025&&i!==(i=(d[0]==="vendor"?d[10]("providers"):d[10]("collections"))+"")&&ut(o,i),d[7]>d[8]?u?u.p(d,m):(u=Jt(d),u.c(),u.m(r,null)):u&&(u.d(1),u=null),m[0]&24590){f=xe(d[3]);let b;for(b=0;b<f.length;b+=1){const g=Zt(d,f,b);c[b]?c[b].p(g,m):(c[b]=Kt(g),c[b].c(),c[b].m(h,null))}for(;b<c.length;b+=1)c[b].d(1);c.length=f.length}m[0]&513&&l!==(l="CasinoCollectionsProviders "+(d[9]?"Mobile":"")+" "+(d[0]==="vendor"?"Providers":"Collections"))&&E(t,"class",l)},d(d){d&&R(t),u&&u.d(),nr(c,d),e[25](null)}}}function Io(e){let t;return{c(){t=P("div"),E(t,"class","LoadingSpinner")},m(r,n){U(r,t,n)},p:I,d(r){r&&R(t)}}}function Jt(e){let t,r,n,i,o,s;return{c(){t=P("div"),r=P("button"),r.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>',n=V(),i=P("button"),i.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>',E(t,"class","ButtonsContainer")},m(a,h){U(a,t,h),C(t,r),C(t,n),C(t,i),o||(s=[_e(r,"click",e[11]),_e(i,"click",e[12])],o=!0)},p:I,d(a){a&&R(t),o=!1,te(s)}}}function No(e){let t,r=e[41].name+"",n;return{c(){t=P("p"),n=He(r),E(t,"class","CategorySlideTitle")},m(i,o){U(i,t,o),C(t,n)},p(i,o){o[0]&8&&r!==(r=i[41].name+"")&&ut(n,r)},d(i){i&&R(t)}}}function Mo(e){let t,r,n;return{c(){t=P("img"),E(t,"class","CategorySlideLogo"),ye(t.src,r=e[41].icon)||E(t,"src",r),E(t,"alt",n=e[41].name+" icon")},m(i,o){U(i,t,o)},p(i,o){o[0]&8&&!ye(t.src,r=i[41].icon)&&E(t,"src",r),o[0]&8&&n!==(n=i[41].name+" icon")&&E(t,"alt",n)},d(i){i&&R(t)}}}function qt(e){let t,r=e[44].name+"",n,i;return{c(){t=P("p"),n=He(r),E(t,"title",i=e[44].name)},m(o,s){U(o,t,s),C(t,n)},p(o,s){s[0]&8&&r!==(r=o[44].name+"")&&ut(n,r),s[0]&8&&i!==(i=o[44].name)&&E(t,"title",i)},d(o){o&&R(t)}}}function Yt(e){let t,r,n,i,o,s,a,h;function l(){return e[23](e[44])}let u=e[2]=="true"&&qt(e);return{c(){t=P("div"),r=P("img"),o=V(),u&&u.c(),s=V(),E(r,"class","CategorySlideGameImage"),ye(r.src,n=e[44].defaultThumbnail)||E(r,"src",n),E(r,"alt",i=e[44].name),E(t,"class","CategorySlideGames")},m(f,c){U(f,t,c),C(t,r),C(t,o),u&&u.m(t,null),C(t,s),a||(h=_e(r,"click",on(l)),a=!0)},p(f,c){e=f,c[0]&8&&!ye(r.src,n=e[44].defaultThumbnail)&&E(r,"src",n),c[0]&8&&i!==(i=e[44].name)&&E(r,"alt",i),e[2]=="true"?u?u.p(e,c):(u=qt(e),u.c(),u.m(t,s)):u&&(u.d(1),u=null)},d(f){f&&R(t),u&&u.d(),a=!1,h()}}}function Kt(e){let t,r,n,i,o,s,a,h,l;function u(g,_){if(g[1]==="logo")return Mo;if(g[1]==="title")return No}let f=u(e),c=f&&f(e),d=xe(e[41].games),m=[];for(let g=0;g<d.length;g+=1)m[g]=Yt(Qt(e,d,g));function b(){return e[24](e[41])}return{c(){var g,_;t=P("div"),r=P("div"),n=P("div"),c&&c.c(),i=V(),o=P("div");for(let x=0;x<m.length;x+=1)m[x].c();a=V(),E(n,"class","CategorySlideTopContainer"),E(o,"class","CategorySlideGameContainer"),E(r,"class",s="CategorySlide "+(((g=e[41])==null?void 0:g.flag[0])==="vendor"?"CategorySlideNoHighlight":"")),Me(r,"background-image","url("+((_=e[41])==null?void 0:_.background)+")"),Me(r,"background-size","cover"),E(t,"class","CategoriesSliderWrapper Animation")},m(g,_){U(g,t,_),C(t,r),C(r,n),c&&c.m(n,null),C(r,i),C(r,o);for(let x=0;x<m.length;x+=1)m[x]&&m[x].m(o,null);C(t,a),h||(l=_e(r,"click",b),h=!0)},p(g,_){var x,T;if(e=g,f===(f=u(e))&&c?c.p(e,_):(c&&c.d(1),c=f&&f(e),c&&(c.c(),c.m(n,null))),_[0]&8204){d=xe(e[41].games);let H;for(H=0;H<d.length;H+=1){const O=Qt(e,d,H);m[H]?m[H].p(O,_):(m[H]=Yt(O),m[H].c(),m[H].m(o,null))}for(;H<m.length;H+=1)m[H].d(1);m.length=d.length}_[0]&8&&s!==(s="CategorySlide "+(((x=e[41])==null?void 0:x.flag[0])==="vendor"?"CategorySlideNoHighlight":""))&&E(r,"class",s),_[0]&8&&Me(r,"background-image","url("+((T=e[41])==null?void 0:T.background)+")")},d(g){g&&R(t),c&&c.d(),nr(m,g),h=!1,l()}}}function Ro(e){let t;function r(o,s){return o[6]?Io:Lo}let n=r(e),i=n(e);return{c(){t=P("div"),i.c()},m(o,s){U(o,t,s),i.m(t,null),e[26](t)},p(o,s){n===(n=r(o))&&i?i.p(o,s):(i.d(1),i=n(o),i&&(i.c(),i.m(t,null)))},i:I,o:I,d(o){o&&R(t),i.d(),e[26](null)}}}function $o(e,t,r){let n;en(e,ho,p=>r(10,n=p));let{endpoint:i=""}=t,{datasource:o=""}=t,{lang:s=""}=t,{type:a=""}=t,{titletype:h=""}=t,{clientstyling:l=""}=t,{clientstylingurl:u=""}=t,{translationurl:f=""}=t,{collectionprovidersgamenames:c=""}=t,{mbsource:d}=t,m=[],b=!0,g,_=0,x=0,T=0,H,O,k=0,W=50,Ie=!1,$,Rr=window.navigator.userAgent,ct;const $r=()=>{fetch(f).then(B=>B.json()).then(B=>{Object.keys(B).forEach(D=>{Ut(D,B[D])})}).catch(B=>{console.log(B)})};Object.keys(Dt).forEach(p=>{Ut(p,Dt[p])});const ft=()=>{const p=new URL(`${i}/v2/casino/groups/${o}`);p.searchParams.append("language",s),p.searchParams.append("expand","games"),p.searchParams.append("filter",`$and(flags=${a})`),p.searchParams.append("pagination",`offset=${k},limit=${W}`),fetch(p.href).then(B=>B.json()).then(B=>{r(6,b=!1),B.total>W&&(k+=50,W+=50,r(22,Ie=!0));let D=B.items.map(L=>{var gt,vt,yt;return{id:L.id,name:L.name,icon:L.icon?L.icon:(yt=(vt=(gt=L.vendors)==null?void 0:gt.items[0])==null?void 0:vt.subVendors[0])==null?void 0:yt.logo,games:L.games.items.slice(0,4).map(zr=>zr),background:L.background,flag:L.flags}});r(3,m=[...m,...D]),r(7,x=m.length),Gr()})},Gr=()=>{const p=$.getRootNode().host;p.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:p}}))},dt=p=>{var B;O=[...g.children],O.forEach((D,L)=>{D.style.transform=`translateX(${100*(p?L-p:L)}%)`}),H=(B=O[0])==null?void 0:B.getBoundingClientRect().width,Ur()},Ur=()=>{r(8,T=Math.floor(g.clientWidth/H))},pt=()=>{dt(_)},Dr=()=>{_===0?_=x-T:_-T<-1?_=0:_--,pt()},Fr=()=>{_===x-T?_=0:x-T<_+1?_=x-T:_++,pt()},mt=(p,B,D,L)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:p,launchUrl:B,gameName:D,subVendor:L},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${D}`})},bt=p=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:p},window.location.href)},jr=()=>{co(s)};ln(()=>(r(9,ct=Co(Rr)),()=>{}));const kr=p=>mt(p.gameId,p.launchUrl,p.name,p.subVendor),Vr=p=>bt(p.id);function Xr(p){Ee[p?"unshift":"push"](()=>{g=p,r(4,g)})}function Wr(p){Ee[p?"unshift":"push"](()=>{$=p,r(5,$)})}return e.$$set=p=>{"endpoint"in p&&r(15,i=p.endpoint),"datasource"in p&&r(16,o=p.datasource),"lang"in p&&r(17,s=p.lang),"type"in p&&r(0,a=p.type),"titletype"in p&&r(1,h=p.titletype),"clientstyling"in p&&r(18,l=p.clientstyling),"clientstylingurl"in p&&r(19,u=p.clientstylingurl),"translationurl"in p&&r(20,f=p.translationurl),"collectionprovidersgamenames"in p&&r(2,c=p.collectionprovidersgamenames),"mbsource"in p&&r(21,d=p.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&229376&&i&&o&&s&&ft(),e.$$.dirty[0]&24&&m&&g&&dt(),e.$$.dirty[0]&131072&&s&&jr(),e.$$.dirty[0]&262176&&l&&$&&Po($,l),e.$$.dirty[0]&524320&&u&&$&&Bo($,u),e.$$.dirty[0]&2097184&&$&&Ao($,`${d}.Style`),e.$$.dirty[0]&1048576&&f&&$r(),e.$$.dirty[0]&4194304&&Ie&&ft()},[a,h,c,m,g,$,b,x,T,ct,n,Dr,Fr,mt,bt,i,o,s,l,u,f,d,Ie,kr,Vr,Xr,Wr]}class Mr extends En{constructor(t){super(),yn(this,t,$o,Ro,tr,{endpoint:15,datasource:16,lang:17,type:0,titletype:1,clientstyling:18,clientstylingurl:19,translationurl:20,collectionprovidersgamenames:2,mbsource:21},Oo,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),M()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),M()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),M()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),M()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),M()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),M()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),M()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),M()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),M()}get mbsource(){return this.$$.ctx[21]}set mbsource(t){this.$$set({mbsource:t}),M()}}_n(Mr,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=Mr;
|
package/components/{CasinoCollectionsProviders-BvCE1CcG.js → CasinoCollectionsProviders-Dk0oppKx.js}
RENAMED
@@ -4361,7 +4361,7 @@ function mo(e, t, r) {
|
|
4361
4361
|
}
|
4362
4362
|
}
|
4363
4363
|
function bo(e) {
|
4364
|
-
Dr(e, "svelte-
|
4364
|
+
Dr(e, "svelte-nnjza6", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--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(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;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:var(--emw--border-radius-medium, 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(--emw--casino-typography, var(--emw--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:var(--emw--border-radius-medium, 10px);width:70px;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:var(--emw--border-radius-medium, 10px);width:60px;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(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
4365
4365
|
}
|
4366
4366
|
function Ut(e, t, r) {
|
4367
4367
|
const n = e.slice();
|
package/components/{CasinoCollectionsProviders-BtbkRi_X.js → CasinoCollectionsProviders-Dr6Zug99.js}
RENAMED
@@ -4398,7 +4398,7 @@ function Bo(e, t, r) {
|
|
4398
4398
|
}
|
4399
4399
|
}
|
4400
4400
|
function Ao(e) {
|
4401
|
-
en(e, "svelte-
|
4401
|
+
en(e, "svelte-nnjza6", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--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(--emw--casino-typography, var(--emw--color-white, #FFFFFF));background-color:inherit;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:var(--emw--border-radius-medium, 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(--emw--casino-typography, var(--emw--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:var(--emw--border-radius-medium, 10px);width:70px;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:var(--emw--border-radius-medium, 10px);width:60px;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(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
4402
4402
|
}
|
4403
4403
|
function Zt(e, t, r) {
|
4404
4404
|
const n = e.slice();
|
@@ -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/CasinoCollectionsProviders-
|
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/CasinoCollectionsProviders-BDhWKZsF.cjs")).then(({default:t})=>{!customElements.get("casino-collections-providers")&&customElements.define("casino-collections-providers",t.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoCollectionsProviders-
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoCollectionsProviders-Dr6Zug99.js").then(({ default: t }) => {
|
14
14
|
!customElements.get("casino-collections-providers") && customElements.define("casino-collections-providers", t.element);
|
15
15
|
});
|
16
16
|
}
|