@everymatrix/casino-random-game 1.43.3 → 1.44.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/CHANGELOG.md CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  | Version | Release date | Impacted areas | Changes |
5
5
  | ------- | ------------ | ----------------------------- | --------------------------------------- |
6
+ | 1.43.4 | Tue Oct 15 2024 | casino-random-game | style(EMFE-33215)(casino-calendar,casino-hamburger-menu,casino-header-controller-nd,casino-integrated-game-page,casino-modal,casino-promotions-nd,casino-random-game,casino-slider,player-account-closure-nd,player-account-controller-nd): style |
6
7
  | 1.37.2 | Mon Aug 12 2024 | casino-random-game | fix(EMFE-30279)(casino-random-game): adjusted the way the category filter is... <br /> fix(EMFE-30333)(casino-random-game): expand vendor in order to obtain from the call the vendor name <br /> fix(EMFE-30333)(casino-random-game): fix loop and treat error cases <br /> fix(EMFE-30333)(casino-random-game): fix for infinite loop - add specific... |
7
8
  | 1.34.1 | Tue Jun 25 2024 | casino-random-game | fix(EMFE-30279)(casino-random-game): adjusted the way the category filter is... |
8
9
  | 1.34.0 | Fri Jun 21 2024 | casino-random-game | fix(EMFE-30333)(casino-random-game): expand vendor in order to obtain from the call the vendor name |
