@everymatrix/casino-providers 1.0.3 → 1.0.4

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.
@@ -570,18 +570,18 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
570
570
  PERFORMANCE OF THIS SOFTWARE.
571
571
  ***************************************************************************** */function Gt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}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=$(!1);let kt;const xt=$(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=Object.assign(Object.assign({},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(Nt(r))return r}}(e)&&Mt(e)){const{loadingDelay:t}=$t();let r;return"undefined"!=typeof window&&null!=Xt()&&t?r=window.setTimeout((()=>Ft.set(!0)),t):Ft.set(!0),Ut(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((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=zt("number",r)),new Intl.NumberFormat(t,n)})),Wt=Yt((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=zt("date",r):0===Object.keys(n).length&&(n=zt("date","short")),new Intl.DateTimeFormat(t,n)})),Qt=Yt((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=zt("time",r):0===Object.keys(n).length&&(n=zt("time","short")),new Intl.DateTimeFormat(t,n)})),Jt=Yt(((e,t=Xt())=>new Pt(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=At(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){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c},er=(e,t)=>((e={})=>{var{locale:t=Xt()}=e,r=Gt(e,["locale"]);return Qt(Object.assign({locale:t},r))})(t).format(e),tr=(e,t)=>((e={})=>{var{locale:t=Xt()}=e,r=Gt(e,["locale"]);return Wt(Object.assign({locale:t},r))})(t).format(e),rr=(e,t)=>((e={})=>{var{locale:t=Xt()}=e,r=Gt(e,["locale"]);return Zt(Object.assign({locale:t},r))})(t).format(e),nr=(e,t=Xt())=>At(e,t),ir=F([Kt,Lt],(()=>qt));
572
572
  /* src/CasinoProviders.svelte generated by Svelte v3.48.0 */
573
- function or(e,t,r){const n=e.slice();return n[20]=t[r],n}function sr(e,t,r){const n=e.slice();return n[20]=t[r],n}
574
- // (71:4) {:else}
575
- function ar(e){let t,r,n,i,o,s,a,h,l=/*$_*/e[4]("Translations.popularProviders")+"",b=/*$_*/e[4]("Translations.otherProviders")+"",v=/*topProviders*/e[0],T=[];for(let t=0;t<v.length;t+=1)T[t]=lr(sr(e,v,t));let H=/*otherProviders*/e[1],P=[];for(let t=0;t<H.length;t+=1)P[t]=ur(or(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(b),a=d();for(let e=0;e<P.length;e+=1)P[e].c();h=g(""),E(t,"class","ProviderTitle"),E(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].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].m(e,l);c(e,h,l)},p(e,t){if(/*$_*/16&t&&l!==(l=/*$_*/e[4]("Translations.popularProviders")+"")&&y(r,l),/*openGameProviderPage, topProviders, $_*/49&t){let r;for(v=/*topProviders*/e[0],r=0;r<v.length;r+=1){const n=sr(e,v,r);T[r]?T[r].p(n,t):(T[r]=lr(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&&b!==(b=/*$_*/e[4]("Translations.otherProviders")+"")&&y(s,b),/*openGameProviderPage, otherProviders, $_*/50&t){let r;for(H=/*otherProviders*/e[1],r=0;r<H.length;r+=1){const n=or(e,H,r);P[r]?P[r].p(n,t):(P[r]=ur(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)}}}
576
- // (69:4) {#if isLoading === true}
573
+ function or(e,t,r){const n=e.slice();return n[19]=t[r],n}function sr(e,t,r){const n=e.slice();return n[19]=t[r],n}
574
+ // (67:4) {:else}
575
+ function ar(e){let t,r,n,i,o,s,a,h,l=/*$_*/e[4]("Translations.popularProviders")+"",b=/*$_*/e[4]("Translations.otherProviders")+"",v=/*topProviders*/e[1],T=[];for(let t=0;t<v.length;t+=1)T[t]=lr(sr(e,v,t));let H=/*otherProviders*/e[2],P=[];for(let t=0;t<H.length;t+=1)P[t]=ur(or(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(b),a=d();for(let e=0;e<P.length;e+=1)P[e].c();h=g(""),E(t,"class","ProviderTitle"),E(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].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].m(e,l);c(e,h,l)},p(e,t){if(/*$_*/16&t&&l!==(l=/*$_*/e[4]("Translations.popularProviders")+"")&&y(r,l),/*openGameProviderPage, topProviders, $_*/50&t){let r;for(v=/*topProviders*/e[1],r=0;r<v.length;r+=1){const n=sr(e,v,r);T[r]?T[r].p(n,t):(T[r]=lr(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&&b!==(b=/*$_*/e[4]("Translations.otherProviders")+"")&&y(s,b),/*openGameProviderPage, otherProviders, $_*/52&t){let r;for(H=/*otherProviders*/e[2],r=0;r<H.length;r+=1){const n=or(e,H,r);P[r]?P[r].p(n,t):(P[r]=ur(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)}}}
576
+ // (65:4) {#if isLoading === true}
577
577
  function hr(e){let t,r,n=/*$_*/e[4]("Translations.loading")+"";return{c(){t=m("p"),r=g(n),E(t,"class","Message")},m(e,n){c(e,t,n),u(t,r)},p(e,t){/*$_*/16&t&&n!==(n=/*$_*/e[4]("Translations.loading")+"")&&y(r,n)},d(e){e&&p(t)}}}
578
- // (73:6) {#each topProviders as provider}
579
- function lr(e){let t,r,n,i,o,s,a,l,f,v,T,H,P,_,B,A=/*provider*/e[20].name+"",S=/*provider*/e[20].games.count+"",L=/*$_*/e[4]("Translations.games")+"";function N(){/*click_handler*/
580
- return e[11](/*provider*/e[20])}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[20].logo)||E(r,"src",n),E(r,"alt",i=/*provider*/e[20].name),E(r,"class","ProviderImage"),E(s,"class","ProviderTextContainer"),E(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=b(t,"click",N),_=!0)},p(t,o){e=t,/*topProviders*/1&o&&!h(r.src,n=/*provider*/e[20].logo)&&E(r,"src",n),/*topProviders*/1&o&&i!==(i=/*provider*/e[20].name)&&E(r,"alt",i),/*topProviders*/1&o&&A!==(A=/*provider*/e[20].name+"")&&y(l,A),/*topProviders*/1&o&&S!==(S=/*provider*/e[20].games.count+"")&&y(T,S),/*$_*/16&o&&L!==(L=/*$_*/e[4]("Translations.games")+"")&&y(P,L)},d(e){e&&p(t),_=!1,B()}}}
581
- // (83:6) {#each otherProviders as provider}
582
- function ur(e){let t,r,n,i,o,s,a,l,f,v,T,H,P,_,B,A,S=/*provider*/e[20].name+"",L=/*provider*/e[20].games.count+"",N=/*$_*/e[4]("Translations.games")+"";function O(){/*click_handler_1*/
583
- return e[12](/*provider*/e[20])}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[20].logo)||E(r,"src",n),E(r,"alt",i=/*provider*/e[20].name),E(r,"class","ProviderImage"),E(s,"class","ProviderTextContainer"),E(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=b(t,"click",O),B=!0)},p(t,o){e=t,/*otherProviders*/2&o&&!h(r.src,n=/*provider*/e[20].logo)&&E(r,"src",n),/*otherProviders*/2&o&&i!==(i=/*provider*/e[20].name)&&E(r,"alt",i),/*otherProviders*/2&o&&S!==(S=/*provider*/e[20].name+"")&&y(l,S),/*otherProviders*/2&o&&L!==(L=/*provider*/e[20].games.count+"")&&y(T,L),/*$_*/16&o&&N!==(N=/*$_*/e[4]("Translations.games")+"")&&y(P,N)},d(e){e&&p(t),B=!1,A()}}}function cr(t){let r,n;function i(e,t){/*isLoading*/
584
- return!0===e[2]?hr:ar}let o=i(t),s=o(t);return{c(){r=m("div"),n=m("div"),s.c(),this.c=e,E(n,"class","CasinoProviders")},m(e,i){c(e,r,i),u(r,n),s.m(n,null),
578
+ // (69:6) {#each topProviders as provider}
579
+ function lr(e){let t,r,n,i,o,s,a,l,f,v,T,H,P,_,B,A=/*provider*/e[19].name+"",S=/*provider*/e[19].games.count+"",L=/*$_*/e[4]("Translations.games")+"";function N(){/*click_handler*/
580
+ return e[11](/*provider*/e[19])}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[19].logo)||E(r,"src",n),E(r,"alt",i=/*provider*/e[19].name),E(r,"class","ProviderImage"),E(s,"class","ProviderTextContainer"),E(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=b(t,"click",N),_=!0)},p(t,o){e=t,/*topProviders*/2&o&&!h(r.src,n=/*provider*/e[19].logo)&&E(r,"src",n),/*topProviders*/2&o&&i!==(i=/*provider*/e[19].name)&&E(r,"alt",i),/*topProviders*/2&o&&A!==(A=/*provider*/e[19].name+"")&&y(l,A),/*topProviders*/2&o&&S!==(S=/*provider*/e[19].games.count+"")&&y(T,S),/*$_*/16&o&&L!==(L=/*$_*/e[4]("Translations.games")+"")&&y(P,L)},d(e){e&&p(t),_=!1,B()}}}
581
+ // (79:6) {#each otherProviders as provider}
582
+ function ur(e){let t,r,n,i,o,s,a,l,f,v,T,H,P,_,B,A,S=/*provider*/e[19].name+"",L=/*provider*/e[19].games.count+"",N=/*$_*/e[4]("Translations.games")+"";function O(){/*click_handler_1*/
583
+ return e[12](/*provider*/e[19])}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[19].logo)||E(r,"src",n),E(r,"alt",i=/*provider*/e[19].name),E(r,"class","ProviderImage"),E(s,"class","ProviderTextContainer"),E(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=b(t,"click",O),B=!0)},p(t,o){e=t,/*otherProviders*/4&o&&!h(r.src,n=/*provider*/e[19].logo)&&E(r,"src",n),/*otherProviders*/4&o&&i!==(i=/*provider*/e[19].name)&&E(r,"alt",i),/*otherProviders*/4&o&&S!==(S=/*provider*/e[19].name+"")&&y(l,S),/*otherProviders*/4&o&&L!==(L=/*provider*/e[19].games.count+"")&&y(T,L),/*$_*/16&o&&N!==(N=/*$_*/e[4]("Translations.games")+"")&&y(P,N)},d(e){e&&p(t),B=!1,A()}}}function cr(t){let r,n;function i(e,t){/*isLoading*/
584
+ return!0===e[3]?hr:ar}let o=i(t),s=o(t);return{c(){r=m("div"),n=m("div"),s.c(),this.c=e,E(n,"class","CasinoProviders")},m(e,i){c(e,r,i),u(r,n),s.m(n,null),
585
585
  /*div1_binding*/t[13](r)},p(e,[t]){o===(o=i(e))&&s?s.p(e,t):(s.d(1),s=o(e),s&&(s.c(),s.m(n,null)))},i:e,o:e,d(e){e&&p(r),s.d(),
586
- /*div1_binding*/t[13](null)}}}function pr(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,f=[],m=[],g=[],d=!1;Object.keys(G).forEach((e=>{!function(e,t){It(e,t)}(e,G[e])}));const b=(e,t,r)=>{window.postMessage({type:"OpenGameProvider",providerId:e,providerName:t,providerLogo:r})},E=()=>{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)},e.$$.update=()=>{/*endpoint, lang, datasource*/448&e.$$.dirty&&a&&u&&h&&(()=>{r(2,d=!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(2,d=!1),f=e.items.map((e=>e)),r(0,m=f.filter((e=>!0===e.isTopVendor))),r(1,g=f.filter((e=>!1===e.isTopVendor)));let t=[];t=f.flatMap((e=>e.subVendors)),g.push(...t.filter((e=>e.games.count>0)))}))})(),/*lang*/256&e.$$.dirty&&u&&E(),/*clientstyling*/512&e.$$.dirty&&c&&(()=>{let e=document.createElement("style");e.innerHTML=c,s.appendChild(e)})(),/*clientstylingurl*/1024&e.$$.dirty&&p&&(()=>{let e=new URL(p),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,s&&(setTimeout((()=>{s.appendChild(t)}),1),setTimeout((()=>{}),500))}))})()},[m,g,d,s,n,b,a,h,u,c,p,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(3,s)}))}]}F([Kt],(()=>er)),F([Kt],(()=>tr)),F([Kt],(()=>rr)),F([Kt,Lt],(()=>nr));class fr extends U{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::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:.5px solid #e4e2e2;overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}</style>",R(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},pr,cr,o,{endpoint:6,datasource:7,lang:8,clientstyling:9,clientstylingurl:10},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"]}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()}}return!customElements.get("casino-providers")&&customElements.define("casino-providers",fr),fr}));
586
+ /*div1_binding*/t[13](null)}}}function pr(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,f=[],m=[],g=[],d=!1;Object.keys(G).forEach((e=>{!function(e,t){It(e,t)}(e,G[e])}));const b=(e,t,r)=>{window.postMessage({type:"OpenGameProvider",providerId:e,providerName:t,providerLogo:r})},E=()=>{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)},e.$$.update=()=>{/*endpoint, lang, datasource*/448&e.$$.dirty&&a&&u&&h&&(()=>{r(3,d=!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,d=!1),f=e.items.map((e=>e)),r(1,m=f.filter((e=>!0===e.isTopVendor))),r(2,g=f.filter((e=>!1===e.isTopVendor)));let t=[];t=f.flatMap((e=>e.subVendors)),g.push(...t.filter((e=>e.games.count>0)))}))})(),/*lang*/256&e.$$.dirty&&u&&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&&(()=>{displayNone=!0;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,m,g,d,n,b,a,h,u,c,p,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,Lt],(()=>nr));class fr extends U{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::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:.5px solid #e4e2e2;overflow:hidden;object-fit:contain}.Message{font-weight:600;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}</style>",R(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},pr,cr,o,{endpoint:6,datasource:7,lang:8,clientstyling:9,clientstylingurl:10},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"]}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()}}return!customElements.get("casino-providers")&&customElements.define("casino-providers",fr),fr}));
587
587
  //# sourceMappingURL=casino-providers.js.map