@everymatrix/casino-my-games 1.0.69 → 1.0.71

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.
@@ -0,0 +1,3 @@
1
+ "use strict";const r=require("./CasinoFavoritesSection-B2WQVMPJ.cjs");function E(l){return typeof l=="function"}function pe(l){var t=function(i){Error.call(i),i.stack=new Error().stack},e=l(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var K=pe(function(l){return function(e){l(this),this.message=e?e.length+` errors occurred during unsubscription:
2
+ `+e.map(function(i,n){return n+1+") "+i.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function X(l,t){if(l){var e=l.indexOf(t);0<=e&&l.splice(e,1)}}var N=function(){function l(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return l.prototype.unsubscribe=function(){var t,e,i,n,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=r.__values(a),d=u.next();!d.done;d=u.next()){var h=d.value;h.remove(this)}}catch(b){t={error:b}}finally{try{d&&!d.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var p=this.initialTeardown;if(E(p))try{p()}catch(b){s=b instanceof K?b.errors:[b]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var j=r.__values(g),F=j.next();!F.done;F=j.next()){var w=F.value;try{te(w)}catch(b){s=s!=null?s:[],b instanceof K?s=r.__spreadArray(r.__spreadArray([],r.__read(s)),r.__read(b.errors)):s.push(b)}}}catch(b){i={error:b}}finally{try{F&&!F.done&&(n=j.return)&&n.call(j)}finally{if(i)throw i.error}}}if(s)throw new K(s)}},l.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)te(t);else{if(t instanceof l){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},l.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},l.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},l.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&X(e,t)},l.prototype.remove=function(t){var e=this._finalizers;e&&X(e,t),t instanceof l&&t._removeParent(this)},l.EMPTY=function(){var t=new l;return t.closed=!0,t}(),l}(),fe=N.EMPTY;function ve(l){return l instanceof N||l&&"closed"in l&&E(l.remove)&&E(l.add)&&E(l.unsubscribe)}function te(l){E(l)?l():l.unsubscribe()}var ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},he={setTimeout:function(l,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,r.__spreadArray([l,t],r.__read(e)))},clearTimeout:function(l){var t=he.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(l)},delegate:void 0};function Fe(l){he.setTimeout(function(){throw l})}function re(){}function G(l){l()}var je=function(l){r.__extends(t,l);function t(e){var i=l.call(this)||this;return i.isStopped=!1,e?(i.destination=e,ve(e)&&e.add(i)):i.destination=xe,i}return t.create=function(e,i,n){return new $(e,i,n)},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,l.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}(N),we=Function.prototype.bind;function Q(l,t){return we.call(l,t)}var Se=function(){function l(t){this.partialObserver=t}return l.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){Z(i)}},l.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){Z(i)}else Z(t)},l.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Z(e)}},l}(),$=function(l){r.__extends(t,l);function t(e,i,n){var s=l.call(this)||this,a;if(E(e)||!e)a={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:n!=null?n:void 0};else{var u;s&&ye.useDeprecatedNextContext?(u=Object.create(e),u.unsubscribe=function(){return s.unsubscribe()},a={next:e.next&&Q(e.next,u),error:e.error&&Q(e.error,u),complete:e.complete&&Q(e.complete,u)}):a=e}return s.destination=new Se(a),s}return t}(je);function Z(l){Fe(l)}function Ce(l){throw l}var xe={closed:!0,next:re,error:Ce,complete:re},ke=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Pe(l){return l}function Ee(l){return l.length===0?Pe:l.length===1?l[0]:function(e){return l.reduce(function(i,n){return n(i)},e)}}var le=function(){function l(t){t&&(this._subscribe=t)}return l.prototype.lift=function(t){var e=new l;return e.source=this,e.operator=t,e},l.prototype.subscribe=function(t,e,i){var n=this,s=Te(t)?t:new $(t,e,i);return G(function(){var a=n,u=a.operator,d=a.source;s.add(u?u.call(s,d):d?n._subscribe(s):n._trySubscribe(s))}),s},l.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},l.prototype.forEach=function(t,e){var i=this;return e=ie(e),new e(function(n,s){var a=new $({next:function(u){try{t(u)}catch(d){s(d),a.unsubscribe()}},error:s,complete:n});i.subscribe(a)})},l.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},l.prototype[ke]=function(){return this},l.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ee(t)(this)},l.prototype.toPromise=function(t){var e=this;return t=ie(t),new t(function(i,n){var s;e.subscribe(function(a){return s=a},function(a){return n(a)},function(){return i(s)})})},l.create=function(t){return new l(t)},l}();function ie(l){var t;return(t=l!=null?l:ye.Promise)!==null&&t!==void 0?t:Promise}function Ie(l){return l&&E(l.next)&&E(l.error)&&E(l.complete)}function Te(l){return l&&l instanceof je||Ie(l)&&ve(l)}var Le=pe(function(l){return function(){l(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),me=function(l){r.__extends(t,l);function t(){var e=l.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new ne(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Le},t.prototype.next=function(e){var i=this;G(function(){var n,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=r.__values(i.currentObservers),u=a.next();!u.done;u=a.next()){var d=u.value;d.next(e)}}catch(h){n={error:h}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var i=this;G(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var n=i.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;G(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),l.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,n=this,s=n.hasError,a=n.isStopped,u=n.observers;return s||a?fe:(this.currentObservers=null,u.push(e),new N(function(){i.currentObservers=null,X(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,n=i.hasError,s=i.thrownError,a=i.isStopped;n?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new le;return e.source=this,e},t.create=function(e,i){return new ne(e,i)},t}(le),ne=function(l){r.__extends(t,l);function t(e,i){var n=l.call(this)||this;return n.destination=e,n.source=i,n}return t.prototype.next=function(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)},t.prototype.error=function(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:fe},t}(me),be={now:function(){return(be.delegate||Date).now()},delegate:void 0},Oe=function(l){r.__extends(t,l);function t(e,i,n){e===void 0&&(e=1/0),i===void 0&&(i=1/0),n===void 0&&(n=be);var s=l.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=n,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,n=i.isStopped,s=i._buffer,a=i._infiniteTimeWindow,u=i._timestampProvider,d=i._windowTime;n||(s.push(e),!a&&s.push(u.now()+d)),this._trimBuffer(),l.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),n=this,s=n._infiniteTimeWindow,a=n._buffer,u=a.slice(),d=0;d<u.length&&!e.closed;d+=s?1:2)e.next(u[d]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,n=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*i;if(i<1/0&&u<s.length&&s.splice(0,s.length-u),!a){for(var d=n.now(),h=0,p=1;p<s.length&&s[p]<=d;p+=2)h=p;h&&s.splice(0,h+1)}},t}(me);const se=[],oe={},Ae=(l,t=0)=>{if(se.indexOf(l)==-1){const e=new Oe(t);oe[l]=e,se.push(l)}return oe[l]};window.emWidgets={topic:Ae};const ge=l=>!!(l.toLowerCase().match(/android/i)||l.toLowerCase().match(/blackberry|bb/i)||l.toLowerCase().match(/iphone|ipad|ipod/i)||l.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),_e=l=>l.toLowerCase().match(/android/i)?"Android":l.toLowerCase().match(/iphone/i)?"iPhone":l.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Me(l,t){const e=window.navigator.userAgent;return ge(e)?t=l.filter(i=>{if(i.gameModel&&(i.gameModel.platform.includes("iPad")||i.gameModel.platform.includes("iPhone")||i.gameModel.platform.includes("Android")))return i}):t=l.filter(i=>{if(i.gameModel&&i.gameModel.platform.includes("PC"))return i}),t}function De({withLocale:l,translations:t}){r.$locale.subscribe(e=>{e==null&&(r.$dictionary.set(t),r.$locale.set(l))})}function ae(l,t){r.addMessages(l,t)}const ce={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Sağlayıcılar:",filterby:"Filtrele:",all:"Hepsi",clear:"Tümünü Temizle"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"}};function Be(l){r.append_styles(l,"svelte-j02zyj",'.SearchLoading.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.FilterContainer.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{background-color:var(--emfe-w-color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{border-radius:5px 5px 0 0}.FilterMainArea.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{display:flex;align-items:center}.FilterMainArea.svelte-j02zyj svg.svelte-j02zyj.svelte-j02zyj{margin-right:16px}.FilterName.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{font-size:11px;line-height:12px;color:var(--emfe-w-color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{display:flex;flex-direction:column}.FilterValueContainer.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj::-webkit-scrollbar{display:none}.FilterItem.svelte-j02zyj label.svelte-j02zyj.svelte-j02zyj{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem.svelte-j02zyj input.svelte-j02zyj.svelte-j02zyj{cursor:pointer;margin-right:10px}.FilterItem.svelte-j02zyj:hover input.svelte-j02zyj~.FiltersCheckmark.svelte-j02zyj{background-color:transparent;border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.FilterItem.svelte-j02zyj input.svelte-j02zyj:checked~.FiltersCheckmark.svelte-j02zyj{background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.FilterItem.svelte-j02zyj .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj{transition:all 0.05s ease-in;margin-right:15px}.FilterItem.svelte-j02zyj .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj:after{content:"";position:absolute;left:9px;display:none}.FilterItem.svelte-j02zyj input.svelte-j02zyj:checked~.FiltersCheckmark.svelte-j02zyj:after{display:block}.FilterItem.svelte-j02zyj .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emfe-w-color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit.svelte-j02zyj .FilterItemWithLogos .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj{margin:0}.FilterLabel.svelte-j02zyj input.svelte-j02zyj.svelte-j02zyj{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel.svelte-j02zyj .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emfe-w-color-white, #FFFFFF)}.FilterLabel.svelte-j02zyj .FilterItemLabel.svelte-j02zyj.svelte-j02zyj{width:100%;display:flex;justify-content:space-between}.FilterItemWithLogos.svelte-j02zyj label.svelte-j02zyj.svelte-j02zyj{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos.svelte-j02zyj label img.svelte-j02zyj.svelte-j02zyj{width:70px}.FilterLabel.svelte-j02zyj input.svelte-j02zyj:checked+span.svelte-j02zyj{font-weight:600}.FilterCounter.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{margin:20px auto;border:0;color:#fff;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj:disabled{background:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{max-width:initial}.FilterDropdownContainer.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{width:100%;margin-bottom:20px}.FilterDropdown.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{margin-block-start:0;gap:14px}.FilterItemWithLogos.svelte-j02zyj label.svelte-j02zyj.svelte-j02zyj{justify-content:center}.FilerContainerSplit.svelte-j02zyj .FilterSelector.svelte-j02zyj.svelte-j02zyj{padding:7px}.FilerContainerSplit.svelte-j02zyj .FilterSelector .FilterCounter.svelte-j02zyj.svelte-j02zyj{margin-left:0}.FilerContainerSplit.svelte-j02zyj .FilterMainArea svg.svelte-j02zyj.svelte-j02zyj{margin:0 10px}.FilerContainerSplit.svelte-j02zyj .FilterDropdown.svelte-j02zyj.svelte-j02zyj{padding:0 5px;box-sizing:border-box}.FilerContainerSplit.svelte-j02zyj .FilterDropdownContainer.svelte-j02zyj.svelte-j02zyj{top:42px}.FilerContainerSplit.svelte-j02zyj .ClearFilters.svelte-j02zyj.svelte-j02zyj{padding:8px 20px;font-size:15px}.FilterLabel.svelte-j02zyj .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj{margin-right:15px}.FilterItem.FilterItemWithLogos.svelte-j02zyj.svelte-j02zyj.svelte-j02zyj{display:flex;align-items:center;justify-content:center}.FilerContainerSplit.svelte-j02zyj .FilterItemWithLogos .FiltersCheckmark.svelte-j02zyj.svelte-j02zyj{margin:0 20px 0 0}.FilerContainerSplit.svelte-j02zyj .FilterItem label.svelte-j02zyj.svelte-j02zyj{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem.svelte-j02zyj label.svelte-j02zyj>.svelte-j02zyj{pointer-events:none}}')}function ue(l,t,e){const i=l.slice();return i[36]=t[e],i[37]=t,i[38]=e,i}function We(l){let t,e,i,n,s,a,u,d,h=l[11]("filterby")+"",p,g,j,F,w=l[11]("providers")+"",b,z,f,_,m,k,I,S,V,P,L,H,x,M=l[11]("clear")+"",D,O,B,A,W,J;function q(c,y){return c[7]?Ve:Re}let U=q(l),C=U(l),T=r.ensure_array_like(l[5]),o=[];for(let c=0;c<T.length;c+=1)o[c]=de(ue(l,T,c));return{c(){t=r.element("div"),e=r.element("div"),i=r.element("div"),n=r.svg_element("svg"),s=r.svg_element("path"),a=r.space(),u=r.element("div"),d=r.element("span"),p=r.text(h),g=r.space(),j=r.element("div"),F=r.element("span"),b=r.text(w),z=r.space(),C.c(),f=r.space(),_=r.element("span"),m=r.svg_element("svg"),k=r.svg_element("path"),V=r.space(),P=r.element("div"),L=r.element("ul");for(let c=0;c<o.length;c+=1)o[c].c();H=r.space(),x=r.element("button"),D=r.text(M),r.attr(s,"id","noun_filter_736223"),r.attr(s,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),r.attr(s,"transform","translate(-5 -6.2)"),r.attr(s,"fill","#fff"),r.attr(n,"xmlns","http://www.w3.org/2000/svg"),r.attr(n,"width","16"),r.attr(n,"height","16"),r.attr(n,"viewBox","0 0 16 16"),r.attr(n,"class","svelte-j02zyj"),r.attr(d,"class","FilterName svelte-j02zyj"),r.attr(j,"class","FilterValueContainer svelte-j02zyj"),r.attr(u,"class","FilterTextContainer svelte-j02zyj"),r.attr(i,"class","FilterMainArea svelte-j02zyj"),r.attr(k,"id","arrow"),r.attr(k,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),r.attr(k,"transform","translate(-274.511 -441.088)"),r.attr(k,"fill","#d1d1d1"),r.attr(m,"xmlns","http://www.w3.org/2000/svg"),r.attr(m,"width","14"),r.attr(m,"height","6.835"),r.attr(m,"viewBox","0 0 14 6.835"),r.attr(m,"class","svelte-j02zyj"),r.attr(_,"class",I="TriangleInactive "+(l[4]?"TriangleActive":"")+" svelte-j02zyj"),r.attr(e,"class",S="FilterSelector "+(l[4]?"FilterSelectorOpen":"")+" svelte-j02zyj"),r.attr(L,"class","FilterDropdown svelte-j02zyj"),r.attr(x,"class","ClearFilters svelte-j02zyj"),x.disabled=O=l[7]&&l[6].length!=l[5].length,r.attr(P,"class",B="FilterDropdownContainer "+(l[4]?"FilterOpen":"")+" svelte-j02zyj"),r.attr(t,"class",A="FilterContainer "+(l[0]=="true"&&l[1]=="true"?"FilerContainerSplit":"")+" svelte-j02zyj")},m(c,y){r.insert(c,t,y),r.append(t,e),r.append(e,i),r.append(i,n),r.append(n,s),r.append(i,a),r.append(i,u),r.append(u,d),r.append(d,p),r.append(u,g),r.append(u,j),r.append(j,F),r.append(F,b),r.append(j,z),C.m(j,null),r.append(e,f),r.append(e,_),r.append(_,m),r.append(m,k),r.append(t,V),r.append(t,P),r.append(P,L);for(let v=0;v<o.length;v+=1)o[v]&&o[v].m(L,null);r.append(P,H),r.append(P,x),r.append(x,D),W||(J=[r.listen(e,"click",l[22]),r.listen(x,"click",l[25])],W=!0)},p(c,y){if(y[0]&2048&&h!==(h=c[11]("filterby")+"")&&r.set_data(p,h),y[0]&2048&&w!==(w=c[11]("providers")+"")&&r.set_data(b,w),U===(U=q(c))&&C?C.p(c,y):(C.d(1),C=U(c),C&&(C.c(),C.m(j,null))),y[0]&16&&I!==(I="TriangleInactive "+(c[4]?"TriangleActive":"")+" svelte-j02zyj")&&r.attr(_,"class",I),y[0]&16&&S!==(S="FilterSelector "+(c[4]?"FilterSelectorOpen":"")+" svelte-j02zyj")&&r.attr(e,"class",S),y[0]&8228){T=r.ensure_array_like(c[5]);let v;for(v=0;v<T.length;v+=1){const R=ue(c,T,v);o[v]?o[v].p(R,y):(o[v]=de(R),o[v].c(),o[v].m(L,null))}for(;v<o.length;v+=1)o[v].d(1);o.length=T.length}y[0]&2048&&M!==(M=c[11]("clear")+"")&&r.set_data(D,M),y[0]&224&&O!==(O=c[7]&&c[6].length!=c[5].length)&&(x.disabled=O),y[0]&16&&B!==(B="FilterDropdownContainer "+(c[4]?"FilterOpen":"")+" svelte-j02zyj")&&r.attr(P,"class",B),y[0]&3&&A!==(A="FilterContainer "+(c[0]=="true"&&c[1]=="true"?"FilerContainerSplit":"")+" svelte-j02zyj")&&r.attr(t,"class",A)},d(c){c&&r.detach(t),C.d(),r.destroy_each(o,c),W=!1,r.run_all(J)}}}function Ue(l){let t,e=l[11]("500")+"",i;return{c(){t=r.element("p"),i=r.text(e),r.attr(t,"class","SearchLoading svelte-j02zyj")},m(n,s){r.insert(n,t,s),r.append(t,i)},p(n,s){s[0]&2048&&e!==(e=n[11]("500")+"")&&r.set_data(i,e)},d(n){n&&r.detach(t)}}}function Re(l){let t,e;return{c(){t=r.element("span"),e=r.text(l[8]),r.attr(t,"class","FilterCounter svelte-j02zyj")},m(i,n){r.insert(i,t,n),r.append(t,e)},p(i,n){n[0]&256&&r.set_data(e,i[8])},d(i){i&&r.detach(t)}}}function Ve(l){let t,e=l[11]("all")+"",i;return{c(){t=r.element("span"),i=r.text(e),r.attr(t,"class","FilterCounter svelte-j02zyj")},m(n,s){r.insert(n,t,s),r.append(t,i)},p(n,s){s[0]&2048&&e!==(e=n[11]("all")+"")&&r.set_data(i,e)},d(n){n&&r.detach(t)}}}function He(l){let t,e;return{c(){t=r.element("img"),r.src_url_equal(t.src,e=l[36].logo)||r.attr(t,"src",e),r.attr(t,"alt","vendor logo"),r.attr(t,"class","svelte-j02zyj")},m(i,n){r.insert(i,t,n)},p(i,n){n[0]&32&&!r.src_url_equal(t.src,e=i[36].logo)&&r.attr(t,"src",e)},d(i){i&&r.detach(t)}}}function Je(l){let t,e,i=l[36].name+"",n,s,a,u,d=l[36].games.count+"",h,p;return{c(){t=r.element("div"),e=r.element("span"),n=r.text(i),s=r.space(),a=r.element("span"),u=r.text("("),h=r.text(d),p=r.text(")"),r.attr(t,"class","FilterItemLabel svelte-j02zyj")},m(g,j){r.insert(g,t,j),r.append(t,e),r.append(e,n),r.append(t,s),r.append(t,a),r.append(a,u),r.append(a,h),r.append(a,p)},p(g,j){j[0]&32&&i!==(i=g[36].name+"")&&r.set_data(n,i),j[0]&32&&d!==(d=g[36].games.count+"")&&r.set_data(h,d)},d(g){g&&r.detach(t)}}}function de(l){let t,e,i,n,s,a,u,d,h,p,g,j;function F(){l[23].call(i,l[37],l[38])}function w(){return l[24](l[36])}function b(_,m){if(_[2]==="false")return Je;if(_[2]==="true")return He}let z=b(l),f=z&&z(l);return{c(){t=r.element("li"),e=r.element("label"),i=r.element("input"),s=r.space(),a=r.element("span"),u=r.space(),f&&f.c(),d=r.space(),r.attr(i,"type","checkbox"),r.attr(i,"name","checkbox"),i.__value=n=l[36].name,r.set_input_value(i,i.__value),r.attr(i,"class","svelte-j02zyj"),r.attr(a,"class","FiltersCheckmark svelte-j02zyj"),r.attr(e,"class","FilterLabel svelte-j02zyj"),r.attr(t,"class",h="FilterItem "+(l[2]==="true"?"FilterItemWithLogos":"")+" svelte-j02zyj"),t.value=p=l[36].name},m(_,m){r.insert(_,t,m),r.append(t,e),r.append(e,i),i.checked=l[36].isFilterSelected,r.append(e,s),r.append(e,a),r.append(e,u),f&&f.m(e,null),r.append(t,d),g||(j=[r.listen(i,"change",F),r.listen(i,"click",w)],g=!0)},p(_,m){l=_,m[0]&32&&n!==(n=l[36].name)&&(i.__value=n,r.set_input_value(i,i.__value)),m[0]&32&&(i.checked=l[36].isFilterSelected),z===(z=b(l))&&f?f.p(l,m):(f&&f.d(1),f=z&&z(l),f&&(f.c(),f.m(e,null))),m[0]&4&&h!==(h="FilterItem "+(l[2]==="true"?"FilterItemWithLogos":"")+" svelte-j02zyj")&&r.attr(t,"class",h),m[0]&32&&p!==(p=l[36].name)&&(t.value=p)},d(_){_&&r.detach(t),f&&f.d(),g=!1,r.run_all(j)}}}function qe(l){let t;function e(s,a){if(s[10])return Ue;if(!s[9])return We}let i=e(l),n=i&&i(l);return{c(){t=r.element("div"),n&&n.c()},m(s,a){r.insert(s,t,a),n&&n.m(t,null),l[26](t)},p(s,a){i===(i=e(s))&&n?n.p(s,a):(n&&n.d(1),n=i&&i(s),n&&(n.c(),n.m(t,null)))},i:r.noop,o:r.noop,d(s){s&&r.detach(t),n&&n.d(),l[26](null)}}}function Ye(l,t,e){let i;r.component_subscribe(l,r.$format,o=>e(11,i=o));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:a=""}=t,{translationurl:u=""}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{categoryid:p=""}=t,{addfilterselector:g="false"}=t,{addsortingselector:j="false"}=t,{filterbylogo:F="false"}=t,w=!1,b=window.navigator.userAgent,z=[],f=[],_={},m=!1,k=0,I=!0,S,V=!1;De({withLocale:"en",translations:{}});const P=()=>{fetch(u).then(c=>c.json()).then(c=>{Object.keys(c).forEach(y=>{ae(y,c[y])})}).catch(c=>{console.log(c)})};Object.keys(ce).forEach(o=>{ae(o,ce[o])});const L=()=>{let o=document.createElement("style");o.innerHTML=d,S.appendChild(o)},H=()=>{let o=document.createElement("style");fetch(new URL(h)).then(c=>c.text()).then(c=>{o.innerHTML=c,setTimeout(()=>{S.appendChild(o)},1)})};_[p]&&(_={[p]:[]});const x=()=>{e(4,w=!w),window.postMessage({type:"FilterOpened"},window.location.href)},M=o=>(e(9,I=!0),new Promise((c,y)=>{fetch(o).then(v=>v.json()).then(v=>{v=v.items,c(v.items),e(6,f=[]);let R=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));v.forEach(Y=>{var ee;R||(R={currentCategoryId:[]}),((ee=R[p])==null?void 0:ee.indexOf(Y.id))>=0?(Y.isFilterSelected=!0,f.push(Y)):Y.isFilterSelected=!1}),e(5,z=v),O()}).catch(v=>{console.error(v),e(10,V=!0),y(v)}).finally(()=>{e(9,I=!1)})})),D=o=>{let c=localStorage.getItem("vendorFiltersByCategory");o.isFilterSelected=!o.isFilterSelected,!f.length||f.filter(y=>y.name===o.name).length==0?f.push(o):e(6,f=f.filter(y=>y.name!==o.name)),c==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(_={[p]:f.map(y=>y.id)})):(c=JSON.parse(c),c[p]=f.map(y=>y.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(c))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),O()},O=()=>{e(7,m=f.length===z.length||f.length==0),e(8,k=f.length)},B=()=>{const o=new URL(`${n}/v1/casino/vendors`);e(4,w=!1),o.searchParams.append("fields","id,name,logo,subVendors,games"),o.searchParams.append("language",a),o.searchParams.append("datasource",s),o.searchParams.append("platform",_e(b)),(p.match(/\$/g)||[]).length>1?(o.searchParams.append("filter",`games(subGroups=${p})`),o.searchParams.append("subVendors",`games(subGroups=${p})`)):o.searchParams.append("filter",`games(groups=${p})`),M(o)},A=()=>{e(6,f=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(_={[p]:f.map(o=>o.id)})),z.forEach(o=>o.isFilterSelected=!1),e(5,z),window.postMessage({type:"ApplyFilters"},window.location.href),e(7,m=!0),e(4,w=!1)},W=o=>{o.data.type=="SortingOpened"&&e(4,w=!1)};r.onMount(()=>(window.addEventListener("message",W,!1),()=>{window.removeEventListener("message",W)}));const J=()=>x();function q(o,c){o[c].isFilterSelected=this.checked,e(5,z)}const U=o=>D(o),C=()=>A();function T(o){r.binding_callbacks[o?"unshift":"push"](()=>{S=o,e(3,S)})}return l.$$set=o=>{"endpoint"in o&&e(15,n=o.endpoint),"datasource"in o&&e(16,s=o.datasource),"lang"in o&&e(17,a=o.lang),"translationurl"in o&&e(18,u=o.translationurl),"clientstyling"in o&&e(19,d=o.clientstyling),"clientstylingurl"in o&&e(20,h=o.clientstylingurl),"categoryid"in o&&e(21,p=o.categoryid),"addfilterselector"in o&&e(0,g=o.addfilterselector),"addsortingselector"in o&&e(1,j=o.addsortingselector),"filterbylogo"in o&&e(2,F=o.filterbylogo)},l.$$.update=()=>{l.$$.dirty[0]&2195460&&n&&s&&p&&F&&B(),l.$$.dirty[0]&524296&&d&&S&&L(),l.$$.dirty[0]&1048584&&h&&S&&H(),l.$$.dirty[0]&262144&&u&&P()},[g,j,F,S,w,z,f,m,k,I,V,i,x,D,A,n,s,a,u,d,h,p,J,q,U,C,T]}class ze extends r.SvelteComponent{constructor(t){super(),r.init(this,t,Ye,qe,r.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2},Be,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),r.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),r.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),r.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl:t}),r.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),r.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),r.flush()}get categoryid(){return this.$$.ctx[21]}set categoryid(t){this.$$set({categoryid:t}),r.flush()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(t){this.$$set({addfilterselector:t}),r.flush()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(t){this.$$set({addsortingselector:t}),r.flush()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(t){this.$$set({filterbylogo:t}),r.flush()}}r.create_custom_element(ze,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{}},[],[],!0);const Ze=Object.freeze(Object.defineProperty({__proto__:null,default:ze},Symbol.toStringTag,{value:"Module"}));exports.CasinoFilter_ce=Ze;exports.getDevice=_e;exports.isMobile=ge;exports.platformFavorite=Me;