@@ -656,5 +656,5 @@ return e[1]?Nn:/*buttontext*/e[1]?void 0:In}let v=g(t),E=v&&v(t);return{c(){r=p(
656
656
  /*dictionary.set(translations);
657
657
  locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Hn).forEach((e=>{Bn(e,Hn[e])}));const R=e=>{S?(r(4,a=L(a)),r(6,A=0),B=0,r(7,H=!1),r(3,w=E[Math.floor(Math.random()*E.length)]),r(5,_=!0),clearInterval(s),s=setInterval((()=>{r(6,A-=75),B++,20==B&&(r(7,H=!0),clearInterval(s))}),150)):(r(5,_=!0),r(7,H=!0)),e&&"function"==typeof gtag&&gtag("event","RefreshRandomGame",{context:"RandomGameWidget",gameId:`${w.gId||w.id}`}),window.postMessage({type:"RandomWidgetState",state:!0},window.location.href)},L=e=>{let t,r=e.length;for(;0!=r;)t=Math.floor(Math.random()*r),r--,[e[r],e[t]]=[e[t],e[r]];return e},O=()=>{window.postMessage({type:f,gameId:w.gId||w.id},window.location.href),r(5,_=!1),window.postMessage({type:"RandomWidgetState",state:!1},window.location.href),
658
658
  //Analytics event
659
- "function"==typeof gtag&&gtag("event","OpenGame",{context:"RandomGameWidget",gameId:`${w.gId||w.id}`})},C=()=>{var e;e=p,nn.set(e)};return e.$$set=e=>{"endpoint"in e&&r(13,c=e.endpoint),"datasource"in e&&r(14,h=e.datasource),"gameevent"in e&&r(15,f=e.gameevent),"lang"in e&&r(16,p=e.lang),"randombuttonicon"in e&&r(0,d=e.randombuttonicon),"buttontext"in e&&r(1,m=e.buttontext),"translationurl"in e&&r(17,y=e.translationurl),"clientstyling"in e&&r(18,b=e.clientstyling),"clientstylingurl"in e&&r(19,g=e.clientstylingurl),"filteredrandomgamecategories"in e&&r(20,v=e.filteredrandomgamecategories)},e.$$.update=()=>{/*lang*/65536&e.$$.dirty[0]&&p&&C(),/*translationurl*/131072&e.$$.dirty[0]&&y&&fetch(y).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Bn(t,e[t])}))})).catch((e=>{console.log(e)})),/*endpoint, datasource*/24576&e.$$.dirty[0]&&c&&h&&(()=>{let e=new URL(`${c}/v1/casino/games`);e.searchParams.append("platform",(e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(P)),e.searchParams.append("datasource",h),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,categories"),v&&e.searchParams.append("filter",`groups=${v}`),e.searchParams.append("expand","categories,vendor"),e.searchParams.append("pagination","offset=0,limit=1000"),fetch(e.href).then((e=>e.json())).then((e=>{E=e.items,E.length?(r(4,a=E.slice(0,19)),r(8,S=!0)):(r(4,a=[]),r(8,S=!1))})).catch((e=>{console.log(e),r(8,S=!1)}))})(),/*clientstyling, customStylingContainer*/262148&e.$$.dirty[0]&&b&&l&&(()=>{let e=document.createElement("style");e.innerHTML=b,l.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/524292&e.$$.dirty[0]&&g&&l&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{l.appendChild(t)}),1)}))})()},[d,m,l,w,a,_,A,H,S,n,R,O,()=>{r(5,_=!1),window.postMessage({type:"RandomWidgetState",state:_},window.location.href)},c,h,f,p,y,b,g,v,()=>R(!0),()=>O(),()=>R(),function(e){T[e?"unshift":"push"]((()=>{l=e,r(2,l)}))}]}class Un extends M{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}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:40px 40px 16px 40px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;position:relative;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper{height:170px;overflow:hidden;transition:transform 400ms ease-in-out}.items{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading{padding:30px 0}.RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:-10px;right:-10px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}",this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Mn,Gn,i,{endpoint:13,datasource:14,gameevent:15,lang:16,randombuttonicon:0,buttontext:1,translationurl:17,clientstyling:18,clientstylingurl:19,filteredrandomgamecategories:20},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),O()))}static get observedAttributes(){return["endpoint","datasource","gameevent","lang","randombuttonicon","buttontext","translationurl","clientstyling","clientstylingurl","filteredrandomgamecategories"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),O()}get datasource(){return this.$$.ctx[14]}set datasource(e){this.$$set({datasource:e}),O()}get gameevent(){return this.$$.ctx[15]}set gameevent(e){this.$$set({gameevent:e}),O()}get lang(){return this.$$.ctx[16]}set lang(e){this.$$set({lang:e}),O()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(e){this.$$set({randombuttonicon:e}),O()}get buttontext(){return this.$$.ctx[1]}set buttontext(e){this.$$set({buttontext:e}),O()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),O()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(e){this.$$set({clientstyling:e}),O()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),O()}get filteredrandomgamecategories(){return this.$$.ctx[20]}set filteredrandomgamecategories(e){this.$$set({filteredrandomgamecategories:e}),O()}}return!customElements.get("casino-random-game")&&customElements.define("casino-random-game",Un),Un}));
659
+ "function"==typeof gtag&&gtag("event","OpenGame",{context:"RandomGameWidget",gameId:`${w.gId||w.id}`})},C=()=>{var e;e=p,nn.set(e)};return e.$$set=e=>{"endpoint"in e&&r(13,c=e.endpoint),"datasource"in e&&r(14,h=e.datasource),"gameevent"in e&&r(15,f=e.gameevent),"lang"in e&&r(16,p=e.lang),"randombuttonicon"in e&&r(0,d=e.randombuttonicon),"buttontext"in e&&r(1,m=e.buttontext),"translationurl"in e&&r(17,y=e.translationurl),"clientstyling"in e&&r(18,b=e.clientstyling),"clientstylingurl"in e&&r(19,g=e.clientstylingurl),"filteredrandomgamecategories"in e&&r(20,v=e.filteredrandomgamecategories)},e.$$.update=()=>{/*lang*/65536&e.$$.dirty[0]&&p&&C(),/*translationurl*/131072&e.$$.dirty[0]&&y&&fetch(y).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Bn(t,e[t])}))})).catch((e=>{console.log(e)})),/*endpoint, datasource*/24576&e.$$.dirty[0]&&c&&h&&(()=>{let e=new URL(`${c}/v1/casino/games`);e.searchParams.append("platform",(e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC")(P)),e.searchParams.append("datasource",h),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,categories"),v&&e.searchParams.append("filter",`groups=${v}`),e.searchParams.append("expand","categories,vendor"),e.searchParams.append("pagination","offset=0,limit=1000"),fetch(e.href).then((e=>e.json())).then((e=>{E=e.items,E.length?(r(4,a=E.slice(0,19)),r(8,S=!0)):(r(4,a=[]),r(8,S=!1))})).catch((e=>{console.log(e),r(8,S=!1)}))})(),/*clientstyling, customStylingContainer*/262148&e.$$.dirty[0]&&b&&l&&(()=>{let e=document.createElement("style");e.innerHTML=b,l.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/524292&e.$$.dirty[0]&&g&&l&&(()=>{let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{l.appendChild(t)}),1)}))})()},[d,m,l,w,a,_,A,H,S,n,R,O,()=>{r(5,_=!1),window.postMessage({type:"RandomWidgetState",state:_},window.location.href)},c,h,f,p,y,b,g,v,()=>R(!0),()=>O(),()=>R(),function(e){T[e?"unshift":"push"]((()=>{l=e,r(2,l)}))}]}class Un extends M{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}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:rgba(0, 0, 0, 0.9)}.ModalWindow .ModalContainer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:90vw;min-height:380px;max-width:500px;padding:40px 40px 16px 40px;border-top:3px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px;position:relative;background:var(--emfe-w-color-white, #FFFFFF)}.ModalWindow .ModalCloseBtn{position:absolute;top:10px;right:10px;border-radius:50%;color:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:rgba(255, 255, 255, 0.1);cursor:pointer;transition:all 150ms ease-in-out;width:28px;height:28px}.ModalWindow .ModalCloseBtn svg{width:28px;height:28px}.ModalWindow .ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.ModalWindow .ModalMobileContainer .ModalCloseBtn{margin:10px}.ModalWindow .ModalMobileContainer .ModalCloseBtn svg{width:24px;height:24px}.RandomGameWrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.RandomGamesSliderWrapper{height:170px;overflow:hidden;transition:transform 400ms ease-in-out}.items{gap:5px;transition:transform 0.3s ease-in-out;transform:translateY(0px);-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomGameLoading{padding:30px 0}.RandomGameImage{width:256px;height:170px;border-radius:5px;-webkit-transform-style:preserve-3d;-webkit-backface-visibility:hidden}.RandomTryAgain{position:absolute;bottom:-10px;right:-10px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-color-white, #FFFFFF);display:flex;align-items:center;padding:6px;border:none;border-radius:50%;cursor:pointer}.RandomTryAgain svg{width:22px;height:22px}.item{position:relative;-webkit-backface-visibility:hidden}.RandomGameDetails{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}.RandomGameDetails .RandomGameTitle{font-size:16px;line-height:18px;text-align:center}.RandomGameDetails .RandomGameVendor{font-size:10px;margin-bottom:10px}.RandomGameDetails .RandomGamePlay{background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;width:200px;height:40px;font-size:14px;cursor:pointer}.RandomButtonWrapper{display:flex;justify-content:center;margin-top:30px;width:100%}.RandomButtonWrapper .RandomButton{display:flex;align-items:center;gap:5px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));border:none;border-radius:5px;padding:0 30px;height:50px;font-size:16px;cursor:pointer}",this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:E(this.attributes),customElement:!0},Mn,Gn,i,{endpoint:13,datasource:14,gameevent:15,lang:16,randombuttonicon:0,buttontext:1,translationurl:17,clientstyling:18,clientstylingurl:19,filteredrandomgamecategories:20},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),O()))}static get observedAttributes(){return["endpoint","datasource","gameevent","lang","randombuttonicon","buttontext","translationurl","clientstyling","clientstylingurl","filteredrandomgamecategories"]}get endpoint(){return this.$$.ctx[13]}set endpoint(e){this.$$set({endpoint:e}),O()}get datasource(){return this.$$.ctx[14]}set datasource(e){this.$$set({datasource:e}),O()}get gameevent(){return this.$$.ctx[15]}set gameevent(e){this.$$set({gameevent:e}),O()}get lang(){return this.$$.ctx[16]}set lang(e){this.$$set({lang:e}),O()}get randombuttonicon(){return this.$$.ctx[0]}set randombuttonicon(e){this.$$set({randombuttonicon:e}),O()}get buttontext(){return this.$$.ctx[1]}set buttontext(e){this.$$set({buttontext:e}),O()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),O()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(e){this.$$set({clientstyling:e}),O()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),O()}get filteredrandomgamecategories(){return this.$$.ctx[20]}set filteredrandomgamecategories(e){this.$$set({filteredrandomgamecategories:e}),O()}}return!customElements.get("casino-random-game")&&customElements.define("casino-random-game",Un),Un}));
660
660
  //# sourceMappingURL=casino-random-game.js.map