@everymatrix/casino-providers 1.4.1 → 1.5.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/dist/casino-providers.js
CHANGED
|
@@ -583,5 +583,5 @@ 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
|
|
|
583
583
|
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)||E(r,"src",n),E(r,"alt",i=/*provider*/e[21].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[21].logo)&&E(r,"src",n),/*otherProviders*/4&o&&i!==(i=/*provider*/e[21].name)&&E(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]("Translations.games")+"")&&y(P,N)},d(e){e&&p(t),B=!1,A()}}}function pr(t){let r;function n(e,t){/*isLoading*/
|
|
584
584
|
return!0===e[3]?lr:hr}let i=n(t),o=i(t);return{c(){r=m("div"),o.c(),this.c=e,E(r,"class","CasinoProviders")},m(e,n){c(e,r,n),o.m(r,null),
|
|
585
585
|
/*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(),
|
|
586
|
-
/*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=[],b=!1;Object.keys(G).forEach((e=>{or(e,G[e])}));const E=(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,b=!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,b=!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,b,n,E,a,h,u,c,p,f,e=>E(e.id,e.name,e.logo),e=>E(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 mr extends U{constructor(e){super(),this.shadowRoot.innerHTML=
|
|
586
|
+
/*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=[],b=!1;Object.keys(G).forEach((e=>{or(e,G[e])}));const E=(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,b=!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,b=!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,b,n,E,a,h,u,c,p,f,e=>E(e.id,e.name,e.logo),e=>E(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 mr 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:0.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},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}));
|
|
587
587
|
//# sourceMappingURL=casino-providers.js.map
|