@everymatrix/casino-collections-providers 1.29.6 → 1.29.8
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/CHANGELOG.md
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
|
2
|
+
## casino-collections-providers widget changelogs
|
3
|
+
|
4
|
+
| Version | Release date | Impacted areas | Changes |
|
5
|
+
| ------- | ------------ | ----------------------------- | --------------------------------------- |
|
6
|
+
| 1.29.7 | Thu May 09 2024 | casino-collections-providers | fix(EMFE-30584)(casino-collections-providers): add a new class to make diff... |
|
@@ -636,8 +636,8 @@ var zr=function(e,t){return zr=Object.setPrototypeOf||{__proto__:[]}instanceof A
|
|
636
636
|
/* src/CasinoCollectionsProviders.svelte generated by Svelte v3.59.2 */
|
637
637
|
function Pn(e,t,r){const n=e.slice();return n[39]=t[r],n}function Ln(e,t,r){const n=e.slice();return n[42]=t[r],n}
|
638
638
|
// (156:4) {:else}
|
639
|
-
function On(e){let t,r,o,i,s,a,l,c,E,_,w,T,A,S,B=/*type*/("vendor"==e[0]?/*$_*/e[8]("providers"):/*$_*/e[8]("collections"))+"",H=/*gameCategories*/e[3],C=[];for(let t=0;t<H.length;t+=1)C[t]=Un(Pn(e,H,t));return{c(){t=d("div"),r=d("div"),o=d("p"),i=m(B),s=y(),a=d("div"),l=d("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',c=y(),E=d("button"),E.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',_=y(),w=d("div");for(let e=0;e<C.length;e+=1)C[e].c();b(o,"class","Title"),b(a,"class","ButtonsContainer"),b(r,"class","CategoriesHeader"),b(w,"class","CategoriesSlider"),b(t,"class",T="CasinoCollectionsProviders "+(/*mobile*/e[7]?"Mobile":""))},m(n,f){h(n,t,f),u(t,r),u(r,o),u(o,i),u(r,s),u(r,a),u(a,l),u(a,c),u(a,E),u(t,_),u(t,w);for(let e=0;e<C.length;e+=1)C[e]&&C[e].m(w,null);
|
640
|
-
/*div2_binding*/e[23](w),A||(S=[g(l,"click",/*click_handler*/e[19]),g(E,"click",/*click_handler_1*/e[20])],A=!0)},p(e,r){if(/*type, $_*/257&r[0]&&B!==(B=/*type*/("vendor"==e[0]?/*$_*/e[8]("providers"):/*$_*/e[8]("collections"))+"")&&v(i,B),/*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/6158&r[0]){let t;for(H=/*gameCategories*/e[3],t=0;t<H.length;t+=1){const n=Pn(e,H,t);C[t]?C[t].p(n,r):(C[t]=Un(n),C[t].c(),C[t].m(w,null))}for(;t<C.length;t+=1)C[t].d(1);C.length=H.length}/*mobile*/
|
639
|
+
function On(e){let t,r,o,i,s,a,l,c,E,_,w,T,A,S,B=/*type*/("vendor"==e[0]?/*$_*/e[8]("providers"):/*$_*/e[8]("collections"))+"",H=/*gameCategories*/e[3],C=[];for(let t=0;t<H.length;t+=1)C[t]=Un(Pn(e,H,t));return{c(){t=d("div"),r=d("div"),o=d("p"),i=m(B),s=y(),a=d("div"),l=d("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',c=y(),E=d("button"),E.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',_=y(),w=d("div");for(let e=0;e<C.length;e+=1)C[e].c();b(o,"class","Title"),b(a,"class","ButtonsContainer"),b(r,"class","CategoriesHeader"),b(w,"class","CategoriesSlider"),b(t,"class",T="CasinoCollectionsProviders "+(/*mobile*/e[7]?"Mobile":"")+" "+(/*type*/"vendor"===e[0]?"Providers":"Collections"))},m(n,f){h(n,t,f),u(t,r),u(r,o),u(o,i),u(r,s),u(r,a),u(a,l),u(a,c),u(a,E),u(t,_),u(t,w);for(let e=0;e<C.length;e+=1)C[e]&&C[e].m(w,null);
|
640
|
+
/*div2_binding*/e[23](w),A||(S=[g(l,"click",/*click_handler*/e[19]),g(E,"click",/*click_handler_1*/e[20])],A=!0)},p(e,r){if(/*type, $_*/257&r[0]&&B!==(B=/*type*/("vendor"==e[0]?/*$_*/e[8]("providers"):/*$_*/e[8]("collections"))+"")&&v(i,B),/*gameCategories, openCategory, collectionprovidersgamenames, openGame, titletype*/6158&r[0]){let t;for(H=/*gameCategories*/e[3],t=0;t<H.length;t+=1){const n=Pn(e,H,t);C[t]?C[t].p(n,r):(C[t]=Un(n),C[t].c(),C[t].m(w,null))}for(;t<C.length;t+=1)C[t].d(1);C.length=H.length}/*mobile, type*/129&r[0]&&T!==(T="CasinoCollectionsProviders "+(/*mobile*/e[7]?"Mobile":"")+" "+(/*type*/"vendor"===e[0]?"Providers":"Collections"))&&b(t,"class",T)},d(r){r&&f(t),p(C,r),
|
641
641
|
/*div2_binding*/e[23](null),A=!1,n(S)}}}
|
642
642
|
// (154:4) {#if isLoading}
|
643
643
|
function In(t){let r;return{c(){r=d("div"),b(r,"class","LoadingSpinner")},m(e,t){h(e,r,t)},p:e,d(e){e&&f(r)}}}
|
@@ -670,5 +670,5 @@ P(A)},I=()=>{H>=B||(0===A?A=B-H:A-H<-1?A=0:A--,O())},N=()=>{H>=B||(A===B-H?A=0:B
|
|
670
670
|
//Analytics event
|
671
671
|
"function"==typeof gtag&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${r}`})},M=e=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:e},window.location.href)},x=()=>{var e;e=d,Qt.set(e)};T((()=>{r(7,h=(e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)))(C))}));return e.$$set=e=>{"endpoint"in e&&r(13,f=e.endpoint),"datasource"in e&&r(14,p=e.datasource),"lang"in e&&r(15,d=e.lang),"type"in e&&r(0,m=e.type),"titletype"in e&&r(1,y=e.titletype),"clientstyling"in e&&r(16,g=e.clientstyling),"clientstylingurl"in e&&r(17,b=e.clientstylingurl),"translationurl"in e&&r(18,v=e.translationurl),"collectionprovidersgamenames"in e&&r(2,E=e.collectionprovidersgamenames)},e.$$.update=()=>{/*endpoint, datasource, lang*/57344&e.$$.dirty[0]&&f&&p&&d&&(()=>{const e=new URL(`${f}/v2/casino/groups/${p}`);e.searchParams.append("language",d),e.searchParams.append("expand","games"),fetch(e.href).then((e=>e.json())).then((e=>{r(6,w=!1);let t=e.items.filter((e=>e.flags==m));r(3,_=t.map((e=>{var t,r,n;return{id:e.id,name:e.name,icon:e.icon?e.icon:null===(n=null===(r=null===(t=e.vendors)||void 0===t?void 0:t.items[0])||void 0===r?void 0:r.subVendors[0])||void 0===n?void 0:n.logo,games:e.games.items.slice(0,4).map((e=>e)),background:e.background,flag:e.flags}}))),B=_.length}))})(),/*gameCategories, categoriesSlider*/24&e.$$.dirty[0]&&
|
672
672
|
//making sure we have something to position, before trying to
|
673
|
-
_&&s&&P(),/*lang*/32768&e.$$.dirty[0]&&d&&x(),/*clientstyling, customStylingContainer*/65568&e.$$.dirty[0]&&g&&u&&(()=>{let e=document.createElement("style");e.innerHTML=g,u.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/131104&e.$$.dirty[0]&&b&&u&&(()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{u.appendChild(t)}),1)}))})(),/*translationurl*/262144&e.$$.dirty[0]&&v&&fetch(v).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,y,E,_,s,u,w,h,n,I,N,R,M,f,p,d,g,b,v,()=>I(),()=>N(),e=>R(e.gameId,e.launchUrl,e.name,e.subVendor),e=>M(e.id),function(e){S[e?"unshift":"push"]((()=>{s=e,r(4,s)}))},function(e){S[e?"unshift":"push"]((()=>{u=e,r(5,u)}))}]}class kn extends D{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-casino-typography, var(--emfe-w-color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Dn,Gn,i,{endpoint:13,datasource:14,lang:15,type:0,titletype:1,clientstyling:16,clientstylingurl:17,translationurl:18,collectionprovidersgamenames:2},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["endpoint","datasource","lang","type","titletype","clientstyling","clientstylingurl","translationurl","collectionprovidersgamenames"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),N()}get datasource(){return this.$$.ctx[14]}set datasource(e){this.$$set({datasource:e}),N()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),N()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),N()}get titletype(){return this.$$.ctx[1]}set titletype(e){this.$$set({titletype:e}),N()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),N()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(e){this.$$set({collectionprovidersgamenames:e}),N()}}return!customElements.get("casino-collections-providers")&&customElements.define("casino-collections-providers",kn),kn}));
|
673
|
+
_&&s&&P(),/*lang*/32768&e.$$.dirty[0]&&d&&x(),/*clientstyling, customStylingContainer*/65568&e.$$.dirty[0]&&g&&u&&(()=>{let e=document.createElement("style");e.innerHTML=g,u.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/131104&e.$$.dirty[0]&&b&&u&&(()=>{let e=new URL(b),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{u.appendChild(t)}),1)}))})(),/*translationurl*/262144&e.$$.dirty[0]&&v&&fetch(v).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Er(t,e[t])}))})).catch((e=>{console.log(e)}))},[m,y,E,_,s,u,w,h,n,I,N,R,M,f,p,d,g,b,v,()=>I(),()=>N(),e=>R(e.gameId,e.launchUrl,e.name,e.subVendor),e=>M(e.id),function(e){S[e?"unshift":"push"]((()=>{s=e,r(4,s)}))},function(e){S[e?"unshift":"push"]((()=>{u=e,r(5,u)}))}]}class kn extends D{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-casino-typography, var(--emfe-w-color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}',this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:_(this.attributes),customElement:!0},Dn,Gn,i,{endpoint:13,datasource:14,lang:15,type:0,titletype:1,clientstyling:16,clientstylingurl:17,translationurl:18,collectionprovidersgamenames:2},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),N()))}static get observedAttributes(){return["endpoint","datasource","lang","type","titletype","clientstyling","clientstylingurl","translationurl","collectionprovidersgamenames"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),N()}get datasource(){return this.$$.ctx[14]}set datasource(e){this.$$set({datasource:e}),N()}get lang(){return this.$$.ctx[15]}set lang(e){this.$$set({lang:e}),N()}get type(){return this.$$.ctx[0]}set type(e){this.$$set({type:e}),N()}get titletype(){return this.$$.ctx[1]}set titletype(e){this.$$set({titletype:e}),N()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(e){this.$$set({clientstyling:e}),N()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),N()}get translationurl(){return this.$$.ctx[18]}set translationurl(e){this.$$set({translationurl:e}),N()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(e){this.$$set({collectionprovidersgamenames:e}),N()}}return!customElements.get("casino-collections-providers")&&customElements.define("casino-collections-providers",kn),kn}));
|
674
674
|
//# sourceMappingURL=casino-collections-providers.js.map
|