@everymatrix/casino-my-games 1.44.0 → 1.45.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.
- package/components/CasinoFavoritesSection-CH3Lqq9F.cjs +3 -0
- package/components/CasinoFavoritesSection-Dskphnqq.js +4284 -0
- package/components/CasinoFilter-BID-K58X.cjs +3 -0
- package/components/CasinoFilter-BL4Si3BV.js +1116 -0
- package/components/CasinoGameThumbnail-C5vfXyQD.cjs +47 -0
- package/components/CasinoGameThumbnail-DM4MBVLD.js +4405 -0
- package/components/CasinoGamesCategorySection-BCzNljKC.js +3019 -0
- package/components/CasinoGamesCategorySection-CqYKQlBg.cjs +1 -0
- package/components/CasinoLastPlayedSection-4mEzDqDl.cjs +1 -0
- package/components/CasinoLastPlayedSection-9Pluu6X3.js +563 -0
- package/components/CasinoMostPlayedSection-CWtl_ZnZ.cjs +1 -0
- package/components/CasinoMostPlayedSection-DzfIdnnG.js +580 -0
- package/components/CasinoMyGames-MTmuuayw.js +1314 -0
- package/components/CasinoMyGames-cpUGmtos.cjs +1 -0
- package/components/CasinoSort-BfcsvFqx.js +425 -0
- package/components/CasinoSort-BrPaelpm.cjs +1 -0
- package/es2015/casino-my-games.cjs +1 -0
- package/es2015/casino-my-games.js +16 -0
- package/package.json +19 -32
- package/CHANGELOG.md +0 -8
- package/README.md +0 -30
- package/dist/casino-my-games.js +0 -1500
- package/dist/casino-my-games.js.map +0 -1
- package/index.html +0 -23
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -59
- package/src/CasinoMyGames.svelte +0 -327
- package/src/CasinoMyGames.types.ts +0 -92
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -87
- package/stories/CasinoMyGames.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";const r=require("./CasinoFavoritesSection-CH3Lqq9F.cjs");function T(i){return typeof i=="function"}function pe(i){var t=function(n){Error.call(n),n.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var K=pe(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
|
+
`+e.map(function(n,l){return l+1+") "+n.toString()}).join(`
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function X(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var N=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,n,l,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var u=r.__values(s),d=u.next();!d.done;d=u.next()){var b=d.value;b.remove(this)}}catch(v){t={error:v}}finally{try{d&&!d.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else s.remove(this);var p=this.initialTeardown;if(T(p))try{p()}catch(v){o=v instanceof K?v.errors:[v]}var _=this._finalizers;if(_){this._finalizers=null;try{for(var g=r.__values(_),S=g.next();!S.done;S=g.next()){var C=S.value;try{te(C)}catch(v){o=o!=null?o:[],v instanceof K?o=r.__spreadArray(r.__spreadArray([],r.__read(o)),r.__read(v.errors)):o.push(v)}}}catch(v){n={error:v}}finally{try{S&&!S.done&&(l=g.return)&&l.call(g)}finally{if(n)throw n.error}}}if(o)throw new K(o)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)te(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&X(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&X(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),fe=N.EMPTY;function he(i){return i instanceof N||i&&"closed"in i&&T(i.remove)&&T(i.add)&&T(i.unsubscribe)}function te(i){T(i)?i():i.unsubscribe()}var me={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},be={setTimeout:function(i,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return setTimeout.apply(void 0,r.__spreadArray([i,t],r.__read(e)))},clearTimeout:function(i){var t=be.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(i)},delegate:void 0};function Se(i){be.setTimeout(function(){throw i})}function re(){}function G(i){i()}var ge=function(i){r.__extends(t,i);function t(e){var n=i.call(this)||this;return n.isStopped=!1,e?(n.destination=e,he(e)&&e.add(n)):n.destination=Pe,n}return t.create=function(e,n,l){return new $(e,n,l)},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,i.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),Ce=Function.prototype.bind;function Q(i,t){return Ce.call(i,t)}var xe=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(n){Z(n)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(n){Z(n)}else Z(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Z(e)}},i}(),$=function(i){r.__extends(t,i);function t(e,n,l){var o=i.call(this)||this,s;if(T(e)||!e)s={next:e!=null?e:void 0,error:n!=null?n:void 0,complete:l!=null?l:void 0};else{var u;o&&me.useDeprecatedNextContext?(u=Object.create(e),u.unsubscribe=function(){return o.unsubscribe()},s={next:e.next&&Q(e.next,u),error:e.error&&Q(e.error,u),complete:e.complete&&Q(e.complete,u)}):s=e}return o.destination=new xe(s),o}return t}(ge);function Z(i){Se(i)}function ke(i){throw i}var Pe={closed:!0,next:re,error:ke,complete:re},Ee=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ie(i){return i}function Te(i){return i.length===0?Ie:i.length===1?i[0]:function(e){return i.reduce(function(n,l){return l(n)},e)}}var ie=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,n){var l=this,o=Oe(t)?t:new $(t,e,n);return G(function(){var s=l,u=s.operator,d=s.source;o.add(u?u.call(o,d):d?l._subscribe(o):l._trySubscribe(o))}),o},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var n=this;return e=ne(e),new e(function(l,o){var s=new $({next:function(u){try{t(u)}catch(d){o(d),s.unsubscribe()}},error:o,complete:l});n.subscribe(s)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[Ee]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Te(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=ne(t),new t(function(n,l){var o;e.subscribe(function(s){return o=s},function(s){return l(s)},function(){return n(o)})})},i.create=function(t){return new i(t)},i}();function ne(i){var t;return(t=i!=null?i:me.Promise)!==null&&t!==void 0?t:Promise}function Le(i){return i&&T(i.next)&&T(i.error)&&T(i.complete)}function Oe(i){return i&&i instanceof ge||Le(i)&&he(i)}var Ae=pe(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ve=function(i){r.__extends(t,i);function t(){var e=i.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 n=new le(this,this);return n.operator=e,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ae},t.prototype.next=function(e){var n=this;G(function(){var l,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=r.__values(n.currentObservers),u=s.next();!u.done;u=s.next()){var d=u.value;d.next(e)}}catch(b){l={error:b}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(l)throw l.error}}}})},t.prototype.error=function(e){var n=this;G(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var l=n.observers;l.length;)l.shift().error(e)}})},t.prototype.complete=function(){var e=this;G(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var n=e.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 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(),i.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 n=this,l=this,o=l.hasError,s=l.isStopped,u=l.observers;return o||s?fe:(this.currentObservers=null,u.push(e),new N(function(){n.currentObservers=null,X(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var n=this,l=n.hasError,o=n.thrownError,s=n.isStopped;l?e.error(o):s&&e.complete()},t.prototype.asObservable=function(){var e=new ie;return e.source=this,e},t.create=function(e,n){return new le(e,n)},t}(ie),le=function(i){r.__extends(t,i);function t(e,n){var l=i.call(this)||this;return l.destination=e,l.source=n,l}return t.prototype.next=function(e){var n,l;(l=(n=this.destination)===null||n===void 0?void 0:n.next)===null||l===void 0||l.call(n,e)},t.prototype.error=function(e){var n,l;(l=(n=this.destination)===null||n===void 0?void 0:n.error)===null||l===void 0||l.call(n,e)},t.prototype.complete=function(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)},t.prototype._subscribe=function(e){var n,l;return(l=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&l!==void 0?l:fe},t}(ve),ye={now:function(){return(ye.delegate||Date).now()},delegate:void 0},je=function(i){r.__extends(t,i);function t(e,n,l){e===void 0&&(e=1/0),n===void 0&&(n=1/0),l===void 0&&(l=ye);var o=i.call(this)||this;return o._bufferSize=e,o._windowTime=n,o._timestampProvider=l,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,n),o}return t.prototype.next=function(e){var n=this,l=n.isStopped,o=n._buffer,s=n._infiniteTimeWindow,u=n._timestampProvider,d=n._windowTime;l||(o.push(e),!s&&o.push(u.now()+d)),this._trimBuffer(),i.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(e),l=this,o=l._infiniteTimeWindow,s=l._buffer,u=s.slice(),d=0;d<u.length&&!e.closed;d+=o?1:2)e.next(u[d]);return this._checkFinalizedStatuses(e),n},t.prototype._trimBuffer=function(){var e=this,n=e._bufferSize,l=e._timestampProvider,o=e._buffer,s=e._infiniteTimeWindow,u=(s?1:2)*n;if(n<1/0&&u<o.length&&o.splice(0,o.length-u),!s){for(var d=l.now(),b=0,p=1;p<o.length&&o[p]<=d;p+=2)b=p;b&&o.splice(0,b+1)}},t}(ve);const oe=[],ae={},Me=(i,t=0)=>{if(oe.indexOf(i)==-1){const e=new je(t);ae[i]=e,oe.push(i)}return ae[i]};window.emWidgets={topic:Me};const _e=i=>!!(i.toLowerCase().match(/android/i)||i.toLowerCase().match(/blackberry|bb/i)||i.toLowerCase().match(/iphone|ipad|ipod/i)||i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),Fe=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function De(i,t){const e=window.navigator.userAgent;return _e(e)?t=i.filter(n=>{if(n.gameModel&&(n.gameModel.platform.includes("iPad")||n.gameModel.platform.includes("iPhone")||n.gameModel.platform.includes("Android")))return n}):t=i.filter(n=>{if(n.gameModel&&n.gameModel.platform.includes("PC"))return n}),t}function Be({withLocale:i,translations:t}){r.$locale.subscribe(e=>{e==null&&(r.$dictionary.set(t),r.$locale.set(i))})}function se(i,t){r.addMessages(i,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 We(i){r.append_styles(i,"svelte-1kkfwlf",'.SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.FilterContainer{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{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{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emfe-w-color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{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{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{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::-webkit-scrollbar{display:none}.FilterItem label{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 input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{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 .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark: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 .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{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 .FilterItemLabel{width:100%;display:flex;justify-content:space-between}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{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: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{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}')}function ue(i,t,e){const n=i.slice();return n[36]=t[e],n[37]=t,n[38]=e,n}function Ue(i){let t,e,n,l,o,s,u,d,b=i[11]("filterby")+"",p,_,g,S,C=i[11]("providers")+"",v,w,f,F,y,E,L,x,V,I,A,H,P,D=i[11]("clear")+"",B,j,W,M,U,J;function q(c,m){return c[7]?Ve:Re}let z=q(i),k=z(i),O=r.ensure_array_like(i[5]),a=[];for(let c=0;c<O.length;c+=1)a[c]=de(ue(i,O,c));return{c(){t=r.element("div"),e=r.element("div"),n=r.element("div"),l=r.svg_element("svg"),o=r.svg_element("path"),s=r.space(),u=r.element("div"),d=r.element("span"),p=r.text(b),_=r.space(),g=r.element("div"),S=r.element("span"),v=r.text(C),w=r.space(),k.c(),f=r.space(),F=r.element("span"),y=r.svg_element("svg"),E=r.svg_element("path"),V=r.space(),I=r.element("div"),A=r.element("ul");for(let c=0;c<a.length;c+=1)a[c].c();H=r.space(),P=r.element("button"),B=r.text(D),r.attr(o,"id","noun_filter_736223"),r.attr(o,"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(o,"transform","translate(-5 -6.2)"),r.attr(o,"fill","#fff"),r.attr(l,"xmlns","http://www.w3.org/2000/svg"),r.attr(l,"width","16"),r.attr(l,"height","16"),r.attr(l,"viewBox","0 0 16 16"),r.attr(d,"class","FilterName"),r.attr(g,"class","FilterValueContainer"),r.attr(u,"class","FilterTextContainer"),r.attr(n,"class","FilterMainArea"),r.attr(E,"id","arrow"),r.attr(E,"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(E,"transform","translate(-274.511 -441.088)"),r.attr(E,"fill","#d1d1d1"),r.attr(y,"xmlns","http://www.w3.org/2000/svg"),r.attr(y,"width","14"),r.attr(y,"height","6.835"),r.attr(y,"viewBox","0 0 14 6.835"),r.attr(F,"class",L="TriangleInactive "+(i[4]?"TriangleActive":"")),r.attr(e,"class",x="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),r.attr(A,"class","FilterDropdown"),r.attr(P,"class","ClearFilters"),P.disabled=j=i[7]&&i[6].length!=i[5].length,r.attr(I,"class",W="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),r.attr(t,"class",M="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(c,m){r.insert(c,t,m),r.append(t,e),r.append(e,n),r.append(n,l),r.append(l,o),r.append(n,s),r.append(n,u),r.append(u,d),r.append(d,p),r.append(u,_),r.append(u,g),r.append(g,S),r.append(S,v),r.append(g,w),k.m(g,null),r.append(e,f),r.append(e,F),r.append(F,y),r.append(y,E),r.append(t,V),r.append(t,I),r.append(I,A);for(let h=0;h<a.length;h+=1)a[h]&&a[h].m(A,null);r.append(I,H),r.append(I,P),r.append(P,B),U||(J=[r.listen(e,"click",i[22]),r.listen(P,"click",i[25])],U=!0)},p(c,m){if(m[0]&2048&&b!==(b=c[11]("filterby")+"")&&r.set_data(p,b),m[0]&2048&&C!==(C=c[11]("providers")+"")&&r.set_data(v,C),z===(z=q(c))&&k?k.p(c,m):(k.d(1),k=z(c),k&&(k.c(),k.m(g,null))),m[0]&16&&L!==(L="TriangleInactive "+(c[4]?"TriangleActive":""))&&r.attr(F,"class",L),m[0]&16&&x!==(x="FilterSelector "+(c[4]?"FilterSelectorOpen":""))&&r.attr(e,"class",x),m[0]&8228){O=r.ensure_array_like(c[5]);let h;for(h=0;h<O.length;h+=1){const R=ue(c,O,h);a[h]?a[h].p(R,m):(a[h]=de(R),a[h].c(),a[h].m(A,null))}for(;h<a.length;h+=1)a[h].d(1);a.length=O.length}m[0]&2048&&D!==(D=c[11]("clear")+"")&&r.set_data(B,D),m[0]&224&&j!==(j=c[7]&&c[6].length!=c[5].length)&&(P.disabled=j),m[0]&16&&W!==(W="FilterDropdownContainer "+(c[4]?"FilterOpen":""))&&r.attr(I,"class",W),m[0]&3&&M!==(M="FilterContainer "+(c[0]=="true"&&c[1]=="true"?"FilerContainerSplit":""))&&r.attr(t,"class",M)},d(c){c&&r.detach(t),k.d(),r.destroy_each(a,c),U=!1,r.run_all(J)}}}function ze(i){let t,e=i[11]("500")+"",n;return{c(){t=r.element("p"),n=r.text(e),r.attr(t,"class","SearchLoading")},m(l,o){r.insert(l,t,o),r.append(t,n)},p(l,o){o[0]&2048&&e!==(e=l[11]("500")+"")&&r.set_data(n,e)},d(l){l&&r.detach(t)}}}function Re(i){let t,e;return{c(){t=r.element("span"),e=r.text(i[8]),r.attr(t,"class","FilterCounter")},m(n,l){r.insert(n,t,l),r.append(t,e)},p(n,l){l[0]&256&&r.set_data(e,n[8])},d(n){n&&r.detach(t)}}}function Ve(i){let t,e=i[11]("all")+"",n;return{c(){t=r.element("span"),n=r.text(e),r.attr(t,"class","FilterCounter")},m(l,o){r.insert(l,t,o),r.append(t,n)},p(l,o){o[0]&2048&&e!==(e=l[11]("all")+"")&&r.set_data(n,e)},d(l){l&&r.detach(t)}}}function He(i){let t,e;return{c(){t=r.element("img"),r.src_url_equal(t.src,e=i[36].logo)||r.attr(t,"src",e),r.attr(t,"alt","vendor logo")},m(n,l){r.insert(n,t,l)},p(n,l){l[0]&32&&!r.src_url_equal(t.src,e=n[36].logo)&&r.attr(t,"src",e)},d(n){n&&r.detach(t)}}}function Je(i){let t,e,n=i[36].name+"",l,o,s,u,d=i[36].games.count+"",b,p;return{c(){t=r.element("div"),e=r.element("span"),l=r.text(n),o=r.space(),s=r.element("span"),u=r.text("("),b=r.text(d),p=r.text(")"),r.attr(t,"class","FilterItemLabel")},m(_,g){r.insert(_,t,g),r.append(t,e),r.append(e,l),r.append(t,o),r.append(t,s),r.append(s,u),r.append(s,b),r.append(s,p)},p(_,g){g[0]&32&&n!==(n=_[36].name+"")&&r.set_data(l,n),g[0]&32&&d!==(d=_[36].games.count+"")&&r.set_data(b,d)},d(_){_&&r.detach(t)}}}function de(i){let t,e,n,l,o,s,u,d,b,p,_,g;function S(){i[23].call(n,i[37],i[38])}function C(){return i[24](i[36])}function v(F,y){if(F[2]==="false")return Je;if(F[2]==="true")return He}let w=v(i),f=w&&w(i);return{c(){t=r.element("li"),e=r.element("label"),n=r.element("input"),o=r.space(),s=r.element("span"),u=r.space(),f&&f.c(),d=r.space(),r.attr(n,"type","checkbox"),r.attr(n,"name","checkbox"),n.__value=l=i[36].name,r.set_input_value(n,n.__value),r.attr(s,"class","FiltersCheckmark"),r.attr(e,"class","FilterLabel"),r.attr(t,"class",b="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=p=i[36].name},m(F,y){r.insert(F,t,y),r.append(t,e),r.append(e,n),n.checked=i[36].isFilterSelected,r.append(e,o),r.append(e,s),r.append(e,u),f&&f.m(e,null),r.append(t,d),_||(g=[r.listen(n,"change",S),r.listen(n,"click",C)],_=!0)},p(F,y){i=F,y[0]&32&&l!==(l=i[36].name)&&(n.__value=l,r.set_input_value(n,n.__value)),y[0]&32&&(n.checked=i[36].isFilterSelected),w===(w=v(i))&&f?f.p(i,y):(f&&f.d(1),f=w&&w(i),f&&(f.c(),f.m(e,null))),y[0]&4&&b!==(b="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&r.attr(t,"class",b),y[0]&32&&p!==(p=i[36].name)&&(t.value=p)},d(F){F&&r.detach(t),f&&f.d(),_=!1,r.run_all(g)}}}function qe(i){let t;function e(o,s){if(o[10])return ze;if(!o[9])return Ue}let n=e(i),l=n&&n(i);return{c(){t=r.element("div"),l&&l.c()},m(o,s){r.insert(o,t,s),l&&l.m(t,null),i[26](t)},p(o,s){n===(n=e(o))&&l?l.p(o,s):(l&&l.d(1),l=n&&n(o),l&&(l.c(),l.m(t,null)))},i:r.noop,o:r.noop,d(o){o&&r.detach(t),l&&l.d(),i[26](null)}}}function Ye(i,t,e){let n;r.component_subscribe(i,r.$format,a=>e(11,n=a));let{endpoint:l=""}=t,{datasource:o=""}=t,{lang:s=""}=t,{translationurl:u=""}=t,{clientstyling:d=""}=t,{clientstylingurl:b=""}=t,{categoryid:p=""}=t,{addfilterselector:_="false"}=t,{addsortingselector:g="false"}=t,{filterbylogo:S="false"}=t,C=!1,v=window.navigator.userAgent,w=[],f=[],F={},y=!1,E=0,L=!0,x,V=!1;Be({withLocale:"en",translations:{}});const I=()=>{fetch(u).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{se(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(ce).forEach(a=>{se(a,ce[a])});const A=()=>{let a=document.createElement("style");a.innerHTML=d,x.appendChild(a)},H=()=>{let a=document.createElement("style");fetch(new URL(b)).then(c=>c.text()).then(c=>{a.innerHTML=c,setTimeout(()=>{x.appendChild(a)},1)})};F[p]&&(F={[p]:[]});const P=()=>{e(4,C=!C),window.postMessage({type:"FilterOpened"},window.location.href)},D=a=>(e(9,L=!0),new Promise((c,m)=>{fetch(a).then(h=>h.json()).then(h=>{h=h.items,c(h.items),e(6,f=[]);let R=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));h.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,w=h),j()}).catch(h=>{console.error(h),e(10,V=!0),m(h)}).finally(()=>{e(9,L=!1)})})),B=a=>{let c=localStorage.getItem("vendorFiltersByCategory");a.isFilterSelected=!a.isFilterSelected,!f.length||f.filter(m=>m.name===a.name).length==0?f.push(a):e(6,f=f.filter(m=>m.name!==a.name)),c==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(F={[p]:f.map(m=>m.id)})):(c=JSON.parse(c),c[p]=f.map(m=>m.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(c))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),j()},j=()=>{e(7,y=f.length===w.length||f.length==0),e(8,E=f.length)},W=()=>{const a=new URL(`${l}/v1/casino/vendors`);e(4,C=!1),a.searchParams.append("fields","id,name,logo,subVendors,games"),a.searchParams.append("language",s),a.searchParams.append("datasource",o),a.searchParams.append("platform",Fe(v)),(p.match(/\$/g)||[]).length>1?(a.searchParams.append("filter",`games(subGroups=${p})`),a.searchParams.append("subVendors",`games(subGroups=${p})`)):a.searchParams.append("filter",`games(groups=${p})`),D(a)},M=()=>{e(6,f=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(F={[p]:f.map(a=>a.id)})),w.forEach(a=>a.isFilterSelected=!1),e(5,w),window.postMessage({type:"ApplyFilters"},window.location.href),e(7,y=!0),e(4,C=!1)},U=a=>{a.data.type=="SortingOpened"&&e(4,C=!1)};r.onMount(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)}));const J=()=>P();function q(a,c){a[c].isFilterSelected=this.checked,e(5,w)}const z=a=>B(a),k=()=>M();function O(a){r.binding_callbacks[a?"unshift":"push"](()=>{x=a,e(3,x)})}return i.$$set=a=>{"endpoint"in a&&e(15,l=a.endpoint),"datasource"in a&&e(16,o=a.datasource),"lang"in a&&e(17,s=a.lang),"translationurl"in a&&e(18,u=a.translationurl),"clientstyling"in a&&e(19,d=a.clientstyling),"clientstylingurl"in a&&e(20,b=a.clientstylingurl),"categoryid"in a&&e(21,p=a.categoryid),"addfilterselector"in a&&e(0,_=a.addfilterselector),"addsortingselector"in a&&e(1,g=a.addsortingselector),"filterbylogo"in a&&e(2,S=a.filterbylogo)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&l&&o&&p&&S&&W(),i.$$.dirty[0]&524296&&d&&x&&A(),i.$$.dirty[0]&1048584&&b&&x&&H(),i.$$.dirty[0]&262144&&u&&I()},[_,g,S,x,C,w,f,y,E,L,V,n,P,B,M,l,o,s,u,d,b,p,J,q,z,k,O]}class we 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},We,[-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(we,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{}},[],[],!0);const Ze=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));exports.CasinoFilter_ce=Ze;exports.getDevice=Fe;exports.isMobile=_e;exports.platformFavorite=De;
|