@everymatrix/casino-providers 1.12.6 → 1.13.0
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/dist/casino-providers.js
CHANGED
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
|
18
18
|
// callback called a second time; the seen_callbacks set, outside the flush()
|
|
19
19
|
// function, guarantees this behavior.
|
|
20
|
-
const N=new Set;let
|
|
21
|
-
function
|
|
20
|
+
const N=new Set;let C=0;// Do *not* move this inside the flush() function
|
|
21
|
+
function I(){
|
|
22
22
|
// Do not reenter flush while dirty components are updated, as this can
|
|
23
23
|
// result in an infinite loop. Instead, let the inner flush handle it.
|
|
24
24
|
// Reentrancy is ok afterwards for bindings etc.
|
|
25
|
-
if(0!==
|
|
25
|
+
if(0!==C)return;const e=a;do{
|
|
26
26
|
// first, call beforeUpdate functions
|
|
27
27
|
// and update components
|
|
28
|
-
try{for(;
|
|
28
|
+
try{for(;C<H.length;){const e=H[C];C++,T(e),O(e.$$)}}catch(e){
|
|
29
29
|
// reset dirty state to not end up in a deadlocked state and then rethrow
|
|
30
|
-
throw H.length=0,
|
|
30
|
+
throw H.length=0,C=0,e}for(T(null),H.length=0,C=0;P.length;)P.pop()();
|
|
31
31
|
// then, once components are updated, call
|
|
32
32
|
// afterUpdate functions. This may cause
|
|
33
33
|
// subsequent updates...
|
|
@@ -39,7 +39,7 @@ N.add(t),t())}_.length=0}while(H.length);for(;B.length;)B.pop()();S=!1,N.clear()
|
|
|
39
39
|
*/const w=new Set;function M(e,t){const r=e.$$;null!==r.fragment&&(!function(e){const t=[],r=[];_.forEach((n=>-1===e.indexOf(n)?t.push(n):r.push(n))),r.forEach((e=>e())),_=t}(r.after_update),n(r.on_destroy),r.fragment&&r.fragment.d(t),
|
|
40
40
|
// TODO null out other refs, including component.$$ (but need to
|
|
41
41
|
// preserve final state?)
|
|
42
|
-
r.on_destroy=r.fragment=null,r.ctx=[])}function R(e,t){-1===e.$$.dirty[0]&&(H.push(e),S||(S=!0,A.then(
|
|
42
|
+
r.on_destroy=r.fragment=null,r.ctx=[])}function R(e,t){-1===e.$$.dirty[0]&&(H.push(e),S||(S=!0,A.then(I)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function U(o,s,h,l,u,c,f,m=[-1]){const g=a;T(o);const d=o.$$={fragment:null,ctx:[],
|
|
43
43
|
// state
|
|
44
44
|
props:c,update:e,not_equal:u,bound:r(),
|
|
45
45
|
// lifecycle
|
|
@@ -60,7 +60,7 @@ L((()=>{const r=e.$$.on_mount.map(t).filter(i);
|
|
|
60
60
|
e.$$.on_destroy?e.$$.on_destroy.push(...r):
|
|
61
61
|
// Edge case - component was destroyed immediately,
|
|
62
62
|
// most likely as a result of a binding initialising
|
|
63
|
-
n(r),e.$$.on_mount=[]})),h.forEach(L)}(o,s.target,s.anchor,s.customElement),
|
|
63
|
+
n(r),e.$$.on_mount=[]})),h.forEach(L)}(o,s.target,s.anchor,s.customElement),I()}var b,y;T(g)}let G;"function"==typeof HTMLElement&&(G=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);
|
|
64
64
|
// @ts-ignore todo: improve typings
|
|
65
65
|
for(const e in this.$$.slotted)
|
|
66
66
|
// @ts-ignore todo: improve typings
|
|
@@ -70,7 +70,7 @@ if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
|
|
|
70
70
|
/**
|
|
71
71
|
* Create a `Writable` store that allows both updating and reading by subscription.
|
|
72
72
|
* @param {*=}value initial value
|
|
73
|
-
* @param {StartStopNotifier=}
|
|
73
|
+
* @param {StartStopNotifier=} start
|
|
74
74
|
*/
|
|
75
75
|
function k(t,r=e){let n;const i=new Set;function s(e){if(o(t,e)&&(t=e,n)){// store is ready
|
|
76
76
|
const e=!$.length;for(const e of i)e[1](),$.push(e,t);if(e){for(let e=0;e<$.length;e+=2)$[e][0]($[e+1]);$.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const h=[o,a];return i.add(h),1===i.size&&(n=r(s)||e),o(t),()=>{i.delete(h),0===i.size&&n&&(n(),n=null)}}}}function F(t,r,o){const s=!Array.isArray(t),a=s?[t]:t,h=r.length<2;return u=t=>{let o=!1;const u=[];let c=0,p=e;const f=()=>{if(c)return;p();const n=r(s?u[0]:u,t);h?t(n):p=i(n)?n:e},m=a.map(((e,t)=>l(e,(e=>{u[t]=e,c&=~(1<<t),o&&f()}),(()=>{c|=1<<t}))));return o=!0,f(),function(){n(m),p(),
|
|
@@ -81,7 +81,7 @@ o=!1}},{subscribe:k(o,u).subscribe};
|
|
|
81
81
|
/**
|
|
82
82
|
* Creates a `Readable` store that allows reading by subscription.
|
|
83
83
|
* @param value initial value
|
|
84
|
-
* @param {StartStopNotifier}
|
|
84
|
+
* @param {StartStopNotifier} [start]
|
|
85
85
|
*/
|
|
86
86
|
var u}var x=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===j}(e)}
|
|
87
87
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
@@ -97,7 +97,7 @@ r.cloneUnlessOtherwiseSpecified=V;var n=Array.isArray(t);return n===Array.isArra
|
|
|
97
97
|
*/
|
|
98
98
|
function ie(e){return e.type===ee.literal}function oe(e){return e.type===ee.argument}function se(e){return e.type===ee.number}function ae(e){return e.type===ee.date}function he(e){return e.type===ee.time}function le(e){return e.type===ee.select}function ue(e){return e.type===ee.plural}function ce(e){return e.type===ee.pound}function pe(e){return e.type===ee.tag}function fe(e){return!(!e||"object"!=typeof e||e.type!==te.number)}function me(e){return!(!e||"object"!=typeof e||e.type!==te.dateTime)}
|
|
99
99
|
// @generated from regex-gen.ts
|
|
100
|
-
|
|
100
|
+
"function"==typeof SuppressedError&&SuppressedError,function(e){
|
|
101
101
|
/** Argument is unclosed (e.g. `{0`) */
|
|
102
102
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",
|
|
103
103
|
/** Argument is empty (e.g. `{}`). */
|
|
@@ -279,7 +279,7 @@ var Le,Ne={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H
|
|
|
279
279
|
* of the given `locale` to the corresponding time pattern.
|
|
280
280
|
* @param locale
|
|
281
281
|
*/
|
|
282
|
-
function
|
|
282
|
+
function Ce(e){var t=e.hourCycle;if(void 0===t&&
|
|
283
283
|
// @ts-ignore hourCycle(s) is not identified yet
|
|
284
284
|
e.hourCycles&&
|
|
285
285
|
// @ts-ignore
|
|
@@ -287,7 +287,7 @@ e.hourCycles.length&&(
|
|
|
287
287
|
// @ts-ignore
|
|
288
288
|
t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}
|
|
289
289
|
// TODO: Once hourCycle is fully supported remove the following with data generation
|
|
290
|
-
var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Ne[r||""]||Ne[n||""]||Ne["".concat(n,"-001")]||Ne["001"])[0]}var
|
|
290
|
+
var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Ne[r||""]||Ne[n||""]||Ne["".concat(n,"-001")]||Ne["001"])[0]}var Ie=new RegExp("^".concat(ge.source,"*")),Oe=new RegExp("".concat(ge.source,"*$"));function we(e,t){return{start:e,end:t}}
|
|
291
291
|
// #region Ponyfills
|
|
292
292
|
// Consolidate these variables up top for easier toggling during debugging
|
|
293
293
|
var Me=!!String.prototype.startsWith,Re=!!String.fromCodePoint,Ue=!!Object.fromEntries,Ge=!!String.prototype.codePointAt,De=!!String.prototype.trimStart,$e=!!String.prototype.trimEnd,ke=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fe=!0;try{
|
|
@@ -307,7 +307,7 @@ function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],s=i[1];t[o]=s
|
|
|
307
307
|
function(e,t){return e.codePointAt(t)}:// IE 11
|
|
308
308
|
function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},Ye=De?// Native
|
|
309
309
|
function(e){return e.trimStart()}:// Ponyfill
|
|
310
|
-
function(e){return e.replace(
|
|
310
|
+
function(e){return e.replace(Ie,"")},ze=$e?// Native
|
|
311
311
|
function(e){return e.trimEnd()}:// Ponyfill
|
|
312
312
|
function(e){return e.replace(Oe,"")};
|
|
313
313
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
@@ -402,7 +402,7 @@ var c=Ye(h.style.slice(2));if("number"===s)return(E=this.parseNumberSkeletonFrom
|
|
|
402
402
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
403
403
|
// pass as-is where `parseDateTimeSkeleton()` will throw an error
|
|
404
404
|
// for unsupported patterns.
|
|
405
|
-
this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),h=
|
|
405
|
+
this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),h=Ce(t);for("H"!=h&&"k"!=h||(a=0);a-- >0;)r+="a";for(;s-- >0;)r=h+r}else r+="J"===i?"H":i}return r}(c,this.locale));var f={type:te.dateTime,pattern:p,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Ee(p):{}};return{val:{type:"date"===s?ee.date:ee.time,value:r,location:u,style:f},err:null}}
|
|
406
406
|
// Regular style or no style.
|
|
407
407
|
return{val:{type:"number"===s?ee.number:"date"===s?ee.date:ee.time,value:r,location:u,style:null!==(i=null==h?void 0:h.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":
|
|
408
408
|
// Parse this range:
|
|
@@ -571,8 +571,8 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
571
571
|
Copyright (c) 2014, Yahoo! Inc. All rights reserved.
|
|
572
572
|
Copyrights licensed under the New BSD License.
|
|
573
573
|
See the accompanying LICENSE file for terms.
|
|
574
|
-
*/const Bt={},At=(e,t,r)=>r?(t in Bt||(Bt[t]={}),e in Bt[t]||(Bt[t][e]=r),r):r,St=(e,t)=>{if(null==t)return;if(t in Bt&&e in Bt[t])return Bt[t][e];const r=Vt(t);for(let n=0;n<r.length;n++){const i=
|
|
575
|
-
/* src/CasinoProviders.svelte generated by Svelte v3.
|
|
574
|
+
*/const Bt={},At=(e,t,r)=>r?(t in Bt||(Bt[t]={}),e in Bt[t]||(Bt[t][e]=r),r):r,St=(e,t)=>{if(null==t)return;if(t in Bt&&e in Bt[t])return Bt[t][e];const r=Vt(t);for(let n=0;n<r.length;n++){const i=It(r[n],e);if(i)return At(e,t,i)}};let Lt;const Nt=k({});function Ct(e){return e in Lt}function It(e,t){if(!Ct(e))return null;const r=function(e){return Lt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function Ot(e,...t){delete Bt[e],Nt.update((r=>(r[e]=W.all([r[e]||{},...t]),r)))}F([Nt],(([e])=>Object.keys(e))),Nt.subscribe((e=>Lt=e));const wt={};function Mt(e){return wt[e]}function Rt(e){return null!=e&&Vt(e).some((e=>{var t;return null===(t=Mt(e))||void 0===t?void 0:t.size}))}const Ut={};function Gt(e){if(!Rt(e))return e in Ut?Ut[e]:Promise.resolve();const t=function(e){return Vt(e).map((e=>{const t=Mt(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Ut[e]=Promise.all(t.map((([e,t])=>function(e,t){const r=Promise.all(t.map((t=>(function(e,t){wt[e].delete(t),0===wt[e].size&&delete wt[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Ot(e,...t)))}(e,t)))).then((()=>{if(Rt(e))return Gt(e);delete Ut[e]})),Ut[e]}const Dt={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function $t(){return Dt}const kt=k(!1);let Ft;const xt=k(null);function jt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Vt(e,t=$t().fallbackLocale){const r=jt(e);return t?[...new Set([...r,...jt(t)])]:r}function Xt(){return null!=Ft?Ft:void 0}xt.subscribe((e=>{Ft=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Kt={...xt,set:e=>{if(e&&function(e){if(null==e)return;const t=Vt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Ct(r))return r}}(e)&&Rt(e)){const{loadingDelay:t}=$t();let r;return"undefined"!=typeof window&&null!=Xt()&&t?r=window.setTimeout((()=>kt.set(!0)),t):kt.set(!0),Gt(e).then((()=>{xt.set(e)})).finally((()=>{clearTimeout(r),kt.set(!1)}))}return xt.set(e)}},Yt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},zt=(e,t)=>{const{formats:r}=$t();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Zt=Yt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(r=zt("number",t)),new Intl.NumberFormat(e,r)})),Wt=Yt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?r=zt("date",t):0===Object.keys(r).length&&(r=zt("date","short")),new Intl.DateTimeFormat(e,r)})),Qt=Yt((({locale:e,format:t,...r})=>{if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?r=zt("time",t):0===Object.keys(r).length&&(r=zt("time","short")),new Intl.DateTimeFormat(e,r)})),Jt=Yt(((e,t=Xt())=>new _t(e,t,$t().formats,{ignoreTag:$t().ignoreTag}))),qt=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Xt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=St(e,h);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!==(o=null!==(i=null===(n=(r=$t()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:e;if(!a)return u;let c=u;try{c=Jt(u,h).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c},er=(e,t)=>(({locale:e=Xt(),...t}={})=>Qt({locale:e,...t}))(t).format(e),tr=(e,t)=>(({locale:e=Xt(),...t}={})=>Wt({locale:e,...t}))(t).format(e),rr=(e,t)=>(({locale:e=Xt(),...t}={})=>Zt({locale:e,...t}))(t).format(e),nr=(e,t=Xt())=>St(e,t),ir=F([Kt,Nt],(()=>qt));function or(e,t){Ot(e,t)}
|
|
575
|
+
/* src/CasinoProviders.svelte generated by Svelte v3.59.2 */
|
|
576
576
|
function sr(e,t,r){const n=e.slice();return n[21]=t[r],n}function ar(e,t,r){const n=e.slice();return n[21]=t[r],n}
|
|
577
577
|
// (78:4) {:else}
|
|
578
578
|
function hr(e){let t,r,n,i,o,s,a,h,l=/*$_*/e[4]("popularProviders")+"",E=/*$_*/e[4]("otherProviders")+"",v=/*topProviders*/e[1],T=[];for(let t=0;t<v.length;t+=1)T[t]=ur(ar(e,v,t));let H=/*otherProviders*/e[2],P=[];for(let t=0;t<H.length;t+=1)P[t]=cr(sr(e,H,t));return{c(){t=m("h4"),r=g(l),n=d();for(let e=0;e<T.length;e+=1)T[e].c();i=d(),o=m("h4"),s=g(E),a=d();for(let e=0;e<P.length;e+=1)P[e].c();h=g(""),b(t,"class","ProviderTitle"),b(o,"class","ProviderTitle")},m(e,l){c(e,t,l),u(t,r),c(e,n,l);for(let t=0;t<T.length;t+=1)T[t]&&T[t].m(e,l);c(e,i,l),c(e,o,l),u(o,s),c(e,a,l);for(let t=0;t<P.length;t+=1)P[t]&&P[t].m(e,l);c(e,h,l)},p(e,t){if(/*$_*/16&t&&l!==(l=/*$_*/e[4]("popularProviders")+"")&&y(r,l),/*openGameProviderPage, topProviders, $_*/50&t){let r;for(v=/*topProviders*/e[1],r=0;r<v.length;r+=1){const n=ar(e,v,r);T[r]?T[r].p(n,t):(T[r]=ur(n),T[r].c(),T[r].m(i.parentNode,i))}for(;r<T.length;r+=1)T[r].d(1);T.length=v.length}if(/*$_*/16&t&&E!==(E=/*$_*/e[4]("otherProviders")+"")&&y(s,E),/*openGameProviderPage, otherProviders, $_*/52&t){let r;for(H=/*otherProviders*/e[2],r=0;r<H.length;r+=1){const n=sr(e,H,r);P[r]?P[r].p(n,t):(P[r]=cr(n),P[r].c(),P[r].m(h.parentNode,h))}for(;r<P.length;r+=1)P[r].d(1);P.length=H.length}},d(e){e&&p(t),e&&p(n),f(T,e),e&&p(i),e&&p(o),e&&p(a),f(P,e),e&&p(h)}}}
|
|
@@ -582,9 +582,9 @@ function lr(e){let t,r,n=/*$_*/e[4]("loading")+"";return{c(){t=m("p"),r=g(n),b(t
|
|
|
582
582
|
function ur(e){let t,r,n,i,o,s,a,l,f,v,T,H,P,_,B,A=/*provider*/e[21].name+"",S=/*provider*/e[21].games.count+"",L=/*$_*/e[4]("games")+"";function N(){/*click_handler*/
|
|
583
583
|
return e[12](/*provider*/e[21])}return{c(){t=m("div"),r=m("img"),o=d(),s=m("div"),a=m("p"),l=g(A),f=d(),v=m("p"),T=g(S),H=d(),P=g(L),h(r.src,n=/*provider*/e[21].logo)||b(r,"src",n),b(r,"alt",i=/*provider*/e[21].name),b(r,"class","ProviderImage"),b(s,"class","ProviderTextContainer"),b(t,"class","Provider")},m(e,n){c(e,t,n),u(t,r),u(t,o),u(t,s),u(s,a),u(a,l),u(s,f),u(s,v),u(v,T),u(v,H),u(v,P),_||(B=E(t,"click",N),_=!0)},p(t,o){e=t,/*topProviders*/2&o&&!h(r.src,n=/*provider*/e[21].logo)&&b(r,"src",n),/*topProviders*/2&o&&i!==(i=/*provider*/e[21].name)&&b(r,"alt",i),/*topProviders*/2&o&&A!==(A=/*provider*/e[21].name+"")&&y(l,A),/*topProviders*/2&o&&S!==(S=/*provider*/e[21].games.count+"")&&y(T,S),/*$_*/16&o&&L!==(L=/*$_*/e[4]("games")+"")&&y(P,L)},d(e){e&&p(t),_=!1,B()}}}
|
|
584
584
|
// (90:6) {#each otherProviders as provider}
|
|
585
|
-
function cr(e){let t,r,n,i,o,s,a,l,f,v,T,H,P,_,B,A,S=/*provider*/e[21].name+"",L=/*provider*/e[21].games.count+"",N=/*$_*/e[4]("games")+"";function
|
|
586
|
-
return e[13](/*provider*/e[21])}return{c(){t=m("div"),r=m("img"),o=d(),s=m("div"),a=m("p"),l=g(S),f=d(),v=m("p"),T=g(L),H=d(),P=g(N),_=d(),h(r.src,n=/*provider*/e[21].logo)||b(r,"src",n),b(r,"alt",i=/*provider*/e[21].name),b(r,"class","ProviderImage"),b(s,"class","ProviderTextContainer"),b(t,"class","Provider")},m(e,n){c(e,t,n),u(t,r),u(t,o),u(t,s),u(s,a),u(a,l),u(s,f),u(s,v),u(v,T),u(v,H),u(v,P),u(t,_),B||(A=E(t,"click",
|
|
585
|
+
function cr(e){let t,r,n,i,o,s,a,l,f,v,T,H,P,_,B,A,S=/*provider*/e[21].name+"",L=/*provider*/e[21].games.count+"",N=/*$_*/e[4]("games")+"";function C(){/*click_handler_1*/
|
|
586
|
+
return e[13](/*provider*/e[21])}return{c(){t=m("div"),r=m("img"),o=d(),s=m("div"),a=m("p"),l=g(S),f=d(),v=m("p"),T=g(L),H=d(),P=g(N),_=d(),h(r.src,n=/*provider*/e[21].logo)||b(r,"src",n),b(r,"alt",i=/*provider*/e[21].name),b(r,"class","ProviderImage"),b(s,"class","ProviderTextContainer"),b(t,"class","Provider")},m(e,n){c(e,t,n),u(t,r),u(t,o),u(t,s),u(s,a),u(a,l),u(s,f),u(s,v),u(v,T),u(v,H),u(v,P),u(t,_),B||(A=E(t,"click",C),B=!0)},p(t,o){e=t,/*otherProviders*/4&o&&!h(r.src,n=/*provider*/e[21].logo)&&b(r,"src",n),/*otherProviders*/4&o&&i!==(i=/*provider*/e[21].name)&&b(r,"alt",i),/*otherProviders*/4&o&&S!==(S=/*provider*/e[21].name+"")&&y(l,S),/*otherProviders*/4&o&&L!==(L=/*provider*/e[21].games.count+"")&&y(T,L),/*$_*/16&o&&N!==(N=/*$_*/e[4]("games")+"")&&y(P,N)},d(e){e&&p(t),B=!1,A()}}}function pr(t){let r;function n(e,t){/*isLoading*/
|
|
587
587
|
return!0===e[3]?lr:hr}let i=n(t),o=i(t);return{c(){r=m("div"),o.c(),this.c=e,b(r,"class","CasinoProviders")},m(e,n){c(e,r,n),o.m(r,null),
|
|
588
588
|
/*div_binding*/t[14](r)},p(e,[t]){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r,null)))},i:e,o:e,d(e){e&&p(r),o.d(),
|
|
589
|
-
/*div_binding*/t[14](null)}}}function fr(e,t,r){let n;var i,o;i=ir,o=e=>r(4,n=e),e.$$.on_destroy.push(l(i,o));let s,{endpoint:a=""}=t,{datasource:h=""}=t,{lang:u="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:p=""}=t,{translationurl:f=""}=t,m=[],g=[],d=[],E=!1;Object.keys(D).forEach((e=>{or(e,D[e])}));const b=(e,t,r)=>{window.postMessage({type:"OpenGameProvider",providerId:e,providerName:t,providerLogo:r})},y=()=>{var e;e=u,Kt.set(e)};return e.$$set=e=>{"endpoint"in e&&r(6,a=e.endpoint),"datasource"in e&&r(7,h=e.datasource),"lang"in e&&r(8,u=e.lang),"clientstyling"in e&&r(9,c=e.clientstyling),"clientstylingurl"in e&&r(10,p=e.clientstylingurl),"translationurl"in e&&r(11,f=e.translationurl)},e.$$.update=()=>{/*endpoint, lang, datasource*/448&e.$$.dirty&&a&&u&&h&&(()=>{r(3,E=!0);const e=new URL(`${a}/casino/vendors`);e.searchParams.append("datasource",h),e.searchParams.append("language",u),e.searchParams.append("fields","id,name,displayName,subVendors,isTopVendor,logo,games"),fetch(e).then((e=>e.json())).then((e=>{r(3,E=!1),m=e.items.map((e=>e)),r(1,g=m.filter((e=>!0===e.isTopVendor))),r(2,d=m.filter((e=>!1===e.isTopVendor)));let t=[];t=m.flatMap((e=>e.subVendors)),d.push(...t.filter((e=>e.games.count>0)))}))})(),/*lang*/256&e.$$.dirty&&u&&y(),/*translationurl*/2048&e.$$.dirty&&f&&fetch(f).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{or(t,e[t])}))})).catch((e=>{console.log(e)})),/*clientstyling, customStylingContainer*/513&e.$$.dirty&&c&&s&&(()=>{let e=document.createElement("style");e.innerHTML=c,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1025&e.$$.dirty&&p&&s&&(()=>{let e=new URL(p),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1)}))})()},[s,g,d,E,n,b,a,h,u,c,p,f,e=>b(e.id,e.name,e.logo),e=>b(e.id,e.name,e.logo),function(e){P[e?"unshift":"push"]((()=>{s=e,r(0,s)}))}]}F([Kt],(()=>er)),F([Kt],(()=>tr)),F([Kt],(()=>rr)),F([Kt,Nt],(()=>nr));class mr extends G{constructor(e){super();const t=document.createElement("style");t.textContent=
|
|
589
|
+
/*div_binding*/t[14](null)}}}function fr(e,t,r){let n;var i,o;i=ir,o=e=>r(4,n=e),e.$$.on_destroy.push(l(i,o));let s,{endpoint:a=""}=t,{datasource:h=""}=t,{lang:u="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:p=""}=t,{translationurl:f=""}=t,m=[],g=[],d=[],E=!1;Object.keys(D).forEach((e=>{or(e,D[e])}));const b=(e,t,r)=>{window.postMessage({type:"OpenGameProvider",providerId:e,providerName:t,providerLogo:r})},y=()=>{var e;e=u,Kt.set(e)};return e.$$set=e=>{"endpoint"in e&&r(6,a=e.endpoint),"datasource"in e&&r(7,h=e.datasource),"lang"in e&&r(8,u=e.lang),"clientstyling"in e&&r(9,c=e.clientstyling),"clientstylingurl"in e&&r(10,p=e.clientstylingurl),"translationurl"in e&&r(11,f=e.translationurl)},e.$$.update=()=>{/*endpoint, lang, datasource*/448&e.$$.dirty&&a&&u&&h&&(()=>{r(3,E=!0);const e=new URL(`${a}/casino/vendors`);e.searchParams.append("datasource",h),e.searchParams.append("language",u),e.searchParams.append("fields","id,name,displayName,subVendors,isTopVendor,logo,games"),fetch(e).then((e=>e.json())).then((e=>{r(3,E=!1),m=e.items.map((e=>e)),r(1,g=m.filter((e=>!0===e.isTopVendor))),r(2,d=m.filter((e=>!1===e.isTopVendor)));let t=[];t=m.flatMap((e=>e.subVendors)),d.push(...t.filter((e=>e.games.count>0)))}))})(),/*lang*/256&e.$$.dirty&&u&&y(),/*translationurl*/2048&e.$$.dirty&&f&&fetch(f).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{or(t,e[t])}))})).catch((e=>{console.log(e)})),/*clientstyling, customStylingContainer*/513&e.$$.dirty&&c&&s&&(()=>{let e=document.createElement("style");e.innerHTML=c,s.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1025&e.$$.dirty&&p&&s&&(()=>{let e=new URL(p),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{s.appendChild(t)}),1)}))})()},[s,g,d,E,n,b,a,h,u,c,p,f,e=>b(e.id,e.name,e.logo),e=>b(e.id,e.name,e.logo),function(e){P[e?"unshift":"push"]((()=>{s=e,r(0,s)}))}]}F([Kt],(()=>er)),F([Kt],(()=>tr)),F([Kt],(()=>rr)),F([Kt,Nt],(()=>nr));class mr extends G{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoProviders{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.ProviderTitle{font-weight:500;position:relative;right:30px;margin:10px 0}.Provider{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.ProviderTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px}.ProviderTextContainer p:first-child{font-weight:600}.ProviderTextContainer p:last-child{color:#828282;font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid #e4e2e2;overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}",this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},fr,pr,o,{endpoint:6,datasource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),I()))}static get observedAttributes(){return["endpoint","datasource","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),I()}get datasource(){return this.$$.ctx[7]}set datasource(e){this.$$set({datasource:e}),I()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),I()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),I()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),I()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),I()}}return!customElements.get("casino-providers")&&customElements.define("casino-providers",mr),mr}));
|
|
590
590
|
//# sourceMappingURL=casino-providers.js.map
|