@everymatrix/casino-providers 1.13.16 → 1.13.18

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.
@@ -17,29 +17,29 @@
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 C=0;// Do *not* move this inside the flush() function
21
- function I(){
20
+ const N=new Set;let w=0;// Do *not* move this inside the flush() function
21
+ function C(){
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!==C)return;const e=a;do{
25
+ if(0!==w)return;const e=a;do{
26
26
  // first, call beforeUpdate functions
27
27
  // and update components
28
- try{for(;C<H.length;){const e=H[C];C++,T(e),w(e.$$)}}catch(e){
28
+ try{for(;w<H.length;){const e=H[w];w++,T(e),I(e.$$)}}catch(e){
29
29
  // reset dirty state to not end up in a deadlocked state and then rethrow
30
- throw H.length=0,C=0,e}for(T(null),H.length=0,C=0;P.length;)P.pop()();
30
+ throw H.length=0,w=0,e}for(T(null),H.length=0,w=0;P.length;)P.pop()();
31
31
  // then, once components are updated, call
32
32
  // afterUpdate functions. This may cause
33
33
  // subsequent updates...
34
34
  for(let e=0;e<_.length;e+=1){const t=_[e];N.has(t)||(
35
35
  // ...so guard against infinite loops
36
- N.add(t),t())}_.length=0}while(H.length);for(;B.length;)B.pop()();S=!1,N.clear(),T(e)}function w(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}
36
+ N.add(t),t())}_.length=0}while(H.length);for(;B.length;)B.pop()();S=!1,N.clear(),T(e)}function I(e){if(null!==e.fragment){e.update(),n(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L)}}
37
37
  /**
38
38
  * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
39
39
  */const O=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(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:[],
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(C)),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),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);
63
+ n(r),e.$$.on_mount=[]})),h.forEach(L)}(o,s.target,s.anchor,s.customElement),C()}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
@@ -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 Ce(e){var t=e.hourCycle;if(void 0===t&&
282
+ function we(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 Ie=new RegExp("^".concat(ge.source,"*")),we=new RegExp("".concat(ge.source,"*$"));function Oe(e,t){return{start:e,end:t}}
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 Ce=new RegExp("^".concat(ge.source,"*")),Ie=new RegExp("".concat(ge.source,"*$"));function Oe(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,Fe=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ke=!0;try{
@@ -307,9 +307,9 @@ 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(Ie,"")},ze=$e?// Native
310
+ function(e){return e.replace(Ce,"")},ze=$e?// Native
311
311
  function(e){return e.trimEnd()}:// Ponyfill
312
- function(e){return e.replace(we,"")};
312
+ function(e){return e.replace(Ie,"")};
313
313
  // Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
314
314
  function Ze(e,t){return new RegExp(e,t)}
315
315
  // #endregion
@@ -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=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}}
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=we(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,7 +571,7 @@ 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=It(r[n],e);if(i)return At(e,t,i)}};let Lt;const Nt=F({});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 wt(e,...t){delete Bt[e],Nt.update((r=>(r[e]=W.all([r[e]||{},...t]),r)))}k([Nt],(([e])=>Object.keys(e))),Nt.subscribe((e=>Lt=e));const Ot={};function Mt(e){return Ot[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){Ot[e].delete(t),0===Ot[e].size&&delete Ot[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>wt(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 Ft=F(!1);let kt;const xt=F(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!=kt?kt:void 0}xt.subscribe((e=>{kt=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((()=>Ft.set(!0)),t):Ft.set(!0),Gt(e).then((()=>{xt.set(e)})).finally((()=>{clearTimeout(r),Ft.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=k([Kt,Nt],(()=>qt));function or(e,t){wt(e,t)}
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=Ct(r[n],e);if(i)return At(e,t,i)}};let Lt;const Nt=F({});function wt(e){return e in Lt}function Ct(e,t){if(!wt(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 It(e,...t){delete Bt[e],Nt.update((r=>(r[e]=W.all([r[e]||{},...t]),r)))}k([Nt],(([e])=>Object.keys(e))),Nt.subscribe((e=>Lt=e));const Ot={};function Mt(e){return Ot[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){Ot[e].delete(t),0===Ot[e].size&&delete Ot[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>It(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 Ft=F(!1);let kt;const xt=F(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!=kt?kt:void 0}xt.subscribe((e=>{kt=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(wt(r))return r}}(e)&&Rt(e)){const{loadingDelay:t}=$t();let r;return"undefined"!=typeof window&&null!=Xt()&&t?r=window.setTimeout((()=>Ft.set(!0)),t):Ft.set(!0),Gt(e).then((()=>{xt.set(e)})).finally((()=>{clearTimeout(r),Ft.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=k([Kt,Nt],(()=>qt));function or(e,t){It(e,t)}
575
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}
@@ -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 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*/
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 w(){/*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",w),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)}))}]}k([Kt],(()=>er)),k([Kt],(()=>tr)),k([Kt],(()=>rr)),k([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;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emfe-w-color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emfe-w-color-gray-100, #E6E6E6);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}));
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},window.location.href)},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)}))}]}k([Kt],(()=>er)),k([Kt],(()=>tr)),k([Kt],(()=>rr)),k([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;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.ProviderTextContainer p:first-child{font-weight:600;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.ProviderTextContainer p:last-child{color:var(--emfe-w-color-gray-150, #828282);font-weight:300}.ProviderImage{border-radius:4px;object-fit:contain;height:64px;width:64px;font-weight:100;border:0.5px solid var(--emfe-w-color-gray-100, #E6E6E6);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),C()))}static get observedAttributes(){return["endpoint","datasource","lang","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),C()}get datasource(){return this.$$.ctx[7]}set datasource(e){this.$$set({datasource:e}),C()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),C()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),C()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),C()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),C()}}return!customElements.get("casino-providers")&&customElements.define("casino-providers",mr),mr}));
590
590
  //# sourceMappingURL=casino-providers.js.map