@everymatrix/casino-integrated-game-page 1.17.1 → 1.17.3
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.
|
@@ -1305,7 +1305,7 @@ return e[8]?Yr:/*hasErrors*/e[7]?Ir:Rr}let i=n(e),o=i(e);return{c(){t=y("div"),o
|
|
|
1305
1305
|
/*dictionary.set(translations);
|
|
1306
1306
|
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Nr).forEach((e=>{Ar(e,Nr[e])}));
|
|
1307
1307
|
// @TODO game typescript model type
|
|
1308
|
-
const te=(e,t)=>{let r=new URL(`${T}/casino/games/${e}`);r.searchParams.append("language",M),r.searchParams.append("expand","vendor"),n(12,J=t||!1),fetch(r.href).then((e=>e.json())).then((e=>{n(10,c=(e=>{let t=new URL(e.launchUrl);return t.searchParams.append("language",M),
|
|
1308
|
+
const te=(e,t)=>{let r=new URL(`${T}/v1/casino/games/${e}`);r.searchParams.append("language",M),r.searchParams.append("expand","vendor"),n(12,J=t||!1),fetch(r.href).then((e=>e.json())).then((e=>{n(10,c=(e=>{let t=new URL(e.launchUrl);return t.searchParams.append("language",M),
|
|
1309
1309
|
// @TODO wtf? session check or go home
|
|
1310
1310
|
// Maybe we should check if the session is valid, somehow?
|
|
1311
1311
|
u&&u.length>0&&(n(6,W=!0),t.searchParams.append("_sid",u),t.searchParams.append("funMode","false")),e.launchUrl=t,w.scrollIntoView(),e})(e[0])),c.launchUrl&&(q=!0,n(11,K="true"==U&&c.hasFunMode),"true"==U&&c.hasAnonymousFunMode)}),(e=>{console.error("There was an error",e),n(7,V=!0)})).then((()=>{d&&(re(),J||ne())}))},ne=()=>{n(18,b=c.width),n(19,_=c.height),g=c.width,v=c.height},re=()=>{let e=getComputedStyle(d),t=getComputedStyle(y);n(14,p=parseInt(e.width.slice(0,-2))),n(15,m=parseInt(e.height.slice(0,-2)));const r=c.width/(c.height+100);g=parseInt(t.width),v=parseInt(t.height),
|
|
@@ -1330,5 +1330,5 @@ window.location=F)};function ue(){document.webkitIsFullScreen||document.mozFullS
|
|
|
1330
1330
|
// on mouseup stop interval count
|
|
1331
1331
|
null==l||l.removeEventListener("mouseup",ye),null==l||l.removeEventListener("touchend",ye),window.removeEventListener("resize",ie),clearInterval(he)})));return e.$$set=e=>{"endpoint"in e&&n(29,T=e.endpoint),"lang"in e&&n(30,M=e.lang),"session"in e&&n(31,O=e.session),"userid"in e&&n(32,D=e.userid),"clientstyling"in e&&n(33,P=e.clientstyling),"clientstylingurl"in e&&n(34,B=e.clientstylingurl),"translationurl"in e&&n(35,H=e.translationurl),"loginurl"in e&&n(36,A=e.loginurl),"registerurl"in e&&n(37,N=e.registerurl),"depositurl"in e&&n(38,F=e.depositurl),"loginevent"in e&&n(39,L=e.loginevent),"registerevent"in e&&n(40,C=e.registerevent),"depositevent"in e&&n(41,R=e.depositevent),"clockformat"in e&&n(42,I=e.clockformat),"haspanicbutton"in e&&n(0,Y=e.haspanicbutton),"playforfun"in e&&n(43,U=e.playforfun),"checksession"in e&&n(44,G=e.checksession),"gamebanneractive"in e&&n(1,$=e.gamebanneractive),"gameid"in e&&n(45,j=e.gameid)},e.$$.update=()=>{/*lang*/1073741824&e.$$.dirty[0]&&M&&ce(),/*endpoint, lang*/1610612736&e.$$.dirty[0]|/*gameid*/16384&e.$$.dirty[1]&&T&&j&&M&&te(j),/*endpoint*/536870912&e.$$.dirty[0]|/*session, userid*/3&e.$$.dirty[1]&&O&&D&&T&&fe(),/*customStylingContainer*/8&e.$$.dirty[0]|/*clientstyling*/4&e.$$.dirty[1]&&P&&w&&(()=>{let e=document.createElement("style");e.innerHTML=P,w.appendChild(e)})(),/*customStylingContainer*/8&e.$$.dirty[0]|/*clientstylingurl*/8&e.$$.dirty[1]&&B&&w&&(()=>{let e=document.createElement("style");if(B){let t=new URL(B);fetch(t.href).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{w.appendChild(e)}),1)}))}})(),/*panicButton*/4&e.$$.dirty[0]&&l&&(null==l||l.addEventListener("mousedown",me,!1),null==l||l.addEventListener("touchstart",me,!1),
|
|
1332
1332
|
// on mouseup stop interval count
|
|
1333
|
-
null==l||l.addEventListener("mouseup",ye,!1),null==l||l.addEventListener("touchend",ye,!1)),/*translationurl*/16&e.$$.dirty[1]&&H&&fetch(H).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Ar(t,e[t])}))})).catch((e=>{console.log(e)}))},[Y,$,l,w,s,a,W,V,z,Z,c,K,J,d,p,m,y,Q,b,_,E,S,r,ee,oe,se,ae,le,de,T,M,O,D,P,B,H,A,N,F,L,C,R,I,U,G,j,()=>de(),function(e){x[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},()=>ae(),function(e){x[e?"unshift":"push"]((()=>{a=e,n(5,a)}))},function(e){x[e?"unshift":"push"]((()=>{l=e,n(2,l)}))},()=>le(),()=>le(),function(e){x[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){x[e?"unshift":"push"]((()=>{y=e,n(16,y)}))},function(e){x[e?"unshift":"push"]((()=>{d=e,n(13,d)}))},()=>de(),function(e){x[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},function(e){x[e?"unshift":"push"]((()=>{a=e,n(5,a)}))},()=>oe(),()=>se(),()=>le(),()=>le(),function(e){x[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){x[e?"unshift":"push"]((()=>{y=e,n(16,y)}))},function(e){x[e?"unshift":"push"]((()=>{d=e,n(13,d)}))},function(e){x[e?"unshift":"push"]((()=>{w=e,n(3,w)}))}]}class Jr extends G{constructor(e){super();const t=document.createElement("style");t.textContent=".SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-
|
|
1333
|
+
null==l||l.addEventListener("mouseup",ye,!1),null==l||l.addEventListener("touchend",ye,!1)),/*translationurl*/16&e.$$.dirty[1]&&H&&fetch(H).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Ar(t,e[t])}))})).catch((e=>{console.log(e)}))},[Y,$,l,w,s,a,W,V,z,Z,c,K,J,d,p,m,y,Q,b,_,E,S,r,ee,oe,se,ae,le,de,T,M,O,D,P,B,H,A,N,F,L,C,R,I,U,G,j,()=>de(),function(e){x[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},()=>ae(),function(e){x[e?"unshift":"push"]((()=>{a=e,n(5,a)}))},function(e){x[e?"unshift":"push"]((()=>{l=e,n(2,l)}))},()=>le(),()=>le(),function(e){x[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){x[e?"unshift":"push"]((()=>{y=e,n(16,y)}))},function(e){x[e?"unshift":"push"]((()=>{d=e,n(13,d)}))},()=>de(),function(e){x[e?"unshift":"push"]((()=>{S=e,n(21,S)}))},function(e){x[e?"unshift":"push"]((()=>{a=e,n(5,a)}))},()=>oe(),()=>se(),()=>le(),()=>le(),function(e){x[e?"unshift":"push"]((()=>{E=e,n(20,E)}))},function(e){x[e?"unshift":"push"]((()=>{y=e,n(16,y)}))},function(e){x[e?"unshift":"push"]((()=>{d=e,n(13,d)}))},function(e){x[e?"unshift":"push"]((()=>{w=e,n(3,w)}))}]}class Jr extends G{constructor(e){super();const t=document.createElement("style");t.textContent=".SearchLoading{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CasinoIntegratedGamePage{display:flex;flex-direction:column;height:100vh}.GamePageIntegratedTopSection{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:60px;padding:0 40px}@media(max-width: 768px){.GamePageIntegratedTopSection{padding:0 10px}}.backButton{background:transparent;display:inline-flex;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));height:15px;border-radius:5px;border:none;background:transparent;padding:0;text-transform:uppercase;font-size:22px;cursor:pointer}.backButton svg{width:20px;height:20px;margin-right:24px;fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.BottomGame{padding:0 40px;min-height:92px;background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));display:flex;justify-content:space-between;align-items:center}@media(max-width: 768px){.BottomGame{padding:0 10px}}.DepositButton{border:none;padding:12px 20px;background-color: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-radius:5px;cursor:pointer}.FullscreenButton{border-radius:5px;border:none;width:60px;height:60px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));float:right}.FullscreenButton svg{fill:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.ButtonsContainer{width:275px;display:flex;flex-direction:row;justify-content:space-between}.ButtonsContainer.ButtonsContainerFunMode{margin-right:15px}.ButtonsContainer button{cursor:pointer}.RegisterButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;border:none;width:129px;height:60px}.LoginButton{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));background-color:var(--emfe-w-casino-contrast, var(--emfe-w-color-background, #07072A));border-radius:5px;border:1px solid var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));width:129px;height:60px}.GamesContainer{width:100%;height:100%;max-width:calc(100% - 4px);max-height:100%}.Time{height:20px;margin:0;display:flex;align-items:center;justify-content:center}svg{fill:var(--emfe-w-color-white, #FFFFFF)}p{color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}#IframeContainer{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;flex-direction:column}#IframeGame{width:100%;height:100%;display:flex;flex-direction:column}.FullsScreenLayout{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:9999;overflow:auto;background:#000}.FullsScreenLayout .GamesContainer{width:100% !important;height:calc(100% - 100px) !important}.PanicSection{display:flex;align-items:center;gap:10px;margin:20px 0}.PanicButton{border-radius:5px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;height:60px;line-height:18px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer}.PanicButtonMobile{border-radius:5px;margin:0 10px;border:1px solid var(--emfe-w-color-primary, #D0046C);background-color:var(--emfe-w-color-primary, #D0046C);width:80% !important;height:60px;color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.PanicButtonAnimation{background:-webkit-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-moz-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background:-o-linear-gradient(135deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.3) 100%);background-color:var(--emfe-w-color-primary, #D0046C);width:280px;color:#fff;-webkit-animation:bar-animation 2s linear}@-webkit-keyframes bar-animation{0%{background-position:0}100%{background-position:280px}}.BannerSection{width:100%;height:150px;background:repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);display:flex;justify-content:center;align-items:center}.BannerSection h3{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}",this.shadowRoot.appendChild(t),U(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Kr,qr,u,{endpoint:29,lang:30,session:31,userid:32,clientstyling:33,clientstylingurl:34,translationurl:35,loginurl:36,registerurl:37,depositurl:38,loginevent:39,registerevent:40,depositevent:41,clockformat:42,haspanicbutton:0,playforfun:43,checksession:44,gamebanneractive:1,gameid:45},null,[-1,-1,-1,-1]),e&&(e.target&&p(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["endpoint","lang","session","userid","clientstyling","clientstylingurl","translationurl","loginurl","registerurl","depositurl","loginevent","registerevent","depositevent","clockformat","haspanicbutton","playforfun","checksession","gamebanneractive","gameid"]}get endpoint(){return this.$$.ctx[29]}set endpoint(e){this.$$set({endpoint:e}),L()}get lang(){return this.$$.ctx[30]}set lang(e){this.$$set({lang:e}),L()}get session(){return this.$$.ctx[31]}set session(e){this.$$set({session:e}),L()}get userid(){return this.$$.ctx[32]}set userid(e){this.$$set({userid:e}),L()}get clientstyling(){return this.$$.ctx[33]}set clientstyling(e){this.$$set({clientstyling:e}),L()}get clientstylingurl(){return this.$$.ctx[34]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),L()}get translationurl(){return this.$$.ctx[35]}set translationurl(e){this.$$set({translationurl:e}),L()}get loginurl(){return this.$$.ctx[36]}set loginurl(e){this.$$set({loginurl:e}),L()}get registerurl(){return this.$$.ctx[37]}set registerurl(e){this.$$set({registerurl:e}),L()}get depositurl(){return this.$$.ctx[38]}set depositurl(e){this.$$set({depositurl:e}),L()}get loginevent(){return this.$$.ctx[39]}set loginevent(e){this.$$set({loginevent:e}),L()}get registerevent(){return this.$$.ctx[40]}set registerevent(e){this.$$set({registerevent:e}),L()}get depositevent(){return this.$$.ctx[41]}set depositevent(e){this.$$set({depositevent:e}),L()}get clockformat(){return this.$$.ctx[42]}set clockformat(e){this.$$set({clockformat:e}),L()}get haspanicbutton(){return this.$$.ctx[0]}set haspanicbutton(e){this.$$set({haspanicbutton:e}),L()}get playforfun(){return this.$$.ctx[43]}set playforfun(e){this.$$set({playforfun:e}),L()}get checksession(){return this.$$.ctx[44]}set checksession(e){this.$$set({checksession:e}),L()}get gamebanneractive(){return this.$$.ctx[1]}set gamebanneractive(e){this.$$set({gamebanneractive:e}),L()}get gameid(){return this.$$.ctx[45]}set gameid(e){this.$$set({gameid:e}),L()}}return!customElements.get("casino-integrated-game-page")&&customElements.define("casino-integrated-game-page",Jr),Jr}));
|
|
1334
1334
|
//# sourceMappingURL=casino-integrated-game-page.js.map
|